@maiaos/protocol 0.1.0-canary.7 → 0.1.0-canary.70
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 +42 -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 +154 -2
- package/dist/connection/contract.d.ts.map +1 -1
- package/dist/connection/contract.js +7 -0
- package/dist/connection/contract.js.map +1 -1
- package/dist/connection/effect-schema.d.ts +149 -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 +259 -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 +7 -0
- package/dist/connection/gateway-effect-schema.d.ts.map +1 -1
- package/dist/connection/gateway-effect-schema.js +7 -0
- 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 +11 -4
- package/dist/connection/request-effect-schema.d.ts.map +1 -1
- package/dist/connection/request-effect-schema.js +19 -12
- package/dist/connection/request-effect-schema.js.map +1 -1
- package/dist/connection/result-effect-schema.d.ts +34 -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 +8 -0
- package/dist/connection/system-effect-schema.d.ts.map +1 -1
- package/dist/connection/system-effect-schema.js +4 -2
- 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 +175 -4
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +140 -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 +323 -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 +288 -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 +26 -0
- package/dist/executor/policy.d.ts.map +1 -0
- package/dist/executor/policy.js +45 -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 +28 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -15
- 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 +85 -12
- package/dist/integration-authorization/contract.d.ts.map +1 -1
- package/dist/integration-authorization/contract.js +19 -1
- package/dist/integration-authorization/contract.js.map +1 -1
- package/dist/integration-authorization/effect-schema.d.ts +3678 -1480
- package/dist/integration-authorization/effect-schema.d.ts.map +1 -1
- package/dist/integration-authorization/effect-schema.js +81 -6
- package/dist/integration-authorization/effect-schema.js.map +1 -1
- package/dist/integration-authorization/feature.d.ts +605 -0
- package/dist/integration-authorization/feature.d.ts.map +1 -0
- package/dist/integration-authorization/feature.js +571 -0
- package/dist/integration-authorization/feature.js.map +1 -0
- package/dist/integration-authorization/index.d.ts +3 -0
- package/dist/integration-authorization/index.d.ts.map +1 -1
- package/dist/integration-authorization/index.js +3 -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 +3826 -1262
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +122 -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 -214
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +141 -214
- 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 +60 -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 +41 -2
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +37 -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 +37 -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 +133 -0
- package/dist/reach/effect-schema.d.ts.map +1 -0
- package/dist/reach/effect-schema.js +68 -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 -46
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/contract.js +35 -4
- package/dist/session/contract.js.map +1 -1
- package/dist/session/effect-schema.d.ts +2954 -176
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +593 -47
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +801 -21
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +735 -3
- package/dist/session/feature.js.map +1 -1
- package/dist/session/index.d.ts +5 -3
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +5 -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 +158 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +186 -2
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +127 -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 +55 -1
- package/dist/session/worktree-effect-schema.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.js +79 -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 +35 -4
- package/dist/session-guard/contract.d.ts.map +1 -1
- package/dist/session-guard/contract.js +34 -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 +2 -1
- package/dist/session-stream/contract.d.ts.map +1 -1
- package/dist/session-stream/effect-schema.d.ts +9 -8
- package/dist/session-stream/effect-schema.d.ts.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 +633 -4
- package/dist/turn/contract.d.ts.map +1 -1
- package/dist/turn/contract.js +18 -4
- package/dist/turn/contract.js.map +1 -1
- package/dist/turn/effect-schema.d.ts +1507 -161
- package/dist/turn/effect-schema.d.ts.map +1 -1
- package/dist/turn/effect-schema.js +123 -10
- 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<{
|
|
@@ -134,6 +210,12 @@ export declare const turnInterruptParametersEffectSchema: Schema.Struct<{
|
|
|
134
210
|
readonly turnId: Schema.String;
|
|
135
211
|
}>;
|
|
136
212
|
export declare const turnSendParametersEffectSchema: Schema.Struct<{
|
|
213
|
+
/** Files for the turn, within the limits `turn.attachment.policy` reports. */
|
|
214
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
215
|
+
readonly data: Schema.String;
|
|
216
|
+
readonly mediaType: Schema.String;
|
|
217
|
+
readonly name: Schema.String;
|
|
218
|
+
}>>>;
|
|
137
219
|
readonly commandId: Schema.String;
|
|
138
220
|
readonly expectedRevision: Schema.String;
|
|
139
221
|
readonly input: Schema.Struct<{
|
|
@@ -145,6 +227,31 @@ export declare const turnSendParametersEffectSchema: Schema.Struct<{
|
|
|
145
227
|
export declare const turnShowParametersEffectSchema: Schema.Struct<{
|
|
146
228
|
readonly turnId: Schema.String;
|
|
147
229
|
}>;
|
|
230
|
+
export declare const turnAttachmentPolicyParametersEffectSchema: Schema.Struct<{
|
|
231
|
+
readonly sessionId: Schema.String;
|
|
232
|
+
}>;
|
|
233
|
+
/** A steer names the turn and Session revision, as an interrupt does. */
|
|
234
|
+
export declare const turnSteerPreviewParametersEffectSchema: Schema.Struct<{
|
|
235
|
+
readonly commandId: Schema.String;
|
|
236
|
+
readonly expectedRevision: Schema.String;
|
|
237
|
+
readonly input: Schema.Struct<{
|
|
238
|
+
readonly text: Schema.String;
|
|
239
|
+
readonly type: Schema.Literal<"text">;
|
|
240
|
+
}>;
|
|
241
|
+
readonly turnId: Schema.String;
|
|
242
|
+
}>;
|
|
243
|
+
export declare const turnSteerConfirmParametersEffectSchema: Schema.Struct<{
|
|
244
|
+
commandId: Schema.String;
|
|
245
|
+
expectedRevision: Schema.String;
|
|
246
|
+
input: Schema.Struct<{
|
|
247
|
+
readonly text: Schema.String;
|
|
248
|
+
readonly type: Schema.Literal<"text">;
|
|
249
|
+
}>;
|
|
250
|
+
inputDigest: Schema.String;
|
|
251
|
+
proof: Schema.String;
|
|
252
|
+
turnId: Schema.String;
|
|
253
|
+
validUntil: Schema.String;
|
|
254
|
+
}>;
|
|
148
255
|
export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
149
256
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
150
257
|
readonly method: Schema.Literal<"turn.interrupt">;
|
|
@@ -155,6 +262,7 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
155
262
|
readonly createdAt: Schema.String;
|
|
156
263
|
readonly eventCursor: Schema.String;
|
|
157
264
|
readonly method: Schema.String;
|
|
265
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
158
266
|
readonly receiptId: Schema.String;
|
|
159
267
|
readonly schemaVersion: Schema.Literal<1>;
|
|
160
268
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -165,6 +273,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
165
273
|
readonly updatedAt: Schema.String;
|
|
166
274
|
}>;
|
|
167
275
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
276
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
277
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
278
|
+
readonly byteLength: Schema.Int;
|
|
279
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
280
|
+
readonly name: Schema.String;
|
|
281
|
+
readonly sha256: Schema.String;
|
|
282
|
+
}>>>;
|
|
168
283
|
readonly createdAt: Schema.String;
|
|
169
284
|
readonly id: Schema.String;
|
|
170
285
|
readonly input: Schema.Struct<{
|
|
@@ -178,6 +293,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
178
293
|
readonly updatedAt: Schema.String;
|
|
179
294
|
readonly state: Schema.Literal<"queued">;
|
|
180
295
|
}>, Schema.Struct<{
|
|
296
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
297
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
298
|
+
readonly byteLength: Schema.Int;
|
|
299
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
300
|
+
readonly name: Schema.String;
|
|
301
|
+
readonly sha256: Schema.String;
|
|
302
|
+
}>>>;
|
|
181
303
|
readonly createdAt: Schema.String;
|
|
182
304
|
readonly id: Schema.String;
|
|
183
305
|
readonly input: Schema.Struct<{
|
|
@@ -191,6 +313,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
191
313
|
readonly updatedAt: Schema.String;
|
|
192
314
|
readonly state: Schema.Literal<"dispatching">;
|
|
193
315
|
}>, Schema.Struct<{
|
|
316
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
317
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
318
|
+
readonly byteLength: Schema.Int;
|
|
319
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
320
|
+
readonly name: Schema.String;
|
|
321
|
+
readonly sha256: Schema.String;
|
|
322
|
+
}>>>;
|
|
194
323
|
readonly createdAt: Schema.String;
|
|
195
324
|
readonly id: Schema.String;
|
|
196
325
|
readonly input: Schema.Struct<{
|
|
@@ -204,6 +333,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
204
333
|
readonly updatedAt: Schema.String;
|
|
205
334
|
readonly state: Schema.Literal<"running">;
|
|
206
335
|
}>, Schema.Struct<{
|
|
336
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
337
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
338
|
+
readonly byteLength: Schema.Int;
|
|
339
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
340
|
+
readonly name: Schema.String;
|
|
341
|
+
readonly sha256: Schema.String;
|
|
342
|
+
}>>>;
|
|
207
343
|
readonly createdAt: Schema.String;
|
|
208
344
|
readonly id: Schema.String;
|
|
209
345
|
readonly input: Schema.Struct<{
|
|
@@ -219,6 +355,10 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
219
355
|
readonly state: Schema.Literal<"completed">;
|
|
220
356
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
221
357
|
readonly cachedInputTokens: Schema.Int;
|
|
358
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
359
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
360
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
361
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
222
362
|
readonly inputTokens: Schema.Int;
|
|
223
363
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
224
364
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -227,6 +367,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
227
367
|
readonly totalTokens: Schema.Int;
|
|
228
368
|
}>>;
|
|
229
369
|
}>, Schema.Struct<{
|
|
370
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
371
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
372
|
+
readonly byteLength: Schema.Int;
|
|
373
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
374
|
+
readonly name: Schema.String;
|
|
375
|
+
readonly sha256: Schema.String;
|
|
376
|
+
}>>>;
|
|
230
377
|
readonly createdAt: Schema.String;
|
|
231
378
|
readonly id: Schema.String;
|
|
232
379
|
readonly input: Schema.Struct<{
|
|
@@ -246,6 +393,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
246
393
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
247
394
|
readonly state: Schema.Literal<"failed">;
|
|
248
395
|
}>, Schema.Struct<{
|
|
396
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
397
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
398
|
+
readonly byteLength: Schema.Int;
|
|
399
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
400
|
+
readonly name: Schema.String;
|
|
401
|
+
readonly sha256: Schema.String;
|
|
402
|
+
}>>>;
|
|
249
403
|
readonly createdAt: Schema.String;
|
|
250
404
|
readonly id: Schema.String;
|
|
251
405
|
readonly input: Schema.Struct<{
|
|
@@ -264,6 +418,13 @@ export declare const turnInterruptResultEffectSchema: Schema.Struct<{
|
|
|
264
418
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
265
419
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
266
420
|
}>, Schema.Struct<{
|
|
421
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
422
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
423
|
+
readonly byteLength: Schema.Int;
|
|
424
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
425
|
+
readonly name: Schema.String;
|
|
426
|
+
readonly sha256: Schema.String;
|
|
427
|
+
}>>>;
|
|
267
428
|
readonly createdAt: Schema.String;
|
|
268
429
|
readonly id: Schema.String;
|
|
269
430
|
readonly input: Schema.Struct<{
|
|
@@ -288,6 +449,7 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
288
449
|
readonly createdAt: Schema.String;
|
|
289
450
|
readonly eventCursor: Schema.String;
|
|
290
451
|
readonly method: Schema.String;
|
|
452
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
291
453
|
readonly receiptId: Schema.String;
|
|
292
454
|
readonly schemaVersion: Schema.Literal<1>;
|
|
293
455
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -298,6 +460,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
298
460
|
readonly updatedAt: Schema.String;
|
|
299
461
|
}>;
|
|
300
462
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
463
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
464
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
465
|
+
readonly byteLength: Schema.Int;
|
|
466
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
467
|
+
readonly name: Schema.String;
|
|
468
|
+
readonly sha256: Schema.String;
|
|
469
|
+
}>>>;
|
|
301
470
|
readonly createdAt: Schema.String;
|
|
302
471
|
readonly id: Schema.String;
|
|
303
472
|
readonly input: Schema.Struct<{
|
|
@@ -311,6 +480,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
311
480
|
readonly updatedAt: Schema.String;
|
|
312
481
|
readonly state: Schema.Literal<"queued">;
|
|
313
482
|
}>, Schema.Struct<{
|
|
483
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
484
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
485
|
+
readonly byteLength: Schema.Int;
|
|
486
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
487
|
+
readonly name: Schema.String;
|
|
488
|
+
readonly sha256: Schema.String;
|
|
489
|
+
}>>>;
|
|
314
490
|
readonly createdAt: Schema.String;
|
|
315
491
|
readonly id: Schema.String;
|
|
316
492
|
readonly input: Schema.Struct<{
|
|
@@ -324,6 +500,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
324
500
|
readonly updatedAt: Schema.String;
|
|
325
501
|
readonly state: Schema.Literal<"dispatching">;
|
|
326
502
|
}>, Schema.Struct<{
|
|
503
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
504
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
505
|
+
readonly byteLength: Schema.Int;
|
|
506
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
507
|
+
readonly name: Schema.String;
|
|
508
|
+
readonly sha256: Schema.String;
|
|
509
|
+
}>>>;
|
|
327
510
|
readonly createdAt: Schema.String;
|
|
328
511
|
readonly id: Schema.String;
|
|
329
512
|
readonly input: Schema.Struct<{
|
|
@@ -337,6 +520,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
337
520
|
readonly updatedAt: Schema.String;
|
|
338
521
|
readonly state: Schema.Literal<"running">;
|
|
339
522
|
}>, Schema.Struct<{
|
|
523
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
524
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
525
|
+
readonly byteLength: Schema.Int;
|
|
526
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
527
|
+
readonly name: Schema.String;
|
|
528
|
+
readonly sha256: Schema.String;
|
|
529
|
+
}>>>;
|
|
340
530
|
readonly createdAt: Schema.String;
|
|
341
531
|
readonly id: Schema.String;
|
|
342
532
|
readonly input: Schema.Struct<{
|
|
@@ -352,6 +542,10 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
352
542
|
readonly state: Schema.Literal<"completed">;
|
|
353
543
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
354
544
|
readonly cachedInputTokens: Schema.Int;
|
|
545
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
546
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
547
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
548
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
355
549
|
readonly inputTokens: Schema.Int;
|
|
356
550
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
357
551
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -360,6 +554,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
360
554
|
readonly totalTokens: Schema.Int;
|
|
361
555
|
}>>;
|
|
362
556
|
}>, Schema.Struct<{
|
|
557
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
558
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
559
|
+
readonly byteLength: Schema.Int;
|
|
560
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
561
|
+
readonly name: Schema.String;
|
|
562
|
+
readonly sha256: Schema.String;
|
|
563
|
+
}>>>;
|
|
363
564
|
readonly createdAt: Schema.String;
|
|
364
565
|
readonly id: Schema.String;
|
|
365
566
|
readonly input: Schema.Struct<{
|
|
@@ -379,6 +580,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
379
580
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
380
581
|
readonly state: Schema.Literal<"failed">;
|
|
381
582
|
}>, Schema.Struct<{
|
|
583
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
584
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
585
|
+
readonly byteLength: Schema.Int;
|
|
586
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
587
|
+
readonly name: Schema.String;
|
|
588
|
+
readonly sha256: Schema.String;
|
|
589
|
+
}>>>;
|
|
382
590
|
readonly createdAt: Schema.String;
|
|
383
591
|
readonly id: Schema.String;
|
|
384
592
|
readonly input: Schema.Struct<{
|
|
@@ -397,6 +605,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
397
605
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
398
606
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
399
607
|
}>, Schema.Struct<{
|
|
608
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
609
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
610
|
+
readonly byteLength: Schema.Int;
|
|
611
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
612
|
+
readonly name: Schema.String;
|
|
613
|
+
readonly sha256: Schema.String;
|
|
614
|
+
}>>>;
|
|
400
615
|
readonly createdAt: Schema.String;
|
|
401
616
|
readonly id: Schema.String;
|
|
402
617
|
readonly input: Schema.Struct<{
|
|
@@ -414,6 +629,13 @@ export declare const turnSendResultEffectSchema: Schema.Struct<{
|
|
|
414
629
|
export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
415
630
|
readonly method: Schema.Literal<"turn.show">;
|
|
416
631
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
632
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
633
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
634
|
+
readonly byteLength: Schema.Int;
|
|
635
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
636
|
+
readonly name: Schema.String;
|
|
637
|
+
readonly sha256: Schema.String;
|
|
638
|
+
}>>>;
|
|
417
639
|
readonly createdAt: Schema.String;
|
|
418
640
|
readonly id: Schema.String;
|
|
419
641
|
readonly input: Schema.Struct<{
|
|
@@ -427,6 +649,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
427
649
|
readonly updatedAt: Schema.String;
|
|
428
650
|
readonly state: Schema.Literal<"queued">;
|
|
429
651
|
}>, Schema.Struct<{
|
|
652
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
653
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
654
|
+
readonly byteLength: Schema.Int;
|
|
655
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
656
|
+
readonly name: Schema.String;
|
|
657
|
+
readonly sha256: Schema.String;
|
|
658
|
+
}>>>;
|
|
430
659
|
readonly createdAt: Schema.String;
|
|
431
660
|
readonly id: Schema.String;
|
|
432
661
|
readonly input: Schema.Struct<{
|
|
@@ -440,6 +669,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
440
669
|
readonly updatedAt: Schema.String;
|
|
441
670
|
readonly state: Schema.Literal<"dispatching">;
|
|
442
671
|
}>, Schema.Struct<{
|
|
672
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
673
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
674
|
+
readonly byteLength: Schema.Int;
|
|
675
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
676
|
+
readonly name: Schema.String;
|
|
677
|
+
readonly sha256: Schema.String;
|
|
678
|
+
}>>>;
|
|
443
679
|
readonly createdAt: Schema.String;
|
|
444
680
|
readonly id: Schema.String;
|
|
445
681
|
readonly input: Schema.Struct<{
|
|
@@ -453,6 +689,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
453
689
|
readonly updatedAt: Schema.String;
|
|
454
690
|
readonly state: Schema.Literal<"running">;
|
|
455
691
|
}>, Schema.Struct<{
|
|
692
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
693
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
694
|
+
readonly byteLength: Schema.Int;
|
|
695
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
696
|
+
readonly name: Schema.String;
|
|
697
|
+
readonly sha256: Schema.String;
|
|
698
|
+
}>>>;
|
|
456
699
|
readonly createdAt: Schema.String;
|
|
457
700
|
readonly id: Schema.String;
|
|
458
701
|
readonly input: Schema.Struct<{
|
|
@@ -468,6 +711,10 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
468
711
|
readonly state: Schema.Literal<"completed">;
|
|
469
712
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
470
713
|
readonly cachedInputTokens: Schema.Int;
|
|
714
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
715
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
716
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
717
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
471
718
|
readonly inputTokens: Schema.Int;
|
|
472
719
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
473
720
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -476,6 +723,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
476
723
|
readonly totalTokens: Schema.Int;
|
|
477
724
|
}>>;
|
|
478
725
|
}>, Schema.Struct<{
|
|
726
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
727
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
728
|
+
readonly byteLength: Schema.Int;
|
|
729
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
730
|
+
readonly name: Schema.String;
|
|
731
|
+
readonly sha256: Schema.String;
|
|
732
|
+
}>>>;
|
|
479
733
|
readonly createdAt: Schema.String;
|
|
480
734
|
readonly id: Schema.String;
|
|
481
735
|
readonly input: Schema.Struct<{
|
|
@@ -495,6 +749,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
495
749
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
496
750
|
readonly state: Schema.Literal<"failed">;
|
|
497
751
|
}>, Schema.Struct<{
|
|
752
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
753
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
754
|
+
readonly byteLength: Schema.Int;
|
|
755
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
756
|
+
readonly name: Schema.String;
|
|
757
|
+
readonly sha256: Schema.String;
|
|
758
|
+
}>>>;
|
|
498
759
|
readonly createdAt: Schema.String;
|
|
499
760
|
readonly id: Schema.String;
|
|
500
761
|
readonly input: Schema.Struct<{
|
|
@@ -513,6 +774,13 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
513
774
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
514
775
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
515
776
|
}>, Schema.Struct<{
|
|
777
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
778
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
779
|
+
readonly byteLength: Schema.Int;
|
|
780
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
781
|
+
readonly name: Schema.String;
|
|
782
|
+
readonly sha256: Schema.String;
|
|
783
|
+
}>>>;
|
|
516
784
|
readonly createdAt: Schema.String;
|
|
517
785
|
readonly id: Schema.String;
|
|
518
786
|
readonly input: Schema.Struct<{
|
|
@@ -527,36 +795,38 @@ export declare const turnShowResultEffectSchema: Schema.Struct<{
|
|
|
527
795
|
readonly state: Schema.Literal<"interrupted">;
|
|
528
796
|
}>]>;
|
|
529
797
|
}>;
|
|
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
|
-
}>>;
|
|
798
|
+
/**
|
|
799
|
+
* What the Session's next send may carry. `accepted` is false when its
|
|
800
|
+
* executor declares no `attachments`, whatever the limits are; the limits are
|
|
801
|
+
* the Node's two settings, read before a client sends any file.
|
|
802
|
+
*/
|
|
803
|
+
export declare const turnAttachmentPolicyResultEffectSchema: Schema.Struct<{
|
|
804
|
+
readonly accepted: Schema.Boolean;
|
|
805
|
+
readonly maxBytes: Schema.Int;
|
|
806
|
+
readonly mediaTypes: Schema.$Array<Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>>;
|
|
807
|
+
readonly method: Schema.Literal<"turn.attachment.policy">;
|
|
808
|
+
readonly sessionId: Schema.String;
|
|
550
809
|
}>;
|
|
551
|
-
|
|
810
|
+
/** What a steer will do, and the path it takes; the confirmation sends nothing before it. */
|
|
811
|
+
export declare const turnSteerPreviewResultEffectSchema: Schema.Struct<{
|
|
552
812
|
readonly commandId: Schema.String;
|
|
553
|
-
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
554
813
|
readonly expectedRevision: Schema.String;
|
|
814
|
+
readonly input: Schema.Struct<{
|
|
815
|
+
readonly text: Schema.String;
|
|
816
|
+
readonly type: Schema.Literal<"text">;
|
|
817
|
+
}>;
|
|
818
|
+
readonly inputDigest: Schema.String;
|
|
819
|
+
readonly proof: Schema.String;
|
|
555
820
|
readonly turnId: Schema.String;
|
|
821
|
+
readonly validUntil: Schema.String;
|
|
822
|
+
readonly method: Schema.Literal<"turn.steer.preview">;
|
|
823
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
556
824
|
}>;
|
|
557
|
-
|
|
825
|
+
/** `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. */
|
|
826
|
+
export declare const turnSteerConfirmResultEffectSchema: Schema.Struct<{
|
|
558
827
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
559
|
-
readonly method: Schema.Literal<"turn.
|
|
828
|
+
readonly method: Schema.Literal<"turn.steer.confirm">;
|
|
829
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
560
830
|
readonly receipt: Schema.Struct<{
|
|
561
831
|
readonly actorId: Schema.String;
|
|
562
832
|
readonly aggregateRevision: Schema.String;
|
|
@@ -564,6 +834,7 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
564
834
|
readonly createdAt: Schema.String;
|
|
565
835
|
readonly eventCursor: Schema.String;
|
|
566
836
|
readonly method: Schema.String;
|
|
837
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
567
838
|
readonly receiptId: Schema.String;
|
|
568
839
|
readonly schemaVersion: Schema.Literal<1>;
|
|
569
840
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -573,7 +844,14 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
573
844
|
}>;
|
|
574
845
|
readonly updatedAt: Schema.String;
|
|
575
846
|
}>;
|
|
576
|
-
readonly
|
|
847
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
848
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
849
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
850
|
+
readonly byteLength: Schema.Int;
|
|
851
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
852
|
+
readonly name: Schema.String;
|
|
853
|
+
readonly sha256: Schema.String;
|
|
854
|
+
}>>>;
|
|
577
855
|
readonly createdAt: Schema.String;
|
|
578
856
|
readonly id: Schema.String;
|
|
579
857
|
readonly input: Schema.Struct<{
|
|
@@ -587,6 +865,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
587
865
|
readonly updatedAt: Schema.String;
|
|
588
866
|
readonly state: Schema.Literal<"queued">;
|
|
589
867
|
}>, Schema.Struct<{
|
|
868
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
869
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
870
|
+
readonly byteLength: Schema.Int;
|
|
871
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
872
|
+
readonly name: Schema.String;
|
|
873
|
+
readonly sha256: Schema.String;
|
|
874
|
+
}>>>;
|
|
590
875
|
readonly createdAt: Schema.String;
|
|
591
876
|
readonly id: Schema.String;
|
|
592
877
|
readonly input: Schema.Struct<{
|
|
@@ -600,6 +885,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
600
885
|
readonly updatedAt: Schema.String;
|
|
601
886
|
readonly state: Schema.Literal<"dispatching">;
|
|
602
887
|
}>, Schema.Struct<{
|
|
888
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
889
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
890
|
+
readonly byteLength: Schema.Int;
|
|
891
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
892
|
+
readonly name: Schema.String;
|
|
893
|
+
readonly sha256: Schema.String;
|
|
894
|
+
}>>>;
|
|
603
895
|
readonly createdAt: Schema.String;
|
|
604
896
|
readonly id: Schema.String;
|
|
605
897
|
readonly input: Schema.Struct<{
|
|
@@ -613,6 +905,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
613
905
|
readonly updatedAt: Schema.String;
|
|
614
906
|
readonly state: Schema.Literal<"running">;
|
|
615
907
|
}>, Schema.Struct<{
|
|
908
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
909
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
910
|
+
readonly byteLength: Schema.Int;
|
|
911
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
912
|
+
readonly name: Schema.String;
|
|
913
|
+
readonly sha256: Schema.String;
|
|
914
|
+
}>>>;
|
|
616
915
|
readonly createdAt: Schema.String;
|
|
617
916
|
readonly id: Schema.String;
|
|
618
917
|
readonly input: Schema.Struct<{
|
|
@@ -628,6 +927,10 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
628
927
|
readonly state: Schema.Literal<"completed">;
|
|
629
928
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
630
929
|
readonly cachedInputTokens: Schema.Int;
|
|
930
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
931
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
932
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
933
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
631
934
|
readonly inputTokens: Schema.Int;
|
|
632
935
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
633
936
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -636,6 +939,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
636
939
|
readonly totalTokens: Schema.Int;
|
|
637
940
|
}>>;
|
|
638
941
|
}>, Schema.Struct<{
|
|
942
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
943
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
944
|
+
readonly byteLength: Schema.Int;
|
|
945
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
946
|
+
readonly name: Schema.String;
|
|
947
|
+
readonly sha256: Schema.String;
|
|
948
|
+
}>>>;
|
|
639
949
|
readonly createdAt: Schema.String;
|
|
640
950
|
readonly id: Schema.String;
|
|
641
951
|
readonly input: Schema.Struct<{
|
|
@@ -655,6 +965,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
655
965
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
656
966
|
readonly state: Schema.Literal<"failed">;
|
|
657
967
|
}>, Schema.Struct<{
|
|
968
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
969
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
970
|
+
readonly byteLength: Schema.Int;
|
|
971
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
972
|
+
readonly name: Schema.String;
|
|
973
|
+
readonly sha256: Schema.String;
|
|
974
|
+
}>>>;
|
|
658
975
|
readonly createdAt: Schema.String;
|
|
659
976
|
readonly id: Schema.String;
|
|
660
977
|
readonly input: Schema.Struct<{
|
|
@@ -673,6 +990,13 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
673
990
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
674
991
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
675
992
|
}>, Schema.Struct<{
|
|
993
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
994
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
995
|
+
readonly byteLength: Schema.Int;
|
|
996
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
997
|
+
readonly name: Schema.String;
|
|
998
|
+
readonly sha256: Schema.String;
|
|
999
|
+
}>>>;
|
|
676
1000
|
readonly createdAt: Schema.String;
|
|
677
1001
|
readonly id: Schema.String;
|
|
678
1002
|
readonly input: Schema.Struct<{
|
|
@@ -686,92 +1010,14 @@ export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
|
686
1010
|
readonly updatedAt: Schema.String;
|
|
687
1011
|
readonly state: Schema.Literal<"interrupted">;
|
|
688
1012
|
}>]>;
|
|
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
1013
|
readonly turn: Schema.Union<readonly [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
|
+
}>>>;
|
|
775
1021
|
readonly createdAt: Schema.String;
|
|
776
1022
|
readonly id: Schema.String;
|
|
777
1023
|
readonly input: Schema.Struct<{
|
|
@@ -785,6 +1031,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
785
1031
|
readonly updatedAt: Schema.String;
|
|
786
1032
|
readonly state: Schema.Literal<"queued">;
|
|
787
1033
|
}>, Schema.Struct<{
|
|
1034
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1035
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1036
|
+
readonly byteLength: Schema.Int;
|
|
1037
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1038
|
+
readonly name: Schema.String;
|
|
1039
|
+
readonly sha256: Schema.String;
|
|
1040
|
+
}>>>;
|
|
788
1041
|
readonly createdAt: Schema.String;
|
|
789
1042
|
readonly id: Schema.String;
|
|
790
1043
|
readonly input: Schema.Struct<{
|
|
@@ -798,6 +1051,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
798
1051
|
readonly updatedAt: Schema.String;
|
|
799
1052
|
readonly state: Schema.Literal<"dispatching">;
|
|
800
1053
|
}>, Schema.Struct<{
|
|
1054
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1055
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1056
|
+
readonly byteLength: Schema.Int;
|
|
1057
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1058
|
+
readonly name: Schema.String;
|
|
1059
|
+
readonly sha256: Schema.String;
|
|
1060
|
+
}>>>;
|
|
801
1061
|
readonly createdAt: Schema.String;
|
|
802
1062
|
readonly id: Schema.String;
|
|
803
1063
|
readonly input: Schema.Struct<{
|
|
@@ -811,6 +1071,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
811
1071
|
readonly updatedAt: Schema.String;
|
|
812
1072
|
readonly state: Schema.Literal<"running">;
|
|
813
1073
|
}>, Schema.Struct<{
|
|
1074
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1075
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1076
|
+
readonly byteLength: Schema.Int;
|
|
1077
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1078
|
+
readonly name: Schema.String;
|
|
1079
|
+
readonly sha256: Schema.String;
|
|
1080
|
+
}>>>;
|
|
814
1081
|
readonly createdAt: Schema.String;
|
|
815
1082
|
readonly id: Schema.String;
|
|
816
1083
|
readonly input: Schema.Struct<{
|
|
@@ -826,6 +1093,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
826
1093
|
readonly state: Schema.Literal<"completed">;
|
|
827
1094
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
828
1095
|
readonly cachedInputTokens: Schema.Int;
|
|
1096
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1097
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1098
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1099
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
829
1100
|
readonly inputTokens: Schema.Int;
|
|
830
1101
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
831
1102
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -834,6 +1105,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
834
1105
|
readonly totalTokens: Schema.Int;
|
|
835
1106
|
}>>;
|
|
836
1107
|
}>, Schema.Struct<{
|
|
1108
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1109
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1110
|
+
readonly byteLength: Schema.Int;
|
|
1111
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1112
|
+
readonly name: Schema.String;
|
|
1113
|
+
readonly sha256: Schema.String;
|
|
1114
|
+
}>>>;
|
|
837
1115
|
readonly createdAt: Schema.String;
|
|
838
1116
|
readonly id: Schema.String;
|
|
839
1117
|
readonly input: Schema.Struct<{
|
|
@@ -853,6 +1131,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
853
1131
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
854
1132
|
readonly state: Schema.Literal<"failed">;
|
|
855
1133
|
}>, Schema.Struct<{
|
|
1134
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1135
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1136
|
+
readonly byteLength: Schema.Int;
|
|
1137
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1138
|
+
readonly name: Schema.String;
|
|
1139
|
+
readonly sha256: Schema.String;
|
|
1140
|
+
}>>>;
|
|
856
1141
|
readonly createdAt: Schema.String;
|
|
857
1142
|
readonly id: Schema.String;
|
|
858
1143
|
readonly input: Schema.Struct<{
|
|
@@ -871,6 +1156,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
871
1156
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
872
1157
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
873
1158
|
}>, Schema.Struct<{
|
|
1159
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1160
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1161
|
+
readonly byteLength: Schema.Int;
|
|
1162
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1163
|
+
readonly name: Schema.String;
|
|
1164
|
+
readonly sha256: Schema.String;
|
|
1165
|
+
}>>>;
|
|
874
1166
|
readonly createdAt: Schema.String;
|
|
875
1167
|
readonly id: Schema.String;
|
|
876
1168
|
readonly input: Schema.Struct<{
|
|
@@ -884,26 +1176,48 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
884
1176
|
readonly updatedAt: Schema.String;
|
|
885
1177
|
readonly state: Schema.Literal<"interrupted">;
|
|
886
1178
|
}>]>;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
readonly
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
1179
|
+
}>;
|
|
1180
|
+
export declare const turnWaitParametersEffectSchema: Schema.Struct<{
|
|
1181
|
+
readonly mode: Schema.Literals<readonly ["all", "any"]>;
|
|
1182
|
+
readonly turnIds: Schema.$Array<Schema.String>;
|
|
1183
|
+
readonly waitMilliseconds: Schema.Int;
|
|
1184
|
+
}>;
|
|
1185
|
+
/** A turn's settlement without its text; `turn show` returns the content. */
|
|
1186
|
+
/** Where a turn is: waiting, in flight, or how it ended. */
|
|
1187
|
+
export declare const turnStateEffectSchema: Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>;
|
|
1188
|
+
export declare const turnWaitResultEffectSchema: Schema.Struct<{
|
|
1189
|
+
readonly method: Schema.Literal<"turn.wait">;
|
|
1190
|
+
readonly satisfied: Schema.Boolean;
|
|
1191
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
1192
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1193
|
+
readonly code: Schema.String;
|
|
1194
|
+
readonly message: Schema.String;
|
|
1195
|
+
}>>;
|
|
1196
|
+
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
1197
|
readonly id: Schema.String;
|
|
899
|
-
readonly inputPreview: Schema.String;
|
|
900
|
-
readonly position: Schema.Int;
|
|
901
1198
|
readonly revision: Schema.String;
|
|
1199
|
+
readonly sessionId: Schema.String;
|
|
1200
|
+
readonly state: Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>;
|
|
1201
|
+
readonly updatedAt: Schema.String;
|
|
902
1202
|
}>>;
|
|
903
|
-
|
|
904
|
-
|
|
1203
|
+
}>;
|
|
1204
|
+
export declare const turnCancelParametersEffectSchema: Schema.Struct<{
|
|
1205
|
+
readonly commandId: Schema.String;
|
|
1206
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1207
|
+
readonly expectedRevision: Schema.String;
|
|
1208
|
+
readonly turnId: Schema.String;
|
|
1209
|
+
}>;
|
|
1210
|
+
export declare const turnCancelResultEffectSchema: Schema.Struct<{
|
|
905
1211
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
906
|
-
readonly method: Schema.Literal<"turn.
|
|
1212
|
+
readonly method: Schema.Literal<"turn.cancel">;
|
|
1213
|
+
/**
|
|
1214
|
+
* `cancelled`: the turn sat in the queue and now ends failed as
|
|
1215
|
+
* `turn_rejected`. `already_dispatched`: the turn left the queue first
|
|
1216
|
+
* (dispatching, running or past it), so the cancel changed nothing and `turn`
|
|
1217
|
+
* shows where the turn stands. Both carry a receipt, and a replay returns the
|
|
1218
|
+
* same one.
|
|
1219
|
+
*/
|
|
1220
|
+
readonly outcome: Schema.Literals<readonly ["cancelled", "already_dispatched"]>;
|
|
907
1221
|
readonly receipt: Schema.Struct<{
|
|
908
1222
|
readonly actorId: Schema.String;
|
|
909
1223
|
readonly aggregateRevision: Schema.String;
|
|
@@ -911,6 +1225,7 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
911
1225
|
readonly createdAt: Schema.String;
|
|
912
1226
|
readonly eventCursor: Schema.String;
|
|
913
1227
|
readonly method: Schema.String;
|
|
1228
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
914
1229
|
readonly receiptId: Schema.String;
|
|
915
1230
|
readonly schemaVersion: Schema.Literal<1>;
|
|
916
1231
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -921,6 +1236,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
921
1236
|
readonly updatedAt: Schema.String;
|
|
922
1237
|
}>;
|
|
923
1238
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1239
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1240
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1241
|
+
readonly byteLength: Schema.Int;
|
|
1242
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1243
|
+
readonly name: Schema.String;
|
|
1244
|
+
readonly sha256: Schema.String;
|
|
1245
|
+
}>>>;
|
|
924
1246
|
readonly createdAt: Schema.String;
|
|
925
1247
|
readonly id: Schema.String;
|
|
926
1248
|
readonly input: Schema.Struct<{
|
|
@@ -934,6 +1256,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
934
1256
|
readonly updatedAt: Schema.String;
|
|
935
1257
|
readonly state: Schema.Literal<"queued">;
|
|
936
1258
|
}>, Schema.Struct<{
|
|
1259
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1260
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1261
|
+
readonly byteLength: Schema.Int;
|
|
1262
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1263
|
+
readonly name: Schema.String;
|
|
1264
|
+
readonly sha256: Schema.String;
|
|
1265
|
+
}>>>;
|
|
937
1266
|
readonly createdAt: Schema.String;
|
|
938
1267
|
readonly id: Schema.String;
|
|
939
1268
|
readonly input: Schema.Struct<{
|
|
@@ -947,6 +1276,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
947
1276
|
readonly updatedAt: Schema.String;
|
|
948
1277
|
readonly state: Schema.Literal<"dispatching">;
|
|
949
1278
|
}>, Schema.Struct<{
|
|
1279
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1280
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1281
|
+
readonly byteLength: Schema.Int;
|
|
1282
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1283
|
+
readonly name: Schema.String;
|
|
1284
|
+
readonly sha256: Schema.String;
|
|
1285
|
+
}>>>;
|
|
950
1286
|
readonly createdAt: Schema.String;
|
|
951
1287
|
readonly id: Schema.String;
|
|
952
1288
|
readonly input: Schema.Struct<{
|
|
@@ -960,6 +1296,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
960
1296
|
readonly updatedAt: Schema.String;
|
|
961
1297
|
readonly state: Schema.Literal<"running">;
|
|
962
1298
|
}>, Schema.Struct<{
|
|
1299
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1300
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1301
|
+
readonly byteLength: Schema.Int;
|
|
1302
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1303
|
+
readonly name: Schema.String;
|
|
1304
|
+
readonly sha256: Schema.String;
|
|
1305
|
+
}>>>;
|
|
963
1306
|
readonly createdAt: Schema.String;
|
|
964
1307
|
readonly id: Schema.String;
|
|
965
1308
|
readonly input: Schema.Struct<{
|
|
@@ -975,6 +1318,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
975
1318
|
readonly state: Schema.Literal<"completed">;
|
|
976
1319
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
977
1320
|
readonly cachedInputTokens: Schema.Int;
|
|
1321
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1322
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1323
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1324
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
978
1325
|
readonly inputTokens: Schema.Int;
|
|
979
1326
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
980
1327
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -983,6 +1330,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
983
1330
|
readonly totalTokens: Schema.Int;
|
|
984
1331
|
}>>;
|
|
985
1332
|
}>, Schema.Struct<{
|
|
1333
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1334
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1335
|
+
readonly byteLength: Schema.Int;
|
|
1336
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1337
|
+
readonly name: Schema.String;
|
|
1338
|
+
readonly sha256: Schema.String;
|
|
1339
|
+
}>>>;
|
|
986
1340
|
readonly createdAt: Schema.String;
|
|
987
1341
|
readonly id: Schema.String;
|
|
988
1342
|
readonly input: Schema.Struct<{
|
|
@@ -1002,6 +1356,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1002
1356
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1003
1357
|
readonly state: Schema.Literal<"failed">;
|
|
1004
1358
|
}>, Schema.Struct<{
|
|
1359
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1360
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1361
|
+
readonly byteLength: Schema.Int;
|
|
1362
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1363
|
+
readonly name: Schema.String;
|
|
1364
|
+
readonly sha256: Schema.String;
|
|
1365
|
+
}>>>;
|
|
1005
1366
|
readonly createdAt: Schema.String;
|
|
1006
1367
|
readonly id: Schema.String;
|
|
1007
1368
|
readonly input: Schema.Struct<{
|
|
@@ -1020,6 +1381,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1020
1381
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1021
1382
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1022
1383
|
}>, Schema.Struct<{
|
|
1384
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1385
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1386
|
+
readonly byteLength: Schema.Int;
|
|
1387
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1388
|
+
readonly name: Schema.String;
|
|
1389
|
+
readonly sha256: Schema.String;
|
|
1390
|
+
}>>>;
|
|
1023
1391
|
readonly createdAt: Schema.String;
|
|
1024
1392
|
readonly id: Schema.String;
|
|
1025
1393
|
readonly input: Schema.Struct<{
|
|
@@ -1033,52 +1401,579 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1033
1401
|
readonly updatedAt: Schema.String;
|
|
1034
1402
|
readonly state: Schema.Literal<"interrupted">;
|
|
1035
1403
|
}>]>;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
readonly
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
readonly createdAt: Schema.String;
|
|
1044
|
-
readonly eventCursor: Schema.String;
|
|
1045
|
-
readonly method: Schema.String;
|
|
1046
|
-
readonly receiptId: Schema.String;
|
|
1047
|
-
readonly schemaVersion: Schema.Literal<1>;
|
|
1048
|
-
readonly state: Schema.Literal<"succeeded">;
|
|
1049
|
-
readonly target: Schema.Struct<{
|
|
1050
|
-
readonly id: Schema.String;
|
|
1051
|
-
readonly type: Schema.String;
|
|
1052
|
-
}>;
|
|
1053
|
-
readonly updatedAt: Schema.String;
|
|
1054
|
-
}>;
|
|
1055
|
-
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1056
|
-
readonly createdAt: Schema.String;
|
|
1404
|
+
}>;
|
|
1405
|
+
export declare const turnQueueListParametersEffectSchema: Schema.Struct<{
|
|
1406
|
+
readonly sessionId: Schema.String;
|
|
1407
|
+
}>;
|
|
1408
|
+
export declare const turnQueueListResultEffectSchema: Schema.Struct<{
|
|
1409
|
+
/** The turn now dispatching or running; absent when none is. */
|
|
1410
|
+
readonly activeTurn: Schema.optional<Schema.Struct<{
|
|
1057
1411
|
readonly id: Schema.String;
|
|
1058
|
-
readonly input: Schema.Struct<{
|
|
1059
|
-
readonly text: Schema.String;
|
|
1060
|
-
readonly type: Schema.Literal<"text">;
|
|
1061
|
-
}>;
|
|
1062
1412
|
readonly revision: Schema.String;
|
|
1063
|
-
readonly
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
}>, Schema.Struct<{
|
|
1413
|
+
readonly state: Schema.Literals<readonly ["dispatching", "running"]>;
|
|
1414
|
+
}>>;
|
|
1415
|
+
readonly method: Schema.Literal<"turn.queue.list">;
|
|
1416
|
+
/** Queued turns in dispatch order; `turn.show` returns a turn's full input. */
|
|
1417
|
+
readonly queue: Schema.$Array<Schema.Struct<{
|
|
1069
1418
|
readonly createdAt: Schema.String;
|
|
1070
1419
|
readonly id: Schema.String;
|
|
1420
|
+
readonly inputPreview: Schema.String;
|
|
1421
|
+
readonly position: Schema.Int;
|
|
1422
|
+
readonly revision: Schema.String;
|
|
1423
|
+
}>>;
|
|
1424
|
+
readonly sessionId: Schema.String;
|
|
1425
|
+
}>;
|
|
1426
|
+
export declare const turnRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1427
|
+
readonly method: Schema.Literal<"turn.attachment.policy">;
|
|
1428
|
+
readonly parameters: Schema.Struct<{
|
|
1429
|
+
readonly sessionId: Schema.String;
|
|
1430
|
+
}>;
|
|
1431
|
+
}>, Schema.Struct<{
|
|
1432
|
+
readonly method: Schema.Literal<"turn.cancel">;
|
|
1433
|
+
readonly parameters: Schema.Struct<{
|
|
1434
|
+
readonly commandId: Schema.String;
|
|
1435
|
+
/** The queued turn's own revision, as `turn.queue.list` shows it. */
|
|
1436
|
+
readonly expectedRevision: Schema.String;
|
|
1437
|
+
readonly turnId: Schema.String;
|
|
1438
|
+
}>;
|
|
1439
|
+
}>, Schema.Struct<{
|
|
1440
|
+
readonly method: Schema.Literal<"turn.queue.list">;
|
|
1441
|
+
readonly parameters: Schema.Struct<{
|
|
1442
|
+
readonly sessionId: Schema.String;
|
|
1443
|
+
}>;
|
|
1444
|
+
}>, Schema.Struct<{
|
|
1445
|
+
readonly method: Schema.Literal<"turn.interrupt">;
|
|
1446
|
+
readonly parameters: Schema.Struct<{
|
|
1447
|
+
readonly commandId: Schema.String;
|
|
1448
|
+
readonly expectedRevision: Schema.String;
|
|
1449
|
+
readonly turnId: Schema.String;
|
|
1450
|
+
}>;
|
|
1451
|
+
}>, Schema.Struct<{
|
|
1452
|
+
readonly method: Schema.Literal<"turn.send">;
|
|
1453
|
+
readonly parameters: Schema.Struct<{
|
|
1454
|
+
/** Files for the turn, within the limits `turn.attachment.policy` reports. */
|
|
1455
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1456
|
+
readonly data: Schema.String;
|
|
1457
|
+
readonly mediaType: Schema.String;
|
|
1458
|
+
readonly name: Schema.String;
|
|
1459
|
+
}>>>;
|
|
1460
|
+
readonly commandId: Schema.String;
|
|
1461
|
+
readonly expectedRevision: Schema.String;
|
|
1071
1462
|
readonly input: Schema.Struct<{
|
|
1072
1463
|
readonly text: Schema.String;
|
|
1073
1464
|
readonly type: Schema.Literal<"text">;
|
|
1074
1465
|
}>;
|
|
1075
|
-
readonly revision: Schema.String;
|
|
1076
|
-
readonly schemaVersion: Schema.Literal<1>;
|
|
1077
1466
|
readonly sessionId: Schema.String;
|
|
1078
|
-
|
|
1079
|
-
|
|
1467
|
+
}>;
|
|
1468
|
+
}>, Schema.Struct<{
|
|
1469
|
+
readonly method: Schema.Literal<"turn.show">;
|
|
1470
|
+
readonly parameters: Schema.Struct<{
|
|
1471
|
+
readonly turnId: Schema.String;
|
|
1472
|
+
}>;
|
|
1473
|
+
}>, Schema.Struct<{
|
|
1474
|
+
readonly method: Schema.Literal<"turn.steer.confirm">;
|
|
1475
|
+
readonly parameters: Schema.Struct<{
|
|
1476
|
+
commandId: Schema.String;
|
|
1477
|
+
expectedRevision: Schema.String;
|
|
1478
|
+
input: Schema.Struct<{
|
|
1479
|
+
readonly text: Schema.String;
|
|
1480
|
+
readonly type: Schema.Literal<"text">;
|
|
1481
|
+
}>;
|
|
1482
|
+
inputDigest: Schema.String;
|
|
1483
|
+
proof: Schema.String;
|
|
1484
|
+
turnId: Schema.String;
|
|
1485
|
+
validUntil: Schema.String;
|
|
1486
|
+
}>;
|
|
1487
|
+
}>, Schema.Struct<{
|
|
1488
|
+
readonly method: Schema.Literal<"turn.steer.preview">;
|
|
1489
|
+
readonly parameters: Schema.Struct<{
|
|
1490
|
+
readonly commandId: Schema.String;
|
|
1491
|
+
readonly expectedRevision: Schema.String;
|
|
1492
|
+
readonly input: Schema.Struct<{
|
|
1493
|
+
readonly text: Schema.String;
|
|
1494
|
+
readonly type: Schema.Literal<"text">;
|
|
1495
|
+
}>;
|
|
1496
|
+
readonly turnId: Schema.String;
|
|
1497
|
+
}>;
|
|
1498
|
+
}>, Schema.Struct<{
|
|
1499
|
+
readonly method: Schema.Literal<"turn.wait">;
|
|
1500
|
+
readonly parameters: Schema.Struct<{
|
|
1501
|
+
readonly mode: Schema.Literals<readonly ["all", "any"]>;
|
|
1502
|
+
readonly turnIds: Schema.$Array<Schema.String>;
|
|
1503
|
+
readonly waitMilliseconds: Schema.Int;
|
|
1504
|
+
}>;
|
|
1505
|
+
}>]>;
|
|
1506
|
+
export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1507
|
+
readonly accepted: Schema.Boolean;
|
|
1508
|
+
readonly maxBytes: Schema.Int;
|
|
1509
|
+
readonly mediaTypes: Schema.$Array<Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>>;
|
|
1510
|
+
readonly method: Schema.Literal<"turn.attachment.policy">;
|
|
1511
|
+
readonly sessionId: Schema.String;
|
|
1512
|
+
}>, Schema.Struct<{
|
|
1513
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1514
|
+
readonly method: Schema.Literal<"turn.cancel">;
|
|
1515
|
+
/**
|
|
1516
|
+
* `cancelled`: the turn sat in the queue and now ends failed as
|
|
1517
|
+
* `turn_rejected`. `already_dispatched`: the turn left the queue first
|
|
1518
|
+
* (dispatching, running or past it), so the cancel changed nothing and `turn`
|
|
1519
|
+
* shows where the turn stands. Both carry a receipt, and a replay returns the
|
|
1520
|
+
* same one.
|
|
1521
|
+
*/
|
|
1522
|
+
readonly outcome: Schema.Literals<readonly ["cancelled", "already_dispatched"]>;
|
|
1523
|
+
readonly receipt: Schema.Struct<{
|
|
1524
|
+
readonly actorId: Schema.String;
|
|
1525
|
+
readonly aggregateRevision: Schema.String;
|
|
1526
|
+
readonly commandId: Schema.String;
|
|
1527
|
+
readonly createdAt: Schema.String;
|
|
1528
|
+
readonly eventCursor: Schema.String;
|
|
1529
|
+
readonly method: Schema.String;
|
|
1530
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1531
|
+
readonly receiptId: Schema.String;
|
|
1532
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1533
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1534
|
+
readonly target: Schema.Struct<{
|
|
1535
|
+
readonly id: Schema.String;
|
|
1536
|
+
readonly type: Schema.String;
|
|
1537
|
+
}>;
|
|
1538
|
+
readonly updatedAt: Schema.String;
|
|
1539
|
+
}>;
|
|
1540
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1541
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1542
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1543
|
+
readonly byteLength: Schema.Int;
|
|
1544
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1545
|
+
readonly name: Schema.String;
|
|
1546
|
+
readonly sha256: Schema.String;
|
|
1547
|
+
}>>>;
|
|
1548
|
+
readonly createdAt: Schema.String;
|
|
1549
|
+
readonly id: Schema.String;
|
|
1550
|
+
readonly input: Schema.Struct<{
|
|
1551
|
+
readonly text: Schema.String;
|
|
1552
|
+
readonly type: Schema.Literal<"text">;
|
|
1553
|
+
}>;
|
|
1554
|
+
readonly revision: Schema.String;
|
|
1555
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1556
|
+
readonly sessionId: Schema.String;
|
|
1557
|
+
readonly sessionRevision: Schema.String;
|
|
1558
|
+
readonly updatedAt: Schema.String;
|
|
1559
|
+
readonly state: Schema.Literal<"queued">;
|
|
1560
|
+
}>, Schema.Struct<{
|
|
1561
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1562
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1563
|
+
readonly byteLength: Schema.Int;
|
|
1564
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1565
|
+
readonly name: Schema.String;
|
|
1566
|
+
readonly sha256: Schema.String;
|
|
1567
|
+
}>>>;
|
|
1568
|
+
readonly createdAt: Schema.String;
|
|
1569
|
+
readonly id: Schema.String;
|
|
1570
|
+
readonly input: Schema.Struct<{
|
|
1571
|
+
readonly text: Schema.String;
|
|
1572
|
+
readonly type: Schema.Literal<"text">;
|
|
1573
|
+
}>;
|
|
1574
|
+
readonly revision: Schema.String;
|
|
1575
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1576
|
+
readonly sessionId: Schema.String;
|
|
1577
|
+
readonly sessionRevision: Schema.String;
|
|
1578
|
+
readonly updatedAt: Schema.String;
|
|
1579
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
1580
|
+
}>, Schema.Struct<{
|
|
1581
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1582
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1583
|
+
readonly byteLength: Schema.Int;
|
|
1584
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1585
|
+
readonly name: Schema.String;
|
|
1586
|
+
readonly sha256: Schema.String;
|
|
1587
|
+
}>>>;
|
|
1588
|
+
readonly createdAt: Schema.String;
|
|
1589
|
+
readonly id: Schema.String;
|
|
1590
|
+
readonly input: Schema.Struct<{
|
|
1591
|
+
readonly text: Schema.String;
|
|
1592
|
+
readonly type: Schema.Literal<"text">;
|
|
1593
|
+
}>;
|
|
1594
|
+
readonly revision: Schema.String;
|
|
1595
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1596
|
+
readonly sessionId: Schema.String;
|
|
1597
|
+
readonly sessionRevision: Schema.String;
|
|
1598
|
+
readonly updatedAt: Schema.String;
|
|
1599
|
+
readonly state: Schema.Literal<"running">;
|
|
1600
|
+
}>, Schema.Struct<{
|
|
1601
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1602
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1603
|
+
readonly byteLength: Schema.Int;
|
|
1604
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1605
|
+
readonly name: Schema.String;
|
|
1606
|
+
readonly sha256: Schema.String;
|
|
1607
|
+
}>>>;
|
|
1608
|
+
readonly createdAt: Schema.String;
|
|
1609
|
+
readonly id: Schema.String;
|
|
1610
|
+
readonly input: Schema.Struct<{
|
|
1611
|
+
readonly text: Schema.String;
|
|
1612
|
+
readonly type: Schema.Literal<"text">;
|
|
1613
|
+
}>;
|
|
1614
|
+
readonly revision: Schema.String;
|
|
1615
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1616
|
+
readonly sessionId: Schema.String;
|
|
1617
|
+
readonly sessionRevision: Schema.String;
|
|
1618
|
+
readonly updatedAt: Schema.String;
|
|
1619
|
+
readonly responseText: Schema.String;
|
|
1620
|
+
readonly state: Schema.Literal<"completed">;
|
|
1621
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
1622
|
+
readonly cachedInputTokens: Schema.Int;
|
|
1623
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1624
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1625
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1626
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
1627
|
+
readonly inputTokens: Schema.Int;
|
|
1628
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
1629
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
1630
|
+
readonly outputTokens: Schema.Int;
|
|
1631
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
1632
|
+
readonly totalTokens: Schema.Int;
|
|
1633
|
+
}>>;
|
|
1634
|
+
}>, Schema.Struct<{
|
|
1635
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1636
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1637
|
+
readonly byteLength: Schema.Int;
|
|
1638
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1639
|
+
readonly name: Schema.String;
|
|
1640
|
+
readonly sha256: Schema.String;
|
|
1641
|
+
}>>>;
|
|
1642
|
+
readonly createdAt: Schema.String;
|
|
1643
|
+
readonly id: Schema.String;
|
|
1644
|
+
readonly input: Schema.Struct<{
|
|
1645
|
+
readonly text: Schema.String;
|
|
1646
|
+
readonly type: Schema.Literal<"text">;
|
|
1647
|
+
}>;
|
|
1648
|
+
readonly revision: Schema.String;
|
|
1649
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1650
|
+
readonly sessionId: Schema.String;
|
|
1651
|
+
readonly sessionRevision: Schema.String;
|
|
1652
|
+
readonly updatedAt: Schema.String;
|
|
1653
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
1654
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1655
|
+
readonly code: Schema.String;
|
|
1656
|
+
readonly message: Schema.String;
|
|
1657
|
+
}>>;
|
|
1658
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1659
|
+
readonly state: Schema.Literal<"failed">;
|
|
1660
|
+
}>, Schema.Struct<{
|
|
1661
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1662
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1663
|
+
readonly byteLength: Schema.Int;
|
|
1664
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1665
|
+
readonly name: Schema.String;
|
|
1666
|
+
readonly sha256: Schema.String;
|
|
1667
|
+
}>>>;
|
|
1668
|
+
readonly createdAt: Schema.String;
|
|
1669
|
+
readonly id: Schema.String;
|
|
1670
|
+
readonly input: Schema.Struct<{
|
|
1671
|
+
readonly text: Schema.String;
|
|
1672
|
+
readonly type: Schema.Literal<"text">;
|
|
1673
|
+
}>;
|
|
1674
|
+
readonly revision: Schema.String;
|
|
1675
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1676
|
+
readonly sessionId: Schema.String;
|
|
1677
|
+
readonly sessionRevision: Schema.String;
|
|
1678
|
+
readonly updatedAt: Schema.String;
|
|
1679
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1680
|
+
readonly code: Schema.String;
|
|
1681
|
+
readonly message: Schema.String;
|
|
1682
|
+
}>>;
|
|
1683
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1684
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1685
|
+
}>, Schema.Struct<{
|
|
1686
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1687
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1688
|
+
readonly byteLength: Schema.Int;
|
|
1689
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1690
|
+
readonly name: Schema.String;
|
|
1691
|
+
readonly sha256: Schema.String;
|
|
1692
|
+
}>>>;
|
|
1693
|
+
readonly createdAt: Schema.String;
|
|
1694
|
+
readonly id: Schema.String;
|
|
1695
|
+
readonly input: Schema.Struct<{
|
|
1696
|
+
readonly text: Schema.String;
|
|
1697
|
+
readonly type: Schema.Literal<"text">;
|
|
1698
|
+
}>;
|
|
1699
|
+
readonly revision: Schema.String;
|
|
1700
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1701
|
+
readonly sessionId: Schema.String;
|
|
1702
|
+
readonly sessionRevision: Schema.String;
|
|
1703
|
+
readonly updatedAt: Schema.String;
|
|
1704
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
1705
|
+
}>]>;
|
|
1706
|
+
}>, Schema.Struct<{
|
|
1707
|
+
/** The turn now dispatching or running; absent when none is. */
|
|
1708
|
+
readonly activeTurn: Schema.optional<Schema.Struct<{
|
|
1709
|
+
readonly id: Schema.String;
|
|
1710
|
+
readonly revision: Schema.String;
|
|
1711
|
+
readonly state: Schema.Literals<readonly ["dispatching", "running"]>;
|
|
1712
|
+
}>>;
|
|
1713
|
+
readonly method: Schema.Literal<"turn.queue.list">;
|
|
1714
|
+
/** Queued turns in dispatch order; `turn.show` returns a turn's full input. */
|
|
1715
|
+
readonly queue: Schema.$Array<Schema.Struct<{
|
|
1716
|
+
readonly createdAt: Schema.String;
|
|
1717
|
+
readonly id: Schema.String;
|
|
1718
|
+
readonly inputPreview: Schema.String;
|
|
1719
|
+
readonly position: Schema.Int;
|
|
1720
|
+
readonly revision: Schema.String;
|
|
1721
|
+
}>>;
|
|
1722
|
+
readonly sessionId: Schema.String;
|
|
1723
|
+
}>, Schema.Struct<{
|
|
1724
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1725
|
+
readonly method: Schema.Literal<"turn.interrupt">;
|
|
1726
|
+
readonly receipt: Schema.Struct<{
|
|
1727
|
+
readonly actorId: Schema.String;
|
|
1728
|
+
readonly aggregateRevision: Schema.String;
|
|
1729
|
+
readonly commandId: Schema.String;
|
|
1730
|
+
readonly createdAt: Schema.String;
|
|
1731
|
+
readonly eventCursor: Schema.String;
|
|
1732
|
+
readonly method: Schema.String;
|
|
1733
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1734
|
+
readonly receiptId: Schema.String;
|
|
1735
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1736
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1737
|
+
readonly target: Schema.Struct<{
|
|
1738
|
+
readonly id: Schema.String;
|
|
1739
|
+
readonly type: Schema.String;
|
|
1740
|
+
}>;
|
|
1741
|
+
readonly updatedAt: Schema.String;
|
|
1742
|
+
}>;
|
|
1743
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1744
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1745
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1746
|
+
readonly byteLength: Schema.Int;
|
|
1747
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1748
|
+
readonly name: Schema.String;
|
|
1749
|
+
readonly sha256: Schema.String;
|
|
1750
|
+
}>>>;
|
|
1751
|
+
readonly createdAt: Schema.String;
|
|
1752
|
+
readonly id: Schema.String;
|
|
1753
|
+
readonly input: Schema.Struct<{
|
|
1754
|
+
readonly text: Schema.String;
|
|
1755
|
+
readonly type: Schema.Literal<"text">;
|
|
1756
|
+
}>;
|
|
1757
|
+
readonly revision: Schema.String;
|
|
1758
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1759
|
+
readonly sessionId: Schema.String;
|
|
1760
|
+
readonly sessionRevision: Schema.String;
|
|
1761
|
+
readonly updatedAt: Schema.String;
|
|
1762
|
+
readonly state: Schema.Literal<"queued">;
|
|
1763
|
+
}>, Schema.Struct<{
|
|
1764
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1765
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1766
|
+
readonly byteLength: Schema.Int;
|
|
1767
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1768
|
+
readonly name: Schema.String;
|
|
1769
|
+
readonly sha256: Schema.String;
|
|
1770
|
+
}>>>;
|
|
1771
|
+
readonly createdAt: Schema.String;
|
|
1772
|
+
readonly id: Schema.String;
|
|
1773
|
+
readonly input: Schema.Struct<{
|
|
1774
|
+
readonly text: Schema.String;
|
|
1775
|
+
readonly type: Schema.Literal<"text">;
|
|
1776
|
+
}>;
|
|
1777
|
+
readonly revision: Schema.String;
|
|
1778
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1779
|
+
readonly sessionId: Schema.String;
|
|
1780
|
+
readonly sessionRevision: Schema.String;
|
|
1781
|
+
readonly updatedAt: Schema.String;
|
|
1782
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
1783
|
+
}>, Schema.Struct<{
|
|
1784
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1785
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1786
|
+
readonly byteLength: Schema.Int;
|
|
1787
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1788
|
+
readonly name: Schema.String;
|
|
1789
|
+
readonly sha256: Schema.String;
|
|
1790
|
+
}>>>;
|
|
1791
|
+
readonly createdAt: Schema.String;
|
|
1792
|
+
readonly id: Schema.String;
|
|
1793
|
+
readonly input: Schema.Struct<{
|
|
1794
|
+
readonly text: Schema.String;
|
|
1795
|
+
readonly type: Schema.Literal<"text">;
|
|
1796
|
+
}>;
|
|
1797
|
+
readonly revision: Schema.String;
|
|
1798
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1799
|
+
readonly sessionId: Schema.String;
|
|
1800
|
+
readonly sessionRevision: Schema.String;
|
|
1801
|
+
readonly updatedAt: Schema.String;
|
|
1802
|
+
readonly state: Schema.Literal<"running">;
|
|
1803
|
+
}>, Schema.Struct<{
|
|
1804
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1805
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1806
|
+
readonly byteLength: Schema.Int;
|
|
1807
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1808
|
+
readonly name: Schema.String;
|
|
1809
|
+
readonly sha256: Schema.String;
|
|
1810
|
+
}>>>;
|
|
1811
|
+
readonly createdAt: Schema.String;
|
|
1812
|
+
readonly id: Schema.String;
|
|
1813
|
+
readonly input: Schema.Struct<{
|
|
1814
|
+
readonly text: Schema.String;
|
|
1815
|
+
readonly type: Schema.Literal<"text">;
|
|
1816
|
+
}>;
|
|
1817
|
+
readonly revision: Schema.String;
|
|
1818
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1819
|
+
readonly sessionId: Schema.String;
|
|
1820
|
+
readonly sessionRevision: Schema.String;
|
|
1821
|
+
readonly updatedAt: Schema.String;
|
|
1822
|
+
readonly responseText: Schema.String;
|
|
1823
|
+
readonly state: Schema.Literal<"completed">;
|
|
1824
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
1825
|
+
readonly cachedInputTokens: Schema.Int;
|
|
1826
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
1827
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
1828
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
1829
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
1830
|
+
readonly inputTokens: Schema.Int;
|
|
1831
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
1832
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
1833
|
+
readonly outputTokens: Schema.Int;
|
|
1834
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
1835
|
+
readonly totalTokens: Schema.Int;
|
|
1836
|
+
}>>;
|
|
1837
|
+
}>, Schema.Struct<{
|
|
1838
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1839
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1840
|
+
readonly byteLength: Schema.Int;
|
|
1841
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1842
|
+
readonly name: Schema.String;
|
|
1843
|
+
readonly sha256: Schema.String;
|
|
1844
|
+
}>>>;
|
|
1845
|
+
readonly createdAt: Schema.String;
|
|
1846
|
+
readonly id: Schema.String;
|
|
1847
|
+
readonly input: Schema.Struct<{
|
|
1848
|
+
readonly text: Schema.String;
|
|
1849
|
+
readonly type: Schema.Literal<"text">;
|
|
1850
|
+
}>;
|
|
1851
|
+
readonly revision: Schema.String;
|
|
1852
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1853
|
+
readonly sessionId: Schema.String;
|
|
1854
|
+
readonly sessionRevision: Schema.String;
|
|
1855
|
+
readonly updatedAt: Schema.String;
|
|
1856
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
1857
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1858
|
+
readonly code: Schema.String;
|
|
1859
|
+
readonly message: Schema.String;
|
|
1860
|
+
}>>;
|
|
1861
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1862
|
+
readonly state: Schema.Literal<"failed">;
|
|
1863
|
+
}>, Schema.Struct<{
|
|
1864
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1865
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1866
|
+
readonly byteLength: Schema.Int;
|
|
1867
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1868
|
+
readonly name: Schema.String;
|
|
1869
|
+
readonly sha256: Schema.String;
|
|
1870
|
+
}>>>;
|
|
1871
|
+
readonly createdAt: Schema.String;
|
|
1872
|
+
readonly id: Schema.String;
|
|
1873
|
+
readonly input: Schema.Struct<{
|
|
1874
|
+
readonly text: Schema.String;
|
|
1875
|
+
readonly type: Schema.Literal<"text">;
|
|
1876
|
+
}>;
|
|
1877
|
+
readonly revision: Schema.String;
|
|
1878
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1879
|
+
readonly sessionId: Schema.String;
|
|
1880
|
+
readonly sessionRevision: Schema.String;
|
|
1881
|
+
readonly updatedAt: Schema.String;
|
|
1882
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1883
|
+
readonly code: Schema.String;
|
|
1884
|
+
readonly message: Schema.String;
|
|
1885
|
+
}>>;
|
|
1886
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1887
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1888
|
+
}>, Schema.Struct<{
|
|
1889
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1890
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1891
|
+
readonly byteLength: Schema.Int;
|
|
1892
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1893
|
+
readonly name: Schema.String;
|
|
1894
|
+
readonly sha256: Schema.String;
|
|
1895
|
+
}>>>;
|
|
1896
|
+
readonly createdAt: Schema.String;
|
|
1897
|
+
readonly id: Schema.String;
|
|
1898
|
+
readonly input: Schema.Struct<{
|
|
1899
|
+
readonly text: Schema.String;
|
|
1900
|
+
readonly type: Schema.Literal<"text">;
|
|
1901
|
+
}>;
|
|
1902
|
+
readonly revision: Schema.String;
|
|
1903
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1904
|
+
readonly sessionId: Schema.String;
|
|
1905
|
+
readonly sessionRevision: Schema.String;
|
|
1906
|
+
readonly updatedAt: Schema.String;
|
|
1907
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
1908
|
+
}>]>;
|
|
1909
|
+
}>, Schema.Struct<{
|
|
1910
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1911
|
+
readonly method: Schema.Literal<"turn.send">;
|
|
1912
|
+
readonly receipt: Schema.Struct<{
|
|
1913
|
+
readonly actorId: Schema.String;
|
|
1914
|
+
readonly aggregateRevision: Schema.String;
|
|
1915
|
+
readonly commandId: Schema.String;
|
|
1916
|
+
readonly createdAt: Schema.String;
|
|
1917
|
+
readonly eventCursor: Schema.String;
|
|
1918
|
+
readonly method: Schema.String;
|
|
1919
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1920
|
+
readonly receiptId: Schema.String;
|
|
1921
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1922
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1923
|
+
readonly target: Schema.Struct<{
|
|
1924
|
+
readonly id: Schema.String;
|
|
1925
|
+
readonly type: Schema.String;
|
|
1926
|
+
}>;
|
|
1927
|
+
readonly updatedAt: Schema.String;
|
|
1928
|
+
}>;
|
|
1929
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
1930
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1931
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1932
|
+
readonly byteLength: Schema.Int;
|
|
1933
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1934
|
+
readonly name: Schema.String;
|
|
1935
|
+
readonly sha256: Schema.String;
|
|
1936
|
+
}>>>;
|
|
1937
|
+
readonly createdAt: Schema.String;
|
|
1938
|
+
readonly id: Schema.String;
|
|
1939
|
+
readonly input: Schema.Struct<{
|
|
1940
|
+
readonly text: Schema.String;
|
|
1941
|
+
readonly type: Schema.Literal<"text">;
|
|
1942
|
+
}>;
|
|
1943
|
+
readonly revision: Schema.String;
|
|
1944
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1945
|
+
readonly sessionId: Schema.String;
|
|
1946
|
+
readonly sessionRevision: Schema.String;
|
|
1947
|
+
readonly updatedAt: Schema.String;
|
|
1948
|
+
readonly state: Schema.Literal<"queued">;
|
|
1949
|
+
}>, Schema.Struct<{
|
|
1950
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1951
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1952
|
+
readonly byteLength: Schema.Int;
|
|
1953
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1954
|
+
readonly name: Schema.String;
|
|
1955
|
+
readonly sha256: Schema.String;
|
|
1956
|
+
}>>>;
|
|
1957
|
+
readonly createdAt: Schema.String;
|
|
1958
|
+
readonly id: Schema.String;
|
|
1959
|
+
readonly input: Schema.Struct<{
|
|
1960
|
+
readonly text: Schema.String;
|
|
1961
|
+
readonly type: Schema.Literal<"text">;
|
|
1962
|
+
}>;
|
|
1963
|
+
readonly revision: Schema.String;
|
|
1964
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1965
|
+
readonly sessionId: Schema.String;
|
|
1966
|
+
readonly sessionRevision: Schema.String;
|
|
1967
|
+
readonly updatedAt: Schema.String;
|
|
1080
1968
|
readonly state: Schema.Literal<"dispatching">;
|
|
1081
1969
|
}>, Schema.Struct<{
|
|
1970
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1971
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1972
|
+
readonly byteLength: Schema.Int;
|
|
1973
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1974
|
+
readonly name: Schema.String;
|
|
1975
|
+
readonly sha256: Schema.String;
|
|
1976
|
+
}>>>;
|
|
1082
1977
|
readonly createdAt: Schema.String;
|
|
1083
1978
|
readonly id: Schema.String;
|
|
1084
1979
|
readonly input: Schema.Struct<{
|
|
@@ -1092,6 +1987,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1092
1987
|
readonly updatedAt: Schema.String;
|
|
1093
1988
|
readonly state: Schema.Literal<"running">;
|
|
1094
1989
|
}>, Schema.Struct<{
|
|
1990
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
1991
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1992
|
+
readonly byteLength: Schema.Int;
|
|
1993
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
1994
|
+
readonly name: Schema.String;
|
|
1995
|
+
readonly sha256: Schema.String;
|
|
1996
|
+
}>>>;
|
|
1095
1997
|
readonly createdAt: Schema.String;
|
|
1096
1998
|
readonly id: Schema.String;
|
|
1097
1999
|
readonly input: Schema.Struct<{
|
|
@@ -1107,6 +2009,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1107
2009
|
readonly state: Schema.Literal<"completed">;
|
|
1108
2010
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
1109
2011
|
readonly cachedInputTokens: Schema.Int;
|
|
2012
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2013
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2014
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2015
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
1110
2016
|
readonly inputTokens: Schema.Int;
|
|
1111
2017
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
1112
2018
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -1115,6 +2021,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1115
2021
|
readonly totalTokens: Schema.Int;
|
|
1116
2022
|
}>>;
|
|
1117
2023
|
}>, Schema.Struct<{
|
|
2024
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2025
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2026
|
+
readonly byteLength: Schema.Int;
|
|
2027
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2028
|
+
readonly name: Schema.String;
|
|
2029
|
+
readonly sha256: Schema.String;
|
|
2030
|
+
}>>>;
|
|
1118
2031
|
readonly createdAt: Schema.String;
|
|
1119
2032
|
readonly id: Schema.String;
|
|
1120
2033
|
readonly input: Schema.Struct<{
|
|
@@ -1134,6 +2047,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1134
2047
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1135
2048
|
readonly state: Schema.Literal<"failed">;
|
|
1136
2049
|
}>, Schema.Struct<{
|
|
2050
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2051
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2052
|
+
readonly byteLength: Schema.Int;
|
|
2053
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2054
|
+
readonly name: Schema.String;
|
|
2055
|
+
readonly sha256: Schema.String;
|
|
2056
|
+
}>>>;
|
|
1137
2057
|
readonly createdAt: Schema.String;
|
|
1138
2058
|
readonly id: Schema.String;
|
|
1139
2059
|
readonly input: Schema.Struct<{
|
|
@@ -1152,6 +2072,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1152
2072
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1153
2073
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1154
2074
|
}>, Schema.Struct<{
|
|
2075
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2076
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2077
|
+
readonly byteLength: Schema.Int;
|
|
2078
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2079
|
+
readonly name: Schema.String;
|
|
2080
|
+
readonly sha256: Schema.String;
|
|
2081
|
+
}>>>;
|
|
1155
2082
|
readonly createdAt: Schema.String;
|
|
1156
2083
|
readonly id: Schema.String;
|
|
1157
2084
|
readonly input: Schema.Struct<{
|
|
@@ -1168,6 +2095,366 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1168
2095
|
}>, Schema.Struct<{
|
|
1169
2096
|
readonly method: Schema.Literal<"turn.show">;
|
|
1170
2097
|
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
2098
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2099
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2100
|
+
readonly byteLength: Schema.Int;
|
|
2101
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2102
|
+
readonly name: Schema.String;
|
|
2103
|
+
readonly sha256: Schema.String;
|
|
2104
|
+
}>>>;
|
|
2105
|
+
readonly createdAt: Schema.String;
|
|
2106
|
+
readonly id: Schema.String;
|
|
2107
|
+
readonly input: Schema.Struct<{
|
|
2108
|
+
readonly text: Schema.String;
|
|
2109
|
+
readonly type: Schema.Literal<"text">;
|
|
2110
|
+
}>;
|
|
2111
|
+
readonly revision: Schema.String;
|
|
2112
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2113
|
+
readonly sessionId: Schema.String;
|
|
2114
|
+
readonly sessionRevision: Schema.String;
|
|
2115
|
+
readonly updatedAt: Schema.String;
|
|
2116
|
+
readonly state: Schema.Literal<"queued">;
|
|
2117
|
+
}>, Schema.Struct<{
|
|
2118
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2119
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2120
|
+
readonly byteLength: Schema.Int;
|
|
2121
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2122
|
+
readonly name: Schema.String;
|
|
2123
|
+
readonly sha256: Schema.String;
|
|
2124
|
+
}>>>;
|
|
2125
|
+
readonly createdAt: Schema.String;
|
|
2126
|
+
readonly id: Schema.String;
|
|
2127
|
+
readonly input: Schema.Struct<{
|
|
2128
|
+
readonly text: Schema.String;
|
|
2129
|
+
readonly type: Schema.Literal<"text">;
|
|
2130
|
+
}>;
|
|
2131
|
+
readonly revision: Schema.String;
|
|
2132
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2133
|
+
readonly sessionId: Schema.String;
|
|
2134
|
+
readonly sessionRevision: Schema.String;
|
|
2135
|
+
readonly updatedAt: Schema.String;
|
|
2136
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
2137
|
+
}>, Schema.Struct<{
|
|
2138
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2139
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2140
|
+
readonly byteLength: Schema.Int;
|
|
2141
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2142
|
+
readonly name: Schema.String;
|
|
2143
|
+
readonly sha256: Schema.String;
|
|
2144
|
+
}>>>;
|
|
2145
|
+
readonly createdAt: Schema.String;
|
|
2146
|
+
readonly id: Schema.String;
|
|
2147
|
+
readonly input: Schema.Struct<{
|
|
2148
|
+
readonly text: Schema.String;
|
|
2149
|
+
readonly type: Schema.Literal<"text">;
|
|
2150
|
+
}>;
|
|
2151
|
+
readonly revision: Schema.String;
|
|
2152
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2153
|
+
readonly sessionId: Schema.String;
|
|
2154
|
+
readonly sessionRevision: Schema.String;
|
|
2155
|
+
readonly updatedAt: Schema.String;
|
|
2156
|
+
readonly state: Schema.Literal<"running">;
|
|
2157
|
+
}>, Schema.Struct<{
|
|
2158
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2159
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2160
|
+
readonly byteLength: Schema.Int;
|
|
2161
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2162
|
+
readonly name: Schema.String;
|
|
2163
|
+
readonly sha256: Schema.String;
|
|
2164
|
+
}>>>;
|
|
2165
|
+
readonly createdAt: Schema.String;
|
|
2166
|
+
readonly id: Schema.String;
|
|
2167
|
+
readonly input: Schema.Struct<{
|
|
2168
|
+
readonly text: Schema.String;
|
|
2169
|
+
readonly type: Schema.Literal<"text">;
|
|
2170
|
+
}>;
|
|
2171
|
+
readonly revision: Schema.String;
|
|
2172
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2173
|
+
readonly sessionId: Schema.String;
|
|
2174
|
+
readonly sessionRevision: Schema.String;
|
|
2175
|
+
readonly updatedAt: Schema.String;
|
|
2176
|
+
readonly responseText: Schema.String;
|
|
2177
|
+
readonly state: Schema.Literal<"completed">;
|
|
2178
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
2179
|
+
readonly cachedInputTokens: Schema.Int;
|
|
2180
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2181
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2182
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2183
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
2184
|
+
readonly inputTokens: Schema.Int;
|
|
2185
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
2186
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
2187
|
+
readonly outputTokens: Schema.Int;
|
|
2188
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
2189
|
+
readonly totalTokens: Schema.Int;
|
|
2190
|
+
}>>;
|
|
2191
|
+
}>, Schema.Struct<{
|
|
2192
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2193
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2194
|
+
readonly byteLength: Schema.Int;
|
|
2195
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2196
|
+
readonly name: Schema.String;
|
|
2197
|
+
readonly sha256: Schema.String;
|
|
2198
|
+
}>>>;
|
|
2199
|
+
readonly createdAt: Schema.String;
|
|
2200
|
+
readonly id: Schema.String;
|
|
2201
|
+
readonly input: Schema.Struct<{
|
|
2202
|
+
readonly text: Schema.String;
|
|
2203
|
+
readonly type: Schema.Literal<"text">;
|
|
2204
|
+
}>;
|
|
2205
|
+
readonly revision: Schema.String;
|
|
2206
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2207
|
+
readonly sessionId: Schema.String;
|
|
2208
|
+
readonly sessionRevision: Schema.String;
|
|
2209
|
+
readonly updatedAt: Schema.String;
|
|
2210
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
2211
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2212
|
+
readonly code: Schema.String;
|
|
2213
|
+
readonly message: Schema.String;
|
|
2214
|
+
}>>;
|
|
2215
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
2216
|
+
readonly state: Schema.Literal<"failed">;
|
|
2217
|
+
}>, Schema.Struct<{
|
|
2218
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2219
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2220
|
+
readonly byteLength: Schema.Int;
|
|
2221
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2222
|
+
readonly name: Schema.String;
|
|
2223
|
+
readonly sha256: Schema.String;
|
|
2224
|
+
}>>>;
|
|
2225
|
+
readonly createdAt: Schema.String;
|
|
2226
|
+
readonly id: Schema.String;
|
|
2227
|
+
readonly input: Schema.Struct<{
|
|
2228
|
+
readonly text: Schema.String;
|
|
2229
|
+
readonly type: Schema.Literal<"text">;
|
|
2230
|
+
}>;
|
|
2231
|
+
readonly revision: Schema.String;
|
|
2232
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2233
|
+
readonly sessionId: Schema.String;
|
|
2234
|
+
readonly sessionRevision: Schema.String;
|
|
2235
|
+
readonly updatedAt: Schema.String;
|
|
2236
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2237
|
+
readonly code: Schema.String;
|
|
2238
|
+
readonly message: Schema.String;
|
|
2239
|
+
}>>;
|
|
2240
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
2241
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
2242
|
+
}>, Schema.Struct<{
|
|
2243
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2244
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2245
|
+
readonly byteLength: Schema.Int;
|
|
2246
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2247
|
+
readonly name: Schema.String;
|
|
2248
|
+
readonly sha256: Schema.String;
|
|
2249
|
+
}>>>;
|
|
2250
|
+
readonly createdAt: Schema.String;
|
|
2251
|
+
readonly id: Schema.String;
|
|
2252
|
+
readonly input: Schema.Struct<{
|
|
2253
|
+
readonly text: Schema.String;
|
|
2254
|
+
readonly type: Schema.Literal<"text">;
|
|
2255
|
+
}>;
|
|
2256
|
+
readonly revision: Schema.String;
|
|
2257
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2258
|
+
readonly sessionId: Schema.String;
|
|
2259
|
+
readonly sessionRevision: Schema.String;
|
|
2260
|
+
readonly updatedAt: Schema.String;
|
|
2261
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
2262
|
+
}>]>;
|
|
2263
|
+
}>, Schema.Struct<{
|
|
2264
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2265
|
+
readonly method: Schema.Literal<"turn.steer.confirm">;
|
|
2266
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
2267
|
+
readonly receipt: Schema.Struct<{
|
|
2268
|
+
readonly actorId: Schema.String;
|
|
2269
|
+
readonly aggregateRevision: Schema.String;
|
|
2270
|
+
readonly commandId: Schema.String;
|
|
2271
|
+
readonly createdAt: Schema.String;
|
|
2272
|
+
readonly eventCursor: Schema.String;
|
|
2273
|
+
readonly method: Schema.String;
|
|
2274
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2275
|
+
readonly receiptId: Schema.String;
|
|
2276
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2277
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
2278
|
+
readonly target: Schema.Struct<{
|
|
2279
|
+
readonly id: Schema.String;
|
|
2280
|
+
readonly type: Schema.String;
|
|
2281
|
+
}>;
|
|
2282
|
+
readonly updatedAt: Schema.String;
|
|
2283
|
+
}>;
|
|
2284
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
2285
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2286
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2287
|
+
readonly byteLength: Schema.Int;
|
|
2288
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2289
|
+
readonly name: Schema.String;
|
|
2290
|
+
readonly sha256: Schema.String;
|
|
2291
|
+
}>>>;
|
|
2292
|
+
readonly createdAt: Schema.String;
|
|
2293
|
+
readonly id: Schema.String;
|
|
2294
|
+
readonly input: Schema.Struct<{
|
|
2295
|
+
readonly text: Schema.String;
|
|
2296
|
+
readonly type: Schema.Literal<"text">;
|
|
2297
|
+
}>;
|
|
2298
|
+
readonly revision: Schema.String;
|
|
2299
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2300
|
+
readonly sessionId: Schema.String;
|
|
2301
|
+
readonly sessionRevision: Schema.String;
|
|
2302
|
+
readonly updatedAt: Schema.String;
|
|
2303
|
+
readonly state: Schema.Literal<"queued">;
|
|
2304
|
+
}>, Schema.Struct<{
|
|
2305
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2306
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2307
|
+
readonly byteLength: Schema.Int;
|
|
2308
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2309
|
+
readonly name: Schema.String;
|
|
2310
|
+
readonly sha256: Schema.String;
|
|
2311
|
+
}>>>;
|
|
2312
|
+
readonly createdAt: Schema.String;
|
|
2313
|
+
readonly id: Schema.String;
|
|
2314
|
+
readonly input: Schema.Struct<{
|
|
2315
|
+
readonly text: Schema.String;
|
|
2316
|
+
readonly type: Schema.Literal<"text">;
|
|
2317
|
+
}>;
|
|
2318
|
+
readonly revision: Schema.String;
|
|
2319
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2320
|
+
readonly sessionId: Schema.String;
|
|
2321
|
+
readonly sessionRevision: Schema.String;
|
|
2322
|
+
readonly updatedAt: Schema.String;
|
|
2323
|
+
readonly state: Schema.Literal<"dispatching">;
|
|
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<"running">;
|
|
2344
|
+
}>, Schema.Struct<{
|
|
2345
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2346
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2347
|
+
readonly byteLength: Schema.Int;
|
|
2348
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2349
|
+
readonly name: Schema.String;
|
|
2350
|
+
readonly sha256: Schema.String;
|
|
2351
|
+
}>>>;
|
|
2352
|
+
readonly createdAt: Schema.String;
|
|
2353
|
+
readonly id: Schema.String;
|
|
2354
|
+
readonly input: Schema.Struct<{
|
|
2355
|
+
readonly text: Schema.String;
|
|
2356
|
+
readonly type: Schema.Literal<"text">;
|
|
2357
|
+
}>;
|
|
2358
|
+
readonly revision: Schema.String;
|
|
2359
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2360
|
+
readonly sessionId: Schema.String;
|
|
2361
|
+
readonly sessionRevision: Schema.String;
|
|
2362
|
+
readonly updatedAt: Schema.String;
|
|
2363
|
+
readonly responseText: Schema.String;
|
|
2364
|
+
readonly state: Schema.Literal<"completed">;
|
|
2365
|
+
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
2366
|
+
readonly cachedInputTokens: Schema.Int;
|
|
2367
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2368
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2369
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2370
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
2371
|
+
readonly inputTokens: Schema.Int;
|
|
2372
|
+
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
2373
|
+
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
2374
|
+
readonly outputTokens: Schema.Int;
|
|
2375
|
+
readonly reasoningOutputTokens: Schema.Int;
|
|
2376
|
+
readonly totalTokens: Schema.Int;
|
|
2377
|
+
}>>;
|
|
2378
|
+
}>, Schema.Struct<{
|
|
2379
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2380
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2381
|
+
readonly byteLength: Schema.Int;
|
|
2382
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2383
|
+
readonly name: Schema.String;
|
|
2384
|
+
readonly sha256: Schema.String;
|
|
2385
|
+
}>>>;
|
|
2386
|
+
readonly createdAt: Schema.String;
|
|
2387
|
+
readonly id: Schema.String;
|
|
2388
|
+
readonly input: Schema.Struct<{
|
|
2389
|
+
readonly text: Schema.String;
|
|
2390
|
+
readonly type: Schema.Literal<"text">;
|
|
2391
|
+
}>;
|
|
2392
|
+
readonly revision: Schema.String;
|
|
2393
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2394
|
+
readonly sessionId: Schema.String;
|
|
2395
|
+
readonly sessionRevision: Schema.String;
|
|
2396
|
+
readonly updatedAt: Schema.String;
|
|
2397
|
+
/** What the runtime reported, when it said why the turn failed. */
|
|
2398
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2399
|
+
readonly code: Schema.String;
|
|
2400
|
+
readonly message: Schema.String;
|
|
2401
|
+
}>>;
|
|
2402
|
+
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
2403
|
+
readonly state: Schema.Literal<"failed">;
|
|
2404
|
+
}>, Schema.Struct<{
|
|
2405
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2406
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2407
|
+
readonly byteLength: Schema.Int;
|
|
2408
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2409
|
+
readonly name: Schema.String;
|
|
2410
|
+
readonly sha256: Schema.String;
|
|
2411
|
+
}>>>;
|
|
2412
|
+
readonly createdAt: Schema.String;
|
|
2413
|
+
readonly id: Schema.String;
|
|
2414
|
+
readonly input: Schema.Struct<{
|
|
2415
|
+
readonly text: Schema.String;
|
|
2416
|
+
readonly type: Schema.Literal<"text">;
|
|
2417
|
+
}>;
|
|
2418
|
+
readonly revision: Schema.String;
|
|
2419
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2420
|
+
readonly sessionId: Schema.String;
|
|
2421
|
+
readonly sessionRevision: Schema.String;
|
|
2422
|
+
readonly updatedAt: Schema.String;
|
|
2423
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
2424
|
+
readonly code: Schema.String;
|
|
2425
|
+
readonly message: Schema.String;
|
|
2426
|
+
}>>;
|
|
2427
|
+
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
2428
|
+
readonly state: Schema.Literal<"outcome-unknown">;
|
|
2429
|
+
}>, Schema.Struct<{
|
|
2430
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2431
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2432
|
+
readonly byteLength: Schema.Int;
|
|
2433
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2434
|
+
readonly name: Schema.String;
|
|
2435
|
+
readonly sha256: Schema.String;
|
|
2436
|
+
}>>>;
|
|
2437
|
+
readonly createdAt: Schema.String;
|
|
2438
|
+
readonly id: Schema.String;
|
|
2439
|
+
readonly input: Schema.Struct<{
|
|
2440
|
+
readonly text: Schema.String;
|
|
2441
|
+
readonly type: Schema.Literal<"text">;
|
|
2442
|
+
}>;
|
|
2443
|
+
readonly revision: Schema.String;
|
|
2444
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
2445
|
+
readonly sessionId: Schema.String;
|
|
2446
|
+
readonly sessionRevision: Schema.String;
|
|
2447
|
+
readonly updatedAt: Schema.String;
|
|
2448
|
+
readonly state: Schema.Literal<"interrupted">;
|
|
2449
|
+
}>]>;
|
|
2450
|
+
readonly turn: Schema.Union<readonly [Schema.Struct<{
|
|
2451
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2452
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2453
|
+
readonly byteLength: Schema.Int;
|
|
2454
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2455
|
+
readonly name: Schema.String;
|
|
2456
|
+
readonly sha256: Schema.String;
|
|
2457
|
+
}>>>;
|
|
1171
2458
|
readonly createdAt: Schema.String;
|
|
1172
2459
|
readonly id: Schema.String;
|
|
1173
2460
|
readonly input: Schema.Struct<{
|
|
@@ -1181,6 +2468,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1181
2468
|
readonly updatedAt: Schema.String;
|
|
1182
2469
|
readonly state: Schema.Literal<"queued">;
|
|
1183
2470
|
}>, Schema.Struct<{
|
|
2471
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2472
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2473
|
+
readonly byteLength: Schema.Int;
|
|
2474
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2475
|
+
readonly name: Schema.String;
|
|
2476
|
+
readonly sha256: Schema.String;
|
|
2477
|
+
}>>>;
|
|
1184
2478
|
readonly createdAt: Schema.String;
|
|
1185
2479
|
readonly id: Schema.String;
|
|
1186
2480
|
readonly input: Schema.Struct<{
|
|
@@ -1194,6 +2488,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1194
2488
|
readonly updatedAt: Schema.String;
|
|
1195
2489
|
readonly state: Schema.Literal<"dispatching">;
|
|
1196
2490
|
}>, Schema.Struct<{
|
|
2491
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2492
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2493
|
+
readonly byteLength: Schema.Int;
|
|
2494
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2495
|
+
readonly name: Schema.String;
|
|
2496
|
+
readonly sha256: Schema.String;
|
|
2497
|
+
}>>>;
|
|
1197
2498
|
readonly createdAt: Schema.String;
|
|
1198
2499
|
readonly id: Schema.String;
|
|
1199
2500
|
readonly input: Schema.Struct<{
|
|
@@ -1207,6 +2508,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1207
2508
|
readonly updatedAt: Schema.String;
|
|
1208
2509
|
readonly state: Schema.Literal<"running">;
|
|
1209
2510
|
}>, Schema.Struct<{
|
|
2511
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2512
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2513
|
+
readonly byteLength: Schema.Int;
|
|
2514
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2515
|
+
readonly name: Schema.String;
|
|
2516
|
+
readonly sha256: Schema.String;
|
|
2517
|
+
}>>>;
|
|
1210
2518
|
readonly createdAt: Schema.String;
|
|
1211
2519
|
readonly id: Schema.String;
|
|
1212
2520
|
readonly input: Schema.Struct<{
|
|
@@ -1222,6 +2530,10 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1222
2530
|
readonly state: Schema.Literal<"completed">;
|
|
1223
2531
|
readonly tokenUsage: Schema.optional<Schema.Struct<{
|
|
1224
2532
|
readonly cachedInputTokens: Schema.Int;
|
|
2533
|
+
/** The input tokens of the turn's last model call: the context in use. */
|
|
2534
|
+
readonly contextTokens: Schema.optional<Schema.Int>;
|
|
2535
|
+
/** The model's context window in tokens, reported with `contextTokens` or not at all. */
|
|
2536
|
+
readonly contextWindow: Schema.optional<Schema.Int>;
|
|
1225
2537
|
readonly inputTokens: Schema.Int;
|
|
1226
2538
|
/** Model calls the runtime reported for the turn; absent when it reported none. */
|
|
1227
2539
|
readonly modelCallCount: Schema.optional<Schema.Int>;
|
|
@@ -1230,6 +2542,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1230
2542
|
readonly totalTokens: Schema.Int;
|
|
1231
2543
|
}>>;
|
|
1232
2544
|
}>, Schema.Struct<{
|
|
2545
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2546
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2547
|
+
readonly byteLength: Schema.Int;
|
|
2548
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2549
|
+
readonly name: Schema.String;
|
|
2550
|
+
readonly sha256: Schema.String;
|
|
2551
|
+
}>>>;
|
|
1233
2552
|
readonly createdAt: Schema.String;
|
|
1234
2553
|
readonly id: Schema.String;
|
|
1235
2554
|
readonly input: Schema.Struct<{
|
|
@@ -1249,6 +2568,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1249
2568
|
readonly failureReason: Schema.Literals<readonly ["approval_required", "repository_changed", "runtime_failed", "turn_rejected"]>;
|
|
1250
2569
|
readonly state: Schema.Literal<"failed">;
|
|
1251
2570
|
}>, Schema.Struct<{
|
|
2571
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2572
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2573
|
+
readonly byteLength: Schema.Int;
|
|
2574
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2575
|
+
readonly name: Schema.String;
|
|
2576
|
+
readonly sha256: Schema.String;
|
|
2577
|
+
}>>>;
|
|
1252
2578
|
readonly createdAt: Schema.String;
|
|
1253
2579
|
readonly id: Schema.String;
|
|
1254
2580
|
readonly input: Schema.Struct<{
|
|
@@ -1267,6 +2593,13 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1267
2593
|
readonly failureReason: Schema.Literals<readonly ["output_limit_exceeded", "protocol_invalid", "runtime_exited", "turn_deadline_exceeded"]>;
|
|
1268
2594
|
readonly state: Schema.Literal<"outcome-unknown">;
|
|
1269
2595
|
}>, Schema.Struct<{
|
|
2596
|
+
/** The files sent with the turn; absent when it carried none. */
|
|
2597
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2598
|
+
readonly byteLength: Schema.Int;
|
|
2599
|
+
readonly mediaType: Schema.Literals<readonly ["image/gif", "image/jpeg", "image/png", "image/webp"]>;
|
|
2600
|
+
readonly name: Schema.String;
|
|
2601
|
+
readonly sha256: Schema.String;
|
|
2602
|
+
}>>>;
|
|
1270
2603
|
readonly createdAt: Schema.String;
|
|
1271
2604
|
readonly id: Schema.String;
|
|
1272
2605
|
readonly input: Schema.Struct<{
|
|
@@ -1280,6 +2613,19 @@ export declare const turnSuccessResultEffectSchema: Schema.Union<readonly [Schem
|
|
|
1280
2613
|
readonly updatedAt: Schema.String;
|
|
1281
2614
|
readonly state: Schema.Literal<"interrupted">;
|
|
1282
2615
|
}>]>;
|
|
2616
|
+
}>, Schema.Struct<{
|
|
2617
|
+
readonly commandId: Schema.String;
|
|
2618
|
+
readonly expectedRevision: Schema.String;
|
|
2619
|
+
readonly input: Schema.Struct<{
|
|
2620
|
+
readonly text: Schema.String;
|
|
2621
|
+
readonly type: Schema.Literal<"text">;
|
|
2622
|
+
}>;
|
|
2623
|
+
readonly inputDigest: Schema.String;
|
|
2624
|
+
readonly proof: Schema.String;
|
|
2625
|
+
readonly turnId: Schema.String;
|
|
2626
|
+
readonly validUntil: Schema.String;
|
|
2627
|
+
readonly method: Schema.Literal<"turn.steer.preview">;
|
|
2628
|
+
readonly path: Schema.Literals<readonly ["interrupt-restart", "native"]>;
|
|
1283
2629
|
}>, Schema.Struct<{
|
|
1284
2630
|
readonly method: Schema.Literal<"turn.wait">;
|
|
1285
2631
|
readonly satisfied: Schema.Boolean;
|