diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 4bb6ab9b..96b1c751 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -70,11 +70,27 @@ jobs: - name: Package the macro and its SDK shell: bash run: | - cargo package --locked -p apcore-macros - # Cargo resolves the normalized SDK manifest against crates.io. - # Provide the same macro locally while the candidate is unpublished. - cargo --config "patch.crates-io.apcore-macros.path='$PWD/apcore-macros'" \ - package --locked -p apcore --all-features + # Package both workspace crates together to stage the macro in + # Cargo's temporary registry. Keep the published dependency and its + # checksum in the SDK archive's lockfile. + rustup toolchain install 1.100.0 --profile minimal + cargo +1.100.0 package --locked --all-features -p apcore -p apcore-macros + python3 - <<'PYTHON' + import hashlib + from pathlib import Path + import tarfile + import tomllib + + sdk, = Path("target/package").glob("apcore-[0-9]*.crate") + macros, = Path("target/package").glob("apcore-macros-[0-9]*.crate") + with tarfile.open(sdk) as archive: + lockfile = archive.extractfile(f"{sdk.stem}/Cargo.lock") + assert lockfile is not None + lock = tomllib.loads(lockfile.read().decode("utf-8")) + macro, = (package for package in lock["package"] if package["name"] == "apcore-macros") + assert macro["source"] == "registry+https://github.com/rust-lang/crates.io-index" + assert macro["checksum"] == hashlib.sha256(macros.read_bytes()).hexdigest() + PYTHON - name: Run downstream examples against the packaged crate shell: bash env: diff --git a/CHANGELOG.md b/CHANGELOG.md index aedfe1d6..783805b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.0-beta.1] + +This prerelease pairs the Core SDKs with the Protocol 2.0.0 draft revision 5. +Install `apcore==1.0.0b1` for Python, `apcore-js@1.0.0-beta.1` for TypeScript, +or `apcore = "=1.0.0-beta.1"` for Rust. Surface adapters continue on their +own version lines. + +Applications that use YAML configuration, filesystem discovery, or managed +system modules should select the appropriate extension profile. The new +approval defaults can reject formerly ungated calls. Configure a compatible +approval handler and review destructive module policy before upgrading. +The [approval cutover guide](docs/guides/cookbook-approval-flow.md) covers +pending records and scoped handlers. + ### Added - Add governed typed Python module handles, TypeScript Standard Schema declarations, and optional Rust module macros and packs. diff --git a/docs/index.md b/docs/index.md index 4fd469d7..3ad3f91b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -24,7 +24,7 @@ A schema makes a capability contract machine-readable and validatable. It does n | Component | Package | Stable | In development | |---|---|---|---| -| Protocol specification | [protocol-spec.md](spec/protocol-spec.md) | `1.66.0` | `2.0.0` (draft revision 4) | +| Protocol specification | [protocol-spec.md](spec/protocol-spec.md) | `1.66.0` | `2.0.0` (draft revision 5) | | Python SDK | `apcore` | `0.33.0` | `1.0.0b1` | | TypeScript SDK | `apcore-js` | `0.33.0` | `1.0.0-beta.1` | | Rust SDK | `apcore` | `0.33.0` | `1.0.0-beta.1` | diff --git a/python/CHANGELOG.md b/python/CHANGELOG.md index 94b56295..4f981b72 100644 --- a/python/CHANGELOG.md +++ b/python/CHANGELOG.md @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.0b1] + +### Added + +- Expose governed typed module handles and normalize typed inputs and results across calls and streams. +- Share a `CallBudget` across a call tree. A running module can report progress and request input through callbacks on its `Context`. +- Bind approval resumption, scoped discovery and schema lookup to the caller's authority. + +### Changed + +- The default package supports in-memory execution. Use `apcore.full` and install the `all` extra for the complete host assembly, or install the extension extras the application uses. +- The built-in approval gate rejects approval-required calls without a handler and gates destructive calls by default. Review the policy and persisted approvals before upgrading. +- Reuse an event loop per synchronous calling thread and bound nested execution workers. + ## [1.0.0a1] ### Added diff --git a/rust/CHANGELOG.md b/rust/CHANGELOG.md index 1f557442..b42df23a 100644 --- a/rust/CHANGELOG.md +++ b/rust/CHANGELOG.md @@ -14,6 +14,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.0-beta.1] + +### Added + +- Provide governed typed module declarations and packs through the optional `macros` feature. The SDK depends on the same-version `apcore-macros` crate, which is published first. +- Share a call budget, progress reporting, and elicitation callbacks across a call tree. +- Bind approval resumption, scoped discovery and schema lookup to the caller's authority. + +### Changed + +- The default features support the in-memory Core profile. Enable `full` for the host assembly or choose the individual extensions the application uses. Enable `macros` separately for typed declarations. +- The built-in approval gate rejects approval-required calls without a handler and gates destructive calls by default. Review the policy and persisted approvals before upgrading. + ## [1.0.0-alpha.1] ### Added diff --git a/typescript/CHANGELOG.md b/typescript/CHANGELOG.md index dbcb15fa..cf303ea7 100644 --- a/typescript/CHANGELOG.md +++ b/typescript/CHANGELOG.md @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.0-beta.1] + ### Added - Add portable observability, explicit runtime profiles, and instance-owned Node discovery, lifecycle, and system module assembly. +- Define typed governed modules from Standard Schema and share a `CallBudget` across a call tree. Running modules can report progress and request input through callbacks on their `Context`. +- Bind approval resumption, scoped discovery and schema lookup to the caller's authority. ### Changed