TanStack
OSS
ai
Sign in / Sign up
Open main menu
ai
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
fix-structured-output-stream-sse-assignability
9e629929 Merge 69916a880763e0f4e7ebd73ff0e3d4864fff511b into dca370bb06e3a19e66d9d3dc454e13905a840904
by Alem Tuzlak
A
Succeeded
fix-structured-output-stream-sse-assignability
9e629929 ci: apply automated fixes
by autofix-ci...
a
Succeeded
fix-structured-output-stream-sse-assignability
fb32aa7e fix(ai): restore StructuredOutputStream assignability to AsyncIterable<StreamChunk> `StructuredOutputStartEvent`, `StructuredOutputCompleteEvent`, `ApprovalRequestedEvent`, and `ToolInputAvailableEvent` declared their shape with `extends Omit<CustomEvent, 'name' | 'value'>`. Because `CustomEvent` is inferred from a zod `passthrough` schema it carries a `[k: string]: unknown` index signature, and `Omit` on a type with a `string` index signature collapses every surviving property to `unknown` — including `type: 'CUSTOM'`. That broke union assignability against `AGUIEvent`/`StreamChunk`, so `toServerSentEventsResponse(stream)` failed to typecheck against streams returned by `chat({ outputSchema, stream: true })`. Switched to `extends CustomEvent` with refined `name`/`value` (a narrower type for an inherited property is allowed), preserves `type: 'CUSTOM'` and the existing discriminated-narrowing patterns. Added a type-level regression test asserting `StructuredOutputStream<T>` matches `AsyncIterable<StreamChunk>`.
by Alem Tuzlak
A
Succeeded
fix-structured-output-stream-sse-assignability
fb32aa7e fix(ai): restore StructuredOutputStream assignability to AsyncIterable<StreamChunk> `StructuredOutputStartEvent`, `StructuredOutputCompleteEvent`, `ApprovalRequestedEvent`, and `ToolInputAvailableEvent` declared their shape with `extends Omit<CustomEvent, 'name' | 'value'>`. Because `CustomEvent` is inferred from a zod `passthrough` schema it carries a `[k: string]: unknown` index signature, and `Omit` on a type with a `string` index signature collapses every surviving property to `unknown` — including `type: 'CUSTOM'`. That broke union assignability against `AGUIEvent`/`StreamChunk`, so `toServerSentEventsResponse(stream)` failed to typecheck against streams returned by `chat({ outputSchema, stream: true })`. Switched to `extends CustomEvent` with refined `name`/`value` (a narrower type for an inherited property is allowed), preserves `type: 'CUSTOM'` and the existing discriminated-narrowing patterns. Added a type-level regression test asserting `StructuredOutputStream<T>` matches `AsyncIterable<StreamChunk>`.
by Alem Tuzlak
A
Previous page
Previous
Next
Next page