You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ac970e
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(maestro): move the daemon-side runtime port out of src/daemon (#2652)
* refactor(maestro): move the daemon-side runtime port out of src/daemon
`src/daemon/adapters/maestro/**` was package-shaped by everything except
two daemon-internal types. Its only consumers are the daemon's replay
runtime, and `packages/maestro` already owns the engine it adapts.
The cut set was the request vocabulary. The port read one `internal`
field (`publicNetworkOnly`) and wrote four others, so it could not be
typed on the wire request alone. It now emits a package-owned
`MaestroDaemonOperationRequest` (command, positionals, input, merged
flags, and `dispatch` options) and takes the network origin as a plain
boolean. The daemon's `session-replay-maestro-request.ts` folds those
dispatch options into `internal`, mapped field by field so a drift on
either side fails to compile. `DaemonRequestInternal` stays daemon-private;
nothing under `packages/**` takes it.
`touch-reference-frame.ts` (30 LOC over `@agent-device/contracts`) moves
to `@agent-device/capture-kit/touch-reference-frame`, the layer both the
port and the daemon's interaction code sit on. The ten-line
`failure-snapshot.ts` wrapper is gone; the replay failure path calls
`collectMaestroFailureSuggestions` directly.
The port stays off the maestro engine entry: `./daemon-runtime-port` and
`./run-script-http` are subpath exports, and the eager-closure budget
gate holds `.` at its current closure, so CLI help and replay parsing
never start evaluating host-kit, capture-kit, or provision-kit through
the package. The tsdown `internal/run-script-http-child` entry follows
the file.
`src/daemon` production files: 345 -> 333; LOC: 52,729 -> 50,517.
Part of #2544; umbrella #2545.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KWx9ywGdh7yr9k774LnZzq
* 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
---------
Co-authored-by: Claude <[email protected]>
0 commit comments