Skip to content

Commit fa704e5

Browse files
committed
chore(gates): pin the maestro port subpaths and the capture-kit reference-frame export
R11's maestro pin grew from `.` to the two daemon-side port subpaths and from three to six workspace dependencies; the capture-kit export list gains `./touch-reference-frame`. The maestro facade test pins the surface and names the eager-closure budget gate as what keeps the port off `.`. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KWx9ywGdh7yr9k774LnZzq
1 parent e97f764 commit fa704e5

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

‎packages/maestro/src/index.test.ts‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ describe('@agent-device/maestro facade', () => {
1919
expect(exports).not.toContain('rankMaestroFailureCandidates');
2020
});
2121

22-
test('publishes no implementation subpaths and declares pure modules', () => {
22+
test('keeps the daemon-side port off the engine entry and declares pure modules', () => {
2323
const manifest = JSON.parse(
2424
fs.readFileSync(path.join(import.meta.dirname, '../package.json'), 'utf8'),
2525
) as { exports: Record<string, unknown>; sideEffects?: boolean };
26-
expect(Object.keys(manifest.exports)).toEqual(['.']);
26+
// The daemon-side runtime port (#2544) and its runScript HTTP helper are subpaths, not part
27+
// of the engine entry. This pins the surface; scripts/__tests__/eager-closure-budgets.test.ts
28+
// is what keeps `.` from starting to evaluate host-kit, capture-kit, or provision-kit.
29+
expect(Object.keys(manifest.exports)).toEqual([
30+
'.',
31+
'./daemon-runtime-port',
32+
'./run-script-http',
33+
]);
2734
expect(manifest.sideEffects).toBe(false);
2835
});
2936
});

‎scripts/layering/package-boundaries.test.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ test('the real tree parses, declares, and passes R11', () => {
442442
'@agent-device/capture-kit/snapshot-timeout-policy',
443443
'@agent-device/capture-kit/snapshot-visibility',
444444
'@agent-device/capture-kit/text-surface',
445+
'@agent-device/capture-kit/touch-reference-frame',
445446
]);
446447

447448
const provisionKitPackage = packages.find((pkg) => pkg.name === '@agent-device/provision-kit');
@@ -554,10 +555,20 @@ test('the real tree parses, declares, and passes R11', () => {
554555
]);
555556
const maestroPackage = packages.find((pkg) => pkg.name === '@agent-device/maestro');
556557
assert.ok(maestroPackage, 'maestro package must exist');
557-
assert.deepEqual([...maestroPackage.exportTargets.keys()], ['@agent-device/maestro']);
558+
// Locks the export surface: `.` (the engine) plus the two daemon-side port entries #2544
559+
// moved out of `src/daemon/adapters/maestro`. The eager-closure budget gate
560+
// (scripts/__tests__/eager-closure-budgets.test.ts) is what keeps the port off `.`.
561+
assert.deepEqual([...maestroPackage.exportTargets.keys()].sort(), [
562+
'@agent-device/maestro',
563+
'@agent-device/maestro/daemon-runtime-port',
564+
'@agent-device/maestro/run-script-http',
565+
]);
558566
assert.deepEqual([...maestroPackage.workspaceDependencies].sort(), [
567+
'@agent-device/capture-kit',
559568
'@agent-device/contracts',
569+
'@agent-device/host-kit',
560570
'@agent-device/kernel',
571+
'@agent-device/provision-kit',
561572
'@agent-device/selectors',
562573
]);
563574
const adScriptPackage = packages.find((pkg) => pkg.name === '@agent-device/ad-script');

0 commit comments

Comments
 (0)