stitchkit 0.132.3 → 0.133.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +178 -1
- package/README.md +4 -0
- package/dist/agent-executor/acp/v1-connect.d.ts +12 -1
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-driver.d.ts +3 -1
- package/dist/agent-executor/acp/v1-driver.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts +9 -1
- package/dist/agent-executor/acp/v1-handlers.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-permission.d.ts +3 -2
- package/dist/agent-executor/acp/v1-permission.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-probe.d.ts +10 -1
- package/dist/agent-executor/acp/v1-probe.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +11 -2
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-turn.d.ts +13 -10
- package/dist/agent-executor/acp/v1-turn.d.ts.map +1 -1
- package/dist/agent-executor/claude/cli-driver.d.ts +6 -0
- package/dist/agent-executor/claude/cli-driver.d.ts.map +1 -1
- package/dist/agent-executor/claude/record-router.d.ts +44 -0
- package/dist/agent-executor/claude/record-router.d.ts.map +1 -0
- package/dist/agent-executor/claude/session.d.ts +2 -0
- package/dist/agent-executor/claude/session.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/driver.d.ts +20 -2
- package/dist/agent-executor/claude-sdk/driver.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/engine-spawn.d.ts +18 -0
- package/dist/agent-executor/claude-sdk/engine-spawn.d.ts.map +1 -0
- package/dist/agent-executor/claude-sdk/query-loop.d.ts +8 -11
- package/dist/agent-executor/claude-sdk/query-loop.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-manager.d.ts +4 -2
- package/dist/agent-executor/claude-sdk/query-manager.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/query-options.d.ts +1 -0
- package/dist/agent-executor/claude-sdk/query-options.d.ts.map +1 -1
- package/dist/agent-executor/claude-sdk/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/capabilities.d.ts +8 -0
- package/dist/agent-executor/codex/capabilities.d.ts.map +1 -0
- package/dist/agent-executor/codex/connect.d.ts +6 -1
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/driver.d.ts +10 -0
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/codex/event-routing.d.ts +23 -1
- package/dist/agent-executor/codex/event-routing.d.ts.map +1 -1
- package/dist/agent-executor/codex/handlers.d.ts +23 -3
- package/dist/agent-executor/codex/handlers.d.ts.map +1 -1
- package/dist/agent-executor/codex/limits.d.ts +17 -0
- package/dist/agent-executor/codex/limits.d.ts.map +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts +23 -3
- package/dist/agent-executor/codex/request-answers.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-bind.d.ts +6 -1
- package/dist/agent-executor/codex/session-bind.d.ts.map +1 -1
- package/dist/agent-executor/codex/session-types.d.ts +5 -1
- package/dist/agent-executor/codex/session-types.d.ts.map +1 -1
- package/dist/agent-executor/codex/session.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-server.d.ts.map +1 -1
- package/dist/agent-executor/codex/shared-thread.d.ts +6 -8
- package/dist/agent-executor/codex/shared-thread.d.ts.map +1 -1
- package/dist/agent-executor/codex/thread-open.d.ts +12 -3
- package/dist/agent-executor/codex/thread-open.d.ts.map +1 -1
- package/dist/agent-executor/engine-requests.d.ts +42 -0
- package/dist/agent-executor/engine-requests.d.ts.map +1 -1
- package/dist/agent-executor/handoff-schemas.d.ts.map +1 -1
- package/dist/agent-executor/handoff.d.ts.map +1 -1
- package/dist/agent-executor/image-input.d.ts +6 -5
- package/dist/agent-executor/image-input.d.ts.map +1 -1
- package/dist/agent-executor/profile.d.ts +3 -5
- package/dist/agent-executor/profile.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +64 -3
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/claude-sdk-stubs.d.ts +5 -0
- package/dist/agent-executor/testing/claude-sdk-stubs.d.ts.map +1 -0
- package/dist/agent-executor/testing/conformance-lifecycle.d.ts +11 -0
- package/dist/agent-executor/testing/conformance-lifecycle.d.ts.map +1 -0
- package/dist/agent-executor/testing/conformance-support.d.ts +23 -0
- package/dist/agent-executor/testing/conformance-support.d.ts.map +1 -0
- package/dist/agent-executor/testing/conformance.d.ts +7 -2
- package/dist/agent-executor/testing/conformance.d.ts.map +1 -1
- package/dist/agent-executor/testing/consumer-stubs.d.ts +5 -3
- package/dist/agent-executor/testing/consumer-stubs.d.ts.map +1 -1
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts +5 -1
- package/dist/agent-executor/testing/fake-codex-app-server.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-driver.d.ts +6 -0
- package/dist/agent-executor/testing/replay-driver.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-gate.d.ts +4 -1
- package/dist/agent-executor/testing/replay-gate.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-types.d.ts +2 -0
- package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tools.d.ts.map +1 -1
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/operation-refusal.d.ts +10 -0
- package/dist/browser/operation-refusal.d.ts.map +1 -0
- package/dist/contract/client-types.d.ts +13 -4
- package/dist/contract/client-types.d.ts.map +1 -1
- package/dist/contract/define-validation.d.ts +6 -0
- package/dist/contract/define-validation.d.ts.map +1 -1
- package/dist/contract/define.d.ts +3 -0
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/contract/errors-factory.d.ts +8 -2
- package/dist/contract/errors-factory.d.ts.map +1 -1
- package/dist/contract/errors.d.ts +9 -0
- package/dist/contract/errors.d.ts.map +1 -1
- package/dist/contract/fingerprint.d.ts +4 -1
- package/dist/contract/fingerprint.d.ts.map +1 -1
- package/dist/contract/operation-refusals.d.ts +51 -0
- package/dist/contract/operation-refusals.d.ts.map +1 -0
- package/dist/contract/tool-options.d.ts +4 -0
- package/dist/contract/tool-options.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +253 -210
- package/dist/entrypoints/agent-executor/claude-sdk.js +248 -173
- package/dist/entrypoints/agent-executor/claude.js +57 -109
- package/dist/entrypoints/agent-executor/codex.js +412 -335
- package/dist/entrypoints/agent-executor/testing/claude-sdk.d.ts +3 -0
- package/dist/entrypoints/agent-executor/testing/claude-sdk.d.ts.map +1 -0
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +329 -0
- package/dist/entrypoints/agent-executor/testing.d.ts +1 -2
- package/dist/entrypoints/agent-executor/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/testing.js +413 -667
- package/dist/entrypoints/agent-executor.d.ts +1 -1
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +12 -12
- package/dist/entrypoints/agent-runtime/browser.js +2 -2
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +8 -8
- package/dist/entrypoints/agent-runtime/postgres.js +5 -5
- package/dist/entrypoints/agent-runtime/realtime.js +2 -2
- package/dist/entrypoints/agent-runtime/sandbox.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +6 -6
- package/dist/entrypoints/agent-runtime/sqlite/node.js +6 -6
- package/dist/entrypoints/agent-runtime/testing.js +5 -5
- package/dist/entrypoints/agent-runtime.js +26 -18
- package/dist/entrypoints/application/grammy.js +1 -1
- package/dist/entrypoints/application.js +2 -2
- package/dist/entrypoints/cli.js +8 -8
- package/dist/entrypoints/contract.d.ts +3 -2
- package/dist/entrypoints/contract.d.ts.map +1 -1
- package/dist/entrypoints/contract.js +6 -4
- package/dist/entrypoints/files/packaging.d.ts +4 -1
- package/dist/entrypoints/files/packaging.d.ts.map +1 -1
- package/dist/entrypoints/files/packaging.js +1008 -168
- package/dist/entrypoints/files.js +1 -1
- package/dist/entrypoints/handler.js +7 -7
- package/dist/entrypoints/http.js +2 -2
- package/dist/entrypoints/index.js +10 -8
- package/dist/entrypoints/node.js +11 -11
- package/dist/entrypoints/observability.js +1 -1
- package/dist/entrypoints/process/bootstrap.d.ts +3 -0
- package/dist/entrypoints/process/bootstrap.d.ts.map +1 -0
- package/dist/entrypoints/process/bootstrap.js +16 -0
- package/dist/entrypoints/process.js +7 -7
- package/dist/entrypoints/realtime.js +3 -3
- package/dist/entrypoints/remote.js +8 -7
- package/dist/entrypoints/server.js +30 -14
- package/dist/entrypoints/service-host/macos.js +72 -206
- package/dist/entrypoints/service-host/work.d.ts +15 -0
- package/dist/entrypoints/service-host/work.d.ts.map +1 -0
- package/dist/entrypoints/service-host/work.js +676 -0
- package/dist/entrypoints/service-host.js +146 -536
- package/dist/entrypoints/telegram/screens.js +4 -4
- package/dist/entrypoints/telegram.js +4 -4
- package/dist/entrypoints/testing.d.ts +2 -1
- package/dist/entrypoints/testing.d.ts.map +1 -1
- package/dist/entrypoints/testing.js +27 -8
- package/dist/entrypoints/tools/agent.js +6 -6
- package/dist/entrypoints/tools/connections.js +2 -2
- package/dist/entrypoints/tools/invoker.js +5 -5
- package/dist/entrypoints/tools/mcp.js +8 -6
- package/dist/entrypoints/tools/toolkit.js +11 -9
- package/dist/entrypoints/tools.js +19 -17
- package/dist/entrypoints/tracking/contract.js +1 -1
- package/dist/entrypoints/tracking/performance.js +3 -3
- package/dist/files/client-artifact.d.ts +14 -42
- package/dist/files/client-artifact.d.ts.map +1 -1
- package/dist/files/client-build.d.ts +57 -0
- package/dist/files/client-build.d.ts.map +1 -0
- package/dist/files/client-declarations.d.ts +35 -0
- package/dist/files/client-declarations.d.ts.map +1 -0
- package/dist/files/client-package-bundle.d.ts +25 -0
- package/dist/files/client-package-bundle.d.ts.map +1 -0
- package/dist/files/client-package-contract.d.ts +183 -0
- package/dist/files/client-package-contract.d.ts.map +1 -0
- package/dist/files/client-package-proof.d.ts +40 -0
- package/dist/files/client-package-proof.d.ts.map +1 -0
- package/dist/files/client-package.d.ts +17 -0
- package/dist/files/client-package.d.ts.map +1 -0
- package/dist/files/declaration-specifiers.d.ts +30 -0
- package/dist/files/declaration-specifiers.d.ts.map +1 -0
- package/dist/{index-v759mzed.js → index-02r5sq9p.js} +36 -23
- package/dist/{index-0r15pkjq.js → index-0k1ba0ss.js} +1 -1
- package/dist/{index-znd1b57f.js → index-1dn2wjq6.js} +5 -4
- package/dist/{index-p06z7g7w.js → index-1p8q0yrt.js} +6 -5
- package/dist/{index-wa6h4tz6.js → index-1qwd54n3.js} +6 -5
- package/dist/index-2dzc7mv9.js +174 -0
- package/dist/index-2mz8hj58.js +155 -0
- package/dist/{index-17qgm6xe.js → index-34k82crg.js} +2 -2
- package/dist/index-3mcbr8sx.js +349 -0
- package/dist/{index-ybdq8kk2.js → index-3y2tzhr8.js} +3 -3
- package/dist/{index-fgahdc7s.js → index-5n3a8hd8.js} +5 -3
- package/dist/{index-jb4m241t.js → index-6918kxbf.js} +45 -1
- package/dist/{index-n3bm7zqq.js → index-6kmjcm81.js} +4 -4
- package/dist/{index-akf0xkrm.js → index-78da4g74.js} +1 -1
- package/dist/{index-9pv126eh.js → index-7fjbdga8.js} +7 -1
- package/dist/{index-zhshhxew.js → index-8jf4bt7v.js} +1 -1
- package/dist/{index-p16q492v.js → index-8t9dr41h.js} +18 -5
- package/dist/{index-xq4s9mka.js → index-8yt3rwe7.js} +1 -1
- package/dist/{index-39c2hj6h.js → index-9c76vfxf.js} +7 -3
- package/dist/index-9ft4n9j1.js +432 -0
- package/dist/{index-sd4e5x5j.js → index-9wdrwx3b.js} +8 -7
- package/dist/{index-z114ax5e.js → index-an7vcmwf.js} +49 -2
- package/dist/{index-pzhqydxb.js → index-d04w81fz.js} +1 -1
- package/dist/index-d2drhb9c.js +219 -0
- package/dist/{index-8gmmdz7k.js → index-dacxr7nf.js} +1 -1
- package/dist/{index-dnzxxf8a.js → index-dm6nxkn1.js} +1 -1
- package/dist/index-dxft2mnm.js +42 -0
- package/dist/{index-rxh3qy4x.js → index-fzd477xk.js} +1 -1
- package/dist/{index-xgae0bn7.js → index-g4gstmp1.js} +2 -2
- package/dist/{index-athc412x.js → index-g5fgeb6v.js} +1 -1
- package/dist/{index-z9d74jmb.js → index-gbhj370g.js} +3 -3
- package/dist/{index-3fym4j8n.js → index-gtaaxe9d.js} +1 -1
- package/dist/{index-v59pxmf1.js → index-jpecjm30.js} +2 -2
- package/dist/index-k9g061ma.js +164 -0
- package/dist/{index-669374qc.js → index-ma26mfnt.js} +84 -315
- package/dist/{index-ryxb427v.js → index-msxf2r8x.js} +16 -3
- package/dist/{index-rbd2rq3z.js → index-nr4fhfn4.js} +1 -1
- package/dist/{index-qa2jjb65.js → index-pbekeqzm.js} +1 -1
- package/dist/{index-mkfhpk11.js → index-pq6g1k9t.js} +2 -2
- package/dist/{index-gya4hwh3.js → index-pws5c3x6.js} +21 -1
- package/dist/{index-x2fb37t0.js → index-q427q23r.js} +3 -2
- package/dist/{index-jcrj0b8z.js → index-qggqqja2.js} +39 -2
- package/dist/{index-jxtg307y.js → index-rkjfzs0a.js} +1 -1
- package/dist/{index-5tdc0q43.js → index-rw8ze745.js} +5 -3
- package/dist/index-s43tr4my.js +129 -0
- package/dist/{index-f9p62ean.js → index-stpy56r3.js} +175 -249
- package/dist/index-t5g5rm9n.js +213 -0
- package/dist/{index-z20pdxeb.js → index-tmv3ez1h.js} +3 -3
- package/dist/{index-dcsxj68j.js → index-tqjamnax.js} +1 -1
- package/dist/{index-j15dhkda.js → index-wddcfbng.js} +1 -325
- package/dist/{index-9sfhje6y.js → index-wh70tmpd.js} +24 -234
- package/dist/index-wxjv4sqx.js +82 -0
- package/dist/{index-qhjmmsm2.js → index-x46y9z26.js} +2 -2
- package/dist/{index-nk0cy9g1.js → index-y53cqwke.js} +1 -1
- package/dist/{index-sv5svtq7.js → index-y68gavb5.js} +1 -1
- package/dist/{index-5y7j383h.js → index-yrhw10ef.js} +1 -1
- package/dist/process/bootstrap.d.ts +12 -0
- package/dist/process/bootstrap.d.ts.map +1 -0
- package/dist/process/owner-loss-guard.d.ts +2 -9
- package/dist/process/owner-loss-guard.d.ts.map +1 -1
- package/dist/process/work-root.d.ts +20 -0
- package/dist/process/work-root.d.ts.map +1 -0
- package/dist/server/contract-identity.d.ts.map +1 -1
- package/dist/server/contract-method.d.ts +12 -0
- package/dist/server/contract-method.d.ts.map +1 -1
- package/dist/server/implement.d.ts.map +1 -1
- package/dist/server/openapi.d.ts.map +1 -1
- package/dist/server/types.d.ts +10 -9
- package/dist/server/types.d.ts.map +1 -1
- package/dist/service-host/host-adapter.d.ts +2 -0
- package/dist/service-host/host-adapter.d.ts.map +1 -1
- package/dist/service-host/work/command.d.ts +72 -0
- package/dist/service-host/work/command.d.ts.map +1 -0
- package/dist/service-host/work/errors.d.ts +29 -0
- package/dist/service-host/work/errors.d.ts.map +1 -0
- package/dist/service-host/work/host.d.ts +38 -0
- package/dist/service-host/work/host.d.ts.map +1 -0
- package/dist/service-host/work/launch.d.ts +51 -0
- package/dist/service-host/work/launch.d.ts.map +1 -0
- package/dist/service-host/work/membership.d.ts +51 -0
- package/dist/service-host/work/membership.d.ts.map +1 -0
- package/dist/service-host/work/origin.d.ts +79 -0
- package/dist/service-host/work/origin.d.ts.map +1 -0
- package/dist/service-host/work/owner.d.ts +45 -0
- package/dist/service-host/work/owner.d.ts.map +1 -0
- package/dist/service-host/work/placement.d.ts +55 -0
- package/dist/service-host/work/placement.d.ts.map +1 -0
- package/dist/service-host/work/probe.d.ts +24 -0
- package/dist/service-host/work/probe.d.ts.map +1 -0
- package/dist/service-host/work/scope-command.d.ts +68 -0
- package/dist/service-host/work/scope-command.d.ts.map +1 -0
- package/dist/sync/session.d.ts +4 -1
- package/dist/sync/session.d.ts.map +1 -1
- package/dist/testing/surface-manifest-digest.d.ts +2 -0
- package/dist/testing/surface-manifest-digest.d.ts.map +1 -1
- package/dist/testing/surface-manifest.d.ts +32 -3
- package/dist/testing/surface-manifest.d.ts.map +1 -1
- package/dist/tools/agent.d.ts +2 -0
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/cli/stream-surface.d.ts.map +1 -1
- package/dist/tools/internal/mcp-projection.d.ts +58 -0
- package/dist/tools/internal/mcp-projection.d.ts.map +1 -0
- package/dist/tools/internal/surface-projector.d.ts +3 -47
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/invoker.d.ts +2 -0
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +2 -0
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/mcp/handler.d.ts.map +1 -1
- package/dist/tools/mcp/lazy-discovery.d.ts.map +1 -1
- package/dist/tools/mcp/mount.d.ts +4 -0
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/prepare.d.ts +5 -2
- package/dist/tools/mcp/prepare.d.ts.map +1 -1
- package/dist/tools/mount.d.ts +2 -0
- package/dist/tools/mount.d.ts.map +1 -1
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/schema/nesting-limit.d.ts +8 -0
- package/dist/tools/schema/nesting-limit.d.ts.map +1 -0
- package/dist/tools/schema/presentation.d.ts +7 -0
- package/dist/tools/schema/presentation.d.ts.map +1 -1
- package/dist/tools/surface.d.ts.map +1 -1
- package/llms/agent-executor-acp.txt +3 -3
- package/llms/agent-executor-claude-sdk.txt +1 -1
- package/llms/agent-executor-claude.txt +1 -1
- package/llms/agent-executor-codex.txt +1 -1
- package/llms/agent-executor-testing-claude-sdk.txt +28 -0
- package/llms/agent-executor-testing.txt +7 -8
- package/llms/agent-executor.txt +27 -4
- package/llms/agent-runtime.txt +1 -1
- package/llms/contract.txt +8 -2
- package/llms/files-packaging.txt +11 -6
- package/llms/process-bootstrap.txt +18 -0
- package/llms/process.2.txt +248 -18
- package/llms/process.txt +130 -92
- package/llms/server.4.txt +49 -1
- package/llms/service-host-work.txt +34 -0
- package/llms/stitchkit.2.txt +31 -0
- package/llms/stitchkit.txt +78 -75
- package/llms/sync.txt +5 -2
- package/llms/testing.txt +1 -0
- package/llms/tools.2.txt +747 -775
- package/llms/tools.3.txt +846 -210
- package/llms/tools.4.txt +226 -0
- package/llms/tools.txt +3 -790
- package/llms/{upgrading-0.128.0-0.132.0.txt → upgrading-0.128.0-0.133.0.txt} +194 -6
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +779 -135
- package/llms.txt +18 -16
- package/package.json +12 -4
- package/dist/entrypoints/process/owner-loss.d.ts +0 -3
- package/dist/entrypoints/process/owner-loss.d.ts.map +0 -1
- package/dist/entrypoints/process/owner-loss.js +0 -7
- package/llms/process-owner-loss.txt +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,183 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
|
|
|
15
15
|
|
|
16
16
|
## [Unreleased]
|
|
17
17
|
|
|
18
|
+
## [0.133.1] - 2026-11-27
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- `stitchkit/files/packaging` — `buildClientPackage` takes `exportedFiles` and `replaceModules`, so a client package that publishes its own manifest, a data file or a version read from the project's `package.json` can be built by it. `exportedFiles: ['./package.json', './native-stream.json']` writes the archive's own manifest and paths from `files` into `exports`; the proof resolves each by the package name to its packed file in every runtime, imports a `.json` one as JSON and typechecks `import pkg from '<name>/package.json' with { type: 'json' }` under Bundler and NodeNext, and `ClientPackage.proof.exportedFiles` lists them. `replaceModules: { 'package.json': JSON.stringify({ version }) }` builds every import of that file from the given contents, so the client ships one field instead of the project's `scripts` and `devDependencies`; a replacement no bundled module imports is refused with the new reason `replacement-unused`. The entries are now built by `Bun.build` from a script the build writes and runs in the same bounded `bun`, as the command line takes no plugin; the options it passes are the ones the command line spelled. → ADR 0335
|
|
23
|
+
|
|
24
|
+
## [0.133.0] - 2026-11-27
|
|
25
|
+
|
|
26
|
+
### ⚠️ Breaking changes
|
|
27
|
+
|
|
28
|
+
**Who must act:** callers of `stitchkit/agent-executor/codex` that call `unsubscribeThread` on a thread their own driver opened. [Migration](docs/guide/upgrading.md#codex-owned-thread-unsubscribe)
|
|
29
|
+
|
|
30
|
+
**Who must act:** tests that import `createFakeClaudeSdkQuery`, `createStubClaudeSdkSession` or a `FakeClaudeSdk*` type from `stitchkit/agent-executor/testing`. [Migration](docs/guide/upgrading.md#executor-testing-claude-sdk-subpath)
|
|
31
|
+
|
|
32
|
+
**Who must act:** callers of `sanitizeProfileEnv` from `stitchkit/agent-executor`. [Migration](docs/guide/upgrading.md#executor-profile-env-sanitizer)
|
|
33
|
+
|
|
34
|
+
**Who must act:** builds that call `buildClientArtifact` (`stitchkit/files/packaging`) with `package` or `executable`. [Migration](docs/guide/upgrading.md#client-artifact-package-option)
|
|
35
|
+
|
|
36
|
+
**Who must act:** single-file applications that import `stitchkit/process/owner-loss`. [Migration](docs/guide/upgrading.md#process-bootstrap-rename)
|
|
37
|
+
|
|
38
|
+
**Who must act:** tests that run `runAgentEngineConformance` (`stitchkit/agent-executor/testing`) on a driver written outside this package. [Migration](docs/guide/upgrading.md#executor-conformance-lifecycle)
|
|
39
|
+
|
|
40
|
+
- `stitchkit/agent-executor/codex` — `CodexSession.unsubscribeThread` and `CodexSharedServer.unsubscribeThread` now reject with `TypeError` for a thread the driver itself opened (the session's own thread, or any thread open on the same shared server). The raw `thread/unsubscribe` detached such a thread behind the driver: the shared server kept counting its slot toward `maxThreads`, and an active turn never received `turn/completed`, so its stream hung and `startTurn` kept refusing. A thread the driver does not own is still one `thread/unsubscribe` call.
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
// before
|
|
44
|
+
await session.unsubscribeThread();
|
|
45
|
+
// after
|
|
46
|
+
await session.close();
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Affects:** `stitchkit/agent-executor/codex` CodexSession(unsubscribeThread), CodexSharedServer(unsubscribeThread)
|
|
50
|
+
|
|
51
|
+
- `stitchkit/agent-executor/testing` — the fake Claude SDK query and the Claude SDK session stub moved to the new evolving entrypoint `stitchkit/agent-executor/testing/claude-sdk`: `createFakeClaudeSdkQuery`, `createStubClaudeSdkSession`, `FakeClaudeSdkQueryConfig`, `FakeClaudeSdkQueryHarness`, `FakeClaudeSdkRecordedCall`, `FakeClaudeSdkRunController` and `FakeClaudeSdkScriptedTurn`. They are typed by `@anthropic-ai/claude-agent-sdk`, and since 0.131.0 their presence made the declarations of the whole testing entrypoint name that optional peer: a Codex or ACP driver's tests that imported `runAgentEngineConformance` without the SDK installed failed to typecheck (`TS2307`) with `skipLibCheck: false`. `stitchkit/agent-executor/testing` now declares no optional peer; `StubOverrides` stays there.
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
// before
|
|
55
|
+
import { createFakeClaudeSdkQuery, createStubClaudeSdkSession } from 'stitchkit/agent-executor/testing';
|
|
56
|
+
// after
|
|
57
|
+
import { createFakeClaudeSdkQuery, createStubClaudeSdkSession } from 'stitchkit/agent-executor/testing/claude-sdk';
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Affects:** `stitchkit/agent-executor/testing` createFakeClaudeSdkQuery, createStubClaudeSdkSession, FakeClaudeSdkQueryConfig, FakeClaudeSdkQueryHarness, FakeClaudeSdkRecordedCall, FakeClaudeSdkRunController, FakeClaudeSdkScriptedTurn
|
|
61
|
+
|
|
62
|
+
- `stitchkit/agent-executor` — `sanitizeProfileEnv` is removed. It silently dropped a profile variable whose name `ExecutorProfileConfigSchema` refuses — two answers to one fact — and nothing in the package called it. A name outside `EXECUTOR_ENV_KEY_PATTERN` is refused on every path a profile takes: the schema, `engineEnvironment`, `helloProfile` and every driver's `open()`.
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
// before
|
|
66
|
+
const env = sanitizeProfileEnv(untrusted);
|
|
67
|
+
// after: decide what an invalid name means in the application, then let the schema hold the rule
|
|
68
|
+
const env = Object.fromEntries(
|
|
69
|
+
Object.entries(untrusted).filter(
|
|
70
|
+
(entry): entry is [string, string] =>
|
|
71
|
+
typeof entry[1] === 'string' && EXECUTOR_ENV_KEY_PATTERN.test(entry[0]),
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Affects:** `stitchkit/agent-executor` sanitizeProfileEnv
|
|
77
|
+
|
|
78
|
+
- `stitchkit/files/packaging` — `buildClientArtifact` builds the self-contained file and nothing else: the `package` option and the `ClientArtifact.package` result are removed, and `executable` becomes `executables: { bun }`. The archive it packed bundled the client's peers and carried no declarations; an npm archive of a client is now made one way, by the new `buildClientPackage` (see Added), which needs a `tsconfig` and takes `entries` by subpath. → ADR 0331
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
// before
|
|
82
|
+
await buildClientArtifact({
|
|
83
|
+
entry: 'src/api-client.ts', outFile: 'dist/api-client.js', executable: '/opt/bun/bin/bun',
|
|
84
|
+
package: { name: '@acme/api-client', version: '1.4.0', outDir: 'dist', exports: ['createApiClient'] },
|
|
85
|
+
});
|
|
86
|
+
// after
|
|
87
|
+
await buildClientPackage({
|
|
88
|
+
name: '@acme/api-client', version: '1.4.0', outDir: 'dist',
|
|
89
|
+
entries: { '.': 'src/api-client.ts' }, tsconfig: 'tsconfig.json',
|
|
90
|
+
proof: { exports: { '.': ['createApiClient'] } }, executables: { bun: '/opt/bun/bin/bun' },
|
|
91
|
+
});
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Affects:** `stitchkit/files/packaging` buildClientArtifact(package, executable), ClientArtifactOptions(package, executable), ClientArtifact(package)
|
|
95
|
+
|
|
96
|
+
- `stitchkit/process/bootstrap` — replaces the removed `stitchkit/process/owner-loss`, and `bootstrapNativeCommandOwnerLoss()` is `bootstrapPackageProcess()`. A single-file application starts itself again for two package-owned jobs — the owner-loss guard of `runNativeCommand`, and now the recorded process root of work launched through `stitchkit/service-host/work` — and one bootstrap carries both, so a name that says "owner loss" no longer describes what the call does. The old subpath and the old name are removed without an alias; the return value means the same (`true`: the package owns this invocation, skip your dispatcher). → ADR 0332
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
// before
|
|
100
|
+
import { bootstrapNativeCommandOwnerLoss } from 'stitchkit/process/owner-loss';
|
|
101
|
+
if (!bootstrapNativeCommandOwnerLoss()) await main();
|
|
102
|
+
// after
|
|
103
|
+
import { bootstrapPackageProcess } from 'stitchkit/process/bootstrap';
|
|
104
|
+
if (!bootstrapPackageProcess()) await main();
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Affects:** `stitchkit/process/owner-loss` *
|
|
108
|
+
|
|
109
|
+
- `stitchkit/agent-executor/testing` — `runAgentEngineConformance` now also proves a session's life, and a driver that passed it before can fail it. After its earlier checks it runs five more on fresh sessions: `open` given an aborted signal, and `open` whose signal aborts from `onStartupPhase`, must reject with the signal's reason; an abort while a turn holds a request must fail the turn's stream with that reason, and `respond` and `startTurn` must then reject with it; `interrupt()` after the turn's end, after an abort and after `close()` must resolve; `close()` while a turn holds a request must fail that turn's stream, resolve when called twice at once and once more, and leave `onStartupPhase` silent. Each wait is bounded at 10 s, so a driver that hangs fails with `Agent engine conformance: <check>: … did not settle within 10000 ms` — under a test timeout shorter than that the runner's own timeout comes first. The capabilities check no longer skips a driver that declares none: `info().capabilities` must equal `driver.capabilities`, both absent or the same, and a `client-id` driver must have `findInput` either way. The kit proved a turn's content and nothing about abort or teardown, which is how one driver's fix for `respond` after `close()` reached the others three releases late and the replay driver ignored the caller's signal (ADR 0333).
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
// before: passed the kit although an aborted turn never settled
|
|
113
|
+
async open(input) {
|
|
114
|
+
return openSession(input.profile, input.cwd);
|
|
115
|
+
}
|
|
116
|
+
// after: the session follows the caller's signal, as the kit now asks
|
|
117
|
+
async open(input) {
|
|
118
|
+
input.signal?.throwIfAborted();
|
|
119
|
+
const session = await openSession(input.profile, input.cwd);
|
|
120
|
+
input.signal?.addEventListener('abort', () => session.fail(input.signal?.reason), { once: true });
|
|
121
|
+
return session;
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Affects:** `stitchkit/agent-executor/testing` runAgentEngineConformance(behaviour)
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
|
|
129
|
+
- `stitchkit/agent-executor/claude`, `stitchkit/agent-executor/claude-sdk`, `stitchkit/agent-executor/codex`, `stitchkit/agent-executor/acp` — `onObserverError(error, hook)` on every driver's configuration. A host callback that throws or rejects was contained, so the driver could keep reading its engine, and then dropped without a trace: a bug in `onServerRequest` left a request unanswered and nothing said why. The failure now reaches `onObserverError` with the name of the option that failed — `onStartupPhase`, `onDisconnect`, `onNotification`, `onServerRequest` (Codex), `onUpdate`, `onPermissionRequest`, `transformUpdate`, `onProviderPid` (ACP), `onPermissionRequest`, `onEvent`, `onTurnUsage`, `onQueryExit`, `onProviderPid`, `query.close` (Claude SDK) — or `driver:notification` for a failure inside a Codex shared server's own handling of one notification. A `JsonRpcError` an observer throws to refuse a request outside a turn is its answer and is not reported. Without the option nothing changes; a handler that itself throws is ignored.
|
|
130
|
+
|
|
131
|
+
- `stitchkit/agent-executor` — the version skew between an executor and its server has a written rule (ADR 0334) and a contract test. Every object of the contract is strict, so a key one release adds is refused by an older reader: the server is upgraded first, and it writes an added reply key (`scope`, `updatedInput`, `interrupt`) only to an executor whose `hello` declares the capability for it. The API reference lists what each release added to the wire, by direction; the test restores the JSON Schema of every message as releases 0.129.0, 0.130.1 and 0.132.3 declared it and fails when today's wire differs from that list.
|
|
132
|
+
|
|
133
|
+
- `stitchkit/service-host/work` — a new evolving entrypoint that launches work in a boundary of its own and declares who owns it, so a monitor can name the launcher, project and agent behind any process instead of one service holding a hundred of them. `launchWork({ owner, placement, command })` runs a command through the native-command owner inside a transient systemd scope (`placement: { kind: 'transient-scope', manager, slice, limits? }`; Linux, cgroup v2) or under a recorded process root (`{ kind: 'process-root' }`; Linux and macOS) and returns `{ origin, unit, root: { pid, instance }, result, stop() }`; `workCommand` returns the same placement as argv and environment for another spawner, such as a terminal multiplexer. `WorkOwnerSchema` is the owner record — launcher, id, label, and `project`, `agent` and `parent` as a value or an explicit `null`. The launched command and its descendants inherit one variable, `STITCHKIT_WORK_ORIGIN`, which only names the boundary: `checkWorkMembership({ pid, boundary })` asks the boundary and answers `member`, `outside`, `gone` or `unavailable` with a reason, and `inheritedWork()` returns the inherited reference only for a process proven to be inside. A scope is started with `--expand-environment=no`, so a command's `$` arguments arrive as written; that option exists since systemd 254, and an older systemd is refused with `WorkLaunchError` reason `systemd-too-old` instead of a boundary that rewrites its command. No boundary is ever substituted for another: an unavailable one refuses by name (`probeWorkBoundary` asks without launching). `slice: 'caller'` keeps the caller's own slice and its limits; `limits` (`memoryMaxMb`, `memorySwapMaxMb`, `cpuQuotaPercent`, `cpuWeight`, `runtimeMaxSeconds`) become unit properties. → ADR 0332
|
|
134
|
+
|
|
135
|
+
- `stitchkit/files/packaging` — `buildClientPackage` builds a typed client into an npm archive and returns it only once proven. Every entry (`entries: { '.': …, './monitoring': … }`) is built in one pass over one module graph, so a schema or error class two entries export is one object across them in Node and Bun; `peerDependencies` and `dependencies` stay outside the output and go into the manifest. Declarations are emitted with the project `tsconfig` for the entries' graph only and every relative specifier is rewritten to its `.js` file, so they resolve under `moduleResolution: bundler` and `NodeNext`; a declaration that names a module the package does not declare, or a package that is neither a peer nor a dependency, is refused. The archive is then installed into an empty directory beside its peers: every subpath is imported by name, shared exports are compared, installed versions are checked against the declared ranges, and a strict consumer (`skipLibCheck: false`, plus your own `proof.typecheck` sources) is typechecked under both resolutions. A refusal is a `ClientPackageError` with a closed `reason` and `details`, or a `ForbiddenModuleError`; no archive is left behind. The entrypoint's surface ceiling rises 15 → 20 for `buildClientPackage`, `ClientPackage`, `ClientPackageOptions`, `ClientPackageManifest` and `ClientPackageError`. [Guide](docs/guide/native-io.md#a-typed-client-as-an-npm-package) → ADR 0331
|
|
136
|
+
|
|
137
|
+
- `stitchkit/tools`, `stitchkit/tools/mcp`, `stitchkit/tools/agent`, `stitchkit/contract`, `stitchkit/agent-runtime`, `stitchkit/testing` — `inputNestingDepth` keeps every advertised tool input within a provider's nesting limit (some providers refuse the whole tool set when one input is nested deeper than ten levels). It counts as such a provider counts — a level per `properties → property` or `items` step, free branches, two levels for a property named `items` or `properties` — and opens the node whose next step would cross the limit as `{}`, as deep as the limit allows, keeping its `description`; the handler still validates with the contract's schema, and `requireTypedProperties` accepts the opened paths. It is set where `inputRecursionDepth` is — the surface (`mountMcp`, `createMcpHandler`, `buildMcpServer`, `mountAgent`, `buildToolManifest`, `createDeferredAgentToolSurface`, `buildSurfaceManifest`) or one tool (`tool.inputNestingDepth`, winning over the surface) — and applies last, so it also bounds unrolled recursion. Absent, nothing changes. `OperationToolOption` (`stitchkit/contract`) names the `tool` options an operation's identity carries, `inputNestingDepth` among them.
|
|
138
|
+
|
|
139
|
+
- `stitchkit/agent-executor/acp` — `AcpDriver.probeCapabilities({ eachModel: true })` also reads every model's own options: in its ephemeral session, still without inference and before closing and deleting it, the probe selects each value of the `model` option and returns the options the agent answered as `optionsByModel` — for agents that describe `thought_level` only for the active model. An open `AcpSession` now carries `initialized`, its agent's `initialize` answer, so the owner of a live session reads the image input the agent declared (`agentCapabilities.promptCapabilities`) instead of the driver's own ability.
|
|
140
|
+
|
|
141
|
+
- `stitchkit/contract`, `stitchkit`, `stitchkit/server`, `stitchkit/testing` — a contract operation declares the codes it refuses with: `refuses: [errors.NOT_IDLE, errors.MIN_AWAKE]` lists the factories `defineErrors` returns, which now carry their `code` and `definition`. The server holds the handler to it — an `AppError` with a code neither declared nor the framework's leaves as `INTERNAL_SERVER_ERROR` (500) on HTTP, MCP, the agent surface, the CLI and mid-stream, the original kept on `cause` for `onError`; `implementRemote` applies the same check. Every typed client method gains `refusal(error)`, which narrows `code` to the declared codes plus the framework codes and the new `CLIENT_ERROR_CODES`, with `details` typed by the code's schema, and returns `undefined` for anything else. `MethodDef.refuses`, OpenAPI `x-stitchkit-refusals` (with a response per declared status), an optional `refusals` entry in the surface manifest and the contract fingerprint carry the declaration; each is unchanged for an operation without `refuses`. New types: `RefusalDeclaration`, `DescribedRefusal`, `OperationRefusal`, `DeclaredRefusal`, `ClientErrorCode`, `SurfaceManifestOperationRefusal`. → ADR 0330
|
|
142
|
+
|
|
143
|
+
### Fixed
|
|
144
|
+
|
|
145
|
+
- `stitchkit/agent-executor/acp` — a request the agent sends while `close()` waits for its `session/close` (up to 5 s) is now refused instead of left without an answer: `session/request_permission` with the `cancelled` outcome, any other method with `-32601`. Before, the agent waited on a request nobody would answer for the rest of that window. After a caller abort or a lost connection nothing is written, as before.
|
|
146
|
+
**Affects:** `stitchkit/agent-executor/acp` createAcpDriver(open), AcpSession(close)
|
|
147
|
+
- `stitchkit/agent-executor/codex` — a server request that reaches a session, a control connection or a shared server while its owner closes it is answered as stopped (an unknown method with `-32601`) when only this driver talks to the app-server, instead of left unanswered until the process is gone. On a Unix-socket transport, where a TUI may still answer, and after an abort or a lost connection, it stays unanswered as before.
|
|
148
|
+
**Affects:** `stitchkit/agent-executor/codex` createCodexDriver(open, connectControl, openSharedServer), CodexSession(close), CodexControlConnection(close), CodexSharedServer(close)
|
|
149
|
+
- `stitchkit/agent-executor/codex` — an external server request a session, a control connection or a shared server still holds when its owner closes it is now answered as stopped before the app-server is stopped, when only this driver talks to that process (stdio). Before, `close()` forgot such a request without an answer. After an abort or a lost connection nothing is written, and on a Unix-socket transport the request is left for the TUI, as before.
|
|
150
|
+
**Affects:** `stitchkit/agent-executor/codex` createCodexDriver(open, connectControl, openSharedServer), CodexSession(close), CodexControlConnection(close), CodexSharedServer(close)
|
|
151
|
+
- `stitchkit/agent-executor/testing` — the replay driver no longer drops a throwing `onStartupPhase` without a trace: `ReplayExecutorDriverConfig.onObserverError(error, hook)` receives it with `'onStartupPhase'`, as the real drivers' option does, and `open()` still succeeds.
|
|
152
|
+
**Affects:** `stitchkit/agent-executor/testing` createReplayExecutorDriver(open), ReplayExecutorDriverConfig(onObserverError)
|
|
153
|
+
- `stitchkit/agent-executor/testing` — `createReplayGate` reads a label the same way on every call: labels were trimmed when the gate was created, but `release`, `waitForReached`, `hasReached` and `beforeEmit` looked up the string as given, so `release(' a ')` for the label `a` answered `false` and released nothing. `createStubCodexSharedServer` takes its default `capabilities` from the Codex driver's own declaration instead of a second hand-kept copy. `createFakeCodexAppServer` keeps one `error` listener for the server's whole life: a server error after startup drops the connected clients, rejects their pending `sendRequest` calls and makes later sends throw with it as `cause`, where a second such error used to be an unhandled `error` event.
|
|
154
|
+
**Affects:** `stitchkit/agent-executor/testing` createReplayGate, createStubCodexSharedServer, createFakeCodexAppServer
|
|
155
|
+
- `stitchkit/agent-runtime` — recorded now, changed in 0.130.0: a deferred tool search whose `query` is only whitespace selects nothing (`NO_MATCH`). Until 0.129.0 the blank needle matched every name, so such a query selected the head of the whole catalog. An empty string was and is refused by the search input's schema.
|
|
156
|
+
**Affects:** `stitchkit/agent-runtime` behaviour
|
|
157
|
+
- `stitchkit/files/packaging` — `forbiddenModules` of `buildClientArtifact` now refuses a module the bundler leaves outside the file too. A platform module such as `'node:child_process'` is never bundled, so it had no module path to match and the import that names it was not read: a client forbidden from spawning processes built without a refusal. The rule now matches the specifier of an external import, and `ForbiddenModuleError.module` carries that specifier.
|
|
158
|
+
**Affects:** `stitchkit/files/packaging` buildClientArtifact(forbiddenModules), ForbiddenModuleError
|
|
159
|
+
- `stitchkit/agent-executor/codex` — closing or aborting a thread of a shared server (`openSharedServer`) now interrupts the turn that server still runs for it (once, bounded, also when the `turn/start` reply has not arrived yet: the native id comes from that reply or from an event already received), answers every server request the thread still holds — including approvals received before the `turn/start` reply and external requests — with its stopped answer instead of leaving it unanswered on a process that keeps serving sibling threads, and refuses the thread's late traffic until `thread/unsubscribe` settles instead of delivering it to `onNotification` / `onServerRequest` as an external turn. A turn whose `turn/start` reply cannot be read, whose pre-start events overflow, or whose start times out locally is interrupted while the connection lives instead of running on unobserved.
|
|
160
|
+
**Affects:** `stitchkit/agent-executor/codex` createCodexDriver(openSharedServer), CodexSharedServer(openThread), CodexSession(close, startTurn)
|
|
161
|
+
- `stitchkit/agent-executor/codex` — a `thread/closed` notification for a thread the driver owns now ends it: the active turn fails with `Codex closed thread <id>`, a shared server frees the thread's slot, and the session refuses further turns, instead of the turn's stream waiting forever for a `turn/completed` the unloaded thread never sends.
|
|
162
|
+
**Affects:** `stitchkit/agent-executor/codex` createCodexDriver(open, openSharedServer), CodexSession(startTurn), CodexSharedServer(activeThreadCount)
|
|
163
|
+
- `stitchkit/agent-executor/codex` — `account/rateLimits/updated` pushes now merge into the known quota per bucket and slot, inheriting the duration and reset time a sparse push omits, and name the windows only after the merge. A push without `windowDurationMins` updates the window it belongs to instead of adding a `<bucket>:primary` duplicate beside a window that then never updates, and pushes past 32 windows truncate like a read instead of failing the merge and writing an `unhandled` error into the running turn. `CodexDriver.status()` returns that merged quota when a read fails.
|
|
164
|
+
**Affects:** `stitchkit/agent-executor/codex` createCodexDriver(status, open, connectControl, openSharedServer)
|
|
165
|
+
- `stitchkit/agent-executor/codex` — more events before a `turn/start` reply than the turn queue holds now fail only that turn on a single session too, instead of ending the session through its reader; the queue's byte limit counts UTF-8 bytes. A second concurrent `CodexSharedServer.close()` waits for the same process stop as the first. A server request held before its thread registered on a shared server is released by its `serverRequest/resolved` instead of occupying the external-request limit until new requests are refused. On a stdio app-server only this driver talks to, an `onServerRequest` observer that throws anything but a `JsonRpcError` now answers the request with a refusal that carries no host text, instead of leaving the engine's turn waiting; on a Unix-socket transport, where a TUI may still answer, the request stays open as before.
|
|
166
|
+
**Affects:** `stitchkit/agent-executor/codex` createCodexDriver(open, connectControl, openSharedServer), CodexSharedServer(close), CodexServerRequestEvent
|
|
167
|
+
- `stitchkit/agent-executor/claude-sdk` — a turn started while the session's idle query exits now runs on a freshly launched query instead of being sent to the exited one, whose input nobody reads: the turn no longer hangs without a delta or an error, and the session no longer refuses every later turn as already running. A message sent to a query that has stopped reading input is refused instead of queued.
|
|
168
|
+
**Affects:** `stitchkit/agent-executor/claude-sdk` createClaudeSdkDriver(open), ClaudeSdkSession(startTurn)
|
|
169
|
+
- `stitchkit/agent-executor/acp` — with `steerMode: 'prompt'`, an agent that refuses the steer's `session/prompt` while an earlier prompt of the turn runs (or that ended it as the refusal arrived) no longer fails the whole turn and frees the session while that prompt still runs: the refusal is told as a non-terminal `error` delta with `itemId` `steer-refused:<generation>`, the turn stays with the earlier prompt and ends with its result, and `startTurn` stays refused until then.
|
|
170
|
+
**Affects:** `stitchkit/agent-executor/acp` createAcpDriver(open), AcpSession(steerTurn, startTurn)
|
|
171
|
+
- `stitchkit/agent-executor/claude-sdk` — the Claude Code process the driver spawns itself (with `onProviderPid` and no `spawnClaudeCodeProcess`) now goes through `stitchkit/process`, like the CLI and ACP engines: no shell, the declared environment only, its own process group, and that group terminated if the executor dies. `session.close()` now waits until that process is gone, as the `AgentEngineSession.close` contract states, instead of returning while it may still write the transcript. `providerPid` is that group's leader, reported once the start is confirmed; an `onProviderPid` that throws stops the engine. A process from a host's own `spawnClaudeCodeProcess` is asked to stop, not waited for.
|
|
172
|
+
**Affects:** `stitchkit/agent-executor/claude-sdk` createClaudeSdkDriver(open), ClaudeSdkSession(close, providerPid), ClaudeSdkDriverConfig(onProviderPid, spawnClaudeCodeProcess, stderr)
|
|
173
|
+
- `stitchkit/agent-executor/acp` — `AcpDriver.probeCapabilities` now cleans up the session it created after a timeout or a caller abort too: once `session/new` answered, `session/close` and `session/delete` each run under their own bound on a process kept alive for them, then the agent is stopped. Before, an abort or timeout after `session/new` skipped both and left the temporary session with the agent, against the method's documented guarantee. The probe still rejects with the caller's reason or its timeout; a cleanup that also failed joins it in an `AggregateError` led by that reason.
|
|
174
|
+
**Affects:** `stitchkit/agent-executor/acp` createAcpDriver(probeCapabilities)
|
|
175
|
+
- `stitchkit/agent-executor/testing` — the replay driver now honours the caller's `AbortSignal` given to `open()`: an abort fails the running turn with the caller's reason, including one waiting on an `expectReply` step whose stream used to hang forever, and `respond` and `startTurn` reject with that reason without consuming the next transcript — as the real drivers do.
|
|
176
|
+
**Affects:** `stitchkit/agent-executor/testing` createReplayExecutorDriver(open)
|
|
177
|
+
- `stitchkit/tools/mcp` — lazy discovery: `tool_search` now gives its `maxResults` enable slots to tools still hidden, so repeating a search reaches the matches past the first `maxResults` instead of re-listing tools already enabled (those are still listed, after the new ones, with `newlyEnabled: false`). A surface with `discovery` now sends no catalog stamp on listings or results and announces no served catalog, because each session lists its own subset; before, it stamped the whole surface, so a connection's catalog store could never match a listing.
|
|
178
|
+
**Affects:** `stitchkit/tools/mcp` mountMcp(discovery), buildMcpServer(discovery), createStdioMcpServer(discovery)
|
|
179
|
+
- `stitchkit/agent-executor/claude-sdk` — whether a query resumes the session is now decided, at every query launch, by the transcript on disk, as the CLI driver decides `--resume`. Before, the first message sent marked the session resumable, so when that first query died before Claude Code wrote the transcript, every later query resumed a conversation that did not exist and failed. The transcript is read when a query launches rather than in `open()`.
|
|
180
|
+
**Affects:** `stitchkit/agent-executor/claude-sdk` createClaudeSdkDriver(open), ClaudeSdkSession(startTurn)
|
|
181
|
+
- `stitchkit/contract` — `HTTP_ERROR`, the code a remote service's error without its own envelope is projected to (`stitchkit/tools` remote services), is now registered in `STITCH_ERROR_STATUS` (default status 502; the projection keeps the upstream status), so `isStitchErrorCode()` knows it and `StitchErrorCode` includes it. The registry completeness test missed it because it read only the first code literal of `new AppError(...)`.
|
|
182
|
+
**Affects:** `stitchkit/contract` STITCH_ERROR_STATUS, StitchErrorCode, isStitchErrorCode
|
|
183
|
+
- `stitchkit/agent-executor/claude`, `stitchkit/agent-executor/claude-sdk`, `stitchkit/agent-executor/codex`, `stitchkit/agent-executor/acp`, `stitchkit/agent-executor/testing` — every driver now asks one owner whether its session can still be used and guards `interrupt()` and `respond()` in one place, so the rules of a stopped session are the same everywhere. `turn.respond()` on a turn whose stream failed while its session lives rejects with that failure on every driver, where only the Agent SDK leaf did and the others answered `TypeError: Unknown interaction`. `interrupt()` answers the requests the turn holds before it tells the engine, in every driver: over ACP the `cancelled` outcomes are now written before `session/cancel`, not after it. The replay driver refuses an `open` whose signal aborts from `onStartupPhase`, and its `interrupt()` is a no-op once the turn ended or the session stopped.
|
|
184
|
+
**Affects:** `stitchkit/agent-executor` AgentEngineTurn(respond, interrupt); `stitchkit/agent-executor/acp` createAcpDriver(open), AcpSession(startTurn, respond); `stitchkit/agent-executor/codex` createCodexDriver(open, openSharedServer), CodexTurn(respond); `stitchkit/agent-executor/claude` createClaudeCliDriver(open); `stitchkit/agent-executor/testing` createReplayExecutorDriver(open)
|
|
185
|
+
- `stitchkit/agent-executor/acp` — a `stdoutLineFilter` that throws now fails the connection with `The ACP stdoutLineFilter threw: <message>` and the thrown value as `cause`, instead of the host's error surfacing as if the agent had failed. The connection still fails closed: the filter decides whether a line is protocol, and a filter that threw decided nothing.
|
|
186
|
+
**Affects:** `stitchkit/agent-executor/acp` createAcpDriver(open, probeCapabilities), AcpDriverConfig(stdoutLineFilter)
|
|
187
|
+
|
|
188
|
+
### Documentation
|
|
189
|
+
|
|
190
|
+
- The 0.130.0 migration `executor-status-delta` named the `status` delta as the only wire change. 0.130.0 also added `capabilities` to every engine a `hello` announces, `threadDisposition`, five usage figures, and `scope`, `updatedInput` and `interrupt` on an interaction reply, and every object of the contract is strict: an executor upgraded before its server had its handshake refused. The migration now lists every key by direction and states the order of upgrade.
|
|
191
|
+
- The 0.130.0 entry and its migration described `phase` of a `status` delta as `'spawning' | 'initializing' | 'verifying'`. `ExecutorStartupPhaseSchema` has always been an open label of 1–64 trimmed characters; those three are what the drivers emit. Both texts now say so, and the schema is unchanged.
|
|
192
|
+
- The 0.132.0 migration `saved-sync-cursor-zero` and the sync guide now say that `beginFullSync` resets the saved cursor to `null`, not to `0`.
|
|
193
|
+
- `ContextHandoffBudgetSchema` documents that an omitted `usedTokens` counts as `0` — the caller's statement that the receiving thread is new.
|
|
194
|
+
|
|
18
195
|
## [0.132.3] - 2026-11-27
|
|
19
196
|
|
|
20
197
|
### Fixed
|
|
@@ -122,7 +299,7 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
|
|
|
122
299
|
|
|
123
300
|
**Who must act:** every caller of `stitchkit/agent-executor` that switches exhaustively on `ExecutorDelta['type']` or forwards `status` deltas to a `0.129.0` server ([migration](docs/guide/upgrading.md#executor-status-delta)).
|
|
124
301
|
|
|
125
|
-
- `stitchkit/agent-executor` — widened `ExecutorDeltaSchema` / `ExecutorDelta` with `ExecutorStatusDeltaSchema` (`{ type: 'status', phase
|
|
302
|
+
- `stitchkit/agent-executor` — widened `ExecutorDeltaSchema` / `ExecutorDelta` with `ExecutorStatusDeltaSchema` (`{ type: 'status', phase, ... }`, where `phase` is an open label of 1–64 trimmed characters and the drivers emit `spawning`, `initializing` and `verifying`) so executor startup lifecycle progress can be observed in-band alongside `onStartupPhase` callbacks. Exhaustive `switch (delta.type)` consumers must handle `case 'status':` (ignored by `projectExecutorDeltas`).
|
|
126
303
|
`switch (delta.type) { … case 'window': break; }` → `switch (delta.type) { … case 'status': case 'window': break; }`.
|
|
127
304
|
**Affects:** `stitchkit/agent-executor` ExecutorDeltaSchema, ExecutorDelta, ExecutorStatusDeltaSchema, projectExecutorDeltas
|
|
128
305
|
|
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/max-listov/stitchkit/master/assets/avatar.png" alt="Stitchkit — a blue ball of yarn with a golden needle" width="128" height="128" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
<p align="center">
|
|
2
6
|
<strong>Contract-first backend framework for Bun and Node.</strong><br/>
|
|
3
7
|
Define your API once — get an HTTP API, MCP tools, AI-agent tools, a CLI and a typed client.
|
|
@@ -37,7 +37,9 @@ export interface AcpDriverConfig {
|
|
|
37
37
|
sessionMeta?: AcpSessionMetaInput | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* Optional filter invoked on every stdout line before JSON-RPC parsing; returning `false`
|
|
40
|
-
* skips non-protocol lines (such as OAuth prompts) instead of failing the connection.
|
|
40
|
+
* skips non-protocol lines (such as OAuth prompts) instead of failing the connection. A filter
|
|
41
|
+
* that throws decided nothing about the line, so the connection fails closed with an error that
|
|
42
|
+
* names the filter and carries what it threw as `cause`.
|
|
41
43
|
*/
|
|
42
44
|
stdoutLineFilter?: ((line: string) => boolean) | undefined;
|
|
43
45
|
/**
|
|
@@ -83,6 +85,15 @@ export interface AcpDriverConfig {
|
|
|
83
85
|
onProviderPid?: ((pid: number) => void) | undefined;
|
|
84
86
|
/** Optional callback invoked when an opened session drops unexpectedly before `close()` or caller abort. */
|
|
85
87
|
onDisconnect?: ((error: Error) => void) | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Receives every failure of a host callback the driver contained to keep reading its agent:
|
|
90
|
+
* `hook` is the option that threw or rejected (`'onUpdate'`, `'onPermissionRequest'`,
|
|
91
|
+
* `'transformUpdate'`, `'onProviderPid'`, `'onDisconnect'`, `'onStartupPhase'`). A
|
|
92
|
+
* `JsonRpcError` thrown by `onPermissionRequest` for a request outside a turn is that
|
|
93
|
+
* observer's refusal and is not reported. Without this option such failures are contained and
|
|
94
|
+
* dropped; a handler that itself throws is ignored.
|
|
95
|
+
*/
|
|
96
|
+
onObserverError?: ((error: unknown, hook: string) => void) | undefined;
|
|
86
97
|
/**
|
|
87
98
|
* Optional hook started before `session/prompt` and consulted after it settles so hidden API
|
|
88
99
|
* errors masked as `end_turn` can fail the turn with an error kind and `threadDisposition`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-connect.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-connect.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAoB,KAAK,YAAY,EAAE,MAAM,kBAAkB,C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,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAsBF,4GAA4G;AAC5G,wBAAsB,UAAU,CAC9B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,EACnB,QAAQ,GAAE,WAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+F3B;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAEnE,qHAAqH;AACrH,wBAAgB,MAAM,CACpB,UAAU,EAAE,aAAa,EACzB,UAAU,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAC1D,OAAO,CAGT"}
|
|
@@ -30,7 +30,9 @@ export interface AcpDriver extends AgentEngineDriver {
|
|
|
30
30
|
}): Promise<AcpSessionSummary[]>;
|
|
31
31
|
/**
|
|
32
32
|
* Run a non-inference capability probe (`initialize`, ephemeral `session/new`, `configOptions`,
|
|
33
|
-
* `commands`, `models`)
|
|
33
|
+
* `commands`, `models`). Once `session/new` answered, `session/close` and `session/delete` are
|
|
34
|
+
* each attempted once — after a timeout or a caller abort too, under their own bound — and an
|
|
35
|
+
* aborted probe rejects with its reason, joined by any cleanup that failed.
|
|
34
36
|
*/
|
|
35
37
|
probeCapabilities(input: AcpProbeCapabilitiesInput): Promise<AcpCapabilitiesProbe>;
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-driver.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,EAAE,0B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lE"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { type EngineTurnLiveness } from '../engine-requests.js';
|
|
1
2
|
import type { InteractionReply } from '../executor-contract.js';
|
|
2
3
|
import { type JsonRpcValue } from '../json-rpc-peer.js';
|
|
4
|
+
import { type ObserverErrorHandler } from '../session-primitives.js';
|
|
3
5
|
import type { ExecutorDelta } from '../vocabulary.js';
|
|
4
6
|
import { type PendingExternalAcpRequest } from './v1-permission.js';
|
|
5
7
|
import { type AcpConfigOption, type AcpPermissionRequest, type AcpSessionUpdate } from './v1-protocol.js';
|
|
@@ -36,7 +38,7 @@ export interface AcpPermissionRequestEvent {
|
|
|
36
38
|
}
|
|
37
39
|
interface AcpHandlersState {
|
|
38
40
|
externalPending: Map<string, PendingExternalAcpRequest>;
|
|
39
|
-
|
|
41
|
+
liveness: EngineTurnLiveness;
|
|
40
42
|
isOpened: () => boolean;
|
|
41
43
|
getTurn: () => AcpTurnSlot | undefined;
|
|
42
44
|
onSessionMeta: (meta: {
|
|
@@ -48,6 +50,12 @@ interface AcpHandlersState {
|
|
|
48
50
|
onUpdate?: (event: AcpUpdateEvent) => void;
|
|
49
51
|
onPermissionRequest?: (event: AcpPermissionRequestEvent) => Promise<void> | void;
|
|
50
52
|
permissionRequestDelivery?: 'external-only' | 'all';
|
|
53
|
+
onObserverError?: ObserverErrorHandler;
|
|
54
|
+
/**
|
|
55
|
+
* `true` while `close()` waits for the agent's `session/close`: the agent is still read, so a
|
|
56
|
+
* request it sends then is refused. After an abort or a lost connection nothing is written.
|
|
57
|
+
*/
|
|
58
|
+
closingGracefully?: () => boolean;
|
|
51
59
|
onEnd: (error: Error) => void;
|
|
52
60
|
}
|
|
53
61
|
export declare function normalizeTransformedUpdates(raw: AcpSessionUpdate, transform: AcpTransformUpdate | undefined): readonly AcpSessionUpdate[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-handlers.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-handl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AAS,EAAE,kBAAkB,GAAG,SAAS,GACxC,SAAS,gBAAgB,EAAE,CAQ7B;AAyPD,oGAAoG;AACpG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB;IAarD,cAAc,WAAW,MAAM,UAAU,YAAY,GAAG,SAAS;IAIjE,SAAS,WAAW,MAAM,UAAU,YAAY,GAAG,SAAS,MAAM,MAAM,GAAG,MAAM;IAIjF,KAAK,UA7RQ,KAAK,KAAK,IAAI;EA+R9B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { type EngineRequestTurn } from '../engine-requests.js';
|
|
2
|
+
import { type EngineRequestTurn, type EngineTurnLiveness } from '../engine-requests.js';
|
|
3
3
|
import { type InteractionReply } from '../executor-contract.js';
|
|
4
4
|
import type { JsonRpcValue } from '../json-rpc-peer.js';
|
|
5
5
|
import type { AcpPermissionOption, AcpPermissionRequest } from './v1-protocol.js';
|
|
@@ -34,9 +34,10 @@ export declare function buildAcpPermissionDeltaFields(asked: AcpPermissionReques
|
|
|
34
34
|
*/
|
|
35
35
|
export declare function buildAcpPermissionAnswer(detail: AcpPermissionDetail, rawReply: InteractionReply['reply']): JsonRpcValue;
|
|
36
36
|
/** Answer one held permission request owned by the active turn (`turn.respond`). */
|
|
37
|
-
export declare function answerActiveAcpTurnRequest(turn: EngineRequestTurn<JsonRpcValue, AcpPermissionDetail>, interactionId: string, rawReply: InteractionReply['reply']): void;
|
|
37
|
+
export declare function answerActiveAcpTurnRequest(turn: EngineRequestTurn<JsonRpcValue, AcpPermissionDetail>, liveness: Pick<EngineTurnLiveness, 'ensureAlive'>, interactionId: string, rawReply: InteractionReply['reply']): void;
|
|
38
38
|
/** Answer one pending permission request on the active turn or post-settle external map. */
|
|
39
39
|
export declare function answerAcpSessionRequest(input: {
|
|
40
|
+
liveness: Pick<EngineTurnLiveness, 'ensureAlive'>;
|
|
40
41
|
turn: EngineRequestTurn<JsonRpcValue, AcpPermissionDetail> | undefined;
|
|
41
42
|
externalPending: Map<string, PendingExternalAcpRequest>;
|
|
42
43
|
expectedEntry?: PendingExternalAcpRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-permission.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"v1-permission.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-permission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE/E,2EAA2E;AAC3E,eAAO,MAAM,aAAa,EAAE,YAAoD,CAAC;AAMjF,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAClD;AAED,mGAAmG;AACnG,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;CACrC;AAED,yFAAyF;AACzF,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,GACtD,IAAI,CAKN;AAQD;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,oBAAoB;;;;;EA4BxE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC,YAAY,CAkDd;AAED,oFAAoF;AACpF,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,iBAAiB,CAAC,YAAY,EAAE,mBAAmB,CAAC,EAC1D,QAAQ,EAAE,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,EACjD,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC,IAAI,CAIN;AAED,4FAA4F;AAC5F,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,QAAQ,EAAE,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;IAClD,IAAI,EAAE,iBAAiB,CAAC,YAAY,EAAE,mBAAmB,CAAC,GAAG,SAAS,CAAC;IACvE,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACxD,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CAClC,GAAG,IAAI,CAgBP"}
|
|
@@ -14,6 +14,12 @@ export interface AcpProbeCapabilitiesInput {
|
|
|
14
14
|
readonly timeoutMs?: number | undefined;
|
|
15
15
|
/** Optional observer invoked with startup phases (`spawning`, `initializing`) during the probe. */
|
|
16
16
|
readonly onStartupPhase?: ((phase: ExecutorStartupPhase) => void) | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Also read every model's own options (an agent may describe `thought_level` only for the
|
|
19
|
+
* active model): the probe switches the `model` option to each value in its ephemeral session,
|
|
20
|
+
* still without inference, before closing and deleting it. Default `false`.
|
|
21
|
+
*/
|
|
22
|
+
readonly eachModel?: boolean | undefined;
|
|
17
23
|
}
|
|
18
24
|
/** Result of a structured non-inference {@link AcpDriver.probeCapabilities} call. */
|
|
19
25
|
export interface AcpCapabilitiesProbe {
|
|
@@ -25,13 +31,16 @@ export interface AcpCapabilitiesProbe {
|
|
|
25
31
|
readonly commands: readonly string[];
|
|
26
32
|
/** Model identifiers discovered from the `model` config option or `session.models.availableModels`. */
|
|
27
33
|
readonly models: readonly string[];
|
|
34
|
+
/** With `eachModel`: the options the agent reported with each model value selected. */
|
|
35
|
+
readonly optionsByModel?: Readonly<Record<string, readonly AcpConfigOption[]>>;
|
|
28
36
|
}
|
|
29
37
|
/** The values of the session's model option, or its model list; none when the agent offers neither. */
|
|
30
38
|
export declare function probeAcpModels(config: AcpDriverConfig, connection: AcpConnection, cwd: string): Promise<string[]>;
|
|
31
39
|
/**
|
|
32
40
|
* Run a bounded, non-inference capability probe (`initialize` + ephemeral `session/new` +
|
|
33
41
|
* `session/close` + `session/delete`), capturing asynchronous `available_commands_update` and
|
|
34
|
-
* `config_option_update` notifications and
|
|
42
|
+
* `config_option_update` notifications and cleaning up the session — after an abort or timeout too,
|
|
43
|
+
* under its own bound — and the process.
|
|
35
44
|
* Runs actively regardless of `config.probeMode`.
|
|
36
45
|
*/
|
|
37
46
|
export declare function probeAcpCapabilities(config: AcpDriverConfig, input: AcpProbeCapabilitiesInput): Promise<AcpCapabilitiesProbe>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-probe.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-probe.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,qBAAqB,EAAiB,MAAM,YAAY,CAAC;AAEvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EAMrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAKzB,MAAM,eAAe,CAAC;AAKvB,qDAAqD;AACrD,MAAM,WAAW,yBAAyB;IACxC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,iDAAiD;I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B;IACnC,wDAAwD;IACxD,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAC1C,gGAAgG;IAChG,QAAQ,CAAC,aAAa,EAAE,SAAS,eAAe,EAAE,CAAC;IACnD,6FAA6F;IAC7F,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,uGAAuG;IACvG,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,uFAAuF;IACvF,QAAQ,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC,CAAC,CAAC;CAChF;AAsID,uGAAuG;AACvG,wBAAsB,cAAc,CAClC,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,aAAa,EACzB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,EAAE,CAAC,CAGnB;AA8BD;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAoE/B"}
|
|
@@ -4,7 +4,7 @@ import type { InteractionReply } from '../executor-contract.js';
|
|
|
4
4
|
import type { ExecutorProfileConfig } from '../profile.js';
|
|
5
5
|
import type { ExecutorStartupPhase } from '../vocabulary.js';
|
|
6
6
|
import { type AcpDriverConfig } from './v1-connect.js';
|
|
7
|
-
import { type AcpConfigOption } from './v1-protocol.js';
|
|
7
|
+
import { type AcpConfigOption, type AcpInitializeResult } from './v1-protocol.js';
|
|
8
8
|
/**
|
|
9
9
|
* How tool approvals are enforced over ACP: `'agent-initiated'` means the driver answers
|
|
10
10
|
* `session/request_permission` requests when the agent sends them, but cannot compel an agent
|
|
@@ -37,6 +37,12 @@ export interface AcpSession extends AgentEngineSession {
|
|
|
37
37
|
readonly providerPid: number | undefined;
|
|
38
38
|
/** Always `'agent-initiated'`: whether a tool pauses for host approval is decided by the agent. */
|
|
39
39
|
readonly approvalEnforcement: AcpApprovalEnforcement;
|
|
40
|
+
/**
|
|
41
|
+
* What this session's agent process answered to `initialize`, as `probeCapabilities` returns it:
|
|
42
|
+
* `agentCapabilities.promptCapabilities` says what the agent itself declares (images, audio),
|
|
43
|
+
* where `driver.capabilities` says what the driver can send.
|
|
44
|
+
*/
|
|
45
|
+
readonly initialized: AcpInitializeResult;
|
|
40
46
|
/** The agent's settings as last reported: on open, on a change, and on `config_option_update`. */
|
|
41
47
|
readonly configOptions: readonly AcpConfigOption[];
|
|
42
48
|
/** The title the agent gave the session, once it did. */
|
|
@@ -49,7 +55,10 @@ export interface AcpSession extends AgentEngineSession {
|
|
|
49
55
|
respond(interactionId: string, reply: InteractionReply['reply']): Promise<void>;
|
|
50
56
|
/**
|
|
51
57
|
* Steer the currently running turn with an additional `session/prompt` generation when
|
|
52
|
-
* `steerMode` is `'prompt'`. Throws `TypeError` when `steerMode` is `'none'` (default).
|
|
58
|
+
* `steerMode` is `'prompt'`. Throws `TypeError` when `steerMode` is `'none'` (default). It
|
|
59
|
+
* resolves once the prompt is sent: an agent that refuses it while an earlier prompt runs is told
|
|
60
|
+
* on the turn as a non-terminal `error` delta (`itemId` `steer-refused:<generation>`), and the
|
|
61
|
+
* turn stays with that earlier prompt.
|
|
53
62
|
*/
|
|
54
63
|
steerTurn(input: AcpSteerTurnInput): Promise<{
|
|
55
64
|
readonly turnId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-session.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3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IAChC,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC7C;AAED,kIAAkI;AAClI,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD,2GAA2G;IAC3G,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,mGAAmG;IACnG,QAAQ,CAAC,mBAAmB,EAAE,sBAAsB,CAAC;IACrD;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAC1C,kGAAkG;IAClG,QAAQ,CAAC,aAAa,EAAE,SAAS,eAAe,EAAE,CAAC;IACnD,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,wFAAwF;IACxF,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC,CAAC;IACtF,oHAAoH;IACpH,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChF;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3E;AA4LD,wBAAsB,cAAc,CAClC,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,YAAY,GAClB,OAAO,CAAC,UAAU,CAAC,CAsJrB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AgentMessagePart } from '../../agent-parts/parts.js';
|
|
2
2
|
import type { AgentEngineTurn } from '../engine.js';
|
|
3
|
-
import { type EngineRequestTurn } from '../engine-requests.js';
|
|
3
|
+
import { type EngineRequestTurn, type EngineTurnLiveness } from '../engine-requests.js';
|
|
4
4
|
import type { JsonRpcPeer, JsonRpcValue } from '../json-rpc-peer.js';
|
|
5
|
+
import { type SessionLiveness } from '../session-primitives.js';
|
|
5
6
|
import { type ExecutorTokenUsage } from '../vocabulary.js';
|
|
6
7
|
import type { AcpDriverConfig, AcpPromptOutcomeOverride } from './v1-connect.js';
|
|
7
8
|
import { type AcpPromptLimits, type AcpUpdateTrack } from './v1-map.js';
|
|
@@ -17,13 +18,15 @@ export interface AcpTurnSlot extends EngineRequestTurn<JsonRpcValue, AcpPermissi
|
|
|
17
18
|
promptGeneration: number;
|
|
18
19
|
/** Normalized token counters summed across all prompt generations of this turn. */
|
|
19
20
|
accumulatedUsage: ExecutorTokenUsage | undefined;
|
|
20
|
-
/**
|
|
21
|
-
|
|
21
|
+
/** Generations whose `session/prompt` the agent has not answered yet. */
|
|
22
|
+
readonly openGenerations: Set<number>;
|
|
23
|
+
/** Endings of prompts a newer steer superseded, kept until that steer is accepted or refused. */
|
|
24
|
+
readonly supersededResults: Map<number, () => void>;
|
|
22
25
|
}
|
|
23
26
|
export declare function newAcpTurn(turnId: string): AcpTurnSlot;
|
|
24
27
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
28
|
+
* Fail a turn's delta stream. When `sendCancelled` is `true`, pending permission requests are
|
|
29
|
+
* drained with `ACP_CANCELLED`; when `false`, the agent no longer reads and they are dropped.
|
|
27
30
|
*/
|
|
28
31
|
export declare function settleAcpTurn(turn: AcpTurnSlot | undefined, reason: unknown, sendCancelled: boolean): void;
|
|
29
32
|
/**
|
|
@@ -38,28 +41,28 @@ export declare function runAcpPrompt(input: {
|
|
|
38
41
|
prompt: readonly JsonRpcValue[];
|
|
39
42
|
turn: AcpTurnSlot;
|
|
40
43
|
generation: number;
|
|
41
|
-
|
|
44
|
+
liveness: SessionLiveness;
|
|
42
45
|
usageInputIncludesCachedRead?: boolean;
|
|
43
46
|
checkOutcome?: AcpCheckPromptOutcome;
|
|
44
47
|
done: () => void;
|
|
45
48
|
}): void;
|
|
46
49
|
/** The turn as the executor steers it: interrupt with `session/cancel`, answer permission requests. */
|
|
47
|
-
export declare function acpTurnHandle(peer: JsonRpcPeer, sessionId: string, turn: AcpTurnSlot,
|
|
50
|
+
export declare function acpTurnHandle(peer: JsonRpcPeer, sessionId: string, turn: AcpTurnSlot, liveness: EngineTurnLiveness): AgentEngineTurn;
|
|
48
51
|
/** Build `startTurn` and `steerTurn` for an open ACP session. */
|
|
49
52
|
export declare function createAcpTurnControls(input: {
|
|
50
53
|
config: AcpDriverConfig;
|
|
51
54
|
peer: JsonRpcPeer;
|
|
52
55
|
sessionId: string;
|
|
53
56
|
limits: AcpPromptLimits;
|
|
54
|
-
|
|
57
|
+
liveness: SessionLiveness;
|
|
55
58
|
getTurn(): AcpTurnSlot | undefined;
|
|
56
59
|
setTurn(turn: AcpTurnSlot | undefined): void;
|
|
57
60
|
}): {
|
|
58
|
-
startTurn(
|
|
61
|
+
startTurn: (input: {
|
|
59
62
|
turnId: string;
|
|
60
63
|
clientId: string;
|
|
61
64
|
input: readonly AgentMessagePart[];
|
|
62
|
-
})
|
|
65
|
+
}) => Promise<AgentEngineTurn>;
|
|
63
66
|
steerTurn(steerInput: {
|
|
64
67
|
readonly input: readonly AgentMessagePart[];
|
|
65
68
|
}): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-turn.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-turn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAEL,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"v1-turn.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-turn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,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Config {
|
|
|
20
20
|
maxImageBytes?: number | undefined;
|
|
21
21
|
/** The executor's own environment, read for the allowlist. Default `process.env`. */
|
|
22
22
|
ambient?: Readonly<Record<string, string | undefined>> | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Receives every failure of a host callback the driver contained: `hook` is the option that
|
|
25
|
+
* threw or rejected (`'onStartupPhase'`). Without this option such failures are contained and
|
|
26
|
+
* dropped; a handler that itself throws is ignored.
|
|
27
|
+
*/
|
|
28
|
+
onObserverError?: ((error: unknown, hook: string) => void) | undefined;
|
|
23
29
|
}
|
|
24
30
|
/**
|
|
25
31
|
* Claude Code, unmodified, driven through `--print` with `stream-json` on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-driver.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/claude/cli-driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,EAAE,0BAA0B,EAAc,MAAM,UAAU,CAAC;AAoCvE,uDAAuD;AACvD,MAAM,WAAW,qBAAqB;IACpC,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,+FAA+F;IAC/F,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC3C,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EACX,SAAS,GACT,aAAa,GACb,MAAM,GACN,mBAAmB,GACnB,MAAM,GACN,SAAS,CAAC;IACd,4FAA4F;IAC5F,WAAW,CAAC,EAAE,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,SAAS,CAAC;IACvE,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,qFAAqF;IACrF,OAAO,CAAC,EAAE,QAAQ,CA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