stitchkit 0.135.1 → 0.136.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 +109 -0
- package/README.md +25 -11
- package/dist/agent-executor/acp/v1-session-build.d.ts +51 -0
- package/dist/agent-executor/acp/v1-session-build.d.ts.map +1 -0
- package/dist/agent-executor/acp/v1-session.d.ts +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/claude/classify.d.ts +1 -1
- package/dist/agent-executor/claude/classify.d.ts.map +1 -1
- package/dist/agent-executor/claude/events-wire.d.ts +13 -0
- package/dist/agent-executor/claude/events-wire.d.ts.map +1 -0
- package/dist/agent-executor/claude/events.d.ts +1 -11
- package/dist/agent-executor/claude/events.d.ts.map +1 -1
- package/dist/agent-executor/codex/protocol.d.ts +0 -143
- package/dist/agent-executor/codex/protocol.d.ts.map +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts +1 -1
- package/dist/agent-executor/codex/request-answers.d.ts.map +1 -1
- package/dist/agent-executor/codex/server-requests.d.ts +150 -0
- package/dist/agent-executor/codex/server-requests.d.ts.map +1 -0
- package/dist/agent-executor/image-input.d.ts +10 -3
- package/dist/agent-executor/image-input.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-scenarios.d.ts.map +1 -1
- package/dist/agent-executor/testing/replay-transcript.d.ts.map +1 -1
- package/dist/agent-runtime/browser/browser-control-contract.d.ts +4 -0
- package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -1
- package/dist/agent-runtime/browser/control-schema.d.ts +4 -0
- package/dist/agent-runtime/browser/control-schema.d.ts.map +1 -1
- package/dist/agent-runtime/browser/control-view.d.ts.map +1 -1
- package/dist/agent-runtime/event-schema.d.ts +16 -3
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/loop/deferred-tools.d.ts.map +1 -1
- package/dist/agent-runtime/loop/invocation-payload.d.ts.map +1 -1
- package/dist/agent-runtime/loop/invocation-stream.d.ts +9 -1
- package/dist/agent-runtime/loop/invocation-stream.d.ts.map +1 -1
- package/dist/agent-runtime/loop/provider-stream-parts.d.ts +6 -0
- package/dist/agent-runtime/loop/provider-stream-parts.d.ts.map +1 -1
- package/dist/agent-runtime/loop/provider-stream-segments.d.ts +1 -1
- package/dist/agent-runtime/loop/provider-stream-segments.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-acquisition.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-approval-signature.d.ts +34 -0
- package/dist/agent-runtime/loop/run-approval-signature.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-approval.d.ts +0 -28
- package/dist/agent-runtime/loop/run-approval.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-complete-port.d.ts +24 -0
- package/dist/agent-runtime/loop/run-complete-port.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-complete-stream.d.ts +7 -2
- package/dist/agent-runtime/loop/run-complete-stream.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-complete-types.d.ts +14 -1
- package/dist/agent-runtime/loop/run-complete-types.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-complete.d.ts +2 -2
- package/dist/agent-runtime/loop/run-complete.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-execution-state.d.ts +8 -0
- package/dist/agent-runtime/loop/run-execution-state.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-model-call.d.ts +44 -0
- package/dist/agent-runtime/loop/run-model-call.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-model-step.d.ts +25 -28
- package/dist/agent-runtime/loop/run-model-step.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-model-steps.d.ts +6 -0
- package/dist/agent-runtime/loop/run-model-steps.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-model-stream.d.ts +3 -1
- package/dist/agent-runtime/loop/run-model-stream.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts +0 -2
- package/dist/agent-runtime/loop/run-operation-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-step-loop.d.ts +19 -0
- package/dist/agent-runtime/loop/run-step-loop.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-step-port.d.ts +175 -0
- package/dist/agent-runtime/loop/run-step-port.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-stream-parts.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-stream-step-text.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts +2 -1
- package/dist/agent-runtime/loop/run-tool-approval-flow.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-tool-call-input.d.ts +39 -0
- package/dist/agent-runtime/loop/run-tool-call-input.d.ts.map +1 -0
- package/dist/agent-runtime/loop/run-tool-call.d.ts +2 -31
- package/dist/agent-runtime/loop/run-tool-call.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-tool-errors.d.ts +5 -0
- package/dist/agent-runtime/loop/run-tool-errors.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-tool-executor.d.ts +1 -1
- package/dist/agent-runtime/loop/run-tool-executor.d.ts.map +1 -1
- package/dist/agent-runtime/loop/run-tool-slots.d.ts +2 -1
- package/dist/agent-runtime/loop/run-tool-slots.d.ts.map +1 -1
- package/dist/agent-runtime/loop/runtime-state.d.ts.map +1 -1
- package/dist/agent-runtime/loop/runtime.d.ts +0 -5
- package/dist/agent-runtime/loop/runtime.d.ts.map +1 -1
- package/dist/agent-runtime/providers/ai-sdk-convert.d.ts +1 -5
- package/dist/agent-runtime/providers/ai-sdk-convert.d.ts.map +1 -1
- package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts +11 -0
- package/dist/agent-runtime/providers/ai-sdk-normalize.d.ts.map +1 -0
- package/dist/agent-runtime/providers/ai-sdk-tools.d.ts +11 -0
- package/dist/agent-runtime/providers/ai-sdk-tools.d.ts.map +1 -0
- package/dist/agent-runtime/providers/ai-sdk.d.ts +1 -9
- package/dist/agent-runtime/providers/ai-sdk.d.ts.map +1 -1
- package/dist/agent-runtime/providers/anthropic-sse.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-admission.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-audio.d.ts +123 -81
- package/dist/agent-runtime/providers/openrouter-audio.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-catalog-cache.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-catalog-query.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-catalog.d.ts +2 -2
- package/dist/agent-runtime/providers/openrouter-catalog.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-client.d.ts +37 -0
- package/dist/agent-runtime/providers/openrouter-client.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-http.d.ts +26 -6
- package/dist/agent-runtime/providers/openrouter-http.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-media.d.ts +91 -77
- package/dist/agent-runtime/providers/openrouter-media.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-models.d.ts +2 -23
- package/dist/agent-runtime/providers/openrouter-models.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-options.d.ts +2 -0
- package/dist/agent-runtime/providers/openrouter-options.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-request.d.ts +23 -0
- package/dist/agent-runtime/providers/openrouter-request.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-retrieval.d.ts +86 -55
- package/dist/agent-runtime/providers/openrouter-retrieval.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-speech.d.ts +90 -0
- package/dist/agent-runtime/providers/openrouter-speech.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter-spend.d.ts +2 -2
- package/dist/agent-runtime/providers/openrouter-spend.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-stream.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-systemone.d.ts +87 -32
- package/dist/agent-runtime/providers/openrouter-systemone.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-url.d.ts +7 -1
- package/dist/agent-runtime/providers/openrouter-url.d.ts.map +1 -1
- package/dist/agent-runtime/providers/openrouter-wire.d.ts +45 -0
- package/dist/agent-runtime/providers/openrouter-wire.d.ts.map +1 -0
- package/dist/agent-runtime/providers/openrouter.d.ts +1 -3
- package/dist/agent-runtime/providers/openrouter.d.ts.map +1 -1
- package/dist/agent-runtime/providers/provider-http.d.ts +14 -2
- package/dist/agent-runtime/providers/provider-http.d.ts.map +1 -1
- package/dist/agent-runtime/providers/provider-json-schema-strip.d.ts.map +1 -1
- package/dist/agent-runtime/providers/provider-json-schema.d.ts.map +1 -1
- package/dist/agent-runtime/providers/provider-openai-chat-sse.d.ts.map +1 -1
- package/dist/agent-runtime/providers/provider-openai-chat-state.d.ts +42 -0
- package/dist/agent-runtime/providers/provider-openai-chat-state.d.ts.map +1 -0
- package/dist/agent-runtime/providers/provider-usage.d.ts +9 -0
- package/dist/agent-runtime/providers/provider-usage.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox/sandbox-bubblewrap-args.d.ts +9 -0
- package/dist/agent-runtime/sandbox/sandbox-bubblewrap-args.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox/sandbox-bubblewrap.d.ts +6 -0
- package/dist/agent-runtime/sandbox/sandbox-bubblewrap.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox/sandbox-contract.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox/sandbox-process-linux.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox/sandbox-process-spec.d.ts +5 -1
- package/dist/agent-runtime/sandbox/sandbox-process-spec.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox/sandbox-process-wrapper.d.ts.map +1 -1
- package/dist/agent-runtime/stores/branch-messages.d.ts.map +1 -1
- package/dist/agent-runtime/stores/branch-observations.d.ts +42 -42
- package/dist/agent-runtime/stores/sql-rows.d.ts +10 -10
- package/dist/agent-runtime/terminal-commit.d.ts +10 -10
- package/dist/agent-runtime/testing/fault-bench.d.ts +5 -1
- package/dist/agent-runtime/testing/fault-bench.d.ts.map +1 -1
- package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts +20 -20
- package/dist/agent-runtime/testing/store-conformance-support.d.ts +10 -10
- package/dist/application/diagnostic-journal-contract.d.ts.map +1 -1
- package/dist/browser/client-executors.d.ts.map +1 -1
- package/dist/browser/client-url.d.ts.map +1 -1
- package/dist/contract/define.d.ts +3 -7
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/contract/normalize.d.ts +17 -5
- package/dist/contract/normalize.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +4 -2
- package/dist/entrypoints/agent-executor/claude-sdk.js +20 -20
- package/dist/entrypoints/agent-executor/claude.js +7 -7
- package/dist/entrypoints/agent-executor/codex.d.ts +2 -1
- package/dist/entrypoints/agent-executor/codex.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/codex.js +129 -35
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +2 -2
- package/dist/entrypoints/agent-executor/testing.js +17 -13
- package/dist/entrypoints/agent-executor.js +1 -1
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +2 -1
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/ai-sdk.js +10 -12
- package/dist/entrypoints/agent-runtime/anthropic.js +13 -10
- package/dist/entrypoints/agent-runtime/browser.js +8 -4
- package/dist/entrypoints/agent-runtime/harness.js +18 -19
- package/dist/entrypoints/agent-runtime/openai.js +5 -5
- package/dist/entrypoints/agent-runtime/openrouter.d.ts +7 -5
- package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/openrouter.js +1095 -854
- package/dist/entrypoints/agent-runtime/postgres.js +2 -2
- package/dist/entrypoints/agent-runtime/realtime.js +5 -5
- package/dist/entrypoints/agent-runtime/sandbox.js +167 -139
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/node.js +3 -3
- package/dist/entrypoints/agent-runtime/testing.js +3 -3
- package/dist/entrypoints/agent-runtime.js +246 -360
- package/dist/entrypoints/application.js +2 -2
- package/dist/entrypoints/cli.js +36 -15
- package/dist/entrypoints/contract.js +12 -10
- package/dist/entrypoints/geo.js +1 -1
- package/dist/entrypoints/handler.js +5 -6
- package/dist/entrypoints/http.d.ts +2 -0
- package/dist/entrypoints/http.d.ts.map +1 -1
- package/dist/entrypoints/http.js +16 -4
- package/dist/entrypoints/index.js +26 -35
- package/dist/entrypoints/live.js +3 -3
- package/dist/entrypoints/node.js +7 -7
- package/dist/entrypoints/observability.js +9 -7
- package/dist/entrypoints/process.js +3 -3
- package/dist/entrypoints/remote.js +5 -5
- package/dist/entrypoints/server.js +29 -16
- package/dist/entrypoints/telegram/grammy.d.ts +1 -1
- package/dist/entrypoints/telegram/grammy.d.ts.map +1 -1
- package/dist/entrypoints/telegram/grammy.js +39 -5
- package/dist/entrypoints/telegram/screens.js +3 -0
- package/dist/entrypoints/telegram.d.ts +1 -1
- package/dist/entrypoints/telegram.d.ts.map +1 -1
- package/dist/entrypoints/telegram.js +19 -6
- package/dist/entrypoints/testing.js +10 -11
- package/dist/entrypoints/tools/agent.js +8 -9
- package/dist/entrypoints/tools/connections.js +27 -57
- package/dist/entrypoints/tools/contract.js +4 -4
- package/dist/entrypoints/tools/invoker.js +7 -8
- package/dist/entrypoints/tools/mcp.js +9 -10
- package/dist/entrypoints/tools/toolkit.js +11 -12
- package/dist/entrypoints/tools.js +20 -20
- package/dist/entrypoints/tracking/contract.js +1 -1
- package/dist/entrypoints/tracking/performance.js +1 -1
- package/dist/entrypoints/tracking.js +1 -1
- package/dist/{index-3czc3ykr.js → index-08a3qfr8.js} +1 -1
- package/dist/{index-grhhsrd5.js → index-1en7k3q5.js} +2 -1
- package/dist/{index-pdcbjd6a.js → index-1yky29qg.js} +6 -3
- package/dist/{index-b4c9dpzm.js → index-252den5a.js} +10 -11
- package/dist/{index-xtby8rj3.js → index-28kbdn63.js} +5 -47
- package/dist/{index-57sbckhv.js → index-36mtj8xm.js} +2 -2
- package/dist/{index-dm84tsd5.js → index-3kb8dw48.js} +1 -1
- package/dist/index-3tb82xr7.js +11 -0
- package/dist/{index-c24bj2r1.js → index-4243301z.js} +2 -2
- package/dist/{index-nr4fhfn4.js → index-4p2zx593.js} +2 -0
- package/dist/{index-q86qnzzf.js → index-54wp467c.js} +4 -4
- package/dist/{index-mcv7b2n0.js → index-63ctzjp4.js} +497 -495
- package/dist/{index-y0a4gt1s.js → index-65p8v81y.js} +3 -2
- package/dist/{index-z72vazf5.js → index-6y3eae97.js} +27 -83
- package/dist/{index-5awtbyns.js → index-9vj869rx.js} +1 -1
- package/dist/{index-5q0qpw3v.js → index-aqm7e864.js} +23 -8
- package/dist/{index-d4at0q09.js → index-b9mj31q7.js} +90 -88
- package/dist/{index-baba8ehy.js → index-bjrcbcn2.js} +2 -2
- package/dist/{index-fsw9wxk9.js → index-c9j8441q.js} +1 -103
- package/dist/{index-wdb5jhas.js → index-d1pdv8qc.js} +1 -1
- package/dist/{index-73wq9abg.js → index-df5xr2f9.js} +13 -59
- package/dist/{index-n9358ydy.js → index-dm50x3by.js} +1 -1
- package/dist/{index-zyyerdny.js → index-dmrx8xma.js} +3 -0
- package/dist/{index-78da4g74.js → index-dwq6a6sq.js} +17 -13
- package/dist/{index-9be3tf6r.js → index-e413q2cj.js} +49 -22
- package/dist/{index-g4gstmp1.js → index-ednf2cxs.js} +1 -1
- package/dist/{index-84tp547a.js → index-edpkm3k7.js} +29 -97
- package/dist/{index-gs0jw0hy.js → index-efbzm2se.js} +3 -3
- package/dist/{index-de7b0kvz.js → index-epwvp88y.js} +1 -1
- package/dist/{index-asnd4h2k.js → index-f0dzyskg.js} +27 -4
- package/dist/{index-xbb8ysmq.js → index-fatke81t.js} +2 -2
- package/dist/{index-6nzzj7qr.js → index-gq35s3bm.js} +1 -1
- package/dist/index-gvgtmt7a.js +102 -0
- package/dist/{index-m2b49tvc.js → index-h08xqfw9.js} +20 -21
- package/dist/{index-gk6dq9ay.js → index-ha1tv70k.js} +3 -26
- package/dist/{index-wsv11dhg.js → index-hberxns4.js} +1 -1
- package/dist/{index-rkphknhx.js → index-hpzhz1vm.js} +1 -1
- package/dist/{index-npfdymav.js → index-j5vzhj3d.js} +1 -1
- package/dist/{index-d3s070eh.js → index-jperyn0c.js} +1 -1
- package/dist/{index-yhwx4fwk.js → index-kzsetgh9.js} +1 -1
- package/dist/{index-x6sp5vpa.js → index-q4tr9vnf.js} +1 -1
- package/dist/{index-hce3hbdg.js → index-qj0sq69b.js} +6 -2
- package/dist/{index-v0j22shs.js → index-rg08syp1.js} +9 -6
- package/dist/{index-8vzh5wpv.js → index-rw1caff2.js} +14 -26
- package/dist/index-s8af9jqw.js +6 -0
- package/dist/{index-bgj9hbm3.js → index-sdppfbrh.js} +30 -16
- package/dist/{index-y0mwkgkf.js → index-shte29pg.js} +1086 -1055
- package/dist/{index-fec05c9k.js → index-ta0e2daw.js} +9 -7
- package/dist/{index-ht71v1ag.js → index-tb36xawm.js} +59 -44
- package/dist/{index-c0yym4a0.js → index-w7e402wx.js} +11 -105
- package/dist/{index-bvpevwt6.js → index-xnqab06h.js} +207 -202
- package/dist/index-xrbrvn15.js +147 -0
- package/dist/{index-ac3rfec5.js → index-y6wzzk2e.js} +21 -1
- package/dist/{index-3d2c45jn.js → index-yjx5jna7.js} +2 -2
- package/dist/internal/loopback-host.d.ts +8 -0
- package/dist/internal/loopback-host.d.ts.map +1 -0
- package/dist/internal/own-member.d.ts +7 -0
- package/dist/internal/own-member.d.ts.map +1 -0
- package/dist/internal/request.d.ts +17 -8
- package/dist/internal/request.d.ts.map +1 -1
- package/dist/internal/secret-shapes.d.ts +33 -4
- package/dist/internal/secret-shapes.d.ts.map +1 -1
- package/dist/json-schema/dialect.d.ts.map +1 -1
- package/dist/json-schema/keywords.d.ts +25 -6
- package/dist/json-schema/keywords.d.ts.map +1 -1
- package/dist/json-schema/string-format.d.ts.map +1 -1
- package/dist/live/events.d.ts.map +1 -1
- package/dist/live/watch-client.d.ts.map +1 -1
- package/dist/live/watch-delta.d.ts.map +1 -1
- package/dist/observability/context.d.ts +4 -3
- package/dist/observability/context.d.ts.map +1 -1
- package/dist/observability/sanitize.d.ts.map +1 -1
- package/dist/observability/secret-values.d.ts +0 -9
- package/dist/observability/secret-values.d.ts.map +1 -1
- package/dist/server/context.d.ts +3 -2
- package/dist/server/context.d.ts.map +1 -1
- package/dist/server/error-hook.d.ts +4 -3
- package/dist/server/error-hook.d.ts.map +1 -1
- package/dist/server/event-bus.d.ts.map +1 -1
- package/dist/server/file.d.ts +11 -3
- package/dist/server/file.d.ts.map +1 -1
- package/dist/server/handler-state.d.ts +2 -2
- package/dist/server/handler-state.d.ts.map +1 -1
- package/dist/server/middleware/jwt.d.ts +12 -1
- package/dist/server/middleware/jwt.d.ts.map +1 -1
- package/dist/server/middleware/trust-fence.d.ts +4 -0
- package/dist/server/middleware/trust-fence.d.ts.map +1 -1
- package/dist/server/multipart.d.ts +2 -3
- package/dist/server/multipart.d.ts.map +1 -1
- package/dist/server/raw.d.ts.map +1 -1
- package/dist/server/request-body.d.ts +12 -1
- package/dist/server/request-body.d.ts.map +1 -1
- package/dist/server/request-completion.d.ts.map +1 -1
- package/dist/server/types.d.ts +14 -9
- package/dist/server/types.d.ts.map +1 -1
- package/dist/telegram/crypto.d.ts.map +1 -1
- package/dist/telegram/init-data.d.ts +4 -4
- package/dist/telegram/init-data.d.ts.map +1 -1
- package/dist/telegram/outbound-cost.d.ts.map +1 -1
- package/dist/telegram/screens/test-chat.d.ts.map +1 -1
- package/dist/telegram/widget-api.d.ts +85 -13
- package/dist/telegram/widget-api.d.ts.map +1 -1
- package/dist/telegram/widget.d.ts +46 -2
- package/dist/telegram/widget.d.ts.map +1 -1
- package/dist/tools/cli/args-classify.d.ts +4 -74
- package/dist/tools/cli/args-classify.d.ts.map +1 -1
- package/dist/tools/cli/args-framework.d.ts +79 -0
- package/dist/tools/cli/args-framework.d.ts.map +1 -0
- package/dist/tools/cli/args-scan.d.ts.map +1 -1
- package/dist/tools/cli/args-tokens.d.ts.map +1 -1
- package/dist/tools/cli/checkpoint.d.ts +5 -0
- package/dist/tools/cli/checkpoint.d.ts.map +1 -1
- package/dist/tools/cli/stream.d.ts.map +1 -1
- package/dist/tools/connections/foreign-schema-join.d.ts.map +1 -1
- package/dist/tools/connections/openapi.d.ts.map +1 -1
- package/dist/tools/connections/runtime.d.ts.map +1 -1
- package/dist/tools/execute-handler.d.ts +24 -0
- package/dist/tools/execute-handler.d.ts.map +1 -0
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/mcp/round.d.ts.map +1 -1
- package/dist/tools/schema/coerce.d.ts.map +1 -1
- package/dist/tools/schema/flatten.d.ts.map +1 -1
- package/dist/tools/schema/inline-references.d.ts.map +1 -1
- package/dist/tools/schema/nesting-limit.d.ts.map +1 -1
- package/dist/tools/schema/presentation.d.ts.map +1 -1
- package/dist/tracking/privacy.d.ts.map +1 -1
- package/llms/agent-runtime-openrouter.txt +10 -9
- package/llms/agent-runtime-sandbox.txt +50 -11
- package/llms/agent-runtime-testing.txt +1 -1
- package/llms/agent-runtime.2.txt +9 -6
- package/llms/agent-runtime.3.txt +2 -2
- package/llms/agent-runtime.4.txt +11 -5
- package/llms/agent-runtime.5.txt +1 -1
- package/llms/agent-runtime.txt +283 -36
- package/llms/application.txt +3 -1
- package/llms/http.txt +1 -1
- package/llms/live.txt +3 -1
- package/llms/observability.txt +16 -9
- package/llms/server.2.txt +13 -8
- package/llms/server.4.txt +23 -11
- package/llms/server.5.txt +5 -5
- package/llms/server.txt +54 -1
- package/llms/spend.txt +1 -0
- package/llms/stitchkit.2.txt +4 -2
- package/llms/stitchkit.txt +113 -93
- package/llms/telegram-grammy.txt +3 -2
- package/llms/telegram.2.txt +3 -1
- package/llms/telegram.txt +35 -10
- package/llms/upgrading-0.128.0-0.129.0.txt +175 -0
- package/llms/{upgrading-0.128.0-0.135.0.txt → upgrading-0.130.0-0.136.0.txt} +353 -169
- package/llms/upgrading.txt +2 -1
- package/llms-full.txt +994 -217
- package/llms.txt +13 -12
- package/package.json +6 -6
- package/dist/agent-runtime/loop/deferred-tools-internal.d.ts +0 -19
- package/dist/agent-runtime/loop/deferred-tools-internal.d.ts.map +0 -1
- package/dist/agent-runtime/loop/run-complete-retry.d.ts +0 -24
- package/dist/agent-runtime/loop/run-complete-retry.d.ts.map +0 -1
- package/dist/agent-runtime/loop/run-model-attempts.d.ts +0 -6
- package/dist/agent-runtime/loop/run-model-attempts.d.ts.map +0 -1
- package/dist/index-sznqf8fx.js +0 -20
- /package/dist/{index-fthw8dwa.js → index-4gbybjg6.js} +0 -0
|
@@ -7,21 +7,18 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_CORS_ALLOW_HEADERS2
|
|
9
9
|
} from "../index-7mjsb7zv.js";
|
|
10
|
-
import"../index-
|
|
11
|
-
import"../index-
|
|
12
|
-
import {
|
|
13
|
-
normalizeError2
|
|
14
|
-
} from "../index-78da4g74.js";
|
|
10
|
+
import"../index-ha1tv70k.js";
|
|
11
|
+
import"../index-d1pdv8qc.js";
|
|
15
12
|
import"../index-dsa676h8.js";
|
|
16
|
-
import"../index-
|
|
13
|
+
import"../index-dm50x3by.js";
|
|
17
14
|
import {
|
|
18
15
|
coerceJsonArgs2
|
|
19
|
-
} from "../index-
|
|
16
|
+
} from "../index-qj0sq69b.js";
|
|
20
17
|
import {
|
|
21
18
|
ToolExecutionControlError2,
|
|
22
19
|
isToolExecutionControlError2,
|
|
23
20
|
collectTools2
|
|
24
|
-
} from "../index-
|
|
21
|
+
} from "../index-b9mj31q7.js";
|
|
25
22
|
import {
|
|
26
23
|
ALL_TRANSPORTS2,
|
|
27
24
|
TOOL_TRANSPORTS2
|
|
@@ -30,12 +27,12 @@ import {
|
|
|
30
27
|
assertToolName,
|
|
31
28
|
assertUniqueToolName,
|
|
32
29
|
flattenToolJsonSchema2
|
|
33
|
-
} from "../index-
|
|
30
|
+
} from "../index-edpkm3k7.js";
|
|
34
31
|
import"../index-werjqesf.js";
|
|
35
32
|
import"../index-m38ej7e5.js";
|
|
36
33
|
import {
|
|
37
34
|
defineContract2
|
|
38
|
-
} from "../index-
|
|
35
|
+
} from "../index-dmrx8xma.js";
|
|
39
36
|
import {
|
|
40
37
|
AsyncOperationCancelResultSchema2,
|
|
41
38
|
createAsyncOperationSnapshotSchema2
|
|
@@ -58,17 +55,17 @@ import {
|
|
|
58
55
|
import {
|
|
59
56
|
signJwt2,
|
|
60
57
|
verifyPkce2
|
|
61
|
-
} from "../index-
|
|
58
|
+
} from "../index-4p2zx593.js";
|
|
62
59
|
import {
|
|
63
60
|
describeToolCatalog2,
|
|
64
61
|
buildToolManifest2
|
|
65
|
-
} from "../index-
|
|
62
|
+
} from "../index-08a3qfr8.js";
|
|
66
63
|
import {
|
|
67
64
|
listToolNames2,
|
|
68
65
|
listContractToolNames2
|
|
69
|
-
} from "../index-
|
|
70
|
-
import"../index-
|
|
71
|
-
import"../index-
|
|
66
|
+
} from "../index-fatke81t.js";
|
|
67
|
+
import"../index-gq35s3bm.js";
|
|
68
|
+
import"../index-4gbybjg6.js";
|
|
72
69
|
import {
|
|
73
70
|
PROTECTED_RESOURCE_PATH2,
|
|
74
71
|
protectedResourceMetadataUrl2,
|
|
@@ -80,16 +77,16 @@ import {
|
|
|
80
77
|
PORTABLE_JSON_SCHEMA_FORMATS2,
|
|
81
78
|
findNonPortableFormats2,
|
|
82
79
|
findUntypedProperties2
|
|
83
|
-
} from "../index-
|
|
80
|
+
} from "../index-3kb8dw48.js";
|
|
84
81
|
import {
|
|
85
82
|
AgentToolError2,
|
|
86
83
|
isAgentToolError2,
|
|
87
84
|
defineAgentTool2,
|
|
88
85
|
mountAgentTools2
|
|
89
|
-
} from "../index-
|
|
86
|
+
} from "../index-54wp467c.js";
|
|
90
87
|
import {
|
|
91
88
|
createToolInvoker2
|
|
92
|
-
} from "../index-
|
|
89
|
+
} from "../index-yjx5jna7.js";
|
|
93
90
|
import {
|
|
94
91
|
WaitTimeoutError,
|
|
95
92
|
runWaitOperation,
|
|
@@ -102,10 +99,13 @@ import {
|
|
|
102
99
|
} from "../index-dz6tstcp.js";
|
|
103
100
|
import {
|
|
104
101
|
collectToolSurface
|
|
105
|
-
} from "../index-
|
|
102
|
+
} from "../index-bjrcbcn2.js";
|
|
106
103
|
import {
|
|
107
104
|
getTraceId2
|
|
108
|
-
} from "../index-
|
|
105
|
+
} from "../index-q4tr9vnf.js";
|
|
106
|
+
import {
|
|
107
|
+
normalizeError2
|
|
108
|
+
} from "../index-dwq6a6sq.js";
|
|
109
109
|
import {
|
|
110
110
|
defineRuntimeTool2,
|
|
111
111
|
createRuntimeToolFactory2
|
|
@@ -66,7 +66,8 @@ var AgentAttemptResetEventSchema2 = EventIdentitySchema.extend({
|
|
|
66
66
|
type: z.literal("attempt-reset"),
|
|
67
67
|
runtimeEpoch: z.string().min(1),
|
|
68
68
|
sequence: z.int().nonnegative(),
|
|
69
|
-
attempt: z.int().positive()
|
|
69
|
+
attempt: z.int().positive(),
|
|
70
|
+
withdrawn: z.object({ text: z.int().nonnegative(), reasoning: z.int().nonnegative() }).optional()
|
|
70
71
|
});
|
|
71
72
|
var AgentCheckpointEventSchema2 = EventIdentitySchema.extend({
|
|
72
73
|
type: z.literal("assistant-checkpoint"),
|
|
@@ -2,6 +2,9 @@ import {
|
|
|
2
2
|
LiveStatePhaseSchema2,
|
|
3
3
|
LiveStateStopReasonSchema2
|
|
4
4
|
} from "./index-jmaw365j.js";
|
|
5
|
+
import {
|
|
6
|
+
setOwnMember
|
|
7
|
+
} from "./index-3tb82xr7.js";
|
|
5
8
|
import {
|
|
6
9
|
serializeCanonicalJson
|
|
7
10
|
} from "./index-fmzg39a8.js";
|
|
@@ -53,12 +56,12 @@ function objectDiff(previous, next) {
|
|
|
53
56
|
const drop = [];
|
|
54
57
|
for (const key of Object.keys(next)) {
|
|
55
58
|
if (!Object.hasOwn(previous, key)) {
|
|
56
|
-
set
|
|
59
|
+
setOwnMember(set, key, { t: "set", v: next[key] });
|
|
57
60
|
continue;
|
|
58
61
|
}
|
|
59
62
|
const nested = diff(previous[key], next[key]);
|
|
60
63
|
if (nested !== undefined)
|
|
61
|
-
set
|
|
64
|
+
setOwnMember(set, key, nested);
|
|
62
65
|
}
|
|
63
66
|
for (const key of Object.keys(previous)) {
|
|
64
67
|
if (!Object.hasOwn(next, key))
|
|
@@ -144,7 +147,7 @@ function apply(previous, delta) {
|
|
|
144
147
|
for (const key of delta.drop ?? [])
|
|
145
148
|
delete result[key];
|
|
146
149
|
for (const [key, nested] of Object.entries(delta.set ?? {})) {
|
|
147
|
-
result
|
|
150
|
+
setOwnMember(result, key, apply(Object.hasOwn(result, key) ? result[key] : undefined, nested));
|
|
148
151
|
}
|
|
149
152
|
return result;
|
|
150
153
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./index-dsa676h8.js";
|
|
4
4
|
import {
|
|
5
5
|
toJsonSchema
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-d1pdv8qc.js";
|
|
7
7
|
import {
|
|
8
8
|
inspectOnlyError,
|
|
9
9
|
resolveToolAccess,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
collectTools2,
|
|
14
14
|
createToolRunner,
|
|
15
15
|
formatToolError
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-b9mj31q7.js";
|
|
17
17
|
import {
|
|
18
18
|
toolSurfaceOutputSchema,
|
|
19
19
|
presentationMetadata
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-edpkm3k7.js";
|
|
21
21
|
import {
|
|
22
22
|
publishedToolAnnotations
|
|
23
23
|
} from "./index-0x4mnwg5.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
validateMcpRoundPolicy,
|
|
27
27
|
validateResolvedInputRounds,
|
|
28
28
|
prepareProjectedMcpTools
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-efbzm2se.js";
|
|
30
30
|
import {
|
|
31
31
|
markProtocolOutcome
|
|
32
32
|
} from "./index-cfnmvcq8.js";
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
} from "./index-5t4fpdct.js";
|
|
49
49
|
import {
|
|
50
50
|
projectJsonSafe
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-9vj869rx.js";
|
|
52
52
|
import {
|
|
53
53
|
collectToolSurface
|
|
54
|
-
} from "./index-
|
|
54
|
+
} from "./index-bjrcbcn2.js";
|
|
55
55
|
import {
|
|
56
56
|
runWithRequestContext2,
|
|
57
57
|
getRequestContext2
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-q4tr9vnf.js";
|
|
59
59
|
import {
|
|
60
60
|
defineRuntimeTool2
|
|
61
61
|
} from "./index-7csn6pva.js";
|
|
@@ -349,9 +349,9 @@ function roundPlanDigest(requests) {
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
async function resolveRequests(options, policy) {
|
|
352
|
-
const
|
|
353
|
-
if (
|
|
354
|
-
return { requests:
|
|
352
|
+
const resolver = policy.inputRequired;
|
|
353
|
+
if (typeof resolver !== "function")
|
|
354
|
+
return { requests: resolver, guarded: false };
|
|
355
355
|
const parsed = parseToolCallArguments(options.tool.method, options.rawArgs, {
|
|
356
356
|
coerceJson: options.coerceJsonArgs ?? true,
|
|
357
357
|
toolSurface: true
|
|
@@ -359,7 +359,6 @@ async function resolveRequests(options, policy) {
|
|
|
359
359
|
if (!parsed.ok) {
|
|
360
360
|
return { requests: [], guarded: false };
|
|
361
361
|
}
|
|
362
|
-
const resolver = policy.inputRequired;
|
|
363
362
|
const resolved = await resolver({ params: parsed.params, input: parsed.input });
|
|
364
363
|
validateResolvedInputRounds(options.tool, resolved, options.runtime?.maxRounds ?? 1);
|
|
365
364
|
return { requests: resolved, guarded: false };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
isSecretKeyName,
|
|
2
3
|
maskSecretShapes
|
|
3
|
-
} from "./index-
|
|
4
|
+
} from "./index-xrbrvn15.js";
|
|
4
5
|
import {
|
|
5
6
|
isUnsafeKey
|
|
6
7
|
} from "./index-zsarb5xp.js";
|
|
@@ -9,49 +10,6 @@ import {
|
|
|
9
10
|
} from "./index-ps3djm8d.js";
|
|
10
11
|
|
|
11
12
|
// src/observability/sanitize.ts
|
|
12
|
-
var SENSITIVE_WORDS = new Set([
|
|
13
|
-
"password",
|
|
14
|
-
"passwords",
|
|
15
|
-
"passwd",
|
|
16
|
-
"pwd",
|
|
17
|
-
"secret",
|
|
18
|
-
"secrets",
|
|
19
|
-
"token",
|
|
20
|
-
"tokens",
|
|
21
|
-
"apikey",
|
|
22
|
-
"auth",
|
|
23
|
-
"authorization",
|
|
24
|
-
"bearer",
|
|
25
|
-
"cookie",
|
|
26
|
-
"cookies",
|
|
27
|
-
"credential",
|
|
28
|
-
"credentials"
|
|
29
|
-
]);
|
|
30
|
-
var SENSITIVE_WORD_PAIRS = new Set([
|
|
31
|
-
"apikey",
|
|
32
|
-
"privatekey",
|
|
33
|
-
"initdata",
|
|
34
|
-
"sessionid",
|
|
35
|
-
"sessionkey"
|
|
36
|
-
]);
|
|
37
|
-
var SENSITIVE_EXACT = new Set(["session"]);
|
|
38
|
-
function splitKeyWords(key) {
|
|
39
|
-
return key.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter((word) => word.length > 0);
|
|
40
|
-
}
|
|
41
|
-
function isSensitiveKeyDefault(key) {
|
|
42
|
-
const words = splitKeyWords(key);
|
|
43
|
-
if (words.length === 1 && SENSITIVE_EXACT.has(words[0] ?? ""))
|
|
44
|
-
return true;
|
|
45
|
-
for (let index = 0;index < words.length; index += 1) {
|
|
46
|
-
const word = words[index] ?? "";
|
|
47
|
-
if (SENSITIVE_WORDS.has(word))
|
|
48
|
-
return true;
|
|
49
|
-
const next = words[index + 1];
|
|
50
|
-
if (next !== undefined && SENSITIVE_WORD_PAIRS.has(word + next))
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
13
|
var DEFAULT_MAX_BYTES = 16000;
|
|
56
14
|
var DEFAULT_MAX_DEPTH = 20;
|
|
57
15
|
var DEFAULT_MAX_NODES = 20000;
|
|
@@ -69,7 +27,7 @@ function secretMasker(options, isSecretName) {
|
|
|
69
27
|
output = output.replace(global, MASK);
|
|
70
28
|
} catch {}
|
|
71
29
|
}
|
|
72
|
-
return maskSecretShapes(output, MASK, isSecretName);
|
|
30
|
+
return maskSecretShapes(output, { mask: MASK, isSecretName });
|
|
73
31
|
};
|
|
74
32
|
}
|
|
75
33
|
var ERROR_CORE = new Set(["_type", "name", "message", "stack", "cause"]);
|
|
@@ -110,9 +68,9 @@ function pathMatcher(patterns) {
|
|
|
110
68
|
}
|
|
111
69
|
function redact2(value, options = {}) {
|
|
112
70
|
const custom = options.sensitiveKeys;
|
|
113
|
-
const isSensitive = custom === undefined ?
|
|
71
|
+
const isSensitive = custom === undefined ? isSecretKeyName : (key) => {
|
|
114
72
|
custom.lastIndex = 0;
|
|
115
|
-
return custom.test(key) || options.includeDefaultSensitiveKeys === true &&
|
|
73
|
+
return custom.test(key) || options.includeDefaultSensitiveKeys === true && isSecretKeyName(key);
|
|
116
74
|
};
|
|
117
75
|
const maxDepth = options.maxDepth ?? DEFAULT_MAX_DEPTH;
|
|
118
76
|
const maxStringLength = options.maxStringLength ?? Number.POSITIVE_INFINITY;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentControlRequestSchema2,
|
|
3
3
|
AgentControlResponseSchema2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-kzsetgh9.js";
|
|
5
5
|
import {
|
|
6
6
|
createAgentRuntimeEventSink2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-jperyn0c.js";
|
|
8
8
|
import {
|
|
9
9
|
assertPositiveSafeInteger
|
|
10
10
|
} from "./index-gr0kxymw.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
nextEventSeqByMaximum,
|
|
10
10
|
agentSqlTables,
|
|
11
11
|
createAgentRuntimeStore2
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-rg08syp1.js";
|
|
13
13
|
import {
|
|
14
14
|
canonicalAgentJson2
|
|
15
15
|
} from "./index-qcy8et93.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
scanSqlRecoverable,
|
|
25
25
|
listSqlConversations,
|
|
26
26
|
pageSqlConversationMessages
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-hberxns4.js";
|
|
28
28
|
import {
|
|
29
29
|
rollbackSqliteFailure
|
|
30
30
|
} from "./index-ttexdtjj.js";
|
|
@@ -54,6 +54,8 @@ async function verifyJwt2(token, secret, options = {}) {
|
|
|
54
54
|
throw unauthorized2("Malformed token");
|
|
55
55
|
if (payload.exp < now - leeway)
|
|
56
56
|
throw unauthorized2("Token expired");
|
|
57
|
+
} else if ((options.expiration ?? "required") === "required") {
|
|
58
|
+
throw unauthorized2("Token has no expiry");
|
|
57
59
|
}
|
|
58
60
|
if ("nbf" in payload) {
|
|
59
61
|
if (typeof payload.nbf !== "number")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toJsonSchema
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-d1pdv8qc.js";
|
|
4
4
|
import {
|
|
5
5
|
localVerdict
|
|
6
6
|
} from "./index-dsa676h8.js";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
isToolExecutionControlError2,
|
|
13
13
|
createToolRunner,
|
|
14
14
|
formatToolError
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-b9mj31q7.js";
|
|
16
16
|
import {
|
|
17
17
|
flattenToolJsonSchema2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-edpkm3k7.js";
|
|
19
19
|
import {
|
|
20
20
|
collectToolSurface
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-bjrcbcn2.js";
|
|
22
22
|
import {
|
|
23
23
|
agentPresenterOf
|
|
24
24
|
} from "./index-7csn6pva.js";
|