stitchkit 0.136.8 → 0.137.0
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 +53 -0
- package/dist/agent-runtime/stores/branch-observations.d.ts +19 -19
- package/dist/agent-runtime/stores/schedule-contract.d.ts.map +1 -1
- package/dist/agent-runtime/stores/schedule-records.d.ts.map +1 -1
- package/dist/agent-runtime/stores/schedule-tools.d.ts.map +1 -1
- package/dist/agent-runtime/stores/sql-rows.d.ts +36 -36
- package/dist/agent-runtime/terminal-commit.d.ts +5 -5
- package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +52 -52
- package/dist/agent-runtime/testing/store-conformance-support.d.ts +26 -26
- package/dist/browser/client-executors.d.ts +2 -3
- package/dist/browser/client-executors.d.ts.map +1 -1
- package/dist/browser/realtime-client.d.ts +6 -1
- package/dist/browser/realtime-client.d.ts.map +1 -1
- package/dist/browser/socket-io-client.d.ts.map +1 -1
- package/dist/browser/socket-io-contract.d.ts +2 -0
- package/dist/browser/socket-io-contract.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 +1 -1
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/contract/error-mapping.d.ts +71 -0
- package/dist/contract/error-mapping.d.ts.map +1 -0
- package/dist/contract/errors.d.ts +8 -0
- package/dist/contract/errors.d.ts.map +1 -1
- package/dist/contract/factory.d.ts +8 -0
- package/dist/contract/factory.d.ts.map +1 -1
- package/dist/contract/fragments.d.ts +45 -0
- package/dist/contract/fragments.d.ts.map +1 -0
- package/dist/contract/normalize.d.ts +6 -3
- package/dist/contract/normalize.d.ts.map +1 -1
- package/dist/contract/operation-read.d.ts +38 -0
- package/dist/contract/operation-read.d.ts.map +1 -0
- package/dist/contract/stream.d.ts.map +1 -1
- package/dist/contract/time-zone.d.ts +31 -0
- package/dist/contract/time-zone.d.ts.map +1 -0
- package/dist/contract/tool-options.d.ts +1 -1
- package/dist/contract/tool-options.d.ts.map +1 -1
- package/dist/device-relay/hub.d.ts +1 -1
- package/dist/device-relay/hub.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +9 -9
- package/dist/entrypoints/agent-executor/claude-sdk.js +11 -11
- package/dist/entrypoints/agent-executor/claude.js +8 -8
- package/dist/entrypoints/agent-executor/codex.js +15 -15
- package/dist/entrypoints/agent-executor/testing.js +11 -11
- package/dist/entrypoints/agent-executor.js +14 -13
- package/dist/entrypoints/agent-runtime/ai-sdk.js +5 -5
- package/dist/entrypoints/agent-runtime/anthropic.js +1 -1
- package/dist/entrypoints/agent-runtime/browser.js +5 -5
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +14 -15
- package/dist/entrypoints/agent-runtime/openai.js +1 -1
- package/dist/entrypoints/agent-runtime/openrouter.js +7 -7
- package/dist/entrypoints/agent-runtime/postgres.js +5 -5
- package/dist/entrypoints/agent-runtime/realtime.js +8 -8
- package/dist/entrypoints/agent-runtime/sandbox.js +7 -7
- 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 +33 -29
- package/dist/entrypoints/application/diagnostic-journal.js +3 -3
- package/dist/entrypoints/application/directory-inbox.js +1 -1
- package/dist/entrypoints/application/grammy.js +1 -1
- package/dist/entrypoints/application/opentelemetry.js +2 -2
- package/dist/entrypoints/application.js +10 -10
- package/dist/entrypoints/cli/publish.js +8 -8
- package/dist/entrypoints/cli.d.ts +2 -0
- package/dist/entrypoints/cli.d.ts.map +1 -1
- package/dist/entrypoints/cli.js +518 -59
- package/dist/entrypoints/contract.d.ts +5 -1
- package/dist/entrypoints/contract.d.ts.map +1 -1
- package/dist/entrypoints/contract.js +25 -7
- package/dist/entrypoints/device-relay.js +20 -10
- package/dist/entrypoints/files/packaging.js +2 -2
- package/dist/entrypoints/files.js +10 -10
- package/dist/entrypoints/handler.d.ts +1 -1
- package/dist/entrypoints/handler.d.ts.map +1 -1
- package/dist/entrypoints/handler.js +12 -12
- package/dist/entrypoints/http.js +13 -12
- package/dist/entrypoints/index.js +36 -18
- package/dist/entrypoints/live.d.ts +2 -1
- package/dist/entrypoints/live.d.ts.map +1 -1
- package/dist/entrypoints/live.js +630 -1
- package/dist/entrypoints/node.d.ts +5 -0
- package/dist/entrypoints/node.d.ts.map +1 -1
- package/dist/entrypoints/node.js +36 -16
- package/dist/entrypoints/observability.js +25 -10
- package/dist/entrypoints/postgres.d.ts +1 -0
- package/dist/entrypoints/postgres.d.ts.map +1 -1
- package/dist/entrypoints/postgres.js +66 -0
- package/dist/entrypoints/primitives.js +11 -4
- package/dist/entrypoints/process.js +7 -7
- package/dist/entrypoints/react.js +1 -1
- package/dist/entrypoints/realtime.js +3 -3
- package/dist/entrypoints/remote.js +6 -29
- package/dist/entrypoints/server.d.ts +6 -1
- package/dist/entrypoints/server.d.ts.map +1 -1
- package/dist/entrypoints/server.js +93 -32
- package/dist/entrypoints/service-host/macos.js +6 -6
- package/dist/entrypoints/service-host/work.js +6 -6
- package/dist/entrypoints/service-host.js +10 -10
- package/dist/entrypoints/spend.js +2 -1
- package/dist/entrypoints/sync.js +5 -5
- package/dist/entrypoints/telegram.js +8 -8
- package/dist/entrypoints/testing.d.ts +1 -0
- package/dist/entrypoints/testing.d.ts.map +1 -1
- package/dist/entrypoints/testing.js +1501 -13
- package/dist/entrypoints/tools/agent.js +6 -7
- package/dist/entrypoints/tools/connections.js +9 -11
- package/dist/entrypoints/tools/contract.js +1 -2
- package/dist/entrypoints/tools/invoker.js +4 -5
- package/dist/entrypoints/tools/mcp.js +10 -11
- package/dist/entrypoints/tools/toolkit.d.ts +1 -1
- package/dist/entrypoints/tools/toolkit.d.ts.map +1 -1
- package/dist/entrypoints/tools/toolkit.js +29 -24
- package/dist/entrypoints/tools.js +28 -30
- package/dist/entrypoints/tracking/contract.js +2 -1
- package/dist/entrypoints/xlsx.js +5 -8
- package/dist/{index-033tyx59.js → index-0zw0hcyg.js} +4 -1
- package/dist/{index-zcq3dby3.js → index-1bjwfnnj.js} +1 -1
- package/dist/{index-3zt0r4y0.js → index-1cfacbe2.js} +4 -4
- package/dist/{index-gj4wdts6.js → index-1ckh9qx1.js} +1 -1
- package/dist/index-1pvwmbxp.js +1435 -0
- package/dist/{index-0s75mjh7.js → index-2e4hdh32.js} +1 -1
- package/dist/{index-3shdhzt6.js → index-2j0pqxkn.js} +12 -6
- package/dist/index-3k8w02se.js +28 -0
- package/dist/{index-7fjbdga8.js → index-3pb4ccj2.js} +8 -0
- package/dist/{index-w7e402wx.js → index-48kb4gqq.js} +46 -7
- package/dist/{index-cv9b7fz2.js → index-6rws2xf5.js} +8 -0
- package/dist/{index-bbpygynk.js → index-77w5vx0g.js} +1 -1
- package/dist/index-7dz1ngaf.js +35 -0
- package/dist/{index-y68gavb5.js → index-7n4atsm4.js} +1 -1
- package/dist/index-8ef1bfea.js +71 -0
- package/dist/{index-0x4mnwg5.js → index-8k3y9nd4.js} +6 -9
- package/dist/{index-ezwsqyad.js → index-8rkdkefj.js} +40 -23
- package/dist/{index-3cwq5byx.js → index-9nax7tkn.js} +2 -2
- package/dist/{index-dz6tstcp.js → index-9r6emjwz.js} +1 -1
- package/dist/{index-32ew02z1.js → index-c4b7d6ej.js} +5 -5
- package/dist/index-ceshyndf.js +284 -0
- package/dist/{index-w161azza.js → index-d13rw31w.js} +6 -6
- package/dist/{index-1h0dtfz3.js → index-dmm7vs3f.js} +1 -1
- package/dist/{index-ypm85xwe.js → index-dp8j2e77.js} +1 -1
- package/dist/{index-qqd979f7.js → index-edycjvrv.js} +9 -9
- package/dist/{index-18qdpbcq.js → index-egpf9dv0.js} +200 -1479
- package/dist/{index-fatke81t.js → index-ezgvsj9w.js} +2 -2
- package/dist/{index-chapre0y.js → index-f3e7tj1g.js} +1 -1
- package/dist/{index-df5xr2f9.js → index-frsd2a94.js} +16 -1
- package/dist/index-fy9mmek1.js +95 -0
- package/dist/{index-2331y2tf.js → index-g0gvfzrx.js} +12 -12
- package/dist/index-gpe8d1ka.js +19 -0
- package/dist/{index-4p2zx593.js → index-gyw4qd0m.js} +1 -1
- package/dist/index-gzqy81tw.js +172 -0
- package/dist/{index-yrhw10ef.js → index-h34c510q.js} +8 -4
- package/dist/{index-rr94xcj6.js → index-h527p1yj.js} +10 -4
- package/dist/{index-qj0sq69b.js → index-hgf1tbgz.js} +76 -16
- package/dist/{index-smvmnz5y.js → index-hvpan32x.js} +1 -1
- package/dist/{index-4gbybjg6.js → index-hxawqrb6.js} +2 -2
- package/dist/{index-0k1ba0ss.js → index-j91jffhv.js} +1 -1
- package/dist/{index-d01akj5n.js → index-jr4kwetx.js} +8 -8
- package/dist/{index-xqppqn97.js → index-ka6z48zc.js} +315 -69
- package/dist/{index-by8w2461.js → index-kw0segzt.js} +104 -3
- package/dist/{index-6f4fjygr.js → index-m5t4dr7h.js} +29 -7
- package/dist/{index-afaq0nc4.js → index-n0egp1ke.js} +1 -1
- package/dist/{index-9fzjgg86.js → index-n74rb1dq.js} +2 -2
- package/dist/{index-dwq6a6sq.js → index-pt25vmhc.js} +33 -16
- package/dist/{index-vwg0n3e6.js → index-pyazb8q4.js} +23 -14
- package/dist/{index-5md04mwc.js → index-qpjjbkc5.js} +4 -4
- package/dist/{index-08a3qfr8.js → index-r1qt6zgj.js} +1 -1
- package/dist/{index-ctaxjpa4.js → index-r709pqed.js} +1 -1
- package/dist/{index-2zrx0nzv.js → index-rzc40z6e.js} +3 -5
- package/dist/{index-gq35s3bm.js → index-s5axtd56.js} +2 -2
- package/dist/{index-edpkm3k7.js → index-scpcps66.js} +669 -16
- package/dist/{index-ry8m2mhg.js → index-sf2mt6wj.js} +1 -1
- package/dist/{index-tjhhsnjv.js → index-t1213r0t.js} +1 -1
- package/dist/{index-gvgtmt7a.js → index-t7efje30.js} +2 -2
- package/dist/{index-w3s79kcb.js → index-tzyk36dy.js} +1 -1
- package/dist/{index-8tn10tp6.js → index-v64bvwjr.js} +1 -1
- package/dist/{index-1fhbe4e4.js → index-vksbsqpb.js} +1 -1
- package/dist/{index-dxft2mnm.js → index-wdg7bswj.js} +1 -1
- package/dist/{index-ppy23bd2.js → index-wjx1zs2r.js} +7 -578
- package/dist/{index-efbzm2se.js → index-x2r0ma9t.js} +1 -1
- package/dist/{index-kd48gk7d.js → index-x8py72a3.js} +1 -1
- package/dist/index-xvydbxmk.js +1404 -0
- package/dist/index-xwaphv0d.js +31 -0
- package/dist/{index-a09r9ff0.js → index-y44j39yk.js} +1 -1
- package/dist/{index-7mjsb7zv.js → index-ybrrxjhb.js} +1 -1
- package/dist/{index-xsrma0jd.js → index-ysthxsa8.js} +6 -6
- package/dist/{index-6p5pshcd.js → index-yyh3ey4b.js} +1 -1
- package/dist/{index-mr3njw67.js → index-z6hq9j8j.js} +1 -1
- package/dist/{index-67mzzkdv.js → index-z72agxdn.js} +2 -2
- package/dist/{index-e4w0sfm1.js → index-z78mtc16.js} +1 -1
- package/dist/{index-7csn6pva.js → index-ze94h4ph.js} +5 -0
- package/dist/internal/json-stringify.d.ts +12 -0
- package/dist/internal/json-stringify.d.ts.map +1 -1
- package/dist/internal/unix-client-error.d.ts +4 -0
- package/dist/internal/unix-client-error.d.ts.map +1 -1
- package/dist/live/watch-contract.d.ts +4 -0
- package/dist/live/watch-contract.d.ts.map +1 -1
- package/dist/live/watch-fanout-frame.d.ts +81 -0
- package/dist/live/watch-fanout-frame.d.ts.map +1 -0
- package/dist/live/watch-fanout.d.ts +57 -0
- package/dist/live/watch-fanout.d.ts.map +1 -0
- package/dist/observability/audit.d.ts.map +1 -1
- package/dist/observability/spool-core.d.ts +1 -0
- package/dist/observability/spool-core.d.ts.map +1 -1
- package/dist/observability/spool-drain.d.ts +48 -0
- package/dist/observability/spool-drain.d.ts.map +1 -0
- package/dist/observability/spool.d.ts +12 -6
- package/dist/observability/spool.d.ts.map +1 -1
- package/dist/postgres/rollback-transaction.d.ts +61 -0
- package/dist/postgres/rollback-transaction.d.ts.map +1 -0
- package/dist/primitives/deadline.d.ts +4 -4
- package/dist/primitives/deadline.d.ts.map +1 -1
- package/dist/server/error-hook.d.ts +3 -32
- package/dist/server/error-hook.d.ts.map +1 -1
- package/dist/server/local-consent-key.d.ts +104 -0
- package/dist/server/local-consent-key.d.ts.map +1 -0
- package/dist/server/local-control-journal.d.ts +51 -0
- package/dist/server/local-control-journal.d.ts.map +1 -0
- package/dist/server/local-control-reporter.d.ts +32 -0
- package/dist/server/local-control-reporter.d.ts.map +1 -0
- package/dist/server/local-control.d.ts +48 -0
- package/dist/server/local-control.d.ts.map +1 -0
- package/dist/server/local-host-clients.d.ts +105 -0
- package/dist/server/local-host-clients.d.ts.map +1 -0
- package/dist/server/middleware/trust-fence.d.ts +20 -0
- package/dist/server/middleware/trust-fence.d.ts.map +1 -1
- package/dist/spend/receipt-spool.d.ts +9 -4
- package/dist/spend/receipt-spool.d.ts.map +1 -1
- package/dist/testing/tool-surface-checks.d.ts +89 -0
- package/dist/testing/tool-surface-checks.d.ts.map +1 -0
- package/dist/testing/tool-surface-cli-callable.d.ts +63 -0
- package/dist/testing/tool-surface-cli-callable.d.ts.map +1 -0
- package/dist/testing/tool-surface-dead-refs.d.ts +32 -0
- package/dist/testing/tool-surface-dead-refs.d.ts.map +1 -0
- package/dist/testing/tool-surface-gates.d.ts +72 -0
- package/dist/testing/tool-surface-gates.d.ts.map +1 -0
- package/dist/testing/tool-surface-parity-drivers.d.ts +56 -0
- package/dist/testing/tool-surface-parity-drivers.d.ts.map +1 -0
- package/dist/testing/tool-surface-parity.d.ts +28 -0
- package/dist/testing/tool-surface-parity.d.ts.map +1 -0
- package/dist/testing/tool-surface-ratchet.d.ts +71 -0
- package/dist/testing/tool-surface-ratchet.d.ts.map +1 -0
- package/dist/tools/agent-tools.d.ts +3 -0
- package/dist/tools/agent-tools.d.ts.map +1 -1
- package/dist/tools/cli/command.d.ts +3 -0
- package/dist/tools/cli/command.d.ts.map +1 -1
- package/dist/tools/cli/create-cli.d.ts.map +1 -1
- package/dist/tools/cli/format.d.ts +3 -6
- package/dist/tools/cli/format.d.ts.map +1 -1
- package/dist/tools/cli/invoke.d.ts +4 -0
- package/dist/tools/cli/invoke.d.ts.map +1 -1
- package/dist/tools/cli/local-key-command.d.ts +53 -0
- package/dist/tools/cli/local-key-command.d.ts.map +1 -0
- package/dist/tools/cli/managed-surface.d.ts.map +1 -1
- package/dist/tools/cli/run-managed.d.ts.map +1 -1
- package/dist/tools/cli/run-stream.d.ts.map +1 -1
- package/dist/tools/cli/runner.d.ts +8 -3
- package/dist/tools/cli/runner.d.ts.map +1 -1
- package/dist/tools/cli/secret.d.ts +55 -0
- package/dist/tools/cli/secret.d.ts.map +1 -0
- package/dist/tools/cli/session.d.ts +2 -2
- package/dist/tools/cli/session.d.ts.map +1 -1
- package/dist/tools/cli/stream.d.ts.map +1 -1
- package/dist/tools/cli/unix-outcome.d.ts +6 -0
- package/dist/tools/cli/unix-outcome.d.ts.map +1 -1
- package/dist/tools/execute-result.d.ts +20 -0
- package/dist/tools/execute-result.d.ts.map +1 -1
- package/dist/tools/execute.d.ts +3 -0
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/internal/json-projection.d.ts +13 -9
- package/dist/tools/internal/json-projection.d.ts.map +1 -1
- package/dist/tools/internal/remote-error.d.ts +15 -0
- package/dist/tools/internal/remote-error.d.ts.map +1 -0
- package/dist/tools/internal/surface-projector.d.ts +2 -0
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/invoker.d.ts +3 -0
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/mcp/handler.d.ts.map +1 -1
- package/dist/tools/mcp/lazy-discovery.d.ts +2 -0
- package/dist/tools/mcp/lazy-discovery.d.ts.map +1 -1
- package/dist/tools/mcp/mount.d.ts +5 -0
- package/dist/tools/mcp/mount.d.ts.map +1 -1
- package/dist/tools/mcp/register.d.ts +2 -0
- package/dist/tools/mcp/register.d.ts.map +1 -1
- package/dist/tools/mcp/runtime-tools.d.ts +2 -0
- package/dist/tools/mcp/runtime-tools.d.ts.map +1 -1
- package/dist/tools/mcp/stdio.d.ts.map +1 -1
- package/dist/tools/mount.d.ts +3 -0
- package/dist/tools/mount.d.ts.map +1 -1
- package/dist/tools/read-operation.d.ts +2 -6
- package/dist/tools/read-operation.d.ts.map +1 -1
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools/toolkit.d.ts +10 -3
- package/dist/tools/toolkit.d.ts.map +1 -1
- package/dist/xlsx/schema.d.ts.map +1 -1
- package/llms/cli.2.txt +10 -8
- package/llms/cli.3.txt +2 -0
- package/llms/cli.txt +18 -3
- package/llms/contract.txt +47 -5
- package/llms/handler.txt +1 -1
- package/llms/live.txt +82 -0
- package/llms/node.txt +5 -0
- package/llms/observability.2.txt +1 -1
- package/llms/observability.txt +6 -0
- package/llms/postgres.txt +1 -0
- package/llms/server.2.txt +206 -240
- package/llms/server.3.txt +242 -202
- package/llms/server.4.txt +202 -1025
- package/llms/server.5.txt +1053 -255
- package/llms/server.6.txt +274 -0
- package/llms/server.txt +32 -116
- package/llms/spend.txt +8 -7
- package/llms/stitchkit.2.txt +13 -35
- package/llms/stitchkit.3.txt +27 -0
- package/llms/stitchkit.txt +81 -81
- package/llms/testing.txt +40 -0
- package/llms/tools-toolkit.txt +2 -2
- package/llms/tools.2.txt +29 -20
- package/llms/{upgrading-0.128.0-0.129.0.txt → upgrading-0.128.0-0.131.0.txt} +101 -3
- package/llms/{upgrading-0.130.0-0.136.0.txt → upgrading-0.132.0-0.137.0.txt} +62 -101
- package/llms/upgrading.txt +2 -2
- package/llms-full.txt +590 -171
- package/llms.txt +13 -13
- package/package.json +1 -1
- package/dist/index-9118dw8d.js +0 -603
- package/dist/index-9vj869rx.js +0 -19
- package/dist/index-a1rjr381.js +0 -114
- package/dist/index-dacxr7nf.js +0 -17
- package/dist/index-dm50x3by.js +0 -63
- package/dist/index-dmrx8xma.js +0 -163
- package/dist/index-ednf2cxs.js +0 -37
- package/dist/{index-e4zt2x70.js → index-3czppvrr.js} +3 -3
- package/dist/{index-42n9jycn.js → index-3f79t32b.js} +3 -3
- package/dist/{index-mfe9a266.js → index-84n49vam.js} +0 -0
- package/dist/{index-f16b7rze.js → index-er1tp8de.js} +3 -3
- package/dist/{index-k137ezb6.js → index-f5d0fdcf.js} +3 -3
- package/dist/{index-65p8v81y.js → index-psz8qrz0.js} +3 -3
- package/dist/{index-kadgaw1s.js → index-r8cq86h1.js} +0 -0
- package/dist/{index-1yky29qg.js → index-tyyvbarf.js} +0 -0
- package/dist/{index-tjakdpf2.js → index-wq71v08n.js} +3 -3
- package/dist/{index-7an2fs5h.js → index-wswcpbm4.js} +3 -3
package/llms/stitchkit.txt
CHANGED
|
@@ -56,88 +56,88 @@ own, recorded as an ADR.
|
|
|
56
56
|
|
|
57
57
|
| Import | Use in | Maturity | Holds |
|
|
58
58
|
|--------|--------|----------|-------|
|
|
59
|
-
| `stitchkit` | browser **and** server | stable<br>_redefined in
|
|
60
|
-
| `stitchkit/http` | browser, React Native/Hermes **and** server | evolving<br>_redefined in 3 of the
|
|
61
|
-
| `stitchkit/realtime` | browser, React Native/Hermes **and** server | evolving<br>_redefined in 1 of the
|
|
62
|
-
| `stitchkit/device-relay` | browser, React Native/Hermes **and** server | evolving<br>_redefined in 0 of the
|
|
63
|
-
| `stitchkit/contract` | browser **and** server | stable<br>_redefined in
|
|
64
|
-
| `stitchkit/live` | browser **and** server | evolving<br>_redefined in 2 of the
|
|
65
|
-
| `stitchkit/primitives` | browser **and** server | evolving<br>_redefined in 0 of the
|
|
66
|
-
| `stitchkit/handler` | browser, React Native/Hermes **and** server | evolving<br>_redefined in
|
|
67
|
-
| `stitchkit/server` | server (Bun) | stable<br>_redefined in
|
|
68
|
-
| `stitchkit/node` | server (Node ≥ 22.3) | stable<br>_redefined in 3 of the
|
|
69
|
-
| `stitchkit/tools` | server | stable<br>_redefined in
|
|
70
|
-
| `stitchkit/tools/mcp` | server (Bun or Node) | evolving<br>_redefined in 3 of the
|
|
71
|
-
| `stitchkit/tools/agent` | server (Bun or Node) | evolving<br>_redefined in 2 of the
|
|
72
|
-
| `stitchkit/tools/toolkit` | server (Bun or Node) | evolving<br>_redefined in 2 of the
|
|
73
|
-
| `stitchkit/tools/contract` | browser + server | evolving<br>_redefined in 2 of the
|
|
74
|
-
| `stitchkit/tools/invoker` | server | stable<br>_redefined in 3 of the
|
|
75
|
-
| `stitchkit/tools/connections` | server (Bun or Node) | evolving<br>_redefined in 3 of the
|
|
76
|
-
| `stitchkit/cli` | server | stable<br>_redefined in 12 of the
|
|
77
|
-
| `stitchkit/cli/publish` | artifact publication and HTTP serving tooling (Bun or Node, POSIX) | evolving<br>_redefined in 0 of the
|
|
78
|
-
| `stitchkit/remote` | browser **and** server | stable<br>_redefined in 1 of the
|
|
79
|
-
| `stitchkit/process` | server (Bun or Node, POSIX) | evolving<br>_redefined in 4 of the
|
|
80
|
-
| `stitchkit/process/bootstrap` | bundled server entry (Bun, POSIX) | evolving<br>_redefined in 0 of the
|
|
81
|
-
| `stitchkit/files/packaging` | build time (Bun or Node) | evolving<br>_redefined in 4 of the
|
|
82
|
-
| `stitchkit/files` | server (Bun or Node) | stable<br>_redefined in 5 of the
|
|
83
|
-
| `stitchkit/spend` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
84
|
-
| `stitchkit/spend/testing` | tests on Bun or Node | evolving<br>_redefined in 0 of the
|
|
85
|
-
| `stitchkit/service-host` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
86
|
-
| `stitchkit/service-host/macos` | server (Bun or Node, macOS) | evolving<br>_redefined in 0 of the
|
|
87
|
-
| `stitchkit/service-host/work` | server (Bun or Node; Linux with systemd ≥ 254, or a process root on Linux and macOS) | evolving<br>_redefined in 0 of the
|
|
88
|
-
| `stitchkit/telegram` | server (Bun or Node) | evolving<br>_redefined in 9 of the
|
|
89
|
-
| `stitchkit/telegram/grammy` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
90
|
-
| `stitchkit/telegram/html` | browser and server | evolving<br>_redefined in 1 of the
|
|
91
|
-
| `stitchkit/telegram/voice` | browser and server | evolving<br>_redefined in 0 of the
|
|
92
|
-
| `stitchkit/telegram/screens` | server (Bun or Node) | evolving<br>_redefined in 1 of the
|
|
93
|
-
| `stitchkit/tracking` | browser **and** server | evolving<br>_redefined in 3 of the
|
|
94
|
-
| `stitchkit/tracking/contract` | browser **and** server | evolving<br>_redefined in 0 of the
|
|
95
|
-
| `stitchkit/tracking/performance` | browser **and** server | evolving<br>_redefined in 1 of the
|
|
96
|
-
| `stitchkit/tracking/server` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
97
|
-
| `stitchkit/release` | browser **and** server | evolving<br>_redefined in 1 of the
|
|
98
|
-
| `stitchkit/voice` | browser **and** server | evolving<br>_redefined in 0 of the
|
|
99
|
-
| `stitchkit/sync` | browser **and** server | evolving<br>_redefined in 1 of the
|
|
100
|
-
| `stitchkit/sync/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
101
|
-
| `stitchkit/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
102
|
-
| `stitchkit/geo` | server (Bun or Node) | evolving<br>_redefined in 2 of the
|
|
103
|
-
| `stitchkit/geo/contract` | browser **and** server | evolving<br>_redefined in 0 of the
|
|
104
|
-
| `stitchkit/xlsx` | browser **and** server | evolving<br>_redefined in 0 of the
|
|
105
|
-
| `stitchkit/oauth` | browser **and** server | evolving<br>_redefined in 0 of the
|
|
106
|
-
| `stitchkit/google` | server (Bun or Node) | evolving<br>_redefined in 1 of the
|
|
107
|
-
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the
|
|
108
|
-
| `stitchkit/testing` | tests on Bun or Node | stable<br>_redefined in 3 of the
|
|
109
|
-
| `stitchkit/declaration` | browser + build and deployment tooling (Bun or Node) | evolving<br>_redefined in 1 of the
|
|
110
|
-
| `stitchkit/react` | browser + server rendering | stable<br>_redefined in 3 of the
|
|
111
|
-
| `stitchkit/react/keyboard` | browser | evolving<br>_redefined in 1 of the
|
|
112
|
-
| `stitchkit/react/keyboard/testing` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
113
|
-
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 12 of the
|
|
114
|
-
| `stitchkit/agent-runtime/sandbox` | server | evolving<br>_redefined in 1 of the
|
|
115
|
-
| `stitchkit/agent-runtime/testing` | tests on Bun or Node | evolving<br>_redefined in 4 of the
|
|
116
|
-
| `stitchkit/agent-runtime/harness` | server | evolving<br>_redefined in 1 of the
|
|
117
|
-
| `stitchkit/agent-runtime/coding-tools` | server (Bun or Node) | evolving<br>_redefined in 3 of the
|
|
118
|
-
| `stitchkit/agent-runtime/openrouter` | server | evolving<br>_redefined in 4 of the
|
|
119
|
-
| `stitchkit/agent-runtime/openai` | server | evolving<br>_redefined in 0 of the
|
|
120
|
-
| `stitchkit/agent-runtime/anthropic` | server | evolving<br>_redefined in 0 of the
|
|
121
|
-
| `stitchkit/agent-runtime/ai-sdk` | server | evolving<br>_redefined in 0 of the
|
|
122
|
-
| `stitchkit/agent-runtime/browser` | browser + server | evolving<br>_redefined in 2 of the
|
|
123
|
-
| `stitchkit/agent-runtime/react` | browser + server | evolving<br>_redefined in 0 of the
|
|
124
|
-
| `stitchkit/agent-runtime/realtime` | server (Bun or Node) | evolving<br>_redefined in 2 of the
|
|
125
|
-
| `stitchkit/agent-executor` | server (Bun or Node) | evolving<br>_redefined in 4 of the
|
|
126
|
-
| `stitchkit/agent-executor/claude` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
127
|
-
| `stitchkit/agent-executor/claude-sdk` | server (Bun or Node) | evolving<br>_redefined in 1 of the
|
|
128
|
-
| `stitchkit/agent-executor/acp` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
129
|
-
| `stitchkit/agent-executor/codex` | server (Bun or Node) | evolving<br>_redefined in 3 of the
|
|
130
|
-
| `stitchkit/agent-executor/testing` | server (Bun or Node) | evolving<br>_redefined in 1 of the
|
|
131
|
-
| `stitchkit/agent-executor/testing/claude-sdk` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
132
|
-
| `stitchkit/agent-runtime/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the
|
|
133
|
-
| `stitchkit/agent-runtime/sqlite/bun` | server (Bun) | evolving<br>_redefined in 1 of the
|
|
134
|
-
| `stitchkit/agent-runtime/sqlite/node` | server (Node ≥ 22.5) | evolving<br>_redefined in 1 of the
|
|
59
|
+
| `stitchkit` | browser **and** server | stable<br>_redefined in 7 of the 44 minors since 0.94.0, most recently 0.137.0_ | `defineContract`, `createClient`, `createHttpClient`, `createSocketIOClient`, `parseSSE`, the error model |
|
|
60
|
+
| `stitchkit/http` | browser, React Native/Hermes **and** server | evolving<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.135.0_ | typed HTTP client factories, `ApiError`, `readContractIdentity` and the stream line errors, without optional realtime peers |
|
|
61
|
+
| `stitchkit/realtime` | browser, React Native/Hermes **and** server | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | typed realtime clients, binding to an existing socket and retained topics with a required explicit Socket.IO peer loader |
|
|
62
|
+
| `stitchkit/device-relay` | browser, React Native/Hermes **and** server | evolving<br>_redefined in 0 of the 4 minors since 0.134.0_ | peer-free User Device Relay over realtime — `createDeviceRelayHub`, `createDeviceRelayAgent`, `createMemoryRelayBroker`, `deviceRelayRealtimeContract`, Fetch-compatible unary RPC and credit-paced cursor streams |
|
|
63
|
+
| `stitchkit/contract` | browser **and** server | stable<br>_redefined in 7 of the 44 minors since 0.94.0, most recently 0.137.0_ | the contract layer alone — `defineContract`, errors, pagination |
|
|
64
|
+
| `stitchkit/live` | browser **and** server | evolving<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.127.0_ | `defineEvents` — topic declarations beside the operation contract — and watched reads: `createWatchClient`, the value/difference frame and its reassembly |
|
|
65
|
+
| `stitchkit/primitives` | browser **and** server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | generic values and declarations for lifecycle, access, audit, delivery and exports, exact money and rounding tables |
|
|
66
|
+
| `stitchkit/handler` | browser, React Native/Hermes **and** server | evolving<br>_redefined in 2 of the 11 minors since 0.127.0, most recently 0.137.0_ | portable `createHandler`, `implement`, errors and `serveBridge` over a string `postMessage` port, with no Node built-ins |
|
|
67
|
+
| `stitchkit/server` | server (Bun) | stable<br>_redefined in 7 of the 44 minors since 0.94.0, most recently 0.137.0_ | `createServer`, `implement`, hooks, auth, Socket.IO server, server primitives |
|
|
68
|
+
| `stitchkit/node` | server (Node ≥ 22.3) | stable<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.136.0_ | `serveNode` + the runtime-agnostic core — the Node mirror of `/server` |
|
|
69
|
+
| `stitchkit/tools` | server | stable<br>_redefined in 14 of the 44 minors since 0.94.0, most recently 0.137.0_ | the transport-neutral tool layer — `mountAgentTools`, `defineAgentTool`, registry, tool names and manifest, runtime tools, native tools, the OAuth provider, the durability engine; loads no optional peer at runtime |
|
|
70
|
+
| `stitchkit/tools/mcp` | server (Bun or Node) | evolving<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.127.0_ | the canonical MCP HTTP/stdio server, schemas and typed MCP presenters; only Zod and the MCP server SDK peers |
|
|
71
|
+
| `stitchkit/tools/agent` | server (Bun or Node) | evolving<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.134.0_ | `mountAgent` — thin AI SDK `ToolSet` adapter over `mountAgentTools` for apps driving their own SDK loop; only Zod and the `ai` peer |
|
|
72
|
+
| `stitchkit/tools/toolkit` | server (Bun or Node) | evolving<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.135.0_ | `createToolkit` — context-pinned MCP, peer-free agent (`mountAgentTools`), and CLI mounts; only the MCP server SDK peer (no `ai` peer) |
|
|
73
|
+
| `stitchkit/tools/contract` | browser + server | evolving<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.124.0_ | the shapes a tool surface speaks — async-operation contract, snapshot and cancel schemas, view-file input/output — without the runtime that serves them |
|
|
74
|
+
| `stitchkit/tools/invoker` | server | stable<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.127.0_ | peer-free `createToolInvoker` over the canonical contract tool runner |
|
|
75
|
+
| `stitchkit/tools/connections` | server (Bun or Node) | evolving<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.127.0_ | consume external MCP servers and a bounded OpenAPI subset — typed reauthorization, a per-request host fence and per-call credentials |
|
|
76
|
+
| `stitchkit/cli` | server | stable<br>_redefined in 12 of the 44 minors since 0.94.0, most recently 0.128.0_ | `createCli` / `createCliInvoker` — runtime and strict NodeNext declarations without MCP SDK / `ai` |
|
|
77
|
+
| `stitchkit/cli/publish` | artifact publication and HTTP serving tooling (Bun or Node, POSIX) | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | `publishCli`, shipping-input versioning (`deriveCliVersionFromShippingInputs`, `cliShippingInputsChanged`, `assertCleanCliSource`), `createCliDistributionRoutes`, and the unpublished-channel response contract (`CLI_DISTRIBUTION_UNPUBLISHED_RESPONSE`, `isCliDistributionUnpublishedResponse`); see [CLI guide](cli.md#publishing-a-complete-version) |
|
|
78
|
+
| `stitchkit/remote` | browser **and** server | stable<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.104.0_ | peer-free `implementRemote` for thin HTTP proxy processes |
|
|
79
|
+
| `stitchkit/process` | server (Bun or Node, POSIX) | evolving<br>_redefined in 4 of the 44 minors since 0.94.0, most recently 0.133.0_ | finite native commands, byte sinks, bounded capture, process-group cancellation and opt-in Linux/Darwin owner-loss cleanup; contract operations executed in one-call child processes |
|
|
80
|
+
| `stitchkit/process/bootstrap` | bundled server entry (Bun, POSIX) | evolving<br>_redefined in 0 of the 5 minors since 0.133.0_ | narrow bootstrap that keeps the process runner lazy while carrying the package's own invocations — the owner-loss guard and the process root of launched work — in a single-file bundle |
|
|
81
|
+
| `stitchkit/files/packaging` | build time (Bun or Node) | evolving<br>_redefined in 4 of the 44 minors since 0.94.0, most recently 0.133.0_ | installed native asset graph, integrity, Bun packaging plugin and the artifact loader check; a client bundled into one self-contained, hashed file; a typed client built into a proven npm package with several entries, declarations and external peers; no runtime install policy |
|
|
82
|
+
| `stitchkit/files` | server (Bun or Node) | stable<br>_redefined in 5 of the 44 minors since 0.94.0, most recently 0.133.0_ | peer-free managed local-file boundary |
|
|
83
|
+
| `stitchkit/spend` | server (Bun or Node) | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | peer-free spend gateway for paid model APIs: the attempt recorded before the call and closed on every outcome, credentials only for the provider's origin, a spooled ledger, rank-merged receipts and a reconciler |
|
|
84
|
+
| `stitchkit/spend/testing` | tests on Bun or Node | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | the coverage guard: red on a model SDK import, a provider key or a provider host outside the gateway files |
|
|
85
|
+
| `stitchkit/service-host` | server (Bun or Node) | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | peer-free host service supervision — verified versioned artifact activation, Linux `systemd` and macOS `launchd` units (`plutil`, `bootout`/`bootstrap`, rollback), live process/Unix-socket identity verification, and an in-process config-watched reloader |
|
|
86
|
+
| `stitchkit/service-host/macos` | server (Bun or Node, macOS) | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | peer-free macOS daemon bundle toolkit — fail-closed Developer ID `codesign`, strict C11 launcher `.app` bundles with atomic `RENAME_SWAP` install/rollback, Apple 824×824 squircle `AppIcon.icns`, streaming `lsregister` maintenance, and TCC responsibility inspection |
|
|
87
|
+
| `stitchkit/service-host/work` | server (Bun or Node; Linux with systemd ≥ 254, or a process root on Linux and macOS) | evolving<br>_redefined in 0 of the 5 minors since 0.133.0_ | peer-free launch of work in its own boundary with a declared owner — a transient systemd scope or a recorded process root, the typed owner record, the one inherited variable that names the boundary, and the membership check that asks the boundary; see [native I/O](native-io.md#work-in-its-own-boundary) |
|
|
88
|
+
| `stitchkit/telegram` | server (Bun or Node) | evolving<br>_redefined in 9 of the 44 minors since 0.94.0, most recently 0.136.0_ | peer-free Telegram platform primitives — Mini App `initData` verification, widget limits and the `widget_query`, `shared_widget_query` and widget message schemas, send-failure classification, one outbound budget per bot token with weighted albums and per-chat 429 pauses, resumable broadcasts, the operator channel with dedupe, a Bot API transport that separates a request that never left from an unknown outcome, local Bot API files, the waveform of a voice message read from its PCM, webhook ownership and durable webhook update intake |
|
|
89
|
+
| `stitchkit/telegram/grammy` | server (Bun or Node) | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the token's outbound budget as one grammY client transformer — a 429 that comes back as a response pauses its chat, and a cancelled wait is a request that never left; the widget methods over the same client |
|
|
90
|
+
| `stitchkit/telegram/html` | browser and server | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | Telegram's HTML as a tree — compile GFM Markdown to Telegram HTML with fence-aware splitting, clean any markup to what Telegram accepts, cut long text into valid parts by what the reader sees, check markup before it is sent |
|
|
91
|
+
| `stitchkit/telegram/voice` | browser and server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the waveform of a voice message as one format — packed for `sendVoice` the way Telegram Desktop scales it, unpacked to draw it, a `getMe` read of whether the server takes it |
|
|
92
|
+
| `stitchkit/telegram/screens` | server (Bun or Node) | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | a bot's menus as declared screens over grammY — typed paths, actions and input, message reconciliation, state in any `StorageAdapter`, a test chat |
|
|
93
|
+
| `stitchkit/tracking` | browser **and** server | evolving<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.127.0_ | visitor-tracking mechanics — `createTrackingClient`, the tab-shared outbox, the page-leave beacon, attribution, the contract factory; no event vocabulary, no React |
|
|
94
|
+
| `stitchkit/tracking/contract` | browser **and** server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the wire shapes — the contract factory, event and visit schemas, the performance sample and its trust threshold; brings `zod` |
|
|
95
|
+
| `stitchkit/tracking/performance` | browser **and** server | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | Web Vitals from real visitors, collected after load through the optional peer `web-vitals`; no `zod` |
|
|
96
|
+
| `stitchkit/tracking/server` | server (Bun or Node) | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the decisions a tracking backend makes — dispositions, visit lease over an application-owned store, active intervals, presence; no database |
|
|
97
|
+
| `stitchkit/release` | browser **and** server | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | a page follows the release it was built for — `createReleaseMarker` on the server, `createReleaseWatcher` in the browser, the `X-Build-Id` header and a socket event between them |
|
|
98
|
+
| `stitchkit/voice` | browser **and** server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the mechanics of a live voice reply — `SentenceCutter`, `speakableText`, a `SpeechQueue` that synthesises ahead and stops on interruption, the conversation phases |
|
|
99
|
+
| `stitchkit/sync` | browser **and** server | evolving<br>_redefined in 1 of the 11 minors since 0.127.0, most recently 0.132.0_ | the client half of an offline-first sync — which outbox rows leave next, pending edits on top of remote rows, deletes that win until acknowledged, the cursor session, the push and page wire with an open outcome vocabulary; no driver, runs in Hermes |
|
|
100
|
+
| `stitchkit/sync/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | the server half — versions that commit in order, a ledger that runs each change once, a feed of what changed, inside the app's own transaction; a memory store and `checkSyncStore` |
|
|
101
|
+
| `stitchkit/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the 2 minors since 0.136.7_ | peer-free PostgreSQL helpers — `postgresConnectionConfig` safely merges URL `?options=` with enforced `TimeZone=UTC`, `search_path` and custom parameters for `PrismaPg`/`pg.Pool`, `withSerializedPrismaTransactions` queues interactive transaction statements one at a time on a Prisma SQL driver adapter while keeping pool queries parallel, and `runRollbackTransaction` runs an interactive transaction that can intentionally roll back while returning a typed payload |
|
|
102
|
+
| `stitchkit/geo` | server (Bun or Node) | evolving<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.127.0_ | managed GeoIP reader generations, last-known-good reload and the optional MaxMind adapter |
|
|
103
|
+
| `stitchkit/geo/contract` | browser **and** server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the place snapshot schema, for a shared contract that stores or sends `GeoAttribution`; brings `zod` |
|
|
104
|
+
| `stitchkit/xlsx` | browser **and** server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | a workbook from rows and typed columns, with no dependency; text never runs as a formula |
|
|
105
|
+
| `stitchkit/oauth` | browser **and** server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | provider-neutral Authorization Code + PKCE request and one-shot callback transaction mechanics |
|
|
106
|
+
| `stitchkit/google` | server (Bun or Node) | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | optional Google code exchange and verified OIDC identity adapter |
|
|
107
|
+
| `stitchkit/observability` | server | stable<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.136.0_ | request/tool event projections — `createObservability`, trace context, sanitisation |
|
|
108
|
+
| `stitchkit/testing` | tests on Bun or Node | stable<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.127.0_ | in-process generated clients over a real Fetch handler, tool-surface audit gates (`checkToolSurface` / `assertToolSurface`), the managed-resource conformance kit and manual time for schedules and retries |
|
|
109
|
+
| `stitchkit/declaration` | browser + build and deployment tooling (Bun or Node) | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.128.0_ | `ProjectDeclarationSchema` — the one machine-readable statement a repository makes about itself |
|
|
110
|
+
| `stitchkit/react` | browser + server rendering | stable<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.136.0_ | `createCursorQuery`, `createCacheBridge`, QueryClient and `ApiError` retry policy |
|
|
111
|
+
| `stitchkit/react/keyboard` | browser | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.115.0_ | which part of a screen gets a key — ordered layers, one Escape per level, list zones with real focus; see [keyboard guide](keyboard.md) |
|
|
112
|
+
| `stitchkit/react/keyboard/testing` | server (Bun or Node) | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the keyboard layers and zones without a DOM — fakes for the window, elements and key events beside the two engines, to test the order of layers, `scope`/`inert` and the edges of a zone in milliseconds |
|
|
113
|
+
| `stitchkit/agent-runtime` | server | evolving<br>_redefined in 12 of the 44 minors since 0.94.0, most recently 0.136.0_ | peer-free durable conversation/run loop over `AgentModelDriver`, stateless `completeText`/`completeObject`, driver composition, history, models, prompts, fencing and events |
|
|
114
|
+
| `stitchkit/agent-runtime/sandbox` | server | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.136.0_ | optional Linux Bubblewrap sessions, long-lived OS process sandboxes (`createProcessSandbox`, `probeProcessSandbox`, `buildSeatbeltProfile`), durable workspaces and a host HTTP credential gateway; see [sandbox guide](sandbox.md) |
|
|
115
|
+
| `stitchkit/agent-runtime/testing` | tests on Bun or Node | evolving<br>_redefined in 4 of the 44 minors since 0.94.0, most recently 0.136.0_ | peer-free `createScriptedModelDriver`, credential-free replay, scripted provider faults, deterministic race controls and the agent-store conformance kit |
|
|
116
|
+
| `stitchkit/agent-runtime/harness` | server | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.134.0_ | peer-free resource-aware process-local facade over the canonical Agent runtime; supervision stays outside |
|
|
117
|
+
| `stitchkit/agent-runtime/coding-tools` | server (Bun or Node) | evolving<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.127.0_ | bounded host-authorized direct file and shell tools; a root boundary, not an OS sandbox |
|
|
118
|
+
| `stitchkit/agent-runtime/openrouter` | server | evolving<br>_redefined in 4 of the 44 minors since 0.94.0, most recently 0.136.0_ | peer-free native OpenRouter Chat Completions SSE driver, catalog, admission, route pinning and spend reconciliation, plus typed non-chat clients (speech-to-text, text-to-speech, images, video, embeddings, rerank, System One, any endpoint through `openRouterRequestJson`) bound once by `createOpenRouterClient`; see [agent runtime guide](agent-runtime.md#openrouter-non-chat-endpoints-and-shared-transport) |
|
|
119
|
+
| `stitchkit/agent-runtime/openai` | server | evolving<br>_redefined in 0 of the 4 minors since 0.134.0_ | peer-free native OpenAI Responses API (`POST /v1/responses`) driver, policy schemas and provenance-aware usage normalization |
|
|
120
|
+
| `stitchkit/agent-runtime/anthropic` | server | evolving<br>_redefined in 0 of the 4 minors since 0.134.0_ | peer-free native Anthropic Messages API (`POST /v1/messages`) driver, thinking/cache policy schemas and provenance-aware usage normalization |
|
|
121
|
+
| `stitchkit/agent-runtime/ai-sdk` | server | evolving<br>_redefined in 0 of the 4 minors since 0.134.0_ | thin optional-peer adapter (`fromAiSdkModel`, `fromAiSdkTools`) bridging AI SDK (`LanguageModelV4` from `ai@7`) models and `ToolSet`s onto `AgentModelDriver` and `AgentToolSet`; requires `ai` |
|
|
122
|
+
| `stitchkit/agent-runtime/browser` | browser + server | evolving<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.127.0_ | canonical agent records, events, reconnect cursor, interactive approval/input/permission-mode/host-status state (`deriveAgentConversationActivity`, `deriveAgentConversationState`, `delivery: 'unknown'` reconciliation) and optional conversation controller |
|
|
123
|
+
| `stitchkit/agent-runtime/react` | browser + server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | React subscription to an application-owned agent controller |
|
|
124
|
+
| `stitchkit/agent-runtime/realtime` | server (Bun or Node) | evolving<br>_redefined in 2 of the 44 minors since 0.94.0, most recently 0.127.0_ | authorized agent control over the existing Socket.IO server |
|
|
125
|
+
| `stitchkit/agent-executor` | server (Bun or Node) | evolving<br>_redefined in 4 of the 11 minors since 0.127.0, most recently 0.133.0_ | the executor ↔ server contract for external coding agents (Claude Code, Codex, ACP): delta vocabulary (including `ExecutorPlanDelta`) over the shared message parts, thread leases with a fence, turn phases and their reports |
|
|
126
|
+
| `stitchkit/agent-executor/claude` | server (Bun or Node) | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | the Claude Code driver: the unmodified CLI over `stream-json`, permission requests answered by the host, reconcile by the input's id in the profile's transcript |
|
|
127
|
+
| `stitchkit/agent-executor/claude-sdk` | server (Bun or Node) | evolving<br>_redefined in 1 of the 11 minors since 0.127.0, most recently 0.131.0_ | Claude through the Agent SDK: the application's `query` (optional peer `@anthropic-ai/claude-agent-sdk`), the CLI's classifier, `canUseTool` asked of the host |
|
|
128
|
+
| `stitchkit/agent-executor/acp` | server (Bun or Node) | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | an Agent Client Protocol v1 agent over stdio: settings by category, images, MCP servers, tool metadata (`title`/`kind`/`locations`), meaningful `tool_call_update` progress updates, typed `plan` deltas, `session/resume`/`load`/`list`, `session/cancel`; no reconcile |
|
|
129
|
+
| `stitchkit/agent-executor/codex` | server (Bun or Node) | evolving<br>_redefined in 3 of the 11 minors since 0.127.0, most recently 0.133.0_ | the Codex driver: `codex app-server` over stdio or Unix-socket WebSocket (`unix-listen` / `unix-connect`), thread policy and live controls, approval and input requests answered by the host, unknown server requests refused, reconcile by the client id in `thread/turns/list` |
|
|
130
|
+
| `stitchkit/agent-executor/testing` | server (Bun or Node) | evolving<br>_redefined in 1 of the 11 minors since 0.127.0, most recently 0.133.0_ | the engine conformance kit, deterministic replay driver, portable fake Codex app-server, fail-loud consumer stub factories, and schema-validated test fixtures; no optional peer |
|
|
131
|
+
| `stitchkit/agent-executor/testing/claude-sdk` | server (Bun or Node) | evolving<br>_redefined in 0 of the 5 minors since 0.133.0_ | the multi-turn fake Claude SDK query harness and the Claude SDK session stub, typed by the optional peer `@anthropic-ai/claude-agent-sdk` |
|
|
132
|
+
| `stitchkit/agent-runtime/postgres` | server (Bun or Node) | evolving<br>_redefined in 0 of the 11 minors since 0.127.0_ | the agent store, conversation reader and companion host on Postgres, over the application's own client (Bun SQL, Prisma, `pg`) |
|
|
133
|
+
| `stitchkit/agent-runtime/sqlite/bun` | server (Bun) | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | durable built-in SQLite store for the agent runtime |
|
|
134
|
+
| `stitchkit/agent-runtime/sqlite/node` | server (Node ≥ 22.5) | evolving<br>_redefined in 1 of the 44 minors since 0.94.0, most recently 0.127.0_ | durable built-in SQLite store for the agent runtime |
|
|
135
135
|
| `stitchkit-tui` | terminal (Bun) | evolving | optional official OpenTUI host over a caller-composed headless runtime |
|
|
136
|
-
| `stitchkit/application` | browser + server | evolving<br>_redefined in 9 of the
|
|
137
|
-
| `stitchkit/application/grammy` | server | evolving<br>_redefined in 0 of the
|
|
138
|
-
| `stitchkit/application/opentelemetry` | server | evolving<br>_redefined in 0 of the
|
|
139
|
-
| `stitchkit/application/diagnostic-journal` | server | evolving<br>_redefined in 3 of the
|
|
140
|
-
| `stitchkit/application/directory-inbox` | server | evolving<br>_redefined in 0 of the
|
|
136
|
+
| `stitchkit/application` | browser + server | evolving<br>_redefined in 9 of the 44 minors since 0.94.0, most recently 0.127.0_ | managed resource graph, readiness, admission, schedules, subtree restart and bounded shutdown |
|
|
137
|
+
| `stitchkit/application/grammy` | server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | a grammY bot as application resources — configuration, then polling with updates admitted by batch — and the webhook adapter |
|
|
138
|
+
| `stitchkit/application/opentelemetry` | server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | maps application snapshots onto an injected OpenTelemetry `Meter` |
|
|
139
|
+
| `stitchkit/application/diagnostic-journal` | server | evolving<br>_redefined in 3 of the 44 minors since 0.94.0, most recently 0.127.0_ | the local diagnostic journal — an exclusive bounded writer and snapshot reader with explicit anomalies |
|
|
140
|
+
| `stitchkit/application/directory-inbox` | server | evolving<br>_redefined in 0 of the 44 minors since 0.94.0_ | the directory inbox — entries another program drops into a directory, delivered to the application at least once |
|
|
141
141
|
|
|
142
142
|
Rule of thumb: browser code imports `stitchkit` and `stitchkit/react`; server
|
|
143
143
|
code adds `stitchkit/server` (or `stitchkit/node` on Node) and opts into
|
package/llms/testing.txt
CHANGED
|
@@ -160,6 +160,43 @@ policy; named surfaces select tools, while `extend.filter` decides which
|
|
|
160
160
|
selected operations receive extra fields. CLI selection is deliberately plain,
|
|
161
161
|
and Agent owns its own reachable presentation shaping.
|
|
162
162
|
|
|
163
|
+
### Tool surface gates (`checkToolSurface`)
|
|
164
|
+
|
|
165
|
+
Beyond snapshot parity, `stitchkit/testing` ships one peer-free primitive —
|
|
166
|
+
`checkToolSurface` / `assertToolSurface` — covering all seven recurring
|
|
167
|
+
surface-hygiene gates without duplicating scripts per app:
|
|
168
|
+
|
|
169
|
+
- `getReads` — every `GET` operation lives in exactly one bucket: audited `reads`,
|
|
170
|
+
contract `effect: 'write'`, or a reasoned debt (`readOnlyHint: false` without `effect`).
|
|
171
|
+
- `cliCallable` — boots the CLI configuration and builds its managed surface,
|
|
172
|
+
refusing startup faults or `[unavailable]` commands (such as fields shadowing framework or global flags).
|
|
173
|
+
- `noRefs` — checks advertised MCP (default or named `mcpSurfaces`) and AGENT input schemas for
|
|
174
|
+
zero `$ref`, `$defs`, or `definitions` (unroll recursion with `tool.inputRecursionDepth`).
|
|
175
|
+
- `outputJsonSchema` — validates that every operation's `output` and `toolView.output`
|
|
176
|
+
converts cleanly to JSON Schema (refusing unrepresentable schemas such as `z.date()`).
|
|
177
|
+
- `transportParity` — calls the same contract operation across configured HTTP, MCP, AGENT, and CLI
|
|
178
|
+
targets and verifies identical wire JSON (projecting HTTP through `toolView`), identical mapped error
|
|
179
|
+
codes (`ErrorCodeMapping`), and identical application error messages.
|
|
180
|
+
- `deadReferences` — scans portable file globs (`node:fs/promises`), in-memory sources, and endpoint
|
|
181
|
+
descriptions for tool-name tokens, refusing 0 matched files and unused or tool-colliding `ignore` entries.
|
|
182
|
+
- `schemaRatchet` — enforces strict bidirectional equality against a baseline JSON (`writeToolSurfaceBaseline`,
|
|
183
|
+
mode `0644`) for `agentSchemaBytes`, untyped input properties (excluding `inputNestingDepth`-opened paths),
|
|
184
|
+
and bare-array / `list_*` envelope violations, with an explicit `updateCommand` hint on drift.
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
import { assertToolSurface } from 'stitchkit/testing'
|
|
188
|
+
|
|
189
|
+
await assertToolSurface({
|
|
190
|
+
services,
|
|
191
|
+
runtimeTools,
|
|
192
|
+
getReads: { registry: getReadsRegistry },
|
|
193
|
+
cliCallable: { config: cliConfig },
|
|
194
|
+
transportParity: { http: { handler }, mcp: { handler: mcpHandler }, agent: { invoker: agentInvoker }, cli: { invoker: cliInvoker }, cases },
|
|
195
|
+
deadReferences: { cwd: process.cwd(), globs: ['src/prompts/**/*.md'], ignore: {} },
|
|
196
|
+
schemaRatchet: { baseline: { path: 'tests/tool-surface-ratchet.json' }, updateCommand: 'bun scripts/update-ratchet.ts' },
|
|
197
|
+
})
|
|
198
|
+
```
|
|
199
|
+
|
|
163
200
|
The kit never starts a server, discovers Socket.IO topology remotely, invents
|
|
164
201
|
credentials or synthesises invalid Zod values. Fixtures and observations come
|
|
165
202
|
from the application. The realtime driver creates a rejection channel per
|
|
@@ -718,5 +755,8 @@ handler pipeline without opening a TCP port.
|
|
|
718
755
|
| `McpSchemaValidationConfig` / `IncompatibleSchemaPolicy` | _type_ | canonical MCP schema-preparation policy used by real mounts and manifests |
|
|
719
756
|
| `SurfaceRealtimeSchemaPairSchema` | schema | input/output digest pair for args or acknowledgements |
|
|
720
757
|
| `SurfaceSchemaDigestsSchema` | schema | params/input/output/multipart digest object |
|
|
758
|
+
| `checkToolSurface` / `assertToolSurface` / `computeToolSurfaceRatchet` / `writeToolSurfaceBaseline` / `formatToolSurfaceReport` / `ToolSurfaceError` | functions / class | peer-free unified tool-surface gate covering `getReads`, `cliCallable`, `noRefs`, `outputJsonSchema`, `transportParity`, `deadReferences`, and bidirectional `schemaRatchet` with atomic `0644` baseline writing — [guide](../guide/testing-and-deployment.md#tool-surface-gates-checktoolsurface) |
|
|
759
|
+
| `TOOL_SURFACE_CHECK_NAMES` / `ToolSurfaceCheckName` / `ToolSurfaceCheckNameSchema` / `ToolSurfaceFinding` / `ToolSurfaceFindingSchema` / `ToolSurfaceGetReadsRegistry` / `ToolSurfaceGetReadsRegistrySchema` / `ToolSurfaceRatchetBaseline` / `ToolSurfaceRatchetBaselineSchema` | const / schemas / _types_ | closed check vocabulary, structured finding, GET-reads registry, and ratchet baseline schemas for `checkToolSurface` |
|
|
760
|
+
| `ToolSurfaceCheckConfig` / `ToolSurfaceCheckOutcome` / `ToolSurfaceCheckReport` / `ToolSurfaceGetReadsConfig` / `ToolSurfaceCliCallableConfig` / `ToolSurfaceCliConfig` / `ToolSurfaceProjectionOptions` / `ToolSurfaceMcpSurface` / `ToolSurfaceDeadReferencesConfig` / `ToolSurfaceParityConfig` / `ToolSurfaceParityCase` / `ToolSurfaceParityTransport` / `ToolSurfaceHttpParityTarget` / `ToolSurfaceMcpParityTarget` / `ToolSurfaceAgentParityTarget` / `ToolSurfaceCliParityTarget` / `ToolSurfaceRatchetConfig` / `ToolSurfaceRatchetSnapshot` | _types_ | configuration, report, transport parity targets, and ratchet snapshot types for `checkToolSurface` |
|
|
721
761
|
|
|
722
762
|
---
|
package/llms/tools-toolkit.txt
CHANGED
|
@@ -18,5 +18,5 @@ Server-only. One context-typed tool set for MCP servers, peer-free `mountAgentTo
|
|
|
18
18
|
|
|
19
19
|
| Export | Kind | Summary |
|
|
20
20
|
|--------|------|---------|
|
|
21
|
-
| `createToolkit` | function | context-typed tool mounts (`mountMcp`, `mountAgentTools`, `buildMcpServer`, `createMcpHandler`, `createStdioMcpServer`, `createCli`) — [guide](../guide/cli.md#typed-context) |
|
|
22
|
-
| `Toolkit` |
|
|
21
|
+
| `createToolkit` | function | context-typed tool mounts (`mountMcp`, `mountAgentTools`, `buildMcpServer`, `createMcpHandler`, `createStdioMcpServer`, `createCli`) with optional shared `ToolkitConfig` defaults (`errors`) — [guide](../guide/cli.md#typed-context) |
|
|
22
|
+
| `Toolkit` / `ToolkitConfig` | _types_ | the context-pinned tool surface from `createToolkit` and its optional default `{ errors? }` config |
|
package/llms/tools.2.txt
CHANGED
|
@@ -200,28 +200,37 @@ that ([CLI → commands discovered from a running server](./cli.md#commands-disc
|
|
|
200
200
|
### Saying which tools only read — `readOnlyHint`
|
|
201
201
|
|
|
202
202
|
A host reads a tool's `annotations` to group tools and to choose permission
|
|
203
|
-
defaults,
|
|
204
|
-
refused view may withhold ([CLI → views](./cli.md#aggregate-views))
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
|
211
|
-
|
|
212
|
-
| `effect: '
|
|
213
|
-
| `
|
|
214
|
-
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
203
|
+
defaults, a CLI mounted over this surface reads them to decide what a
|
|
204
|
+
refused view may withhold ([CLI → views](./cli.md#aggregate-views)), and the
|
|
205
|
+
typed HTTP client reads the same `isReadOnlyOperation` rule to decide automatic
|
|
206
|
+
network-failure replay ([Client → calls that never got an answer](./client.md#calls-that-never-got-an-answer)).
|
|
207
|
+
The server publishes the annotations the tool declared, and states
|
|
208
|
+
`readOnlyHint: true` for a read that declared none:
|
|
209
|
+
|
|
210
|
+
| The tool | `isReadOnlyOperation` | Published `readOnlyHint` |
|
|
211
|
+
|---|---|---|
|
|
212
|
+
| `effect: 'write'` (even on `GET` / `HEAD`) | `false` | none (unless `readOnlyHint: false` declared) |
|
|
213
|
+
| `destructiveHint: true` | `false` | none (unless `readOnlyHint: false` declared) |
|
|
214
|
+
| explicit `readOnlyHint: false` (without `effect: 'read'`) | `false` | `false` |
|
|
215
|
+
| explicit `readOnlyHint: true` (without `effect: 'write'` or `destructiveHint: true`) | `true` | `true` |
|
|
216
|
+
| `effect: 'read'` (even on `POST`) | `true` | `true` |
|
|
217
|
+
| `GET` / `HEAD` with no `effect`, no `readOnlyHint`, and `destructiveHint !== true` | `true` | `true` |
|
|
218
|
+
| any other method with no `effect` and no `readOnlyHint` | `false` | none |
|
|
219
|
+
|
|
220
|
+
Direct contradictions — `effect: 'read'` with `readOnlyHint: false` or
|
|
221
|
+
`destructiveHint: true`, and `effect: 'write'` with `readOnlyHint: true` — are
|
|
222
|
+
refused at declaration time (`defineContract`, `defineRuntimeTool`, and runtime
|
|
223
|
+
mount). A runtime tool follows the same rule by its `identity.effect` and
|
|
224
|
+
`identity.method`. A raw SDK registration (`mountWait`, `mountViewFile` and the
|
|
225
|
+
like) publishes only what it passes. The catalog digest hashes the published
|
|
226
|
+
annotations, so it moves once when a server starts publishing the derived hint.
|
|
220
227
|
|
|
221
228
|
> **A `GET` with a write effect must say so.** Hosts may run a tool that publishes
|
|
222
|
-
> `readOnlyHint: true` without asking
|
|
223
|
-
>
|
|
224
|
-
>
|
|
229
|
+
> `readOnlyHint: true` without asking, and HTTP clients replay unflagged `GET`
|
|
230
|
+
> calls after network failures. Declare `effect: 'write'` (the canonical way) so
|
|
231
|
+
> both MCP and client replay treat the endpoint as a write; declaring
|
|
232
|
+
> `tool: { annotations: { readOnlyHint: false } }` without `effect` also opts out
|
|
233
|
+
> of both `readOnlyHint` and client replay.
|
|
225
234
|
|
|
226
235
|
A client connection (`defineMcpClientConnection`) carries the hints a server
|
|
227
236
|
published onto the tools it mounts, field by field: a hint of the wrong type is
|
|
@@ -1,14 +1,112 @@
|
|
|
1
|
-
# Upgrading 0.128.0 → 0.
|
|
1
|
+
# Upgrading 0.128.0 → 0.131.0 — stitchkit docs slice
|
|
2
2
|
|
|
3
3
|
> Generated from the `docs/` tree by `bun run gen:llms`. The index of all slices is
|
|
4
4
|
> `llms.txt` in this package.
|
|
5
5
|
|
|
6
|
-
Contains: Guide: Upgrading, 0.128.0 → 0.
|
|
6
|
+
Contains: Guide: Upgrading, 0.128.0 → 0.131.0 (docs/guide/upgrading.md)
|
|
7
7
|
|
|
8
8
|
==============================================================================
|
|
9
|
-
# Guide: Upgrading, 0.128.0 → 0.
|
|
9
|
+
# Guide: Upgrading, 0.128.0 → 0.131.0 (docs/guide/upgrading.md)
|
|
10
10
|
==============================================================================
|
|
11
11
|
|
|
12
|
+
## Released migration: 0.131.0
|
|
13
|
+
|
|
14
|
+
### codex-typed-control-dtos
|
|
15
|
+
|
|
16
|
+
**Who must act:** every caller of `stitchkit/agent-executor/codex` that treats `CodexControlClient` / `CodexSession` / `CodexControlConnection` / `CodexSharedServer` RPC replies as raw `JsonRpcValue`, reads `CodexThreadContext.sandbox` as a plain string or `approvalPolicy` as raw `JsonRpcValue`, or passes an untyped `JsonRpcValue` to `CodexTurnInput.sandboxPolicy`.
|
|
17
|
+
|
|
18
|
+
`CodexControlClient` methods (all 19 inspection/thread/turn RPCs, including `listTurns` → `CodexTurnsPage`, and empty-object mutators `injectItems`, `archiveThread`, `setThreadName` → `Promise<void>`) now validate and return typed loose Zod DTOs, throwing `CodexProtocolError` on malformed replies. `CodexThreadContext.sandbox` and `CodexTurnInput.sandboxPolicy` now use `CodexSandboxPolicy` (`{ type: 'workspaceWrite' | 'readOnly' | 'dangerFullAccess' | 'externalSandbox' | string }`), `CodexThreadContext.approvalPolicy` uses `CodexApprovalPolicy`, and `thread` uses `CodexThread`:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// before
|
|
22
|
+
const raw = (await session.readThread({ threadId })) as { thread?: { id?: string } }
|
|
23
|
+
const mode = session.threadContext.sandbox // string
|
|
24
|
+
const archived: JsonRpcValue = await session.archiveThread({ threadId })
|
|
25
|
+
|
|
26
|
+
// after
|
|
27
|
+
const { thread } = await session.readThread({ threadId })
|
|
28
|
+
const policyType = session.threadContext.sandbox?.type
|
|
29
|
+
await session.archiveThread({ threadId }) // Promise<void>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### claude-sdk-03332-and-typed-permission-controls
|
|
33
|
+
|
|
34
|
+
**Who must act:** every caller of `stitchkit/agent-executor/claude-sdk` that assigns `ClaudeSdkSession.setPermissionMode` to `() => Promise<void>`, mutates `ClaudeSdkPermissionRequestMeta.input` in place or builds it from non-JSON `unknown` values, or pins `@anthropic-ai/claude-agent-sdk` below `0.3.332`.
|
|
35
|
+
|
|
36
|
+
Upgrade `@anthropic-ai/claude-agent-sdk` to `^0.3.332`, read the optional effective mode returned by `setPermissionMode`, and treat `ClaudeSdkPermissionRequestMeta.input` as `Readonly<Record<string, JsonRpcValue>>`:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
// before
|
|
40
|
+
meta.input.command = 'rewritten' // mutable Record<string, unknown>
|
|
41
|
+
const done: void = await session.setPermissionMode('acceptEdits')
|
|
42
|
+
|
|
43
|
+
// after
|
|
44
|
+
const updatedInput = { ...meta.input, command: 'rewritten' } // Readonly<Record<string, JsonRpcValue>>
|
|
45
|
+
const applied = await session.setPermissionMode('acceptEdits')
|
|
46
|
+
const effectiveMode = applied?.mode ?? 'acceptEdits'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### plan-limits-due-clean-answers
|
|
50
|
+
|
|
51
|
+
**Who must act:** every caller of `planLimitsDue` from `stitchkit/agent-executor` that relied on clean `no-plan-limit` or `unpublished` answers returning `true` once `maxAgeMs` elapsed.
|
|
52
|
+
|
|
53
|
+
`planLimitsDue` now returns `false` when `limits.answer !== 'known'` and `limits.error === undefined`. Re-poll explicitly when credentials change or an active session opens, or keep relying on `planLimitsDue` for `known` and errored reads:
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
// before
|
|
57
|
+
// planLimitsDue returned true for no-plan-limit / unpublished once maxAgeMs passed
|
|
58
|
+
|
|
59
|
+
// after
|
|
60
|
+
const shouldPoll =
|
|
61
|
+
limits === undefined ||
|
|
62
|
+
planLimitsDue({ limits, now, maxAgeMs })
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Released migration: 0.130.0
|
|
66
|
+
|
|
67
|
+
### executor-status-delta
|
|
68
|
+
|
|
69
|
+
**Who must act:** every caller of `stitchkit/agent-executor` that switches exhaustively on `ExecutorDelta['type']`, and every operator who runs an executor and its server on different releases across `0.130.0`.
|
|
70
|
+
|
|
71
|
+
`ExecutorDeltaSchema` / `ExecutorDelta` now includes `ExecutorStatusDeltaSchema` (`{ type: 'status', phase, ... }`) for structured startup lifecycle deltas. `phase` is an open label of 1–64 trimmed characters: the drivers emit `spawning`, `initializing` and `verifying`, and a reader treats any other label as a phase it does not know rather than refusing it. `projectExecutorDeltas` ignores `status` deltas automatically; add a `case 'status':` branch to any custom exhaustive `switch (delta.type)`:
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
// before
|
|
75
|
+
switch (delta.type) {
|
|
76
|
+
case 'text':
|
|
77
|
+
// ...
|
|
78
|
+
case 'window':
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// after
|
|
83
|
+
switch (delta.type) {
|
|
84
|
+
case 'text':
|
|
85
|
+
// ...
|
|
86
|
+
case 'status':
|
|
87
|
+
case 'window':
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**The wire changed in both directions, not only by the `status` delta.** Every object of the
|
|
93
|
+
executor ↔ server contract is strict, so a reader on `0.129.x` refuses a whole message that carries
|
|
94
|
+
a key `0.130.0` added:
|
|
95
|
+
|
|
96
|
+
| Travels | Message | A `0.129.x` reader refuses |
|
|
97
|
+
|---------|---------|----------------------------|
|
|
98
|
+
| executor → server | `hello` | `engines[].capabilities` — written by every driver, so the handshake itself fails |
|
|
99
|
+
| executor → server | `report` | a `status` delta; `threadDisposition` on `turn-end` and on `failure`; `cacheCreationInputTokens`, `thinkingTokens`, `totalTokens`, `total` and `modelUsage` on a `usage` delta |
|
|
100
|
+
| server → executor | `reply` | `scope` and `updatedInput` on `approve`; `interrupt` on `deny` |
|
|
101
|
+
|
|
102
|
+
Upgrade the server before any executor: an older executor writes none of these keys and keeps
|
|
103
|
+
working. Until every executor is upgraded, the server sends `scope: 'session'`, `updatedInput` and
|
|
104
|
+
`interrupt` only to an executor whose `hello` declared `sessionApproval`, `updatedToolInput` and
|
|
105
|
+
`interruptOnDeny` for the engine — an engine announced without `capabilities` is on `0.129.x`.
|
|
106
|
+
`0.131.0` added `plan` and `windows[].scope` to `planLimits` in `hello` the same way. The rule
|
|
107
|
+
and the table of every release are in the
|
|
108
|
+
[API reference](../api/reference.md#version-skew-between-an-executor-and-its-server) (ADR 0334).
|
|
109
|
+
|
|
12
110
|
## Released migration: 0.129.0
|
|
13
111
|
|
|
14
112
|
### codex-plan-window-keys
|