@maiaos/protocol 0.1.0-canary.9 → 0.1.0-canary.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -6
- package/dist/agent/definition.d.ts +3 -3
- package/dist/agent/definition.d.ts.map +1 -1
- package/dist/agent/definition.js +1 -1
- package/dist/agent/definition.js.map +1 -1
- package/dist/agent/effect-schema.d.ts +2 -0
- package/dist/agent/effect-schema.d.ts.map +1 -1
- package/dist/agent/effect-schema.js +3 -0
- package/dist/agent/effect-schema.js.map +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/worker-operation.d.ts +43 -1
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/agents/contract.d.ts +27 -0
- package/dist/agents/contract.d.ts.map +1 -1
- package/dist/agents/contract.js +4 -1
- package/dist/agents/contract.js.map +1 -1
- package/dist/agents/effect-schema.d.ts +53 -2
- package/dist/agents/effect-schema.d.ts.map +1 -1
- package/dist/agents/effect-schema.js +51 -10
- package/dist/agents/effect-schema.js.map +1 -1
- package/dist/agents/feature.d.ts +54 -4
- package/dist/agents/feature.d.ts.map +1 -1
- package/dist/agents/feature.js +52 -4
- package/dist/agents/feature.js.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/approval/contract.d.ts +21 -5
- package/dist/approval/contract.d.ts.map +1 -1
- package/dist/approval/contract.js +2 -1
- package/dist/approval/contract.js.map +1 -1
- package/dist/approval/effect-schema.d.ts +1 -1
- package/dist/approval/effect-schema.d.ts.map +1 -1
- package/dist/approval/effect-schema.js +1 -1
- package/dist/approval/effect-schema.js.map +1 -1
- package/dist/approval/feature.d.ts +21 -2
- package/dist/approval/feature.d.ts.map +1 -1
- package/dist/approval/feature.js +21 -2
- package/dist/approval/feature.js.map +1 -1
- package/dist/approval/index.d.ts +1 -1
- package/dist/approval/index.d.ts.map +1 -1
- package/dist/approval/index.js +1 -1
- package/dist/approval/index.js.map +1 -1
- package/dist/approval/request-effect-schema.d.ts +40 -5
- package/dist/approval/request-effect-schema.d.ts.map +1 -1
- package/dist/approval/request-effect-schema.js +30 -7
- package/dist/approval/request-effect-schema.js.map +1 -1
- package/dist/approval/result-effect-schema.d.ts +14 -6
- package/dist/approval/result-effect-schema.d.ts.map +1 -1
- package/dist/board/contract.d.ts +1668 -0
- package/dist/board/contract.d.ts.map +1 -0
- package/dist/board/contract.js +108 -0
- package/dist/board/contract.js.map +1 -0
- package/dist/board/effect-schema.d.ts +6 -0
- package/dist/board/effect-schema.d.ts.map +1 -0
- package/dist/board/effect-schema.js +6 -0
- package/dist/board/effect-schema.js.map +1 -0
- package/dist/board/feature.d.ts +565 -0
- package/dist/board/feature.d.ts.map +1 -0
- package/dist/board/feature.js +535 -0
- package/dist/board/feature.js.map +1 -0
- package/dist/board/index.d.ts +3 -0
- package/dist/board/index.d.ts.map +1 -0
- package/dist/board/index.js +3 -0
- package/dist/board/index.js.map +1 -0
- package/dist/board/manage-effect-schema.d.ts +493 -0
- package/dist/board/manage-effect-schema.d.ts.map +1 -0
- package/dist/board/manage-effect-schema.js +73 -0
- package/dist/board/manage-effect-schema.js.map +1 -0
- package/dist/board/model-effect-schema.d.ts +111 -0
- package/dist/board/model-effect-schema.d.ts.map +1 -0
- package/dist/board/model-effect-schema.js +120 -0
- package/dist/board/model-effect-schema.js.map +1 -0
- package/dist/board/plan-effect-schema.d.ts +120 -0
- package/dist/board/plan-effect-schema.d.ts.map +1 -0
- package/dist/board/plan-effect-schema.js +108 -0
- package/dist/board/plan-effect-schema.js.map +1 -0
- package/dist/board/task-effect-schema.d.ts +1835 -0
- package/dist/board/task-effect-schema.d.ts.map +1 -0
- package/dist/board/task-effect-schema.js +275 -0
- package/dist/board/task-effect-schema.js.map +1 -0
- package/dist/board/thread-effect-schema.d.ts +633 -0
- package/dist/board/thread-effect-schema.d.ts.map +1 -0
- package/dist/board/thread-effect-schema.js +116 -0
- package/dist/board/thread-effect-schema.js.map +1 -0
- package/dist/command-receipt/contract.d.ts +3 -0
- package/dist/command-receipt/contract.d.ts.map +1 -1
- package/dist/command-receipt/effect-schema.d.ts +12 -0
- package/dist/command-receipt/effect-schema.d.ts.map +1 -1
- package/dist/command-receipt/effect-schema.js +7 -0
- package/dist/command-receipt/effect-schema.js.map +1 -1
- package/dist/command-receipt/feature.d.ts +10 -0
- package/dist/command-receipt/feature.d.ts.map +1 -1
- package/dist/command-receipt/feature.js +10 -0
- package/dist/command-receipt/feature.js.map +1 -1
- package/dist/connection/access-effect-schema.d.ts +4 -0
- package/dist/connection/access-effect-schema.d.ts.map +1 -1
- package/dist/connection/contract.d.ts +205 -2
- package/dist/connection/contract.d.ts.map +1 -1
- package/dist/connection/contract.js +10 -1
- package/dist/connection/contract.js.map +1 -1
- package/dist/connection/effect-schema.d.ts +194 -2
- package/dist/connection/effect-schema.d.ts.map +1 -1
- package/dist/connection/effect-schema.js +3 -0
- package/dist/connection/effect-schema.js.map +1 -1
- package/dist/connection/executors-effect-schema.d.ts +275 -0
- package/dist/connection/executors-effect-schema.d.ts.map +1 -0
- package/dist/connection/executors-effect-schema.js +80 -0
- package/dist/connection/executors-effect-schema.js.map +1 -0
- package/dist/connection/feature.d.ts +301 -10
- package/dist/connection/feature.d.ts.map +1 -1
- package/dist/connection/feature.js +381 -46
- package/dist/connection/feature.js.map +1 -1
- package/dist/connection/gateway-effect-schema.d.ts +15 -5
- package/dist/connection/gateway-effect-schema.d.ts.map +1 -1
- package/dist/connection/gateway-effect-schema.js +25 -12
- package/dist/connection/gateway-effect-schema.js.map +1 -1
- package/dist/connection/index.d.ts +1 -1
- package/dist/connection/index.d.ts.map +1 -1
- package/dist/connection/index.js +1 -1
- package/dist/connection/index.js.map +1 -1
- package/dist/connection/request-effect-schema.d.ts +23 -4
- package/dist/connection/request-effect-schema.d.ts.map +1 -1
- package/dist/connection/request-effect-schema.js +42 -14
- package/dist/connection/request-effect-schema.js.map +1 -1
- package/dist/connection/result-effect-schema.d.ts +98 -6
- package/dist/connection/result-effect-schema.d.ts.map +1 -1
- package/dist/connection/result-effect-schema.js +4 -3
- package/dist/connection/result-effect-schema.js.map +1 -1
- package/dist/connection/system-effect-schema.d.ts +16 -0
- package/dist/connection/system-effect-schema.d.ts.map +1 -1
- package/dist/connection/system-effect-schema.js +5 -5
- package/dist/connection/system-effect-schema.js.map +1 -1
- package/dist/container/contract.d.ts +2 -0
- package/dist/container/contract.d.ts.map +1 -1
- package/dist/container/effect-schema.d.ts +4 -0
- package/dist/container/effect-schema.d.ts.map +1 -1
- package/dist/container/portfolio-feature.d.ts +286 -0
- package/dist/container/portfolio-feature.d.ts.map +1 -1
- package/dist/container/portfolio-feature.js +131 -0
- package/dist/container/portfolio-feature.js.map +1 -1
- package/dist/coordinator-tool/index.d.ts +1 -1
- package/dist/coordinator-tool/index.d.ts.map +1 -1
- package/dist/coordinator-tool/index.js +1 -1
- package/dist/coordinator-tool/index.js.map +1 -1
- package/dist/coordinator-tool/input-schema.d.ts +0 -7
- package/dist/coordinator-tool/input-schema.d.ts.map +1 -1
- package/dist/coordinator-tool/input-schema.js +0 -38
- package/dist/coordinator-tool/input-schema.js.map +1 -1
- package/dist/coordinator-tool/registry.d.ts +21 -0
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +163 -4
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +141 -2
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/contract.js +11 -1
- package/dist/discovery/contract.js.map +1 -1
- package/dist/discovery/effect-schema.d.ts +325 -6
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/discovery/effect-schema.js +157 -8
- package/dist/discovery/effect-schema.js.map +1 -1
- package/dist/discovery/feature.d.ts +82 -2
- package/dist/discovery/feature.d.ts.map +1 -1
- package/dist/discovery/feature.js +78 -2
- package/dist/discovery/feature.js.map +1 -1
- package/dist/discovery/index.d.ts +1 -1
- package/dist/discovery/index.d.ts.map +1 -1
- package/dist/discovery/index.js +1 -1
- package/dist/discovery/index.js.map +1 -1
- package/dist/envelope/effect-schema.d.ts +38 -17
- package/dist/envelope/effect-schema.d.ts.map +1 -1
- package/dist/envelope/effect-schema.js +30 -8
- package/dist/envelope/effect-schema.js.map +1 -1
- package/dist/envelope/envelope.d.ts +25 -3
- package/dist/envelope/envelope.d.ts.map +1 -1
- package/dist/envelope/envelope.js +37 -1
- package/dist/envelope/envelope.js.map +1 -1
- package/dist/envelope/index.d.ts +2 -2
- package/dist/envelope/index.d.ts.map +1 -1
- package/dist/envelope/index.js +2 -2
- package/dist/envelope/index.js.map +1 -1
- package/dist/envelope/policy.d.ts +11 -0
- package/dist/envelope/policy.d.ts.map +1 -1
- package/dist/envelope/policy.js +13 -0
- package/dist/envelope/policy.js.map +1 -1
- package/dist/event/contract.d.ts +47 -0
- package/dist/event/contract.d.ts.map +1 -1
- package/dist/event/contract.js +3 -0
- package/dist/event/contract.js.map +1 -1
- package/dist/event/effect-schema.d.ts +3 -1
- package/dist/event/effect-schema.d.ts.map +1 -1
- package/dist/event/effect-schema.js +3 -1
- package/dist/event/effect-schema.js.map +1 -1
- package/dist/event/envelope-effect-schema.d.ts +2 -0
- package/dist/event/envelope-effect-schema.d.ts.map +1 -1
- package/dist/event/envelope-effect-schema.js +2 -0
- package/dist/event/envelope-effect-schema.js.map +1 -1
- package/dist/event/feature.d.ts +35 -0
- package/dist/event/feature.d.ts.map +1 -0
- package/dist/event/feature.js +39 -0
- package/dist/event/feature.js.map +1 -0
- package/dist/event/format.d.ts +6 -0
- package/dist/event/format.d.ts.map +1 -1
- package/dist/event/format.js +6 -0
- package/dist/event/format.js.map +1 -1
- package/dist/event/index.d.ts +4 -1
- package/dist/event/index.d.ts.map +1 -1
- package/dist/event/index.js +4 -1
- package/dist/event/index.js.map +1 -1
- package/dist/event/lifecycle/effect-schema.d.ts +31 -0
- package/dist/event/lifecycle/effect-schema.d.ts.map +1 -0
- package/dist/event/lifecycle/effect-schema.js +36 -0
- package/dist/event/lifecycle/effect-schema.js.map +1 -0
- package/dist/event/lifecycle/index.d.ts +2 -0
- package/dist/event/lifecycle/index.d.ts.map +1 -0
- package/dist/event/lifecycle/index.js +2 -0
- package/dist/event/lifecycle/index.js.map +1 -0
- package/dist/event/lifecycle/schema.d.ts +20 -0
- package/dist/event/lifecycle/schema.d.ts.map +1 -0
- package/dist/event/lifecycle/schema.js +7 -0
- package/dist/event/lifecycle/schema.js.map +1 -0
- package/dist/event/read-effect-schema.d.ts +105 -0
- package/dist/event/read-effect-schema.d.ts.map +1 -0
- package/dist/event/read-effect-schema.js +64 -0
- package/dist/event/read-effect-schema.js.map +1 -0
- package/dist/event/registry.d.ts +5 -0
- package/dist/event/registry.d.ts.map +1 -1
- package/dist/event/registry.js +291 -8
- package/dist/event/registry.js.map +1 -1
- package/dist/event/session-activity-effect-schema.d.ts +36 -0
- package/dist/event/session-activity-effect-schema.d.ts.map +1 -0
- package/dist/event/session-activity-effect-schema.js +58 -0
- package/dist/event/session-activity-effect-schema.js.map +1 -0
- package/dist/event/session-activity.d.ts +30 -0
- package/dist/event/session-activity.d.ts.map +1 -0
- package/dist/event/session-activity.js +19 -0
- package/dist/event/session-activity.js.map +1 -0
- package/dist/event/update-effect-schema.d.ts +20 -0
- package/dist/event/update-effect-schema.d.ts.map +1 -0
- package/dist/event/update-effect-schema.js +29 -0
- package/dist/event/update-effect-schema.js.map +1 -0
- package/dist/event/update.d.ts +16 -0
- package/dist/event/update.d.ts.map +1 -0
- package/dist/event/update.js +6 -0
- package/dist/event/update.js.map +1 -0
- package/dist/event/waiting/effect-schema.d.ts +42 -0
- package/dist/event/waiting/effect-schema.d.ts.map +1 -0
- package/dist/event/waiting/effect-schema.js +51 -0
- package/dist/event/waiting/effect-schema.js.map +1 -0
- package/dist/event/waiting/index.d.ts +2 -0
- package/dist/event/waiting/index.d.ts.map +1 -0
- package/dist/event/waiting/index.js +2 -0
- package/dist/event/waiting/index.js.map +1 -0
- package/dist/event/waiting/schema.d.ts +23 -0
- package/dist/event/waiting/schema.d.ts.map +1 -0
- package/dist/event/waiting/schema.js +6 -0
- package/dist/event/waiting/schema.js.map +1 -0
- package/dist/event-stream/contract.d.ts +121 -0
- package/dist/event-stream/contract.d.ts.map +1 -0
- package/dist/event-stream/contract.js +5 -0
- package/dist/event-stream/contract.js.map +1 -0
- package/dist/event-stream/effect-schema.d.ts +118 -0
- package/dist/event-stream/effect-schema.d.ts.map +1 -0
- package/dist/event-stream/effect-schema.js +90 -0
- package/dist/event-stream/effect-schema.js.map +1 -0
- package/dist/event-stream/index.d.ts +2 -0
- package/dist/event-stream/index.d.ts.map +1 -0
- package/dist/event-stream/index.js +2 -0
- package/dist/event-stream/index.js.map +1 -0
- package/dist/execution/contract.d.ts +1 -0
- package/dist/execution/contract.d.ts.map +1 -1
- package/dist/execution/effect-schema.d.ts +6 -0
- package/dist/execution/effect-schema.d.ts.map +1 -1
- package/dist/execution/feature.d.ts +575 -0
- package/dist/execution/feature.d.ts.map +1 -0
- package/dist/execution/feature.js +543 -0
- package/dist/execution/feature.js.map +1 -0
- package/dist/execution/file-operation-contract.d.ts +1 -0
- package/dist/execution/file-operation-contract.d.ts.map +1 -1
- package/dist/execution/file-operation-effect-schema.d.ts +1 -0
- package/dist/execution/file-operation-effect-schema.d.ts.map +1 -1
- package/dist/execution/index.d.ts +1 -0
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/index.js +1 -0
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/operation-contract.d.ts +1 -0
- package/dist/execution/operation-contract.d.ts.map +1 -1
- package/dist/execution/operation-effect-schema.d.ts +1 -0
- package/dist/execution/operation-effect-schema.d.ts.map +1 -1
- package/dist/execution/placement/contract.d.ts +4 -0
- package/dist/execution/placement/contract.d.ts.map +1 -1
- package/dist/execution/placement/effect-schema.d.ts +4 -0
- package/dist/execution/placement/effect-schema.d.ts.map +1 -1
- package/dist/execution/relocation/contract.d.ts +2 -0
- package/dist/execution/relocation/contract.d.ts.map +1 -1
- package/dist/execution/relocation/effect-schema.d.ts +4 -0
- package/dist/execution/relocation/effect-schema.d.ts.map +1 -1
- package/dist/execution/worktree/contract.d.ts +12 -0
- package/dist/execution/worktree/contract.d.ts.map +1 -1
- package/dist/execution/worktree/effect-schema.d.ts +20 -0
- package/dist/execution/worktree/effect-schema.d.ts.map +1 -1
- package/dist/execution/worktree/effect-schema.js +11 -0
- package/dist/execution/worktree/effect-schema.js.map +1 -1
- package/dist/executor/index.d.ts +2 -0
- package/dist/executor/index.d.ts.map +1 -0
- package/dist/executor/index.js +2 -0
- package/dist/executor/index.js.map +1 -0
- package/dist/executor/policy.d.ts +28 -0
- package/dist/executor/policy.d.ts.map +1 -0
- package/dist/executor/policy.js +49 -0
- package/dist/executor/policy.js.map +1 -0
- package/dist/feature/descriptor/descriptor.d.ts +42 -2
- package/dist/feature/descriptor/descriptor.d.ts.map +1 -1
- package/dist/feature/descriptor/descriptor.js.map +1 -1
- package/dist/feature/descriptor/index.d.ts +1 -1
- package/dist/feature/descriptor/index.d.ts.map +1 -1
- package/dist/feature/descriptor/index.js.map +1 -1
- package/dist/feature/index.d.ts +1 -1
- package/dist/feature/index.d.ts.map +1 -1
- package/dist/feature/index.js +1 -1
- package/dist/feature/index.js.map +1 -1
- package/dist/feature/node-status.d.ts +65 -1
- package/dist/feature/node-status.d.ts.map +1 -1
- package/dist/feature/node-status.js +59 -1
- package/dist/feature/node-status.js.map +1 -1
- package/dist/feature/registry.d.ts +59 -4
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +53 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/github/contract.d.ts +266 -0
- package/dist/github/contract.d.ts.map +1 -0
- package/dist/github/contract.js +30 -0
- package/dist/github/contract.js.map +1 -0
- package/dist/github/effect-schema.d.ts +488 -0
- package/dist/github/effect-schema.d.ts.map +1 -0
- package/dist/github/effect-schema.js +231 -0
- package/dist/github/effect-schema.js.map +1 -0
- package/dist/github/feature.d.ts +201 -0
- package/dist/github/feature.d.ts.map +1 -0
- package/dist/github/feature.js +195 -0
- package/dist/github/feature.js.map +1 -0
- package/dist/github/index.d.ts +3 -0
- package/dist/github/index.d.ts.map +1 -0
- package/dist/github/index.js +3 -0
- package/dist/github/index.js.map +1 -0
- package/dist/goal/contract.d.ts +449 -0
- package/dist/goal/contract.d.ts.map +1 -0
- package/dist/goal/contract.js +37 -0
- package/dist/goal/contract.js.map +1 -0
- package/dist/goal/effect-schema.d.ts +870 -0
- package/dist/goal/effect-schema.d.ts.map +1 -0
- package/dist/goal/effect-schema.js +349 -0
- package/dist/goal/effect-schema.js.map +1 -0
- package/dist/goal/feature.d.ts +256 -0
- package/dist/goal/feature.d.ts.map +1 -0
- package/dist/goal/feature.js +237 -0
- package/dist/goal/feature.js.map +1 -0
- package/dist/goal/index.d.ts +3 -0
- package/dist/goal/index.d.ts.map +1 -0
- package/dist/goal/index.js +3 -0
- package/dist/goal/index.js.map +1 -0
- package/dist/harness/installed/effect-schema.d.ts.map +1 -1
- package/dist/harness/installed/effect-schema.js +2 -1
- package/dist/harness/installed/effect-schema.js.map +1 -1
- package/dist/harness/installed/feature.d.ts +35 -0
- package/dist/harness/installed/feature.d.ts.map +1 -0
- package/dist/harness/installed/feature.js +39 -0
- package/dist/harness/installed/feature.js.map +1 -0
- package/dist/harness/installed/index.d.ts +1 -0
- package/dist/harness/installed/index.d.ts.map +1 -1
- package/dist/harness/installed/index.js +1 -0
- package/dist/harness/installed/index.js.map +1 -1
- package/dist/hold/contract.d.ts +2 -0
- package/dist/hold/contract.d.ts.map +1 -1
- package/dist/hold/effect-schema.d.ts +4 -0
- package/dist/hold/effect-schema.d.ts.map +1 -1
- package/dist/hold/feature.d.ts +155 -0
- package/dist/hold/feature.d.ts.map +1 -0
- package/dist/hold/feature.js +151 -0
- package/dist/hold/feature.js.map +1 -0
- package/dist/hold/index.d.ts +1 -0
- package/dist/hold/index.d.ts.map +1 -1
- package/dist/hold/index.js +1 -0
- package/dist/hold/index.js.map +1 -1
- package/dist/inbox/contract.d.ts +386 -0
- package/dist/inbox/contract.d.ts.map +1 -0
- package/dist/inbox/contract.js +20 -0
- package/dist/inbox/contract.js.map +1 -0
- package/dist/inbox/effect-schema.d.ts +750 -0
- package/dist/inbox/effect-schema.d.ts.map +1 -0
- package/dist/inbox/effect-schema.js +246 -0
- package/dist/inbox/effect-schema.js.map +1 -0
- package/dist/inbox/feature.d.ts +164 -0
- package/dist/inbox/feature.d.ts.map +1 -0
- package/dist/inbox/feature.js +160 -0
- package/dist/inbox/feature.js.map +1 -0
- package/dist/inbox/index.d.ts +3 -0
- package/dist/inbox/index.d.ts.map +1 -0
- package/dist/inbox/index.js +3 -0
- package/dist/inbox/index.js.map +1 -0
- package/dist/index.d.ts +29 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -16
- package/dist/index.js.map +1 -1
- package/dist/integration-authorization/claude-code-contract.d.ts +3 -0
- package/dist/integration-authorization/claude-code-contract.d.ts.map +1 -1
- package/dist/integration-authorization/contract.d.ts +141 -12
- package/dist/integration-authorization/contract.d.ts.map +1 -1
- package/dist/integration-authorization/contract.js +37 -1
- package/dist/integration-authorization/contract.js.map +1 -1
- package/dist/integration-authorization/effect-schema.d.ts +5961 -1583
- package/dist/integration-authorization/effect-schema.d.ts.map +1 -1
- package/dist/integration-authorization/effect-schema.js +157 -6
- package/dist/integration-authorization/effect-schema.js.map +1 -1
- package/dist/integration-authorization/feature.d.ts +845 -0
- package/dist/integration-authorization/feature.d.ts.map +1 -0
- package/dist/integration-authorization/feature.js +795 -0
- package/dist/integration-authorization/feature.js.map +1 -0
- package/dist/integration-authorization/index.d.ts +5 -0
- package/dist/integration-authorization/index.d.ts.map +1 -1
- package/dist/integration-authorization/index.js +5 -0
- package/dist/integration-authorization/index.js.map +1 -1
- package/dist/integration-authorization/pi-rpc-contract.d.ts +3 -0
- package/dist/integration-authorization/pi-rpc-contract.d.ts.map +1 -1
- package/dist/integration-authorization/policy.d.ts +6 -1
- package/dist/integration-authorization/policy.d.ts.map +1 -1
- package/dist/integration-authorization/policy.js +6 -1
- package/dist/integration-authorization/policy.js.map +1 -1
- package/dist/interaction/effect-schema.d.ts +1 -1
- package/dist/interaction/effect-schema.d.ts.map +1 -1
- package/dist/interaction/effect-schema.js +1 -1
- package/dist/interaction/effect-schema.js.map +1 -1
- package/dist/interaction/feature.d.ts +50 -0
- package/dist/interaction/feature.d.ts.map +1 -1
- package/dist/interaction/feature.js +48 -0
- package/dist/interaction/feature.js.map +1 -1
- package/dist/interaction/result-contract.d.ts +3 -0
- package/dist/interaction/result-contract.d.ts.map +1 -1
- package/dist/interaction/result-effect-schema.d.ts +6 -0
- package/dist/interaction/result-effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/contract.d.ts +2 -1
- package/dist/invocation-context/contract.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.d.ts +12 -2
- package/dist/invocation-context/effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.js +24 -3
- package/dist/invocation-context/effect-schema.js.map +1 -1
- package/dist/invocation-context/feature.d.ts +35 -0
- package/dist/invocation-context/feature.d.ts.map +1 -0
- package/dist/invocation-context/feature.js +39 -0
- package/dist/invocation-context/feature.js.map +1 -0
- package/dist/invocation-context/index.d.ts +1 -0
- package/dist/invocation-context/index.d.ts.map +1 -1
- package/dist/invocation-context/index.js +1 -0
- package/dist/invocation-context/index.js.map +1 -1
- package/dist/invocation-context/policy.d.ts +6 -1
- package/dist/invocation-context/policy.d.ts.map +1 -1
- package/dist/invocation-context/policy.js +7 -1
- package/dist/invocation-context/policy.js.map +1 -1
- package/dist/local-node/contract.d.ts +57 -18
- package/dist/local-node/contract.d.ts.map +1 -1
- package/dist/local-node/contract.js +3 -1
- package/dist/local-node/contract.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +3999 -1303
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +125 -10
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/index.d.ts +2 -2
- package/dist/local-node/index.d.ts.map +1 -1
- package/dist/local-node/index.js +2 -2
- package/dist/local-node/index.js.map +1 -1
- package/dist/local-node/node-api/index.d.ts +2 -2
- package/dist/local-node/node-api/index.d.ts.map +1 -1
- package/dist/local-node/node-api/index.js +2 -2
- package/dist/local-node/node-api/index.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +11 -215
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +151 -215
- package/dist/local-node/node-api/methods.js.map +1 -1
- package/dist/local-node/node-api/policy.d.ts +33 -0
- package/dist/local-node/node-api/policy.d.ts.map +1 -1
- package/dist/local-node/node-api/policy.js +33 -0
- package/dist/local-node/node-api/policy.js.map +1 -1
- package/dist/local-node/receipt-list.d.ts +6 -7
- package/dist/local-node/receipt-list.d.ts.map +1 -1
- package/dist/local-node/receipt-list.js +66 -7
- package/dist/local-node/receipt-list.js.map +1 -1
- package/dist/node-update/contract.d.ts +198 -0
- package/dist/node-update/contract.d.ts.map +1 -0
- package/dist/node-update/contract.js +22 -0
- package/dist/node-update/contract.js.map +1 -0
- package/dist/node-update/effect-schema.d.ts +435 -0
- package/dist/node-update/effect-schema.d.ts.map +1 -0
- package/dist/node-update/effect-schema.js +307 -0
- package/dist/node-update/effect-schema.js.map +1 -0
- package/dist/node-update/feature.d.ts +379 -0
- package/dist/node-update/feature.d.ts.map +1 -0
- package/dist/node-update/feature.js +363 -0
- package/dist/node-update/feature.js.map +1 -0
- package/dist/node-update/index.d.ts +3 -0
- package/dist/node-update/index.d.ts.map +1 -0
- package/dist/node-update/index.js +3 -0
- package/dist/node-update/index.js.map +1 -0
- package/dist/orchestration/contract.d.ts +6 -0
- package/dist/orchestration/contract.d.ts.map +1 -1
- package/dist/orchestration/effect-schema.d.ts +14 -2
- package/dist/orchestration/effect-schema.d.ts.map +1 -1
- package/dist/orchestration/effect-schema.js +2 -2
- package/dist/orchestration/effect-schema.js.map +1 -1
- package/dist/orchestration/feature.d.ts +235 -0
- package/dist/orchestration/feature.d.ts.map +1 -1
- package/dist/orchestration/feature.js +227 -0
- package/dist/orchestration/feature.js.map +1 -1
- package/dist/orchestration/topology.d.ts +11 -1
- package/dist/orchestration/topology.d.ts.map +1 -1
- package/dist/orchestration/topology.js +38 -29
- package/dist/orchestration/topology.js.map +1 -1
- package/dist/pairing/contract.d.ts +86 -0
- package/dist/pairing/contract.d.ts.map +1 -0
- package/dist/pairing/contract.js +12 -0
- package/dist/pairing/contract.js.map +1 -0
- package/dist/pairing/effect-schema.d.ts +166 -0
- package/dist/pairing/effect-schema.d.ts.map +1 -0
- package/dist/pairing/effect-schema.js +94 -0
- package/dist/pairing/effect-schema.js.map +1 -0
- package/dist/pairing/feature.d.ts +141 -0
- package/dist/pairing/feature.d.ts.map +1 -0
- package/dist/pairing/feature.js +139 -0
- package/dist/pairing/feature.js.map +1 -0
- package/dist/pairing/index.d.ts +3 -0
- package/dist/pairing/index.d.ts.map +1 -0
- package/dist/pairing/index.js +3 -0
- package/dist/pairing/index.js.map +1 -0
- package/dist/port-lease/contract.d.ts +3 -0
- package/dist/port-lease/contract.d.ts.map +1 -1
- package/dist/port-lease/feature.d.ts +21 -0
- package/dist/port-lease/feature.d.ts.map +1 -1
- package/dist/port-lease/feature.js +21 -0
- package/dist/port-lease/feature.js.map +1 -1
- package/dist/port-lease/result-effect-schema.d.ts +6 -0
- package/dist/port-lease/result-effect-schema.d.ts.map +1 -1
- package/dist/presentation/contract.d.ts +42 -2
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +38 -2
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/feature.d.ts +20 -0
- package/dist/presentation/feature.d.ts.map +1 -1
- package/dist/presentation/feature.js +20 -0
- package/dist/presentation/feature.js.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +38 -2
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- package/dist/principal/contract.d.ts +104 -0
- package/dist/principal/contract.d.ts.map +1 -0
- package/dist/principal/contract.js +18 -0
- package/dist/principal/contract.js.map +1 -0
- package/dist/principal/effect-schema.d.ts +166 -0
- package/dist/principal/effect-schema.d.ts.map +1 -0
- package/dist/principal/effect-schema.js +93 -0
- package/dist/principal/effect-schema.js.map +1 -0
- package/dist/principal/feature.d.ts +111 -0
- package/dist/principal/feature.d.ts.map +1 -0
- package/dist/principal/feature.js +111 -0
- package/dist/principal/feature.js.map +1 -0
- package/dist/principal/index.d.ts +3 -0
- package/dist/principal/index.d.ts.map +1 -0
- package/dist/principal/index.js +3 -0
- package/dist/principal/index.js.map +1 -0
- package/dist/project-workspace/contract.d.ts +351 -2
- package/dist/project-workspace/contract.d.ts.map +1 -1
- package/dist/project-workspace/contract.js +34 -2
- package/dist/project-workspace/contract.js.map +1 -1
- package/dist/project-workspace/effect-schema.d.ts +403 -0
- package/dist/project-workspace/effect-schema.d.ts.map +1 -1
- package/dist/project-workspace/effect-schema.js +105 -1
- package/dist/project-workspace/effect-schema.js.map +1 -1
- package/dist/project-workspace/feature.d.ts +659 -1
- package/dist/project-workspace/feature.d.ts.map +1 -1
- package/dist/project-workspace/feature.js +625 -1
- package/dist/project-workspace/feature.js.map +1 -1
- package/dist/project-workspace/git-effect-schema.d.ts +93 -0
- package/dist/project-workspace/git-effect-schema.d.ts.map +1 -0
- package/dist/project-workspace/git-effect-schema.js +81 -0
- package/dist/project-workspace/git-effect-schema.js.map +1 -0
- package/dist/project-workspace/index.d.ts +2 -2
- package/dist/project-workspace/index.d.ts.map +1 -1
- package/dist/project-workspace/index.js +2 -2
- package/dist/project-workspace/index.js.map +1 -1
- package/dist/project-workspace/knowledge-effect-schema.d.ts +413 -0
- package/dist/project-workspace/knowledge-effect-schema.d.ts.map +1 -0
- package/dist/project-workspace/knowledge-effect-schema.js +232 -0
- package/dist/project-workspace/knowledge-effect-schema.js.map +1 -0
- package/dist/project-workspace/policy.d.ts +40 -0
- package/dist/project-workspace/policy.d.ts.map +1 -1
- package/dist/project-workspace/policy.js +39 -0
- package/dist/project-workspace/policy.js.map +1 -1
- package/dist/provider/feature.d.ts +35 -0
- package/dist/provider/feature.d.ts.map +1 -0
- package/dist/provider/feature.js +39 -0
- package/dist/provider/feature.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +1 -0
- package/dist/provider/index.js.map +1 -1
- package/dist/reach/address.d.ts +18 -0
- package/dist/reach/address.d.ts.map +1 -0
- package/dist/reach/address.js +42 -0
- package/dist/reach/address.js.map +1 -0
- package/dist/reach/contract.d.ts +68 -0
- package/dist/reach/contract.d.ts.map +1 -0
- package/dist/reach/contract.js +8 -0
- package/dist/reach/contract.js.map +1 -0
- package/dist/reach/effect-schema.d.ts +134 -0
- package/dist/reach/effect-schema.d.ts.map +1 -0
- package/dist/reach/effect-schema.js +69 -0
- package/dist/reach/effect-schema.js.map +1 -0
- package/dist/reach/feature.d.ts +106 -0
- package/dist/reach/feature.d.ts.map +1 -0
- package/dist/reach/feature.js +106 -0
- package/dist/reach/feature.js.map +1 -0
- package/dist/reach/index.d.ts +4 -0
- package/dist/reach/index.d.ts.map +1 -0
- package/dist/reach/index.js +4 -0
- package/dist/reach/index.js.map +1 -0
- package/dist/reference/feature.d.ts +5 -0
- package/dist/reference/feature.d.ts.map +1 -1
- package/dist/reference/feature.js +5 -0
- package/dist/reference/feature.js.map +1 -1
- package/dist/release/version.d.ts +2 -2
- package/dist/release/version.d.ts.map +1 -1
- package/dist/release/version.js +2 -2
- package/dist/release/version.js.map +1 -1
- package/dist/remote-node/bridge-effect-schema.js +2 -2
- package/dist/remote-node/contract.d.ts +103 -2
- package/dist/remote-node/contract.d.ts.map +1 -1
- package/dist/remote-node/effect-schema.d.ts +1 -1
- package/dist/remote-node/effect-schema.d.ts.map +1 -1
- package/dist/remote-node/effect-schema.js +1 -1
- package/dist/remote-node/effect-schema.js.map +1 -1
- package/dist/remote-node/feature.d.ts +185 -0
- package/dist/remote-node/feature.d.ts.map +1 -1
- package/dist/remote-node/feature.js +173 -0
- package/dist/remote-node/feature.js.map +1 -1
- package/dist/remote-node/request-effect-schema.d.ts +4 -4
- package/dist/remote-node/request-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/request-effect-schema.js +2 -1
- package/dist/remote-node/request-effect-schema.js.map +1 -1
- package/dist/remote-node/result-effect-schema.d.ts +194 -1
- package/dist/remote-node/result-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/result-effect-schema.js +13 -2
- package/dist/remote-node/result-effect-schema.js.map +1 -1
- package/dist/routine/contract.d.ts +644 -18
- package/dist/routine/contract.d.ts.map +1 -1
- package/dist/routine/contract.js +28 -2
- package/dist/routine/contract.js.map +1 -1
- package/dist/routine/effect-schema.d.ts +1489 -218
- package/dist/routine/effect-schema.d.ts.map +1 -1
- package/dist/routine/effect-schema.js +358 -20
- package/dist/routine/effect-schema.js.map +1 -1
- package/dist/routine/feature.d.ts +336 -11
- package/dist/routine/feature.d.ts.map +1 -1
- package/dist/routine/feature.js +318 -11
- package/dist/routine/feature.js.map +1 -1
- package/dist/routine/index.d.ts +1 -1
- package/dist/routine/index.d.ts.map +1 -1
- package/dist/routine/index.js +1 -1
- package/dist/routine/index.js.map +1 -1
- package/dist/routine/policy.d.ts +55 -3
- package/dist/routine/policy.d.ts.map +1 -1
- package/dist/routine/policy.js +46 -1
- package/dist/routine/policy.js.map +1 -1
- package/dist/run-ledger/contract.d.ts +47 -0
- package/dist/run-ledger/contract.d.ts.map +1 -1
- package/dist/run-ledger/feature.d.ts +32 -0
- package/dist/run-ledger/feature.d.ts.map +1 -1
- package/dist/run-ledger/feature.js +32 -0
- package/dist/run-ledger/feature.js.map +1 -1
- package/dist/run-ledger/result-effect-schema.d.ts +94 -0
- package/dist/run-ledger/result-effect-schema.d.ts.map +1 -1
- package/dist/runtime/effect-schema.d.ts.map +1 -1
- package/dist/runtime/effect-schema.js +2 -1
- package/dist/runtime/effect-schema.js.map +1 -1
- package/dist/runtime/feature.d.ts +35 -0
- package/dist/runtime/feature.d.ts.map +1 -0
- package/dist/runtime/feature.js +39 -0
- package/dist/runtime/feature.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime-schema/effect-json-schema.d.ts +9 -0
- package/dist/runtime-schema/effect-json-schema.d.ts.map +1 -0
- package/dist/runtime-schema/effect-json-schema.js +41 -0
- package/dist/runtime-schema/effect-json-schema.js.map +1 -0
- package/dist/runtime-schema/effect-schema.d.ts +1 -0
- package/dist/runtime-schema/effect-schema.d.ts.map +1 -1
- package/dist/runtime-schema/effect-schema.js +1 -0
- package/dist/runtime-schema/effect-schema.js.map +1 -1
- package/dist/secret/contract.d.ts +107 -0
- package/dist/secret/contract.d.ts.map +1 -0
- package/dist/secret/contract.js +34 -0
- package/dist/secret/contract.js.map +1 -0
- package/dist/secret/effect-schema.d.ts +185 -0
- package/dist/secret/effect-schema.d.ts.map +1 -0
- package/dist/secret/effect-schema.js +113 -0
- package/dist/secret/effect-schema.js.map +1 -0
- package/dist/secret/feature.d.ts +103 -0
- package/dist/secret/feature.d.ts.map +1 -0
- package/dist/secret/feature.js +103 -0
- package/dist/secret/feature.js.map +1 -0
- package/dist/secret/index.d.ts +3 -0
- package/dist/secret/index.d.ts.map +1 -0
- package/dist/secret/index.js +3 -0
- package/dist/secret/index.js.map +1 -0
- package/dist/session/agent-permission-contract.d.ts +6 -5
- package/dist/session/agent-permission-contract.d.ts.map +1 -1
- package/dist/session/agent-permission-effect-schema.d.ts +11 -9
- package/dist/session/agent-permission-effect-schema.d.ts.map +1 -1
- package/dist/session/agent-permission-effect-schema.js +2 -2
- package/dist/session/agent-permission-effect-schema.js.map +1 -1
- package/dist/session/contract.d.ts +980 -82
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/contract.js +33 -4
- package/dist/session/contract.js.map +1 -1
- package/dist/session/defaults/contract.d.ts +19 -0
- package/dist/session/defaults/contract.d.ts.map +1 -0
- package/dist/session/defaults/contract.js +5 -0
- package/dist/session/defaults/contract.js.map +1 -0
- package/dist/session/defaults/effect-schema.d.ts +36 -0
- package/dist/session/defaults/effect-schema.d.ts.map +1 -0
- package/dist/session/defaults/effect-schema.js +28 -0
- package/dist/session/defaults/effect-schema.js.map +1 -0
- package/dist/session/defaults/index.d.ts +2 -0
- package/dist/session/defaults/index.d.ts.map +1 -0
- package/dist/session/defaults/index.js +2 -0
- package/dist/session/defaults/index.js.map +1 -0
- package/dist/session/effect-schema.d.ts +3008 -159
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +594 -52
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +868 -18
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +823 -25
- package/dist/session/feature.js.map +1 -1
- package/dist/session/index.d.ts +6 -3
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +6 -3
- package/dist/session/index.js.map +1 -1
- package/dist/session/observation-contract.d.ts +2 -2
- package/dist/session/observation-effect-schema.d.ts +7 -2
- package/dist/session/observation-effect-schema.d.ts.map +1 -1
- package/dist/session/observation-effect-schema.js +6 -1
- package/dist/session/observation-effect-schema.js.map +1 -1
- package/dist/session/placement/contract.d.ts +35 -0
- package/dist/session/placement/contract.d.ts.map +1 -0
- package/dist/session/placement/contract.js +5 -0
- package/dist/session/placement/contract.js.map +1 -0
- package/dist/session/placement/effect-schema.d.ts +55 -0
- package/dist/session/placement/effect-schema.d.ts.map +1 -0
- package/dist/session/placement/effect-schema.js +76 -0
- package/dist/session/placement/effect-schema.js.map +1 -0
- package/dist/session/placement/index.d.ts +2 -0
- package/dist/session/placement/index.d.ts.map +1 -0
- package/dist/session/placement/index.js +2 -0
- package/dist/session/placement/index.js.map +1 -0
- package/dist/session/policy.d.ts +157 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +185 -2
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +129 -2
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/session/stop-resume-contract.js +5 -1
- package/dist/session/stop-resume-contract.js.map +1 -1
- package/dist/session/worktree-effect-schema.d.ts +56 -1
- package/dist/session/worktree-effect-schema.d.ts.map +1 -1
- package/dist/session/worktree-effect-schema.js +80 -3
- package/dist/session/worktree-effect-schema.js.map +1 -1
- package/dist/session-command/contract.d.ts +442 -0
- package/dist/session-command/contract.d.ts.map +1 -0
- package/dist/session-command/contract.js +12 -0
- package/dist/session-command/contract.js.map +1 -0
- package/dist/session-command/effect-schema.d.ts +875 -0
- package/dist/session-command/effect-schema.d.ts.map +1 -0
- package/dist/session-command/effect-schema.js +125 -0
- package/dist/session-command/effect-schema.js.map +1 -0
- package/dist/session-command/feature.d.ts +141 -0
- package/dist/session-command/feature.d.ts.map +1 -0
- package/dist/session-command/feature.js +137 -0
- package/dist/session-command/feature.js.map +1 -0
- package/dist/session-command/index.d.ts +4 -0
- package/dist/session-command/index.d.ts.map +1 -0
- package/dist/session-command/index.js +4 -0
- package/dist/session-command/index.js.map +1 -0
- package/dist/session-command/policy.d.ts +33 -0
- package/dist/session-command/policy.d.ts.map +1 -0
- package/dist/session-command/policy.js +60 -0
- package/dist/session-command/policy.js.map +1 -0
- package/dist/session-guard/contract.d.ts +33 -4
- package/dist/session-guard/contract.d.ts.map +1 -1
- package/dist/session-guard/contract.js +29 -5
- package/dist/session-guard/contract.js.map +1 -1
- package/dist/session-guard/feature.d.ts +66 -1
- package/dist/session-guard/feature.d.ts.map +1 -1
- package/dist/session-guard/feature.js +62 -1
- package/dist/session-guard/feature.js.map +1 -1
- package/dist/session-guard/index.d.ts +1 -1
- package/dist/session-guard/index.d.ts.map +1 -1
- package/dist/session-guard/index.js +1 -1
- package/dist/session-guard/index.js.map +1 -1
- package/dist/session-guard/request-effect-schema.d.ts +33 -0
- package/dist/session-guard/request-effect-schema.d.ts.map +1 -1
- package/dist/session-guard/request-effect-schema.js +22 -0
- package/dist/session-guard/request-effect-schema.js.map +1 -1
- package/dist/session-guard/result-effect-schema.d.ts +28 -0
- package/dist/session-guard/result-effect-schema.d.ts.map +1 -1
- package/dist/session-guard/result-effect-schema.js +3 -1
- package/dist/session-guard/result-effect-schema.js.map +1 -1
- package/dist/session-stream/contract.d.ts +45 -4
- package/dist/session-stream/contract.d.ts.map +1 -1
- package/dist/session-stream/contract.js +1 -1
- package/dist/session-stream/contract.js.map +1 -1
- package/dist/session-stream/effect-schema.d.ts +56 -10
- package/dist/session-stream/effect-schema.d.ts.map +1 -1
- package/dist/session-stream/effect-schema.js +27 -1
- package/dist/session-stream/effect-schema.js.map +1 -1
- package/dist/session-stream/index.d.ts +1 -1
- package/dist/session-stream/index.d.ts.map +1 -1
- package/dist/session-stream/index.js +1 -1
- package/dist/session-stream/index.js.map +1 -1
- package/dist/session-stream/policy.d.ts +9 -1
- package/dist/session-stream/policy.d.ts.map +1 -1
- package/dist/session-stream/policy.js +9 -0
- package/dist/session-stream/policy.js.map +1 -1
- package/dist/skills-sync/contract.d.ts +142 -0
- package/dist/skills-sync/contract.d.ts.map +1 -0
- package/dist/skills-sync/contract.js +13 -0
- package/dist/skills-sync/contract.js.map +1 -0
- package/dist/skills-sync/effect-schema.d.ts +312 -0
- package/dist/skills-sync/effect-schema.d.ts.map +1 -0
- package/dist/skills-sync/effect-schema.js +160 -0
- package/dist/skills-sync/effect-schema.js.map +1 -0
- package/dist/skills-sync/feature.d.ts +102 -0
- package/dist/skills-sync/feature.d.ts.map +1 -0
- package/dist/skills-sync/feature.js +102 -0
- package/dist/skills-sync/feature.js.map +1 -0
- package/dist/skills-sync/index.d.ts +3 -0
- package/dist/skills-sync/index.d.ts.map +1 -0
- package/dist/skills-sync/index.js +3 -0
- package/dist/skills-sync/index.js.map +1 -0
- package/dist/team-workspace/contract.d.ts +1 -0
- package/dist/team-workspace/contract.d.ts.map +1 -1
- package/dist/team-workspace/effect-schema.d.ts +2 -0
- package/dist/team-workspace/effect-schema.d.ts.map +1 -1
- package/dist/team-workspace/feature.d.ts +10 -0
- package/dist/team-workspace/feature.d.ts.map +1 -1
- package/dist/team-workspace/feature.js +10 -0
- package/dist/team-workspace/feature.js.map +1 -1
- package/dist/terminal/contract.d.ts +2 -0
- package/dist/terminal/contract.d.ts.map +1 -1
- package/dist/terminal/effect-schema.d.ts +6 -0
- package/dist/terminal/effect-schema.d.ts.map +1 -1
- package/dist/terminal/effect-schema.js +2 -0
- package/dist/terminal/effect-schema.js.map +1 -1
- package/dist/terminal/feature.d.ts +281 -0
- package/dist/terminal/feature.d.ts.map +1 -1
- package/dist/terminal/feature.js +289 -0
- package/dist/terminal/feature.js.map +1 -1
- package/dist/turn/contract.d.ts +199 -515
- package/dist/turn/contract.d.ts.map +1 -1
- package/dist/turn/contract.js +25 -4
- package/dist/turn/contract.js.map +1 -1
- package/dist/turn/effect-schema.d.ts +2319 -130
- package/dist/turn/effect-schema.d.ts.map +1 -1
- package/dist/turn/effect-schema.js +206 -11
- package/dist/turn/effect-schema.js.map +1 -1
- package/dist/turn/index.d.ts +2 -2
- package/dist/turn/index.d.ts.map +1 -1
- package/dist/turn/index.js +2 -2
- package/dist/turn/index.js.map +1 -1
- package/dist/turn/policy.d.ts +54 -0
- package/dist/turn/policy.d.ts.map +1 -1
- package/dist/turn/policy.js +74 -0
- package/dist/turn/policy.js.map +1 -1
- package/dist/voice/contract.d.ts +6 -6
- package/dist/voice/effect-schema.d.ts +10 -9
- package/dist/voice/effect-schema.d.ts.map +1 -1
- package/dist/voice/effect-schema.js +3 -1
- package/dist/voice/effect-schema.js.map +1 -1
- package/dist/voice/feature.d.ts +70 -2
- package/dist/voice/feature.d.ts.map +1 -1
- package/dist/voice/feature.js +32 -0
- package/dist/voice/feature.js.map +1 -1
- package/dist/voice/orchestrator-system-prompt.d.ts +2 -2
- package/dist/voice/orchestrator-system-prompt.js +2 -2
- package/dist/voice/relay-contract.d.ts +1 -0
- package/dist/voice/relay-contract.d.ts.map +1 -1
- package/dist/voice/relay-effect-schema.d.ts +2 -0
- package/dist/voice/relay-effect-schema.d.ts.map +1 -1
- package/dist/webhooks/contract.d.ts +358 -0
- package/dist/webhooks/contract.d.ts.map +1 -0
- package/dist/webhooks/contract.js +26 -0
- package/dist/webhooks/contract.js.map +1 -0
- package/dist/webhooks/effect-schema.d.ts +550 -0
- package/dist/webhooks/effect-schema.d.ts.map +1 -0
- package/dist/webhooks/effect-schema.js +197 -0
- package/dist/webhooks/effect-schema.js.map +1 -0
- package/dist/webhooks/feature.d.ts +125 -0
- package/dist/webhooks/feature.d.ts.map +1 -0
- package/dist/webhooks/feature.js +123 -0
- package/dist/webhooks/feature.js.map +1 -0
- package/dist/webhooks/hook-effect-schema.d.ts +69 -0
- package/dist/webhooks/hook-effect-schema.d.ts.map +1 -0
- package/dist/webhooks/hook-effect-schema.js +107 -0
- package/dist/webhooks/hook-effect-schema.js.map +1 -0
- package/dist/webhooks/index.d.ts +4 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +4 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/policy.d.ts +16 -0
- package/dist/webhooks/policy.d.ts.map +1 -0
- package/dist/webhooks/policy.js +16 -0
- package/dist/webhooks/policy.js.map +1 -0
- package/package.json +9 -3
- package/dist/configuration/configuration.d.ts +0 -63
- package/dist/configuration/configuration.d.ts.map +0 -1
- package/dist/configuration/configuration.js +0 -93
- package/dist/configuration/configuration.js.map +0 -1
- package/dist/configuration/index.d.ts +0 -2
- package/dist/configuration/index.d.ts.map +0 -1
- package/dist/configuration/index.js +0 -2
- package/dist/configuration/index.js.map +0 -1
|
@@ -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,9 +64,69 @@ 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>;
|
|
124
|
+
/**
|
|
125
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
126
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
127
|
+
* Absent when off.
|
|
128
|
+
*/
|
|
129
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
44
130
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
45
131
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
46
132
|
readonly baseRef: Schema.String;
|
|
@@ -69,13 +155,21 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
69
155
|
readonly key: Schema.String;
|
|
70
156
|
readonly version: Schema.String;
|
|
71
157
|
}>>;
|
|
158
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
159
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
160
|
+
/** `none` when the Session runs with host authority. */
|
|
161
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
162
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
163
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
72
164
|
/** The account the Session binds to, named or picked by the Node. */
|
|
73
165
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
74
166
|
readonly connectionId: Schema.String;
|
|
75
167
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
76
|
-
readonly kind: Schema.
|
|
168
|
+
readonly kind: Schema.String;
|
|
77
169
|
readonly model: Schema.optional<Schema.String>;
|
|
78
170
|
}>>;
|
|
171
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
172
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
79
173
|
readonly projectId: Schema.String;
|
|
80
174
|
readonly workspaceId: Schema.String;
|
|
81
175
|
readonly workspaceRevision: Schema.String;
|
|
@@ -119,6 +213,20 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
119
213
|
readonly schemaVersion: Schema.Literal<4>;
|
|
120
214
|
readonly sessionCursor: Schema.String;
|
|
121
215
|
readonly sessionId: Schema.String;
|
|
216
|
+
}>, Schema.Struct<{
|
|
217
|
+
readonly commandId: Schema.String;
|
|
218
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
219
|
+
readonly globalCursor: Schema.String;
|
|
220
|
+
readonly payload: Schema.Struct<{
|
|
221
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
222
|
+
readonly code: Schema.String;
|
|
223
|
+
readonly message: Schema.String;
|
|
224
|
+
}>>;
|
|
225
|
+
}>;
|
|
226
|
+
readonly recordedAt: Schema.String;
|
|
227
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
228
|
+
readonly sessionCursor: Schema.String;
|
|
229
|
+
readonly sessionId: Schema.String;
|
|
122
230
|
}>, Schema.Struct<{
|
|
123
231
|
readonly commandId: Schema.String;
|
|
124
232
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -276,9 +384,13 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
|
|
|
276
384
|
* both `connectionId` and `executor`, and optionally the `model`. An Agent
|
|
277
385
|
* (`agentId`) supplies the harness, Connection, model and effort itself, so it
|
|
278
386
|
* excludes every one of them. `role` (default `worker`) bounds what the
|
|
279
|
-
* Session's own credential reaches.
|
|
280
|
-
*
|
|
281
|
-
*
|
|
387
|
+
* Session's own credential reaches. `hostAuthority` opts one executor Session
|
|
388
|
+
* out of the Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)): it
|
|
389
|
+
* runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
|
|
390
|
+
* role, and passes `permission` to its vendor CLI unchanged. A vendor
|
|
391
|
+
* executor Session with `worktree` is a coding Session: it gets its own
|
|
392
|
+
* worktree from the base ref of the Workspace's repository and may write
|
|
393
|
+
* inside it.
|
|
282
394
|
*/
|
|
283
395
|
export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
284
396
|
readonly commandId: Schema.String;
|
|
@@ -286,53 +398,64 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
286
398
|
readonly workspaceId: Schema.String;
|
|
287
399
|
readonly agentId: Schema.optional<Schema.String>;
|
|
288
400
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
401
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
402
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
289
403
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
290
404
|
readonly contentDigest: Schema.String;
|
|
291
405
|
readonly key: Schema.String;
|
|
292
406
|
readonly version: Schema.String;
|
|
293
407
|
}>>;
|
|
294
408
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
295
|
-
readonly executor: Schema.optional<Schema.
|
|
409
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
410
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
411
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
296
412
|
readonly model: Schema.optional<Schema.String>;
|
|
413
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
297
414
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
298
415
|
readonly title: Schema.optional<Schema.String>;
|
|
416
|
+
/**
|
|
417
|
+
* Opts this Session in to parent wakes (SELF-3): each time a turn of one of
|
|
418
|
+
* its children ends (completed, failed, interrupted or outcome unknown), the
|
|
419
|
+
* Node queues one turn here with the child's Session ID, the turn ID and
|
|
420
|
+
* that state, never the child's text. Off by default.
|
|
421
|
+
*/
|
|
422
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
299
423
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
300
424
|
readonly baseRef: Schema.String;
|
|
425
|
+
readonly branch: Schema.optional<Schema.String>;
|
|
301
426
|
}>>;
|
|
302
427
|
}>;
|
|
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
428
|
/**
|
|
316
429
|
* One page of Sessions in creation order: of one Project, or of the whole
|
|
317
430
|
* Node without `projectId`; without `afterCursor` the first page and without
|
|
318
431
|
* `limit` `DEFAULT_SESSION_LIST_PAGE_SIZE` Sessions. `states` keeps Sessions
|
|
319
432
|
* in those states; `attention` keeps Sessions the Node reports an attention
|
|
320
|
-
* value for.
|
|
433
|
+
* value for; `parentSessionId` keeps the direct children of that Session.
|
|
321
434
|
*/
|
|
322
435
|
export declare const sessionListParametersEffectSchema: Schema.Struct<{
|
|
323
436
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
324
437
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
438
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
439
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
440
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
441
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
325
442
|
readonly limit: Schema.optional<Schema.Int>;
|
|
443
|
+
/** Keeps the direct children of this Session; an unknown Session has none. */
|
|
444
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
326
445
|
readonly projectId: Schema.optional<Schema.String>;
|
|
446
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
447
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
327
448
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
328
449
|
}>;
|
|
329
450
|
export declare const sessionShowParametersEffectSchema: Schema.Struct<{
|
|
330
451
|
readonly sessionId: Schema.String;
|
|
331
452
|
}>;
|
|
332
453
|
export declare const sessionWaitParametersEffectSchema: Schema.Struct<{
|
|
454
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
455
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
333
456
|
readonly sessionId: Schema.String;
|
|
334
457
|
/** 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"]
|
|
458
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
336
459
|
readonly waitMilliseconds: Schema.Int;
|
|
337
460
|
}>;
|
|
338
461
|
export declare const sessionEventsListParametersEffectSchema: Schema.Struct<{
|
|
@@ -345,6 +468,342 @@ export declare const sessionStartParametersEffectSchema: Schema.Struct<{
|
|
|
345
468
|
readonly expectedRevision: Schema.String;
|
|
346
469
|
readonly sessionId: Schema.String;
|
|
347
470
|
}>;
|
|
471
|
+
/** A fork stops at a completed turn of the Session; without `turnId` it takes the newest one. */
|
|
472
|
+
export declare const sessionForkPreviewParametersEffectSchema: Schema.Struct<{
|
|
473
|
+
readonly commandId: Schema.String;
|
|
474
|
+
readonly sessionId: Schema.String;
|
|
475
|
+
readonly turnId: Schema.optional<Schema.String>;
|
|
476
|
+
}>;
|
|
477
|
+
export declare const sessionForkConfirmParametersEffectSchema: Schema.Struct<{
|
|
478
|
+
inputDigest: Schema.String;
|
|
479
|
+
proof: Schema.String;
|
|
480
|
+
validUntil: Schema.String;
|
|
481
|
+
checkpoint: Schema.optional<Schema.String>;
|
|
482
|
+
commandId: Schema.String;
|
|
483
|
+
expectedRevision: Schema.String;
|
|
484
|
+
sessionId: Schema.String;
|
|
485
|
+
turnId: Schema.String;
|
|
486
|
+
}>;
|
|
487
|
+
export declare const sessionSwitchPreviewParametersEffectSchema: Schema.Struct<{
|
|
488
|
+
readonly commandId: Schema.String;
|
|
489
|
+
readonly sessionId: Schema.String;
|
|
490
|
+
readonly 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 sessionSwitchConfirmParametersEffectSchema: Schema.Struct<{
|
|
497
|
+
inputDigest: Schema.String;
|
|
498
|
+
proof: Schema.String;
|
|
499
|
+
validUntil: Schema.String;
|
|
500
|
+
commandId: Schema.String;
|
|
501
|
+
expectedRevision: Schema.String;
|
|
502
|
+
sessionId: Schema.String;
|
|
503
|
+
target: Schema.Struct<{
|
|
504
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
505
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
506
|
+
readonly model: Schema.optional<Schema.String>;
|
|
507
|
+
}>;
|
|
508
|
+
}>;
|
|
509
|
+
export declare const sessionSetupPreviewParametersEffectSchema: Schema.Struct<{
|
|
510
|
+
readonly commandId: Schema.String;
|
|
511
|
+
readonly sessionId: Schema.String;
|
|
512
|
+
}>;
|
|
513
|
+
export declare const sessionSetupConfirmParametersEffectSchema: Schema.Struct<{
|
|
514
|
+
inputDigest: Schema.String;
|
|
515
|
+
proof: Schema.String;
|
|
516
|
+
validUntil: Schema.String;
|
|
517
|
+
commandId: Schema.String;
|
|
518
|
+
expectedRevision: Schema.String;
|
|
519
|
+
sessionId: Schema.String;
|
|
520
|
+
setupDigest: Schema.String;
|
|
521
|
+
}>;
|
|
522
|
+
/** The three numbers a Node holds every spawned child to (CAP). */
|
|
523
|
+
export declare const sessionSpawnCapsEffectSchema: Schema.Struct<{
|
|
524
|
+
readonly concurrency: Schema.Int;
|
|
525
|
+
readonly depth: Schema.Int;
|
|
526
|
+
readonly fanOut: Schema.Int;
|
|
527
|
+
}>;
|
|
528
|
+
/** Revision `0` is the defaults of a Node whose caps no person has changed. */
|
|
529
|
+
export declare const sessionSpawnCapsRecordEffectSchema: Schema.Struct<{
|
|
530
|
+
readonly caps: Schema.Struct<{
|
|
531
|
+
readonly concurrency: Schema.Int;
|
|
532
|
+
readonly depth: Schema.Int;
|
|
533
|
+
readonly fanOut: Schema.Int;
|
|
534
|
+
}>;
|
|
535
|
+
readonly revision: Schema.String;
|
|
536
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
537
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
538
|
+
}>;
|
|
539
|
+
/** A parent's children: every one it spawned (`total`), and those that have not ended (`live`). */
|
|
540
|
+
export declare const sessionSpawnChildrenEffectSchema: Schema.Struct<{
|
|
541
|
+
readonly live: Schema.Int;
|
|
542
|
+
readonly total: Schema.Int;
|
|
543
|
+
}>;
|
|
544
|
+
/** A Session's spawn depth: the spawns between it and the Session at the root of its tree, which has depth 0. */
|
|
545
|
+
export declare const sessionSpawnDepthEffectSchema: Schema.Int;
|
|
546
|
+
export declare const sessionSpawnCapsShowParametersEffectSchema: Schema.Struct<{
|
|
547
|
+
readonly sessionId: Schema.optional<Schema.String>;
|
|
548
|
+
}>;
|
|
549
|
+
/**
|
|
550
|
+
* What one Session uses of the caps on this Node: its children here, and its
|
|
551
|
+
* depth and role when this Node holds it. A client adds the children of every
|
|
552
|
+
* Node; an orchestrator's children all live on its own Node (D-346).
|
|
553
|
+
*/
|
|
554
|
+
export declare const sessionSpawnStandingEffectSchema: Schema.Struct<{
|
|
555
|
+
readonly children: Schema.Struct<{
|
|
556
|
+
readonly live: Schema.Int;
|
|
557
|
+
readonly total: Schema.Int;
|
|
558
|
+
}>;
|
|
559
|
+
readonly depth: Schema.optional<Schema.Int>;
|
|
560
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
561
|
+
readonly sessionId: Schema.String;
|
|
562
|
+
}>;
|
|
563
|
+
export declare const sessionSpawnCapsShowResultEffectSchema: Schema.Struct<{
|
|
564
|
+
readonly caps: Schema.Struct<{
|
|
565
|
+
readonly caps: Schema.Struct<{
|
|
566
|
+
readonly concurrency: Schema.Int;
|
|
567
|
+
readonly depth: Schema.Int;
|
|
568
|
+
readonly fanOut: Schema.Int;
|
|
569
|
+
}>;
|
|
570
|
+
readonly revision: Schema.String;
|
|
571
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
572
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
573
|
+
}>;
|
|
574
|
+
readonly method: Schema.Literal<"session.spawn-caps.show">;
|
|
575
|
+
readonly standing: Schema.optional<Schema.Struct<{
|
|
576
|
+
readonly children: Schema.Struct<{
|
|
577
|
+
readonly live: Schema.Int;
|
|
578
|
+
readonly total: Schema.Int;
|
|
579
|
+
}>;
|
|
580
|
+
readonly depth: Schema.optional<Schema.Int>;
|
|
581
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
582
|
+
readonly sessionId: Schema.String;
|
|
583
|
+
}>>;
|
|
584
|
+
}>;
|
|
585
|
+
/** A person previews new caps at the revision they read, then confirms that exact preview. */
|
|
586
|
+
export declare const sessionSpawnCapsPreviewParametersEffectSchema: Schema.Struct<{
|
|
587
|
+
caps: Schema.Struct<{
|
|
588
|
+
readonly concurrency: Schema.Int;
|
|
589
|
+
readonly depth: Schema.Int;
|
|
590
|
+
readonly fanOut: Schema.Int;
|
|
591
|
+
}>;
|
|
592
|
+
commandId: Schema.String;
|
|
593
|
+
expectedRevision: Schema.String;
|
|
594
|
+
}>;
|
|
595
|
+
export declare const sessionSpawnCapsConfirmParametersEffectSchema: 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
|
+
}>;
|
|
607
|
+
/** The caps now and the caps the confirmation would leave, sealed for it. */
|
|
608
|
+
export declare const sessionSpawnCapsPreviewResultEffectSchema: Schema.Struct<{
|
|
609
|
+
readonly caps: Schema.Struct<{
|
|
610
|
+
readonly concurrency: Schema.Int;
|
|
611
|
+
readonly depth: Schema.Int;
|
|
612
|
+
readonly fanOut: Schema.Int;
|
|
613
|
+
}>;
|
|
614
|
+
readonly commandId: Schema.String;
|
|
615
|
+
readonly expectedRevision: Schema.String;
|
|
616
|
+
readonly inputDigest: Schema.String;
|
|
617
|
+
readonly proof: Schema.String;
|
|
618
|
+
readonly validUntil: Schema.String;
|
|
619
|
+
readonly current: 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 method: Schema.Literal<"session.spawn-caps.preview">;
|
|
630
|
+
}>;
|
|
631
|
+
export declare const sessionSpawnCapsConfirmResultEffectSchema: Schema.Struct<{
|
|
632
|
+
readonly caps: Schema.Struct<{
|
|
633
|
+
readonly caps: Schema.Struct<{
|
|
634
|
+
readonly concurrency: Schema.Int;
|
|
635
|
+
readonly depth: Schema.Int;
|
|
636
|
+
readonly fanOut: Schema.Int;
|
|
637
|
+
}>;
|
|
638
|
+
readonly revision: Schema.String;
|
|
639
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
640
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
641
|
+
}>;
|
|
642
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
643
|
+
readonly method: Schema.Literal<"session.spawn-caps.confirm">;
|
|
644
|
+
readonly receipt: Schema.Struct<{
|
|
645
|
+
readonly actorId: Schema.String;
|
|
646
|
+
readonly aggregateRevision: Schema.String;
|
|
647
|
+
readonly commandId: Schema.String;
|
|
648
|
+
readonly createdAt: Schema.String;
|
|
649
|
+
readonly eventCursor: Schema.String;
|
|
650
|
+
readonly method: Schema.String;
|
|
651
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
652
|
+
readonly receiptId: Schema.String;
|
|
653
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
654
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
655
|
+
readonly target: Schema.Struct<{
|
|
656
|
+
readonly id: Schema.String;
|
|
657
|
+
readonly type: Schema.String;
|
|
658
|
+
}>;
|
|
659
|
+
readonly updatedAt: Schema.String;
|
|
660
|
+
}>;
|
|
661
|
+
}>;
|
|
662
|
+
export declare const sessionSpawnCapsRequestEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
663
|
+
readonly method: Schema.Literal<"session.spawn-caps.show">;
|
|
664
|
+
readonly parameters: Schema.Struct<{
|
|
665
|
+
readonly sessionId: Schema.optional<Schema.String>;
|
|
666
|
+
}>;
|
|
667
|
+
}>, Schema.Struct<{
|
|
668
|
+
readonly method: Schema.Literal<"session.spawn-caps.preview">;
|
|
669
|
+
readonly parameters: Schema.Struct<{
|
|
670
|
+
caps: Schema.Struct<{
|
|
671
|
+
readonly concurrency: Schema.Int;
|
|
672
|
+
readonly depth: Schema.Int;
|
|
673
|
+
readonly fanOut: Schema.Int;
|
|
674
|
+
}>;
|
|
675
|
+
commandId: Schema.String;
|
|
676
|
+
expectedRevision: Schema.String;
|
|
677
|
+
}>;
|
|
678
|
+
}>, Schema.Struct<{
|
|
679
|
+
readonly method: Schema.Literal<"session.spawn-caps.confirm">;
|
|
680
|
+
readonly parameters: Schema.Struct<{
|
|
681
|
+
readonly caps: Schema.Struct<{
|
|
682
|
+
readonly concurrency: Schema.Int;
|
|
683
|
+
readonly depth: Schema.Int;
|
|
684
|
+
readonly fanOut: Schema.Int;
|
|
685
|
+
}>;
|
|
686
|
+
readonly commandId: Schema.String;
|
|
687
|
+
readonly expectedRevision: Schema.String;
|
|
688
|
+
readonly inputDigest: Schema.String;
|
|
689
|
+
readonly proof: Schema.String;
|
|
690
|
+
readonly validUntil: Schema.String;
|
|
691
|
+
}>;
|
|
692
|
+
}>]>;
|
|
693
|
+
export declare const sessionSpawnCapsResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
694
|
+
readonly caps: Schema.Struct<{
|
|
695
|
+
readonly caps: Schema.Struct<{
|
|
696
|
+
readonly concurrency: Schema.Int;
|
|
697
|
+
readonly depth: Schema.Int;
|
|
698
|
+
readonly fanOut: Schema.Int;
|
|
699
|
+
}>;
|
|
700
|
+
readonly revision: Schema.String;
|
|
701
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
702
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
703
|
+
}>;
|
|
704
|
+
readonly method: Schema.Literal<"session.spawn-caps.show">;
|
|
705
|
+
readonly standing: Schema.optional<Schema.Struct<{
|
|
706
|
+
readonly children: Schema.Struct<{
|
|
707
|
+
readonly live: Schema.Int;
|
|
708
|
+
readonly total: Schema.Int;
|
|
709
|
+
}>;
|
|
710
|
+
readonly depth: Schema.optional<Schema.Int>;
|
|
711
|
+
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
712
|
+
readonly sessionId: Schema.String;
|
|
713
|
+
}>>;
|
|
714
|
+
}>, Schema.Struct<{
|
|
715
|
+
readonly caps: Schema.Struct<{
|
|
716
|
+
readonly concurrency: Schema.Int;
|
|
717
|
+
readonly depth: Schema.Int;
|
|
718
|
+
readonly fanOut: Schema.Int;
|
|
719
|
+
}>;
|
|
720
|
+
readonly commandId: Schema.String;
|
|
721
|
+
readonly expectedRevision: Schema.String;
|
|
722
|
+
readonly inputDigest: Schema.String;
|
|
723
|
+
readonly proof: Schema.String;
|
|
724
|
+
readonly validUntil: Schema.String;
|
|
725
|
+
readonly current: Schema.Struct<{
|
|
726
|
+
readonly caps: Schema.Struct<{
|
|
727
|
+
readonly concurrency: Schema.Int;
|
|
728
|
+
readonly depth: Schema.Int;
|
|
729
|
+
readonly fanOut: Schema.Int;
|
|
730
|
+
}>;
|
|
731
|
+
readonly revision: Schema.String;
|
|
732
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
733
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
734
|
+
}>;
|
|
735
|
+
readonly method: Schema.Literal<"session.spawn-caps.preview">;
|
|
736
|
+
}>, Schema.Struct<{
|
|
737
|
+
readonly caps: Schema.Struct<{
|
|
738
|
+
readonly caps: Schema.Struct<{
|
|
739
|
+
readonly concurrency: Schema.Int;
|
|
740
|
+
readonly depth: Schema.Int;
|
|
741
|
+
readonly fanOut: Schema.Int;
|
|
742
|
+
}>;
|
|
743
|
+
readonly revision: Schema.String;
|
|
744
|
+
readonly source: Schema.Literals<readonly ["default", "node"]>;
|
|
745
|
+
readonly updatedAt: Schema.optional<Schema.String>;
|
|
746
|
+
}>;
|
|
747
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
748
|
+
readonly method: Schema.Literal<"session.spawn-caps.confirm">;
|
|
749
|
+
readonly receipt: Schema.Struct<{
|
|
750
|
+
readonly actorId: Schema.String;
|
|
751
|
+
readonly aggregateRevision: Schema.String;
|
|
752
|
+
readonly commandId: Schema.String;
|
|
753
|
+
readonly createdAt: Schema.String;
|
|
754
|
+
readonly eventCursor: Schema.String;
|
|
755
|
+
readonly method: Schema.String;
|
|
756
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
757
|
+
readonly receiptId: Schema.String;
|
|
758
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
759
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
760
|
+
readonly target: Schema.Struct<{
|
|
761
|
+
readonly id: Schema.String;
|
|
762
|
+
readonly type: Schema.String;
|
|
763
|
+
}>;
|
|
764
|
+
readonly updatedAt: Schema.String;
|
|
765
|
+
}>;
|
|
766
|
+
}>]>;
|
|
767
|
+
export declare const sessionSpawnPreviewParametersEffectSchema: Schema.Struct<{
|
|
768
|
+
commandId: Schema.String;
|
|
769
|
+
executor: Schema.String;
|
|
770
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
771
|
+
parent: Schema.Struct<{
|
|
772
|
+
readonly children: Schema.Struct<{
|
|
773
|
+
readonly live: Schema.Int;
|
|
774
|
+
readonly total: Schema.Int;
|
|
775
|
+
}>;
|
|
776
|
+
readonly depth: Schema.Int;
|
|
777
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
778
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
779
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
780
|
+
readonly sessionId: Schema.String;
|
|
781
|
+
}>;
|
|
782
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
783
|
+
workspaceId: Schema.String;
|
|
784
|
+
}>;
|
|
785
|
+
export declare const sessionSpawnConfirmParametersEffectSchema: Schema.Struct<{
|
|
786
|
+
inputDigest: Schema.String;
|
|
787
|
+
proof: Schema.String;
|
|
788
|
+
validUntil: Schema.String;
|
|
789
|
+
commandId: Schema.String;
|
|
790
|
+
executor: Schema.String;
|
|
791
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
792
|
+
parent: Schema.Struct<{
|
|
793
|
+
readonly children: Schema.Struct<{
|
|
794
|
+
readonly live: Schema.Int;
|
|
795
|
+
readonly total: Schema.Int;
|
|
796
|
+
}>;
|
|
797
|
+
readonly depth: Schema.Int;
|
|
798
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
799
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
800
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
801
|
+
readonly sessionId: Schema.String;
|
|
802
|
+
}>;
|
|
803
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
804
|
+
workspaceId: Schema.String;
|
|
805
|
+
expectedRevision: Schema.Literal<"0">;
|
|
806
|
+
}>;
|
|
348
807
|
/** A new title at the Session's current revision. */
|
|
349
808
|
export declare const sessionRenameParametersEffectSchema: Schema.Struct<{
|
|
350
809
|
readonly commandId: Schema.String;
|
|
@@ -352,16 +811,24 @@ export declare const sessionRenameParametersEffectSchema: Schema.Struct<{
|
|
|
352
811
|
readonly sessionId: Schema.String;
|
|
353
812
|
readonly title: Schema.String;
|
|
354
813
|
}>;
|
|
355
|
-
/** Stop
|
|
814
|
+
/** Stop takes the same compare-and-set input as start. */
|
|
356
815
|
export declare const sessionStopParametersEffectSchema: Schema.Struct<{
|
|
357
816
|
readonly commandId: Schema.String;
|
|
358
817
|
readonly expectedRevision: Schema.String;
|
|
359
818
|
readonly sessionId: Schema.String;
|
|
360
819
|
}>;
|
|
820
|
+
/** Resume takes the compare-and-set input of start, and the parent claim of a child. */
|
|
361
821
|
export declare const sessionResumeParametersEffectSchema: Schema.Struct<{
|
|
362
822
|
readonly commandId: Schema.String;
|
|
363
823
|
readonly expectedRevision: Schema.String;
|
|
364
824
|
readonly sessionId: Schema.String;
|
|
825
|
+
readonly parent: Schema.optional<Schema.Struct<{
|
|
826
|
+
readonly children: Schema.Struct<{
|
|
827
|
+
readonly live: Schema.Int;
|
|
828
|
+
readonly total: Schema.Int;
|
|
829
|
+
}>;
|
|
830
|
+
readonly sessionId: Schema.String;
|
|
831
|
+
}>>;
|
|
365
832
|
}>;
|
|
366
833
|
export declare const sessionMessageSendParametersEffectSchema: Schema.Struct<{
|
|
367
834
|
readonly body: Schema.String;
|
|
@@ -501,6 +968,7 @@ export declare const sessionMessageSendResultEffectSchema: Schema.Struct<{
|
|
|
501
968
|
readonly createdAt: Schema.String;
|
|
502
969
|
readonly eventCursor: Schema.String;
|
|
503
970
|
readonly method: Schema.String;
|
|
971
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
504
972
|
readonly receiptId: Schema.String;
|
|
505
973
|
readonly schemaVersion: Schema.Literal<1>;
|
|
506
974
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -547,6 +1015,7 @@ export declare const sessionInboxAckResultEffectSchema: Schema.Struct<{
|
|
|
547
1015
|
readonly createdAt: Schema.String;
|
|
548
1016
|
readonly eventCursor: Schema.String;
|
|
549
1017
|
readonly method: Schema.String;
|
|
1018
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
550
1019
|
readonly receiptId: Schema.String;
|
|
551
1020
|
readonly schemaVersion: Schema.Literal<1>;
|
|
552
1021
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -567,6 +1036,7 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
567
1036
|
readonly createdAt: Schema.String;
|
|
568
1037
|
readonly eventCursor: Schema.String;
|
|
569
1038
|
readonly method: Schema.String;
|
|
1039
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
570
1040
|
readonly receiptId: Schema.String;
|
|
571
1041
|
readonly schemaVersion: Schema.Literal<1>;
|
|
572
1042
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -585,15 +1055,23 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
585
1055
|
readonly updatedAt: Schema.String;
|
|
586
1056
|
readonly workspaceId: Schema.String;
|
|
587
1057
|
readonly workspaceRevision: Schema.String;
|
|
1058
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1059
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
588
1060
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
589
1061
|
readonly contentDigest: Schema.String;
|
|
590
1062
|
readonly key: Schema.String;
|
|
591
1063
|
readonly version: Schema.String;
|
|
592
1064
|
}>>;
|
|
1065
|
+
/**
|
|
1066
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1067
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1068
|
+
* A sandboxed Session carries none.
|
|
1069
|
+
*/
|
|
1070
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
593
1071
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
594
1072
|
readonly connectionId: Schema.String;
|
|
595
1073
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
596
|
-
readonly kind: Schema.
|
|
1074
|
+
readonly kind: Schema.String;
|
|
597
1075
|
readonly model: Schema.optional<Schema.String>;
|
|
598
1076
|
}>>;
|
|
599
1077
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -601,9 +1079,69 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
601
1079
|
readonly code: Schema.String;
|
|
602
1080
|
readonly message: Schema.String;
|
|
603
1081
|
}>>;
|
|
1082
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1083
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1084
|
+
/**
|
|
1085
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1086
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1087
|
+
*/
|
|
1088
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1089
|
+
readonly claimedAt: Schema.String;
|
|
1090
|
+
readonly id: Schema.String;
|
|
1091
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1092
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1093
|
+
readonly title: Schema.String;
|
|
1094
|
+
}>>>;
|
|
1095
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1096
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1097
|
+
/** 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. */
|
|
1098
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1099
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1100
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1101
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1102
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1103
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1104
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1105
|
+
/**
|
|
1106
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1107
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1108
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1109
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1110
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1111
|
+
* it.
|
|
1112
|
+
*/
|
|
1113
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1114
|
+
readonly approvalId: Schema.String;
|
|
1115
|
+
readonly expiresAt: Schema.String;
|
|
1116
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1117
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1118
|
+
readonly label: Schema.String;
|
|
1119
|
+
readonly optionId: Schema.String;
|
|
1120
|
+
}>>>;
|
|
1121
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1122
|
+
}>>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1125
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1126
|
+
* every other state.
|
|
1127
|
+
*/
|
|
1128
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1129
|
+
readonly code: Schema.String;
|
|
1130
|
+
readonly message: Schema.String;
|
|
1131
|
+
}>>;
|
|
604
1132
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1133
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1134
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1135
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1136
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
605
1137
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
606
1138
|
readonly title: Schema.optional<Schema.String>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
1141
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
1142
|
+
* Absent when off.
|
|
1143
|
+
*/
|
|
1144
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
607
1145
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
608
1146
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
609
1147
|
readonly baseRef: Schema.String;
|
|
@@ -618,11 +1156,24 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
618
1156
|
}>>;
|
|
619
1157
|
}>;
|
|
620
1158
|
}>;
|
|
621
|
-
|
|
1159
|
+
/** 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. */
|
|
1160
|
+
export declare const sessionForkPreviewResultEffectSchema: Schema.Struct<{
|
|
1161
|
+
readonly inputDigest: Schema.String;
|
|
1162
|
+
readonly proof: Schema.String;
|
|
1163
|
+
readonly validUntil: Schema.String;
|
|
1164
|
+
readonly checkpoint: Schema.optional<Schema.String>;
|
|
1165
|
+
readonly commandId: Schema.String;
|
|
1166
|
+
readonly expectedRevision: Schema.String;
|
|
1167
|
+
readonly sessionId: Schema.String;
|
|
1168
|
+
readonly turnId: Schema.String;
|
|
1169
|
+
readonly method: Schema.Literal<"session.fork.preview">;
|
|
1170
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
1171
|
+
}>;
|
|
1172
|
+
/** The fork's Session: the source keeps its binding, its worktree and its history. */
|
|
1173
|
+
export declare const sessionForkConfirmResultEffectSchema: Schema.Struct<{
|
|
622
1174
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
623
|
-
readonly
|
|
624
|
-
readonly
|
|
625
|
-
readonly parentSessionId: Schema.String;
|
|
1175
|
+
readonly handoff: Schema.String;
|
|
1176
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
626
1177
|
readonly receipt: Schema.Struct<{
|
|
627
1178
|
readonly actorId: Schema.String;
|
|
628
1179
|
readonly aggregateRevision: Schema.String;
|
|
@@ -630,6 +1181,7 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
630
1181
|
readonly createdAt: Schema.String;
|
|
631
1182
|
readonly eventCursor: Schema.String;
|
|
632
1183
|
readonly method: Schema.String;
|
|
1184
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
633
1185
|
readonly receiptId: Schema.String;
|
|
634
1186
|
readonly schemaVersion: Schema.Literal<1>;
|
|
635
1187
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -648,15 +1200,23 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
648
1200
|
readonly updatedAt: Schema.String;
|
|
649
1201
|
readonly workspaceId: Schema.String;
|
|
650
1202
|
readonly workspaceRevision: Schema.String;
|
|
1203
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1204
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
651
1205
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
652
1206
|
readonly contentDigest: Schema.String;
|
|
653
1207
|
readonly key: Schema.String;
|
|
654
1208
|
readonly version: Schema.String;
|
|
655
1209
|
}>>;
|
|
1210
|
+
/**
|
|
1211
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1212
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1213
|
+
* A sandboxed Session carries none.
|
|
1214
|
+
*/
|
|
1215
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
656
1216
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
657
1217
|
readonly connectionId: Schema.String;
|
|
658
1218
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
659
|
-
readonly kind: Schema.
|
|
1219
|
+
readonly kind: Schema.String;
|
|
660
1220
|
readonly model: Schema.optional<Schema.String>;
|
|
661
1221
|
}>>;
|
|
662
1222
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -664,9 +1224,69 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
664
1224
|
readonly code: Schema.String;
|
|
665
1225
|
readonly message: Schema.String;
|
|
666
1226
|
}>>;
|
|
1227
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1228
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1229
|
+
/**
|
|
1230
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1231
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1232
|
+
*/
|
|
1233
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1234
|
+
readonly claimedAt: Schema.String;
|
|
1235
|
+
readonly id: Schema.String;
|
|
1236
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1237
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1238
|
+
readonly title: Schema.String;
|
|
1239
|
+
}>>>;
|
|
1240
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1241
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1242
|
+
/** 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. */
|
|
1243
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1244
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1245
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1246
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1247
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1248
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1249
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1250
|
+
/**
|
|
1251
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1252
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1253
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1254
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1255
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1256
|
+
* it.
|
|
1257
|
+
*/
|
|
1258
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1259
|
+
readonly approvalId: Schema.String;
|
|
1260
|
+
readonly expiresAt: Schema.String;
|
|
1261
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1262
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1263
|
+
readonly label: Schema.String;
|
|
1264
|
+
readonly optionId: Schema.String;
|
|
1265
|
+
}>>>;
|
|
1266
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1267
|
+
}>>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1270
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1271
|
+
* every other state.
|
|
1272
|
+
*/
|
|
1273
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1274
|
+
readonly code: Schema.String;
|
|
1275
|
+
readonly message: Schema.String;
|
|
1276
|
+
}>>;
|
|
667
1277
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1278
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1279
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1280
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1281
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
668
1282
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
669
1283
|
readonly title: Schema.optional<Schema.String>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
1286
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
1287
|
+
* Absent when off.
|
|
1288
|
+
*/
|
|
1289
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
670
1290
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
671
1291
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
672
1292
|
readonly baseRef: Schema.String;
|
|
@@ -680,13 +1300,48 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
680
1300
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
681
1301
|
}>>;
|
|
682
1302
|
}>;
|
|
1303
|
+
readonly sourceSessionId: Schema.String;
|
|
1304
|
+
readonly method: Schema.Literal<"session.fork.confirm">;
|
|
683
1305
|
}>;
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
readonly
|
|
1306
|
+
/** What a switch will do: the Session revision it starts from, and the path that carries the context over. */
|
|
1307
|
+
export declare const sessionSwitchPreviewResultEffectSchema: Schema.Struct<{
|
|
1308
|
+
readonly inputDigest: Schema.String;
|
|
1309
|
+
readonly proof: Schema.String;
|
|
1310
|
+
readonly validUntil: Schema.String;
|
|
1311
|
+
readonly commandId: Schema.String;
|
|
1312
|
+
readonly expectedRevision: Schema.String;
|
|
1313
|
+
readonly sessionId: Schema.String;
|
|
1314
|
+
readonly target: Schema.Struct<{
|
|
1315
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
1316
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
1317
|
+
readonly model: Schema.optional<Schema.String>;
|
|
1318
|
+
}>;
|
|
1319
|
+
readonly method: Schema.Literal<"session.switch.preview">;
|
|
1320
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
1321
|
+
}>;
|
|
1322
|
+
/** The successor Session, shaped as a fork's result: the source keeps its binding and its history. */
|
|
1323
|
+
export declare const sessionSwitchConfirmResultEffectSchema: Schema.Struct<{
|
|
1324
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1325
|
+
readonly handoff: Schema.String;
|
|
1326
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
1327
|
+
readonly receipt: Schema.Struct<{
|
|
1328
|
+
readonly actorId: Schema.String;
|
|
1329
|
+
readonly aggregateRevision: Schema.String;
|
|
1330
|
+
readonly commandId: Schema.String;
|
|
1331
|
+
readonly createdAt: Schema.String;
|
|
1332
|
+
readonly eventCursor: Schema.String;
|
|
1333
|
+
readonly method: Schema.String;
|
|
1334
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1335
|
+
readonly receiptId: Schema.String;
|
|
1336
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1337
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1338
|
+
readonly target: Schema.Struct<{
|
|
1339
|
+
readonly id: Schema.String;
|
|
1340
|
+
readonly type: Schema.String;
|
|
1341
|
+
}>;
|
|
1342
|
+
readonly updatedAt: Schema.String;
|
|
1343
|
+
}>;
|
|
1344
|
+
readonly session: Schema.Struct<{
|
|
690
1345
|
readonly createdAt: Schema.String;
|
|
691
1346
|
readonly id: Schema.String;
|
|
692
1347
|
readonly projectId: Schema.String;
|
|
@@ -695,15 +1350,23 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
695
1350
|
readonly updatedAt: Schema.String;
|
|
696
1351
|
readonly workspaceId: Schema.String;
|
|
697
1352
|
readonly workspaceRevision: Schema.String;
|
|
1353
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1354
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
698
1355
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
699
1356
|
readonly contentDigest: Schema.String;
|
|
700
1357
|
readonly key: Schema.String;
|
|
701
1358
|
readonly version: Schema.String;
|
|
702
1359
|
}>>;
|
|
1360
|
+
/**
|
|
1361
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1362
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1363
|
+
* A sandboxed Session carries none.
|
|
1364
|
+
*/
|
|
1365
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
703
1366
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
704
1367
|
readonly connectionId: Schema.String;
|
|
705
1368
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
706
|
-
readonly kind: Schema.
|
|
1369
|
+
readonly kind: Schema.String;
|
|
707
1370
|
readonly model: Schema.optional<Schema.String>;
|
|
708
1371
|
}>>;
|
|
709
1372
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -711,9 +1374,69 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
711
1374
|
readonly code: Schema.String;
|
|
712
1375
|
readonly message: Schema.String;
|
|
713
1376
|
}>>;
|
|
1377
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1378
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1379
|
+
/**
|
|
1380
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1381
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1382
|
+
*/
|
|
1383
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1384
|
+
readonly claimedAt: Schema.String;
|
|
1385
|
+
readonly id: Schema.String;
|
|
1386
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1387
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1388
|
+
readonly title: Schema.String;
|
|
1389
|
+
}>>>;
|
|
1390
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1391
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1392
|
+
/** 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. */
|
|
1393
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1394
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1395
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1396
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1397
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1398
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1399
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1400
|
+
/**
|
|
1401
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1402
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1403
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1404
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1405
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1406
|
+
* it.
|
|
1407
|
+
*/
|
|
1408
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1409
|
+
readonly approvalId: Schema.String;
|
|
1410
|
+
readonly expiresAt: Schema.String;
|
|
1411
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1412
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1413
|
+
readonly label: Schema.String;
|
|
1414
|
+
readonly optionId: Schema.String;
|
|
1415
|
+
}>>>;
|
|
1416
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1417
|
+
}>>;
|
|
1418
|
+
/**
|
|
1419
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1420
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1421
|
+
* every other state.
|
|
1422
|
+
*/
|
|
1423
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1424
|
+
readonly code: Schema.String;
|
|
1425
|
+
readonly message: Schema.String;
|
|
1426
|
+
}>>;
|
|
714
1427
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1428
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1429
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1430
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1431
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
715
1432
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
716
1433
|
readonly title: Schema.optional<Schema.String>;
|
|
1434
|
+
/**
|
|
1435
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
1436
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
1437
|
+
* Absent when off.
|
|
1438
|
+
*/
|
|
1439
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
717
1440
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
718
1441
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
719
1442
|
readonly baseRef: Schema.String;
|
|
@@ -726,40 +1449,449 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
726
1449
|
}>>>;
|
|
727
1450
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
728
1451
|
}>>;
|
|
729
|
-
}
|
|
730
|
-
readonly
|
|
731
|
-
readonly
|
|
1452
|
+
}>;
|
|
1453
|
+
readonly sourceSessionId: Schema.String;
|
|
1454
|
+
readonly method: Schema.Literal<"session.switch.confirm">;
|
|
732
1455
|
}>;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
readonly
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
readonly
|
|
1456
|
+
/** What confirming will approve: the script and its digest, and whether the Project has approved that digest already. */
|
|
1457
|
+
export declare const sessionSetupPreviewResultEffectSchema: Schema.Struct<{
|
|
1458
|
+
readonly inputDigest: Schema.String;
|
|
1459
|
+
readonly proof: Schema.String;
|
|
1460
|
+
readonly validUntil: Schema.String;
|
|
1461
|
+
readonly commandId: Schema.String;
|
|
1462
|
+
readonly expectedRevision: Schema.String;
|
|
1463
|
+
readonly sessionId: Schema.String;
|
|
1464
|
+
readonly setupDigest: Schema.String;
|
|
1465
|
+
readonly approved: Schema.Boolean;
|
|
1466
|
+
readonly method: Schema.Literal<"session.setup.preview">;
|
|
1467
|
+
readonly setup: Schema.Struct<{
|
|
1468
|
+
readonly command: Schema.$Array<Schema.String>;
|
|
1469
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
1470
|
+
readonly path: Schema.String;
|
|
1471
|
+
readonly sha256: Schema.String;
|
|
748
1472
|
}>>;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
1473
|
+
}>;
|
|
1474
|
+
}>;
|
|
1475
|
+
/** The approval under its receipt: the Project runs a script with this digest without asking again. */
|
|
1476
|
+
export declare const sessionSetupConfirmResultEffectSchema: Schema.Struct<{
|
|
1477
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1478
|
+
readonly method: Schema.Literal<"session.setup.confirm">;
|
|
1479
|
+
readonly receipt: Schema.Struct<{
|
|
1480
|
+
readonly actorId: Schema.String;
|
|
1481
|
+
readonly aggregateRevision: Schema.String;
|
|
1482
|
+
readonly commandId: Schema.String;
|
|
1483
|
+
readonly createdAt: Schema.String;
|
|
1484
|
+
readonly eventCursor: Schema.String;
|
|
1485
|
+
readonly method: Schema.String;
|
|
1486
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1487
|
+
readonly receiptId: Schema.String;
|
|
1488
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1489
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1490
|
+
readonly target: Schema.Struct<{
|
|
1491
|
+
readonly id: Schema.String;
|
|
1492
|
+
readonly type: Schema.String;
|
|
1493
|
+
}>;
|
|
1494
|
+
readonly updatedAt: Schema.String;
|
|
1495
|
+
}>;
|
|
1496
|
+
readonly sessionId: Schema.String;
|
|
1497
|
+
readonly setupDigest: Schema.String;
|
|
1498
|
+
}>;
|
|
1499
|
+
/** What a spawn will do: the child, its grant and its parent, sealed for the confirmation. */
|
|
1500
|
+
export declare const sessionSpawnPreviewResultEffectSchema: Schema.Struct<{
|
|
1501
|
+
readonly inputDigest: Schema.String;
|
|
1502
|
+
readonly proof: Schema.String;
|
|
1503
|
+
readonly validUntil: Schema.String;
|
|
1504
|
+
readonly commandId: Schema.String;
|
|
1505
|
+
readonly executor: Schema.String;
|
|
1506
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1507
|
+
readonly parent: Schema.Struct<{
|
|
1508
|
+
readonly children: Schema.Struct<{
|
|
1509
|
+
readonly live: Schema.Int;
|
|
1510
|
+
readonly total: Schema.Int;
|
|
1511
|
+
}>;
|
|
1512
|
+
readonly depth: Schema.Int;
|
|
1513
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1514
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1515
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
1516
|
+
readonly sessionId: Schema.String;
|
|
1517
|
+
}>;
|
|
1518
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1519
|
+
readonly workspaceId: Schema.String;
|
|
1520
|
+
readonly expectedRevision: Schema.Literal<"0">;
|
|
1521
|
+
readonly method: Schema.Literal<"session.spawn.preview">;
|
|
1522
|
+
}>;
|
|
1523
|
+
/** The child Session, created under a create receipt, and the parent it names. */
|
|
1524
|
+
export declare const sessionSpawnConfirmResultEffectSchema: Schema.Struct<{
|
|
1525
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1526
|
+
readonly method: Schema.Literal<"session.spawn.confirm">;
|
|
1527
|
+
readonly parentSessionId: Schema.String;
|
|
1528
|
+
readonly receipt: Schema.Struct<{
|
|
1529
|
+
readonly actorId: Schema.String;
|
|
1530
|
+
readonly aggregateRevision: Schema.String;
|
|
1531
|
+
readonly commandId: Schema.String;
|
|
1532
|
+
readonly createdAt: Schema.String;
|
|
1533
|
+
readonly eventCursor: Schema.String;
|
|
1534
|
+
readonly method: Schema.String;
|
|
1535
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1536
|
+
readonly receiptId: Schema.String;
|
|
1537
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1538
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1539
|
+
readonly target: Schema.Struct<{
|
|
1540
|
+
readonly id: Schema.String;
|
|
1541
|
+
readonly type: Schema.String;
|
|
1542
|
+
}>;
|
|
1543
|
+
readonly updatedAt: Schema.String;
|
|
1544
|
+
}>;
|
|
1545
|
+
readonly session: Schema.Struct<{
|
|
1546
|
+
readonly createdAt: Schema.String;
|
|
1547
|
+
readonly id: Schema.String;
|
|
1548
|
+
readonly projectId: Schema.String;
|
|
1549
|
+
readonly revision: Schema.String;
|
|
1550
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1551
|
+
readonly updatedAt: Schema.String;
|
|
1552
|
+
readonly workspaceId: Schema.String;
|
|
1553
|
+
readonly workspaceRevision: Schema.String;
|
|
1554
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1555
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1556
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1557
|
+
readonly contentDigest: Schema.String;
|
|
1558
|
+
readonly key: Schema.String;
|
|
1559
|
+
readonly version: Schema.String;
|
|
1560
|
+
}>>;
|
|
1561
|
+
/**
|
|
1562
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1563
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1564
|
+
* A sandboxed Session carries none.
|
|
1565
|
+
*/
|
|
1566
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1567
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
1568
|
+
readonly connectionId: Schema.String;
|
|
1569
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1570
|
+
readonly kind: Schema.String;
|
|
1571
|
+
readonly model: Schema.optional<Schema.String>;
|
|
1572
|
+
}>>;
|
|
1573
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
1574
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1575
|
+
readonly code: Schema.String;
|
|
1576
|
+
readonly message: Schema.String;
|
|
1577
|
+
}>>;
|
|
1578
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1579
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1580
|
+
/**
|
|
1581
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1582
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1583
|
+
*/
|
|
1584
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1585
|
+
readonly claimedAt: Schema.String;
|
|
1586
|
+
readonly id: Schema.String;
|
|
1587
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1588
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1589
|
+
readonly title: Schema.String;
|
|
1590
|
+
}>>>;
|
|
1591
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1592
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1593
|
+
/** 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. */
|
|
1594
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1595
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1596
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1597
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1598
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1599
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1600
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1601
|
+
/**
|
|
1602
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1603
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1604
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1605
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1606
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1607
|
+
* it.
|
|
1608
|
+
*/
|
|
1609
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1610
|
+
readonly approvalId: Schema.String;
|
|
1611
|
+
readonly expiresAt: Schema.String;
|
|
1612
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1613
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1614
|
+
readonly label: Schema.String;
|
|
1615
|
+
readonly optionId: Schema.String;
|
|
1616
|
+
}>>>;
|
|
1617
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1618
|
+
}>>;
|
|
1619
|
+
/**
|
|
1620
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1621
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1622
|
+
* every other state.
|
|
1623
|
+
*/
|
|
1624
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1625
|
+
readonly code: Schema.String;
|
|
1626
|
+
readonly message: Schema.String;
|
|
1627
|
+
}>>;
|
|
1628
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
1629
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1630
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1631
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1632
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1633
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1634
|
+
readonly title: Schema.optional<Schema.String>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
1637
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
1638
|
+
* Absent when off.
|
|
1639
|
+
*/
|
|
1640
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1641
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
1642
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1643
|
+
readonly baseRef: Schema.String;
|
|
1644
|
+
readonly baseRevision: Schema.String;
|
|
1645
|
+
readonly branch: Schema.String;
|
|
1646
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
1647
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1648
|
+
readonly digest: Schema.String;
|
|
1649
|
+
readonly name: Schema.String;
|
|
1650
|
+
}>>>;
|
|
1651
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1652
|
+
}>>;
|
|
1653
|
+
}>;
|
|
1654
|
+
}>;
|
|
1655
|
+
export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
1656
|
+
readonly attention: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1657
|
+
readonly attention: Schema.Literals<readonly ["failed", "approval_pending", "question", "turn_failed", "stalled", "settled_unreviewed"]>;
|
|
1658
|
+
readonly sessionId: Schema.String;
|
|
1659
|
+
}>>>;
|
|
1660
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1661
|
+
readonly createdAt: Schema.String;
|
|
1662
|
+
readonly id: Schema.String;
|
|
1663
|
+
readonly projectId: Schema.String;
|
|
1664
|
+
readonly revision: Schema.String;
|
|
1665
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1666
|
+
readonly updatedAt: Schema.String;
|
|
1667
|
+
readonly workspaceId: Schema.String;
|
|
1668
|
+
readonly workspaceRevision: Schema.String;
|
|
1669
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1670
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1671
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1672
|
+
readonly contentDigest: Schema.String;
|
|
1673
|
+
readonly key: Schema.String;
|
|
1674
|
+
readonly version: Schema.String;
|
|
1675
|
+
}>>;
|
|
1676
|
+
/**
|
|
1677
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1678
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1679
|
+
* A sandboxed Session carries none.
|
|
1680
|
+
*/
|
|
1681
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1682
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
1683
|
+
readonly connectionId: Schema.String;
|
|
1684
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1685
|
+
readonly kind: Schema.String;
|
|
1686
|
+
readonly model: Schema.optional<Schema.String>;
|
|
1687
|
+
}>>;
|
|
1688
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
1689
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
1690
|
+
readonly code: Schema.String;
|
|
1691
|
+
readonly message: Schema.String;
|
|
1692
|
+
}>>;
|
|
1693
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1694
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1695
|
+
/**
|
|
1696
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1697
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1698
|
+
*/
|
|
1699
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1700
|
+
readonly claimedAt: Schema.String;
|
|
1701
|
+
readonly id: Schema.String;
|
|
1702
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1703
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1704
|
+
readonly title: Schema.String;
|
|
1705
|
+
}>>>;
|
|
1706
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1707
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1708
|
+
/** 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. */
|
|
1709
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1710
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1711
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1712
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1713
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1714
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1715
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1716
|
+
/**
|
|
1717
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1718
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1719
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1720
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1721
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1722
|
+
* it.
|
|
1723
|
+
*/
|
|
1724
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1725
|
+
readonly approvalId: Schema.String;
|
|
1726
|
+
readonly expiresAt: Schema.String;
|
|
1727
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1728
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1729
|
+
readonly label: Schema.String;
|
|
1730
|
+
readonly optionId: Schema.String;
|
|
1731
|
+
}>>>;
|
|
1732
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1733
|
+
}>>;
|
|
1734
|
+
/**
|
|
1735
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1736
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1737
|
+
* every other state.
|
|
1738
|
+
*/
|
|
1739
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1740
|
+
readonly code: Schema.String;
|
|
1741
|
+
readonly message: Schema.String;
|
|
1742
|
+
}>>;
|
|
1743
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
1744
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1745
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1746
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1747
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1748
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1749
|
+
readonly title: Schema.optional<Schema.String>;
|
|
1750
|
+
/**
|
|
1751
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
1752
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
1753
|
+
* Absent when off.
|
|
1754
|
+
*/
|
|
1755
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1756
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
1757
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1758
|
+
readonly baseRef: Schema.String;
|
|
1759
|
+
readonly baseRevision: Schema.String;
|
|
1760
|
+
readonly branch: Schema.String;
|
|
1761
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
1762
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1763
|
+
readonly digest: Schema.String;
|
|
1764
|
+
readonly name: Schema.String;
|
|
1765
|
+
}>>>;
|
|
1766
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1767
|
+
}>>;
|
|
1768
|
+
}>>;
|
|
1769
|
+
readonly method: Schema.Literal<"session.list">;
|
|
1770
|
+
readonly nextCursor: Schema.optional<Schema.String>;
|
|
1771
|
+
}>;
|
|
1772
|
+
/**
|
|
1773
|
+
* A child on another Node, as the Node that holds its parent records it
|
|
1774
|
+
* (D-SPAWN, D-236). The client that created the child links it; a cancel its
|
|
1775
|
+
* Node did not answer by the fleet ask deadline marks it `orphaned`, never
|
|
1776
|
+
* stopped; a client that reached its Node again reconciles it, recording the
|
|
1777
|
+
* state that Node reported. `observedState` is always a state the child's own
|
|
1778
|
+
* Node reported.
|
|
1779
|
+
*/
|
|
1780
|
+
export declare const sessionRemoteChildEffectSchema: Schema.Struct<{
|
|
1781
|
+
readonly linkedAt: Schema.String;
|
|
1782
|
+
readonly node: Schema.String;
|
|
1783
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1784
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
1785
|
+
readonly sessionId: Schema.String;
|
|
1786
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
1787
|
+
}>;
|
|
1788
|
+
/** `remoteChildren`: the parent's children on other Nodes this Node recorded, oldest link first; absent when there are none. */
|
|
1789
|
+
export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
1790
|
+
readonly method: Schema.Literal<"session.show">;
|
|
1791
|
+
readonly remoteChildren: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1792
|
+
readonly linkedAt: Schema.String;
|
|
1793
|
+
readonly node: Schema.String;
|
|
1794
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1795
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
1796
|
+
readonly sessionId: Schema.String;
|
|
1797
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
1798
|
+
}>>>;
|
|
1799
|
+
readonly session: Schema.Struct<{
|
|
1800
|
+
readonly createdAt: Schema.String;
|
|
1801
|
+
readonly id: Schema.String;
|
|
1802
|
+
readonly projectId: Schema.String;
|
|
1803
|
+
readonly revision: Schema.String;
|
|
1804
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
1805
|
+
readonly updatedAt: Schema.String;
|
|
1806
|
+
readonly workspaceId: Schema.String;
|
|
1807
|
+
readonly workspaceRevision: Schema.String;
|
|
1808
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1809
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1810
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1811
|
+
readonly contentDigest: Schema.String;
|
|
1812
|
+
readonly key: Schema.String;
|
|
1813
|
+
readonly version: Schema.String;
|
|
1814
|
+
}>>;
|
|
1815
|
+
/**
|
|
1816
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1817
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1818
|
+
* A sandboxed Session carries none.
|
|
1819
|
+
*/
|
|
1820
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1821
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
1822
|
+
readonly connectionId: Schema.String;
|
|
1823
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1824
|
+
readonly kind: Schema.String;
|
|
1825
|
+
readonly model: Schema.optional<Schema.String>;
|
|
754
1826
|
}>>;
|
|
755
1827
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
756
1828
|
readonly failure: Schema.optional<Schema.Struct<{
|
|
757
1829
|
readonly code: Schema.String;
|
|
758
1830
|
readonly message: Schema.String;
|
|
759
1831
|
}>>;
|
|
1832
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
1833
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
1834
|
+
/**
|
|
1835
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
1836
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
1837
|
+
*/
|
|
1838
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1839
|
+
readonly claimedAt: Schema.String;
|
|
1840
|
+
readonly id: Schema.String;
|
|
1841
|
+
readonly leaseExpiresAt: Schema.String;
|
|
1842
|
+
readonly state: Schema.Literal<"claimed">;
|
|
1843
|
+
readonly title: Schema.String;
|
|
1844
|
+
}>>>;
|
|
1845
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1846
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1847
|
+
/** 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. */
|
|
1848
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1849
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1850
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1851
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
1852
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1853
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1854
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1855
|
+
/**
|
|
1856
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
1857
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
1858
|
+
* one of the two and never otherwise: a `question` names a question
|
|
1859
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
1860
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
1861
|
+
* it.
|
|
1862
|
+
*/
|
|
1863
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
1864
|
+
readonly approvalId: Schema.String;
|
|
1865
|
+
readonly expiresAt: Schema.String;
|
|
1866
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
1867
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1868
|
+
readonly label: Schema.String;
|
|
1869
|
+
readonly optionId: Schema.String;
|
|
1870
|
+
}>>>;
|
|
1871
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1872
|
+
}>>;
|
|
1873
|
+
/**
|
|
1874
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
1875
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
1876
|
+
* every other state.
|
|
1877
|
+
*/
|
|
1878
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1879
|
+
readonly code: Schema.String;
|
|
1880
|
+
readonly message: Schema.String;
|
|
1881
|
+
}>>;
|
|
760
1882
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1883
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
1884
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
1885
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1886
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
761
1887
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
762
1888
|
readonly title: Schema.optional<Schema.String>;
|
|
1889
|
+
/**
|
|
1890
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
1891
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
1892
|
+
* Absent when off.
|
|
1893
|
+
*/
|
|
1894
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
763
1895
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
764
1896
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
765
1897
|
readonly baseRef: Schema.String;
|
|
@@ -774,6 +1906,64 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
774
1906
|
}>>;
|
|
775
1907
|
}>;
|
|
776
1908
|
}>;
|
|
1909
|
+
/**
|
|
1910
|
+
* What a client records of a child on another Node on the Node that holds
|
|
1911
|
+
* its parent: `linked` after it created the child, `orphaned` when the
|
|
1912
|
+
* child's Node gave no reply to a cancel by the fleet ask deadline, and
|
|
1913
|
+
* `reconciled` with the state the child's Node reported once it answered
|
|
1914
|
+
* again. `reconciled` must carry a state and `linked` may, each a state the
|
|
1915
|
+
* child's Node reported; `orphaned` carries none.
|
|
1916
|
+
*/
|
|
1917
|
+
export declare const sessionSpawnRecordParametersEffectSchema: Schema.Struct<{
|
|
1918
|
+
readonly childSessionId: Schema.String;
|
|
1919
|
+
readonly commandId: Schema.String;
|
|
1920
|
+
readonly node: Schema.String;
|
|
1921
|
+
readonly outcome: Schema.Literals<readonly ["linked", "orphaned", "reconciled"]>;
|
|
1922
|
+
readonly parentSessionId: Schema.String;
|
|
1923
|
+
readonly state: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1924
|
+
}>;
|
|
1925
|
+
/** The child record after the change, under its own receipt on the child. */
|
|
1926
|
+
export declare const sessionSpawnRecordResultEffectSchema: Schema.Struct<{
|
|
1927
|
+
readonly child: Schema.Struct<{
|
|
1928
|
+
readonly linkedAt: Schema.String;
|
|
1929
|
+
readonly node: Schema.String;
|
|
1930
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1931
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
1932
|
+
readonly sessionId: Schema.String;
|
|
1933
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
1934
|
+
}>;
|
|
1935
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
1936
|
+
readonly method: Schema.Literal<"session.spawn.record">;
|
|
1937
|
+
readonly parentSessionId: Schema.String;
|
|
1938
|
+
readonly receipt: Schema.Struct<{
|
|
1939
|
+
readonly actorId: Schema.String;
|
|
1940
|
+
readonly aggregateRevision: Schema.String;
|
|
1941
|
+
readonly commandId: Schema.String;
|
|
1942
|
+
readonly createdAt: Schema.String;
|
|
1943
|
+
readonly eventCursor: Schema.String;
|
|
1944
|
+
readonly method: Schema.String;
|
|
1945
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1946
|
+
readonly receiptId: Schema.String;
|
|
1947
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
1948
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
1949
|
+
readonly target: Schema.Struct<{
|
|
1950
|
+
readonly id: Schema.String;
|
|
1951
|
+
readonly type: Schema.String;
|
|
1952
|
+
}>;
|
|
1953
|
+
readonly updatedAt: Schema.String;
|
|
1954
|
+
}>;
|
|
1955
|
+
}>;
|
|
1956
|
+
export declare const sessionSpawnRecordRequestEffectSchema: Schema.Struct<{
|
|
1957
|
+
readonly method: Schema.Literal<"session.spawn.record">;
|
|
1958
|
+
readonly parameters: Schema.Struct<{
|
|
1959
|
+
readonly childSessionId: Schema.String;
|
|
1960
|
+
readonly commandId: Schema.String;
|
|
1961
|
+
readonly node: Schema.String;
|
|
1962
|
+
readonly outcome: Schema.Literals<readonly ["linked", "orphaned", "reconciled"]>;
|
|
1963
|
+
readonly parentSessionId: Schema.String;
|
|
1964
|
+
readonly state: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
1965
|
+
}>;
|
|
1966
|
+
}>;
|
|
777
1967
|
/** `satisfied` is false when the bounded wait ended first; `session` is then its last read. */
|
|
778
1968
|
export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
779
1969
|
readonly method: Schema.Literal<"session.wait">;
|
|
@@ -787,15 +1977,23 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
|
787
1977
|
readonly updatedAt: Schema.String;
|
|
788
1978
|
readonly workspaceId: Schema.String;
|
|
789
1979
|
readonly workspaceRevision: Schema.String;
|
|
1980
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1981
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
790
1982
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
791
1983
|
readonly contentDigest: Schema.String;
|
|
792
1984
|
readonly key: Schema.String;
|
|
793
1985
|
readonly version: Schema.String;
|
|
794
1986
|
}>>;
|
|
1987
|
+
/**
|
|
1988
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
1989
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
1990
|
+
* A sandboxed Session carries none.
|
|
1991
|
+
*/
|
|
1992
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
795
1993
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
796
1994
|
readonly connectionId: Schema.String;
|
|
797
1995
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
798
|
-
readonly kind: Schema.
|
|
1996
|
+
readonly kind: Schema.String;
|
|
799
1997
|
readonly model: Schema.optional<Schema.String>;
|
|
800
1998
|
}>>;
|
|
801
1999
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -803,9 +2001,69 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
|
803
2001
|
readonly code: Schema.String;
|
|
804
2002
|
readonly message: Schema.String;
|
|
805
2003
|
}>>;
|
|
2004
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2005
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2006
|
+
/**
|
|
2007
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2008
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2009
|
+
*/
|
|
2010
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2011
|
+
readonly claimedAt: Schema.String;
|
|
2012
|
+
readonly id: Schema.String;
|
|
2013
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2014
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2015
|
+
readonly title: Schema.String;
|
|
2016
|
+
}>>>;
|
|
2017
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2018
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2019
|
+
/** 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. */
|
|
2020
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2021
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2022
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2023
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2024
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2025
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2026
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2027
|
+
/**
|
|
2028
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2029
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2030
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2031
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2032
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2033
|
+
* it.
|
|
2034
|
+
*/
|
|
2035
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2036
|
+
readonly approvalId: Schema.String;
|
|
2037
|
+
readonly expiresAt: Schema.String;
|
|
2038
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2039
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2040
|
+
readonly label: Schema.String;
|
|
2041
|
+
readonly optionId: Schema.String;
|
|
2042
|
+
}>>>;
|
|
2043
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2044
|
+
}>>;
|
|
2045
|
+
/**
|
|
2046
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2047
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2048
|
+
* every other state.
|
|
2049
|
+
*/
|
|
2050
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2051
|
+
readonly code: Schema.String;
|
|
2052
|
+
readonly message: Schema.String;
|
|
2053
|
+
}>>;
|
|
806
2054
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2055
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2056
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2057
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2058
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
807
2059
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
808
2060
|
readonly title: Schema.optional<Schema.String>;
|
|
2061
|
+
/**
|
|
2062
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
2063
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
2064
|
+
* Absent when off.
|
|
2065
|
+
*/
|
|
2066
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
809
2067
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
810
2068
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
811
2069
|
readonly baseRef: Schema.String;
|
|
@@ -837,13 +2095,21 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
837
2095
|
readonly key: Schema.String;
|
|
838
2096
|
readonly version: Schema.String;
|
|
839
2097
|
}>>;
|
|
2098
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
2099
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
2100
|
+
/** `none` when the Session runs with host authority. */
|
|
2101
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2102
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
2103
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
840
2104
|
/** The account the Session binds to, named or picked by the Node. */
|
|
841
2105
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
842
2106
|
readonly connectionId: Schema.String;
|
|
843
2107
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
844
|
-
readonly kind: Schema.
|
|
2108
|
+
readonly kind: Schema.String;
|
|
845
2109
|
readonly model: Schema.optional<Schema.String>;
|
|
846
2110
|
}>>;
|
|
2111
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
2112
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
847
2113
|
readonly projectId: Schema.String;
|
|
848
2114
|
readonly workspaceId: Schema.String;
|
|
849
2115
|
readonly workspaceRevision: Schema.String;
|
|
@@ -887,6 +2153,20 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
887
2153
|
readonly schemaVersion: Schema.Literal<4>;
|
|
888
2154
|
readonly sessionCursor: Schema.String;
|
|
889
2155
|
readonly sessionId: Schema.String;
|
|
2156
|
+
}>, Schema.Struct<{
|
|
2157
|
+
readonly commandId: Schema.String;
|
|
2158
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
2159
|
+
readonly globalCursor: Schema.String;
|
|
2160
|
+
readonly payload: Schema.Struct<{
|
|
2161
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2162
|
+
readonly code: Schema.String;
|
|
2163
|
+
readonly message: Schema.String;
|
|
2164
|
+
}>>;
|
|
2165
|
+
}>;
|
|
2166
|
+
readonly recordedAt: Schema.String;
|
|
2167
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2168
|
+
readonly sessionCursor: Schema.String;
|
|
2169
|
+
readonly sessionId: Schema.String;
|
|
890
2170
|
}>, Schema.Struct<{
|
|
891
2171
|
readonly commandId: Schema.String;
|
|
892
2172
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -1039,6 +2319,8 @@ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
|
|
|
1039
2319
|
}>]>]>>;
|
|
1040
2320
|
readonly method: Schema.Literal<"session.events.list">;
|
|
1041
2321
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
2322
|
+
/** 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. */
|
|
2323
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
1042
2324
|
readonly sessionId: Schema.String;
|
|
1043
2325
|
}>;
|
|
1044
2326
|
export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
@@ -1051,6 +2333,7 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1051
2333
|
readonly createdAt: Schema.String;
|
|
1052
2334
|
readonly eventCursor: Schema.String;
|
|
1053
2335
|
readonly method: Schema.String;
|
|
2336
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1054
2337
|
readonly receiptId: Schema.String;
|
|
1055
2338
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1056
2339
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1069,15 +2352,23 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1069
2352
|
readonly updatedAt: Schema.String;
|
|
1070
2353
|
readonly workspaceId: Schema.String;
|
|
1071
2354
|
readonly workspaceRevision: Schema.String;
|
|
2355
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2356
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1072
2357
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1073
2358
|
readonly contentDigest: Schema.String;
|
|
1074
2359
|
readonly key: Schema.String;
|
|
1075
2360
|
readonly version: Schema.String;
|
|
1076
2361
|
}>>;
|
|
2362
|
+
/**
|
|
2363
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2364
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2365
|
+
* A sandboxed Session carries none.
|
|
2366
|
+
*/
|
|
2367
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1077
2368
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1078
2369
|
readonly connectionId: Schema.String;
|
|
1079
2370
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1080
|
-
readonly kind: Schema.
|
|
2371
|
+
readonly kind: Schema.String;
|
|
1081
2372
|
readonly model: Schema.optional<Schema.String>;
|
|
1082
2373
|
}>>;
|
|
1083
2374
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1085,9 +2376,69 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1085
2376
|
readonly code: Schema.String;
|
|
1086
2377
|
readonly message: Schema.String;
|
|
1087
2378
|
}>>;
|
|
2379
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2380
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2381
|
+
/**
|
|
2382
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2383
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2384
|
+
*/
|
|
2385
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2386
|
+
readonly claimedAt: Schema.String;
|
|
2387
|
+
readonly id: Schema.String;
|
|
2388
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2389
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2390
|
+
readonly title: Schema.String;
|
|
2391
|
+
}>>>;
|
|
2392
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2393
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2394
|
+
/** 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. */
|
|
2395
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2396
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2397
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2398
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2399
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2400
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2401
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2402
|
+
/**
|
|
2403
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2404
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2405
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2406
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2407
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2408
|
+
* it.
|
|
2409
|
+
*/
|
|
2410
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2411
|
+
readonly approvalId: Schema.String;
|
|
2412
|
+
readonly expiresAt: Schema.String;
|
|
2413
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2414
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2415
|
+
readonly label: Schema.String;
|
|
2416
|
+
readonly optionId: Schema.String;
|
|
2417
|
+
}>>>;
|
|
2418
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2419
|
+
}>>;
|
|
2420
|
+
/**
|
|
2421
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2422
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2423
|
+
* every other state.
|
|
2424
|
+
*/
|
|
2425
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2426
|
+
readonly code: Schema.String;
|
|
2427
|
+
readonly message: Schema.String;
|
|
2428
|
+
}>>;
|
|
1088
2429
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2430
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2431
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2432
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2433
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1089
2434
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1090
2435
|
readonly title: Schema.optional<Schema.String>;
|
|
2436
|
+
/**
|
|
2437
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
2438
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
2439
|
+
* Absent when off.
|
|
2440
|
+
*/
|
|
2441
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1091
2442
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1092
2443
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1093
2444
|
readonly baseRef: Schema.String;
|
|
@@ -1112,6 +2463,7 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1112
2463
|
readonly createdAt: Schema.String;
|
|
1113
2464
|
readonly eventCursor: Schema.String;
|
|
1114
2465
|
readonly method: Schema.String;
|
|
2466
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1115
2467
|
readonly receiptId: Schema.String;
|
|
1116
2468
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1117
2469
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1130,15 +2482,23 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1130
2482
|
readonly updatedAt: Schema.String;
|
|
1131
2483
|
readonly workspaceId: Schema.String;
|
|
1132
2484
|
readonly workspaceRevision: Schema.String;
|
|
2485
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2486
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1133
2487
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1134
2488
|
readonly contentDigest: Schema.String;
|
|
1135
2489
|
readonly key: Schema.String;
|
|
1136
2490
|
readonly version: Schema.String;
|
|
1137
2491
|
}>>;
|
|
2492
|
+
/**
|
|
2493
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2494
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2495
|
+
* A sandboxed Session carries none.
|
|
2496
|
+
*/
|
|
2497
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1138
2498
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1139
2499
|
readonly connectionId: Schema.String;
|
|
1140
2500
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1141
|
-
readonly kind: Schema.
|
|
2501
|
+
readonly kind: Schema.String;
|
|
1142
2502
|
readonly model: Schema.optional<Schema.String>;
|
|
1143
2503
|
}>>;
|
|
1144
2504
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1146,9 +2506,69 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1146
2506
|
readonly code: Schema.String;
|
|
1147
2507
|
readonly message: Schema.String;
|
|
1148
2508
|
}>>;
|
|
2509
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2510
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2511
|
+
/**
|
|
2512
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2513
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2514
|
+
*/
|
|
2515
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2516
|
+
readonly claimedAt: Schema.String;
|
|
2517
|
+
readonly id: Schema.String;
|
|
2518
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2519
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2520
|
+
readonly title: Schema.String;
|
|
2521
|
+
}>>>;
|
|
2522
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2523
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2524
|
+
/** 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. */
|
|
2525
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2526
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2527
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2528
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2529
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2530
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2531
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2532
|
+
/**
|
|
2533
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2534
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2535
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2536
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2537
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2538
|
+
* it.
|
|
2539
|
+
*/
|
|
2540
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2541
|
+
readonly approvalId: Schema.String;
|
|
2542
|
+
readonly expiresAt: Schema.String;
|
|
2543
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2544
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2545
|
+
readonly label: Schema.String;
|
|
2546
|
+
readonly optionId: Schema.String;
|
|
2547
|
+
}>>>;
|
|
2548
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2549
|
+
}>>;
|
|
2550
|
+
/**
|
|
2551
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2552
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2553
|
+
* every other state.
|
|
2554
|
+
*/
|
|
2555
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2556
|
+
readonly code: Schema.String;
|
|
2557
|
+
readonly message: Schema.String;
|
|
2558
|
+
}>>;
|
|
1149
2559
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2560
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2561
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2562
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2563
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1150
2564
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1151
2565
|
readonly title: Schema.optional<Schema.String>;
|
|
2566
|
+
/**
|
|
2567
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
2568
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
2569
|
+
* Absent when off.
|
|
2570
|
+
*/
|
|
2571
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1152
2572
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1153
2573
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1154
2574
|
readonly baseRef: Schema.String;
|
|
@@ -1173,6 +2593,7 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1173
2593
|
readonly createdAt: Schema.String;
|
|
1174
2594
|
readonly eventCursor: Schema.String;
|
|
1175
2595
|
readonly method: Schema.String;
|
|
2596
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1176
2597
|
readonly receiptId: Schema.String;
|
|
1177
2598
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1178
2599
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1191,15 +2612,23 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1191
2612
|
readonly updatedAt: Schema.String;
|
|
1192
2613
|
readonly workspaceId: Schema.String;
|
|
1193
2614
|
readonly workspaceRevision: Schema.String;
|
|
2615
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2616
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1194
2617
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1195
2618
|
readonly contentDigest: Schema.String;
|
|
1196
2619
|
readonly key: Schema.String;
|
|
1197
2620
|
readonly version: Schema.String;
|
|
1198
2621
|
}>>;
|
|
2622
|
+
/**
|
|
2623
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2624
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2625
|
+
* A sandboxed Session carries none.
|
|
2626
|
+
*/
|
|
2627
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1199
2628
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1200
2629
|
readonly connectionId: Schema.String;
|
|
1201
2630
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1202
|
-
readonly kind: Schema.
|
|
2631
|
+
readonly kind: Schema.String;
|
|
1203
2632
|
readonly model: Schema.optional<Schema.String>;
|
|
1204
2633
|
}>>;
|
|
1205
2634
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1207,10 +2636,70 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1207
2636
|
readonly code: Schema.String;
|
|
1208
2637
|
readonly message: Schema.String;
|
|
1209
2638
|
}>>;
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
2639
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2640
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2641
|
+
/**
|
|
2642
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2643
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2644
|
+
*/
|
|
2645
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2646
|
+
readonly claimedAt: Schema.String;
|
|
2647
|
+
readonly id: Schema.String;
|
|
2648
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2649
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2650
|
+
readonly title: Schema.String;
|
|
2651
|
+
}>>>;
|
|
2652
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2653
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2654
|
+
/** 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. */
|
|
2655
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2656
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2657
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2658
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2659
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2660
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2661
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2662
|
+
/**
|
|
2663
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2664
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2665
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2666
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2667
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2668
|
+
* it.
|
|
2669
|
+
*/
|
|
2670
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2671
|
+
readonly approvalId: Schema.String;
|
|
2672
|
+
readonly expiresAt: Schema.String;
|
|
2673
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2674
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2675
|
+
readonly label: Schema.String;
|
|
2676
|
+
readonly optionId: Schema.String;
|
|
2677
|
+
}>>>;
|
|
2678
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2679
|
+
}>>;
|
|
2680
|
+
/**
|
|
2681
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2682
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2683
|
+
* every other state.
|
|
2684
|
+
*/
|
|
2685
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2686
|
+
readonly code: Schema.String;
|
|
2687
|
+
readonly message: Schema.String;
|
|
2688
|
+
}>>;
|
|
2689
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
2690
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2691
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2692
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2693
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2694
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2695
|
+
readonly title: Schema.optional<Schema.String>;
|
|
2696
|
+
/**
|
|
2697
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
2698
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
2699
|
+
* Absent when off.
|
|
2700
|
+
*/
|
|
2701
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
2702
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
1214
2703
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1215
2704
|
readonly baseRef: Schema.String;
|
|
1216
2705
|
readonly baseRevision: Schema.String;
|
|
@@ -1234,6 +2723,7 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1234
2723
|
readonly createdAt: Schema.String;
|
|
1235
2724
|
readonly eventCursor: Schema.String;
|
|
1236
2725
|
readonly method: Schema.String;
|
|
2726
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1237
2727
|
readonly receiptId: Schema.String;
|
|
1238
2728
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1239
2729
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1252,15 +2742,23 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1252
2742
|
readonly updatedAt: Schema.String;
|
|
1253
2743
|
readonly workspaceId: Schema.String;
|
|
1254
2744
|
readonly workspaceRevision: Schema.String;
|
|
2745
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2746
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1255
2747
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1256
2748
|
readonly contentDigest: Schema.String;
|
|
1257
2749
|
readonly key: Schema.String;
|
|
1258
2750
|
readonly version: Schema.String;
|
|
1259
2751
|
}>>;
|
|
2752
|
+
/**
|
|
2753
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2754
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2755
|
+
* A sandboxed Session carries none.
|
|
2756
|
+
*/
|
|
2757
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1260
2758
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1261
2759
|
readonly connectionId: Schema.String;
|
|
1262
2760
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1263
|
-
readonly kind: Schema.
|
|
2761
|
+
readonly kind: Schema.String;
|
|
1264
2762
|
readonly model: Schema.optional<Schema.String>;
|
|
1265
2763
|
}>>;
|
|
1266
2764
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1268,9 +2766,69 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1268
2766
|
readonly code: Schema.String;
|
|
1269
2767
|
readonly message: Schema.String;
|
|
1270
2768
|
}>>;
|
|
2769
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2770
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2771
|
+
/**
|
|
2772
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2773
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2774
|
+
*/
|
|
2775
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2776
|
+
readonly claimedAt: Schema.String;
|
|
2777
|
+
readonly id: Schema.String;
|
|
2778
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2779
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2780
|
+
readonly title: Schema.String;
|
|
2781
|
+
}>>>;
|
|
2782
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2783
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2784
|
+
/** 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. */
|
|
2785
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2786
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2787
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2788
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2789
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2790
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2791
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2792
|
+
/**
|
|
2793
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2794
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2795
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2796
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2797
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2798
|
+
* it.
|
|
2799
|
+
*/
|
|
2800
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2801
|
+
readonly approvalId: Schema.String;
|
|
2802
|
+
readonly expiresAt: Schema.String;
|
|
2803
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2804
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2805
|
+
readonly label: Schema.String;
|
|
2806
|
+
readonly optionId: Schema.String;
|
|
2807
|
+
}>>>;
|
|
2808
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2809
|
+
}>>;
|
|
2810
|
+
/**
|
|
2811
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2812
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2813
|
+
* every other state.
|
|
2814
|
+
*/
|
|
2815
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2816
|
+
readonly code: Schema.String;
|
|
2817
|
+
readonly message: Schema.String;
|
|
2818
|
+
}>>;
|
|
1271
2819
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2820
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2821
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2822
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2823
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1272
2824
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1273
2825
|
readonly title: Schema.optional<Schema.String>;
|
|
2826
|
+
/**
|
|
2827
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
2828
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
2829
|
+
* Absent when off.
|
|
2830
|
+
*/
|
|
2831
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1274
2832
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1275
2833
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1276
2834
|
readonly baseRef: Schema.String;
|
|
@@ -1306,6 +2864,7 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1306
2864
|
readonly createdAt: Schema.String;
|
|
1307
2865
|
readonly eventCursor: Schema.String;
|
|
1308
2866
|
readonly method: Schema.String;
|
|
2867
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1309
2868
|
readonly receiptId: Schema.String;
|
|
1310
2869
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1311
2870
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1324,15 +2883,23 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1324
2883
|
readonly updatedAt: Schema.String;
|
|
1325
2884
|
readonly workspaceId: Schema.String;
|
|
1326
2885
|
readonly workspaceRevision: Schema.String;
|
|
2886
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2887
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1327
2888
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1328
2889
|
readonly contentDigest: Schema.String;
|
|
1329
2890
|
readonly key: Schema.String;
|
|
1330
2891
|
readonly version: Schema.String;
|
|
1331
2892
|
}>>;
|
|
2893
|
+
/**
|
|
2894
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
2895
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
2896
|
+
* A sandboxed Session carries none.
|
|
2897
|
+
*/
|
|
2898
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1332
2899
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1333
2900
|
readonly connectionId: Schema.String;
|
|
1334
2901
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1335
|
-
readonly kind: Schema.
|
|
2902
|
+
readonly kind: Schema.String;
|
|
1336
2903
|
readonly model: Schema.optional<Schema.String>;
|
|
1337
2904
|
}>>;
|
|
1338
2905
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1340,9 +2907,69 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1340
2907
|
readonly code: Schema.String;
|
|
1341
2908
|
readonly message: Schema.String;
|
|
1342
2909
|
}>>;
|
|
2910
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
2911
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
2912
|
+
/**
|
|
2913
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
2914
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
2915
|
+
*/
|
|
2916
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2917
|
+
readonly claimedAt: Schema.String;
|
|
2918
|
+
readonly id: Schema.String;
|
|
2919
|
+
readonly leaseExpiresAt: Schema.String;
|
|
2920
|
+
readonly state: Schema.Literal<"claimed">;
|
|
2921
|
+
readonly title: Schema.String;
|
|
2922
|
+
}>>>;
|
|
2923
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2924
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2925
|
+
/** 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. */
|
|
2926
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2927
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2928
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2929
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
2930
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
2931
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2932
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
2933
|
+
/**
|
|
2934
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
2935
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
2936
|
+
* one of the two and never otherwise: a `question` names a question
|
|
2937
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
2938
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
2939
|
+
* it.
|
|
2940
|
+
*/
|
|
2941
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
2942
|
+
readonly approvalId: Schema.String;
|
|
2943
|
+
readonly expiresAt: Schema.String;
|
|
2944
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
2945
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2946
|
+
readonly label: Schema.String;
|
|
2947
|
+
readonly optionId: Schema.String;
|
|
2948
|
+
}>>>;
|
|
2949
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2950
|
+
}>>;
|
|
2951
|
+
/**
|
|
2952
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
2953
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
2954
|
+
* every other state.
|
|
2955
|
+
*/
|
|
2956
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
2957
|
+
readonly code: Schema.String;
|
|
2958
|
+
readonly message: Schema.String;
|
|
2959
|
+
}>>;
|
|
1343
2960
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2961
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
2962
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
2963
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2964
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1344
2965
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1345
2966
|
readonly title: Schema.optional<Schema.String>;
|
|
2967
|
+
/**
|
|
2968
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
2969
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
2970
|
+
* Absent when off.
|
|
2971
|
+
*/
|
|
2972
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1346
2973
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1347
2974
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1348
2975
|
readonly baseRef: Schema.String;
|
|
@@ -1356,6 +2983,9 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1356
2983
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
1357
2984
|
}>>;
|
|
1358
2985
|
}>;
|
|
2986
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
2987
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
2988
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1359
2989
|
}>;
|
|
1360
2990
|
export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1361
2991
|
readonly method: Schema.Literal<"session.create">;
|
|
@@ -1365,18 +2995,31 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1365
2995
|
readonly workspaceId: Schema.String;
|
|
1366
2996
|
readonly agentId: Schema.optional<Schema.String>;
|
|
1367
2997
|
readonly connectionId: Schema.optional<Schema.String>;
|
|
2998
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
2999
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1368
3000
|
readonly definitionRef: Schema.optional<Schema.Struct<{
|
|
1369
3001
|
readonly contentDigest: Schema.String;
|
|
1370
3002
|
readonly key: Schema.String;
|
|
1371
3003
|
readonly version: Schema.String;
|
|
1372
3004
|
}>>;
|
|
1373
3005
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1374
|
-
readonly executor: Schema.optional<Schema.
|
|
3006
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
3007
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3008
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1375
3009
|
readonly model: Schema.optional<Schema.String>;
|
|
3010
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1376
3011
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
1377
3012
|
readonly title: Schema.optional<Schema.String>;
|
|
3013
|
+
/**
|
|
3014
|
+
* Opts this Session in to parent wakes (SELF-3): each time a turn of one of
|
|
3015
|
+
* its children ends (completed, failed, interrupted or outcome unknown), the
|
|
3016
|
+
* Node queues one turn here with the child's Session ID, the turn ID and
|
|
3017
|
+
* that state, never the child's text. Off by default.
|
|
3018
|
+
*/
|
|
3019
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1378
3020
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1379
3021
|
readonly baseRef: Schema.String;
|
|
3022
|
+
readonly branch: Schema.optional<Schema.String>;
|
|
1380
3023
|
}>>;
|
|
1381
3024
|
}>;
|
|
1382
3025
|
}>, Schema.Struct<{
|
|
@@ -1384,8 +3027,16 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1384
3027
|
readonly parameters: Schema.Struct<{
|
|
1385
3028
|
readonly afterCursor: Schema.optional<Schema.String>;
|
|
1386
3029
|
readonly attention: Schema.optional<Schema.Boolean>;
|
|
3030
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
3031
|
+
readonly idleForSeconds: Schema.optional<Schema.Int>;
|
|
3032
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
3033
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1387
3034
|
readonly limit: Schema.optional<Schema.Int>;
|
|
3035
|
+
/** Keeps the direct children of this Session; an unknown Session has none. */
|
|
3036
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
1388
3037
|
readonly projectId: Schema.optional<Schema.String>;
|
|
3038
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
3039
|
+
readonly settled: Schema.optional<Schema.Literal<true>>;
|
|
1389
3040
|
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1390
3041
|
}>;
|
|
1391
3042
|
}>, Schema.Struct<{
|
|
@@ -1396,25 +3047,13 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1396
3047
|
}>, Schema.Struct<{
|
|
1397
3048
|
readonly method: Schema.Literal<"session.wait">;
|
|
1398
3049
|
readonly parameters: Schema.Struct<{
|
|
3050
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
3051
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
1399
3052
|
readonly sessionId: Schema.String;
|
|
1400
3053
|
/** 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"]
|
|
3054
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1402
3055
|
readonly waitMilliseconds: Schema.Int;
|
|
1403
3056
|
}>;
|
|
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
3057
|
}>, Schema.Struct<{
|
|
1419
3058
|
readonly method: Schema.Literal<"session.events.list">;
|
|
1420
3059
|
readonly parameters: Schema.Struct<{
|
|
@@ -1468,6 +3107,13 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1468
3107
|
readonly commandId: Schema.String;
|
|
1469
3108
|
readonly expectedRevision: Schema.String;
|
|
1470
3109
|
readonly sessionId: Schema.String;
|
|
3110
|
+
readonly parent: Schema.optional<Schema.Struct<{
|
|
3111
|
+
readonly children: Schema.Struct<{
|
|
3112
|
+
readonly live: Schema.Int;
|
|
3113
|
+
readonly total: Schema.Int;
|
|
3114
|
+
}>;
|
|
3115
|
+
readonly sessionId: Schema.String;
|
|
3116
|
+
}>>;
|
|
1471
3117
|
}>;
|
|
1472
3118
|
}>, Schema.Struct<{
|
|
1473
3119
|
readonly method: Schema.Literal<"session.diff">;
|
|
@@ -1475,12 +3121,19 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1475
3121
|
readonly sessionId: Schema.String;
|
|
1476
3122
|
readonly stat: Schema.optional<Schema.Boolean>;
|
|
1477
3123
|
}>;
|
|
3124
|
+
}>, Schema.Struct<{
|
|
3125
|
+
readonly method: Schema.Literal<"session.git.status">;
|
|
3126
|
+
readonly parameters: Schema.Struct<{
|
|
3127
|
+
readonly sessionId: Schema.String;
|
|
3128
|
+
}>;
|
|
1478
3129
|
}>, Schema.Struct<{
|
|
1479
3130
|
readonly method: Schema.Literal<"session.archive">;
|
|
1480
3131
|
readonly parameters: Schema.Struct<{
|
|
1481
3132
|
readonly commandId: Schema.String;
|
|
1482
3133
|
readonly expectedRevision: Schema.String;
|
|
1483
3134
|
readonly sessionId: Schema.String;
|
|
3135
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3136
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
1484
3137
|
}>;
|
|
1485
3138
|
}>, Schema.Struct<{
|
|
1486
3139
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -1490,6 +3143,112 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1490
3143
|
readonly sessionId: Schema.String;
|
|
1491
3144
|
readonly title: Schema.String;
|
|
1492
3145
|
}>;
|
|
3146
|
+
}>, Schema.Struct<{
|
|
3147
|
+
readonly method: Schema.Literal<"session.fork.preview">;
|
|
3148
|
+
readonly parameters: Schema.Struct<{
|
|
3149
|
+
readonly commandId: Schema.String;
|
|
3150
|
+
readonly sessionId: Schema.String;
|
|
3151
|
+
readonly turnId: Schema.optional<Schema.String>;
|
|
3152
|
+
}>;
|
|
3153
|
+
}>, Schema.Struct<{
|
|
3154
|
+
readonly method: Schema.Literal<"session.fork.confirm">;
|
|
3155
|
+
readonly parameters: Schema.Struct<{
|
|
3156
|
+
inputDigest: Schema.String;
|
|
3157
|
+
proof: Schema.String;
|
|
3158
|
+
validUntil: Schema.String;
|
|
3159
|
+
checkpoint: Schema.optional<Schema.String>;
|
|
3160
|
+
commandId: Schema.String;
|
|
3161
|
+
expectedRevision: Schema.String;
|
|
3162
|
+
sessionId: Schema.String;
|
|
3163
|
+
turnId: Schema.String;
|
|
3164
|
+
}>;
|
|
3165
|
+
}>, Schema.Struct<{
|
|
3166
|
+
readonly method: Schema.Literal<"session.switch.preview">;
|
|
3167
|
+
readonly parameters: Schema.Struct<{
|
|
3168
|
+
readonly commandId: Schema.String;
|
|
3169
|
+
readonly sessionId: Schema.String;
|
|
3170
|
+
readonly target: Schema.Struct<{
|
|
3171
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
3172
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
3173
|
+
readonly model: Schema.optional<Schema.String>;
|
|
3174
|
+
}>;
|
|
3175
|
+
}>;
|
|
3176
|
+
}>, Schema.Struct<{
|
|
3177
|
+
readonly method: Schema.Literal<"session.switch.confirm">;
|
|
3178
|
+
readonly parameters: Schema.Struct<{
|
|
3179
|
+
inputDigest: Schema.String;
|
|
3180
|
+
proof: Schema.String;
|
|
3181
|
+
validUntil: Schema.String;
|
|
3182
|
+
commandId: Schema.String;
|
|
3183
|
+
expectedRevision: Schema.String;
|
|
3184
|
+
sessionId: Schema.String;
|
|
3185
|
+
target: Schema.Struct<{
|
|
3186
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
3187
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
3188
|
+
readonly model: Schema.optional<Schema.String>;
|
|
3189
|
+
}>;
|
|
3190
|
+
}>;
|
|
3191
|
+
}>, Schema.Struct<{
|
|
3192
|
+
readonly method: Schema.Literal<"session.setup.preview">;
|
|
3193
|
+
readonly parameters: Schema.Struct<{
|
|
3194
|
+
readonly commandId: Schema.String;
|
|
3195
|
+
readonly sessionId: Schema.String;
|
|
3196
|
+
}>;
|
|
3197
|
+
}>, Schema.Struct<{
|
|
3198
|
+
readonly method: Schema.Literal<"session.setup.confirm">;
|
|
3199
|
+
readonly parameters: Schema.Struct<{
|
|
3200
|
+
inputDigest: Schema.String;
|
|
3201
|
+
proof: Schema.String;
|
|
3202
|
+
validUntil: Schema.String;
|
|
3203
|
+
commandId: Schema.String;
|
|
3204
|
+
expectedRevision: Schema.String;
|
|
3205
|
+
sessionId: Schema.String;
|
|
3206
|
+
setupDigest: Schema.String;
|
|
3207
|
+
}>;
|
|
3208
|
+
}>, Schema.Struct<{
|
|
3209
|
+
readonly method: Schema.Literal<"session.spawn.preview">;
|
|
3210
|
+
readonly parameters: Schema.Struct<{
|
|
3211
|
+
commandId: Schema.String;
|
|
3212
|
+
executor: Schema.String;
|
|
3213
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3214
|
+
parent: Schema.Struct<{
|
|
3215
|
+
readonly children: Schema.Struct<{
|
|
3216
|
+
readonly live: Schema.Int;
|
|
3217
|
+
readonly total: Schema.Int;
|
|
3218
|
+
}>;
|
|
3219
|
+
readonly depth: Schema.Int;
|
|
3220
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3221
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3222
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
3223
|
+
readonly sessionId: Schema.String;
|
|
3224
|
+
}>;
|
|
3225
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3226
|
+
workspaceId: Schema.String;
|
|
3227
|
+
}>;
|
|
3228
|
+
}>, Schema.Struct<{
|
|
3229
|
+
readonly method: Schema.Literal<"session.spawn.confirm">;
|
|
3230
|
+
readonly parameters: Schema.Struct<{
|
|
3231
|
+
inputDigest: Schema.String;
|
|
3232
|
+
proof: Schema.String;
|
|
3233
|
+
validUntil: Schema.String;
|
|
3234
|
+
commandId: Schema.String;
|
|
3235
|
+
executor: Schema.String;
|
|
3236
|
+
hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3237
|
+
parent: Schema.Struct<{
|
|
3238
|
+
readonly children: Schema.Struct<{
|
|
3239
|
+
readonly live: Schema.Int;
|
|
3240
|
+
readonly total: Schema.Int;
|
|
3241
|
+
}>;
|
|
3242
|
+
readonly depth: Schema.Int;
|
|
3243
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
3244
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3245
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
3246
|
+
readonly sessionId: Schema.String;
|
|
3247
|
+
}>;
|
|
3248
|
+
permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3249
|
+
workspaceId: Schema.String;
|
|
3250
|
+
expectedRevision: Schema.Literal<"0">;
|
|
3251
|
+
}>;
|
|
1493
3252
|
}>]>;
|
|
1494
3253
|
export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
1495
3254
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
@@ -1501,6 +3260,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1501
3260
|
readonly createdAt: Schema.String;
|
|
1502
3261
|
readonly eventCursor: Schema.String;
|
|
1503
3262
|
readonly method: Schema.String;
|
|
3263
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1504
3264
|
readonly receiptId: Schema.String;
|
|
1505
3265
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1506
3266
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1519,15 +3279,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1519
3279
|
readonly updatedAt: Schema.String;
|
|
1520
3280
|
readonly workspaceId: Schema.String;
|
|
1521
3281
|
readonly workspaceRevision: Schema.String;
|
|
3282
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3283
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1522
3284
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1523
3285
|
readonly contentDigest: Schema.String;
|
|
1524
3286
|
readonly key: Schema.String;
|
|
1525
3287
|
readonly version: Schema.String;
|
|
1526
3288
|
}>>;
|
|
3289
|
+
/**
|
|
3290
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3291
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3292
|
+
* A sandboxed Session carries none.
|
|
3293
|
+
*/
|
|
3294
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1527
3295
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1528
3296
|
readonly connectionId: Schema.String;
|
|
1529
3297
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1530
|
-
readonly kind: Schema.
|
|
3298
|
+
readonly kind: Schema.String;
|
|
1531
3299
|
readonly model: Schema.optional<Schema.String>;
|
|
1532
3300
|
}>>;
|
|
1533
3301
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1535,9 +3303,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1535
3303
|
readonly code: Schema.String;
|
|
1536
3304
|
readonly message: Schema.String;
|
|
1537
3305
|
}>>;
|
|
3306
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3307
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3308
|
+
/**
|
|
3309
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3310
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3311
|
+
*/
|
|
3312
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3313
|
+
readonly claimedAt: Schema.String;
|
|
3314
|
+
readonly id: Schema.String;
|
|
3315
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3316
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3317
|
+
readonly title: Schema.String;
|
|
3318
|
+
}>>>;
|
|
3319
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3320
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3321
|
+
/** 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. */
|
|
3322
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3323
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3324
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3325
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3326
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3327
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3328
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3329
|
+
/**
|
|
3330
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3331
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3332
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3333
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3334
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3335
|
+
* it.
|
|
3336
|
+
*/
|
|
3337
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3338
|
+
readonly approvalId: Schema.String;
|
|
3339
|
+
readonly expiresAt: Schema.String;
|
|
3340
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3341
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3342
|
+
readonly label: Schema.String;
|
|
3343
|
+
readonly optionId: Schema.String;
|
|
3344
|
+
}>>>;
|
|
3345
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3346
|
+
}>>;
|
|
3347
|
+
/**
|
|
3348
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3349
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3350
|
+
* every other state.
|
|
3351
|
+
*/
|
|
3352
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3353
|
+
readonly code: Schema.String;
|
|
3354
|
+
readonly message: Schema.String;
|
|
3355
|
+
}>>;
|
|
1538
3356
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3357
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3358
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3359
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3360
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1539
3361
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1540
3362
|
readonly title: Schema.optional<Schema.String>;
|
|
3363
|
+
/**
|
|
3364
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
3365
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
3366
|
+
* Absent when off.
|
|
3367
|
+
*/
|
|
3368
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1541
3369
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1542
3370
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1543
3371
|
readonly baseRef: Schema.String;
|
|
@@ -1586,6 +3414,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1586
3414
|
readonly createdAt: Schema.String;
|
|
1587
3415
|
readonly eventCursor: Schema.String;
|
|
1588
3416
|
readonly method: Schema.String;
|
|
3417
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1589
3418
|
readonly receiptId: Schema.String;
|
|
1590
3419
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1591
3420
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1644,15 +3473,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1644
3473
|
readonly updatedAt: Schema.String;
|
|
1645
3474
|
readonly workspaceId: Schema.String;
|
|
1646
3475
|
readonly workspaceRevision: Schema.String;
|
|
3476
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3477
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1647
3478
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1648
3479
|
readonly contentDigest: Schema.String;
|
|
1649
3480
|
readonly key: Schema.String;
|
|
1650
3481
|
readonly version: Schema.String;
|
|
1651
3482
|
}>>;
|
|
3483
|
+
/**
|
|
3484
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3485
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3486
|
+
* A sandboxed Session carries none.
|
|
3487
|
+
*/
|
|
3488
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1652
3489
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1653
3490
|
readonly connectionId: Schema.String;
|
|
1654
3491
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1655
|
-
readonly kind: Schema.
|
|
3492
|
+
readonly kind: Schema.String;
|
|
1656
3493
|
readonly model: Schema.optional<Schema.String>;
|
|
1657
3494
|
}>>;
|
|
1658
3495
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1660,9 +3497,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1660
3497
|
readonly code: Schema.String;
|
|
1661
3498
|
readonly message: Schema.String;
|
|
1662
3499
|
}>>;
|
|
3500
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3501
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3502
|
+
/**
|
|
3503
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3504
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3505
|
+
*/
|
|
3506
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3507
|
+
readonly claimedAt: Schema.String;
|
|
3508
|
+
readonly id: Schema.String;
|
|
3509
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3510
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3511
|
+
readonly title: Schema.String;
|
|
3512
|
+
}>>>;
|
|
3513
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3514
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3515
|
+
/** 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. */
|
|
3516
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3517
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3518
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3519
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3520
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3521
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3522
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3523
|
+
/**
|
|
3524
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3525
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3526
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3527
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3528
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3529
|
+
* it.
|
|
3530
|
+
*/
|
|
3531
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3532
|
+
readonly approvalId: Schema.String;
|
|
3533
|
+
readonly expiresAt: Schema.String;
|
|
3534
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3535
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3536
|
+
readonly label: Schema.String;
|
|
3537
|
+
readonly optionId: Schema.String;
|
|
3538
|
+
}>>>;
|
|
3539
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3540
|
+
}>>;
|
|
3541
|
+
/**
|
|
3542
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3543
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3544
|
+
* every other state.
|
|
3545
|
+
*/
|
|
3546
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3547
|
+
readonly code: Schema.String;
|
|
3548
|
+
readonly message: Schema.String;
|
|
3549
|
+
}>>;
|
|
1663
3550
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3551
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3552
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3553
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3554
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1664
3555
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1665
3556
|
readonly title: Schema.optional<Schema.String>;
|
|
3557
|
+
/**
|
|
3558
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
3559
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
3560
|
+
* Absent when off.
|
|
3561
|
+
*/
|
|
3562
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1666
3563
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1667
3564
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1668
3565
|
readonly baseRef: Schema.String;
|
|
@@ -1701,6 +3598,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1701
3598
|
readonly createdAt: Schema.String;
|
|
1702
3599
|
readonly eventCursor: Schema.String;
|
|
1703
3600
|
readonly method: Schema.String;
|
|
3601
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
1704
3602
|
readonly receiptId: Schema.String;
|
|
1705
3603
|
readonly schemaVersion: Schema.Literal<1>;
|
|
1706
3604
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -1729,7 +3627,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1729
3627
|
readonly rssBytes: Schema.optional<Schema.Int>;
|
|
1730
3628
|
readonly wallTimeMilliseconds: Schema.optional<Schema.Int>;
|
|
1731
3629
|
}>>;
|
|
1732
|
-
readonly runtime: Schema.
|
|
3630
|
+
readonly runtime: Schema.String;
|
|
1733
3631
|
readonly runtimeThreadId: Schema.String;
|
|
1734
3632
|
readonly startedAt: Schema.String;
|
|
1735
3633
|
readonly turn: Schema.optional<Schema.Struct<{
|
|
@@ -1746,6 +3644,14 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1746
3644
|
readonly stallAfterSeconds: Schema.Int;
|
|
1747
3645
|
}>, Schema.Struct<{
|
|
1748
3646
|
readonly method: Schema.Literal<"session.show">;
|
|
3647
|
+
readonly remoteChildren: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3648
|
+
readonly linkedAt: Schema.String;
|
|
3649
|
+
readonly node: Schema.String;
|
|
3650
|
+
readonly observedState: Schema.optional<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>;
|
|
3651
|
+
readonly orphanedAt: Schema.optional<Schema.String>;
|
|
3652
|
+
readonly sessionId: Schema.String;
|
|
3653
|
+
readonly state: Schema.Literals<readonly ["linked", "orphaned"]>;
|
|
3654
|
+
}>>>;
|
|
1749
3655
|
readonly session: Schema.Struct<{
|
|
1750
3656
|
readonly createdAt: Schema.String;
|
|
1751
3657
|
readonly id: Schema.String;
|
|
@@ -1755,15 +3661,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1755
3661
|
readonly updatedAt: Schema.String;
|
|
1756
3662
|
readonly workspaceId: Schema.String;
|
|
1757
3663
|
readonly workspaceRevision: Schema.String;
|
|
3664
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3665
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1758
3666
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1759
3667
|
readonly contentDigest: Schema.String;
|
|
1760
3668
|
readonly key: Schema.String;
|
|
1761
3669
|
readonly version: Schema.String;
|
|
1762
3670
|
}>>;
|
|
3671
|
+
/**
|
|
3672
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3673
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3674
|
+
* A sandboxed Session carries none.
|
|
3675
|
+
*/
|
|
3676
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1763
3677
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1764
3678
|
readonly connectionId: Schema.String;
|
|
1765
3679
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1766
|
-
readonly kind: Schema.
|
|
3680
|
+
readonly kind: Schema.String;
|
|
1767
3681
|
readonly model: Schema.optional<Schema.String>;
|
|
1768
3682
|
}>>;
|
|
1769
3683
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1771,9 +3685,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1771
3685
|
readonly code: Schema.String;
|
|
1772
3686
|
readonly message: Schema.String;
|
|
1773
3687
|
}>>;
|
|
3688
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3689
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3690
|
+
/**
|
|
3691
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3692
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3693
|
+
*/
|
|
3694
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3695
|
+
readonly claimedAt: Schema.String;
|
|
3696
|
+
readonly id: Schema.String;
|
|
3697
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3698
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3699
|
+
readonly title: Schema.String;
|
|
3700
|
+
}>>>;
|
|
3701
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3702
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3703
|
+
/** 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. */
|
|
3704
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3705
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3706
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3707
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3708
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3709
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3710
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3711
|
+
/**
|
|
3712
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3713
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3714
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3715
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3716
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3717
|
+
* it.
|
|
3718
|
+
*/
|
|
3719
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3720
|
+
readonly approvalId: Schema.String;
|
|
3721
|
+
readonly expiresAt: Schema.String;
|
|
3722
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3723
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3724
|
+
readonly label: Schema.String;
|
|
3725
|
+
readonly optionId: Schema.String;
|
|
3726
|
+
}>>>;
|
|
3727
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
3728
|
+
}>>;
|
|
3729
|
+
/**
|
|
3730
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3731
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3732
|
+
* every other state.
|
|
3733
|
+
*/
|
|
3734
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3735
|
+
readonly code: Schema.String;
|
|
3736
|
+
readonly message: Schema.String;
|
|
3737
|
+
}>>;
|
|
1774
3738
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3739
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3740
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3741
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3742
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1775
3743
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1776
3744
|
readonly title: Schema.optional<Schema.String>;
|
|
3745
|
+
/**
|
|
3746
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
3747
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
3748
|
+
* Absent when off.
|
|
3749
|
+
*/
|
|
3750
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1777
3751
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1778
3752
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1779
3753
|
readonly baseRef: Schema.String;
|
|
@@ -1799,15 +3773,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1799
3773
|
readonly updatedAt: Schema.String;
|
|
1800
3774
|
readonly workspaceId: Schema.String;
|
|
1801
3775
|
readonly workspaceRevision: Schema.String;
|
|
3776
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3777
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1802
3778
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1803
3779
|
readonly contentDigest: Schema.String;
|
|
1804
3780
|
readonly key: Schema.String;
|
|
1805
3781
|
readonly version: Schema.String;
|
|
1806
3782
|
}>>;
|
|
3783
|
+
/**
|
|
3784
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
3785
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
3786
|
+
* A sandboxed Session carries none.
|
|
3787
|
+
*/
|
|
3788
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
1807
3789
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1808
3790
|
readonly connectionId: Schema.String;
|
|
1809
3791
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1810
|
-
readonly kind: Schema.
|
|
3792
|
+
readonly kind: Schema.String;
|
|
1811
3793
|
readonly model: Schema.optional<Schema.String>;
|
|
1812
3794
|
}>>;
|
|
1813
3795
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -1815,71 +3797,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1815
3797
|
readonly code: Schema.String;
|
|
1816
3798
|
readonly message: Schema.String;
|
|
1817
3799
|
}>>;
|
|
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<{
|
|
3800
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
3801
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
3802
|
+
/**
|
|
3803
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
3804
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
3805
|
+
*/
|
|
3806
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3807
|
+
readonly claimedAt: Schema.String;
|
|
1850
3808
|
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
|
-
|
|
3809
|
+
readonly leaseExpiresAt: Schema.String;
|
|
3810
|
+
readonly state: Schema.Literal<"claimed">;
|
|
3811
|
+
readonly title: Schema.String;
|
|
3812
|
+
}>>>;
|
|
3813
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
3814
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
3815
|
+
/** 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. */
|
|
3816
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
3817
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
3818
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
3819
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
3820
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
3821
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
3822
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
3823
|
+
/**
|
|
3824
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
3825
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
3826
|
+
* one of the two and never otherwise: a `question` names a question
|
|
3827
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
3828
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
3829
|
+
* it.
|
|
3830
|
+
*/
|
|
3831
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
3832
|
+
readonly approvalId: Schema.String;
|
|
3833
|
+
readonly expiresAt: Schema.String;
|
|
3834
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
3835
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3836
|
+
readonly label: Schema.String;
|
|
3837
|
+
readonly optionId: Schema.String;
|
|
3838
|
+
}>>>;
|
|
3839
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
1874
3840
|
}>>;
|
|
1875
|
-
/**
|
|
1876
|
-
|
|
3841
|
+
/**
|
|
3842
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
3843
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
3844
|
+
* every other state.
|
|
3845
|
+
*/
|
|
3846
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
1877
3847
|
readonly code: Schema.String;
|
|
1878
3848
|
readonly message: Schema.String;
|
|
1879
3849
|
}>>;
|
|
1880
3850
|
readonly schemaVersion: Schema.Literal<4>;
|
|
3851
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
3852
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
3853
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
3854
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
1881
3855
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1882
3856
|
readonly title: Schema.optional<Schema.String>;
|
|
3857
|
+
/**
|
|
3858
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
3859
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
3860
|
+
* Absent when off.
|
|
3861
|
+
*/
|
|
3862
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
1883
3863
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
1884
3864
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
1885
3865
|
readonly baseRef: Schema.String;
|
|
@@ -1910,13 +3890,21 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1910
3890
|
readonly key: Schema.String;
|
|
1911
3891
|
readonly version: Schema.String;
|
|
1912
3892
|
}>>;
|
|
3893
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
3894
|
+
readonly authorizedBy: Schema.optional<Schema.String>;
|
|
3895
|
+
/** `none` when the Session runs with host authority. */
|
|
3896
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
3897
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
3898
|
+
readonly cwd: Schema.optional<Schema.String>;
|
|
1913
3899
|
/** The account the Session binds to, named or picked by the Node. */
|
|
1914
3900
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
1915
3901
|
readonly connectionId: Schema.String;
|
|
1916
3902
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1917
|
-
readonly kind: Schema.
|
|
3903
|
+
readonly kind: Schema.String;
|
|
1918
3904
|
readonly model: Schema.optional<Schema.String>;
|
|
1919
3905
|
}>>;
|
|
3906
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
3907
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
1920
3908
|
readonly projectId: Schema.String;
|
|
1921
3909
|
readonly workspaceId: Schema.String;
|
|
1922
3910
|
readonly workspaceRevision: Schema.String;
|
|
@@ -1960,6 +3948,20 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1960
3948
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1961
3949
|
readonly sessionCursor: Schema.String;
|
|
1962
3950
|
readonly sessionId: Schema.String;
|
|
3951
|
+
}>, Schema.Struct<{
|
|
3952
|
+
readonly commandId: Schema.String;
|
|
3953
|
+
readonly eventType: Schema.Literal<"session.runtime.recovery.updated">;
|
|
3954
|
+
readonly globalCursor: Schema.String;
|
|
3955
|
+
readonly payload: Schema.Struct<{
|
|
3956
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
3957
|
+
readonly code: Schema.String;
|
|
3958
|
+
readonly message: Schema.String;
|
|
3959
|
+
}>>;
|
|
3960
|
+
}>;
|
|
3961
|
+
readonly recordedAt: Schema.String;
|
|
3962
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
3963
|
+
readonly sessionCursor: Schema.String;
|
|
3964
|
+
readonly sessionId: Schema.String;
|
|
1963
3965
|
}>, Schema.Struct<{
|
|
1964
3966
|
readonly commandId: Schema.String;
|
|
1965
3967
|
readonly eventType: Schema.Literal<"session.runtime.resumed">;
|
|
@@ -2112,6 +4114,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2112
4114
|
}>]>]>>;
|
|
2113
4115
|
readonly method: Schema.Literal<"session.events.list">;
|
|
2114
4116
|
readonly nextSessionCursor: Schema.optional<Schema.String>;
|
|
4117
|
+
/** 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. */
|
|
4118
|
+
readonly oldestRetainedCursor: Schema.optional<Schema.String>;
|
|
2115
4119
|
readonly sessionId: Schema.String;
|
|
2116
4120
|
}>, Schema.Struct<{
|
|
2117
4121
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
@@ -2123,6 +4127,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2123
4127
|
readonly createdAt: Schema.String;
|
|
2124
4128
|
readonly eventCursor: Schema.String;
|
|
2125
4129
|
readonly method: Schema.String;
|
|
4130
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2126
4131
|
readonly receiptId: Schema.String;
|
|
2127
4132
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2128
4133
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2141,15 +4146,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2141
4146
|
readonly updatedAt: Schema.String;
|
|
2142
4147
|
readonly workspaceId: Schema.String;
|
|
2143
4148
|
readonly workspaceRevision: Schema.String;
|
|
4149
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4150
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2144
4151
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2145
4152
|
readonly contentDigest: Schema.String;
|
|
2146
4153
|
readonly key: Schema.String;
|
|
2147
4154
|
readonly version: Schema.String;
|
|
2148
4155
|
}>>;
|
|
4156
|
+
/**
|
|
4157
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4158
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4159
|
+
* A sandboxed Session carries none.
|
|
4160
|
+
*/
|
|
4161
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2149
4162
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2150
4163
|
readonly connectionId: Schema.String;
|
|
2151
4164
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2152
|
-
readonly kind: Schema.
|
|
4165
|
+
readonly kind: Schema.String;
|
|
2153
4166
|
readonly model: Schema.optional<Schema.String>;
|
|
2154
4167
|
}>>;
|
|
2155
4168
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2157,9 +4170,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2157
4170
|
readonly code: Schema.String;
|
|
2158
4171
|
readonly message: Schema.String;
|
|
2159
4172
|
}>>;
|
|
4173
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4174
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4175
|
+
/**
|
|
4176
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4177
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4178
|
+
*/
|
|
4179
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4180
|
+
readonly claimedAt: Schema.String;
|
|
4181
|
+
readonly id: Schema.String;
|
|
4182
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4183
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4184
|
+
readonly title: Schema.String;
|
|
4185
|
+
}>>>;
|
|
4186
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4187
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4188
|
+
/** 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. */
|
|
4189
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4190
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4191
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4192
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4193
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4194
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4195
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4196
|
+
/**
|
|
4197
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4198
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4199
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4200
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4201
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4202
|
+
* it.
|
|
4203
|
+
*/
|
|
4204
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4205
|
+
readonly approvalId: Schema.String;
|
|
4206
|
+
readonly expiresAt: Schema.String;
|
|
4207
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4208
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4209
|
+
readonly label: Schema.String;
|
|
4210
|
+
readonly optionId: Schema.String;
|
|
4211
|
+
}>>>;
|
|
4212
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4213
|
+
}>>;
|
|
4214
|
+
/**
|
|
4215
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4216
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4217
|
+
* every other state.
|
|
4218
|
+
*/
|
|
4219
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4220
|
+
readonly code: Schema.String;
|
|
4221
|
+
readonly message: Schema.String;
|
|
4222
|
+
}>>;
|
|
2160
4223
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4224
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4225
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4226
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4227
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2161
4228
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2162
4229
|
readonly title: Schema.optional<Schema.String>;
|
|
4230
|
+
/**
|
|
4231
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
4232
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
4233
|
+
* Absent when off.
|
|
4234
|
+
*/
|
|
4235
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
2163
4236
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
2164
4237
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2165
4238
|
readonly baseRef: Schema.String;
|
|
@@ -2183,6 +4256,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2183
4256
|
readonly createdAt: Schema.String;
|
|
2184
4257
|
readonly eventCursor: Schema.String;
|
|
2185
4258
|
readonly method: Schema.String;
|
|
4259
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2186
4260
|
readonly receiptId: Schema.String;
|
|
2187
4261
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2188
4262
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2201,15 +4275,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2201
4275
|
readonly updatedAt: Schema.String;
|
|
2202
4276
|
readonly workspaceId: Schema.String;
|
|
2203
4277
|
readonly workspaceRevision: Schema.String;
|
|
4278
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4279
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2204
4280
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2205
4281
|
readonly contentDigest: Schema.String;
|
|
2206
4282
|
readonly key: Schema.String;
|
|
2207
4283
|
readonly version: Schema.String;
|
|
2208
4284
|
}>>;
|
|
4285
|
+
/**
|
|
4286
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4287
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4288
|
+
* A sandboxed Session carries none.
|
|
4289
|
+
*/
|
|
4290
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2209
4291
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2210
4292
|
readonly connectionId: Schema.String;
|
|
2211
4293
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2212
|
-
readonly kind: Schema.
|
|
4294
|
+
readonly kind: Schema.String;
|
|
2213
4295
|
readonly model: Schema.optional<Schema.String>;
|
|
2214
4296
|
}>>;
|
|
2215
4297
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2217,9 +4299,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2217
4299
|
readonly code: Schema.String;
|
|
2218
4300
|
readonly message: Schema.String;
|
|
2219
4301
|
}>>;
|
|
4302
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4303
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4304
|
+
/**
|
|
4305
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4306
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4307
|
+
*/
|
|
4308
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4309
|
+
readonly claimedAt: Schema.String;
|
|
4310
|
+
readonly id: Schema.String;
|
|
4311
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4312
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4313
|
+
readonly title: Schema.String;
|
|
4314
|
+
}>>>;
|
|
4315
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4316
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4317
|
+
/** 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. */
|
|
4318
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4319
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4320
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4321
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4322
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4323
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4324
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4325
|
+
/**
|
|
4326
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4327
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4328
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4329
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4330
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4331
|
+
* it.
|
|
4332
|
+
*/
|
|
4333
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4334
|
+
readonly approvalId: Schema.String;
|
|
4335
|
+
readonly expiresAt: Schema.String;
|
|
4336
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4337
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4338
|
+
readonly label: Schema.String;
|
|
4339
|
+
readonly optionId: Schema.String;
|
|
4340
|
+
}>>>;
|
|
4341
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4342
|
+
}>>;
|
|
4343
|
+
/**
|
|
4344
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4345
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4346
|
+
* every other state.
|
|
4347
|
+
*/
|
|
4348
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4349
|
+
readonly code: Schema.String;
|
|
4350
|
+
readonly message: Schema.String;
|
|
4351
|
+
}>>;
|
|
2220
4352
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4353
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4354
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4355
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4356
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2221
4357
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2222
4358
|
readonly title: Schema.optional<Schema.String>;
|
|
4359
|
+
/**
|
|
4360
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
4361
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
4362
|
+
* Absent when off.
|
|
4363
|
+
*/
|
|
4364
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
2223
4365
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
2224
4366
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2225
4367
|
readonly baseRef: Schema.String;
|
|
@@ -2243,6 +4385,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2243
4385
|
readonly createdAt: Schema.String;
|
|
2244
4386
|
readonly eventCursor: Schema.String;
|
|
2245
4387
|
readonly method: Schema.String;
|
|
4388
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2246
4389
|
readonly receiptId: Schema.String;
|
|
2247
4390
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2248
4391
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2261,15 +4404,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2261
4404
|
readonly updatedAt: Schema.String;
|
|
2262
4405
|
readonly workspaceId: Schema.String;
|
|
2263
4406
|
readonly workspaceRevision: Schema.String;
|
|
4407
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4408
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2264
4409
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2265
4410
|
readonly contentDigest: Schema.String;
|
|
2266
4411
|
readonly key: Schema.String;
|
|
2267
4412
|
readonly version: Schema.String;
|
|
2268
4413
|
}>>;
|
|
4414
|
+
/**
|
|
4415
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4416
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4417
|
+
* A sandboxed Session carries none.
|
|
4418
|
+
*/
|
|
4419
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2269
4420
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2270
4421
|
readonly connectionId: Schema.String;
|
|
2271
4422
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2272
|
-
readonly kind: Schema.
|
|
4423
|
+
readonly kind: Schema.String;
|
|
2273
4424
|
readonly model: Schema.optional<Schema.String>;
|
|
2274
4425
|
}>>;
|
|
2275
4426
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2277,9 +4428,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2277
4428
|
readonly code: Schema.String;
|
|
2278
4429
|
readonly message: Schema.String;
|
|
2279
4430
|
}>>;
|
|
4431
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4432
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4433
|
+
/**
|
|
4434
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4435
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4436
|
+
*/
|
|
4437
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4438
|
+
readonly claimedAt: Schema.String;
|
|
4439
|
+
readonly id: Schema.String;
|
|
4440
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4441
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4442
|
+
readonly title: Schema.String;
|
|
4443
|
+
}>>>;
|
|
4444
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4445
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4446
|
+
/** 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. */
|
|
4447
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4448
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4449
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4450
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4451
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4452
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4453
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4454
|
+
/**
|
|
4455
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4456
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4457
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4458
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4459
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4460
|
+
* it.
|
|
4461
|
+
*/
|
|
4462
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4463
|
+
readonly approvalId: Schema.String;
|
|
4464
|
+
readonly expiresAt: Schema.String;
|
|
4465
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4466
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4467
|
+
readonly label: Schema.String;
|
|
4468
|
+
readonly optionId: Schema.String;
|
|
4469
|
+
}>>>;
|
|
4470
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4471
|
+
}>>;
|
|
4472
|
+
/**
|
|
4473
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4474
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4475
|
+
* every other state.
|
|
4476
|
+
*/
|
|
4477
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4478
|
+
readonly code: Schema.String;
|
|
4479
|
+
readonly message: Schema.String;
|
|
4480
|
+
}>>;
|
|
2280
4481
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4482
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4483
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4484
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4485
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2281
4486
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2282
4487
|
readonly title: Schema.optional<Schema.String>;
|
|
4488
|
+
/**
|
|
4489
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
4490
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
4491
|
+
* Absent when off.
|
|
4492
|
+
*/
|
|
4493
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
2283
4494
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
2284
4495
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2285
4496
|
readonly baseRef: Schema.String;
|
|
@@ -2310,6 +4521,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2310
4521
|
readonly patchTruncated: Schema.optional<Schema.Literal<true>>;
|
|
2311
4522
|
readonly sessionId: Schema.String;
|
|
2312
4523
|
readonly totalFiles: Schema.Int;
|
|
4524
|
+
}>, Schema.Struct<{
|
|
4525
|
+
readonly ahead: Schema.optional<Schema.Int>;
|
|
4526
|
+
readonly baseRef: Schema.String;
|
|
4527
|
+
readonly baseRevision: Schema.optional<Schema.String>;
|
|
4528
|
+
readonly behind: Schema.optional<Schema.Int>;
|
|
4529
|
+
readonly branch: Schema.optional<Schema.String>;
|
|
4530
|
+
readonly changedFiles: Schema.Int;
|
|
4531
|
+
readonly dirty: Schema.Boolean;
|
|
4532
|
+
readonly headRevision: Schema.String;
|
|
4533
|
+
readonly method: Schema.Literal<"session.git.status">;
|
|
4534
|
+
readonly observedAt: Schema.String;
|
|
4535
|
+
readonly sessionId: Schema.String;
|
|
4536
|
+
readonly upstream: Schema.optional<Schema.Struct<{
|
|
4537
|
+
readonly ahead: Schema.optional<Schema.Int>;
|
|
4538
|
+
readonly behind: Schema.optional<Schema.Int>;
|
|
4539
|
+
readonly name: Schema.String;
|
|
4540
|
+
}>>;
|
|
2313
4541
|
}>, Schema.Struct<{
|
|
2314
4542
|
readonly archive: Schema.optional<Schema.Struct<{
|
|
2315
4543
|
readonly branch: Schema.String;
|
|
@@ -2326,6 +4554,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2326
4554
|
readonly createdAt: Schema.String;
|
|
2327
4555
|
readonly eventCursor: Schema.String;
|
|
2328
4556
|
readonly method: Schema.String;
|
|
4557
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2329
4558
|
readonly receiptId: Schema.String;
|
|
2330
4559
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2331
4560
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2344,15 +4573,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2344
4573
|
readonly updatedAt: Schema.String;
|
|
2345
4574
|
readonly workspaceId: Schema.String;
|
|
2346
4575
|
readonly workspaceRevision: Schema.String;
|
|
4576
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4577
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2347
4578
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2348
4579
|
readonly contentDigest: Schema.String;
|
|
2349
4580
|
readonly key: Schema.String;
|
|
2350
4581
|
readonly version: Schema.String;
|
|
2351
4582
|
}>>;
|
|
4583
|
+
/**
|
|
4584
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4585
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4586
|
+
* A sandboxed Session carries none.
|
|
4587
|
+
*/
|
|
4588
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2352
4589
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2353
4590
|
readonly connectionId: Schema.String;
|
|
2354
4591
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2355
|
-
readonly kind: Schema.
|
|
4592
|
+
readonly kind: Schema.String;
|
|
2356
4593
|
readonly model: Schema.optional<Schema.String>;
|
|
2357
4594
|
}>>;
|
|
2358
4595
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2360,9 +4597,69 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2360
4597
|
readonly code: Schema.String;
|
|
2361
4598
|
readonly message: Schema.String;
|
|
2362
4599
|
}>>;
|
|
4600
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4601
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4602
|
+
/**
|
|
4603
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4604
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4605
|
+
*/
|
|
4606
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4607
|
+
readonly claimedAt: Schema.String;
|
|
4608
|
+
readonly id: Schema.String;
|
|
4609
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4610
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4611
|
+
readonly title: Schema.String;
|
|
4612
|
+
}>>>;
|
|
4613
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4614
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4615
|
+
/** 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. */
|
|
4616
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4617
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4618
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4619
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4620
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4621
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4622
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4623
|
+
/**
|
|
4624
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4625
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4626
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4627
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4628
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4629
|
+
* it.
|
|
4630
|
+
*/
|
|
4631
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4632
|
+
readonly approvalId: Schema.String;
|
|
4633
|
+
readonly expiresAt: Schema.String;
|
|
4634
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4635
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4636
|
+
readonly label: Schema.String;
|
|
4637
|
+
readonly optionId: Schema.String;
|
|
4638
|
+
}>>>;
|
|
4639
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4640
|
+
}>>;
|
|
4641
|
+
/**
|
|
4642
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4643
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4644
|
+
* every other state.
|
|
4645
|
+
*/
|
|
4646
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4647
|
+
readonly code: Schema.String;
|
|
4648
|
+
readonly message: Schema.String;
|
|
4649
|
+
}>>;
|
|
2363
4650
|
readonly schemaVersion: Schema.Literal<4>;
|
|
4651
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4652
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4653
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4654
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2364
4655
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2365
4656
|
readonly title: Schema.optional<Schema.String>;
|
|
4657
|
+
/**
|
|
4658
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
4659
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
4660
|
+
* Absent when off.
|
|
4661
|
+
*/
|
|
4662
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
2366
4663
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
2367
4664
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2368
4665
|
readonly baseRef: Schema.String;
|
|
@@ -2376,6 +4673,9 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2376
4673
|
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
2377
4674
|
}>>;
|
|
2378
4675
|
}>;
|
|
4676
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
4677
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4678
|
+
readonly transcriptPath: Schema.optional<Schema.String>;
|
|
2379
4679
|
}>, Schema.Struct<{
|
|
2380
4680
|
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
2381
4681
|
readonly method: Schema.Literal<"session.rename">;
|
|
@@ -2386,6 +4686,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2386
4686
|
readonly createdAt: Schema.String;
|
|
2387
4687
|
readonly eventCursor: Schema.String;
|
|
2388
4688
|
readonly method: Schema.String;
|
|
4689
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
2389
4690
|
readonly receiptId: Schema.String;
|
|
2390
4691
|
readonly schemaVersion: Schema.Literal<1>;
|
|
2391
4692
|
readonly state: Schema.Literal<"succeeded">;
|
|
@@ -2404,15 +4705,23 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2404
4705
|
readonly updatedAt: Schema.String;
|
|
2405
4706
|
readonly workspaceId: Schema.String;
|
|
2406
4707
|
readonly workspaceRevision: Schema.String;
|
|
4708
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4709
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2407
4710
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2408
4711
|
readonly contentDigest: Schema.String;
|
|
2409
4712
|
readonly key: Schema.String;
|
|
2410
4713
|
readonly version: Schema.String;
|
|
2411
4714
|
}>>;
|
|
4715
|
+
/**
|
|
4716
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4717
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4718
|
+
* A sandboxed Session carries none.
|
|
4719
|
+
*/
|
|
4720
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
2412
4721
|
readonly executor: Schema.optional<Schema.Struct<{
|
|
2413
4722
|
readonly connectionId: Schema.String;
|
|
2414
4723
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
2415
|
-
readonly kind: Schema.
|
|
4724
|
+
readonly kind: Schema.String;
|
|
2416
4725
|
readonly model: Schema.optional<Schema.String>;
|
|
2417
4726
|
}>>;
|
|
2418
4727
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
@@ -2420,9 +4729,549 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2420
4729
|
readonly code: Schema.String;
|
|
2421
4730
|
readonly message: Schema.String;
|
|
2422
4731
|
}>>;
|
|
4732
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4733
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4734
|
+
/**
|
|
4735
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4736
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4737
|
+
*/
|
|
4738
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4739
|
+
readonly claimedAt: Schema.String;
|
|
4740
|
+
readonly id: Schema.String;
|
|
4741
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4742
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4743
|
+
readonly title: Schema.String;
|
|
4744
|
+
}>>>;
|
|
4745
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4746
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4747
|
+
/** 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. */
|
|
4748
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4749
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4750
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4751
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4752
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4753
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4754
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4755
|
+
/**
|
|
4756
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4757
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4758
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4759
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4760
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4761
|
+
* it.
|
|
4762
|
+
*/
|
|
4763
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4764
|
+
readonly approvalId: Schema.String;
|
|
4765
|
+
readonly expiresAt: Schema.String;
|
|
4766
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4767
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4768
|
+
readonly label: Schema.String;
|
|
4769
|
+
readonly optionId: Schema.String;
|
|
4770
|
+
}>>>;
|
|
4771
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4772
|
+
}>>;
|
|
4773
|
+
/**
|
|
4774
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4775
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4776
|
+
* every other state.
|
|
4777
|
+
*/
|
|
4778
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4779
|
+
readonly code: Schema.String;
|
|
4780
|
+
readonly message: Schema.String;
|
|
4781
|
+
}>>;
|
|
4782
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
4783
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4784
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4785
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4786
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
4787
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
4788
|
+
readonly title: Schema.optional<Schema.String>;
|
|
4789
|
+
/**
|
|
4790
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
4791
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
4792
|
+
* Absent when off.
|
|
4793
|
+
*/
|
|
4794
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
4795
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
4796
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
4797
|
+
readonly baseRef: Schema.String;
|
|
4798
|
+
readonly baseRevision: Schema.String;
|
|
4799
|
+
readonly branch: Schema.String;
|
|
4800
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
4801
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4802
|
+
readonly digest: Schema.String;
|
|
4803
|
+
readonly name: Schema.String;
|
|
4804
|
+
}>>>;
|
|
4805
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
4806
|
+
}>>;
|
|
4807
|
+
}>;
|
|
4808
|
+
}>, Schema.Struct<{
|
|
4809
|
+
readonly inputDigest: Schema.String;
|
|
4810
|
+
readonly proof: Schema.String;
|
|
4811
|
+
readonly validUntil: Schema.String;
|
|
4812
|
+
readonly checkpoint: Schema.optional<Schema.String>;
|
|
4813
|
+
readonly commandId: Schema.String;
|
|
4814
|
+
readonly expectedRevision: Schema.String;
|
|
4815
|
+
readonly sessionId: Schema.String;
|
|
4816
|
+
readonly turnId: Schema.String;
|
|
4817
|
+
readonly method: Schema.Literal<"session.fork.preview">;
|
|
4818
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4819
|
+
}>, Schema.Struct<{
|
|
4820
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
4821
|
+
readonly handoff: Schema.String;
|
|
4822
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4823
|
+
readonly receipt: Schema.Struct<{
|
|
4824
|
+
readonly actorId: Schema.String;
|
|
4825
|
+
readonly aggregateRevision: Schema.String;
|
|
4826
|
+
readonly commandId: Schema.String;
|
|
4827
|
+
readonly createdAt: Schema.String;
|
|
4828
|
+
readonly eventCursor: Schema.String;
|
|
4829
|
+
readonly method: Schema.String;
|
|
4830
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
4831
|
+
readonly receiptId: Schema.String;
|
|
4832
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
4833
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
4834
|
+
readonly target: Schema.Struct<{
|
|
4835
|
+
readonly id: Schema.String;
|
|
4836
|
+
readonly type: Schema.String;
|
|
4837
|
+
}>;
|
|
4838
|
+
readonly updatedAt: Schema.String;
|
|
4839
|
+
}>;
|
|
4840
|
+
readonly session: Schema.Struct<{
|
|
4841
|
+
readonly createdAt: Schema.String;
|
|
4842
|
+
readonly id: Schema.String;
|
|
4843
|
+
readonly projectId: Schema.String;
|
|
4844
|
+
readonly revision: Schema.String;
|
|
4845
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
4846
|
+
readonly updatedAt: Schema.String;
|
|
4847
|
+
readonly workspaceId: Schema.String;
|
|
4848
|
+
readonly workspaceRevision: Schema.String;
|
|
4849
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4850
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
4851
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
4852
|
+
readonly contentDigest: Schema.String;
|
|
4853
|
+
readonly key: Schema.String;
|
|
4854
|
+
readonly version: Schema.String;
|
|
4855
|
+
}>>;
|
|
4856
|
+
/**
|
|
4857
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
4858
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
4859
|
+
* A sandboxed Session carries none.
|
|
4860
|
+
*/
|
|
4861
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
4862
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
4863
|
+
readonly connectionId: Schema.String;
|
|
4864
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
4865
|
+
readonly kind: Schema.String;
|
|
4866
|
+
readonly model: Schema.optional<Schema.String>;
|
|
4867
|
+
}>>;
|
|
4868
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
4869
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
4870
|
+
readonly code: Schema.String;
|
|
4871
|
+
readonly message: Schema.String;
|
|
4872
|
+
}>>;
|
|
4873
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
4874
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
4875
|
+
/**
|
|
4876
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
4877
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
4878
|
+
*/
|
|
4879
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4880
|
+
readonly claimedAt: Schema.String;
|
|
4881
|
+
readonly id: Schema.String;
|
|
4882
|
+
readonly leaseExpiresAt: Schema.String;
|
|
4883
|
+
readonly state: Schema.Literal<"claimed">;
|
|
4884
|
+
readonly title: Schema.String;
|
|
4885
|
+
}>>>;
|
|
4886
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
4887
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
4888
|
+
/** 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. */
|
|
4889
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
4890
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
4891
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
4892
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
4893
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
4894
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
4895
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
4896
|
+
/**
|
|
4897
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
4898
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
4899
|
+
* one of the two and never otherwise: a `question` names a question
|
|
4900
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
4901
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
4902
|
+
* it.
|
|
4903
|
+
*/
|
|
4904
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
4905
|
+
readonly approvalId: Schema.String;
|
|
4906
|
+
readonly expiresAt: Schema.String;
|
|
4907
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
4908
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4909
|
+
readonly label: Schema.String;
|
|
4910
|
+
readonly optionId: Schema.String;
|
|
4911
|
+
}>>>;
|
|
4912
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
4913
|
+
}>>;
|
|
4914
|
+
/**
|
|
4915
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
4916
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
4917
|
+
* every other state.
|
|
4918
|
+
*/
|
|
4919
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
4920
|
+
readonly code: Schema.String;
|
|
4921
|
+
readonly message: Schema.String;
|
|
4922
|
+
}>>;
|
|
4923
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
4924
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
4925
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
4926
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4927
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
4928
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
4929
|
+
readonly title: Schema.optional<Schema.String>;
|
|
4930
|
+
/**
|
|
4931
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
4932
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
4933
|
+
* Absent when off.
|
|
4934
|
+
*/
|
|
4935
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
4936
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
4937
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
4938
|
+
readonly baseRef: Schema.String;
|
|
4939
|
+
readonly baseRevision: Schema.String;
|
|
4940
|
+
readonly branch: Schema.String;
|
|
4941
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
4942
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
4943
|
+
readonly digest: Schema.String;
|
|
4944
|
+
readonly name: Schema.String;
|
|
4945
|
+
}>>>;
|
|
4946
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
4947
|
+
}>>;
|
|
4948
|
+
}>;
|
|
4949
|
+
readonly sourceSessionId: Schema.String;
|
|
4950
|
+
readonly method: Schema.Literal<"session.fork.confirm">;
|
|
4951
|
+
}>, Schema.Struct<{
|
|
4952
|
+
readonly inputDigest: Schema.String;
|
|
4953
|
+
readonly proof: Schema.String;
|
|
4954
|
+
readonly validUntil: Schema.String;
|
|
4955
|
+
readonly commandId: Schema.String;
|
|
4956
|
+
readonly expectedRevision: Schema.String;
|
|
4957
|
+
readonly sessionId: Schema.String;
|
|
4958
|
+
readonly target: Schema.Struct<{
|
|
4959
|
+
readonly connectionId: Schema.optional<Schema.String>;
|
|
4960
|
+
readonly executor: Schema.optional<Schema.String>;
|
|
4961
|
+
readonly model: Schema.optional<Schema.String>;
|
|
4962
|
+
}>;
|
|
4963
|
+
readonly method: Schema.Literal<"session.switch.preview">;
|
|
4964
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4965
|
+
}>, Schema.Struct<{
|
|
4966
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
4967
|
+
readonly handoff: Schema.String;
|
|
4968
|
+
readonly path: Schema.Literal<"context-handoff">;
|
|
4969
|
+
readonly receipt: Schema.Struct<{
|
|
4970
|
+
readonly actorId: Schema.String;
|
|
4971
|
+
readonly aggregateRevision: Schema.String;
|
|
4972
|
+
readonly commandId: Schema.String;
|
|
4973
|
+
readonly createdAt: Schema.String;
|
|
4974
|
+
readonly eventCursor: Schema.String;
|
|
4975
|
+
readonly method: Schema.String;
|
|
4976
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
4977
|
+
readonly receiptId: Schema.String;
|
|
4978
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
4979
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
4980
|
+
readonly target: Schema.Struct<{
|
|
4981
|
+
readonly id: Schema.String;
|
|
4982
|
+
readonly type: Schema.String;
|
|
4983
|
+
}>;
|
|
4984
|
+
readonly updatedAt: Schema.String;
|
|
4985
|
+
}>;
|
|
4986
|
+
readonly session: Schema.Struct<{
|
|
4987
|
+
readonly createdAt: Schema.String;
|
|
4988
|
+
readonly id: Schema.String;
|
|
4989
|
+
readonly projectId: Schema.String;
|
|
4990
|
+
readonly revision: Schema.String;
|
|
4991
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
4992
|
+
readonly updatedAt: Schema.String;
|
|
4993
|
+
readonly workspaceId: Schema.String;
|
|
4994
|
+
readonly workspaceRevision: Schema.String;
|
|
4995
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
4996
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
4997
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
4998
|
+
readonly contentDigest: Schema.String;
|
|
4999
|
+
readonly key: Schema.String;
|
|
5000
|
+
readonly version: Schema.String;
|
|
5001
|
+
}>>;
|
|
5002
|
+
/**
|
|
5003
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
5004
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
5005
|
+
* A sandboxed Session carries none.
|
|
5006
|
+
*/
|
|
5007
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
5008
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
5009
|
+
readonly connectionId: Schema.String;
|
|
5010
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
5011
|
+
readonly kind: Schema.String;
|
|
5012
|
+
readonly model: Schema.optional<Schema.String>;
|
|
5013
|
+
}>>;
|
|
5014
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
5015
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
5016
|
+
readonly code: Schema.String;
|
|
5017
|
+
readonly message: Schema.String;
|
|
5018
|
+
}>>;
|
|
5019
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
5020
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
5021
|
+
/**
|
|
5022
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
5023
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
5024
|
+
*/
|
|
5025
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
5026
|
+
readonly claimedAt: Schema.String;
|
|
5027
|
+
readonly id: Schema.String;
|
|
5028
|
+
readonly leaseExpiresAt: Schema.String;
|
|
5029
|
+
readonly state: Schema.Literal<"claimed">;
|
|
5030
|
+
readonly title: Schema.String;
|
|
5031
|
+
}>>>;
|
|
5032
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
5033
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
5034
|
+
/** 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. */
|
|
5035
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
5036
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
5037
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
5038
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
5039
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
5040
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
5041
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
5042
|
+
/**
|
|
5043
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
5044
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
5045
|
+
* one of the two and never otherwise: a `question` names a question
|
|
5046
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
5047
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
5048
|
+
* it.
|
|
5049
|
+
*/
|
|
5050
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
5051
|
+
readonly approvalId: Schema.String;
|
|
5052
|
+
readonly expiresAt: Schema.String;
|
|
5053
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
5054
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
5055
|
+
readonly label: Schema.String;
|
|
5056
|
+
readonly optionId: Schema.String;
|
|
5057
|
+
}>>>;
|
|
5058
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
5059
|
+
}>>;
|
|
5060
|
+
/**
|
|
5061
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
5062
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
5063
|
+
* every other state.
|
|
5064
|
+
*/
|
|
5065
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
5066
|
+
readonly code: Schema.String;
|
|
5067
|
+
readonly message: Schema.String;
|
|
5068
|
+
}>>;
|
|
5069
|
+
readonly schemaVersion: Schema.Literal<4>;
|
|
5070
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
5071
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
5072
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
5073
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
5074
|
+
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
5075
|
+
readonly title: Schema.optional<Schema.String>;
|
|
5076
|
+
/**
|
|
5077
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
5078
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
5079
|
+
* Absent when off.
|
|
5080
|
+
*/
|
|
5081
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
5082
|
+
/** A coding Session's own worktree; a reading Session has none. */
|
|
5083
|
+
readonly worktree: Schema.optional<Schema.Struct<{
|
|
5084
|
+
readonly baseRef: Schema.String;
|
|
5085
|
+
readonly baseRevision: Schema.String;
|
|
5086
|
+
readonly branch: Schema.String;
|
|
5087
|
+
readonly setup: Schema.Literals<readonly ["none", "pending", "succeeded", "failed"]>;
|
|
5088
|
+
readonly skills: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
5089
|
+
readonly digest: Schema.String;
|
|
5090
|
+
readonly name: Schema.String;
|
|
5091
|
+
}>>>;
|
|
5092
|
+
readonly state: Schema.Literals<readonly ["active", "archived", "removed"]>;
|
|
5093
|
+
}>>;
|
|
5094
|
+
}>;
|
|
5095
|
+
readonly sourceSessionId: Schema.String;
|
|
5096
|
+
readonly method: Schema.Literal<"session.switch.confirm">;
|
|
5097
|
+
}>, Schema.Struct<{
|
|
5098
|
+
readonly inputDigest: Schema.String;
|
|
5099
|
+
readonly proof: Schema.String;
|
|
5100
|
+
readonly validUntil: Schema.String;
|
|
5101
|
+
readonly commandId: Schema.String;
|
|
5102
|
+
readonly expectedRevision: Schema.String;
|
|
5103
|
+
readonly sessionId: Schema.String;
|
|
5104
|
+
readonly setupDigest: Schema.String;
|
|
5105
|
+
readonly approved: Schema.Boolean;
|
|
5106
|
+
readonly method: Schema.Literal<"session.setup.preview">;
|
|
5107
|
+
readonly setup: Schema.Struct<{
|
|
5108
|
+
readonly command: Schema.$Array<Schema.String>;
|
|
5109
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
5110
|
+
readonly path: Schema.String;
|
|
5111
|
+
readonly sha256: Schema.String;
|
|
5112
|
+
}>>;
|
|
5113
|
+
}>;
|
|
5114
|
+
}>, Schema.Struct<{
|
|
5115
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
5116
|
+
readonly method: Schema.Literal<"session.setup.confirm">;
|
|
5117
|
+
readonly receipt: Schema.Struct<{
|
|
5118
|
+
readonly actorId: Schema.String;
|
|
5119
|
+
readonly aggregateRevision: Schema.String;
|
|
5120
|
+
readonly commandId: Schema.String;
|
|
5121
|
+
readonly createdAt: Schema.String;
|
|
5122
|
+
readonly eventCursor: Schema.String;
|
|
5123
|
+
readonly method: Schema.String;
|
|
5124
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
5125
|
+
readonly receiptId: Schema.String;
|
|
5126
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
5127
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
5128
|
+
readonly target: Schema.Struct<{
|
|
5129
|
+
readonly id: Schema.String;
|
|
5130
|
+
readonly type: Schema.String;
|
|
5131
|
+
}>;
|
|
5132
|
+
readonly updatedAt: Schema.String;
|
|
5133
|
+
}>;
|
|
5134
|
+
readonly sessionId: Schema.String;
|
|
5135
|
+
readonly setupDigest: Schema.String;
|
|
5136
|
+
}>, Schema.Struct<{
|
|
5137
|
+
readonly inputDigest: Schema.String;
|
|
5138
|
+
readonly proof: Schema.String;
|
|
5139
|
+
readonly validUntil: Schema.String;
|
|
5140
|
+
readonly commandId: Schema.String;
|
|
5141
|
+
readonly executor: Schema.String;
|
|
5142
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
5143
|
+
readonly parent: Schema.Struct<{
|
|
5144
|
+
readonly children: Schema.Struct<{
|
|
5145
|
+
readonly live: Schema.Int;
|
|
5146
|
+
readonly total: Schema.Int;
|
|
5147
|
+
}>;
|
|
5148
|
+
readonly depth: Schema.Int;
|
|
5149
|
+
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
5150
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
5151
|
+
readonly role: Schema.Literals<readonly ["orchestrator", "worker"]>;
|
|
5152
|
+
readonly sessionId: Schema.String;
|
|
5153
|
+
}>;
|
|
5154
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
5155
|
+
readonly workspaceId: Schema.String;
|
|
5156
|
+
readonly expectedRevision: Schema.Literal<"0">;
|
|
5157
|
+
readonly method: Schema.Literal<"session.spawn.preview">;
|
|
5158
|
+
}>, Schema.Struct<{
|
|
5159
|
+
readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
|
|
5160
|
+
readonly method: Schema.Literal<"session.spawn.confirm">;
|
|
5161
|
+
readonly parentSessionId: Schema.String;
|
|
5162
|
+
readonly receipt: Schema.Struct<{
|
|
5163
|
+
readonly actorId: Schema.String;
|
|
5164
|
+
readonly aggregateRevision: Schema.String;
|
|
5165
|
+
readonly commandId: Schema.String;
|
|
5166
|
+
readonly createdAt: Schema.String;
|
|
5167
|
+
readonly eventCursor: Schema.String;
|
|
5168
|
+
readonly method: Schema.String;
|
|
5169
|
+
readonly proposedBy: Schema.optional<Schema.String>;
|
|
5170
|
+
readonly receiptId: Schema.String;
|
|
5171
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
5172
|
+
readonly state: Schema.Literal<"succeeded">;
|
|
5173
|
+
readonly target: Schema.Struct<{
|
|
5174
|
+
readonly id: Schema.String;
|
|
5175
|
+
readonly type: Schema.String;
|
|
5176
|
+
}>;
|
|
5177
|
+
readonly updatedAt: Schema.String;
|
|
5178
|
+
}>;
|
|
5179
|
+
readonly session: Schema.Struct<{
|
|
5180
|
+
readonly createdAt: Schema.String;
|
|
5181
|
+
readonly id: Schema.String;
|
|
5182
|
+
readonly projectId: Schema.String;
|
|
5183
|
+
readonly revision: Schema.String;
|
|
5184
|
+
readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
|
|
5185
|
+
readonly updatedAt: Schema.String;
|
|
5186
|
+
readonly workspaceId: Schema.String;
|
|
5187
|
+
readonly workspaceRevision: Schema.String;
|
|
5188
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
5189
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
5190
|
+
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
5191
|
+
readonly contentDigest: Schema.String;
|
|
5192
|
+
readonly key: Schema.String;
|
|
5193
|
+
readonly version: Schema.String;
|
|
5194
|
+
}>>;
|
|
5195
|
+
/**
|
|
5196
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
5197
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
5198
|
+
* A sandboxed Session carries none.
|
|
5199
|
+
*/
|
|
5200
|
+
readonly containment: Schema.optional<Schema.Literal<"none">>;
|
|
5201
|
+
readonly executor: Schema.optional<Schema.Struct<{
|
|
5202
|
+
readonly connectionId: Schema.String;
|
|
5203
|
+
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
5204
|
+
readonly kind: Schema.String;
|
|
5205
|
+
readonly model: Schema.optional<Schema.String>;
|
|
5206
|
+
}>>;
|
|
5207
|
+
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
5208
|
+
readonly failure: Schema.optional<Schema.Struct<{
|
|
5209
|
+
readonly code: Schema.String;
|
|
5210
|
+
readonly message: Schema.String;
|
|
5211
|
+
}>>;
|
|
5212
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
5213
|
+
readonly heldTaskCount: Schema.optional<Schema.Int>;
|
|
5214
|
+
/**
|
|
5215
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
5216
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
5217
|
+
*/
|
|
5218
|
+
readonly heldTasks: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
5219
|
+
readonly claimedAt: Schema.String;
|
|
5220
|
+
readonly id: Schema.String;
|
|
5221
|
+
readonly leaseExpiresAt: Schema.String;
|
|
5222
|
+
readonly state: Schema.Literal<"claimed">;
|
|
5223
|
+
readonly title: Schema.String;
|
|
5224
|
+
}>>>;
|
|
5225
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
5226
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
5227
|
+
/** 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. */
|
|
5228
|
+
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
5229
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
5230
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
5231
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
5232
|
+
readonly parentSessionId: Schema.optional<Schema.String>;
|
|
5233
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
5234
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-request", "never"]>>;
|
|
5235
|
+
/**
|
|
5236
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
5237
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
5238
|
+
* one of the two and never otherwise: a `question` names a question
|
|
5239
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
5240
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
5241
|
+
* it.
|
|
5242
|
+
*/
|
|
5243
|
+
readonly prompt: Schema.optional<Schema.Struct<{
|
|
5244
|
+
readonly approvalId: Schema.String;
|
|
5245
|
+
readonly expiresAt: Schema.String;
|
|
5246
|
+
readonly kind: Schema.Literals<readonly ["command", "file_change", "question", "tool"]>;
|
|
5247
|
+
readonly options: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
5248
|
+
readonly label: Schema.String;
|
|
5249
|
+
readonly optionId: Schema.String;
|
|
5250
|
+
}>>>;
|
|
5251
|
+
readonly summary: Schema.optional<Schema.String>;
|
|
5252
|
+
}>>;
|
|
5253
|
+
/**
|
|
5254
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
5255
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
5256
|
+
* every other state.
|
|
5257
|
+
*/
|
|
5258
|
+
readonly recovery: Schema.optional<Schema.Struct<{
|
|
5259
|
+
readonly code: Schema.String;
|
|
5260
|
+
readonly message: Schema.String;
|
|
5261
|
+
}>>;
|
|
2423
5262
|
readonly schemaVersion: Schema.Literal<4>;
|
|
5263
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
5264
|
+
readonly settledReason: Schema.optional<Schema.Literals<readonly ["failed", "idle", "stopped"]>>;
|
|
5265
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
5266
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["starting", "working", "compacting", "rate_limited", "idle", "question", "approval", "error", "done", "ended", "unknown"]>>;
|
|
2424
5267
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2425
5268
|
readonly title: Schema.optional<Schema.String>;
|
|
5269
|
+
/**
|
|
5270
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
5271
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
5272
|
+
* Absent when off.
|
|
5273
|
+
*/
|
|
5274
|
+
readonly wakeOnChildSettle: Schema.optional<Schema.Literal<true>>;
|
|
2426
5275
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
2427
5276
|
readonly worktree: Schema.optional<Schema.Struct<{
|
|
2428
5277
|
readonly baseRef: Schema.String;
|
|
@@ -2438,6 +5287,6 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2438
5287
|
}>;
|
|
2439
5288
|
}>]>;
|
|
2440
5289
|
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";
|
|
5290
|
+
export { sessionExecutorKindEffectSchema, sessionObservationEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
5291
|
+
export { sessionArchiveParametersEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, sessionGitStatusParametersEffectSchema, sessionGitStatusResultEffectSchema, } from "./worktree-effect-schema.js";
|
|
2443
5292
|
//# sourceMappingURL=effect-schema.d.ts.map
|