Repository navigation
feat: update to schema v1.32.0 and v2.0.0-alpha.16 - #345
Merged
Merged
Conversation
Regenerate the v1 and v2 bindings. The v2 stable entrypoint gains: - The `replay_complete` session update and `SessionUpdate.isReplayComplete`. - Subagents: `subagent_update`, `session_message`, `session_message_chunk`, the `unknown` state, `subagent` background work, and `session` tool call content, with their guards. In v1 they still need `/unstable`. The unstable entrypoints gain: - Prompt suggestions: the `prompt_suggestions_update` session update and the `session.promptSuggestions` client capability (v1 and v2). - Skills (v2): `skill` command entries, `skill` content blocks, and the `session.prompt.skill` and `session.commands.skill` capabilities. - The `speed` config option category. - `configOptions` on `session/fork`. - `path` on markdown plans. The `file` plan type is removed. The dual-version example agent ends a v2 history replay with `replay_complete`, and holds live updates and permission requests until it is sent. Handler docs cover `replay_complete`, idempotent `auth/logout`, repeated `tool_call/cancel` and `terminal/cancel`, and `session/options` before a fork.
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.
Regenerates the v1 and v2 bindings from schema v1.32.0 and v2.0.0-alpha.16.
Added to the v2 stable entrypoint
replay_complete: the session update that ends asession/resumehistory replay, withSessionUpdate.isReplayComplete./unstablein v2:subagent_update,session_message,session_message_chunk, theunknownstate,subagentbackground work, andsessiontool call content, with their guards. In v1 they are still unstable.Added to the unstable entrypoints
prompt_suggestions_updatesession update and thesession.promptSuggestionsclient capability. A suggestion the client cannot parse is skipped, and the rest are kept.skillcommand entries,skillcontent blocks, and thesession.prompt.skillandsession.commands.skillcapabilities. A malformedskillblock fails the prompt. It is not kept as an unknown content type.speedconfig option category.configOptionsonsession/fork. Entries stay strict, andnullmeans an empty list.pathon markdown plans.Removed
fileplan type (PlanFile), from the unstable entrypoints. In v2 a receivedfileplan parses as an unknown plan type.Beyond the regenerated files
src/examples/dual-version-agent.tsends a v2 history replay withreplay_complete, also for an empty history, and never withoutreplayFrom. The example allows a resume while a turn is running, so it also holds that turn's live updates and its permission request untilreplay_completeis sent.src/v2/acp.tsandsrc/v1/acp.tscoverreplay_complete, idempotentauth/logout,-32602for a repeatedtool_call/cancelorterminal/cancel, andsession/optionswith the source session's ID before a fork.MIGRATION_STABLE_UNSTABLE.mdlists subagents as stable in v2 and adds the new unstable items.scripts/generate.jsonly changes the two release tags. The release adds variants to existing extensible unions and no new unions, so the union lists are unchanged.The other spec prose changes in this release (unknown command types must not be shown as slash commands,
thought_levelvalue ordering, session-directed message rules) needed no SDK changes.npm run checkpasses.