stitchkit 0.93.0 → 0.94.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 +134 -0
- package/README.md +5 -2
- package/dist/agent-runtime/children-control.d.ts +6 -0
- package/dist/agent-runtime/children-control.d.ts.map +1 -0
- package/dist/agent-runtime/children-spawn.d.ts +6 -0
- package/dist/agent-runtime/children-spawn.d.ts.map +1 -0
- package/dist/agent-runtime/children-state.d.ts +46 -0
- package/dist/agent-runtime/children-state.d.ts.map +1 -0
- package/dist/agent-runtime/children-usage.d.ts +8 -0
- package/dist/agent-runtime/children-usage.d.ts.map +1 -0
- package/dist/agent-runtime/children.d.ts +11 -14
- package/dist/agent-runtime/children.d.ts.map +1 -1
- package/dist/agent-runtime/coding-tool-contract.d.ts +2 -1
- package/dist/agent-runtime/coding-tool-contract.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-types.d.ts +2 -2
- package/dist/agent-runtime/deferred-tool-types.d.ts.map +1 -1
- package/dist/agent-runtime/events.d.ts +1 -1
- package/dist/agent-runtime/events.d.ts.map +1 -1
- package/dist/agent-runtime/managed-tools.d.ts +1 -1
- package/dist/agent-runtime/managed-tools.d.ts.map +1 -1
- package/dist/agent-runtime/observability.d.ts +1 -1
- package/dist/agent-runtime/observability.d.ts.map +1 -1
- package/dist/{agent-runtime-openrouter.d.ts → agent-runtime/openrouter.d.ts} +3 -3
- package/dist/agent-runtime/openrouter.d.ts.map +1 -0
- package/dist/agent-runtime/projections.d.ts +1 -1
- package/dist/agent-runtime/projections.d.ts.map +1 -1
- package/dist/agent-runtime/run-acquisition.d.ts +17 -0
- package/dist/agent-runtime/run-acquisition.d.ts.map +1 -0
- package/dist/agent-runtime/run-execution-state.d.ts +133 -0
- package/dist/agent-runtime/run-execution-state.d.ts.map +1 -0
- package/dist/agent-runtime/run-execution.d.ts +17 -33
- package/dist/agent-runtime/run-execution.d.ts.map +1 -1
- package/dist/agent-runtime/run-failure.d.ts +18 -0
- package/dist/agent-runtime/run-failure.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-attempts.d.ts +6 -0
- package/dist/agent-runtime/run-model-attempts.d.ts.map +1 -0
- package/dist/agent-runtime/run-prompt-history.d.ts +58 -0
- package/dist/agent-runtime/run-prompt-history.d.ts.map +1 -0
- package/dist/agent-runtime/run-provider-ledger.d.ts +26 -0
- package/dist/agent-runtime/run-provider-ledger.d.ts.map +1 -0
- package/dist/agent-runtime/run-stream-parts.d.ts +17 -0
- package/dist/agent-runtime/run-stream-parts.d.ts.map +1 -0
- package/dist/agent-runtime/run-terminal.d.ts +11 -0
- package/dist/agent-runtime/run-terminal.d.ts.map +1 -0
- package/dist/agent-runtime/run-turn-preparation.d.ts +22 -0
- package/dist/agent-runtime/run-turn-preparation.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-admission-gate.d.ts +29 -0
- package/dist/agent-runtime/runtime-admission-gate.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-control.d.ts +9 -0
- package/dist/agent-runtime/runtime-control.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-recovery.d.ts +10 -0
- package/dist/agent-runtime/runtime-recovery.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-state.d.ts +36 -0
- package/dist/agent-runtime/runtime-state.d.ts.map +1 -0
- package/dist/agent-runtime/runtime-submit.d.ts +5 -0
- package/dist/agent-runtime/runtime-submit.d.ts.map +1 -0
- package/dist/agent-runtime/runtime.d.ts +9 -4
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/{agent-runtime-sqlite-bun.d.ts → agent-runtime/sqlite-bun.d.ts} +5 -4
- package/dist/agent-runtime/sqlite-bun.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-events.d.ts +5 -0
- package/dist/agent-runtime/sqlite-events.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-history.d.ts +7 -0
- package/dist/agent-runtime/sqlite-history.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-ledger.d.ts +7 -0
- package/dist/agent-runtime/sqlite-ledger.d.ts.map +1 -0
- package/dist/{agent-runtime-sqlite-node.d.ts → agent-runtime/sqlite-node.d.ts} +5 -4
- package/dist/agent-runtime/sqlite-node.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-reads.d.ts +14 -0
- package/dist/agent-runtime/sqlite-reads.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-rows.d.ts +178 -0
- package/dist/agent-runtime/sqlite-rows.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-schema.d.ts +7 -0
- package/dist/agent-runtime/sqlite-schema.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite-transactions.d.ts +25 -0
- package/dist/agent-runtime/sqlite-transactions.d.ts.map +1 -0
- package/dist/agent-runtime/sqlite.d.ts +10 -6
- package/dist/agent-runtime/sqlite.d.ts.map +1 -1
- package/dist/agent-runtime/store-archive.d.ts +16 -0
- package/dist/agent-runtime/store-archive.d.ts.map +1 -0
- package/dist/{testing/agent-store-conformance.d.ts → agent-runtime/store-conformance.d.ts} +2 -2
- package/dist/agent-runtime/store-conformance.d.ts.map +1 -0
- package/dist/agent-runtime/store-create.d.ts +11 -0
- package/dist/agent-runtime/store-create.d.ts.map +1 -0
- package/dist/agent-runtime/{store-driver.d.ts → store-driver-contract.d.ts} +7 -7
- package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -0
- package/dist/agent-runtime/store-events.d.ts +7 -89
- package/dist/agent-runtime/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/store-memory.d.ts +4 -0
- package/dist/agent-runtime/store-memory.d.ts.map +1 -0
- package/dist/agent-runtime/store-mutate.d.ts +13 -0
- package/dist/agent-runtime/store-mutate.d.ts.map +1 -0
- package/dist/agent-runtime/store-purge.d.ts +1 -1
- package/dist/agent-runtime/store-purge.d.ts.map +1 -1
- package/dist/agent-runtime/store-reads.d.ts +29 -0
- package/dist/agent-runtime/store-reads.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-history.d.ts +10 -0
- package/dist/agent-runtime/store-reduce-history.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-run.d.ts +14 -0
- package/dist/agent-runtime/store-reduce-run.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-shared.d.ts +76 -0
- package/dist/agent-runtime/store-reduce-shared.d.ts.map +1 -0
- package/dist/agent-runtime/store-reduce-terminal.d.ts +6 -0
- package/dist/agent-runtime/store-reduce-terminal.d.ts.map +1 -0
- package/dist/agent-runtime/store-reducer.d.ts +24 -0
- package/dist/agent-runtime/store-reducer.d.ts.map +1 -0
- package/dist/agent-runtime/store-snapshot.d.ts +19 -0
- package/dist/agent-runtime/store-snapshot.d.ts.map +1 -0
- package/dist/agent-runtime/store.d.ts +1 -1
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/application/admission.d.ts +1 -1
- package/dist/application/admission.d.ts.map +1 -1
- package/dist/application/events.d.ts +1 -1
- package/dist/application/events.d.ts.map +1 -1
- package/dist/{server → application}/file-state-store.d.ts +1 -1
- package/dist/application/file-state-store.d.ts.map +1 -0
- package/dist/application/health.d.ts +1 -1
- package/dist/application/health.d.ts.map +1 -1
- package/dist/application/kernel-admission.d.ts +8 -0
- package/dist/application/kernel-admission.d.ts.map +1 -0
- package/dist/application/kernel-contract.d.ts +142 -0
- package/dist/application/kernel-contract.d.ts.map +1 -0
- package/dist/application/kernel-resource-context.d.ts +24 -0
- package/dist/application/kernel-resource-context.d.ts.map +1 -0
- package/dist/application/kernel-restart.d.ts +5 -0
- package/dist/application/kernel-restart.d.ts.map +1 -0
- package/dist/application/kernel-rollback.d.ts +4 -0
- package/dist/application/kernel-rollback.d.ts.map +1 -0
- package/dist/application/kernel-shutdown.d.ts +6 -0
- package/dist/application/kernel-shutdown.d.ts.map +1 -0
- package/dist/application/kernel-start.d.ts +20 -0
- package/dist/application/kernel-start.d.ts.map +1 -0
- package/dist/application/kernel-state.d.ts +116 -0
- package/dist/application/kernel-state.d.ts.map +1 -0
- package/dist/application/kernel.d.ts +9 -140
- package/dist/application/kernel.d.ts.map +1 -1
- package/dist/application/latest-sink.d.ts +1 -1
- package/dist/application/latest-sink.d.ts.map +1 -1
- package/dist/application/opentelemetry.d.ts +1 -1
- package/dist/application/opentelemetry.d.ts.map +1 -1
- package/dist/application/watch-hub.d.ts +2 -2
- package/dist/application/watch-hub.d.ts.map +1 -1
- package/dist/browser/client-multipart.d.ts +1 -1
- package/dist/browser/client-multipart.d.ts.map +1 -1
- package/dist/browser/client-url.d.ts +1 -1
- package/dist/browser/client-url.d.ts.map +1 -1
- package/dist/browser/client.d.ts +1 -1
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/contract-stream.d.ts +1 -1
- package/dist/browser/contract-stream.d.ts.map +1 -1
- package/dist/browser/http.d.ts +1 -1
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/browser/resumable.d.ts +1 -28
- package/dist/browser/resumable.d.ts.map +1 -1
- package/dist/browser/retained.d.ts.map +1 -0
- package/dist/browser/socket-io.d.ts +23 -1
- package/dist/browser/socket-io.d.ts.map +1 -1
- package/dist/browser/stream.d.ts +14 -2
- package/dist/browser/stream.d.ts.map +1 -1
- package/dist/contract/define.d.ts +72 -65
- package/dist/contract/define.d.ts.map +1 -1
- package/dist/{internal/errors.d.ts → contract/normalize.d.ts} +3 -39
- package/dist/contract/normalize.d.ts.map +1 -0
- package/dist/contract/tool-view.d.ts +135 -0
- package/dist/contract/tool-view.d.ts.map +1 -0
- package/dist/declaration/declaration.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-contract.d.ts → durability/contract.d.ts} +2 -2
- package/dist/durability/contract.d.ts.map +1 -0
- package/dist/{agent-runtime/durability.d.ts → durability/engine.d.ts} +4 -4
- package/dist/durability/engine.d.ts.map +1 -0
- package/dist/durability/events.d.ts +101 -0
- package/dist/durability/events.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-json.d.ts → durability/json.d.ts} +1 -1
- package/dist/durability/json.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-ledger.d.ts → durability/ledger.d.ts} +2 -2
- package/dist/durability/ledger.d.ts.map +1 -0
- package/dist/{agent-runtime/durability-scheduler.d.ts → durability/scheduler.d.ts} +2 -2
- package/dist/durability/scheduler.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/browser.d.ts +5 -0
- package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -0
- package/dist/{agent-runtime-browser.js → entrypoints/agent-runtime/browser.js} +3 -3
- package/dist/{agent-runtime-coding-tools.d.ts → entrypoints/agent-runtime/coding-tools.d.ts} +2 -2
- package/dist/entrypoints/agent-runtime/coding-tools.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/coding-tools.js +22 -0
- package/dist/{agent-runtime-harness.d.ts → entrypoints/agent-runtime/harness.d.ts} +2 -2
- package/dist/entrypoints/agent-runtime/harness.d.ts.map +1 -0
- package/dist/{agent-runtime-harness.js → entrypoints/agent-runtime/harness.js} +24 -25
- package/dist/entrypoints/agent-runtime/openrouter.d.ts +2 -0
- package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -0
- package/dist/{agent-runtime-openrouter.js → entrypoints/agent-runtime/openrouter.js} +3 -3
- package/dist/{agent-runtime-sandbox.d.ts → entrypoints/agent-runtime/sandbox.d.ts} +5 -5
- package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -0
- package/dist/{agent-runtime-sandbox.js → entrypoints/agent-runtime/sandbox.js} +11 -12
- package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts +2 -0
- package/dist/entrypoints/agent-runtime/sqlite/bun.d.ts.map +1 -0
- package/dist/{agent-runtime-sqlite-bun.js → entrypoints/agent-runtime/sqlite/bun.js} +8 -6
- package/dist/entrypoints/agent-runtime/sqlite/node.d.ts +2 -0
- package/dist/entrypoints/agent-runtime/sqlite/node.d.ts.map +1 -0
- package/dist/{agent-runtime-sqlite-node.js → entrypoints/agent-runtime/sqlite/node.js} +8 -6
- package/dist/entrypoints/agent-runtime/testing.d.ts +4 -0
- package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/testing.js +1084 -0
- package/dist/{agent-runtime.d.ts → entrypoints/agent-runtime.d.ts} +41 -37
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -0
- package/dist/{agent-runtime.js → entrypoints/agent-runtime.js} +408 -366
- package/dist/{application-diagnostic-journal.d.ts → entrypoints/application/diagnostic-journal.d.ts} +2 -2
- package/dist/entrypoints/application/diagnostic-journal.d.ts.map +1 -0
- package/dist/{application-diagnostic-journal.js → entrypoints/application/diagnostic-journal.js} +3 -3
- package/dist/{application-grammy.d.ts → entrypoints/application/grammy.d.ts} +2 -2
- package/dist/entrypoints/application/grammy.d.ts.map +1 -0
- package/dist/{application-grammy.js → entrypoints/application/grammy.js} +2 -2
- package/dist/{application-opentelemetry.d.ts → entrypoints/application/opentelemetry.d.ts} +2 -2
- package/dist/entrypoints/application/opentelemetry.d.ts.map +1 -0
- package/dist/{application-opentelemetry.js → entrypoints/application/opentelemetry.js} +4 -4
- package/dist/{application-schemas.d.ts → entrypoints/application/schemas.d.ts} +2 -2
- package/dist/entrypoints/application/schemas.d.ts.map +1 -0
- package/dist/{application-schemas.js → entrypoints/application/schemas.js} +2 -2
- package/dist/{application.d.ts → entrypoints/application.d.ts} +22 -21
- package/dist/entrypoints/application.d.ts.map +1 -0
- package/dist/{application.js → entrypoints/application.js} +24 -22
- package/dist/entrypoints/bin/upgrade-cli.d.ts.map +1 -0
- package/dist/{upgrade-cli.js → entrypoints/bin/upgrade-cli.js} +3 -3
- package/dist/{cli.d.ts → entrypoints/cli.d.ts} +15 -15
- package/dist/entrypoints/cli.d.ts.map +1 -0
- package/dist/{cli.js → entrypoints/cli.js} +30 -32
- package/dist/entrypoints/contract.d.ts +9 -0
- package/dist/entrypoints/contract.d.ts.map +1 -0
- package/dist/{contract/index.js → entrypoints/contract.js} +14 -6
- package/dist/entrypoints/declaration.d.ts +2 -0
- package/dist/entrypoints/declaration.d.ts.map +1 -0
- package/dist/{declaration.js → entrypoints/declaration.js} +1 -1
- package/dist/{files.d.ts → entrypoints/files.d.ts} +2 -2
- package/dist/entrypoints/files.d.ts.map +1 -0
- package/dist/{files.js → entrypoints/files.js} +3 -3
- package/dist/{geo.d.ts → entrypoints/geo.d.ts} +1 -1
- package/dist/entrypoints/geo.d.ts.map +1 -0
- package/dist/{geo.js → entrypoints/geo.js} +4 -4
- package/dist/entrypoints/google.d.ts +2 -0
- package/dist/entrypoints/google.d.ts.map +1 -0
- package/dist/{google.js → entrypoints/google.js} +1 -1
- package/dist/{index.d.ts → entrypoints/index.d.ts} +14 -13
- package/dist/entrypoints/index.d.ts.map +1 -0
- package/dist/{index.js → entrypoints/index.js} +99 -33
- package/dist/{live.d.ts → entrypoints/live.d.ts} +4 -4
- package/dist/entrypoints/live.d.ts.map +1 -0
- package/dist/{live.js → entrypoints/live.js} +6 -4
- package/dist/{node.d.ts → entrypoints/node.d.ts} +11 -11
- package/dist/entrypoints/node.d.ts.map +1 -0
- package/dist/{node.js → entrypoints/node.js} +20 -16
- package/dist/entrypoints/oauth.d.ts +2 -0
- package/dist/entrypoints/oauth.d.ts.map +1 -0
- package/dist/{oauth.js → entrypoints/oauth.js} +3 -3
- package/dist/{observability/index.d.ts → entrypoints/observability.d.ts} +11 -11
- package/dist/entrypoints/observability.d.ts.map +1 -0
- package/dist/{observability/index.js → entrypoints/observability.js} +9 -11
- package/dist/entrypoints/primitives.d.ts +3 -0
- package/dist/entrypoints/primitives.d.ts.map +1 -0
- package/dist/{primitives.js → entrypoints/primitives.js} +1 -6
- package/dist/{react.d.ts → entrypoints/react.d.ts} +4 -4
- package/dist/entrypoints/react.d.ts.map +1 -0
- package/dist/{react.js → entrypoints/react.js} +3 -3
- package/dist/{release.d.ts → entrypoints/release.d.ts} +4 -4
- package/dist/entrypoints/release.d.ts.map +1 -0
- package/dist/{release.js → entrypoints/release.js} +1 -1
- package/dist/{remote.d.ts → entrypoints/remote.d.ts} +1 -1
- package/dist/entrypoints/remote.d.ts.map +1 -0
- package/dist/entrypoints/remote.js +66 -0
- package/dist/{server/index.d.ts → entrypoints/server.d.ts} +35 -34
- package/dist/entrypoints/server.d.ts.map +1 -0
- package/dist/{server/index.js → entrypoints/server.js} +294 -244
- package/dist/{telegram.d.ts → entrypoints/telegram.d.ts} +2 -2
- package/dist/entrypoints/telegram.d.ts.map +1 -0
- package/dist/{telegram.js → entrypoints/telegram.js} +1 -1
- package/dist/entrypoints/testing.d.ts +9 -0
- package/dist/entrypoints/testing.d.ts.map +1 -0
- package/dist/{testing.js → entrypoints/testing.js} +80 -919
- package/dist/{tools/connections/index.d.ts → entrypoints/tools/connections.d.ts} +6 -7
- package/dist/entrypoints/tools/connections.d.ts.map +1 -0
- package/dist/{tools/connections/index.js → entrypoints/tools/connections.js} +7 -4
- package/dist/{tools-contract.d.ts → entrypoints/tools/contract.d.ts} +5 -5
- package/dist/entrypoints/tools/contract.d.ts.map +1 -0
- package/dist/{tools-contract.js → entrypoints/tools/contract.js} +4 -4
- package/dist/{tool-invoker.d.ts → entrypoints/tools/invoker.d.ts} +2 -2
- package/dist/entrypoints/tools/invoker.d.ts.map +1 -0
- package/dist/entrypoints/tools/invoker.js +20 -0
- package/dist/entrypoints/tools.d.ts +51 -0
- package/dist/entrypoints/tools.d.ts.map +1 -0
- package/dist/{tools.js → entrypoints/tools.js} +1787 -1751
- package/dist/{tracking-server.d.ts → entrypoints/tracking/server.d.ts} +8 -8
- package/dist/entrypoints/tracking/server.d.ts.map +1 -0
- package/dist/{tracking.d.ts → entrypoints/tracking.d.ts} +15 -15
- package/dist/entrypoints/tracking.d.ts.map +1 -0
- package/dist/{tracking.js → entrypoints/tracking.js} +5 -8
- package/dist/google/google.d.ts.map +1 -0
- package/dist/{index-a916km3r.js → index-0b1ess5e.js} +6 -13
- package/dist/{index-zwkgfq1s.js → index-1nd48tm9.js} +113 -118
- package/dist/{index-7zbps32p.js → index-1zbbzgfh.js} +2 -2
- package/dist/{index-mzvgxp0n.js → index-2cr1cqhn.js} +16 -4
- package/dist/{index-f9mb610r.js → index-35mh5bhj.js} +2 -2
- package/dist/index-48ffdxgk.js +6 -0
- package/dist/index-58k4fp34.js +1023 -0
- package/dist/{index-p13mwz16.js → index-83bdg97s.js} +1 -1
- package/dist/index-97ac4gph.js +3618 -0
- package/dist/{index-kw9t5ayn.js → index-cq4qfycf.js} +5 -5
- package/dist/{index-7gnkny4z.js → index-d9pk3td4.js} +1 -1
- package/dist/{index-e42wzzz5.js → index-dcpdvjsc.js} +7 -7
- package/dist/{index-h9etkkyk.js → index-dydjcp8z.js} +102 -25
- package/dist/{index-sr93cwf9.js → index-e2z3ahw9.js} +2 -2
- package/dist/{index-yewwh1w4.js → index-e87kakm4.js} +96 -11
- package/dist/{index-cby4ar3v.js → index-eqqvgdb3.js} +1 -1
- package/dist/index-fdp6hdxn.js +942 -0
- package/dist/{index-0a349c33.js → index-gyr48nzg.js} +125 -198
- package/dist/{index-wnfk50r0.js → index-h6eeys1v.js} +1 -1
- package/dist/{index-77fekveh.js → index-hffjpmq9.js} +1 -15
- package/dist/{index-yn8remb1.js → index-j05z5gn4.js} +50 -14
- package/dist/index-k5hsfc3j.js +31 -0
- package/dist/{index-fq77yfzc.js → index-kj2wbeta.js} +1 -1
- package/dist/index-kvj7f4hq.js +39 -0
- package/dist/{index-4fpa9dy2.js → index-m9zn6cpq.js} +2 -2
- package/dist/{index-2na0qrfn.js → index-mdzh02yc.js} +7 -7
- package/dist/{index-ywd0y6m1.js → index-mkm15s49.js} +1 -1
- package/dist/index-mp5sn43f.js +1084 -0
- package/dist/{index-3bmnp41g.js → index-n6hxg8as.js} +507 -419
- package/dist/index-ngfhvfpd.js +30 -0
- package/dist/{index-e0znv5gn.js → index-p5r7qpdd.js} +2 -93
- package/dist/{index-n0f51dfn.js → index-p81267c2.js} +608 -549
- package/dist/{index-wc4x00bn.js → index-qwhynv6x.js} +1 -1
- package/dist/index-r7nmqpsg.js +154 -0
- package/dist/{index-bx75zwt7.js → index-rewkc2hj.js} +5 -4
- package/dist/{index-9f8ztey6.js → index-sees8yf8.js} +2 -2
- package/dist/{index-vjpvjqpn.js → index-v38qyerb.js} +16 -2
- package/dist/{index-2c2bjw3s.js → index-vcvkq30w.js} +3 -3
- package/dist/index-wqgjfstn.js +18 -0
- package/dist/{index-f477k430.js → index-x4799c19.js} +1 -1
- package/dist/{index-cxqhvq21.js → index-xnj9bgxe.js} +142 -129
- package/dist/index-xsqjkha9.js +281 -0
- package/dist/{index-6kyksz9y.js → index-yw4fzmdz.js} +1 -1
- package/dist/{index-3xwxfj4z.js → index-zeemqhqx.js} +1 -1
- package/dist/{index-tmwcrptx.js → index-zfrhfn82.js} +1 -1
- package/dist/index-znfs20ss.js +98 -0
- package/dist/internal/backoff.d.ts +29 -0
- package/dist/internal/backoff.d.ts.map +1 -0
- package/dist/internal/canonical-json.d.ts +21 -11
- package/dist/internal/canonical-json.d.ts.map +1 -1
- package/dist/internal/channel.d.ts.map +1 -0
- package/dist/internal/logger.d.ts.map +1 -0
- package/dist/internal/request.d.ts.map +1 -0
- package/dist/internal/stable-digest.d.ts +0 -43
- package/dist/internal/stable-digest.d.ts.map +1 -1
- package/dist/internal/typed.d.ts +0 -8
- package/dist/internal/typed.d.ts.map +1 -1
- package/dist/internal/zod-issues.d.ts +38 -0
- package/dist/internal/zod-issues.d.ts.map +1 -0
- package/dist/{tools/json-schema-dialect.d.ts → json-schema/dialect.d.ts} +1 -1
- package/dist/json-schema/dialect.d.ts.map +1 -0
- package/dist/json-schema/json-schema.d.ts.map +1 -0
- package/dist/live/watch-delta.d.ts.map +1 -1
- package/dist/{oauth.d.ts → oauth/authorization-code.d.ts} +1 -1
- package/dist/oauth/authorization-code.d.ts.map +1 -0
- package/dist/observability/audit.d.ts +2 -2
- package/dist/observability/audit.d.ts.map +1 -1
- package/dist/observability/bounded-logger.d.ts +1 -1
- package/dist/observability/bounded-logger.d.ts.map +1 -1
- package/dist/{internal/observability-sink.d.ts → observability/bounded-sink.d.ts} +2 -2
- package/dist/observability/bounded-sink.d.ts.map +1 -0
- package/dist/observability/context.d.ts +1 -1
- package/dist/observability/context.d.ts.map +1 -1
- package/dist/observability/event.d.ts +1 -1
- package/dist/observability/event.d.ts.map +1 -1
- package/dist/observability/work.d.ts +1 -1
- package/dist/observability/work.d.ts.map +1 -1
- package/dist/primitives/audit.d.ts +1 -1
- package/dist/primitives/audit.d.ts.map +1 -1
- package/dist/primitives/export-operation.d.ts +4 -2
- package/dist/primitives/export-operation.d.ts.map +1 -1
- package/dist/realtime/socket.d.ts +1 -1
- package/dist/realtime/socket.d.ts.map +1 -1
- package/dist/server/context-contribution.d.ts +1 -1
- package/dist/server/context-contribution.d.ts.map +1 -1
- package/dist/server/context.d.ts +2 -2
- package/dist/server/context.d.ts.map +1 -1
- package/dist/server/contract-method.d.ts +15 -0
- package/dist/server/contract-method.d.ts.map +1 -0
- package/dist/server/contract-stream.d.ts +1 -1
- package/dist/server/contract-stream.d.ts.map +1 -1
- package/dist/server/create.d.ts +8 -0
- package/dist/server/create.d.ts.map +1 -1
- package/dist/server/endpoint-dispatch.d.ts +10 -0
- package/dist/server/endpoint-dispatch.d.ts.map +1 -0
- package/dist/server/endpoint-response.d.ts +18 -0
- package/dist/server/endpoint-response.d.ts.map +1 -0
- package/dist/server/error-dispatch.d.ts +17 -1
- package/dist/server/error-dispatch.d.ts.map +1 -1
- package/dist/server/error-hook.d.ts +2 -2
- package/dist/server/error-hook.d.ts.map +1 -1
- package/dist/server/handler-state.d.ts +44 -0
- package/dist/server/handler-state.d.ts.map +1 -0
- package/dist/server/implement.d.ts +1 -1
- package/dist/server/implement.d.ts.map +1 -1
- package/dist/server/middleware/auth.d.ts +1 -1
- package/dist/server/middleware/auth.d.ts.map +1 -1
- package/dist/server/middleware/cors.d.ts +17 -0
- package/dist/server/middleware/cors.d.ts.map +1 -1
- package/dist/server/middleware/trust-fence.d.ts +1 -1
- package/dist/server/middleware/trust-fence.d.ts.map +1 -1
- package/dist/server/multipart.d.ts +1 -1
- package/dist/server/multipart.d.ts.map +1 -1
- package/dist/{tools/oauth-metadata.d.ts → server/oauth/metadata.d.ts} +2 -2
- package/dist/server/oauth/metadata.d.ts.map +1 -0
- package/dist/{tools/oauth-provider.d.ts → server/oauth/provider.d.ts} +2 -2
- package/dist/server/oauth/provider.d.ts.map +1 -0
- package/dist/server/realtime.d.ts +1 -1
- package/dist/server/realtime.d.ts.map +1 -1
- package/dist/server/request-completion.d.ts +16 -0
- package/dist/server/request-completion.d.ts.map +1 -0
- package/dist/server/response-metadata.d.ts +1 -1
- package/dist/server/response-metadata.d.ts.map +1 -1
- package/dist/server/route-table.d.ts +9 -0
- package/dist/server/route-table.d.ts.map +1 -0
- package/dist/server/stream.d.ts +0 -13
- package/dist/server/stream.d.ts.map +1 -1
- package/dist/server/types.d.ts +7 -4
- package/dist/server/types.d.ts.map +1 -1
- package/dist/testing/handler-clients.d.ts +31 -0
- package/dist/testing/handler-clients.d.ts.map +1 -0
- package/dist/testing/managed-resource-conformance-scenarios.d.ts.map +1 -1
- package/dist/testing/surface-conformance.d.ts +2 -1
- package/dist/testing/surface-conformance.d.ts.map +1 -1
- package/dist/testing/surface-manifest.d.ts +30 -4
- package/dist/testing/surface-manifest.d.ts.map +1 -1
- package/dist/tools/{cli-args.d.ts → cli/args.d.ts} +1 -1
- package/dist/tools/cli/args.d.ts.map +1 -0
- package/dist/tools/{cli-checkpoint.d.ts → cli/checkpoint.d.ts} +1 -1
- package/dist/tools/cli/checkpoint.d.ts.map +1 -0
- package/dist/tools/{cli-command.d.ts → cli/command.d.ts} +4 -4
- package/dist/tools/cli/command.d.ts.map +1 -0
- package/dist/tools/{cli.d.ts → cli/config.d.ts} +5 -9
- package/dist/tools/cli/config.d.ts.map +1 -0
- package/dist/tools/cli/create-cli.d.ts +36 -0
- package/dist/tools/cli/create-cli.d.ts.map +1 -0
- package/dist/tools/cli/download.d.ts +8 -0
- package/dist/tools/cli/download.d.ts.map +1 -0
- package/dist/tools/{cli-format.d.ts → cli/format.d.ts} +2 -2
- package/dist/tools/cli/format.d.ts.map +1 -0
- package/dist/tools/cli/help.d.ts +24 -0
- package/dist/tools/cli/help.d.ts.map +1 -0
- package/dist/tools/{cli-installer.d.ts → cli/installer.d.ts} +2 -2
- package/dist/tools/cli/installer.d.ts.map +1 -0
- package/dist/tools/{cli-invoke.d.ts → cli/invoke.d.ts} +8 -8
- package/dist/tools/cli/invoke.d.ts.map +1 -0
- package/dist/tools/cli/io.d.ts +10 -0
- package/dist/tools/cli/io.d.ts.map +1 -0
- package/dist/tools/cli/managed-surface.d.ts +30 -0
- package/dist/tools/cli/managed-surface.d.ts.map +1 -0
- package/dist/tools/{cli-manifest.d.ts → cli/manifest.d.ts} +1 -1
- package/dist/tools/cli/manifest.d.ts.map +1 -0
- package/dist/tools/{cli-policy.d.ts → cli/policy.d.ts} +2 -2
- package/dist/tools/cli/policy.d.ts.map +1 -0
- package/dist/tools/cli/prepare.d.ts +14 -0
- package/dist/tools/cli/prepare.d.ts.map +1 -0
- package/dist/tools/{cli-profile.d.ts → cli/profile.d.ts} +2 -2
- package/dist/tools/cli/profile.d.ts.map +1 -0
- package/dist/tools/cli/run-managed.d.ts +5 -0
- package/dist/tools/cli/run-managed.d.ts.map +1 -0
- package/dist/tools/cli/run-native.d.ts +9 -0
- package/dist/tools/cli/run-native.d.ts.map +1 -0
- package/dist/tools/cli/session.d.ts +40 -0
- package/dist/tools/cli/session.d.ts.map +1 -0
- package/dist/tools/{cli-signature.d.ts → cli/signature.d.ts} +2 -2
- package/dist/tools/cli/signature.d.ts.map +1 -0
- package/dist/tools/{cli-stream.d.ts → cli/stream.d.ts} +4 -4
- package/dist/tools/cli/stream.d.ts.map +1 -0
- package/dist/tools/{cli-update.d.ts → cli/update.d.ts} +3 -3
- package/dist/tools/cli/update.d.ts.map +1 -0
- package/dist/tools/{cli-view.d.ts → cli/view.d.ts} +2 -2
- package/dist/tools/cli/view.d.ts.map +1 -0
- package/dist/tools/{cli-wait.d.ts → cli/wait.d.ts} +2 -2
- package/dist/tools/cli/wait.d.ts.map +1 -0
- package/dist/tools/connections/runtime.d.ts +1 -1
- package/dist/tools/connections/runtime.d.ts.map +1 -1
- package/dist/tools/connections/types.d.ts +3 -3
- package/dist/tools/connections/types.d.ts.map +1 -1
- package/dist/tools/durability-context.d.ts +1 -1
- package/dist/tools/durability-context.d.ts.map +1 -1
- package/dist/tools/execute.d.ts +30 -3
- package/dist/tools/execute.d.ts.map +1 -1
- package/dist/tools/internal/surface-projector.d.ts +8 -6
- package/dist/tools/internal/surface-projector.d.ts.map +1 -1
- package/dist/tools/internal/tool-view.d.ts +41 -0
- package/dist/tools/internal/tool-view.d.ts.map +1 -0
- package/dist/tools/invoker.d.ts +11 -3
- package/dist/tools/invoker.d.ts.map +1 -1
- package/dist/tools/list-names.d.ts +3 -3
- package/dist/tools/list-names.d.ts.map +1 -1
- package/dist/tools/manifest.d.ts +2 -2
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/{mcp-app.d.ts → mcp/app.d.ts} +1 -1
- package/dist/tools/mcp/app.d.ts.map +1 -0
- package/dist/tools/{mcp-catalog.d.ts → mcp/catalog.d.ts} +2 -2
- package/dist/tools/mcp/catalog.d.ts.map +1 -0
- package/dist/tools/{mcp-handler.d.ts → mcp/handler.d.ts} +5 -5
- package/dist/tools/mcp/handler.d.ts.map +1 -0
- package/dist/tools/{mcp.d.ts → mcp/mount.d.ts} +9 -9
- package/dist/tools/mcp/mount.d.ts.map +1 -0
- package/dist/tools/{mcp-prepare.d.ts → mcp/prepare.d.ts} +9 -9
- package/dist/tools/mcp/prepare.d.ts.map +1 -0
- package/dist/tools/{mcp-progress.d.ts → mcp/progress.d.ts} +2 -2
- package/dist/tools/mcp/progress.d.ts.map +1 -0
- package/dist/tools/mcp/register.d.ts +35 -0
- package/dist/tools/mcp/register.d.ts.map +1 -0
- package/dist/tools/{mcp-round-policy.d.ts → mcp/round-policy.d.ts} +2 -2
- package/dist/tools/mcp/round-policy.d.ts.map +1 -0
- package/dist/tools/{mcp-round.d.ts → mcp/round.d.ts} +4 -4
- package/dist/tools/mcp/round.d.ts.map +1 -0
- package/dist/tools/mcp/runtime-tools.d.ts +24 -0
- package/dist/tools/mcp/runtime-tools.d.ts.map +1 -0
- package/dist/tools/{mcp-stdio-signals.d.ts → mcp/stdio-signals.d.ts} +3 -3
- package/dist/tools/mcp/stdio-signals.d.ts.map +1 -0
- package/dist/tools/{mcp-stdio.d.ts → mcp/stdio.d.ts} +4 -4
- package/dist/tools/mcp/stdio.d.ts.map +1 -0
- package/dist/tools/{mcp-trace.d.ts → mcp/trace.d.ts} +1 -1
- package/dist/tools/mcp/trace.d.ts.map +1 -0
- package/dist/tools/mount.d.ts +12 -7
- package/dist/tools/mount.d.ts.map +1 -1
- package/dist/tools/native-definition.d.ts +3 -3
- package/dist/tools/native-definition.d.ts.map +1 -1
- package/dist/tools/operations/async-operation-binding-types.d.ts +127 -0
- package/dist/tools/operations/async-operation-binding-types.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-binding.d.ts +28 -0
- package/dist/tools/operations/async-operation-binding.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-canonical-types.d.ts +110 -0
- package/dist/tools/operations/async-operation-canonical-types.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-canonical.d.ts +7 -0
- package/dist/tools/operations/async-operation-canonical.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-contract.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-id.d.ts +23 -0
- package/dist/tools/operations/async-operation-id.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-runtime-tools.d.ts +40 -0
- package/dist/tools/operations/async-operation-runtime-tools.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-runtime-types.d.ts +68 -0
- package/dist/tools/operations/async-operation-runtime-types.d.ts.map +1 -0
- package/dist/tools/operations/async-operation-runtime.d.ts +5 -0
- package/dist/tools/operations/async-operation-runtime.d.ts.map +1 -0
- package/dist/tools/{define-wait-tool.d.ts → operations/define-wait-tool.d.ts} +2 -2
- package/dist/tools/operations/define-wait-tool.d.ts.map +1 -0
- package/dist/tools/operations/mount-wait.d.ts.map +1 -0
- package/dist/tools/operations/wait-core.d.ts.map +1 -0
- package/dist/tools/remote.d.ts +1 -1
- package/dist/tools/remote.d.ts.map +1 -1
- package/dist/tools/runtime-tool.d.ts +11 -4
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools/schema/coerce.d.ts.map +1 -0
- package/dist/tools/schema/flatten-join.d.ts.map +1 -0
- package/dist/tools/schema/flatten.d.ts.map +1 -0
- package/dist/tools/schema/portable-formats.d.ts.map +1 -0
- package/dist/tools/{presentation.d.ts → schema/presentation.d.ts} +2 -0
- package/dist/tools/schema/presentation.d.ts.map +1 -0
- package/dist/tools/schema/schema.d.ts.map +1 -0
- package/dist/tools/schema/untyped-properties.d.ts.map +1 -0
- package/dist/tools/surface.d.ts +2 -3
- package/dist/tools/surface.d.ts.map +1 -1
- package/dist/tools/toolkit.d.ts +4 -4
- package/dist/tools/toolkit.d.ts.map +1 -1
- package/dist/tools/{define-download-tool.d.ts → transfer/define-download-tool.d.ts} +4 -4
- package/dist/tools/transfer/define-download-tool.d.ts.map +1 -0
- package/dist/tools/{define-upload-tool.d.ts → transfer/define-upload-tool.d.ts} +3 -3
- package/dist/tools/transfer/define-upload-tool.d.ts.map +1 -0
- package/dist/tools/{define-view-file-tool.d.ts → transfer/define-view-file-tool.d.ts} +2 -2
- package/dist/tools/transfer/define-view-file-tool.d.ts.map +1 -0
- package/dist/tools/{download-core.d.ts → transfer/download-core.d.ts} +2 -2
- package/dist/tools/transfer/download-core.d.ts.map +1 -0
- package/dist/tools/{managed-file-error.d.ts → transfer/managed-file-error.d.ts} +1 -1
- package/dist/tools/transfer/managed-file-error.d.ts.map +1 -0
- package/dist/tools/{mount-download.d.ts → transfer/mount-download.d.ts} +1 -1
- package/dist/tools/transfer/mount-download.d.ts.map +1 -0
- package/dist/tools/{mount-upload.d.ts → transfer/mount-upload.d.ts} +1 -1
- package/dist/tools/transfer/mount-upload.d.ts.map +1 -0
- package/dist/tools/transfer/native-result.d.ts.map +1 -0
- package/dist/tools/{upload-core.d.ts → transfer/upload-core.d.ts} +1 -1
- package/dist/tools/transfer/upload-core.d.ts.map +1 -0
- package/dist/tools/transfer/view-file-contract.d.ts.map +1 -0
- package/dist/tools/{view-file.d.ts → transfer/view-file.d.ts} +1 -1
- package/dist/tools/transfer/view-file.d.ts.map +1 -0
- package/dist/tools/transports.d.ts +1 -1
- package/dist/tools/transports.d.ts.map +1 -1
- package/dist/tracking/contract.d.ts +1 -1
- package/dist/tracking/contract.d.ts.map +1 -1
- package/llms/agent-runtime-browser.txt +33 -0
- package/llms/agent-runtime-coding-tools.txt +58 -0
- package/llms/agent-runtime-harness.txt +45 -0
- package/llms/agent-runtime-openrouter.txt +22 -0
- package/llms/agent-runtime-sandbox.txt +159 -0
- package/llms/agent-runtime-sqlite-bun.txt +29 -0
- package/llms/agent-runtime-sqlite-node.txt +26 -0
- package/llms/agent-runtime-testing.txt +30 -0
- package/llms/agent-runtime.2.txt +550 -0
- package/llms/agent-runtime.3.txt +311 -0
- package/llms/agent-runtime.txt +893 -0
- package/llms/application-diagnostic-journal.txt +30 -0
- package/llms/application-grammy.txt +27 -0
- package/llms/application-opentelemetry.txt +27 -0
- package/llms/application-schemas.txt +42 -0
- package/llms/application.2.txt +223 -0
- package/llms/application.txt +1144 -0
- package/llms/cli.txt +977 -0
- package/llms/contract.txt +606 -0
- package/llms/declaration.txt +286 -0
- package/llms/files.txt +30 -0
- package/llms/geo.txt +114 -0
- package/llms/google.txt +27 -0
- package/llms/live.txt +471 -0
- package/llms/node.txt +43 -0
- package/llms/oauth.txt +136 -0
- package/llms/observability.txt +893 -0
- package/llms/primitives.txt +158 -0
- package/llms/react.txt +184 -0
- package/llms/release.txt +176 -0
- package/llms/remote.txt +25 -0
- package/llms/server.2.txt +361 -0
- package/llms/server.3.txt +1031 -0
- package/llms/server.4.txt +905 -0
- package/llms/server.5.txt +250 -0
- package/llms/server.txt +996 -0
- package/llms/stitchkit.2.txt +836 -0
- package/llms/stitchkit.3.txt +147 -0
- package/llms/stitchkit.txt +260 -0
- package/llms/telegram.txt +30 -0
- package/llms/testing.txt +676 -0
- package/llms/tools-connections.txt +45 -0
- package/llms/tools-contract.txt +9 -0
- package/llms/tools-invoker.txt +9 -0
- package/llms/tools.2.txt +838 -0
- package/llms/tools.txt +1004 -0
- package/llms/tracking-server.txt +32 -0
- package/llms/tracking.txt +263 -0
- package/llms/upgrading-0.37.0-0.50.0.txt +947 -0
- package/llms/upgrading-0.53.0-0.67.0.txt +1174 -0
- package/llms/upgrading-0.68.0-0.94.0.txt +1159 -0
- package/llms/upgrading.txt +215 -0
- package/llms-full.txt +214 -75
- package/llms.txt +54 -5
- package/package.json +84 -83
- package/dist/agent-runtime/durability-contract.d.ts.map +0 -1
- package/dist/agent-runtime/durability-json.d.ts.map +0 -1
- package/dist/agent-runtime/durability-ledger.d.ts.map +0 -1
- package/dist/agent-runtime/durability-scheduler.d.ts.map +0 -1
- package/dist/agent-runtime/durability.d.ts.map +0 -1
- package/dist/agent-runtime/store-driver.d.ts.map +0 -1
- package/dist/agent-runtime-browser.d.ts +0 -5
- package/dist/agent-runtime-browser.d.ts.map +0 -1
- package/dist/agent-runtime-coding-tools.d.ts.map +0 -1
- package/dist/agent-runtime-coding-tools.js +0 -23
- package/dist/agent-runtime-harness.d.ts.map +0 -1
- package/dist/agent-runtime-openrouter.d.ts.map +0 -1
- package/dist/agent-runtime-sandbox.d.ts.map +0 -1
- package/dist/agent-runtime-sqlite-bun.d.ts.map +0 -1
- package/dist/agent-runtime-sqlite-node.d.ts.map +0 -1
- package/dist/agent-runtime-testing.d.ts +0 -3
- package/dist/agent-runtime-testing.d.ts.map +0 -1
- package/dist/agent-runtime-testing.js +0 -156
- package/dist/agent-runtime.d.ts.map +0 -1
- package/dist/application/channel.d.ts.map +0 -1
- package/dist/application-diagnostic-journal.d.ts.map +0 -1
- package/dist/application-grammy.d.ts.map +0 -1
- package/dist/application-opentelemetry.d.ts.map +0 -1
- package/dist/application-schemas.d.ts.map +0 -1
- package/dist/application.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/contract/index.d.ts +0 -8
- package/dist/contract/index.d.ts.map +0 -1
- package/dist/declaration.d.ts.map +0 -1
- package/dist/files.d.ts.map +0 -1
- package/dist/geo.d.ts.map +0 -1
- package/dist/google.d.ts.map +0 -1
- package/dist/index-0j3vcp5m.js +0 -28
- package/dist/index-a11g2kry.js +0 -866
- package/dist/index-cnyk6te3.js +0 -77
- package/dist/index-fadnxwna.js +0 -1046
- package/dist/index-hrbajay7.js +0 -1196
- package/dist/index-s8cnx02s.js +0 -90
- package/dist/index-v5573g1k.js +0 -142
- package/dist/index-vk3kq9sb.js +0 -3344
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/errors.d.ts.map +0 -1
- package/dist/internal/observability-sink.d.ts.map +0 -1
- package/dist/live.d.ts.map +0 -1
- package/dist/logger.d.ts.map +0 -1
- package/dist/node.d.ts.map +0 -1
- package/dist/oauth.d.ts.map +0 -1
- package/dist/observability/index.d.ts.map +0 -1
- package/dist/primitives.d.ts +0 -3
- package/dist/primitives.d.ts.map +0 -1
- package/dist/react.d.ts.map +0 -1
- package/dist/release.d.ts.map +0 -1
- package/dist/remote.d.ts.map +0 -1
- package/dist/remote.js +0 -88
- package/dist/retained.d.ts.map +0 -1
- package/dist/server/file-state-store.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/request.d.ts.map +0 -1
- package/dist/telegram.d.ts.map +0 -1
- package/dist/testing/agent-store-conformance.d.ts.map +0 -1
- package/dist/testing.d.ts +0 -39
- package/dist/testing.d.ts.map +0 -1
- package/dist/tool-invoker.d.ts.map +0 -1
- package/dist/tool-invoker.js +0 -21
- package/dist/tools/async-operation-contract.d.ts.map +0 -1
- package/dist/tools/async-operation.d.ts +0 -332
- package/dist/tools/async-operation.d.ts.map +0 -1
- package/dist/tools/cli-args.d.ts.map +0 -1
- package/dist/tools/cli-checkpoint.d.ts.map +0 -1
- package/dist/tools/cli-command.d.ts.map +0 -1
- package/dist/tools/cli-format.d.ts.map +0 -1
- package/dist/tools/cli-installer.d.ts.map +0 -1
- package/dist/tools/cli-invoke.d.ts.map +0 -1
- package/dist/tools/cli-manifest.d.ts.map +0 -1
- package/dist/tools/cli-policy.d.ts.map +0 -1
- package/dist/tools/cli-profile.d.ts.map +0 -1
- package/dist/tools/cli-signature.d.ts.map +0 -1
- package/dist/tools/cli-stream.d.ts.map +0 -1
- package/dist/tools/cli-update.d.ts.map +0 -1
- package/dist/tools/cli-view.d.ts.map +0 -1
- package/dist/tools/cli-wait.d.ts.map +0 -1
- package/dist/tools/cli.d.ts.map +0 -1
- package/dist/tools/coerce.d.ts.map +0 -1
- package/dist/tools/connections/index.d.ts.map +0 -1
- package/dist/tools/define-download-tool.d.ts.map +0 -1
- package/dist/tools/define-upload-tool.d.ts.map +0 -1
- package/dist/tools/define-view-file-tool.d.ts.map +0 -1
- package/dist/tools/define-wait-tool.d.ts.map +0 -1
- package/dist/tools/download-core.d.ts.map +0 -1
- package/dist/tools/flatten-join.d.ts.map +0 -1
- package/dist/tools/flatten.d.ts.map +0 -1
- package/dist/tools/json-schema-dialect.d.ts.map +0 -1
- package/dist/tools/json-schema.d.ts.map +0 -1
- package/dist/tools/managed-file-error.d.ts.map +0 -1
- package/dist/tools/mcp-app.d.ts.map +0 -1
- package/dist/tools/mcp-catalog.d.ts.map +0 -1
- package/dist/tools/mcp-handler.d.ts.map +0 -1
- package/dist/tools/mcp-prepare.d.ts.map +0 -1
- package/dist/tools/mcp-progress.d.ts.map +0 -1
- package/dist/tools/mcp-round-policy.d.ts.map +0 -1
- package/dist/tools/mcp-round.d.ts.map +0 -1
- package/dist/tools/mcp-stdio-signals.d.ts.map +0 -1
- package/dist/tools/mcp-stdio.d.ts.map +0 -1
- package/dist/tools/mcp-trace.d.ts.map +0 -1
- package/dist/tools/mcp.d.ts.map +0 -1
- package/dist/tools/mount-download.d.ts.map +0 -1
- package/dist/tools/mount-upload.d.ts.map +0 -1
- package/dist/tools/mount-wait.d.ts.map +0 -1
- package/dist/tools/native-mcp.d.ts +0 -20
- package/dist/tools/native-mcp.d.ts.map +0 -1
- package/dist/tools/native-result.d.ts.map +0 -1
- package/dist/tools/oauth-metadata.d.ts.map +0 -1
- package/dist/tools/oauth-provider.d.ts.map +0 -1
- package/dist/tools/portable-formats.d.ts.map +0 -1
- package/dist/tools/presentation.d.ts.map +0 -1
- package/dist/tools/schema.d.ts.map +0 -1
- package/dist/tools/untyped-properties.d.ts.map +0 -1
- package/dist/tools/upload-core.d.ts.map +0 -1
- package/dist/tools/view-file-contract.d.ts.map +0 -1
- package/dist/tools/view-file.d.ts.map +0 -1
- package/dist/tools/wait-core.d.ts.map +0 -1
- package/dist/tools-contract.d.ts.map +0 -1
- package/dist/tools.d.ts +0 -50
- package/dist/tools.d.ts.map +0 -1
- package/dist/tracking-server.d.ts.map +0 -1
- package/dist/tracking.d.ts.map +0 -1
- package/dist/upgrade-cli.d.ts.map +0 -1
- package/dist/{retained.d.ts → browser/retained.d.ts} +0 -0
- package/dist/{declaration.d.ts → declaration/declaration.d.ts} +0 -0
- package/dist/{upgrade-cli.d.ts → entrypoints/bin/upgrade-cli.d.ts} +0 -0
- package/dist/{tracking-server.js → entrypoints/tracking/server.js} +0 -0
- package/dist/{google.d.ts → google/google.d.ts} +0 -0
- package/dist/{index-pq95qkbf.js → index-5jm36zv1.js} +0 -0
- package/dist/{index-actkayzn.js → index-70yj2ebz.js} +3 -3
- /package/dist/{application → internal}/channel.d.ts +0 -0
- /package/dist/{logger.d.ts → internal/logger.d.ts} +0 -0
- /package/dist/{server → internal}/request.d.ts +0 -0
- /package/dist/{tools → json-schema}/json-schema.d.ts +0 -0
- /package/dist/tools/{async-operation-contract.d.ts → operations/async-operation-contract.d.ts} +0 -0
- /package/dist/tools/{mount-wait.d.ts → operations/mount-wait.d.ts} +0 -0
- /package/dist/tools/{wait-core.d.ts → operations/wait-core.d.ts} +0 -0
- /package/dist/tools/{coerce.d.ts → schema/coerce.d.ts} +0 -0
- /package/dist/tools/{flatten-join.d.ts → schema/flatten-join.d.ts} +0 -0
- /package/dist/tools/{flatten.d.ts → schema/flatten.d.ts} +0 -0
- /package/dist/tools/{portable-formats.d.ts → schema/portable-formats.d.ts} +0 -0
- /package/dist/tools/{schema.d.ts → schema/schema.d.ts} +0 -0
- /package/dist/tools/{untyped-properties.d.ts → schema/untyped-properties.d.ts} +0 -0
- /package/dist/tools/{native-result.d.ts → transfer/native-result.d.ts} +0 -0
- /package/dist/tools/{view-file-contract.d.ts → transfer/view-file-contract.d.ts} +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import { type AgentRuntimeEvent } from './events.js';
|
|
3
|
+
import type { AgentInjectionRegistry } from './injection.js';
|
|
4
|
+
import type { AgentResolvedModel } from './models.js';
|
|
5
|
+
import type { RunMutationQueue } from './run-mutation-queue.js';
|
|
6
|
+
import type { createAgentRunOperationLifecycle } from './run-operation-lifecycle.js';
|
|
7
|
+
import type { AgentRuntimeConfig } from './runtime.js';
|
|
8
|
+
import { type createIdleDeadline } from './runtime-internals.js';
|
|
9
|
+
import { type AgentMessage, type AgentMessagePart, type AgentRun, type AgentSnapshot, type AgentTerminalReason, type AgentUsage, type AgentUsageValue } from './schemas.js';
|
|
10
|
+
/** Everything one run needs from the factory that owns it. */
|
|
11
|
+
export interface RunExecutorDependencies<CONTEXT, TOOLS extends ToolSet> {
|
|
12
|
+
config: AgentRuntimeConfig<CONTEXT, TOOLS>;
|
|
13
|
+
publish(event: AgentRuntimeEvent): Promise<void>;
|
|
14
|
+
runtimeEpoch: string;
|
|
15
|
+
generateId(): string;
|
|
16
|
+
now(): Date;
|
|
17
|
+
checkpointEveryEvents: number;
|
|
18
|
+
maxSteps: number;
|
|
19
|
+
idleTimeoutMs?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Present only when this runtime's `inputPolicy` can ever produce `inject`.
|
|
22
|
+
*
|
|
23
|
+
* `undefined` keeps the executor on exactly the path it had before: no
|
|
24
|
+
* `prepareStep` is installed unless the application asked for one, and no
|
|
25
|
+
* boundary does any work.
|
|
26
|
+
*/
|
|
27
|
+
injection?: AgentInjectionRegistry;
|
|
28
|
+
}
|
|
29
|
+
/** What the runtime hands `executeRun` for one accepted run. */
|
|
30
|
+
export interface RunExecutionInput<CONTEXT> {
|
|
31
|
+
acceptedRun: AgentRun;
|
|
32
|
+
context: CONTEXT;
|
|
33
|
+
signal: AbortSignal;
|
|
34
|
+
/** The admission lane this run belongs to — the key injection is offered on. */
|
|
35
|
+
key: string;
|
|
36
|
+
/** Recovery uses this to distinguish queue handoff from durable acquisition. */
|
|
37
|
+
onAcquired?(): void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* What every phase of one run reads and writes.
|
|
41
|
+
*
|
|
42
|
+
* These were locals of one closure; they are one object now so each phase
|
|
43
|
+
* names what it touches by taking it, rather than by being written inside the
|
|
44
|
+
* scope that declares it. Mutable on purpose: a phase that learns a newer run
|
|
45
|
+
* revision leaves it here for the next phase, exactly as the closure did.
|
|
46
|
+
*/
|
|
47
|
+
export interface RunExecutionState {
|
|
48
|
+
run: AgentRun;
|
|
49
|
+
/**
|
|
50
|
+
* The history the prompt was built from. Reassigned only from a read that
|
|
51
|
+
* carries the conversation's messages.
|
|
52
|
+
*/
|
|
53
|
+
snapshot: AgentSnapshot;
|
|
54
|
+
/**
|
|
55
|
+
* The conversation version this executor last observed.
|
|
56
|
+
*
|
|
57
|
+
* It tracks `snapshot` while there is one to track, and outlives it: after
|
|
58
|
+
* the stream, both the durable-interrupt path and the terminal resolution
|
|
59
|
+
* learn a newer version from a one-run read that carries no messages at
|
|
60
|
+
* all. `snapshot` stays what it has always been — the history the prompt
|
|
61
|
+
* was built from — and is not reassigned from a read that has no history in
|
|
62
|
+
* it.
|
|
63
|
+
*/
|
|
64
|
+
observedVersion: number;
|
|
65
|
+
assistant: AgentMessage;
|
|
66
|
+
readonly parts: AgentMessagePart[];
|
|
67
|
+
/**
|
|
68
|
+
* Inputs this run took on at a step boundary, and has not yet committed.
|
|
69
|
+
*
|
|
70
|
+
* Local until the terminal commit. A run that ends any other way — a crash,
|
|
71
|
+
* a close, an interrupt — leaves every one of these an ordinary queued run,
|
|
72
|
+
* which is what makes the ordering safe (→ ADR 0113).
|
|
73
|
+
*/
|
|
74
|
+
readonly absorbed: Map<string, string[]>;
|
|
75
|
+
eventsSinceCheckpoint: number;
|
|
76
|
+
sequence: number;
|
|
77
|
+
terminalReason: AgentTerminalReason;
|
|
78
|
+
nonModelUsage: AgentUsage | undefined;
|
|
79
|
+
modelUsage: AgentUsage | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* What retried attempts cost. Kept apart from `modelUsage` because the
|
|
82
|
+
* SDK's `finish` part carries the total for the attempt that finished and
|
|
83
|
+
* `mergeModelTotals` takes that total as authoritative — folding an
|
|
84
|
+
* abandoned attempt into the same figure lost it on the next `finish`.
|
|
85
|
+
*/
|
|
86
|
+
abandonedUsage: AgentUsage | undefined;
|
|
87
|
+
usage: AgentUsage | undefined;
|
|
88
|
+
sawProviderFinish: boolean;
|
|
89
|
+
step: number;
|
|
90
|
+
selectedModel: AgentResolvedModel | undefined;
|
|
91
|
+
internalCause: unknown;
|
|
92
|
+
providerStreamCleanupFailure: unknown;
|
|
93
|
+
reasoningPartIndex: number | undefined;
|
|
94
|
+
firstOutputAt: number | undefined;
|
|
95
|
+
terminalPolicyName: string | undefined;
|
|
96
|
+
lastPromptTokens: AgentUsageValue;
|
|
97
|
+
}
|
|
98
|
+
type RootTrace<CONTEXT, TOOLS extends ToolSet> = ReturnType<NonNullable<AgentRuntimeConfig<CONTEXT, TOOLS>['observe']>['rootTrace']>;
|
|
99
|
+
/** One acquired run: its dependencies, its input, its state and its owned machinery. */
|
|
100
|
+
export interface RunExecution<CONTEXT, TOOLS extends ToolSet> {
|
|
101
|
+
readonly dependencies: RunExecutorDependencies<CONTEXT, TOOLS>;
|
|
102
|
+
readonly input: RunExecutionInput<CONTEXT>;
|
|
103
|
+
readonly state: RunExecutionState;
|
|
104
|
+
readonly trace: RootTrace<CONTEXT, TOOLS> | undefined;
|
|
105
|
+
readonly runStartedAt: number;
|
|
106
|
+
readonly idleDeadline: ReturnType<typeof createIdleDeadline>;
|
|
107
|
+
readonly executionSignal: AbortSignal;
|
|
108
|
+
/**
|
|
109
|
+
* Owned mutations of this run take their turn here.
|
|
110
|
+
*
|
|
111
|
+
* The assistant checkpoint and the model-request admission are written by
|
|
112
|
+
* two independent schedules — the stream consumer and the SDK's model
|
|
113
|
+
* middleware — against one compare-and-set revision.
|
|
114
|
+
*/
|
|
115
|
+
readonly serialize: RunMutationQueue;
|
|
116
|
+
readonly operationLifecycle: ReturnType<typeof createAgentRunOperationLifecycle>;
|
|
117
|
+
}
|
|
118
|
+
/** A snapshot this run's own mutation produced becomes the one it continues from. */
|
|
119
|
+
export declare function adoptSnapshot(state: RunExecutionState, next: AgentSnapshot): void;
|
|
120
|
+
/**
|
|
121
|
+
* The next transient sequence — taken only when something is published.
|
|
122
|
+
*
|
|
123
|
+
* It used to advance on every stream part, published or not, so a run's
|
|
124
|
+
* first delta arrived as sequence 4 behind an unpublished `text-start`:
|
|
125
|
+
* every subscriber's cursor saw a gap on the first delta of every run,
|
|
126
|
+
* flagged a resync and stopped accumulating the text it was for.
|
|
127
|
+
*/
|
|
128
|
+
export declare function transientSequence(state: RunExecutionState): number;
|
|
129
|
+
export declare function billedUsage(state: RunExecutionState): AgentUsage | undefined;
|
|
130
|
+
export declare function updateReasoning(state: RunExecutionState, text: string, metadata?: unknown): void;
|
|
131
|
+
export declare function checkpoint<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>): Promise<void>;
|
|
132
|
+
export {};
|
|
133
|
+
//# sourceMappingURL=run-execution-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-execution-state.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-execution-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAEL,KAAK,kBAAkB,EAIxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAGrB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,eAAe,EACrB,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,MAAM,WAAW,uBAAuB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO;IACrE,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3C,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,IAAI,MAAM,CAAC;IACrB,GAAG,IAAI,IAAI,CAAC;IACZ,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH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BN;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACvD,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,CAkDf"}
|
|
@@ -1,35 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import type { AgentInjectionRegistry } from './injection.js';
|
|
4
|
-
import type { AgentRuntimeConfig } from './runtime.js';
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import type { RunExecutionInput, RunExecutorDependencies } from './run-execution-state.js';
|
|
5
3
|
import type { AgentRuntimeResult } from './runtime-result.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* `prepareStep` is installed unless the application asked for one, and no
|
|
22
|
-
* boundary does any work.
|
|
23
|
-
*/
|
|
24
|
-
injection?: AgentInjectionRegistry;
|
|
25
|
-
}
|
|
26
|
-
export declare function createRunExecutor<CONTEXT, TOOLS extends ToolSet>(dependencies: RunExecutorDependencies<CONTEXT, TOOLS>): (input: {
|
|
27
|
-
acceptedRun: AgentRun;
|
|
28
|
-
context: CONTEXT;
|
|
29
|
-
signal: AbortSignal;
|
|
30
|
-
/** The admission lane this run belongs to — the key injection is offered on. */
|
|
31
|
-
key: string;
|
|
32
|
-
/** Recovery uses this to distinguish queue handoff from durable acquisition. */
|
|
33
|
-
onAcquired?(): void;
|
|
34
|
-
}) => Promise<AgentRuntimeResult>;
|
|
4
|
+
/**
|
|
5
|
+
* One acquired run, executed to a terminal commit.
|
|
6
|
+
*
|
|
7
|
+
* Extracted from `createAgentRuntime` because it is a different job: the
|
|
8
|
+
* factory wires dependencies and owns process-local admission, this owns the
|
|
9
|
+
* stream loop, checkpoints, fencing and the terminal transition for exactly one
|
|
10
|
+
* run. Dependencies arrive as parameters rather than as a closure over the
|
|
11
|
+
* whole factory, so what a run can touch is visible in one place.
|
|
12
|
+
*
|
|
13
|
+
* The phases live in their own modules and share one `RunExecution` — the
|
|
14
|
+
* run's state as an explicit object rather than the locals of one closure — so
|
|
15
|
+
* the order below is the whole lifecycle: acquire, prepare the turn, run the
|
|
16
|
+
* provider attempts, settle the outcome (or classify the failure), commit.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createRunExecutor<CONTEXT, TOOLS extends ToolSet>(dependencies: RunExecutorDependencies<CONTEXT, TOOLS>): (input: RunExecutionInput<CONTEXT>) => Promise<AgentRuntimeResult>;
|
|
35
19
|
//# sourceMappingURL=run-execution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-execution.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-execution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-execution.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAKxF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAC9D,YAAY,EAAE,uBAAuB,CAAC,OAAO,EAAE,KAAK,CAAC,WAG5C,iBAAiB,CAAC,OAAO,CAAC,KAChC,OAAO,CAAC,kBAAkB,CAAC,CAkB/B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import type { RunExecution } from './run-execution-state.js';
|
|
3
|
+
import { type AgentTerminalReason } from './schemas.js';
|
|
4
|
+
/**
|
|
5
|
+
* The terminal reason for a failure this runtime raises on its own behalf.
|
|
6
|
+
*
|
|
7
|
+
* `undefined` means the runtime cannot claim the failure — which, at both call
|
|
8
|
+
* sites, leaves it the provider's. One function because both sites answer the
|
|
9
|
+
* same question and used to answer it differently.
|
|
10
|
+
*/
|
|
11
|
+
export declare function failureThisRuntimeOwns(error: unknown): AgentTerminalReason | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* A throw out of preparation or the stream, turned into the terminal the run
|
|
14
|
+
* will commit. It never rethrows: every failure that reaches here ends as a
|
|
15
|
+
* durable terminal with its cause attached.
|
|
16
|
+
*/
|
|
17
|
+
export declare function classifyRunFailure<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>, error: unknown): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=run-failure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-failure.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-failure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAIlC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAA0B,KAAK,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAG7E;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,GAAG,SAAS,CAKtF;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACrE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,EACvC,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,IAAI,CAAC,CAkEf"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ToolSet } from 'ai';
|
|
2
|
+
import { type RunExecution } from './run-execution-state.js';
|
|
3
|
+
import type { PreparedTurn } from './run-turn-preparation.js';
|
|
4
|
+
/** Every provider attempt of the run, until one ends without being retried. */
|
|
5
|
+
export declare function runModelAttempts<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>, turn: PreparedTurn<CONTEXT, TOOLS>): Promise<void>;
|
|
6
|
+
//# sourceMappingURL=run-model-attempts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-model-attempts.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-model-attempts.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,IAAI,CAAC;AASZ,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAsW3D,+EAA+E;AAC/E,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACnE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,EACvC,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACjC,OAAO,CAAC,IAAI,CAAC,CAsCf"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Instructions, ModelMessage, ToolSet } from 'ai';
|
|
2
|
+
import type { AgentRuntimeConfig } from './runtime.js';
|
|
3
|
+
import { type AgentMessage, type AgentRun, type AgentSnapshot } from './schemas.js';
|
|
4
|
+
/**
|
|
5
|
+
* The conversation as this run is allowed to know it.
|
|
6
|
+
*
|
|
7
|
+
* Durable admission may append successor inputs while acquisition or the
|
|
8
|
+
* initial assistant checkpoint is awaiting I/O. Those inputs belong to later
|
|
9
|
+
* runs and cannot enter this run's prompt merely because they already exist in
|
|
10
|
+
* the conversation aggregate. Unowned records (summary/system) remain shared;
|
|
11
|
+
* run-owned records become eligible in causal run order through this run.
|
|
12
|
+
*/
|
|
13
|
+
export declare function snapshotForRunPrompt(snapshot: AgentSnapshot, runId: string): AgentSnapshot;
|
|
14
|
+
/**
|
|
15
|
+
* The conversation-level key under which user-role prompt sections are seeded.
|
|
16
|
+
*
|
|
17
|
+
* One key per conversation: the ADR's once-seeding is "on the first turn", so a
|
|
18
|
+
* later set of definitions does not add a second copy — a changed brief belongs
|
|
19
|
+
* to whichever run seeded the conversation first. → ADR 0178
|
|
20
|
+
*/
|
|
21
|
+
export declare const USER_INSTRUCTION_SEED_KEY = "prompt.user-instructions";
|
|
22
|
+
/**
|
|
23
|
+
* The durable identity of one seeded user-instruction message.
|
|
24
|
+
*
|
|
25
|
+
* Deterministic from the conversation and the section position, so a
|
|
26
|
+
* conversation imported from an archive — whose seed receipt was not part of
|
|
27
|
+
* that archive — matches the messages already in its history rather than
|
|
28
|
+
* seeding a second copy.
|
|
29
|
+
*/
|
|
30
|
+
export declare function seededInstructionMessage(input: {
|
|
31
|
+
conversationId: string;
|
|
32
|
+
seedKey: string;
|
|
33
|
+
index: number;
|
|
34
|
+
text: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
}): AgentMessage;
|
|
37
|
+
/** The rendered state slots, which every provider request carries as system content. */
|
|
38
|
+
export declare function loadDurableSystem<CONTEXT, TOOLS extends ToolSet>(config: AgentRuntimeConfig<CONTEXT, TOOLS>, conversationId: string): Promise<readonly string[]>;
|
|
39
|
+
/** The history projection of one run, and the system content it carries out of it. */
|
|
40
|
+
export interface RunHistoryProjection {
|
|
41
|
+
projectHistory(source: AgentSnapshot): Promise<ModelMessage[]>;
|
|
42
|
+
/**
|
|
43
|
+
* The same projection, for messages that are not the conversation.
|
|
44
|
+
*
|
|
45
|
+
* Separate from `projectHistory` because that one publishes into
|
|
46
|
+
* `carriedSystem`, and running it over a single user message would
|
|
47
|
+
* replace the conversation's carried system content with an empty list.
|
|
48
|
+
*/
|
|
49
|
+
projectInputs(source: readonly AgentMessage[]): Promise<ModelMessage[]>;
|
|
50
|
+
withCarriedSystem(instructions: Instructions): Instructions;
|
|
51
|
+
}
|
|
52
|
+
export declare function createRunHistoryProjection<CONTEXT, TOOLS extends ToolSet>(input: {
|
|
53
|
+
config: AgentRuntimeConfig<CONTEXT, TOOLS>;
|
|
54
|
+
/** Read at projection time: the run's input ids are the ones it holds then. */
|
|
55
|
+
currentRun(): AgentRun;
|
|
56
|
+
durableSystem: readonly string[];
|
|
57
|
+
}): RunHistoryProjection;
|
|
58
|
+
//# sourceMappingURL=run-prompt-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-prompt-history.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-prompt-history.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAsB,OAAO,EAAE,MAAM,IAAI,CAAC;AAElF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,QAAQ,EACb,KAAK,aAAa,EAEnB,MAAM,WAAW,CAAC;AAInB;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAoB1F;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AAEpE;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,YAAY,CAaf;AAED,wFAAwF;AACxF,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACpE,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,EAC1C,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAU5B;AAED,sFAAsF;AACtF,MAAM,WAAW,oBAAoB;IACnC,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC/D;;;;;;OAMG;IACH,aAAa,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACxE,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,YAAY,CAAC;CAC7D;AAoBD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAAE,KAAK,EAAE;IAChF,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3C,+EAA+E;IAC/E,UAAU,IAAI,QAAQ,CAAC;IACvB,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC,GAAG,oBAAoB,CAkDvB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Instructions, ModelMessage } from 'ai';
|
|
2
|
+
import type { AgentResolvedModel } from './models.js';
|
|
3
|
+
import type { RunExecutionState } from './run-execution-state.js';
|
|
4
|
+
import { providerResponseIdentity } from './runtime-internals.js';
|
|
5
|
+
import type { AgentRuntimeStore } from './store.js';
|
|
6
|
+
/** The provider request and response records of one run, in ledger order. */
|
|
7
|
+
export interface RunProviderLedger {
|
|
8
|
+
recordRequest(request: {
|
|
9
|
+
stepNumber: number;
|
|
10
|
+
attempt: number;
|
|
11
|
+
instructions: Instructions;
|
|
12
|
+
messages: readonly ModelMessage[];
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
recordResponse(response: {
|
|
15
|
+
id: string;
|
|
16
|
+
providerMetadata: unknown;
|
|
17
|
+
stepNumber: number;
|
|
18
|
+
attempt: number;
|
|
19
|
+
}): Promise<ReturnType<typeof providerResponseIdentity>>;
|
|
20
|
+
}
|
|
21
|
+
export declare function createRunProviderLedger(input: {
|
|
22
|
+
store: AgentRuntimeStore;
|
|
23
|
+
state: RunExecutionState;
|
|
24
|
+
selectedModel: AgentResolvedModel;
|
|
25
|
+
}): Promise<RunProviderLedger>;
|
|
26
|
+
//# sourceMappingURL=run-provider-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-provider-ledger.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-provider-ledger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAoCjD,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,YAAY,CAAC;QAC3B,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAC;KACnC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,cAAc,CAAC,QAAQ,EAAE;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,gBAAgB,EAAE,OAAO,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC;CAC1D;AAED,wBAAsB,uBAAuB,CAAC,KAAK,EAAE;IACnD,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,iBAAiB,CAAC;IACzB,aAAa,EAAE,kBAAkB,CAAC;CACnC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAiG7B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TextStreamPart, ToolSet } from 'ai';
|
|
2
|
+
import type { AgentResolvedModel } from './models.js';
|
|
3
|
+
import { type RunExecution } from './run-execution-state.js';
|
|
4
|
+
import type { RunProviderLedger } from './run-provider-ledger.js';
|
|
5
|
+
/** What one stream part needs beyond the run: the model and the attempt it belongs to. */
|
|
6
|
+
export interface StreamPartScope {
|
|
7
|
+
selectedModel: AgentResolvedModel;
|
|
8
|
+
ledger: RunProviderLedger;
|
|
9
|
+
providerAttempt: number;
|
|
10
|
+
}
|
|
11
|
+
/** A part that is the provider producing output, as opposed to framing it. */
|
|
12
|
+
export declare function isOutputPart<TOOLS extends ToolSet>(part: TextStreamPart<TOOLS>): boolean;
|
|
13
|
+
/** Parts after which the durable draft is checkpointed regardless of the event count. */
|
|
14
|
+
export declare const STRUCTURAL_BOUNDARY_PARTS: readonly string[];
|
|
15
|
+
/** Record one stream part in the draft, and publish what subscribers see of it. */
|
|
16
|
+
export declare function applyStreamPart<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>, scope: StreamPartScope, part: TextStreamPart<TOOLS>): Promise<void>;
|
|
17
|
+
//# sourceMappingURL=run-stream-parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-stream-parts.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-stream-parts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAGL,KAAK,YAAY,EAGlB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAW/D,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;AAkBD,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,KAAK,SAAS,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,OAAO,CAOxF;AAED,yFAAyF;AACzF,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAQtD,CAAC;AA2RF,mFAAmF;AACnF,wBAAsB,eAAe,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAClE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,EACvC,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,GAC1B,OAAO,CAAC,IAAI,CAAC,CAqEf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import type { RunExecution } from './run-execution-state.js';
|
|
3
|
+
import type { AgentRuntimeResult } from './runtime-result.js';
|
|
4
|
+
/**
|
|
5
|
+
* The terminal reason of a stream that ended without a throw: a stop policy,
|
|
6
|
+
* an abort, and the protocol's verdict on the output all have their say.
|
|
7
|
+
*/
|
|
8
|
+
export declare function settleStreamOutcome<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>): Promise<void>;
|
|
9
|
+
/** Commit the terminal the earlier phases decided, and report it on both channels. */
|
|
10
|
+
export declare function commitRunTerminal<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>): Promise<AgentRuntimeResult>;
|
|
11
|
+
//# sourceMappingURL=run-terminal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-terminal.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-terminal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAElC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAU3D;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACtE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,CAqCf;AAkED,sFAAsF;AACtF,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACpE,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACtC,OAAO,CAAC,kBAAkB,CAAC,CAiI7B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ModelMessage, ToolSet } from 'ai';
|
|
2
|
+
import type { AgentResolvedModel } from './models.js';
|
|
3
|
+
import type { ComposedAgentPrompt } from './prompt.js';
|
|
4
|
+
import { type RunExecution } from './run-execution-state.js';
|
|
5
|
+
import { type RunHistoryProjection } from './run-prompt-history.js';
|
|
6
|
+
import type { AgentRuntimeRunContext } from './runtime.js';
|
|
7
|
+
/** Everything the model phase needs that turn preparation settled once for the run. */
|
|
8
|
+
export interface PreparedTurn<CONTEXT, TOOLS extends ToolSet> {
|
|
9
|
+
selectedModel: AgentResolvedModel;
|
|
10
|
+
runtimeContext: AgentRuntimeRunContext<CONTEXT>;
|
|
11
|
+
prompt: ComposedAgentPrompt;
|
|
12
|
+
tools: TOOLS;
|
|
13
|
+
history: ModelMessage[];
|
|
14
|
+
projection: RunHistoryProjection;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Everything before the first provider call: compaction, the model, the
|
|
18
|
+
* composed prompt and tools, the seeded instructions, the context decision
|
|
19
|
+
* and the projected history.
|
|
20
|
+
*/
|
|
21
|
+
export declare function prepareTurn<CONTEXT, TOOLS extends ToolSet>(execution: RunExecution<CONTEXT, TOOLS>): Promise<PreparedTurn<CONTEXT, TOOLS>>;
|
|
22
|
+
//# sourceMappingURL=run-turn-preparation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-turn-preparation.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-turn-preparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAGhD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAA8B,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAGL,KAAK,oBAAoB,EAI1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAqB,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAK3E,uFAAuF;AACvF,MAAM,WAAW,YAAY,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO;IAC1D,aAAa,EAAE,kBAAkB,CAAC;IAClC,cAAc,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAChD,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,UAAU,EAAE,oBAAoB,CAAC;CAClC;AA8HD;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAC9D,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,GACtC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAmDvC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admission belongs to the RUNTIME, not only to the coordinator.
|
|
3
|
+
*
|
|
4
|
+
* `close()` used to delegate straight to `coordinator.close()`, which refuses to
|
|
5
|
+
* *execute* — and by the time it refuses, `submit()` has already run preflight,
|
|
6
|
+
* written a durable input and a queued run to the store, and resolved
|
|
7
|
+
* `accepted`. The result is exactly the state the close exists to prevent:
|
|
8
|
+
* durable work with no executor, indistinguishable from a crash.
|
|
9
|
+
*
|
|
10
|
+
* So the gate is checked twice, and the second one is the load-bearing half: a
|
|
11
|
+
* close that arrives while a preflight is in flight must still stop the write
|
|
12
|
+
* that follows it. Before the store call the answer is a clean refusal; after
|
|
13
|
+
* it there is nothing to refuse, and the coordinator's own drain owns the run.
|
|
14
|
+
*/
|
|
15
|
+
export interface RuntimeAdmissionGate {
|
|
16
|
+
/** Set once by `close()`; every admission path reads it, none resets it. */
|
|
17
|
+
closed: boolean;
|
|
18
|
+
/** Hold the gate open for one admission until the returned release is called. */
|
|
19
|
+
begin(): () => void;
|
|
20
|
+
/** Wait, within `budgetMs`, for admissions already inside; returns how many never arrived. */
|
|
21
|
+
drain(budgetMs: number | undefined): Promise<number>;
|
|
22
|
+
}
|
|
23
|
+
export declare const closedError: () => Error;
|
|
24
|
+
export declare function refuse<T>(): {
|
|
25
|
+
accepted: Promise<void>;
|
|
26
|
+
result: Promise<T>;
|
|
27
|
+
};
|
|
28
|
+
export declare function createRuntimeAdmissionGate(): RuntimeAdmissionGate;
|
|
29
|
+
//# sourceMappingURL=runtime-admission-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-admission-gate.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/runtime-admission-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,oBAAoB;IACnC,4EAA4E;IAC5E,MAAM,EAAE,OAAO,CAAC;IAChB,iFAAiF;IACjF,KAAK,IAAI,MAAM,IAAI,CAAC;IACpB,8FAA8F;IAC9F,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,WAAW,QAAO,KAC8C,CAAC;AAE9E,wBAAgB,MAAM,CAAC,CAAC,KAAK;IAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CAAE,CAQ3E;AAED,wBAAgB,0BAA0B,IAAI,oBAAoB,CA2DjE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import { type AgentSessionCloseOptions, type AgentSessionCloseResult } from './coordinator.js';
|
|
3
|
+
import type { AgentRuntimeAbandonInput, AgentRuntimeInterruptInput } from './runtime.js';
|
|
4
|
+
import type { AgentRuntimeState } from './runtime-state.js';
|
|
5
|
+
import type { AgentStoreMutationResult } from './store.js';
|
|
6
|
+
export declare function interruptAgentRun<CONTEXT, TOOLS extends ToolSet>(state: AgentRuntimeState<CONTEXT, TOOLS>, input: AgentRuntimeInterruptInput): Promise<AgentStoreMutationResult>;
|
|
7
|
+
export declare function abandonAgentRun<CONTEXT, TOOLS extends ToolSet>(state: AgentRuntimeState<CONTEXT, TOOLS>, input: AgentRuntimeAbandonInput): Promise<AgentStoreMutationResult>;
|
|
8
|
+
export declare function closeAgentRuntime<CONTEXT, TOOLS extends ToolSet>(state: AgentRuntimeState<CONTEXT, TOOLS>, options: AgentSessionCloseOptions): Promise<AgentSessionCloseResult>;
|
|
9
|
+
//# sourceMappingURL=runtime-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-control.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/runtime-control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAE7B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAEtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGxD,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACpE,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,EACxC,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,wBAAwB,CAAC,CA0BnC;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAClE,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,EACxC,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,wBAAwB,CAAC,CA4BnC;AAED,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACpE,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,EACxC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAmClC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import type { AgentRuntimeRecoverOptions, AgentRuntimeRecoveryInput, AgentRuntimeRecoveryOutcome } from './runtime.js';
|
|
3
|
+
import type { AgentRuntimeResult } from './runtime-result.js';
|
|
4
|
+
import type { AgentRuntimeState } from './runtime-state.js';
|
|
5
|
+
export declare function resumeAgentRun<CONTEXT, TOOLS extends ToolSet>(state: AgentRuntimeState<CONTEXT, TOOLS>, rawInput: AgentRuntimeRecoveryInput): {
|
|
6
|
+
accepted: Promise<void>;
|
|
7
|
+
result: Promise<AgentRuntimeResult>;
|
|
8
|
+
};
|
|
9
|
+
export declare function recoverAgentRuns<CONTEXT, TOOLS extends ToolSet>(state: AgentRuntimeState<CONTEXT, TOOLS>, options: AgentRuntimeRecoverOptions<CONTEXT>): Promise<readonly AgentRuntimeRecoveryOutcome[]>;
|
|
10
|
+
//# sourceMappingURL=runtime-recovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-recovery.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/runtime-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,wBAAgB,cAAc,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAC3D,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,EACxC,QAAQ,EAAE,yBAAyB,GAClC;IAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;CAAE,CAsDlE;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EACnE,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,EACxC,OAAO,EAAE,0BAA0B,CAAC,OAAO,CAAC,GAC3C,OAAO,CAAC,SAAS,2BAA2B,EAAE,CAAC,CA2CjD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import { type RuntimeAdmissionLanes } from './admission-lanes.js';
|
|
3
|
+
import { type AgentSessionCoordinator } from './coordinator.js';
|
|
4
|
+
import type { AgentRuntimeEvent } from './events.js';
|
|
5
|
+
import { type AgentInjectionRegistry } from './injection.js';
|
|
6
|
+
import type { RunExecutionInput } from './run-execution-state.js';
|
|
7
|
+
import type { AgentRuntimeAdmission, AgentRuntimeConfig } from './runtime.js';
|
|
8
|
+
import { type RuntimeAdmissionGate } from './runtime-admission-gate.js';
|
|
9
|
+
import type { AgentRuntimeResult } from './runtime-result.js';
|
|
10
|
+
export interface RuntimeTicket {
|
|
11
|
+
accepted: Promise<void>;
|
|
12
|
+
admission: Promise<AgentRuntimeAdmission>;
|
|
13
|
+
result: Promise<AgentRuntimeResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* What every entry point of one runtime reads and writes.
|
|
17
|
+
*
|
|
18
|
+
* These were locals of the `createAgentRuntime` closure; they are one object now
|
|
19
|
+
* so each phase (submit, recovery, control, close) names what it touches by
|
|
20
|
+
* taking it, rather than by being written inside the scope that declares it.
|
|
21
|
+
*/
|
|
22
|
+
export interface AgentRuntimeState<CONTEXT, TOOLS extends ToolSet> {
|
|
23
|
+
config: AgentRuntimeConfig<CONTEXT, TOOLS>;
|
|
24
|
+
coordinator: AgentSessionCoordinator;
|
|
25
|
+
/** Live tickets by conversation, then idempotency key, so a retry gets the same one. */
|
|
26
|
+
tickets: Map<string, Map<string, RuntimeTicket>>;
|
|
27
|
+
generateId(): string;
|
|
28
|
+
now(): Date;
|
|
29
|
+
admissionLanes: RuntimeAdmissionLanes;
|
|
30
|
+
gate: RuntimeAdmissionGate;
|
|
31
|
+
injection?: AgentInjectionRegistry;
|
|
32
|
+
publish(event: AgentRuntimeEvent): Promise<void>;
|
|
33
|
+
executeRun(input: RunExecutionInput<CONTEXT>): Promise<AgentRuntimeResult>;
|
|
34
|
+
}
|
|
35
|
+
export declare function createAgentRuntimeState<CONTEXT, TOOLS extends ToolSet>(config: AgentRuntimeConfig<CONTEXT, TOOLS>): AgentRuntimeState<CONTEXT, TOOLS>;
|
|
36
|
+
//# sourceMappingURL=runtime-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-state.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAA+B,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EAAE,KAAK,uBAAuB,EAAiC,MAAM,eAAe,CAAC;AAC5F,OAAO,K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AAE,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,GACzC,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,CAwDnC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ToolSet } from 'ai';
|
|
2
|
+
import type { AgentRuntimeInput } from './runtime.js';
|
|
3
|
+
import type { AgentRuntimeState, RuntimeTicket } from './runtime-state.js';
|
|
4
|
+
export declare function submitAgentInput<CONTEXT, TOOLS extends ToolSet>(state: AgentRuntimeState<CONTEXT, TOOLS>, rawInput: AgentRuntimeInput): RuntimeTicket;
|
|
5
|
+
//# sourceMappingURL=runtime-submit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-submit.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/runtime-submit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAKlC,OAAO,KAAK,EAAyB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmDxE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,KAAK,SAAS,OAAO,EAC7D,KAAK,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,EACxC,QAAQ,EAAE,iBAAiB,GAC1B,aAAa,CAiBf"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { GeneratedFile, ModelMessage, PrepareStepFunction, StopCondition, ToolApprovalConfiguration, ToolSet } from 'ai';
|
|
2
2
|
import type { z } from 'zod';
|
|
3
|
+
import type { LocalStepDurability } from '../durability/engine.js';
|
|
3
4
|
import type { ToolLifecycle } from '../tools/execute.js';
|
|
4
5
|
import type { AgentChildManager } from './children.js';
|
|
5
6
|
import type { AgentCompactionResult } from './compaction.js';
|
|
6
|
-
import {
|
|
7
|
-
import type {
|
|
8
|
-
import { type AgentRuntimeEvent, type AgentRuntimePublisher } from './events.js';
|
|
7
|
+
import type { AgentInputPolicy, AgentSessionCloseOptions, AgentSessionCloseResult, AgentStopReason } from './coordinator.js';
|
|
8
|
+
import type { AgentRuntimeEvent, AgentRuntimePublisher } from './events.js';
|
|
9
9
|
import type { AgentHistoryProjectionOptions } from './history.js';
|
|
10
10
|
import type { AgentResolvedModel } from './models.js';
|
|
11
11
|
import type { AgentObservability } from './observability.js';
|
|
@@ -13,7 +13,7 @@ import type { ComposedAgentPrompt } from './prompt.js';
|
|
|
13
13
|
import type { AgentTerminalAcceptanceInput } from './protocol.js';
|
|
14
14
|
import type { AgentRetryPolicy } from './retry-policy.js';
|
|
15
15
|
import type { AgentRuntimeResult } from './runtime-result.js';
|
|
16
|
-
import {
|
|
16
|
+
import type { AgentAssistantPlaceholder, AgentJsonObjectSchema, AgentMessage, AgentMessagePart, AgentRun, AgentSnapshot, AgentUsageValue } from './schemas.js';
|
|
17
17
|
import type { AnyAgentStateSlot } from './state-slots.js';
|
|
18
18
|
import type { AgentRecoverableDescriptor, AgentRuntimeStore, AgentStoreMutationResult } from './store.js';
|
|
19
19
|
import type { AgentHistoryEvidencePolicy } from './terminal-status.js';
|
|
@@ -263,5 +263,10 @@ export interface AgentRuntime<CONTEXT = unknown> {
|
|
|
263
263
|
*/
|
|
264
264
|
close(options?: AgentSessionCloseOptions): Promise<AgentSessionCloseResult>;
|
|
265
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* The runtime is wiring: its state is built once, and each entry point is a
|
|
268
|
+
* phase in its own module taking that state — submission (`runtime-submit`),
|
|
269
|
+
* recovery (`runtime-recovery`), and run control and close (`runtime-control`).
|
|
270
|
+
*/
|
|
266
271
|
export declare function createAgentRuntime<CONTEXT, TOOLS extends ToolSet>(config: AgentRuntimeConfig<CONTEXT, TOOLS>): AgentRuntime<CONTEXT>;
|
|
267
272
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,yBAAyB,EACzB,OAAO,EACR,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,yBAAyB,EACzB,OAAO,EACR,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,eAAe,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC/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