Repository navigation
Commit 8d5bc8b
committed
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 9fa23c4 commit 8d5bc8b
41 files changed
Lines changed: 338 additions & 214 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/contracts/src
- facades
- src/daemon
- __tests__
- handlers/__tests__
- replay/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