Repository navigation
feat: update to schema v1.30.0 and v2.0.0-alpha.14 - #337
Merged
Merged
Conversation
Regenerate the v1 and v2 bindings. Client-provided system prompts are stable: the stable v1 and v2 entrypoints now export `SystemPrompt`, `SystemPromptMode`, and the `SessionSystemPrompt*Capabilities` types, and accept `systemPrompt` on `session/new`, `session/load` (v1), and `session/resume`. `systemPrompt` on `session/fork` still requires the unstable entrypoint. Request fields stay strict, so a malformed prompt fails with `-32602`. A malformed capability means no support. - MIGRATION_STABLE_UNSTABLE.md uses `ForkSessionRequest` as its unstable-only import example and limits the `systemPrompt` bullet to `session/fork`. - The v2 package docs no longer call `systemPrompt` unstable. - `ActiveSession.cancelToolCall` and `cancelTerminal` document that a subagent's tool calls and terminals are cancelled with the child's `sessionId`, enabled by the item's own `capabilities.cancel`. - Add v1 and v2 tests for the stable `systemPrompt` validators. Co-Authored-By: Claude <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Updates the bindings to schema v1.30.0 and v2.0.0-alpha.14.
Schema changes
SystemPrompt,SystemPromptModeand theSessionSystemPrompt*Capabilitiestypes, and acceptsystemPromptonsession/new,session/load(v1) andsession/resume.systemPromptonsession/forkstays unstable.systemPrompton requests is strict, so a malformed value fails with-32602instead of creating a session without the prompt, andnullmeans omitted. A malformedsystemPromptcapability means no support.Docs
MIGRATION_STABLE_UNSTABLE.mdusedSystemPromptas its example of an unstable-only import. It now usesForkSessionRequest, and the bullet covers onlysession/fork.systemPromptunstable.ActiveSession.cancelToolCall/cancelTerminal: a subagent's tool calls and terminals are reported in its child session. They are cancelled throughClientContext.requestwith the child'ssessionId, enabled by the item's owncapabilities.cancel(agent-client-protocol#2767).Checked, no change needed
session/set_modelink fixes. Neither is copied in this repo.Tests
New v1 and v2 tests for the stable
systemPromptvalidators.npm run checkpasses.