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
34 changes: 14 additions & 20 deletions .github/workflows/core-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,6 @@ jobs:
exit 1
fi
fi
if [[ "$CORE_MODE" == candidate ]]; then
# Test the candidate against this Surface release's source. The
# ordinary CI manifests remain pinned to their reviewed Core.
python - "$GITHUB_WORKSPACE" "$PWD" <<'PY'
import sys
from pathlib import Path

root, component = (Path(value) for value in sys.argv[1:])
for manifest in {component / "pyproject.toml", root / "toolkit/python/pyproject.toml"}:
text = manifest.read_text()
if text.count("1.0.0a5") != 1:
raise ValueError(f"Unexpected Core dependency in {manifest}")
manifest.write_text(text.replace("1.0.0a5", "1.0.0b1"))
PY
fi
args=(-e '.[dev]')
if [[ "$COMPONENT" != toolkit ]]; then
args+=(-e "$GITHUB_WORKSPACE/toolkit/python[http-proxy]")
Expand Down Expand Up @@ -318,21 +303,26 @@ jobs:
roots+=("$PWD")
fi
for root in "${roots[@]}"; do
CORE_ROOT="$core_root" TOOLKIT_ROOT="$toolkit" ROOT="$root" node --input-type=module <<'JS'
(
cd "$root"
saved=$(mktemp -d)
cp package.json pnpm-lock.yaml "$saved/"
trap 'cp "$saved/package.json" "$saved/pnpm-lock.yaml" .; rm -rf "$saved"' EXIT
CORE_ROOT="$core_root" TOOLKIT_ROOT="$toolkit" node --input-type=module <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';

const file = join(process.env.ROOT, 'package.json');
const file = 'package.json';
const manifest = JSON.parse(readFileSync(file, 'utf8'));
manifest.pnpm ??= {};
const overrides = manifest.pnpm.overrides ??= {};
overrides['apcore-js'] = 'link:' + process.env.CORE_ROOT;
if (process.env.ROOT !== process.env.TOOLKIT_ROOT) {
if (process.cwd() !== process.env.TOOLKIT_ROOT) {
overrides['apcore-toolkit'] = 'link:' + process.env.TOOLKIT_ROOT;
}
writeFileSync(file, JSON.stringify(manifest, null, 2) + '\n');
JS
pnpm --dir "$root" install --no-frozen-lockfile
pnpm install --no-frozen-lockfile
)
pnpm --dir "$root" build
done
for root in "${roots[@]}"; do
Expand Down Expand Up @@ -367,6 +357,10 @@ jobs:
JS
)
done
core_version=0.33.0
if [[ "$CORE_MODE" == candidate ]]; then core_version=1.0.0-beta.1; fi
bash "$GITHUB_WORKSPACE/scripts/verify-typescript-surface-package.sh" \
"$COMPONENT" "$core_package" "$core_version"
- run: pnpm lint
if: matrix.component != 'toolkit'
- run: pnpm typecheck
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

env:
CORE_REF: e4e2329de4ce8fa45669572ef9bd81c48da0d746
CORE_REF: dfc747852c4178f20ccc8d3b03933d28b8f89147

jobs:
test:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
with:
python-version: ${{ matrix.version }}
- &build-core-wheel
name: Build the in-review Core wheel
name: Build the pinned Core wheel
run: |
python -m pip install build
python -m build --wheel --outdir "$RUNNER_TEMP/core-wheel" "$GITHUB_WORKSPACE/.ci-apcore-core/python"
Expand Down
34 changes: 13 additions & 21 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ permissions:
contents: read

env:
# The released lockfiles already reference these prereleases. Bootstrap CI
# from the reviewed Core commit while those versions are unpublished.
CORE_REF: e4e2329de4ce8fa45669572ef9bd81c48da0d746
CORE_CRATE_VERSION: 1.0.0-alpha.5
CORE_CRATE_SHA256: 1d19939071ba2c589815c061dfb1ff827862e5f1f52251e88297d49eec500a90
# MCP uses the native Context interactions from the paired Core candidate.
MCP_CORE_REF: a3fe0245eecf65bb57c7cca324a7a7b29c6ff553
MCP_CORE_CRATE_VERSION: 1.0.0-beta.1
MCP_CORE_CRATE_SHA256: 3b92d75b37a1a8349d47c8aa32b452c67e92171e85391d6c24ce8b3e2bef22d4
# Bootstrap the registry-shaped lockfiles from the reviewed Core commit
# while the matching prerelease is unpublished.
CORE_REF: dfc747852c4178f20ccc8d3b03933d28b8f89147
CORE_CRATE_VERSION: 1.0.0-beta.1
CORE_CRATE_SHA256: e7f98adc75722b5b39d6df501162fef2efe829a3e37e3a806368633b3e3c7279

jobs:
source:
Expand All @@ -52,7 +48,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
repository: aiperceivable/apcore
ref: ${{ matrix.component == 'mcp' && env.MCP_CORE_REF || env.CORE_REF }}
ref: ${{ env.CORE_REF }}
path: .ci-apcore-core
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
Expand Down Expand Up @@ -95,7 +91,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
repository: aiperceivable/apcore
ref: ${{ matrix.component == 'mcp' && env.MCP_CORE_REF || env.CORE_REF }}
ref: ${{ env.CORE_REF }}
path: .ci-apcore-core
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
Expand All @@ -107,18 +103,14 @@ jobs:
shell: bash
env:
CARGO_TARGET_DIR: ${{ runner.temp }}/core-dependency-target
PINNED_CORE_VERSION: ${{ matrix.component == 'mcp' && env.MCP_CORE_CRATE_VERSION || env.CORE_CRATE_VERSION }}
PINNED_CORE_SHA256: ${{ matrix.component == 'mcp' && env.MCP_CORE_CRATE_SHA256 || env.CORE_CRATE_SHA256 }}
PINNED_CORE_VERSION: ${{ env.CORE_CRATE_VERSION }}
PINNED_CORE_SHA256: ${{ env.CORE_CRATE_SHA256 }}
run: |
git rev-parse HEAD
rustup toolchain install 1.86.0 --profile minimal
# Core was already verified upstream. Reproduce the same archive.
if [[ -f apcore-macros/Cargo.toml ]]; then
cargo +1.86.0 --config "patch.crates-io.apcore-macros.path='$PWD/apcore-macros'" \
package --locked -p apcore --all-features --no-verify
else
cargo +1.86.0 package --locked --all-features --no-verify
fi
rustup toolchain install 1.100.0 --profile minimal
# Match Core's workspace packaging so its SDK lock records the
# packaged macro checksum and registry source.
cargo +1.100.0 package --locked --no-verify --all-features -p apcore -p apcore-macros
archive="$CARGO_TARGET_DIR/package/apcore-$PINNED_CORE_VERSION.crate"
printf '%s %s\n' "$PINNED_CORE_SHA256" "$archive" | sha256sum --check
mkdir "$RUNNER_TEMP/core-dependency"
Expand Down
32 changes: 6 additions & 26 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- '*/typescript/**'
- '*/conformance/**'
- '.github/workflows/typescript.yml'
- 'scripts/verify-typescript-surface-package.sh'
pull_request:
paths: *typescript-paths
workflow_dispatch:
Expand All @@ -15,7 +16,7 @@ permissions:
contents: read

env:
CORE_REF: e4e2329de4ce8fa45669572ef9bd81c48da0d746
CORE_REF: dfc747852c4178f20ccc8d3b03933d28b8f89147

jobs:
test:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
with:
version: '10.30.1'
- &build-core-npm
name: Build the in-review Core npm distribution
name: Build the pinned Core npm distribution
run: |
core="$GITHUB_WORKSPACE/.ci-apcore-core/typescript"
pnpm --dir "$core" install --frozen-lockfile
Expand Down Expand Up @@ -134,27 +135,6 @@ jobs:
env:
COMPONENT: ${{ matrix.component }}
run: |
temporary=$(mktemp -d)
pnpm pack --pack-destination "$temporary"
if [[ "$COMPONENT" != toolkit ]]; then
toolkit="$GITHUB_WORKSPACE/toolkit/typescript"
pnpm --dir "$toolkit" pack --pack-destination "$temporary"
fi
archives=( "$temporary"/*.tgz "$RUNNER_TEMP"/apcore-js-*.tgz )
toolkit_archive=( "$temporary"/apcore-toolkit-*.tgz )
cd "$temporary"
npm init -y
npm install "${archives[@]}"
node --input-type=module - "apcore-$COMPONENT" "${toolkit_archive[0]}" <<'JS'
import assert from 'node:assert/strict';
import { readFileSync, realpathSync } from 'node:fs';
import { resolve } from 'node:path';

const [, , name, toolkitArchive] = process.argv;
const lock = JSON.parse(readFileSync('package-lock.json', 'utf8'));
const lockedToolkit = lock.packages['node_modules/apcore-toolkit'].resolved;
assert.ok(lockedToolkit.startsWith('file:'));
assert.equal(realpathSync(resolve(lockedToolkit.slice('file:'.length))), realpathSync(toolkitArchive));
await import(name);
if (name === 'apcore-toolkit') await import(name + '/browser');
JS
archives=( "$RUNNER_TEMP"/apcore-js-*.tgz )
bash "$GITHUB_WORKSPACE/scripts/verify-typescript-surface-package.sh" \
"$COMPONENT" "${archives[0]}" 1.0.0-beta.1
2 changes: 2 additions & 0 deletions a2a/docs/features/server-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ returns `-32009` with the request ID and does not dispatch the operation.

`ListTasks` scopes results to the authenticated caller before applying
filters and pagination. The last page includes an empty `nextPageToken`.
In TypeScript, the SDK in-memory store includes tasks whose status timestamp
equals `statusTimestampAfter`. Custom stores receive the original cutoff.

The Rust A2A 1.0 interface advertises its implemented capabilities in the
Agent Card. The modern streaming and push operations return their respective
Expand Down
14 changes: 14 additions & 0 deletions a2a/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.8a2] - Unreleased

### Added

- Pilot opt-in hosted media links derived from the final validated A2A output.

### Changed

- Require Core `1.0.0b1`.

### Fixed

- Preserve legacy JSON-RPC requests with omitted or empty version headers. Reject unsupported explicit versions with `-32009` before dispatch and preserve the request identifier. [PR #132](https://github.com/aiperceivable/apcore-surfaces/pull/132)

## [0.8.8a1] - Unreleased

### Added
Expand Down
2 changes: 1 addition & 1 deletion a2a/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Framework :: AsyncIO",
]
dependencies = [
"apcore[config,discovery]==1.0.0a5",
"apcore[config,discovery]==1.0.0b1",
"apcore-toolkit==0.15.1a2",
"a2a-sdk[http-server]>=1.1.2",
"starlette>=0.40.0",
Expand Down
10 changes: 10 additions & 0 deletions a2a/rust/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.7-alpha.2] - Unreleased

### Added

- Implement versioned A2A 1.0 JSON-RPC task send, get, cancel, and scoped listing. Advertise the implemented capabilities in the Agent Card. A2A 1.0 streaming, push notifications, and task continuation remain unsupported. Legacy streaming remains available. [PR #132](https://github.com/aiperceivable/apcore-surfaces/pull/132)

### Changed

- Require Core `1.0.0-beta.1`. Published-package validation through APEXE remains pending. [Issue #119](https://github.com/aiperceivable/apcore-surfaces/issues/119)

## [0.8.7-alpha.1] - Unreleased

### Added
Expand Down
6 changes: 3 additions & 3 deletions a2a/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion a2a/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ default = []
openapi = ["apcore-toolkit/http-proxy"]

[dependencies]
apcore = { version = "=1.0.0-alpha.5", default-features = false, features = ["discovery", "sys-modules"] }
apcore = { version = "=1.0.0-beta.1", default-features = false, features = ["discovery", "sys-modules"] }
# `default-features = false` so `http-proxy` — a *default* feature of the
# toolkit — is reached through this crate's `openapi` feature instead of being
# enabled unconditionally. The unconditional import (`deep_resolve_refs`) is
Expand Down
11 changes: 11 additions & 0 deletions a2a/typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.9-alpha.2] - Unreleased

### Changed

- Require `[email protected]`.

### Fixed

- Preserve request ID `0` in unsupported-version errors. Keep omitted status filters unfiltered and include mandatory paging fields for empty and final pages. [PR #132](https://github.com/aiperceivable/apcore-surfaces/pull/132)
- Apply the inclusive `statusTimestampAfter` cutoff before counting and paging results in the SDK in-memory store. Compare sub-millisecond timestamps at nanosecond precision. [PR #133](https://github.com/aiperceivable/apcore-surfaces/pull/133)

## [0.8.9-alpha.1] - Unreleased

### Added
Expand Down
2 changes: 1 addition & 1 deletion a2a/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@a2a-js/sdk": ">=1.0.1",
"apcore-js": "1.0.0-alpha.5",
"apcore-js": "1.0.0-beta.1",
"apcore-toolkit": "0.15.1-alpha.2",
"express": "^5.1.0",
"jsonwebtoken": "^9.0.3",
Expand Down
14 changes: 7 additions & 7 deletions a2a/typescript/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions cli/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to apcore-cli (Python SDK) will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.14.2a2] - Unreleased

### Changed

- Require Core `1.0.0b1`.

### Fixed

- Fail standalone startup when Toolkit reports registration errors for commands or binding files. Report the rejected modules instead of starting with a partial command set. [PR #131](https://github.com/aiperceivable/apcore-surfaces/pull/131)

## [0.14.2a1] - Unreleased

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion cli/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Environment :: Console",
]
dependencies = [
"apcore[config,discovery]==1.0.0a5",
"apcore[config,discovery]==1.0.0b1",
"apcore-toolkit[http-proxy]==0.15.1a2",
"click>=8.1",
"jsonschema>=4.20",
Expand Down
Loading
Loading