@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,16 +1,22 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
import { agentDefinitionReferenceEffectSchema } from "../agent/effect-schema.js";
|
|
2
|
+
import { agentDefinitionReferenceEffectSchema, agentIdentifierEffectSchema, } from "../agent/effect-schema.js";
|
|
3
|
+
import { approvalPromptEffectSchema } from "../approval/effect-schema.js";
|
|
4
|
+
import { boardHeldTaskEffectSchema, MAX_BOARD_HELD_TASKS, } from "../board/effect-schema.js";
|
|
3
5
|
import { commandReceiptEffectSchema } from "../command-receipt/effect-schema.js";
|
|
4
6
|
import { connectionModelIdEffectSchema } from "../connection/effect-schema.js";
|
|
5
7
|
import { aggregateRevisionEffectSchema, failureDetailEffectSchema, protocolIdentifierEffectSchema, recordedAtEffectSchema, } from "../envelope/effect-schema.js";
|
|
6
8
|
import { hasControlCharacter } from "../envelope/index.js";
|
|
9
|
+
import { sessionActivityEffectSchema, sessionStatusEffectSchema, } from "../event/effect-schema.js";
|
|
10
|
+
import { EXECUTOR_IDS } from "../executor/index.js";
|
|
7
11
|
import { holdIdentifierEffectSchema } from "../hold/effect-schema.js";
|
|
12
|
+
import { remoteNodeNameEffectSchema } from "../remote-node/effect-schema.js";
|
|
8
13
|
import { sessionRoleEffectSchema } from "../session-guard/effect-schema.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
14
|
+
import { turnStateEffectSchema } from "../turn/effect-schema.js";
|
|
15
|
+
import { sessionExecutorKindEffectSchema, sessionObserveParametersEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
16
|
+
import { DEFAULT_SESSION_SPAWN_CAPS, MAX_SESSION_INBOX_CHECK_LIMIT, MAX_SESSION_LABEL_KEY_LENGTH, MAX_SESSION_LABEL_VALUE_LENGTH, MAX_SESSION_LABELS, MAX_SESSION_MESSAGE_BODY_BYTES, MAX_SESSION_MESSAGE_SUBJECT_BYTES, MAX_SESSION_SETTLED_IDLE_SECONDS, MAX_SESSION_SPAWN_CHILD_COUNT, MAX_SESSION_SPAWN_DEPTH, MAX_SESSION_TITLE_LENGTH, MAX_SESSION_WAIT_MILLISECONDS, MAX_SESSION_WAIT_STATES, SESSION_ATTENTION_VALUES, SESSION_CHILD_TARGET_TYPE, SESSION_EFFORT_LEVELS, SESSION_PERMISSION_MODES, SESSION_SPAWN_CAP_BOUNDS, SESSION_SPAWN_CAPS_TARGET, sessionAcceptsModel, sessionEffortLevels, sessionPermissionModes, } from "./policy.js";
|
|
11
17
|
import { sessionTurnEventEffectSchema } from "./turn-event-effect-schema.js";
|
|
12
18
|
import { SESSION_EVENT_SCHEMA_VERSION, SESSION_SCHEMA_VERSION, } from "./version.js";
|
|
13
|
-
import { sessionArchiveEffectSchema, sessionArchiveParametersEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, sessionWorktreeCreatedEffectSchema, sessionWorktreeEffectSchema, sessionWorktreeRemovedEffectSchema, sessionWorktreeRequestEffectSchema, } from "./worktree-effect-schema.js";
|
|
19
|
+
import { gitRevisionEffectSchema, sessionArchiveEffectSchema, sessionArchiveParametersEffectSchema, sessionArchiveSummaryEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, sessionGitStatusParametersEffectSchema, sessionGitStatusResultEffectSchema, sessionStartDirectoryEffectSchema, sessionTranscriptPathEffectSchema, sessionWorktreeCreatedEffectSchema, sessionWorktreeEffectSchema, sessionWorktreeRemovedEffectSchema, sessionWorktreeRequestEffectSchema, } from "./worktree-effect-schema.js";
|
|
14
20
|
const MAX_PAGE_SIZE = 100;
|
|
15
21
|
const MAX_EVENT_PAGE_SIZE = 32;
|
|
16
22
|
const utf8 = new TextEncoder();
|
|
@@ -28,9 +34,16 @@ const revisionEffectSchema = aggregateRevisionEffectSchema;
|
|
|
28
34
|
export const sessionTitleEffectSchema = Schema.String.check(Schema.isBetweenLength(1, MAX_SESSION_TITLE_LENGTH), Schema.makeFilter((value) => value.trim() === value && !hasControlCharacter(value), {
|
|
29
35
|
expected: "a one-line title of 1 to 80 characters without surrounding spaces",
|
|
30
36
|
}));
|
|
37
|
+
/**
|
|
38
|
+
* Up to 8 labels that tell a person or a bot which lane a Session belongs to
|
|
39
|
+
* (owner, lane, goal). A key is a lower-case name of up to 32 characters; a
|
|
40
|
+
* value is 1 to 64 printable ASCII characters without spaces or commas. A
|
|
41
|
+
* label is not a place for secrets: it shows in every Session list.
|
|
42
|
+
*/
|
|
43
|
+
export const sessionLabelsEffectSchema = Schema.Record(Schema.String.check(Schema.isPattern(new RegExp(`^[a-z][a-z0-9_-]{0,${String(MAX_SESSION_LABEL_KEY_LENGTH - 1)}}$`, "u"))), Schema.String.check(Schema.isPattern(new RegExp(`^[\\x21-\\x2b\\x2d-\\x7e]{1,${String(MAX_SESSION_LABEL_VALUE_LENGTH)}}$`, "u")))).check(Schema.makeFilter((value) => Object.keys(value).length <= MAX_SESSION_LABELS, { expected: "at most 8 labels" }));
|
|
31
44
|
/** 1 to 100 items. */
|
|
32
45
|
export const pageSizeEffectSchema = Schema.Int.check(Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(MAX_PAGE_SIZE));
|
|
33
|
-
const sessionStateEffectSchema = Schema.Literals([
|
|
46
|
+
export const sessionStateEffectSchema = Schema.Literals([
|
|
34
47
|
"idle",
|
|
35
48
|
"starting",
|
|
36
49
|
"running",
|
|
@@ -51,20 +64,35 @@ const sessionBaseFields = {
|
|
|
51
64
|
workspaceId: protocolIdentifierEffectSchema,
|
|
52
65
|
workspaceRevision: revisionEffectSchema,
|
|
53
66
|
};
|
|
54
|
-
export const
|
|
55
|
-
|
|
56
|
-
|
|
67
|
+
export const sessionEffortEffectSchema = Schema.Literals(SESSION_EFFORT_LEVELS[EXECUTOR_IDS.codex]);
|
|
68
|
+
export const supportsEffort = (kind, effort) => sessionEffortLevels(kind).includes(effort);
|
|
69
|
+
/** A permission mode either vendor CLI documents; the Node checks it against the Session's executor kind. */
|
|
70
|
+
export const sessionPermissionEffectSchema = Schema.Literals([
|
|
71
|
+
...SESSION_PERMISSION_MODES[EXECUTOR_IDS.claudeCode],
|
|
72
|
+
...SESSION_PERMISSION_MODES[EXECUTOR_IDS.codex],
|
|
57
73
|
]);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
74
|
+
export const supportsPermission = (kind, permission) => sessionPermissionModes(kind).includes(permission);
|
|
75
|
+
/** A prompt, when a reader may see it, goes with a status that says the Session waits on one, and its kind matches; options belong to a question. */
|
|
76
|
+
const promptMatchesStatus = (value) => {
|
|
77
|
+
if (value.prompt === undefined)
|
|
78
|
+
return true;
|
|
79
|
+
return value.status === "question"
|
|
80
|
+
? value.prompt.kind === "question"
|
|
81
|
+
: value.status === "approval" &&
|
|
82
|
+
value.prompt.kind !== "question" &&
|
|
83
|
+
value.prompt.options === undefined;
|
|
84
|
+
};
|
|
85
|
+
/** Held tasks come with their count: every one up to the bound, the bound's worth past it. */
|
|
86
|
+
const heldTasksMatchCount = (value) => value.heldTasks === undefined || value.heldTaskCount === undefined
|
|
87
|
+
? value.heldTasks === value.heldTaskCount
|
|
88
|
+
: value.heldTasks.length ===
|
|
89
|
+
Math.min(value.heldTaskCount, MAX_BOARD_HELD_TASKS);
|
|
62
90
|
/**
|
|
63
91
|
* Creation binds a vendor executor Session to one named account, once. A
|
|
64
|
-
* Session
|
|
65
|
-
*
|
|
92
|
+
* Session may also fix its model, on a gateway Connection or an executor kind
|
|
93
|
+
* that takes one, and the effort its vendor CLI documents.
|
|
66
94
|
*/
|
|
67
|
-
const sessionExecutorEffectSchema = Schema.Struct({
|
|
95
|
+
export const sessionExecutorEffectSchema = Schema.Struct({
|
|
68
96
|
connectionId: protocolIdentifierEffectSchema,
|
|
69
97
|
effort: Schema.optional(sessionEffortEffectSchema),
|
|
70
98
|
kind: sessionExecutorKindEffectSchema,
|
|
@@ -72,20 +100,73 @@ const sessionExecutorEffectSchema = Schema.Struct({
|
|
|
72
100
|
}).check(Schema.makeFilter((value) => value.effort === undefined || supportsEffort(value.kind, value.effort), { expected: "an effort level the executor kind supports" }));
|
|
73
101
|
export const sessionEffectSchema = Schema.Struct({
|
|
74
102
|
...sessionBaseFields,
|
|
103
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
104
|
+
activity: Schema.optional(sessionActivityEffectSchema),
|
|
75
105
|
agentDefinitionRef: Schema.optional(agentDefinitionReferenceEffectSchema),
|
|
106
|
+
/**
|
|
107
|
+
* `none` for a host-authority Session: the vendor harness runs as the
|
|
108
|
+
* Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
|
|
109
|
+
* A sandboxed Session carries none.
|
|
110
|
+
*/
|
|
111
|
+
containment: Schema.optional(Schema.Literal("none")),
|
|
76
112
|
executor: Schema.optional(sessionExecutorEffectSchema),
|
|
77
113
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
78
114
|
failure: Schema.optional(failureDetailEffectSchema),
|
|
115
|
+
/** The count of board tasks the Session holds now; present on `session.list`, `session.show` and `session.wait`, with `heldTasks`. */
|
|
116
|
+
heldTaskCount: Schema.optional(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),
|
|
117
|
+
/**
|
|
118
|
+
* The board tasks the Session holds now, newest claim first, at most
|
|
119
|
+
* `MAX_BOARD_HELD_TASKS`; `heldTaskCount` counts every one.
|
|
120
|
+
*/
|
|
121
|
+
heldTasks: Schema.optional(Schema.Array(boardHeldTaskEffectSchema).check(Schema.isMaxLength(MAX_BOARD_HELD_TASKS))),
|
|
122
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
123
|
+
labels: Schema.optional(sessionLabelsEffectSchema),
|
|
124
|
+
/** 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. */
|
|
125
|
+
latestTurnId: Schema.optional(protocolIdentifierEffectSchema),
|
|
126
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
127
|
+
latestTurnState: Schema.optional(turnStateEffectSchema),
|
|
128
|
+
/** The Session that spawned or created this one, fixed at creation; absent for a top-level Session. */
|
|
129
|
+
parentSessionId: Schema.optional(protocolIdentifierEffectSchema),
|
|
130
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
131
|
+
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
132
|
+
/**
|
|
133
|
+
* The prompt a `question` or `approval` Session waits on, with its text and
|
|
134
|
+
* options. `session.list` and `session.show` return it while `status` is
|
|
135
|
+
* one of the two and never otherwise: a `question` names a question
|
|
136
|
+
* prompt, an `approval` any other kind. A reader who may not read the
|
|
137
|
+
* approval (a Session principal listing its Project) gets the status without
|
|
138
|
+
* it.
|
|
139
|
+
*/
|
|
140
|
+
prompt: Schema.optional(approvalPromptEffectSchema),
|
|
141
|
+
/**
|
|
142
|
+
* Why a recovering Session stopped retrying: its retries ran out and it waits
|
|
143
|
+
* for `session.resume` or a Node start. Absent while it still retries and in
|
|
144
|
+
* every other state.
|
|
145
|
+
*/
|
|
146
|
+
recovery: Schema.optional(failureDetailEffectSchema),
|
|
79
147
|
schemaVersion: Schema.Literal(SESSION_SCHEMA_VERSION),
|
|
148
|
+
/** Why `session.list` with `settled` returned this Session: `stopped` or `failed` by state, `idle` after its idle time. */
|
|
149
|
+
settledReason: Schema.optional(Schema.Literals(["failed", "idle", "stopped"])),
|
|
150
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
151
|
+
status: Schema.optional(sessionStatusEffectSchema),
|
|
80
152
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
81
153
|
title: Schema.optional(sessionTitleEffectSchema),
|
|
154
|
+
/**
|
|
155
|
+
* Set at creation: when a child's turn ends, the Node queues one turn on
|
|
156
|
+
* this Session naming the child, the turn and how it ended (SELF-3).
|
|
157
|
+
* Absent when off.
|
|
158
|
+
*/
|
|
159
|
+
wakeOnChildSettle: Schema.optional(Schema.Literal(true)),
|
|
82
160
|
/** A coding Session's own worktree; a reading Session has none. */
|
|
83
161
|
worktree: Schema.optional(sessionWorktreeEffectSchema),
|
|
84
162
|
}).check(Schema.makeFilter((value) => (value.executor === undefined ||
|
|
85
163
|
value.agentDefinitionRef === undefined) &&
|
|
86
164
|
(value.worktree === undefined || value.executor !== undefined) &&
|
|
87
|
-
(value.failure === undefined || value.state === "failed")
|
|
88
|
-
|
|
165
|
+
(value.failure === undefined || value.state === "failed") &&
|
|
166
|
+
(value.recovery === undefined || value.state === "recovering") &&
|
|
167
|
+
promptMatchesStatus(value) &&
|
|
168
|
+
heldTasksMatchCount(value), {
|
|
169
|
+
expected: "an executor Session without an Agent definition, a worktree only for an executor Session, a recovery reason only while recovering, a prompt only with its status, and held tasks with their count",
|
|
89
170
|
}));
|
|
90
171
|
const emptyPayloadEffectSchema = Schema.Record(Schema.String, Schema.Never);
|
|
91
172
|
const createdPayloadEffectSchema = Schema.Struct({
|
|
@@ -95,8 +176,16 @@ const createdPayloadEffectSchema = Schema.Struct({
|
|
|
95
176
|
workingDirectory: Schema.Literals(["original", "relocated"]),
|
|
96
177
|
})),
|
|
97
178
|
agentDefinitionRef: Schema.optional(agentDefinitionReferenceEffectSchema),
|
|
179
|
+
/** The actor that opted a host-authority Session out of the sandbox. */
|
|
180
|
+
authorizedBy: Schema.optional(protocolIdentifierEffectSchema),
|
|
181
|
+
/** `none` when the Session runs with host authority. */
|
|
182
|
+
containment: Schema.optional(Schema.Literal("none")),
|
|
183
|
+
/** Where a host-authority Session starts, as the caller asked. */
|
|
184
|
+
cwd: Schema.optional(sessionStartDirectoryEffectSchema),
|
|
98
185
|
/** The account the Session binds to, named or picked by the Node. */
|
|
99
186
|
executor: Schema.optional(sessionExecutorEffectSchema),
|
|
187
|
+
/** The permission mode a host-authority Session passes to its vendor CLI. */
|
|
188
|
+
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
100
189
|
projectId: protocolIdentifierEffectSchema,
|
|
101
190
|
workspaceId: protocolIdentifierEffectSchema,
|
|
102
191
|
workspaceRevision: revisionEffectSchema,
|
|
@@ -120,6 +209,11 @@ const sessionCreatedEventEffectSchema = sessionEventWithPayloadEffectSchema("ses
|
|
|
120
209
|
const sessionStartRequestedEventEffectSchema = sessionEventWithPayloadEffectSchema("session.start.requested", emptyPayloadEffectSchema);
|
|
121
210
|
const sessionRuntimeStartedEventEffectSchema = sessionEventWithPayloadEffectSchema("session.runtime.started", runtimeReadyPayloadEffectSchema);
|
|
122
211
|
const sessionRuntimeRecoveryRequestedEventEffectSchema = sessionEventWithPayloadEffectSchema("session.runtime.recovery.requested", emptyPayloadEffectSchema);
|
|
212
|
+
/**
|
|
213
|
+
* Why a recovering Session stopped retrying changed: `recovery` holds the new
|
|
214
|
+
* reason, and its absence means a try started and cleared it.
|
|
215
|
+
*/
|
|
216
|
+
const sessionRuntimeRecoveryUpdatedEventEffectSchema = sessionEventWithPayloadEffectSchema("session.runtime.recovery.updated", Schema.Struct({ recovery: Schema.optional(failureDetailEffectSchema) }));
|
|
123
217
|
const sessionRuntimeResumedEventEffectSchema = sessionEventWithPayloadEffectSchema("session.runtime.resumed", runtimeReadyPayloadEffectSchema);
|
|
124
218
|
/**
|
|
125
219
|
* A person stopped the Session, directly or through the emergency hold that
|
|
@@ -147,6 +241,7 @@ export const sessionEventEffectSchema = Schema.Union([
|
|
|
147
241
|
sessionStartRequestedEventEffectSchema,
|
|
148
242
|
sessionRuntimeStartedEventEffectSchema,
|
|
149
243
|
sessionRuntimeRecoveryRequestedEventEffectSchema,
|
|
244
|
+
sessionRuntimeRecoveryUpdatedEventEffectSchema,
|
|
150
245
|
sessionRuntimeResumedEventEffectSchema,
|
|
151
246
|
sessionRuntimeFailedEventEffectSchema,
|
|
152
247
|
sessionStoppedEventEffectSchema,
|
|
@@ -161,6 +256,25 @@ const sessionCreateBaseFields = {
|
|
|
161
256
|
expectedRevision: Schema.Literal("0"),
|
|
162
257
|
workspaceId: protocolIdentifierEffectSchema,
|
|
163
258
|
};
|
|
259
|
+
/**
|
|
260
|
+
* A permission mode needs host authority. Host authority needs an executor or
|
|
261
|
+
* an account, and takes no Agent, definition or worktree: those are the
|
|
262
|
+
* sandboxed worker's options. The one role it takes is `orchestrator` with an
|
|
263
|
+
* `owner` label: it records the manager slot
|
|
264
|
+
* ([D-201](https://maia-os.vllnt.com/en/docs/decisions#d-201)) and grants no credential. A
|
|
265
|
+
* mode must be one the executor kind defines.
|
|
266
|
+
*/
|
|
267
|
+
const hostAuthorityAllowed = (value) => value.hostAuthority === undefined
|
|
268
|
+
? value.permission === undefined
|
|
269
|
+
: (value.connectionId !== undefined || value.executor !== undefined) &&
|
|
270
|
+
value.agentId === undefined &&
|
|
271
|
+
value.definitionRef === undefined &&
|
|
272
|
+
value.worktree === undefined &&
|
|
273
|
+
(value.role === undefined ||
|
|
274
|
+
(value.role === "orchestrator" && value.labels?.owner !== undefined)) &&
|
|
275
|
+
(value.permission === undefined ||
|
|
276
|
+
value.executor === undefined ||
|
|
277
|
+
supportsPermission(value.executor, value.permission));
|
|
164
278
|
/**
|
|
165
279
|
* A Session runs on a named account (`connectionId`), on the account the Node
|
|
166
280
|
* picks for an executor kind (`executor`), or as a Maia agent, optionally from
|
|
@@ -168,20 +282,36 @@ const sessionCreateBaseFields = {
|
|
|
168
282
|
* both `connectionId` and `executor`, and optionally the `model`. An Agent
|
|
169
283
|
* (`agentId`) supplies the harness, Connection, model and effort itself, so it
|
|
170
284
|
* excludes every one of them. `role` (default `worker`) bounds what the
|
|
171
|
-
* Session's own credential reaches.
|
|
172
|
-
*
|
|
173
|
-
*
|
|
285
|
+
* Session's own credential reaches. `hostAuthority` opts one executor Session
|
|
286
|
+
* out of the Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)): it
|
|
287
|
+
* runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
|
|
288
|
+
* role, and passes `permission` to its vendor CLI unchanged. A vendor
|
|
289
|
+
* executor Session with `worktree` is a coding Session: it gets its own
|
|
290
|
+
* worktree from the base ref of the Workspace's repository and may write
|
|
291
|
+
* inside it.
|
|
174
292
|
*/
|
|
175
293
|
export const sessionCreateParametersEffectSchema = Schema.Struct({
|
|
176
294
|
...sessionCreateBaseFields,
|
|
177
295
|
agentId: Schema.optional(agentIdentifierEffectSchema),
|
|
178
296
|
connectionId: Schema.optional(protocolIdentifierEffectSchema),
|
|
297
|
+
/** Where the Session starts; the Node checks it against the Workspace root. */
|
|
298
|
+
cwd: Schema.optional(sessionStartDirectoryEffectSchema),
|
|
179
299
|
definitionRef: Schema.optional(agentDefinitionReferenceEffectSchema),
|
|
180
300
|
effort: Schema.optional(sessionEffortEffectSchema),
|
|
181
301
|
executor: Schema.optional(sessionExecutorKindEffectSchema),
|
|
302
|
+
hostAuthority: Schema.optional(Schema.Literal(true)),
|
|
303
|
+
labels: Schema.optional(sessionLabelsEffectSchema),
|
|
182
304
|
model: Schema.optional(connectionModelIdEffectSchema),
|
|
305
|
+
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
183
306
|
role: Schema.optional(sessionRoleEffectSchema),
|
|
184
307
|
title: Schema.optional(sessionTitleEffectSchema),
|
|
308
|
+
/**
|
|
309
|
+
* Opts this Session in to parent wakes (SELF-3): each time a turn of one of
|
|
310
|
+
* its children ends (completed, failed, interrupted or outcome unknown), the
|
|
311
|
+
* Node queues one turn here with the child's Session ID, the turn ID and
|
|
312
|
+
* that state, never the child's text. Off by default.
|
|
313
|
+
*/
|
|
314
|
+
wakeOnChildSettle: Schema.optional(Schema.Literal(true)),
|
|
185
315
|
worktree: Schema.optional(sessionWorktreeRequestEffectSchema),
|
|
186
316
|
}).check(Schema.makeFilter((value) => (value.agentId === undefined ||
|
|
187
317
|
(value.connectionId === undefined &&
|
|
@@ -191,7 +321,10 @@ export const sessionCreateParametersEffectSchema = Schema.Struct({
|
|
|
191
321
|
value.model === undefined)) &&
|
|
192
322
|
(value.definitionRef === undefined ||
|
|
193
323
|
(value.connectionId === undefined && value.executor === undefined)) &&
|
|
194
|
-
(value.model === undefined ||
|
|
324
|
+
(value.model === undefined ||
|
|
325
|
+
value.connectionId !== undefined ||
|
|
326
|
+
(value.executor !== undefined &&
|
|
327
|
+
sessionAcceptsModel(value.executor))) &&
|
|
195
328
|
(value.effort === undefined ||
|
|
196
329
|
((value.connectionId !== undefined || value.executor !== undefined) &&
|
|
197
330
|
(value.executor === undefined ||
|
|
@@ -199,39 +332,46 @@ export const sessionCreateParametersEffectSchema = Schema.Struct({
|
|
|
199
332
|
(value.worktree === undefined ||
|
|
200
333
|
value.agentId !== undefined ||
|
|
201
334
|
value.connectionId !== undefined ||
|
|
202
|
-
value.executor !== undefined)
|
|
203
|
-
|
|
335
|
+
value.executor !== undefined) &&
|
|
336
|
+
(value.cwd === undefined ||
|
|
337
|
+
((value.connectionId !== undefined || value.executor !== undefined) &&
|
|
338
|
+
(value.worktree === undefined || !value.cwd.startsWith("/")))) &&
|
|
339
|
+
hostAuthorityAllowed(value), {
|
|
340
|
+
expected: "an Agent alone, an Agent definition alone, or an executor connection or kind; a model only with a connection or an executor kind that takes one; an effort only for an executor Session, at a level its kind supports; a worktree only for an executor Session or an Agent; a start directory only for an executor Session, relative to the worktree when there is one; host authority only for an executor Session without a worktree or Agent (its one role is orchestrator, with an owner label), and a permission mode only with it, at a value its kind supports",
|
|
204
341
|
}));
|
|
205
|
-
const sessionSpawnHarnessEffectSchema = Schema.Literals(["maia-agent", "pi"]);
|
|
206
|
-
export const sessionSpawnParametersEffectSchema = Schema.Struct({
|
|
207
|
-
...sessionCreateBaseFields,
|
|
208
|
-
definitionRef: Schema.optional(agentDefinitionReferenceEffectSchema),
|
|
209
|
-
harness: sessionSpawnHarnessEffectSchema,
|
|
210
|
-
parentSessionId: protocolIdentifierEffectSchema,
|
|
211
|
-
});
|
|
212
342
|
/**
|
|
213
343
|
* One page of Sessions in creation order: of one Project, or of the whole
|
|
214
344
|
* Node without `projectId`; without `afterCursor` the first page and without
|
|
215
345
|
* `limit` `DEFAULT_SESSION_LIST_PAGE_SIZE` Sessions. `states` keeps Sessions
|
|
216
346
|
* in those states; `attention` keeps Sessions the Node reports an attention
|
|
217
|
-
* value for.
|
|
347
|
+
* value for; `parentSessionId` keeps the direct children of that Session.
|
|
218
348
|
*/
|
|
219
349
|
export const sessionListParametersEffectSchema = Schema.Struct({
|
|
220
350
|
afterCursor: Schema.optional(revisionEffectSchema),
|
|
221
351
|
attention: Schema.optional(Schema.Boolean),
|
|
352
|
+
/** With `settled`: how long a Session is idle before it counts as settled; the Node's default is one day. */
|
|
353
|
+
idleForSeconds: Schema.optional(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(MAX_SESSION_SETTLED_IDLE_SECONDS))),
|
|
354
|
+
/** Sessions that carry these labels, each with the given value. */
|
|
355
|
+
labels: Schema.optional(sessionLabelsEffectSchema),
|
|
222
356
|
limit: Schema.optional(pageSizeEffectSchema),
|
|
357
|
+
/** Keeps the direct children of this Session; an unknown Session has none. */
|
|
358
|
+
parentSessionId: Schema.optional(protocolIdentifierEffectSchema),
|
|
223
359
|
projectId: Schema.optional(protocolIdentifierEffectSchema),
|
|
360
|
+
/** Keeps non-archived Sessions that stopped, failed or sat idle for `idleForSeconds`. */
|
|
361
|
+
settled: Schema.optional(Schema.Literal(true)),
|
|
224
362
|
states: Schema.optional(Schema.Array(sessionStateEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(9))),
|
|
225
|
-
});
|
|
363
|
+
}).check(Schema.makeFilter((value) => value.idleForSeconds === undefined || value.settled === true, { expected: "an idle time only with the settled filter" }));
|
|
226
364
|
export const sessionShowParametersEffectSchema = Schema.Struct({
|
|
227
365
|
sessionId: protocolIdentifierEffectSchema,
|
|
228
366
|
});
|
|
229
367
|
export const sessionWaitParametersEffectSchema = Schema.Struct({
|
|
368
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
369
|
+
activities: Schema.optional(Schema.Array(sessionActivityEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(4))),
|
|
230
370
|
sessionId: protocolIdentifierEffectSchema,
|
|
231
371
|
/** The wait ends when the Session is in any of these states. */
|
|
232
|
-
states: Schema.Array(sessionStateEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(MAX_SESSION_WAIT_STATES)),
|
|
372
|
+
states: Schema.optional(Schema.Array(sessionStateEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(MAX_SESSION_WAIT_STATES))),
|
|
233
373
|
waitMilliseconds: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(MAX_SESSION_WAIT_MILLISECONDS)),
|
|
234
|
-
});
|
|
374
|
+
}).check(Schema.makeFilter((value) => value.states !== undefined || value.activities !== undefined, { expected: "states, activities or both to wait for" }));
|
|
235
375
|
export const sessionEventsListParametersEffectSchema = Schema.Struct({
|
|
236
376
|
afterSessionCursor: revisionEffectSchema,
|
|
237
377
|
limit: Schema.Int.check(Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(MAX_EVENT_PAGE_SIZE)),
|
|
@@ -242,6 +382,237 @@ export const sessionStartParametersEffectSchema = Schema.Struct({
|
|
|
242
382
|
expectedRevision: revisionEffectSchema,
|
|
243
383
|
sessionId: protocolIdentifierEffectSchema,
|
|
244
384
|
});
|
|
385
|
+
/** The command ID leaves room for the `.start` and `.send` IDs a client derives from it. */
|
|
386
|
+
const sessionSuccessorCommandIdEffectSchema = protocolIdentifierEffectSchema.check(Schema.isMaxLength(122));
|
|
387
|
+
/** What a preview seals and its confirmation repeats: the input digest, its proof and the instant the proof expires. */
|
|
388
|
+
const sessionPreviewProof = {
|
|
389
|
+
inputDigest: Schema.String.check(Schema.isPattern(/^[a-f0-9]{64}$/u)),
|
|
390
|
+
proof: Schema.String.check(Schema.isPattern(/^[A-Za-z0-9_-]{43}$/u)),
|
|
391
|
+
validUntil: recordedAtEffectSchema,
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* What a person repeats to confirm a fork: the preview's digest and proof,
|
|
395
|
+
* bound to the Session revision it saw, the turn the fork stops at and, for a
|
|
396
|
+
* coding Session, the commit its new worktree starts from.
|
|
397
|
+
*/
|
|
398
|
+
const sessionForkConfirmation = {
|
|
399
|
+
checkpoint: Schema.optional(gitRevisionEffectSchema),
|
|
400
|
+
commandId: sessionSuccessorCommandIdEffectSchema,
|
|
401
|
+
expectedRevision: revisionEffectSchema,
|
|
402
|
+
...sessionPreviewProof,
|
|
403
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
404
|
+
turnId: protocolIdentifierEffectSchema,
|
|
405
|
+
};
|
|
406
|
+
/** A fork stops at a completed turn of the Session; without `turnId` it takes the newest one. */
|
|
407
|
+
export const sessionForkPreviewParametersEffectSchema = Schema.Struct({
|
|
408
|
+
commandId: sessionSuccessorCommandIdEffectSchema,
|
|
409
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
410
|
+
turnId: Schema.optional(protocolIdentifierEffectSchema),
|
|
411
|
+
});
|
|
412
|
+
export const sessionForkConfirmParametersEffectSchema = Schema.Struct(sessionForkConfirmation);
|
|
413
|
+
/**
|
|
414
|
+
* What a switch moves a Session to: an executor, a connection, a model or any
|
|
415
|
+
* mix. What the target leaves out stays as the Session has it, except that a
|
|
416
|
+
* new executor takes the Node's pick of its accounts, not the old account.
|
|
417
|
+
*/
|
|
418
|
+
const sessionSwitchTargetEffectSchema = Schema.Struct({
|
|
419
|
+
connectionId: Schema.optional(protocolIdentifierEffectSchema),
|
|
420
|
+
executor: Schema.optional(sessionExecutorKindEffectSchema),
|
|
421
|
+
model: Schema.optional(connectionModelIdEffectSchema),
|
|
422
|
+
}).check(Schema.makeFilter((value) => value.connectionId !== undefined ||
|
|
423
|
+
value.executor !== undefined ||
|
|
424
|
+
value.model !== undefined, { expected: "an executor, a connection or a model to switch to" }));
|
|
425
|
+
/** What a person repeats to confirm a switch: the preview's digest and proof, bound to the Session revision it saw. */
|
|
426
|
+
const sessionSwitchConfirmation = {
|
|
427
|
+
commandId: sessionSuccessorCommandIdEffectSchema,
|
|
428
|
+
expectedRevision: revisionEffectSchema,
|
|
429
|
+
...sessionPreviewProof,
|
|
430
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
431
|
+
target: sessionSwitchTargetEffectSchema,
|
|
432
|
+
};
|
|
433
|
+
export const sessionSwitchPreviewParametersEffectSchema = Schema.Struct({
|
|
434
|
+
commandId: sessionSwitchConfirmation.commandId,
|
|
435
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
436
|
+
target: sessionSwitchTargetEffectSchema,
|
|
437
|
+
});
|
|
438
|
+
export const sessionSwitchConfirmParametersEffectSchema = Schema.Struct(sessionSwitchConfirmation);
|
|
439
|
+
const sha256HexEffectSchema = Schema.String.check(Schema.isPattern(/^[a-f0-9]{64}$/u));
|
|
440
|
+
/**
|
|
441
|
+
* What a person repeats to confirm a Project setup script: the preview's
|
|
442
|
+
* digest and proof, bound to the Session revision it saw and to the digest of
|
|
443
|
+
* the script as the worktree holds it.
|
|
444
|
+
*/
|
|
445
|
+
const sessionSetupConfirmation = {
|
|
446
|
+
commandId: protocolIdentifierEffectSchema,
|
|
447
|
+
expectedRevision: revisionEffectSchema,
|
|
448
|
+
...sessionPreviewProof,
|
|
449
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
450
|
+
setupDigest: sha256HexEffectSchema,
|
|
451
|
+
};
|
|
452
|
+
/** The script a coding Session's worktree would run: its command and the digest of each worktree file the command names. */
|
|
453
|
+
const sessionSetupScriptEffectSchema = Schema.Struct({
|
|
454
|
+
command: Schema.Array(Schema.String.check(Schema.isMaxLength(1024))).check(Schema.isBetweenLength(1, 32)),
|
|
455
|
+
files: Schema.Array(Schema.Struct({
|
|
456
|
+
path: Schema.String.check(Schema.isMaxLength(1024)),
|
|
457
|
+
sha256: sha256HexEffectSchema,
|
|
458
|
+
})).check(Schema.isMaxLength(32)),
|
|
459
|
+
});
|
|
460
|
+
export const sessionSetupPreviewParametersEffectSchema = Schema.Struct({
|
|
461
|
+
commandId: protocolIdentifierEffectSchema,
|
|
462
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
463
|
+
});
|
|
464
|
+
export const sessionSetupConfirmParametersEffectSchema = Schema.Struct(sessionSetupConfirmation);
|
|
465
|
+
const spawnCapBounded = (bounds) => Schema.Int.check(Schema.isBetween(bounds));
|
|
466
|
+
/** The three numbers a Node holds every spawned child to (CAP). */
|
|
467
|
+
export const sessionSpawnCapsEffectSchema = Schema.Struct({
|
|
468
|
+
concurrency: spawnCapBounded(SESSION_SPAWN_CAP_BOUNDS.concurrency),
|
|
469
|
+
depth: spawnCapBounded(SESSION_SPAWN_CAP_BOUNDS.depth),
|
|
470
|
+
fanOut: spawnCapBounded(SESSION_SPAWN_CAP_BOUNDS.fanOut),
|
|
471
|
+
});
|
|
472
|
+
/** Revision `0` is the defaults of a Node whose caps no person has changed. */
|
|
473
|
+
export const sessionSpawnCapsRecordEffectSchema = Schema.Struct({
|
|
474
|
+
caps: sessionSpawnCapsEffectSchema,
|
|
475
|
+
revision: aggregateRevisionEffectSchema,
|
|
476
|
+
source: Schema.Literals(["default", "node"]),
|
|
477
|
+
updatedAt: Schema.optional(recordedAtEffectSchema),
|
|
478
|
+
}).check(Schema.makeFilter((value) => value.source === "default"
|
|
479
|
+
? value.revision === "0" &&
|
|
480
|
+
value.updatedAt === undefined &&
|
|
481
|
+
value.caps.concurrency === DEFAULT_SESSION_SPAWN_CAPS.concurrency &&
|
|
482
|
+
value.caps.depth === DEFAULT_SESSION_SPAWN_CAPS.depth &&
|
|
483
|
+
value.caps.fanOut === DEFAULT_SESSION_SPAWN_CAPS.fanOut
|
|
484
|
+
: value.revision !== "0" && value.updatedAt !== undefined, {
|
|
485
|
+
expected: "the default caps at revision 0 without updatedAt, or changed caps with both",
|
|
486
|
+
}));
|
|
487
|
+
const childCount = Schema.Int.check(Schema.isBetween({ maximum: MAX_SESSION_SPAWN_CHILD_COUNT, minimum: 0 }));
|
|
488
|
+
/** A parent's children: every one it spawned (`total`), and those that have not ended (`live`). */
|
|
489
|
+
export const sessionSpawnChildrenEffectSchema = Schema.Struct({
|
|
490
|
+
live: childCount,
|
|
491
|
+
total: childCount,
|
|
492
|
+
}).check(Schema.makeFilter((value) => value.live <= value.total, {
|
|
493
|
+
expected: "no more live children than children",
|
|
494
|
+
}));
|
|
495
|
+
/** A Session's spawn depth: the spawns between it and the Session at the root of its tree, which has depth 0. */
|
|
496
|
+
export const sessionSpawnDepthEffectSchema = Schema.Int.check(Schema.isBetween({ maximum: MAX_SESSION_SPAWN_DEPTH, minimum: 0 }));
|
|
497
|
+
export const sessionSpawnCapsShowParametersEffectSchema = Schema.Struct({
|
|
498
|
+
sessionId: Schema.optional(protocolIdentifierEffectSchema),
|
|
499
|
+
});
|
|
500
|
+
/**
|
|
501
|
+
* What one Session uses of the caps on this Node: its children here, and its
|
|
502
|
+
* depth and role when this Node holds it. A client adds the children of every
|
|
503
|
+
* Node; an orchestrator's children all live on its own Node (D-346).
|
|
504
|
+
*/
|
|
505
|
+
export const sessionSpawnStandingEffectSchema = Schema.Struct({
|
|
506
|
+
children: sessionSpawnChildrenEffectSchema,
|
|
507
|
+
depth: Schema.optional(sessionSpawnDepthEffectSchema),
|
|
508
|
+
role: Schema.optional(sessionRoleEffectSchema),
|
|
509
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
510
|
+
});
|
|
511
|
+
export const sessionSpawnCapsShowResultEffectSchema = Schema.Struct({
|
|
512
|
+
caps: sessionSpawnCapsRecordEffectSchema,
|
|
513
|
+
method: Schema.Literal("session.spawn-caps.show"),
|
|
514
|
+
standing: Schema.optional(sessionSpawnStandingEffectSchema),
|
|
515
|
+
});
|
|
516
|
+
const spawnCapsChange = {
|
|
517
|
+
caps: sessionSpawnCapsEffectSchema,
|
|
518
|
+
commandId: protocolIdentifierEffectSchema,
|
|
519
|
+
expectedRevision: aggregateRevisionEffectSchema,
|
|
520
|
+
};
|
|
521
|
+
/** What a caps preview seals and its confirmation repeats. */
|
|
522
|
+
const spawnCapsConfirmation = {
|
|
523
|
+
inputDigest: Schema.String.check(Schema.isPattern(/^[a-f0-9]{64}$/u)),
|
|
524
|
+
proof: Schema.String.check(Schema.isPattern(/^[A-Za-z0-9_-]{43}$/u)),
|
|
525
|
+
validUntil: recordedAtEffectSchema,
|
|
526
|
+
};
|
|
527
|
+
/** A person previews new caps at the revision they read, then confirms that exact preview. */
|
|
528
|
+
export const sessionSpawnCapsPreviewParametersEffectSchema = Schema.Struct(spawnCapsChange);
|
|
529
|
+
export const sessionSpawnCapsConfirmParametersEffectSchema = Schema.Struct({
|
|
530
|
+
...spawnCapsChange,
|
|
531
|
+
...spawnCapsConfirmation,
|
|
532
|
+
});
|
|
533
|
+
/** The caps now and the caps the confirmation would leave, sealed for it. */
|
|
534
|
+
export const sessionSpawnCapsPreviewResultEffectSchema = Schema.Struct({
|
|
535
|
+
...spawnCapsChange,
|
|
536
|
+
...spawnCapsConfirmation,
|
|
537
|
+
current: sessionSpawnCapsRecordEffectSchema,
|
|
538
|
+
method: Schema.Literal("session.spawn-caps.preview"),
|
|
539
|
+
});
|
|
540
|
+
export const sessionSpawnCapsConfirmResultEffectSchema = Schema.Struct({
|
|
541
|
+
caps: sessionSpawnCapsRecordEffectSchema,
|
|
542
|
+
delivery: Schema.Literals(["new", "duplicate"]),
|
|
543
|
+
method: Schema.Literal("session.spawn-caps.confirm"),
|
|
544
|
+
receipt: commandReceiptEffectSchema,
|
|
545
|
+
}).check(Schema.makeFilter((result) => result.caps.source === "node" &&
|
|
546
|
+
result.receipt.method === result.method &&
|
|
547
|
+
result.receipt.target.type === SESSION_SPAWN_CAPS_TARGET.type &&
|
|
548
|
+
result.receipt.target.id === SESSION_SPAWN_CAPS_TARGET.id &&
|
|
549
|
+
result.receipt.aggregateRevision === result.caps.revision, { expected: "changed caps under their own receipt" }));
|
|
550
|
+
export const sessionSpawnCapsRequestEffectSchema = Schema.Union([
|
|
551
|
+
Schema.Struct({
|
|
552
|
+
method: Schema.Literal("session.spawn-caps.show"),
|
|
553
|
+
parameters: sessionSpawnCapsShowParametersEffectSchema,
|
|
554
|
+
}),
|
|
555
|
+
Schema.Struct({
|
|
556
|
+
method: Schema.Literal("session.spawn-caps.preview"),
|
|
557
|
+
parameters: sessionSpawnCapsPreviewParametersEffectSchema,
|
|
558
|
+
}),
|
|
559
|
+
Schema.Struct({
|
|
560
|
+
method: Schema.Literal("session.spawn-caps.confirm"),
|
|
561
|
+
parameters: sessionSpawnCapsConfirmParametersEffectSchema,
|
|
562
|
+
}),
|
|
563
|
+
]);
|
|
564
|
+
export const sessionSpawnCapsResultEffectSchema = Schema.Union([
|
|
565
|
+
sessionSpawnCapsShowResultEffectSchema,
|
|
566
|
+
sessionSpawnCapsPreviewResultEffectSchema,
|
|
567
|
+
sessionSpawnCapsConfirmResultEffectSchema,
|
|
568
|
+
]);
|
|
569
|
+
/**
|
|
570
|
+
* The grant a child's parent holds: host authority and the permission mode it
|
|
571
|
+
* passes to its vendor CLI. The caller read it from the parent's own Node. A
|
|
572
|
+
* Node that holds the parent checks it against the parent's record, and one
|
|
573
|
+
* that does not cannot, so it applies the grant as given. The parent's spawn
|
|
574
|
+
* depth and its children on every other Node come the same way, for the caps
|
|
575
|
+
* (CAP): a Node adds its own children of the parent to the claimed ones, and
|
|
576
|
+
* holds the depth to the larger of the claim and its own (D-329). The role
|
|
577
|
+
* comes from the parent's Node too: a Node that does not hold an orchestrator
|
|
578
|
+
* parent refuses its child, since an orchestrator's own Node counts every
|
|
579
|
+
* child it has (D-346).
|
|
580
|
+
*/
|
|
581
|
+
const sessionSpawnParentEffectSchema = Schema.Struct({
|
|
582
|
+
children: sessionSpawnChildrenEffectSchema,
|
|
583
|
+
depth: sessionSpawnDepthEffectSchema,
|
|
584
|
+
hostAuthority: Schema.optional(Schema.Literal(true)),
|
|
585
|
+
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
586
|
+
role: sessionRoleEffectSchema,
|
|
587
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
588
|
+
}).check(Schema.makeFilter((value) => value.permission === undefined || value.hostAuthority === true, { expected: "a permission mode only with host authority" }));
|
|
589
|
+
/**
|
|
590
|
+
* An executor Session spawned under a parent that may live on another Node:
|
|
591
|
+
* the Workspace on this Node, the executor kind, and the grant the child asks
|
|
592
|
+
* for, which may not be wider than the parent's.
|
|
593
|
+
*/
|
|
594
|
+
const sessionSpawnChild = {
|
|
595
|
+
commandId: sessionSuccessorCommandIdEffectSchema,
|
|
596
|
+
executor: sessionExecutorKindEffectSchema,
|
|
597
|
+
hostAuthority: Schema.optional(Schema.Literal(true)),
|
|
598
|
+
parent: sessionSpawnParentEffectSchema,
|
|
599
|
+
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
600
|
+
workspaceId: protocolIdentifierEffectSchema,
|
|
601
|
+
};
|
|
602
|
+
const sessionSpawnGrantAllowed = (value) => value.permission === undefined ||
|
|
603
|
+
(value.hostAuthority === true &&
|
|
604
|
+
supportsPermission(value.executor, value.permission));
|
|
605
|
+
const sessionSpawnGrantFilter = Schema.makeFilter(sessionSpawnGrantAllowed, {
|
|
606
|
+
expected: "a permission mode only with host authority, at a value the executor kind supports",
|
|
607
|
+
});
|
|
608
|
+
/** What a person repeats to confirm a spawn: the preview's digest and proof, bound to the child, its grant and its parent. */
|
|
609
|
+
const sessionSpawnConfirmation = {
|
|
610
|
+
...sessionSpawnChild,
|
|
611
|
+
expectedRevision: Schema.Literal("0"),
|
|
612
|
+
...sessionPreviewProof,
|
|
613
|
+
};
|
|
614
|
+
export const sessionSpawnPreviewParametersEffectSchema = Schema.Struct(sessionSpawnChild).check(sessionSpawnGrantFilter);
|
|
615
|
+
export const sessionSpawnConfirmParametersEffectSchema = Schema.Struct(sessionSpawnConfirmation).check(sessionSpawnGrantFilter);
|
|
245
616
|
/** A new title at the Session's current revision. */
|
|
246
617
|
export const sessionRenameParametersEffectSchema = Schema.Struct({
|
|
247
618
|
commandId: protocolIdentifierEffectSchema,
|
|
@@ -249,9 +620,24 @@ export const sessionRenameParametersEffectSchema = Schema.Struct({
|
|
|
249
620
|
sessionId: protocolIdentifierEffectSchema,
|
|
250
621
|
title: sessionTitleEffectSchema,
|
|
251
622
|
});
|
|
252
|
-
/** Stop
|
|
623
|
+
/** Stop takes the same compare-and-set input as start. */
|
|
253
624
|
export const sessionStopParametersEffectSchema = sessionStartParametersEffectSchema;
|
|
254
|
-
|
|
625
|
+
/**
|
|
626
|
+
* A stopped or failed child that resumes is live again, so it counts against
|
|
627
|
+
* its parent's concurrency cap (D-336). The caller reads the parent's children
|
|
628
|
+
* on every Node but the one that holds the child, as a spawn does, and the
|
|
629
|
+
* Node adds the live children it holds. The Node refuses a child without this
|
|
630
|
+
* claim; a Session with no parent needs none.
|
|
631
|
+
*/
|
|
632
|
+
const sessionResumeParentEffectSchema = Schema.Struct({
|
|
633
|
+
children: sessionSpawnChildrenEffectSchema,
|
|
634
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
635
|
+
});
|
|
636
|
+
/** Resume takes the compare-and-set input of start, and the parent claim of a child. */
|
|
637
|
+
export const sessionResumeParametersEffectSchema = Schema.Struct({
|
|
638
|
+
...sessionStartParametersEffectSchema.fields,
|
|
639
|
+
parent: Schema.optional(sessionResumeParentEffectSchema),
|
|
640
|
+
});
|
|
255
641
|
export const sessionMessageSendParametersEffectSchema = Schema.Struct({
|
|
256
642
|
body: mailboxBodyEffectSchema,
|
|
257
643
|
commandId: protocolIdentifierEffectSchema,
|
|
@@ -357,21 +743,74 @@ export const sessionCreateResultEffectSchema = Schema.Struct({
|
|
|
357
743
|
receipt: commandReceiptEffectSchema,
|
|
358
744
|
session: sessionEffectSchema,
|
|
359
745
|
});
|
|
360
|
-
|
|
746
|
+
/** 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. */
|
|
747
|
+
export const sessionForkPreviewResultEffectSchema = Schema.Struct({
|
|
748
|
+
...sessionForkConfirmation,
|
|
749
|
+
method: Schema.Literal("session.fork.preview"),
|
|
750
|
+
path: Schema.Literal("context-handoff"),
|
|
751
|
+
});
|
|
752
|
+
/** The new Session under its create receipt, and `handoff`, the text of its first turn. */
|
|
753
|
+
const sessionSuccessorEffectFields = {
|
|
361
754
|
delivery: Schema.Literals(["new", "duplicate"]),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
parentSessionId: protocolIdentifierEffectSchema,
|
|
755
|
+
handoff: Schema.String,
|
|
756
|
+
path: Schema.Literal("context-handoff"),
|
|
365
757
|
receipt: commandReceiptEffectSchema,
|
|
366
758
|
session: sessionEffectSchema,
|
|
759
|
+
sourceSessionId: protocolIdentifierEffectSchema,
|
|
760
|
+
};
|
|
761
|
+
/** The fork's Session: the source keeps its binding, its worktree and its history. */
|
|
762
|
+
export const sessionForkConfirmResultEffectSchema = Schema.Struct({
|
|
763
|
+
...sessionSuccessorEffectFields,
|
|
764
|
+
method: Schema.Literal("session.fork.confirm"),
|
|
765
|
+
});
|
|
766
|
+
/** What a switch will do: the Session revision it starts from, and the path that carries the context over. */
|
|
767
|
+
export const sessionSwitchPreviewResultEffectSchema = Schema.Struct({
|
|
768
|
+
...sessionSwitchConfirmation,
|
|
769
|
+
method: Schema.Literal("session.switch.preview"),
|
|
770
|
+
path: Schema.Literal("context-handoff"),
|
|
771
|
+
});
|
|
772
|
+
/** The successor Session, shaped as a fork's result: the source keeps its binding and its history. */
|
|
773
|
+
export const sessionSwitchConfirmResultEffectSchema = Schema.Struct({
|
|
774
|
+
...sessionSuccessorEffectFields,
|
|
775
|
+
method: Schema.Literal("session.switch.confirm"),
|
|
367
776
|
});
|
|
368
|
-
|
|
777
|
+
/** What confirming will approve: the script and its digest, and whether the Project has approved that digest already. */
|
|
778
|
+
export const sessionSetupPreviewResultEffectSchema = Schema.Struct({
|
|
779
|
+
...sessionSetupConfirmation,
|
|
780
|
+
approved: Schema.Boolean,
|
|
781
|
+
method: Schema.Literal("session.setup.preview"),
|
|
782
|
+
setup: sessionSetupScriptEffectSchema,
|
|
783
|
+
});
|
|
784
|
+
/** The approval under its receipt: the Project runs a script with this digest without asking again. */
|
|
785
|
+
export const sessionSetupConfirmResultEffectSchema = Schema.Struct({
|
|
786
|
+
delivery: Schema.Literals(["new", "duplicate"]),
|
|
787
|
+
method: Schema.Literal("session.setup.confirm"),
|
|
788
|
+
receipt: commandReceiptEffectSchema,
|
|
789
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
790
|
+
setupDigest: sha256HexEffectSchema,
|
|
791
|
+
}).check(Schema.makeFilter((result) => result.receipt.state === "succeeded" &&
|
|
792
|
+
result.receipt.method === result.method &&
|
|
793
|
+
result.receipt.target.type === "session" &&
|
|
794
|
+
result.receipt.target.id === result.sessionId, { expected: "a setup approval matching its receipt" }));
|
|
795
|
+
/** What a spawn will do: the child, its grant and its parent, sealed for the confirmation. */
|
|
796
|
+
export const sessionSpawnPreviewResultEffectSchema = Schema.Struct({
|
|
797
|
+
...sessionSpawnConfirmation,
|
|
798
|
+
method: Schema.Literal("session.spawn.preview"),
|
|
799
|
+
}).check(sessionSpawnGrantFilter);
|
|
800
|
+
/** The child Session, created under a create receipt, and the parent it names. */
|
|
801
|
+
export const sessionSpawnConfirmResultEffectSchema = Schema.Struct({
|
|
802
|
+
delivery: Schema.Literals(["new", "duplicate"]),
|
|
803
|
+
method: Schema.Literal("session.spawn.confirm"),
|
|
804
|
+
parentSessionId: protocolIdentifierEffectSchema,
|
|
805
|
+
receipt: commandReceiptEffectSchema,
|
|
806
|
+
session: sessionEffectSchema,
|
|
807
|
+
}).check(Schema.makeFilter((value) => value.receipt.method === "session.create" &&
|
|
369
808
|
value.receipt.state === "succeeded" &&
|
|
370
|
-
value.receipt.target.id === value.session.id &&
|
|
371
809
|
value.receipt.target.type === "session" &&
|
|
372
|
-
value.
|
|
373
|
-
value.session.
|
|
374
|
-
|
|
810
|
+
value.receipt.target.id === value.session.id &&
|
|
811
|
+
value.session.executor !== undefined &&
|
|
812
|
+
value.session.parentSessionId === value.parentSessionId, {
|
|
813
|
+
expected: "a spawned executor Session whose create receipt and parent match",
|
|
375
814
|
}));
|
|
376
815
|
/** Why a listed Session needs a person now; a listed Session that needs nothing is absent. */
|
|
377
816
|
const sessionListAttentionEffectSchema = Schema.Struct({
|
|
@@ -389,10 +828,68 @@ export const sessionListResultEffectSchema = Schema.Struct({
|
|
|
389
828
|
return (new Set(flagged).size === flagged.length &&
|
|
390
829
|
flagged.every((id) => listed.has(id)));
|
|
391
830
|
}, { expected: "attention only for listed Sessions, once each" }));
|
|
831
|
+
/**
|
|
832
|
+
* A child on another Node, as the Node that holds its parent records it
|
|
833
|
+
* (D-SPAWN, D-236). The client that created the child links it; a cancel its
|
|
834
|
+
* Node did not answer by the fleet ask deadline marks it `orphaned`, never
|
|
835
|
+
* stopped; a client that reached its Node again reconciles it, recording the
|
|
836
|
+
* state that Node reported. `observedState` is always a state the child's own
|
|
837
|
+
* Node reported.
|
|
838
|
+
*/
|
|
839
|
+
export const sessionRemoteChildEffectSchema = Schema.Struct({
|
|
840
|
+
linkedAt: recordedAtEffectSchema,
|
|
841
|
+
node: remoteNodeNameEffectSchema,
|
|
842
|
+
observedState: Schema.optional(sessionStateEffectSchema),
|
|
843
|
+
orphanedAt: Schema.optional(recordedAtEffectSchema),
|
|
844
|
+
sessionId: protocolIdentifierEffectSchema,
|
|
845
|
+
state: Schema.Literals(["linked", "orphaned"]),
|
|
846
|
+
}).check(Schema.makeFilter((value) => (value.state === "orphaned") === (value.orphanedAt !== undefined), {
|
|
847
|
+
expected: "an orphaned child with the instant it was orphaned, and only then",
|
|
848
|
+
}));
|
|
849
|
+
/** The most children on other Nodes one parent records: the highest fan-out cap. */
|
|
850
|
+
const MAX_REMOTE_CHILDREN = SESSION_SPAWN_CAP_BOUNDS.fanOut.maximum;
|
|
851
|
+
/** `remoteChildren`: the parent's children on other Nodes this Node recorded, oldest link first; absent when there are none. */
|
|
392
852
|
export const sessionShowResultEffectSchema = Schema.Struct({
|
|
393
853
|
method: Schema.Literal("session.show"),
|
|
854
|
+
remoteChildren: Schema.optional(Schema.Array(sessionRemoteChildEffectSchema).check(Schema.isBetweenLength(1, MAX_REMOTE_CHILDREN))),
|
|
394
855
|
session: sessionEffectSchema,
|
|
395
856
|
});
|
|
857
|
+
/**
|
|
858
|
+
* What a client records of a child on another Node on the Node that holds
|
|
859
|
+
* its parent: `linked` after it created the child, `orphaned` when the
|
|
860
|
+
* child's Node gave no reply to a cancel by the fleet ask deadline, and
|
|
861
|
+
* `reconciled` with the state the child's Node reported once it answered
|
|
862
|
+
* again. `reconciled` must carry a state and `linked` may, each a state the
|
|
863
|
+
* child's Node reported; `orphaned` carries none.
|
|
864
|
+
*/
|
|
865
|
+
export const sessionSpawnRecordParametersEffectSchema = Schema.Struct({
|
|
866
|
+
childSessionId: protocolIdentifierEffectSchema,
|
|
867
|
+
commandId: protocolIdentifierEffectSchema,
|
|
868
|
+
node: remoteNodeNameEffectSchema,
|
|
869
|
+
outcome: Schema.Literals(["linked", "orphaned", "reconciled"]),
|
|
870
|
+
parentSessionId: protocolIdentifierEffectSchema,
|
|
871
|
+
state: Schema.optional(sessionStateEffectSchema),
|
|
872
|
+
}).check(Schema.makeFilter((value) => value.childSessionId !== value.parentSessionId &&
|
|
873
|
+
(value.outcome === "reconciled"
|
|
874
|
+
? value.state !== undefined
|
|
875
|
+
: value.outcome === "linked" || value.state === undefined), {
|
|
876
|
+
expected: "a child other than its parent; a state with reconciled, none with orphaned",
|
|
877
|
+
}));
|
|
878
|
+
/** The child record after the change, under its own receipt on the child. */
|
|
879
|
+
export const sessionSpawnRecordResultEffectSchema = Schema.Struct({
|
|
880
|
+
child: sessionRemoteChildEffectSchema,
|
|
881
|
+
delivery: Schema.Literals(["new", "duplicate"]),
|
|
882
|
+
method: Schema.Literal("session.spawn.record"),
|
|
883
|
+
parentSessionId: protocolIdentifierEffectSchema,
|
|
884
|
+
receipt: commandReceiptEffectSchema,
|
|
885
|
+
}).check(Schema.makeFilter((value) => value.receipt.state === "succeeded" &&
|
|
886
|
+
value.receipt.method === value.method &&
|
|
887
|
+
value.receipt.target.type === SESSION_CHILD_TARGET_TYPE &&
|
|
888
|
+
value.receipt.target.id === value.child.sessionId, { expected: "a child record under its own receipt" }));
|
|
889
|
+
export const sessionSpawnRecordRequestEffectSchema = Schema.Struct({
|
|
890
|
+
method: Schema.Literal("session.spawn.record"),
|
|
891
|
+
parameters: sessionSpawnRecordParametersEffectSchema,
|
|
892
|
+
});
|
|
396
893
|
/** `satisfied` is false when the bounded wait ended first; `session` is then its last read. */
|
|
397
894
|
export const sessionWaitResultEffectSchema = Schema.Struct({
|
|
398
895
|
method: Schema.Literal("session.wait"),
|
|
@@ -404,6 +901,8 @@ export const sessionEventsListResultEffectSchema = Schema.Struct({
|
|
|
404
901
|
items: Schema.Array(sessionEventEffectSchema).check(Schema.isMaxLength(MAX_EVENT_PAGE_SIZE)),
|
|
405
902
|
method: Schema.Literal("session.events.list"),
|
|
406
903
|
nextSessionCursor: Schema.optional(revisionEffectSchema),
|
|
904
|
+
/** 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. */
|
|
905
|
+
oldestRetainedCursor: Schema.optional(revisionEffectSchema),
|
|
407
906
|
sessionId: protocolIdentifierEffectSchema,
|
|
408
907
|
});
|
|
409
908
|
export const sessionStartResultEffectSchema = Schema.Struct({
|
|
@@ -444,6 +943,9 @@ export const sessionArchiveResultEffectSchema = Schema.Struct({
|
|
|
444
943
|
method: Schema.Literal("session.archive"),
|
|
445
944
|
receipt: commandReceiptEffectSchema,
|
|
446
945
|
session: sessionEffectSchema,
|
|
946
|
+
/** The caller's summary and transcript path, as the archive recorded them. */
|
|
947
|
+
summary: Schema.optional(sessionArchiveSummaryEffectSchema),
|
|
948
|
+
transcriptPath: Schema.optional(sessionTranscriptPathEffectSchema),
|
|
447
949
|
}).check(Schema.makeFilter(({ archive, receipt, session }) => receipt.method === "session.archive" &&
|
|
448
950
|
receipt.target.type === "session" &&
|
|
449
951
|
receipt.target.id === session.id &&
|
|
@@ -470,10 +972,6 @@ export const sessionRequestPayloadEffectSchema = Schema.Union([
|
|
|
470
972
|
method: Schema.Literal("session.wait"),
|
|
471
973
|
parameters: sessionWaitParametersEffectSchema,
|
|
472
974
|
}),
|
|
473
|
-
Schema.Struct({
|
|
474
|
-
method: Schema.Literal("session.spawn"),
|
|
475
|
-
parameters: sessionSpawnParametersEffectSchema,
|
|
476
|
-
}),
|
|
477
975
|
Schema.Struct({
|
|
478
976
|
method: Schema.Literal("session.events.list"),
|
|
479
977
|
parameters: sessionEventsListParametersEffectSchema,
|
|
@@ -510,6 +1008,10 @@ export const sessionRequestPayloadEffectSchema = Schema.Union([
|
|
|
510
1008
|
method: Schema.Literal("session.diff"),
|
|
511
1009
|
parameters: sessionDiffParametersEffectSchema,
|
|
512
1010
|
}),
|
|
1011
|
+
Schema.Struct({
|
|
1012
|
+
method: Schema.Literal("session.git.status"),
|
|
1013
|
+
parameters: sessionGitStatusParametersEffectSchema,
|
|
1014
|
+
}),
|
|
513
1015
|
Schema.Struct({
|
|
514
1016
|
method: Schema.Literal("session.archive"),
|
|
515
1017
|
parameters: sessionArchiveParametersEffectSchema,
|
|
@@ -518,6 +1020,38 @@ export const sessionRequestPayloadEffectSchema = Schema.Union([
|
|
|
518
1020
|
method: Schema.Literal("session.rename"),
|
|
519
1021
|
parameters: sessionRenameParametersEffectSchema,
|
|
520
1022
|
}),
|
|
1023
|
+
Schema.Struct({
|
|
1024
|
+
method: Schema.Literal("session.fork.preview"),
|
|
1025
|
+
parameters: sessionForkPreviewParametersEffectSchema,
|
|
1026
|
+
}),
|
|
1027
|
+
Schema.Struct({
|
|
1028
|
+
method: Schema.Literal("session.fork.confirm"),
|
|
1029
|
+
parameters: sessionForkConfirmParametersEffectSchema,
|
|
1030
|
+
}),
|
|
1031
|
+
Schema.Struct({
|
|
1032
|
+
method: Schema.Literal("session.switch.preview"),
|
|
1033
|
+
parameters: sessionSwitchPreviewParametersEffectSchema,
|
|
1034
|
+
}),
|
|
1035
|
+
Schema.Struct({
|
|
1036
|
+
method: Schema.Literal("session.switch.confirm"),
|
|
1037
|
+
parameters: sessionSwitchConfirmParametersEffectSchema,
|
|
1038
|
+
}),
|
|
1039
|
+
Schema.Struct({
|
|
1040
|
+
method: Schema.Literal("session.setup.preview"),
|
|
1041
|
+
parameters: sessionSetupPreviewParametersEffectSchema,
|
|
1042
|
+
}),
|
|
1043
|
+
Schema.Struct({
|
|
1044
|
+
method: Schema.Literal("session.setup.confirm"),
|
|
1045
|
+
parameters: sessionSetupConfirmParametersEffectSchema,
|
|
1046
|
+
}),
|
|
1047
|
+
Schema.Struct({
|
|
1048
|
+
method: Schema.Literal("session.spawn.preview"),
|
|
1049
|
+
parameters: sessionSpawnPreviewParametersEffectSchema,
|
|
1050
|
+
}),
|
|
1051
|
+
Schema.Struct({
|
|
1052
|
+
method: Schema.Literal("session.spawn.confirm"),
|
|
1053
|
+
parameters: sessionSpawnConfirmParametersEffectSchema,
|
|
1054
|
+
}),
|
|
521
1055
|
]);
|
|
522
1056
|
export const sessionSuccessResultEffectSchema = Schema.Union([
|
|
523
1057
|
sessionCreateResultEffectSchema,
|
|
@@ -528,16 +1062,24 @@ export const sessionSuccessResultEffectSchema = Schema.Union([
|
|
|
528
1062
|
sessionObserveResultEffectSchema,
|
|
529
1063
|
sessionShowResultEffectSchema,
|
|
530
1064
|
sessionWaitResultEffectSchema,
|
|
531
|
-
sessionSpawnResultEffectSchema,
|
|
532
1065
|
sessionEventsListResultEffectSchema,
|
|
533
1066
|
sessionStartResultEffectSchema,
|
|
534
1067
|
sessionStopResultEffectSchema,
|
|
535
1068
|
sessionResumeResultEffectSchema,
|
|
536
1069
|
sessionDiffResultEffectSchema,
|
|
1070
|
+
sessionGitStatusResultEffectSchema,
|
|
537
1071
|
sessionArchiveResultEffectSchema,
|
|
538
1072
|
sessionRenameResultEffectSchema,
|
|
1073
|
+
sessionForkPreviewResultEffectSchema,
|
|
1074
|
+
sessionForkConfirmResultEffectSchema,
|
|
1075
|
+
sessionSwitchPreviewResultEffectSchema,
|
|
1076
|
+
sessionSwitchConfirmResultEffectSchema,
|
|
1077
|
+
sessionSetupPreviewResultEffectSchema,
|
|
1078
|
+
sessionSetupConfirmResultEffectSchema,
|
|
1079
|
+
sessionSpawnPreviewResultEffectSchema,
|
|
1080
|
+
sessionSpawnConfirmResultEffectSchema,
|
|
539
1081
|
]);
|
|
540
1082
|
export { agentPermissionRequestEffectSchema, agentPermissionResultEffectSchema, } from "./agent-permission-effect-schema.js";
|
|
541
|
-
export { sessionObservationEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
542
|
-
export { sessionArchiveParametersEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, } from "./worktree-effect-schema.js";
|
|
1083
|
+
export { sessionExecutorKindEffectSchema, sessionObservationEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
1084
|
+
export { sessionArchiveParametersEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, sessionGitStatusParametersEffectSchema, sessionGitStatusResultEffectSchema, } from "./worktree-effect-schema.js";
|
|
543
1085
|
//# sourceMappingURL=effect-schema.js.map
|