Skip to content

Commit 47347a4

Browse files
ZhiXiao-Linclaude
andauthored
chore(release): v4.2.1 — fix Python SDK wheel build (#80)
The 4.2.0 release published to crates.io and npm but the Python SDK wheel build failed (so PyPI + GitHub Release were skipped): error[E0063]: missing field `allow_manual_delegation` in initializer of `AutoDelegationConfig` The `PyAutoDelegationConfig -> AutoDelegationConfig` conversion used a struct literal that didn't include the `allow_manual_delegation` field added to the core config. Core CI never caught it because the SDKs are excluded from the core workspace and only built at release time (maturin). The Node SDK was fine — it builds the config via `Default::default()` + field assignment. Fix: the Python conversion now uses `..Default::default()` for fields it does not expose, so new core fields can't break the wheel build again. Verified the Python SDK compiles. Version bumped 4.2.0 -> 4.2.1 to complete the release across all channels. Co-authored-by: Claude <claude@anthropic.com>
1 parent 856d3f8 commit 47347a4

13 files changed

Lines changed: 49 additions & 33 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.2.1] - 2026-06-23
9+
10+
### Fixed
11+
12+
- Python SDK wheel build (and therefore the PyPI + GitHub Release publish steps)
13+
failed for 4.2.0: the `PyAutoDelegationConfig → AutoDelegationConfig`
14+
conversion used a struct literal that omitted the `allow_manual_delegation`
15+
field added to `AutoDelegationConfig`. The conversion now falls back to core
16+
defaults for fields the Python SDK does not expose, so future core fields no
17+
longer break the wheel build. (The crates.io and npm 4.2.0 artifacts were
18+
unaffected; 4.2.1 completes the release across all channels.)
19+
820
## [4.2.0] - 2026-06-23
921

1022
### Added

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.

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "a3s-code-core"
3-
version = "4.2.0"
3+
version = "4.2.1"
44
edition = "2021"
55
authors = ["A3S Lab Team"]
66
license = "MIT"

sdk/node/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "a3s-code-node"
3-
version = "4.2.0"
3+
version = "4.2.1"
44
edition = "2021"
55
authors = ["A3S Lab Team"]
66
license = "MIT"
@@ -11,7 +11,7 @@ description = "A3S Code Node.js bindings - Native addon via napi-rs"
1111
crate-type = ["cdylib"]
1212

1313
[dependencies]
14-
a3s-code-core = { version = "4.2.0", path = "../../core", features = ["ahp", "s3", "serve"] }
14+
a3s-code-core = { version = "4.2.1", path = "../../core", features = ["ahp", "s3", "serve"] }
1515
napi = { version = "2", features = ["async", "napi6", "serde-json"] }
1616
napi-derive = "2"
1717
tokio = { version = "1.35", features = ["full"] }

sdk/node/examples/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/node/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/node/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@a3s-lab/code",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "A3S Code - Native Node.js bindings for the coding-agent runtime",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -43,11 +43,11 @@
4343
"test:helpers": "node test-helpers.mjs"
4444
},
4545
"optionalDependencies": {
46-
"@a3s-lab/code-darwin-arm64": "4.2.0",
47-
"@a3s-lab/code-linux-x64-gnu": "4.2.0",
48-
"@a3s-lab/code-linux-x64-musl": "4.2.0",
49-
"@a3s-lab/code-linux-arm64-gnu": "4.2.0",
50-
"@a3s-lab/code-linux-arm64-musl": "4.2.0",
51-
"@a3s-lab/code-win32-x64-msvc": "4.2.0"
46+
"@a3s-lab/code-darwin-arm64": "4.2.1",
47+
"@a3s-lab/code-linux-x64-gnu": "4.2.1",
48+
"@a3s-lab/code-linux-x64-musl": "4.2.1",
49+
"@a3s-lab/code-linux-arm64-gnu": "4.2.1",
50+
"@a3s-lab/code-linux-arm64-musl": "4.2.1",
51+
"@a3s-lab/code-win32-x64-msvc": "4.2.1"
5252
}
5353
}

sdk/python-bootstrap/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "a3s-code"
77
# Keep in sync with crates/code core release. The bootstrap loader fetches
88
# the matching native wheel from `https://github.com/AI45Lab/Code/releases/tag/v<version>`
99
# at import time.
10-
version = "4.2.0"
10+
version = "4.2.1"
1111
description = "A3S Code Python SDK — pure-Python bootstrap that fetches the native wheel from GitHub Releases"
1212
readme = "README.md"
1313
license = {text = "MIT"}

sdk/python-bootstrap/src/a3s_code/_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Version is the bootstrap's own version, which equals the matching native
3333
# wheel version on GH Releases. Bumped by the release workflow.
34-
__version__ = "4.2.0"
34+
__version__ = "4.2.1"
3535

3636
_DEFAULT_BASE_URL = "https://github.com/AI45Lab/Code/releases/download"
3737
_REQUEST_TIMEOUT_S = 120

sdk/python/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)