Skip to content

Commit 81dbcf8

Browse files
test(typegen): register the optional preflight data on event-route inputs (#664)
1 parent e4c5e26 commit 81dbcf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/agent-bundle/tests/route-register-typegen.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ it('types every route-aware public surface from the generated route registration
172172
"export type FindResult = Assert<Equal<RegisteredRouteResult<'tool:curator/find'>, { hits: number }>>;",
173173
"export type Unregistered = Assert<Equal<RegisteredRouteInput<'tool:curator/missing'>, unknown>>;",
174174
'// An event route registers the harness payload — the component props without the `signal` the harness',
175-
'// injects — and no result, since event modules export no resultSchema.',
176-
"export type EventInput = Assert<Equal<keyof RegisteredRouteInput<'event:tool/after'>, 'canonical' | 'native'>>;",
175+
'// injects, including the optional preflight `data` (#661) — and no result, since event modules export no resultSchema.',
176+
"export type EventInput = Assert<Equal<keyof RegisteredRouteInput<'event:tool/after'>, 'canonical' | 'native' | 'preflight'>>;",
177177
"export type EventCanonical = Assert<Equal<RegisteredRouteInput<'event:tool/after'>['canonical'], AgentEventCanonicalIdentity<'tool/after'>>>;",
178178
'// The route\'s family narrows `canonical.payload`: tool/after fields are present, stop-only fields are not.',
179179
"export type EventPayload = Assert<Equal<RegisteredRouteInput<'event:tool/after'>['canonical']['payload'], AgentEventPayload<'tool/after'>>>;",

0 commit comments

Comments
 (0)