@maiaos/protocol 0.1.0-canary.9 → 0.1.0-canary.91
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/LICENSE +21 -0
- package/README.md +15 -6
- package/dist/agent/definition.d.ts +3 -3
- package/dist/agent/definition.d.ts.map +1 -1
- package/dist/agent/definition.js +1 -1
- package/dist/agent/definition.js.map +1 -1
- package/dist/agent/effect-schema.d.ts +2 -0
- package/dist/agent/effect-schema.d.ts.map +1 -1
- package/dist/agent/effect-schema.js +3 -0
- package/dist/agent/effect-schema.js.map +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/worker-operation.d.ts +43 -1
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/agents/contract.d.ts +27 -0
- package/dist/agents/contract.d.ts.map +1 -1
- package/dist/agents/contract.js +4 -1
- package/dist/agents/contract.js.map +1 -1
- package/dist/agents/effect-schema.d.ts +53 -2
- package/dist/agents/effect-schema.d.ts.map +1 -1
- package/dist/agents/effect-schema.js +51 -10
- package/dist/agents/effect-schema.js.map +1 -1
- package/dist/agents/feature.d.ts +54 -4
- package/dist/agents/feature.d.ts.map +1 -1
- package/dist/agents/feature.js +52 -4
- package/dist/agents/feature.js.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/approval/contract.d.ts +21 -5
- package/dist/approval/contract.d.ts.map +1 -1
- package/dist/approval/contract.js +2 -1
- package/dist/approval/contract.js.map +1 -1
- package/dist/approval/effect-schema.d.ts +1 -1
- package/dist/approval/effect-schema.d.ts.map +1 -1
- package/dist/approval/effect-schema.js +1 -1
- package/dist/approval/effect-schema.js.map +1 -1
- package/dist/approval/feature.d.ts +21 -2
- package/dist/approval/feature.d.ts.map +1 -1
- package/dist/approval/feature.js +21 -2
- package/dist/approval/feature.js.map +1 -1
- package/dist/approval/index.d.ts +1 -1
- package/dist/approval/index.d.ts.map +1 -1
- package/dist/approval/index.js +1 -1
- package/dist/approval/index.js.map +1 -1
- package/dist/approval/request-effect-schema.d.ts +40 -5
- package/dist/approval/request-effect-schema.d.ts.map +1 -1
- package/dist/approval/request-effect-schema.js +30 -7
- package/dist/approval/request-effect-schema.js.map +1 -1
- package/dist/approval/result-effect-schema.d.ts +14 -6
- package/dist/approval/result-effect-schema.d.ts.map +1 -1
- package/dist/board/contract.d.ts +1668 -0
- package/dist/board/contract.d.ts.map +1 -0
- package/dist/board/contract.js +108 -0
- package/dist/board/contract.js.map +1 -0
- package/dist/board/effect-schema.d.ts +6 -0
- package/dist/board/effect-schema.d.ts.map +1 -0
- package/dist/board/effect-schema.js +6 -0
- package/dist/board/effect-schema.js.map +1 -0
- package/dist/board/feature.d.ts +565 -0
- package/dist/board/feature.d.ts.map +1 -0
- package/dist/board/feature.js +535 -0
- package/dist/board/feature.js.map +1 -0
- package/dist/board/index.d.ts +3 -0
- package/dist/board/index.d.ts.map +1 -0
- package/dist/board/index.js +3 -0
- package/dist/board/index.js.map +1 -0
- package/dist/board/manage-effect-schema.d.ts +493 -0
- package/dist/board/manage-effect-schema.d.ts.map +1 -0
- package/dist/board/manage-effect-schema.js +73 -0
- package/dist/board/manage-effect-schema.js.map +1 -0
- package/dist/board/model-effect-schema.d.ts +111 -0
- package/dist/board/model-effect-schema.d.ts.map +1 -0
- package/dist/board/model-effect-schema.js +120 -0
- package/dist/board/model-effect-schema.js.map +1 -0
- package/dist/board/plan-effect-schema.d.ts +120 -0
- package/dist/board/plan-effect-schema.d.ts.map +1 -0
- package/dist/board/plan-effect-schema.js +108 -0
- package/dist/board/plan-effect-schema.js.map +1 -0
- package/dist/board/task-effect-schema.d.ts +1835 -0
- package/dist/board/task-effect-schema.d.ts.map +1 -0
- package/dist/board/task-effect-schema.js +275 -0
- package/dist/board/task-effect-schema.js.map +1 -0
- package/dist/board/thread-effect-schema.d.ts +633 -0
- package/dist/board/thread-effect-schema.d.ts.map +1 -0
- package/dist/board/thread-effect-schema.js +116 -0
- package/dist/board/thread-effect-schema.js.map +1 -0
- package/dist/command-receipt/contract.d.ts +3 -0
- package/dist/command-receipt/contract.d.ts.map +1 -1
- package/dist/command-receipt/effect-schema.d.ts +12 -0
- package/dist/command-receipt/effect-schema.d.ts.map +1 -1
- package/dist/command-receipt/effect-schema.js +7 -0
- package/dist/command-receipt/effect-schema.js.map +1 -1
- package/dist/command-receipt/feature.d.ts +10 -0
- package/dist/command-receipt/feature.d.ts.map +1 -1
- package/dist/command-receipt/feature.js +10 -0
- package/dist/command-receipt/feature.js.map +1 -1
- package/dist/connection/access-effect-schema.d.ts +4 -0
- package/dist/connection/access-effect-schema.d.ts.map +1 -1
- package/dist/connection/contract.d.ts +205 -2
- package/dist/connection/contract.d.ts.map +1 -1
- package/dist/connection/contract.js +10 -1
- package/dist/connection/contract.js.map +1 -1
- package/dist/connection/effect-schema.d.ts +194 -2
- package/dist/connection/effect-schema.d.ts.map +1 -1
- package/dist/connection/effect-schema.js +3 -0
- package/dist/connection/effect-schema.js.map +1 -1
- package/dist/connection/executors-effect-schema.d.ts +275 -0
- package/dist/connection/executors-effect-schema.d.ts.map +1 -0
- package/dist/connection/executors-effect-schema.js +80 -0
- package/dist/connection/executors-effect-schema.js.map +1 -0
- package/dist/connection/feature.d.ts +301 -10
- package/dist/connection/feature.d.ts.map +1 -1
- package/dist/connection/feature.js +381 -46
- package/dist/connection/feature.js.map +1 -1
- package/dist/connection/gateway-effect-schema.d.ts +15 -5
- package/dist/connection/gateway-effect-schema.d.ts.map +1 -1
- package/dist/connection/gateway-effect-schema.js +25 -12
- package/dist/connection/gateway-effect-schema.js.map +1 -1
- package/dist/connection/index.d.ts +1 -1
- package/dist/connection/index.d.ts.map +1 -1
- package/dist/connection/index.js +1 -1
- package/dist/connection/index.js.map +1 -1
- package/dist/connection/request-effect-schema.d.ts +23 -4
- package/dist/connection/request-effect-schema.d.ts.map +1 -1
- package/dist/connection/request-effect-schema.js +42 -14
- package/dist/connection/request-effect-schema.js.map +1 -1
- package/dist/connection/result-effect-schema.d.ts +98 -6
- package/dist/connection/result-effect-schema.d.ts.map +1 -1
- package/dist/connection/result-effect-schema.js +4 -3
- package/dist/connection/result-effect-schema.js.map +1 -1
- package/dist/connection/system-effect-schema.d.ts +16 -0
- package/dist/connection/system-effect-schema.d.ts.map +1 -1
- package/dist/connection/system-effect-schema.js +5 -5
- package/dist/connection/system-effect-schema.js.map +1 -1
- package/dist/container/contract.d.ts +2 -0
- package/dist/container/contract.d.ts.map +1 -1
- package/dist/container/effect-schema.d.ts +4 -0
- package/dist/container/effect-schema.d.ts.map +1 -1
- package/dist/container/portfolio-feature.d.ts +286 -0
- package/dist/container/portfolio-feature.d.ts.map +1 -1
- package/dist/container/portfolio-feature.js +131 -0
- package/dist/container/portfolio-feature.js.map +1 -1
- package/dist/coordinator-tool/index.d.ts +1 -1
- package/dist/coordinator-tool/index.d.ts.map +1 -1
- package/dist/coordinator-tool/index.js +1 -1
- package/dist/coordinator-tool/index.js.map +1 -1
- package/dist/coordinator-tool/input-schema.d.ts +0 -7
- package/dist/coordinator-tool/input-schema.d.ts.map +1 -1
- package/dist/coordinator-tool/input-schema.js +0 -38
- package/dist/coordinator-tool/input-schema.js.map +1 -1
- package/dist/coordinator-tool/registry.d.ts +21 -0
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +163 -4
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +141 -2
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/contract.js +11 -1
- package/dist/discovery/contract.js.map +1 -1
- package/dist/discovery/effect-schema.d.ts +325 -6
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/discovery/effect-schema.js +157 -8
- package/dist/discovery/effect-schema.js.map +1 -1
- package/dist/discovery/feature.d.ts +82 -2
- package/dist/discovery/feature.d.ts.map +1 -1
- package/dist/discovery/feature.js +78 -2
- package/dist/discovery/feature.js.map +1 -1
- package/dist/discovery/index.d.ts +1 -1
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/discovery/index.js +1 -1
- package/dist/discovery/index.js.map +1 -1
- package/dist/envelope/effect-schema.d.ts +38 -17
- package/dist/envelope/effect-schema.d.ts.map +1 -1
- package/dist/envelope/effect-schema.js +30 -8
- package/dist/envelope/effect-schema.js.map +1 -1
- package/dist/envelope/envelope.d.ts +25 -3
- package/dist/envelope/envelope.d.ts.map +1 -1
- package/dist/envelope/envelope.js +37 -1
- package/dist/envelope/envelope.js.map +1 -1
- package/dist/envelope/index.d.ts +2 -2
- package/dist/envelope/index.d.ts.map +1 -1
- package/dist/envelope/index.js +2 -2
- package/dist/envelope/index.js.map +1 -1
- package/dist/envelope/policy.d.ts +11 -0
- package/dist/envelope/policy.d.ts.map +1 -1
- package/dist/envelope/policy.js +13 -0
- package/dist/envelope/policy.js.map +1 -1
- package/dist/event/contract.d.ts +47 -0
- package/dist/event/contract.d.ts.map +1 -1
- package/dist/event/contract.js +3 -0
- package/dist/event/contract.js.map +1 -1
- package/dist/event/effect-schema.d.ts +3 -1
- package/dist/event/effect-schema.d.ts.map +1 -1
- package/dist/event/effect-schema.js +3 -1
- package/dist/event/effect-schema.js.map +1 -1
- package/dist/event/envelope-effect-schema.d.ts +2 -0
- package/dist/event/envelope-effect-schema.d.ts.map +1 -1
- package/dist/event/envelope-effect-schema.js +2 -0
- package/dist/event/envelope-effect-schema.js.map +1 -1
- package/dist/event/feature.d.ts +35 -0
- package/dist/event/feature.d.ts.map +1 -0
- package/dist/event/feature.js +39 -0
- package/dist/event/feature.js.map +1 -0
- package/dist/event/format.d.ts +6 -0
- package/dist/event/format.d.ts.map +1 -1
- package/dist/event/format.js +6 -0
- package/dist/event/format.js.map +1 -1
- package/dist/event/index.d.ts +4 -1
- package/dist/event/index.d.ts.map +1 -1
- package/dist/event/index.js +4 -1
- package/dist/event/index.js.map +1 -1
- package/dist/event/lifecycle/effect-schema.d.ts +31 -0
- package/dist/event/lifecycle/effect-schema.d.ts.map +1 -0
- package/dist/event/lifecycle/effect-schema.js +36 -0
- package/dist/event/lifecycle/effect-schema.js.map +1 -0
- package/dist/event/lifecycle/index.d.ts +2 -0
- package/dist/event/lifecycle/index.d.ts.map +1 -0
- package/dist/event/lifecycle/index.js +2 -0
- package/dist/event/lifecycle/index.js.map +1 -0
- package/dist/event/lifecycle/schema.d.ts +20 -0
- package/dist/event/lifecycle/schema.d.ts.map +1 -0
- package/dist/event/lifecycle/schema.js +7 -0
- package/dist/event/lifecycle/schema.js.map +1 -0
- package/dist/event/read-effect-schema.d.ts +105 -0
- package/dist/event/read-effect-schema.d.ts.map +1 -0
- package/dist/event/read-effect-schema.js +64 -0
- package/dist/event/read-effect-schema.js.map +1 -0
- package/dist/event/registry.d.ts +5 -0
- package/dist/event/registry.d.ts.map +1 -1
- package/dist/event/registry.js +291 -8
- package/dist/event/registry.js.map +1 -1
- package/dist/event/session-activity-effect-schema.d.ts +36 -0
- package/dist/event/session-activity-effect-schema.d.ts.map +1 -0
- package/dist/event/session-activity-effect-schema.js +58 -0
- package/dist/event/session-activity-effect-schema.js.map +1 -0
- package/dist/event/session-activity.d.ts +30 -0
- package/dist/event/session-activity.d.ts.map +1 -0
- package/dist/event/session-activity.js +19 -0
- package/dist/event/session-activity.js.map +1 -0
- package/dist/event/update-effect-schema.d.ts +20 -0
- package/dist/event/update-effect-schema.d.ts.map +1 -0
- package/dist/event/update-effect-schema.js +29 -0
- package/dist/event/update-effect-schema.js.map +1 -0
- package/dist/event/update.d.ts +16 -0
- package/dist/event/update.d.ts.map +1 -0
- package/dist/event/update.js +6 -0
- package/dist/event/update.js.map +1 -0
- package/dist/event/waiting/effect-schema.d.ts +42 -0
- package/dist/event/waiting/effect-schema.d.ts.map +1 -0
- package/dist/event/waiting/effect-schema.js +51 -0
- package/dist/event/waiting/effect-schema.js.map +1 -0
- package/dist/event/waiting/index.d.ts +2 -0
- package/dist/event/waiting/index.d.ts.map +1 -0
- package/dist/event/waiting/index.js +2 -0
- package/dist/event/waiting/index.js.map +1 -0
- package/dist/event/waiting/schema.d.ts +23 -0
- package/dist/event/waiting/schema.d.ts.map +1 -0
- package/dist/event/waiting/schema.js +6 -0
- package/dist/event/waiting/schema.js.map +1 -0
- package/dist/event-stream/contract.d.ts +121 -0
- package/dist/event-stream/contract.d.ts.map +1 -0
- package/dist/event-stream/contract.js +5 -0
- package/dist/event-stream/contract.js.map +1 -0
- package/dist/event-stream/effect-schema.d.ts +118 -0
- package/dist/event-stream/effect-schema.d.ts.map +1 -0
- package/dist/event-stream/effect-schema.js +90 -0
- package/dist/event-stream/effect-schema.js.map +1 -0
- package/dist/event-stream/index.d.ts +2 -0
- package/dist/event-stream/index.d.ts.map +1 -0
- package/dist/event-stream/index.js +2 -0
- package/dist/event-stream/index.js.map +1 -0
- package/dist/execution/contract.d.ts +1 -0
- package/dist/execution/contract.d.ts.map +1 -1
- package/dist/execution/effect-schema.d.ts +6 -0
- package/dist/execution/effect-schema.d.ts.map +1 -1
- package/dist/execution/feature.d.ts +575 -0
- package/dist/execution/feature.d.ts.map +1 -0
- package/dist/execution/feature.js +543 -0
- package/dist/execution/feature.js.map +1 -0
- package/dist/execution/file-operation-contract.d.ts +1 -0
- package/dist/execution/file-operation-contract.d.ts.map +1 -1
- package/dist/execution/file-operation-effect-schema.d.ts +1 -0
- package/dist/execution/file-operation-effect-schema.d.ts.map +1 -1
- package/dist/execution/index.d.ts +1 -0
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/index.js +1 -0
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/operation-contract.d.ts +1 -0
- package/dist/execution/operation-contract.d.ts.map +1 -1
- package/dist/execution/operation-effect-schema.d.ts +1 -0
- package/dist/execution/operation-effect-schema.d.ts.map +1 -1
- package/dist/execution/placement/contract.d.ts +4 -0
- package/dist/execution/placement/contract.d.ts.map +1 -1
- package/dist/execution/placement/effect-schema.d.ts +4 -0
- package/dist/execution/placement/effect-schema.d.ts.map +1 -1
- package/dist/execution/relocation/contract.d.ts +2 -0
- package/dist/execution/relocation/contract.d.ts.map +1 -1
- package/dist/execution/relocation/effect-schema.d.ts +4 -0
- package/dist/execution/relocation/effect-schema.d.ts.map +1 -1
- package/dist/execution/worktree/contract.d.ts +12 -0
- package/dist/execution/worktree/contract.d.ts.map +1 -1
- package/dist/execution/worktree/effect-schema.d.ts +20 -0
- package/dist/execution/worktree/effect-schema.d.ts.map +1 -1
- package/dist/execution/worktree/effect-schema.js +11 -0
- package/dist/execution/worktree/effect-schema.js.map +1 -1
- package/dist/executor/index.d.ts +2 -0
- package/dist/executor/index.d.ts.map +1 -0
- package/dist/executor/index.js +2 -0
- package/dist/executor/index.js.map +1 -0
- package/dist/executor/policy.d.ts +28 -0
- package/dist/executor/policy.d.ts.map +1 -0
- package/dist/executor/policy.js +49 -0
- package/dist/executor/policy.js.map +1 -0
- package/dist/feature/descriptor/descriptor.d.ts +42 -2
- package/dist/feature/descriptor/descriptor.d.ts.map +1 -1
- package/dist/feature/descriptor/descriptor.js.map +1 -1
- package/dist/feature/descriptor/index.d.ts +1 -1
- package/dist/feature/descriptor/index.d.ts.map +1 -1
- package/dist/feature/descriptor/index.js.map +1 -1
- package/dist/feature/index.d.ts +1 -1
- package/dist/feature/index.d.ts.map +1 -1
- package/dist/feature/index.js +1 -1
- package/dist/feature/index.js.map +1 -1
- package/dist/feature/node-status.d.ts +65 -1
- package/dist/feature/node-status.d.ts.map +1 -1
- package/dist/feature/node-status.js +59 -1
- package/dist/feature/node-status.js.map +1 -1
- package/dist/feature/registry.d.ts +59 -4
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +53 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/github/contract.d.ts +266 -0
- package/dist/github/contract.d.ts.map +1 -0
- package/dist/github/contract.js +30 -0
- package/dist/github/contract.js.map +1 -0
- package/dist/github/effect-schema.d.ts +488 -0
- package/dist/github/effect-schema.d.ts.map +1 -0
- package/dist/github/effect-schema.js +231 -0
- package/dist/github/effect-schema.js.map +1 -0
- package/dist/github/feature.d.ts +201 -0
- package/dist/github/feature.d.ts.map +1 -0
- package/dist/github/feature.js +195 -0
- package/dist/github/feature.js.map +1 -0
- package/dist/github/index.d.ts +3 -0
- package/dist/github/index.d.ts.map +1 -0
- package/dist/github/index.js +3 -0
- package/dist/github/index.js.map +1 -0
- package/dist/goal/contract.d.ts +449 -0
- package/dist/goal/contract.d.ts.map +1 -0
- package/dist/goal/contract.js +37 -0
- package/dist/goal/contract.js.map +1 -0
- package/dist/goal/effect-schema.d.ts +870 -0
- package/dist/goal/effect-schema.d.ts.map +1 -0
- package/dist/goal/effect-schema.js +349 -0
- package/dist/goal/effect-schema.js.map +1 -0
- package/dist/goal/feature.d.ts +256 -0
- package/dist/goal/feature.d.ts.map +1 -0
- package/dist/goal/feature.js +237 -0
- package/dist/goal/feature.js.map +1 -0
- package/dist/goal/index.d.ts +3 -0
- package/dist/goal/index.d.ts.map +1 -0
- package/dist/goal/index.js +3 -0
- package/dist/goal/index.js.map +1 -0
- package/dist/harness/installed/effect-schema.d.ts.map +1 -1
- package/dist/harness/installed/effect-schema.js +2 -1
- package/dist/harness/installed/effect-schema.js.map +1 -1
- package/dist/harness/installed/feature.d.ts +35 -0
- package/dist/harness/installed/feature.d.ts.map +1 -0
- package/dist/harness/installed/feature.js +39 -0
- package/dist/harness/installed/feature.js.map +1 -0
- package/dist/harness/installed/index.d.ts +1 -0
- package/dist/harness/installed/index.d.ts.map +1 -1
- package/dist/harness/installed/index.js +1 -0
- package/dist/harness/installed/index.js.map +1 -1
- package/dist/hold/contract.d.ts +2 -0
- package/dist/hold/contract.d.ts.map +1 -1
- package/dist/hold/effect-schema.d.ts +4 -0
- package/dist/hold/effect-schema.d.ts.map +1 -1
- package/dist/hold/feature.d.ts +155 -0
- package/dist/hold/feature.d.ts.map +1 -0
- package/dist/hold/feature.js +151 -0
- package/dist/hold/feature.js.map +1 -0
- package/dist/hold/index.d.ts +1 -0
- package/dist/hold/index.d.ts.map +1 -1
- package/dist/hold/index.js +1 -0
- package/dist/hold/index.js.map +1 -1
- package/dist/inbox/contract.d.ts +386 -0
- package/dist/inbox/contract.d.ts.map +1 -0
- package/dist/inbox/contract.js +20 -0
- package/dist/inbox/contract.js.map +1 -0
- package/dist/inbox/effect-schema.d.ts +750 -0
- package/dist/inbox/effect-schema.d.ts.map +1 -0
- package/dist/inbox/effect-schema.js +246 -0
- package/dist/inbox/effect-schema.js.map +1 -0
- package/dist/inbox/feature.d.ts +164 -0
- package/dist/inbox/feature.d.ts.map +1 -0
- package/dist/inbox/feature.js +160 -0
- package/dist/inbox/feature.js.map +1 -0
- package/dist/inbox/index.d.ts +3 -0
- package/dist/inbox/index.d.ts.map +1 -0
- package/dist/inbox/index.js +3 -0
- package/dist/inbox/index.js.map +1 -0
- package/dist/index.d.ts +29 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -16
- package/dist/index.js.map +1 -1
- package/dist/integration-authorization/claude-code-contract.d.ts +3 -0
- package/dist/integration-authorization/claude-code-contract.d.ts.map +1 -1
- package/dist/integration-authorization/contract.d.ts +141 -12
- package/dist/integration-authorization/contract.d.ts.map +1 -1
- package/dist/integration-authorization/contract.js +37 -1
- package/dist/integration-authorization/contract.js.map +1 -1
- package/dist/integration-authorization/effect-schema.d.ts +5961 -1583
- package/dist/integration-authorization/effect-schema.d.ts.map +1 -1
- package/dist/integration-authorization/effect-schema.js +157 -6
- package/dist/integration-authorization/effect-schema.js.map +1 -1
- package/dist/integration-authorization/feature.d.ts +845 -0
- package/dist/integration-authorization/feature.d.ts.map +1 -0
- package/dist/integration-authorization/feature.js +795 -0
- package/dist/integration-authorization/feature.js.map +1 -0
- package/dist/integration-authorization/index.d.ts +5 -0
- package/dist/integration-authorization/index.d.ts.map +1 -1
- package/dist/integration-authorization/index.js +5 -0
- package/dist/integration-authorization/index.js.map +1 -1
- package/dist/integration-authorization/pi-rpc-contract.d.ts +3 -0
- package/dist/integration-authorization/pi-rpc-contract.d.ts.map +1 -1
- package/dist/integration-authorization/policy.d.ts +6 -1
- package/dist/integration-authorization/policy.d.ts.map +1 -1
- package/dist/integration-authorization/policy.js +6 -1
- package/dist/integration-authorization/policy.js.map +1 -1
- package/dist/interaction/effect-schema.d.ts +1 -1
- package/dist/interaction/effect-schema.d.ts.map +1 -1
- package/dist/interaction/effect-schema.js +1 -1
- package/dist/interaction/effect-schema.js.map +1 -1
- package/dist/interaction/feature.d.ts +50 -0
- package/dist/interaction/feature.d.ts.map +1 -1
- package/dist/interaction/feature.js +48 -0
- package/dist/interaction/feature.js.map +1 -1
- package/dist/interaction/result-contract.d.ts +3 -0
- package/dist/interaction/result-contract.d.ts.map +1 -1
- package/dist/interaction/result-effect-schema.d.ts +6 -0
- package/dist/interaction/result-effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/contract.d.ts +2 -1
- package/dist/invocation-context/contract.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.d.ts +12 -2
- package/dist/invocation-context/effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.js +24 -3
- package/dist/invocation-context/effect-schema.js.map +1 -1
- package/dist/invocation-context/feature.d.ts +35 -0
- package/dist/invocation-context/feature.d.ts.map +1 -0
- package/dist/invocation-context/feature.js +39 -0
- package/dist/invocation-context/feature.js.map +1 -0
- package/dist/invocation-context/index.d.ts +1 -0
- package/dist/invocation-context/index.d.ts.map +1 -1
- package/dist/invocation-context/index.js +1 -0
- package/dist/invocation-context/index.js.map +1 -1
- package/dist/invocation-context/policy.d.ts +6 -1
- package/dist/invocation-context/policy.d.ts.map +1 -1
- package/dist/invocation-context/policy.js +7 -1
- package/dist/invocation-context/policy.js.map +1 -1
- package/dist/local-node/contract.d.ts +57 -18
- package/dist/local-node/contract.d.ts.map +1 -1
- package/dist/local-node/contract.js +3 -1
- package/dist/local-node/contract.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +3999 -1303
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +125 -10
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/index.d.ts +2 -2
- package/dist/local-node/index.d.ts.map +1 -1
- package/dist/local-node/index.js +2 -2
- package/dist/local-node/index.js.map +1 -1
- package/dist/local-node/node-api/index.d.ts +2 -2
- package/dist/local-node/node-api/index.d.ts.map +1 -1
- package/dist/local-node/node-api/index.js +2 -2
- package/dist/local-node/node-api/index.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +11 -215
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +151 -215
- package/dist/local-node/node-api/methods.js.map +1 -1
- package/dist/local-node/node-api/policy.d.ts +33 -0
- package/dist/local-node/node-api/policy.d.ts.map +1 -1
- package/dist/local-node/node-api/policy.js +33 -0
- package/dist/local-node/node-api/policy.js.map +1 -1
- package/dist/local-node/receipt-list.d.ts +6 -7
- package/dist/local-node/receipt-list.d.ts.map +1 -1
- package/dist/local-node/receipt-list.js +66 -7
- package/dist/local-node/receipt-list.js.map +1 -1
- package/dist/node-update/contract.d.ts +198 -0
- package/dist/node-update/contract.d.ts.map +1 -0
- package/dist/node-update/contract.js +22 -0
- package/dist/node-update/contract.js.map +1 -0
- package/dist/node-update/effect-schema.d.ts +435 -0
- package/dist/node-update/effect-schema.d.ts.map +1 -0
- package/dist/node-update/effect-schema.js +307 -0
- package/dist/node-update/effect-schema.js.map +1 -0
- package/dist/node-update/feature.d.ts +379 -0
- package/dist/node-update/feature.d.ts.map +1 -0
- package/dist/node-update/feature.js +363 -0
- package/dist/node-update/feature.js.map +1 -0
- package/dist/node-update/index.d.ts +3 -0
- package/dist/node-update/index.d.ts.map +1 -0
- package/dist/node-update/index.js +3 -0
- package/dist/node-update/index.js.map +1 -0
- package/dist/orchestration/contract.d.ts +6 -0
- package/dist/orchestration/contract.d.ts.map +1 -1
- package/dist/orchestration/effect-schema.d.ts +14 -2
- package/dist/orchestration/effect-schema.d.ts.map +1 -1
- package/dist/orchestration/effect-schema.js +2 -2
- package/dist/orchestration/effect-schema.js.map +1 -1
- package/dist/orchestration/feature.d.ts +235 -0
- package/dist/orchestration/feature.d.ts.map +1 -1
- package/dist/orchestration/feature.js +227 -0
- package/dist/orchestration/feature.js.map +1 -1
- package/dist/orchestration/topology.d.ts +11 -1
- package/dist/orchestration/topology.d.ts.map +1 -1
- package/dist/orchestration/topology.js +38 -29
- package/dist/orchestration/topology.js.map +1 -1
- package/dist/pairing/contract.d.ts +86 -0
- package/dist/pairing/contract.d.ts.map +1 -0
- package/dist/pairing/contract.js +12 -0
- package/dist/pairing/contract.js.map +1 -0
- package/dist/pairing/effect-schema.d.ts +166 -0
- package/dist/pairing/effect-schema.d.ts.map +1 -0
- package/dist/pairing/effect-schema.js +94 -0
- package/dist/pairing/effect-schema.js.map +1 -0
- package/dist/pairing/feature.d.ts +141 -0
- package/dist/pairing/feature.d.ts.map +1 -0
- package/dist/pairing/feature.js +139 -0
- package/dist/pairing/feature.js.map +1 -0
- package/dist/pairing/index.d.ts +3 -0
- package/dist/pairing/index.d.ts.map +1 -0
- package/dist/pairing/index.js +3 -0
- package/dist/pairing/index.js.map +1 -0
- package/dist/port-lease/contract.d.ts +3 -0
- package/dist/port-lease/contract.d.ts.map +1 -1
- package/dist/port-lease/feature.d.ts +21 -0
- package/dist/port-lease/feature.d.ts.map +1 -1
- package/dist/port-lease/feature.js +21 -0
- package/dist/port-lease/feature.js.map +1 -1
- package/dist/port-lease/result-effect-schema.d.ts +6 -0
- package/dist/port-lease/result-effect-schema.d.ts.map +1 -1
- package/dist/presentation/contract.d.ts +42 -2
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +38 -2
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/feature.d.ts +20 -0
- package/dist/presentation/feature.d.ts.map +1 -1
- package/dist/presentation/feature.js +20 -0
- package/dist/presentation/feature.js.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +38 -2
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- package/dist/principal/contract.d.ts +104 -0
- package/dist/principal/contract.d.ts.map +1 -0
- package/dist/principal/contract.js +18 -0
- package/dist/principal/contract.js.map +1 -0
- package/dist/principal/effect-schema.d.ts +166 -0
- package/dist/principal/effect-schema.d.ts.map +1 -0
- package/dist/principal/effect-schema.js +93 -0
- package/dist/principal/effect-schema.js.map +1 -0
- package/dist/principal/feature.d.ts +111 -0
- package/dist/principal/feature.d.ts.map +1 -0
- package/dist/principal/feature.js +111 -0
- package/dist/principal/feature.js.map +1 -0
- package/dist/principal/index.d.ts +3 -0
- package/dist/principal/index.d.ts.map +1 -0
- package/dist/principal/index.js +3 -0
- package/dist/principal/index.js.map +1 -0
- package/dist/project-workspace/contract.d.ts +351 -2
- package/dist/project-workspace/contract.d.ts.map +1 -1
- package/dist/project-workspace/contract.js +34 -2
- package/dist/project-workspace/contract.js.map +1 -1
- package/dist/project-workspace/effect-schema.d.ts +403 -0
- package/dist/project-workspace/effect-schema.d.ts.map +1 -1
- package/dist/project-workspace/effect-schema.js +105 -1
- package/dist/project-workspace/effect-schema.js.map +1 -1
- package/dist/project-workspace/feature.d.ts +659 -1
- package/dist/project-workspace/feature.d.ts.map +1 -1
- package/dist/project-workspace/feature.js +625 -1
- package/dist/project-workspace/feature.js.map +1 -1
- package/dist/project-workspace/git-effect-schema.d.ts +93 -0
- package/dist/project-workspace/git-effect-schema.d.ts.map +1 -0
- package/dist/project-workspace/git-effect-schema.js +81 -0
- package/dist/project-workspace/git-effect-schema.js.map +1 -0
- package/dist/project-workspace/index.d.ts +2 -2
- package/dist/project-workspace/index.d.ts.map +1 -1
- package/dist/project-workspace/index.js +2 -2
- package/dist/project-workspace/index.js.map +1 -1
- package/dist/project-workspace/knowledge-effect-schema.d.ts +413 -0
- package/dist/project-workspace/knowledge-effect-schema.d.ts.map +1 -0
- package/dist/project-workspace/knowledge-effect-schema.js +232 -0
- package/dist/project-workspace/knowledge-effect-schema.js.map +1 -0
- package/dist/project-workspace/policy.d.ts +40 -0
- package/dist/project-workspace/policy.d.ts.map +1 -1
- package/dist/project-workspace/policy.js +39 -0
- package/dist/project-workspace/policy.js.map +1 -1
- package/dist/provider/feature.d.ts +35 -0
- package/dist/provider/feature.d.ts.map +1 -0
- package/dist/provider/feature.js +39 -0
- package/dist/provider/feature.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +1 -0
- package/dist/provider/index.js.map +1 -1
- package/dist/reach/address.d.ts +18 -0
- package/dist/reach/address.d.ts.map +1 -0
- package/dist/reach/address.js +42 -0
- package/dist/reach/address.js.map +1 -0
- package/dist/reach/contract.d.ts +68 -0
- package/dist/reach/contract.d.ts.map +1 -0
- package/dist/reach/contract.js +8 -0
- package/dist/reach/contract.js.map +1 -0
- package/dist/reach/effect-schema.d.ts +134 -0
- package/dist/reach/effect-schema.d.ts.map +1 -0
- package/dist/reach/effect-schema.js +69 -0
- package/dist/reach/effect-schema.js.map +1 -0
- package/dist/reach/feature.d.ts +106 -0
- package/dist/reach/feature.d.ts.map +1 -0
- package/dist/reach/feature.js +106 -0
- package/dist/reach/feature.js.map +1 -0
- package/dist/reach/index.d.ts +4 -0
- package/dist/reach/index.d.ts.map +1 -0
- package/dist/reach/index.js +4 -0
- package/dist/reach/index.js.map +1 -0
- package/dist/reference/feature.d.ts +5 -0
- package/dist/reference/feature.d.ts.map +1 -1
- package/dist/reference/feature.js +5 -0
- package/dist/reference/feature.js.map +1 -1
- package/dist/release/version.d.ts +2 -2
- package/dist/release/version.d.ts.map +1 -1
- package/dist/release/version.js +2 -2
- package/dist/release/version.js.map +1 -1
- package/dist/remote-node/bridge-effect-schema.js +2 -2
- package/dist/remote-node/contract.d.ts +103 -2
- package/dist/remote-node/contract.d.ts.map +1 -1
- package/dist/remote-node/effect-schema.d.ts +1 -1
- package/dist/remote-node/effect-schema.d.ts.map +1 -1
- package/dist/remote-node/effect-schema.js +1 -1
- package/dist/remote-node/effect-schema.js.map +1 -1
- package/dist/remote-node/feature.d.ts +185 -0
- package/dist/remote-node/feature.d.ts.map +1 -1
- package/dist/remote-node/feature.js +173 -0
- package/dist/remote-node/feature.js.map +1 -1
- package/dist/remote-node/request-effect-schema.d.ts +4 -4
- package/dist/remote-node/request-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/request-effect-schema.js +2 -1
- package/dist/remote-node/request-effect-schema.js.map +1 -1
- package/dist/remote-node/result-effect-schema.d.ts +194 -1
- package/dist/remote-node/result-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/result-effect-schema.js +13 -2
- package/dist/remote-node/result-effect-schema.js.map +1 -1
- package/dist/routine/contract.d.ts +644 -18
- package/dist/routine/contract.d.ts.map +1 -1
- package/dist/routine/contract.js +28 -2
- package/dist/routine/contract.js.map +1 -1
- package/dist/routine/effect-schema.d.ts +1489 -218
- package/dist/routine/effect-schema.d.ts.map +1 -1
- package/dist/routine/effect-schema.js +358 -20
- package/dist/routine/effect-schema.js.map +1 -1
- package/dist/routine/feature.d.ts +336 -11
- package/dist/routine/feature.d.ts.map +1 -1
- package/dist/routine/feature.js +318 -11
- package/dist/routine/feature.js.map +1 -1
- package/dist/routine/index.d.ts +1 -1
- package/dist/routine/index.d.ts.map +1 -1
- package/dist/routine/index.js +1 -1
- package/dist/routine/index.js.map +1 -1
- package/dist/routine/policy.d.ts +55 -3
- package/dist/routine/policy.d.ts.map +1 -1
- package/dist/routine/policy.js +46 -1
- package/dist/routine/policy.js.map +1 -1
- package/dist/run-ledger/contract.d.ts +47 -0
- package/dist/run-ledger/contract.d.ts.map +1 -1
- package/dist/run-ledger/feature.d.ts +32 -0
- package/dist/run-ledger/feature.d.ts.map +1 -1
- package/dist/run-ledger/feature.js +32 -0
- package/dist/run-ledger/feature.js.map +1 -1
- package/dist/run-ledger/result-effect-schema.d.ts +94 -0
- package/dist/run-ledger/result-effect-schema.d.ts.map +1 -1
- package/dist/runtime/effect-schema.d.ts.map +1 -1
- package/dist/runtime/effect-schema.js +2 -1
- package/dist/runtime/effect-schema.js.map +1 -1
- package/dist/runtime/feature.d.ts +35 -0
- package/dist/runtime/feature.d.ts.map +1 -0
- package/dist/runtime/feature.js +39 -0
- package/dist/runtime/feature.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime-schema/effect-json-schema.d.ts +9 -0
- package/dist/runtime-schema/effect-json-schema.d.ts.map +1 -0
- package/dist/runtime-schema/effect-json-schema.js +41 -0
- package/dist/runtime-schema/effect-json-schema.js.map +1 -0
- package/dist/runtime-schema/effect-schema.d.ts +1 -0
- package/dist/runtime-schema/effect-schema.d.ts.map +1 -1
- package/dist/runtime-schema/effect-schema.js +1 -0
- package/dist/runtime-schema/effect-schema.js.map +1 -1
- package/dist/secret/contract.d.ts +107 -0
- package/dist/secret/contract.d.ts.map +1 -0
- package/dist/secret/contract.js +34 -0
- package/dist/secret/contract.js.map +1 -0
- package/dist/secret/effect-schema.d.ts +185 -0
- package/dist/secret/effect-schema.d.ts.map +1 -0
- package/dist/secret/effect-schema.js +113 -0
- package/dist/secret/effect-schema.js.map +1 -0
- package/dist/secret/feature.d.ts +103 -0
- package/dist/secret/feature.d.ts.map +1 -0
- package/dist/secret/feature.js +103 -0
- package/dist/secret/feature.js.map +1 -0
- package/dist/secret/index.d.ts +3 -0
- package/dist/secret/index.d.ts.map +1 -0
- package/dist/secret/index.js +3 -0
- package/dist/secret/index.js.map +1 -0
- package/dist/session/agent-permission-contract.d.ts +6 -5
- package/dist/session/agent-permission-contract.d.ts.map +1 -1
- package/dist/session/agent-permission-effect-schema.d.ts +11 -9
- package/dist/session/agent-permission-effect-schema.d.ts.map +1 -1
- package/dist/session/agent-permission-effect-schema.js +2 -2
- package/dist/session/agent-permission-effect-schema.js.map +1 -1
- package/dist/session/contract.d.ts +980 -82
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/contract.js +33 -4
- package/dist/session/contract.js.map +1 -1
- package/dist/session/defaults/contract.d.ts +19 -0
- package/dist/session/defaults/contract.d.ts.map +1 -0
- package/dist/session/defaults/contract.js +5 -0
- package/dist/session/defaults/contract.js.map +1 -0
- package/dist/session/defaults/effect-schema.d.ts +36 -0
- package/dist/session/defaults/effect-schema.d.ts.map +1 -0
- package/dist/session/defaults/effect-schema.js +28 -0
- package/dist/session/defaults/effect-schema.js.map +1 -0
- package/dist/session/defaults/index.d.ts +2 -0
- package/dist/session/defaults/index.d.ts.map +1 -0
- package/dist/session/defaults/index.js +2 -0
- package/dist/session/defaults/index.js.map +1 -0
- package/dist/session/effect-schema.d.ts +3008 -159
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +594 -52
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +868 -18
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +823 -25
- package/dist/session/feature.js.map +1 -1
- package/dist/session/index.d.ts +6 -3
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +6 -3
- package/dist/session/index.js.map +1 -1
- package/dist/session/observation-contract.d.ts +2 -2
- package/dist/session/observation-effect-schema.d.ts +7 -2
- package/dist/session/observation-effect-schema.d.ts.map +1 -1
- package/dist/session/observation-effect-schema.js +6 -1
- package/dist/session/observation-effect-schema.js.map +1 -1
- package/dist/session/placement/contract.d.ts +35 -0
- package/dist/session/placement/contract.d.ts.map +1 -0
- package/dist/session/placement/contract.js +5 -0
- package/dist/session/placement/contract.js.map +1 -0
- package/dist/session/placement/effect-schema.d.ts +55 -0
- package/dist/session/placement/effect-schema.d.ts.map +1 -0
- package/dist/session/placement/effect-schema.js +76 -0
- package/dist/session/placement/effect-schema.js.map +1 -0
- package/dist/session/placement/index.d.ts +2 -0
- package/dist/session/placement/index.d.ts.map +1 -0
- package/dist/session/placement/index.js +2 -0
- package/dist/session/placement/index.js.map +1 -0
- package/dist/session/policy.d.ts +157 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +185 -2
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +129 -2
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/session/stop-resume-contract.js +5 -1
- package/dist/session/stop-resume-contract.js.map +1 -1
- package/dist/session/worktree-effect-schema.d.ts +56 -1
- package/dist/session/worktree-effect-schema.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.js +80 -3
- package/dist/session/worktree-effect-schema.js.map +1 -1
- package/dist/session-command/contract.d.ts +442 -0
- package/dist/session-command/contract.d.ts.map +1 -0
- package/dist/session-command/contract.js +12 -0
- package/dist/session-command/contract.js.map +1 -0
- package/dist/session-command/effect-schema.d.ts +875 -0
- package/dist/session-command/effect-schema.d.ts.map +1 -0
- package/dist/session-command/effect-schema.js +125 -0
- package/dist/session-command/effect-schema.js.map +1 -0
- package/dist/session-command/feature.d.ts +141 -0
- package/dist/session-command/feature.d.ts.map +1 -0
- package/dist/session-command/feature.js +137 -0
- package/dist/session-command/feature.js.map +1 -0
- package/dist/session-command/index.d.ts +4 -0
- package/dist/session-command/index.d.ts.map +1 -0
- package/dist/session-command/index.js +4 -0
- package/dist/session-command/index.js.map +1 -0
- package/dist/session-command/policy.d.ts +33 -0
- package/dist/session-command/policy.d.ts.map +1 -0
- package/dist/session-command/policy.js +60 -0
- package/dist/session-command/policy.js.map +1 -0
- package/dist/session-guard/contract.d.ts +33 -4
- package/dist/session-guard/contract.d.ts.map +1 -1
- package/dist/session-guard/contract.js +29 -5
- package/dist/session-guard/contract.js.map +1 -1
- package/dist/session-guard/feature.d.ts +66 -1
- package/dist/session-guard/feature.d.ts.map +1 -1
- package/dist/session-guard/feature.js +62 -1
- package/dist/session-guard/feature.js.map +1 -1
- package/dist/session-guard/index.d.ts +1 -1
- package/dist/session-guard/index.d.ts.map +1 -1
- package/dist/session-guard/index.js +1 -1
- package/dist/session-guard/index.js.map +1 -1
- package/dist/session-guard/request-effect-schema.d.ts +33 -0
- package/dist/session-guard/request-effect-schema.d.ts.map +1 -1
- package/dist/session-guard/request-effect-schema.js +22 -0
- package/dist/session-guard/request-effect-schema.js.map +1 -1
- package/dist/session-guard/result-effect-schema.d.ts +28 -0
- package/dist/session-guard/result-effect-schema.d.ts.map +1 -1
- package/dist/session-guard/result-effect-schema.js +3 -1
- package/dist/session-guard/result-effect-schema.js.map +1 -1
- package/dist/session-stream/contract.d.ts +45 -4
- package/dist/session-stream/contract.d.ts.map +1 -1
- package/dist/session-stream/contract.js +1 -1
- package/dist/session-stream/contract.js.map +1 -1
- package/dist/session-stream/effect-schema.d.ts +56 -10
- package/dist/session-stream/effect-schema.d.ts.map +1 -1
- package/dist/session-stream/effect-schema.js +27 -1
- package/dist/session-stream/effect-schema.js.map +1 -1
- package/dist/session-stream/index.d.ts +1 -1
- package/dist/session-stream/index.d.ts.map +1 -1
- package/dist/session-stream/index.js +1 -1
- package/dist/session-stream/index.js.map +1 -1
- package/dist/session-stream/policy.d.ts +9 -1
- package/dist/session-stream/policy.d.ts.map +1 -1
- package/dist/session-stream/policy.js +9 -0
- package/dist/session-stream/policy.js.map +1 -1
- package/dist/skills-sync/contract.d.ts +142 -0
- package/dist/skills-sync/contract.d.ts.map +1 -0
- package/dist/skills-sync/contract.js +13 -0
- package/dist/skills-sync/contract.js.map +1 -0
- package/dist/skills-sync/effect-schema.d.ts +312 -0
- package/dist/skills-sync/effect-schema.d.ts.map +1 -0
- package/dist/skills-sync/effect-schema.js +160 -0
- package/dist/skills-sync/effect-schema.js.map +1 -0
- package/dist/skills-sync/feature.d.ts +102 -0
- package/dist/skills-sync/feature.d.ts.map +1 -0
- package/dist/skills-sync/feature.js +102 -0
- package/dist/skills-sync/feature.js.map +1 -0
- package/dist/skills-sync/index.d.ts +3 -0
- package/dist/skills-sync/index.d.ts.map +1 -0
- package/dist/skills-sync/index.js +3 -0
- package/dist/skills-sync/index.js.map +1 -0
- package/dist/team-workspace/contract.d.ts +1 -0
- package/dist/team-workspace/contract.d.ts.map +1 -1
- package/dist/team-workspace/effect-schema.d.ts +2 -0
- package/dist/team-workspace/effect-schema.d.ts.map +1 -1
- package/dist/team-workspace/feature.d.ts +10 -0
- package/dist/team-workspace/feature.d.ts.map +1 -1
- package/dist/team-workspace/feature.js +10 -0
- package/dist/team-workspace/feature.js.map +1 -1
- package/dist/terminal/contract.d.ts +2 -0
- package/dist/terminal/contract.d.ts.map +1 -1
- package/dist/terminal/effect-schema.d.ts +6 -0
- package/dist/terminal/effect-schema.d.ts.map +1 -1
- package/dist/terminal/effect-schema.js +2 -0
- package/dist/terminal/effect-schema.js.map +1 -1
- package/dist/terminal/feature.d.ts +281 -0
- package/dist/terminal/feature.d.ts.map +1 -1
- package/dist/terminal/feature.js +289 -0
- package/dist/terminal/feature.js.map +1 -1
- package/dist/turn/contract.d.ts +199 -515
- package/dist/turn/contract.d.ts.map +1 -1
- package/dist/turn/contract.js +25 -4
- package/dist/turn/contract.js.map +1 -1
- package/dist/turn/effect-schema.d.ts +2319 -130
- package/dist/turn/effect-schema.d.ts.map +1 -1
- package/dist/turn/effect-schema.js +206 -11
- package/dist/turn/effect-schema.js.map +1 -1
- package/dist/turn/index.d.ts +2 -2
- package/dist/turn/index.d.ts.map +1 -1
- package/dist/turn/index.js +2 -2
- package/dist/turn/index.js.map +1 -1
- package/dist/turn/policy.d.ts +54 -0
- package/dist/turn/policy.d.ts.map +1 -1
- package/dist/turn/policy.js +74 -0
- package/dist/turn/policy.js.map +1 -1
- package/dist/voice/contract.d.ts +6 -6
- package/dist/voice/effect-schema.d.ts +10 -9
- package/dist/voice/effect-schema.d.ts.map +1 -1
- package/dist/voice/effect-schema.js +3 -1
- package/dist/voice/effect-schema.js.map +1 -1
- package/dist/voice/feature.d.ts +70 -2
- package/dist/voice/feature.d.ts.map +1 -1
- package/dist/voice/feature.js +32 -0
- package/dist/voice/feature.js.map +1 -1
- package/dist/voice/orchestrator-system-prompt.d.ts +2 -2
- package/dist/voice/orchestrator-system-prompt.js +2 -2
- package/dist/voice/relay-contract.d.ts +1 -0
- package/dist/voice/relay-contract.d.ts.map +1 -1
- package/dist/voice/relay-effect-schema.d.ts +2 -0
- package/dist/voice/relay-effect-schema.d.ts.map +1 -1
- package/dist/webhooks/contract.d.ts +358 -0
- package/dist/webhooks/contract.d.ts.map +1 -0
- package/dist/webhooks/contract.js +26 -0
- package/dist/webhooks/contract.js.map +1 -0
- package/dist/webhooks/effect-schema.d.ts +550 -0
- package/dist/webhooks/effect-schema.d.ts.map +1 -0
- package/dist/webhooks/effect-schema.js +197 -0
- package/dist/webhooks/effect-schema.js.map +1 -0
- package/dist/webhooks/feature.d.ts +125 -0
- package/dist/webhooks/feature.d.ts.map +1 -0
- package/dist/webhooks/feature.js +123 -0
- package/dist/webhooks/feature.js.map +1 -0
- package/dist/webhooks/hook-effect-schema.d.ts +69 -0
- package/dist/webhooks/hook-effect-schema.d.ts.map +1 -0
- package/dist/webhooks/hook-effect-schema.js +107 -0
- package/dist/webhooks/hook-effect-schema.js.map +1 -0
- package/dist/webhooks/index.d.ts +4 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +4 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/policy.d.ts +16 -0
- package/dist/webhooks/policy.d.ts.map +1 -0
- package/dist/webhooks/policy.js +16 -0
- package/dist/webhooks/policy.js.map +1 -0
- package/package.json +9 -3
- package/dist/configuration/configuration.d.ts +0 -63
- package/dist/configuration/configuration.d.ts.map +0 -1
- package/dist/configuration/configuration.js +0 -93
- package/dist/configuration/configuration.js.map +0 -1
- package/dist/configuration/index.d.ts +0 -2
- package/dist/configuration/index.d.ts.map +0 -1
- package/dist/configuration/index.js +0 -2
- package/dist/configuration/index.js.map +0 -1
|
@@ -2,6 +2,10 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
export declare const turnInputTextEffectSchema: Schema.String;
|
|
3
3
|
export declare const turnTokenUsageEffectSchema: Schema.Struct<{
|
|
4
4
|
readonly cachedInputTokens: Schema.Int;
|
|
5
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
6
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
7
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
8
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
5
9
|
readonly inputTokens: Schema.Int;
|
|
6
10
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
7
11
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -13,9 +17,35 @@ export declare const turnInputEffectSchema: Schema.Struct<{
|
|
|
13
17
|
readonly text: Schema.String;
|
|
14
18
|
readonly type: Schema.Literal<"text">;
|
|
15
19
|
}>;
|
|
20
|
+
/** A file name for display: the Node never opens a path from it, so it holds no separator or control character. */
|
|
21
|
+
export declare const turnAttachmentNameEffectSchema: Schema.String;
|
|
22
|
+
/** What a turn keeps of an attachment; the bytes stay in the Session's store. */
|
|
23
|
+
export declare const turnAttachmentEffectSchema: Schema.Struct<{
|
|
24
|
+
readonly byteLength: Schema.Int;
|
|
25
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
26
|
+
readonly name: Schema.String;
|
|
27
|
+
readonly sha256: Schema.String;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* A file as `turn.send` carries it. The type is a media type the Node's
|
|
31
|
+
* allow-list judges, so a disallowed type is a typed refusal, not a malformed
|
|
32
|
+
* request.
|
|
33
|
+
*/
|
|
34
|
+
export declare const turnAttachmentUploadEffectSchema: Schema.Struct<{
|
|
35
|
+
readonly data: Schema.String;
|
|
36
|
+
readonly mediaType: Schema.String;
|
|
37
|
+
readonly name: Schema.String;
|
|
38
|
+
}>;
|
|
16
39
|
/** Why a turn failed or ended with an unknown outcome. */
|
|
17
40
|
export declare const turnFailureReasonEffectSchema: Schema.Union<readonly [Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>, Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>]>;
|
|
18
41
|
export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
42
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
43
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
44
|
+
readonly byteLength: Schema.Int;
|
|
45
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
46
|
+
readonly name: Schema.String;
|
|
47
|
+
readonly sha256: Schema.String;
|
|
48
|
+
}>>>;
|
|
19
49
|
readonly createdAt: Schema.String;
|
|
20
50
|
readonly id: Schema.String;
|
|
21
51
|
readonly input: Schema.Struct<{
|
|
@@ -29,6 +59,13 @@ export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
29
59
|
readonly updatedAt: Schema.String;
|
|
30
60
|
readonly state: Schema.Literal<"queued">;
|
|
31
61
|
}>, Schema.Struct<{
|
|
62
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
63
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
64
|
+
readonly byteLength: Schema.Int;
|
|
65
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
66
|
+
readonly name: Schema.String;
|
|
67
|
+
readonly sha256: Schema.String;
|
|
68
|
+
}>>>;
|
|
32
69
|
readonly createdAt: Schema.String;
|
|
33
70
|
readonly id: Schema.String;
|
|
34
71
|
readonly input: Schema.Struct<{
|
|
@@ -42,6 +79,13 @@ export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
42
79
|
readonly updatedAt: Schema.String;
|
|
43
80
|
readonly state: Schema.Literal<"dispatching">;
|
|
44
81
|
}>, Schema.Struct<{
|
|
82
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
83
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
84
|
+
readonly byteLength: Schema.Int;
|
|
85
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
86
|
+
readonly name: Schema.String;
|
|
87
|
+
readonly sha256: Schema.String;
|
|
88
|
+
}>>>;
|
|
45
89
|
readonly createdAt: Schema.String;
|
|
46
90
|
readonly id: Schema.String;
|
|
47
91
|
readonly input: Schema.Struct<{
|
|
@@ -55,6 +99,13 @@ export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
55
99
|
readonly updatedAt: Schema.String;
|
|
56
100
|
readonly state: Schema.Literal<"running">;
|
|
57
101
|
}>, Schema.Struct<{
|
|
102
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
103
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
104
|
+
readonly byteLength: Schema.Int;
|
|
105
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
106
|
+
readonly name: Schema.String;
|
|
107
|
+
readonly sha256: Schema.String;
|
|
108
|
+
}>>>;
|
|
58
109
|
readonly createdAt: Schema.String;
|
|
59
110
|
readonly id: Schema.String;
|
|
60
111
|
readonly input: Schema.Struct<{
|
|
@@ -70,6 +121,10 @@ export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
70
121
|
readonly state: Schema.Literal<"completed">;
|
|
71
122
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
72
123
|
readonly cachedInputTokens: Schema.Int;
|
|
124
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
125
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
126
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
127
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
73
128
|
readonly inputTokens: Schema.Int;
|
|
74
129
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
75
130
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -78,6 +133,13 @@ export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
78
133
|
readonly totalTokens: Schema.Int;
|
|
79
134
|
}>>;
|
|
80
135
|
}>, Schema.Struct<{
|
|
136
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
137
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
138
|
+
readonly byteLength: Schema.Int;
|
|
139
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
140
|
+
readonly name: Schema.String;
|
|
141
|
+
readonly sha256: Schema.String;
|
|
142
|
+
}>>>;
|
|
81
143
|
readonly createdAt: Schema.String;
|
|
82
144
|
readonly id: Schema.String;
|
|
83
145
|
readonly input: Schema.Struct<{
|
|
@@ -97,6 +159,13 @@ export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
97
159
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
98
160
|
readonly state: Schema.Literal<"failed">;
|
|
99
161
|
}>, Schema.Struct<{
|
|
162
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
163
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
164
|
+
readonly byteLength: Schema.Int;
|
|
165
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
166
|
+
readonly name: Schema.String;
|
|
167
|
+
readonly sha256: Schema.String;
|
|
168
|
+
}>>>;
|
|
100
169
|
readonly createdAt: Schema.String;
|
|
101
170
|
readonly id: Schema.String;
|
|
102
171
|
readonly input: Schema.Struct<{
|
|
@@ -115,6 +184,13 @@ export declare const turnEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
115
184
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
116
185
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
117
186
|
}>, Schema.Struct<{
|
|
187
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
188
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
189
|
+
readonly byteLength: Schema.Int;
|
|
190
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
191
|
+
readonly name: Schema.String;
|
|
192
|
+
readonly sha256: Schema.String;
|
|
193
|
+
}>>>;
|
|
118
194
|
readonly createdAt: Schema.String;
|
|
119
195
|
readonly id: Schema.String;
|
|
120
196
|
readonly input: Schema.Struct<{
|
|
@@ -133,8 +209,25 @@ export declare const turnInterruptParametersEffectSchema: Schema.Struct<{
|
|
|
133
209
|
readonly expectedRevision: Schema.String;
|
|
134
210
|
readonly turnId: Schema.String;
|
|
135
211
|
}>;
|
|
212
|
+
/**
|
|
213
|
+
* When a message reaches its Session. `queue` waits behind the running turn
|
|
214
|
+
* and the turns already queued. `now` goes to the running turn: its executor
|
|
215
|
+
* takes the text into that turn where it can steer, and otherwise the Node
|
|
216
|
+
* interrupts the turn and runs the message next, ahead of the queue. With no
|
|
217
|
+
* turn running, both start the message at once.
|
|
218
|
+
*/
|
|
219
|
+
export declare const turnDeliveryModeEffectSchema: Schema.Literals<readonly ["queue", "now"]>;
|
|
136
220
|
export declare const turnSendParametersEffectSchema: Schema.Struct<{
|
|
221
|
+
/** Files for the turn, within the limits `turn.attachment.policy` reports. */
|
|
222
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
223
|
+
readonly data: Schema.String;
|
|
224
|
+
readonly mediaType: Schema.String;
|
|
225
|
+
readonly name: Schema.String;
|
|
226
|
+
}>>>;
|
|
227
|
+
/** With `delivery: "now"` it holds at most 118 characters. */
|
|
137
228
|
readonly commandId: Schema.String;
|
|
229
|
+
/** Absent means `queue`. */
|
|
230
|
+
readonly delivery: Schema.optional<Schema.Literals<readonly ["queue", "now"]>>;
|
|
138
231
|
readonly expectedRevision: Schema.String;
|
|
139
232
|
readonly input: Schema.Struct<{
|
|
140
233
|
readonly text: Schema.String;
|
|
@@ -145,6 +238,31 @@ export declare const turnSendParametersEffectSchema: Schema.Struct<{
|
|
|
145
238
|
export declare const turnShowParametersEffectSchema: Schema.Struct<{
|
|
146
239
|
readonly turnId: Schema.String;
|
|
147
240
|
}>;
|
|
241
|
+
export declare const turnAttachmentPolicyParametersEffectSchema: Schema.Struct<{
|
|
242
|
+
readonly sessionId: Schema.String;
|
|
243
|
+
}>;
|
|
244
|
+
/** A steer names the turn and Session revision, as an interrupt does. */
|
|
245
|
+
export declare const turnSteerPreviewParametersEffectSchema: Schema.Struct<{
|
|
246
|
+
readonly commandId: Schema.String;
|
|
247
|
+
readonly expectedRevision: Schema.String;
|
|
248
|
+
readonly input: Schema.Struct<{
|
|
249
|
+
readonly text: Schema.String;
|
|
250
|
+
readonly type: Schema.Literal<"text">;
|
|
251
|
+
}>;
|
|
252
|
+
readonly turnId: Schema.String;
|
|
253
|
+
}>;
|
|
254
|
+
export declare const turnSteerConfirmParametersEffectSchema: Schema.Struct<{
|
|
255
|
+
commandId: Schema.String;
|
|
256
|
+
expectedRevision: Schema.String;
|
|
257
|
+
input: Schema.Struct<{
|
|
258
|
+
readonly text: Schema.String;
|
|
259
|
+
readonly type: Schema.Literal<"text">;
|
|
260
|
+
}>;
|
|
261
|
+
inputDigest: Schema.String;
|
|
262
|
+
proof: Schema.String;
|
|
263
|
+
turnId: Schema.String;
|
|
264
|
+
validUntil: Schema.String;
|
|
265
|
+
}>;
|
|
148
266
|
export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
149
267
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
150
268
|
readonly method: Schema.Literal<"turn.interrupt">;
|
|
@@ -155,6 +273,7 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
155
273
|
readonly createdAt: Schema.String;
|
|
156
274
|
readonly eventCursor: Schema.String;
|
|
157
275
|
readonly method: Schema.String;
|
|
276
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
158
277
|
readonly receiptId: Schema.String;
|
|
159
278
|
readonly schemaVersion: Schema.Literal<1>;
|
|
160
279
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -165,6 +284,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
165
284
|
readonly updatedAt: Schema.String;
|
|
166
285
|
}>;
|
|
167
286
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
287
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
288
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
289
|
+
readonly byteLength: Schema.Int;
|
|
290
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
291
|
+
readonly name: Schema.String;
|
|
292
|
+
readonly sha256: Schema.String;
|
|
293
|
+
}>>>;
|
|
168
294
|
readonly createdAt: Schema.String;
|
|
169
295
|
readonly id: Schema.String;
|
|
170
296
|
readonly input: Schema.Struct<{
|
|
@@ -178,6 +304,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
178
304
|
readonly updatedAt: Schema.String;
|
|
179
305
|
readonly state: Schema.Literal<"queued">;
|
|
180
306
|
}>, Schema.Struct<{
|
|
307
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
308
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
309
|
+
readonly byteLength: Schema.Int;
|
|
310
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
311
|
+
readonly name: Schema.String;
|
|
312
|
+
readonly sha256: Schema.String;
|
|
313
|
+
}>>>;
|
|
181
314
|
readonly createdAt: Schema.String;
|
|
182
315
|
readonly id: Schema.String;
|
|
183
316
|
readonly input: Schema.Struct<{
|
|
@@ -191,6 +324,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
191
324
|
readonly updatedAt: Schema.String;
|
|
192
325
|
readonly state: Schema.Literal<"dispatching">;
|
|
193
326
|
}>, Schema.Struct<{
|
|
327
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
328
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
329
|
+
readonly byteLength: Schema.Int;
|
|
330
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
331
|
+
readonly name: Schema.String;
|
|
332
|
+
readonly sha256: Schema.String;
|
|
333
|
+
}>>>;
|
|
194
334
|
readonly createdAt: Schema.String;
|
|
195
335
|
readonly id: Schema.String;
|
|
196
336
|
readonly input: Schema.Struct<{
|
|
@@ -204,6 +344,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
204
344
|
readonly updatedAt: Schema.String;
|
|
205
345
|
readonly state: Schema.Literal<"running">;
|
|
206
346
|
}>, Schema.Struct<{
|
|
347
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
348
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
349
|
+
readonly byteLength: Schema.Int;
|
|
350
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
351
|
+
readonly name: Schema.String;
|
|
352
|
+
readonly sha256: Schema.String;
|
|
353
|
+
}>>>;
|
|
207
354
|
readonly createdAt: Schema.String;
|
|
208
355
|
readonly id: Schema.String;
|
|
209
356
|
readonly input: Schema.Struct<{
|
|
@@ -219,6 +366,10 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
219
366
|
readonly state: Schema.Literal<"completed">;
|
|
220
367
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
221
368
|
readonly cachedInputTokens: Schema.Int;
|
|
369
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
370
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
371
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
372
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
222
373
|
readonly inputTokens: Schema.Int;
|
|
223
374
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
224
375
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -227,6 +378,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
227
378
|
readonly totalTokens: Schema.Int;
|
|
228
379
|
}>>;
|
|
229
380
|
}>, Schema.Struct<{
|
|
381
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
382
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
383
|
+
readonly byteLength: Schema.Int;
|
|
384
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
385
|
+
readonly name: Schema.String;
|
|
386
|
+
readonly sha256: Schema.String;
|
|
387
|
+
}>>>;
|
|
230
388
|
readonly createdAt: Schema.String;
|
|
231
389
|
readonly id: Schema.String;
|
|
232
390
|
readonly input: Schema.Struct<{
|
|
@@ -246,6 +404,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
246
404
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
247
405
|
readonly state: Schema.Literal<"failed">;
|
|
248
406
|
}>, Schema.Struct<{
|
|
407
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
408
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
409
|
+
readonly byteLength: Schema.Int;
|
|
410
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
411
|
+
readonly name: Schema.String;
|
|
412
|
+
readonly sha256: Schema.String;
|
|
413
|
+
}>>>;
|
|
249
414
|
readonly createdAt: Schema.String;
|
|
250
415
|
readonly id: Schema.String;
|
|
251
416
|
readonly input: Schema.Struct<{
|
|
@@ -264,6 +429,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
264
429
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
265
430
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
266
431
|
}>, Schema.Struct<{
|
|
432
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
433
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
434
|
+
readonly byteLength: Schema.Int;
|
|
435
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
436
|
+
readonly name: Schema.String;
|
|
437
|
+
readonly sha256: Schema.String;
|
|
438
|
+
}>>>;
|
|
267
439
|
readonly createdAt: Schema.String;
|
|
268
440
|
readonly id: Schema.String;
|
|
269
441
|
readonly input: Schema.Struct<{
|
|
@@ -278,9 +450,18 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
278
450
|
readonly state: Schema.Literal<"interrupted">;
|
|
279
451
|
}>]>;
|
|
280
452
|
}>;
|
|
453
|
+
/**
|
|
454
|
+
* `delivery` says whether the command was new or a replay. `path` and
|
|
455
|
+
* `sourceTurnId` are present when the message reached a running turn with
|
|
456
|
+
* `delivery: "now"`, and `sourceTurnId` names that turn. On `native` it took
|
|
457
|
+
* the text and `turn` is that same turn, since no new turn exists. On
|
|
458
|
+
* `interrupt-restart` the Node interrupted it and `turn` is the new turn,
|
|
459
|
+
* first in the queue. Without `path`, `turn` is the new queued turn.
|
|
460
|
+
*/
|
|
281
461
|
export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
282
462
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
283
463
|
readonly method: Schema.Literal<"turn.send">;
|
|
464
|
+
readonly path: Schema.optional<Schema.Literals<readonly ["interrupt-restart", "native"]>>;
|
|
284
465
|
readonly receipt: Schema.Struct<{
|
|
285
466
|
readonly actorId: Schema.String;
|
|
286
467
|
readonly aggregateRevision: Schema.String;
|
|
@@ -288,6 +469,7 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
288
469
|
readonly createdAt: Schema.String;
|
|
289
470
|
readonly eventCursor: Schema.String;
|
|
290
471
|
readonly method: Schema.String;
|
|
472
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
291
473
|
readonly receiptId: Schema.String;
|
|
292
474
|
readonly schemaVersion: Schema.Literal<1>;
|
|
293
475
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -297,7 +479,15 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
297
479
|
}>;
|
|
298
480
|
readonly updatedAt: Schema.String;
|
|
299
481
|
}>;
|
|
482
|
+
readonly sourceTurnId: Schema.optional<Schema.String>;
|
|
300
483
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
484
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
485
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
486
|
+
readonly byteLength: Schema.Int;
|
|
487
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
488
|
+
readonly name: Schema.String;
|
|
489
|
+
readonly sha256: Schema.String;
|
|
490
|
+
}>>>;
|
|
301
491
|
readonly createdAt: Schema.String;
|
|
302
492
|
readonly id: Schema.String;
|
|
303
493
|
readonly input: Schema.Struct<{
|
|
@@ -311,6 +501,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
311
501
|
readonly updatedAt: Schema.String;
|
|
312
502
|
readonly state: Schema.Literal<"queued">;
|
|
313
503
|
}>, Schema.Struct<{
|
|
504
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
505
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
506
|
+
readonly byteLength: Schema.Int;
|
|
507
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
508
|
+
readonly name: Schema.String;
|
|
509
|
+
readonly sha256: Schema.String;
|
|
510
|
+
}>>>;
|
|
314
511
|
readonly createdAt: Schema.String;
|
|
315
512
|
readonly id: Schema.String;
|
|
316
513
|
readonly input: Schema.Struct<{
|
|
@@ -324,6 +521,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
324
521
|
readonly updatedAt: Schema.String;
|
|
325
522
|
readonly state: Schema.Literal<"dispatching">;
|
|
326
523
|
}>, Schema.Struct<{
|
|
524
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
525
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
526
|
+
readonly byteLength: Schema.Int;
|
|
527
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
528
|
+
readonly name: Schema.String;
|
|
529
|
+
readonly sha256: Schema.String;
|
|
530
|
+
}>>>;
|
|
327
531
|
readonly createdAt: Schema.String;
|
|
328
532
|
readonly id: Schema.String;
|
|
329
533
|
readonly input: Schema.Struct<{
|
|
@@ -337,6 +541,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
337
541
|
readonly updatedAt: Schema.String;
|
|
338
542
|
readonly state: Schema.Literal<"running">;
|
|
339
543
|
}>, Schema.Struct<{
|
|
544
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
545
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
546
|
+
readonly byteLength: Schema.Int;
|
|
547
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
548
|
+
readonly name: Schema.String;
|
|
549
|
+
readonly sha256: Schema.String;
|
|
550
|
+
}>>>;
|
|
340
551
|
readonly createdAt: Schema.String;
|
|
341
552
|
readonly id: Schema.String;
|
|
342
553
|
readonly input: Schema.Struct<{
|
|
@@ -352,6 +563,10 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
352
563
|
readonly state: Schema.Literal<"completed">;
|
|
353
564
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
354
565
|
readonly cachedInputTokens: Schema.Int;
|
|
566
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
567
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
568
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
569
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
355
570
|
readonly inputTokens: Schema.Int;
|
|
356
571
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
357
572
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -360,6 +575,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
360
575
|
readonly totalTokens: Schema.Int;
|
|
361
576
|
}>>;
|
|
362
577
|
}>, Schema.Struct<{
|
|
578
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
579
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
580
|
+
readonly byteLength: Schema.Int;
|
|
581
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
582
|
+
readonly name: Schema.String;
|
|
583
|
+
readonly sha256: Schema.String;
|
|
584
|
+
}>>>;
|
|
363
585
|
readonly createdAt: Schema.String;
|
|
364
586
|
readonly id: Schema.String;
|
|
365
587
|
readonly input: Schema.Struct<{
|
|
@@ -379,6 +601,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
379
601
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
380
602
|
readonly state: Schema.Literal<"failed">;
|
|
381
603
|
}>, Schema.Struct<{
|
|
604
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
605
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
606
|
+
readonly byteLength: Schema.Int;
|
|
607
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
608
|
+
readonly name: Schema.String;
|
|
609
|
+
readonly sha256: Schema.String;
|
|
610
|
+
}>>>;
|
|
382
611
|
readonly createdAt: Schema.String;
|
|
383
612
|
readonly id: Schema.String;
|
|
384
613
|
readonly input: Schema.Struct<{
|
|
@@ -397,6 +626,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
397
626
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
398
627
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
399
628
|
}>, Schema.Struct<{
|
|
629
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
630
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
631
|
+
readonly byteLength: Schema.Int;
|
|
632
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
633
|
+
readonly name: Schema.String;
|
|
634
|
+
readonly sha256: Schema.String;
|
|
635
|
+
}>>>;
|
|
400
636
|
readonly createdAt: Schema.String;
|
|
401
637
|
readonly id: Schema.String;
|
|
402
638
|
readonly input: Schema.Struct<{
|
|
@@ -414,6 +650,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
414
650
|
export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
415
651
|
readonly method: Schema.Literal<"turn.show">;
|
|
416
652
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
653
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
654
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
655
|
+
readonly byteLength: Schema.Int;
|
|
656
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
657
|
+
readonly name: Schema.String;
|
|
658
|
+
readonly sha256: Schema.String;
|
|
659
|
+
}>>>;
|
|
417
660
|
readonly createdAt: Schema.String;
|
|
418
661
|
readonly id: Schema.String;
|
|
419
662
|
readonly input: Schema.Struct<{
|
|
@@ -427,6 +670,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
427
670
|
readonly updatedAt: Schema.String;
|
|
428
671
|
readonly state: Schema.Literal<"queued">;
|
|
429
672
|
}>, Schema.Struct<{
|
|
673
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
674
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
675
|
+
readonly byteLength: Schema.Int;
|
|
676
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
677
|
+
readonly name: Schema.String;
|
|
678
|
+
readonly sha256: Schema.String;
|
|
679
|
+
}>>>;
|
|
430
680
|
readonly createdAt: Schema.String;
|
|
431
681
|
readonly id: Schema.String;
|
|
432
682
|
readonly input: Schema.Struct<{
|
|
@@ -440,6 +690,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
440
690
|
readonly updatedAt: Schema.String;
|
|
441
691
|
readonly state: Schema.Literal<"dispatching">;
|
|
442
692
|
}>, Schema.Struct<{
|
|
693
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
694
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
695
|
+
readonly byteLength: Schema.Int;
|
|
696
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
697
|
+
readonly name: Schema.String;
|
|
698
|
+
readonly sha256: Schema.String;
|
|
699
|
+
}>>>;
|
|
443
700
|
readonly createdAt: Schema.String;
|
|
444
701
|
readonly id: Schema.String;
|
|
445
702
|
readonly input: Schema.Struct<{
|
|
@@ -453,6 +710,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
453
710
|
readonly updatedAt: Schema.String;
|
|
454
711
|
readonly state: Schema.Literal<"running">;
|
|
455
712
|
}>, Schema.Struct<{
|
|
713
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
714
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
715
|
+
readonly byteLength: Schema.Int;
|
|
716
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
717
|
+
readonly name: Schema.String;
|
|
718
|
+
readonly sha256: Schema.String;
|
|
719
|
+
}>>>;
|
|
456
720
|
readonly createdAt: Schema.String;
|
|
457
721
|
readonly id: Schema.String;
|
|
458
722
|
readonly input: Schema.Struct<{
|
|
@@ -468,6 +732,10 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
468
732
|
readonly state: Schema.Literal<"completed">;
|
|
469
733
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
470
734
|
readonly cachedInputTokens: Schema.Int;
|
|
735
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
736
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
737
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
738
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
471
739
|
readonly inputTokens: Schema.Int;
|
|
472
740
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
473
741
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -476,6 +744,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
476
744
|
readonly totalTokens: Schema.Int;
|
|
477
745
|
}>>;
|
|
478
746
|
}>, Schema.Struct<{
|
|
747
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
748
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
749
|
+
readonly byteLength: Schema.Int;
|
|
750
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
751
|
+
readonly name: Schema.String;
|
|
752
|
+
readonly sha256: Schema.String;
|
|
753
|
+
}>>>;
|
|
479
754
|
readonly createdAt: Schema.String;
|
|
480
755
|
readonly id: Schema.String;
|
|
481
756
|
readonly input: Schema.Struct<{
|
|
@@ -495,6 +770,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
495
770
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
496
771
|
readonly state: Schema.Literal<"failed">;
|
|
497
772
|
}>, Schema.Struct<{
|
|
773
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
774
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
775
|
+
readonly byteLength: Schema.Int;
|
|
776
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
777
|
+
readonly name: Schema.String;
|
|
778
|
+
readonly sha256: Schema.String;
|
|
779
|
+
}>>>;
|
|
498
780
|
readonly createdAt: Schema.String;
|
|
499
781
|
readonly id: Schema.String;
|
|
500
782
|
readonly input: Schema.Struct<{
|
|
@@ -513,6 +795,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
513
795
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
514
796
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
515
797
|
}>, Schema.Struct<{
|
|
798
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
799
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
800
|
+
readonly byteLength: Schema.Int;
|
|
801
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
802
|
+
readonly name: Schema.String;
|
|
803
|
+
readonly sha256: Schema.String;
|
|
804
|
+
}>>>;
|
|
516
805
|
readonly createdAt: Schema.String;
|
|
517
806
|
readonly id: Schema.String;
|
|
518
807
|
readonly input: Schema.Struct<{
|
|
@@ -527,36 +816,38 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
527
816
|
readonly state: Schema.Literal<"interrupted">;
|
|
528
817
|
}>]>;
|
|
529
818
|
}>;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
export declare const
|
|
536
|
-
readonly
|
|
537
|
-
readonly
|
|
538
|
-
readonly
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
readonly message: Schema.String;
|
|
542
|
-
}>>;
|
|
543
|
-
readonly failureReason: Schema.optional<Schema.Literals<readonly ["approval_required", "output_limit_exceeded", "protocol_invalid", "repository_changed", "runtime_exited", "runtime_failed", "turn_deadline_exceeded", "turn_rejected"]>>;
|
|
544
|
-
readonly id: Schema.String;
|
|
545
|
-
readonly revision: Schema.String;
|
|
546
|
-
readonly sessionId: Schema.String;
|
|
547
|
-
readonly state: Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>;
|
|
548
|
-
readonly updatedAt: Schema.String;
|
|
549
|
-
}>>;
|
|
819
|
+
/**
|
|
820
|
+
* What the Session's next send may carry. `accepted` is false when its
|
|
821
|
+
* executor declares no `attachments`, whatever the limits are; the limits are
|
|
822
|
+
* the Node's two settings, read before a client sends any file.
|
|
823
|
+
*/
|
|
824
|
+
export declare const turnAttachmentPolicyResultEffectSchema: Schema.Struct<{
|
|
825
|
+
readonly accepted: Schema.Boolean;
|
|
826
|
+
readonly maxBytes: Schema.Int;
|
|
827
|
+
readonly mediaTypes: Schema.$Array<Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>>;
|
|
828
|
+
readonly method: Schema.Literal<"turn.attachment.policy">;
|
|
829
|
+
readonly sessionId: Schema.String;
|
|
550
830
|
}>;
|
|
551
|
-
|
|
831
|
+
/** What a steer will do, and the path it takes; the confirmation sends nothing before it. */
|
|
832
|
+
export declare const turnSteerPreviewResultEffectSchema: Schema.Struct<{
|
|
552
833
|
readonly commandId: Schema.String;
|
|
553
|
-
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
554
834
|
readonly expectedRevision: Schema.String;
|
|
835
|
+
readonly input: Schema.Struct<{
|
|
836
|
+
readonly text: Schema.String;
|
|
837
|
+
readonly type: Schema.Literal<"text">;
|
|
838
|
+
}>;
|
|
839
|
+
readonly inputDigest: Schema.String;
|
|
840
|
+
readonly proof: Schema.String;
|
|
555
841
|
readonly turnId: Schema.String;
|
|
842
|
+
readonly validUntil: Schema.String;
|
|
843
|
+
readonly method: Schema.Literal<"turn.steer.preview">;
|
|
844
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
556
845
|
}>;
|
|
557
|
-
|
|
846
|
+
/** `path` says how the executor took the steer. On `interrupt-restart`, `source` is the interrupted turn and `turn` the one with the new input; on `native` both are the running turn that took it. `receipt` is the steer's own. */
|
|
847
|
+
export declare const turnSteerConfirmResultEffectSchema: Schema.Struct<{
|
|
558
848
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
559
|
-
readonly method: Schema.Literal<"turn.
|
|
849
|
+
readonly method: Schema.Literal<"turn.steer.confirm">;
|
|
850
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
560
851
|
readonly receipt: Schema.Struct<{
|
|
561
852
|
readonly actorId: Schema.String;
|
|
562
853
|
readonly aggregateRevision: Schema.String;
|
|
@@ -564,6 +855,7 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
564
855
|
readonly createdAt: Schema.String;
|
|
565
856
|
readonly eventCursor: Schema.String;
|
|
566
857
|
readonly method: Schema.String;
|
|
858
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
567
859
|
readonly receiptId: Schema.String;
|
|
568
860
|
readonly schemaVersion: Schema.Literal<1>;
|
|
569
861
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -573,7 +865,14 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
573
865
|
}>;
|
|
574
866
|
readonly updatedAt: Schema.String;
|
|
575
867
|
}>;
|
|
576
|
-
readonly
|
|
868
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
869
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
870
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
871
|
+
readonly byteLength: Schema.Int;
|
|
872
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
873
|
+
readonly name: Schema.String;
|
|
874
|
+
readonly sha256: Schema.String;
|
|
875
|
+
}>>>;
|
|
577
876
|
readonly createdAt: Schema.String;
|
|
578
877
|
readonly id: Schema.String;
|
|
579
878
|
readonly input: Schema.Struct<{
|
|
@@ -587,6 +886,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
587
886
|
readonly updatedAt: Schema.String;
|
|
588
887
|
readonly state: Schema.Literal<"queued">;
|
|
589
888
|
}>, Schema.Struct<{
|
|
889
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
890
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
891
|
+
readonly byteLength: Schema.Int;
|
|
892
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
893
|
+
readonly name: Schema.String;
|
|
894
|
+
readonly sha256: Schema.String;
|
|
895
|
+
}>>>;
|
|
590
896
|
readonly createdAt: Schema.String;
|
|
591
897
|
readonly id: Schema.String;
|
|
592
898
|
readonly input: Schema.Struct<{
|
|
@@ -600,6 +906,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
600
906
|
readonly updatedAt: Schema.String;
|
|
601
907
|
readonly state: Schema.Literal<"dispatching">;
|
|
602
908
|
}>, Schema.Struct<{
|
|
909
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
910
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
911
|
+
readonly byteLength: Schema.Int;
|
|
912
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
913
|
+
readonly name: Schema.String;
|
|
914
|
+
readonly sha256: Schema.String;
|
|
915
|
+
}>>>;
|
|
603
916
|
readonly createdAt: Schema.String;
|
|
604
917
|
readonly id: Schema.String;
|
|
605
918
|
readonly input: Schema.Struct<{
|
|
@@ -613,6 +926,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
613
926
|
readonly updatedAt: Schema.String;
|
|
614
927
|
readonly state: Schema.Literal<"running">;
|
|
615
928
|
}>, Schema.Struct<{
|
|
929
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
930
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
931
|
+
readonly byteLength: Schema.Int;
|
|
932
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
933
|
+
readonly name: Schema.String;
|
|
934
|
+
readonly sha256: Schema.String;
|
|
935
|
+
}>>>;
|
|
616
936
|
readonly createdAt: Schema.String;
|
|
617
937
|
readonly id: Schema.String;
|
|
618
938
|
readonly input: Schema.Struct<{
|
|
@@ -628,6 +948,10 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
628
948
|
readonly state: Schema.Literal<"completed">;
|
|
629
949
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
630
950
|
readonly cachedInputTokens: Schema.Int;
|
|
951
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
952
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
953
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
954
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
631
955
|
readonly inputTokens: Schema.Int;
|
|
632
956
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
633
957
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -636,6 +960,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
636
960
|
readonly totalTokens: Schema.Int;
|
|
637
961
|
}>>;
|
|
638
962
|
}>, Schema.Struct<{
|
|
963
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
964
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
965
|
+
readonly byteLength: Schema.Int;
|
|
966
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
967
|
+
readonly name: Schema.String;
|
|
968
|
+
readonly sha256: Schema.String;
|
|
969
|
+
}>>>;
|
|
639
970
|
readonly createdAt: Schema.String;
|
|
640
971
|
readonly id: Schema.String;
|
|
641
972
|
readonly input: Schema.Struct<{
|
|
@@ -655,6 +986,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
655
986
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
656
987
|
readonly state: Schema.Literal<"failed">;
|
|
657
988
|
}>, Schema.Struct<{
|
|
989
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
990
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
991
|
+
readonly byteLength: Schema.Int;
|
|
992
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
993
|
+
readonly name: Schema.String;
|
|
994
|
+
readonly sha256: Schema.String;
|
|
995
|
+
}>>>;
|
|
658
996
|
readonly createdAt: Schema.String;
|
|
659
997
|
readonly id: Schema.String;
|
|
660
998
|
readonly input: Schema.Struct<{
|
|
@@ -673,6 +1011,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
673
1011
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
674
1012
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
675
1013
|
}>, Schema.Struct<{
|
|
1014
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1015
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1016
|
+
readonly byteLength: Schema.Int;
|
|
1017
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1018
|
+
readonly name: Schema.String;
|
|
1019
|
+
readonly sha256: Schema.String;
|
|
1020
|
+
}>>>;
|
|
676
1021
|
readonly createdAt: Schema.String;
|
|
677
1022
|
readonly id: Schema.String;
|
|
678
1023
|
readonly input: Schema.Struct<{
|
|
@@ -686,92 +1031,14 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
686
1031
|
readonly updatedAt: Schema.String;
|
|
687
1032
|
readonly state: Schema.Literal<"interrupted">;
|
|
688
1033
|
}>]>;
|
|
689
|
-
}>;
|
|
690
|
-
export declare const turnQueueListParametersEffectSchema: Schema.Struct<{
|
|
691
|
-
readonly sessionId: Schema.String;
|
|
692
|
-
}>;
|
|
693
|
-
export declare const turnQueueListResultEffectSchema: Schema.Struct<{
|
|
694
|
-
/** The turn now dispatching or running; absent when none is. */
|
|
695
|
-
readonly activeTurn: Schema.optional<Schema.Struct<{
|
|
696
|
-
readonly id: Schema.String;
|
|
697
|
-
readonly revision: Schema.String;
|
|
698
|
-
readonly state: Schema.Literals<readonly ["dispatching", "running"]>;
|
|
699
|
-
}>>;
|
|
700
|
-
readonly method: Schema.Literal<"turn.queue.list">;
|
|
701
|
-
/** Queued turns in dispatch order; `turn.show` returns a turn's full input. */
|
|
702
|
-
readonly queue: Schema.$Array<Schema.Struct<{
|
|
703
|
-
readonly createdAt: Schema.String;
|
|
704
|
-
readonly id: Schema.String;
|
|
705
|
-
readonly inputPreview: Schema.String;
|
|
706
|
-
readonly position: Schema.Int;
|
|
707
|
-
readonly revision: Schema.String;
|
|
708
|
-
}>>;
|
|
709
|
-
readonly sessionId: Schema.String;
|
|
710
|
-
}>;
|
|
711
|
-
export declare const turnRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
712
|
-
readonly method: Schema.Literal<"turn.cancel">;
|
|
713
|
-
readonly parameters: Schema.Struct<{
|
|
714
|
-
readonly commandId: Schema.String;
|
|
715
|
-
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
716
|
-
readonly expectedRevision: Schema.String;
|
|
717
|
-
readonly turnId: Schema.String;
|
|
718
|
-
}>;
|
|
719
|
-
}>, Schema.Struct<{
|
|
720
|
-
readonly method: Schema.Literal<"turn.queue.list">;
|
|
721
|
-
readonly parameters: Schema.Struct<{
|
|
722
|
-
readonly sessionId: Schema.String;
|
|
723
|
-
}>;
|
|
724
|
-
}>, Schema.Struct<{
|
|
725
|
-
readonly method: Schema.Literal<"turn.interrupt">;
|
|
726
|
-
readonly parameters: Schema.Struct<{
|
|
727
|
-
readonly commandId: Schema.String;
|
|
728
|
-
readonly expectedRevision: Schema.String;
|
|
729
|
-
readonly turnId: Schema.String;
|
|
730
|
-
}>;
|
|
731
|
-
}>, Schema.Struct<{
|
|
732
|
-
readonly method: Schema.Literal<"turn.send">;
|
|
733
|
-
readonly parameters: Schema.Struct<{
|
|
734
|
-
readonly commandId: Schema.String;
|
|
735
|
-
readonly expectedRevision: Schema.String;
|
|
736
|
-
readonly input: Schema.Struct<{
|
|
737
|
-
readonly text: Schema.String;
|
|
738
|
-
readonly type: Schema.Literal<"text">;
|
|
739
|
-
}>;
|
|
740
|
-
readonly sessionId: Schema.String;
|
|
741
|
-
}>;
|
|
742
|
-
}>, Schema.Struct<{
|
|
743
|
-
readonly method: Schema.Literal<"turn.show">;
|
|
744
|
-
readonly parameters: Schema.Struct<{
|
|
745
|
-
readonly turnId: Schema.String;
|
|
746
|
-
}>;
|
|
747
|
-
}>, Schema.Struct<{
|
|
748
|
-
readonly method: Schema.Literal<"turn.wait">;
|
|
749
|
-
readonly parameters: Schema.Struct<{
|
|
750
|
-
readonly mode: Schema.Literals<readonly ["all", "any"]>;
|
|
751
|
-
readonly turnIds: Schema.$Array<Schema.String>;
|
|
752
|
-
readonly waitMilliseconds: Schema.Int;
|
|
753
|
-
}>;
|
|
754
|
-
}>]>;
|
|
755
|
-
export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
756
|
-
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
757
|
-
readonly method: Schema.Literal<"turn.cancel">;
|
|
758
|
-
readonly receipt: Schema.Struct<{
|
|
759
|
-
readonly actorId: Schema.String;
|
|
760
|
-
readonly aggregateRevision: Schema.String;
|
|
761
|
-
readonly commandId: Schema.String;
|
|
762
|
-
readonly createdAt: Schema.String;
|
|
763
|
-
readonly eventCursor: Schema.String;
|
|
764
|
-
readonly method: Schema.String;
|
|
765
|
-
readonly receiptId: Schema.String;
|
|
766
|
-
readonly schemaVersion: Schema.Literal<1>;
|
|
767
|
-
readonly state: Schema.Literal<"succeeded">;
|
|
768
|
-
readonly target: Schema.Struct<{
|
|
769
|
-
readonly id: Schema.String;
|
|
770
|
-
readonly type: Schema.String;
|
|
771
|
-
}>;
|
|
772
|
-
readonly updatedAt: Schema.String;
|
|
773
|
-
}>;
|
|
774
1034
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1035
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1036
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1037
|
+
readonly byteLength: Schema.Int;
|
|
1038
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1039
|
+
readonly name: Schema.String;
|
|
1040
|
+
readonly sha256: Schema.String;
|
|
1041
|
+
}>>>;
|
|
775
1042
|
readonly createdAt: Schema.String;
|
|
776
1043
|
readonly id: Schema.String;
|
|
777
1044
|
readonly input: Schema.Struct<{
|
|
@@ -785,6 +1052,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
785
1052
|
readonly updatedAt: Schema.String;
|
|
786
1053
|
readonly state: Schema.Literal<"queued">;
|
|
787
1054
|
}>, Schema.Struct<{
|
|
1055
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1056
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1057
|
+
readonly byteLength: Schema.Int;
|
|
1058
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1059
|
+
readonly name: Schema.String;
|
|
1060
|
+
readonly sha256: Schema.String;
|
|
1061
|
+
}>>>;
|
|
788
1062
|
readonly createdAt: Schema.String;
|
|
789
1063
|
readonly id: Schema.String;
|
|
790
1064
|
readonly input: Schema.Struct<{
|
|
@@ -798,6 +1072,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
798
1072
|
readonly updatedAt: Schema.String;
|
|
799
1073
|
readonly state: Schema.Literal<"dispatching">;
|
|
800
1074
|
}>, Schema.Struct<{
|
|
1075
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1076
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1077
|
+
readonly byteLength: Schema.Int;
|
|
1078
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1079
|
+
readonly name: Schema.String;
|
|
1080
|
+
readonly sha256: Schema.String;
|
|
1081
|
+
}>>>;
|
|
801
1082
|
readonly createdAt: Schema.String;
|
|
802
1083
|
readonly id: Schema.String;
|
|
803
1084
|
readonly input: Schema.Struct<{
|
|
@@ -811,6 +1092,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
811
1092
|
readonly updatedAt: Schema.String;
|
|
812
1093
|
readonly state: Schema.Literal<"running">;
|
|
813
1094
|
}>, Schema.Struct<{
|
|
1095
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1096
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1097
|
+
readonly byteLength: Schema.Int;
|
|
1098
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1099
|
+
readonly name: Schema.String;
|
|
1100
|
+
readonly sha256: Schema.String;
|
|
1101
|
+
}>>>;
|
|
814
1102
|
readonly createdAt: Schema.String;
|
|
815
1103
|
readonly id: Schema.String;
|
|
816
1104
|
readonly input: Schema.Struct<{
|
|
@@ -826,6 +1114,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
826
1114
|
readonly state: Schema.Literal<"completed">;
|
|
827
1115
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
828
1116
|
readonly cachedInputTokens: Schema.Int;
|
|
1117
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1118
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1119
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1120
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
829
1121
|
readonly inputTokens: Schema.Int;
|
|
830
1122
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
831
1123
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -834,6 +1126,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
834
1126
|
readonly totalTokens: Schema.Int;
|
|
835
1127
|
}>>;
|
|
836
1128
|
}>, Schema.Struct<{
|
|
1129
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1130
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1131
|
+
readonly byteLength: Schema.Int;
|
|
1132
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1133
|
+
readonly name: Schema.String;
|
|
1134
|
+
readonly sha256: Schema.String;
|
|
1135
|
+
}>>>;
|
|
837
1136
|
readonly createdAt: Schema.String;
|
|
838
1137
|
readonly id: Schema.String;
|
|
839
1138
|
readonly input: Schema.Struct<{
|
|
@@ -853,6 +1152,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
853
1152
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
854
1153
|
readonly state: Schema.Literal<"failed">;
|
|
855
1154
|
}>, Schema.Struct<{
|
|
1155
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1156
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1157
|
+
readonly byteLength: Schema.Int;
|
|
1158
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1159
|
+
readonly name: Schema.String;
|
|
1160
|
+
readonly sha256: Schema.String;
|
|
1161
|
+
}>>>;
|
|
856
1162
|
readonly createdAt: Schema.String;
|
|
857
1163
|
readonly id: Schema.String;
|
|
858
1164
|
readonly input: Schema.Struct<{
|
|
@@ -871,6 +1177,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
871
1177
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
872
1178
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
873
1179
|
}>, Schema.Struct<{
|
|
1180
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1181
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1182
|
+
readonly byteLength: Schema.Int;
|
|
1183
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1184
|
+
readonly name: Schema.String;
|
|
1185
|
+
readonly sha256: Schema.String;
|
|
1186
|
+
}>>>;
|
|
874
1187
|
readonly createdAt: Schema.String;
|
|
875
1188
|
readonly id: Schema.String;
|
|
876
1189
|
readonly input: Schema.Struct<{
|
|
@@ -884,26 +1197,48 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
884
1197
|
readonly updatedAt: Schema.String;
|
|
885
1198
|
readonly state: Schema.Literal<"interrupted">;
|
|
886
1199
|
}>]>;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
readonly
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
1200
|
+
}>;
|
|
1201
|
+
export declare const turnWaitParametersEffectSchema: Schema.Struct<{
|
|
1202
|
+
readonly mode: Schema.Literals<readonly ["all", "any"]>;
|
|
1203
|
+
readonly turnIds: Schema.$Array<Schema.String>;
|
|
1204
|
+
readonly waitMilliseconds: Schema.Int;
|
|
1205
|
+
}>;
|
|
1206
|
+
/** A turn's settlement without its text; `turn show` returns the content. */
|
|
1207
|
+
/** Where a turn is: waiting, in flight, or how it ended. */
|
|
1208
|
+
export declare const turnStateEffectSchema: Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>;
|
|
1209
|
+
export declare const turnWaitResultEffectSchema: Schema.Struct<{
|
|
1210
|
+
readonly method: Schema.Literal<"turn.wait">;
|
|
1211
|
+
readonly satisfied: Schema.Boolean;
|
|
1212
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
1213
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1214
|
+
readonly code: Schema.String;
|
|
1215
|
+
readonly message: Schema.String;
|
|
1216
|
+
}>>;
|
|
1217
|
+
readonly failureReason: Schema.optional<Schema.Literals<readonly ["approval_required", "output_limit_exceeded", "protocol_invalid", "repository_changed", "runtime_exited", "runtime_failed", "turn_deadline_exceeded", "turn_rejected"]>>;
|
|
898
1218
|
readonly id: Schema.String;
|
|
899
|
-
readonly inputPreview: Schema.String;
|
|
900
|
-
readonly position: Schema.Int;
|
|
901
1219
|
readonly revision: Schema.String;
|
|
1220
|
+
readonly sessionId: Schema.String;
|
|
1221
|
+
readonly state: Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>;
|
|
1222
|
+
readonly updatedAt: Schema.String;
|
|
902
1223
|
}>>;
|
|
903
|
-
|
|
904
|
-
|
|
1224
|
+
}>;
|
|
1225
|
+
export declare const turnCancelParametersEffectSchema: Schema.Struct<{
|
|
1226
|
+
readonly commandId: Schema.String;
|
|
1227
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1228
|
+
readonly expectedRevision: Schema.String;
|
|
1229
|
+
readonly turnId: Schema.String;
|
|
1230
|
+
}>;
|
|
1231
|
+
export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
905
1232
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
906
|
-
readonly method: Schema.Literal<"turn.
|
|
1233
|
+
readonly method: Schema.Literal<"turn.cancel">;
|
|
1234
|
+
/**
|
|
1235
|
+
* `cancelled`: the turn sat in the queue and now ends failed as
|
|
1236
|
+
* `turn_rejected`. `already_dispatched`: the turn left the queue first
|
|
1237
|
+
* (dispatching, running or past it), so the cancel changed nothing and `turn`
|
|
1238
|
+
* shows where the turn stands. Both carry a receipt, and a replay returns the
|
|
1239
|
+
* same one.
|
|
1240
|
+
*/
|
|
1241
|
+
readonly outcome: Schema.Literals<readonly ["cancelled", "already_dispatched"]>;
|
|
907
1242
|
readonly receipt: Schema.Struct<{
|
|
908
1243
|
readonly actorId: Schema.String;
|
|
909
1244
|
readonly aggregateRevision: Schema.String;
|
|
@@ -911,6 +1246,7 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
911
1246
|
readonly createdAt: Schema.String;
|
|
912
1247
|
readonly eventCursor: Schema.String;
|
|
913
1248
|
readonly method: Schema.String;
|
|
1249
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
914
1250
|
readonly receiptId: Schema.String;
|
|
915
1251
|
readonly schemaVersion: Schema.Literal<1>;
|
|
916
1252
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -921,6 +1257,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
921
1257
|
readonly updatedAt: Schema.String;
|
|
922
1258
|
}>;
|
|
923
1259
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1260
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1261
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1262
|
+
readonly byteLength: Schema.Int;
|
|
1263
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1264
|
+
readonly name: Schema.String;
|
|
1265
|
+
readonly sha256: Schema.String;
|
|
1266
|
+
}>>>;
|
|
924
1267
|
readonly createdAt: Schema.String;
|
|
925
1268
|
readonly id: Schema.String;
|
|
926
1269
|
readonly input: Schema.Struct<{
|
|
@@ -934,6 +1277,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
934
1277
|
readonly updatedAt: Schema.String;
|
|
935
1278
|
readonly state: Schema.Literal<"queued">;
|
|
936
1279
|
}>, Schema.Struct<{
|
|
1280
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1281
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1282
|
+
readonly byteLength: Schema.Int;
|
|
1283
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1284
|
+
readonly name: Schema.String;
|
|
1285
|
+
readonly sha256: Schema.String;
|
|
1286
|
+
}>>>;
|
|
937
1287
|
readonly createdAt: Schema.String;
|
|
938
1288
|
readonly id: Schema.String;
|
|
939
1289
|
readonly input: Schema.Struct<{
|
|
@@ -947,6 +1297,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
947
1297
|
readonly updatedAt: Schema.String;
|
|
948
1298
|
readonly state: Schema.Literal<"dispatching">;
|
|
949
1299
|
}>, Schema.Struct<{
|
|
1300
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1301
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1302
|
+
readonly byteLength: Schema.Int;
|
|
1303
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1304
|
+
readonly name: Schema.String;
|
|
1305
|
+
readonly sha256: Schema.String;
|
|
1306
|
+
}>>>;
|
|
950
1307
|
readonly createdAt: Schema.String;
|
|
951
1308
|
readonly id: Schema.String;
|
|
952
1309
|
readonly input: Schema.Struct<{
|
|
@@ -960,6 +1317,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
960
1317
|
readonly updatedAt: Schema.String;
|
|
961
1318
|
readonly state: Schema.Literal<"running">;
|
|
962
1319
|
}>, Schema.Struct<{
|
|
1320
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1321
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1322
|
+
readonly byteLength: Schema.Int;
|
|
1323
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1324
|
+
readonly name: Schema.String;
|
|
1325
|
+
readonly sha256: Schema.String;
|
|
1326
|
+
}>>>;
|
|
963
1327
|
readonly createdAt: Schema.String;
|
|
964
1328
|
readonly id: Schema.String;
|
|
965
1329
|
readonly input: Schema.Struct<{
|
|
@@ -975,6 +1339,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
975
1339
|
readonly state: Schema.Literal<"completed">;
|
|
976
1340
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
977
1341
|
readonly cachedInputTokens: Schema.Int;
|
|
1342
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1343
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1344
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1345
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
978
1346
|
readonly inputTokens: Schema.Int;
|
|
979
1347
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
980
1348
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -983,6 +1351,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
983
1351
|
readonly totalTokens: Schema.Int;
|
|
984
1352
|
}>>;
|
|
985
1353
|
}>, Schema.Struct<{
|
|
1354
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1355
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1356
|
+
readonly byteLength: Schema.Int;
|
|
1357
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1358
|
+
readonly name: Schema.String;
|
|
1359
|
+
readonly sha256: Schema.String;
|
|
1360
|
+
}>>>;
|
|
986
1361
|
readonly createdAt: Schema.String;
|
|
987
1362
|
readonly id: Schema.String;
|
|
988
1363
|
readonly input: Schema.Struct<{
|
|
@@ -1002,6 +1377,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1002
1377
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1003
1378
|
readonly state: Schema.Literal<"failed">;
|
|
1004
1379
|
}>, Schema.Struct<{
|
|
1380
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1381
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1382
|
+
readonly byteLength: Schema.Int;
|
|
1383
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1384
|
+
readonly name: Schema.String;
|
|
1385
|
+
readonly sha256: Schema.String;
|
|
1386
|
+
}>>>;
|
|
1005
1387
|
readonly createdAt: Schema.String;
|
|
1006
1388
|
readonly id: Schema.String;
|
|
1007
1389
|
readonly input: Schema.Struct<{
|
|
@@ -1020,6 +1402,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1020
1402
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1021
1403
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1022
1404
|
}>, Schema.Struct<{
|
|
1405
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1406
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1407
|
+
readonly byteLength: Schema.Int;
|
|
1408
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1409
|
+
readonly name: Schema.String;
|
|
1410
|
+
readonly sha256: Schema.String;
|
|
1411
|
+
}>>>;
|
|
1023
1412
|
readonly createdAt: Schema.String;
|
|
1024
1413
|
readonly id: Schema.String;
|
|
1025
1414
|
readonly input: Schema.Struct<{
|
|
@@ -1033,9 +1422,30 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1033
1422
|
readonly updatedAt: Schema.String;
|
|
1034
1423
|
readonly state: Schema.Literal<"interrupted">;
|
|
1035
1424
|
}>]>;
|
|
1036
|
-
}
|
|
1425
|
+
}>;
|
|
1426
|
+
export declare const turnQueuePromoteParametersEffectSchema: Schema.Struct<{
|
|
1427
|
+
readonly commandId: Schema.String;
|
|
1428
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1429
|
+
readonly expectedRevision: Schema.String;
|
|
1430
|
+
readonly turnId: Schema.String;
|
|
1431
|
+
}>;
|
|
1432
|
+
export declare const turnQueuePromoteResultEffectSchema: Schema.Struct<{
|
|
1037
1433
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1038
|
-
readonly method: Schema.Literal<"turn.
|
|
1434
|
+
readonly method: Schema.Literal<"turn.queue.promote">;
|
|
1435
|
+
/**
|
|
1436
|
+
* `promoted`: the turn sat in the queue and now goes as `delivery: "now"`
|
|
1437
|
+
* does. `already_dispatched`: the turn left the queue first (dispatching,
|
|
1438
|
+
* running or past it), so the promote changed nothing. Both carry a
|
|
1439
|
+
* receipt, and a replay returns the same one.
|
|
1440
|
+
*/
|
|
1441
|
+
readonly outcome: Schema.Literals<readonly ["promoted", "already_dispatched"]>;
|
|
1442
|
+
/**
|
|
1443
|
+
* `interrupt-restart` when a turn was running, which `sourceTurnId`
|
|
1444
|
+
* names: the Node interrupted it and this turn runs next. A promote never
|
|
1445
|
+
* steers, so its text runs once, as this turn. Both are absent when none
|
|
1446
|
+
* was running, and the turn then starts first.
|
|
1447
|
+
*/
|
|
1448
|
+
readonly path: Schema.optional<Schema.Literal<"interrupt-restart">>;
|
|
1039
1449
|
readonly receipt: Schema.Struct<{
|
|
1040
1450
|
readonly actorId: Schema.String;
|
|
1041
1451
|
readonly aggregateRevision: Schema.String;
|
|
@@ -1043,6 +1453,7 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1043
1453
|
readonly createdAt: Schema.String;
|
|
1044
1454
|
readonly eventCursor: Schema.String;
|
|
1045
1455
|
readonly method: Schema.String;
|
|
1456
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1046
1457
|
readonly receiptId: Schema.String;
|
|
1047
1458
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1048
1459
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1052,7 +1463,16 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1052
1463
|
}>;
|
|
1053
1464
|
readonly updatedAt: Schema.String;
|
|
1054
1465
|
}>;
|
|
1466
|
+
readonly sourceTurnId: Schema.optional<Schema.String>;
|
|
1467
|
+
/** The turn the promote named, as it stands now. */
|
|
1055
1468
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1469
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1470
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1471
|
+
readonly byteLength: Schema.Int;
|
|
1472
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1473
|
+
readonly name: Schema.String;
|
|
1474
|
+
readonly sha256: Schema.String;
|
|
1475
|
+
}>>>;
|
|
1056
1476
|
readonly createdAt: Schema.String;
|
|
1057
1477
|
readonly id: Schema.String;
|
|
1058
1478
|
readonly input: Schema.Struct<{
|
|
@@ -1066,6 +1486,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1066
1486
|
readonly updatedAt: Schema.String;
|
|
1067
1487
|
readonly state: Schema.Literal<"queued">;
|
|
1068
1488
|
}>, Schema.Struct<{
|
|
1489
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1490
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1491
|
+
readonly byteLength: Schema.Int;
|
|
1492
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1493
|
+
readonly name: Schema.String;
|
|
1494
|
+
readonly sha256: Schema.String;
|
|
1495
|
+
}>>>;
|
|
1069
1496
|
readonly createdAt: Schema.String;
|
|
1070
1497
|
readonly id: Schema.String;
|
|
1071
1498
|
readonly input: Schema.Struct<{
|
|
@@ -1079,6 +1506,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1079
1506
|
readonly updatedAt: Schema.String;
|
|
1080
1507
|
readonly state: Schema.Literal<"dispatching">;
|
|
1081
1508
|
}>, Schema.Struct<{
|
|
1509
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1510
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1511
|
+
readonly byteLength: Schema.Int;
|
|
1512
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1513
|
+
readonly name: Schema.String;
|
|
1514
|
+
readonly sha256: Schema.String;
|
|
1515
|
+
}>>>;
|
|
1082
1516
|
readonly createdAt: Schema.String;
|
|
1083
1517
|
readonly id: Schema.String;
|
|
1084
1518
|
readonly input: Schema.Struct<{
|
|
@@ -1092,6 +1526,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1092
1526
|
readonly updatedAt: Schema.String;
|
|
1093
1527
|
readonly state: Schema.Literal<"running">;
|
|
1094
1528
|
}>, Schema.Struct<{
|
|
1529
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1530
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1531
|
+
readonly byteLength: Schema.Int;
|
|
1532
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1533
|
+
readonly name: Schema.String;
|
|
1534
|
+
readonly sha256: Schema.String;
|
|
1535
|
+
}>>>;
|
|
1095
1536
|
readonly createdAt: Schema.String;
|
|
1096
1537
|
readonly id: Schema.String;
|
|
1097
1538
|
readonly input: Schema.Struct<{
|
|
@@ -1107,6 +1548,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1107
1548
|
readonly state: Schema.Literal<"completed">;
|
|
1108
1549
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
1109
1550
|
readonly cachedInputTokens: Schema.Int;
|
|
1551
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1552
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1553
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1554
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
1110
1555
|
readonly inputTokens: Schema.Int;
|
|
1111
1556
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
1112
1557
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -1115,6 +1560,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1115
1560
|
readonly totalTokens: Schema.Int;
|
|
1116
1561
|
}>>;
|
|
1117
1562
|
}>, Schema.Struct<{
|
|
1563
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1564
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1565
|
+
readonly byteLength: Schema.Int;
|
|
1566
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1567
|
+
readonly name: Schema.String;
|
|
1568
|
+
readonly sha256: Schema.String;
|
|
1569
|
+
}>>>;
|
|
1118
1570
|
readonly createdAt: Schema.String;
|
|
1119
1571
|
readonly id: Schema.String;
|
|
1120
1572
|
readonly input: Schema.Struct<{
|
|
@@ -1134,6 +1586,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1134
1586
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1135
1587
|
readonly state: Schema.Literal<"failed">;
|
|
1136
1588
|
}>, Schema.Struct<{
|
|
1589
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1590
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1591
|
+
readonly byteLength: Schema.Int;
|
|
1592
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1593
|
+
readonly name: Schema.String;
|
|
1594
|
+
readonly sha256: Schema.String;
|
|
1595
|
+
}>>>;
|
|
1137
1596
|
readonly createdAt: Schema.String;
|
|
1138
1597
|
readonly id: Schema.String;
|
|
1139
1598
|
readonly input: Schema.Struct<{
|
|
@@ -1152,6 +1611,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1152
1611
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1153
1612
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1154
1613
|
}>, Schema.Struct<{
|
|
1614
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1615
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1616
|
+
readonly byteLength: Schema.Int;
|
|
1617
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1618
|
+
readonly name: Schema.String;
|
|
1619
|
+
readonly sha256: Schema.String;
|
|
1620
|
+
}>>>;
|
|
1155
1621
|
readonly createdAt: Schema.String;
|
|
1156
1622
|
readonly id: Schema.String;
|
|
1157
1623
|
readonly input: Schema.Struct<{
|
|
@@ -1165,9 +1631,47 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1165
1631
|
readonly updatedAt: Schema.String;
|
|
1166
1632
|
readonly state: Schema.Literal<"interrupted">;
|
|
1167
1633
|
}>]>;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1634
|
+
}>;
|
|
1635
|
+
export declare const turnQueueEditParametersEffectSchema: Schema.Struct<{
|
|
1636
|
+
readonly commandId: Schema.String;
|
|
1637
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1638
|
+
readonly expectedRevision: Schema.String;
|
|
1639
|
+
/** The text that replaces the queued turn's; its files and its place in the queue stay. */
|
|
1640
|
+
readonly input: Schema.Struct<{
|
|
1641
|
+
readonly text: Schema.String;
|
|
1642
|
+
readonly type: Schema.Literal<"text">;
|
|
1643
|
+
}>;
|
|
1644
|
+
readonly turnId: Schema.String;
|
|
1645
|
+
}>;
|
|
1646
|
+
/** `turn` is the queued turn with its new text and revision. The Node refuses a turn that left the queue with `turn_not_queued`. */
|
|
1647
|
+
export declare const turnQueueEditResultEffectSchema: Schema.Struct<{
|
|
1648
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1649
|
+
readonly method: Schema.Literal<"turn.queue.edit">;
|
|
1650
|
+
readonly receipt: Schema.Struct<{
|
|
1651
|
+
readonly actorId: Schema.String;
|
|
1652
|
+
readonly aggregateRevision: Schema.String;
|
|
1653
|
+
readonly commandId: Schema.String;
|
|
1654
|
+
readonly createdAt: Schema.String;
|
|
1655
|
+
readonly eventCursor: Schema.String;
|
|
1656
|
+
readonly method: Schema.String;
|
|
1657
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1658
|
+
readonly receiptId: Schema.String;
|
|
1659
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1660
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1661
|
+
readonly target: Schema.Struct<{
|
|
1662
|
+
readonly id: Schema.String;
|
|
1663
|
+
readonly type: Schema.String;
|
|
1664
|
+
}>;
|
|
1665
|
+
readonly updatedAt: Schema.String;
|
|
1666
|
+
}>;
|
|
1170
1667
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1668
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1669
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1670
|
+
readonly byteLength: Schema.Int;
|
|
1671
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1672
|
+
readonly name: Schema.String;
|
|
1673
|
+
readonly sha256: Schema.String;
|
|
1674
|
+
}>>>;
|
|
1171
1675
|
readonly createdAt: Schema.String;
|
|
1172
1676
|
readonly id: Schema.String;
|
|
1173
1677
|
readonly input: Schema.Struct<{
|
|
@@ -1181,6 +1685,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1181
1685
|
readonly updatedAt: Schema.String;
|
|
1182
1686
|
readonly state: Schema.Literal<"queued">;
|
|
1183
1687
|
}>, Schema.Struct<{
|
|
1688
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1689
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1690
|
+
readonly byteLength: Schema.Int;
|
|
1691
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1692
|
+
readonly name: Schema.String;
|
|
1693
|
+
readonly sha256: Schema.String;
|
|
1694
|
+
}>>>;
|
|
1184
1695
|
readonly createdAt: Schema.String;
|
|
1185
1696
|
readonly id: Schema.String;
|
|
1186
1697
|
readonly input: Schema.Struct<{
|
|
@@ -1194,6 +1705,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1194
1705
|
readonly updatedAt: Schema.String;
|
|
1195
1706
|
readonly state: Schema.Literal<"dispatching">;
|
|
1196
1707
|
}>, Schema.Struct<{
|
|
1708
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1709
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1710
|
+
readonly byteLength: Schema.Int;
|
|
1711
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1712
|
+
readonly name: Schema.String;
|
|
1713
|
+
readonly sha256: Schema.String;
|
|
1714
|
+
}>>>;
|
|
1197
1715
|
readonly createdAt: Schema.String;
|
|
1198
1716
|
readonly id: Schema.String;
|
|
1199
1717
|
readonly input: Schema.Struct<{
|
|
@@ -1207,6 +1725,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1207
1725
|
readonly updatedAt: Schema.String;
|
|
1208
1726
|
readonly state: Schema.Literal<"running">;
|
|
1209
1727
|
}>, Schema.Struct<{
|
|
1728
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1729
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1730
|
+
readonly byteLength: Schema.Int;
|
|
1731
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1732
|
+
readonly name: Schema.String;
|
|
1733
|
+
readonly sha256: Schema.String;
|
|
1734
|
+
}>>>;
|
|
1210
1735
|
readonly createdAt: Schema.String;
|
|
1211
1736
|
readonly id: Schema.String;
|
|
1212
1737
|
readonly input: Schema.Struct<{
|
|
@@ -1222,6 +1747,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1222
1747
|
readonly state: Schema.Literal<"completed">;
|
|
1223
1748
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
1224
1749
|
readonly cachedInputTokens: Schema.Int;
|
|
1750
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1751
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1752
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1753
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
1225
1754
|
readonly inputTokens: Schema.Int;
|
|
1226
1755
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
1227
1756
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -1230,6 +1759,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1230
1759
|
readonly totalTokens: Schema.Int;
|
|
1231
1760
|
}>>;
|
|
1232
1761
|
}>, Schema.Struct<{
|
|
1762
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1763
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1764
|
+
readonly byteLength: Schema.Int;
|
|
1765
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1766
|
+
readonly name: Schema.String;
|
|
1767
|
+
readonly sha256: Schema.String;
|
|
1768
|
+
}>>>;
|
|
1233
1769
|
readonly createdAt: Schema.String;
|
|
1234
1770
|
readonly id: Schema.String;
|
|
1235
1771
|
readonly input: Schema.Struct<{
|
|
@@ -1249,6 +1785,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1249
1785
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1250
1786
|
readonly state: Schema.Literal<"failed">;
|
|
1251
1787
|
}>, Schema.Struct<{
|
|
1788
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1789
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1790
|
+
readonly byteLength: Schema.Int;
|
|
1791
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1792
|
+
readonly name: Schema.String;
|
|
1793
|
+
readonly sha256: Schema.String;
|
|
1794
|
+
}>>>;
|
|
1252
1795
|
readonly createdAt: Schema.String;
|
|
1253
1796
|
readonly id: Schema.String;
|
|
1254
1797
|
readonly input: Schema.Struct<{
|
|
@@ -1267,6 +1810,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1267
1810
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1268
1811
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1269
1812
|
}>, Schema.Struct<{
|
|
1813
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1814
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1815
|
+
readonly byteLength: Schema.Int;
|
|
1816
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1817
|
+
readonly name: Schema.String;
|
|
1818
|
+
readonly sha256: Schema.String;
|
|
1819
|
+
}>>>;
|
|
1270
1820
|
readonly createdAt: Schema.String;
|
|
1271
1821
|
readonly id: Schema.String;
|
|
1272
1822
|
readonly input: Schema.Struct<{
|
|
@@ -1280,6 +1830,1645 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1280
1830
|
readonly updatedAt: Schema.String;
|
|
1281
1831
|
readonly state: Schema.Literal<"interrupted">;
|
|
1282
1832
|
}>]>;
|
|
1833
|
+
}>;
|
|
1834
|
+
export declare const turnQueueListParametersEffectSchema: Schema.Struct<{
|
|
1835
|
+
readonly sessionId: Schema.String;
|
|
1836
|
+
}>;
|
|
1837
|
+
export declare const turnQueueListResultEffectSchema: Schema.Struct<{
|
|
1838
|
+
/** The turn now dispatching or running; absent when none is. */
|
|
1839
|
+
readonly activeTurn: Schema.optional<Schema.Struct<{
|
|
1840
|
+
readonly id: Schema.String;
|
|
1841
|
+
readonly revision: Schema.String;
|
|
1842
|
+
readonly state: Schema.Literals<readonly ["dispatching", "running"]>;
|
|
1843
|
+
}>>;
|
|
1844
|
+
readonly method: Schema.Literal<"turn.queue.list">;
|
|
1845
|
+
/** Queued turns in dispatch order; `turn.show` returns a turn's full input. */
|
|
1846
|
+
readonly queue: Schema.$Array<Schema.Struct<{
|
|
1847
|
+
readonly createdAt: Schema.String;
|
|
1848
|
+
readonly id: Schema.String;
|
|
1849
|
+
readonly inputPreview: Schema.String;
|
|
1850
|
+
readonly position: Schema.Int;
|
|
1851
|
+
readonly revision: Schema.String;
|
|
1852
|
+
}>>;
|
|
1853
|
+
readonly sessionId: Schema.String;
|
|
1854
|
+
}>;
|
|
1855
|
+
export declare const turnRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1856
|
+
readonly method: Schema.Literal<"turn.attachment.policy">;
|
|
1857
|
+
readonly parameters: Schema.Struct<{
|
|
1858
|
+
readonly sessionId: Schema.String;
|
|
1859
|
+
}>;
|
|
1860
|
+
}>, Schema.Struct<{
|
|
1861
|
+
readonly method: Schema.Literal<"turn.cancel">;
|
|
1862
|
+
readonly parameters: Schema.Struct<{
|
|
1863
|
+
readonly commandId: Schema.String;
|
|
1864
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1865
|
+
readonly expectedRevision: Schema.String;
|
|
1866
|
+
readonly turnId: Schema.String;
|
|
1867
|
+
}>;
|
|
1868
|
+
}>, Schema.Struct<{
|
|
1869
|
+
readonly method: Schema.Literal<"turn.queue.edit">;
|
|
1870
|
+
readonly parameters: Schema.Struct<{
|
|
1871
|
+
readonly commandId: Schema.String;
|
|
1872
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1873
|
+
readonly expectedRevision: Schema.String;
|
|
1874
|
+
/** The text that replaces the queued turn's; its files and its place in the queue stay. */
|
|
1875
|
+
readonly input: Schema.Struct<{
|
|
1876
|
+
readonly text: Schema.String;
|
|
1877
|
+
readonly type: Schema.Literal<"text">;
|
|
1878
|
+
}>;
|
|
1879
|
+
readonly turnId: Schema.String;
|
|
1880
|
+
}>;
|
|
1881
|
+
}>, Schema.Struct<{
|
|
1882
|
+
readonly method: Schema.Literal<"turn.queue.list">;
|
|
1883
|
+
readonly parameters: Schema.Struct<{
|
|
1884
|
+
readonly sessionId: Schema.String;
|
|
1885
|
+
}>;
|
|
1886
|
+
}>, Schema.Struct<{
|
|
1887
|
+
readonly method: Schema.Literal<"turn.queue.promote">;
|
|
1888
|
+
readonly parameters: Schema.Struct<{
|
|
1889
|
+
readonly commandId: Schema.String;
|
|
1890
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1891
|
+
readonly expectedRevision: Schema.String;
|
|
1892
|
+
readonly turnId: Schema.String;
|
|
1893
|
+
}>;
|
|
1894
|
+
}>, Schema.Struct<{
|
|
1895
|
+
readonly method: Schema.Literal<"turn.interrupt">;
|
|
1896
|
+
readonly parameters: Schema.Struct<{
|
|
1897
|
+
readonly commandId: Schema.String;
|
|
1898
|
+
readonly expectedRevision: Schema.String;
|
|
1899
|
+
readonly turnId: Schema.String;
|
|
1900
|
+
}>;
|
|
1901
|
+
}>, Schema.Struct<{
|
|
1902
|
+
readonly method: Schema.Literal<"turn.send">;
|
|
1903
|
+
readonly parameters: Schema.Struct<{
|
|
1904
|
+
/** Files for the turn, within the limits `turn.attachment.policy` reports. */
|
|
1905
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1906
|
+
readonly data: Schema.String;
|
|
1907
|
+
readonly mediaType: Schema.String;
|
|
1908
|
+
readonly name: Schema.String;
|
|
1909
|
+
}>>>;
|
|
1910
|
+
/** With `delivery: "now"` it holds at most 118 characters. */
|
|
1911
|
+
readonly commandId: Schema.String;
|
|
1912
|
+
/** Absent means `queue`. */
|
|
1913
|
+
readonly delivery: Schema.optional<Schema.Literals<readonly ["queue", "now"]>>;
|
|
1914
|
+
readonly expectedRevision: Schema.String;
|
|
1915
|
+
readonly input: Schema.Struct<{
|
|
1916
|
+
readonly text: Schema.String;
|
|
1917
|
+
readonly type: Schema.Literal<"text">;
|
|
1918
|
+
}>;
|
|
1919
|
+
readonly sessionId: Schema.String;
|
|
1920
|
+
}>;
|
|
1921
|
+
}>, Schema.Struct<{
|
|
1922
|
+
readonly method: Schema.Literal<"turn.show">;
|
|
1923
|
+
readonly parameters: Schema.Struct<{
|
|
1924
|
+
readonly turnId: Schema.String;
|
|
1925
|
+
}>;
|
|
1926
|
+
}>, Schema.Struct<{
|
|
1927
|
+
readonly method: Schema.Literal<"turn.steer.confirm">;
|
|
1928
|
+
readonly parameters: Schema.Struct<{
|
|
1929
|
+
commandId: Schema.String;
|
|
1930
|
+
expectedRevision: Schema.String;
|
|
1931
|
+
input: Schema.Struct<{
|
|
1932
|
+
readonly text: Schema.String;
|
|
1933
|
+
readonly type: Schema.Literal<"text">;
|
|
1934
|
+
}>;
|
|
1935
|
+
inputDigest: Schema.String;
|
|
1936
|
+
proof: Schema.String;
|
|
1937
|
+
turnId: Schema.String;
|
|
1938
|
+
validUntil: Schema.String;
|
|
1939
|
+
}>;
|
|
1940
|
+
}>, Schema.Struct<{
|
|
1941
|
+
readonly method: Schema.Literal<"turn.steer.preview">;
|
|
1942
|
+
readonly parameters: Schema.Struct<{
|
|
1943
|
+
readonly commandId: Schema.String;
|
|
1944
|
+
readonly expectedRevision: Schema.String;
|
|
1945
|
+
readonly input: Schema.Struct<{
|
|
1946
|
+
readonly text: Schema.String;
|
|
1947
|
+
readonly type: Schema.Literal<"text">;
|
|
1948
|
+
}>;
|
|
1949
|
+
readonly turnId: Schema.String;
|
|
1950
|
+
}>;
|
|
1951
|
+
}>, Schema.Struct<{
|
|
1952
|
+
readonly method: Schema.Literal<"turn.wait">;
|
|
1953
|
+
readonly parameters: Schema.Struct<{
|
|
1954
|
+
readonly mode: Schema.Literals<readonly ["all", "any"]>;
|
|
1955
|
+
readonly turnIds: Schema.$Array<Schema.String>;
|
|
1956
|
+
readonly waitMilliseconds: Schema.Int;
|
|
1957
|
+
}>;
|
|
1958
|
+
}>]>;
|
|
1959
|
+
export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1960
|
+
readonly accepted: Schema.Boolean;
|
|
1961
|
+
readonly maxBytes: Schema.Int;
|
|
1962
|
+
readonly mediaTypes: Schema.$Array<Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>>;
|
|
1963
|
+
readonly method: Schema.Literal<"turn.attachment.policy">;
|
|
1964
|
+
readonly sessionId: Schema.String;
|
|
1965
|
+
}>, Schema.Struct<{
|
|
1966
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1967
|
+
readonly method: Schema.Literal<"turn.cancel">;
|
|
1968
|
+
/**
|
|
1969
|
+
* `cancelled`: the turn sat in the queue and now ends failed as
|
|
1970
|
+
* `turn_rejected`. `already_dispatched`: the turn left the queue first
|
|
1971
|
+
* (dispatching, running or past it), so the cancel changed nothing and `turn`
|
|
1972
|
+
* shows where the turn stands. Both carry a receipt, and a replay returns the
|
|
1973
|
+
* same one.
|
|
1974
|
+
*/
|
|
1975
|
+
readonly outcome: Schema.Literals<readonly ["cancelled", "already_dispatched"]>;
|
|
1976
|
+
readonly receipt: Schema.Struct<{
|
|
1977
|
+
readonly actorId: Schema.String;
|
|
1978
|
+
readonly aggregateRevision: Schema.String;
|
|
1979
|
+
readonly commandId: Schema.String;
|
|
1980
|
+
readonly createdAt: Schema.String;
|
|
1981
|
+
readonly eventCursor: Schema.String;
|
|
1982
|
+
readonly method: Schema.String;
|
|
1983
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1984
|
+
readonly receiptId: Schema.String;
|
|
1985
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1986
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1987
|
+
readonly target: Schema.Struct<{
|
|
1988
|
+
readonly id: Schema.String;
|
|
1989
|
+
readonly type: Schema.String;
|
|
1990
|
+
}>;
|
|
1991
|
+
readonly updatedAt: Schema.String;
|
|
1992
|
+
}>;
|
|
1993
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1994
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1995
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1996
|
+
readonly byteLength: Schema.Int;
|
|
1997
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1998
|
+
readonly name: Schema.String;
|
|
1999
|
+
readonly sha256: Schema.String;
|
|
2000
|
+
}>>>;
|
|
2001
|
+
readonly createdAt: Schema.String;
|
|
2002
|
+
readonly id: Schema.String;
|
|
2003
|
+
readonly input: Schema.Struct<{
|
|
2004
|
+
readonly text: Schema.String;
|
|
2005
|
+
readonly type: Schema.Literal<"text">;
|
|
2006
|
+
}>;
|
|
2007
|
+
readonly revision: Schema.String;
|
|
2008
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2009
|
+
readonly sessionId: Schema.String;
|
|
2010
|
+
readonly sessionRevision: Schema.String;
|
|
2011
|
+
readonly updatedAt: Schema.String;
|
|
2012
|
+
readonly state: Schema.Literal<"queued">;
|
|
2013
|
+
}>, Schema.Struct<{
|
|
2014
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2015
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2016
|
+
readonly byteLength: Schema.Int;
|
|
2017
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2018
|
+
readonly name: Schema.String;
|
|
2019
|
+
readonly sha256: Schema.String;
|
|
2020
|
+
}>>>;
|
|
2021
|
+
readonly createdAt: Schema.String;
|
|
2022
|
+
readonly id: Schema.String;
|
|
2023
|
+
readonly input: Schema.Struct<{
|
|
2024
|
+
readonly text: Schema.String;
|
|
2025
|
+
readonly type: Schema.Literal<"text">;
|
|
2026
|
+
}>;
|
|
2027
|
+
readonly revision: Schema.String;
|
|
2028
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2029
|
+
readonly sessionId: Schema.String;
|
|
2030
|
+
readonly sessionRevision: Schema.String;
|
|
2031
|
+
readonly updatedAt: Schema.String;
|
|
2032
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
2033
|
+
}>, Schema.Struct<{
|
|
2034
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2035
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2036
|
+
readonly byteLength: Schema.Int;
|
|
2037
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2038
|
+
readonly name: Schema.String;
|
|
2039
|
+
readonly sha256: Schema.String;
|
|
2040
|
+
}>>>;
|
|
2041
|
+
readonly createdAt: Schema.String;
|
|
2042
|
+
readonly id: Schema.String;
|
|
2043
|
+
readonly input: Schema.Struct<{
|
|
2044
|
+
readonly text: Schema.String;
|
|
2045
|
+
readonly type: Schema.Literal<"text">;
|
|
2046
|
+
}>;
|
|
2047
|
+
readonly revision: Schema.String;
|
|
2048
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2049
|
+
readonly sessionId: Schema.String;
|
|
2050
|
+
readonly sessionRevision: Schema.String;
|
|
2051
|
+
readonly updatedAt: Schema.String;
|
|
2052
|
+
readonly state: Schema.Literal<"running">;
|
|
2053
|
+
}>, Schema.Struct<{
|
|
2054
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2055
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2056
|
+
readonly byteLength: Schema.Int;
|
|
2057
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2058
|
+
readonly name: Schema.String;
|
|
2059
|
+
readonly sha256: Schema.String;
|
|
2060
|
+
}>>>;
|
|
2061
|
+
readonly createdAt: Schema.String;
|
|
2062
|
+
readonly id: Schema.String;
|
|
2063
|
+
readonly input: Schema.Struct<{
|
|
2064
|
+
readonly text: Schema.String;
|
|
2065
|
+
readonly type: Schema.Literal<"text">;
|
|
2066
|
+
}>;
|
|
2067
|
+
readonly revision: Schema.String;
|
|
2068
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2069
|
+
readonly sessionId: Schema.String;
|
|
2070
|
+
readonly sessionRevision: Schema.String;
|
|
2071
|
+
readonly updatedAt: Schema.String;
|
|
2072
|
+
readonly responseText: Schema.String;
|
|
2073
|
+
readonly state: Schema.Literal<"completed">;
|
|
2074
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
2075
|
+
readonly cachedInputTokens: Schema.Int;
|
|
2076
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2077
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2078
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2079
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
2080
|
+
readonly inputTokens: Schema.Int;
|
|
2081
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
2082
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
2083
|
+
readonly outputTokens: Schema.Int;
|
|
2084
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
2085
|
+
readonly totalTokens: Schema.Int;
|
|
2086
|
+
}>>;
|
|
2087
|
+
}>, Schema.Struct<{
|
|
2088
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2089
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2090
|
+
readonly byteLength: Schema.Int;
|
|
2091
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2092
|
+
readonly name: Schema.String;
|
|
2093
|
+
readonly sha256: Schema.String;
|
|
2094
|
+
}>>>;
|
|
2095
|
+
readonly createdAt: Schema.String;
|
|
2096
|
+
readonly id: Schema.String;
|
|
2097
|
+
readonly input: Schema.Struct<{
|
|
2098
|
+
readonly text: Schema.String;
|
|
2099
|
+
readonly type: Schema.Literal<"text">;
|
|
2100
|
+
}>;
|
|
2101
|
+
readonly revision: Schema.String;
|
|
2102
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2103
|
+
readonly sessionId: Schema.String;
|
|
2104
|
+
readonly sessionRevision: Schema.String;
|
|
2105
|
+
readonly updatedAt: Schema.String;
|
|
2106
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
2107
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2108
|
+
readonly code: Schema.String;
|
|
2109
|
+
readonly message: Schema.String;
|
|
2110
|
+
}>>;
|
|
2111
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
2112
|
+
readonly state: Schema.Literal<"failed">;
|
|
2113
|
+
}>, Schema.Struct<{
|
|
2114
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2115
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2116
|
+
readonly byteLength: Schema.Int;
|
|
2117
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2118
|
+
readonly name: Schema.String;
|
|
2119
|
+
readonly sha256: Schema.String;
|
|
2120
|
+
}>>>;
|
|
2121
|
+
readonly createdAt: Schema.String;
|
|
2122
|
+
readonly id: Schema.String;
|
|
2123
|
+
readonly input: Schema.Struct<{
|
|
2124
|
+
readonly text: Schema.String;
|
|
2125
|
+
readonly type: Schema.Literal<"text">;
|
|
2126
|
+
}>;
|
|
2127
|
+
readonly revision: Schema.String;
|
|
2128
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2129
|
+
readonly sessionId: Schema.String;
|
|
2130
|
+
readonly sessionRevision: Schema.String;
|
|
2131
|
+
readonly updatedAt: Schema.String;
|
|
2132
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2133
|
+
readonly code: Schema.String;
|
|
2134
|
+
readonly message: Schema.String;
|
|
2135
|
+
}>>;
|
|
2136
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
2137
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
2138
|
+
}>, Schema.Struct<{
|
|
2139
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2140
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2141
|
+
readonly byteLength: Schema.Int;
|
|
2142
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2143
|
+
readonly name: Schema.String;
|
|
2144
|
+
readonly sha256: Schema.String;
|
|
2145
|
+
}>>>;
|
|
2146
|
+
readonly createdAt: Schema.String;
|
|
2147
|
+
readonly id: Schema.String;
|
|
2148
|
+
readonly input: Schema.Struct<{
|
|
2149
|
+
readonly text: Schema.String;
|
|
2150
|
+
readonly type: Schema.Literal<"text">;
|
|
2151
|
+
}>;
|
|
2152
|
+
readonly revision: Schema.String;
|
|
2153
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2154
|
+
readonly sessionId: Schema.String;
|
|
2155
|
+
readonly sessionRevision: Schema.String;
|
|
2156
|
+
readonly updatedAt: Schema.String;
|
|
2157
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
2158
|
+
}>]>;
|
|
2159
|
+
}>, Schema.Struct<{
|
|
2160
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2161
|
+
readonly method: Schema.Literal<"turn.queue.edit">;
|
|
2162
|
+
readonly receipt: Schema.Struct<{
|
|
2163
|
+
readonly actorId: Schema.String;
|
|
2164
|
+
readonly aggregateRevision: Schema.String;
|
|
2165
|
+
readonly commandId: Schema.String;
|
|
2166
|
+
readonly createdAt: Schema.String;
|
|
2167
|
+
readonly eventCursor: Schema.String;
|
|
2168
|
+
readonly method: Schema.String;
|
|
2169
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2170
|
+
readonly receiptId: Schema.String;
|
|
2171
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2172
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
2173
|
+
readonly target: Schema.Struct<{
|
|
2174
|
+
readonly id: Schema.String;
|
|
2175
|
+
readonly type: Schema.String;
|
|
2176
|
+
}>;
|
|
2177
|
+
readonly updatedAt: Schema.String;
|
|
2178
|
+
}>;
|
|
2179
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
2180
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2181
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2182
|
+
readonly byteLength: Schema.Int;
|
|
2183
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2184
|
+
readonly name: Schema.String;
|
|
2185
|
+
readonly sha256: Schema.String;
|
|
2186
|
+
}>>>;
|
|
2187
|
+
readonly createdAt: Schema.String;
|
|
2188
|
+
readonly id: Schema.String;
|
|
2189
|
+
readonly input: Schema.Struct<{
|
|
2190
|
+
readonly text: Schema.String;
|
|
2191
|
+
readonly type: Schema.Literal<"text">;
|
|
2192
|
+
}>;
|
|
2193
|
+
readonly revision: Schema.String;
|
|
2194
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2195
|
+
readonly sessionId: Schema.String;
|
|
2196
|
+
readonly sessionRevision: Schema.String;
|
|
2197
|
+
readonly updatedAt: Schema.String;
|
|
2198
|
+
readonly state: Schema.Literal<"queued">;
|
|
2199
|
+
}>, Schema.Struct<{
|
|
2200
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2201
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2202
|
+
readonly byteLength: Schema.Int;
|
|
2203
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2204
|
+
readonly name: Schema.String;
|
|
2205
|
+
readonly sha256: Schema.String;
|
|
2206
|
+
}>>>;
|
|
2207
|
+
readonly createdAt: Schema.String;
|
|
2208
|
+
readonly id: Schema.String;
|
|
2209
|
+
readonly input: Schema.Struct<{
|
|
2210
|
+
readonly text: Schema.String;
|
|
2211
|
+
readonly type: Schema.Literal<"text">;
|
|
2212
|
+
}>;
|
|
2213
|
+
readonly revision: Schema.String;
|
|
2214
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2215
|
+
readonly sessionId: Schema.String;
|
|
2216
|
+
readonly sessionRevision: Schema.String;
|
|
2217
|
+
readonly updatedAt: Schema.String;
|
|
2218
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
2219
|
+
}>, Schema.Struct<{
|
|
2220
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2221
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2222
|
+
readonly byteLength: Schema.Int;
|
|
2223
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2224
|
+
readonly name: Schema.String;
|
|
2225
|
+
readonly sha256: Schema.String;
|
|
2226
|
+
}>>>;
|
|
2227
|
+
readonly createdAt: Schema.String;
|
|
2228
|
+
readonly id: Schema.String;
|
|
2229
|
+
readonly input: Schema.Struct<{
|
|
2230
|
+
readonly text: Schema.String;
|
|
2231
|
+
readonly type: Schema.Literal<"text">;
|
|
2232
|
+
}>;
|
|
2233
|
+
readonly revision: Schema.String;
|
|
2234
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2235
|
+
readonly sessionId: Schema.String;
|
|
2236
|
+
readonly sessionRevision: Schema.String;
|
|
2237
|
+
readonly updatedAt: Schema.String;
|
|
2238
|
+
readonly state: Schema.Literal<"running">;
|
|
2239
|
+
}>, Schema.Struct<{
|
|
2240
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2241
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2242
|
+
readonly byteLength: Schema.Int;
|
|
2243
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2244
|
+
readonly name: Schema.String;
|
|
2245
|
+
readonly sha256: Schema.String;
|
|
2246
|
+
}>>>;
|
|
2247
|
+
readonly createdAt: Schema.String;
|
|
2248
|
+
readonly id: Schema.String;
|
|
2249
|
+
readonly input: Schema.Struct<{
|
|
2250
|
+
readonly text: Schema.String;
|
|
2251
|
+
readonly type: Schema.Literal<"text">;
|
|
2252
|
+
}>;
|
|
2253
|
+
readonly revision: Schema.String;
|
|
2254
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2255
|
+
readonly sessionId: Schema.String;
|
|
2256
|
+
readonly sessionRevision: Schema.String;
|
|
2257
|
+
readonly updatedAt: Schema.String;
|
|
2258
|
+
readonly responseText: Schema.String;
|
|
2259
|
+
readonly state: Schema.Literal<"completed">;
|
|
2260
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
2261
|
+
readonly cachedInputTokens: Schema.Int;
|
|
2262
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2263
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2264
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2265
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
2266
|
+
readonly inputTokens: Schema.Int;
|
|
2267
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
2268
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
2269
|
+
readonly outputTokens: Schema.Int;
|
|
2270
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
2271
|
+
readonly totalTokens: Schema.Int;
|
|
2272
|
+
}>>;
|
|
2273
|
+
}>, Schema.Struct<{
|
|
2274
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2275
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2276
|
+
readonly byteLength: Schema.Int;
|
|
2277
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2278
|
+
readonly name: Schema.String;
|
|
2279
|
+
readonly sha256: Schema.String;
|
|
2280
|
+
}>>>;
|
|
2281
|
+
readonly createdAt: Schema.String;
|
|
2282
|
+
readonly id: Schema.String;
|
|
2283
|
+
readonly input: Schema.Struct<{
|
|
2284
|
+
readonly text: Schema.String;
|
|
2285
|
+
readonly type: Schema.Literal<"text">;
|
|
2286
|
+
}>;
|
|
2287
|
+
readonly revision: Schema.String;
|
|
2288
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2289
|
+
readonly sessionId: Schema.String;
|
|
2290
|
+
readonly sessionRevision: Schema.String;
|
|
2291
|
+
readonly updatedAt: Schema.String;
|
|
2292
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
2293
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2294
|
+
readonly code: Schema.String;
|
|
2295
|
+
readonly message: Schema.String;
|
|
2296
|
+
}>>;
|
|
2297
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
2298
|
+
readonly state: Schema.Literal<"failed">;
|
|
2299
|
+
}>, Schema.Struct<{
|
|
2300
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2301
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2302
|
+
readonly byteLength: Schema.Int;
|
|
2303
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2304
|
+
readonly name: Schema.String;
|
|
2305
|
+
readonly sha256: Schema.String;
|
|
2306
|
+
}>>>;
|
|
2307
|
+
readonly createdAt: Schema.String;
|
|
2308
|
+
readonly id: Schema.String;
|
|
2309
|
+
readonly input: Schema.Struct<{
|
|
2310
|
+
readonly text: Schema.String;
|
|
2311
|
+
readonly type: Schema.Literal<"text">;
|
|
2312
|
+
}>;
|
|
2313
|
+
readonly revision: Schema.String;
|
|
2314
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2315
|
+
readonly sessionId: Schema.String;
|
|
2316
|
+
readonly sessionRevision: Schema.String;
|
|
2317
|
+
readonly updatedAt: Schema.String;
|
|
2318
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2319
|
+
readonly code: Schema.String;
|
|
2320
|
+
readonly message: Schema.String;
|
|
2321
|
+
}>>;
|
|
2322
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
2323
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
2324
|
+
}>, Schema.Struct<{
|
|
2325
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2326
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2327
|
+
readonly byteLength: Schema.Int;
|
|
2328
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2329
|
+
readonly name: Schema.String;
|
|
2330
|
+
readonly sha256: Schema.String;
|
|
2331
|
+
}>>>;
|
|
2332
|
+
readonly createdAt: Schema.String;
|
|
2333
|
+
readonly id: Schema.String;
|
|
2334
|
+
readonly input: Schema.Struct<{
|
|
2335
|
+
readonly text: Schema.String;
|
|
2336
|
+
readonly type: Schema.Literal<"text">;
|
|
2337
|
+
}>;
|
|
2338
|
+
readonly revision: Schema.String;
|
|
2339
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2340
|
+
readonly sessionId: Schema.String;
|
|
2341
|
+
readonly sessionRevision: Schema.String;
|
|
2342
|
+
readonly updatedAt: Schema.String;
|
|
2343
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
2344
|
+
}>]>;
|
|
2345
|
+
}>, Schema.Struct<{
|
|
2346
|
+
/** The turn now dispatching or running; absent when none is. */
|
|
2347
|
+
readonly activeTurn: Schema.optional<Schema.Struct<{
|
|
2348
|
+
readonly id: Schema.String;
|
|
2349
|
+
readonly revision: Schema.String;
|
|
2350
|
+
readonly state: Schema.Literals<readonly ["dispatching", "running"]>;
|
|
2351
|
+
}>>;
|
|
2352
|
+
readonly method: Schema.Literal<"turn.queue.list">;
|
|
2353
|
+
/** Queued turns in dispatch order; `turn.show` returns a turn's full input. */
|
|
2354
|
+
readonly queue: Schema.$Array<Schema.Struct<{
|
|
2355
|
+
readonly createdAt: Schema.String;
|
|
2356
|
+
readonly id: Schema.String;
|
|
2357
|
+
readonly inputPreview: Schema.String;
|
|
2358
|
+
readonly position: Schema.Int;
|
|
2359
|
+
readonly revision: Schema.String;
|
|
2360
|
+
}>>;
|
|
2361
|
+
readonly sessionId: Schema.String;
|
|
2362
|
+
}>, Schema.Struct<{
|
|
2363
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2364
|
+
readonly method: Schema.Literal<"turn.queue.promote">;
|
|
2365
|
+
/**
|
|
2366
|
+
* `promoted`: the turn sat in the queue and now goes as `delivery: "now"`
|
|
2367
|
+
* does. `already_dispatched`: the turn left the queue first (dispatching,
|
|
2368
|
+
* running or past it), so the promote changed nothing. Both carry a
|
|
2369
|
+
* receipt, and a replay returns the same one.
|
|
2370
|
+
*/
|
|
2371
|
+
readonly outcome: Schema.Literals<readonly ["promoted", "already_dispatched"]>;
|
|
2372
|
+
/**
|
|
2373
|
+
* `interrupt-restart` when a turn was running, which `sourceTurnId`
|
|
2374
|
+
* names: the Node interrupted it and this turn runs next. A promote never
|
|
2375
|
+
* steers, so its text runs once, as this turn. Both are absent when none
|
|
2376
|
+
* was running, and the turn then starts first.
|
|
2377
|
+
*/
|
|
2378
|
+
readonly path: Schema.optional<Schema.Literal<"interrupt-restart">>;
|
|
2379
|
+
readonly receipt: Schema.Struct<{
|
|
2380
|
+
readonly actorId: Schema.String;
|
|
2381
|
+
readonly aggregateRevision: Schema.String;
|
|
2382
|
+
readonly commandId: Schema.String;
|
|
2383
|
+
readonly createdAt: Schema.String;
|
|
2384
|
+
readonly eventCursor: Schema.String;
|
|
2385
|
+
readonly method: Schema.String;
|
|
2386
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2387
|
+
readonly receiptId: Schema.String;
|
|
2388
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2389
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
2390
|
+
readonly target: Schema.Struct<{
|
|
2391
|
+
readonly id: Schema.String;
|
|
2392
|
+
readonly type: Schema.String;
|
|
2393
|
+
}>;
|
|
2394
|
+
readonly updatedAt: Schema.String;
|
|
2395
|
+
}>;
|
|
2396
|
+
readonly sourceTurnId: Schema.optional<Schema.String>;
|
|
2397
|
+
/** The turn the promote named, as it stands now. */
|
|
2398
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
2399
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2400
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2401
|
+
readonly byteLength: Schema.Int;
|
|
2402
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2403
|
+
readonly name: Schema.String;
|
|
2404
|
+
readonly sha256: Schema.String;
|
|
2405
|
+
}>>>;
|
|
2406
|
+
readonly createdAt: Schema.String;
|
|
2407
|
+
readonly id: Schema.String;
|
|
2408
|
+
readonly input: Schema.Struct<{
|
|
2409
|
+
readonly text: Schema.String;
|
|
2410
|
+
readonly type: Schema.Literal<"text">;
|
|
2411
|
+
}>;
|
|
2412
|
+
readonly revision: Schema.String;
|
|
2413
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2414
|
+
readonly sessionId: Schema.String;
|
|
2415
|
+
readonly sessionRevision: Schema.String;
|
|
2416
|
+
readonly updatedAt: Schema.String;
|
|
2417
|
+
readonly state: Schema.Literal<"queued">;
|
|
2418
|
+
}>, Schema.Struct<{
|
|
2419
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2420
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2421
|
+
readonly byteLength: Schema.Int;
|
|
2422
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2423
|
+
readonly name: Schema.String;
|
|
2424
|
+
readonly sha256: Schema.String;
|
|
2425
|
+
}>>>;
|
|
2426
|
+
readonly createdAt: Schema.String;
|
|
2427
|
+
readonly id: Schema.String;
|
|
2428
|
+
readonly input: Schema.Struct<{
|
|
2429
|
+
readonly text: Schema.String;
|
|
2430
|
+
readonly type: Schema.Literal<"text">;
|
|
2431
|
+
}>;
|
|
2432
|
+
readonly revision: Schema.String;
|
|
2433
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2434
|
+
readonly sessionId: Schema.String;
|
|
2435
|
+
readonly sessionRevision: Schema.String;
|
|
2436
|
+
readonly updatedAt: Schema.String;
|
|
2437
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
2438
|
+
}>, Schema.Struct<{
|
|
2439
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2440
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2441
|
+
readonly byteLength: Schema.Int;
|
|
2442
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2443
|
+
readonly name: Schema.String;
|
|
2444
|
+
readonly sha256: Schema.String;
|
|
2445
|
+
}>>>;
|
|
2446
|
+
readonly createdAt: Schema.String;
|
|
2447
|
+
readonly id: Schema.String;
|
|
2448
|
+
readonly input: Schema.Struct<{
|
|
2449
|
+
readonly text: Schema.String;
|
|
2450
|
+
readonly type: Schema.Literal<"text">;
|
|
2451
|
+
}>;
|
|
2452
|
+
readonly revision: Schema.String;
|
|
2453
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2454
|
+
readonly sessionId: Schema.String;
|
|
2455
|
+
readonly sessionRevision: Schema.String;
|
|
2456
|
+
readonly updatedAt: Schema.String;
|
|
2457
|
+
readonly state: Schema.Literal<"running">;
|
|
2458
|
+
}>, Schema.Struct<{
|
|
2459
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2460
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2461
|
+
readonly byteLength: Schema.Int;
|
|
2462
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2463
|
+
readonly name: Schema.String;
|
|
2464
|
+
readonly sha256: Schema.String;
|
|
2465
|
+
}>>>;
|
|
2466
|
+
readonly createdAt: Schema.String;
|
|
2467
|
+
readonly id: Schema.String;
|
|
2468
|
+
readonly input: Schema.Struct<{
|
|
2469
|
+
readonly text: Schema.String;
|
|
2470
|
+
readonly type: Schema.Literal<"text">;
|
|
2471
|
+
}>;
|
|
2472
|
+
readonly revision: Schema.String;
|
|
2473
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2474
|
+
readonly sessionId: Schema.String;
|
|
2475
|
+
readonly sessionRevision: Schema.String;
|
|
2476
|
+
readonly updatedAt: Schema.String;
|
|
2477
|
+
readonly responseText: Schema.String;
|
|
2478
|
+
readonly state: Schema.Literal<"completed">;
|
|
2479
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
2480
|
+
readonly cachedInputTokens: Schema.Int;
|
|
2481
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2482
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2483
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2484
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
2485
|
+
readonly inputTokens: Schema.Int;
|
|
2486
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
2487
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
2488
|
+
readonly outputTokens: Schema.Int;
|
|
2489
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
2490
|
+
readonly totalTokens: Schema.Int;
|
|
2491
|
+
}>>;
|
|
2492
|
+
}>, Schema.Struct<{
|
|
2493
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2494
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2495
|
+
readonly byteLength: Schema.Int;
|
|
2496
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2497
|
+
readonly name: Schema.String;
|
|
2498
|
+
readonly sha256: Schema.String;
|
|
2499
|
+
}>>>;
|
|
2500
|
+
readonly createdAt: Schema.String;
|
|
2501
|
+
readonly id: Schema.String;
|
|
2502
|
+
readonly input: Schema.Struct<{
|
|
2503
|
+
readonly text: Schema.String;
|
|
2504
|
+
readonly type: Schema.Literal<"text">;
|
|
2505
|
+
}>;
|
|
2506
|
+
readonly revision: Schema.String;
|
|
2507
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2508
|
+
readonly sessionId: Schema.String;
|
|
2509
|
+
readonly sessionRevision: Schema.String;
|
|
2510
|
+
readonly updatedAt: Schema.String;
|
|
2511
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
2512
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2513
|
+
readonly code: Schema.String;
|
|
2514
|
+
readonly message: Schema.String;
|
|
2515
|
+
}>>;
|
|
2516
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
2517
|
+
readonly state: Schema.Literal<"failed">;
|
|
2518
|
+
}>, Schema.Struct<{
|
|
2519
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2520
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2521
|
+
readonly byteLength: Schema.Int;
|
|
2522
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2523
|
+
readonly name: Schema.String;
|
|
2524
|
+
readonly sha256: Schema.String;
|
|
2525
|
+
}>>>;
|
|
2526
|
+
readonly createdAt: Schema.String;
|
|
2527
|
+
readonly id: Schema.String;
|
|
2528
|
+
readonly input: Schema.Struct<{
|
|
2529
|
+
readonly text: Schema.String;
|
|
2530
|
+
readonly type: Schema.Literal<"text">;
|
|
2531
|
+
}>;
|
|
2532
|
+
readonly revision: Schema.String;
|
|
2533
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2534
|
+
readonly sessionId: Schema.String;
|
|
2535
|
+
readonly sessionRevision: Schema.String;
|
|
2536
|
+
readonly updatedAt: Schema.String;
|
|
2537
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2538
|
+
readonly code: Schema.String;
|
|
2539
|
+
readonly message: Schema.String;
|
|
2540
|
+
}>>;
|
|
2541
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
2542
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
2543
|
+
}>, Schema.Struct<{
|
|
2544
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2545
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2546
|
+
readonly byteLength: Schema.Int;
|
|
2547
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2548
|
+
readonly name: Schema.String;
|
|
2549
|
+
readonly sha256: Schema.String;
|
|
2550
|
+
}>>>;
|
|
2551
|
+
readonly createdAt: Schema.String;
|
|
2552
|
+
readonly id: Schema.String;
|
|
2553
|
+
readonly input: Schema.Struct<{
|
|
2554
|
+
readonly text: Schema.String;
|
|
2555
|
+
readonly type: Schema.Literal<"text">;
|
|
2556
|
+
}>;
|
|
2557
|
+
readonly revision: Schema.String;
|
|
2558
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2559
|
+
readonly sessionId: Schema.String;
|
|
2560
|
+
readonly sessionRevision: Schema.String;
|
|
2561
|
+
readonly updatedAt: Schema.String;
|
|
2562
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
2563
|
+
}>]>;
|
|
2564
|
+
}>, Schema.Struct<{
|
|
2565
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2566
|
+
readonly method: Schema.Literal<"turn.interrupt">;
|
|
2567
|
+
readonly receipt: Schema.Struct<{
|
|
2568
|
+
readonly actorId: Schema.String;
|
|
2569
|
+
readonly aggregateRevision: Schema.String;
|
|
2570
|
+
readonly commandId: Schema.String;
|
|
2571
|
+
readonly createdAt: Schema.String;
|
|
2572
|
+
readonly eventCursor: Schema.String;
|
|
2573
|
+
readonly method: Schema.String;
|
|
2574
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2575
|
+
readonly receiptId: Schema.String;
|
|
2576
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2577
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
2578
|
+
readonly target: Schema.Struct<{
|
|
2579
|
+
readonly id: Schema.String;
|
|
2580
|
+
readonly type: Schema.String;
|
|
2581
|
+
}>;
|
|
2582
|
+
readonly updatedAt: Schema.String;
|
|
2583
|
+
}>;
|
|
2584
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
2585
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2586
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2587
|
+
readonly byteLength: Schema.Int;
|
|
2588
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2589
|
+
readonly name: Schema.String;
|
|
2590
|
+
readonly sha256: Schema.String;
|
|
2591
|
+
}>>>;
|
|
2592
|
+
readonly createdAt: Schema.String;
|
|
2593
|
+
readonly id: Schema.String;
|
|
2594
|
+
readonly input: Schema.Struct<{
|
|
2595
|
+
readonly text: Schema.String;
|
|
2596
|
+
readonly type: Schema.Literal<"text">;
|
|
2597
|
+
}>;
|
|
2598
|
+
readonly revision: Schema.String;
|
|
2599
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2600
|
+
readonly sessionId: Schema.String;
|
|
2601
|
+
readonly sessionRevision: Schema.String;
|
|
2602
|
+
readonly updatedAt: Schema.String;
|
|
2603
|
+
readonly state: Schema.Literal<"queued">;
|
|
2604
|
+
}>, Schema.Struct<{
|
|
2605
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2606
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2607
|
+
readonly byteLength: Schema.Int;
|
|
2608
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2609
|
+
readonly name: Schema.String;
|
|
2610
|
+
readonly sha256: Schema.String;
|
|
2611
|
+
}>>>;
|
|
2612
|
+
readonly createdAt: Schema.String;
|
|
2613
|
+
readonly id: Schema.String;
|
|
2614
|
+
readonly input: Schema.Struct<{
|
|
2615
|
+
readonly text: Schema.String;
|
|
2616
|
+
readonly type: Schema.Literal<"text">;
|
|
2617
|
+
}>;
|
|
2618
|
+
readonly revision: Schema.String;
|
|
2619
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2620
|
+
readonly sessionId: Schema.String;
|
|
2621
|
+
readonly sessionRevision: Schema.String;
|
|
2622
|
+
readonly updatedAt: Schema.String;
|
|
2623
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
2624
|
+
}>, Schema.Struct<{
|
|
2625
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2626
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2627
|
+
readonly byteLength: Schema.Int;
|
|
2628
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2629
|
+
readonly name: Schema.String;
|
|
2630
|
+
readonly sha256: Schema.String;
|
|
2631
|
+
}>>>;
|
|
2632
|
+
readonly createdAt: Schema.String;
|
|
2633
|
+
readonly id: Schema.String;
|
|
2634
|
+
readonly input: Schema.Struct<{
|
|
2635
|
+
readonly text: Schema.String;
|
|
2636
|
+
readonly type: Schema.Literal<"text">;
|
|
2637
|
+
}>;
|
|
2638
|
+
readonly revision: Schema.String;
|
|
2639
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2640
|
+
readonly sessionId: Schema.String;
|
|
2641
|
+
readonly sessionRevision: Schema.String;
|
|
2642
|
+
readonly updatedAt: Schema.String;
|
|
2643
|
+
readonly state: Schema.Literal<"running">;
|
|
2644
|
+
}>, Schema.Struct<{
|
|
2645
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2646
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2647
|
+
readonly byteLength: Schema.Int;
|
|
2648
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2649
|
+
readonly name: Schema.String;
|
|
2650
|
+
readonly sha256: Schema.String;
|
|
2651
|
+
}>>>;
|
|
2652
|
+
readonly createdAt: Schema.String;
|
|
2653
|
+
readonly id: Schema.String;
|
|
2654
|
+
readonly input: Schema.Struct<{
|
|
2655
|
+
readonly text: Schema.String;
|
|
2656
|
+
readonly type: Schema.Literal<"text">;
|
|
2657
|
+
}>;
|
|
2658
|
+
readonly revision: Schema.String;
|
|
2659
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2660
|
+
readonly sessionId: Schema.String;
|
|
2661
|
+
readonly sessionRevision: Schema.String;
|
|
2662
|
+
readonly updatedAt: Schema.String;
|
|
2663
|
+
readonly responseText: Schema.String;
|
|
2664
|
+
readonly state: Schema.Literal<"completed">;
|
|
2665
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
2666
|
+
readonly cachedInputTokens: Schema.Int;
|
|
2667
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2668
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2669
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2670
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
2671
|
+
readonly inputTokens: Schema.Int;
|
|
2672
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
2673
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
2674
|
+
readonly outputTokens: Schema.Int;
|
|
2675
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
2676
|
+
readonly totalTokens: Schema.Int;
|
|
2677
|
+
}>>;
|
|
2678
|
+
}>, Schema.Struct<{
|
|
2679
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2680
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2681
|
+
readonly byteLength: Schema.Int;
|
|
2682
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2683
|
+
readonly name: Schema.String;
|
|
2684
|
+
readonly sha256: Schema.String;
|
|
2685
|
+
}>>>;
|
|
2686
|
+
readonly createdAt: Schema.String;
|
|
2687
|
+
readonly id: Schema.String;
|
|
2688
|
+
readonly input: Schema.Struct<{
|
|
2689
|
+
readonly text: Schema.String;
|
|
2690
|
+
readonly type: Schema.Literal<"text">;
|
|
2691
|
+
}>;
|
|
2692
|
+
readonly revision: Schema.String;
|
|
2693
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2694
|
+
readonly sessionId: Schema.String;
|
|
2695
|
+
readonly sessionRevision: Schema.String;
|
|
2696
|
+
readonly updatedAt: Schema.String;
|
|
2697
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
2698
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2699
|
+
readonly code: Schema.String;
|
|
2700
|
+
readonly message: Schema.String;
|
|
2701
|
+
}>>;
|
|
2702
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
2703
|
+
readonly state: Schema.Literal<"failed">;
|
|
2704
|
+
}>, Schema.Struct<{
|
|
2705
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2706
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2707
|
+
readonly byteLength: Schema.Int;
|
|
2708
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2709
|
+
readonly name: Schema.String;
|
|
2710
|
+
readonly sha256: Schema.String;
|
|
2711
|
+
}>>>;
|
|
2712
|
+
readonly createdAt: Schema.String;
|
|
2713
|
+
readonly id: Schema.String;
|
|
2714
|
+
readonly input: Schema.Struct<{
|
|
2715
|
+
readonly text: Schema.String;
|
|
2716
|
+
readonly type: Schema.Literal<"text">;
|
|
2717
|
+
}>;
|
|
2718
|
+
readonly revision: Schema.String;
|
|
2719
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2720
|
+
readonly sessionId: Schema.String;
|
|
2721
|
+
readonly sessionRevision: Schema.String;
|
|
2722
|
+
readonly updatedAt: Schema.String;
|
|
2723
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2724
|
+
readonly code: Schema.String;
|
|
2725
|
+
readonly message: Schema.String;
|
|
2726
|
+
}>>;
|
|
2727
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
2728
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
2729
|
+
}>, Schema.Struct<{
|
|
2730
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2731
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2732
|
+
readonly byteLength: Schema.Int;
|
|
2733
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2734
|
+
readonly name: Schema.String;
|
|
2735
|
+
readonly sha256: Schema.String;
|
|
2736
|
+
}>>>;
|
|
2737
|
+
readonly createdAt: Schema.String;
|
|
2738
|
+
readonly id: Schema.String;
|
|
2739
|
+
readonly input: Schema.Struct<{
|
|
2740
|
+
readonly text: Schema.String;
|
|
2741
|
+
readonly type: Schema.Literal<"text">;
|
|
2742
|
+
}>;
|
|
2743
|
+
readonly revision: Schema.String;
|
|
2744
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2745
|
+
readonly sessionId: Schema.String;
|
|
2746
|
+
readonly sessionRevision: Schema.String;
|
|
2747
|
+
readonly updatedAt: Schema.String;
|
|
2748
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
2749
|
+
}>]>;
|
|
2750
|
+
}>, Schema.Struct<{
|
|
2751
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2752
|
+
readonly method: Schema.Literal<"turn.send">;
|
|
2753
|
+
readonly path: Schema.optional<Schema.Literals<readonly ["interrupt-restart", "native"]>>;
|
|
2754
|
+
readonly receipt: Schema.Struct<{
|
|
2755
|
+
readonly actorId: Schema.String;
|
|
2756
|
+
readonly aggregateRevision: Schema.String;
|
|
2757
|
+
readonly commandId: Schema.String;
|
|
2758
|
+
readonly createdAt: Schema.String;
|
|
2759
|
+
readonly eventCursor: Schema.String;
|
|
2760
|
+
readonly method: Schema.String;
|
|
2761
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2762
|
+
readonly receiptId: Schema.String;
|
|
2763
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2764
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
2765
|
+
readonly target: Schema.Struct<{
|
|
2766
|
+
readonly id: Schema.String;
|
|
2767
|
+
readonly type: Schema.String;
|
|
2768
|
+
}>;
|
|
2769
|
+
readonly updatedAt: Schema.String;
|
|
2770
|
+
}>;
|
|
2771
|
+
readonly sourceTurnId: Schema.optional<Schema.String>;
|
|
2772
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
2773
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2774
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2775
|
+
readonly byteLength: Schema.Int;
|
|
2776
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2777
|
+
readonly name: Schema.String;
|
|
2778
|
+
readonly sha256: Schema.String;
|
|
2779
|
+
}>>>;
|
|
2780
|
+
readonly createdAt: Schema.String;
|
|
2781
|
+
readonly id: Schema.String;
|
|
2782
|
+
readonly input: Schema.Struct<{
|
|
2783
|
+
readonly text: Schema.String;
|
|
2784
|
+
readonly type: Schema.Literal<"text">;
|
|
2785
|
+
}>;
|
|
2786
|
+
readonly revision: Schema.String;
|
|
2787
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2788
|
+
readonly sessionId: Schema.String;
|
|
2789
|
+
readonly sessionRevision: Schema.String;
|
|
2790
|
+
readonly updatedAt: Schema.String;
|
|
2791
|
+
readonly state: Schema.Literal<"queued">;
|
|
2792
|
+
}>, Schema.Struct<{
|
|
2793
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2794
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2795
|
+
readonly byteLength: Schema.Int;
|
|
2796
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2797
|
+
readonly name: Schema.String;
|
|
2798
|
+
readonly sha256: Schema.String;
|
|
2799
|
+
}>>>;
|
|
2800
|
+
readonly createdAt: Schema.String;
|
|
2801
|
+
readonly id: Schema.String;
|
|
2802
|
+
readonly input: Schema.Struct<{
|
|
2803
|
+
readonly text: Schema.String;
|
|
2804
|
+
readonly type: Schema.Literal<"text">;
|
|
2805
|
+
}>;
|
|
2806
|
+
readonly revision: Schema.String;
|
|
2807
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2808
|
+
readonly sessionId: Schema.String;
|
|
2809
|
+
readonly sessionRevision: Schema.String;
|
|
2810
|
+
readonly updatedAt: Schema.String;
|
|
2811
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
2812
|
+
}>, Schema.Struct<{
|
|
2813
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2814
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2815
|
+
readonly byteLength: Schema.Int;
|
|
2816
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2817
|
+
readonly name: Schema.String;
|
|
2818
|
+
readonly sha256: Schema.String;
|
|
2819
|
+
}>>>;
|
|
2820
|
+
readonly createdAt: Schema.String;
|
|
2821
|
+
readonly id: Schema.String;
|
|
2822
|
+
readonly input: Schema.Struct<{
|
|
2823
|
+
readonly text: Schema.String;
|
|
2824
|
+
readonly type: Schema.Literal<"text">;
|
|
2825
|
+
}>;
|
|
2826
|
+
readonly revision: Schema.String;
|
|
2827
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2828
|
+
readonly sessionId: Schema.String;
|
|
2829
|
+
readonly sessionRevision: Schema.String;
|
|
2830
|
+
readonly updatedAt: Schema.String;
|
|
2831
|
+
readonly state: Schema.Literal<"running">;
|
|
2832
|
+
}>, Schema.Struct<{
|
|
2833
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2834
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2835
|
+
readonly byteLength: Schema.Int;
|
|
2836
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2837
|
+
readonly name: Schema.String;
|
|
2838
|
+
readonly sha256: Schema.String;
|
|
2839
|
+
}>>>;
|
|
2840
|
+
readonly createdAt: Schema.String;
|
|
2841
|
+
readonly id: Schema.String;
|
|
2842
|
+
readonly input: Schema.Struct<{
|
|
2843
|
+
readonly text: Schema.String;
|
|
2844
|
+
readonly type: Schema.Literal<"text">;
|
|
2845
|
+
}>;
|
|
2846
|
+
readonly revision: Schema.String;
|
|
2847
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2848
|
+
readonly sessionId: Schema.String;
|
|
2849
|
+
readonly sessionRevision: Schema.String;
|
|
2850
|
+
readonly updatedAt: Schema.String;
|
|
2851
|
+
readonly responseText: Schema.String;
|
|
2852
|
+
readonly state: Schema.Literal<"completed">;
|
|
2853
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
2854
|
+
readonly cachedInputTokens: Schema.Int;
|
|
2855
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2856
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2857
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2858
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
2859
|
+
readonly inputTokens: Schema.Int;
|
|
2860
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
2861
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
2862
|
+
readonly outputTokens: Schema.Int;
|
|
2863
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
2864
|
+
readonly totalTokens: Schema.Int;
|
|
2865
|
+
}>>;
|
|
2866
|
+
}>, Schema.Struct<{
|
|
2867
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2868
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2869
|
+
readonly byteLength: Schema.Int;
|
|
2870
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2871
|
+
readonly name: Schema.String;
|
|
2872
|
+
readonly sha256: Schema.String;
|
|
2873
|
+
}>>>;
|
|
2874
|
+
readonly createdAt: Schema.String;
|
|
2875
|
+
readonly id: Schema.String;
|
|
2876
|
+
readonly input: Schema.Struct<{
|
|
2877
|
+
readonly text: Schema.String;
|
|
2878
|
+
readonly type: Schema.Literal<"text">;
|
|
2879
|
+
}>;
|
|
2880
|
+
readonly revision: Schema.String;
|
|
2881
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2882
|
+
readonly sessionId: Schema.String;
|
|
2883
|
+
readonly sessionRevision: Schema.String;
|
|
2884
|
+
readonly updatedAt: Schema.String;
|
|
2885
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
2886
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2887
|
+
readonly code: Schema.String;
|
|
2888
|
+
readonly message: Schema.String;
|
|
2889
|
+
}>>;
|
|
2890
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
2891
|
+
readonly state: Schema.Literal<"failed">;
|
|
2892
|
+
}>, Schema.Struct<{
|
|
2893
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2894
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2895
|
+
readonly byteLength: Schema.Int;
|
|
2896
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2897
|
+
readonly name: Schema.String;
|
|
2898
|
+
readonly sha256: Schema.String;
|
|
2899
|
+
}>>>;
|
|
2900
|
+
readonly createdAt: Schema.String;
|
|
2901
|
+
readonly id: Schema.String;
|
|
2902
|
+
readonly input: Schema.Struct<{
|
|
2903
|
+
readonly text: Schema.String;
|
|
2904
|
+
readonly type: Schema.Literal<"text">;
|
|
2905
|
+
}>;
|
|
2906
|
+
readonly revision: Schema.String;
|
|
2907
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2908
|
+
readonly sessionId: Schema.String;
|
|
2909
|
+
readonly sessionRevision: Schema.String;
|
|
2910
|
+
readonly updatedAt: Schema.String;
|
|
2911
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2912
|
+
readonly code: Schema.String;
|
|
2913
|
+
readonly message: Schema.String;
|
|
2914
|
+
}>>;
|
|
2915
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
2916
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
2917
|
+
}>, Schema.Struct<{
|
|
2918
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2919
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2920
|
+
readonly byteLength: Schema.Int;
|
|
2921
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2922
|
+
readonly name: Schema.String;
|
|
2923
|
+
readonly sha256: Schema.String;
|
|
2924
|
+
}>>>;
|
|
2925
|
+
readonly createdAt: Schema.String;
|
|
2926
|
+
readonly id: Schema.String;
|
|
2927
|
+
readonly input: Schema.Struct<{
|
|
2928
|
+
readonly text: Schema.String;
|
|
2929
|
+
readonly type: Schema.Literal<"text">;
|
|
2930
|
+
}>;
|
|
2931
|
+
readonly revision: Schema.String;
|
|
2932
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2933
|
+
readonly sessionId: Schema.String;
|
|
2934
|
+
readonly sessionRevision: Schema.String;
|
|
2935
|
+
readonly updatedAt: Schema.String;
|
|
2936
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
2937
|
+
}>]>;
|
|
2938
|
+
}>, Schema.Struct<{
|
|
2939
|
+
readonly method: Schema.Literal<"turn.show">;
|
|
2940
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
2941
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2942
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2943
|
+
readonly byteLength: Schema.Int;
|
|
2944
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2945
|
+
readonly name: Schema.String;
|
|
2946
|
+
readonly sha256: Schema.String;
|
|
2947
|
+
}>>>;
|
|
2948
|
+
readonly createdAt: Schema.String;
|
|
2949
|
+
readonly id: Schema.String;
|
|
2950
|
+
readonly input: Schema.Struct<{
|
|
2951
|
+
readonly text: Schema.String;
|
|
2952
|
+
readonly type: Schema.Literal<"text">;
|
|
2953
|
+
}>;
|
|
2954
|
+
readonly revision: Schema.String;
|
|
2955
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2956
|
+
readonly sessionId: Schema.String;
|
|
2957
|
+
readonly sessionRevision: Schema.String;
|
|
2958
|
+
readonly updatedAt: Schema.String;
|
|
2959
|
+
readonly state: Schema.Literal<"queued">;
|
|
2960
|
+
}>, Schema.Struct<{
|
|
2961
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2962
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2963
|
+
readonly byteLength: Schema.Int;
|
|
2964
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2965
|
+
readonly name: Schema.String;
|
|
2966
|
+
readonly sha256: Schema.String;
|
|
2967
|
+
}>>>;
|
|
2968
|
+
readonly createdAt: Schema.String;
|
|
2969
|
+
readonly id: Schema.String;
|
|
2970
|
+
readonly input: Schema.Struct<{
|
|
2971
|
+
readonly text: Schema.String;
|
|
2972
|
+
readonly type: Schema.Literal<"text">;
|
|
2973
|
+
}>;
|
|
2974
|
+
readonly revision: Schema.String;
|
|
2975
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2976
|
+
readonly sessionId: Schema.String;
|
|
2977
|
+
readonly sessionRevision: Schema.String;
|
|
2978
|
+
readonly updatedAt: Schema.String;
|
|
2979
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
2980
|
+
}>, Schema.Struct<{
|
|
2981
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2982
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2983
|
+
readonly byteLength: Schema.Int;
|
|
2984
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2985
|
+
readonly name: Schema.String;
|
|
2986
|
+
readonly sha256: Schema.String;
|
|
2987
|
+
}>>>;
|
|
2988
|
+
readonly createdAt: Schema.String;
|
|
2989
|
+
readonly id: Schema.String;
|
|
2990
|
+
readonly input: Schema.Struct<{
|
|
2991
|
+
readonly text: Schema.String;
|
|
2992
|
+
readonly type: Schema.Literal<"text">;
|
|
2993
|
+
}>;
|
|
2994
|
+
readonly revision: Schema.String;
|
|
2995
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2996
|
+
readonly sessionId: Schema.String;
|
|
2997
|
+
readonly sessionRevision: Schema.String;
|
|
2998
|
+
readonly updatedAt: Schema.String;
|
|
2999
|
+
readonly state: Schema.Literal<"running">;
|
|
3000
|
+
}>, Schema.Struct<{
|
|
3001
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3002
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3003
|
+
readonly byteLength: Schema.Int;
|
|
3004
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3005
|
+
readonly name: Schema.String;
|
|
3006
|
+
readonly sha256: Schema.String;
|
|
3007
|
+
}>>>;
|
|
3008
|
+
readonly createdAt: Schema.String;
|
|
3009
|
+
readonly id: Schema.String;
|
|
3010
|
+
readonly input: Schema.Struct<{
|
|
3011
|
+
readonly text: Schema.String;
|
|
3012
|
+
readonly type: Schema.Literal<"text">;
|
|
3013
|
+
}>;
|
|
3014
|
+
readonly revision: Schema.String;
|
|
3015
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3016
|
+
readonly sessionId: Schema.String;
|
|
3017
|
+
readonly sessionRevision: Schema.String;
|
|
3018
|
+
readonly updatedAt: Schema.String;
|
|
3019
|
+
readonly responseText: Schema.String;
|
|
3020
|
+
readonly state: Schema.Literal<"completed">;
|
|
3021
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
3022
|
+
readonly cachedInputTokens: Schema.Int;
|
|
3023
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
3024
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
3025
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
3026
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
3027
|
+
readonly inputTokens: Schema.Int;
|
|
3028
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
3029
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
3030
|
+
readonly outputTokens: Schema.Int;
|
|
3031
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
3032
|
+
readonly totalTokens: Schema.Int;
|
|
3033
|
+
}>>;
|
|
3034
|
+
}>, Schema.Struct<{
|
|
3035
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3036
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3037
|
+
readonly byteLength: Schema.Int;
|
|
3038
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3039
|
+
readonly name: Schema.String;
|
|
3040
|
+
readonly sha256: Schema.String;
|
|
3041
|
+
}>>>;
|
|
3042
|
+
readonly createdAt: Schema.String;
|
|
3043
|
+
readonly id: Schema.String;
|
|
3044
|
+
readonly input: Schema.Struct<{
|
|
3045
|
+
readonly text: Schema.String;
|
|
3046
|
+
readonly type: Schema.Literal<"text">;
|
|
3047
|
+
}>;
|
|
3048
|
+
readonly revision: Schema.String;
|
|
3049
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3050
|
+
readonly sessionId: Schema.String;
|
|
3051
|
+
readonly sessionRevision: Schema.String;
|
|
3052
|
+
readonly updatedAt: Schema.String;
|
|
3053
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
3054
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
3055
|
+
readonly code: Schema.String;
|
|
3056
|
+
readonly message: Schema.String;
|
|
3057
|
+
}>>;
|
|
3058
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
3059
|
+
readonly state: Schema.Literal<"failed">;
|
|
3060
|
+
}>, Schema.Struct<{
|
|
3061
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3062
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3063
|
+
readonly byteLength: Schema.Int;
|
|
3064
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3065
|
+
readonly name: Schema.String;
|
|
3066
|
+
readonly sha256: Schema.String;
|
|
3067
|
+
}>>>;
|
|
3068
|
+
readonly createdAt: Schema.String;
|
|
3069
|
+
readonly id: Schema.String;
|
|
3070
|
+
readonly input: Schema.Struct<{
|
|
3071
|
+
readonly text: Schema.String;
|
|
3072
|
+
readonly type: Schema.Literal<"text">;
|
|
3073
|
+
}>;
|
|
3074
|
+
readonly revision: Schema.String;
|
|
3075
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3076
|
+
readonly sessionId: Schema.String;
|
|
3077
|
+
readonly sessionRevision: Schema.String;
|
|
3078
|
+
readonly updatedAt: Schema.String;
|
|
3079
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
3080
|
+
readonly code: Schema.String;
|
|
3081
|
+
readonly message: Schema.String;
|
|
3082
|
+
}>>;
|
|
3083
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
3084
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
3085
|
+
}>, Schema.Struct<{
|
|
3086
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3087
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3088
|
+
readonly byteLength: Schema.Int;
|
|
3089
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3090
|
+
readonly name: Schema.String;
|
|
3091
|
+
readonly sha256: Schema.String;
|
|
3092
|
+
}>>>;
|
|
3093
|
+
readonly createdAt: Schema.String;
|
|
3094
|
+
readonly id: Schema.String;
|
|
3095
|
+
readonly input: Schema.Struct<{
|
|
3096
|
+
readonly text: Schema.String;
|
|
3097
|
+
readonly type: Schema.Literal<"text">;
|
|
3098
|
+
}>;
|
|
3099
|
+
readonly revision: Schema.String;
|
|
3100
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3101
|
+
readonly sessionId: Schema.String;
|
|
3102
|
+
readonly sessionRevision: Schema.String;
|
|
3103
|
+
readonly updatedAt: Schema.String;
|
|
3104
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
3105
|
+
}>]>;
|
|
3106
|
+
}>, Schema.Struct<{
|
|
3107
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
3108
|
+
readonly method: Schema.Literal<"turn.steer.confirm">;
|
|
3109
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
3110
|
+
readonly receipt: Schema.Struct<{
|
|
3111
|
+
readonly actorId: Schema.String;
|
|
3112
|
+
readonly aggregateRevision: Schema.String;
|
|
3113
|
+
readonly commandId: Schema.String;
|
|
3114
|
+
readonly createdAt: Schema.String;
|
|
3115
|
+
readonly eventCursor: Schema.String;
|
|
3116
|
+
readonly method: Schema.String;
|
|
3117
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
3118
|
+
readonly receiptId: Schema.String;
|
|
3119
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3120
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
3121
|
+
readonly target: Schema.Struct<{
|
|
3122
|
+
readonly id: Schema.String;
|
|
3123
|
+
readonly type: Schema.String;
|
|
3124
|
+
}>;
|
|
3125
|
+
readonly updatedAt: Schema.String;
|
|
3126
|
+
}>;
|
|
3127
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
3128
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3129
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3130
|
+
readonly byteLength: Schema.Int;
|
|
3131
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3132
|
+
readonly name: Schema.String;
|
|
3133
|
+
readonly sha256: Schema.String;
|
|
3134
|
+
}>>>;
|
|
3135
|
+
readonly createdAt: Schema.String;
|
|
3136
|
+
readonly id: Schema.String;
|
|
3137
|
+
readonly input: Schema.Struct<{
|
|
3138
|
+
readonly text: Schema.String;
|
|
3139
|
+
readonly type: Schema.Literal<"text">;
|
|
3140
|
+
}>;
|
|
3141
|
+
readonly revision: Schema.String;
|
|
3142
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3143
|
+
readonly sessionId: Schema.String;
|
|
3144
|
+
readonly sessionRevision: Schema.String;
|
|
3145
|
+
readonly updatedAt: Schema.String;
|
|
3146
|
+
readonly state: Schema.Literal<"queued">;
|
|
3147
|
+
}>, Schema.Struct<{
|
|
3148
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3149
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3150
|
+
readonly byteLength: Schema.Int;
|
|
3151
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3152
|
+
readonly name: Schema.String;
|
|
3153
|
+
readonly sha256: Schema.String;
|
|
3154
|
+
}>>>;
|
|
3155
|
+
readonly createdAt: Schema.String;
|
|
3156
|
+
readonly id: Schema.String;
|
|
3157
|
+
readonly input: Schema.Struct<{
|
|
3158
|
+
readonly text: Schema.String;
|
|
3159
|
+
readonly type: Schema.Literal<"text">;
|
|
3160
|
+
}>;
|
|
3161
|
+
readonly revision: Schema.String;
|
|
3162
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3163
|
+
readonly sessionId: Schema.String;
|
|
3164
|
+
readonly sessionRevision: Schema.String;
|
|
3165
|
+
readonly updatedAt: Schema.String;
|
|
3166
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
3167
|
+
}>, Schema.Struct<{
|
|
3168
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3169
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3170
|
+
readonly byteLength: Schema.Int;
|
|
3171
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3172
|
+
readonly name: Schema.String;
|
|
3173
|
+
readonly sha256: Schema.String;
|
|
3174
|
+
}>>>;
|
|
3175
|
+
readonly createdAt: Schema.String;
|
|
3176
|
+
readonly id: Schema.String;
|
|
3177
|
+
readonly input: Schema.Struct<{
|
|
3178
|
+
readonly text: Schema.String;
|
|
3179
|
+
readonly type: Schema.Literal<"text">;
|
|
3180
|
+
}>;
|
|
3181
|
+
readonly revision: Schema.String;
|
|
3182
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3183
|
+
readonly sessionId: Schema.String;
|
|
3184
|
+
readonly sessionRevision: Schema.String;
|
|
3185
|
+
readonly updatedAt: Schema.String;
|
|
3186
|
+
readonly state: Schema.Literal<"running">;
|
|
3187
|
+
}>, Schema.Struct<{
|
|
3188
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3189
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3190
|
+
readonly byteLength: Schema.Int;
|
|
3191
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3192
|
+
readonly name: Schema.String;
|
|
3193
|
+
readonly sha256: Schema.String;
|
|
3194
|
+
}>>>;
|
|
3195
|
+
readonly createdAt: Schema.String;
|
|
3196
|
+
readonly id: Schema.String;
|
|
3197
|
+
readonly input: Schema.Struct<{
|
|
3198
|
+
readonly text: Schema.String;
|
|
3199
|
+
readonly type: Schema.Literal<"text">;
|
|
3200
|
+
}>;
|
|
3201
|
+
readonly revision: Schema.String;
|
|
3202
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3203
|
+
readonly sessionId: Schema.String;
|
|
3204
|
+
readonly sessionRevision: Schema.String;
|
|
3205
|
+
readonly updatedAt: Schema.String;
|
|
3206
|
+
readonly responseText: Schema.String;
|
|
3207
|
+
readonly state: Schema.Literal<"completed">;
|
|
3208
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
3209
|
+
readonly cachedInputTokens: Schema.Int;
|
|
3210
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
3211
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
3212
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
3213
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
3214
|
+
readonly inputTokens: Schema.Int;
|
|
3215
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
3216
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
3217
|
+
readonly outputTokens: Schema.Int;
|
|
3218
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
3219
|
+
readonly totalTokens: Schema.Int;
|
|
3220
|
+
}>>;
|
|
3221
|
+
}>, Schema.Struct<{
|
|
3222
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3223
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3224
|
+
readonly byteLength: Schema.Int;
|
|
3225
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3226
|
+
readonly name: Schema.String;
|
|
3227
|
+
readonly sha256: Schema.String;
|
|
3228
|
+
}>>>;
|
|
3229
|
+
readonly createdAt: Schema.String;
|
|
3230
|
+
readonly id: Schema.String;
|
|
3231
|
+
readonly input: Schema.Struct<{
|
|
3232
|
+
readonly text: Schema.String;
|
|
3233
|
+
readonly type: Schema.Literal<"text">;
|
|
3234
|
+
}>;
|
|
3235
|
+
readonly revision: Schema.String;
|
|
3236
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3237
|
+
readonly sessionId: Schema.String;
|
|
3238
|
+
readonly sessionRevision: Schema.String;
|
|
3239
|
+
readonly updatedAt: Schema.String;
|
|
3240
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
3241
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
3242
|
+
readonly code: Schema.String;
|
|
3243
|
+
readonly message: Schema.String;
|
|
3244
|
+
}>>;
|
|
3245
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
3246
|
+
readonly state: Schema.Literal<"failed">;
|
|
3247
|
+
}>, Schema.Struct<{
|
|
3248
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3249
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3250
|
+
readonly byteLength: Schema.Int;
|
|
3251
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3252
|
+
readonly name: Schema.String;
|
|
3253
|
+
readonly sha256: Schema.String;
|
|
3254
|
+
}>>>;
|
|
3255
|
+
readonly createdAt: Schema.String;
|
|
3256
|
+
readonly id: Schema.String;
|
|
3257
|
+
readonly input: Schema.Struct<{
|
|
3258
|
+
readonly text: Schema.String;
|
|
3259
|
+
readonly type: Schema.Literal<"text">;
|
|
3260
|
+
}>;
|
|
3261
|
+
readonly revision: Schema.String;
|
|
3262
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3263
|
+
readonly sessionId: Schema.String;
|
|
3264
|
+
readonly sessionRevision: Schema.String;
|
|
3265
|
+
readonly updatedAt: Schema.String;
|
|
3266
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
3267
|
+
readonly code: Schema.String;
|
|
3268
|
+
readonly message: Schema.String;
|
|
3269
|
+
}>>;
|
|
3270
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
3271
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
3272
|
+
}>, Schema.Struct<{
|
|
3273
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3274
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3275
|
+
readonly byteLength: Schema.Int;
|
|
3276
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3277
|
+
readonly name: Schema.String;
|
|
3278
|
+
readonly sha256: Schema.String;
|
|
3279
|
+
}>>>;
|
|
3280
|
+
readonly createdAt: Schema.String;
|
|
3281
|
+
readonly id: Schema.String;
|
|
3282
|
+
readonly input: Schema.Struct<{
|
|
3283
|
+
readonly text: Schema.String;
|
|
3284
|
+
readonly type: Schema.Literal<"text">;
|
|
3285
|
+
}>;
|
|
3286
|
+
readonly revision: Schema.String;
|
|
3287
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3288
|
+
readonly sessionId: Schema.String;
|
|
3289
|
+
readonly sessionRevision: Schema.String;
|
|
3290
|
+
readonly updatedAt: Schema.String;
|
|
3291
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
3292
|
+
}>]>;
|
|
3293
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
3294
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3295
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3296
|
+
readonly byteLength: Schema.Int;
|
|
3297
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3298
|
+
readonly name: Schema.String;
|
|
3299
|
+
readonly sha256: Schema.String;
|
|
3300
|
+
}>>>;
|
|
3301
|
+
readonly createdAt: Schema.String;
|
|
3302
|
+
readonly id: Schema.String;
|
|
3303
|
+
readonly input: Schema.Struct<{
|
|
3304
|
+
readonly text: Schema.String;
|
|
3305
|
+
readonly type: Schema.Literal<"text">;
|
|
3306
|
+
}>;
|
|
3307
|
+
readonly revision: Schema.String;
|
|
3308
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3309
|
+
readonly sessionId: Schema.String;
|
|
3310
|
+
readonly sessionRevision: Schema.String;
|
|
3311
|
+
readonly updatedAt: Schema.String;
|
|
3312
|
+
readonly state: Schema.Literal<"queued">;
|
|
3313
|
+
}>, Schema.Struct<{
|
|
3314
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3315
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3316
|
+
readonly byteLength: Schema.Int;
|
|
3317
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3318
|
+
readonly name: Schema.String;
|
|
3319
|
+
readonly sha256: Schema.String;
|
|
3320
|
+
}>>>;
|
|
3321
|
+
readonly createdAt: Schema.String;
|
|
3322
|
+
readonly id: Schema.String;
|
|
3323
|
+
readonly input: Schema.Struct<{
|
|
3324
|
+
readonly text: Schema.String;
|
|
3325
|
+
readonly type: Schema.Literal<"text">;
|
|
3326
|
+
}>;
|
|
3327
|
+
readonly revision: Schema.String;
|
|
3328
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3329
|
+
readonly sessionId: Schema.String;
|
|
3330
|
+
readonly sessionRevision: Schema.String;
|
|
3331
|
+
readonly updatedAt: Schema.String;
|
|
3332
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
3333
|
+
}>, Schema.Struct<{
|
|
3334
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3335
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3336
|
+
readonly byteLength: Schema.Int;
|
|
3337
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3338
|
+
readonly name: Schema.String;
|
|
3339
|
+
readonly sha256: Schema.String;
|
|
3340
|
+
}>>>;
|
|
3341
|
+
readonly createdAt: Schema.String;
|
|
3342
|
+
readonly id: Schema.String;
|
|
3343
|
+
readonly input: Schema.Struct<{
|
|
3344
|
+
readonly text: Schema.String;
|
|
3345
|
+
readonly type: Schema.Literal<"text">;
|
|
3346
|
+
}>;
|
|
3347
|
+
readonly revision: Schema.String;
|
|
3348
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3349
|
+
readonly sessionId: Schema.String;
|
|
3350
|
+
readonly sessionRevision: Schema.String;
|
|
3351
|
+
readonly updatedAt: Schema.String;
|
|
3352
|
+
readonly state: Schema.Literal<"running">;
|
|
3353
|
+
}>, Schema.Struct<{
|
|
3354
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3355
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3356
|
+
readonly byteLength: Schema.Int;
|
|
3357
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3358
|
+
readonly name: Schema.String;
|
|
3359
|
+
readonly sha256: Schema.String;
|
|
3360
|
+
}>>>;
|
|
3361
|
+
readonly createdAt: Schema.String;
|
|
3362
|
+
readonly id: Schema.String;
|
|
3363
|
+
readonly input: Schema.Struct<{
|
|
3364
|
+
readonly text: Schema.String;
|
|
3365
|
+
readonly type: Schema.Literal<"text">;
|
|
3366
|
+
}>;
|
|
3367
|
+
readonly revision: Schema.String;
|
|
3368
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3369
|
+
readonly sessionId: Schema.String;
|
|
3370
|
+
readonly sessionRevision: Schema.String;
|
|
3371
|
+
readonly updatedAt: Schema.String;
|
|
3372
|
+
readonly responseText: Schema.String;
|
|
3373
|
+
readonly state: Schema.Literal<"completed">;
|
|
3374
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
3375
|
+
readonly cachedInputTokens: Schema.Int;
|
|
3376
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
3377
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
3378
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
3379
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
3380
|
+
readonly inputTokens: Schema.Int;
|
|
3381
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
3382
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
3383
|
+
readonly outputTokens: Schema.Int;
|
|
3384
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
3385
|
+
readonly totalTokens: Schema.Int;
|
|
3386
|
+
}>>;
|
|
3387
|
+
}>, Schema.Struct<{
|
|
3388
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3389
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3390
|
+
readonly byteLength: Schema.Int;
|
|
3391
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3392
|
+
readonly name: Schema.String;
|
|
3393
|
+
readonly sha256: Schema.String;
|
|
3394
|
+
}>>>;
|
|
3395
|
+
readonly createdAt: Schema.String;
|
|
3396
|
+
readonly id: Schema.String;
|
|
3397
|
+
readonly input: Schema.Struct<{
|
|
3398
|
+
readonly text: Schema.String;
|
|
3399
|
+
readonly type: Schema.Literal<"text">;
|
|
3400
|
+
}>;
|
|
3401
|
+
readonly revision: Schema.String;
|
|
3402
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3403
|
+
readonly sessionId: Schema.String;
|
|
3404
|
+
readonly sessionRevision: Schema.String;
|
|
3405
|
+
readonly updatedAt: Schema.String;
|
|
3406
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
3407
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
3408
|
+
readonly code: Schema.String;
|
|
3409
|
+
readonly message: Schema.String;
|
|
3410
|
+
}>>;
|
|
3411
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
3412
|
+
readonly state: Schema.Literal<"failed">;
|
|
3413
|
+
}>, Schema.Struct<{
|
|
3414
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3415
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3416
|
+
readonly byteLength: Schema.Int;
|
|
3417
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3418
|
+
readonly name: Schema.String;
|
|
3419
|
+
readonly sha256: Schema.String;
|
|
3420
|
+
}>>>;
|
|
3421
|
+
readonly createdAt: Schema.String;
|
|
3422
|
+
readonly id: Schema.String;
|
|
3423
|
+
readonly input: Schema.Struct<{
|
|
3424
|
+
readonly text: Schema.String;
|
|
3425
|
+
readonly type: Schema.Literal<"text">;
|
|
3426
|
+
}>;
|
|
3427
|
+
readonly revision: Schema.String;
|
|
3428
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3429
|
+
readonly sessionId: Schema.String;
|
|
3430
|
+
readonly sessionRevision: Schema.String;
|
|
3431
|
+
readonly updatedAt: Schema.String;
|
|
3432
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
3433
|
+
readonly code: Schema.String;
|
|
3434
|
+
readonly message: Schema.String;
|
|
3435
|
+
}>>;
|
|
3436
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
3437
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
3438
|
+
}>, Schema.Struct<{
|
|
3439
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
3440
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3441
|
+
readonly byteLength: Schema.Int;
|
|
3442
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
3443
|
+
readonly name: Schema.String;
|
|
3444
|
+
readonly sha256: Schema.String;
|
|
3445
|
+
}>>>;
|
|
3446
|
+
readonly createdAt: Schema.String;
|
|
3447
|
+
readonly id: Schema.String;
|
|
3448
|
+
readonly input: Schema.Struct<{
|
|
3449
|
+
readonly text: Schema.String;
|
|
3450
|
+
readonly type: Schema.Literal<"text">;
|
|
3451
|
+
}>;
|
|
3452
|
+
readonly revision: Schema.String;
|
|
3453
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
3454
|
+
readonly sessionId: Schema.String;
|
|
3455
|
+
readonly sessionRevision: Schema.String;
|
|
3456
|
+
readonly updatedAt: Schema.String;
|
|
3457
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
3458
|
+
}>]>;
|
|
3459
|
+
}>, Schema.Struct<{
|
|
3460
|
+
readonly commandId: Schema.String;
|
|
3461
|
+
readonly expectedRevision: Schema.String;
|
|
3462
|
+
readonly input: Schema.Struct<{
|
|
3463
|
+
readonly text: Schema.String;
|
|
3464
|
+
readonly type: Schema.Literal<"text">;
|
|
3465
|
+
}>;
|
|
3466
|
+
readonly inputDigest: Schema.String;
|
|
3467
|
+
readonly proof: Schema.String;
|
|
3468
|
+
readonly turnId: Schema.String;
|
|
3469
|
+
readonly validUntil: Schema.String;
|
|
3470
|
+
readonly method: Schema.Literal<"turn.steer.preview">;
|
|
3471
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
1283
3472
|
}>, Schema.Struct<{
|
|
1284
3473
|
readonly method: Schema.Literal<"turn.wait">;
|
|
1285
3474
|
readonly satisfied: Schema.Boolean;
|