Skip to content

Commit f01c266

Browse files
authored
Publish schema (#156)
* Publish schema * Prep v0.4.7
1 parent 935857f commit f01c266

4 files changed

Lines changed: 45 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,35 @@ jobs:
2121
- run: cargo publish
2222
env:
2323
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
24+
25+
publish-schema:
26+
runs-on: ubuntu-latest
27+
permissions:
28+
contents: write
29+
steps:
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
31+
- name: Setup Rust
32+
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c
33+
with:
34+
toolchain: nightly,stable
35+
components: rustfmt
36+
- name: Setup Node
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: "lts/*"
40+
cache: "npm"
41+
- name: Install dependencies
42+
run: npm ci
43+
- name: Generate schema
44+
run: npm run generate
45+
- name: Create release if missing
46+
run: |
47+
tag="${GITHUB_REF#refs/tags/}"
48+
if ! gh release view "$tag" >/dev/null 2>&1; then
49+
gh release create "$tag" --title "$tag"
50+
fi
51+
- name: Upload schema assets
52+
if: startsWith(github.ref, 'refs/tags/')
53+
run: |
54+
tag="${GITHUB_REF#refs/tags/}"
55+
gh release upload "$tag" schema.json meta.json --clobber

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.4.7 (2025-10-13)
4+
5+
### Protocol
6+
7+
- Schema uploaded to GitHub releases
8+
9+
### Rust
10+
11+
- SDK has moved to https://github.com/agentclientprotocol/rust-sdk
12+
- Start publishing schema types to crates.io: https://crates.io/crates/agent-client-protocol-schema
13+
314
## 0.4.6 (2025-10-10)
415

516
### Protocol

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "agent-client-protocol-schema"
33
authors = ["Zed <hi@zed.dev>"]
4-
version = "0.4.6"
4+
version = "0.4.7"
55
edition = "2024"
66
license = "Apache-2.0"
77
description = "A protocol for standardizing communication between code editors and AI coding agents"

0 commit comments

Comments
 (0)