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
|
@@ -1,14 +1,73 @@
|
|
|
1
|
-
# Upgrading 0.
|
|
1
|
+
# Upgrading 0.132.0 → 0.137.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.
|
|
6
|
+
Contains: Guide: Upgrading, 0.132.0 → 0.137.0 (docs/guide/upgrading.md)
|
|
7
7
|
|
|
8
8
|
==============================================================================
|
|
9
|
-
# Guide: Upgrading, 0.
|
|
9
|
+
# Guide: Upgrading, 0.132.0 → 0.137.0 (docs/guide/upgrading.md)
|
|
10
10
|
==============================================================================
|
|
11
11
|
|
|
12
|
+
## Released migration: 0.137.0
|
|
13
|
+
|
|
14
|
+
### contradictory-read-annotations
|
|
15
|
+
|
|
16
|
+
**Who must act:** applications declaring contract endpoints (`defineContract`) or runtime tools (`defineRuntimeTool`) that combine `effect` with a contradicting `tool.annotations.readOnlyHint` or `tool.annotations.destructiveHint`.
|
|
17
|
+
|
|
18
|
+
One canonical `isReadOnlyOperation` rule now drives HTTP client network-failure replay, MCP `readOnlyHint` publication, CLI refused-view withholding, and tool surface gates (ADR 0345). Direct contradictions (`effect: 'read'` with `readOnlyHint: false` or `destructiveHint: true`, and `effect: 'write'` with `readOnlyHint: true`) are now refused at declaration time instead of disagreeing across transports:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
// Before — diverged between HTTP client replay and MCP annotations
|
|
22
|
+
run: {
|
|
23
|
+
method: 'GET', path: '/run', desc: 'Mutating operation',
|
|
24
|
+
effect: 'write',
|
|
25
|
+
tool: { annotations: { readOnlyHint: true } },
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// After — declare the true effect without contradicting annotations
|
|
29
|
+
run: {
|
|
30
|
+
method: 'GET', path: '/run', desc: 'Mutating operation',
|
|
31
|
+
effect: 'write',
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
A `GET` endpoint declaring `tool: { annotations: { readOnlyHint: false } }` without `effect` stays valid and now disables HTTP client replay as well as MCP `readOnlyHint`. Conversely, a non-`GET`/`HEAD` endpoint (such as a `POST` search) declaring `effect: 'read'` or `tool: { annotations: { readOnlyHint: true } }` (without `destructiveHint: true`) now auto-replays on transport failure unless the endpoint sets `idempotent: false`.
|
|
36
|
+
|
|
37
|
+
### error-code-mapping-type
|
|
38
|
+
|
|
39
|
+
**Who must act:** applications importing the TypeScript type `ErrorHookMapping` directly from `stitchkit/server` or `stitchkit/handler`.
|
|
40
|
+
|
|
41
|
+
`ErrorHookMapping` is now the transport-neutral `ErrorCodeMapping` exported from `stitchkit/contract` (and re-exported from `stitchkit`, `stitchkit/server`, and `stitchkit/handler`) so the same mapping type can be passed to `createErrorHook`, MCP mounts, agent tool mounts, `createToolInvoker`, `createCli`, `createCliInvoker`, and `createToolkit`:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
// Before
|
|
45
|
+
import type { ErrorHookMapping } from 'stitchkit/server'
|
|
46
|
+
|
|
47
|
+
// After
|
|
48
|
+
import type { ErrorCodeMapping } from 'stitchkit/contract'
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Runtime calls to `createErrorHook({ vocabulary, render })` and `createErrorHook({ codeMap, unmappedCode, render })` keep their existing shape and also accept optional `redact` to mask internal wire messages and strip details/hints on HTTP and tool transports alike.
|
|
52
|
+
|
|
53
|
+
### local-control-error-codes
|
|
54
|
+
|
|
55
|
+
**Who must act:** applications maintaining an exhaustive `Record<StitchErrorCode, …>` map (`satisfies Record<StitchErrorCode, …>` or `defineErrors(..., { exhaustive: true })`).
|
|
56
|
+
|
|
57
|
+
Eight framework error codes were added to `STITCH_ERROR_STATUS` / `StitchErrorCode` for local control-socket limits and native-consent key issuance (ADR 0346): `HEADERS_TOO_LARGE` (431), `REQUEST_TOO_LARGE` (413), `CONTROL_API_BUSY` (503), `ROLE_NOT_ALLOWED` (403), `KEYS_MANAGE_REQUIRED` (403), `INIT_DENIED` (403), `INIT_TIMEOUT` (408), and `CONSENT_PENDING` (409). Add them to exhaustive maps, or use a partial `ErrorCodeMapping` with `unmappedCode`:
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
// Add the 8 new framework codes to exhaustive Record<StitchErrorCode, ...> maps:
|
|
61
|
+
HEADERS_TOO_LARGE: 'bad_request',
|
|
62
|
+
REQUEST_TOO_LARGE: 'bad_request',
|
|
63
|
+
CONTROL_API_BUSY: 'unavailable',
|
|
64
|
+
ROLE_NOT_ALLOWED: 'forbidden',
|
|
65
|
+
KEYS_MANAGE_REQUIRED: 'forbidden',
|
|
66
|
+
INIT_DENIED: 'forbidden',
|
|
67
|
+
INIT_TIMEOUT: 'timeout',
|
|
68
|
+
CONSENT_PENDING: 'conflict',
|
|
69
|
+
```
|
|
70
|
+
|
|
12
71
|
## Released migration: 0.136.0
|
|
13
72
|
|
|
14
73
|
### trusted-proxy-chain
|
|
@@ -784,101 +843,3 @@ If an old store persisted zero for both states and has no completion marker, per
|
|
|
784
843
|
snapshot for those ambiguous rows. Preserve pending operations and active snapshot resume tokens.
|
|
785
844
|
Adapters that added one to wire versions can now pass them directly. If the offset was applied
|
|
786
845
|
only at the port boundary, remove the translation there and keep the stored server versions.
|
|
787
|
-
|
|
788
|
-
## Released migration: 0.131.0
|
|
789
|
-
|
|
790
|
-
### codex-typed-control-dtos
|
|
791
|
-
|
|
792
|
-
**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`.
|
|
793
|
-
|
|
794
|
-
`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`:
|
|
795
|
-
|
|
796
|
-
```ts
|
|
797
|
-
// before
|
|
798
|
-
const raw = (await session.readThread({ threadId })) as { thread?: { id?: string } }
|
|
799
|
-
const mode = session.threadContext.sandbox // string
|
|
800
|
-
const archived: JsonRpcValue = await session.archiveThread({ threadId })
|
|
801
|
-
|
|
802
|
-
// after
|
|
803
|
-
const { thread } = await session.readThread({ threadId })
|
|
804
|
-
const policyType = session.threadContext.sandbox?.type
|
|
805
|
-
await session.archiveThread({ threadId }) // Promise<void>
|
|
806
|
-
```
|
|
807
|
-
|
|
808
|
-
### claude-sdk-03332-and-typed-permission-controls
|
|
809
|
-
|
|
810
|
-
**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`.
|
|
811
|
-
|
|
812
|
-
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>>`:
|
|
813
|
-
|
|
814
|
-
```ts
|
|
815
|
-
// before
|
|
816
|
-
meta.input.command = 'rewritten' // mutable Record<string, unknown>
|
|
817
|
-
const done: void = await session.setPermissionMode('acceptEdits')
|
|
818
|
-
|
|
819
|
-
// after
|
|
820
|
-
const updatedInput = { ...meta.input, command: 'rewritten' } // Readonly<Record<string, JsonRpcValue>>
|
|
821
|
-
const applied = await session.setPermissionMode('acceptEdits')
|
|
822
|
-
const effectiveMode = applied?.mode ?? 'acceptEdits'
|
|
823
|
-
```
|
|
824
|
-
|
|
825
|
-
### plan-limits-due-clean-answers
|
|
826
|
-
|
|
827
|
-
**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.
|
|
828
|
-
|
|
829
|
-
`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:
|
|
830
|
-
|
|
831
|
-
```ts
|
|
832
|
-
// before
|
|
833
|
-
// planLimitsDue returned true for no-plan-limit / unpublished once maxAgeMs passed
|
|
834
|
-
|
|
835
|
-
// after
|
|
836
|
-
const shouldPoll =
|
|
837
|
-
limits === undefined ||
|
|
838
|
-
planLimitsDue({ limits, now, maxAgeMs })
|
|
839
|
-
```
|
|
840
|
-
|
|
841
|
-
## Released migration: 0.130.0
|
|
842
|
-
|
|
843
|
-
### executor-status-delta
|
|
844
|
-
|
|
845
|
-
**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`.
|
|
846
|
-
|
|
847
|
-
`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)`:
|
|
848
|
-
|
|
849
|
-
```ts
|
|
850
|
-
// before
|
|
851
|
-
switch (delta.type) {
|
|
852
|
-
case 'text':
|
|
853
|
-
// ...
|
|
854
|
-
case 'window':
|
|
855
|
-
break;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
// after
|
|
859
|
-
switch (delta.type) {
|
|
860
|
-
case 'text':
|
|
861
|
-
// ...
|
|
862
|
-
case 'status':
|
|
863
|
-
case 'window':
|
|
864
|
-
break;
|
|
865
|
-
}
|
|
866
|
-
```
|
|
867
|
-
|
|
868
|
-
**The wire changed in both directions, not only by the `status` delta.** Every object of the
|
|
869
|
-
executor ↔ server contract is strict, so a reader on `0.129.x` refuses a whole message that carries
|
|
870
|
-
a key `0.130.0` added:
|
|
871
|
-
|
|
872
|
-
| Travels | Message | A `0.129.x` reader refuses |
|
|
873
|
-
|---------|---------|----------------------------|
|
|
874
|
-
| executor → server | `hello` | `engines[].capabilities` — written by every driver, so the handshake itself fails |
|
|
875
|
-
| executor → server | `report` | a `status` delta; `threadDisposition` on `turn-end` and on `failure`; `cacheCreationInputTokens`, `thinkingTokens`, `totalTokens`, `total` and `modelUsage` on a `usage` delta |
|
|
876
|
-
| server → executor | `reply` | `scope` and `updatedInput` on `approve`; `interrupt` on `deny` |
|
|
877
|
-
|
|
878
|
-
Upgrade the server before any executor: an older executor writes none of these keys and keeps
|
|
879
|
-
working. Until every executor is upgraded, the server sends `scope: 'session'`, `updatedInput` and
|
|
880
|
-
`interrupt` only to an executor whose `hello` declared `sessionApproval`, `updatedToolInput` and
|
|
881
|
-
`interruptOnDeny` for the engine — an engine announced without `capabilities` is on `0.129.x`.
|
|
882
|
-
`0.131.0` added `plan` and `windows[].scope` to `planLimits` in `hello` the same way. The rule
|
|
883
|
-
and the table of every release are in the
|
|
884
|
-
[API reference](../api/reference.md#version-skew-between-an-executor-and-its-server) (ADR 0334).
|
package/llms/upgrading.txt
CHANGED
|
@@ -11,8 +11,8 @@ Contains: Guide: Upgrading, general (docs/guide/upgrading.md)
|
|
|
11
11
|
|
|
12
12
|
Load this slice, then every range slice between your installed version and the target:
|
|
13
13
|
|
|
14
|
-
- 0.
|
|
15
|
-
- 0.128.0 → 0.
|
|
14
|
+
- 0.132.0 → 0.137.0: `llms/upgrading-0.132.0-0.137.0.txt`
|
|
15
|
+
- 0.128.0 → 0.131.0: `llms/upgrading-0.128.0-0.131.0.txt`
|
|
16
16
|
- 0.127.0 → 0.127.0: `llms/upgrading-0.127.0.txt`
|
|
17
17
|
- 0.106.0 → 0.126.0: `llms/upgrading-0.106.0-0.126.0.txt`
|
|
18
18
|
- 0.96.0 → 0.105.0: `llms/upgrading-0.96.0-0.105.0.txt`
|