Repository navigation
Commit e7a6b9c
authored
* refactor(contracts): move the wire request, session scope and claim-conflict reason out of the daemon
* refactor(replay): move fill-text, open-target and target-evidence vocabulary into packages
* refactor(replay): dispatch through a neutral envelope and consume the daemon through typed capabilities
The replay unit no longer imports anything under src/daemon outside itself:
request types come from the wire shape in contracts, nested dispatch carries a
ReplayDispatchOptions bag the handler folds into the request's private half,
the session is a structural ReplaySessionState slice, the coordinator is built
by the handler and passed in, and the five daemon policy calls arrive as
capabilities on the session and a dependencies bag.
* refactor(replay): declare the dispatch options once in contracts
The daemon's request-private half now extends ReplayDispatchOptions from
@agent-device/contracts/replay and the replay port emits the same type, so a
key renamed on either side fails to compile. The Maestro mapping keeps its
satisfies guard. SessionScope and DaemonInstallSource lose their aliases,
doc blocks sit above the functions they describe, and the handler test pins
the private-half merge order.
Rebased onto main. Main threads `publicNetworkOnly` from the handler into the Maestro runtime port
and pins it on `ReplayCommand`, which this commit now declares once in contracts: main's explicit
threading stays, the duplicate `publicNetworkOnly?: boolean` member the merge left behind goes, so
the contract stays `?: true`. Main's three "a local request is trusted" assertions move from
`false` to absent, which is how the envelope shape says local. The handler trust-mapping test
hoists its replay-facade doubles, because the daemon importer of the facade now reaches them before
a plain `const` initializes.
1 parent 8a59595 commit e7a6b9c
111 files changed
Lines changed: 1152 additions & 680 deletions
File tree
- .agent-device/test-artifacts
- req-maestro-test-wire-true
- 01-flow.yaml/attempt-1
- 02-flow.yaml/attempt-1
- req-maestro-test-wire-undefined
- 01-flow.yaml/attempt-1
- 02-flow.yaml/attempt-1
- packages
- ad-script/src
- internal
- __tests__
- capture-kit
- src/ios-snapshot-engine
- contracts/src
- facades
- device-selection
- src
- selectors
- src
- scripts/layering
- src
- __tests__
- commands/interaction/runtime
- core
- daemon
- __tests__
- handlers
- __tests__
- interaction/internal
- replay
- __tests__
- internal
- __tests__
- server
- session-lifecycle/internal
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments