From 4619355e6315d89a31f3f05da4bcb00e0d9d3ac1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 04:12:53 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/ap-accounts-skill.md | 6 - .changeset/ap-approvals-skill.md | 8 -- .changeset/ap-desktop-skill.md | 7 -- .changeset/ap-devices-skill.md | 6 - .changeset/ap-git-hygiene-skill.md | 9 -- .changeset/ap-memory-skill.md | 9 -- .changeset/ap-sentinel-skill.md | 9 -- .changeset/app-pack-refusals-fail-closed.md | 6 - .changeset/app-pack-refuse-internal-files.md | 6 - .changeset/app-ui-bridge-mount-prefix.md | 5 - .changeset/app-ui-page-subpaths.md | 5 - .changeset/approvals-cancel-pending.md | 7 -- .changeset/beige-birds-auto.md | 5 - .changeset/billing-asset-rule-22.md | 6 - .changeset/billing-cap-admission.md | 8 -- .changeset/billing-host-fx-quote.md | 5 - .changeset/billing-k2a-repay-verb.md | 6 - .changeset/billing-k2b-fallback.md | 5 - .changeset/billing-k2b-open-period.md | 5 - .changeset/billing-k2b-overdraft-field.md | 5 - .changeset/billing-k2d-one-case.md | 5 - .changeset/billing-limit-no-fiat.md | 6 - .changeset/billing-overdraft-draw-order.md | 7 -- .../billing-postgres-storage-adapter.md | 6 - .changeset/billing-r8-overdraft-limit.md | 6 - .changeset/billing-storage-contract-suite.md | 5 - .changeset/brass-zebra-auto.md | 5 - .changeset/codex-caller-thread-claim.md | 5 - .changeset/file-delete-description.md | 5 - .changeset/fs-pitfall-wording.md | 5 - .changeset/generic-example-names.md | 9 -- .changeset/gold-rats-auto.md | 5 - .changeset/hazel-finch-auto.md | 6 - .changeset/ivory-rats-auto.md | 6 - .changeset/linen-owls-auto.md | 9 -- .changeset/lot-10f-tool-family-docs.md | 6 - .changeset/mocha-bison-auto.md | 5 - .changeset/pairing-key-recovery.md | 7 -- .changeset/pearl-seals-auto.md | 6 - .changeset/pr-2958-agentic.md | 5 - .changeset/pr-2978-agentic.md | 5 - .changeset/pr-3041-agentic.md | 5 - .changeset/quiet-mcp-imports.md | 7 -- .changeset/quiet-signal-lines.md | 6 - .changeset/reach-permission-ask.md | 6 - .changeset/remove-legacy-tool-docs-list.md | 6 - .changeset/runtime-tool-surface-followups.md | 5 - .changeset/runtime-tool-surface.md | 5 - .changeset/sage-voles-auto.md | 6 - .changeset/sand-moles-auto.md | 9 -- .changeset/session-lifecycle-tool-docs.md | 5 - .changeset/session-observe-tool-docs.md | 5 - .changeset/skill-pack-render-functions.md | 5 - .changeset/skills-ap-stale-fixes.md | 10 -- .changeset/skills-lot6b-pb-playbooks.md | 5 - .../skills-staging-pack-build-manifest.md | 6 - .changeset/slate-birds-auto.md | 6 - .changeset/sourcemap-absolute-build-paths.md | 7 -- .changeset/storage-port-floor-contract.md | 7 -- .changeset/storage-port-keyed-lookup.md | 13 -- .changeset/storage-port-per-account-unit.md | 8 -- .changeset/telegram-card-presentation-body.md | 6 - .changeset/tool-docs-10d-config-bundles.md | 5 - .changeset/tool-docs-10d-models-auth.md | 5 - .changeset/tool-docs-10e-1.md | 5 - .changeset/tool-docs-10e-2.md | 5 - .changeset/tool-docs-app-families.md | 5 - .changeset/tool-docs-format.md | 5 - .changeset/tool-docs-mcp-skills-authoring.md | 5 - .changeset/tool-docs-orchestration-core.md | 9 -- .changeset/tool-docs-orchestration-runs.md | 10 -- adapters/knowledge-corpus/CHANGELOG.md | 7 ++ adapters/knowledge-corpus/package.json | 2 +- adapters/knowledge-files/CHANGELOG.md | 7 ++ adapters/knowledge-files/package.json | 2 +- adapters/mastra-agent/CHANGELOG.md | 48 +++++++ adapters/mastra-agent/package.json | 2 +- packages/app/CHANGELOG.md | 12 ++ packages/app/package.json | 2 +- packages/apps/CHANGELOG.md | 9 ++ packages/apps/package.json | 2 +- packages/billing-postgres/CHANGELOG.md | 37 ++++++ packages/billing-postgres/package.json | 2 +- packages/billing-stripe/CHANGELOG.md | 23 ++++ packages/billing-stripe/package.json | 2 +- packages/billing/CHANGELOG.md | 48 +++++++ packages/billing/package.json | 2 +- packages/bridge/CHANGELOG.md | 7 ++ packages/bridge/package.json | 2 +- packages/cli/CHANGELOG.md | 30 +++++ packages/cli/package.json | 2 +- packages/collect-cli/CHANGELOG.md | 8 ++ packages/collect-cli/package.json | 2 +- packages/collect/CHANGELOG.md | 6 + packages/collect/package.json | 2 +- packages/connector/CHANGELOG.md | 7 ++ packages/connector/package.json | 2 +- packages/corpus-cli/CHANGELOG.md | 8 ++ packages/corpus-cli/package.json | 2 +- packages/corpus-presets/CHANGELOG.md | 7 ++ packages/corpus-presets/package.json | 2 +- packages/corpus/CHANGELOG.md | 8 ++ packages/corpus/package.json | 2 +- packages/egress/CHANGELOG.md | 7 ++ packages/egress/package.json | 2 +- packages/eval-reporters/CHANGELOG.md | 7 ++ packages/eval-reporters/package.json | 2 +- packages/eval/CHANGELOG.md | 6 + packages/eval/package.json | 2 +- packages/knowledge-cascade/CHANGELOG.md | 7 ++ packages/knowledge-cascade/package.json | 2 +- packages/operator/CHANGELOG.md | 6 + packages/operator/package.json | 2 +- packages/pair-page/CHANGELOG.md | 7 ++ packages/pair-page/package.json | 2 +- packages/pairing-host/CHANGELOG.md | 12 ++ packages/pairing-host/package.json | 2 +- packages/pairing/CHANGELOG.md | 12 ++ packages/pairing/package.json | 2 +- packages/plugin-local-browser/CHANGELOG.md | 7 ++ packages/plugin-local-browser/package.json | 2 +- packages/pr-outcome/CHANGELOG.md | 46 +++++++ packages/pr-outcome/package.json | 2 +- packages/reach-chat-sdk/CHANGELOG.md | 10 ++ packages/reach-chat-sdk/package.json | 2 +- packages/reach-signal/CHANGELOG.md | 15 +++ packages/reach-signal/package.json | 2 +- packages/reach-telegram/CHANGELOG.md | 21 ++++ packages/reach-telegram/package.json | 2 +- packages/reach/CHANGELOG.md | 14 +++ packages/reach/package.json | 2 +- packages/run/CHANGELOG.md | 6 + packages/run/package.json | 2 +- packages/runtime/CHANGELOG.md | 118 ++++++++++++++++++ packages/runtime/package.json | 2 +- packages/sandbox-box/CHANGELOG.md | 6 + packages/sandbox-box/package.json | 2 +- packages/sandbox-computer/CHANGELOG.md | 6 + packages/sandbox-computer/package.json | 2 +- packages/sandbox-e2b/CHANGELOG.md | 6 + packages/sandbox-e2b/package.json | 2 +- packages/sandbox-instabox/CHANGELOG.md | 6 + packages/sandbox-instabox/package.json | 2 +- packages/sandbox/CHANGELOG.md | 9 ++ packages/sandbox/package.json | 2 +- packages/secrets/CHANGELOG.md | 6 + packages/secrets/package.json | 2 +- packages/skill-pack-agentproto/CHANGELOG.md | 50 ++++++++ packages/skill-pack-agentproto/package.json | 2 +- packages/telemetry-langfuse/CHANGELOG.md | 6 + packages/telemetry-langfuse/package.json | 2 +- packages/vscode/CHANGELOG.md | 47 +++++++ packages/vscode/package.json | 2 +- packages/wallet/CHANGELOG.md | 27 ++++ packages/wallet/package.json | 2 +- packages/workflow-ai-sdk/CHANGELOG.md | 6 + packages/workflow-ai-sdk/package.json | 2 +- packages/workflow-mastra/CHANGELOG.md | 6 + packages/workflow-mastra/package.json | 2 +- packages/workflow-runtime/CHANGELOG.md | 7 ++ packages/workflow-runtime/package.json | 2 +- packages/workspace-brain/CHANGELOG.md | 8 ++ packages/workspace-brain/package.json | 2 +- packages/worktree-agent-example/CHANGELOG.md | 6 + packages/worktree-agent-example/package.json | 2 +- packages/worktree/CHANGELOG.md | 6 + packages/worktree/package.json | 2 +- 167 files changed, 829 insertions(+), 492 deletions(-) delete mode 100644 .changeset/ap-accounts-skill.md delete mode 100644 .changeset/ap-approvals-skill.md delete mode 100644 .changeset/ap-desktop-skill.md delete mode 100644 .changeset/ap-devices-skill.md delete mode 100644 .changeset/ap-git-hygiene-skill.md delete mode 100644 .changeset/ap-memory-skill.md delete mode 100644 .changeset/ap-sentinel-skill.md delete mode 100644 .changeset/app-pack-refusals-fail-closed.md delete mode 100644 .changeset/app-pack-refuse-internal-files.md delete mode 100644 .changeset/app-ui-bridge-mount-prefix.md delete mode 100644 .changeset/app-ui-page-subpaths.md delete mode 100644 .changeset/approvals-cancel-pending.md delete mode 100644 .changeset/beige-birds-auto.md delete mode 100644 .changeset/billing-asset-rule-22.md delete mode 100644 .changeset/billing-cap-admission.md delete mode 100644 .changeset/billing-host-fx-quote.md delete mode 100644 .changeset/billing-k2a-repay-verb.md delete mode 100644 .changeset/billing-k2b-fallback.md delete mode 100644 .changeset/billing-k2b-open-period.md delete mode 100644 .changeset/billing-k2b-overdraft-field.md delete mode 100644 .changeset/billing-k2d-one-case.md delete mode 100644 .changeset/billing-limit-no-fiat.md delete mode 100644 .changeset/billing-overdraft-draw-order.md delete mode 100644 .changeset/billing-postgres-storage-adapter.md delete mode 100644 .changeset/billing-r8-overdraft-limit.md delete mode 100644 .changeset/billing-storage-contract-suite.md delete mode 100644 .changeset/brass-zebra-auto.md delete mode 100644 .changeset/codex-caller-thread-claim.md delete mode 100644 .changeset/file-delete-description.md delete mode 100644 .changeset/fs-pitfall-wording.md delete mode 100644 .changeset/generic-example-names.md delete mode 100644 .changeset/gold-rats-auto.md delete mode 100644 .changeset/hazel-finch-auto.md delete mode 100644 .changeset/ivory-rats-auto.md delete mode 100644 .changeset/linen-owls-auto.md delete mode 100644 .changeset/lot-10f-tool-family-docs.md delete mode 100644 .changeset/mocha-bison-auto.md delete mode 100644 .changeset/pairing-key-recovery.md delete mode 100644 .changeset/pearl-seals-auto.md delete mode 100644 .changeset/pr-2958-agentic.md delete mode 100644 .changeset/pr-2978-agentic.md delete mode 100644 .changeset/pr-3041-agentic.md delete mode 100644 .changeset/quiet-mcp-imports.md delete mode 100644 .changeset/quiet-signal-lines.md delete mode 100644 .changeset/reach-permission-ask.md delete mode 100644 .changeset/remove-legacy-tool-docs-list.md delete mode 100644 .changeset/runtime-tool-surface-followups.md delete mode 100644 .changeset/runtime-tool-surface.md delete mode 100644 .changeset/sage-voles-auto.md delete mode 100644 .changeset/sand-moles-auto.md delete mode 100644 .changeset/session-lifecycle-tool-docs.md delete mode 100644 .changeset/session-observe-tool-docs.md delete mode 100644 .changeset/skill-pack-render-functions.md delete mode 100644 .changeset/skills-ap-stale-fixes.md delete mode 100644 .changeset/skills-lot6b-pb-playbooks.md delete mode 100644 .changeset/skills-staging-pack-build-manifest.md delete mode 100644 .changeset/slate-birds-auto.md delete mode 100644 .changeset/sourcemap-absolute-build-paths.md delete mode 100644 .changeset/storage-port-floor-contract.md delete mode 100644 .changeset/storage-port-keyed-lookup.md delete mode 100644 .changeset/storage-port-per-account-unit.md delete mode 100644 .changeset/telegram-card-presentation-body.md delete mode 100644 .changeset/tool-docs-10d-config-bundles.md delete mode 100644 .changeset/tool-docs-10d-models-auth.md delete mode 100644 .changeset/tool-docs-10e-1.md delete mode 100644 .changeset/tool-docs-10e-2.md delete mode 100644 .changeset/tool-docs-app-families.md delete mode 100644 .changeset/tool-docs-format.md delete mode 100644 .changeset/tool-docs-mcp-skills-authoring.md delete mode 100644 .changeset/tool-docs-orchestration-core.md delete mode 100644 .changeset/tool-docs-orchestration-runs.md create mode 100644 packages/billing-postgres/CHANGELOG.md create mode 100644 packages/reach-signal/CHANGELOG.md create mode 100644 packages/reach-telegram/CHANGELOG.md diff --git a/.changeset/ap-accounts-skill.md b/.changeset/ap-accounts-skill.md deleted file mode 100644 index 7bd6193623..0000000000 --- a/.changeset/ap-accounts-skill.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": patch -"@agentproto/skill-pack-agentproto": patch ---- - -Document the account slots, account health and quota tool families and add the generated `ap-accounts` skill (read quota, find an exhausted account, swap or reorder slots, reopen an account). diff --git a/.changeset/ap-approvals-skill.md b/.changeset/ap-approvals-skill.md deleted file mode 100644 index 15b5a32752..0000000000 --- a/.changeset/ap-approvals-skill.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@agentproto/runtime": patch -"@agentproto/skill-pack-agentproto": minor ---- - -Document the approval tools (`approval_request`, `approval_get`, `approval_wait`, -`approval_consume`, `approval_cancel`) as a tool family doc, and add the -`ap-approvals` skill that teaches the ask, wait, consume flow. diff --git a/.changeset/ap-desktop-skill.md b/.changeset/ap-desktop-skill.md deleted file mode 100644 index 645e8185b6..0000000000 --- a/.changeset/ap-desktop-skill.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@agentproto/skill-pack-agentproto": minor ---- - -Add the `ap-desktop` skill covering the Claude Desktop and Codex Desktop -conversation tools (`desktop_conversation_list` / `_read` / `_create` / `_ask`), -and list it in the master map. diff --git a/.changeset/ap-devices-skill.md b/.changeset/ap-devices-skill.md deleted file mode 100644 index 0e95ed6747..0000000000 --- a/.changeset/ap-devices-skill.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": patch -"@agentproto/skill-pack-agentproto": patch ---- - -Document the pairing, devices and join-token tool families and add the generated `ap-devices` skill (pair a client, register a host machine, join a remote machine by token). diff --git a/.changeset/ap-git-hygiene-skill.md b/.changeset/ap-git-hygiene-skill.md deleted file mode 100644 index 8b29e9fb5e..0000000000 --- a/.changeset/ap-git-hygiene-skill.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/skill-pack-agentproto": minor ---- - -Document the branch-gc, worktree, maintain and pr tool families -(`branch_gc*`, `worktree_status`, `worktree_gc*`, `maintain_run`, `pr_open`) -and add the `ap-git-hygiene` skill: look before deleting, restore a branch, -open a PR, and never merge. diff --git a/.changeset/ap-memory-skill.md b/.changeset/ap-memory-skill.md deleted file mode 100644 index 35797985fc..0000000000 --- a/.changeset/ap-memory-skill.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/skill-pack-agentproto": minor ---- - -Add the `ap-memory` skill and the `memory` tool family doc covering the AIP-72 -memory tools (`memory_search`, `_list`, `_read`, `_write`, `_supersede`, -`_archive`, `_dismiss`): propose versus commit, who may commit, and the -revision rules. diff --git a/.changeset/ap-sentinel-skill.md b/.changeset/ap-sentinel-skill.md deleted file mode 100644 index 1fb06e77ba..0000000000 --- a/.changeset/ap-sentinel-skill.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/skill-pack-agentproto": minor ---- - -Document the sentinel tool family (`sentinel_watch`, `sentinel_list`, -`sentinel_routes`, `sentinel_unwatch`, `sentinel_poll_now`, -`list_sentinel_adapters`, `setup_sentinel_provider`) and add the `ap-sentinel` -skill: watch a PR or a session, force a check, stop, and set up a provider. diff --git a/.changeset/app-pack-refusals-fail-closed.md b/.changeset/app-pack-refusals-fail-closed.md deleted file mode 100644 index 2e1d74b293..0000000000 --- a/.changeset/app-pack-refusals-fail-closed.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/app": patch -"@agentproto/cli": patch ---- - -`agentproto app pack` refusals, review follow-ups: a text file over 8 MiB that cannot be scanned is now refused when content rules are set (fail closed; binary files are still skipped), and the built-in working-notes names match regardless of case (`task-brief.md`). The operator's own path globs keep their exact case. The `app pack --help` text documents the size limit. diff --git a/.changeset/app-pack-refuse-internal-files.md b/.changeset/app-pack-refuse-internal-files.md deleted file mode 100644 index af78619bd5..0000000000 --- a/.changeset/app-pack-refuse-internal-files.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/app": minor -"@agentproto/cli": minor ---- - -`agentproto app pack` now refuses to package internal working notes and operator-defined names. In `--release` mode a file named like working notes (`*BRIEF*.md`, `HANDOFF*.md`, `WORKLOG*`, `SCRATCH*`, `CLAUDE.md`, `.claude/`) fails the pack. A new `--deny-file ` option (or `AGENTPROTO_PACK_DENY_FILE`) takes `{"paths": [globs], "content": [regular expressions]}`, kept outside the app, and fails the pack when a file to ship matches a path glob or when its name or text matches a content pattern; with `--entry` the catalog metadata is checked against the content patterns too. The error lists every offending file and the rule, never the matched text. `@agentproto/app` exports `readDenyRules`, `findPackDenyViolations`, `assertNoPackDenyViolations`, `RELEASE_FORBIDDEN_PATHS` and the `forbidden-content` / `invalid-deny-rules` error codes. diff --git a/.changeset/app-ui-bridge-mount-prefix.md b/.changeset/app-ui-bridge-mount-prefix.md deleted file mode 100644 index 9e380ffc6f..0000000000 --- a/.changeset/app-ui-bridge-mount-prefix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Keep the mount prefix on the app UI bridge call served at a sub-path of `/apps//ui`. The injected bridge was pinned to the absolute `/apps//tool-call`, which drops any prefix the browser sees in front of `/apps` (for example a tunnel serving the page under `/d//apps//ui/...`) and made the call fail with 405. It now uses a relative URL sized to the page depth (`../` per sub-path segment, one more with a trailing slash), so it resolves under any prefix. `/ui` and `/ui/` are unchanged byte for byte. diff --git a/.changeset/app-ui-page-subpaths.md b/.changeset/app-ui-page-subpaths.md deleted file mode 100644 index f0e18339ee..0000000000 --- a/.changeset/app-ui-page-subpaths.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": minor ---- - -Serve an installed app's UI page at bounded sub-paths of `/apps//ui`. An app that renders several views from one page and reads its own location can now be opened at `/apps//ui///...` (at most 4 segments of `[A-Za-z0-9._-]{1,64}`; `.`/`..`, percent-escapes, `assets`, `tool-call`, `external-blob`, `manifest*`, `icon*` and `ui` segments are refused). A sub-path answers with the same page, headers and access control as `/ui`, and the same static-shell exemption from the tunnel bearer (GET only). The injected bridge pins its `tool-call` URL to the app's own route on sub-paths; `/ui` and `/ui/` are unchanged byte for byte. diff --git a/.changeset/approvals-cancel-pending.md b/.changeset/approvals-cancel-pending.md deleted file mode 100644 index 5b63de60d1..0000000000 --- a/.changeset/approvals-cancel-pending.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/reach": minor -"@agentproto/reach-telegram": patch ---- - -Approvals: new transition `pending -> cancelled` (AIP-7 reach amendment). The producer of a request cancels its own pending request, optionally naming the replacement with `supersedeBy`, through `engine.cancel`, the `approval_cancel` MCP tool and `POST /approvals/:id/cancel`. A cancel is never a signature and never consumable (`approval_consume` answers `approval_not_approved`); it appends an `approval.cancelled` audit event and emits the event of the same name, and a request that is not pending is refused with `approval_not_pending`. The REACH router closes announced cards with the new outcome `cancelled` (`ReachCloseOutcome`), and the Telegram bridge shows the card as cancelled. Older records read unchanged. diff --git a/.changeset/beige-birds-auto.md b/.changeset/beige-birds-auto.md deleted file mode 100644 index 9af9cd77ab..0000000000 --- a/.changeset/beige-birds-auto.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/cli": minor ---- - -Record installed skills, prune removed ones, add install --status diff --git a/.changeset/billing-asset-rule-22.md b/.changeset/billing-asset-rule-22.md deleted file mode 100644 index 20bf6131ef..0000000000 --- a/.changeset/billing-asset-rule-22.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/billing": patch -"@agentproto/billing-postgres": minor ---- - -Migration 0006 holds rule 22 of AIP-74 at the `account_limit` table (CHECK `account_limit_asset_form`, `^[A-Z0-9][A-Z0-9_]{1,79}$`, with a guard that fails clearly on existing lines that are not in the stored form), with real Postgres tests of the table and of the migration chain in table prefix mode, a runner guard test under `default_transaction_isolation=serializable`, and documentation on isolation and on the cap guards. `@agentproto/billing`: documentation only (why `CapsEngine.check` keeps its floating point tolerance while `admit` compares exactly). diff --git a/.changeset/billing-cap-admission.md b/.changeset/billing-cap-admission.md deleted file mode 100644 index b7f8f9c030..0000000000 --- a/.changeset/billing-cap-admission.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@agentproto/billing": minor -"@agentproto/billing-postgres": minor ---- - -Atomic cap admission (AIP-74 clause 11, A-CAP CAP4): `BillingCapStore` (`admit`, `get` on top of `CapMeter`), `createMemoryCapStore`, the canonical `capRequestHash` (SHA-256 over account, category, credits, provider cost), `CapsEngine.admit` (stored decision on replay before any cap, conflict on a changed hash, action cap refusal without a write, one atomic check-and-count for account and platform caps, alert-only actions recorded too), the `capAdmissionContractCases` suite, and in `@agentproto/billing-postgres` `PostgresCapStore` with migration 0005 (`cap_usage`, `cap_guard`). - -`CapsEngine` gains the required `admit` method: a type-level change for an external implementer of that exported interface, deliberately `minor` because `createCaps` is its only producer. diff --git a/.changeset/billing-host-fx-quote.md b/.changeset/billing-host-fx-quote.md deleted file mode 100644 index 1939ad9928..0000000000 --- a/.changeset/billing-host-fx-quote.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/billing": minor ---- - -AIP-74 E4, E5, E7. `defineBillingManifest(def, { fxRates })` takes the host's rates as decimal strings only (canonical form, a number or an invalid value is refused, collisions, anchor key and unused keys refused, `fxRates` wins over `fx`), and the handle carries `ratesDigest`. `BillingDeps.quotes` (`{ get(movement), timeoutMs? }`) lets a host freeze a rate: a fact strictly before `expiresAt` converts at the quoted rate, any unusable quote is ignored, and a failing `get` gives `{ status: "uncertain", reason: "quote_unavailable" }` with nothing written (`webhookStatus` answers 503). Conversions compute on exact decimals with one floor, from the rates as the engine holds them. Precision: rates supplied through `fxRates` (strings) are exact at any length; the literals of the file (`anchor.creditsPerUnit`, `fx`) are still read as JavaScript numbers, so they are exact only up to about 17 significant digits. Reading them from the source text of the YAML scalar is a dedicated follow-up. A payment amount above the safe integer range is refused and owed (rule 4). diff --git a/.changeset/billing-k2a-repay-verb.md b/.changeset/billing-k2a-repay-verb.md deleted file mode 100644 index 9c84e5753d..0000000000 --- a/.changeset/billing-k2a-repay-verb.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/wallet": minor -"@agentproto/billing": minor ---- - -The `repay` journal verb (AIP-49 amendment, AIP-74 O5): it raises a short lot's remaining and nothing else. The storage guard STORE-REPAY-GUARD refuses a repay on a lot whose floor is not negative or null, and one that would pass the remaining above 0. Reference storages enforce it, and the storage contract gains the case. diff --git a/.changeset/billing-k2b-fallback.md b/.changeset/billing-k2b-fallback.md deleted file mode 100644 index 6b3c734f63..0000000000 --- a/.changeset/billing-k2b-fallback.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/billing": minor ---- - -Overdraft limits follow AIP-74 as amended by agentproto#214: a manifest limit is an integer from 0 to 9007199254740991 or the word `unlimited` (never `null`, `Unlimited`, -1 or a fraction; a map whose keys normalise to one asset is refused), and a limit absent at every tier is 0 (prepaid), even when `overdraft` names the asset. `resolveLimit` / `accountLimit` return `number | "unlimited"`: the smallest open offer that carries a value wins and an integer beats `unlimited`, a 0 masks an `unlimited` below it, an account `unlimited` beats a bounded offer. New pure `spendCapacity` (O1). A limit on a fiat asset is refused (agentproto#215, rules 21 and 22: the fiat form is exactly three letters A-Z after normalisation, no ISO list; `usd` and `aip://49/usd` included), and so are a declared non-fiat asset of fiat form (`GEM`, standard internal) and a declared iso4217 asset that is not of fiat form (`EURO`). `hasFiatForm` is that one test. `periodIsOpen` does not read `startAt` (a renewal is written, and its predecessor closed, before the new period starts), `accountLimit` does. diff --git a/.changeset/billing-k2b-open-period.md b/.changeset/billing-k2b-open-period.md deleted file mode 100644 index aceb1b09ad..0000000000 --- a/.changeset/billing-k2b-open-period.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/billing": patch ---- - -An offer's overdraft tier now applies only while its period is open (`periodIsOpen`: `active` before its end, `past_due` before its grace ends, never `closed`); `activeFeatures` uses the same definition. The `overdraft` limit is bounded by `Number.MAX_SAFE_INTEGER` in the JSON schema fixture, as in zod. New storage contract case STORE-COMP-COMMIT. diff --git a/.changeset/billing-k2b-overdraft-field.md b/.changeset/billing-k2b-overdraft-field.md deleted file mode 100644 index 152d740113..0000000000 --- a/.changeset/billing-k2b-overdraft-field.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/billing": minor ---- - -Overdraft in the manifest and the payment path (AIP-74 O3, O8, O11, O12): an optional `overdraft` block (per asset limits) at the application and the offer tier, validated against the declared assets; `resolveLimit` / `accountLimit` walk account, open offers (smallest wins), application, and count a dispute as 0; `debtLotId` and `planCompensation` extinguish a standing debt in the same commit as the payment that lands credits (burn on owned unrestricted lots, expiring first, plus a `repay` on the debt lot). diff --git a/.changeset/billing-k2d-one-case.md b/.changeset/billing-k2d-one-case.md deleted file mode 100644 index 725589f7b2..0000000000 --- a/.changeset/billing-k2d-one-case.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/billing": minor ---- - -Asset refs follow AIP-74 rule 22 as amended by agentproto#216: one normalisation (the `aip://49/` prefix in lower case only, ASCII-only upper case, a full match of `^[A-Z0-9][A-Z0-9_]{1,79}$`), any other ref is rejected by the parser. New exported `canonicalAssetRef` and an ASCII-only `normalizeCurrency`; declared refs (assets, primaryAsset, conversions) go through it too, `isFiatRef` is `hasFiatForm`, `entryRatio` no longer folds `uſd` to USD; `hasFiatForm` tests the normalised ASCII ref (`uſd` is not fiat, `3M` is not). `manifestProblems` rejects a limit key or a declared asset that is not a ref, refuses two keys of one asset in two spellings, and the zod `assetRef` / `partitionId` follow the schema. The rule 21 message now reads "an asset of standard X has the fiat form". The account-limit store follows the same rule: `normalizeLimitAsset` calls `canonicalAssetRef` and refuses any other ref with the new `InvalidLimitAssetError` (a `RangeError`, code `INVALID_LIMIT_ASSET`), no trimming; `app_credits`, `APP_CREDITS` and `aip://49/app_credits` are one history. diff --git a/.changeset/billing-limit-no-fiat.md b/.changeset/billing-limit-no-fiat.md deleted file mode 100644 index bbcf81a598..0000000000 --- a/.changeset/billing-limit-no-fiat.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/billing": minor -"@agentproto/billing-postgres": minor ---- - -An account limit on a fiat asset is refused (AIP-74 O8, rule 22 fiat form: exactly three letters A-Z after normalisation): `appendAccountLimit` throws `FiatAssetLimitError` for a value, `unlimited` or a removal and writes nothing, in `MemoryOverdraftStore` and `PostgresOverdraftStore`; migration 0004 adds the matching CHECK on `account_limit.asset`. Reads of a fiat asset answer absent (`undefined`, `[]`). diff --git a/.changeset/billing-overdraft-draw-order.md b/.changeset/billing-overdraft-draw-order.md deleted file mode 100644 index c4aed8c846..0000000000 --- a/.changeset/billing-overdraft-draw-order.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@agentproto/billing": minor ---- - -**Breaking (pre-1.0 minor).** `debit` and `holds` draw lots in one shared order: owned lots first, overdraft lots last (a lot with a negative floor, `null` being the unbounded one), then soonest expiry, then oldest. The order was expiry then oldest, separately copied in each engine; a debt lot older than the owned credits could be drawn first. The order now lives in one function, `drawOrder` (with `availableOn`, `ownedOn` and `isOverdraftLot`), exported from `@agentproto/billing/spend`, and the check before the call shares it: `canPay` (what `preflight` runs) counts the payer's lots through the same function, so the affordability check and the draw it authorizes read the journal one way. New case `BILL-OVERDRAFT-ORDER`. - -Migration for a host: nothing to do unless an account already holds lots with a negative floor next to owned lots of the same asset. Amounts never change, only which lot a burn or reserve lands on: owned credits are consumed before any overdraft headroom, where an older debt lot used to be drawn before newer owned credits. Code that attributes spend by lot id (reports, expiries, per-lot restrictions) can see a different lot charged for the same amount. diff --git a/.changeset/billing-postgres-storage-adapter.md b/.changeset/billing-postgres-storage-adapter.md deleted file mode 100644 index ffb7e9e69e..0000000000 --- a/.changeset/billing-postgres-storage-adapter.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/billing-postgres": minor -"@agentproto/billing": minor ---- - -`@agentproto/billing-postgres` gains the production adapters of the journal and the state: `PostgresStoragePort` (the AIP-49 `StoragePort` over migration 0001: journal append, lot projection, one unit per account under the account row lock, `commitAcross` with sorted locks, the table constraints as the floor guard) and `PostgresBillingStateStore` (the `BillingStateStore` over migration 0002, enlisted in the running unit's transaction when built with the storage). `@agentproto/billing/testing` now exports `REFERENCE_MANIFEST`, so a store's own suite can run the transfer and BILL cases. diff --git a/.changeset/billing-r8-overdraft-limit.md b/.changeset/billing-r8-overdraft-limit.md deleted file mode 100644 index 95ac73c48b..0000000000 --- a/.changeset/billing-r8-overdraft-limit.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/billing": minor -"@agentproto/billing-postgres": minor ---- - -R8 minimal contract for the overdraft limit: `BillingOverdraftStore` (get, append, list history; the author `setBy` and a safe-integer `setAt` are required) with the limit written as an integer (0 prepaid) or the word `"unlimited"` (never null, AIP-74 O8), and an entry that removes the account tier, an in-memory reference store, and `@agentproto/billing-postgres` with migration 0003 (append-only `account_limit` history behind the account row lock) and `PostgresOverdraftStore.forPool` / `forUnit` (the latter joins a running unit and refuses another account). diff --git a/.changeset/billing-storage-contract-suite.md b/.changeset/billing-storage-contract-suite.md deleted file mode 100644 index 510ef87bb6..0000000000 --- a/.changeset/billing-storage-contract-suite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/billing": minor ---- - -The storage contract suite of AIP-74's Storage section, exported from `@agentproto/billing/contract-tests` as `storageContractCases`: the guarantees a store must keep itself, each case played on TWO connections over one store, the way two processes share one database. New cases: STORE-MINT-ZERO (a mint of amount 0 is accepted, creates its lot, and is bounded by its floor like any lot), STORE-RESERVE-SHORT (a reserve on a lot drawn below zero is accepted up to its capacity, never past it, and a null floor carries no bound), STORE-FLOOR, STORE-CUT (a cut mid-write leaves the journal whole or empty, never half, at the commit, the unit and the multi-account commit), STORE-REREAD (two reads without a write agree, on every connection), STORE-ORIGIN (every field of an event survives the write, and the fold of the stored journal equals the stored lots), STORE-CAP-COUNTER (the host's cap meter counts a key once and loses no concurrent add, so a refusal it feeds holds across connections) and STORE-EXPIRY (computed at the read from the clock, without a job). A host runs them against its real store: the kit's reference adapter gained a shared `MemoryStore` backing (`new InMemoryStorage(clock, { store })` gives one connection, several over the same store simulate several processes) and now enforces a lot created once (`STORE-MINT-ONCE`) as the storage port contract says, like `InMemoryTransactionalStore`. diff --git a/.changeset/brass-zebra-auto.md b/.changeset/brass-zebra-auto.md deleted file mode 100644 index 16a4f3c64b..0000000000 --- a/.changeset/brass-zebra-auto.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": minor ---- - -Rich Telegram approval requests (preview presentation "webview", or files the chat does not receive) now open the authenticated approval page through a single Voir button, and the page decides through the same engine; a truncated card keeps Approve/Refuse and adds Voir. With no page configured, the page form fails closed and the full request goes out in successive messages closed by the native Approve/Refuse (announce receipt `approval-page-unavailable`), capped at eight messages with an honest notice for whatever is left out. diff --git a/.changeset/codex-caller-thread-claim.md b/.changeset/codex-caller-thread-claim.md deleted file mode 100644 index 8805ae73f5..0000000000 --- a/.changeset/codex-caller-thread-claim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Attribute a codex session's MCP calls to its daemon session. A stdio bridge dialed by a daemon-spawned codex session stamps the caller as `codex:`; the daemon now maps that claim to the one session whose `adapterSessionId` is the thread, so node-scoped tools and `message_parent` work. An unknown or ambiguous thread stays an external claim. diff --git a/.changeset/file-delete-description.md b/.changeset/file-delete-description.md deleted file mode 100644 index 9239fd0f06..0000000000 --- a/.changeset/file-delete-description.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -`file_delete`: the tool description now says a directory is deleted recursively with its contents (it said "empty directory"). Behavior is unchanged. diff --git a/.changeset/fs-pitfall-wording.md b/.changeset/fs-pitfall-wording.md deleted file mode 100644 index 95cbcb9b03..0000000000 --- a/.changeset/fs-pitfall-wording.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Update the `file_delete` pitfall in the fs family doc now that the tool description is truthful, and fix the `isKnownDaemonTool` doc comment. diff --git a/.changeset/generic-example-names.md b/.changeset/generic-example-names.md deleted file mode 100644 index a9abca64cf..0000000000 --- a/.changeset/generic-example-names.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@agentproto/adapter-mastra-agent": patch -"@agentproto/app": patch -"@agentproto/operator": patch -"@agentproto/reach": patch -"@agentproto/runtime": patch ---- - -Use a generic example name in comments, tests and docs. No behavior change. diff --git a/.changeset/gold-rats-auto.md b/.changeset/gold-rats-auto.md deleted file mode 100644 index c640cc7bc9..0000000000 --- a/.changeset/gold-rats-auto.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/wallet": patch ---- - -Replace host product name with generic wording in wallet port docs diff --git a/.changeset/hazel-finch-auto.md b/.changeset/hazel-finch-auto.md deleted file mode 100644 index 5fb53d8624..0000000000 --- a/.changeset/hazel-finch-auto.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/collect": minor -"@agentproto/collect-cli": patch ---- - -Add hackernews and reddit connectors to the shipped collect set. `reddit` reads the hot listing of a subreddit through a connected browser session (the listing JSON from the page first, the rendered listing as the fallback, upvote ratio kept when the listing exposes it) and declares its reddit.com session so `collect doctor` reports it. `hackernews` searches the public API and reads each submission's article (in the `web` connector's item shape) and the submitter's karma. diff --git a/.changeset/ivory-rats-auto.md b/.changeset/ivory-rats-auto.md deleted file mode 100644 index a31dbbb85b..0000000000 --- a/.changeset/ivory-rats-auto.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/cli": minor -"@agentproto/runtime": minor ---- - -Fall back to tool family docs in help and suggest close tool names diff --git a/.changeset/linen-owls-auto.md b/.changeset/linen-owls-auto.md deleted file mode 100644 index 72111090f1..0000000000 --- a/.changeset/linen-owls-auto.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@agentproto/reach-telegram": minor -"@agentproto/reach": minor -"@agentproto/runtime": minor ---- - -Extract the Telegram reach adapter into `@agentproto/reach-telegram`. The approval card bridge, the pending-permission bridge and the attachments classifier move out of the runtime behind `ReachAdapter` seams (moved, not rewritten), while the runtime keeps only the approvals registry and ids. The engine's open-card state becomes generic per adapter (`putAdapterState`/`getAdapterState`; existing `telegram-card.json` files on disk are still read), and `decideByChannel` + `adapterChannels` replace `decideTelegram`: a decision is taken as a channel the request declared, with the same AIP-7 signature and single consumption, and the engine keeps refusing channels the host has not enabled. A new inbound path (`applyReachAnswer`) applies an adapter's answer to the judge of its subject: an approval is decided by the engine only through a declared surface, a parked permission is resolved by `respondPermission`, and anything unrecognized fails closed and leaves the subject pending. The shared attachment core (reading, resolution, the 50 MB limit) moves to `@agentproto/reach` so the files HTTP route and the adapter use one implementation. - -Note for release notes: on `GET /approvals/:id`, the decision record's `telegramUserId` field is generalized to `actorId` (the verified user id of whoever decided, whatever the surface). The AIP-53 approval-link claim keeps its `telegramUserId` wire name. diff --git a/.changeset/lot-10f-tool-family-docs.md b/.changeset/lot-10f-tool-family-docs.md deleted file mode 100644 index 23e00c43bb..0000000000 --- a/.changeset/lot-10f-tool-family-docs.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": patch -"@agentproto/cli": patch ---- - -Document the remaining file, browser, panel, daemon status and introspection tools as family docs (fs, browser, panels, daemon-status, introspection). Every daemon tool now has a family doc, so `tool_help` and `agentproto help` drop the unreachable "known tool without a doc" answer. diff --git a/.changeset/mocha-bison-auto.md b/.changeset/mocha-bison-auto.md deleted file mode 100644 index 4d86bd455b..0000000000 --- a/.changeset/mocha-bison-auto.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": minor ---- - -The MCP Apps approval card renders the one reach preview convention. `approval_card_list` (app-only) now hands each card the preview already parsed by `@agentproto/reach` (`summary`, `sections`, `links`, `attachments` — the same parser the Telegram card and the REACH message use) instead of the raw `preview`; the card page renders that model and no longer parses anything of its own. A rich preview shows its sections, links and attachments on the card; legacy preview shapes are tolerated the way every other surface tolerates them: kept on the record for the approval page, dropped by the card. diff --git a/.changeset/pairing-key-recovery.md b/.changeset/pairing-key-recovery.md deleted file mode 100644 index fe5db6dec6..0000000000 --- a/.changeset/pairing-key-recovery.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@agentproto/secrets": minor -"@agentproto/pairing": minor -"@agentproto/pairing-host": minor ---- - -Let a browser that lost its pairing key reattach to its daemon without a new QR. At first contact the client registers a random recovery secret (kept in a cookie and a separate IndexedDB store by the pair page) inside the sealed hello; the daemon stores only its rendezvous route and a hash of its proof, never the secret. When the credential is gone, the client presents the secret through the existing handshake on a recovery route, and the daemon rotates the pairing in one step: new pair root (the old key stops working), renewed secret (single-use), constant-time check, a failure ceiling, an expiry extended by every authenticated reconnect, and a `pairing_revoked` answer for a revoked device. Pairings made without a secret behave exactly as before. The hello also carries an optional `navigator.storage.persisted()` report, which the daemon logs on a `[pairing] handshake ok persisted=yes|no|unknown` line. diff --git a/.changeset/pearl-seals-auto.md b/.changeset/pearl-seals-auto.md deleted file mode 100644 index ac07073ff8..0000000000 --- a/.changeset/pearl-seals-auto.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/billing": minor -"@agentproto/wallet": minor ---- - -Add global open-reservation sweep and one-operation cross-account transfers diff --git a/.changeset/pr-2958-agentic.md b/.changeset/pr-2958-agentic.md deleted file mode 100644 index 33fc2d288c..0000000000 --- a/.changeset/pr-2958-agentic.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/skill-pack-agentproto": patch ---- - -ap-import-mcp skill: document the optional `allowTools` import-level restriction (exact names or `*` patterns), how re-imports preserve an existing list, and that an empty list allows nothing. diff --git a/.changeset/pr-2978-agentic.md b/.changeset/pr-2978-agentic.md deleted file mode 100644 index 1df4739b6f..0000000000 --- a/.changeset/pr-2978-agentic.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/billing-stripe": patch ---- - -`billing-stripe` conformance rules: add SET-24 and SET-25, covering a refund and a dispute that arrive after part of the purchase has been consumed. Both assert the core's reclaim floor takes back only what is left of the payment (never the bonus, never below zero) and that the journal keeps the cause trace with its origin. SET-24 documents that its floor lives in the core (the naive translation names the same refund), and SET-25 additionally covers the dispute's freeze on open, the trace origins, and the late win reinstating only the amount the loss took. diff --git a/.changeset/pr-3041-agentic.md b/.changeset/pr-3041-agentic.md deleted file mode 100644 index a7275af1fd..0000000000 --- a/.changeset/pr-3041-agentic.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the session lifecycle tool family and regenerate the corresponding skill reference, moving the documented tools out of the legacy list and removing the now-covered `sessions` CLI-verb mapping. diff --git a/.changeset/quiet-mcp-imports.md b/.changeset/quiet-mcp-imports.md deleted file mode 100644 index 09ca5d7bbd..0000000000 --- a/.changeset/quiet-mcp-imports.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@agentproto/runtime": patch -"@agentproto/plugin-local-browser": patch ---- - -Isolate MCP import fixtures from the user registry, back up entries before removal, and require confirmation when an active session mounts a removed import. Run imported stdio servers from their configured or registered workspace directory. -The local browser plugin follows the same registry path and backs it up before reducing the import list. diff --git a/.changeset/quiet-signal-lines.md b/.changeset/quiet-signal-lines.md deleted file mode 100644 index 730c3a1e16..0000000000 --- a/.changeset/quiet-signal-lines.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": patch -"@agentproto/reach-signal": minor ---- - -Add `@agentproto/reach-signal`, a REACH webhook receiver that relays a tell to Signal through a signal-cli REST API. A Signal route is one `webhook` line in `reach.routes`; the daemon has no Signal code. The receiver reserves each `dedupeKey` before sending, bounds its memory and the request body, validates its secret at construction, and truncates by code point. In the runtime, the approval engine no longer imports or names Telegram: the Telegram surfaces and bridge route now come from a contributor passed to `resolveApprovalSurfaces`, with unchanged behaviour. diff --git a/.changeset/reach-permission-ask.md b/.changeset/reach-permission-ask.md deleted file mode 100644 index 835f063e49..0000000000 --- a/.changeset/reach-permission-ask.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/reach-telegram": minor ---- - -A parked tool permission is now a REACH `ask` (`ref` = the permission id, options = the driver's, preview built by the host: tool, session, input). With a `reach.routes.owner` route on, the router sends it down the same route and the same Telegram adapter as an approval, and a tap is applied to the permission judge through `applyReachAnswer`; a surface the host did not declare for permissions (`ReachAnswerJudges.permissions.channels`, now required) decides nothing. Fail closed is unchanged: no ask, no answer, or an unknown option leaves the permission parked until its own timeout, and no AIP-7 signature is involved. `createPermissionTelegramBridge` gains `announce(permissionId, content?)`, `announceOnRequested` and an `answer` hook; without a route the bridge announces on its own as before. diff --git a/.changeset/remove-legacy-tool-docs-list.md b/.changeset/remove-legacy-tool-docs-list.md deleted file mode 100644 index a1104f37dc..0000000000 --- a/.changeset/remove-legacy-tool-docs-list.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": patch -"@agentproto/skill-pack-agentproto": patch ---- - -Remove `LEGACY_UNDOCUMENTED_TOOLS` from `@agentproto/runtime/tool-docs` and the "Not yet documented" section of the `ap-tool-index` skill: every daemon tool now has a family doc, and a test requires it. diff --git a/.changeset/runtime-tool-surface-followups.md b/.changeset/runtime-tool-surface-followups.md deleted file mode 100644 index cc93127f28..0000000000 --- a/.changeset/runtime-tool-surface-followups.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": minor ---- - -`bootToolSurface()` is documented as build-script and isolated-test-process only (it swaps process-wide HOME), a missing MCP SDK `_registeredTools` map now fails `validate()` with an explicit "MCP SDK internals changed" error, and the new `diffToolNames()` lets the build compare booted tools with `DAEMON_TOOL_NAMES` (any missing or extra name fails the build). diff --git a/.changeset/runtime-tool-surface.md b/.changeset/runtime-tool-surface.md deleted file mode 100644 index ef67b6e338..0000000000 --- a/.changeset/runtime-tool-surface.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": minor ---- - -Add `bootToolSurface()` (new `@agentproto/runtime/tool-surface` subpath): boots the full gateway and returns every tool's name, description, input JSON schema and MCP profiles, plus `validate()` to check args against a tool's real zod schema without running it. The build now writes a byte-stable `dist/tool-surface.json` (exported as `@agentproto/runtime/tool-surface.json`) and fails if the gateway does not boot. `GatewayHandle` gains an internal `internalMcpServer()` accessor and the package entry re-exports `registerLlmEndpointTools`. diff --git a/.changeset/sage-voles-auto.md b/.changeset/sage-voles-auto.md deleted file mode 100644 index f4e7768a0d..0000000000 --- a/.changeset/sage-voles-auto.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/skill-pack-agentproto": minor ---- - -add review tool family doc and the ap-review skill diff --git a/.changeset/sand-moles-auto.md b/.changeset/sand-moles-auto.md deleted file mode 100644 index 02577aed4b..0000000000 --- a/.changeset/sand-moles-auto.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@agentproto/runtime": minor ---- - -Register approval channels and decision surfaces from gateway configuration. Daemon owners can add an installed adapter under `approvals.decisionAdapters` with its package name and bridge secret. The package exports `approvalDecisionAdapter` with a channel, rendering form, proof kind and actor verifier. The gateway serves authenticated decisions at `POST /approvals/:id/decision/:channel` and records the verified actor. - -Telegram approval links enable the webview with an AIP-53 link token. Native Telegram actions and the legacy bridge keep their existing configuration and proofs. App card decisions now require an engine-issued ticket on their configured channel. - -`decideByChannel` replaces the provider-specific engine methods. Existing records retain their original channel ids. diff --git a/.changeset/session-lifecycle-tool-docs.md b/.changeset/session-lifecycle-tool-docs.md deleted file mode 100644 index acf0275dd5..0000000000 --- a/.changeset/session-lifecycle-tool-docs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the session lifecycle tool family (checkpoint, continue fresh, handoff, migrate, restart, wrap-up, archive, gc and related tools) in the tool docs. diff --git a/.changeset/session-observe-tool-docs.md b/.changeset/session-observe-tool-docs.md deleted file mode 100644 index f5c3f63426..0000000000 --- a/.changeset/session-observe-tool-docs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the session observation, follow, control and artifact tool families in the tool docs. diff --git a/.changeset/skill-pack-render-functions.md b/.changeset/skill-pack-render-functions.md deleted file mode 100644 index e6b0746f31..0000000000 --- a/.changeset/skill-pack-render-functions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/skill-pack-agentproto": patch ---- - -Internal: pure render functions (family block, reference page, tool index, skills table, derived manifest) with unit tests, and a development dependency on `@agentproto/runtime`. No change to the published skills. diff --git a/.changeset/skills-ap-stale-fixes.md b/.changeset/skills-ap-stale-fixes.md deleted file mode 100644 index ca8d0b70b4..0000000000 --- a/.changeset/skills-ap-stale-fixes.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@agentproto/skill-pack-agentproto": patch ---- - -Fix the stale `ap-*` skills and the master card: every tool call is a -`{"tool", "args"}` block that matches the real tool surface (`harness` instead -of the deprecated `adapter`, real field names for the session, cron, policy, -queue and conversation tools), the spawn card lists `presetId`, `workspaceSlug`, -`skills`, `bundles` and `keepAlive`, code line-number references are gone, and -the hand-written skill counts are removed from the manifest and README. diff --git a/.changeset/skills-lot6b-pb-playbooks.md b/.changeset/skills-lot6b-pb-playbooks.md deleted file mode 100644 index 80966ffba4..0000000000 --- a/.changeset/skills-lot6b-pb-playbooks.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/skill-pack-agentproto": patch ---- - -Fix the stale `pb-*` playbooks: tool calls are `{"tool", "args"}` blocks valid against the real tool surface, `harness` replaces `adapter` in spawn examples, and opaque fields are described in prose. diff --git a/.changeset/skills-staging-pack-build-manifest.md b/.changeset/skills-staging-pack-build-manifest.md deleted file mode 100644 index 4f2105e5a0..0000000000 --- a/.changeset/skills-staging-pack-build-manifest.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/cli": minor -"@agentproto/skill-pack-agentproto": minor ---- - -`agentproto pack build` accepts `--manifest ` to build from a manifest other than `/manifest.json` (its `sourceDir` resolves against the manifest's own directory); without it nothing changes. `skill-pack-agentproto` now stages `dist/gen/` before the pack build: tool family markers in a skill are replaced by the generated tool reference, a generated `ap-tool-index` skill lists every family, and the master card's tool count and skills table are generated. `ap-desktop` takes its tool reference from the generated block. diff --git a/.changeset/slate-birds-auto.md b/.changeset/slate-birds-auto.md deleted file mode 100644 index ec32eee54a..0000000000 --- a/.changeset/slate-birds-auto.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/skill-pack-agentproto": patch ---- - -Validate skill examples with real zod schemas; export doc check helpers diff --git a/.changeset/sourcemap-absolute-build-paths.md b/.changeset/sourcemap-absolute-build-paths.md deleted file mode 100644 index 55a24160cf..0000000000 --- a/.changeset/sourcemap-absolute-build-paths.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@agentproto/cli": patch -"@agentproto/runtime": patch -"@agentproto/corpus": patch ---- - -Published source maps no longer carry absolute build paths. Source maps embed the full text of each bundled source file (`sourcesContent`), so absolute local paths written in comments of `@agentproto/runtime` and `@agentproto/corpus` sources ended up inside the `@agentproto/cli` maps. Those comments now use generic placeholder paths. A new `scripts/check-published-paths.mjs` check, run in CI and before `changeset publish`, fails when any published file or source map contains an absolute local path or the build user's name. diff --git a/.changeset/storage-port-floor-contract.md b/.changeset/storage-port-floor-contract.md deleted file mode 100644 index ec8e7a5af2..0000000000 --- a/.changeset/storage-port-floor-contract.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@agentproto/wallet": minor ---- - -**Breaking (pre-1.0 minor).** StoragePort `commit`: the storage guard moves from "never below 0" to "never below the lot's floor", and a lot is created once. A conformant adapter now refuses a commit that would drive any lot's `remaining − reserved` below that lot's floor (an absent floor is still 0, so a normal lot cannot go short; `floor: null` disables the guard for that lot, leaving the host's own logic as the only bound), and refuses a `mint` / `convert_in` event whose `lotId` already exists in the projection (STORE-MINT-ONCE) instead of silently replacing the lot in the fold. Position and capacity are now stated in the port contract: the position (`remaining − reserved`) may be negative on a short lot, while the capacity (`remaining − reserved − floor`) bounds the reserve, so a hold that does not fit the capacity is refused, never silently absorbed. The port comment also stops naming the host's own repository (private-names guard stays green and keeps it out). The fold, coalescing and authorize paths are unchanged, and nothing in the kit re-creates a lot, so a kit-driven path never trips the mint-once refusal. New storage contract cases STORE-FLOOR, STORE-FLOOR-NULL, STORE-CAPACITY, STORE-CAPACITY-SHORT and STORE-MINT-ONCE pin the adapter side against the kit's reference in-memory adapter. - -Migration for a host: a storage adapter that enforced the old `remaining − reserved < 0` guard must move its bound to the lot's floor (`floorOf`: absent → 0, a number → itself, `null` → no guard), or the short lots it mints can never be drawn; an adapter that silently overwrote an existing lot on a re-mint must now refuse that commit and write nothing. A host that mints unbounded short lots (`floor: null`) gets no lower bound from the port and must enforce its own. diff --git a/.changeset/storage-port-keyed-lookup.md b/.changeset/storage-port-keyed-lookup.md deleted file mode 100644 index abf17d2f39..0000000000 --- a/.changeset/storage-port-keyed-lookup.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@agentproto/wallet": minor -"@agentproto/billing": minor ---- - -**Breaking (pre-1.0 minor).** No call replays the whole journal any more (AIP-74 rule 57: a large account is bounded by a recovery point, never by a window). Three reads change: - -- `StoragePort` gains the targeted lookup `loadEventsByKey(accountId, key)` (AIP-49 amendment A-LOOKUP): every event of the account whose `correlationId` is that key, in occurrence order — exactly what a scan of the journal would find, whatever its size (pinned by the new `STORE-KEY-LOOKUP` contract case), and visible to the unit's staged writes inside a `withAccount` of the same account. The check before the call (`canPay`, what `preflight` runs) reads the lot projection the store maintains (`loadLots`) instead of folding the journal; `debit` finds a key it already charged through the targeted lookup instead of scanning, and plans its draw on `loadLots`. -- The history a debit rule sees is the window the rule declares: `history: { sinceMs?, limit? }` on the rule itself. A rule that declares no window sees `ctx.history === []` and costs the journal no read at all; a rule that wants the whole journal asks for it explicitly (`history: {}`) — the whole is asked for, never the default. Each rule sees exactly its own window, frozen like every other field of the context. - -Measured on the committed bench (`packages/billing/src/__tests__/projection-bench.ts`: a projected store — lot projection maintained in the commit, key index, per-lot commit guard — over one account of 6 000 movements in 1 000 lots; 100 calls per scenario, 30 warmup, median of 3 samples, 3 runs): the pre-call check 188 → 124 µs/call; a first debit 324 → 216 µs/call; the replay of an already-charged key 60 → 4 µs/call (~15×, the lookup answers and nothing else is read); a debit under a rolling-day rule that asks for a one-day window 7 962 → 800 µs/call (~10×, the rule's window is cloned, not the journal). Before the change the same rule received a frozen clone of the whole journal on every call. - -Migration for a host: a storage adapter MUST implement `loadEventsByKey` — answer from an index on (account, `correlationId`) when the store keeps one, or filter the journal when it does not; the answer MUST be exactly what a full read of the journal filtered by `correlationId` gives, and the lookup joins a `withAccount` unit of the same account like every other read. A debit rule that reads `ctx.history` MUST declare the window it needs (`history: { sinceMs, limit }`); without a declaration it sees an empty history, and the journal is not read for it. Rules that do not read history need no change. diff --git a/.changeset/storage-port-per-account-unit.md b/.changeset/storage-port-per-account-unit.md deleted file mode 100644 index 7f4023c18a..0000000000 --- a/.changeset/storage-port-per-account-unit.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@agentproto/wallet": minor -"@agentproto/billing": minor ---- - -**Breaking (pre-1.0 minor).** `StoragePort` gains the one unit of work per account: `withAccount(accountId, unit)`, where the engine's whole read-compute-write for one account runs, serialized against every other unit and every bare `commit` on the same account across every connection and process that shares the store. The billing engine now runs inside it: `applyPayment`, the refund and dispute paths, `drainDeferred`, `debit`, the holds' `hold`/`settle`/`release`, `applyGrant` and `runDueIncludes` all read, compute and write in the unit, so a stale read can no longer double-charge one key (STORE-CONC-SAME-KEY) or refuse a debit the account could serve (STORE-CONC-DEBITS). The state writes made inside the unit — subscription periods, the payment-to-account link, deferred facts — enlist in its transaction when the host's state store shares the storage's database, so a cut between the journal and the state can no longer leave a payment effect without its period (STORE-CONC-CUT, STORE-CONC-TX): the unit leaves nothing, and a replay applies the payment whole. The engine's in-process queue stays, as an optimization that stops at the process boundary; it is no longer the guarantee. New storage contract cases STORE-CONC, STORE-CONC-COMMIT, STORE-CONC-VERSION, STORE-CONC-ACROSS and STORE-CONC-SERIAL pin the adapter side on the reference in-memory adapter over a shared `MemoryStore` (two connections, one store); the wallet's reference test adapter implements both serialization mechanisms, `lock` (the account held for the whole unit, what production adapters do with `SELECT ... FOR UPDATE`) and `version` (optimistic, the unit body re-run on a moved journal version), while the stores the billing kit ships are lock-only, the recommendation. Measured on that adapter, 400 units, median of 3: one contended account 99,635 units/s for `lock` against 17,823 for `version` (5,880 retries re-run for 400 units, and with the default retry budget of 5 a unit lost its race six times in a row and the operation failed outright); 8 accounts 591,643 against 366,622 (392 retries); uncontended, identical. The lock is the default and the recommendation; `version` stays available for a store that cannot hold a row for a unit's duration. `holds` answers `uncertain` on any unit failure, the one honest answer when the write may have landed; the lost-acknowledgement harness of the HOLD-8 to HOLD-14 contract cases moves to the unit boundary, where an ambiguous outcome now lives. The cases and their invariants are unchanged. - -Migration for a host: a storage adapter MUST implement `withAccount` — hold the account row for the unit's whole duration in one transaction (read, commit, release), or run the body against a journal version and re-run it when the version moved at flush; either way two units on one account never interleave and the engine never writes on a stale read. A state store that shares the storage's database SHOULD enlist its writes in the running unit's transaction (the wiring of the reference `InMemoryTransactionalStore`); a store that cannot keeps the older replay-repairs semantics and accepts the window between the journal commit and the state write. A host that already serialises per account with a row lock keeps its behaviour: the port now names what it was already doing. diff --git a/.changeset/telegram-card-presentation-body.md b/.changeset/telegram-card-presentation-body.md deleted file mode 100644 index 6f70e911fa..0000000000 --- a/.changeset/telegram-card-presentation-body.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@agentproto/reach": patch -"@agentproto/reach-telegram": patch ---- - -Telegram approval cards no longer print `preview.presentation` as a text line (it is a presentation preference, read only to choose the card form), and sections written with `body` are accepted as an alias of `text` by the shared preview parser, so the card and the approval page agree. diff --git a/.changeset/tool-docs-10d-config-bundles.md b/.changeset/tool-docs-10d-config-bundles.md deleted file mode 100644 index f3a03145c6..0000000000 --- a/.changeset/tool-docs-10d-config-bundles.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the bundle, config, permissions, browser instance and provider family tools (family docs feeding `tool_help` and the generated tool index). diff --git a/.changeset/tool-docs-10d-models-auth.md b/.changeset/tool-docs-10d-models-auth.md deleted file mode 100644 index 3926cd2b64..0000000000 --- a/.changeset/tool-docs-10d-models-auth.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the auth profile, catalog, harness, model list and preset tool families (family docs feeding `tool_help` and the generated tool index). diff --git a/.changeset/tool-docs-10e-1.md b/.changeset/tool-docs-10e-1.md deleted file mode 100644 index d4dfba213f..0000000000 --- a/.changeset/tool-docs-10e-1.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the sandbox, tunnels, remote, llm-endpoint and decision tool families (32 tools leave the legacy undocumented list). diff --git a/.changeset/tool-docs-10e-2.md b/.changeset/tool-docs-10e-2.md deleted file mode 100644 index eedc56d2c2..0000000000 --- a/.changeset/tool-docs-10e-2.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the channels, reach, conversation and workspace-brain tool families (19 tools leave the legacy undocumented list). diff --git a/.changeset/tool-docs-app-families.md b/.changeset/tool-docs-app-families.md deleted file mode 100644 index c516ef2917..0000000000 --- a/.changeset/tool-docs-app-families.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the `app` tool families (app lifecycle, app data and state, app UI bridge) for the generated skill reference, and remove those tools from the undocumented legacy list. diff --git a/.changeset/tool-docs-format.md b/.changeset/tool-docs-format.md deleted file mode 100644 index 472bf85d48..0000000000 --- a/.changeset/tool-docs-format.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": minor ---- - -New `@agentproto/runtime/tool-docs` subpath: the format of a tool family doc (pure data, typed on `DaemonToolName`), the first family doc (`desktop`, the four `desktop_conversation_*` tools) and `LEGACY_UNDOCUMENTED_TOOLS`, the list of the other tools that have no doc yet. A test checks that every tool is documented or listed (never both), that every example passes the real zod schema with none of its keys silently stripped, that no deprecated field is used, and that CLI verbs and length bounds hold. diff --git a/.changeset/tool-docs-mcp-skills-authoring.md b/.changeset/tool-docs-mcp-skills-authoring.md deleted file mode 100644 index a69b6b1376..0000000000 --- a/.changeset/tool-docs-mcp-skills-authoring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@agentproto/runtime": patch ---- - -Document the imported MCP, MCP Apps host, imported skill and tool authoring tool families for the generated skill reference, and remove those tools from the undocumented legacy list. diff --git a/.changeset/tool-docs-orchestration-core.md b/.changeset/tool-docs-orchestration-core.md deleted file mode 100644 index 6a8c82c5f5..0000000000 --- a/.changeset/tool-docs-orchestration-core.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/skill-pack-agentproto": patch ---- - -Document the `agent`, `messaging`, `tasks` and `policies` tool families -(`agent_*`, `message_*`, `inbox_*`, `task_*`, `policy_*`): examples validated by -the real schemas, return fields, pitfalls and the human gate on `policy_ack`. -They feed `tool_help` and the `ap-tool-index` reference pages. diff --git a/.changeset/tool-docs-orchestration-runs.md b/.changeset/tool-docs-orchestration-runs.md deleted file mode 100644 index 5ca75e87ce..0000000000 --- a/.changeset/tool-docs-orchestration-runs.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@agentproto/runtime": minor -"@agentproto/skill-pack-agentproto": patch ---- - -Document the `workflows`, `cron`, `routines`, `commands` and `terminals` tool -families (`workflow_*`, `run_*`, `cron_*`, `routine_*`, `command_*`, -`terminal_*`): examples validated by the real schemas, return fields, pitfalls -and the human gate on a parked workflow approval. They feed `tool_help` and the -`ap-tool-index` reference pages. diff --git a/adapters/knowledge-corpus/CHANGELOG.md b/adapters/knowledge-corpus/CHANGELOG.md index ee80f4df0c..74eee535cc 100644 --- a/adapters/knowledge-corpus/CHANGELOG.md +++ b/adapters/knowledge-corpus/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/adapter-knowledge-corpus +## 0.4.13 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + ## 0.4.12 ### Patch Changes diff --git a/adapters/knowledge-corpus/package.json b/adapters/knowledge-corpus/package.json index fb6af084ca..63612c2075 100644 --- a/adapters/knowledge-corpus/package.json +++ b/adapters/knowledge-corpus/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/adapter-knowledge-corpus", - "version": "0.4.12", + "version": "0.4.13", "description": "Composable knowledge adapter: implements @agentproto/knowledge-engine's IKnowledgeProvider over an AIP-10 @agentproto/corpus workspace, wrapping any backing IKnowledgeProvider and hydrating every hit with canonical AIP-10 provenance + access policy. Public ingest/delete are rejected — corpus writes go through the privileged CorpusInternalWriter. Registers as a provider-kit family and ships a node:fs FsPort so it runs standalone.", "keywords": [ "agentproto", diff --git a/adapters/knowledge-files/CHANGELOG.md b/adapters/knowledge-files/CHANGELOG.md index 7c5c92eb27..805a56496c 100644 --- a/adapters/knowledge-files/CHANGELOG.md +++ b/adapters/knowledge-files/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/adapter-knowledge-files +## 0.5.7 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + ## 0.5.6 ### Patch Changes diff --git a/adapters/knowledge-files/package.json b/adapters/knowledge-files/package.json index fcc2ebc7e3..9077a90b11 100644 --- a/adapters/knowledge-files/package.json +++ b/adapters/knowledge-files/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/adapter-knowledge-files", - "version": "0.5.6", + "version": "0.5.7", "description": "Pure, zero-runtime knowledge adapter: implements @agentproto/knowledge-engine's IKnowledgeProvider over local files with a BM25 index, on disk in SQLite FTS5 through node:sqlite when available and in process otherwise (no embeddings, no network, no API key, no new dependency). Registers as a provider-kit family and ships a node:fs FsPort so it runs standalone. All BM25 index/query logic is confined to this package.", "keywords": [ "agentproto", diff --git a/adapters/mastra-agent/CHANGELOG.md b/adapters/mastra-agent/CHANGELOG.md index 3cb146a502..b23305d9f4 100644 --- a/adapters/mastra-agent/CHANGELOG.md +++ b/adapters/mastra-agent/CHANGELOG.md @@ -1,5 +1,53 @@ # @agentproto/adapter-mastra-agent +## 0.8.9 + +### Patch Changes + +- 31c4639: Use a generic example name in comments, tests and docs. No behavior change. +- Updated dependencies [b61cd99] +- Updated dependencies [08accf2] +- Updated dependencies [1b325b8] +- Updated dependencies [608044c] +- Updated dependencies [bb19e82] +- Updated dependencies [7b1a81e] +- Updated dependencies [366c5ec] +- Updated dependencies [97919d1] +- Updated dependencies [b1a0a76] +- Updated dependencies [58f0d92] +- Updated dependencies [44a633a] +- Updated dependencies [6cebdc8] +- Updated dependencies [ddd99cb] +- Updated dependencies [31c4639] +- Updated dependencies [dac447f] +- Updated dependencies [7de42f8] +- Updated dependencies [b1ea1b1] +- Updated dependencies [3408fdd] +- Updated dependencies [f6b14da] +- Updated dependencies [5feac1d] +- Updated dependencies [2ec4813] +- Updated dependencies [617bfd1] +- Updated dependencies [dbf7e6c] +- Updated dependencies [b582f50] +- Updated dependencies [df5ca12] +- Updated dependencies [3f9493d] +- Updated dependencies [0d34d88] +- Updated dependencies [f6b14da] +- Updated dependencies [ec897c0] +- Updated dependencies [5866711] +- Updated dependencies [6693b03] +- Updated dependencies [e4d19b8] +- Updated dependencies [dfb8d88] +- Updated dependencies [a7e73ed] +- Updated dependencies [5a93e5f] +- Updated dependencies [70dbfd3] +- Updated dependencies [18be396] +- Updated dependencies [1bd6324] +- Updated dependencies [841f13d] +- Updated dependencies [3875165] + - @agentproto/runtime@6.10.0 + - @agentproto/bridge@0.3.6 + ## 0.8.8 ### Patch Changes diff --git a/adapters/mastra-agent/package.json b/adapters/mastra-agent/package.json index 6e44b5f9a8..a41609f724 100644 --- a/adapters/mastra-agent/package.json +++ b/adapters/mastra-agent/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/adapter-mastra-agent", - "version": "0.8.8", + "version": "0.8.9", "description": "@agentproto/adapter-mastra-agent — first-party agentproto agent. An AIP-42 AGENT.md run as a live Mastra agent behind an AIP-44 ACP server, spawnable by the daemon like any other AGENT-CLI arm AND launchable standalone via `agentproto-mastra acp`. Our own loop, our own models — no external CLI.", "keywords": [ "agentproto", diff --git a/packages/app/CHANGELOG.md b/packages/app/CHANGELOG.md index 7ae5bff67a..222816999c 100644 --- a/packages/app/CHANGELOG.md +++ b/packages/app/CHANGELOG.md @@ -1,5 +1,17 @@ # @agentproto/app-kit +## 2.9.0 + +### Minor Changes + +- 87d4515: `agentproto app pack` now refuses to package internal working notes and operator-defined names. In `--release` mode a file named like working notes (`*BRIEF*.md`, `HANDOFF*.md`, `WORKLOG*`, `SCRATCH*`, `CLAUDE.md`, `.claude/`) fails the pack. A new `--deny-file ` option (or `AGENTPROTO_PACK_DENY_FILE`) takes `{"paths": [globs], "content": [regular expressions]}`, kept outside the app, and fails the pack when a file to ship matches a path glob or when its name or text matches a content pattern; with `--entry` the catalog metadata is checked against the content patterns too. The error lists every offending file and the rule, never the matched text. `@agentproto/app` exports `readDenyRules`, `findPackDenyViolations`, `assertNoPackDenyViolations`, `RELEASE_FORBIDDEN_PATHS` and the `forbidden-content` / `invalid-deny-rules` error codes. + +### Patch Changes + +- 861d2c5: `agentproto app pack` refusals, review follow-ups: a text file over 8 MiB that cannot be scanned is now refused when content rules are set (fail closed; binary files are still skipped), and the built-in working-notes names match regardless of case (`task-brief.md`). The operator's own path globs keep their exact case. The `app pack --help` text documents the size limit. +- 31c4639: Use a generic example name in comments, tests and docs. No behavior change. + - @agentproto/bridge@0.3.6 + ## 2.8.1 ### Patch Changes diff --git a/packages/app/package.json b/packages/app/package.json index b237b8941b..0d77d73376 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/app", - "version": "2.8.1", + "version": "2.9.0", "description": "@agentproto/app — declare an agent (with its system prompt) and its workflows in one TypeScript module and import them anywhere. A thin umbrella over AIP-42 defineAgent + AIP-15 defineWorkflow: defineApp cross-links the two (every workflow agent-step must target the app's agent, every agent workflow ref must resolve), toMastraAgent turns the AGENT.md body into a real Mastra `instructions` field, and emit writes the .agents//AGENT.md + WORKFLOW.md(+entry) pair that runs through the agentproto-run lane unchanged.", "keywords": [ "agentproto", diff --git a/packages/apps/CHANGELOG.md b/packages/apps/CHANGELOG.md index 49a33600e4..3ee47279a0 100644 --- a/packages/apps/CHANGELOG.md +++ b/packages/apps/CHANGELOG.md @@ -1,5 +1,14 @@ # @agentproto/apps +## 0.28.5 + +### Patch Changes + +- Updated dependencies [861d2c5] +- Updated dependencies [87d4515] +- Updated dependencies [31c4639] + - @agentproto/app@2.9.0 + ## 0.28.4 ### Patch Changes diff --git a/packages/apps/package.json b/packages/apps/package.json index 8d39dbec45..f5dc8734c9 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/apps", - "version": "0.28.4", + "version": "0.28.5", "description": "@agentproto/apps — a home for ready-made agentproto apps (teams of agents + their workflows), declared with @agentproto/app. Import a team (code-team, content-team, …) and use any of its agents/workflows from your own host: in-process via toMastraAgents(), or emit its manifests to disk.", "keywords": [ "agentproto", diff --git a/packages/billing-postgres/CHANGELOG.md b/packages/billing-postgres/CHANGELOG.md new file mode 100644 index 0000000000..8e39205385 --- /dev/null +++ b/packages/billing-postgres/CHANGELOG.md @@ -0,0 +1,37 @@ +# @agentproto/billing-postgres + +## 0.1.0 + +### Minor Changes + +- 5d764ac: Migration 0006 holds rule 22 of AIP-74 at the `account_limit` table (CHECK `account_limit_asset_form`, `^[A-Z0-9][A-Z0-9_]{1,79}$`, with a guard that fails clearly on existing lines that are not in the stored form), with real Postgres tests of the table and of the migration chain in table prefix mode, a runner guard test under `default_transaction_isolation=serializable`, and documentation on isolation and on the cap guards. `@agentproto/billing`: documentation only (why `CapsEngine.check` keeps its floating point tolerance while `admit` compares exactly). +- 2245d66: Atomic cap admission (AIP-74 clause 11, A-CAP CAP4): `BillingCapStore` (`admit`, `get` on top of `CapMeter`), `createMemoryCapStore`, the canonical `capRequestHash` (SHA-256 over account, category, credits, provider cost), `CapsEngine.admit` (stored decision on replay before any cap, conflict on a changed hash, action cap refusal without a write, one atomic check-and-count for account and platform caps, alert-only actions recorded too), the `capAdmissionContractCases` suite, and in `@agentproto/billing-postgres` `PostgresCapStore` with migration 0005 (`cap_usage`, `cap_guard`). + + `CapsEngine` gains the required `admit` method: a type-level change for an external implementer of that exported interface, deliberately `minor` because `createCaps` is its only producer. + +- 16dacba: An account limit on a fiat asset is refused (AIP-74 O8, rule 22 fiat form: exactly three letters A-Z after normalisation): `appendAccountLimit` throws `FiatAssetLimitError` for a value, `unlimited` or a removal and writes nothing, in `MemoryOverdraftStore` and `PostgresOverdraftStore`; migration 0004 adds the matching CHECK on `account_limit.asset`. Reads of a fiat asset answer absent (`undefined`, `[]`). +- b51a500: `@agentproto/billing-postgres` gains the production adapters of the journal and the state: `PostgresStoragePort` (the AIP-49 `StoragePort` over migration 0001: journal append, lot projection, one unit per account under the account row lock, `commitAcross` with sorted locks, the table constraints as the floor guard) and `PostgresBillingStateStore` (the `BillingStateStore` over migration 0002, enlisted in the running unit's transaction when built with the storage). `@agentproto/billing/testing` now exports `REFERENCE_MANIFEST`, so a store's own suite can run the transfer and BILL cases. +- 15498cc: R8 minimal contract for the overdraft limit: `BillingOverdraftStore` (get, append, list history; the author `setBy` and a safe-integer `setAt` are required) with the limit written as an integer (0 prepaid) or the word `"unlimited"` (never null, AIP-74 O8), and an entry that removes the account tier, an in-memory reference store, and `@agentproto/billing-postgres` with migration 0003 (append-only `account_limit` history behind the account row lock) and `PostgresOverdraftStore.forPool` / `forUnit` (the latter joins a running unit and refuses another account). + +### Patch Changes + +- Updated dependencies [5d764ac] +- Updated dependencies [2245d66] +- Updated dependencies [9605304] +- Updated dependencies [2bd50ce] +- Updated dependencies [1ca1547] +- Updated dependencies [1ca1547] +- Updated dependencies [1ca1547] +- Updated dependencies [279ec60] +- Updated dependencies [16dacba] +- Updated dependencies [1f4fe0d] +- Updated dependencies [b51a500] +- Updated dependencies [15498cc] +- Updated dependencies [42097ac] +- Updated dependencies [bcb4cc2] +- Updated dependencies [74c625f] +- Updated dependencies [1e4fb2d] +- Updated dependencies [1fa5e9f] +- Updated dependencies [5d45a08] + - @agentproto/billing@0.4.0 + - @agentproto/wallet@0.4.0 diff --git a/packages/billing-postgres/package.json b/packages/billing-postgres/package.json index 208689f6ae..e2282484a1 100644 --- a/packages/billing-postgres/package.json +++ b/packages/billing-postgres/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/billing-postgres", - "version": "0.0.0", + "version": "0.1.0", "description": "Postgres storage for AIP-49 wallet and AIP-74 billing.", "license": "Apache-2.0", "type": "module", diff --git a/packages/billing-stripe/CHANGELOG.md b/packages/billing-stripe/CHANGELOG.md index 260357ae4f..3283d163fb 100644 --- a/packages/billing-stripe/CHANGELOG.md +++ b/packages/billing-stripe/CHANGELOG.md @@ -1,5 +1,28 @@ # @agentproto/billing-stripe +## 0.1.2 + +### Patch Changes + +- 21db58d: `billing-stripe` conformance rules: add SET-24 and SET-25, covering a refund and a dispute that arrive after part of the purchase has been consumed. Both assert the core's reclaim floor takes back only what is left of the payment (never the bonus, never below zero) and that the journal keeps the cause trace with its origin. SET-24 documents that its floor lives in the core (the naive translation names the same refund), and SET-25 additionally covers the dispute's freeze on open, the trace origins, and the late win reinstating only the amount the loss took. +- Updated dependencies [5d764ac] +- Updated dependencies [2245d66] +- Updated dependencies [9605304] +- Updated dependencies [2bd50ce] +- Updated dependencies [1ca1547] +- Updated dependencies [1ca1547] +- Updated dependencies [1ca1547] +- Updated dependencies [279ec60] +- Updated dependencies [16dacba] +- Updated dependencies [1f4fe0d] +- Updated dependencies [b51a500] +- Updated dependencies [15498cc] +- Updated dependencies [42097ac] +- Updated dependencies [74c625f] +- Updated dependencies [1fa5e9f] +- Updated dependencies [5d45a08] + - @agentproto/billing@0.4.0 + ## 0.1.1 ### Patch Changes diff --git a/packages/billing-stripe/package.json b/packages/billing-stripe/package.json index 69657fe69f..b0f7cdfd7e 100644 --- a/packages/billing-stripe/package.json +++ b/packages/billing-stripe/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/billing-stripe", - "version": "0.1.1", + "version": "0.1.2", "publishConfig": { "access": "public" }, diff --git a/packages/billing/CHANGELOG.md b/packages/billing/CHANGELOG.md index 47dc5c0b02..5aafebf0ea 100644 --- a/packages/billing/CHANGELOG.md +++ b/packages/billing/CHANGELOG.md @@ -1,5 +1,53 @@ # @agentproto/billing +## 0.4.0 + +### Minor Changes + +- 2245d66: Atomic cap admission (AIP-74 clause 11, A-CAP CAP4): `BillingCapStore` (`admit`, `get` on top of `CapMeter`), `createMemoryCapStore`, the canonical `capRequestHash` (SHA-256 over account, category, credits, provider cost), `CapsEngine.admit` (stored decision on replay before any cap, conflict on a changed hash, action cap refusal without a write, one atomic check-and-count for account and platform caps, alert-only actions recorded too), the `capAdmissionContractCases` suite, and in `@agentproto/billing-postgres` `PostgresCapStore` with migration 0005 (`cap_usage`, `cap_guard`). + + `CapsEngine` gains the required `admit` method: a type-level change for an external implementer of that exported interface, deliberately `minor` because `createCaps` is its only producer. + +- 9605304: AIP-74 E4, E5, E7. `defineBillingManifest(def, { fxRates })` takes the host's rates as decimal strings only (canonical form, a number or an invalid value is refused, collisions, anchor key and unused keys refused, `fxRates` wins over `fx`), and the handle carries `ratesDigest`. `BillingDeps.quotes` (`{ get(movement), timeoutMs? }`) lets a host freeze a rate: a fact strictly before `expiresAt` converts at the quoted rate, any unusable quote is ignored, and a failing `get` gives `{ status: "uncertain", reason: "quote_unavailable" }` with nothing written (`webhookStatus` answers 503). Conversions compute on exact decimals with one floor, from the rates as the engine holds them. Precision: rates supplied through `fxRates` (strings) are exact at any length; the literals of the file (`anchor.creditsPerUnit`, `fx`) are still read as JavaScript numbers, so they are exact only up to about 17 significant digits. Reading them from the source text of the YAML scalar is a dedicated follow-up. A payment amount above the safe integer range is refused and owed (rule 4). +- 2bd50ce: The `repay` journal verb (AIP-49 amendment, AIP-74 O5): it raises a short lot's remaining and nothing else. The storage guard STORE-REPAY-GUARD refuses a repay on a lot whose floor is not negative or null, and one that would pass the remaining above 0. Reference storages enforce it, and the storage contract gains the case. +- 1ca1547: Overdraft limits follow AIP-74 as amended by agentproto#214: a manifest limit is an integer from 0 to 9007199254740991 or the word `unlimited` (never `null`, `Unlimited`, -1 or a fraction; a map whose keys normalise to one asset is refused), and a limit absent at every tier is 0 (prepaid), even when `overdraft` names the asset. `resolveLimit` / `accountLimit` return `number | "unlimited"`: the smallest open offer that carries a value wins and an integer beats `unlimited`, a 0 masks an `unlimited` below it, an account `unlimited` beats a bounded offer. New pure `spendCapacity` (O1). A limit on a fiat asset is refused (agentproto#215, rules 21 and 22: the fiat form is exactly three letters A-Z after normalisation, no ISO list; `usd` and `aip://49/usd` included), and so are a declared non-fiat asset of fiat form (`GEM`, standard internal) and a declared iso4217 asset that is not of fiat form (`EURO`). `hasFiatForm` is that one test. `periodIsOpen` does not read `startAt` (a renewal is written, and its predecessor closed, before the new period starts), `accountLimit` does. +- 1ca1547: Overdraft in the manifest and the payment path (AIP-74 O3, O8, O11, O12): an optional `overdraft` block (per asset limits) at the application and the offer tier, validated against the declared assets; `resolveLimit` / `accountLimit` walk account, open offers (smallest wins), application, and count a dispute as 0; `debtLotId` and `planCompensation` extinguish a standing debt in the same commit as the payment that lands credits (burn on owned unrestricted lots, expiring first, plus a `repay` on the debt lot). +- 279ec60: Asset refs follow AIP-74 rule 22 as amended by agentproto#216: one normalisation (the `aip://49/` prefix in lower case only, ASCII-only upper case, a full match of `^[A-Z0-9][A-Z0-9_]{1,79}$`), any other ref is rejected by the parser. New exported `canonicalAssetRef` and an ASCII-only `normalizeCurrency`; declared refs (assets, primaryAsset, conversions) go through it too, `isFiatRef` is `hasFiatForm`, `entryRatio` no longer folds `uſd` to USD; `hasFiatForm` tests the normalised ASCII ref (`uſd` is not fiat, `3M` is not). `manifestProblems` rejects a limit key or a declared asset that is not a ref, refuses two keys of one asset in two spellings, and the zod `assetRef` / `partitionId` follow the schema. The rule 21 message now reads "an asset of standard X has the fiat form". The account-limit store follows the same rule: `normalizeLimitAsset` calls `canonicalAssetRef` and refuses any other ref with the new `InvalidLimitAssetError` (a `RangeError`, code `INVALID_LIMIT_ASSET`), no trimming; `app_credits`, `APP_CREDITS` and `aip://49/app_credits` are one history. +- 16dacba: An account limit on a fiat asset is refused (AIP-74 O8, rule 22 fiat form: exactly three letters A-Z after normalisation): `appendAccountLimit` throws `FiatAssetLimitError` for a value, `unlimited` or a removal and writes nothing, in `MemoryOverdraftStore` and `PostgresOverdraftStore`; migration 0004 adds the matching CHECK on `account_limit.asset`. Reads of a fiat asset answer absent (`undefined`, `[]`). +- 1f4fe0d: **Breaking (pre-1.0 minor).** `debit` and `holds` draw lots in one shared order: owned lots first, overdraft lots last (a lot with a negative floor, `null` being the unbounded one), then soonest expiry, then oldest. The order was expiry then oldest, separately copied in each engine; a debt lot older than the owned credits could be drawn first. The order now lives in one function, `drawOrder` (with `availableOn`, `ownedOn` and `isOverdraftLot`), exported from `@agentproto/billing/spend`, and the check before the call shares it: `canPay` (what `preflight` runs) counts the payer's lots through the same function, so the affordability check and the draw it authorizes read the journal one way. New case `BILL-OVERDRAFT-ORDER`. + + Migration for a host: nothing to do unless an account already holds lots with a negative floor next to owned lots of the same asset. Amounts never change, only which lot a burn or reserve lands on: owned credits are consumed before any overdraft headroom, where an older debt lot used to be drawn before newer owned credits. Code that attributes spend by lot id (reports, expiries, per-lot restrictions) can see a different lot charged for the same amount. + +- b51a500: `@agentproto/billing-postgres` gains the production adapters of the journal and the state: `PostgresStoragePort` (the AIP-49 `StoragePort` over migration 0001: journal append, lot projection, one unit per account under the account row lock, `commitAcross` with sorted locks, the table constraints as the floor guard) and `PostgresBillingStateStore` (the `BillingStateStore` over migration 0002, enlisted in the running unit's transaction when built with the storage). `@agentproto/billing/testing` now exports `REFERENCE_MANIFEST`, so a store's own suite can run the transfer and BILL cases. +- 15498cc: R8 minimal contract for the overdraft limit: `BillingOverdraftStore` (get, append, list history; the author `setBy` and a safe-integer `setAt` are required) with the limit written as an integer (0 prepaid) or the word `"unlimited"` (never null, AIP-74 O8), and an entry that removes the account tier, an in-memory reference store, and `@agentproto/billing-postgres` with migration 0003 (append-only `account_limit` history behind the account row lock) and `PostgresOverdraftStore.forPool` / `forUnit` (the latter joins a running unit and refuses another account). +- 42097ac: The storage contract suite of AIP-74's Storage section, exported from `@agentproto/billing/contract-tests` as `storageContractCases`: the guarantees a store must keep itself, each case played on TWO connections over one store, the way two processes share one database. New cases: STORE-MINT-ZERO (a mint of amount 0 is accepted, creates its lot, and is bounded by its floor like any lot), STORE-RESERVE-SHORT (a reserve on a lot drawn below zero is accepted up to its capacity, never past it, and a null floor carries no bound), STORE-FLOOR, STORE-CUT (a cut mid-write leaves the journal whole or empty, never half, at the commit, the unit and the multi-account commit), STORE-REREAD (two reads without a write agree, on every connection), STORE-ORIGIN (every field of an event survives the write, and the fold of the stored journal equals the stored lots), STORE-CAP-COUNTER (the host's cap meter counts a key once and loses no concurrent add, so a refusal it feeds holds across connections) and STORE-EXPIRY (computed at the read from the clock, without a job). A host runs them against its real store: the kit's reference adapter gained a shared `MemoryStore` backing (`new InMemoryStorage(clock, { store })` gives one connection, several over the same store simulate several processes) and now enforces a lot created once (`STORE-MINT-ONCE`) as the storage port contract says, like `InMemoryTransactionalStore`. +- 74c625f: Add global open-reservation sweep and one-operation cross-account transfers +- 1fa5e9f: **Breaking (pre-1.0 minor).** No call replays the whole journal any more (AIP-74 rule 57: a large account is bounded by a recovery point, never by a window). Three reads change: + + - `StoragePort` gains the targeted lookup `loadEventsByKey(accountId, key)` (AIP-49 amendment A-LOOKUP): every event of the account whose `correlationId` is that key, in occurrence order — exactly what a scan of the journal would find, whatever its size (pinned by the new `STORE-KEY-LOOKUP` contract case), and visible to the unit's staged writes inside a `withAccount` of the same account. The check before the call (`canPay`, what `preflight` runs) reads the lot projection the store maintains (`loadLots`) instead of folding the journal; `debit` finds a key it already charged through the targeted lookup instead of scanning, and plans its draw on `loadLots`. + - The history a debit rule sees is the window the rule declares: `history: { sinceMs?, limit? }` on the rule itself. A rule that declares no window sees `ctx.history === []` and costs the journal no read at all; a rule that wants the whole journal asks for it explicitly (`history: {}`) — the whole is asked for, never the default. Each rule sees exactly its own window, frozen like every other field of the context. + + Measured on the committed bench (`packages/billing/src/__tests__/projection-bench.ts`: a projected store — lot projection maintained in the commit, key index, per-lot commit guard — over one account of 6 000 movements in 1 000 lots; 100 calls per scenario, 30 warmup, median of 3 samples, 3 runs): the pre-call check 188 → 124 µs/call; a first debit 324 → 216 µs/call; the replay of an already-charged key 60 → 4 µs/call (~15×, the lookup answers and nothing else is read); a debit under a rolling-day rule that asks for a one-day window 7 962 → 800 µs/call (~10×, the rule's window is cloned, not the journal). Before the change the same rule received a frozen clone of the whole journal on every call. + + Migration for a host: a storage adapter MUST implement `loadEventsByKey` — answer from an index on (account, `correlationId`) when the store keeps one, or filter the journal when it does not; the answer MUST be exactly what a full read of the journal filtered by `correlationId` gives, and the lookup joins a `withAccount` unit of the same account like every other read. A debit rule that reads `ctx.history` MUST declare the window it needs (`history: { sinceMs, limit }`); without a declaration it sees an empty history, and the journal is not read for it. Rules that do not read history need no change. + +- 5d45a08: **Breaking (pre-1.0 minor).** `StoragePort` gains the one unit of work per account: `withAccount(accountId, unit)`, where the engine's whole read-compute-write for one account runs, serialized against every other unit and every bare `commit` on the same account across every connection and process that shares the store. The billing engine now runs inside it: `applyPayment`, the refund and dispute paths, `drainDeferred`, `debit`, the holds' `hold`/`settle`/`release`, `applyGrant` and `runDueIncludes` all read, compute and write in the unit, so a stale read can no longer double-charge one key (STORE-CONC-SAME-KEY) or refuse a debit the account could serve (STORE-CONC-DEBITS). The state writes made inside the unit — subscription periods, the payment-to-account link, deferred facts — enlist in its transaction when the host's state store shares the storage's database, so a cut between the journal and the state can no longer leave a payment effect without its period (STORE-CONC-CUT, STORE-CONC-TX): the unit leaves nothing, and a replay applies the payment whole. The engine's in-process queue stays, as an optimization that stops at the process boundary; it is no longer the guarantee. New storage contract cases STORE-CONC, STORE-CONC-COMMIT, STORE-CONC-VERSION, STORE-CONC-ACROSS and STORE-CONC-SERIAL pin the adapter side on the reference in-memory adapter over a shared `MemoryStore` (two connections, one store); the wallet's reference test adapter implements both serialization mechanisms, `lock` (the account held for the whole unit, what production adapters do with `SELECT ... FOR UPDATE`) and `version` (optimistic, the unit body re-run on a moved journal version), while the stores the billing kit ships are lock-only, the recommendation. Measured on that adapter, 400 units, median of 3: one contended account 99,635 units/s for `lock` against 17,823 for `version` (5,880 retries re-run for 400 units, and with the default retry budget of 5 a unit lost its race six times in a row and the operation failed outright); 8 accounts 591,643 against 366,622 (392 retries); uncontended, identical. The lock is the default and the recommendation; `version` stays available for a store that cannot hold a row for a unit's duration. `holds` answers `uncertain` on any unit failure, the one honest answer when the write may have landed; the lost-acknowledgement harness of the HOLD-8 to HOLD-14 contract cases moves to the unit boundary, where an ambiguous outcome now lives. The cases and their invariants are unchanged. + + Migration for a host: a storage adapter MUST implement `withAccount` — hold the account row for the unit's whole duration in one transaction (read, commit, release), or run the body against a journal version and re-run it when the version moved at flush; either way two units on one account never interleave and the engine never writes on a stale read. A state store that shares the storage's database SHOULD enlist its writes in the running unit's transaction (the wiring of the reference `InMemoryTransactionalStore`); a store that cannot keeps the older replay-repairs semantics and accepts the window between the journal commit and the state write. A host that already serialises per account with a row lock keeps its behaviour: the port now names what it was already doing. + +### Patch Changes + +- 5d764ac: Migration 0006 holds rule 22 of AIP-74 at the `account_limit` table (CHECK `account_limit_asset_form`, `^[A-Z0-9][A-Z0-9_]{1,79}$`, with a guard that fails clearly on existing lines that are not in the stored form), with real Postgres tests of the table and of the migration chain in table prefix mode, a runner guard test under `default_transaction_isolation=serializable`, and documentation on isolation and on the cap guards. `@agentproto/billing`: documentation only (why `CapsEngine.check` keeps its floating point tolerance while `admit` compares exactly). +- 1ca1547: An offer's overdraft tier now applies only while its period is open (`periodIsOpen`: `active` before its end, `past_due` before its grace ends, never `closed`); `activeFeatures` uses the same definition. The `overdraft` limit is bounded by `Number.MAX_SAFE_INTEGER` in the JSON schema fixture, as in zod. New storage contract case STORE-COMP-COMMIT. +- Updated dependencies [2bd50ce] +- Updated dependencies [bcb4cc2] +- Updated dependencies [74c625f] +- Updated dependencies [1e4fb2d] +- Updated dependencies [1fa5e9f] +- Updated dependencies [5d45a08] + - @agentproto/wallet@0.4.0 + - @agentproto/product@1.0.6 + ## 0.3.0 ### Minor Changes diff --git a/packages/billing/package.json b/packages/billing/package.json index 5cd2a5f76d..514609f426 100644 --- a/packages/billing/package.json +++ b/packages/billing/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/billing", - "version": "0.3.0", + "version": "0.4.0", "description": "@agentproto/billing: AIP-74 reference implementation. The BILLING.md parser and defineBillingManifest, the payment path on the AIP-49 journal, the SettlementProvider contract, the provider registry and the BILL-* conformance cases. No payment provider in this package.", "keywords": [ "agentproto", diff --git a/packages/bridge/CHANGELOG.md b/packages/bridge/CHANGELOG.md index 459c59d51c..b21630e73e 100644 --- a/packages/bridge/CHANGELOG.md +++ b/packages/bridge/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/mastra +## 0.3.6 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + ## 0.3.5 ### Patch Changes diff --git a/packages/bridge/package.json b/packages/bridge/package.json index 798cd5dca2..66a22b30c2 100644 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/bridge", - "version": "0.3.5", + "version": "0.3.6", "description": "@agentproto/bridge — the AIP-52 BRIDGE package, currently the Mastra bridge: turn an AIP-42 AGENT.md handle into a runnable Mastra Agent. You supply resolvers (model, tool, workflow, memory) and it composes the manifest's identity, persona, body, boundaries, and tool refs into a constructed `new Agent({...})` from `@mastra/core/agent`. Reference implementation for the agent/v1 → Mastra runtime path.", "keywords": [ "agentproto", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 090867dcb7..ec84938c31 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,35 @@ # @agentproto/cli +## 1.41.0 + +### Minor Changes + +- 87d4515: `agentproto app pack` now refuses to package internal working notes and operator-defined names. In `--release` mode a file named like working notes (`*BRIEF*.md`, `HANDOFF*.md`, `WORKLOG*`, `SCRATCH*`, `CLAUDE.md`, `.claude/`) fails the pack. A new `--deny-file ` option (or `AGENTPROTO_PACK_DENY_FILE`) takes `{"paths": [globs], "content": [regular expressions]}`, kept outside the app, and fails the pack when a file to ship matches a path glob or when its name or text matches a content pattern; with `--entry` the catalog metadata is checked against the content patterns too. The error lists every offending file and the rule, never the matched text. `@agentproto/app` exports `readDenyRules`, `findPackDenyViolations`, `assertNoPackDenyViolations`, `RELEASE_FORBIDDEN_PATHS` and the `forbidden-content` / `invalid-deny-rules` error codes. +- 97be93e: Record installed skills, prune removed ones, add install --status +- dac447f: Fall back to tool family docs in help and suggest close tool names +- 70db063: `agentproto pack build` accepts `--manifest ` to build from a manifest other than `/manifest.json` (its `sourceDir` resolves against the manifest's own directory); without it nothing changes. `skill-pack-agentproto` now stages `dist/gen/` before the pack build: tool family markers in a skill are replaced by the generated tool reference, a generated `ap-tool-index` skill lists every family, and the master card's tool count and skills table are generated. `ap-desktop` takes its tool reference from the generated block. + +### Patch Changes + +- 861d2c5: `agentproto app pack` refusals, review follow-ups: a text file over 8 MiB that cannot be scanned is now refused when content rules are set (fail closed; binary files are still skipped), and the built-in working-notes names match regardless of case (`task-brief.md`). The operator's own path globs keep their exact case. The `app pack --help` text documents the size limit. +- b1ea1b1: Document the remaining file, browser, panel, daemon status and introspection tools as family docs (fs, browser, panels, daemon-status, introspection). Every daemon tool now has a family doc, so `tool_help` and `agentproto help` drop the unreachable "known tool without a doc" answer. +- 6693b03: Published source maps no longer carry absolute build paths. Source maps embed the full text of each bundled source file (`sourcesContent`), so absolute local paths written in comments of `@agentproto/runtime` and `@agentproto/corpus` sources ended up inside the `@agentproto/cli` maps. Those comments now use generic placeholder paths. A new `scripts/check-published-paths.mjs` check, run in CI and before `changeset publish`, fails when any published file or source map contains an absolute local path or the build user's name. +- Updated dependencies [861d2c5] +- Updated dependencies [87d4515] +- Updated dependencies [31c4639] +- Updated dependencies [84d8f26] + - @agentproto/app@2.9.0 + - @agentproto/secrets@2.3.0 + - @agentproto/pairing-host@0.5.0 + - @agentproto/apps@0.28.5 + - @agentproto/model-catalog@0.17.0 + - @agentproto/acp@0.16.2 + - @agentproto/sandbox-box@0.2.48 + - @agentproto/sandbox-computer@0.8.7 + - @agentproto/sandbox-e2b@0.11.10 + - @agentproto/sandbox-instabox@0.2.15 + - @agentproto/worktree@0.24.2 + ## 1.40.1 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 096e26b102..2877d42318 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/cli", - "version": "1.40.1", + "version": "1.41.0", "description": "@agentproto/cli — the `agentproto` binary. Install AIP-45 agent CLI adapters, run them locally, or expose them over a tunnel as a long-running daemon. Drives Claude Code, Codex and opencode, plus other adapters of varying maturity, all through @agentproto/harness.", "keywords": [ "agentproto", diff --git a/packages/collect-cli/CHANGELOG.md b/packages/collect-cli/CHANGELOG.md index 64733c2796..7b3c38b670 100644 --- a/packages/collect-cli/CHANGELOG.md +++ b/packages/collect-cli/CHANGELOG.md @@ -1,5 +1,13 @@ # @agentproto/collect-cli +## 0.1.1 + +### Patch Changes + +- cb549ec: Add hackernews and reddit connectors to the shipped collect set. `reddit` reads the hot listing of a subreddit through a connected browser session (the listing JSON from the page first, the rendered listing as the fallback, upvote ratio kept when the listing exposes it) and declares its reddit.com session so `collect doctor` reports it. `hackernews` searches the public API and reads each submission's article (in the `web` connector's item shape) and the submitter's karma. +- Updated dependencies [cb549ec] + - @agentproto/collect@0.2.0 + ## 0.1.0 ### Minor Changes diff --git a/packages/collect-cli/package.json b/packages/collect-cli/package.json index 3da7ae5049..4bc99916be 100644 --- a/packages/collect-cli/package.json +++ b/packages/collect-cli/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/collect-cli", - "version": "0.1.0", + "version": "0.1.1", "description": "A command-line tool for collecting public posts and articles with provenance: run recipes, resume interrupted runs, inspect runs, export items and rebuild data from stored raw responses.", "keywords": [ "agentproto", diff --git a/packages/collect/CHANGELOG.md b/packages/collect/CHANGELOG.md index 37af61f82b..ef46fda021 100644 --- a/packages/collect/CHANGELOG.md +++ b/packages/collect/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/collect +## 0.2.0 + +### Minor Changes + +- cb549ec: Add hackernews and reddit connectors to the shipped collect set. `reddit` reads the hot listing of a subreddit through a connected browser session (the listing JSON from the page first, the rendered listing as the fallback, upvote ratio kept when the listing exposes it) and declares its reddit.com session so `collect doctor` reports it. `hackernews` searches the public API and reads each submission's article (in the `web` connector's item shape) and the submitter's karma. + ## 0.1.0 ### Minor Changes diff --git a/packages/collect/package.json b/packages/collect/package.json index aa3b5a474c..877c57e060 100644 --- a/packages/collect/package.json +++ b/packages/collect/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/collect", - "version": "0.1.0", + "version": "0.2.0", "description": "Collect public posts, articles and metrics with provenance: zod schemas, stable ids, URL canonicalisation, text fingerprints and a store port with memory and on-disk (node entry) implementations.", "keywords": [ "agentproto", diff --git a/packages/connector/CHANGELOG.md b/packages/connector/CHANGELOG.md index 0bff07673b..5e25056514 100644 --- a/packages/connector/CHANGELOG.md +++ b/packages/connector/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/connector +## 0.1.29 + +### Patch Changes + +- Updated dependencies [84d8f26] + - @agentproto/secrets@2.3.0 + ## 0.1.28 ### Patch Changes diff --git a/packages/connector/package.json b/packages/connector/package.json index 8d1b62c855..0dd989f924 100644 --- a/packages/connector/package.json +++ b/packages/connector/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/connector", - "version": "0.1.28", + "version": "0.1.29", "description": "@agentproto/connector — ConnectorMcpDescriptor: the portable, host-agnostic description of an MCP connector (how its server runs / is reached + what credentials it needs).", "keywords": [ "agentproto", diff --git a/packages/corpus-cli/CHANGELOG.md b/packages/corpus-cli/CHANGELOG.md index ae7ac81968..5216498957 100644 --- a/packages/corpus-cli/CHANGELOG.md +++ b/packages/corpus-cli/CHANGELOG.md @@ -1,5 +1,13 @@ # @agentproto/corpus-cli +## 0.11.9 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + - @agentproto/corpus-presets@0.2.23 + ## 0.11.8 ### Patch Changes diff --git a/packages/corpus-cli/package.json b/packages/corpus-cli/package.json index 3882560e0f..5e35a5d240 100644 --- a/packages/corpus-cli/package.json +++ b/packages/corpus-cli/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/corpus-cli", - "version": "0.11.8", + "version": "0.11.9", "description": "@agentproto/corpus-cli — the `corpus` binary. Validate, lint, and operate an AIP-10 corpus workspace from the command line. Local-topology host for @agentproto/corpus — pair with a local backing engine (qdrant docker / gbrain) for a fully offline corpus runtime.", "keywords": [ "agentproto", diff --git a/packages/corpus-presets/CHANGELOG.md b/packages/corpus-presets/CHANGELOG.md index 42cf3ae993..a7bc8e527e 100644 --- a/packages/corpus-presets/CHANGELOG.md +++ b/packages/corpus-presets/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/corpus-presets +## 0.2.23 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + ## 0.2.22 ### Patch Changes diff --git a/packages/corpus-presets/package.json b/packages/corpus-presets/package.json index 53f0a5c9b9..03674627e9 100644 --- a/packages/corpus-presets/package.json +++ b/packages/corpus-presets/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/corpus-presets", - "version": "0.2.22", + "version": "0.2.23", "description": "@agentproto/corpus-presets — catalog of starter workspaces for the AIP-10 corpus runtime. Subpath exports per vertical (marketing, sales, …). Each preset is pure TS data — host iterates `files` and writes via FsPort. Mirrors @agentproto/role-catalog.", "keywords": [ "agentproto", diff --git a/packages/corpus/CHANGELOG.md b/packages/corpus/CHANGELOG.md index 499c38469a..875bf4d7bb 100644 --- a/packages/corpus/CHANGELOG.md +++ b/packages/corpus/CHANGELOG.md @@ -1,5 +1,13 @@ # @agentproto/corpus +## 1.0.5 + +### Patch Changes + +- 6693b03: Published source maps no longer carry absolute build paths. Source maps embed the full text of each bundled source file (`sourcesContent`), so absolute local paths written in comments of `@agentproto/runtime` and `@agentproto/corpus` sources ended up inside the `@agentproto/cli` maps. Those comments now use generic placeholder paths. A new `scripts/check-published-paths.mjs` check, run in CI and before `changeset publish`, fails when any published file or source map contains an absolute local path or the build user's name. +- Updated dependencies [31c4639] + - @agentproto/operator@1.1.3 + ## 1.0.4 ### Patch Changes diff --git a/packages/corpus/package.json b/packages/corpus/package.json index 41635f30ab..224258ed09 100644 --- a/packages/corpus/package.json +++ b/packages/corpus/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/corpus", - "version": "1.0.4", + "version": "1.0.5", "description": "@agentproto/corpus — canonical composition of AIP-10 KNOWLEDGE, AIP-12 PLAYBOOK, AIP-18 COLLECTION, AIP-9 OPERATOR, AIP-15 WORKFLOW, AIP-41 ROUTINE into an autonomous knowledge-improvement system. Pure: zero runtime, zero filesystem, zero HTTP — all I/O via injected ports.", "keywords": [ "agentproto", diff --git a/packages/egress/CHANGELOG.md b/packages/egress/CHANGELOG.md index a18819c0eb..5c369e51e3 100644 --- a/packages/egress/CHANGELOG.md +++ b/packages/egress/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/egress +## 0.1.24 + +### Patch Changes + +- Updated dependencies [84d8f26] + - @agentproto/secrets@2.3.0 + ## 0.1.23 ### Patch Changes diff --git a/packages/egress/package.json b/packages/egress/package.json index 1931c6ecf5..b4d48f2df7 100644 --- a/packages/egress/package.json +++ b/packages/egress/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/egress", - "version": "0.1.23", + "version": "0.1.24", "description": "@agentproto/egress — outbound traffic control for agent sandboxes. Mode registry (off / cooperative / strict / paranoid), provider allowlist, transport-agnostic proxy core, audit hooks. Cooperative mode delegates substitution to @agentproto/secrets so the agent never sees raw upstream credentials. Strict / paranoid modes (network-level enforcement via NAT or TLS-MITM) ship as conventions; the helpers land per-host as the sandbox runtimes mature.", "keywords": [ "agentproto", diff --git a/packages/eval-reporters/CHANGELOG.md b/packages/eval-reporters/CHANGELOG.md index ce3dd54016..0c34f1fbad 100644 --- a/packages/eval-reporters/CHANGELOG.md +++ b/packages/eval-reporters/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/eval-reporters +## 0.2.37 + +### Patch Changes + +- @agentproto/eval@1.0.7 +- @agentproto/telemetry-langfuse@0.2.35 + ## 0.2.36 ### Patch Changes diff --git a/packages/eval-reporters/package.json b/packages/eval-reporters/package.json index 58258622df..c9bc9ad436 100644 --- a/packages/eval-reporters/package.json +++ b/packages/eval-reporters/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/eval-reporters", - "version": "0.2.36", + "version": "0.2.37", "description": "Adapter-kit family for eval reporters. Pluggable backends (Langfuse, stderr, in-memory array) configured by slug + credentials, mirroring the tunnel-provider adapter family.", "keywords": [ "agentproto", diff --git a/packages/eval/CHANGELOG.md b/packages/eval/CHANGELOG.md index 047faa3d70..45856c55ee 100644 --- a/packages/eval/CHANGELOG.md +++ b/packages/eval/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/eval +## 1.0.7 + +### Patch Changes + +- @agentproto/workflow-runtime@0.21.6 + ## 1.0.6 ### Patch Changes diff --git a/packages/eval/package.json b/packages/eval/package.json index 3ccf4dfc6b..a433bd6e81 100644 --- a/packages/eval/package.json +++ b/packages/eval/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/eval", - "version": "1.0.6", + "version": "1.0.7", "description": "Deterministic reference scorers as AIP-14 TOOL contracts + one builtin AIP-30 PROVIDER. A scorer IS a tool whose outputSchema is the shared `Score` shape — no new scorer port. Ships exact-match, regex-match, json-schema-valid, and latency-budget. No LLM/model calls.", "keywords": [ "agentproto", diff --git a/packages/knowledge-cascade/CHANGELOG.md b/packages/knowledge-cascade/CHANGELOG.md index 00c5e75048..e198164a10 100644 --- a/packages/knowledge-cascade/CHANGELOG.md +++ b/packages/knowledge-cascade/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/knowledge-cascade +## 0.2.14 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + ## 0.2.13 ### Patch Changes diff --git a/packages/knowledge-cascade/package.json b/packages/knowledge-cascade/package.json index dca6da58ab..3c7fce3ffd 100644 --- a/packages/knowledge-cascade/package.json +++ b/packages/knowledge-cascade/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/knowledge-cascade", - "version": "0.2.13", + "version": "0.2.14", "description": "@agentproto/knowledge-cascade — a global knowledge pack shadowed by per-scope override/extend/whiteout, over plain file trees. Pure: zero runtime assumptions beyond a `node:fs`-backed FsPort adapter; every host wires its own layers.", "keywords": [ "agentproto", diff --git a/packages/operator/CHANGELOG.md b/packages/operator/CHANGELOG.md index f0b3772f3d..7bf1089235 100644 --- a/packages/operator/CHANGELOG.md +++ b/packages/operator/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/operator +## 1.1.3 + +### Patch Changes + +- 31c4639: Use a generic example name in comments, tests and docs. No behavior change. + ## 1.1.2 ### Patch Changes diff --git a/packages/operator/package.json b/packages/operator/package.json index 33b3729a9c..d4c138342c 100644 --- a/packages/operator/package.json +++ b/packages/operator/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/operator", - "version": "1.1.2", + "version": "1.1.3", "description": "@agentproto/operator — AIP-9 OPERATOR.md reference implementation. A single canonical operator shell — pluggable profile, skills, tools, memory, governance — that any agent runtime can implement and any conforming workflow can dispatch to.", "keywords": [ "agentproto", diff --git a/packages/pair-page/CHANGELOG.md b/packages/pair-page/CHANGELOG.md index f52040bdf5..30fece8316 100644 --- a/packages/pair-page/CHANGELOG.md +++ b/packages/pair-page/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/pair-page +## 0.0.23 + +### Patch Changes + +- Updated dependencies [84d8f26] + - @agentproto/pairing@1.3.0 + ## 0.0.22 ### Patch Changes diff --git a/packages/pair-page/package.json b/packages/pair-page/package.json index e57a910beb..8e27c72790 100644 --- a/packages/pair-page/package.json +++ b/packages/pair-page/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/pair-page", - "version": "0.0.22", + "version": "0.0.23", "private": true, "description": "The per-daemon phone pair page (AIP-59): one static bundle served on every .agentproto.cloud by a Cloudflare Worker. Pairs a browser with a daemon from an offer QR, then proxies the daemon's Control Center through a service worker over the E2E rendezvous tunnel.", "license": "Apache-2.0", diff --git a/packages/pairing-host/CHANGELOG.md b/packages/pairing-host/CHANGELOG.md index b55f87e283..d91c97e19f 100644 --- a/packages/pairing-host/CHANGELOG.md +++ b/packages/pairing-host/CHANGELOG.md @@ -1,5 +1,17 @@ # @agentproto/pairing-host +## 0.5.0 + +### Minor Changes + +- 84d8f26: Let a browser that lost its pairing key reattach to its daemon without a new QR. At first contact the client registers a random recovery secret (kept in a cookie and a separate IndexedDB store by the pair page) inside the sealed hello; the daemon stores only its rendezvous route and a hash of its proof, never the secret. When the credential is gone, the client presents the secret through the existing handshake on a recovery route, and the daemon rotates the pairing in one step: new pair root (the old key stops working), renewed secret (single-use), constant-time check, a failure ceiling, an expiry extended by every authenticated reconnect, and a `pairing_revoked` answer for a revoked device. Pairings made without a secret behave exactly as before. The hello also carries an optional `navigator.storage.persisted()` report, which the daemon logs on a `[pairing] handshake ok persisted=yes|no|unknown` line. + +### Patch Changes + +- Updated dependencies [84d8f26] + - @agentproto/secrets@2.3.0 + - @agentproto/acp@0.16.2 + ## 0.4.4 ### Patch Changes diff --git a/packages/pairing-host/package.json b/packages/pairing-host/package.json index a9f49e0606..b3630b0d08 100644 --- a/packages/pairing-host/package.json +++ b/packages/pairing-host/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/pairing-host", - "version": "0.4.4", + "version": "0.5.0", "description": "@agentproto/pairing-host — the host side of AIP-59 pairing as a library: offer store, pair/v2 handshake over an untrusted rendezvous, persisted pairings with reconnect and revocation, a default ws rendezvous dialer, a loopback HTTP forwarder for the paired channel, and an optional local-device bearer credential. Lets a non-daemon host embed pairing without depending on @agentproto/runtime.", "keywords": [ "agentproto", diff --git a/packages/pairing/CHANGELOG.md b/packages/pairing/CHANGELOG.md index 83f3d9ccee..88f40ab99f 100644 --- a/packages/pairing/CHANGELOG.md +++ b/packages/pairing/CHANGELOG.md @@ -1,5 +1,17 @@ # @agentproto/pair-client +## 1.3.0 + +### Minor Changes + +- 84d8f26: Let a browser that lost its pairing key reattach to its daemon without a new QR. At first contact the client registers a random recovery secret (kept in a cookie and a separate IndexedDB store by the pair page) inside the sealed hello; the daemon stores only its rendezvous route and a hash of its proof, never the secret. When the credential is gone, the client presents the secret through the existing handshake on a recovery route, and the daemon rotates the pairing in one step: new pair root (the old key stops working), renewed secret (single-use), constant-time check, a failure ceiling, an expiry extended by every authenticated reconnect, and a `pairing_revoked` answer for a revoked device. Pairings made without a secret behave exactly as before. The hello also carries an optional `navigator.storage.persisted()` report, which the daemon logs on a `[pairing] handshake ok persisted=yes|no|unknown` line. + +### Patch Changes + +- Updated dependencies [84d8f26] + - @agentproto/secrets@2.3.0 + - @agentproto/acp@0.16.2 + ## 1.2.4 ### Patch Changes diff --git a/packages/pairing/package.json b/packages/pairing/package.json index 8cc21595fc..3968cd810c 100644 --- a/packages/pairing/package.json +++ b/packages/pairing/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/pairing", - "version": "1.2.4", + "version": "1.3.0", "description": "@agentproto/pairing - AIP-59 browser-safe client for agentproto E2E daemon pairing. Pair from an offer QR, keep the credential in IndexedDB, and reach the daemon with a WHATWG fetch (streamed bodies, SSE) multiplexed over one rendezvous WebSocket, with reconnect and a typed revocation error.", "keywords": [ "agentproto", diff --git a/packages/plugin-local-browser/CHANGELOG.md b/packages/plugin-local-browser/CHANGELOG.md index 495a23503e..e3e4e0bb35 100644 --- a/packages/plugin-local-browser/CHANGELOG.md +++ b/packages/plugin-local-browser/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/plugin-local-browser +## 0.3.13 + +### Patch Changes + +- 5feac1d: Isolate MCP import fixtures from the user registry, back up entries before removal, and require confirmation when an active session mounts a removed import. Run imported stdio servers from their configured or registered workspace directory. + The local browser plugin follows the same registry path and backs it up before reducing the import list. + ## 0.3.12 ### Patch Changes diff --git a/packages/plugin-local-browser/package.json b/packages/plugin-local-browser/package.json index cce04b1eba..f04d8fd155 100644 --- a/packages/plugin-local-browser/package.json +++ b/packages/plugin-local-browser/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/plugin-local-browser", - "version": "0.3.12", + "version": "0.3.13", "description": "@agentproto/plugin-local-browser — bridge a real local Chrome profile (cookies, logins, extensions) into the agentproto daemon as an MCP server. Picks one of the user's existing Chrome profiles, clones it into `~/.agentproto/chrome-profile/`, installs `chrome-devtools-mcp` into a plugin-owned dir, and registers it in `~/.agentproto/imported-mcps.json` so the daemon proxies its browser tools through `/mcp`. Tunnel-connected hosts can then drive the user's authenticated browser without any extra plumbing.", "keywords": [ "agentproto", diff --git a/packages/pr-outcome/CHANGELOG.md b/packages/pr-outcome/CHANGELOG.md index dbb5b01ecf..6a520d4209 100644 --- a/packages/pr-outcome/CHANGELOG.md +++ b/packages/pr-outcome/CHANGELOG.md @@ -1,5 +1,51 @@ # @agentproto/pr-outcome +## 0.1.18 + +### Patch Changes + +- Updated dependencies [b61cd99] +- Updated dependencies [08accf2] +- Updated dependencies [1b325b8] +- Updated dependencies [608044c] +- Updated dependencies [bb19e82] +- Updated dependencies [7b1a81e] +- Updated dependencies [366c5ec] +- Updated dependencies [97919d1] +- Updated dependencies [b1a0a76] +- Updated dependencies [58f0d92] +- Updated dependencies [44a633a] +- Updated dependencies [6cebdc8] +- Updated dependencies [ddd99cb] +- Updated dependencies [31c4639] +- Updated dependencies [dac447f] +- Updated dependencies [7de42f8] +- Updated dependencies [b1ea1b1] +- Updated dependencies [3408fdd] +- Updated dependencies [f6b14da] +- Updated dependencies [5feac1d] +- Updated dependencies [2ec4813] +- Updated dependencies [617bfd1] +- Updated dependencies [dbf7e6c] +- Updated dependencies [b582f50] +- Updated dependencies [df5ca12] +- Updated dependencies [3f9493d] +- Updated dependencies [0d34d88] +- Updated dependencies [f6b14da] +- Updated dependencies [ec897c0] +- Updated dependencies [5866711] +- Updated dependencies [6693b03] +- Updated dependencies [e4d19b8] +- Updated dependencies [dfb8d88] +- Updated dependencies [a7e73ed] +- Updated dependencies [5a93e5f] +- Updated dependencies [70dbfd3] +- Updated dependencies [18be396] +- Updated dependencies [1bd6324] +- Updated dependencies [841f13d] +- Updated dependencies [3875165] + - @agentproto/runtime@6.10.0 + ## 0.1.17 ### Patch Changes diff --git a/packages/pr-outcome/package.json b/packages/pr-outcome/package.json index f11adfffa7..5a2b41f308 100644 --- a/packages/pr-outcome/package.json +++ b/packages/pr-outcome/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/pr-outcome", - "version": "0.1.17", + "version": "0.1.18", "private": true, "description": "Anecdotal, observation-only collector of PR outcomes (reviews, bot vs human comments, follow-up commits, CI failures, reverts) joined with the @agentproto-bot provenance footer. Never a routing input.", "homepage": "https://agentproto.sh", diff --git a/packages/reach-chat-sdk/CHANGELOG.md b/packages/reach-chat-sdk/CHANGELOG.md index 22e45e95f1..9c0138e210 100644 --- a/packages/reach-chat-sdk/CHANGELOG.md +++ b/packages/reach-chat-sdk/CHANGELOG.md @@ -1,5 +1,15 @@ # @agentproto/reach-chat-sdk +## 0.1.1 + +### Patch Changes + +- Updated dependencies [b1a0a76] +- Updated dependencies [31c4639] +- Updated dependencies [7de42f8] +- Updated dependencies [5810205] + - @agentproto/reach@0.2.0 + ## 0.1.0 ### Minor Changes diff --git a/packages/reach-chat-sdk/package.json b/packages/reach-chat-sdk/package.json index 0d1c668903..3518b1b3f9 100644 --- a/packages/reach-chat-sdk/package.json +++ b/packages/reach-chat-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/reach-chat-sdk", - "version": "0.1.0", + "version": "0.1.1", "description": "@agentproto/reach-chat-sdk - the chat-sdk REACH adapter kind: reaches a human through a Chat SDK messenger adapter. First platform WhatsApp (Cloud API), tell only, outbound only. Optional for @agentproto/runtime, loaded only when a route has a chat-sdk entry.", "keywords": [ "agentproto", diff --git a/packages/reach-signal/CHANGELOG.md b/packages/reach-signal/CHANGELOG.md new file mode 100644 index 0000000000..b2c81d8c2c --- /dev/null +++ b/packages/reach-signal/CHANGELOG.md @@ -0,0 +1,15 @@ +# @agentproto/reach-signal + +## 0.2.0 + +### Minor Changes + +- 2ec4813: Add `@agentproto/reach-signal`, a REACH webhook receiver that relays a tell to Signal through a signal-cli REST API. A Signal route is one `webhook` line in `reach.routes`; the daemon has no Signal code. The receiver reserves each `dedupeKey` before sending, bounds its memory and the request body, validates its secret at construction, and truncates by code point. In the runtime, the approval engine no longer imports or names Telegram: the Telegram surfaces and bridge route now come from a contributor passed to `resolveApprovalSurfaces`, with unchanged behaviour. + +### Patch Changes + +- Updated dependencies [b1a0a76] +- Updated dependencies [31c4639] +- Updated dependencies [7de42f8] +- Updated dependencies [5810205] + - @agentproto/reach@0.2.0 diff --git a/packages/reach-signal/package.json b/packages/reach-signal/package.json index b9a9079061..6c31e6a104 100644 --- a/packages/reach-signal/package.json +++ b/packages/reach-signal/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/reach-signal", - "version": "0.1.0", + "version": "0.2.0", "description": "@agentproto/reach-signal - a REACH webhook receiver that relays a tell to Signal through a signal-cli REST API. Added to a route as a plain `webhook` entry: the runtime has no Signal code.", "keywords": [ "agentproto", diff --git a/packages/reach-telegram/CHANGELOG.md b/packages/reach-telegram/CHANGELOG.md new file mode 100644 index 0000000000..ca4dff20be --- /dev/null +++ b/packages/reach-telegram/CHANGELOG.md @@ -0,0 +1,21 @@ +# @agentproto/reach-telegram + +## 0.2.0 + +### Minor Changes + +- 7de42f8: Extract the Telegram reach adapter into `@agentproto/reach-telegram`. The approval card bridge, the pending-permission bridge and the attachments classifier move out of the runtime behind `ReachAdapter` seams (moved, not rewritten), while the runtime keeps only the approvals registry and ids. The engine's open-card state becomes generic per adapter (`putAdapterState`/`getAdapterState`; existing `telegram-card.json` files on disk are still read), and `decideByChannel` + `adapterChannels` replace `decideTelegram`: a decision is taken as a channel the request declared, with the same AIP-7 signature and single consumption, and the engine keeps refusing channels the host has not enabled. A new inbound path (`applyReachAnswer`) applies an adapter's answer to the judge of its subject: an approval is decided by the engine only through a declared surface, a parked permission is resolved by `respondPermission`, and anything unrecognized fails closed and leaves the subject pending. The shared attachment core (reading, resolution, the 50 MB limit) moves to `@agentproto/reach` so the files HTTP route and the adapter use one implementation. + + Note for release notes: on `GET /approvals/:id`, the decision record's `telegramUserId` field is generalized to `actorId` (the verified user id of whoever decided, whatever the surface). The AIP-53 approval-link claim keeps its `telegramUserId` wire name. + +- 617bfd1: A parked tool permission is now a REACH `ask` (`ref` = the permission id, options = the driver's, preview built by the host: tool, session, input). With a `reach.routes.owner` route on, the router sends it down the same route and the same Telegram adapter as an approval, and a tap is applied to the permission judge through `applyReachAnswer`; a surface the host did not declare for permissions (`ReachAnswerJudges.permissions.channels`, now required) decides nothing. Fail closed is unchanged: no ask, no answer, or an unknown option leaves the permission parked until its own timeout, and no AIP-7 signature is involved. `createPermissionTelegramBridge` gains `announce(permissionId, content?)`, `announceOnRequested` and an `answer` hook; without a route the bridge announces on its own as before. + +### Patch Changes + +- b1a0a76: Approvals: new transition `pending -> cancelled` (AIP-7 reach amendment). The producer of a request cancels its own pending request, optionally naming the replacement with `supersedeBy`, through `engine.cancel`, the `approval_cancel` MCP tool and `POST /approvals/:id/cancel`. A cancel is never a signature and never consumable (`approval_consume` answers `approval_not_approved`); it appends an `approval.cancelled` audit event and emits the event of the same name, and a request that is not pending is refused with `approval_not_pending`. The REACH router closes announced cards with the new outcome `cancelled` (`ReachCloseOutcome`), and the Telegram bridge shows the card as cancelled. Older records read unchanged. +- 5810205: Telegram approval cards no longer print `preview.presentation` as a text line (it is a presentation preference, read only to choose the card form), and sections written with `body` are accepted as an alias of `text` by the shared preview parser, so the card and the approval page agree. +- Updated dependencies [b1a0a76] +- Updated dependencies [31c4639] +- Updated dependencies [7de42f8] +- Updated dependencies [5810205] + - @agentproto/reach@0.2.0 diff --git a/packages/reach-telegram/package.json b/packages/reach-telegram/package.json index aacc3f0cd8..01019c31a0 100644 --- a/packages/reach-telegram/package.json +++ b/packages/reach-telegram/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/reach-telegram", - "version": "0.1.0", + "version": "0.2.0", "description": "@agentproto/reach-telegram - the telegram REACH adapter package: the approval card bridge, the pending-permission bridge and the telegram route entry, behind the ReachAdapter interface. Optional for @agentproto/runtime, loaded only when the daemon's config names it.", "keywords": [ "agentproto", diff --git a/packages/reach/CHANGELOG.md b/packages/reach/CHANGELOG.md index 5ddeaaa1c2..986223f3c9 100644 --- a/packages/reach/CHANGELOG.md +++ b/packages/reach/CHANGELOG.md @@ -1,5 +1,19 @@ # @agentproto/reach +## 0.2.0 + +### Minor Changes + +- b1a0a76: Approvals: new transition `pending -> cancelled` (AIP-7 reach amendment). The producer of a request cancels its own pending request, optionally naming the replacement with `supersedeBy`, through `engine.cancel`, the `approval_cancel` MCP tool and `POST /approvals/:id/cancel`. A cancel is never a signature and never consumable (`approval_consume` answers `approval_not_approved`); it appends an `approval.cancelled` audit event and emits the event of the same name, and a request that is not pending is refused with `approval_not_pending`. The REACH router closes announced cards with the new outcome `cancelled` (`ReachCloseOutcome`), and the Telegram bridge shows the card as cancelled. Older records read unchanged. +- 7de42f8: Extract the Telegram reach adapter into `@agentproto/reach-telegram`. The approval card bridge, the pending-permission bridge and the attachments classifier move out of the runtime behind `ReachAdapter` seams (moved, not rewritten), while the runtime keeps only the approvals registry and ids. The engine's open-card state becomes generic per adapter (`putAdapterState`/`getAdapterState`; existing `telegram-card.json` files on disk are still read), and `decideByChannel` + `adapterChannels` replace `decideTelegram`: a decision is taken as a channel the request declared, with the same AIP-7 signature and single consumption, and the engine keeps refusing channels the host has not enabled. A new inbound path (`applyReachAnswer`) applies an adapter's answer to the judge of its subject: an approval is decided by the engine only through a declared surface, a parked permission is resolved by `respondPermission`, and anything unrecognized fails closed and leaves the subject pending. The shared attachment core (reading, resolution, the 50 MB limit) moves to `@agentproto/reach` so the files HTTP route and the adapter use one implementation. + + Note for release notes: on `GET /approvals/:id`, the decision record's `telegramUserId` field is generalized to `actorId` (the verified user id of whoever decided, whatever the surface). The AIP-53 approval-link claim keeps its `telegramUserId` wire name. + +### Patch Changes + +- 31c4639: Use a generic example name in comments, tests and docs. No behavior change. +- 5810205: Telegram approval cards no longer print `preview.presentation` as a text line (it is a presentation preference, read only to choose the card form), and sections written with `body` are accepted as an alias of `text` by the shared preview parser, so the card and the approval page agree. + ## 0.1.0 ### Minor Changes diff --git a/packages/reach/package.json b/packages/reach/package.json index 70e67bcd23..2dd7146ebe 100644 --- a/packages/reach/package.json +++ b/packages/reach/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/reach", - "version": "0.1.0", + "version": "0.2.0", "description": "@agentproto/reach - the REACH contract (reach/v1): one way for a host to reach its human. ReachMessage, ReachReceipt, ReachAdapter and ReachCapabilities types, the approval preview parser, a strict receipt parser and a conformance check for webhook receivers. Zero runtime dependency.", "keywords": [ "agentproto", diff --git a/packages/run/CHANGELOG.md b/packages/run/CHANGELOG.md index a9fdba7401..fc73adf987 100644 --- a/packages/run/CHANGELOG.md +++ b/packages/run/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/run +## 0.2.8 + +### Patch Changes + +- @agentproto/workflow-runtime@0.21.6 + ## 0.2.7 ### Patch Changes diff --git a/packages/run/package.json b/packages/run/package.json index 8920468248..1a650a127c 100644 --- a/packages/run/package.json +++ b/packages/run/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/run", - "version": "0.2.7", + "version": "0.2.8", "description": "@agentproto/run - the AIP-58 run substrate: the per-run workspace layout, the append-only event log, the on-disk run store, the file-backed step cache, and the pure run-record types.", "keywords": [ "agentproto", diff --git a/packages/runtime/CHANGELOG.md b/packages/runtime/CHANGELOG.md index a505eae655..dbe4fa7ff6 100644 --- a/packages/runtime/CHANGELOG.md +++ b/packages/runtime/CHANGELOG.md @@ -1,5 +1,123 @@ # @agentproto/runtime +## 6.10.0 + +### Minor Changes + +- 608044c: Document the branch-gc, worktree, maintain and pr tool families + (`branch_gc*`, `worktree_status`, `worktree_gc*`, `maintain_run`, `pr_open`) + and add the `ap-git-hygiene` skill: look before deleting, restore a branch, + open a PR, and never merge. +- bb19e82: Add the `ap-memory` skill and the `memory` tool family doc covering the AIP-72 + memory tools (`memory_search`, `_list`, `_read`, `_write`, `_supersede`, + `_archive`, `_dismiss`): propose versus commit, who may commit, and the + revision rules. +- 7b1a81e: Document the sentinel tool family (`sentinel_watch`, `sentinel_list`, + `sentinel_routes`, `sentinel_unwatch`, `sentinel_poll_now`, + `list_sentinel_adapters`, `setup_sentinel_provider`) and add the `ap-sentinel` + skill: watch a PR or a session, force a check, stop, and set up a provider. +- 97919d1: Serve an installed app's UI page at bounded sub-paths of `/apps//ui`. An app that renders several views from one page and reads its own location can now be opened at `/apps//ui///...` (at most 4 segments of `[A-Za-z0-9._-]{1,64}`; `.`/`..`, percent-escapes, `assets`, `tool-call`, `external-blob`, `manifest*`, `icon*` and `ui` segments are refused). A sub-path answers with the same page, headers and access control as `/ui`, and the same static-shell exemption from the tunnel bearer (GET only). The injected bridge pins its `tool-call` URL to the app's own route on sub-paths; `/ui` and `/ui/` are unchanged byte for byte. +- b1a0a76: Approvals: new transition `pending -> cancelled` (AIP-7 reach amendment). The producer of a request cancels its own pending request, optionally naming the replacement with `supersedeBy`, through `engine.cancel`, the `approval_cancel` MCP tool and `POST /approvals/:id/cancel`. A cancel is never a signature and never consumable (`approval_consume` answers `approval_not_approved`); it appends an `approval.cancelled` audit event and emits the event of the same name, and a request that is not pending is refused with `approval_not_pending`. The REACH router closes announced cards with the new outcome `cancelled` (`ReachCloseOutcome`), and the Telegram bridge shows the card as cancelled. Older records read unchanged. +- 58f0d92: Rich Telegram approval requests (preview presentation "webview", or files the chat does not receive) now open the authenticated approval page through a single Voir button, and the page decides through the same engine; a truncated card keeps Approve/Refuse and adds Voir. With no page configured, the page form fails closed and the full request goes out in successive messages closed by the native Approve/Refuse (announce receipt `approval-page-unavailable`), capped at eight messages with an honest notice for whatever is left out. +- dac447f: Fall back to tool family docs in help and suggest close tool names +- 7de42f8: Extract the Telegram reach adapter into `@agentproto/reach-telegram`. The approval card bridge, the pending-permission bridge and the attachments classifier move out of the runtime behind `ReachAdapter` seams (moved, not rewritten), while the runtime keeps only the approvals registry and ids. The engine's open-card state becomes generic per adapter (`putAdapterState`/`getAdapterState`; existing `telegram-card.json` files on disk are still read), and `decideByChannel` + `adapterChannels` replace `decideTelegram`: a decision is taken as a channel the request declared, with the same AIP-7 signature and single consumption, and the engine keeps refusing channels the host has not enabled. A new inbound path (`applyReachAnswer`) applies an adapter's answer to the judge of its subject: an approval is decided by the engine only through a declared surface, a parked permission is resolved by `respondPermission`, and anything unrecognized fails closed and leaves the subject pending. The shared attachment core (reading, resolution, the 50 MB limit) moves to `@agentproto/reach` so the files HTTP route and the adapter use one implementation. + + Note for release notes: on `GET /approvals/:id`, the decision record's `telegramUserId` field is generalized to `actorId` (the verified user id of whoever decided, whatever the surface). The AIP-53 approval-link claim keeps its `telegramUserId` wire name. + +- 3408fdd: The MCP Apps approval card renders the one reach preview convention. `approval_card_list` (app-only) now hands each card the preview already parsed by `@agentproto/reach` (`summary`, `sections`, `links`, `attachments` — the same parser the Telegram card and the REACH message use) instead of the raw `preview`; the card page renders that model and no longer parses anything of its own. A rich preview shows its sections, links and attachments on the card; legacy preview shapes are tolerated the way every other surface tolerates them: kept on the record for the approval page, dropped by the card. +- 617bfd1: A parked tool permission is now a REACH `ask` (`ref` = the permission id, options = the driver's, preview built by the host: tool, session, input). With a `reach.routes.owner` route on, the router sends it down the same route and the same Telegram adapter as an approval, and a tap is applied to the permission judge through `applyReachAnswer`; a surface the host did not declare for permissions (`ReachAnswerJudges.permissions.channels`, now required) decides nothing. Fail closed is unchanged: no ask, no answer, or an unknown option leaves the permission parked until its own timeout, and no AIP-7 signature is involved. `createPermissionTelegramBridge` gains `announce(permissionId, content?)`, `announceOnRequested` and an `answer` hook; without a route the bridge announces on its own as before. +- b582f50: `bootToolSurface()` is documented as build-script and isolated-test-process only (it swaps process-wide HOME), a missing MCP SDK `_registeredTools` map now fails `validate()` with an explicit "MCP SDK internals changed" error, and the new `diffToolNames()` lets the build compare booted tools with `DAEMON_TOOL_NAMES` (any missing or extra name fails the build). +- df5ca12: Add `bootToolSurface()` (new `@agentproto/runtime/tool-surface` subpath): boots the full gateway and returns every tool's name, description, input JSON schema and MCP profiles, plus `validate()` to check args against a tool's real zod schema without running it. The build now writes a byte-stable `dist/tool-surface.json` (exported as `@agentproto/runtime/tool-surface.json`) and fails if the gateway does not boot. `GatewayHandle` gains an internal `internalMcpServer()` accessor and the package entry re-exports `registerLlmEndpointTools`. +- 3f9493d: add review tool family doc and the ap-review skill +- 0d34d88: Register approval channels and decision surfaces from gateway configuration. Daemon owners can add an installed adapter under `approvals.decisionAdapters` with its package name and bridge secret. The package exports `approvalDecisionAdapter` with a channel, rendering form, proof kind and actor verifier. The gateway serves authenticated decisions at `POST /approvals/:id/decision/:channel` and records the verified actor. + + Telegram approval links enable the webview with an AIP-53 link token. Native Telegram actions and the legacy bridge keep their existing configuration and proofs. App card decisions now require an engine-issued ticket on their configured channel. + + `decideByChannel` replaces the provider-specific engine methods. Existing records retain their original channel ids. + +- 5866711: Validate skill examples with real zod schemas; export doc check helpers +- 18be396: New `@agentproto/runtime/tool-docs` subpath: the format of a tool family doc (pure data, typed on `DaemonToolName`), the first family doc (`desktop`, the four `desktop_conversation_*` tools) and `LEGACY_UNDOCUMENTED_TOOLS`, the list of the other tools that have no doc yet. A test checks that every tool is documented or listed (never both), that every example passes the real zod schema with none of its keys silently stripped, that no deprecated field is used, and that CLI verbs and length bounds hold. +- 841f13d: Document the `agent`, `messaging`, `tasks` and `policies` tool families + (`agent_*`, `message_*`, `inbox_*`, `task_*`, `policy_*`): examples validated by + the real schemas, return fields, pitfalls and the human gate on `policy_ack`. + They feed `tool_help` and the `ap-tool-index` reference pages. +- 3875165: Document the `workflows`, `cron`, `routines`, `commands` and `terminals` tool + families (`workflow_*`, `run_*`, `cron_*`, `routine_*`, `command_*`, + `terminal_*`): examples validated by the real schemas, return fields, pitfalls + and the human gate on a parked workflow approval. They feed `tool_help` and the + `ap-tool-index` reference pages. + +### Patch Changes + +- b61cd99: Document the account slots, account health and quota tool families and add the generated `ap-accounts` skill (read quota, find an exhausted account, swap or reorder slots, reopen an account). +- 08accf2: Document the approval tools (`approval_request`, `approval_get`, `approval_wait`, + `approval_consume`, `approval_cancel`) as a tool family doc, and add the + `ap-approvals` skill that teaches the ask, wait, consume flow. +- 1b325b8: Document the pairing, devices and join-token tool families and add the generated `ap-devices` skill (pair a client, register a host machine, join a remote machine by token). +- 366c5ec: Keep the mount prefix on the app UI bridge call served at a sub-path of `/apps//ui`. The injected bridge was pinned to the absolute `/apps//tool-call`, which drops any prefix the browser sees in front of `/apps` (for example a tunnel serving the page under `/d//apps//ui/...`) and made the call fail with 405. It now uses a relative URL sized to the page depth (`../` per sub-path segment, one more with a trailing slash), so it resolves under any prefix. `/ui` and `/ui/` are unchanged byte for byte. +- 44a633a: Attribute a codex session's MCP calls to its daemon session. A stdio bridge dialed by a daemon-spawned codex session stamps the caller as `codex:`; the daemon now maps that claim to the one session whose `adapterSessionId` is the thread, so node-scoped tools and `message_parent` work. An unknown or ambiguous thread stays an external claim. +- 6cebdc8: `file_delete`: the tool description now says a directory is deleted recursively with its contents (it said "empty directory"). Behavior is unchanged. +- ddd99cb: Update the `file_delete` pitfall in the fs family doc now that the tool description is truthful, and fix the `isKnownDaemonTool` doc comment. +- 31c4639: Use a generic example name in comments, tests and docs. No behavior change. +- b1ea1b1: Document the remaining file, browser, panel, daemon status and introspection tools as family docs (fs, browser, panels, daemon-status, introspection). Every daemon tool now has a family doc, so `tool_help` and `agentproto help` drop the unreachable "known tool without a doc" answer. +- f6b14da: Document the session lifecycle tool family and regenerate the corresponding skill reference, moving the documented tools out of the legacy list and removing the now-covered `sessions` CLI-verb mapping. +- 5feac1d: Isolate MCP import fixtures from the user registry, back up entries before removal, and require confirmation when an active session mounts a removed import. Run imported stdio servers from their configured or registered workspace directory. + The local browser plugin follows the same registry path and backs it up before reducing the import list. +- 2ec4813: Add `@agentproto/reach-signal`, a REACH webhook receiver that relays a tell to Signal through a signal-cli REST API. A Signal route is one `webhook` line in `reach.routes`; the daemon has no Signal code. The receiver reserves each `dedupeKey` before sending, bounds its memory and the request body, validates its secret at construction, and truncates by code point. In the runtime, the approval engine no longer imports or names Telegram: the Telegram surfaces and bridge route now come from a contributor passed to `resolveApprovalSurfaces`, with unchanged behaviour. +- dbf7e6c: Remove `LEGACY_UNDOCUMENTED_TOOLS` from `@agentproto/runtime/tool-docs` and the "Not yet documented" section of the `ap-tool-index` skill: every daemon tool now has a family doc, and a test requires it. +- f6b14da: Document the session lifecycle tool family (checkpoint, continue fresh, handoff, migrate, restart, wrap-up, archive, gc and related tools) in the tool docs. +- ec897c0: Document the session observation, follow, control and artifact tool families in the tool docs. +- 6693b03: Published source maps no longer carry absolute build paths. Source maps embed the full text of each bundled source file (`sourcesContent`), so absolute local paths written in comments of `@agentproto/runtime` and `@agentproto/corpus` sources ended up inside the `@agentproto/cli` maps. Those comments now use generic placeholder paths. A new `scripts/check-published-paths.mjs` check, run in CI and before `changeset publish`, fails when any published file or source map contains an absolute local path or the build user's name. +- e4d19b8: Document the bundle, config, permissions, browser instance and provider family tools (family docs feeding `tool_help` and the generated tool index). +- dfb8d88: Document the auth profile, catalog, harness, model list and preset tool families (family docs feeding `tool_help` and the generated tool index). +- a7e73ed: Document the sandbox, tunnels, remote, llm-endpoint and decision tool families (32 tools leave the legacy undocumented list). +- 5a93e5f: Document the channels, reach, conversation and workspace-brain tool families (19 tools leave the legacy undocumented list). +- 70dbfd3: Document the `app` tool families (app lifecycle, app data and state, app UI bridge) for the generated skill reference, and remove those tools from the undocumented legacy list. +- 1bd6324: Document the imported MCP, MCP Apps host, imported skill and tool authoring tool families for the generated skill reference, and remove those tools from the undocumented legacy list. +- Updated dependencies [861d2c5] +- Updated dependencies [87d4515] +- Updated dependencies [b1a0a76] +- Updated dependencies [5d764ac] +- Updated dependencies [2245d66] +- Updated dependencies [9605304] +- Updated dependencies [2bd50ce] +- Updated dependencies [1ca1547] +- Updated dependencies [1ca1547] +- Updated dependencies [1ca1547] +- Updated dependencies [279ec60] +- Updated dependencies [16dacba] +- Updated dependencies [1f4fe0d] +- Updated dependencies [b51a500] +- Updated dependencies [15498cc] +- Updated dependencies [42097ac] +- Updated dependencies [31c4639] +- Updated dependencies [7de42f8] +- Updated dependencies [84d8f26] +- Updated dependencies [74c625f] +- Updated dependencies [5feac1d] +- Updated dependencies [617bfd1] +- Updated dependencies [1fa5e9f] +- Updated dependencies [5d45a08] +- Updated dependencies [5810205] + - @agentproto/app@2.9.0 + - @agentproto/reach@0.2.0 + - @agentproto/reach-telegram@0.2.0 + - @agentproto/billing@0.4.0 + - @agentproto/operator@1.1.3 + - @agentproto/secrets@2.3.0 + - @agentproto/pairing-host@0.5.0 + - @agentproto/plugin-local-browser@0.3.13 + - @agentproto/apps@0.28.5 + - @agentproto/model-catalog@0.17.0 + - @agentproto/acp@0.16.2 + - @agentproto/sandbox@1.0.7 + - @agentproto/workflow-runtime@0.21.6 + - @agentproto/workspace-brain@0.7.7 + - @agentproto/review@1.0.2 + - @agentproto/run@0.2.8 + - @agentproto/eval-reporters@0.2.37 + - @agentproto/telemetry-langfuse@0.2.35 + ## 6.9.0 ### Minor Changes diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 86e178b3a8..19f266c8db 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/runtime", - "version": "6.9.0", + "version": "6.10.0", "description": "@agentproto/runtime — long-running gateway that turns an agentproto workspace into a live runtime. Composes @agentproto/mcp-server (CRUD verbs) with HTTP transport, HEARTBEAT.md autonomy loop, and append-only conversation persistence. Drop a workspace dir, point your MCP client at it, and the agent ticks on its own.", "keywords": [ "agentproto", diff --git a/packages/sandbox-box/CHANGELOG.md b/packages/sandbox-box/CHANGELOG.md index 028b950b7e..32091b8eb4 100644 --- a/packages/sandbox-box/CHANGELOG.md +++ b/packages/sandbox-box/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/sandbox-box +## 0.2.48 + +### Patch Changes + +- @agentproto/sandbox@1.0.7 + ## 0.2.47 ### Patch Changes diff --git a/packages/sandbox-box/package.json b/packages/sandbox-box/package.json index 16df3191fd..c2476747bf 100644 --- a/packages/sandbox-box/package.json +++ b/packages/sandbox-box/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/sandbox-box", - "version": "0.2.47", + "version": "0.2.48", "description": "@agentproto/sandbox-box — ascii.dev Box `SandboxProvider` for @agentproto/sandbox. Boots a Box cloud computer, installs an always-on systemd unit for the agentproto daemon, and exposes its MCP endpoint as a URL so any AgentSessionHost consumer (worktreeAgentWorkflow, worktree-agent CLI) can run a coding-agent step inside the sandbox.", "keywords": [ "agentproto", diff --git a/packages/sandbox-computer/CHANGELOG.md b/packages/sandbox-computer/CHANGELOG.md index 4be774e102..829d666612 100644 --- a/packages/sandbox-computer/CHANGELOG.md +++ b/packages/sandbox-computer/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/sandbox-computer +## 0.8.7 + +### Patch Changes + +- @agentproto/sandbox@1.0.7 + ## 0.8.6 ### Patch Changes diff --git a/packages/sandbox-computer/package.json b/packages/sandbox-computer/package.json index 80352d7470..9b53a54706 100644 --- a/packages/sandbox-computer/package.json +++ b/packages/sandbox-computer/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/sandbox-computer", - "version": "0.8.6", + "version": "0.8.7", "description": "@agentproto/sandbox-computer — `SandboxProvider` for @agentproto/sandbox backed by a self-hosted microVM computer controller. Boots the agentproto daemon inside the computer, exposes its MCP endpoint, pauses (suspend) / resumes / detaches (rm) across the controller's HTTP API, and supports several agentproto sessions sharing one computer (`sharedSessions`).", "keywords": [ "agentproto", diff --git a/packages/sandbox-e2b/CHANGELOG.md b/packages/sandbox-e2b/CHANGELOG.md index bc57eb4e1b..3ec401cf69 100644 --- a/packages/sandbox-e2b/CHANGELOG.md +++ b/packages/sandbox-e2b/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/sandbox-e2b +## 0.11.10 + +### Patch Changes + +- @agentproto/sandbox@1.0.7 + ## 0.11.9 ### Patch Changes diff --git a/packages/sandbox-e2b/package.json b/packages/sandbox-e2b/package.json index f4b89a4b86..3458bd9e0a 100644 --- a/packages/sandbox-e2b/package.json +++ b/packages/sandbox-e2b/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/sandbox-e2b", - "version": "0.11.9", + "version": "0.11.10", "description": "@agentproto/sandbox-e2b — e2b `SandboxProvider` for @agentproto/sandbox. Boots the pinned `agentproto-workstation` e2b template (with @agentproto/cli baked in), starts the agentproto daemon inside it, and exposes its MCP endpoint as a URL so any AgentSessionHost consumer (worktreeAgentWorkflow, worktree-agent CLI) can run a coding-agent step inside the sandbox.", "keywords": [ "agentproto", diff --git a/packages/sandbox-instabox/CHANGELOG.md b/packages/sandbox-instabox/CHANGELOG.md index d9bef3ebfc..a26c8ddcc3 100644 --- a/packages/sandbox-instabox/CHANGELOG.md +++ b/packages/sandbox-instabox/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/sandbox-instabox +## 0.2.15 + +### Patch Changes + +- @agentproto/sandbox@1.0.7 + ## 0.2.14 ### Patch Changes diff --git a/packages/sandbox-instabox/package.json b/packages/sandbox-instabox/package.json index 62e4d4f6ec..b548c60a86 100644 --- a/packages/sandbox-instabox/package.json +++ b/packages/sandbox-instabox/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/sandbox-instabox", - "version": "0.2.14", + "version": "0.2.15", "description": "@agentproto/sandbox-instabox — InstaBox `SandboxProvider` for @agentproto/sandbox. Boots an InstaBox VM, installs an always-on systemd unit for the agentproto daemon, publishes the daemon port as the account's public edge URL, and exposes its MCP endpoint so any AgentSessionHost consumer (worktreeAgentWorkflow, worktree-agent CLI) can run a coding-agent step inside the sandbox.", "keywords": [ "agentproto", diff --git a/packages/sandbox/CHANGELOG.md b/packages/sandbox/CHANGELOG.md index efbb195984..1fe7334663 100644 --- a/packages/sandbox/CHANGELOG.md +++ b/packages/sandbox/CHANGELOG.md @@ -1,5 +1,14 @@ # @agentproto/sandbox +## 1.0.7 + +### Patch Changes + +- Updated dependencies [84d8f26] + - @agentproto/secrets@2.3.0 + - @agentproto/workflow-runtime@0.21.6 + - @agentproto/worktree@0.24.2 + ## 1.0.6 ### Patch Changes diff --git a/packages/sandbox/package.json b/packages/sandbox/package.json index 4d1210492c..ef6b3fe3c0 100644 --- a/packages/sandbox/package.json +++ b/packages/sandbox/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/sandbox", - "version": "1.0.6", + "version": "1.0.7", "description": "@agentproto/sandbox — AIP-36 SANDBOX.md reference implementation. A composable schema block defining the `sandbox` field — provider, config, command env, network egress, resource limits — for any manifest that names a compute environment for agent-issued shell commands. Sibling primitive to STORAGE.md (AIP-35); inline or ref, mirroring AIP-17 RUNNER and AIP-19 SECRETS. Also ships createSandboxAgentSessionHost — the provider-agnostic seam that runs an AgentStep's coding-agent turn inside a booted sandbox by pointing the existing daemon-backed AgentSessionHost at its MCP URL.", "keywords": [ "agentproto", diff --git a/packages/secrets/CHANGELOG.md b/packages/secrets/CHANGELOG.md index 054948aee4..bc94d93cfc 100644 --- a/packages/secrets/CHANGELOG.md +++ b/packages/secrets/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/secrets +## 2.3.0 + +### Minor Changes + +- 84d8f26: Let a browser that lost its pairing key reattach to its daemon without a new QR. At first contact the client registers a random recovery secret (kept in a cookie and a separate IndexedDB store by the pair page) inside the sealed hello; the daemon stores only its rendezvous route and a hash of its proof, never the secret. When the credential is gone, the client presents the secret through the existing handshake on a recovery route, and the daemon rotates the pairing in one step: new pair root (the old key stops working), renewed secret (single-use), constant-time check, a failure ceiling, an expiry extended by every authenticated reconnect, and a `pairing_revoked` answer for a revoked device. Pairings made without a secret behave exactly as before. The hello also carries an optional `navigator.storage.persisted()` report, which the daemon logs on a `[pairing] handshake ok persisted=yes|no|unknown` line. + ## 2.2.4 ### Patch Changes diff --git a/packages/secrets/package.json b/packages/secrets/package.json index f85c782c12..27fbe77f8c 100644 --- a/packages/secrets/package.json +++ b/packages/secrets/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/secrets", - "version": "2.2.4", + "version": "2.3.0", "description": "@agentproto/secrets — AIP-19 SECRETS.md reference implementation. A workspace-level manifest format for declaring secret slugs, their purpose, access grants, and audit metadata — without ever storing the values themselves. Hosts resolve slugs against a real vault at reveal time.", "keywords": [ "agentproto", diff --git a/packages/skill-pack-agentproto/CHANGELOG.md b/packages/skill-pack-agentproto/CHANGELOG.md index 0323ea9d1b..f49abcf63e 100644 --- a/packages/skill-pack-agentproto/CHANGELOG.md +++ b/packages/skill-pack-agentproto/CHANGELOG.md @@ -1,5 +1,55 @@ # @agentproto/skill-pack-agentproto +## 0.11.0 + +### Minor Changes + +- 08accf2: Document the approval tools (`approval_request`, `approval_get`, `approval_wait`, + `approval_consume`, `approval_cancel`) as a tool family doc, and add the + `ap-approvals` skill that teaches the ask, wait, consume flow. +- f793e8c: Add the `ap-desktop` skill covering the Claude Desktop and Codex Desktop + conversation tools (`desktop_conversation_list` / `_read` / `_create` / `_ask`), + and list it in the master map. +- 608044c: Document the branch-gc, worktree, maintain and pr tool families + (`branch_gc*`, `worktree_status`, `worktree_gc*`, `maintain_run`, `pr_open`) + and add the `ap-git-hygiene` skill: look before deleting, restore a branch, + open a PR, and never merge. +- bb19e82: Add the `ap-memory` skill and the `memory` tool family doc covering the AIP-72 + memory tools (`memory_search`, `_list`, `_read`, `_write`, `_supersede`, + `_archive`, `_dismiss`): propose versus commit, who may commit, and the + revision rules. +- 7b1a81e: Document the sentinel tool family (`sentinel_watch`, `sentinel_list`, + `sentinel_routes`, `sentinel_unwatch`, `sentinel_poll_now`, + `list_sentinel_adapters`, `setup_sentinel_provider`) and add the `ap-sentinel` + skill: watch a PR or a session, force a check, stop, and set up a provider. +- 3f9493d: add review tool family doc and the ap-review skill +- 70db063: `agentproto pack build` accepts `--manifest ` to build from a manifest other than `/manifest.json` (its `sourceDir` resolves against the manifest's own directory); without it nothing changes. `skill-pack-agentproto` now stages `dist/gen/` before the pack build: tool family markers in a skill are replaced by the generated tool reference, a generated `ap-tool-index` skill lists every family, and the master card's tool count and skills table are generated. `ap-desktop` takes its tool reference from the generated block. + +### Patch Changes + +- b61cd99: Document the account slots, account health and quota tool families and add the generated `ap-accounts` skill (read quota, find an exhausted account, swap or reorder slots, reopen an account). +- 1b325b8: Document the pairing, devices and join-token tool families and add the generated `ap-devices` skill (pair a client, register a host machine, join a remote machine by token). +- 45e5612: ap-import-mcp skill: document the optional `allowTools` import-level restriction (exact names or `*` patterns), how re-imports preserve an existing list, and that an empty list allows nothing. +- dbf7e6c: Remove `LEGACY_UNDOCUMENTED_TOOLS` from `@agentproto/runtime/tool-docs` and the "Not yet documented" section of the `ap-tool-index` skill: every daemon tool now has a family doc, and a test requires it. +- 6d95ca3: Internal: pure render functions (family block, reference page, tool index, skills table, derived manifest) with unit tests, and a development dependency on `@agentproto/runtime`. No change to the published skills. +- fcaf8b4: Fix the stale `ap-*` skills and the master card: every tool call is a + `{"tool", "args"}` block that matches the real tool surface (`harness` instead + of the deprecated `adapter`, real field names for the session, cron, policy, + queue and conversation tools), the spawn card lists `presetId`, `workspaceSlug`, + `skills`, `bundles` and `keepAlive`, code line-number references are gone, and + the hand-written skill counts are removed from the manifest and README. +- 9556e7c: Fix the stale `pb-*` playbooks: tool calls are `{"tool", "args"}` blocks valid against the real tool surface, `harness` replaces `adapter` in spawn examples, and opaque fields are described in prose. +- 5866711: Validate skill examples with real zod schemas; export doc check helpers +- 841f13d: Document the `agent`, `messaging`, `tasks` and `policies` tool families + (`agent_*`, `message_*`, `inbox_*`, `task_*`, `policy_*`): examples validated by + the real schemas, return fields, pitfalls and the human gate on `policy_ack`. + They feed `tool_help` and the `ap-tool-index` reference pages. +- 3875165: Document the `workflows`, `cron`, `routines`, `commands` and `terminals` tool + families (`workflow_*`, `run_*`, `cron_*`, `routine_*`, `command_*`, + `terminal_*`): examples validated by the real schemas, return fields, pitfalls + and the human gate on a parked workflow approval. They feed `tool_help` and the + `ap-tool-index` reference pages. + ## 0.10.6 ### Patch Changes diff --git a/packages/skill-pack-agentproto/package.json b/packages/skill-pack-agentproto/package.json index be2e339269..f164098a13 100644 --- a/packages/skill-pack-agentproto/package.json +++ b/packages/skill-pack-agentproto/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/skill-pack-agentproto", - "version": "0.10.6", + "version": "0.11.0", "description": "@agentproto/skill-pack-agentproto — the agentproto-plugin skill pack: a 3-layer agent orchestration family (L0 map, L1 ap-* primitives, L2 groupers, L3 pb-* playbooks) plus app authoring/serving and custom LLM endpoint guides. Source of truth for both the Claude Code plugin bundle (.claude-plugin/plugin.json + skills/) and `agentproto install skill/ --pack agentproto-plugin`. Edit src/skills/*, never skills/ or .claude-plugin/ directly — those are generated by `pnpm build`.", "keywords": [ "agentproto", diff --git a/packages/telemetry-langfuse/CHANGELOG.md b/packages/telemetry-langfuse/CHANGELOG.md index af4ecd4388..fa9ac6bf7b 100644 --- a/packages/telemetry-langfuse/CHANGELOG.md +++ b/packages/telemetry-langfuse/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/telemetry-langfuse +## 0.2.35 + +### Patch Changes + +- @agentproto/eval@1.0.7 + ## 0.2.34 ### Patch Changes diff --git a/packages/telemetry-langfuse/package.json b/packages/telemetry-langfuse/package.json index 892beab0ff..3acb2a2a13 100644 --- a/packages/telemetry-langfuse/package.json +++ b/packages/telemetry-langfuse/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/telemetry-langfuse", - "version": "0.2.34", + "version": "0.2.35", "description": "Langfuse ingestion REST API sink for @agentproto/telemetry. Dependency-free: maps EvalEvent batches to Langfuse trace-create and score-create objects over fetch.", "keywords": [ "agentproto", diff --git a/packages/vscode/CHANGELOG.md b/packages/vscode/CHANGELOG.md index c1e643db58..023eaf7661 100644 --- a/packages/vscode/CHANGELOG.md +++ b/packages/vscode/CHANGELOG.md @@ -1,5 +1,52 @@ # agentproto-vscode +## 0.26.12 + +### Patch Changes + +- Updated dependencies [b61cd99] +- Updated dependencies [08accf2] +- Updated dependencies [1b325b8] +- Updated dependencies [608044c] +- Updated dependencies [bb19e82] +- Updated dependencies [7b1a81e] +- Updated dependencies [366c5ec] +- Updated dependencies [97919d1] +- Updated dependencies [b1a0a76] +- Updated dependencies [58f0d92] +- Updated dependencies [44a633a] +- Updated dependencies [6cebdc8] +- Updated dependencies [ddd99cb] +- Updated dependencies [31c4639] +- Updated dependencies [dac447f] +- Updated dependencies [7de42f8] +- Updated dependencies [b1ea1b1] +- Updated dependencies [3408fdd] +- Updated dependencies [f6b14da] +- Updated dependencies [5feac1d] +- Updated dependencies [2ec4813] +- Updated dependencies [617bfd1] +- Updated dependencies [dbf7e6c] +- Updated dependencies [b582f50] +- Updated dependencies [df5ca12] +- Updated dependencies [3f9493d] +- Updated dependencies [0d34d88] +- Updated dependencies [f6b14da] +- Updated dependencies [ec897c0] +- Updated dependencies [5866711] +- Updated dependencies [6693b03] +- Updated dependencies [e4d19b8] +- Updated dependencies [dfb8d88] +- Updated dependencies [a7e73ed] +- Updated dependencies [5a93e5f] +- Updated dependencies [70dbfd3] +- Updated dependencies [18be396] +- Updated dependencies [1bd6324] +- Updated dependencies [841f13d] +- Updated dependencies [3875165] + - @agentproto/runtime@6.10.0 + - @agentproto/apps@0.28.5 + ## 0.26.11 ### Patch Changes diff --git a/packages/vscode/package.json b/packages/vscode/package.json index f87055bab9..6662d64e16 100644 --- a/packages/vscode/package.json +++ b/packages/vscode/package.json @@ -2,7 +2,7 @@ "name": "agentproto-vscode", "displayName": "agentproto", "description": "Live operational views for the agentproto daemon — sessions, permissions, cost — plus spawn/drive/stop from the editor.", - "version": "0.26.11", + "version": "0.26.12", "publisher": "agentproto", "icon": "media/icon.png", "license": "Apache-2.0", diff --git a/packages/wallet/CHANGELOG.md b/packages/wallet/CHANGELOG.md index a718a09e22..60c86e3272 100644 --- a/packages/wallet/CHANGELOG.md +++ b/packages/wallet/CHANGELOG.md @@ -1,5 +1,32 @@ # @agentproto/wallet +## 0.4.0 + +### Minor Changes + +- 2bd50ce: The `repay` journal verb (AIP-49 amendment, AIP-74 O5): it raises a short lot's remaining and nothing else. The storage guard STORE-REPAY-GUARD refuses a repay on a lot whose floor is not negative or null, and one that would pass the remaining above 0. Reference storages enforce it, and the storage contract gains the case. +- 74c625f: Add global open-reservation sweep and one-operation cross-account transfers +- 1e4fb2d: **Breaking (pre-1.0 minor).** StoragePort `commit`: the storage guard moves from "never below 0" to "never below the lot's floor", and a lot is created once. A conformant adapter now refuses a commit that would drive any lot's `remaining − reserved` below that lot's floor (an absent floor is still 0, so a normal lot cannot go short; `floor: null` disables the guard for that lot, leaving the host's own logic as the only bound), and refuses a `mint` / `convert_in` event whose `lotId` already exists in the projection (STORE-MINT-ONCE) instead of silently replacing the lot in the fold. Position and capacity are now stated in the port contract: the position (`remaining − reserved`) may be negative on a short lot, while the capacity (`remaining − reserved − floor`) bounds the reserve, so a hold that does not fit the capacity is refused, never silently absorbed. The port comment also stops naming the host's own repository (private-names guard stays green and keeps it out). The fold, coalescing and authorize paths are unchanged, and nothing in the kit re-creates a lot, so a kit-driven path never trips the mint-once refusal. New storage contract cases STORE-FLOOR, STORE-FLOOR-NULL, STORE-CAPACITY, STORE-CAPACITY-SHORT and STORE-MINT-ONCE pin the adapter side against the kit's reference in-memory adapter. + + Migration for a host: a storage adapter that enforced the old `remaining − reserved < 0` guard must move its bound to the lot's floor (`floorOf`: absent → 0, a number → itself, `null` → no guard), or the short lots it mints can never be drawn; an adapter that silently overwrote an existing lot on a re-mint must now refuse that commit and write nothing. A host that mints unbounded short lots (`floor: null`) gets no lower bound from the port and must enforce its own. + +- 1fa5e9f: **Breaking (pre-1.0 minor).** No call replays the whole journal any more (AIP-74 rule 57: a large account is bounded by a recovery point, never by a window). Three reads change: + + - `StoragePort` gains the targeted lookup `loadEventsByKey(accountId, key)` (AIP-49 amendment A-LOOKUP): every event of the account whose `correlationId` is that key, in occurrence order — exactly what a scan of the journal would find, whatever its size (pinned by the new `STORE-KEY-LOOKUP` contract case), and visible to the unit's staged writes inside a `withAccount` of the same account. The check before the call (`canPay`, what `preflight` runs) reads the lot projection the store maintains (`loadLots`) instead of folding the journal; `debit` finds a key it already charged through the targeted lookup instead of scanning, and plans its draw on `loadLots`. + - The history a debit rule sees is the window the rule declares: `history: { sinceMs?, limit? }` on the rule itself. A rule that declares no window sees `ctx.history === []` and costs the journal no read at all; a rule that wants the whole journal asks for it explicitly (`history: {}`) — the whole is asked for, never the default. Each rule sees exactly its own window, frozen like every other field of the context. + + Measured on the committed bench (`packages/billing/src/__tests__/projection-bench.ts`: a projected store — lot projection maintained in the commit, key index, per-lot commit guard — over one account of 6 000 movements in 1 000 lots; 100 calls per scenario, 30 warmup, median of 3 samples, 3 runs): the pre-call check 188 → 124 µs/call; a first debit 324 → 216 µs/call; the replay of an already-charged key 60 → 4 µs/call (~15×, the lookup answers and nothing else is read); a debit under a rolling-day rule that asks for a one-day window 7 962 → 800 µs/call (~10×, the rule's window is cloned, not the journal). Before the change the same rule received a frozen clone of the whole journal on every call. + + Migration for a host: a storage adapter MUST implement `loadEventsByKey` — answer from an index on (account, `correlationId`) when the store keeps one, or filter the journal when it does not; the answer MUST be exactly what a full read of the journal filtered by `correlationId` gives, and the lookup joins a `withAccount` unit of the same account like every other read. A debit rule that reads `ctx.history` MUST declare the window it needs (`history: { sinceMs, limit }`); without a declaration it sees an empty history, and the journal is not read for it. Rules that do not read history need no change. + +- 5d45a08: **Breaking (pre-1.0 minor).** `StoragePort` gains the one unit of work per account: `withAccount(accountId, unit)`, where the engine's whole read-compute-write for one account runs, serialized against every other unit and every bare `commit` on the same account across every connection and process that shares the store. The billing engine now runs inside it: `applyPayment`, the refund and dispute paths, `drainDeferred`, `debit`, the holds' `hold`/`settle`/`release`, `applyGrant` and `runDueIncludes` all read, compute and write in the unit, so a stale read can no longer double-charge one key (STORE-CONC-SAME-KEY) or refuse a debit the account could serve (STORE-CONC-DEBITS). The state writes made inside the unit — subscription periods, the payment-to-account link, deferred facts — enlist in its transaction when the host's state store shares the storage's database, so a cut between the journal and the state can no longer leave a payment effect without its period (STORE-CONC-CUT, STORE-CONC-TX): the unit leaves nothing, and a replay applies the payment whole. The engine's in-process queue stays, as an optimization that stops at the process boundary; it is no longer the guarantee. New storage contract cases STORE-CONC, STORE-CONC-COMMIT, STORE-CONC-VERSION, STORE-CONC-ACROSS and STORE-CONC-SERIAL pin the adapter side on the reference in-memory adapter over a shared `MemoryStore` (two connections, one store); the wallet's reference test adapter implements both serialization mechanisms, `lock` (the account held for the whole unit, what production adapters do with `SELECT ... FOR UPDATE`) and `version` (optimistic, the unit body re-run on a moved journal version), while the stores the billing kit ships are lock-only, the recommendation. Measured on that adapter, 400 units, median of 3: one contended account 99,635 units/s for `lock` against 17,823 for `version` (5,880 retries re-run for 400 units, and with the default retry budget of 5 a unit lost its race six times in a row and the operation failed outright); 8 accounts 591,643 against 366,622 (392 retries); uncontended, identical. The lock is the default and the recommendation; `version` stays available for a store that cannot hold a row for a unit's duration. `holds` answers `uncertain` on any unit failure, the one honest answer when the write may have landed; the lost-acknowledgement harness of the HOLD-8 to HOLD-14 contract cases moves to the unit boundary, where an ambiguous outcome now lives. The cases and their invariants are unchanged. + + Migration for a host: a storage adapter MUST implement `withAccount` — hold the account row for the unit's whole duration in one transaction (read, commit, release), or run the body against a journal version and re-run it when the version moved at flush; either way two units on one account never interleave and the engine never writes on a stale read. A state store that shares the storage's database SHOULD enlist its writes in the running unit's transaction (the wiring of the reference `InMemoryTransactionalStore`); a store that cannot keeps the older replay-repairs semantics and accepts the window between the journal commit and the state write. A host that already serialises per account with a row lock keeps its behaviour: the port now names what it was already doing. + +### Patch Changes + +- bcb4cc2: Replace host product name with generic wording in wallet port docs + ## 0.3.1 ### Patch Changes diff --git a/packages/wallet/package.json b/packages/wallet/package.json index 7f86340539..64a02c6e68 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/wallet", - "version": "0.3.1", + "version": "0.4.0", "description": "@agentproto/wallet — AIP-49 principal-owned multi-asset wallet primitive. Assets declared ERC-20-style (ref/symbol/decimals/standard/peg/ruleSet) ⊃ partitions (ERC-1410 tranches) ⊃ lots. Event-sourced journal, restriction lattice (no-arbitrage convert), coalescing spend, allowance delegation. Pure: zero runtime, zero filesystem, zero HTTP — all I/O via injected ports.", "keywords": [ "agentproto", diff --git a/packages/workflow-ai-sdk/CHANGELOG.md b/packages/workflow-ai-sdk/CHANGELOG.md index e9265825ee..0da48855e5 100644 --- a/packages/workflow-ai-sdk/CHANGELOG.md +++ b/packages/workflow-ai-sdk/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/workflow-ai-sdk +## 0.1.31 + +### Patch Changes + +- @agentproto/workflow-runtime@0.21.6 + ## 0.1.30 ### Patch Changes diff --git a/packages/workflow-ai-sdk/package.json b/packages/workflow-ai-sdk/package.json index fe8e54ac41..d8d8c902a6 100644 --- a/packages/workflow-ai-sdk/package.json +++ b/packages/workflow-ai-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/workflow-ai-sdk", - "version": "0.1.30", + "version": "0.1.31", "description": "@agentproto/workflow-ai-sdk — project an AIP-15 WORKFLOW.md's compiled RuntimeWorkflow onto a Vercel AI SDK `dynamicTool`. AI SDK has no first-class step-graph primitive, so the whole compiled workflow runs through `@agentproto/workflow-runtime`'s own `runWorkflow` behind one tool call (whole-workflow-as-one-tool) rather than a step-by-step mapping. Kinds with no clean single-call target (`suspend`, `approval`) fail loud at wrap time instead of silently dropping.", "keywords": [ "agentproto", diff --git a/packages/workflow-mastra/CHANGELOG.md b/packages/workflow-mastra/CHANGELOG.md index 0970f2baa1..12ed059457 100644 --- a/packages/workflow-mastra/CHANGELOG.md +++ b/packages/workflow-mastra/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/workflow-mastra +## 0.2.21 + +### Patch Changes + +- @agentproto/workflow-runtime@0.21.6 + ## 0.2.20 ### Patch Changes diff --git a/packages/workflow-mastra/package.json b/packages/workflow-mastra/package.json index b6366b348b..c313e64382 100644 --- a/packages/workflow-mastra/package.json +++ b/packages/workflow-mastra/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/workflow-mastra", - "version": "0.2.20", + "version": "0.2.21", "description": "@agentproto/workflow-mastra — project an AIP-15 WORKFLOW.md's compiled RuntimeWorkflow onto a Mastra `createWorkflow`. Runtime projection (same one-level-up relationship `toMastraTool` has to `implementTool`): tool/agent steps carry their real declared schemas, tool steps dispatch through the same `runTool` resolver the engine itself uses, control-flow kinds (branch/parallel/map/loop/subworkflow) map onto Mastra's native `.branch()/.parallel()/.foreach()/.dowhile()` combinators, and a top-level `suspend`/`approval` projects to native Mastra suspend/resume. Kinds with no clean Mastra target (`gate`, `pipeline`, a NESTED `suspend`/`approval`) fail loud instead of silently dropping.", "keywords": [ "agentproto", diff --git a/packages/workflow-runtime/CHANGELOG.md b/packages/workflow-runtime/CHANGELOG.md index e9bd730982..9deafa197b 100644 --- a/packages/workflow-runtime/CHANGELOG.md +++ b/packages/workflow-runtime/CHANGELOG.md @@ -1,5 +1,12 @@ # @agentproto/workflow-runtime +## 0.21.6 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + ## 0.21.5 ### Patch Changes diff --git a/packages/workflow-runtime/package.json b/packages/workflow-runtime/package.json index a6bb435ffb..b258f14ab7 100644 --- a/packages/workflow-runtime/package.json +++ b/packages/workflow-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/workflow-runtime", - "version": "0.21.5", + "version": "0.21.6", "description": "Reference step-walker for AIP-15 WORKFLOW composition: executes a typed step graph (tool / map / branch / loop / transform) over @agentproto/driver runTool, threading each step's output into a run-scoped binding bag (the AIP-16 IO seam, expressed as typed selectors). The missing executor that makes 'composition = config' runnable.", "keywords": [ "agentproto", diff --git a/packages/workspace-brain/CHANGELOG.md b/packages/workspace-brain/CHANGELOG.md index 92c8bd9096..a5252a2b81 100644 --- a/packages/workspace-brain/CHANGELOG.md +++ b/packages/workspace-brain/CHANGELOG.md @@ -1,5 +1,13 @@ # @agentproto/workspace-brain +## 0.7.7 + +### Patch Changes + +- Updated dependencies [6693b03] + - @agentproto/corpus@1.0.5 + - @agentproto/adapter-knowledge-files@0.5.7 + ## 0.7.6 ### Patch Changes diff --git a/packages/workspace-brain/package.json b/packages/workspace-brain/package.json index a5baaeee79..fa9e9d70f5 100644 --- a/packages/workspace-brain/package.json +++ b/packages/workspace-brain/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/workspace-brain", - "version": "0.7.6", + "version": "0.7.7", "description": "A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. Splits each transcript into turn-bounded chunks for retrieval. Reuses the IKnowledgeProvider contract and the knowledge adapter family.", "keywords": [ "agentproto", diff --git a/packages/worktree-agent-example/CHANGELOG.md b/packages/worktree-agent-example/CHANGELOG.md index 0291f8ff41..279f4f5a03 100644 --- a/packages/worktree-agent-example/CHANGELOG.md +++ b/packages/worktree-agent-example/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/worktree-agent-example +## 0.0.48 + +### Patch Changes + +- @agentproto/worktree@0.24.2 + ## 0.0.47 ### Patch Changes diff --git a/packages/worktree-agent-example/package.json b/packages/worktree-agent-example/package.json index d2865803c5..46ea5e9402 100644 --- a/packages/worktree-agent-example/package.json +++ b/packages/worktree-agent-example/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/worktree-agent-example", - "version": "0.0.47", + "version": "0.0.48", "description": "Example: a code-defined AIP-15 workflow that provisions a git worktree, runs a coding agent in it (AgentStep.cwd bound to the provisioned worktree), gates the result, waits for human approval, then cleans up.", "private": true, "license": "Apache-2.0", diff --git a/packages/worktree/CHANGELOG.md b/packages/worktree/CHANGELOG.md index e6bd8d6180..f9e5209067 100644 --- a/packages/worktree/CHANGELOG.md +++ b/packages/worktree/CHANGELOG.md @@ -1,5 +1,11 @@ # @agentproto/worktree +## 0.24.2 + +### Patch Changes + +- @agentproto/workflow-runtime@0.21.6 + ## 0.24.1 ### Patch Changes diff --git a/packages/worktree/package.json b/packages/worktree/package.json index e8a6baa519..ed3f6a0064 100644 --- a/packages/worktree/package.json +++ b/packages/worktree/package.json @@ -1,6 +1,6 @@ { "name": "@agentproto/worktree", - "version": "0.24.1", + "version": "0.24.2", "description": "AIP-14 TOOL contracts + builtin AIP-30 PROVIDER for provisioning, gating, and cleaning up a git worktree — the primitive an AgentStep binds its `cwd` to for a launch-agent-in-a-worktree workflow.", "keywords": [ "agentproto",