-
Notifications
You must be signed in to change notification settings - Fork 90
feat(typespec-ts): streaming #5196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Libba Lawrence (l0lawrence)
wants to merge
20
commits into
Azure:main
Choose a base branch
from
l0lawrence:l0lawrence-vigilant-system
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
54fb516
feat(typespec-ts): generate structured JSONL and SSE streaming by def…
l0lawrence 6562c02
build(typespec-ts): update pnpm-lock.yaml for streaming devDependencies
l0lawrence 99f04d9
Merge upstream Azure/typespec-azure main into l0lawrence-vigilant-system
l0lawrence 3bcf917
fix(typespec-ts): address structured streaming review bugs
l0lawrence defc091
Merge branch 'main' of https://github.com/Azure/typespec-azure into HEAD
l0lawrence f96e675
test(typespec-ts): add SSE streaming spector integration baseline
l0lawrence faceb6a
build: clean pnpm-lock to only streaming deps
l0lawrence f4a1859
style: fix prettier formatting in SSE streaming snapshots
l0lawrence 5e82fbf
test(typespec-ts): add live SSE spector runtime integration test
l0lawrence 96cacd7
build(typespec-ts): use catalog: protocol for @azure/core-sse
l0lawrence de9a333
test(typespec-ts): combine streaming unit scenarios into one md
l0lawrence d800ce5
docs(typespec-ts): drop redundant default-behavior note from getStruc…
l0lawrence c6fd606
fix(typespec-ts): yield primitive SSE payloads and tighten core-sse g…
l0lawrence 1a2adc2
feat(typespec-ts): add environment polyfills for streaming helpers
l0lawrence b9b4d00
fix(typespec-ts): add context to SSE deserialization errors
l0lawrence 68b5a7b
feat(typespec-ts): preserve named SSE event types
l0lawrence a928fda
fix(typespec-ts): consume terminal SSE events internally and wrap nam…
l0lawrence 4b39604
wip terminal event
l0lawrence cf86de5
fix(typespec-ts): update streaming declaration baseline
l0lawrence c96ee67
non-literal terminal value
l0lawrence File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
.chronus/changes/structured-jsonl-sse-streaming-2026-7-30-0-0-0.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| changeKind: feature | ||
| packages: | ||
| - "@azure-tools/typespec-ts" | ||
| --- | ||
|
|
||
| Generate structured JSONL and SSE streaming operations by default. A JSONL or SSE stream response now returns `Promise<AsyncIterable<T>>` of deserialized items/events instead of the previous raw binary `Uint8Array` body. An operation returning `JsonlStream<T>` lazily decodes JSON Lines into `AsyncIterable<T>`, and an operation returning `SSEStream<T>` returns an `AsyncIterable` of the event payload types, dispatching each Server-Sent Event by its `event:` name (using `@azure/core-sse`), deserializing each payload, and stopping at the terminal event. This is the default behavior — there is no opt-in option. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there anything else that should be added?