Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
14 changes: 14 additions & 0 deletions python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions rust/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading