Skip to content

feat(acp): adopt schema 1.21.0 and re-export IndexMap - #516

Merged
benbrandt merged 1 commit into
mainfrom
feat/schema-1.21.0
Nov 21, 2026
Merged

benbrandt merged 1 commit into
mainfrom
feat/schema-1.21.0

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Bumps agent-client-protocol-schema to 1.21.0 (schemas v1.34.1 / v2.0.0-beta.2). The release changes no message. It re-exports IndexMap from the schema crate and renames one docs link.

Changed

  • agent_client_protocol::schema::IndexMap is new. It is the map type of the schema's ordered maps: the fields of every Other* variant, ElicitationSchema::properties, ElicitationAcceptAction::content, and SetProviderRequest::headers. Since schema 1.20, building one of these by name needed a direct indexmap dependency.
  • The core crate's indexmap dev-dependency and the workspace entry are gone. The tests use the re-export.

Tests and docs

  • tests/schema_1_21.rs builds a v1 unknown state, a v2 unknown content block and the content of an accepted form from the re-exported type: 3 tests with all features, 2 without. It has no #![allow], and the four touched test files compile without warnings under every pair of crate features.
  • md/protocol-v2.md gains a short Schema 1.21 section. The Schema 1.20 text and md/features.md no longer tell users to add indexmap.

Checked, no change needed

  • The JSON schemas have no structural change. Two descriptions per schema changed: the link to the request cancellation page now reads "Request Cancellation".
  • The spec pages changed only in navigation order and that page's title.

Verification

just test (1,613 tests), cargo clippy and cargo clippy --all-targets --all-features --locked with no warnings, the three wasm clippy commands from CI, the nightly docs.rs build, the WASI docs build, cargo deny --all-features check, cargo fmt --check and typos pass. I did not run the depth-2 feature powerset or the MSRV job locally.

Schema 1.21.0 (schemas v1.34.1 / v2.0.0-beta.2) changes no message. It
re-exports `IndexMap` from the schema crate and renames one docs link.

- `agent_client_protocol::schema::IndexMap` is new. It is the map type
  of the schema's ordered maps, which needed a direct `indexmap`
  dependency to name since schema 1.20.
- The core crate's `indexmap` dev-dependency and the workspace entry are
  gone. The tests use the re-export.
- tests/schema_1_21.rs builds a v1 unknown state, a v2 unknown content
  block and the content of an accepted form from the re-exported type.
- md/protocol-v2.md gains a Schema 1.21 section. The Schema 1.20 text and
  md/features.md no longer tell users to add `indexmap`.
@benbrandt
benbrandt enabled auto-merge (squash) November 21, 2026 12:38
@benbrandt
benbrandt merged commit 6c2ac52 into main Nov 21, 2026
14 checks passed
@benbrandt
benbrandt deleted the feat/schema-1.21.0 branch November 21, 2026 12:44
This was referenced Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant