@maiaos/protocol 0.1.0-canary.8 → 0.1.0-canary.81
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 +203 -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 +194 -2
- package/dist/connection/effect-schema.d.ts.map +1 -1
- package/dist/connection/effect-schema.js +3 -0
- package/dist/connection/effect-schema.js.map +1 -1
- package/dist/connection/executors-effect-schema.d.ts +275 -0
- package/dist/connection/executors-effect-schema.d.ts.map +1 -0
- package/dist/connection/executors-effect-schema.js +80 -0
- package/dist/connection/executors-effect-schema.js.map +1 -0
- package/dist/connection/feature.d.ts +301 -10
- package/dist/connection/feature.d.ts.map +1 -1
- package/dist/connection/feature.js +381 -46
- package/dist/connection/feature.js.map +1 -1
- package/dist/connection/gateway-effect-schema.d.ts +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 +23 -4
- package/dist/connection/request-effect-schema.d.ts.map +1 -1
- package/dist/connection/request-effect-schema.js +42 -14
- package/dist/connection/request-effect-schema.js.map +1 -1
- package/dist/connection/result-effect-schema.d.ts +98 -6
- package/dist/connection/result-effect-schema.d.ts.map +1 -1
- package/dist/connection/result-effect-schema.js +4 -3
- package/dist/connection/result-effect-schema.js.map +1 -1
- package/dist/connection/system-effect-schema.d.ts +16 -0
- package/dist/connection/system-effect-schema.d.ts.map +1 -1
- package/dist/connection/system-effect-schema.js +5 -5
- package/dist/connection/system-effect-schema.js.map +1 -1
- package/dist/container/contract.d.ts +2 -0
- package/dist/container/contract.d.ts.map +1 -1
- package/dist/container/effect-schema.d.ts +4 -0
- package/dist/container/effect-schema.d.ts.map +1 -1
- package/dist/container/portfolio-feature.d.ts +286 -0
- package/dist/container/portfolio-feature.d.ts.map +1 -1
- package/dist/container/portfolio-feature.js +131 -0
- package/dist/container/portfolio-feature.js.map +1 -1
- package/dist/coordinator-tool/index.d.ts +1 -1
- package/dist/coordinator-tool/index.d.ts.map +1 -1
- package/dist/coordinator-tool/index.js +1 -1
- package/dist/coordinator-tool/index.js.map +1 -1
- package/dist/coordinator-tool/input-schema.d.ts +0 -7
- package/dist/coordinator-tool/input-schema.d.ts.map +1 -1
- package/dist/coordinator-tool/input-schema.js +0 -38
- package/dist/coordinator-tool/input-schema.js.map +1 -1
- package/dist/coordinator-tool/registry.d.ts +21 -0
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +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 +28 -0
- package/dist/executor/policy.d.ts.map +1 -0
- package/dist/executor/policy.js +49 -0
- package/dist/executor/policy.js.map +1 -0
- package/dist/feature/descriptor/descriptor.d.ts +42 -2
- package/dist/feature/descriptor/descriptor.d.ts.map +1 -1
- package/dist/feature/descriptor/descriptor.js.map +1 -1
- package/dist/feature/descriptor/index.d.ts +1 -1
- package/dist/feature/descriptor/index.d.ts.map +1 -1
- package/dist/feature/descriptor/index.js.map +1 -1
- package/dist/feature/index.d.ts +1 -1
- package/dist/feature/index.d.ts.map +1 -1
- package/dist/feature/index.js +1 -1
- package/dist/feature/index.js.map +1 -1
- package/dist/feature/node-status.d.ts +65 -1
- package/dist/feature/node-status.d.ts.map +1 -1
- package/dist/feature/node-status.js +59 -1
- package/dist/feature/node-status.js.map +1 -1
- package/dist/feature/registry.d.ts +59 -4
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +53 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/github/contract.d.ts +266 -0
- package/dist/github/contract.d.ts.map +1 -0
- package/dist/github/contract.js +30 -0
- package/dist/github/contract.js.map +1 -0
- package/dist/github/effect-schema.d.ts +488 -0
- package/dist/github/effect-schema.d.ts.map +1 -0
- package/dist/github/effect-schema.js +231 -0
- package/dist/github/effect-schema.js.map +1 -0
- package/dist/github/feature.d.ts +201 -0
- package/dist/github/feature.d.ts.map +1 -0
- package/dist/github/feature.js +195 -0
- package/dist/github/feature.js.map +1 -0
- package/dist/github/index.d.ts +3 -0
- package/dist/github/index.d.ts.map +1 -0
- package/dist/github/index.js +3 -0
- package/dist/github/index.js.map +1 -0
- package/dist/goal/contract.d.ts +449 -0
- package/dist/goal/contract.d.ts.map +1 -0
- package/dist/goal/contract.js +37 -0
- package/dist/goal/contract.js.map +1 -0
- package/dist/goal/effect-schema.d.ts +870 -0
- package/dist/goal/effect-schema.d.ts.map +1 -0
- package/dist/goal/effect-schema.js +349 -0
- package/dist/goal/effect-schema.js.map +1 -0
- package/dist/goal/feature.d.ts +256 -0
- package/dist/goal/feature.d.ts.map +1 -0
- package/dist/goal/feature.js +237 -0
- package/dist/goal/feature.js.map +1 -0
- package/dist/goal/index.d.ts +3 -0
- package/dist/goal/index.d.ts.map +1 -0
- package/dist/goal/index.js +3 -0
- package/dist/goal/index.js.map +1 -0
- package/dist/harness/installed/effect-schema.d.ts.map +1 -1
- package/dist/harness/installed/effect-schema.js +2 -1
- package/dist/harness/installed/effect-schema.js.map +1 -1
- package/dist/harness/installed/feature.d.ts +35 -0
- package/dist/harness/installed/feature.d.ts.map +1 -0
- package/dist/harness/installed/feature.js +39 -0
- package/dist/harness/installed/feature.js.map +1 -0
- package/dist/harness/installed/index.d.ts +1 -0
- package/dist/harness/installed/index.d.ts.map +1 -1
- package/dist/harness/installed/index.js +1 -0
- package/dist/harness/installed/index.js.map +1 -1
- package/dist/hold/contract.d.ts +2 -0
- package/dist/hold/contract.d.ts.map +1 -1
- package/dist/hold/effect-schema.d.ts +4 -0
- package/dist/hold/effect-schema.d.ts.map +1 -1
- package/dist/hold/feature.d.ts +155 -0
- package/dist/hold/feature.d.ts.map +1 -0
- package/dist/hold/feature.js +151 -0
- package/dist/hold/feature.js.map +1 -0
- package/dist/hold/index.d.ts +1 -0
- package/dist/hold/index.d.ts.map +1 -1
- package/dist/hold/index.js +1 -0
- package/dist/hold/index.js.map +1 -1
- package/dist/inbox/contract.d.ts +386 -0
- package/dist/inbox/contract.d.ts.map +1 -0
- package/dist/inbox/contract.js +20 -0
- package/dist/inbox/contract.js.map +1 -0
- package/dist/inbox/effect-schema.d.ts +750 -0
- package/dist/inbox/effect-schema.d.ts.map +1 -0
- package/dist/inbox/effect-schema.js +246 -0
- package/dist/inbox/effect-schema.js.map +1 -0
- package/dist/inbox/feature.d.ts +164 -0
- package/dist/inbox/feature.d.ts.map +1 -0
- package/dist/inbox/feature.js +160 -0
- package/dist/inbox/feature.js.map +1 -0
- package/dist/inbox/index.d.ts +3 -0
- package/dist/inbox/index.d.ts.map +1 -0
- package/dist/inbox/index.js +3 -0
- package/dist/inbox/index.js.map +1 -0
- package/dist/index.d.ts +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 +141 -12
- package/dist/integration-authorization/contract.d.ts.map +1 -1
- package/dist/integration-authorization/contract.js +37 -1
- package/dist/integration-authorization/contract.js.map +1 -1
- package/dist/integration-authorization/effect-schema.d.ts +5961 -1583
- package/dist/integration-authorization/effect-schema.d.ts.map +1 -1
- package/dist/integration-authorization/effect-schema.js +157 -6
- package/dist/integration-authorization/effect-schema.js.map +1 -1
- package/dist/integration-authorization/feature.d.ts +845 -0
- package/dist/integration-authorization/feature.d.ts.map +1 -0
- package/dist/integration-authorization/feature.js +795 -0
- package/dist/integration-authorization/feature.js.map +1 -0
- package/dist/integration-authorization/index.d.ts +5 -0
- package/dist/integration-authorization/index.d.ts.map +1 -1
- package/dist/integration-authorization/index.js +5 -0
- package/dist/integration-authorization/index.js.map +1 -1
- package/dist/integration-authorization/pi-rpc-contract.d.ts +3 -0
- package/dist/integration-authorization/pi-rpc-contract.d.ts.map +1 -1
- package/dist/integration-authorization/policy.d.ts +6 -1
- package/dist/integration-authorization/policy.d.ts.map +1 -1
- package/dist/integration-authorization/policy.js +6 -1
- package/dist/integration-authorization/policy.js.map +1 -1
- package/dist/interaction/effect-schema.d.ts +1 -1
- package/dist/interaction/effect-schema.d.ts.map +1 -1
- package/dist/interaction/effect-schema.js +1 -1
- package/dist/interaction/effect-schema.js.map +1 -1
- package/dist/interaction/feature.d.ts +50 -0
- package/dist/interaction/feature.d.ts.map +1 -1
- package/dist/interaction/feature.js +48 -0
- package/dist/interaction/feature.js.map +1 -1
- package/dist/interaction/result-contract.d.ts +3 -0
- package/dist/interaction/result-contract.d.ts.map +1 -1
- package/dist/interaction/result-effect-schema.d.ts +6 -0
- package/dist/interaction/result-effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/contract.d.ts +2 -1
- package/dist/invocation-context/contract.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.d.ts +12 -2
- package/dist/invocation-context/effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.js +24 -3
- package/dist/invocation-context/effect-schema.js.map +1 -1
- package/dist/invocation-context/feature.d.ts +35 -0
- package/dist/invocation-context/feature.d.ts.map +1 -0
- package/dist/invocation-context/feature.js +39 -0
- package/dist/invocation-context/feature.js.map +1 -0
- package/dist/invocation-context/index.d.ts +1 -0
- package/dist/invocation-context/index.d.ts.map +1 -1
- package/dist/invocation-context/index.js +1 -0
- package/dist/invocation-context/index.js.map +1 -1
- package/dist/invocation-context/policy.d.ts +6 -1
- package/dist/invocation-context/policy.d.ts.map +1 -1
- package/dist/invocation-context/policy.js +7 -1
- package/dist/invocation-context/policy.js.map +1 -1
- package/dist/local-node/contract.d.ts +57 -18
- package/dist/local-node/contract.d.ts.map +1 -1
- package/dist/local-node/contract.js +3 -1
- package/dist/local-node/contract.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +3943 -1287
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +125 -10
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/index.d.ts +2 -2
- package/dist/local-node/index.d.ts.map +1 -1
- package/dist/local-node/index.js +2 -2
- package/dist/local-node/index.js.map +1 -1
- package/dist/local-node/node-api/index.d.ts +2 -2
- package/dist/local-node/node-api/index.d.ts.map +1 -1
- package/dist/local-node/node-api/index.js +2 -2
- package/dist/local-node/node-api/index.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +11 -215
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +149 -215
- package/dist/local-node/node-api/methods.js.map +1 -1
- package/dist/local-node/node-api/policy.d.ts +33 -0
- package/dist/local-node/node-api/policy.d.ts.map +1 -1
- package/dist/local-node/node-api/policy.js +33 -0
- package/dist/local-node/node-api/policy.js.map +1 -1
- package/dist/local-node/receipt-list.d.ts +6 -7
- package/dist/local-node/receipt-list.d.ts.map +1 -1
- package/dist/local-node/receipt-list.js +64 -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 +968 -82
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/contract.js +33 -4
- package/dist/session/contract.js.map +1 -1
- package/dist/session/defaults/contract.d.ts +19 -0
- package/dist/session/defaults/contract.d.ts.map +1 -0
- package/dist/session/defaults/contract.js +5 -0
- package/dist/session/defaults/contract.js.map +1 -0
- package/dist/session/defaults/effect-schema.d.ts +36 -0
- package/dist/session/defaults/effect-schema.d.ts.map +1 -0
- package/dist/session/defaults/effect-schema.js +28 -0
- package/dist/session/defaults/effect-schema.js.map +1 -0
- package/dist/session/defaults/index.d.ts +2 -0
- package/dist/session/defaults/index.d.ts.map +1 -0
- package/dist/session/defaults/index.js +2 -0
- package/dist/session/defaults/index.js.map +1 -0
- package/dist/session/effect-schema.d.ts +2844 -159
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +581 -52
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +801 -16
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +761 -24
- package/dist/session/feature.js.map +1 -1
- package/dist/session/index.d.ts +6 -3
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +6 -3
- package/dist/session/index.js.map +1 -1
- package/dist/session/observation-contract.d.ts +2 -2
- package/dist/session/observation-effect-schema.d.ts +7 -2
- package/dist/session/observation-effect-schema.d.ts.map +1 -1
- package/dist/session/observation-effect-schema.js +6 -1
- package/dist/session/observation-effect-schema.js.map +1 -1
- package/dist/session/placement/contract.d.ts +35 -0
- package/dist/session/placement/contract.d.ts.map +1 -0
- package/dist/session/placement/contract.js +5 -0
- package/dist/session/placement/contract.js.map +1 -0
- package/dist/session/placement/effect-schema.d.ts +55 -0
- package/dist/session/placement/effect-schema.d.ts.map +1 -0
- package/dist/session/placement/effect-schema.js +76 -0
- package/dist/session/placement/effect-schema.js.map +1 -0
- package/dist/session/placement/index.d.ts +2 -0
- package/dist/session/placement/index.d.ts.map +1 -0
- package/dist/session/placement/index.js +2 -0
- package/dist/session/placement/index.js.map +1 -0
- package/dist/session/policy.d.ts +157 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +185 -2
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +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
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
import { SESSION_EFFORT_LEVELS } from "./policy.js";
|
|
3
2
|
/**
|
|
4
3
|
* A person-readable Session name: one line of 1 to 80 characters without
|
|
5
4
|
* surrounding spaces. Titles need not be unique; a reference to one fails
|
|
6
5
|
* when it matches more than one Session.
|
|
7
6
|
*/
|
|
8
7
|
export declare const sessionTitleEffectSchema: Schema.String;
|
|
8
|
+
/**
|
|
9
|
+
* Up to 8 labels that tell a person or a bot which lane a Session belongs to
|
|
10
|
+
* (owner, lane, goal). A key is a lower-case name of up to 32 characters; a
|
|
11
|
+
* value is 1 to 64 printable ASCII characters without spaces or commas. A
|
|
12
|
+
* label is not a place for secrets: it shows in every Session list.
|
|
13
|
+
*/
|
|
14
|
+
export declare const sessionLabelsEffectSchema: Schema.$Record<Schema.String, Schema.String>;
|
|
9
15
|
/** 1 to 100 items. */
|
|
10
16
|
export declare const pageSizeEffectSchema: Schema.Int;
|
|
11
|
-
export declare const
|
|
12
|
-
/** The Node issues an Agent's identifier when a person previews its creation. */
|
|
13
|
-
export declare const agentIdentifierEffectSchema: Schema.String;
|
|
17
|
+
export declare const sessionStateEffectSchema: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
14
18
|
export declare const sessionEffortEffectSchema: Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>;
|
|
15
|
-
export declare const supportsEffort: (kind:
|
|
19
|
+
export declare const supportsEffort: (kind: string, effort: string) => boolean;
|
|
20
|
+
/** A permission mode either vendor CLI documents; the Node checks it against the Session's executor kind. */
|
|
21
|
+
export declare const sessionPermissionEffectSchema: Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>;
|
|
22
|
+
export declare const supportsPermission: (kind: string, permission: string) => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Creation binds a vendor executor Session to one named account, once. A
|
|
25
|
+
* Session may also fix its model, on a gateway Connection or an executor kind
|
|
26
|
+
* that takes one, and the effort its vendor CLI documents.
|
|
27
|
+
*/
|
|
28
|
+
export declare const sessionExecutorEffectSchema: Schema.Struct<{
|
|
29
|
+
readonly connectionId: Schema.String;
|
|
30
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
31
|
+
readonly kind: Schema.String;
|
|
32
|
+
readonly model: Schema.optional<Schema.String>;
|
|
33
|
+
}>;
|
|
16
34
|
export declare const sessionEffectSchema: Schema.Struct<{
|
|
17
35
|
readonly createdAt: Schema.String;
|
|
18
36
|
readonly id: Schema.String;
|
|
@@ -22,15 +40,23 @@ export declare const sessionEffectSchema: Schema.Struct<{
|
|
|
22
40
|
readonly updatedAt: Schema.String;
|
|
23
41
|
readonly workspaceId: Schema.String;
|
|
24
42
|
readonly workspaceRevision: Schema.String;
|
|
43
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
44
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
25
45
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
26
46
|
readonly contentDigest: Schema.String;
|
|
27
47
|
readonly key: Schema.String;
|
|
28
48
|
readonly version: Schema.String;
|
|
29
49
|
}>>;
|
|
50
|
+
/**
|
|
51
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
52
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
53
|
+
* A sandboxed Session carries none.
|
|
54
|
+
*/
|
|
55
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
30
56
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
31
57
|
readonly connectionId: Schema.String;
|
|
32
58
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
33
|
-
readonly kind: Schema.
|
|
59
|
+
readonly kind: Schema.String;
|
|
34
60
|
readonly model: Schema.optional<Schema.String>;
|
|
35
61
|
}>>;
|
|
36
62
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -38,7 +64,61 @@ export declare const sessionEffectSchema: Schema.Struct<{
|
|
|
38
64
|
readonly code: Schema.String;
|
|
39
65
|
readonly message: Schema.String;
|
|
40
66
|
}>>;
|
|
67
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
68
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
69
|
+
/**
|
|
70
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
71
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
72
|
+
*/
|
|
73
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
74
|
+
readonly claimedAt: Schema.String;
|
|
75
|
+
readonly id: Schema.String;
|
|
76
|
+
readonly leaseExpiresAt: Schema.String;
|
|
77
|
+
readonly state: Schema.Literal<"claimed">;
|
|
78
|
+
readonly title: Schema.String;
|
|
79
|
+
}>>>;
|
|
80
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
81
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
82
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
83
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
84
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
85
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
86
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
87
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
88
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
89
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
90
|
+
/**
|
|
91
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
92
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
93
|
+
* one of the two and never otherwise: a `question` names a question
|
|
94
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
95
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
96
|
+
* it.
|
|
97
|
+
*/
|
|
98
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
99
|
+
readonly approvalId: Schema.String;
|
|
100
|
+
readonly expiresAt: Schema.String;
|
|
101
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
102
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
103
|
+
readonly label: Schema.String;
|
|
104
|
+
readonly optionId: Schema.String;
|
|
105
|
+
}>>>;
|
|
106
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
107
|
+
}>>;
|
|
108
|
+
/**
|
|
109
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
110
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
111
|
+
* every other state.
|
|
112
|
+
*/
|
|
113
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
114
|
+
readonly code: Schema.String;
|
|
115
|
+
readonly message: Schema.String;
|
|
116
|
+
}>>;
|
|
41
117
|
readonly schemaVersion: Schema.Literal<4>;
|
|
118
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
119
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
120
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
121
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
42
122
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
43
123
|
readonly title: Schema.optional<Schema.String>;
|
|
44
124
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -69,13 +149,21 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
69
149
|
readonly key: Schema.String;
|
|
70
150
|
readonly version: Schema.String;
|
|
71
151
|
}>>;
|
|
152
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
153
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
154
|
+
/** `none` when the Session runs with host authority. */
|
|
155
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
156
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
157
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
72
158
|
/** The account the Session binds to, named or picked by the Node. */
|
|
73
159
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
74
160
|
readonly connectionId: Schema.String;
|
|
75
161
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
76
|
-
readonly kind: Schema.
|
|
162
|
+
readonly kind: Schema.String;
|
|
77
163
|
readonly model: Schema.optional<Schema.String>;
|
|
78
164
|
}>>;
|
|
165
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
166
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
79
167
|
readonly projectId: Schema.String;
|
|
80
168
|
readonly workspaceId: Schema.String;
|
|
81
169
|
readonly workspaceRevision: Schema.String;
|
|
@@ -119,6 +207,20 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
119
207
|
readonly schemaVersion: Schema.Literal<4>;
|
|
120
208
|
readonly sessionCursor: Schema.String;
|
|
121
209
|
readonly sessionId: Schema.String;
|
|
210
|
+
}>, Schema.Struct<{
|
|
211
|
+
readonly commandId: Schema.String;
|
|
212
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
213
|
+
readonly globalCursor: Schema.String;
|
|
214
|
+
readonly payload: Schema.Struct<{
|
|
215
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
216
|
+
readonly code: Schema.String;
|
|
217
|
+
readonly message: Schema.String;
|
|
218
|
+
}>>;
|
|
219
|
+
}>;
|
|
220
|
+
readonly recordedAt: Schema.String;
|
|
221
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
222
|
+
readonly sessionCursor: Schema.String;
|
|
223
|
+
readonly sessionId: Schema.String;
|
|
122
224
|
}>, Schema.Struct<{
|
|
123
225
|
readonly commandId: Schema.String;
|
|
124
226
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -276,9 +378,13 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
276
378
|
* both `connectionId` and `executor`, and optionally the `model`. An Agent
|
|
277
379
|
* (`agentId`) supplies the harness, Connection, model and effort itself, so it
|
|
278
380
|
* excludes every one of them. `role` (default `worker`) bounds what the
|
|
279
|
-
* Session's own credential reaches.
|
|
280
|
-
*
|
|
281
|
-
*
|
|
381
|
+
* Session's own credential reaches. `hostAuthority` opts one executor Session
|
|
382
|
+
* out of the Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)): it
|
|
383
|
+
* runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
|
|
384
|
+
* role, and passes `permission` to its vendor CLI unchanged. A vendor
|
|
385
|
+
* executor Session with `worktree` is a coding Session: it gets its own
|
|
386
|
+
* worktree from the base ref of the Workspace's repository and may write
|
|
387
|
+
* inside it.
|
|
282
388
|
*/
|
|
283
389
|
export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
284
390
|
readonly commandId: Schema.String;
|
|
@@ -286,53 +392,57 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
286
392
|
readonly workspaceId: Schema.String;
|
|
287
393
|
readonly agentId: Schema.optional<Schema.String>;
|
|
288
394
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
395
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
396
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
289
397
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
290
398
|
readonly contentDigest: Schema.String;
|
|
291
399
|
readonly key: Schema.String;
|
|
292
400
|
readonly version: Schema.String;
|
|
293
401
|
}>>;
|
|
294
402
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
295
|
-
readonly executor: Schema.optional<Schema.
|
|
403
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
404
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
405
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
296
406
|
readonly model: Schema.optional<Schema.String>;
|
|
407
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
297
408
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
298
409
|
readonly title: Schema.optional<Schema.String>;
|
|
299
410
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
300
411
|
readonly baseRef: Schema.String;
|
|
412
|
+
readonly branch: Schema.optional<Schema.String>;
|
|
301
413
|
}>>;
|
|
302
414
|
}>;
|
|
303
|
-
export declare const sessionSpawnParametersEffectSchema: Schema.Struct<{
|
|
304
|
-
readonly commandId: Schema.String;
|
|
305
|
-
readonly expectedRevision: Schema.Literal<"0">;
|
|
306
|
-
readonly workspaceId: Schema.String;
|
|
307
|
-
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
308
|
-
readonly contentDigest: Schema.String;
|
|
309
|
-
readonly key: Schema.String;
|
|
310
|
-
readonly version: Schema.String;
|
|
311
|
-
}>>;
|
|
312
|
-
readonly harness: Schema.Literals<readonly ["maia-agent", "pi"]>;
|
|
313
|
-
readonly parentSessionId: Schema.String;
|
|
314
|
-
}>;
|
|
315
415
|
/**
|
|
316
416
|
* One page of Sessions in creation order: of one Project, or of the whole
|
|
317
417
|
* Node without `projectId`; without `afterCursor` the first page and without
|
|
318
418
|
* `limit` `DEFAULT_SESSION_LIST_PAGE_SIZE` Sessions. `states` keeps Sessions
|
|
319
419
|
* in those states; `attention` keeps Sessions the Node reports an attention
|
|
320
|
-
* value for.
|
|
420
|
+
* value for; `parentSessionId` keeps the direct children of that Session.
|
|
321
421
|
*/
|
|
322
422
|
export declare const sessionListParametersEffectSchema: Schema.Struct<{
|
|
323
423
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
324
424
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
425
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
426
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
427
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
428
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
325
429
|
readonly limit: Schema.optional<Schema.Int>;
|
|
430
|
+
/** Keeps the direct children of this Session; an unknown Session has none. */
|
|
431
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
326
432
|
readonly projectId: Schema.optional<Schema.String>;
|
|
433
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
434
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
327
435
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
328
436
|
}>;
|
|
329
437
|
export declare const sessionShowParametersEffectSchema: Schema.Struct<{
|
|
330
438
|
readonly sessionId: Schema.String;
|
|
331
439
|
}>;
|
|
332
440
|
export declare const sessionWaitParametersEffectSchema: Schema.Struct<{
|
|
441
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
442
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
333
443
|
readonly sessionId: Schema.String;
|
|
334
444
|
/** The wait ends when the Session is in any of these states. */
|
|
335
|
-
readonly states: Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]
|
|
445
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
336
446
|
readonly waitMilliseconds: Schema.Int;
|
|
337
447
|
}>;
|
|
338
448
|
export declare const sessionEventsListParametersEffectSchema: Schema.Struct<{
|
|
@@ -345,6 +455,342 @@ export declare const sessionStartParametersEffectSchema: Schema.Struct<{
|
|
|
345
455
|
readonly expectedRevision: Schema.String;
|
|
346
456
|
readonly sessionId: Schema.String;
|
|
347
457
|
}>;
|
|
458
|
+
/** A fork stops at a completed turn of the Session; without `turnId` it takes the newest one. */
|
|
459
|
+
export declare const sessionForkPreviewParametersEffectSchema: Schema.Struct<{
|
|
460
|
+
readonly commandId: Schema.String;
|
|
461
|
+
readonly sessionId: Schema.String;
|
|
462
|
+
readonly turnId: Schema.optional<Schema.String>;
|
|
463
|
+
}>;
|
|
464
|
+
export declare const sessionForkConfirmParametersEffectSchema: Schema.Struct<{
|
|
465
|
+
inputDigest: Schema.String;
|
|
466
|
+
proof: Schema.String;
|
|
467
|
+
validUntil: Schema.String;
|
|
468
|
+
checkpoint: Schema.optional<Schema.String>;
|
|
469
|
+
commandId: Schema.String;
|
|
470
|
+
expectedRevision: Schema.String;
|
|
471
|
+
sessionId: Schema.String;
|
|
472
|
+
turnId: Schema.String;
|
|
473
|
+
}>;
|
|
474
|
+
export declare const sessionSwitchPreviewParametersEffectSchema: Schema.Struct<{
|
|
475
|
+
readonly commandId: Schema.String;
|
|
476
|
+
readonly sessionId: Schema.String;
|
|
477
|
+
readonly target: Schema.Struct<{
|
|
478
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
479
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
480
|
+
readonly model: Schema.optional<Schema.String>;
|
|
481
|
+
}>;
|
|
482
|
+
}>;
|
|
483
|
+
export declare const sessionSwitchConfirmParametersEffectSchema: Schema.Struct<{
|
|
484
|
+
inputDigest: Schema.String;
|
|
485
|
+
proof: Schema.String;
|
|
486
|
+
validUntil: Schema.String;
|
|
487
|
+
commandId: Schema.String;
|
|
488
|
+
expectedRevision: Schema.String;
|
|
489
|
+
sessionId: Schema.String;
|
|
490
|
+
target: Schema.Struct<{
|
|
491
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
492
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
493
|
+
readonly model: Schema.optional<Schema.String>;
|
|
494
|
+
}>;
|
|
495
|
+
}>;
|
|
496
|
+
export declare const sessionSetupPreviewParametersEffectSchema: Schema.Struct<{
|
|
497
|
+
readonly commandId: Schema.String;
|
|
498
|
+
readonly sessionId: Schema.String;
|
|
499
|
+
}>;
|
|
500
|
+
export declare const sessionSetupConfirmParametersEffectSchema: Schema.Struct<{
|
|
501
|
+
inputDigest: Schema.String;
|
|
502
|
+
proof: Schema.String;
|
|
503
|
+
validUntil: Schema.String;
|
|
504
|
+
commandId: Schema.String;
|
|
505
|
+
expectedRevision: Schema.String;
|
|
506
|
+
sessionId: Schema.String;
|
|
507
|
+
setupDigest: Schema.String;
|
|
508
|
+
}>;
|
|
509
|
+
/** The three numbers a Node holds every spawned child to (CAP). */
|
|
510
|
+
export declare const sessionSpawnCapsEffectSchema: Schema.Struct<{
|
|
511
|
+
readonly concurrency: Schema.Int;
|
|
512
|
+
readonly depth: Schema.Int;
|
|
513
|
+
readonly fanOut: Schema.Int;
|
|
514
|
+
}>;
|
|
515
|
+
/** Revision `0` is the defaults of a Node whose caps no person has changed. */
|
|
516
|
+
export declare const sessionSpawnCapsRecordEffectSchema: Schema.Struct<{
|
|
517
|
+
readonly caps: Schema.Struct<{
|
|
518
|
+
readonly concurrency: Schema.Int;
|
|
519
|
+
readonly depth: Schema.Int;
|
|
520
|
+
readonly fanOut: Schema.Int;
|
|
521
|
+
}>;
|
|
522
|
+
readonly revision: Schema.String;
|
|
523
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
524
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
525
|
+
}>;
|
|
526
|
+
/** A parent's children: every one it spawned (`total`), and those that have not ended (`live`). */
|
|
527
|
+
export declare const sessionSpawnChildrenEffectSchema: Schema.Struct<{
|
|
528
|
+
readonly live: Schema.Int;
|
|
529
|
+
readonly total: Schema.Int;
|
|
530
|
+
}>;
|
|
531
|
+
/** A Session's spawn depth: the spawns between it and the Session at the root of its tree, which has depth 0. */
|
|
532
|
+
export declare const sessionSpawnDepthEffectSchema: Schema.Int;
|
|
533
|
+
export declare const sessionSpawnCapsShowParametersEffectSchema: Schema.Struct<{
|
|
534
|
+
readonly sessionId: Schema.optional<Schema.String>;
|
|
535
|
+
}>;
|
|
536
|
+
/**
|
|
537
|
+
* What one Session uses of the caps on this Node: its children here, and its
|
|
538
|
+
* depth and role when this Node holds it. A client adds the children of every
|
|
539
|
+
* Node; an orchestrator's children all live on its own Node (D-346).
|
|
540
|
+
*/
|
|
541
|
+
export declare const sessionSpawnStandingEffectSchema: Schema.Struct<{
|
|
542
|
+
readonly children: Schema.Struct<{
|
|
543
|
+
readonly live: Schema.Int;
|
|
544
|
+
readonly total: Schema.Int;
|
|
545
|
+
}>;
|
|
546
|
+
readonly depth: Schema.optional<Schema.Int>;
|
|
547
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
548
|
+
readonly sessionId: Schema.String;
|
|
549
|
+
}>;
|
|
550
|
+
export declare const sessionSpawnCapsShowResultEffectSchema: Schema.Struct<{
|
|
551
|
+
readonly caps: Schema.Struct<{
|
|
552
|
+
readonly caps: Schema.Struct<{
|
|
553
|
+
readonly concurrency: Schema.Int;
|
|
554
|
+
readonly depth: Schema.Int;
|
|
555
|
+
readonly fanOut: Schema.Int;
|
|
556
|
+
}>;
|
|
557
|
+
readonly revision: Schema.String;
|
|
558
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
559
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
560
|
+
}>;
|
|
561
|
+
readonly method: Schema.Literal<"session.spawn-caps.show">;
|
|
562
|
+
readonly standing: Schema.optional<Schema.Struct<{
|
|
563
|
+
readonly children: Schema.Struct<{
|
|
564
|
+
readonly live: Schema.Int;
|
|
565
|
+
readonly total: Schema.Int;
|
|
566
|
+
}>;
|
|
567
|
+
readonly depth: Schema.optional<Schema.Int>;
|
|
568
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
569
|
+
readonly sessionId: Schema.String;
|
|
570
|
+
}>>;
|
|
571
|
+
}>;
|
|
572
|
+
/** A person previews new caps at the revision they read, then confirms that exact preview. */
|
|
573
|
+
export declare const sessionSpawnCapsPreviewParametersEffectSchema: Schema.Struct<{
|
|
574
|
+
caps: Schema.Struct<{
|
|
575
|
+
readonly concurrency: Schema.Int;
|
|
576
|
+
readonly depth: Schema.Int;
|
|
577
|
+
readonly fanOut: Schema.Int;
|
|
578
|
+
}>;
|
|
579
|
+
commandId: Schema.String;
|
|
580
|
+
expectedRevision: Schema.String;
|
|
581
|
+
}>;
|
|
582
|
+
export declare const sessionSpawnCapsConfirmParametersEffectSchema: Schema.Struct<{
|
|
583
|
+
readonly caps: Schema.Struct<{
|
|
584
|
+
readonly concurrency: Schema.Int;
|
|
585
|
+
readonly depth: Schema.Int;
|
|
586
|
+
readonly fanOut: Schema.Int;
|
|
587
|
+
}>;
|
|
588
|
+
readonly commandId: Schema.String;
|
|
589
|
+
readonly expectedRevision: Schema.String;
|
|
590
|
+
readonly inputDigest: Schema.String;
|
|
591
|
+
readonly proof: Schema.String;
|
|
592
|
+
readonly validUntil: Schema.String;
|
|
593
|
+
}>;
|
|
594
|
+
/** The caps now and the caps the confirmation would leave, sealed for it. */
|
|
595
|
+
export declare const sessionSpawnCapsPreviewResultEffectSchema: Schema.Struct<{
|
|
596
|
+
readonly caps: Schema.Struct<{
|
|
597
|
+
readonly concurrency: Schema.Int;
|
|
598
|
+
readonly depth: Schema.Int;
|
|
599
|
+
readonly fanOut: Schema.Int;
|
|
600
|
+
}>;
|
|
601
|
+
readonly commandId: Schema.String;
|
|
602
|
+
readonly expectedRevision: Schema.String;
|
|
603
|
+
readonly inputDigest: Schema.String;
|
|
604
|
+
readonly proof: Schema.String;
|
|
605
|
+
readonly validUntil: Schema.String;
|
|
606
|
+
readonly current: Schema.Struct<{
|
|
607
|
+
readonly caps: Schema.Struct<{
|
|
608
|
+
readonly concurrency: Schema.Int;
|
|
609
|
+
readonly depth: Schema.Int;
|
|
610
|
+
readonly fanOut: Schema.Int;
|
|
611
|
+
}>;
|
|
612
|
+
readonly revision: Schema.String;
|
|
613
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
614
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
615
|
+
}>;
|
|
616
|
+
readonly method: Schema.Literal<"session.spawn-caps.preview">;
|
|
617
|
+
}>;
|
|
618
|
+
export declare const sessionSpawnCapsConfirmResultEffectSchema: Schema.Struct<{
|
|
619
|
+
readonly caps: Schema.Struct<{
|
|
620
|
+
readonly caps: Schema.Struct<{
|
|
621
|
+
readonly concurrency: Schema.Int;
|
|
622
|
+
readonly depth: Schema.Int;
|
|
623
|
+
readonly fanOut: Schema.Int;
|
|
624
|
+
}>;
|
|
625
|
+
readonly revision: Schema.String;
|
|
626
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
627
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
628
|
+
}>;
|
|
629
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
630
|
+
readonly method: Schema.Literal<"session.spawn-caps.confirm">;
|
|
631
|
+
readonly receipt: Schema.Struct<{
|
|
632
|
+
readonly actorId: Schema.String;
|
|
633
|
+
readonly aggregateRevision: Schema.String;
|
|
634
|
+
readonly commandId: Schema.String;
|
|
635
|
+
readonly createdAt: Schema.String;
|
|
636
|
+
readonly eventCursor: Schema.String;
|
|
637
|
+
readonly method: Schema.String;
|
|
638
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
639
|
+
readonly receiptId: Schema.String;
|
|
640
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
641
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
642
|
+
readonly target: Schema.Struct<{
|
|
643
|
+
readonly id: Schema.String;
|
|
644
|
+
readonly type: Schema.String;
|
|
645
|
+
}>;
|
|
646
|
+
readonly updatedAt: Schema.String;
|
|
647
|
+
}>;
|
|
648
|
+
}>;
|
|
649
|
+
export declare const sessionSpawnCapsRequestEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
650
|
+
readonly method: Schema.Literal<"session.spawn-caps.show">;
|
|
651
|
+
readonly parameters: Schema.Struct<{
|
|
652
|
+
readonly sessionId: Schema.optional<Schema.String>;
|
|
653
|
+
}>;
|
|
654
|
+
}>, Schema.Struct<{
|
|
655
|
+
readonly method: Schema.Literal<"session.spawn-caps.preview">;
|
|
656
|
+
readonly parameters: Schema.Struct<{
|
|
657
|
+
caps: Schema.Struct<{
|
|
658
|
+
readonly concurrency: Schema.Int;
|
|
659
|
+
readonly depth: Schema.Int;
|
|
660
|
+
readonly fanOut: Schema.Int;
|
|
661
|
+
}>;
|
|
662
|
+
commandId: Schema.String;
|
|
663
|
+
expectedRevision: Schema.String;
|
|
664
|
+
}>;
|
|
665
|
+
}>, Schema.Struct<{
|
|
666
|
+
readonly method: Schema.Literal<"session.spawn-caps.confirm">;
|
|
667
|
+
readonly parameters: Schema.Struct<{
|
|
668
|
+
readonly caps: Schema.Struct<{
|
|
669
|
+
readonly concurrency: Schema.Int;
|
|
670
|
+
readonly depth: Schema.Int;
|
|
671
|
+
readonly fanOut: Schema.Int;
|
|
672
|
+
}>;
|
|
673
|
+
readonly commandId: Schema.String;
|
|
674
|
+
readonly expectedRevision: Schema.String;
|
|
675
|
+
readonly inputDigest: Schema.String;
|
|
676
|
+
readonly proof: Schema.String;
|
|
677
|
+
readonly validUntil: Schema.String;
|
|
678
|
+
}>;
|
|
679
|
+
}>]>;
|
|
680
|
+
export declare const sessionSpawnCapsResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
681
|
+
readonly caps: Schema.Struct<{
|
|
682
|
+
readonly caps: Schema.Struct<{
|
|
683
|
+
readonly concurrency: Schema.Int;
|
|
684
|
+
readonly depth: Schema.Int;
|
|
685
|
+
readonly fanOut: Schema.Int;
|
|
686
|
+
}>;
|
|
687
|
+
readonly revision: Schema.String;
|
|
688
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
689
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
690
|
+
}>;
|
|
691
|
+
readonly method: Schema.Literal<"session.spawn-caps.show">;
|
|
692
|
+
readonly standing: Schema.optional<Schema.Struct<{
|
|
693
|
+
readonly children: Schema.Struct<{
|
|
694
|
+
readonly live: Schema.Int;
|
|
695
|
+
readonly total: Schema.Int;
|
|
696
|
+
}>;
|
|
697
|
+
readonly depth: Schema.optional<Schema.Int>;
|
|
698
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
699
|
+
readonly sessionId: Schema.String;
|
|
700
|
+
}>>;
|
|
701
|
+
}>, Schema.Struct<{
|
|
702
|
+
readonly caps: Schema.Struct<{
|
|
703
|
+
readonly concurrency: Schema.Int;
|
|
704
|
+
readonly depth: Schema.Int;
|
|
705
|
+
readonly fanOut: Schema.Int;
|
|
706
|
+
}>;
|
|
707
|
+
readonly commandId: Schema.String;
|
|
708
|
+
readonly expectedRevision: Schema.String;
|
|
709
|
+
readonly inputDigest: Schema.String;
|
|
710
|
+
readonly proof: Schema.String;
|
|
711
|
+
readonly validUntil: Schema.String;
|
|
712
|
+
readonly current: Schema.Struct<{
|
|
713
|
+
readonly caps: Schema.Struct<{
|
|
714
|
+
readonly concurrency: Schema.Int;
|
|
715
|
+
readonly depth: Schema.Int;
|
|
716
|
+
readonly fanOut: Schema.Int;
|
|
717
|
+
}>;
|
|
718
|
+
readonly revision: Schema.String;
|
|
719
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
720
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
721
|
+
}>;
|
|
722
|
+
readonly method: Schema.Literal<"session.spawn-caps.preview">;
|
|
723
|
+
}>, Schema.Struct<{
|
|
724
|
+
readonly caps: Schema.Struct<{
|
|
725
|
+
readonly caps: Schema.Struct<{
|
|
726
|
+
readonly concurrency: Schema.Int;
|
|
727
|
+
readonly depth: Schema.Int;
|
|
728
|
+
readonly fanOut: Schema.Int;
|
|
729
|
+
}>;
|
|
730
|
+
readonly revision: Schema.String;
|
|
731
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
732
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
733
|
+
}>;
|
|
734
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
735
|
+
readonly method: Schema.Literal<"session.spawn-caps.confirm">;
|
|
736
|
+
readonly receipt: Schema.Struct<{
|
|
737
|
+
readonly actorId: Schema.String;
|
|
738
|
+
readonly aggregateRevision: Schema.String;
|
|
739
|
+
readonly commandId: Schema.String;
|
|
740
|
+
readonly createdAt: Schema.String;
|
|
741
|
+
readonly eventCursor: Schema.String;
|
|
742
|
+
readonly method: Schema.String;
|
|
743
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
744
|
+
readonly receiptId: Schema.String;
|
|
745
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
746
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
747
|
+
readonly target: Schema.Struct<{
|
|
748
|
+
readonly id: Schema.String;
|
|
749
|
+
readonly type: Schema.String;
|
|
750
|
+
}>;
|
|
751
|
+
readonly updatedAt: Schema.String;
|
|
752
|
+
}>;
|
|
753
|
+
}>]>;
|
|
754
|
+
export declare const sessionSpawnPreviewParametersEffectSchema: Schema.Struct<{
|
|
755
|
+
commandId: Schema.String;
|
|
756
|
+
executor: Schema.String;
|
|
757
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
758
|
+
parent: Schema.Struct<{
|
|
759
|
+
readonly children: Schema.Struct<{
|
|
760
|
+
readonly live: Schema.Int;
|
|
761
|
+
readonly total: Schema.Int;
|
|
762
|
+
}>;
|
|
763
|
+
readonly depth: Schema.Int;
|
|
764
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
765
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
766
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
767
|
+
readonly sessionId: Schema.String;
|
|
768
|
+
}>;
|
|
769
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
770
|
+
workspaceId: Schema.String;
|
|
771
|
+
}>;
|
|
772
|
+
export declare const sessionSpawnConfirmParametersEffectSchema: Schema.Struct<{
|
|
773
|
+
inputDigest: Schema.String;
|
|
774
|
+
proof: Schema.String;
|
|
775
|
+
validUntil: Schema.String;
|
|
776
|
+
commandId: Schema.String;
|
|
777
|
+
executor: Schema.String;
|
|
778
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
779
|
+
parent: Schema.Struct<{
|
|
780
|
+
readonly children: Schema.Struct<{
|
|
781
|
+
readonly live: Schema.Int;
|
|
782
|
+
readonly total: Schema.Int;
|
|
783
|
+
}>;
|
|
784
|
+
readonly depth: Schema.Int;
|
|
785
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
786
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
787
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
788
|
+
readonly sessionId: Schema.String;
|
|
789
|
+
}>;
|
|
790
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
791
|
+
workspaceId: Schema.String;
|
|
792
|
+
expectedRevision: Schema.Literal<"0">;
|
|
793
|
+
}>;
|
|
348
794
|
/** A new title at the Session's current revision. */
|
|
349
795
|
export declare const sessionRenameParametersEffectSchema: Schema.Struct<{
|
|
350
796
|
readonly commandId: Schema.String;
|
|
@@ -352,16 +798,24 @@ export declare const sessionRenameParametersEffectSchema: Schema.Struct<{
|
|
|
352
798
|
readonly sessionId: Schema.String;
|
|
353
799
|
readonly title: Schema.String;
|
|
354
800
|
}>;
|
|
355
|
-
/** Stop
|
|
801
|
+
/** Stop takes the same compare-and-set input as start. */
|
|
356
802
|
export declare const sessionStopParametersEffectSchema: Schema.Struct<{
|
|
357
803
|
readonly commandId: Schema.String;
|
|
358
804
|
readonly expectedRevision: Schema.String;
|
|
359
805
|
readonly sessionId: Schema.String;
|
|
360
806
|
}>;
|
|
807
|
+
/** Resume takes the compare-and-set input of start, and the parent claim of a child. */
|
|
361
808
|
export declare const sessionResumeParametersEffectSchema: Schema.Struct<{
|
|
362
809
|
readonly commandId: Schema.String;
|
|
363
810
|
readonly expectedRevision: Schema.String;
|
|
364
811
|
readonly sessionId: Schema.String;
|
|
812
|
+
readonly parent: Schema.optional<Schema.Struct<{
|
|
813
|
+
readonly children: Schema.Struct<{
|
|
814
|
+
readonly live: Schema.Int;
|
|
815
|
+
readonly total: Schema.Int;
|
|
816
|
+
}>;
|
|
817
|
+
readonly sessionId: Schema.String;
|
|
818
|
+
}>>;
|
|
365
819
|
}>;
|
|
366
820
|
export declare const sessionMessageSendParametersEffectSchema: Schema.Struct<{
|
|
367
821
|
readonly body: Schema.String;
|
|
@@ -501,6 +955,7 @@ export declare const sessionMessageSendResultEffectSchema: Schema.Struct<{
|
|
|
501
955
|
readonly createdAt: Schema.String;
|
|
502
956
|
readonly eventCursor: Schema.String;
|
|
503
957
|
readonly method: Schema.String;
|
|
958
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
504
959
|
readonly receiptId: Schema.String;
|
|
505
960
|
readonly schemaVersion: Schema.Literal<1>;
|
|
506
961
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -547,6 +1002,7 @@ export declare const sessionInboxAckResultEffectSchema: Schema.Struct<{
|
|
|
547
1002
|
readonly createdAt: Schema.String;
|
|
548
1003
|
readonly eventCursor: Schema.String;
|
|
549
1004
|
readonly method: Schema.String;
|
|
1005
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
550
1006
|
readonly receiptId: Schema.String;
|
|
551
1007
|
readonly schemaVersion: Schema.Literal<1>;
|
|
552
1008
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -567,6 +1023,7 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
567
1023
|
readonly createdAt: Schema.String;
|
|
568
1024
|
readonly eventCursor: Schema.String;
|
|
569
1025
|
readonly method: Schema.String;
|
|
1026
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
570
1027
|
readonly receiptId: Schema.String;
|
|
571
1028
|
readonly schemaVersion: Schema.Literal<1>;
|
|
572
1029
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -585,15 +1042,23 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
585
1042
|
readonly updatedAt: Schema.String;
|
|
586
1043
|
readonly workspaceId: Schema.String;
|
|
587
1044
|
readonly workspaceRevision: Schema.String;
|
|
1045
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1046
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
588
1047
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
589
1048
|
readonly contentDigest: Schema.String;
|
|
590
1049
|
readonly key: Schema.String;
|
|
591
1050
|
readonly version: Schema.String;
|
|
592
1051
|
}>>;
|
|
1052
|
+
/**
|
|
1053
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1054
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1055
|
+
* A sandboxed Session carries none.
|
|
1056
|
+
*/
|
|
1057
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
593
1058
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
594
1059
|
readonly connectionId: Schema.String;
|
|
595
1060
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
596
|
-
readonly kind: Schema.
|
|
1061
|
+
readonly kind: Schema.String;
|
|
597
1062
|
readonly model: Schema.optional<Schema.String>;
|
|
598
1063
|
}>>;
|
|
599
1064
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -601,7 +1066,61 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
601
1066
|
readonly code: Schema.String;
|
|
602
1067
|
readonly message: Schema.String;
|
|
603
1068
|
}>>;
|
|
1069
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1070
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1071
|
+
/**
|
|
1072
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1073
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1074
|
+
*/
|
|
1075
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1076
|
+
readonly claimedAt: Schema.String;
|
|
1077
|
+
readonly id: Schema.String;
|
|
1078
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1079
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1080
|
+
readonly title: Schema.String;
|
|
1081
|
+
}>>>;
|
|
1082
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1083
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1084
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1085
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1086
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1087
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1088
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1089
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1090
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1091
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1092
|
+
/**
|
|
1093
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1094
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1095
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1096
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1097
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1098
|
+
* it.
|
|
1099
|
+
*/
|
|
1100
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1101
|
+
readonly approvalId: Schema.String;
|
|
1102
|
+
readonly expiresAt: Schema.String;
|
|
1103
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1104
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1105
|
+
readonly label: Schema.String;
|
|
1106
|
+
readonly optionId: Schema.String;
|
|
1107
|
+
}>>>;
|
|
1108
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1109
|
+
}>>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1112
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1113
|
+
* every other state.
|
|
1114
|
+
*/
|
|
1115
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1116
|
+
readonly code: Schema.String;
|
|
1117
|
+
readonly message: Schema.String;
|
|
1118
|
+
}>>;
|
|
604
1119
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1120
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1121
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1122
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1123
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
605
1124
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
606
1125
|
readonly title: Schema.optional<Schema.String>;
|
|
607
1126
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -618,11 +1137,24 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
618
1137
|
}>>;
|
|
619
1138
|
}>;
|
|
620
1139
|
}>;
|
|
621
|
-
|
|
1140
|
+
/** What a fork will do: the Session revision and turn it starts from, the commit a coding Session's worktree starts at, and the path that carries the context over. */
|
|
1141
|
+
export declare const sessionForkPreviewResultEffectSchema: Schema.Struct<{
|
|
1142
|
+
readonly inputDigest: Schema.String;
|
|
1143
|
+
readonly proof: Schema.String;
|
|
1144
|
+
readonly validUntil: Schema.String;
|
|
1145
|
+
readonly checkpoint: Schema.optional<Schema.String>;
|
|
1146
|
+
readonly commandId: Schema.String;
|
|
1147
|
+
readonly expectedRevision: Schema.String;
|
|
1148
|
+
readonly sessionId: Schema.String;
|
|
1149
|
+
readonly turnId: Schema.String;
|
|
1150
|
+
readonly method: Schema.Literal<"session.fork.preview">;
|
|
1151
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
1152
|
+
}>;
|
|
1153
|
+
/** The fork's Session: the source keeps its binding, its worktree and its history. */
|
|
1154
|
+
export declare const sessionForkConfirmResultEffectSchema: Schema.Struct<{
|
|
622
1155
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
623
|
-
readonly
|
|
624
|
-
readonly
|
|
625
|
-
readonly parentSessionId: Schema.String;
|
|
1156
|
+
readonly handoff: Schema.String;
|
|
1157
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
626
1158
|
readonly receipt: Schema.Struct<{
|
|
627
1159
|
readonly actorId: Schema.String;
|
|
628
1160
|
readonly aggregateRevision: Schema.String;
|
|
@@ -630,6 +1162,7 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
630
1162
|
readonly createdAt: Schema.String;
|
|
631
1163
|
readonly eventCursor: Schema.String;
|
|
632
1164
|
readonly method: Schema.String;
|
|
1165
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
633
1166
|
readonly receiptId: Schema.String;
|
|
634
1167
|
readonly schemaVersion: Schema.Literal<1>;
|
|
635
1168
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -648,15 +1181,23 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
648
1181
|
readonly updatedAt: Schema.String;
|
|
649
1182
|
readonly workspaceId: Schema.String;
|
|
650
1183
|
readonly workspaceRevision: Schema.String;
|
|
1184
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1185
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
651
1186
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
652
1187
|
readonly contentDigest: Schema.String;
|
|
653
1188
|
readonly key: Schema.String;
|
|
654
1189
|
readonly version: Schema.String;
|
|
655
1190
|
}>>;
|
|
1191
|
+
/**
|
|
1192
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1193
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1194
|
+
* A sandboxed Session carries none.
|
|
1195
|
+
*/
|
|
1196
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
656
1197
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
657
1198
|
readonly connectionId: Schema.String;
|
|
658
1199
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
659
|
-
readonly kind: Schema.
|
|
1200
|
+
readonly kind: Schema.String;
|
|
660
1201
|
readonly model: Schema.optional<Schema.String>;
|
|
661
1202
|
}>>;
|
|
662
1203
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -664,7 +1205,61 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
664
1205
|
readonly code: Schema.String;
|
|
665
1206
|
readonly message: Schema.String;
|
|
666
1207
|
}>>;
|
|
1208
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1209
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1210
|
+
/**
|
|
1211
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1212
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1213
|
+
*/
|
|
1214
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1215
|
+
readonly claimedAt: Schema.String;
|
|
1216
|
+
readonly id: Schema.String;
|
|
1217
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1218
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1219
|
+
readonly title: Schema.String;
|
|
1220
|
+
}>>>;
|
|
1221
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1222
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1223
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1224
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1225
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1226
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1227
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1228
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1229
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1230
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1231
|
+
/**
|
|
1232
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1233
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1234
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1235
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1236
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1237
|
+
* it.
|
|
1238
|
+
*/
|
|
1239
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1240
|
+
readonly approvalId: Schema.String;
|
|
1241
|
+
readonly expiresAt: Schema.String;
|
|
1242
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1243
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1244
|
+
readonly label: Schema.String;
|
|
1245
|
+
readonly optionId: Schema.String;
|
|
1246
|
+
}>>>;
|
|
1247
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1248
|
+
}>>;
|
|
1249
|
+
/**
|
|
1250
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1251
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1252
|
+
* every other state.
|
|
1253
|
+
*/
|
|
1254
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1255
|
+
readonly code: Schema.String;
|
|
1256
|
+
readonly message: Schema.String;
|
|
1257
|
+
}>>;
|
|
667
1258
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1259
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1260
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1261
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1262
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
668
1263
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
669
1264
|
readonly title: Schema.optional<Schema.String>;
|
|
670
1265
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -680,13 +1275,48 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
680
1275
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
681
1276
|
}>>;
|
|
682
1277
|
}>;
|
|
1278
|
+
readonly sourceSessionId: Schema.String;
|
|
1279
|
+
readonly method: Schema.Literal<"session.fork.confirm">;
|
|
683
1280
|
}>;
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
readonly
|
|
1281
|
+
/** What a switch will do: the Session revision it starts from, and the path that carries the context over. */
|
|
1282
|
+
export declare const sessionSwitchPreviewResultEffectSchema: Schema.Struct<{
|
|
1283
|
+
readonly inputDigest: Schema.String;
|
|
1284
|
+
readonly proof: Schema.String;
|
|
1285
|
+
readonly validUntil: Schema.String;
|
|
1286
|
+
readonly commandId: Schema.String;
|
|
1287
|
+
readonly expectedRevision: Schema.String;
|
|
1288
|
+
readonly sessionId: Schema.String;
|
|
1289
|
+
readonly target: Schema.Struct<{
|
|
1290
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
1291
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
1292
|
+
readonly model: Schema.optional<Schema.String>;
|
|
1293
|
+
}>;
|
|
1294
|
+
readonly method: Schema.Literal<"session.switch.preview">;
|
|
1295
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
1296
|
+
}>;
|
|
1297
|
+
/** The successor Session, shaped as a fork's result: the source keeps its binding and its history. */
|
|
1298
|
+
export declare const sessionSwitchConfirmResultEffectSchema: Schema.Struct<{
|
|
1299
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1300
|
+
readonly handoff: Schema.String;
|
|
1301
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
1302
|
+
readonly receipt: Schema.Struct<{
|
|
1303
|
+
readonly actorId: Schema.String;
|
|
1304
|
+
readonly aggregateRevision: Schema.String;
|
|
1305
|
+
readonly commandId: Schema.String;
|
|
1306
|
+
readonly createdAt: Schema.String;
|
|
1307
|
+
readonly eventCursor: Schema.String;
|
|
1308
|
+
readonly method: Schema.String;
|
|
1309
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1310
|
+
readonly receiptId: Schema.String;
|
|
1311
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1312
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1313
|
+
readonly target: Schema.Struct<{
|
|
1314
|
+
readonly id: Schema.String;
|
|
1315
|
+
readonly type: Schema.String;
|
|
1316
|
+
}>;
|
|
1317
|
+
readonly updatedAt: Schema.String;
|
|
1318
|
+
}>;
|
|
1319
|
+
readonly session: Schema.Struct<{
|
|
690
1320
|
readonly createdAt: Schema.String;
|
|
691
1321
|
readonly id: Schema.String;
|
|
692
1322
|
readonly projectId: Schema.String;
|
|
@@ -695,15 +1325,23 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
695
1325
|
readonly updatedAt: Schema.String;
|
|
696
1326
|
readonly workspaceId: Schema.String;
|
|
697
1327
|
readonly workspaceRevision: Schema.String;
|
|
1328
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1329
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
698
1330
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
699
1331
|
readonly contentDigest: Schema.String;
|
|
700
1332
|
readonly key: Schema.String;
|
|
701
1333
|
readonly version: Schema.String;
|
|
702
1334
|
}>>;
|
|
1335
|
+
/**
|
|
1336
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1337
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1338
|
+
* A sandboxed Session carries none.
|
|
1339
|
+
*/
|
|
1340
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
703
1341
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
704
1342
|
readonly connectionId: Schema.String;
|
|
705
1343
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
706
|
-
readonly kind: Schema.
|
|
1344
|
+
readonly kind: Schema.String;
|
|
707
1345
|
readonly model: Schema.optional<Schema.String>;
|
|
708
1346
|
}>>;
|
|
709
1347
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -711,7 +1349,61 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
711
1349
|
readonly code: Schema.String;
|
|
712
1350
|
readonly message: Schema.String;
|
|
713
1351
|
}>>;
|
|
1352
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1353
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1354
|
+
/**
|
|
1355
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1356
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1357
|
+
*/
|
|
1358
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1359
|
+
readonly claimedAt: Schema.String;
|
|
1360
|
+
readonly id: Schema.String;
|
|
1361
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1362
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1363
|
+
readonly title: Schema.String;
|
|
1364
|
+
}>>>;
|
|
1365
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1366
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1367
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1368
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1369
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1370
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1371
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1372
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1373
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1374
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1375
|
+
/**
|
|
1376
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1377
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1378
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1379
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1380
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1381
|
+
* it.
|
|
1382
|
+
*/
|
|
1383
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1384
|
+
readonly approvalId: Schema.String;
|
|
1385
|
+
readonly expiresAt: Schema.String;
|
|
1386
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1387
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1388
|
+
readonly label: Schema.String;
|
|
1389
|
+
readonly optionId: Schema.String;
|
|
1390
|
+
}>>>;
|
|
1391
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1392
|
+
}>>;
|
|
1393
|
+
/**
|
|
1394
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1395
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1396
|
+
* every other state.
|
|
1397
|
+
*/
|
|
1398
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1399
|
+
readonly code: Schema.String;
|
|
1400
|
+
readonly message: Schema.String;
|
|
1401
|
+
}>>;
|
|
714
1402
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1403
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1404
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1405
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1406
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
715
1407
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
716
1408
|
readonly title: Schema.optional<Schema.String>;
|
|
717
1409
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -726,38 +1418,429 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
726
1418
|
}>>>;
|
|
727
1419
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
728
1420
|
}>>;
|
|
729
|
-
}
|
|
730
|
-
readonly
|
|
731
|
-
readonly
|
|
1421
|
+
}>;
|
|
1422
|
+
readonly sourceSessionId: Schema.String;
|
|
1423
|
+
readonly method: Schema.Literal<"session.switch.confirm">;
|
|
732
1424
|
}>;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
readonly
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
readonly
|
|
1425
|
+
/** What confirming will approve: the script and its digest, and whether the Project has approved that digest already. */
|
|
1426
|
+
export declare const sessionSetupPreviewResultEffectSchema: Schema.Struct<{
|
|
1427
|
+
readonly inputDigest: Schema.String;
|
|
1428
|
+
readonly proof: Schema.String;
|
|
1429
|
+
readonly validUntil: Schema.String;
|
|
1430
|
+
readonly commandId: Schema.String;
|
|
1431
|
+
readonly expectedRevision: Schema.String;
|
|
1432
|
+
readonly sessionId: Schema.String;
|
|
1433
|
+
readonly setupDigest: Schema.String;
|
|
1434
|
+
readonly approved: Schema.Boolean;
|
|
1435
|
+
readonly method: Schema.Literal<"session.setup.preview">;
|
|
1436
|
+
readonly setup: Schema.Struct<{
|
|
1437
|
+
readonly command: Schema.$Array<Schema.String>;
|
|
1438
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1439
|
+
readonly path: Schema.String;
|
|
1440
|
+
readonly sha256: Schema.String;
|
|
748
1441
|
}>>;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
1442
|
+
}>;
|
|
1443
|
+
}>;
|
|
1444
|
+
/** The approval under its receipt: the Project runs a script with this digest without asking again. */
|
|
1445
|
+
export declare const sessionSetupConfirmResultEffectSchema: Schema.Struct<{
|
|
1446
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1447
|
+
readonly method: Schema.Literal<"session.setup.confirm">;
|
|
1448
|
+
readonly receipt: Schema.Struct<{
|
|
1449
|
+
readonly actorId: Schema.String;
|
|
1450
|
+
readonly aggregateRevision: Schema.String;
|
|
1451
|
+
readonly commandId: Schema.String;
|
|
1452
|
+
readonly createdAt: Schema.String;
|
|
1453
|
+
readonly eventCursor: Schema.String;
|
|
1454
|
+
readonly method: Schema.String;
|
|
1455
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1456
|
+
readonly receiptId: Schema.String;
|
|
1457
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1458
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1459
|
+
readonly target: Schema.Struct<{
|
|
1460
|
+
readonly id: Schema.String;
|
|
1461
|
+
readonly type: Schema.String;
|
|
1462
|
+
}>;
|
|
1463
|
+
readonly updatedAt: Schema.String;
|
|
1464
|
+
}>;
|
|
1465
|
+
readonly sessionId: Schema.String;
|
|
1466
|
+
readonly setupDigest: Schema.String;
|
|
1467
|
+
}>;
|
|
1468
|
+
/** What a spawn will do: the child, its grant and its parent, sealed for the confirmation. */
|
|
1469
|
+
export declare const sessionSpawnPreviewResultEffectSchema: Schema.Struct<{
|
|
1470
|
+
readonly inputDigest: Schema.String;
|
|
1471
|
+
readonly proof: Schema.String;
|
|
1472
|
+
readonly validUntil: Schema.String;
|
|
1473
|
+
readonly commandId: Schema.String;
|
|
1474
|
+
readonly executor: Schema.String;
|
|
1475
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1476
|
+
readonly parent: Schema.Struct<{
|
|
1477
|
+
readonly children: Schema.Struct<{
|
|
1478
|
+
readonly live: Schema.Int;
|
|
1479
|
+
readonly total: Schema.Int;
|
|
1480
|
+
}>;
|
|
1481
|
+
readonly depth: Schema.Int;
|
|
1482
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1483
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1484
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
1485
|
+
readonly sessionId: Schema.String;
|
|
1486
|
+
}>;
|
|
1487
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1488
|
+
readonly workspaceId: Schema.String;
|
|
1489
|
+
readonly expectedRevision: Schema.Literal<"0">;
|
|
1490
|
+
readonly method: Schema.Literal<"session.spawn.preview">;
|
|
1491
|
+
}>;
|
|
1492
|
+
/** The child Session, created under a create receipt, and the parent it names. */
|
|
1493
|
+
export declare const sessionSpawnConfirmResultEffectSchema: Schema.Struct<{
|
|
1494
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1495
|
+
readonly method: Schema.Literal<"session.spawn.confirm">;
|
|
1496
|
+
readonly parentSessionId: Schema.String;
|
|
1497
|
+
readonly receipt: Schema.Struct<{
|
|
1498
|
+
readonly actorId: Schema.String;
|
|
1499
|
+
readonly aggregateRevision: Schema.String;
|
|
1500
|
+
readonly commandId: Schema.String;
|
|
1501
|
+
readonly createdAt: Schema.String;
|
|
1502
|
+
readonly eventCursor: Schema.String;
|
|
1503
|
+
readonly method: Schema.String;
|
|
1504
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1505
|
+
readonly receiptId: Schema.String;
|
|
1506
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1507
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1508
|
+
readonly target: Schema.Struct<{
|
|
1509
|
+
readonly id: Schema.String;
|
|
1510
|
+
readonly type: Schema.String;
|
|
1511
|
+
}>;
|
|
1512
|
+
readonly updatedAt: Schema.String;
|
|
1513
|
+
}>;
|
|
1514
|
+
readonly session: Schema.Struct<{
|
|
1515
|
+
readonly createdAt: Schema.String;
|
|
1516
|
+
readonly id: Schema.String;
|
|
1517
|
+
readonly projectId: Schema.String;
|
|
1518
|
+
readonly revision: Schema.String;
|
|
1519
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1520
|
+
readonly updatedAt: Schema.String;
|
|
1521
|
+
readonly workspaceId: Schema.String;
|
|
1522
|
+
readonly workspaceRevision: Schema.String;
|
|
1523
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1524
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1525
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1526
|
+
readonly contentDigest: Schema.String;
|
|
1527
|
+
readonly key: Schema.String;
|
|
1528
|
+
readonly version: Schema.String;
|
|
1529
|
+
}>>;
|
|
1530
|
+
/**
|
|
1531
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1532
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1533
|
+
* A sandboxed Session carries none.
|
|
1534
|
+
*/
|
|
1535
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1536
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
1537
|
+
readonly connectionId: Schema.String;
|
|
1538
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1539
|
+
readonly kind: Schema.String;
|
|
1540
|
+
readonly model: Schema.optional<Schema.String>;
|
|
1541
|
+
}>>;
|
|
1542
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
1543
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1544
|
+
readonly code: Schema.String;
|
|
1545
|
+
readonly message: Schema.String;
|
|
1546
|
+
}>>;
|
|
1547
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1548
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1549
|
+
/**
|
|
1550
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1551
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1552
|
+
*/
|
|
1553
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1554
|
+
readonly claimedAt: Schema.String;
|
|
1555
|
+
readonly id: Schema.String;
|
|
1556
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1557
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1558
|
+
readonly title: Schema.String;
|
|
1559
|
+
}>>>;
|
|
1560
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1561
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1562
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1563
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1564
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1565
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1566
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1567
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1568
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1569
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1570
|
+
/**
|
|
1571
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1572
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1573
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1574
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1575
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1576
|
+
* it.
|
|
1577
|
+
*/
|
|
1578
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1579
|
+
readonly approvalId: Schema.String;
|
|
1580
|
+
readonly expiresAt: Schema.String;
|
|
1581
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1582
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1583
|
+
readonly label: Schema.String;
|
|
1584
|
+
readonly optionId: Schema.String;
|
|
1585
|
+
}>>>;
|
|
1586
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1587
|
+
}>>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1590
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1591
|
+
* every other state.
|
|
1592
|
+
*/
|
|
1593
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1594
|
+
readonly code: Schema.String;
|
|
1595
|
+
readonly message: Schema.String;
|
|
1596
|
+
}>>;
|
|
1597
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
1598
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1599
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1600
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1601
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1602
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1603
|
+
readonly title: Schema.optional<Schema.String>;
|
|
1604
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
1605
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1606
|
+
readonly baseRef: Schema.String;
|
|
1607
|
+
readonly baseRevision: Schema.String;
|
|
1608
|
+
readonly branch: Schema.String;
|
|
1609
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
1610
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1611
|
+
readonly digest: Schema.String;
|
|
1612
|
+
readonly name: Schema.String;
|
|
1613
|
+
}>>>;
|
|
1614
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1615
|
+
}>>;
|
|
1616
|
+
}>;
|
|
1617
|
+
}>;
|
|
1618
|
+
export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
1619
|
+
readonly attention: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1620
|
+
readonly attention: Schema.Literals<readonly ["failed", "approval_pending", "question", "turn_failed", "stalled", "settled_unreviewed"]>;
|
|
1621
|
+
readonly sessionId: Schema.String;
|
|
1622
|
+
}>>>;
|
|
1623
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1624
|
+
readonly createdAt: Schema.String;
|
|
1625
|
+
readonly id: Schema.String;
|
|
1626
|
+
readonly projectId: Schema.String;
|
|
1627
|
+
readonly revision: Schema.String;
|
|
1628
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1629
|
+
readonly updatedAt: Schema.String;
|
|
1630
|
+
readonly workspaceId: Schema.String;
|
|
1631
|
+
readonly workspaceRevision: Schema.String;
|
|
1632
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1633
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1634
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1635
|
+
readonly contentDigest: Schema.String;
|
|
1636
|
+
readonly key: Schema.String;
|
|
1637
|
+
readonly version: Schema.String;
|
|
1638
|
+
}>>;
|
|
1639
|
+
/**
|
|
1640
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1641
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1642
|
+
* A sandboxed Session carries none.
|
|
1643
|
+
*/
|
|
1644
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1645
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
1646
|
+
readonly connectionId: Schema.String;
|
|
1647
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1648
|
+
readonly kind: Schema.String;
|
|
1649
|
+
readonly model: Schema.optional<Schema.String>;
|
|
1650
|
+
}>>;
|
|
1651
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
1652
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1653
|
+
readonly code: Schema.String;
|
|
1654
|
+
readonly message: Schema.String;
|
|
1655
|
+
}>>;
|
|
1656
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1657
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1658
|
+
/**
|
|
1659
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1660
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1661
|
+
*/
|
|
1662
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1663
|
+
readonly claimedAt: Schema.String;
|
|
1664
|
+
readonly id: Schema.String;
|
|
1665
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1666
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1667
|
+
readonly title: Schema.String;
|
|
1668
|
+
}>>>;
|
|
1669
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1670
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1671
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1672
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1673
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1674
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1675
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1676
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1677
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1678
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1679
|
+
/**
|
|
1680
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1681
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1682
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1683
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1684
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1685
|
+
* it.
|
|
1686
|
+
*/
|
|
1687
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1688
|
+
readonly approvalId: Schema.String;
|
|
1689
|
+
readonly expiresAt: Schema.String;
|
|
1690
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1691
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1692
|
+
readonly label: Schema.String;
|
|
1693
|
+
readonly optionId: Schema.String;
|
|
1694
|
+
}>>>;
|
|
1695
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1696
|
+
}>>;
|
|
1697
|
+
/**
|
|
1698
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1699
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1700
|
+
* every other state.
|
|
1701
|
+
*/
|
|
1702
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1703
|
+
readonly code: Schema.String;
|
|
1704
|
+
readonly message: Schema.String;
|
|
1705
|
+
}>>;
|
|
1706
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
1707
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1708
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1709
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1710
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1711
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1712
|
+
readonly title: Schema.optional<Schema.String>;
|
|
1713
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
1714
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1715
|
+
readonly baseRef: Schema.String;
|
|
1716
|
+
readonly baseRevision: Schema.String;
|
|
1717
|
+
readonly branch: Schema.String;
|
|
1718
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
1719
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1720
|
+
readonly digest: Schema.String;
|
|
1721
|
+
readonly name: Schema.String;
|
|
1722
|
+
}>>>;
|
|
1723
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1724
|
+
}>>;
|
|
1725
|
+
}>>;
|
|
1726
|
+
readonly method: Schema.Literal<"session.list">;
|
|
1727
|
+
readonly nextCursor: Schema.optional<Schema.String>;
|
|
1728
|
+
}>;
|
|
1729
|
+
/**
|
|
1730
|
+
* A child on another Node, as the Node that holds its parent records it
|
|
1731
|
+
* (D-SPAWN, D-236). The client that created the child links it; a cancel its
|
|
1732
|
+
* Node did not answer by the fleet ask deadline marks it `orphaned`, never
|
|
1733
|
+
* stopped; a client that reached its Node again reconciles it, recording the
|
|
1734
|
+
* state that Node reported. `observedState` is always a state the child's own
|
|
1735
|
+
* Node reported.
|
|
1736
|
+
*/
|
|
1737
|
+
export declare const sessionRemoteChildEffectSchema: Schema.Struct<{
|
|
1738
|
+
readonly linkedAt: Schema.String;
|
|
1739
|
+
readonly node: Schema.String;
|
|
1740
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1741
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
1742
|
+
readonly sessionId: Schema.String;
|
|
1743
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
1744
|
+
}>;
|
|
1745
|
+
/** `remoteChildren`: the parent's children on other Nodes this Node recorded, oldest link first; absent when there are none. */
|
|
1746
|
+
export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
1747
|
+
readonly method: Schema.Literal<"session.show">;
|
|
1748
|
+
readonly remoteChildren: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1749
|
+
readonly linkedAt: Schema.String;
|
|
1750
|
+
readonly node: Schema.String;
|
|
1751
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1752
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
1753
|
+
readonly sessionId: Schema.String;
|
|
1754
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
1755
|
+
}>>>;
|
|
1756
|
+
readonly session: Schema.Struct<{
|
|
1757
|
+
readonly createdAt: Schema.String;
|
|
1758
|
+
readonly id: Schema.String;
|
|
1759
|
+
readonly projectId: Schema.String;
|
|
1760
|
+
readonly revision: Schema.String;
|
|
1761
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1762
|
+
readonly updatedAt: Schema.String;
|
|
1763
|
+
readonly workspaceId: Schema.String;
|
|
1764
|
+
readonly workspaceRevision: Schema.String;
|
|
1765
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1766
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1767
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1768
|
+
readonly contentDigest: Schema.String;
|
|
1769
|
+
readonly key: Schema.String;
|
|
1770
|
+
readonly version: Schema.String;
|
|
1771
|
+
}>>;
|
|
1772
|
+
/**
|
|
1773
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1774
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1775
|
+
* A sandboxed Session carries none.
|
|
1776
|
+
*/
|
|
1777
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1778
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
1779
|
+
readonly connectionId: Schema.String;
|
|
1780
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1781
|
+
readonly kind: Schema.String;
|
|
1782
|
+
readonly model: Schema.optional<Schema.String>;
|
|
754
1783
|
}>>;
|
|
755
1784
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
756
1785
|
readonly failure: Schema.optional<Schema.Struct<{
|
|
757
1786
|
readonly code: Schema.String;
|
|
758
1787
|
readonly message: Schema.String;
|
|
759
1788
|
}>>;
|
|
1789
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1790
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1791
|
+
/**
|
|
1792
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1793
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1794
|
+
*/
|
|
1795
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1796
|
+
readonly claimedAt: Schema.String;
|
|
1797
|
+
readonly id: Schema.String;
|
|
1798
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1799
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1800
|
+
readonly title: Schema.String;
|
|
1801
|
+
}>>>;
|
|
1802
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1803
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1804
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1805
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1806
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1807
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1808
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1809
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1810
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1811
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1812
|
+
/**
|
|
1813
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1814
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1815
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1816
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1817
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1818
|
+
* it.
|
|
1819
|
+
*/
|
|
1820
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1821
|
+
readonly approvalId: Schema.String;
|
|
1822
|
+
readonly expiresAt: Schema.String;
|
|
1823
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1824
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1825
|
+
readonly label: Schema.String;
|
|
1826
|
+
readonly optionId: Schema.String;
|
|
1827
|
+
}>>>;
|
|
1828
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1829
|
+
}>>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1832
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1833
|
+
* every other state.
|
|
1834
|
+
*/
|
|
1835
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1836
|
+
readonly code: Schema.String;
|
|
1837
|
+
readonly message: Schema.String;
|
|
1838
|
+
}>>;
|
|
760
1839
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1840
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1841
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1842
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1843
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
761
1844
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
762
1845
|
readonly title: Schema.optional<Schema.String>;
|
|
763
1846
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -774,6 +1857,64 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
774
1857
|
}>>;
|
|
775
1858
|
}>;
|
|
776
1859
|
}>;
|
|
1860
|
+
/**
|
|
1861
|
+
* What a client records of a child on another Node on the Node that holds
|
|
1862
|
+
* its parent: `linked` after it created the child, `orphaned` when the
|
|
1863
|
+
* child's Node gave no reply to a cancel by the fleet ask deadline, and
|
|
1864
|
+
* `reconciled` with the state the child's Node reported once it answered
|
|
1865
|
+
* again. `reconciled` must carry a state and `linked` may, each a state the
|
|
1866
|
+
* child's Node reported; `orphaned` carries none.
|
|
1867
|
+
*/
|
|
1868
|
+
export declare const sessionSpawnRecordParametersEffectSchema: Schema.Struct<{
|
|
1869
|
+
readonly childSessionId: Schema.String;
|
|
1870
|
+
readonly commandId: Schema.String;
|
|
1871
|
+
readonly node: Schema.String;
|
|
1872
|
+
readonly outcome: Schema.Literals<readonly ["linked", "orphaned", "reconciled"]>;
|
|
1873
|
+
readonly parentSessionId: Schema.String;
|
|
1874
|
+
readonly state: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1875
|
+
}>;
|
|
1876
|
+
/** The child record after the change, under its own receipt on the child. */
|
|
1877
|
+
export declare const sessionSpawnRecordResultEffectSchema: Schema.Struct<{
|
|
1878
|
+
readonly child: Schema.Struct<{
|
|
1879
|
+
readonly linkedAt: Schema.String;
|
|
1880
|
+
readonly node: Schema.String;
|
|
1881
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1882
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
1883
|
+
readonly sessionId: Schema.String;
|
|
1884
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
1885
|
+
}>;
|
|
1886
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1887
|
+
readonly method: Schema.Literal<"session.spawn.record">;
|
|
1888
|
+
readonly parentSessionId: Schema.String;
|
|
1889
|
+
readonly receipt: Schema.Struct<{
|
|
1890
|
+
readonly actorId: Schema.String;
|
|
1891
|
+
readonly aggregateRevision: Schema.String;
|
|
1892
|
+
readonly commandId: Schema.String;
|
|
1893
|
+
readonly createdAt: Schema.String;
|
|
1894
|
+
readonly eventCursor: Schema.String;
|
|
1895
|
+
readonly method: Schema.String;
|
|
1896
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1897
|
+
readonly receiptId: Schema.String;
|
|
1898
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1899
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1900
|
+
readonly target: Schema.Struct<{
|
|
1901
|
+
readonly id: Schema.String;
|
|
1902
|
+
readonly type: Schema.String;
|
|
1903
|
+
}>;
|
|
1904
|
+
readonly updatedAt: Schema.String;
|
|
1905
|
+
}>;
|
|
1906
|
+
}>;
|
|
1907
|
+
export declare const sessionSpawnRecordRequestEffectSchema: Schema.Struct<{
|
|
1908
|
+
readonly method: Schema.Literal<"session.spawn.record">;
|
|
1909
|
+
readonly parameters: Schema.Struct<{
|
|
1910
|
+
readonly childSessionId: Schema.String;
|
|
1911
|
+
readonly commandId: Schema.String;
|
|
1912
|
+
readonly node: Schema.String;
|
|
1913
|
+
readonly outcome: Schema.Literals<readonly ["linked", "orphaned", "reconciled"]>;
|
|
1914
|
+
readonly parentSessionId: Schema.String;
|
|
1915
|
+
readonly state: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1916
|
+
}>;
|
|
1917
|
+
}>;
|
|
777
1918
|
/** `satisfied` is false when the bounded wait ended first; `session` is then its last read. */
|
|
778
1919
|
export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
779
1920
|
readonly method: Schema.Literal<"session.wait">;
|
|
@@ -787,15 +1928,23 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
|
787
1928
|
readonly updatedAt: Schema.String;
|
|
788
1929
|
readonly workspaceId: Schema.String;
|
|
789
1930
|
readonly workspaceRevision: Schema.String;
|
|
1931
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1932
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
790
1933
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
791
1934
|
readonly contentDigest: Schema.String;
|
|
792
1935
|
readonly key: Schema.String;
|
|
793
1936
|
readonly version: Schema.String;
|
|
794
1937
|
}>>;
|
|
1938
|
+
/**
|
|
1939
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1940
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1941
|
+
* A sandboxed Session carries none.
|
|
1942
|
+
*/
|
|
1943
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
795
1944
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
796
1945
|
readonly connectionId: Schema.String;
|
|
797
1946
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
798
|
-
readonly kind: Schema.
|
|
1947
|
+
readonly kind: Schema.String;
|
|
799
1948
|
readonly model: Schema.optional<Schema.String>;
|
|
800
1949
|
}>>;
|
|
801
1950
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -803,7 +1952,61 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
|
803
1952
|
readonly code: Schema.String;
|
|
804
1953
|
readonly message: Schema.String;
|
|
805
1954
|
}>>;
|
|
1955
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1956
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1957
|
+
/**
|
|
1958
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1959
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1960
|
+
*/
|
|
1961
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1962
|
+
readonly claimedAt: Schema.String;
|
|
1963
|
+
readonly id: Schema.String;
|
|
1964
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1965
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1966
|
+
readonly title: Schema.String;
|
|
1967
|
+
}>>>;
|
|
1968
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1969
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1970
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1971
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1972
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1973
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1974
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1975
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1976
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1977
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1978
|
+
/**
|
|
1979
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1980
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1981
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1982
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1983
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1984
|
+
* it.
|
|
1985
|
+
*/
|
|
1986
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1987
|
+
readonly approvalId: Schema.String;
|
|
1988
|
+
readonly expiresAt: Schema.String;
|
|
1989
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1990
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1991
|
+
readonly label: Schema.String;
|
|
1992
|
+
readonly optionId: Schema.String;
|
|
1993
|
+
}>>>;
|
|
1994
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1995
|
+
}>>;
|
|
1996
|
+
/**
|
|
1997
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1998
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1999
|
+
* every other state.
|
|
2000
|
+
*/
|
|
2001
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2002
|
+
readonly code: Schema.String;
|
|
2003
|
+
readonly message: Schema.String;
|
|
2004
|
+
}>>;
|
|
806
2005
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2006
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2007
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2008
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2009
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
807
2010
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
808
2011
|
readonly title: Schema.optional<Schema.String>;
|
|
809
2012
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -837,13 +2040,21 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
837
2040
|
readonly key: Schema.String;
|
|
838
2041
|
readonly version: Schema.String;
|
|
839
2042
|
}>>;
|
|
2043
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
2044
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
2045
|
+
/** `none` when the Session runs with host authority. */
|
|
2046
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2047
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
2048
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
840
2049
|
/** The account the Session binds to, named or picked by the Node. */
|
|
841
2050
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
842
2051
|
readonly connectionId: Schema.String;
|
|
843
2052
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
844
|
-
readonly kind: Schema.
|
|
2053
|
+
readonly kind: Schema.String;
|
|
845
2054
|
readonly model: Schema.optional<Schema.String>;
|
|
846
2055
|
}>>;
|
|
2056
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
2057
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
847
2058
|
readonly projectId: Schema.String;
|
|
848
2059
|
readonly workspaceId: Schema.String;
|
|
849
2060
|
readonly workspaceRevision: Schema.String;
|
|
@@ -887,6 +2098,20 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
887
2098
|
readonly schemaVersion: Schema.Literal<4>;
|
|
888
2099
|
readonly sessionCursor: Schema.String;
|
|
889
2100
|
readonly sessionId: Schema.String;
|
|
2101
|
+
}>, Schema.Struct<{
|
|
2102
|
+
readonly commandId: Schema.String;
|
|
2103
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
2104
|
+
readonly globalCursor: Schema.String;
|
|
2105
|
+
readonly payload: Schema.Struct<{
|
|
2106
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2107
|
+
readonly code: Schema.String;
|
|
2108
|
+
readonly message: Schema.String;
|
|
2109
|
+
}>>;
|
|
2110
|
+
}>;
|
|
2111
|
+
readonly recordedAt: Schema.String;
|
|
2112
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2113
|
+
readonly sessionCursor: Schema.String;
|
|
2114
|
+
readonly sessionId: Schema.String;
|
|
890
2115
|
}>, Schema.Struct<{
|
|
891
2116
|
readonly commandId: Schema.String;
|
|
892
2117
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -1039,6 +2264,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
1039
2264
|
}>]>]>>;
|
|
1040
2265
|
readonly method: Schema.Literal<"session.events.list">;
|
|
1041
2266
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
2267
|
+
/** Set when a prune removed events after the caller's cursor. Send `nextSessionCursor` as `afterSessionCursor`; with none, send the last item's cursor. On an empty page keep the cursor you sent, and send "0" if you have none. Never send this marker. */
|
|
2268
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
1042
2269
|
readonly sessionId: Schema.String;
|
|
1043
2270
|
}>;
|
|
1044
2271
|
export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
@@ -1051,6 +2278,7 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1051
2278
|
readonly createdAt: Schema.String;
|
|
1052
2279
|
readonly eventCursor: Schema.String;
|
|
1053
2280
|
readonly method: Schema.String;
|
|
2281
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1054
2282
|
readonly receiptId: Schema.String;
|
|
1055
2283
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1056
2284
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1069,15 +2297,23 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1069
2297
|
readonly updatedAt: Schema.String;
|
|
1070
2298
|
readonly workspaceId: Schema.String;
|
|
1071
2299
|
readonly workspaceRevision: Schema.String;
|
|
2300
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2301
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1072
2302
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1073
2303
|
readonly contentDigest: Schema.String;
|
|
1074
2304
|
readonly key: Schema.String;
|
|
1075
2305
|
readonly version: Schema.String;
|
|
1076
2306
|
}>>;
|
|
2307
|
+
/**
|
|
2308
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2309
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2310
|
+
* A sandboxed Session carries none.
|
|
2311
|
+
*/
|
|
2312
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1077
2313
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1078
2314
|
readonly connectionId: Schema.String;
|
|
1079
2315
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1080
|
-
readonly kind: Schema.
|
|
2316
|
+
readonly kind: Schema.String;
|
|
1081
2317
|
readonly model: Schema.optional<Schema.String>;
|
|
1082
2318
|
}>>;
|
|
1083
2319
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1085,7 +2321,61 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1085
2321
|
readonly code: Schema.String;
|
|
1086
2322
|
readonly message: Schema.String;
|
|
1087
2323
|
}>>;
|
|
2324
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2325
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2326
|
+
/**
|
|
2327
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2328
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2329
|
+
*/
|
|
2330
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2331
|
+
readonly claimedAt: Schema.String;
|
|
2332
|
+
readonly id: Schema.String;
|
|
2333
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2334
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2335
|
+
readonly title: Schema.String;
|
|
2336
|
+
}>>>;
|
|
2337
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2338
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2339
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2340
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2341
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2342
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2343
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2344
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2345
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2346
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2347
|
+
/**
|
|
2348
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2349
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2350
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2351
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2352
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2353
|
+
* it.
|
|
2354
|
+
*/
|
|
2355
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2356
|
+
readonly approvalId: Schema.String;
|
|
2357
|
+
readonly expiresAt: Schema.String;
|
|
2358
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2359
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2360
|
+
readonly label: Schema.String;
|
|
2361
|
+
readonly optionId: Schema.String;
|
|
2362
|
+
}>>>;
|
|
2363
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2364
|
+
}>>;
|
|
2365
|
+
/**
|
|
2366
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2367
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2368
|
+
* every other state.
|
|
2369
|
+
*/
|
|
2370
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2371
|
+
readonly code: Schema.String;
|
|
2372
|
+
readonly message: Schema.String;
|
|
2373
|
+
}>>;
|
|
1088
2374
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2375
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2376
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2377
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2378
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1089
2379
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1090
2380
|
readonly title: Schema.optional<Schema.String>;
|
|
1091
2381
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1112,6 +2402,7 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1112
2402
|
readonly createdAt: Schema.String;
|
|
1113
2403
|
readonly eventCursor: Schema.String;
|
|
1114
2404
|
readonly method: Schema.String;
|
|
2405
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1115
2406
|
readonly receiptId: Schema.String;
|
|
1116
2407
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1117
2408
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1130,15 +2421,23 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1130
2421
|
readonly updatedAt: Schema.String;
|
|
1131
2422
|
readonly workspaceId: Schema.String;
|
|
1132
2423
|
readonly workspaceRevision: Schema.String;
|
|
2424
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2425
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1133
2426
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1134
2427
|
readonly contentDigest: Schema.String;
|
|
1135
2428
|
readonly key: Schema.String;
|
|
1136
2429
|
readonly version: Schema.String;
|
|
1137
2430
|
}>>;
|
|
2431
|
+
/**
|
|
2432
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2433
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2434
|
+
* A sandboxed Session carries none.
|
|
2435
|
+
*/
|
|
2436
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1138
2437
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1139
2438
|
readonly connectionId: Schema.String;
|
|
1140
2439
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1141
|
-
readonly kind: Schema.
|
|
2440
|
+
readonly kind: Schema.String;
|
|
1142
2441
|
readonly model: Schema.optional<Schema.String>;
|
|
1143
2442
|
}>>;
|
|
1144
2443
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1146,7 +2445,61 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1146
2445
|
readonly code: Schema.String;
|
|
1147
2446
|
readonly message: Schema.String;
|
|
1148
2447
|
}>>;
|
|
2448
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2449
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2450
|
+
/**
|
|
2451
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2452
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2453
|
+
*/
|
|
2454
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2455
|
+
readonly claimedAt: Schema.String;
|
|
2456
|
+
readonly id: Schema.String;
|
|
2457
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2458
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2459
|
+
readonly title: Schema.String;
|
|
2460
|
+
}>>>;
|
|
2461
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2462
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2463
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2464
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2465
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2466
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2467
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2468
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2469
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2470
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2471
|
+
/**
|
|
2472
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2473
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2474
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2475
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2476
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2477
|
+
* it.
|
|
2478
|
+
*/
|
|
2479
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2480
|
+
readonly approvalId: Schema.String;
|
|
2481
|
+
readonly expiresAt: Schema.String;
|
|
2482
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2483
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2484
|
+
readonly label: Schema.String;
|
|
2485
|
+
readonly optionId: Schema.String;
|
|
2486
|
+
}>>>;
|
|
2487
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2488
|
+
}>>;
|
|
2489
|
+
/**
|
|
2490
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2491
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2492
|
+
* every other state.
|
|
2493
|
+
*/
|
|
2494
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2495
|
+
readonly code: Schema.String;
|
|
2496
|
+
readonly message: Schema.String;
|
|
2497
|
+
}>>;
|
|
1149
2498
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2499
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2500
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2501
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2502
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1150
2503
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1151
2504
|
readonly title: Schema.optional<Schema.String>;
|
|
1152
2505
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1173,6 +2526,7 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1173
2526
|
readonly createdAt: Schema.String;
|
|
1174
2527
|
readonly eventCursor: Schema.String;
|
|
1175
2528
|
readonly method: Schema.String;
|
|
2529
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1176
2530
|
readonly receiptId: Schema.String;
|
|
1177
2531
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1178
2532
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1191,15 +2545,23 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1191
2545
|
readonly updatedAt: Schema.String;
|
|
1192
2546
|
readonly workspaceId: Schema.String;
|
|
1193
2547
|
readonly workspaceRevision: Schema.String;
|
|
2548
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2549
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1194
2550
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1195
2551
|
readonly contentDigest: Schema.String;
|
|
1196
2552
|
readonly key: Schema.String;
|
|
1197
2553
|
readonly version: Schema.String;
|
|
1198
2554
|
}>>;
|
|
2555
|
+
/**
|
|
2556
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2557
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2558
|
+
* A sandboxed Session carries none.
|
|
2559
|
+
*/
|
|
2560
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1199
2561
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1200
2562
|
readonly connectionId: Schema.String;
|
|
1201
2563
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1202
|
-
readonly kind: Schema.
|
|
2564
|
+
readonly kind: Schema.String;
|
|
1203
2565
|
readonly model: Schema.optional<Schema.String>;
|
|
1204
2566
|
}>>;
|
|
1205
2567
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1207,10 +2569,64 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1207
2569
|
readonly code: Schema.String;
|
|
1208
2570
|
readonly message: Schema.String;
|
|
1209
2571
|
}>>;
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
2572
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2573
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2574
|
+
/**
|
|
2575
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2576
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2577
|
+
*/
|
|
2578
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2579
|
+
readonly claimedAt: Schema.String;
|
|
2580
|
+
readonly id: Schema.String;
|
|
2581
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2582
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2583
|
+
readonly title: Schema.String;
|
|
2584
|
+
}>>>;
|
|
2585
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2586
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2587
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2588
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2589
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2590
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2591
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2592
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2593
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2594
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2595
|
+
/**
|
|
2596
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2597
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2598
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2599
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2600
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2601
|
+
* it.
|
|
2602
|
+
*/
|
|
2603
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2604
|
+
readonly approvalId: Schema.String;
|
|
2605
|
+
readonly expiresAt: Schema.String;
|
|
2606
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2607
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2608
|
+
readonly label: Schema.String;
|
|
2609
|
+
readonly optionId: Schema.String;
|
|
2610
|
+
}>>>;
|
|
2611
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2612
|
+
}>>;
|
|
2613
|
+
/**
|
|
2614
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2615
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2616
|
+
* every other state.
|
|
2617
|
+
*/
|
|
2618
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2619
|
+
readonly code: Schema.String;
|
|
2620
|
+
readonly message: Schema.String;
|
|
2621
|
+
}>>;
|
|
2622
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2623
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2624
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2625
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2626
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2627
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2628
|
+
readonly title: Schema.optional<Schema.String>;
|
|
2629
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
1214
2630
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1215
2631
|
readonly baseRef: Schema.String;
|
|
1216
2632
|
readonly baseRevision: Schema.String;
|
|
@@ -1234,6 +2650,7 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1234
2650
|
readonly createdAt: Schema.String;
|
|
1235
2651
|
readonly eventCursor: Schema.String;
|
|
1236
2652
|
readonly method: Schema.String;
|
|
2653
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1237
2654
|
readonly receiptId: Schema.String;
|
|
1238
2655
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1239
2656
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1252,15 +2669,23 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1252
2669
|
readonly updatedAt: Schema.String;
|
|
1253
2670
|
readonly workspaceId: Schema.String;
|
|
1254
2671
|
readonly workspaceRevision: Schema.String;
|
|
2672
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2673
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1255
2674
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1256
2675
|
readonly contentDigest: Schema.String;
|
|
1257
2676
|
readonly key: Schema.String;
|
|
1258
2677
|
readonly version: Schema.String;
|
|
1259
2678
|
}>>;
|
|
2679
|
+
/**
|
|
2680
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2681
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2682
|
+
* A sandboxed Session carries none.
|
|
2683
|
+
*/
|
|
2684
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1260
2685
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1261
2686
|
readonly connectionId: Schema.String;
|
|
1262
2687
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1263
|
-
readonly kind: Schema.
|
|
2688
|
+
readonly kind: Schema.String;
|
|
1264
2689
|
readonly model: Schema.optional<Schema.String>;
|
|
1265
2690
|
}>>;
|
|
1266
2691
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1268,7 +2693,61 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1268
2693
|
readonly code: Schema.String;
|
|
1269
2694
|
readonly message: Schema.String;
|
|
1270
2695
|
}>>;
|
|
2696
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2697
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2698
|
+
/**
|
|
2699
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2700
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2701
|
+
*/
|
|
2702
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2703
|
+
readonly claimedAt: Schema.String;
|
|
2704
|
+
readonly id: Schema.String;
|
|
2705
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2706
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2707
|
+
readonly title: Schema.String;
|
|
2708
|
+
}>>>;
|
|
2709
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2710
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2711
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2712
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2713
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2714
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2715
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2716
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2717
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2718
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2719
|
+
/**
|
|
2720
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2721
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2722
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2723
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2724
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2725
|
+
* it.
|
|
2726
|
+
*/
|
|
2727
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2728
|
+
readonly approvalId: Schema.String;
|
|
2729
|
+
readonly expiresAt: Schema.String;
|
|
2730
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2731
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2732
|
+
readonly label: Schema.String;
|
|
2733
|
+
readonly optionId: Schema.String;
|
|
2734
|
+
}>>>;
|
|
2735
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2736
|
+
}>>;
|
|
2737
|
+
/**
|
|
2738
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2739
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2740
|
+
* every other state.
|
|
2741
|
+
*/
|
|
2742
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2743
|
+
readonly code: Schema.String;
|
|
2744
|
+
readonly message: Schema.String;
|
|
2745
|
+
}>>;
|
|
1271
2746
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2747
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2748
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2749
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2750
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1272
2751
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1273
2752
|
readonly title: Schema.optional<Schema.String>;
|
|
1274
2753
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1306,6 +2785,7 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1306
2785
|
readonly createdAt: Schema.String;
|
|
1307
2786
|
readonly eventCursor: Schema.String;
|
|
1308
2787
|
readonly method: Schema.String;
|
|
2788
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1309
2789
|
readonly receiptId: Schema.String;
|
|
1310
2790
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1311
2791
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1324,15 +2804,23 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1324
2804
|
readonly updatedAt: Schema.String;
|
|
1325
2805
|
readonly workspaceId: Schema.String;
|
|
1326
2806
|
readonly workspaceRevision: Schema.String;
|
|
2807
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2808
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1327
2809
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1328
2810
|
readonly contentDigest: Schema.String;
|
|
1329
2811
|
readonly key: Schema.String;
|
|
1330
2812
|
readonly version: Schema.String;
|
|
1331
2813
|
}>>;
|
|
2814
|
+
/**
|
|
2815
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2816
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2817
|
+
* A sandboxed Session carries none.
|
|
2818
|
+
*/
|
|
2819
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1332
2820
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1333
2821
|
readonly connectionId: Schema.String;
|
|
1334
2822
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1335
|
-
readonly kind: Schema.
|
|
2823
|
+
readonly kind: Schema.String;
|
|
1336
2824
|
readonly model: Schema.optional<Schema.String>;
|
|
1337
2825
|
}>>;
|
|
1338
2826
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1340,7 +2828,61 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1340
2828
|
readonly code: Schema.String;
|
|
1341
2829
|
readonly message: Schema.String;
|
|
1342
2830
|
}>>;
|
|
2831
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2832
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2833
|
+
/**
|
|
2834
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2835
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2836
|
+
*/
|
|
2837
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2838
|
+
readonly claimedAt: Schema.String;
|
|
2839
|
+
readonly id: Schema.String;
|
|
2840
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2841
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2842
|
+
readonly title: Schema.String;
|
|
2843
|
+
}>>>;
|
|
2844
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2845
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2846
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2847
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2848
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2849
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2850
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2851
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2852
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2853
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2854
|
+
/**
|
|
2855
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2856
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2857
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2858
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2859
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2860
|
+
* it.
|
|
2861
|
+
*/
|
|
2862
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2863
|
+
readonly approvalId: Schema.String;
|
|
2864
|
+
readonly expiresAt: Schema.String;
|
|
2865
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2866
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2867
|
+
readonly label: Schema.String;
|
|
2868
|
+
readonly optionId: Schema.String;
|
|
2869
|
+
}>>>;
|
|
2870
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2871
|
+
}>>;
|
|
2872
|
+
/**
|
|
2873
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2874
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2875
|
+
* every other state.
|
|
2876
|
+
*/
|
|
2877
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2878
|
+
readonly code: Schema.String;
|
|
2879
|
+
readonly message: Schema.String;
|
|
2880
|
+
}>>;
|
|
1343
2881
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2882
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2883
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2884
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2885
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1344
2886
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1345
2887
|
readonly title: Schema.optional<Schema.String>;
|
|
1346
2888
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1356,6 +2898,9 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1356
2898
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1357
2899
|
}>>;
|
|
1358
2900
|
}>;
|
|
2901
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
2902
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2903
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1359
2904
|
}>;
|
|
1360
2905
|
export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1361
2906
|
readonly method: Schema.Literal<"session.create">;
|
|
@@ -1365,18 +2910,24 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1365
2910
|
readonly workspaceId: Schema.String;
|
|
1366
2911
|
readonly agentId: Schema.optional<Schema.String>;
|
|
1367
2912
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
2913
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
2914
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1368
2915
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
1369
2916
|
readonly contentDigest: Schema.String;
|
|
1370
2917
|
readonly key: Schema.String;
|
|
1371
2918
|
readonly version: Schema.String;
|
|
1372
2919
|
}>>;
|
|
1373
2920
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1374
|
-
readonly executor: Schema.optional<Schema.
|
|
2921
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
2922
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
2923
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1375
2924
|
readonly model: Schema.optional<Schema.String>;
|
|
2925
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1376
2926
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
1377
2927
|
readonly title: Schema.optional<Schema.String>;
|
|
1378
2928
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1379
2929
|
readonly baseRef: Schema.String;
|
|
2930
|
+
readonly branch: Schema.optional<Schema.String>;
|
|
1380
2931
|
}>>;
|
|
1381
2932
|
}>;
|
|
1382
2933
|
}>, Schema.Struct<{
|
|
@@ -1384,8 +2935,16 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1384
2935
|
readonly parameters: Schema.Struct<{
|
|
1385
2936
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
1386
2937
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
2938
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
2939
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
2940
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
2941
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1387
2942
|
readonly limit: Schema.optional<Schema.Int>;
|
|
2943
|
+
/** Keeps the direct children of this Session; an unknown Session has none. */
|
|
2944
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1388
2945
|
readonly projectId: Schema.optional<Schema.String>;
|
|
2946
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
2947
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
1389
2948
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1390
2949
|
}>;
|
|
1391
2950
|
}>, Schema.Struct<{
|
|
@@ -1396,25 +2955,13 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1396
2955
|
}>, Schema.Struct<{
|
|
1397
2956
|
readonly method: Schema.Literal<"session.wait">;
|
|
1398
2957
|
readonly parameters: Schema.Struct<{
|
|
2958
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
2959
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
1399
2960
|
readonly sessionId: Schema.String;
|
|
1400
2961
|
/** The wait ends when the Session is in any of these states. */
|
|
1401
|
-
readonly states: Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]
|
|
2962
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1402
2963
|
readonly waitMilliseconds: Schema.Int;
|
|
1403
2964
|
}>;
|
|
1404
|
-
}>, Schema.Struct<{
|
|
1405
|
-
readonly method: Schema.Literal<"session.spawn">;
|
|
1406
|
-
readonly parameters: Schema.Struct<{
|
|
1407
|
-
readonly commandId: Schema.String;
|
|
1408
|
-
readonly expectedRevision: Schema.Literal<"0">;
|
|
1409
|
-
readonly workspaceId: Schema.String;
|
|
1410
|
-
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
1411
|
-
readonly contentDigest: Schema.String;
|
|
1412
|
-
readonly key: Schema.String;
|
|
1413
|
-
readonly version: Schema.String;
|
|
1414
|
-
}>>;
|
|
1415
|
-
readonly harness: Schema.Literals<readonly ["maia-agent", "pi"]>;
|
|
1416
|
-
readonly parentSessionId: Schema.String;
|
|
1417
|
-
}>;
|
|
1418
2965
|
}>, Schema.Struct<{
|
|
1419
2966
|
readonly method: Schema.Literal<"session.events.list">;
|
|
1420
2967
|
readonly parameters: Schema.Struct<{
|
|
@@ -1468,6 +3015,13 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1468
3015
|
readonly commandId: Schema.String;
|
|
1469
3016
|
readonly expectedRevision: Schema.String;
|
|
1470
3017
|
readonly sessionId: Schema.String;
|
|
3018
|
+
readonly parent: Schema.optional<Schema.Struct<{
|
|
3019
|
+
readonly children: Schema.Struct<{
|
|
3020
|
+
readonly live: Schema.Int;
|
|
3021
|
+
readonly total: Schema.Int;
|
|
3022
|
+
}>;
|
|
3023
|
+
readonly sessionId: Schema.String;
|
|
3024
|
+
}>>;
|
|
1471
3025
|
}>;
|
|
1472
3026
|
}>, Schema.Struct<{
|
|
1473
3027
|
readonly method: Schema.Literal<"session.diff">;
|
|
@@ -1475,12 +3029,19 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1475
3029
|
readonly sessionId: Schema.String;
|
|
1476
3030
|
readonly stat: Schema.optional<Schema.Boolean>;
|
|
1477
3031
|
}>;
|
|
3032
|
+
}>, Schema.Struct<{
|
|
3033
|
+
readonly method: Schema.Literal<"session.git.status">;
|
|
3034
|
+
readonly parameters: Schema.Struct<{
|
|
3035
|
+
readonly sessionId: Schema.String;
|
|
3036
|
+
}>;
|
|
1478
3037
|
}>, Schema.Struct<{
|
|
1479
3038
|
readonly method: Schema.Literal<"session.archive">;
|
|
1480
3039
|
readonly parameters: Schema.Struct<{
|
|
1481
3040
|
readonly commandId: Schema.String;
|
|
1482
3041
|
readonly expectedRevision: Schema.String;
|
|
1483
3042
|
readonly sessionId: Schema.String;
|
|
3043
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3044
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1484
3045
|
}>;
|
|
1485
3046
|
}>, Schema.Struct<{
|
|
1486
3047
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -1490,6 +3051,112 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1490
3051
|
readonly sessionId: Schema.String;
|
|
1491
3052
|
readonly title: Schema.String;
|
|
1492
3053
|
}>;
|
|
3054
|
+
}>, Schema.Struct<{
|
|
3055
|
+
readonly method: Schema.Literal<"session.fork.preview">;
|
|
3056
|
+
readonly parameters: Schema.Struct<{
|
|
3057
|
+
readonly commandId: Schema.String;
|
|
3058
|
+
readonly sessionId: Schema.String;
|
|
3059
|
+
readonly turnId: Schema.optional<Schema.String>;
|
|
3060
|
+
}>;
|
|
3061
|
+
}>, Schema.Struct<{
|
|
3062
|
+
readonly method: Schema.Literal<"session.fork.confirm">;
|
|
3063
|
+
readonly parameters: Schema.Struct<{
|
|
3064
|
+
inputDigest: Schema.String;
|
|
3065
|
+
proof: Schema.String;
|
|
3066
|
+
validUntil: Schema.String;
|
|
3067
|
+
checkpoint: Schema.optional<Schema.String>;
|
|
3068
|
+
commandId: Schema.String;
|
|
3069
|
+
expectedRevision: Schema.String;
|
|
3070
|
+
sessionId: Schema.String;
|
|
3071
|
+
turnId: Schema.String;
|
|
3072
|
+
}>;
|
|
3073
|
+
}>, Schema.Struct<{
|
|
3074
|
+
readonly method: Schema.Literal<"session.switch.preview">;
|
|
3075
|
+
readonly parameters: Schema.Struct<{
|
|
3076
|
+
readonly commandId: Schema.String;
|
|
3077
|
+
readonly sessionId: Schema.String;
|
|
3078
|
+
readonly target: Schema.Struct<{
|
|
3079
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
3080
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
3081
|
+
readonly model: Schema.optional<Schema.String>;
|
|
3082
|
+
}>;
|
|
3083
|
+
}>;
|
|
3084
|
+
}>, Schema.Struct<{
|
|
3085
|
+
readonly method: Schema.Literal<"session.switch.confirm">;
|
|
3086
|
+
readonly parameters: Schema.Struct<{
|
|
3087
|
+
inputDigest: Schema.String;
|
|
3088
|
+
proof: Schema.String;
|
|
3089
|
+
validUntil: Schema.String;
|
|
3090
|
+
commandId: Schema.String;
|
|
3091
|
+
expectedRevision: Schema.String;
|
|
3092
|
+
sessionId: Schema.String;
|
|
3093
|
+
target: Schema.Struct<{
|
|
3094
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
3095
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
3096
|
+
readonly model: Schema.optional<Schema.String>;
|
|
3097
|
+
}>;
|
|
3098
|
+
}>;
|
|
3099
|
+
}>, Schema.Struct<{
|
|
3100
|
+
readonly method: Schema.Literal<"session.setup.preview">;
|
|
3101
|
+
readonly parameters: Schema.Struct<{
|
|
3102
|
+
readonly commandId: Schema.String;
|
|
3103
|
+
readonly sessionId: Schema.String;
|
|
3104
|
+
}>;
|
|
3105
|
+
}>, Schema.Struct<{
|
|
3106
|
+
readonly method: Schema.Literal<"session.setup.confirm">;
|
|
3107
|
+
readonly parameters: Schema.Struct<{
|
|
3108
|
+
inputDigest: Schema.String;
|
|
3109
|
+
proof: Schema.String;
|
|
3110
|
+
validUntil: Schema.String;
|
|
3111
|
+
commandId: Schema.String;
|
|
3112
|
+
expectedRevision: Schema.String;
|
|
3113
|
+
sessionId: Schema.String;
|
|
3114
|
+
setupDigest: Schema.String;
|
|
3115
|
+
}>;
|
|
3116
|
+
}>, Schema.Struct<{
|
|
3117
|
+
readonly method: Schema.Literal<"session.spawn.preview">;
|
|
3118
|
+
readonly parameters: Schema.Struct<{
|
|
3119
|
+
commandId: Schema.String;
|
|
3120
|
+
executor: Schema.String;
|
|
3121
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3122
|
+
parent: Schema.Struct<{
|
|
3123
|
+
readonly children: Schema.Struct<{
|
|
3124
|
+
readonly live: Schema.Int;
|
|
3125
|
+
readonly total: Schema.Int;
|
|
3126
|
+
}>;
|
|
3127
|
+
readonly depth: Schema.Int;
|
|
3128
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3129
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3130
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
3131
|
+
readonly sessionId: Schema.String;
|
|
3132
|
+
}>;
|
|
3133
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3134
|
+
workspaceId: Schema.String;
|
|
3135
|
+
}>;
|
|
3136
|
+
}>, Schema.Struct<{
|
|
3137
|
+
readonly method: Schema.Literal<"session.spawn.confirm">;
|
|
3138
|
+
readonly parameters: Schema.Struct<{
|
|
3139
|
+
inputDigest: Schema.String;
|
|
3140
|
+
proof: Schema.String;
|
|
3141
|
+
validUntil: Schema.String;
|
|
3142
|
+
commandId: Schema.String;
|
|
3143
|
+
executor: Schema.String;
|
|
3144
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3145
|
+
parent: Schema.Struct<{
|
|
3146
|
+
readonly children: Schema.Struct<{
|
|
3147
|
+
readonly live: Schema.Int;
|
|
3148
|
+
readonly total: Schema.Int;
|
|
3149
|
+
}>;
|
|
3150
|
+
readonly depth: Schema.Int;
|
|
3151
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3152
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3153
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
3154
|
+
readonly sessionId: Schema.String;
|
|
3155
|
+
}>;
|
|
3156
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3157
|
+
workspaceId: Schema.String;
|
|
3158
|
+
expectedRevision: Schema.Literal<"0">;
|
|
3159
|
+
}>;
|
|
1493
3160
|
}>]>;
|
|
1494
3161
|
export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1495
3162
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
@@ -1501,6 +3168,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1501
3168
|
readonly createdAt: Schema.String;
|
|
1502
3169
|
readonly eventCursor: Schema.String;
|
|
1503
3170
|
readonly method: Schema.String;
|
|
3171
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1504
3172
|
readonly receiptId: Schema.String;
|
|
1505
3173
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1506
3174
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1519,15 +3187,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1519
3187
|
readonly updatedAt: Schema.String;
|
|
1520
3188
|
readonly workspaceId: Schema.String;
|
|
1521
3189
|
readonly workspaceRevision: Schema.String;
|
|
3190
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3191
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1522
3192
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1523
3193
|
readonly contentDigest: Schema.String;
|
|
1524
3194
|
readonly key: Schema.String;
|
|
1525
3195
|
readonly version: Schema.String;
|
|
1526
3196
|
}>>;
|
|
3197
|
+
/**
|
|
3198
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3199
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3200
|
+
* A sandboxed Session carries none.
|
|
3201
|
+
*/
|
|
3202
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1527
3203
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1528
3204
|
readonly connectionId: Schema.String;
|
|
1529
3205
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1530
|
-
readonly kind: Schema.
|
|
3206
|
+
readonly kind: Schema.String;
|
|
1531
3207
|
readonly model: Schema.optional<Schema.String>;
|
|
1532
3208
|
}>>;
|
|
1533
3209
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1535,7 +3211,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1535
3211
|
readonly code: Schema.String;
|
|
1536
3212
|
readonly message: Schema.String;
|
|
1537
3213
|
}>>;
|
|
3214
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3215
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3216
|
+
/**
|
|
3217
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3218
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3219
|
+
*/
|
|
3220
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3221
|
+
readonly claimedAt: Schema.String;
|
|
3222
|
+
readonly id: Schema.String;
|
|
3223
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3224
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3225
|
+
readonly title: Schema.String;
|
|
3226
|
+
}>>>;
|
|
3227
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3228
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3229
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3230
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3231
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3232
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3233
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3234
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3235
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3236
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3237
|
+
/**
|
|
3238
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3239
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3240
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3241
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3242
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3243
|
+
* it.
|
|
3244
|
+
*/
|
|
3245
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3246
|
+
readonly approvalId: Schema.String;
|
|
3247
|
+
readonly expiresAt: Schema.String;
|
|
3248
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3249
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3250
|
+
readonly label: Schema.String;
|
|
3251
|
+
readonly optionId: Schema.String;
|
|
3252
|
+
}>>>;
|
|
3253
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3254
|
+
}>>;
|
|
3255
|
+
/**
|
|
3256
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3257
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3258
|
+
* every other state.
|
|
3259
|
+
*/
|
|
3260
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3261
|
+
readonly code: Schema.String;
|
|
3262
|
+
readonly message: Schema.String;
|
|
3263
|
+
}>>;
|
|
1538
3264
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3265
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3266
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3267
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3268
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1539
3269
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1540
3270
|
readonly title: Schema.optional<Schema.String>;
|
|
1541
3271
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1586,6 +3316,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1586
3316
|
readonly createdAt: Schema.String;
|
|
1587
3317
|
readonly eventCursor: Schema.String;
|
|
1588
3318
|
readonly method: Schema.String;
|
|
3319
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1589
3320
|
readonly receiptId: Schema.String;
|
|
1590
3321
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1591
3322
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1644,15 +3375,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1644
3375
|
readonly updatedAt: Schema.String;
|
|
1645
3376
|
readonly workspaceId: Schema.String;
|
|
1646
3377
|
readonly workspaceRevision: Schema.String;
|
|
3378
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3379
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1647
3380
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1648
3381
|
readonly contentDigest: Schema.String;
|
|
1649
3382
|
readonly key: Schema.String;
|
|
1650
3383
|
readonly version: Schema.String;
|
|
1651
3384
|
}>>;
|
|
3385
|
+
/**
|
|
3386
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3387
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3388
|
+
* A sandboxed Session carries none.
|
|
3389
|
+
*/
|
|
3390
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1652
3391
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1653
3392
|
readonly connectionId: Schema.String;
|
|
1654
3393
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1655
|
-
readonly kind: Schema.
|
|
3394
|
+
readonly kind: Schema.String;
|
|
1656
3395
|
readonly model: Schema.optional<Schema.String>;
|
|
1657
3396
|
}>>;
|
|
1658
3397
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1660,7 +3399,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1660
3399
|
readonly code: Schema.String;
|
|
1661
3400
|
readonly message: Schema.String;
|
|
1662
3401
|
}>>;
|
|
3402
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3403
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3404
|
+
/**
|
|
3405
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3406
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3407
|
+
*/
|
|
3408
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3409
|
+
readonly claimedAt: Schema.String;
|
|
3410
|
+
readonly id: Schema.String;
|
|
3411
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3412
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3413
|
+
readonly title: Schema.String;
|
|
3414
|
+
}>>>;
|
|
3415
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3416
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3417
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3418
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3419
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3420
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3421
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3422
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3423
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3424
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3425
|
+
/**
|
|
3426
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3427
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3428
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3429
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3430
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3431
|
+
* it.
|
|
3432
|
+
*/
|
|
3433
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3434
|
+
readonly approvalId: Schema.String;
|
|
3435
|
+
readonly expiresAt: Schema.String;
|
|
3436
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3437
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3438
|
+
readonly label: Schema.String;
|
|
3439
|
+
readonly optionId: Schema.String;
|
|
3440
|
+
}>>>;
|
|
3441
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3442
|
+
}>>;
|
|
3443
|
+
/**
|
|
3444
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3445
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3446
|
+
* every other state.
|
|
3447
|
+
*/
|
|
3448
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3449
|
+
readonly code: Schema.String;
|
|
3450
|
+
readonly message: Schema.String;
|
|
3451
|
+
}>>;
|
|
1663
3452
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3453
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3454
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3455
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3456
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1664
3457
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1665
3458
|
readonly title: Schema.optional<Schema.String>;
|
|
1666
3459
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1701,6 +3494,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1701
3494
|
readonly createdAt: Schema.String;
|
|
1702
3495
|
readonly eventCursor: Schema.String;
|
|
1703
3496
|
readonly method: Schema.String;
|
|
3497
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1704
3498
|
readonly receiptId: Schema.String;
|
|
1705
3499
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1706
3500
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1729,7 +3523,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1729
3523
|
readonly rssBytes: Schema.optional<Schema.Int>;
|
|
1730
3524
|
readonly wallTimeMilliseconds: Schema.optional<Schema.Int>;
|
|
1731
3525
|
}>>;
|
|
1732
|
-
readonly runtime: Schema.
|
|
3526
|
+
readonly runtime: Schema.String;
|
|
1733
3527
|
readonly runtimeThreadId: Schema.String;
|
|
1734
3528
|
readonly startedAt: Schema.String;
|
|
1735
3529
|
readonly turn: Schema.optional<Schema.Struct<{
|
|
@@ -1746,6 +3540,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1746
3540
|
readonly stallAfterSeconds: Schema.Int;
|
|
1747
3541
|
}>, Schema.Struct<{
|
|
1748
3542
|
readonly method: Schema.Literal<"session.show">;
|
|
3543
|
+
readonly remoteChildren: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3544
|
+
readonly linkedAt: Schema.String;
|
|
3545
|
+
readonly node: Schema.String;
|
|
3546
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
3547
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
3548
|
+
readonly sessionId: Schema.String;
|
|
3549
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
3550
|
+
}>>>;
|
|
1749
3551
|
readonly session: Schema.Struct<{
|
|
1750
3552
|
readonly createdAt: Schema.String;
|
|
1751
3553
|
readonly id: Schema.String;
|
|
@@ -1755,15 +3557,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1755
3557
|
readonly updatedAt: Schema.String;
|
|
1756
3558
|
readonly workspaceId: Schema.String;
|
|
1757
3559
|
readonly workspaceRevision: Schema.String;
|
|
3560
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3561
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1758
3562
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1759
3563
|
readonly contentDigest: Schema.String;
|
|
1760
3564
|
readonly key: Schema.String;
|
|
1761
3565
|
readonly version: Schema.String;
|
|
1762
3566
|
}>>;
|
|
3567
|
+
/**
|
|
3568
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3569
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3570
|
+
* A sandboxed Session carries none.
|
|
3571
|
+
*/
|
|
3572
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1763
3573
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1764
3574
|
readonly connectionId: Schema.String;
|
|
1765
3575
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1766
|
-
readonly kind: Schema.
|
|
3576
|
+
readonly kind: Schema.String;
|
|
1767
3577
|
readonly model: Schema.optional<Schema.String>;
|
|
1768
3578
|
}>>;
|
|
1769
3579
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1771,7 +3581,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1771
3581
|
readonly code: Schema.String;
|
|
1772
3582
|
readonly message: Schema.String;
|
|
1773
3583
|
}>>;
|
|
3584
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3585
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3586
|
+
/**
|
|
3587
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3588
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3589
|
+
*/
|
|
3590
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3591
|
+
readonly claimedAt: Schema.String;
|
|
3592
|
+
readonly id: Schema.String;
|
|
3593
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3594
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3595
|
+
readonly title: Schema.String;
|
|
3596
|
+
}>>>;
|
|
3597
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3598
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3599
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3600
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3601
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3602
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3603
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3604
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3605
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3606
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3607
|
+
/**
|
|
3608
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3609
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3610
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3611
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3612
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3613
|
+
* it.
|
|
3614
|
+
*/
|
|
3615
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3616
|
+
readonly approvalId: Schema.String;
|
|
3617
|
+
readonly expiresAt: Schema.String;
|
|
3618
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3619
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3620
|
+
readonly label: Schema.String;
|
|
3621
|
+
readonly optionId: Schema.String;
|
|
3622
|
+
}>>>;
|
|
3623
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3624
|
+
}>>;
|
|
3625
|
+
/**
|
|
3626
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3627
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3628
|
+
* every other state.
|
|
3629
|
+
*/
|
|
3630
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3631
|
+
readonly code: Schema.String;
|
|
3632
|
+
readonly message: Schema.String;
|
|
3633
|
+
}>>;
|
|
1774
3634
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3635
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3636
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3637
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3638
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1775
3639
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1776
3640
|
readonly title: Schema.optional<Schema.String>;
|
|
1777
3641
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1799,15 +3663,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1799
3663
|
readonly updatedAt: Schema.String;
|
|
1800
3664
|
readonly workspaceId: Schema.String;
|
|
1801
3665
|
readonly workspaceRevision: Schema.String;
|
|
3666
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3667
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1802
3668
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1803
3669
|
readonly contentDigest: Schema.String;
|
|
1804
3670
|
readonly key: Schema.String;
|
|
1805
3671
|
readonly version: Schema.String;
|
|
1806
3672
|
}>>;
|
|
3673
|
+
/**
|
|
3674
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3675
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3676
|
+
* A sandboxed Session carries none.
|
|
3677
|
+
*/
|
|
3678
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1807
3679
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1808
3680
|
readonly connectionId: Schema.String;
|
|
1809
3681
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1810
|
-
readonly kind: Schema.
|
|
3682
|
+
readonly kind: Schema.String;
|
|
1811
3683
|
readonly model: Schema.optional<Schema.String>;
|
|
1812
3684
|
}>>;
|
|
1813
3685
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1815,69 +3687,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1815
3687
|
readonly code: Schema.String;
|
|
1816
3688
|
readonly message: Schema.String;
|
|
1817
3689
|
}>>;
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
readonly
|
|
1826
|
-
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
1827
|
-
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1828
|
-
readonly digest: Schema.String;
|
|
1829
|
-
readonly name: Schema.String;
|
|
1830
|
-
}>>>;
|
|
1831
|
-
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1832
|
-
}>>;
|
|
1833
|
-
}>;
|
|
1834
|
-
}>, Schema.Struct<{
|
|
1835
|
-
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1836
|
-
readonly harness: Schema.Literals<readonly ["maia-agent", "pi"]>;
|
|
1837
|
-
readonly method: Schema.Literal<"session.spawn">;
|
|
1838
|
-
readonly parentSessionId: Schema.String;
|
|
1839
|
-
readonly receipt: Schema.Struct<{
|
|
1840
|
-
readonly actorId: Schema.String;
|
|
1841
|
-
readonly aggregateRevision: Schema.String;
|
|
1842
|
-
readonly commandId: Schema.String;
|
|
1843
|
-
readonly createdAt: Schema.String;
|
|
1844
|
-
readonly eventCursor: Schema.String;
|
|
1845
|
-
readonly method: Schema.String;
|
|
1846
|
-
readonly receiptId: Schema.String;
|
|
1847
|
-
readonly schemaVersion: Schema.Literal<1>;
|
|
1848
|
-
readonly state: Schema.Literal<"succeeded">;
|
|
1849
|
-
readonly target: Schema.Struct<{
|
|
3690
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3691
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3692
|
+
/**
|
|
3693
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3694
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3695
|
+
*/
|
|
3696
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3697
|
+
readonly claimedAt: Schema.String;
|
|
1850
3698
|
readonly id: Schema.String;
|
|
1851
|
-
readonly
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
readonly
|
|
1857
|
-
|
|
1858
|
-
readonly
|
|
1859
|
-
|
|
1860
|
-
readonly
|
|
1861
|
-
|
|
1862
|
-
readonly
|
|
1863
|
-
|
|
1864
|
-
readonly
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
3699
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3700
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3701
|
+
readonly title: Schema.String;
|
|
3702
|
+
}>>>;
|
|
3703
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3704
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3705
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
3706
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3707
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3708
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3709
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3710
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3711
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3712
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3713
|
+
/**
|
|
3714
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3715
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3716
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3717
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3718
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3719
|
+
* it.
|
|
3720
|
+
*/
|
|
3721
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3722
|
+
readonly approvalId: Schema.String;
|
|
3723
|
+
readonly expiresAt: Schema.String;
|
|
3724
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3725
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3726
|
+
readonly label: Schema.String;
|
|
3727
|
+
readonly optionId: Schema.String;
|
|
3728
|
+
}>>>;
|
|
3729
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1874
3730
|
}>>;
|
|
1875
|
-
/**
|
|
1876
|
-
|
|
3731
|
+
/**
|
|
3732
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3733
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3734
|
+
* every other state.
|
|
3735
|
+
*/
|
|
3736
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1877
3737
|
readonly code: Schema.String;
|
|
1878
3738
|
readonly message: Schema.String;
|
|
1879
3739
|
}>>;
|
|
1880
3740
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3741
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3742
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3743
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3744
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1881
3745
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1882
3746
|
readonly title: Schema.optional<Schema.String>;
|
|
1883
3747
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -1910,13 +3774,21 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1910
3774
|
readonly key: Schema.String;
|
|
1911
3775
|
readonly version: Schema.String;
|
|
1912
3776
|
}>>;
|
|
3777
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
3778
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
3779
|
+
/** `none` when the Session runs with host authority. */
|
|
3780
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
3781
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
3782
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1913
3783
|
/** The account the Session binds to, named or picked by the Node. */
|
|
1914
3784
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1915
3785
|
readonly connectionId: Schema.String;
|
|
1916
3786
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1917
|
-
readonly kind: Schema.
|
|
3787
|
+
readonly kind: Schema.String;
|
|
1918
3788
|
readonly model: Schema.optional<Schema.String>;
|
|
1919
3789
|
}>>;
|
|
3790
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
3791
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1920
3792
|
readonly projectId: Schema.String;
|
|
1921
3793
|
readonly workspaceId: Schema.String;
|
|
1922
3794
|
readonly workspaceRevision: Schema.String;
|
|
@@ -1960,6 +3832,20 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1960
3832
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1961
3833
|
readonly sessionCursor: Schema.String;
|
|
1962
3834
|
readonly sessionId: Schema.String;
|
|
3835
|
+
}>, Schema.Struct<{
|
|
3836
|
+
readonly commandId: Schema.String;
|
|
3837
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
3838
|
+
readonly globalCursor: Schema.String;
|
|
3839
|
+
readonly payload: Schema.Struct<{
|
|
3840
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3841
|
+
readonly code: Schema.String;
|
|
3842
|
+
readonly message: Schema.String;
|
|
3843
|
+
}>>;
|
|
3844
|
+
}>;
|
|
3845
|
+
readonly recordedAt: Schema.String;
|
|
3846
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
3847
|
+
readonly sessionCursor: Schema.String;
|
|
3848
|
+
readonly sessionId: Schema.String;
|
|
1963
3849
|
}>, Schema.Struct<{
|
|
1964
3850
|
readonly commandId: Schema.String;
|
|
1965
3851
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -2112,6 +3998,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2112
3998
|
}>]>]>>;
|
|
2113
3999
|
readonly method: Schema.Literal<"session.events.list">;
|
|
2114
4000
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
4001
|
+
/** Set when a prune removed events after the caller's cursor. Send `nextSessionCursor` as `afterSessionCursor`; with none, send the last item's cursor. On an empty page keep the cursor you sent, and send "0" if you have none. Never send this marker. */
|
|
4002
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
2115
4003
|
readonly sessionId: Schema.String;
|
|
2116
4004
|
}>, Schema.Struct<{
|
|
2117
4005
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
@@ -2123,6 +4011,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2123
4011
|
readonly createdAt: Schema.String;
|
|
2124
4012
|
readonly eventCursor: Schema.String;
|
|
2125
4013
|
readonly method: Schema.String;
|
|
4014
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2126
4015
|
readonly receiptId: Schema.String;
|
|
2127
4016
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2128
4017
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2141,15 +4030,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2141
4030
|
readonly updatedAt: Schema.String;
|
|
2142
4031
|
readonly workspaceId: Schema.String;
|
|
2143
4032
|
readonly workspaceRevision: Schema.String;
|
|
4033
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4034
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2144
4035
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2145
4036
|
readonly contentDigest: Schema.String;
|
|
2146
4037
|
readonly key: Schema.String;
|
|
2147
4038
|
readonly version: Schema.String;
|
|
2148
4039
|
}>>;
|
|
4040
|
+
/**
|
|
4041
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4042
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4043
|
+
* A sandboxed Session carries none.
|
|
4044
|
+
*/
|
|
4045
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2149
4046
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2150
4047
|
readonly connectionId: Schema.String;
|
|
2151
4048
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2152
|
-
readonly kind: Schema.
|
|
4049
|
+
readonly kind: Schema.String;
|
|
2153
4050
|
readonly model: Schema.optional<Schema.String>;
|
|
2154
4051
|
}>>;
|
|
2155
4052
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2157,7 +4054,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2157
4054
|
readonly code: Schema.String;
|
|
2158
4055
|
readonly message: Schema.String;
|
|
2159
4056
|
}>>;
|
|
4057
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4058
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4059
|
+
/**
|
|
4060
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4061
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4062
|
+
*/
|
|
4063
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4064
|
+
readonly claimedAt: Schema.String;
|
|
4065
|
+
readonly id: Schema.String;
|
|
4066
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4067
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4068
|
+
readonly title: Schema.String;
|
|
4069
|
+
}>>>;
|
|
4070
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4071
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4072
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
4073
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4074
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4075
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4076
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4077
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4078
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4079
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4080
|
+
/**
|
|
4081
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4082
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4083
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4084
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4085
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4086
|
+
* it.
|
|
4087
|
+
*/
|
|
4088
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4089
|
+
readonly approvalId: Schema.String;
|
|
4090
|
+
readonly expiresAt: Schema.String;
|
|
4091
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4092
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4093
|
+
readonly label: Schema.String;
|
|
4094
|
+
readonly optionId: Schema.String;
|
|
4095
|
+
}>>>;
|
|
4096
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4097
|
+
}>>;
|
|
4098
|
+
/**
|
|
4099
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4100
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4101
|
+
* every other state.
|
|
4102
|
+
*/
|
|
4103
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4104
|
+
readonly code: Schema.String;
|
|
4105
|
+
readonly message: Schema.String;
|
|
4106
|
+
}>>;
|
|
2160
4107
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4108
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4109
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4110
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4111
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2161
4112
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2162
4113
|
readonly title: Schema.optional<Schema.String>;
|
|
2163
4114
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2183,6 +4134,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2183
4134
|
readonly createdAt: Schema.String;
|
|
2184
4135
|
readonly eventCursor: Schema.String;
|
|
2185
4136
|
readonly method: Schema.String;
|
|
4137
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2186
4138
|
readonly receiptId: Schema.String;
|
|
2187
4139
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2188
4140
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2201,15 +4153,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2201
4153
|
readonly updatedAt: Schema.String;
|
|
2202
4154
|
readonly workspaceId: Schema.String;
|
|
2203
4155
|
readonly workspaceRevision: Schema.String;
|
|
4156
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4157
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2204
4158
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2205
4159
|
readonly contentDigest: Schema.String;
|
|
2206
4160
|
readonly key: Schema.String;
|
|
2207
4161
|
readonly version: Schema.String;
|
|
2208
4162
|
}>>;
|
|
4163
|
+
/**
|
|
4164
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4165
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4166
|
+
* A sandboxed Session carries none.
|
|
4167
|
+
*/
|
|
4168
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2209
4169
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2210
4170
|
readonly connectionId: Schema.String;
|
|
2211
4171
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2212
|
-
readonly kind: Schema.
|
|
4172
|
+
readonly kind: Schema.String;
|
|
2213
4173
|
readonly model: Schema.optional<Schema.String>;
|
|
2214
4174
|
}>>;
|
|
2215
4175
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2217,7 +4177,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2217
4177
|
readonly code: Schema.String;
|
|
2218
4178
|
readonly message: Schema.String;
|
|
2219
4179
|
}>>;
|
|
4180
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4181
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4182
|
+
/**
|
|
4183
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4184
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4185
|
+
*/
|
|
4186
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4187
|
+
readonly claimedAt: Schema.String;
|
|
4188
|
+
readonly id: Schema.String;
|
|
4189
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4190
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4191
|
+
readonly title: Schema.String;
|
|
4192
|
+
}>>>;
|
|
4193
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4194
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4195
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
4196
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4197
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4198
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4199
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4200
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4201
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4202
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4203
|
+
/**
|
|
4204
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4205
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4206
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4207
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4208
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4209
|
+
* it.
|
|
4210
|
+
*/
|
|
4211
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4212
|
+
readonly approvalId: Schema.String;
|
|
4213
|
+
readonly expiresAt: Schema.String;
|
|
4214
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4215
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4216
|
+
readonly label: Schema.String;
|
|
4217
|
+
readonly optionId: Schema.String;
|
|
4218
|
+
}>>>;
|
|
4219
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4220
|
+
}>>;
|
|
4221
|
+
/**
|
|
4222
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4223
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4224
|
+
* every other state.
|
|
4225
|
+
*/
|
|
4226
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4227
|
+
readonly code: Schema.String;
|
|
4228
|
+
readonly message: Schema.String;
|
|
4229
|
+
}>>;
|
|
2220
4230
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4231
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4232
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4233
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4234
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2221
4235
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2222
4236
|
readonly title: Schema.optional<Schema.String>;
|
|
2223
4237
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2243,6 +4257,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2243
4257
|
readonly createdAt: Schema.String;
|
|
2244
4258
|
readonly eventCursor: Schema.String;
|
|
2245
4259
|
readonly method: Schema.String;
|
|
4260
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2246
4261
|
readonly receiptId: Schema.String;
|
|
2247
4262
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2248
4263
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2261,15 +4276,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2261
4276
|
readonly updatedAt: Schema.String;
|
|
2262
4277
|
readonly workspaceId: Schema.String;
|
|
2263
4278
|
readonly workspaceRevision: Schema.String;
|
|
4279
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4280
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2264
4281
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2265
4282
|
readonly contentDigest: Schema.String;
|
|
2266
4283
|
readonly key: Schema.String;
|
|
2267
4284
|
readonly version: Schema.String;
|
|
2268
4285
|
}>>;
|
|
4286
|
+
/**
|
|
4287
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4288
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4289
|
+
* A sandboxed Session carries none.
|
|
4290
|
+
*/
|
|
4291
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2269
4292
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2270
4293
|
readonly connectionId: Schema.String;
|
|
2271
4294
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2272
|
-
readonly kind: Schema.
|
|
4295
|
+
readonly kind: Schema.String;
|
|
2273
4296
|
readonly model: Schema.optional<Schema.String>;
|
|
2274
4297
|
}>>;
|
|
2275
4298
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2277,7 +4300,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2277
4300
|
readonly code: Schema.String;
|
|
2278
4301
|
readonly message: Schema.String;
|
|
2279
4302
|
}>>;
|
|
4303
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4304
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4305
|
+
/**
|
|
4306
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4307
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4308
|
+
*/
|
|
4309
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4310
|
+
readonly claimedAt: Schema.String;
|
|
4311
|
+
readonly id: Schema.String;
|
|
4312
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4313
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4314
|
+
readonly title: Schema.String;
|
|
4315
|
+
}>>>;
|
|
4316
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4317
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4318
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
4319
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4320
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4321
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4322
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4323
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4324
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4325
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4326
|
+
/**
|
|
4327
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4328
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4329
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4330
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4331
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4332
|
+
* it.
|
|
4333
|
+
*/
|
|
4334
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4335
|
+
readonly approvalId: Schema.String;
|
|
4336
|
+
readonly expiresAt: Schema.String;
|
|
4337
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4338
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4339
|
+
readonly label: Schema.String;
|
|
4340
|
+
readonly optionId: Schema.String;
|
|
4341
|
+
}>>>;
|
|
4342
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4343
|
+
}>>;
|
|
4344
|
+
/**
|
|
4345
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4346
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4347
|
+
* every other state.
|
|
4348
|
+
*/
|
|
4349
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4350
|
+
readonly code: Schema.String;
|
|
4351
|
+
readonly message: Schema.String;
|
|
4352
|
+
}>>;
|
|
2280
4353
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4354
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4355
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4356
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4357
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2281
4358
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2282
4359
|
readonly title: Schema.optional<Schema.String>;
|
|
2283
4360
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2310,6 +4387,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2310
4387
|
readonly patchTruncated: Schema.optional<Schema.Literal<true>>;
|
|
2311
4388
|
readonly sessionId: Schema.String;
|
|
2312
4389
|
readonly totalFiles: Schema.Int;
|
|
4390
|
+
}>, Schema.Struct<{
|
|
4391
|
+
readonly ahead: Schema.optional<Schema.Int>;
|
|
4392
|
+
readonly baseRef: Schema.String;
|
|
4393
|
+
readonly baseRevision: Schema.optional<Schema.String>;
|
|
4394
|
+
readonly behind: Schema.optional<Schema.Int>;
|
|
4395
|
+
readonly branch: Schema.optional<Schema.String>;
|
|
4396
|
+
readonly changedFiles: Schema.Int;
|
|
4397
|
+
readonly dirty: Schema.Boolean;
|
|
4398
|
+
readonly headRevision: Schema.String;
|
|
4399
|
+
readonly method: Schema.Literal<"session.git.status">;
|
|
4400
|
+
readonly observedAt: Schema.String;
|
|
4401
|
+
readonly sessionId: Schema.String;
|
|
4402
|
+
readonly upstream: Schema.optional<Schema.Struct<{
|
|
4403
|
+
readonly ahead: Schema.optional<Schema.Int>;
|
|
4404
|
+
readonly behind: Schema.optional<Schema.Int>;
|
|
4405
|
+
readonly name: Schema.String;
|
|
4406
|
+
}>>;
|
|
2313
4407
|
}>, Schema.Struct<{
|
|
2314
4408
|
readonly archive: Schema.optional<Schema.Struct<{
|
|
2315
4409
|
readonly branch: Schema.String;
|
|
@@ -2326,6 +4420,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2326
4420
|
readonly createdAt: Schema.String;
|
|
2327
4421
|
readonly eventCursor: Schema.String;
|
|
2328
4422
|
readonly method: Schema.String;
|
|
4423
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2329
4424
|
readonly receiptId: Schema.String;
|
|
2330
4425
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2331
4426
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2344,15 +4439,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2344
4439
|
readonly updatedAt: Schema.String;
|
|
2345
4440
|
readonly workspaceId: Schema.String;
|
|
2346
4441
|
readonly workspaceRevision: Schema.String;
|
|
4442
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4443
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2347
4444
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2348
4445
|
readonly contentDigest: Schema.String;
|
|
2349
4446
|
readonly key: Schema.String;
|
|
2350
4447
|
readonly version: Schema.String;
|
|
2351
4448
|
}>>;
|
|
4449
|
+
/**
|
|
4450
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4451
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4452
|
+
* A sandboxed Session carries none.
|
|
4453
|
+
*/
|
|
4454
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2352
4455
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2353
4456
|
readonly connectionId: Schema.String;
|
|
2354
4457
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2355
|
-
readonly kind: Schema.
|
|
4458
|
+
readonly kind: Schema.String;
|
|
2356
4459
|
readonly model: Schema.optional<Schema.String>;
|
|
2357
4460
|
}>>;
|
|
2358
4461
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2360,7 +4463,61 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2360
4463
|
readonly code: Schema.String;
|
|
2361
4464
|
readonly message: Schema.String;
|
|
2362
4465
|
}>>;
|
|
4466
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4467
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4468
|
+
/**
|
|
4469
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4470
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4471
|
+
*/
|
|
4472
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4473
|
+
readonly claimedAt: Schema.String;
|
|
4474
|
+
readonly id: Schema.String;
|
|
4475
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4476
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4477
|
+
readonly title: Schema.String;
|
|
4478
|
+
}>>>;
|
|
4479
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4480
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4481
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
4482
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4483
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4484
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4485
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4486
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4487
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4488
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4489
|
+
/**
|
|
4490
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4491
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4492
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4493
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4494
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4495
|
+
* it.
|
|
4496
|
+
*/
|
|
4497
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4498
|
+
readonly approvalId: Schema.String;
|
|
4499
|
+
readonly expiresAt: Schema.String;
|
|
4500
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4501
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4502
|
+
readonly label: Schema.String;
|
|
4503
|
+
readonly optionId: Schema.String;
|
|
4504
|
+
}>>>;
|
|
4505
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4506
|
+
}>>;
|
|
4507
|
+
/**
|
|
4508
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4509
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4510
|
+
* every other state.
|
|
4511
|
+
*/
|
|
4512
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4513
|
+
readonly code: Schema.String;
|
|
4514
|
+
readonly message: Schema.String;
|
|
4515
|
+
}>>;
|
|
2363
4516
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4517
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4518
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4519
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4520
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2364
4521
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2365
4522
|
readonly title: Schema.optional<Schema.String>;
|
|
2366
4523
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2376,6 +4533,9 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2376
4533
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
2377
4534
|
}>>;
|
|
2378
4535
|
}>;
|
|
4536
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
4537
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4538
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
2379
4539
|
}>, Schema.Struct<{
|
|
2380
4540
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2381
4541
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -2386,6 +4546,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2386
4546
|
readonly createdAt: Schema.String;
|
|
2387
4547
|
readonly eventCursor: Schema.String;
|
|
2388
4548
|
readonly method: Schema.String;
|
|
4549
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2389
4550
|
readonly receiptId: Schema.String;
|
|
2390
4551
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2391
4552
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2404,15 +4565,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2404
4565
|
readonly updatedAt: Schema.String;
|
|
2405
4566
|
readonly workspaceId: Schema.String;
|
|
2406
4567
|
readonly workspaceRevision: Schema.String;
|
|
4568
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4569
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2407
4570
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2408
4571
|
readonly contentDigest: Schema.String;
|
|
2409
4572
|
readonly key: Schema.String;
|
|
2410
4573
|
readonly version: Schema.String;
|
|
2411
4574
|
}>>;
|
|
4575
|
+
/**
|
|
4576
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4577
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4578
|
+
* A sandboxed Session carries none.
|
|
4579
|
+
*/
|
|
4580
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2412
4581
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2413
4582
|
readonly connectionId: Schema.String;
|
|
2414
4583
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2415
|
-
readonly kind: Schema.
|
|
4584
|
+
readonly kind: Schema.String;
|
|
2416
4585
|
readonly model: Schema.optional<Schema.String>;
|
|
2417
4586
|
}>>;
|
|
2418
4587
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2420,7 +4589,523 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2420
4589
|
readonly code: Schema.String;
|
|
2421
4590
|
readonly message: Schema.String;
|
|
2422
4591
|
}>>;
|
|
4592
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4593
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4594
|
+
/**
|
|
4595
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4596
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4597
|
+
*/
|
|
4598
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4599
|
+
readonly claimedAt: Schema.String;
|
|
4600
|
+
readonly id: Schema.String;
|
|
4601
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4602
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4603
|
+
readonly title: Schema.String;
|
|
4604
|
+
}>>>;
|
|
4605
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4606
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4607
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
4608
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4609
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4610
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4611
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4612
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4613
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4614
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4615
|
+
/**
|
|
4616
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4617
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4618
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4619
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4620
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4621
|
+
* it.
|
|
4622
|
+
*/
|
|
4623
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4624
|
+
readonly approvalId: Schema.String;
|
|
4625
|
+
readonly expiresAt: Schema.String;
|
|
4626
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4627
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4628
|
+
readonly label: Schema.String;
|
|
4629
|
+
readonly optionId: Schema.String;
|
|
4630
|
+
}>>>;
|
|
4631
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4632
|
+
}>>;
|
|
4633
|
+
/**
|
|
4634
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4635
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4636
|
+
* every other state.
|
|
4637
|
+
*/
|
|
4638
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4639
|
+
readonly code: Schema.String;
|
|
4640
|
+
readonly message: Schema.String;
|
|
4641
|
+
}>>;
|
|
4642
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
4643
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4644
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4645
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4646
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
4647
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
4648
|
+
readonly title: Schema.optional<Schema.String>;
|
|
4649
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
4650
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
4651
|
+
readonly baseRef: Schema.String;
|
|
4652
|
+
readonly baseRevision: Schema.String;
|
|
4653
|
+
readonly branch: Schema.String;
|
|
4654
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
4655
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4656
|
+
readonly digest: Schema.String;
|
|
4657
|
+
readonly name: Schema.String;
|
|
4658
|
+
}>>>;
|
|
4659
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
4660
|
+
}>>;
|
|
4661
|
+
}>;
|
|
4662
|
+
}>, Schema.Struct<{
|
|
4663
|
+
readonly inputDigest: Schema.String;
|
|
4664
|
+
readonly proof: Schema.String;
|
|
4665
|
+
readonly validUntil: Schema.String;
|
|
4666
|
+
readonly checkpoint: Schema.optional<Schema.String>;
|
|
4667
|
+
readonly commandId: Schema.String;
|
|
4668
|
+
readonly expectedRevision: Schema.String;
|
|
4669
|
+
readonly sessionId: Schema.String;
|
|
4670
|
+
readonly turnId: Schema.String;
|
|
4671
|
+
readonly method: Schema.Literal<"session.fork.preview">;
|
|
4672
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4673
|
+
}>, Schema.Struct<{
|
|
4674
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
4675
|
+
readonly handoff: Schema.String;
|
|
4676
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4677
|
+
readonly receipt: Schema.Struct<{
|
|
4678
|
+
readonly actorId: Schema.String;
|
|
4679
|
+
readonly aggregateRevision: Schema.String;
|
|
4680
|
+
readonly commandId: Schema.String;
|
|
4681
|
+
readonly createdAt: Schema.String;
|
|
4682
|
+
readonly eventCursor: Schema.String;
|
|
4683
|
+
readonly method: Schema.String;
|
|
4684
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
4685
|
+
readonly receiptId: Schema.String;
|
|
4686
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
4687
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
4688
|
+
readonly target: Schema.Struct<{
|
|
4689
|
+
readonly id: Schema.String;
|
|
4690
|
+
readonly type: Schema.String;
|
|
4691
|
+
}>;
|
|
4692
|
+
readonly updatedAt: Schema.String;
|
|
4693
|
+
}>;
|
|
4694
|
+
readonly session: Schema.Struct<{
|
|
4695
|
+
readonly createdAt: Schema.String;
|
|
4696
|
+
readonly id: Schema.String;
|
|
4697
|
+
readonly projectId: Schema.String;
|
|
4698
|
+
readonly revision: Schema.String;
|
|
4699
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
4700
|
+
readonly updatedAt: Schema.String;
|
|
4701
|
+
readonly workspaceId: Schema.String;
|
|
4702
|
+
readonly workspaceRevision: Schema.String;
|
|
4703
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4704
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
4705
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
4706
|
+
readonly contentDigest: Schema.String;
|
|
4707
|
+
readonly key: Schema.String;
|
|
4708
|
+
readonly version: Schema.String;
|
|
4709
|
+
}>>;
|
|
4710
|
+
/**
|
|
4711
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4712
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4713
|
+
* A sandboxed Session carries none.
|
|
4714
|
+
*/
|
|
4715
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
4716
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
4717
|
+
readonly connectionId: Schema.String;
|
|
4718
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
4719
|
+
readonly kind: Schema.String;
|
|
4720
|
+
readonly model: Schema.optional<Schema.String>;
|
|
4721
|
+
}>>;
|
|
4722
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
4723
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
4724
|
+
readonly code: Schema.String;
|
|
4725
|
+
readonly message: Schema.String;
|
|
4726
|
+
}>>;
|
|
4727
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4728
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4729
|
+
/**
|
|
4730
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4731
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4732
|
+
*/
|
|
4733
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4734
|
+
readonly claimedAt: Schema.String;
|
|
4735
|
+
readonly id: Schema.String;
|
|
4736
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4737
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4738
|
+
readonly title: Schema.String;
|
|
4739
|
+
}>>>;
|
|
4740
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4741
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4742
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
4743
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4744
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4745
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4746
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4747
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4748
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4749
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4750
|
+
/**
|
|
4751
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4752
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4753
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4754
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4755
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4756
|
+
* it.
|
|
4757
|
+
*/
|
|
4758
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4759
|
+
readonly approvalId: Schema.String;
|
|
4760
|
+
readonly expiresAt: Schema.String;
|
|
4761
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4762
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4763
|
+
readonly label: Schema.String;
|
|
4764
|
+
readonly optionId: Schema.String;
|
|
4765
|
+
}>>>;
|
|
4766
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4767
|
+
}>>;
|
|
4768
|
+
/**
|
|
4769
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4770
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4771
|
+
* every other state.
|
|
4772
|
+
*/
|
|
4773
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4774
|
+
readonly code: Schema.String;
|
|
4775
|
+
readonly message: Schema.String;
|
|
4776
|
+
}>>;
|
|
4777
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
4778
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4779
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4780
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4781
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
4782
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
4783
|
+
readonly title: Schema.optional<Schema.String>;
|
|
4784
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
4785
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
4786
|
+
readonly baseRef: Schema.String;
|
|
4787
|
+
readonly baseRevision: Schema.String;
|
|
4788
|
+
readonly branch: Schema.String;
|
|
4789
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
4790
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4791
|
+
readonly digest: Schema.String;
|
|
4792
|
+
readonly name: Schema.String;
|
|
4793
|
+
}>>>;
|
|
4794
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
4795
|
+
}>>;
|
|
4796
|
+
}>;
|
|
4797
|
+
readonly sourceSessionId: Schema.String;
|
|
4798
|
+
readonly method: Schema.Literal<"session.fork.confirm">;
|
|
4799
|
+
}>, Schema.Struct<{
|
|
4800
|
+
readonly inputDigest: Schema.String;
|
|
4801
|
+
readonly proof: Schema.String;
|
|
4802
|
+
readonly validUntil: Schema.String;
|
|
4803
|
+
readonly commandId: Schema.String;
|
|
4804
|
+
readonly expectedRevision: Schema.String;
|
|
4805
|
+
readonly sessionId: Schema.String;
|
|
4806
|
+
readonly target: Schema.Struct<{
|
|
4807
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
4808
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
4809
|
+
readonly model: Schema.optional<Schema.String>;
|
|
4810
|
+
}>;
|
|
4811
|
+
readonly method: Schema.Literal<"session.switch.preview">;
|
|
4812
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4813
|
+
}>, Schema.Struct<{
|
|
4814
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
4815
|
+
readonly handoff: Schema.String;
|
|
4816
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4817
|
+
readonly receipt: Schema.Struct<{
|
|
4818
|
+
readonly actorId: Schema.String;
|
|
4819
|
+
readonly aggregateRevision: Schema.String;
|
|
4820
|
+
readonly commandId: Schema.String;
|
|
4821
|
+
readonly createdAt: Schema.String;
|
|
4822
|
+
readonly eventCursor: Schema.String;
|
|
4823
|
+
readonly method: Schema.String;
|
|
4824
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
4825
|
+
readonly receiptId: Schema.String;
|
|
4826
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
4827
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
4828
|
+
readonly target: Schema.Struct<{
|
|
4829
|
+
readonly id: Schema.String;
|
|
4830
|
+
readonly type: Schema.String;
|
|
4831
|
+
}>;
|
|
4832
|
+
readonly updatedAt: Schema.String;
|
|
4833
|
+
}>;
|
|
4834
|
+
readonly session: Schema.Struct<{
|
|
4835
|
+
readonly createdAt: Schema.String;
|
|
4836
|
+
readonly id: Schema.String;
|
|
4837
|
+
readonly projectId: Schema.String;
|
|
4838
|
+
readonly revision: Schema.String;
|
|
4839
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
4840
|
+
readonly updatedAt: Schema.String;
|
|
4841
|
+
readonly workspaceId: Schema.String;
|
|
4842
|
+
readonly workspaceRevision: Schema.String;
|
|
4843
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4844
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
4845
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
4846
|
+
readonly contentDigest: Schema.String;
|
|
4847
|
+
readonly key: Schema.String;
|
|
4848
|
+
readonly version: Schema.String;
|
|
4849
|
+
}>>;
|
|
4850
|
+
/**
|
|
4851
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4852
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4853
|
+
* A sandboxed Session carries none.
|
|
4854
|
+
*/
|
|
4855
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
4856
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
4857
|
+
readonly connectionId: Schema.String;
|
|
4858
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
4859
|
+
readonly kind: Schema.String;
|
|
4860
|
+
readonly model: Schema.optional<Schema.String>;
|
|
4861
|
+
}>>;
|
|
4862
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
4863
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
4864
|
+
readonly code: Schema.String;
|
|
4865
|
+
readonly message: Schema.String;
|
|
4866
|
+
}>>;
|
|
4867
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4868
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4869
|
+
/**
|
|
4870
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4871
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4872
|
+
*/
|
|
4873
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4874
|
+
readonly claimedAt: Schema.String;
|
|
4875
|
+
readonly id: Schema.String;
|
|
4876
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4877
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4878
|
+
readonly title: Schema.String;
|
|
4879
|
+
}>>>;
|
|
4880
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4881
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4882
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
4883
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4884
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4885
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4886
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4887
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4888
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4889
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4890
|
+
/**
|
|
4891
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4892
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4893
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4894
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4895
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4896
|
+
* it.
|
|
4897
|
+
*/
|
|
4898
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4899
|
+
readonly approvalId: Schema.String;
|
|
4900
|
+
readonly expiresAt: Schema.String;
|
|
4901
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4902
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4903
|
+
readonly label: Schema.String;
|
|
4904
|
+
readonly optionId: Schema.String;
|
|
4905
|
+
}>>>;
|
|
4906
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4907
|
+
}>>;
|
|
4908
|
+
/**
|
|
4909
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4910
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4911
|
+
* every other state.
|
|
4912
|
+
*/
|
|
4913
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4914
|
+
readonly code: Schema.String;
|
|
4915
|
+
readonly message: Schema.String;
|
|
4916
|
+
}>>;
|
|
4917
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
4918
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4919
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4920
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4921
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
4922
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
4923
|
+
readonly title: Schema.optional<Schema.String>;
|
|
4924
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
4925
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
4926
|
+
readonly baseRef: Schema.String;
|
|
4927
|
+
readonly baseRevision: Schema.String;
|
|
4928
|
+
readonly branch: Schema.String;
|
|
4929
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
4930
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4931
|
+
readonly digest: Schema.String;
|
|
4932
|
+
readonly name: Schema.String;
|
|
4933
|
+
}>>>;
|
|
4934
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
4935
|
+
}>>;
|
|
4936
|
+
}>;
|
|
4937
|
+
readonly sourceSessionId: Schema.String;
|
|
4938
|
+
readonly method: Schema.Literal<"session.switch.confirm">;
|
|
4939
|
+
}>, Schema.Struct<{
|
|
4940
|
+
readonly inputDigest: Schema.String;
|
|
4941
|
+
readonly proof: Schema.String;
|
|
4942
|
+
readonly validUntil: Schema.String;
|
|
4943
|
+
readonly commandId: Schema.String;
|
|
4944
|
+
readonly expectedRevision: Schema.String;
|
|
4945
|
+
readonly sessionId: Schema.String;
|
|
4946
|
+
readonly setupDigest: Schema.String;
|
|
4947
|
+
readonly approved: Schema.Boolean;
|
|
4948
|
+
readonly method: Schema.Literal<"session.setup.preview">;
|
|
4949
|
+
readonly setup: Schema.Struct<{
|
|
4950
|
+
readonly command: Schema.$Array<Schema.String>;
|
|
4951
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
4952
|
+
readonly path: Schema.String;
|
|
4953
|
+
readonly sha256: Schema.String;
|
|
4954
|
+
}>>;
|
|
4955
|
+
}>;
|
|
4956
|
+
}>, Schema.Struct<{
|
|
4957
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
4958
|
+
readonly method: Schema.Literal<"session.setup.confirm">;
|
|
4959
|
+
readonly receipt: Schema.Struct<{
|
|
4960
|
+
readonly actorId: Schema.String;
|
|
4961
|
+
readonly aggregateRevision: Schema.String;
|
|
4962
|
+
readonly commandId: Schema.String;
|
|
4963
|
+
readonly createdAt: Schema.String;
|
|
4964
|
+
readonly eventCursor: Schema.String;
|
|
4965
|
+
readonly method: Schema.String;
|
|
4966
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
4967
|
+
readonly receiptId: Schema.String;
|
|
4968
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
4969
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
4970
|
+
readonly target: Schema.Struct<{
|
|
4971
|
+
readonly id: Schema.String;
|
|
4972
|
+
readonly type: Schema.String;
|
|
4973
|
+
}>;
|
|
4974
|
+
readonly updatedAt: Schema.String;
|
|
4975
|
+
}>;
|
|
4976
|
+
readonly sessionId: Schema.String;
|
|
4977
|
+
readonly setupDigest: Schema.String;
|
|
4978
|
+
}>, Schema.Struct<{
|
|
4979
|
+
readonly inputDigest: Schema.String;
|
|
4980
|
+
readonly proof: Schema.String;
|
|
4981
|
+
readonly validUntil: Schema.String;
|
|
4982
|
+
readonly commandId: Schema.String;
|
|
4983
|
+
readonly executor: Schema.String;
|
|
4984
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
4985
|
+
readonly parent: Schema.Struct<{
|
|
4986
|
+
readonly children: Schema.Struct<{
|
|
4987
|
+
readonly live: Schema.Int;
|
|
4988
|
+
readonly total: Schema.Int;
|
|
4989
|
+
}>;
|
|
4990
|
+
readonly depth: Schema.Int;
|
|
4991
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
4992
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4993
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
4994
|
+
readonly sessionId: Schema.String;
|
|
4995
|
+
}>;
|
|
4996
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4997
|
+
readonly workspaceId: Schema.String;
|
|
4998
|
+
readonly expectedRevision: Schema.Literal<"0">;
|
|
4999
|
+
readonly method: Schema.Literal<"session.spawn.preview">;
|
|
5000
|
+
}>, Schema.Struct<{
|
|
5001
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
5002
|
+
readonly method: Schema.Literal<"session.spawn.confirm">;
|
|
5003
|
+
readonly parentSessionId: Schema.String;
|
|
5004
|
+
readonly receipt: Schema.Struct<{
|
|
5005
|
+
readonly actorId: Schema.String;
|
|
5006
|
+
readonly aggregateRevision: Schema.String;
|
|
5007
|
+
readonly commandId: Schema.String;
|
|
5008
|
+
readonly createdAt: Schema.String;
|
|
5009
|
+
readonly eventCursor: Schema.String;
|
|
5010
|
+
readonly method: Schema.String;
|
|
5011
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
5012
|
+
readonly receiptId: Schema.String;
|
|
5013
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
5014
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
5015
|
+
readonly target: Schema.Struct<{
|
|
5016
|
+
readonly id: Schema.String;
|
|
5017
|
+
readonly type: Schema.String;
|
|
5018
|
+
}>;
|
|
5019
|
+
readonly updatedAt: Schema.String;
|
|
5020
|
+
}>;
|
|
5021
|
+
readonly session: Schema.Struct<{
|
|
5022
|
+
readonly createdAt: Schema.String;
|
|
5023
|
+
readonly id: Schema.String;
|
|
5024
|
+
readonly projectId: Schema.String;
|
|
5025
|
+
readonly revision: Schema.String;
|
|
5026
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
5027
|
+
readonly updatedAt: Schema.String;
|
|
5028
|
+
readonly workspaceId: Schema.String;
|
|
5029
|
+
readonly workspaceRevision: Schema.String;
|
|
5030
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
5031
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
5032
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
5033
|
+
readonly contentDigest: Schema.String;
|
|
5034
|
+
readonly key: Schema.String;
|
|
5035
|
+
readonly version: Schema.String;
|
|
5036
|
+
}>>;
|
|
5037
|
+
/**
|
|
5038
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
5039
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
5040
|
+
* A sandboxed Session carries none.
|
|
5041
|
+
*/
|
|
5042
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
5043
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
5044
|
+
readonly connectionId: Schema.String;
|
|
5045
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
5046
|
+
readonly kind: Schema.String;
|
|
5047
|
+
readonly model: Schema.optional<Schema.String>;
|
|
5048
|
+
}>>;
|
|
5049
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
5050
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
5051
|
+
readonly code: Schema.String;
|
|
5052
|
+
readonly message: Schema.String;
|
|
5053
|
+
}>>;
|
|
5054
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
5055
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
5056
|
+
/**
|
|
5057
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
5058
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
5059
|
+
*/
|
|
5060
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
5061
|
+
readonly claimedAt: Schema.String;
|
|
5062
|
+
readonly id: Schema.String;
|
|
5063
|
+
readonly leaseExpiresAt: Schema.String;
|
|
5064
|
+
readonly state: Schema.Literal<"claimed">;
|
|
5065
|
+
readonly title: Schema.String;
|
|
5066
|
+
}>>>;
|
|
5067
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
5068
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
5069
|
+
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
5070
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
5071
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
5072
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
5073
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
5074
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
5075
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
5076
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
5077
|
+
/**
|
|
5078
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
5079
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
5080
|
+
* one of the two and never otherwise: a `question` names a question
|
|
5081
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
5082
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
5083
|
+
* it.
|
|
5084
|
+
*/
|
|
5085
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
5086
|
+
readonly approvalId: Schema.String;
|
|
5087
|
+
readonly expiresAt: Schema.String;
|
|
5088
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
5089
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
5090
|
+
readonly label: Schema.String;
|
|
5091
|
+
readonly optionId: Schema.String;
|
|
5092
|
+
}>>>;
|
|
5093
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
5094
|
+
}>>;
|
|
5095
|
+
/**
|
|
5096
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
5097
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
5098
|
+
* every other state.
|
|
5099
|
+
*/
|
|
5100
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
5101
|
+
readonly code: Schema.String;
|
|
5102
|
+
readonly message: Schema.String;
|
|
5103
|
+
}>>;
|
|
2423
5104
|
readonly schemaVersion: Schema.Literal<4>;
|
|
5105
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
5106
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
5107
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
5108
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2424
5109
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2425
5110
|
readonly title: Schema.optional<Schema.String>;
|
|
2426
5111
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
@@ -2438,6 +5123,6 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2438
5123
|
}>;
|
|
2439
5124
|
}>]>;
|
|
2440
5125
|
export { agentPermissionRequestEffectSchema, agentPermissionResultEffectSchema, } from "./agent-permission-effect-schema.js";
|
|
2441
|
-
export { sessionObservationEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
2442
|
-
export { sessionArchiveParametersEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, } from "./worktree-effect-schema.js";
|
|
5126
|
+
export { sessionExecutorKindEffectSchema, sessionObservationEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
5127
|
+
export { sessionArchiveParametersEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, sessionGitStatusParametersEffectSchema, sessionGitStatusResultEffectSchema, } from "./worktree-effect-schema.js";
|
|
2443
5128
|
//# sourceMappingURL=effect-schema.d.ts.map
|