diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 18:56:16 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 18:56:16 +0900 |
| commit | ccfd2f4157c1cbbb3d8aeceee94d9e963a82ab03 (patch) | |
| tree | 4b8a1be9ac885dd2527279bc0cb84e70b1115bba /src/core/wire/conformance.ts | |
| parent | 80f8a219c89a963c485da0f40dc428bf688fedb7 (diff) | |
| download | dispatch-web-ccfd2f4157c1cbbb3d8aeceee94d9e963a82ab03.tar.gz dispatch-web-ccfd2f4157c1cbbb3d8aeceee94d9e963a82ab03.zip | |
fix(core): add step-complete contract guard for [email protected]
The backend's AgentEvent union now includes TurnStepCompleteEvent
(wire/transport-contract 0.3.0). Add: no-op case in foldEvent
(transcript reducer ignores timing metadata), exhaustiveness case
in assertAgentEventExhaustive, and a step-complete sample in the
conformance test (now 12 variants).
Diffstat (limited to 'src/core/wire/conformance.ts')
| -rw-r--r-- | src/core/wire/conformance.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/wire/conformance.ts b/src/core/wire/conformance.ts index 5d75a60..d89772e 100644 --- a/src/core/wire/conformance.ts +++ b/src/core/wire/conformance.ts @@ -30,6 +30,8 @@ export function assertAgentEventExhaustive(event: AgentEvent): string { return "done"; case "turn-sealed": return "turn-sealed"; + case "step-complete": + return "step-complete"; default: return event satisfies never; } |
