-
-
Notifications
You must be signed in to change notification settings - Fork 301
feat: add first-party generic interrupts #1102
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
Open
AlemTuzlak
wants to merge
15
commits into
main
Choose a base branch
from
feat/generic-interrupts
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.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
da4134c
feat: add first-party generic interrupts
AlemTuzlak f9b51d9
ci: apply automated fixes
autofix-ci[bot] 49c6182
feat: carry generic interrupt requests on resume.metadata
AlemTuzlak a006168
ci: apply automated fixes
autofix-ci[bot] 661179f
fix: address generic interrupt review bugs
AlemTuzlak 797c72e
fix: unblock generic interrupt CI typechecks
AlemTuzlak 738b072
Merge branch 'main' into feat/generic-interrupts
AlemTuzlak 70a16c7
fix: use one schema hash for first-party generic interrupts
AlemTuzlak 5bcf683
fix: make generic middleware interrupt e2e pass
AlemTuzlak ab195ff
Merge remote-tracking branch 'origin/main' into feat/generic-interrupts
AlemTuzlak bf35c65
ci: apply automated fixes
autofix-ci[bot] ef030e9
fix: drop unused expectCollectRejects after main merge
AlemTuzlak 19c3f5c
ci: raise E2E job timeout to 30 minutes
AlemTuzlak e7bc64d
fix: stamp foreign-interrupt bindings with the request runId
AlemTuzlak 94c068d
docs: type generic interrupts without Extract casts
AlemTuzlak 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
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,17 @@ | ||
| --- | ||
| '@tanstack/ai': minor | ||
| '@tanstack/ai-client': minor | ||
| '@tanstack/ai-react': minor | ||
| '@tanstack/ai-preact': minor | ||
| '@tanstack/ai-solid': minor | ||
| '@tanstack/ai-vue': minor | ||
| '@tanstack/ai-svelte': minor | ||
| '@tanstack/ai-angular': minor | ||
| '@tanstack/ai-persistence': minor | ||
| --- | ||
|
|
||
| Add first-party generic interrupts. | ||
|
|
||
| Use `defineInterrupt()` to describe a pause, register it on `chat()` and the client hooks, and return requests from `onInterruptBoundary`. The client gets typed payloads and `resolveInterrupt`. Resume validates the answer and runs `onInterruptResolution`. | ||
|
|
||
| `GenericInterrupt<typeof reviewPlan>` types one bound card. `INTERRUPT_BOUNDARY_PHASES` and `INTERRUPT_TOOL_RESUMES` are the shared phase and resume lists. |
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.
Uh oh!
There was an error while loading. Please reload this page.