stitchkit 0.135.1 → 0.136.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +122 -0
- package/README.md +37 -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/executor-contract.d.ts.map +1 -1
- 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-executor/vocabulary.d.ts +80 -0
- package/dist/agent-executor/vocabulary.d.ts.map +1 -1
- package/dist/agent-parts/model.d.ts +94 -0
- package/dist/agent-parts/model.d.ts.map +1 -1
- package/dist/agent-parts/parts.d.ts +176 -0
- package/dist/agent-parts/parts.d.ts.map +1 -1
- package/dist/agent-runtime/browser/browser-control-contract.d.ts +444 -0
- package/dist/agent-runtime/browser/browser-control-contract.d.ts.map +1 -1
- package/dist/agent-runtime/browser/control-schema.d.ts +532 -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 +720 -3
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/history/run-history-parts.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 -3
- 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 +38 -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-loop-events.d.ts +6 -1
- package/dist/agent-runtime/loop/run-loop-events.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-recorded.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 +13 -34
- 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 +15 -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/runtime-internals.d.ts +1 -3
- package/dist/agent-runtime/runtime-internals.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/schemas-json-projection.d.ts +29 -0
- package/dist/agent-runtime/schemas-json-projection.d.ts.map +1 -0
- package/dist/agent-runtime/schemas-message.d.ts +88 -0
- package/dist/agent-runtime/schemas-message.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-run.d.ts +88 -0
- package/dist/agent-runtime/schemas-run.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/branch-replay.d.ts +264 -0
- package/dist/agent-runtime/stores/branch-replay.d.ts.map +1 -1
- package/dist/agent-runtime/stores/conversations.d.ts +88 -0
- package/dist/agent-runtime/stores/conversations.d.ts.map +1 -1
- package/dist/agent-runtime/stores/sql-rows.d.ts +74 -10
- package/dist/agent-runtime/stores/sql-rows.d.ts.map +1 -1
- package/dist/agent-runtime/stores/store-driver-contract.d.ts +616 -0
- package/dist/agent-runtime/stores/store-driver-contract.d.ts.map +1 -1
- package/dist/agent-runtime/stores/store-events.d.ts +1056 -0
- package/dist/agent-runtime/stores/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/stores/store.d.ts +1232 -0
- package/dist/agent-runtime/stores/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +74 -10
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- 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 +158 -30
- package/dist/agent-runtime/testing/store-conformance-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/testing/store-conformance-support.d.ts +79 -15
- package/dist/agent-runtime/testing/store-conformance-support.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-contract.d.ts.map +1 -1
- package/dist/application/diagnostic-journal-manager.d.ts +1 -1
- package/dist/application/diagnostic-journal-manager.d.ts.map +1 -1
- package/dist/application/notification-delivery.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 +9 -6
- package/dist/entrypoints/agent-executor/claude-sdk.js +26 -25
- package/dist/entrypoints/agent-executor/claude.js +13 -12
- 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 +135 -40
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +5 -4
- package/dist/entrypoints/agent-executor/testing.js +23 -18
- package/dist/entrypoints/agent-executor.js +8 -8
- 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 +34 -30
- package/dist/entrypoints/agent-runtime/anthropic.js +15 -12
- package/dist/entrypoints/agent-runtime/browser.js +13 -8
- package/dist/entrypoints/agent-runtime/harness.js +26 -27
- package/dist/entrypoints/agent-runtime/openai.js +7 -7
- 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 +1097 -856
- package/dist/entrypoints/agent-runtime/postgres.js +9 -9
- package/dist/entrypoints/agent-runtime/realtime.js +9 -8
- package/dist/entrypoints/agent-runtime/sandbox.js +167 -139
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +10 -10
- package/dist/entrypoints/agent-runtime/sqlite/node.js +10 -10
- package/dist/entrypoints/agent-runtime/testing.js +9 -9
- package/dist/entrypoints/agent-runtime.js +261 -375
- package/dist/entrypoints/application/diagnostic-journal.js +14 -10
- package/dist/entrypoints/application.js +18 -6
- 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 +9 -10
- 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 +24 -22
- 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-1psbyyhj.js +21 -0
- package/dist/{index-pdcbjd6a.js → index-1yky29qg.js} +6 -3
- package/dist/{index-b4c9dpzm.js → index-252den5a.js} +10 -11
- package/dist/{index-yhwx4fwk.js → index-26v8hjqm.js} +4 -4
- package/dist/{index-xtby8rj3.js → index-28kbdn63.js} +5 -47
- package/dist/{index-c24bj2r1.js → index-2wm9b9vs.js} +5 -5
- package/dist/{index-ht71v1ag.js → index-32ew02z1.js} +60 -45
- package/dist/{index-dm84tsd5.js → index-3kb8dw48.js} +1 -1
- package/dist/index-3tb82xr7.js +11 -0
- package/dist/{index-nr4fhfn4.js → index-4p2zx593.js} +2 -0
- package/dist/{index-grhhsrd5.js → index-4q9tmzea.js} +5 -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-y0mwkgkf.js → index-8cnfgwg8.js} +1212 -1139
- package/dist/{index-mkmep637.js → index-9m1m92rg.js} +1 -1
- package/dist/{index-5awtbyns.js → index-9vj869rx.js} +1 -1
- package/dist/index-a1rjr381.js +114 -0
- package/dist/{index-6kwdfb9m.js → index-akesakvj.js} +23 -4
- 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-v0j22shs.js → index-d5mhgx72.js} +16 -11
- 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-57sbckhv.js → index-e4w0sfm1.js} +2 -2
- 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-asnd4h2k.js → index-f0dzyskg.js} +27 -4
- package/dist/{index-xbb8ysmq.js → index-fatke81t.js} +2 -2
- package/dist/{index-d3s070eh.js → index-gj4wdts6.js} +1 -1
- package/dist/{index-6nzzj7qr.js → index-gq35s3bm.js} +1 -1
- package/dist/index-gvgtmt7a.js +102 -0
- package/dist/{index-pd9e8rz4.js → index-gvv7y0s4.js} +1 -1
- package/dist/{index-m2b49tvc.js → index-h08xqfw9.js} +20 -21
- package/dist/{index-gk6dq9ay.js → index-ha1tv70k.js} +3 -26
- package/dist/{index-vebzvse6.js → index-jy907kcs.js} +24 -1
- package/dist/{index-q86qnzzf.js → index-k5azb3v3.js} +8 -25
- package/dist/{index-qcy8et93.js → index-kaq9nb7h.js} +6 -6
- package/dist/{index-vse7x1qt.js → index-knqye3gv.js} +1 -1
- package/dist/{index-tav72wz5.js → index-ks4rhtcc.js} +5 -0
- package/dist/{index-bvpevwt6.js → index-mtpcax6d.js} +210 -205
- package/dist/{index-7qza24g1.js → index-px9r6wv1.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-de7b0kvz.js → index-r9w7wfgn.js} +2 -2
- 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-aacwkve4.js → index-sjq4akrx.js} +3 -5
- package/dist/{index-fec05c9k.js → index-ta0e2daw.js} +9 -7
- package/dist/{index-5dxgx3yj.js → index-tcv71frn.js} +1 -1
- package/dist/{index-1zy31r3b.js → index-v92djygb.js} +1 -1
- package/dist/{index-c0yym4a0.js → index-w7e402wx.js} +11 -105
- package/dist/{index-9f60gnfn.js → index-xaa3603f.js} +4 -11
- 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/{index-j3r7r1mh.js → index-yv7d6tav.js} +1 -1
- package/dist/{index-wsv11dhg.js → index-zagc12j1.js} +5 -5
- package/dist/{index-npfdymav.js → index-zqc64g69.js} +3 -3
- package/dist/{index-rkphknhx.js → index-zthekmrt.js} +2 -2
- package/dist/internal/json-stringify.d.ts +37 -0
- package/dist/internal/json-stringify.d.ts.map +1 -0
- 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 +2 -2
- package/llms/agent-runtime.txt +297 -36
- package/llms/application.2.txt +6 -3
- package/llms/application.3.txt +2 -1
- package/llms/application.txt +7 -2
- 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 +1021 -223
- package/llms.txt +14 -13
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-bubblewrap-args.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-bubblewrap-args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;CAC/B,
|
|
1
|
+
{"version":3,"file":"sandbox-bubblewrap-args.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-bubblewrap-args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/E;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAQtD,CAAC;AAEF,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;CAC/B,YAoDA"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { type SandboxBackend } from './sandbox-contract.js';
|
|
2
|
+
/**
|
|
3
|
+
* Run every shutdown step in order even when an earlier one fails, then reject with the first
|
|
4
|
+
* failure. A process group whose death could not be proven (`COMMAND_CLEANUP`) must not leave the
|
|
5
|
+
* network broker listening, the broker socket directory on disk or the state lease held.
|
|
6
|
+
*/
|
|
7
|
+
export declare function runShutdownSteps(steps: ReadonlyArray<() => Promise<unknown>>): Promise<void>;
|
|
2
8
|
export interface BubblewrapSandboxConfig {
|
|
3
9
|
/** Private, application-owned directory, never mounted into the guest. */
|
|
4
10
|
stateDirectory: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-bubblewrap.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-bubblewrap.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,oBAAoB,CAAC;AAK5B,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yEAAyE;IACzE,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AACD,oGAAoG;AACpG,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"sandbox-bubblewrap.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-bubblewrap.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,cAAc,EAIpB,MAAM,oBAAoB,CAAC;AAK5B;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,aAAa,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yEAAyE;IACzE,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AACD,oGAAoG;AACpG,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,cAAc,CAAC,CA4KzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-contract.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sandbox-contract.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;;oBA6DrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,eAAO,MAAM,kBAAkB;;;;kBAMpB,CAAC;AACZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,oBAAoB;;;;;;;kBAStB,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AACD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EA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AAa,SAAQ,KAAK;IAEnC,QAAQ,CAAC,IAAI,EACT,qBAAqB,GACrB,cAAc,GACd,iBAAiB,GACjB,wBAAwB,GACxB,wBAAwB,GACxB,eAAe,GACf,cAAc;IARpB,YACW,IAAI,EACT,qBAAqB,GACrB,cAAc,GACd,iBAAiB,GACjB,wBAAwB,GACxB,wBAAwB,GACxB,eAAe,GACf,cAAc,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,YAAY,EAIvB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-process-linux.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-process-linux.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sandbox-process-linux.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-process-linux.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EAIxB,MAAM,wBAAwB,CAAC;AAEhC,2CAA2C;AAC3C,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AA+PzD,6EAA6E;AAC7E,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,yBAAyB,GACjC,MAAM,EAAE,CA0DV;AAaD,2EAA2E;AAC3E,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,kBAAkB,EACxB,OAAO,EAAE,yBAAyB,GACjC,yBAAyB,CAU3B"}
|
|
@@ -31,7 +31,11 @@ export type ProcessSandboxUnixSocket = z.infer<typeof ProcessSandboxUnixSocketSc
|
|
|
31
31
|
export declare function normalizeAbsolute(path: string): string;
|
|
32
32
|
/**
|
|
33
33
|
* Resolve symlinks on `path`, or on its deepest existing ancestor when the leaf does not exist
|
|
34
|
-
* on disk yet.
|
|
34
|
+
* on disk yet. Only a genuinely absent entry (`ENOENT` with nothing at that name) climbs to the
|
|
35
|
+
* parent; a dangling or looping symlink, a path through a regular file (`ENOTDIR`) or an
|
|
36
|
+
* unreadable directory (`EACCES`) fails closed with `SANDBOX_UNAVAILABLE`, because matching such a
|
|
37
|
+
* path by its spelling would let a symlink bypass a deny. An existing entry `realpath` cannot open
|
|
38
|
+
* (a macOS Unix socket) resolves through `resolveUnopenableEntry`.
|
|
35
39
|
*/
|
|
36
40
|
export declare function resolveRealOrAncestor(path: string): string;
|
|
37
41
|
/** Zod specification for {@link createProcessSandbox}: real-path workspace mounts, explicit allowlists, deny masks and network/env policy. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-process-spec.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-process-spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sandbox-process-spec.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-process-spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,wEAAwE;AACxE,eAAO,MAAM,2BAA2B;;;EAAqD,CAAC;AAC9F,gFAAgF;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,2FAA2F;AAC3F,eAAO,MAAM,2BAA2B;;;EAA4B,CAAC;AACrE,iFAAiF;AACjF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,+DAA+D;AAC/D,eAAO,MAAM,+BAA+B;;;;EAA+C,CAAC;AAC5F,6EAA6E;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,sHAAsH;AACtH,eAAO,MAAM,8BAA8B;;;kBAKhC,CAAC;AACZ,iGAAiG;AACjG,MAAM,MAAM,wBAAwB,GAAG,CAA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AC,EAAE,WAAW,GAAG,SAAS,CAAC;CAC3C;AAED,oGAAoG;AACpG,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC;IAC5C,mEAAmE;IACnE,KAAK,CAAC,OAAO,CAAC,EAAE;QACd,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;KAC3C,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,CACpB,OAAO,EAAE,yBAAyB,KAC/B,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACzC;AAED,4FAA4F;AAC5F,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,SAAS,GAAG,eAAe,CAAC,EAC5E,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACzC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcxB;AAED,uEAAuE;AACvE,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAUpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox-process-wrapper.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-process-wrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sandbox-process-wrapper.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/sandbox/sandbox-process-wrapper.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,cAAc,EAGnB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAC;AAuBhC;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,yBAAyB,CAAC,CA8FpC;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,GAAE;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,CAAA;CAAO,GAChE,cAAc,CAiDhB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type AgentRecordedToolModelOutput, type AgentToolModelOutput } from '../agent-parts/model.js';
|
|
2
|
+
import { type JsonValue } from '../internal/json-stringify.js';
|
|
3
|
+
import { AgentToolError } from '../tools/agent-tool-error.js';
|
|
4
|
+
/**
|
|
5
|
+
* Read a tool's final output back as `JSON.stringify` writes it — what the model and the run
|
|
6
|
+
* record carry. An output it cannot write fails the call, naming the tool and the field, instead
|
|
7
|
+
* of reaching the model as anything else; the message says the tool ran, so the model does not
|
|
8
|
+
* take the failure for a call that never happened.
|
|
9
|
+
*/
|
|
10
|
+
export declare function projectToolOutput(toolName: string, output: unknown, what?: string): JsonValue;
|
|
11
|
+
/** A `toModelOutput` JSON value, read back the same way: it is what a later turn reads too. */
|
|
12
|
+
export declare function projectModelOutput(toolName: string, output: AgentToolModelOutput): AgentToolModelOutput;
|
|
13
|
+
/**
|
|
14
|
+
* The model's copy of a tool output read back as JSON, when the tool has no `toModelOutput`: the
|
|
15
|
+
* live step and a later turn reading the record both send this.
|
|
16
|
+
*/
|
|
17
|
+
export declare function defaultToolWireOutput(output: JsonValue): AgentToolModelOutput;
|
|
18
|
+
/**
|
|
19
|
+
* What `toModelOutput` showed the model, in the form the run record keeps — or nothing, when it
|
|
20
|
+
* holds a file part or is not a model output at all; a later turn then presents the record anew.
|
|
21
|
+
*/
|
|
22
|
+
export declare function recordedModelOutput(output: unknown): AgentRecordedToolModelOutput | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The detail of a failed call as the model reads it and the record keeps it: the error's own
|
|
25
|
+
* output, or its message when JSON cannot carry that output (`AgentToolError` then says
|
|
26
|
+
* `Tool execution failed`).
|
|
27
|
+
*/
|
|
28
|
+
export declare function agentToolErrorDetail(error: AgentToolError): JsonValue;
|
|
29
|
+
//# sourceMappingURL=schemas-json-projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas-json-projection.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schemas-json-projection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,4BAA4B,EAEjC,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAuB,KAAK,SAAS,EAAe,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,OAAO,EACf,IAAI,SAAW,GACd,SAAS,CAMX;AAED,+FAA+F;AAC/F,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,GAC3B,oBAAoB,CAMtB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,oBAAoB,CAG7E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,GACd,4BAA4B,GAAG,SAAS,CAK1C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAGrE"}
|
|
@@ -80,6 +80,94 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
80
80
|
success: "success";
|
|
81
81
|
}>;
|
|
82
82
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
83
|
+
modelOutput: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
85
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
87
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
"1h": "1h";
|
|
89
|
+
"5m": "5m";
|
|
90
|
+
}>>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
type: z.ZodLiteral<"text">;
|
|
93
|
+
value: z.ZodString;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
96
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
98
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
"1h": "1h";
|
|
100
|
+
"5m": "5m";
|
|
101
|
+
}>>;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
type: z.ZodLiteral<"error-text">;
|
|
104
|
+
value: z.ZodString;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
107
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
109
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
110
|
+
"1h": "1h";
|
|
111
|
+
"5m": "5m";
|
|
112
|
+
}>>;
|
|
113
|
+
}, z.core.$strict>>;
|
|
114
|
+
type: z.ZodLiteral<"json">;
|
|
115
|
+
value: z.ZodJSONSchema;
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
117
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
118
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
120
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
"1h": "1h";
|
|
122
|
+
"5m": "5m";
|
|
123
|
+
}>>;
|
|
124
|
+
}, z.core.$strict>>;
|
|
125
|
+
type: z.ZodLiteral<"error-json">;
|
|
126
|
+
value: z.ZodJSONSchema;
|
|
127
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
129
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
131
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
"1h": "1h";
|
|
133
|
+
"5m": "5m";
|
|
134
|
+
}>>;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
137
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
140
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
142
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
"1h": "1h";
|
|
144
|
+
"5m": "5m";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
type: z.ZodLiteral<"content">;
|
|
148
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
149
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
150
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
152
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
"1h": "1h";
|
|
154
|
+
"5m": "5m";
|
|
155
|
+
}>>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
type: z.ZodLiteral<"text">;
|
|
158
|
+
text: z.ZodString;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
161
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
163
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
164
|
+
"1h": "1h";
|
|
165
|
+
"5m": "5m";
|
|
166
|
+
}>>;
|
|
167
|
+
}, z.core.$strict>>;
|
|
168
|
+
type: z.ZodLiteral<"custom">;
|
|
169
|
+
}, z.core.$strip>], "type">>;
|
|
170
|
+
}, z.core.$strip>], "type">>;
|
|
83
171
|
provider: z.ZodOptional<z.ZodObject<{
|
|
84
172
|
schemaVersion: z.ZodInt;
|
|
85
173
|
provider: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas-message.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schemas-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;EAOnC,CAAC;AAEH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"schemas-message.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schemas-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;EAOnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,+BAA+B;;;;;;;;iBAQ1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -274,6 +274,94 @@ export declare const AgentSnapshotSchema: z.ZodObject<{
|
|
|
274
274
|
success: "success";
|
|
275
275
|
}>;
|
|
276
276
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
277
|
+
modelOutput: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
278
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
279
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
281
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
282
|
+
"1h": "1h";
|
|
283
|
+
"5m": "5m";
|
|
284
|
+
}>>;
|
|
285
|
+
}, z.core.$strict>>;
|
|
286
|
+
type: z.ZodLiteral<"text">;
|
|
287
|
+
value: z.ZodString;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
290
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
292
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
"1h": "1h";
|
|
294
|
+
"5m": "5m";
|
|
295
|
+
}>>;
|
|
296
|
+
}, z.core.$strict>>;
|
|
297
|
+
type: z.ZodLiteral<"error-text">;
|
|
298
|
+
value: z.ZodString;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
301
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
303
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
"1h": "1h";
|
|
305
|
+
"5m": "5m";
|
|
306
|
+
}>>;
|
|
307
|
+
}, z.core.$strict>>;
|
|
308
|
+
type: z.ZodLiteral<"json">;
|
|
309
|
+
value: z.ZodJSONSchema;
|
|
310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
311
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
312
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
314
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
"1h": "1h";
|
|
316
|
+
"5m": "5m";
|
|
317
|
+
}>>;
|
|
318
|
+
}, z.core.$strict>>;
|
|
319
|
+
type: z.ZodLiteral<"error-json">;
|
|
320
|
+
value: z.ZodJSONSchema;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
323
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
325
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
326
|
+
"1h": "1h";
|
|
327
|
+
"5m": "5m";
|
|
328
|
+
}>>;
|
|
329
|
+
}, z.core.$strict>>;
|
|
330
|
+
type: z.ZodLiteral<"execution-denied">;
|
|
331
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
334
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
336
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
337
|
+
"1h": "1h";
|
|
338
|
+
"5m": "5m";
|
|
339
|
+
}>>;
|
|
340
|
+
}, z.core.$strict>>;
|
|
341
|
+
type: z.ZodLiteral<"content">;
|
|
342
|
+
value: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
343
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
344
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
345
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
346
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
347
|
+
"1h": "1h";
|
|
348
|
+
"5m": "5m";
|
|
349
|
+
}>>;
|
|
350
|
+
}, z.core.$strict>>;
|
|
351
|
+
type: z.ZodLiteral<"text">;
|
|
352
|
+
text: z.ZodString;
|
|
353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
|
|
355
|
+
cacheControl: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
357
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
"1h": "1h";
|
|
359
|
+
"5m": "5m";
|
|
360
|
+
}>>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
type: z.ZodLiteral<"custom">;
|
|
363
|
+
}, z.core.$strip>], "type">>;
|
|
364
|
+
}, z.core.$strip>], "type">>;
|
|
277
365
|
provider: z.ZodOptional<z.ZodObject<{
|
|
278
366
|
schemaVersion: z.ZodInt;
|
|
279
367
|
provider: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas-run.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schemas-run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;EAU9B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;EAA6B,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;EAA0C,CAAC;AACnF,eAAO,MAAM,4BAA4B;;;;;;EAMvC,CAAC;AAcH,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;iBAoCnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;EA0CpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,mBAAmB,GAC1B,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAiBrC;AAwDD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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H,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branch-messages.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/stores/branch-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"branch-messages.d.ts","sourceRoot":"","sources":["../../../src/agent-runtime/stores/branch-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAoB,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAEpD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,gBAAgB,EACrB,KAAK,EAAE,SAAS,EAChB,IAAI,SAAK,GACR,SAAS,CAQX;AAiED,wBAAgB,cAAc,CAC5B,GAAG,EAAE,gBAAgB,EACrB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EACzC,MAAM,EAAE,OAAO,cAGhB;AA0DD,wBAAgB,aAAa,CAC3B,GAAG,EAAE,gBAAgB,EACrB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,EAAE,YAAY,GACpB,YAAY,CAad;AAED,wBAAgB,SAAS,CACvB,GAAG,EAAE,gBAAgB,EACrB,oBAAoB,EAAE,MAAM,EAC5B,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,OAAO,GACf,QAAQ,CAsBV"}
|
|
@@ -9,6 +9,20 @@ export declare const SpillEventPayloadSchema: z.ZodObject<{
|
|
|
9
9
|
type Json = z.infer<ReturnType<typeof z.json>>;
|
|
10
10
|
/** Control observations are retained under an inert kind: no state/schedule/durability reader can replay them. */
|
|
11
11
|
export declare function branchObservation(ids: BranchIdentities, kind: string, raw: Json, inherited?: boolean): {
|
|
12
|
+
result: {
|
|
13
|
+
grade: "full";
|
|
14
|
+
restrictions: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
15
|
+
} | {
|
|
16
|
+
grade: "partial";
|
|
17
|
+
restrictions: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
18
|
+
gaps: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
19
|
+
} | {
|
|
20
|
+
grade: "unavailable";
|
|
21
|
+
reason: string;
|
|
22
|
+
};
|
|
23
|
+
required: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
24
|
+
missing: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
25
|
+
} | {
|
|
12
26
|
conversationId: string;
|
|
13
27
|
invocationId: string;
|
|
14
28
|
operationId: string;
|
|
@@ -40,6 +54,17 @@ export declare function branchObservation(ids: BranchIdentities, kind: string, r
|
|
|
40
54
|
models: string[];
|
|
41
55
|
payloadSha256: string;
|
|
42
56
|
};
|
|
57
|
+
} | {
|
|
58
|
+
conversationId: string;
|
|
59
|
+
invocationId: string;
|
|
60
|
+
operationId: string;
|
|
61
|
+
runId?: string | undefined;
|
|
62
|
+
type: "invocation/finished";
|
|
63
|
+
failure?: {
|
|
64
|
+
artifactId: string;
|
|
65
|
+
payloadSha256: string;
|
|
66
|
+
} | undefined;
|
|
67
|
+
status: "cancelled" | "failed" | "succeeded";
|
|
43
68
|
} | {
|
|
44
69
|
conversationId: string;
|
|
45
70
|
invocationId: string;
|
|
@@ -110,33 +135,22 @@ export declare function branchObservation(ids: BranchIdentities, kind: string, r
|
|
|
110
135
|
payloadOmitted?: "max-payload-bytes" | undefined;
|
|
111
136
|
payloadSha256: string;
|
|
112
137
|
} | {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
runId
|
|
117
|
-
|
|
118
|
-
failure?: {
|
|
119
|
-
artifactId: string;
|
|
120
|
-
payloadSha256: string;
|
|
121
|
-
} | undefined;
|
|
122
|
-
status: "cancelled" | "failed" | "succeeded";
|
|
123
|
-
} | {
|
|
124
|
-
result: {
|
|
125
|
-
grade: "full";
|
|
126
|
-
restrictions: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
127
|
-
} | {
|
|
128
|
-
grade: "partial";
|
|
129
|
-
restrictions: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
130
|
-
gaps: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
131
|
-
} | {
|
|
132
|
-
grade: "unavailable";
|
|
133
|
-
reason: string;
|
|
134
|
-
};
|
|
135
|
-
required: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
136
|
-
missing: ("network-denied" | "process-contained" | "secrets-hidden" | "write-contained")[];
|
|
138
|
+
effectName: string;
|
|
139
|
+
phase: "intent";
|
|
140
|
+
encoded?: string | undefined;
|
|
141
|
+
runId: string;
|
|
142
|
+
id?: string | undefined;
|
|
137
143
|
} | {
|
|
138
|
-
|
|
144
|
+
effectName: string;
|
|
145
|
+
phase: "accepted";
|
|
139
146
|
encoded: string;
|
|
147
|
+
via: "reconcile" | "run";
|
|
148
|
+
runId: string;
|
|
149
|
+
id?: string | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
effectName: string;
|
|
152
|
+
phase: "uncertain";
|
|
153
|
+
encoded?: string | undefined;
|
|
140
154
|
runId: string;
|
|
141
155
|
id?: string | undefined;
|
|
142
156
|
} | {
|
|
@@ -153,29 +167,15 @@ export declare function branchObservation(ids: BranchIdentities, kind: string, r
|
|
|
153
167
|
encoded?: string | undefined;
|
|
154
168
|
runId: string;
|
|
155
169
|
} | {
|
|
156
|
-
|
|
157
|
-
id: string;
|
|
170
|
+
stepName: string;
|
|
158
171
|
encoded: string;
|
|
159
172
|
runId: string;
|
|
160
|
-
} | {
|
|
161
|
-
effectName: string;
|
|
162
|
-
phase: "intent";
|
|
163
|
-
encoded?: string | undefined;
|
|
164
|
-
runId: string;
|
|
165
173
|
id?: string | undefined;
|
|
166
174
|
} | {
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
event: string;
|
|
176
|
+
id: string;
|
|
169
177
|
encoded: string;
|
|
170
|
-
via: "reconcile" | "run";
|
|
171
|
-
runId: string;
|
|
172
|
-
id?: string | undefined;
|
|
173
|
-
} | {
|
|
174
|
-
effectName: string;
|
|
175
|
-
phase: "uncertain";
|
|
176
|
-
encoded?: string | undefined;
|
|
177
178
|
runId: string;
|
|
178
|
-
id?: string | undefined;
|
|
179
179
|
} | {
|
|
180
180
|
bytes: number;
|
|
181
181
|
sha256?: string | undefined;
|