stitchkit 0.133.1 → 0.134.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 +121 -0
- package/README.md +14 -11
- package/dist/agent-executor/acp/v1-connect.d.ts +5 -0
- package/dist/agent-executor/acp/v1-connect.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-map.d.ts +13 -3
- package/dist/agent-executor/acp/v1-map.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-probe.d.ts +3 -0
- package/dist/agent-executor/acp/v1-probe.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-protocol.d.ts +61 -0
- package/dist/agent-executor/acp/v1-protocol.d.ts.map +1 -1
- package/dist/agent-executor/acp/v1-session.d.ts +3 -0
- package/dist/agent-executor/acp/v1-session.d.ts.map +1 -1
- package/dist/agent-executor/codex/connect.d.ts +2 -0
- package/dist/agent-executor/codex/connect.d.ts.map +1 -1
- package/dist/agent-executor/codex/driver.d.ts +3 -0
- package/dist/agent-executor/codex/driver.d.ts.map +1 -1
- package/dist/agent-executor/contract.d.ts +42 -0
- package/dist/agent-executor/contract.d.ts.map +1 -1
- package/dist/agent-executor/engine-process.d.ts +20 -0
- package/dist/agent-executor/engine-process.d.ts.map +1 -1
- package/dist/agent-executor/executor-contract.d.ts +42 -0
- package/dist/agent-executor/executor-contract.d.ts.map +1 -1
- package/dist/agent-executor/handoff-schemas.d.ts +30 -0
- package/dist/agent-executor/handoff-schemas.d.ts.map +1 -1
- package/dist/agent-executor/projection.d.ts.map +1 -1
- package/dist/agent-executor/session-primitives.d.ts +4 -1
- package/dist/agent-executor/session-primitives.d.ts.map +1 -1
- package/dist/agent-executor/testing/consumer-stubs.d.ts.map +1 -1
- package/dist/agent-executor/vocabulary.d.ts +100 -0
- package/dist/agent-executor/vocabulary.d.ts.map +1 -1
- package/dist/agent-parts/model.d.ts +1559 -0
- package/dist/agent-parts/model.d.ts.map +1 -0
- package/dist/agent-parts/parts.d.ts +21 -0
- package/dist/agent-parts/parts.d.ts.map +1 -1
- package/dist/agent-runtime/ai-sdk-convert.d.ts +15 -0
- package/dist/agent-runtime/ai-sdk-convert.d.ts.map +1 -0
- package/dist/agent-runtime/ai-sdk.d.ts +31 -0
- package/dist/agent-runtime/ai-sdk.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-media.d.ts +11 -0
- package/dist/agent-runtime/anthropic-media.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-messages.d.ts +24 -0
- package/dist/agent-runtime/anthropic-messages.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-options.d.ts +79 -0
- package/dist/agent-runtime/anthropic-options.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-response.d.ts +19 -0
- package/dist/agent-runtime/anthropic-response.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic-sse.d.ts +4 -0
- package/dist/agent-runtime/anthropic-sse.d.ts.map +1 -0
- package/dist/agent-runtime/anthropic.d.ts +27 -0
- package/dist/agent-runtime/anthropic.d.ts.map +1 -0
- package/dist/agent-runtime/branch-observations.d.ts +25 -25
- package/dist/agent-runtime/branch-provider.d.ts +86 -0
- package/dist/agent-runtime/branch-provider.d.ts.map +1 -1
- package/dist/agent-runtime/branch-replay.d.ts +30 -0
- package/dist/agent-runtime/branch-replay.d.ts.map +1 -1
- package/dist/agent-runtime/browser-control-contract.d.ts +204 -0
- package/dist/agent-runtime/browser-control-contract.d.ts.map +1 -1
- package/dist/agent-runtime/browser-controller-view.d.ts +44 -0
- package/dist/agent-runtime/browser-controller-view.d.ts.map +1 -0
- package/dist/agent-runtime/browser-controller.d.ts +12 -8
- package/dist/agent-runtime/browser-controller.d.ts.map +1 -1
- package/dist/agent-runtime/child-budget-policy.d.ts +2 -3
- package/dist/agent-runtime/child-budget-policy.d.ts.map +1 -1
- package/dist/agent-runtime/compaction.d.ts +27 -10
- package/dist/agent-runtime/compaction.d.ts.map +1 -1
- package/dist/agent-runtime/control-interaction-schema.d.ts +157 -0
- package/dist/agent-runtime/control-interaction-schema.d.ts.map +1 -0
- package/dist/agent-runtime/control-schema.d.ts +183 -27
- package/dist/agent-runtime/control-schema.d.ts.map +1 -1
- package/dist/agent-runtime/control-view.d.ts +64 -0
- package/dist/agent-runtime/control-view.d.ts.map +1 -0
- package/dist/agent-runtime/conversations.d.ts +10 -0
- package/dist/agent-runtime/conversations.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tool-selection.d.ts +2 -2
- package/dist/agent-runtime/deferred-tool-selection.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/deferred-tools-internal.d.ts +8 -11
- package/dist/agent-runtime/deferred-tools-internal.d.ts.map +1 -1
- package/dist/agent-runtime/deferred-tools.d.ts.map +1 -1
- package/dist/agent-runtime/event-schema.d.ts +80 -0
- package/dist/agent-runtime/event-schema.d.ts.map +1 -1
- package/dist/agent-runtime/harness-contract.d.ts +2 -2
- package/dist/agent-runtime/harness-contract.d.ts.map +1 -1
- package/dist/agent-runtime/harness-control.d.ts.map +1 -1
- package/dist/agent-runtime/harness-realtime.d.ts.map +1 -1
- package/dist/agent-runtime/harness.d.ts +2 -2
- package/dist/agent-runtime/harness.d.ts.map +1 -1
- package/dist/agent-runtime/history.d.ts +25 -16
- package/dist/agent-runtime/history.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-attempt.d.ts +7 -3
- package/dist/agent-runtime/invocation-attempt.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-payload.d.ts +13 -7
- package/dist/agent-runtime/invocation-payload.d.ts.map +1 -1
- package/dist/agent-runtime/invocation-stream.d.ts +20 -0
- package/dist/agent-runtime/invocation-stream.d.ts.map +1 -0
- package/dist/agent-runtime/invocations.d.ts +2 -2
- package/dist/agent-runtime/invocations.d.ts.map +1 -1
- package/dist/agent-runtime/models-driver-step.d.ts +212 -0
- package/dist/agent-runtime/models-driver-step.d.ts.map +1 -0
- package/dist/agent-runtime/models-driver-telemetry.d.ts +42 -0
- package/dist/agent-runtime/models-driver-telemetry.d.ts.map +1 -0
- package/dist/agent-runtime/models-driver.d.ts +235 -0
- package/dist/agent-runtime/models-driver.d.ts.map +1 -0
- package/dist/agent-runtime/models.d.ts +3 -26
- package/dist/agent-runtime/models.d.ts.map +1 -1
- package/dist/agent-runtime/observability.d.ts +64 -0
- package/dist/agent-runtime/observability.d.ts.map +1 -1
- package/dist/agent-runtime/openai-messages.d.ts +11 -0
- package/dist/agent-runtime/openai-messages.d.ts.map +1 -0
- package/dist/agent-runtime/openai-options.d.ts +91 -0
- package/dist/agent-runtime/openai-options.d.ts.map +1 -0
- package/dist/agent-runtime/openai-response.d.ts +77 -0
- package/dist/agent-runtime/openai-response.d.ts.map +1 -0
- package/dist/agent-runtime/openai-sse-state.d.ts +54 -0
- package/dist/agent-runtime/openai-sse-state.d.ts.map +1 -0
- package/dist/agent-runtime/openai-sse.d.ts +4 -0
- package/dist/agent-runtime/openai-sse.d.ts.map +1 -0
- package/dist/agent-runtime/openai.d.ts +31 -0
- package/dist/agent-runtime/openai.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-admission.d.ts +3 -0
- package/dist/agent-runtime/openrouter-admission.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-benchmarks.d.ts +17 -0
- package/dist/agent-runtime/openrouter-benchmarks.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-catalog-cache.d.ts +70 -0
- package/dist/agent-runtime/openrouter-catalog-cache.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-catalog-query.d.ts +57 -0
- package/dist/agent-runtime/openrouter-catalog-query.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter-catalog.d.ts +189 -14
- package/dist/agent-runtime/openrouter-catalog.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-models.d.ts +168 -31
- package/dist/agent-runtime/openrouter-models.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-options.d.ts +45 -15
- package/dist/agent-runtime/openrouter-options.d.ts.map +1 -1
- package/dist/agent-runtime/openrouter-response.d.ts +22 -0
- package/dist/agent-runtime/openrouter-response.d.ts.map +1 -0
- package/dist/agent-runtime/openrouter.d.ts +21 -24
- package/dist/agent-runtime/openrouter.d.ts.map +1 -1
- package/dist/agent-runtime/owned-provider-stream.d.ts +4 -4
- package/dist/agent-runtime/owned-provider-stream.d.ts.map +1 -1
- package/dist/agent-runtime/prompt.d.ts +3 -3
- package/dist/agent-runtime/prompt.d.ts.map +1 -1
- package/dist/agent-runtime/protocol.d.ts +28 -3
- package/dist/agent-runtime/protocol.d.ts.map +1 -1
- package/dist/agent-runtime/provider-cache.d.ts +30 -0
- package/dist/agent-runtime/provider-cache.d.ts.map +1 -0
- package/dist/agent-runtime/provider-content.d.ts +147 -0
- package/dist/agent-runtime/provider-content.d.ts.map +1 -1
- package/dist/agent-runtime/provider-failure.d.ts +51 -26
- package/dist/agent-runtime/provider-failure.d.ts.map +1 -1
- package/dist/agent-runtime/provider-history.d.ts +13 -0
- package/dist/agent-runtime/provider-history.d.ts.map +1 -0
- package/dist/agent-runtime/provider-http.d.ts +68 -0
- package/dist/agent-runtime/provider-http.d.ts.map +1 -0
- package/dist/agent-runtime/provider-journal.d.ts +149 -0
- package/dist/agent-runtime/provider-journal.d.ts.map +1 -1
- package/dist/agent-runtime/provider-json-schema-strip.d.ts +8 -0
- package/dist/agent-runtime/provider-json-schema-strip.d.ts.map +1 -0
- package/dist/agent-runtime/provider-json-schema.d.ts +28 -0
- package/dist/agent-runtime/provider-json-schema.d.ts.map +1 -0
- package/dist/agent-runtime/provider-media.d.ts +49 -0
- package/dist/agent-runtime/provider-media.d.ts.map +1 -0
- package/dist/agent-runtime/provider-openai-chat-helpers.d.ts +27 -0
- package/dist/agent-runtime/provider-openai-chat-helpers.d.ts.map +1 -0
- package/dist/agent-runtime/provider-openai-chat-sse.d.ts +25 -0
- package/dist/agent-runtime/provider-openai-chat-sse.d.ts.map +1 -0
- package/dist/agent-runtime/provider-openai-chat.d.ts +27 -0
- package/dist/agent-runtime/provider-openai-chat.d.ts.map +1 -0
- package/dist/agent-runtime/provider-origin.d.ts +3 -12
- package/dist/agent-runtime/provider-origin.d.ts.map +1 -1
- package/dist/agent-runtime/provider-sse.d.ts +30 -0
- package/dist/agent-runtime/provider-sse.d.ts.map +1 -0
- package/dist/agent-runtime/provider-stream-parts.d.ts +5 -0
- package/dist/agent-runtime/provider-stream-parts.d.ts.map +1 -0
- package/dist/agent-runtime/provider-stream-segments.d.ts +63 -0
- package/dist/agent-runtime/provider-stream-segments.d.ts.map +1 -0
- package/dist/agent-runtime/provider-usage.d.ts +24 -0
- package/dist/agent-runtime/provider-usage.d.ts.map +1 -0
- package/dist/agent-runtime/retry-policy.d.ts +19 -3
- package/dist/agent-runtime/retry-policy.d.ts.map +1 -1
- package/dist/agent-runtime/run-acquisition.d.ts +4 -4
- package/dist/agent-runtime/run-acquisition.d.ts.map +1 -1
- package/dist/agent-runtime/run-approval.d.ts +82 -0
- package/dist/agent-runtime/run-approval.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-retry.d.ts +24 -0
- package/dist/agent-runtime/run-complete-retry.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-stream.d.ts +9 -0
- package/dist/agent-runtime/run-complete-stream.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-tools.d.ts +21 -0
- package/dist/agent-runtime/run-complete-tools.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete-types.d.ts +168 -0
- package/dist/agent-runtime/run-complete-types.d.ts.map +1 -0
- package/dist/agent-runtime/run-complete.d.ts +25 -0
- package/dist/agent-runtime/run-complete.d.ts.map +1 -0
- package/dist/agent-runtime/run-driver-compose.d.ts +21 -0
- package/dist/agent-runtime/run-driver-compose.d.ts.map +1 -0
- package/dist/agent-runtime/run-execution-state.d.ts +23 -10
- package/dist/agent-runtime/run-execution-state.d.ts.map +1 -1
- package/dist/agent-runtime/run-execution.d.ts +2 -2
- package/dist/agent-runtime/run-execution.d.ts.map +1 -1
- package/dist/agent-runtime/run-failure.d.ts +2 -2
- package/dist/agent-runtime/run-failure.d.ts.map +1 -1
- package/dist/agent-runtime/run-history-parts.d.ts +14 -0
- package/dist/agent-runtime/run-history-parts.d.ts.map +1 -0
- package/dist/agent-runtime/run-loop-events.d.ts +126 -0
- package/dist/agent-runtime/run-loop-events.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-attempts.d.ts +2 -2
- package/dist/agent-runtime/run-model-attempts.d.ts.map +1 -1
- package/dist/agent-runtime/run-model-messages.d.ts +9 -0
- package/dist/agent-runtime/run-model-messages.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-step.d.ts +43 -0
- package/dist/agent-runtime/run-model-step.d.ts.map +1 -0
- package/dist/agent-runtime/run-model-stream.d.ts +27 -0
- package/dist/agent-runtime/run-model-stream.d.ts.map +1 -0
- package/dist/agent-runtime/run-operation-lifecycle.d.ts +8 -4
- package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/run-prompt-history.d.ts +8 -13
- package/dist/agent-runtime/run-prompt-history.d.ts.map +1 -1
- package/dist/agent-runtime/run-provider-ledger.d.ts +7 -4
- package/dist/agent-runtime/run-provider-ledger.d.ts.map +1 -1
- package/dist/agent-runtime/run-step-barriers.d.ts +58 -16
- package/dist/agent-runtime/run-step-barriers.d.ts.map +1 -1
- package/dist/agent-runtime/run-step-helpers.d.ts +49 -0
- package/dist/agent-runtime/run-step-helpers.d.ts.map +1 -0
- package/dist/agent-runtime/run-step-prepare.d.ts +34 -0
- package/dist/agent-runtime/run-step-prepare.d.ts.map +1 -0
- package/dist/agent-runtime/run-step-spend.d.ts +85 -10
- package/dist/agent-runtime/run-step-spend.d.ts.map +1 -1
- package/dist/agent-runtime/run-stream-parts.d.ts +13 -9
- package/dist/agent-runtime/run-stream-parts.d.ts.map +1 -1
- package/dist/agent-runtime/run-stream-recorded.d.ts +8 -0
- package/dist/agent-runtime/run-stream-recorded.d.ts.map +1 -0
- package/dist/agent-runtime/run-stream-step-text.d.ts +29 -0
- package/dist/agent-runtime/run-stream-step-text.d.ts.map +1 -0
- package/dist/agent-runtime/run-terminal.d.ts +3 -3
- package/dist/agent-runtime/run-terminal.d.ts.map +1 -1
- package/dist/agent-runtime/run-tool-approval-flow.d.ts +36 -0
- package/dist/agent-runtime/run-tool-approval-flow.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-approval-records.d.ts +24 -0
- package/dist/agent-runtime/run-tool-approval-records.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-call.d.ts +73 -0
- package/dist/agent-runtime/run-tool-call.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-errors.d.ts +29 -0
- package/dist/agent-runtime/run-tool-errors.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-executor.d.ts +34 -0
- package/dist/agent-runtime/run-tool-executor.d.ts.map +1 -0
- package/dist/agent-runtime/run-tool-progress.d.ts +2 -2
- package/dist/agent-runtime/run-tool-progress.d.ts.map +1 -1
- package/dist/agent-runtime/run-turn-preparation.d.ts +7 -6
- package/dist/agent-runtime/run-turn-preparation.d.ts.map +1 -1
- package/dist/agent-runtime/run-unacquired.d.ts +2 -2
- package/dist/agent-runtime/run-unacquired.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-control.d.ts +4 -4
- package/dist/agent-runtime/runtime-control.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-internals.d.ts +35 -44
- package/dist/agent-runtime/runtime-internals.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-recovery.d.ts +3 -3
- package/dist/agent-runtime/runtime-recovery.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-state.d.ts +3 -3
- package/dist/agent-runtime/runtime-state.d.ts.map +1 -1
- package/dist/agent-runtime/runtime-submit.d.ts +2 -2
- package/dist/agent-runtime/runtime-submit.d.ts.map +1 -1
- package/dist/agent-runtime/runtime.d.ts +51 -16
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/agent-runtime/sandbox-process-linux.d.ts +8 -0
- package/dist/agent-runtime/sandbox-process-linux.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox-process-macos.d.ts +21 -0
- package/dist/agent-runtime/sandbox-process-macos.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox-process-spec.d.ts +114 -0
- package/dist/agent-runtime/sandbox-process-spec.d.ts.map +1 -0
- package/dist/agent-runtime/sandbox-process-wrapper.d.ts +19 -0
- package/dist/agent-runtime/sandbox-process-wrapper.d.ts.map +1 -0
- package/dist/agent-runtime/schemas-message.d.ts +10 -0
- package/dist/agent-runtime/schemas-message.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-provider.d.ts +2 -0
- package/dist/agent-runtime/schemas-provider.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-run.d.ts +10 -0
- package/dist/agent-runtime/schemas-run.d.ts.map +1 -1
- package/dist/agent-runtime/schemas-usage-state.d.ts +6 -0
- package/dist/agent-runtime/schemas-usage-state.d.ts.map +1 -0
- package/dist/agent-runtime/schemas-usage.d.ts +8 -0
- package/dist/agent-runtime/schemas-usage.d.ts.map +1 -1
- package/dist/agent-runtime/sql-rows.d.ts +20 -10
- package/dist/agent-runtime/sql-rows.d.ts.map +1 -1
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts +40 -20
- package/dist/agent-runtime/store-conformance-lifecycle.d.ts.map +1 -1
- package/dist/agent-runtime/store-conformance-support.d.ts +20 -10
- package/dist/agent-runtime/store-conformance-support.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver-contract.d.ts +70 -0
- package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
- package/dist/agent-runtime/store-events.d.ts +120 -0
- package/dist/agent-runtime/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +140 -0
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +10 -0
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- package/dist/agent-runtime/testing.d.ts +20 -0
- package/dist/agent-runtime/testing.d.ts.map +1 -1
- package/dist/browser/client-call-arguments.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/browser/client.d.ts +6 -0
- package/dist/browser/client.d.ts.map +1 -1
- package/dist/browser/device-presence-client.d.ts +42 -0
- package/dist/browser/device-presence-client.d.ts.map +1 -0
- package/dist/browser/device-presence-ops.d.ts +47 -0
- package/dist/browser/device-presence-ops.d.ts.map +1 -0
- package/dist/browser/device-presence-relay-adapter.d.ts +37 -0
- package/dist/browser/device-presence-relay-adapter.d.ts.map +1 -0
- package/dist/browser/http-fetch.d.ts +7 -2
- package/dist/browser/http-fetch.d.ts.map +1 -1
- package/dist/browser/http-helpers.d.ts +15 -0
- package/dist/browser/http-helpers.d.ts.map +1 -0
- package/dist/browser/http.d.ts +8 -0
- package/dist/browser/http.d.ts.map +1 -1
- package/dist/contract/client-types.d.ts +8 -0
- package/dist/contract/client-types.d.ts.map +1 -1
- package/dist/contract/runtime-context.d.ts +13 -1
- package/dist/contract/runtime-context.d.ts.map +1 -1
- package/dist/device-relay/agent-handlers.d.ts +45 -0
- package/dist/device-relay/agent-handlers.d.ts.map +1 -0
- package/dist/device-relay/agent.d.ts +80 -0
- package/dist/device-relay/agent.d.ts.map +1 -0
- package/dist/device-relay/broker.d.ts +49 -0
- package/dist/device-relay/broker.d.ts.map +1 -0
- package/dist/device-relay/contract.d.ts +614 -0
- package/dist/device-relay/contract.d.ts.map +1 -0
- package/dist/device-relay/encoding.d.ts +30 -0
- package/dist/device-relay/encoding.d.ts.map +1 -0
- package/dist/device-relay/hub-connection.d.ts +43 -0
- package/dist/device-relay/hub-connection.d.ts.map +1 -0
- package/dist/device-relay/hub-dispatch.d.ts +19 -0
- package/dist/device-relay/hub-dispatch.d.ts.map +1 -0
- package/dist/device-relay/hub-handshake.d.ts +20 -0
- package/dist/device-relay/hub-handshake.d.ts.map +1 -0
- package/dist/device-relay/hub-shared-streams.d.ts +24 -0
- package/dist/device-relay/hub-shared-streams.d.ts.map +1 -0
- package/dist/device-relay/hub-streams.d.ts +57 -0
- package/dist/device-relay/hub-streams.d.ts.map +1 -0
- package/dist/device-relay/hub.d.ts +117 -0
- package/dist/device-relay/hub.d.ts.map +1 -0
- package/dist/entrypoints/agent-executor/acp.d.ts +1 -1
- package/dist/entrypoints/agent-executor/acp.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor/acp.js +224 -47
- package/dist/entrypoints/agent-executor/claude-sdk.js +15 -15
- package/dist/entrypoints/agent-executor/claude.js +13 -15
- package/dist/entrypoints/agent-executor/codex.js +88 -48
- package/dist/entrypoints/agent-executor/testing/claude-sdk.js +5 -5
- package/dist/entrypoints/agent-executor/testing.js +31 -30
- package/dist/entrypoints/agent-executor.d.ts +2 -2
- package/dist/entrypoints/agent-executor.d.ts.map +1 -1
- package/dist/entrypoints/agent-executor.js +23 -17
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts +9 -0
- package/dist/entrypoints/agent-runtime/ai-sdk.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/ai-sdk.js +821 -0
- package/dist/entrypoints/agent-runtime/anthropic.d.ts +4 -0
- package/dist/entrypoints/agent-runtime/anthropic.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/anthropic.js +1260 -0
- package/dist/entrypoints/agent-runtime/browser.d.ts +4 -1
- package/dist/entrypoints/agent-runtime/browser.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/browser.js +449 -50
- package/dist/entrypoints/agent-runtime/coding-tools.js +3 -3
- package/dist/entrypoints/agent-runtime/harness.js +24 -19
- package/dist/entrypoints/agent-runtime/openai.d.ts +4 -0
- package/dist/entrypoints/agent-runtime/openai.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/openai.js +1246 -0
- package/dist/entrypoints/agent-runtime/openrouter.d.ts +5 -2
- package/dist/entrypoints/agent-runtime/openrouter.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/openrouter.js +2355 -371
- package/dist/entrypoints/agent-runtime/postgres.js +12 -10
- package/dist/entrypoints/agent-runtime/realtime.js +11 -10
- package/dist/entrypoints/agent-runtime/sandbox.d.ts +3 -0
- package/dist/entrypoints/agent-runtime/sandbox.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/sandbox.js +530 -7
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +13 -11
- package/dist/entrypoints/agent-runtime/sqlite/node.js +13 -11
- package/dist/entrypoints/agent-runtime/testing.d.ts +1 -1
- package/dist/entrypoints/agent-runtime/testing.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/testing.js +56 -15
- package/dist/entrypoints/agent-runtime.d.ts +14 -6
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +1412 -115
- package/dist/entrypoints/application/diagnostic-journal.js +6 -6
- package/dist/entrypoints/application/directory-inbox.js +6 -6
- package/dist/entrypoints/application/opentelemetry.js +3 -3
- package/dist/entrypoints/application.js +17 -17
- package/dist/entrypoints/cli/publish.js +8 -8
- package/dist/entrypoints/cli.js +14 -15
- package/dist/entrypoints/contract.d.ts +1 -0
- package/dist/entrypoints/contract.d.ts.map +1 -1
- package/dist/entrypoints/contract.js +13 -9
- package/dist/entrypoints/device-relay.d.ts +10 -0
- package/dist/entrypoints/device-relay.d.ts.map +1 -0
- package/dist/entrypoints/device-relay.js +2517 -0
- package/dist/entrypoints/files/packaging.js +3 -3
- package/dist/entrypoints/files.js +11 -11
- package/dist/entrypoints/geo.js +5 -5
- package/dist/entrypoints/google.js +1 -1
- package/dist/entrypoints/handler.js +6 -6
- package/dist/entrypoints/http.js +9 -9
- package/dist/entrypoints/index.js +21 -17
- package/dist/entrypoints/live.js +4 -4
- package/dist/entrypoints/node.js +13 -13
- package/dist/entrypoints/observability.js +9 -9
- package/dist/entrypoints/process/bootstrap.js +1 -1
- package/dist/entrypoints/process.js +5 -5
- package/dist/entrypoints/react.js +4 -4
- package/dist/entrypoints/realtime.d.ts +3 -0
- package/dist/entrypoints/realtime.d.ts.map +1 -1
- package/dist/entrypoints/realtime.js +413 -4
- package/dist/entrypoints/release.js +1 -1
- package/dist/entrypoints/remote.js +10 -10
- package/dist/entrypoints/server.d.ts +1 -0
- package/dist/entrypoints/server.d.ts.map +1 -1
- package/dist/entrypoints/server.js +546 -40
- package/dist/entrypoints/service-host/macos.js +10 -10
- package/dist/entrypoints/service-host/work.js +7 -7
- package/dist/entrypoints/service-host.js +15 -15
- package/dist/entrypoints/spend.js +3 -3
- package/dist/entrypoints/sync.js +4 -4
- package/dist/entrypoints/telegram/screens.js +6 -6
- package/dist/entrypoints/telegram.js +20 -20
- package/dist/entrypoints/testing.js +14 -14
- package/dist/entrypoints/tools/agent.d.ts +2 -1
- package/dist/entrypoints/tools/agent.d.ts.map +1 -1
- package/dist/entrypoints/tools/agent.js +8 -7
- package/dist/entrypoints/tools/connections.js +5 -5
- package/dist/entrypoints/tools/invoker.js +3 -4
- package/dist/entrypoints/tools/mcp.js +8 -9
- package/dist/entrypoints/tools/toolkit.js +32 -13
- package/dist/entrypoints/tools.d.ts +3 -1
- package/dist/entrypoints/tools.d.ts.map +1 -1
- package/dist/entrypoints/tools.js +37 -35
- package/dist/entrypoints/tracking/contract.js +1 -1
- package/dist/entrypoints/tracking/performance.js +4 -4
- package/dist/entrypoints/tracking.js +3 -3
- package/dist/{index-09f7w2qq.js → index-02kdtrcd.js} +1 -1
- package/dist/{index-y53cqwke.js → index-033tyx59.js} +1 -1
- package/dist/{index-9ft4n9j1.js → index-05b65gj4.js} +2 -2
- package/dist/{index-d04w81fz.js → index-0sxj3y45.js} +1 -1
- package/dist/{index-dm6nxkn1.js → index-18pf56dq.js} +4 -6
- package/dist/index-1gmgwfn3.js +439 -0
- package/dist/index-23wn8sgf.js +47 -0
- package/dist/{index-tqjamnax.js → index-27srek2g.js} +15 -13
- package/dist/{index-2nwvn7m2.js → index-29v1p1f4.js} +2 -2
- package/dist/index-36dmtzjr.js +194 -0
- package/dist/{index-ycr4pk0z.js → index-42n9jycn.js} +3 -3
- package/dist/{index-ke02kxsr.js → index-43k180c2.js} +1 -1
- package/dist/{index-pbekeqzm.js → index-5c4m8zdf.js} +2 -2
- package/dist/{index-qggqqja2.js → index-5dxgx3yj.js} +1 -1
- package/dist/{index-x5ayy5bn.js → index-5gdexvke.js} +3 -1
- package/dist/{index-t1a2jrg7.js → index-5xsxvk2x.js} +1 -1
- package/dist/{index-mbd92r1w.js → index-654rhe5d.js} +1 -1
- package/dist/{index-2dzc7mv9.js → index-67pnt4bh.js} +1 -1
- package/dist/index-6kpwkpgx.js +415 -0
- package/dist/{index-s43tr4my.js → index-6kwdfb9m.js} +18 -3
- package/dist/{index-1qwd54n3.js → index-6nzzj7qr.js} +1 -1
- package/dist/{index-rkjfzs0a.js → index-6p5pshcd.js} +2 -2
- package/dist/{index-118aebbg.js → index-6t4c98gr.js} +1 -1
- package/dist/{index-pws5c3x6.js → index-6xw1wf4m.js} +51 -32
- package/dist/{index-kwsr7j5k.js → index-6yb4stq3.js} +1 -1
- package/dist/{index-8jf4bt7v.js → index-76yhxa41.js} +8 -8
- package/dist/{index-7416mhyh.js → index-79vqbjcz.js} +1 -1
- package/dist/{index-13wmzpa6.js → index-7an2fs5h.js} +1 -1
- package/dist/index-7qza24g1.js +14 -0
- package/dist/{index-gtaaxe9d.js → index-8cek82ar.js} +1 -1
- package/dist/index-9f60gnfn.js +393 -0
- package/dist/{index-stpy56r3.js → index-aacwkve4.js} +209 -10
- package/dist/{index-rpyn7geq.js → index-ac3rfec5.js} +2 -2
- package/dist/{index-d2drhb9c.js → index-b0mh2t9x.js} +2 -2
- package/dist/index-b23s6e2c.js +158 -0
- package/dist/{index-an7vcmwf.js → index-bvpevwt6.js} +5 -5
- package/dist/{index-msxf2r8x.js → index-by8w2461.js} +1 -1
- package/dist/{index-8t9dr41h.js → index-c0yym4a0.js} +4 -4
- package/dist/{index-wddcfbng.js → index-c7fj4yw9.js} +1 -1
- package/dist/{index-tf70nm22.js → index-cb4nnvfr.js} +8 -6
- package/dist/{index-205456mf.js → index-d3s070eh.js} +2 -2
- package/dist/{index-apf5g7y9.js → index-dz6tstcp.js} +2 -2
- package/dist/{index-agy5fqgf.js → index-e1y74yra.js} +15 -8
- package/dist/index-edtg4tak.js +55 -0
- package/dist/{index-pq6g1k9t.js → index-ek9w11r0.js} +2 -2
- package/dist/{index-x46y9z26.js → index-epyj7ptp.js} +7 -5
- package/dist/{index-6kmjcm81.js → index-er483f3w.js} +93 -4
- package/dist/{index-827bgv33.js → index-f16b7rze.js} +1 -1
- package/dist/{index-gbhj370g.js → index-fec05c9k.js} +21 -21
- package/dist/{index-9wdrwx3b.js → index-fjac2w5e.js} +20 -22
- package/dist/{index-6918kxbf.js → index-fthw8dwa.js} +1 -0
- package/dist/{index-2mz8hj58.js → index-g04hszcm.js} +1 -1
- package/dist/{index-rw8ze745.js → index-ga6avd48.js} +1 -1
- package/dist/{index-paff5y0r.js → index-grhhsrd5.js} +9 -7
- package/dist/{index-mxt0wfjy.js → index-h20qcyh5.js} +5 -2
- package/dist/index-j3r7r1mh.js +150 -0
- package/dist/{index-vgytj9wp.js → index-jmaw365j.js} +1 -1
- package/dist/{index-t5g5rm9n.js → index-jzdbkanz.js} +5 -3
- package/dist/index-k137ezb6.js +79 -0
- package/dist/{index-tazm4dxf.js → index-kdw0n92g.js} +1 -1
- package/dist/{index-wh70tmpd.js → index-ke6jtxkd.js} +1 -1
- package/dist/index-kgj8j7bv.js +83 -0
- package/dist/{index-9kpxz49v.js → index-kgkevngs.js} +1 -1
- package/dist/{index-hab790s6.js → index-kp1j7cc8.js} +4 -4
- package/dist/{index-jcge9tx3.js → index-krekhmp7.js} +142 -123
- package/dist/{index-3y2tzhr8.js → index-ky79wwgs.js} +4 -4
- package/dist/{index-39rmc00v.js → index-mfe9a266.js} +1 -1
- package/dist/{index-qpzyahe3.js → index-mgr0mdqp.js} +5 -2
- package/dist/{index-n20tybgk.js → index-mh3jdb25.js} +2 -2
- package/dist/{index-g5fgeb6v.js → index-mkmep637.js} +1 -1
- package/dist/{index-02r5sq9p.js → index-mrng24wq.js} +19 -21
- package/dist/index-mx2gya05.js +465 -0
- package/dist/{index-8yt3rwe7.js → index-n2t87ggz.js} +5 -5
- package/dist/index-nfeafbzh.js +7379 -0
- package/dist/{index-j0ef04jw.js → index-nfm15ej7.js} +4 -4
- package/dist/index-pd9e8rz4.js +193 -0
- package/dist/{index-zwgwyvdt.js → index-pdcbjd6a.js} +1 -1
- package/dist/{index-q427q23r.js → index-pjjh91vw.js} +2 -2
- package/dist/{index-gnjgkecx.js → index-q46b16xz.js} +1 -1
- package/dist/{index-9xr44d2g.js → index-qv5v6w9c.js} +330 -106
- package/dist/{index-tmv3ez1h.js → index-qymek778.js} +69 -12
- package/dist/{index-yrr3n391.js → index-ry8m2mhg.js} +2 -2
- package/dist/{index-93n6jwy0.js → index-s0n0nnz5.js} +3 -3
- package/dist/{index-1p8q0yrt.js → index-t5zp1jjj.js} +5 -7
- package/dist/{index-2rf33y2h.js → index-tav72wz5.js} +4 -2
- package/dist/{index-jpecjm30.js → index-tgehj4bp.js} +1 -1
- package/dist/{index-ma26mfnt.js → index-v5hmyef8.js} +1 -1
- package/dist/index-vebzvse6.js +230 -0
- package/dist/index-vv0hxrmy.js +295 -0
- package/dist/index-vxm0ya3f.js +707 -0
- package/dist/{index-t3qcac2a.js → index-w3s79kcb.js} +1 -1
- package/dist/{index-r97ppg0g.js → index-x1r7kxzd.js} +1 -1
- package/dist/{index-kynwa08q.js → index-xrsryvd2.js} +2 -2
- package/dist/{index-3mcbr8sx.js → index-xtxxt87z.js} +1 -1
- package/dist/index-zk839vzf.js +231 -0
- package/dist/{index-9c76vfxf.js → index-zyyerdny.js} +4 -4
- package/dist/internal/base64.d.ts +9 -0
- package/dist/internal/base64.d.ts.map +1 -0
- package/dist/internal/deadline-budget.d.ts +57 -0
- package/dist/internal/deadline-budget.d.ts.map +1 -0
- package/dist/internal/deadline.d.ts.map +1 -1
- package/dist/internal/timers.d.ts +2 -0
- package/dist/internal/timers.d.ts.map +1 -1
- package/dist/realtime/device-presence-contract.d.ts +194 -0
- package/dist/realtime/device-presence-contract.d.ts.map +1 -0
- package/dist/server/context-contribution.d.ts.map +1 -1
- package/dist/server/contract-method.d.ts.map +1 -1
- package/dist/server/device-presence-handlers.d.ts +54 -0
- package/dist/server/device-presence-handlers.d.ts.map +1 -0
- package/dist/server/device-presence-registry.d.ts +35 -0
- package/dist/server/device-presence-registry.d.ts.map +1 -0
- package/dist/server/device-presence.d.ts +45 -0
- package/dist/server/device-presence.d.ts.map +1 -0
- package/dist/server/endpoint-dispatch.d.ts.map +1 -1
- package/dist/server/middleware/cors.d.ts +3 -1
- package/dist/server/middleware/cors.d.ts.map +1 -1
- package/dist/server/types.d.ts +4 -11
- package/dist/server/types.d.ts.map +1 -1
- package/dist/service-host/systemd-render-shared.d.ts.map +1 -1
- package/dist/tools/agent-messages.d.ts +6 -0
- package/dist/tools/agent-messages.d.ts.map +1 -0
- package/dist/tools/agent-tool-error.d.ts +2 -2
- package/dist/tools/agent-tools.d.ts +153 -0
- package/dist/tools/agent-tools.d.ts.map +1 -0
- package/dist/tools/agent.d.ts +6 -56
- package/dist/tools/agent.d.ts.map +1 -1
- package/dist/tools/runtime-tool.d.ts +3 -4
- package/dist/tools/runtime-tool.d.ts.map +1 -1
- package/dist/tools/toolkit.d.ts +3 -1
- package/dist/tools/toolkit.d.ts.map +1 -1
- package/dist/tools/transfer/define-view-file-tool.d.ts.map +1 -1
- package/llms/agent-executor-acp.txt +4 -4
- package/llms/agent-executor-codex.txt +1 -1
- package/llms/agent-executor.txt +7 -3
- package/llms/agent-runtime-ai-sdk.txt +26 -0
- package/llms/agent-runtime-anthropic.txt +33 -0
- package/llms/agent-runtime-browser.txt +22 -8
- package/llms/agent-runtime-harness.txt +2 -2
- package/llms/agent-runtime-openai.txt +31 -0
- package/llms/agent-runtime-openrouter.txt +17 -7
- package/llms/agent-runtime-sandbox.txt +53 -1
- package/llms/agent-runtime-testing.txt +4 -2
- package/llms/agent-runtime.2.txt +158 -271
- package/llms/agent-runtime.3.txt +289 -243
- package/llms/agent-runtime.4.txt +273 -216
- package/llms/agent-runtime.5.txt +209 -2
- package/llms/agent-runtime.txt +238 -181
- package/llms/contract.txt +2 -1
- package/llms/device-relay.txt +34 -0
- package/llms/realtime.txt +20 -0
- package/llms/server.2.txt +125 -1
- package/llms/server.3.txt +111 -122
- package/llms/server.4.txt +1 -1
- package/llms/server.5.txt +3 -1
- package/llms/server.txt +31 -1
- package/llms/spend.txt +11 -6
- package/llms/stitchkit.2.txt +21 -43
- package/llms/stitchkit.3.txt +43 -0
- package/llms/stitchkit.txt +93 -84
- package/llms/tools-agent.txt +7 -5
- package/llms/tools-toolkit.txt +1 -1
- package/llms/tools.4.txt +7 -2
- package/llms/{upgrading-0.128.0-0.133.0.txt → upgrading-0.128.0-0.134.0.txt} +173 -3
- package/llms/upgrading.txt +1 -1
- package/llms-full.txt +983 -212
- package/llms.txt +21 -17
- package/package.json +18 -7
- package/dist/index-0p0s5hrj.js +0 -249
- package/dist/index-1dn2wjq6.js +0 -135
- package/dist/index-1psbyyhj.js +0 -21
- package/dist/index-34k82crg.js +0 -3961
- package/dist/index-5n3a8hd8.js +0 -102
- package/dist/index-97rp94ff.js +0 -8
- package/dist/index-bn2baakz.js +0 -336
- package/dist/index-eh71zr32.js +0 -14
- package/dist/index-emgrmavr.js +0 -1193
- package/dist/index-fzd477xk.js +0 -135
- package/dist/index-vgzhw2zk.js +0 -304
- package/dist/internal/ai-sdk-typed.d.ts +0 -14
- package/dist/internal/ai-sdk-typed.d.ts.map +0 -1
- package/dist/tools/runtime-call-context.d.ts +0 -15
- package/dist/tools/runtime-call-context.d.ts.map +0 -1
- package/dist/{index-vmbxj75t.js → index-jwtmw39p.js} +0 -0
- package/dist/{index-877e9y8r.js → index-sk03xe0n.js} +3 -3
- package/dist/{index-21cfxc4z.js → index-vh4291qh.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,127 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
|
|
|
15
15
|
|
|
16
16
|
## [Unreleased]
|
|
17
17
|
|
|
18
|
+
## [0.134.0] - 2026-11-28
|
|
19
|
+
|
|
20
|
+
### ⚠️ Breaking changes
|
|
21
|
+
|
|
22
|
+
**Who must act:** applications using `stitchkit/agent-runtime` or `stitchkit/agent-runtime/harness` with AI SDK `LanguageModel`, `ToolSet`, `ModelMessage`, or `LanguageModelUsage` types. [Migration](docs/guide/upgrading.md#agent-runtime-native-model-port)
|
|
23
|
+
|
|
24
|
+
**Who must act:** applications using `stitchkit/agent-runtime/openrouter` with `baseURL`, `extraHeaders`, `provider_api_keys`, or `@openrouter/ai-sdk-provider`. [Migration](docs/guide/upgrading.md#openrouter-native-driver)
|
|
25
|
+
|
|
26
|
+
**Who must act:** callers of `stitchkit/tools` referencing `RuntimeAgentModelOutput` or returning legacy deprecated AI SDK tool-output shapes (`file-data`, `image-data`, `file-url`, `image-url`, `file-id`, `image-file-id`) from `present.agent`. [Migration](docs/guide/upgrading.md#tools-agent-tool-model-output)
|
|
27
|
+
|
|
28
|
+
**Who must act:** tests calling `createReplayAgentProvider` from `stitchkit/agent-runtime/testing` expecting an AI SDK `LanguageModel` instead of an `AgentModelDriver`. [Migration](docs/guide/upgrading.md#agent-runtime-testing-replay-driver)
|
|
29
|
+
|
|
30
|
+
- `stitchkit/agent-runtime`, `stitchkit/agent-runtime/harness` — `stitchkit/agent-runtime` now owns its single native step loop behind the peer-free `AgentModelDriver` port and removes `streamText`/`generateText` and all AI SDK types from its public declarations. `AgentLanguageModelProvider` is replaced by `AgentModelDriverFactory`, `AgentResolvedModel.model` is renamed to `AgentResolvedModel.driver`, `AgentRuntimeStopPolicy<CONTEXT>` drops its unused first generic, all tool stream events in `AgentModelStreamPart` and `CompleteStreamPart` uniformly use `toolCallId`, and `createAgentRuntime`, `createHeadlessAgentHarness`, `createDeferredAgentToolSurface`, `projectAgentHistory`, `prepareStep`, `stopPolicies`, `history.resolveFile`, and `persistGeneratedFile` now operate on peer-free `AgentToolSet`, `AgentModelMessage`, `AgentModelFileData`, `AgentGeneratedFile`, and `AgentStepResult`. Existing AI SDK v4 models and `ToolSet`s bridge cleanly in step 1 through `fromAiSdkModel` / `fromAiSdkTools` (`stitchkit/agent-runtime/ai-sdk`), and migrate completely off `ai` in step 2 using the native providers and `mountAgentTools` / `defineAgentTool`. → ADR 0336
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
// before
|
|
34
|
+
import { mountAgent } from 'stitchkit/tools/agent';
|
|
35
|
+
import type { AgentLanguageModelProvider } from 'stitchkit/agent-runtime';
|
|
36
|
+
const runtime = createAgentRuntime({
|
|
37
|
+
models: { resolve: () => ({ descriptor, model: aiSdkModel }) },
|
|
38
|
+
tools: (ctx) => mountAgent(service, { context: ctx.context, access: { gate: ctx.toolFenceLifecycle } }),
|
|
39
|
+
// ...
|
|
40
|
+
});
|
|
41
|
+
// after (step 1: keep existing AI SDK model/tools via the optional adapter)
|
|
42
|
+
import { fromAiSdkModel, fromAiSdkTools } from 'stitchkit/agent-runtime/ai-sdk';
|
|
43
|
+
const runtime = createAgentRuntime({
|
|
44
|
+
models: { resolve: () => ({ descriptor, driver: fromAiSdkModel(aiSdkModel) }) },
|
|
45
|
+
tools: (ctx) => fromAiSdkTools(mountAgent(service, { context: ctx.context, access: { gate: ctx.toolFenceLifecycle } })),
|
|
46
|
+
// ...
|
|
47
|
+
});
|
|
48
|
+
// after (step 2: peer-free native provider + mountAgentTools)
|
|
49
|
+
import { mountAgentTools } from 'stitchkit/tools';
|
|
50
|
+
import { openRouterProvider } from 'stitchkit/agent-runtime/openrouter';
|
|
51
|
+
const provider = openRouterProvider({ apiKey: env.OPENROUTER_API_KEY });
|
|
52
|
+
const runtime = createAgentRuntime({
|
|
53
|
+
models: { resolve: () => ({ descriptor, driver: provider.create(descriptor.modelId) }) },
|
|
54
|
+
tools: (ctx) => mountAgentTools(service, { context: ctx.context, access: { gate: ctx.toolFenceLifecycle } }),
|
|
55
|
+
// ...
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Affects:** `stitchkit/agent-runtime` AgentLanguageModelProvider, AgentResolvedModel(driver), defineModelRegistry, AgentModelRegistry, createAgentRuntime(tools, loop, history), AgentRuntimeConfig(tools, loop, history), AgentRuntime, AgentRuntimePrepareStep, AgentRuntimeStopPolicy, agentChildBudgetStopPolicy, projectAgentHistory, projectAgentHistoryDetailed, AgentHistoryProjectionResult, AgentHistoryProjectionOptions(resolveFile), createDeferredAgentToolSurface, DeferredAgentToolController; `stitchkit/agent-runtime/harness` createHeadlessAgentHarness, HeadlessAgentHarness, HeadlessAgentHarnessConfig, HeadlessAgentModelResolver
|
|
60
|
+
|
|
61
|
+
- `stitchkit/agent-runtime/openrouter` — `openRouterProvider` is now a peer-free native OpenRouter Chat Completions SSE driver returning `AgentModelDriverFactory` over Web `fetch`, dropping `@openrouter/ai-sdk-provider` and `ai`. `OpenRouterProviderSettings` uses camelCase `baseUrl`, `providerApiKeys`, `appName`, `appUrl`, `headers`, `fetch`, and `extraBody`; `sessionPerConversation` reads `request.correlation.conversationId` directly without requiring `invocations`. → ADR 0336
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
// before
|
|
65
|
+
const provider = openRouterProvider({
|
|
66
|
+
apiKey: env.OPENROUTER_API_KEY,
|
|
67
|
+
baseURL: 'https://openrouter.ai/api/v1',
|
|
68
|
+
});
|
|
69
|
+
// after
|
|
70
|
+
const provider = openRouterProvider({
|
|
71
|
+
apiKey: env.OPENROUTER_API_KEY,
|
|
72
|
+
baseUrl: 'https://openrouter.ai/api/v1',
|
|
73
|
+
providerApiKeys: { anthropic: env.ANTHROPIC_BYOK_KEY },
|
|
74
|
+
});
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Affects:** `stitchkit/agent-runtime/openrouter` openRouterProvider, OpenRouterProviderSettings(baseUrl, providerApiKeys), OpenRouterProviderAccess(sessionPerConversation), normalizeOpenRouterUsage
|
|
78
|
+
|
|
79
|
+
- `stitchkit/tools`, `stitchkit/tools/agent` — `RuntimeAgentModelOutput` in `stitchkit/tools` is renamed without an alias to `AgentToolModelOutput`, using canonical non-deprecated `{ type: 'file', data: AgentModelFileData, mediaType, filename? }` content parts in place of deprecated AI SDK part types (`file-data`, `image-data`, `file-url`, `image-url`, `file-id`, `image-file-id`). `mountAgent` in `stitchkit/tools/agent` now adapts `mountAgentTools` and emits only non-deprecated `{ type: 'file', data, mediaType }` parts. → ADR 0336
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
// before
|
|
83
|
+
import type { RuntimeAgentModelOutput } from 'stitchkit/tools';
|
|
84
|
+
const out: RuntimeAgentModelOutput = {
|
|
85
|
+
type: 'content',
|
|
86
|
+
value: [{ type: 'image-data', data: base64Png, mediaType: 'image/png' }],
|
|
87
|
+
};
|
|
88
|
+
// after
|
|
89
|
+
import type { AgentToolModelOutput } from 'stitchkit/tools';
|
|
90
|
+
const out: AgentToolModelOutput = {
|
|
91
|
+
type: 'content',
|
|
92
|
+
value: [{ type: 'file', data: { type: 'data', data: base64Png }, mediaType: 'image/png' }],
|
|
93
|
+
};
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Affects:** `stitchkit/tools` RuntimeAgentModelOutput, AgentToolModelOutput, RuntimeToolPresenters(agent), defineRuntimeTool, createRuntimeToolFactory, defineDownloadTool, defineUploadTool, defineViewFileTool, defineWaitTool, RuntimeToolDefinitionWithOutput; `stitchkit/tools/agent` mountAgent(behaviour)
|
|
97
|
+
|
|
98
|
+
- `stitchkit/agent-runtime/testing` — `createReplayAgentProvider` now returns an `AgentModelDriverFactory` producing `AgentModelDriver` instances rather than AI SDK `LanguageModel` instances. → ADR 0336
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
// before
|
|
102
|
+
const model = replayProvider.create('demo/model');
|
|
103
|
+
// after: pass the returned AgentModelDriver directly to AgentResolvedModel.driver or completeText
|
|
104
|
+
const driver = replayProvider.create('demo/model');
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Affects:** `stitchkit/agent-runtime/testing` createReplayAgentProvider
|
|
108
|
+
|
|
109
|
+
### Added
|
|
110
|
+
|
|
111
|
+
- `stitchkit/agent-runtime/openai` — new peer-free **evolving** native OpenAI Responses API (`POST /v1/responses`) provider leaf over Web `fetch` and SSE (`openAiProvider`, `OpenAiProviderSettings`, `OpenAiProviderAccess`, `OpenAiRequestPolicySchema`, `OpenAiRequestPolicy`, `OpenAiReasoningPolicySchema`, `OpenAiReasoningPolicy`, `normalizeOpenAiUsage`). Defaults to stateless `store: false` with automatic `include: ['reasoning.encrypted_content']` round-trip, `role: 'developer'` instructions, loose `strict: false` tool schemas, `item_id` (`fc_*`) vs `call_id` separation, `text.format` structured outputs, `cachePerConversation` (`prompt_cache_key`), and fail-fast refusal of unsupported settings (I9). → ADR 0336
|
|
112
|
+
- `stitchkit/agent-runtime/anthropic` — new peer-free **evolving** native Anthropic Messages API (`POST /v1/messages`) provider leaf over Web `fetch` and SSE (`anthropicProvider`, `AnthropicProviderSettings`, `AnthropicProviderAccess`, `AnthropicRequestPolicySchema`, `AnthropicRequestPolicy`, `AnthropicThinkingPolicySchema`, `AnthropicThinkingPolicy`, `normalizeAnthropicUsage`). Enforces mandatory `maxOutputTokens` and `maxOutputTokens > thinking.budgetTokens` before hitting the network, preserves verbatim multi-block `thinking` + `signature` and `redacted_thinking`, splits images out of `is_error` tool results, budgets ≤ 4 cache breakpoints with TTL-order checks, computes total `inputTokens` with `computed` provenance when cache counters are positive (ADR 0109), maps `output_config.format` JSON Schema (refusing schemaless `json-object`), and classifies `529 overloaded_error` as retryable. → ADR 0336
|
|
113
|
+
- `stitchkit/agent-runtime/ai-sdk` — new optional-peer (`ai`) **evolving** adapter leaf (`fromAiSdkModel`, `FromAiSdkModelOptions`, `fromAiSdkTools`) bridging any AI SDK v4 `LanguageModel` (via `doStream()`, without `streamText` or `generateText`) and `ToolSet` (normalizing legacy deprecated tool outputs) onto `AgentModelDriver` and `AgentToolSet`. → ADR 0336
|
|
114
|
+
- `stitchkit/agent-runtime` — added peer-free stateless single- and multi-step completions and standalone streaming (`completeText`, `streamComplete`, `completeObject`, `AgentStructuredOutputError` including `'interrupted'`, `AgentRetryExhaustedError`, `AgentCompleteStopPolicy`, compile-time `prompt` vs `messages` XOR, fail-closed `tool.needsApproval` refusal via `AgentToolApprovalError` with `reason: 'approval-unsupported'`, `onPart`, `retry`, `stopPolicies`, `idleTimeoutMs`, strict-mode optional-`null` stripping with union/discriminator awareness, and `toJsonSchema(..., 'input')`), full per-step telemetry (`finishReason`, `rawFinishReason`, `toolCallCount`, `costDetails`, split `timings` with `chunkIntervalsMs`, and `response.{modelId,timestamp}`) on both `AgentStepSpend` and `AgentStepFinishedEvent`, leak-free driver lifecycle composition (`wrapModelDriver`, `composeModelDrivers`, `AgentModelDriverDecorator` with `transformSignal` tightening), canonical `AgentProviderError` and `isAgentProviderError`, additive `AgentModelToolSpec` (`type: 'provider'`, with `AgentModelProviderOptionValue` config) union branch with fail-fast driver refusal, per-request `AgentModelRequest.headers` (preserving `content-type: application/json`), dynamic per-call `apiKey` factories on `openRouterProvider`, `openAiProvider`, and `anthropicProvider`, `loop.maxDurationMs` wall-clock run deadlines, `stepBarriers` parity (`onMaxReasoningChars: 'abort' | 'finish-length'`, `stepTextOnInterrupt: 'drop' | 'flush'`, `filterStepText(text, { step, interrupted, finishReason, toolCalls, toolResults })`, and `onPredecessorFailure: 'refuse'` across invalid inputs, batch refusals, approval failures, and `isToolResultFailure` payloads), typed per-tool `input` in `loop.toolApproval`, resolved `model`/`tools`/`context` in `history.compact`, `{ summary, usage }` accumulation in `structuredCompaction`, PII-safe tool dispatch errors (`AgentUnknownToolError`, `AgentInvalidToolInputError`), typed WebCrypto HMAC-SHA256 tool-approval errors (`AgentToolApprovalError`, `AgentInvalidToolApprovalSignatureError`, `AgentToolCallNotFoundForApprovalError`), whole-step batch tool refusal (`loop.beforeStepToolCalls`), bounded terminal continuations (`protocol.acceptTerminal` returning `{ action: 'continue', message, instructions? }`, `loop.maxContinuations`, `carriedToolWork`), stream observability hooks (`loop.onAttemptDiscarded`, `loop.onToolInputStart`), `AgentGeneratedFile.filename` forwarded to `persistGeneratedFile`, and canonical peer-free model-exchange schemas (`AgentModelMessageSchema`, `AgentModelFileDataSchema`, `AgentModelResponseFormatSchema`, `AgentCacheControlSchema`, `AgentModelProviderOptionsSchema`, `AgentModelProviderOptionValue`, `AgentToolModelOutputSchema`). → ADR 0336
|
|
115
|
+
- `stitchkit/tools`, `stitchkit/tools/toolkit` — added peer-free `mountAgentTools` (including single-argument `mountAgentTools({ runtimeTools, access })` on both `stitchkit/tools` and `Toolkit.mountAgentTools`), `defineAgentTool` (with distinct `z.input`/`z.output` typing for `.transform()`/`.default()` output schemas, schema-typed `AsyncIterable<TOutputInput>` zero-lag streaming, distributive union return unwrapping for `Value | AsyncIterable<Value>`, direct `DefineAgentToolConfig` pass-through overload, and spread-safe executor-keyed output validation), `DefineAgentToolConfig`, `AgentTool`, `AgentToolSet`, `AgentToolCall`, `AgentToolParseResult`, `AgentToolInputAvailableOptions`, `AgentToolToModelOutputOptions`, `AgentMountConfig`, and `AgentContext` as the single peer-free tool definition and contract projection path. → ADR 0336
|
|
116
|
+
- `stitchkit/agent-runtime/testing` — added deterministic peer-free `createScriptedModelDriver` (`ScriptedModelDriver`, `ScriptedModelDriverOptions`, `ScriptedModelStep`) for unit and integration tests without external SDKs. → ADR 0336
|
|
117
|
+
- `stitchkit/agent-runtime/openrouter` — added portable `cacheControl` on `OpenRouterRequestPolicySchema`, BYOK `costDetails` (`cost + upstream_inference_cost`), `reasoning_details` and Gemini `thought_signature` round-trip, `native_finish_reason` abnormal-stop guard, `looseTools` preserving explicit per-tool `strict: true`, optional static/dynamic `apiKey` on catalog loaders (`loadOpenRouterCatalogSnapshot`, `fetchOpenRouterModelEndpoints`, `openRouterModelCatalog`), nullable `/models` row resilience and `~`-router model IDs, enriched catalog model/endpoint metadata (`canonicalSlug`, `description`, `createdAt`, `aliasTarget`, `outputModalities`, `tokenizer`, `topProviderContextLength`, `maxCompletionTokens`, `reasoning`, `requestUsd`, `imageUsd`, `cacheReadUsdPerMillion`, `cacheWriteUsdPerMillion`, `cacheWrite1hUsdPerMillion`, `pricingTiers`, `hasConditionalPricing`, endpoint `latencyP50Ms`/`throughputP50`/`uptime1d`/`tag`), pricing ceiling and endpoint summary helpers (`resolveOpenRouterModelCeiling`, `summarizeOpenRouterEndpoints`), snapshot queries (`findOpenRouterModel`, `listOpenRouterModels`, `OpenRouterModelFilter`), discriminated-union `createOpenRouterCatalogCache` (`OpenRouterCatalogCache`, `OpenRouterCatalogCacheOptions`, `OpenRouterCatalogCacheReadResult`, `OpenRouterCatalogStore`) with single-flight coalescing, TTL, retry backoff, and optional pluggable persistence, `include_reasoning` capability detection, and `evaluateOpenRouterModelAdmission` synchronization (`aliasTarget`, `'context-unknown'`, effective context length, and worst-case pricing ceilings). → ADR 0336
|
|
118
|
+
- `stitchkit/agent-runtime/browser` — added `AgentSourcePart` type export beside `AgentSourcePartSchema`.
|
|
119
|
+
- `stitchkit/agent-runtime/browser` — extended `AgentConversationView`, `AgentControlDelivery`, `AgentControlRequest`, `AgentBrowserRequest`, `AgentControlResponse` and `AgentController` with strict Zod schemas for native and remote interactive session states: `waiting-approval` (`AgentPendingApprovalSchema`, `respondApproval` with optional `idempotencyKey`), `waiting-input` (`AgentPendingInputSchema`, `AgentInputQuestionSchema`, `AgentInputAnswerSchema`, `respondInput`), permission modes (`AgentPermissionModeSchema`, `permissionMode`, `supportedPermissionModes`, `setPermissionMode`), executor host reachability (`AgentHostStatusSchema`, `AgentHostAvailabilitySchema` with `validUntil` and `reason`, overlaying `host-offline` in `deriveAgentConversationState` without turning active `working` state in `deriveAgentConversationActivity` into `idle`), and honest `delivery: 'unknown'` tracking and reconciliation (`reduceAgentControlDelivery`). Cloud sessions leave native-only fields absent without synthetic defaults.
|
|
120
|
+
- `stitchkit/device-relay` — new peer-free, browser- and Hermes-safe **evolving** entrypoint for User Device Relay over realtime (`createDeviceRelayHub`, `createDeviceRelayAgent`, `createMemoryRelayBroker`, `RelayBrokerPort`, `deviceRelayRealtimeContract`, `DeviceRelayError`). Multiplexes Fetch-compatible unary RPCs (`createRelayFetch`) and credit-paced resumable cursor streams (`openRelayStream`, with optional `share: true` fan-out that closes upstream when the last subscriber leaves) over a single outbound realtime socket with conservative heartbeat leases, strict owner-only default authorization (`FORBIDDEN` for foreign accounts), default-deny local allowlists on the device agent, and retryable vs. non-retryable failure classification.
|
|
121
|
+
- `stitchkit/realtime`, `stitchkit/server` — added account-scoped online device presence, ephemeral capability state slots and targeted remote command bus over a shared `RealtimeServerHandle` (`createDevicePresenceContract`, `createDevicePresenceClient`, `createDevicePresenceRelayAdapter` in `stitchkit/realtime`; `bindDevicePresence` in `stitchkit/server`). Enforces per-account isolation via `accountOf(identity)` without disrupting non-user sockets on the same server, protects reconnect handoffs against stale disconnects of the same `deviceId`, cleans up state on `disconnect`/`readmit`, republishes local capability states automatically on reconnect, and delivers typed command acknowledgements (`ok`, `DEVICE_OFFLINE`, `FORBIDDEN`, `TIMEOUT`, `UNSUPPORTED_CAPABILITY`, `HANDLER_ERROR`, `INVALID_COMMAND`, `DISCONNECTED`) without retrying side-effectful commands.
|
|
122
|
+
- `stitchkit/agent-executor`, `stitchkit/agent-executor/acp` — ACP tool calls and tool results now preserve `title`, `kind`, and `locations` (`AcpToolLocationSchema`, `AcpToolLocation`) inside `provider: { schemaVersion: 1, provider: 'acp', data: ... }` (`AgentToolResultPartSchema.provider` added without breaking existing callers); meaningful `tool_call_update` (`in_progress`/`pending`) records with new arguments or metadata emit updated `tool-call` deltas on the same `itemId` while suppressing empty heartbeats; `plan`, `plan_update`, and `plan_removed` notifications map to typed `ExecutorPlanDelta` (`ExecutorPlanDeltaSchema`, `ExecutorPlanEntrySchema`, `ExecutorPlanEntryStatusSchema`, `ExecutorPlanEntryPrioritySchema`, `AcpPlanEntrySchema`, `AcpPlanEntry`). **Upgrade the server before any executor:** strict executor ↔ server wire contracts reject new `plan` deltas and `tool-result.provider` envelopes on older servers ([Upgrade note](docs/guide/upgrading.md#executor-acp-plan-and-tool-provider)).
|
|
123
|
+
- `stitchkit`, `stitchkit/contract`, `stitchkit/http`, `stitchkit/server` — added hop-by-hop relative HTTP deadline budget propagation via `DEADLINE_BUDGET_HEADER` (`x-stitchkit-timeout-ms`), per-call `timeout` and `propagateDeadline` on `ClientRequestOptions`, `ClientConfig`, `HttpClientConfig`, and `RequestOptions`, automatic `X-Stitchkit-Timeout-Ms` CORS allow-header, and server-side deadline enforcement in `createHandler` / `createServer` (clamping inbound budgets to the endpoint's declared `timeout`, failing fast with `408 REQUEST_TIMEOUT` on `'0'`, ignoring malformed headers, linking `ctx.signal` to deadline expiry, and exposing monotonic `ctx.remainingTimeoutMs(reserveMs?)` for downstream calls and `createBoundedAdmission`).
|
|
124
|
+
- `stitchkit/agent-runtime/sandbox`, `stitchkit/agent-executor`, `stitchkit/agent-executor/acp`, `stitchkit/agent-executor/codex` — added a reusable fail-closed OS process sandbox wrapper (`createProcessSandbox`, `probeProcessSandbox`, `buildSeatbeltProfile`, `ProcessSandboxSpecSchema`) for long-lived streaming stdio/IPC processes (`workspace-strict` and `workspace-readonly` on Linux `bwrap` and macOS Seatbelt `sandbox-exec`, throwing `SandboxError('SANDBOX_UNAVAILABLE', ...)` rather than falling back silently) and added optional `wrapCommand?: EngineProcessWrapCommand` (`EngineProcessCommandSpec`) to `AcpDriverConfig` and `CodexDriverConfig` with preserved `providerPid` and clean `close()`.
|
|
125
|
+
|
|
126
|
+
### Fixed
|
|
127
|
+
|
|
128
|
+
- `stitchkit/http`, `stitchkit` — serialize query parameters to a string before handing requests to Ky so runtimes and polyfills without `URLSearchParams.prototype.size` (such as `react-native-url-polyfill`) no longer silently drop query parameters.
|
|
129
|
+
**Affects:** `stitchkit/http` createClient, createHttpClient, createUrlBuilder; `stitchkit` createClient, createHttpClient, createUrlBuilder
|
|
130
|
+
- `stitchkit/agent-runtime` — exported `AgentModelProviderOptionValue` with matching `z.input`/`z.output` typing on `AgentModelProviderOptionsSchema` and `AgentModelProviderToolSpec.config` so `OpenRouterRequestPolicy`, `OpenAiRequestPolicy`, and `AnthropicRequestPolicy` assign cleanly under `exactOptionalPropertyTypes: true`, non-JSON inputs are rejected at compile time, and consumer declarations emit zero elided `any`; `AgentModelStreamPart` (`file`) and `AgentGeneratedFile` carry optional `filename` forwarded to `persistGeneratedFile`.
|
|
131
|
+
**Affects:** `stitchkit/agent-runtime` AgentModelProviderOptionValue, AgentModelProviderOptions, AgentModelProviderOptionsSchema, AgentModelProviderToolSpec, AgentModelStreamPart, AgentGeneratedFile
|
|
132
|
+
|
|
133
|
+
## [0.133.2] - 2026-11-27
|
|
134
|
+
|
|
135
|
+
### Added
|
|
136
|
+
|
|
137
|
+
- `stitchkit/agent-executor/acp` — `AcpCapabilitiesProbe` and `AcpSession` now carry an optional `sessionMeta?: Readonly<Record<string, JsonRpcValue>>` field preserving the plain JSON-object `_meta` returned by `session/new` (in `probeCapabilities` and `open`), `session/resume`, and `session/load`. Absent or non-object `_meta` values are ignored without failing parsing, omitting `sessionMeta`.
|
|
138
|
+
|
|
18
139
|
## [0.133.1] - 2026-11-27
|
|
19
140
|
|
|
20
141
|
### Added
|
package/README.md
CHANGED
|
@@ -100,11 +100,14 @@ import { createGoogleOidcClient } from 'stitchkit/google'
|
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
The root `stitchkit` entrypoint is browser-safe. Server, tool, optional managed
|
|
103
|
-
application,
|
|
103
|
+
application, peer-free agent-runtime and peer-free remote-proxy code live
|
|
104
104
|
behind `stitchkit/server`, `stitchkit/tools`, `stitchkit/application`,
|
|
105
105
|
`stitchkit/agent-runtime` and `stitchkit/remote` respectively. Optional provider
|
|
106
106
|
adapters are isolated further; importing `stitchkit/application` never resolves
|
|
107
|
-
grammY or OpenTelemetry
|
|
107
|
+
grammY or OpenTelemetry, and `stitchkit/agent-runtime` ships peer-free native
|
|
108
|
+
drivers behind `stitchkit/agent-runtime/openrouter`, `stitchkit/agent-runtime/openai`
|
|
109
|
+
and `stitchkit/agent-runtime/anthropic` while keeping the optional AI SDK adapter
|
|
110
|
+
isolated behind `stitchkit/agent-runtime/ai-sdk`. Browser code that shares agent records imports
|
|
108
111
|
`stitchkit/agent-runtime/browser`; it contains the canonical schemas and event
|
|
109
112
|
cursor but no execution, persistence or sink graph.
|
|
110
113
|
Durable embedded storage is isolated behind
|
|
@@ -289,9 +292,10 @@ const result = await generateText({ model, tools, prompt: 'Create a user named M
|
|
|
289
292
|
```
|
|
290
293
|
|
|
291
294
|
For applications that want Stitchkit to own durable message/run transitions,
|
|
292
|
-
stream checkpoints, interruption and managed-tool fencing
|
|
293
|
-
[`stitchkit/agent-runtime`](docs/guide/agent-runtime.md)
|
|
294
|
-
|
|
295
|
+
stream checkpoints, interruption and managed-tool fencing without external AI SDK
|
|
296
|
+
dependencies, use the peer-free [`stitchkit/agent-runtime`](docs/guide/agent-runtime.md)
|
|
297
|
+
with `mountAgentTools` from `stitchkit/tools`. `mountAgent` (`stitchkit/tools/agent`)
|
|
298
|
+
remains the optional AI SDK adapter for application-owned loops.
|
|
295
299
|
|
|
296
300
|
### 7. WebSocket (Socket.IO)
|
|
297
301
|
|
|
@@ -363,8 +367,8 @@ import { parseSSE } from 'stitchkit' // client: Response → AsyncGene
|
|
|
363
367
|
| **Contract** | `defineContract()` — single source of truth for your API |
|
|
364
368
|
| **HTTP Server** | `createServer()` / `createHandler()` — Bun.serve, validation, hooks, raw routes |
|
|
365
369
|
| **MCP Tools** | `createMcpHandler()` / `mountMcp()` — MCP tools from contracts |
|
|
366
|
-
| **Agent Tools** | `mountAgent()` —
|
|
367
|
-
| **Agent Runtime** | `createAgentRuntime()` —
|
|
370
|
+
| **Agent Tools** | `mountAgentTools()` / `mountAgent()` — peer-free agent tools and optional AI SDK tools from contracts |
|
|
371
|
+
| **Agent Runtime** | `createAgentRuntime()` — peer-free durable history, stream loop, native providers, coordination and fencing |
|
|
368
372
|
| **Application Kernel** | `createApplication()` plus optional bounded local diagnostics — process-local resources, readiness, schedules and bounded shutdown |
|
|
369
373
|
| **Typed Client** | `createClient()` / `createClients()` — typed fetch from contracts |
|
|
370
374
|
| **Cursor Pagination** | `createCursorQuery()` — `react-query-kit` infinite query from a contract method |
|
|
@@ -453,12 +457,11 @@ peer — an install pulls in only what the project actually uses.
|
|
|
453
457
|
| `@modelcontextprotocol/server` | peer, optional | MCP server surfaces in `stitchkit/tools/mcp` and `stitchkit/tools/toolkit`; SDK v2, protocol `2026-07-28`. |
|
|
454
458
|
| `@modelcontextprotocol/client` | development dependency, optional | Only consumers that run MCP client integration tests or build an MCP host. |
|
|
455
459
|
| `@modelcontextprotocol/ext-apps` | peer, optional | Only MCP Apps (`ui://` resources and UI metadata). |
|
|
456
|
-
| `ai` | peer, optional |
|
|
457
|
-
|
|
|
460
|
+
| `ai` | peer, optional | Only the AI SDK adapters in `stitchkit/tools/agent`, `stitchkit/tools/toolkit` and `stitchkit/agent-runtime/ai-sdk`. Neutral `stitchkit/tools` and `stitchkit/agent-runtime` never resolve it. |
|
|
461
|
+
| Agent runtime & native providers | optional peer-free surfaces | `stitchkit/agent-runtime`, `stitchkit/agent-runtime/harness`, `stitchkit/agent-runtime/openrouter`, `stitchkit/agent-runtime/openai` and `stitchkit/agent-runtime/anthropic`; native `fetch`/SSE drivers with zero optional peers. |
|
|
458
462
|
| Agent coding tools | optional surface | `stitchkit/agent-runtime/coding-tools`; peer-free, host-authorized direct file and shell tools. |
|
|
459
|
-
| Agent runtime testing | optional test surface | `stitchkit/agent-runtime/testing`; peer-free local fault server, replay and race fixtures. |
|
|
463
|
+
| Agent runtime testing | optional test surface | `stitchkit/agent-runtime/testing`; peer-free scripted model drivers, local fault server, replay and race fixtures. |
|
|
460
464
|
| `stitchkit-tui` | separate optional package | Renderer-neutral `./core` state, `./widgets` for terminal applications, plus a Bun/OpenTUI terminal controller, commands, model/session pickers and authenticated local attachment over a caller-composed harness. |
|
|
461
|
-
| `@openrouter/ai-sdk-provider` | peer, optional | Only `stitchkit/agent-runtime/openrouter`; neutral runtime imports do not resolve it. |
|
|
462
465
|
| `@anthropic-ai/claude-agent-sdk` | peer, optional | Only `stitchkit/agent-executor/claude-sdk`; the application supplies `query` and its own SDK version. |
|
|
463
466
|
| SQLite | runtime built-in, optional | `bun:sqlite` through `stitchkit/agent-runtime/sqlite/bun`, or `node:sqlite` on Node ≥ 22.5 through the Node leaf. |
|
|
464
467
|
| Postgres | the application's own client | `stitchkit/agent-runtime/postgres` takes a `transaction` and a `query` function (Bun SQL, Prisma, `pg`); it imports no client. |
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type EngineProcessWrapCommand } from '../engine-process.js';
|
|
1
2
|
import { createJsonRpcPeer, type JsonRpcValue } from '../json-rpc-peer.js';
|
|
2
3
|
import { type ExecutorProfileConfig } from '../profile.js';
|
|
3
4
|
import type { ExecutorErrorKind, ExecutorStartupPhase, ExecutorThreadDisposition } from '../vocabulary.js';
|
|
@@ -114,6 +115,8 @@ export interface AcpDriverConfig {
|
|
|
114
115
|
maxFrameBytes?: number | undefined;
|
|
115
116
|
/** Environment variables inherited by the spawned ACP agent process. */
|
|
116
117
|
ambient?: Readonly<Record<string, string | undefined>> | undefined;
|
|
118
|
+
/** Optional command wrapper invoked before spawning the ACP process (for example an OS process sandbox). */
|
|
119
|
+
wrapCommand?: EngineProcessWrapCommand | undefined;
|
|
117
120
|
/** How long one request (`initialize`, `session/new`) may take. Default 60 s. */
|
|
118
121
|
requestTimeoutMs?: number | undefined;
|
|
119
122
|
}
|
|
@@ -121,6 +124,8 @@ export interface AcpDriverConfig {
|
|
|
121
124
|
export declare function closeRequestTimeoutMs(config: Pick<AcpDriverConfig, 'requestTimeoutMs'>): number;
|
|
122
125
|
/** Resolve and validate optional `_meta` for `session/new`, `session/resume`, or `session/load`. */
|
|
123
126
|
export declare function resolveAcpSessionMeta(sessionMeta: AcpSessionMetaInput | undefined, initialized: AcpInitializeResult): Record<string, JsonRpcValue> | undefined;
|
|
127
|
+
/** Extract an inbound plain-object `_meta` from an ACP session response, ignoring absent or non-object values. */
|
|
128
|
+
export declare function extractAcpSessionMeta(raw: unknown): Readonly<Record<string, JsonRpcValue>> | undefined;
|
|
124
129
|
/** Refuse invalid options before any agent is spawned. */
|
|
125
130
|
export declare function assertAcpDriverOptions(config: AcpDriverConfig): void;
|
|
126
131
|
export type AcpHandlers = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-connect.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-connect.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1-connect.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,wBAAwB,EAG9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EAGjB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,qBAAqB,EAAqB,MAAM,YAAY,CAAC;AAO3E,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,mBAAmB,EAExB,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAMvB,uDAAuD;AACvD,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAE/E,8DAA8D;AAC9D,MAAM,MAAM,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;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IACjE,cAAc,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAC3E,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAsBF,4GAA4G;AAC5G,wBAAsB,UAAU,CAC9B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,EACnB,QAAQ,GAAE,WAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0G3B;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAEnE,qHAAqH;AACrH,wBAAgB,MAAM,CACpB,UAAU,EAAE,aAAa,EACzB,UAAU,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAC1D,OAAO,CAGT"}
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import type { AgentMessagePart } from '../../agent-parts/parts.js';
|
|
2
|
-
import type
|
|
3
|
-
import type { AcpPromptUsage, AcpSessionUpdate } from './v1-protocol.js';
|
|
3
|
+
import { type ExecutorDelta, type ExecutorErrorKind, type ExecutorTokenUsage } from '../vocabulary.js';
|
|
4
|
+
import type { AcpPromptUsage, AcpSessionUpdate, AcpToolLocation } from './v1-protocol.js';
|
|
4
5
|
/**
|
|
5
6
|
* Classify a JSON-RPC refusal from an ACP agent into a structured executor
|
|
6
7
|
* error kind (`rateLimited` or `authRequired`), or `undefined` when it is a
|
|
7
8
|
* generic failure that should stay an untyped stream error.
|
|
8
9
|
*/
|
|
9
10
|
export declare function classifyAcpRpcRefusal(error: unknown): Extract<ExecutorErrorKind, 'rateLimited' | 'authRequired'> | undefined;
|
|
10
|
-
|
|
11
|
+
interface AcpTrackedToolState {
|
|
12
|
+
toolName: string;
|
|
13
|
+
input: z.infer<ReturnType<typeof z.json>>;
|
|
14
|
+
title?: string;
|
|
15
|
+
kind?: string;
|
|
16
|
+
locations?: readonly AcpToolLocation[];
|
|
17
|
+
}
|
|
18
|
+
/** Per-turn state used to keep text segments distinct across tool calls and remember tool names and metadata. */
|
|
11
19
|
export interface AcpUpdateTrack {
|
|
12
20
|
segment: number;
|
|
13
21
|
lastKind?: string;
|
|
14
22
|
toolNames: Map<string, string>;
|
|
23
|
+
toolStates?: Map<string, AcpTrackedToolState>;
|
|
15
24
|
}
|
|
16
25
|
/**
|
|
17
26
|
* One `session/update` as deltas for the turn. Each update kind the driver
|
|
@@ -49,4 +58,5 @@ export declare function acpPromptBlocks(parts: readonly AgentMessagePart[], limi
|
|
|
49
58
|
type: string;
|
|
50
59
|
[key: string]: string;
|
|
51
60
|
}[]>;
|
|
61
|
+
export {};
|
|
52
62
|
//# sourceMappingURL=v1-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-map.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-map.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1-map.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,yBAAyB,CAAC;AAIvF,OAAO,EACL,KAAK,aAAa,EAClB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ChE,kBAAkB,CAkBpB;AAUD,mGAAmG;AACnG,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,kBAAkB,GAAG,SAAS,EACrC,IAAI,EAAE,kBAAkB,GACvB,kBAAkB,CAmBpB;AAED,MAAM,WAAW,eAAe;IAC9B,qDAAqD;IACrD,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;IACzD,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,SAAS,gBAAgB,EAAE,EAClC,MAAM,EAAE,eAAe,GACtB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,CAAC,CAkCpD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type JsonRpcValue } from '../json-rpc-peer.js';
|
|
1
2
|
import { type ExecutorProfileConfig } from '../profile.js';
|
|
2
3
|
import type { ExecutorStartupPhase } from '../vocabulary.js';
|
|
3
4
|
import { type AcpConnection, type AcpDriverConfig } from './v1-connect.js';
|
|
@@ -33,6 +34,8 @@ export interface AcpCapabilitiesProbe {
|
|
|
33
34
|
readonly models: readonly string[];
|
|
34
35
|
/** With `eachModel`: the options the agent reported with each model value selected. */
|
|
35
36
|
readonly optionsByModel?: Readonly<Record<string, readonly AcpConfigOption[]>>;
|
|
37
|
+
/** Optional `_meta` object returned by the agent in its `session/new` response. */
|
|
38
|
+
readonly sessionMeta?: Readonly<Record<string, JsonRpcValue>>;
|
|
36
39
|
}
|
|
37
40
|
/** The values of the session's model option, or its model list; none when the agent offers neither. */
|
|
38
41
|
export declare function probeAcpModels(config: AcpDriverConfig, connection: AcpConnection, cwd: string): Promise<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-probe.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-probe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1-probe.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-probe.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,KAAK,qBAAqB,EAAiB,MAAM,YAAY,CAAC;AAEvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EAOrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAKzB,MAAM,eAAe,CAAC;AAKvB,qDAAqD;AACrD,MAAM,WAAW,yBAAyB;IACxC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,iDAAiD;IACjD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC1C,sGAAsG;IACtG,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,mGAAmG;IACnG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC9E;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC1C;AAED,qFAAqF;AACrF,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAC1C,gGAAgG;IAChG,QAAQ,CAAC,aAAa,EAAE,SAAS,eAAe,EAAE,CAAC;IACnD,6FAA6F;IAC7F,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,uGAAuG;IACvG,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,uFAAuF;IACvF,QAAQ,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC,CAAC,CAAC;IAC/E,mFAAmF;IACnF,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;CAC/D;AAsID,uGAAuG;AACvG,wBAAsB,cAAc,CAClC,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,aAAa,EACzB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,EAAE,CAAC,CAGnB;AA8BD;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAsE/B"}
|
|
@@ -119,6 +119,7 @@ export declare const AcpSessionStateSchema: z.ZodObject<{
|
|
|
119
119
|
}, z.core.$loose>>;
|
|
120
120
|
}, z.core.$loose>]>>>;
|
|
121
121
|
}, z.core.$loose>>>>;
|
|
122
|
+
_meta: z.ZodOptional<z.ZodUnknown>;
|
|
122
123
|
}, z.core.$loose>;
|
|
123
124
|
export declare const AcpNewSessionResultSchema: z.ZodObject<{
|
|
124
125
|
models: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -150,6 +151,7 @@ export declare const AcpNewSessionResultSchema: z.ZodObject<{
|
|
|
150
151
|
}, z.core.$loose>>;
|
|
151
152
|
}, z.core.$loose>]>>>;
|
|
152
153
|
}, z.core.$loose>>>>;
|
|
154
|
+
_meta: z.ZodOptional<z.ZodUnknown>;
|
|
153
155
|
sessionId: z.ZodString;
|
|
154
156
|
}, z.core.$loose>;
|
|
155
157
|
export declare const AcpSetConfigOptionResultSchema: z.ZodObject<{
|
|
@@ -203,6 +205,22 @@ export declare const AcpMcpServerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
203
205
|
}, z.core.$strict>]>;
|
|
204
206
|
/** ACP v1 MCP server connection descriptor inferred from `AcpMcpServerSchema`. */
|
|
205
207
|
export type AcpMcpServer = z.infer<typeof AcpMcpServerSchema>;
|
|
208
|
+
/** Loose Zod schema for one ACP v1 tool call file location (`path`, optional `line`/`column`). */
|
|
209
|
+
export declare const AcpToolLocationSchema: z.ZodObject<{
|
|
210
|
+
path: z.ZodString;
|
|
211
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
212
|
+
column: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
213
|
+
}, z.core.$loose>;
|
|
214
|
+
/** One ACP v1 tool call location inferred from `AcpToolLocationSchema`. */
|
|
215
|
+
export type AcpToolLocation = z.infer<typeof AcpToolLocationSchema>;
|
|
216
|
+
/** Loose Zod schema for one ACP v1 plan entry (`content`, optional `status` and `priority`). */
|
|
217
|
+
export declare const AcpPlanEntrySchema: z.ZodObject<{
|
|
218
|
+
content: z.ZodString;
|
|
219
|
+
status: z.ZodOptional<z.ZodString>;
|
|
220
|
+
priority: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$loose>;
|
|
222
|
+
/** One ACP v1 plan entry inferred from `AcpPlanEntrySchema`. */
|
|
223
|
+
export type AcpPlanEntry = z.infer<typeof AcpPlanEntrySchema>;
|
|
206
224
|
/** Loose Zod schema for one ACP v1 `session/update` payload. */
|
|
207
225
|
export declare const AcpSessionUpdateSchema: z.ZodObject<{
|
|
208
226
|
sessionUpdate: z.ZodString;
|
|
@@ -218,6 +236,25 @@ export declare const AcpSessionUpdateSchema: z.ZodObject<{
|
|
|
218
236
|
rawInput: z.ZodOptional<z.ZodJSONSchema>;
|
|
219
237
|
args: z.ZodOptional<z.ZodJSONSchema>;
|
|
220
238
|
rawOutput: z.ZodOptional<z.ZodJSONSchema>;
|
|
239
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
240
|
+
path: z.ZodString;
|
|
241
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
242
|
+
column: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
243
|
+
}, z.core.$loose>>>;
|
|
244
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
245
|
+
content: z.ZodString;
|
|
246
|
+
status: z.ZodOptional<z.ZodString>;
|
|
247
|
+
priority: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$loose>>>;
|
|
249
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
250
|
+
id: z.ZodOptional<z.ZodString>;
|
|
251
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
|
+
content: z.ZodString;
|
|
253
|
+
status: z.ZodOptional<z.ZodString>;
|
|
254
|
+
priority: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.core.$loose>>>;
|
|
256
|
+
}, z.core.$loose>>>;
|
|
257
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
221
258
|
used: z.ZodOptional<z.ZodInt>;
|
|
222
259
|
size: z.ZodOptional<z.ZodInt>;
|
|
223
260
|
configOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -259,6 +296,25 @@ export declare const AcpUpdateNotificationSchema: z.ZodObject<{
|
|
|
259
296
|
rawInput: z.ZodOptional<z.ZodJSONSchema>;
|
|
260
297
|
args: z.ZodOptional<z.ZodJSONSchema>;
|
|
261
298
|
rawOutput: z.ZodOptional<z.ZodJSONSchema>;
|
|
299
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
|
+
path: z.ZodString;
|
|
301
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
302
|
+
column: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
303
|
+
}, z.core.$loose>>>;
|
|
304
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
305
|
+
content: z.ZodString;
|
|
306
|
+
status: z.ZodOptional<z.ZodString>;
|
|
307
|
+
priority: z.ZodOptional<z.ZodString>;
|
|
308
|
+
}, z.core.$loose>>>;
|
|
309
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
310
|
+
id: z.ZodOptional<z.ZodString>;
|
|
311
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
|
+
content: z.ZodString;
|
|
313
|
+
status: z.ZodOptional<z.ZodString>;
|
|
314
|
+
priority: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.core.$loose>>>;
|
|
316
|
+
}, z.core.$loose>>>;
|
|
317
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
262
318
|
used: z.ZodOptional<z.ZodInt>;
|
|
263
319
|
size: z.ZodOptional<z.ZodInt>;
|
|
264
320
|
configOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -325,6 +381,11 @@ export declare const AcpPermissionRequestSchema: z.ZodObject<{
|
|
|
325
381
|
kind: z.ZodOptional<z.ZodString>;
|
|
326
382
|
rawInput: z.ZodOptional<z.ZodJSONSchema>;
|
|
327
383
|
args: z.ZodOptional<z.ZodJSONSchema>;
|
|
384
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
385
|
+
path: z.ZodString;
|
|
386
|
+
line: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
387
|
+
column: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
388
|
+
}, z.core.$loose>>>;
|
|
328
389
|
}, z.core.$loose>;
|
|
329
390
|
options: z.ZodArray<z.ZodObject<{
|
|
330
391
|
optionId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-protocol.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;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;;;;;;;;;;;;;;;;;iBAmBjC,CAAC;AACH,+DAA+D;AAC/D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAO/B,CAAC;AACH,yEAAyE;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAGhC,CAAC;AACH,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,iGAAiG;AACjG,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AACH,wGAAwG;AACxG,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAYrC,CAAC;AACH,8FAA8F;AAC9F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AgentMessagePart } from '../../agent-parts/parts.js';
|
|
2
2
|
import type { AgentEngineSession } from '../engine.js';
|
|
3
3
|
import type { InteractionReply } from '../executor-contract.js';
|
|
4
|
+
import type { JsonRpcValue } from '../json-rpc-peer.js';
|
|
4
5
|
import type { ExecutorProfileConfig } from '../profile.js';
|
|
5
6
|
import type { ExecutorStartupPhase } from '../vocabulary.js';
|
|
6
7
|
import { type AcpDriverConfig } from './v1-connect.js';
|
|
@@ -49,6 +50,8 @@ export interface AcpSession extends AgentEngineSession {
|
|
|
49
50
|
readonly title: string | undefined;
|
|
50
51
|
/** The slash commands the agent offers, by name. */
|
|
51
52
|
readonly commands: readonly string[];
|
|
53
|
+
/** Optional `_meta` object returned by the agent in its `session/new`, `session/resume`, or `session/load` response. */
|
|
54
|
+
readonly sessionMeta?: Readonly<Record<string, JsonRpcValue>>;
|
|
52
55
|
/** Change one setting; the agent answers with every option, which may have narrowed. */
|
|
53
56
|
setConfigOption(configId: string, value: string): Promise<readonly AcpConfigOption[]>;
|
|
54
57
|
/** Answer a pending permission request from either the active turn or a post-settle `onPermissionRequest` event. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1-session.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAQxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EACL,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"v1-session.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/acp/v1-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAQxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,e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AAE,SAAS,eAAe,EAAE,CAAC;IACnD,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,wHAAwH;IACxH,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAC9D,wFAAwF;IACxF,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC,CAAC;IACtF,oHAAoH;IACpH,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChF;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3E;AA0MD,wBAAsB,cAAc,CAClC,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,YAAY,GAClB,OAAO,CAAC,UAAU,CAAC,CAuJrB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type EngineProcessWrapCommand } from '../engine-process.js';
|
|
1
2
|
import { createJsonRpcPeer, type JsonRpcPeer } from '../json-rpc-peer.js';
|
|
2
3
|
import { type ExecutorProfileConfig } from '../profile.js';
|
|
3
4
|
import { type EngineConnection, type ObserverErrorHandler } from '../session-primitives.js';
|
|
@@ -29,6 +30,7 @@ export interface CodexConnectConfig {
|
|
|
29
30
|
readonly transport?: CodexTransportConfig | undefined;
|
|
30
31
|
readonly serverArgs?: readonly string[] | undefined;
|
|
31
32
|
readonly ambient: Readonly<Record<string, string | undefined>>;
|
|
33
|
+
readonly wrapCommand?: EngineProcessWrapCommand | undefined;
|
|
32
34
|
readonly version: string;
|
|
33
35
|
readonly maxFrameBytes?: number | undefined;
|
|
34
36
|
readonly onObserverError?: ObserverErrorHandler | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/connect.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,wBAAwB,EAG9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,KAAK,qBAAqB,EAAqB,MAAM,YAAY,CAAC;AAC3E,OAAO,EACL,KAAK,gBAAgB,EAGrB,KAAK,oBAAoB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAkB1D,oFAAoF;AACpF,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IACE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,oHAAoH;IACpH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,yGAAyG;IACzG,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/C,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,iFAAiF;IACjF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,8FAA8F;IAC9F,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChD,CAAC;AAEN,8GAA8G;AAC9G,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,oBAAoB,GAAG,SAAS,CA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AC;CACrD,GAAG,IAAI,CA6CP;AAkLD,mGAAmG;AACnG,wBAAsB,YAAY,CAChC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,EACnB,QAAQ,GAAE,YAAiB,EAC3B,KAAK,GAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAsB,EAC/C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,GACrD,OAAO,CAAC,eAAe,CAAC,CAqJ1B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type EngineProcessWrapCommand } from '../engine-process.js';
|
|
1
2
|
import type { JsonRpcValue } from '../json-rpc-peer.js';
|
|
2
3
|
import { type CodexTransportConfig } from './connect.js';
|
|
3
4
|
import { type CodexControlClient } from './control-client.js';
|
|
@@ -96,6 +97,8 @@ export interface CodexDriverConfig {
|
|
|
96
97
|
maxImageBytes?: number | undefined;
|
|
97
98
|
/** Environment variables inherited by the spawned Codex CLI process. */
|
|
98
99
|
ambient?: Readonly<Record<string, string | undefined>> | undefined;
|
|
100
|
+
/** Optional command wrapper invoked before spawning Codex (for example an OS process sandbox). */
|
|
101
|
+
wrapCommand?: EngineProcessWrapCommand | undefined;
|
|
99
102
|
}
|
|
100
103
|
/**
|
|
101
104
|
* Codex through its app-server over stdio or WebSocket-over-Unix-socket: a thread
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/driver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../src/agent-executor/codex/driver.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKrD,OAAO,EACL,KAAK,oBAAo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C,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,SAAS,CAAC;IACvE,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,wEAAwE;IACxE,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IACnE,kGAAkG;IAClG,WAAW,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACpD;AAwFD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,iBAAsB,GAAG,WAAW,CAwK7E"}
|
|
@@ -243,6 +243,11 @@ declare const agentExecutorEndpoints: {
|
|
|
243
243
|
success: "success";
|
|
244
244
|
}>;
|
|
245
245
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
246
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
schemaVersion: z.ZodInt;
|
|
248
|
+
provider: z.ZodString;
|
|
249
|
+
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
250
|
+
}, z.core.$strip>>;
|
|
246
251
|
turnId: z.ZodString;
|
|
247
252
|
itemId: z.ZodString;
|
|
248
253
|
raw: z.ZodObject<{
|
|
@@ -337,6 +342,33 @@ declare const agentExecutorEndpoints: {
|
|
|
337
342
|
}, z.core.$strict>;
|
|
338
343
|
type: z.ZodLiteral<"status">;
|
|
339
344
|
phase: z.ZodString;
|
|
345
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
346
|
+
turnId: z.ZodString;
|
|
347
|
+
itemId: z.ZodString;
|
|
348
|
+
raw: z.ZodObject<{
|
|
349
|
+
source: z.ZodString;
|
|
350
|
+
type: z.ZodString;
|
|
351
|
+
}, z.core.$strict>;
|
|
352
|
+
type: z.ZodLiteral<"plan">;
|
|
353
|
+
action: z.ZodEnum<{
|
|
354
|
+
remove: "remove";
|
|
355
|
+
set: "set";
|
|
356
|
+
update: "update";
|
|
357
|
+
}>;
|
|
358
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
359
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
360
|
+
content: z.ZodString;
|
|
361
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
362
|
+
completed: "completed";
|
|
363
|
+
in_progress: "in_progress";
|
|
364
|
+
pending: "pending";
|
|
365
|
+
}>>;
|
|
366
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
367
|
+
high: "high";
|
|
368
|
+
low: "low";
|
|
369
|
+
medium: "medium";
|
|
370
|
+
}>>;
|
|
371
|
+
}, z.core.$strict>>>;
|
|
340
372
|
}, z.core.$strict>, z.ZodObject<{
|
|
341
373
|
turnId: z.ZodString;
|
|
342
374
|
itemId: z.ZodString;
|
|
@@ -434,6 +466,11 @@ declare const agentExecutorServerEvents: {
|
|
|
434
466
|
input: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
435
467
|
type: z.ZodLiteral<"text">;
|
|
436
468
|
text: z.ZodString;
|
|
469
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
schemaVersion: z.ZodInt;
|
|
471
|
+
provider: z.ZodString;
|
|
472
|
+
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
473
|
+
}, z.core.$strip>>;
|
|
437
474
|
}, z.core.$strip>, z.ZodObject<{
|
|
438
475
|
type: z.ZodLiteral<"reasoning">;
|
|
439
476
|
text: z.ZodString;
|
|
@@ -472,6 +509,11 @@ declare const agentExecutorServerEvents: {
|
|
|
472
509
|
success: "success";
|
|
473
510
|
}>;
|
|
474
511
|
output: z.ZodOptional<z.ZodJSONSchema>;
|
|
512
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
513
|
+
schemaVersion: z.ZodInt;
|
|
514
|
+
provider: z.ZodString;
|
|
515
|
+
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
516
|
+
}, z.core.$strip>>;
|
|
475
517
|
}, z.core.$strip>, z.ZodObject<{
|
|
476
518
|
type: z.ZodLiteral<"tool-approval-request">;
|
|
477
519
|
approvalId: z.ZodString;
|