Skip to content

Commit 2c5041b

Browse files
committed
Merge branch 'upstream-main'
Change-Id: I190a4c47db0efdc54acae7e0ceceb711c85ade02 Signed-off-by: Thomas Kosiewski <tk@coder.com>
2 parents f952023 + 423e2cd commit 2c5041b

48 files changed

Lines changed: 5491 additions & 1888 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
- name: Check formatting
5252
run: npm run format:check
5353

54+
- name: Check for typos
55+
uses: crate-ci/typos@8e6a4285bcbde632c5d79900a7779746e8b7ea3f
56+
with:
57+
config: ./typos.toml
58+
5459
- name: Lint
5560
run: npm run lint
5661

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Packages
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
publish-rust:
8+
runs-on: ubuntu-latest
9+
environment: release # Optional: for enhanced security
10+
permissions:
11+
contents: read
12+
id-token: write # Required for OIDC token exchange
13+
steps:
14+
- name: Setup Rust
15+
uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48
16+
with:
17+
toolchain: nightly,stable
18+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
19+
- uses: rust-lang/crates-io-auth-action@e919bc7605cde86df457cf5b93c5e103838bd879
20+
id: auth
21+
- run: cargo publish
22+
env:
23+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
24+
publish-npm:
25+
runs-on: ubuntu-latest
26+
environment: release # Optional: for enhanced security
27+
permissions:
28+
contents: read
29+
id-token: write
30+
steps:
31+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
32+
# Setup .npmrc file to publish to npm
33+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
34+
with:
35+
node-version: "lts/*"
36+
registry-url: "https://registry.npmjs.org"
37+
- name: Update npm
38+
run: npm install -g npm@latest
39+
- run: npm ci
40+
- run: npm run build
41+
- run: npm publish

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ All paths in the protocol should be absolute
3535
- Run `npm run check` to make sure the json and zod schemas gets generated properly
3636
- Params and responses docs make it to the schema, but the method-level docs, so make sure to update the typescript library accordingly.
3737

38-
Never write readme files related to the conversation unless explictly asked to.
38+
Never write readme files related to the conversation unless explicitly asked to.

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Changelog
2+
3+
## 0.4.1 (2025-09-22)
4+
5+
### Protocol
6+
7+
**Unstable** initial support for model selection.
8+
9+
## 0.4.0 (2025-09-17)
10+
11+
### Protocol
12+
13+
No changes.
14+
15+
### Rust Library
16+
17+
- Make `Agent` and `Client` dyn compatible (you'll need to annotate them with `#[async_trait]`) [#97](https://github.com/zed-industries/agent-client-protocol/pull/97)
18+
- `ext_method` and `ext_notification` methods are now more consistent with the other trait methods [#95](https://github.com/zed-industries/agent-client-protocol/pull/95)
19+
- There are also distinct types for `ExtRequest`, `ExtResponse`, and `ExtNotification`
20+
- Rexport `serde_json::RawValue` for easier use [#95](https://github.com/zed-industries/agent-client-protocol/pull/95)
21+
22+
### Typescript Library
23+
24+
- Use Stream abstraction instead of raw byte streams [#93](https://github.com/zed-industries/agent-client-protocol/pull/93)
25+
- Makes it easier to use with websockets instead of stdio
26+
- Improve type safety for method map helpers [#94](https://github.com/zed-industries/agent-client-protocol/pull/94)

0 commit comments

Comments
 (0)