@maiaos/cli 0.1.0-canary.10
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/README.md +60 -0
- package/dist/address-space/address-space.d.ts +38 -0
- package/dist/address-space/address-space.js +130 -0
- package/dist/address-space/index.d.ts +2 -0
- package/dist/address-space/index.js +2 -0
- package/dist/agents/client.d.ts +171 -0
- package/dist/agents/client.js +8 -0
- package/dist/agents/commands.d.ts +7 -0
- package/dist/agents/commands.js +65 -0
- package/dist/agents/index.d.ts +3 -0
- package/dist/agents/index.js +3 -0
- package/dist/agents/input.d.ts +130 -0
- package/dist/agents/input.js +99 -0
- package/dist/agents/output/format.d.ts +8 -0
- package/dist/agents/output/format.js +47 -0
- package/dist/agents/output/index.d.ts +2 -0
- package/dist/agents/output/index.js +2 -0
- package/dist/agents/tree/index.d.ts +2 -0
- package/dist/agents/tree/index.js +2 -0
- package/dist/agents/tree/tree.d.ts +3 -0
- package/dist/agents/tree/tree.js +43 -0
- package/dist/bin/maia.NOTICES.txt +59 -0
- package/dist/bin/maia.cdx.json +168 -0
- package/dist/bin/maia.mjs +2 -0
- package/dist/bootstrap/exit.d.ts +14 -0
- package/dist/bootstrap/exit.js +42 -0
- package/dist/bootstrap/index.d.ts +3 -0
- package/dist/bootstrap/index.js +3 -0
- package/dist/bootstrap/process.d.ts +5 -0
- package/dist/bootstrap/process.js +23 -0
- package/dist/bootstrap/run.d.ts +25 -0
- package/dist/bootstrap/run.js +95 -0
- package/dist/bootstrap/stdio.d.ts +4 -0
- package/dist/bootstrap/stdio.js +9 -0
- package/dist/cli/cli.d.ts +17 -0
- package/dist/cli/cli.js +545 -0
- package/dist/cli/environment.d.ts +8 -0
- package/dist/cli/environment.js +12 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/services.d.ts +4 -0
- package/dist/cli/services.js +4 -0
- package/dist/command-line/context.d.ts +188 -0
- package/dist/command-line/context.js +2 -0
- package/dist/command-line/index.d.ts +7 -0
- package/dist/command-line/index.js +7 -0
- package/dist/command-line/input/arguments.d.ts +62 -0
- package/dist/command-line/input/arguments.js +232 -0
- package/dist/command-line/input/index.d.ts +4 -0
- package/dist/command-line/input/index.js +4 -0
- package/dist/command-line/input/prompt.d.ts +8 -0
- package/dist/command-line/input/prompt.js +44 -0
- package/dist/command-line/input/stdin-stream.d.ts +4 -0
- package/dist/command-line/input/stdin-stream.js +3 -0
- package/dist/command-line/input/stdin.d.ts +12 -0
- package/dist/command-line/input/stdin.js +24 -0
- package/dist/command-line/json-decoder.d.ts +3 -0
- package/dist/command-line/json-decoder.js +3 -0
- package/dist/command-line/json.d.ts +4 -0
- package/dist/command-line/json.js +27 -0
- package/dist/command-line/output.d.ts +64 -0
- package/dist/command-line/output.js +113 -0
- package/dist/command-line/rows.d.ts +12 -0
- package/dist/command-line/rows.js +41 -0
- package/dist/command-line/two-phase.d.ts +62 -0
- package/dist/command-line/two-phase.js +173 -0
- package/dist/command-receipt/command.d.ts +4 -0
- package/dist/command-receipt/command.js +59 -0
- package/dist/command-receipt/compact-list.d.ts +20 -0
- package/dist/command-receipt/compact-list.js +29 -0
- package/dist/command-receipt/index.d.ts +3 -0
- package/dist/command-receipt/index.js +3 -0
- package/dist/command-tree/commands.d.ts +17 -0
- package/dist/command-tree/commands.js +41 -0
- package/dist/command-tree/completion.d.ts +6 -0
- package/dist/command-tree/completion.js +36 -0
- package/dist/command-tree/grammar.d.ts +18 -0
- package/dist/command-tree/grammar.js +160 -0
- package/dist/command-tree/help.d.ts +62 -0
- package/dist/command-tree/help.js +220 -0
- package/dist/command-tree/index.d.ts +8 -0
- package/dist/command-tree/index.js +6 -0
- package/dist/command-tree/local.d.ts +3 -0
- package/dist/command-tree/local.js +138 -0
- package/dist/command-tree/placeholder.d.ts +4 -0
- package/dist/command-tree/placeholder.js +5 -0
- package/dist/command-tree/row.d.ts +31 -0
- package/dist/command-tree/row.js +2 -0
- package/dist/command-tree/suggest.d.ts +3 -0
- package/dist/command-tree/suggest.js +81 -0
- package/dist/command-tree/tree.d.ts +35 -0
- package/dist/command-tree/tree.js +140 -0
- package/dist/connection/access/client.d.ts +13 -0
- package/dist/connection/access/client.js +19 -0
- package/dist/connection/access/commands.d.ts +6 -0
- package/dist/connection/access/commands.js +60 -0
- package/dist/connection/access/format.d.ts +8 -0
- package/dist/connection/access/format.js +61 -0
- package/dist/connection/access/index.d.ts +3 -0
- package/dist/connection/access/index.js +3 -0
- package/dist/connection/access/input.d.ts +53 -0
- package/dist/connection/access/input.js +83 -0
- package/dist/connection/client.d.ts +790 -0
- package/dist/connection/client.js +36 -0
- package/dist/connection/commands.d.ts +15 -0
- package/dist/connection/commands.js +118 -0
- package/dist/connection/index.d.ts +8 -0
- package/dist/connection/index.js +8 -0
- package/dist/connection/input.d.ts +50 -0
- package/dist/connection/input.js +90 -0
- package/dist/connection/login.d.ts +13 -0
- package/dist/connection/login.js +69 -0
- package/dist/connection/output/format.d.ts +32 -0
- package/dist/connection/output/format.js +94 -0
- package/dist/connection/output/index.d.ts +2 -0
- package/dist/connection/output/index.js +2 -0
- package/dist/connection/resolve.d.ts +60 -0
- package/dist/connection/resolve.js +30 -0
- package/dist/connection/signin.d.ts +4 -0
- package/dist/connection/signin.js +32 -0
- package/dist/connection/system.d.ts +5 -0
- package/dist/connection/system.js +294 -0
- package/dist/connection/tree/index.d.ts +2 -0
- package/dist/connection/tree/index.js +2 -0
- package/dist/connection/tree/tree.d.ts +3 -0
- package/dist/connection/tree/tree.js +260 -0
- package/dist/container/client.d.ts +142 -0
- package/dist/container/client.js +11 -0
- package/dist/container/commands.d.ts +7 -0
- package/dist/container/commands.js +100 -0
- package/dist/container/index.d.ts +3 -0
- package/dist/container/index.js +3 -0
- package/dist/container/output/format.d.ts +11 -0
- package/dist/container/output/format.js +27 -0
- package/dist/container/output/index.d.ts +2 -0
- package/dist/container/output/index.js +2 -0
- package/dist/context/client.d.ts +7 -0
- package/dist/context/client.js +21 -0
- package/dist/context/commands.d.ts +3 -0
- package/dist/context/commands.js +27 -0
- package/dist/context/index.d.ts +3 -0
- package/dist/context/index.js +3 -0
- package/dist/dashboard/cockpit-client.d.ts +6 -0
- package/dist/dashboard/cockpit-client.js +27 -0
- package/dist/dashboard/cockpits.d.ts +29 -0
- package/dist/dashboard/cockpits.js +65 -0
- package/dist/dashboard/dashboard.d.ts +7 -0
- package/dist/dashboard/dashboard.js +47 -0
- package/dist/dashboard/draw.d.ts +15 -0
- package/dist/dashboard/draw.js +30 -0
- package/dist/dashboard/frame.d.ts +4 -0
- package/dist/dashboard/frame.js +15 -0
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.js +2 -0
- package/dist/dashboard/modes.d.ts +5 -0
- package/dist/dashboard/modes.js +16 -0
- package/dist/dashboard/node-connection.d.ts +15 -0
- package/dist/dashboard/node-connection.js +51 -0
- package/dist/dashboard/pi-tui.d.ts +6 -0
- package/dist/dashboard/pi-tui.js +35 -0
- package/dist/dashboard/status-bar.d.ts +4 -0
- package/dist/dashboard/status-bar.js +60 -0
- package/dist/dashboard/terminal.d.ts +53 -0
- package/dist/dashboard/terminal.js +165 -0
- package/dist/dashboard/tree-model.d.ts +28 -0
- package/dist/dashboard/tree-model.js +97 -0
- package/dist/dashboard/tree.d.ts +10 -0
- package/dist/dashboard/tree.js +76 -0
- package/dist/development/cli.d.ts +3 -0
- package/dist/development/cli.js +44 -0
- package/dist/execution/client.d.ts +25 -0
- package/dist/execution/client.js +24 -0
- package/dist/execution/index.d.ts +3 -0
- package/dist/execution/index.js +3 -0
- package/dist/execution/relocation.d.ts +6 -0
- package/dist/execution/relocation.js +123 -0
- package/dist/execution/tree/index.d.ts +2 -0
- package/dist/execution/tree/index.js +2 -0
- package/dist/execution/tree/tree.d.ts +3 -0
- package/dist/execution/tree/tree.js +137 -0
- package/dist/fleet/fleet.d.ts +70 -0
- package/dist/fleet/fleet.js +91 -0
- package/dist/fleet/index.d.ts +2 -0
- package/dist/fleet/index.js +2 -0
- package/dist/hold/client.d.ts +137 -0
- package/dist/hold/client.js +12 -0
- package/dist/hold/commands.d.ts +5 -0
- package/dist/hold/commands.js +91 -0
- package/dist/hold/index.d.ts +3 -0
- package/dist/hold/index.js +3 -0
- package/dist/hold/output/format.d.ts +11 -0
- package/dist/hold/output/format.js +25 -0
- package/dist/hold/output/index.d.ts +2 -0
- package/dist/hold/output/index.js +2 -0
- package/dist/hold/tree/index.d.ts +2 -0
- package/dist/hold/tree/index.js +2 -0
- package/dist/hold/tree/tree.d.ts +3 -0
- package/dist/hold/tree/tree.js +97 -0
- package/dist/import/client.d.ts +14 -0
- package/dist/import/client.js +16 -0
- package/dist/import/commands.d.ts +5 -0
- package/dist/import/commands.js +75 -0
- package/dist/import/index.d.ts +3 -0
- package/dist/import/index.js +3 -0
- package/dist/import/input.d.ts +16 -0
- package/dist/import/input.js +92 -0
- package/dist/import/output.d.ts +6 -0
- package/dist/import/output.js +37 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/integration/client.d.ts +1284 -0
- package/dist/integration/client.js +24 -0
- package/dist/integration/commands.d.ts +10 -0
- package/dist/integration/commands.js +104 -0
- package/dist/integration/index.d.ts +3 -0
- package/dist/integration/index.js +3 -0
- package/dist/integration/output.d.ts +22 -0
- package/dist/integration/output.js +20 -0
- package/dist/local-node/call.d.ts +7 -0
- package/dist/local-node/call.js +13 -0
- package/dist/local-node/client.d.ts +72 -0
- package/dist/local-node/client.js +253 -0
- package/dist/local-node/index.d.ts +4 -0
- package/dist/local-node/index.js +4 -0
- package/dist/local-node/wait.d.ts +10 -0
- package/dist/local-node/wait.js +17 -0
- package/dist/login/agent-provider.d.ts +20 -0
- package/dist/login/agent-provider.js +109 -0
- package/dist/login/commands.d.ts +4 -0
- package/dist/login/commands.js +94 -0
- package/dist/login/failure.d.ts +3 -0
- package/dist/login/failure.js +14 -0
- package/dist/login/gateway.d.ts +12 -0
- package/dist/login/gateway.js +71 -0
- package/dist/login/index.d.ts +3 -0
- package/dist/login/index.js +2 -0
- package/dist/login/menu.d.ts +4 -0
- package/dist/login/menu.js +105 -0
- package/dist/login/output/format.d.ts +16 -0
- package/dist/login/output/format.js +31 -0
- package/dist/login/output/index.d.ts +2 -0
- package/dist/login/output/index.js +2 -0
- package/dist/login/vendor-account.d.ts +95 -0
- package/dist/login/vendor-account.js +75 -0
- package/dist/login/vendor-input.d.ts +14 -0
- package/dist/login/vendor-input.js +36 -0
- package/dist/mcp/calls.d.ts +8 -0
- package/dist/mcp/calls.js +236 -0
- package/dist/mcp/commands.d.ts +12 -0
- package/dist/mcp/commands.js +47 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/routing.d.ts +24 -0
- package/dist/mcp/routing.js +188 -0
- package/dist/mcp/server.d.ts +20 -0
- package/dist/mcp/server.js +80 -0
- package/dist/orchestration/client.d.ts +78 -0
- package/dist/orchestration/client.js +89 -0
- package/dist/orchestration/commands.d.ts +14 -0
- package/dist/orchestration/commands.js +312 -0
- package/dist/orchestration/index.d.ts +3 -0
- package/dist/orchestration/index.js +3 -0
- package/dist/orchestration/output/compact-aggregate.d.ts +121 -0
- package/dist/orchestration/output/compact-aggregate.js +110 -0
- package/dist/orchestration/output/compact-run-list.d.ts +20 -0
- package/dist/orchestration/output/compact-run-list.js +16 -0
- package/dist/orchestration/output/human.d.ts +80 -0
- package/dist/orchestration/output/human.js +252 -0
- package/dist/orchestration/output/index.d.ts +4 -0
- package/dist/orchestration/output/index.js +4 -0
- package/dist/orchestration/tree/index.d.ts +2 -0
- package/dist/orchestration/tree/index.js +2 -0
- package/dist/orchestration/tree/tree.d.ts +3 -0
- package/dist/orchestration/tree/tree.js +142 -0
- package/dist/port-lease/client.d.ts +160 -0
- package/dist/port-lease/client.js +11 -0
- package/dist/port-lease/commands.d.ts +6 -0
- package/dist/port-lease/commands.js +17 -0
- package/dist/port-lease/index.d.ts +3 -0
- package/dist/port-lease/index.js +3 -0
- package/dist/port-lease/input.d.ts +65 -0
- package/dist/port-lease/input.js +67 -0
- package/dist/port-lease/output/format.d.ts +11 -0
- package/dist/port-lease/output/format.js +24 -0
- package/dist/port-lease/output/index.d.ts +2 -0
- package/dist/port-lease/output/index.js +2 -0
- package/dist/presentation/client.d.ts +10 -0
- package/dist/presentation/client.js +9 -0
- package/dist/presentation/commands.d.ts +6 -0
- package/dist/presentation/commands.js +78 -0
- package/dist/presentation/index.d.ts +4 -0
- package/dist/presentation/index.js +3 -0
- package/dist/presentation/output/format.d.ts +11 -0
- package/dist/presentation/output/format.js +33 -0
- package/dist/presentation/output/index.d.ts +3 -0
- package/dist/presentation/output/index.js +2 -0
- package/dist/project-guard/client.d.ts +88 -0
- package/dist/project-guard/client.js +7 -0
- package/dist/project-guard/commands.d.ts +4 -0
- package/dist/project-guard/commands.js +48 -0
- package/dist/project-guard/index.d.ts +3 -0
- package/dist/project-guard/index.js +3 -0
- package/dist/project-guard/input.d.ts +18 -0
- package/dist/project-guard/input.js +47 -0
- package/dist/project-guard/output/format.d.ts +11 -0
- package/dist/project-guard/output/format.js +35 -0
- package/dist/project-guard/output/index.d.ts +2 -0
- package/dist/project-guard/output/index.js +2 -0
- package/dist/project-workspace/client.d.ts +86 -0
- package/dist/project-workspace/client.js +159 -0
- package/dist/project-workspace/commands.d.ts +30 -0
- package/dist/project-workspace/commands.js +710 -0
- package/dist/project-workspace/index.d.ts +5 -0
- package/dist/project-workspace/index.js +5 -0
- package/dist/project-workspace/metadata-client.d.ts +99 -0
- package/dist/project-workspace/metadata-client.js +8 -0
- package/dist/project-workspace/metadata-commands.d.ts +4 -0
- package/dist/project-workspace/metadata-commands.js +56 -0
- package/dist/project-workspace/output/human.d.ts +139 -0
- package/dist/project-workspace/output/human.js +115 -0
- package/dist/project-workspace/output/index.d.ts +3 -0
- package/dist/project-workspace/output/index.js +3 -0
- package/dist/project-workspace/output/metadata.d.ts +11 -0
- package/dist/project-workspace/output/metadata.js +17 -0
- package/dist/project-workspace/tree/index.d.ts +2 -0
- package/dist/project-workspace/tree/index.js +2 -0
- package/dist/project-workspace/tree/tree.d.ts +3 -0
- package/dist/project-workspace/tree/tree.js +212 -0
- package/dist/provider/client.d.ts +6 -0
- package/dist/provider/client.js +5 -0
- package/dist/provider/commands.d.ts +3 -0
- package/dist/provider/commands.js +38 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.js +3 -0
- package/dist/reference/commands.d.ts +3 -0
- package/dist/reference/commands.js +41 -0
- package/dist/reference/index.d.ts +3 -0
- package/dist/reference/index.js +3 -0
- package/dist/reference/resolve.d.ts +31 -0
- package/dist/reference/resolve.js +304 -0
- package/dist/reference/tree/index.d.ts +2 -0
- package/dist/reference/tree/index.js +2 -0
- package/dist/reference/tree/tree.d.ts +3 -0
- package/dist/reference/tree/tree.js +17 -0
- package/dist/remote-node/client.d.ts +338 -0
- package/dist/remote-node/client.js +17 -0
- package/dist/remote-node/commands.d.ts +15 -0
- package/dist/remote-node/commands.js +342 -0
- package/dist/remote-node/connector.d.ts +67 -0
- package/dist/remote-node/connector.js +143 -0
- package/dist/remote-node/index.d.ts +4 -0
- package/dist/remote-node/index.js +4 -0
- package/dist/remote-node/reachability.d.ts +64 -0
- package/dist/remote-node/reachability.js +44 -0
- package/dist/remote-node/text.d.ts +10 -0
- package/dist/remote-node/text.js +111 -0
- package/dist/remote-node/tree/index.d.ts +2 -0
- package/dist/remote-node/tree/index.js +2 -0
- package/dist/remote-node/tree/tree.d.ts +3 -0
- package/dist/remote-node/tree/tree.js +71 -0
- package/dist/routine/client.d.ts +398 -0
- package/dist/routine/client.js +28 -0
- package/dist/routine/commands.d.ts +9 -0
- package/dist/routine/commands.js +109 -0
- package/dist/routine/index.d.ts +3 -0
- package/dist/routine/index.js +3 -0
- package/dist/routine/input.d.ts +28 -0
- package/dist/routine/input.js +44 -0
- package/dist/routine/output/format.d.ts +23 -0
- package/dist/routine/output/format.js +83 -0
- package/dist/routine/output/index.d.ts +2 -0
- package/dist/routine/output/index.js +2 -0
- package/dist/routine/tree/index.d.ts +2 -0
- package/dist/routine/tree/index.js +2 -0
- package/dist/routine/tree/tree.d.ts +3 -0
- package/dist/routine/tree/tree.js +70 -0
- package/dist/run-ledger/client.d.ts +358 -0
- package/dist/run-ledger/client.js +13 -0
- package/dist/run-ledger/commands.d.ts +8 -0
- package/dist/run-ledger/commands.js +19 -0
- package/dist/run-ledger/index.d.ts +3 -0
- package/dist/run-ledger/index.js +3 -0
- package/dist/run-ledger/input.d.ts +42 -0
- package/dist/run-ledger/input.js +107 -0
- package/dist/run-ledger/output/format.d.ts +11 -0
- package/dist/run-ledger/output/format.js +49 -0
- package/dist/run-ledger/output/index.d.ts +2 -0
- package/dist/run-ledger/output/index.js +2 -0
- package/dist/session/agent-permission.d.ts +63 -0
- package/dist/session/agent-permission.js +20 -0
- package/dist/session/approval/client.d.ts +117 -0
- package/dist/session/approval/client.js +7 -0
- package/dist/session/approval/commands.d.ts +7 -0
- package/dist/session/approval/commands.js +145 -0
- package/dist/session/approval/index.d.ts +3 -0
- package/dist/session/approval/index.js +3 -0
- package/dist/session/approval/output/format.d.ts +23 -0
- package/dist/session/approval/output/format.js +33 -0
- package/dist/session/approval/output/index.d.ts +2 -0
- package/dist/session/approval/output/index.js +2 -0
- package/dist/session/attach-client.d.ts +16 -0
- package/dist/session/attach-client.js +17 -0
- package/dist/session/attach-render.d.ts +16 -0
- package/dist/session/attach-render.js +162 -0
- package/dist/session/attach.d.ts +5 -0
- package/dist/session/attach.js +120 -0
- package/dist/session/client.d.ts +140 -0
- package/dist/session/client.js +129 -0
- package/dist/session/coding-client.d.ts +16 -0
- package/dist/session/coding-client.js +15 -0
- package/dist/session/coding-commands.d.ts +4 -0
- package/dist/session/coding-commands.js +50 -0
- package/dist/session/commands.d.ts +14 -0
- package/dist/session/commands.js +585 -0
- package/dist/session/create-tasks.d.ts +20 -0
- package/dist/session/create-tasks.js +128 -0
- package/dist/session/index.d.ts +9 -0
- package/dist/session/index.js +8 -0
- package/dist/session/interaction/client.d.ts +347 -0
- package/dist/session/interaction/client.js +15 -0
- package/dist/session/interaction/commands.d.ts +7 -0
- package/dist/session/interaction/commands.js +101 -0
- package/dist/session/interaction/index.d.ts +3 -0
- package/dist/session/interaction/index.js +3 -0
- package/dist/session/interaction/input.d.ts +15 -0
- package/dist/session/interaction/input.js +46 -0
- package/dist/session/interaction/output/format.d.ts +11 -0
- package/dist/session/interaction/output/format.js +4 -0
- package/dist/session/interaction/output/index.d.ts +2 -0
- package/dist/session/interaction/output/index.js +2 -0
- package/dist/session/output/diff.d.ts +3 -0
- package/dist/session/output/diff.js +23 -0
- package/dist/session/output/failure.d.ts +11 -0
- package/dist/session/output/failure.js +17 -0
- package/dist/session/output/human.d.ts +113 -0
- package/dist/session/output/human.js +82 -0
- package/dist/session/output/index.d.ts +6 -0
- package/dist/session/output/index.js +6 -0
- package/dist/session/output/observe.d.ts +4 -0
- package/dist/session/output/observe.js +46 -0
- package/dist/session/output/tasks.d.ts +34 -0
- package/dist/session/output/tasks.js +48 -0
- package/dist/session/rename.d.ts +3 -0
- package/dist/session/rename.js +37 -0
- package/dist/session/task-file.d.ts +5 -0
- package/dist/session/task-file.js +23 -0
- package/dist/session/tree/index.d.ts +2 -0
- package/dist/session/tree/index.js +2 -0
- package/dist/session/tree/tree.d.ts +3 -0
- package/dist/session/tree/tree.js +368 -0
- package/dist/session/turn/client.d.ts +28 -0
- package/dist/session/turn/client.js +51 -0
- package/dist/session/turn/commands.d.ts +8 -0
- package/dist/session/turn/commands.js +185 -0
- package/dist/session/turn/index.d.ts +4 -0
- package/dist/session/turn/index.js +3 -0
- package/dist/session/turn/output.d.ts +47 -0
- package/dist/session/turn/output.js +61 -0
- package/dist/status/client.d.ts +124 -0
- package/dist/status/client.js +5 -0
- package/dist/status/command.d.ts +4 -0
- package/dist/status/command.js +40 -0
- package/dist/status/doctor.d.ts +15 -0
- package/dist/status/doctor.js +111 -0
- package/dist/status/index.d.ts +5 -0
- package/dist/status/index.js +4 -0
- package/dist/status/output/compact.d.ts +32 -0
- package/dist/status/output/compact.js +49 -0
- package/dist/status/output/human.d.ts +7 -0
- package/dist/status/output/human.js +87 -0
- package/dist/status/output/index.d.ts +3 -0
- package/dist/status/output/index.js +3 -0
- package/dist/team-workspace/ceremony.d.ts +19 -0
- package/dist/team-workspace/ceremony.js +141 -0
- package/dist/team-workspace/client.d.ts +58 -0
- package/dist/team-workspace/client.js +6 -0
- package/dist/team-workspace/commands.d.ts +3 -0
- package/dist/team-workspace/commands.js +85 -0
- package/dist/team-workspace/confirmation.d.ts +4 -0
- package/dist/team-workspace/confirmation.js +8 -0
- package/dist/team-workspace/dependencies.d.ts +8 -0
- package/dist/team-workspace/dependencies.js +2 -0
- package/dist/team-workspace/index.d.ts +6 -0
- package/dist/team-workspace/index.js +5 -0
- package/dist/team-workspace/launcher.d.ts +17 -0
- package/dist/team-workspace/launcher.js +30 -0
- package/dist/team-workspace/output.d.ts +15 -0
- package/dist/team-workspace/output.js +28 -0
- package/dist/team-workspace/terminal.d.ts +9 -0
- package/dist/team-workspace/terminal.js +46 -0
- package/dist/terminal/arguments.d.ts +13 -0
- package/dist/terminal/arguments.js +79 -0
- package/dist/terminal/client.d.ts +83 -0
- package/dist/terminal/client.js +71 -0
- package/dist/terminal/commands.d.ts +7 -0
- package/dist/terminal/commands.js +143 -0
- package/dist/terminal/control-commands.d.ts +10 -0
- package/dist/terminal/control-commands.js +212 -0
- package/dist/terminal/index.d.ts +4 -0
- package/dist/terminal/index.js +4 -0
- package/dist/terminal/output/compact-list.d.ts +148 -0
- package/dist/terminal/output/compact-list.js +153 -0
- package/dist/terminal/output/human.d.ts +42 -0
- package/dist/terminal/output/human.js +55 -0
- package/dist/terminal/output/index.d.ts +3 -0
- package/dist/terminal/output/index.js +3 -0
- package/dist/terminal/tree/index.d.ts +2 -0
- package/dist/terminal/tree/index.js +2 -0
- package/dist/terminal/tree/tree.d.ts +3 -0
- package/dist/terminal/tree/tree.js +104 -0
- package/guidance/maia-cli/SKILL.md +58 -0
- package/guidance/maia-orchestration/SKILL.md +54 -0
- package/package.json +78 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { routineCreateConfirmParametersSchema, routineCreatePreviewParametersSchema, routineDisableConfirmParametersSchema, routineRunConfirmParametersSchema, } from "@maiaos/sdk";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { listEach, onHolder, onInputHolder, writeMerged, } from "../address-space/index.js";
|
|
4
|
+
import { CliArgumentError, confirmParameters, parseOptions, readInputMode, readPipedPreview, readTwoPhaseMode, requirePositionals, runInputTwoPhase, runTwoPhase, TWO_PHASE_FLAGS, writeNodeResult, } from "../command-line/index.js";
|
|
5
|
+
import { mergeLists } from "../fleet/index.js";
|
|
6
|
+
import { readRoutineList, readRoutineShow, readRoutineTransition, readRoutineTransitionInput, ROUTINE_TRANSITION_OPTIONS, } from "./input.js";
|
|
7
|
+
import { formatRoutineList, formatRoutineResult, } from "./output/index.js";
|
|
8
|
+
const write = (result, context) => writeNodeResult(result, context, {
|
|
9
|
+
toResult: (value) => ({ command: value.method, result: value }),
|
|
10
|
+
toText: formatRoutineResult,
|
|
11
|
+
});
|
|
12
|
+
const run = (operation, input, context) => {
|
|
13
|
+
if (operation === undefined)
|
|
14
|
+
return Effect.die(new Error("Missing routine client."));
|
|
15
|
+
return input.pipe(Effect.flatMap(operation), Effect.map((result) => write(result, context)));
|
|
16
|
+
};
|
|
17
|
+
const missing = () => Effect.die(new Error("Missing routine client."));
|
|
18
|
+
export const runRoutineList = (tokens, context) => Effect.gen(function* () {
|
|
19
|
+
const input = readRoutineList(tokens);
|
|
20
|
+
if (input.projectId !== undefined)
|
|
21
|
+
return yield* run(context.dependencies.listRoutines, Effect.succeed(input), context);
|
|
22
|
+
return yield* listEach(context, {
|
|
23
|
+
merged: (answers) => writeMerged(context, {
|
|
24
|
+
command: "routine.list",
|
|
25
|
+
result: { ...mergeLists(answers), method: "routine.list" },
|
|
26
|
+
}, formatRoutineList),
|
|
27
|
+
paged: input.afterCursor !== undefined,
|
|
28
|
+
read: (dependencies) => dependencies.listRoutines?.(input) ?? missing(),
|
|
29
|
+
sole: (result) => write(result, context),
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export const runRoutineShow = (tokens, context) => Effect.suspend(() => run(context.dependencies.showRoutine, Effect.succeed(readRoutineShow(tokens)), context));
|
|
33
|
+
export const runRoutinePause = (tokens, context) => Effect.suspend(() => run(context.dependencies.pauseRoutine, readRoutineTransition(tokens), context));
|
|
34
|
+
export const runRoutineResume = (tokens, context) => Effect.suspend(() => run(context.dependencies.resumeRoutine, readRoutineTransition(tokens), context));
|
|
35
|
+
const readPreviewed = (tokens, context) => {
|
|
36
|
+
const parsed = parseOptions(tokens, ROUTINE_TRANSITION_OPTIONS, new Set(TWO_PHASE_FLAGS));
|
|
37
|
+
const mode = readTwoPhaseMode(parsed.flags, context);
|
|
38
|
+
if (mode === "confirm-stdin")
|
|
39
|
+
requirePositionals(parsed.positionals, 0);
|
|
40
|
+
return { mode, parsed };
|
|
41
|
+
};
|
|
42
|
+
const confirmPiped = (context, change) => Effect.flatMap(Effect.flatMap(readPipedPreview(context), (value) => confirmParameters(change.schema, value, ["name"])), (confirmation) => onHolder(context, { id: confirmation.routineId, kind: "routine" }, (bound) => {
|
|
43
|
+
const { confirm } = change.phases(bound);
|
|
44
|
+
if (confirm === undefined)
|
|
45
|
+
return Effect.fail(new CliArgumentError(`Routine ${change.verb} is unavailable.`));
|
|
46
|
+
return Effect.map(confirm(confirmation), (result) => write(result, bound));
|
|
47
|
+
}));
|
|
48
|
+
const runPreviewed = (tokens, context, change) => Effect.gen(function* () {
|
|
49
|
+
const { mode, parsed } = readPreviewed(tokens, context);
|
|
50
|
+
if (mode === "confirm-stdin")
|
|
51
|
+
return yield* confirmPiped(context, change);
|
|
52
|
+
const { schema, verb } = change;
|
|
53
|
+
const { confirm, preview } = change.phases(context);
|
|
54
|
+
if (confirm === undefined || preview === undefined)
|
|
55
|
+
return yield* new CliArgumentError(`Routine ${verb} is unavailable.`);
|
|
56
|
+
return yield* runTwoPhase({
|
|
57
|
+
confirm: (value) => Effect.flatMap(confirmParameters(schema, value, ["name"]), confirm),
|
|
58
|
+
context,
|
|
59
|
+
mode,
|
|
60
|
+
preview: () => Effect.flatMap(readRoutineTransitionInput(parsed), preview),
|
|
61
|
+
prompt: change,
|
|
62
|
+
writeConfirm: (result) => write(result, context),
|
|
63
|
+
writePreview: (result) => write(result, context),
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
export const runRoutineDisable = (tokens, context) => runPreviewed(tokens, context, {
|
|
67
|
+
describe: (preview) => `Disable routine ${preview.routineId} "${preview.name}" at revision ${preview.expectedRevision}. It fires no more Sessions and cannot be resumed.\n`,
|
|
68
|
+
phases: ({ dependencies }) => ({
|
|
69
|
+
confirm: dependencies.confirmRoutineDisable,
|
|
70
|
+
preview: dependencies.previewRoutineDisable,
|
|
71
|
+
}),
|
|
72
|
+
question: "Disable this routine for good?",
|
|
73
|
+
schema: routineDisableConfirmParametersSchema,
|
|
74
|
+
verb: "disable",
|
|
75
|
+
});
|
|
76
|
+
export const runRoutineRun = (tokens, context) => runPreviewed(tokens, context, {
|
|
77
|
+
describe: (preview) => `Run routine ${preview.routineId} "${preview.name}" at revision ${preview.expectedRevision} now; it starts one Session.\n`,
|
|
78
|
+
phases: ({ dependencies }) => ({
|
|
79
|
+
confirm: dependencies.confirmRoutineRun,
|
|
80
|
+
preview: dependencies.previewRoutineRun,
|
|
81
|
+
}),
|
|
82
|
+
question: "Run this routine now?",
|
|
83
|
+
schema: routineRunConfirmParametersSchema,
|
|
84
|
+
verb: "run",
|
|
85
|
+
});
|
|
86
|
+
const ROUTINE_INPUT_ROUTE = {
|
|
87
|
+
idOf: (input) => {
|
|
88
|
+
const template = Reflect.get(input, "template");
|
|
89
|
+
return typeof template === "object" && template !== null
|
|
90
|
+
? Reflect.get(template, "projectId")
|
|
91
|
+
: undefined;
|
|
92
|
+
},
|
|
93
|
+
kind: "project",
|
|
94
|
+
};
|
|
95
|
+
export const runRoutineCreate = (tokens, context) => Effect.suspend(() => {
|
|
96
|
+
readInputMode(tokens);
|
|
97
|
+
return onInputHolder(context, ROUTINE_INPUT_ROUTE, (bound) => runInputTwoPhase({
|
|
98
|
+
confirm: bound.dependencies.confirmRoutineCreate,
|
|
99
|
+
confirmSchema: routineCreateConfirmParametersSchema,
|
|
100
|
+
context: bound,
|
|
101
|
+
label: "routine input",
|
|
102
|
+
preview: bound.dependencies.previewRoutineCreate,
|
|
103
|
+
previewOnly: ["nextFires", "routineId"],
|
|
104
|
+
previewSchema: routineCreatePreviewParametersSchema,
|
|
105
|
+
tokens,
|
|
106
|
+
write: (result) => write(result, bound),
|
|
107
|
+
}));
|
|
108
|
+
});
|
|
109
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import { type ParsedOptions } from "../command-line/index.js";
|
|
3
|
+
export declare const readRoutineList: (tokens: readonly string[]) => {
|
|
4
|
+
state?: undefined;
|
|
5
|
+
limit: number;
|
|
6
|
+
afterCursor?: string | undefined;
|
|
7
|
+
projectId?: string | undefined;
|
|
8
|
+
} | {
|
|
9
|
+
state: "active" | "disabled" | "paused";
|
|
10
|
+
limit: number;
|
|
11
|
+
afterCursor?: string | undefined;
|
|
12
|
+
projectId?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare const readRoutineShow: (tokens: readonly string[]) => {
|
|
15
|
+
routineId: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ROUTINE_TRANSITION_OPTIONS: ReadonlySet<string>;
|
|
18
|
+
export declare const readRoutineTransitionInput: (parsed: ParsedOptions) => Effect.Effect<{
|
|
19
|
+
commandId: string;
|
|
20
|
+
expectedRevision: string;
|
|
21
|
+
routineId: string;
|
|
22
|
+
}, never, import("effect/Crypto").Crypto>;
|
|
23
|
+
export declare const readRoutineTransition: (tokens: readonly string[]) => Effect.Effect<{
|
|
24
|
+
commandId: string;
|
|
25
|
+
expectedRevision: string;
|
|
26
|
+
routineId: string;
|
|
27
|
+
}, never, import("effect/Crypto").Crypto>;
|
|
28
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import { CliArgumentError, parseOptions, readExpectedRevision, readPageSize, requirePositionals, } from "../command-line/index.js";
|
|
3
|
+
import { commandIdentifier } from "../local-node/index.js";
|
|
4
|
+
const STATES = ["active", "disabled", "paused"];
|
|
5
|
+
const readState = (value) => {
|
|
6
|
+
if (value === undefined)
|
|
7
|
+
return {};
|
|
8
|
+
const state = STATES.find((candidate) => candidate === value);
|
|
9
|
+
if (state === undefined)
|
|
10
|
+
throw new CliArgumentError("Option '--state' must be 'active', 'paused' or 'disabled'.");
|
|
11
|
+
return { state };
|
|
12
|
+
};
|
|
13
|
+
export const readRoutineList = (tokens) => {
|
|
14
|
+
const parsed = parseOptions(tokens, new Set(["--after", "--limit", "--project", "--state"]));
|
|
15
|
+
requirePositionals(parsed.positionals, 0);
|
|
16
|
+
const afterCursor = parsed.options.get("--after");
|
|
17
|
+
const projectId = parsed.options.get("--project");
|
|
18
|
+
return {
|
|
19
|
+
limit: readPageSize(parsed.options.get("--limit")),
|
|
20
|
+
...(afterCursor === undefined ? {} : { afterCursor }),
|
|
21
|
+
...(projectId === undefined ? {} : { projectId }),
|
|
22
|
+
...readState(parsed.options.get("--state")),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export const readRoutineShow = (tokens) => {
|
|
26
|
+
const parsed = parseOptions(tokens, new Set());
|
|
27
|
+
requirePositionals(parsed.positionals, 1);
|
|
28
|
+
return { routineId: parsed.positionals[0] ?? "" };
|
|
29
|
+
};
|
|
30
|
+
export const ROUTINE_TRANSITION_OPTIONS = new Set([
|
|
31
|
+
"--command-id",
|
|
32
|
+
"--expected-revision",
|
|
33
|
+
]);
|
|
34
|
+
export const readRoutineTransitionInput = (parsed) => {
|
|
35
|
+
requirePositionals(parsed.positionals, 1);
|
|
36
|
+
const expectedRevision = readExpectedRevision(parsed.options.get("--expected-revision"));
|
|
37
|
+
return Effect.map(commandIdentifier(parsed.options.get("--command-id")), (commandId) => ({
|
|
38
|
+
commandId,
|
|
39
|
+
expectedRevision,
|
|
40
|
+
routineId: parsed.positionals[0] ?? "",
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
export const readRoutineTransition = (tokens) => readRoutineTransitionInput(parseOptions(tokens, ROUTINE_TRANSITION_OPTIONS));
|
|
44
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Routine, RoutineCreateConfirmResult, RoutineCreatePreviewResult, RoutineDisableConfirmResult, RoutineDisablePreviewResult, RoutineListResult, RoutinePauseResult, RoutineResumeResult, RoutineRunConfirmResult, RoutineRunPreviewResult, RoutineShowResult } from "@maiaos/sdk";
|
|
2
|
+
import type { ListedNode } from "../../fleet/index.js";
|
|
3
|
+
export type RoutineResult = RoutineCreateConfirmResult | RoutineCreatePreviewResult | RoutineDisableConfirmResult | RoutineDisablePreviewResult | RoutineListResult | RoutinePauseResult | RoutineResumeResult | RoutineRunConfirmResult | RoutineRunPreviewResult | RoutineShowResult;
|
|
4
|
+
export type CliRoutineResult = {
|
|
5
|
+
readonly command: RoutineResult["method"];
|
|
6
|
+
readonly result: RoutineResult;
|
|
7
|
+
};
|
|
8
|
+
export declare const isRoutineResult: (result: {
|
|
9
|
+
readonly command: string;
|
|
10
|
+
}) => result is CliRoutineResult;
|
|
11
|
+
export type CliRoutineList = {
|
|
12
|
+
readonly command: "routine.list";
|
|
13
|
+
readonly result: {
|
|
14
|
+
readonly items: readonly (Routine & {
|
|
15
|
+
readonly node: string;
|
|
16
|
+
})[];
|
|
17
|
+
readonly method: "routine.list";
|
|
18
|
+
readonly nodes: readonly ListedNode[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const formatRoutineList: ({ result }: CliRoutineList) => string;
|
|
22
|
+
export declare const formatRoutineResult: ({ result }: CliRoutineResult) => string;
|
|
23
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { formatMerged } from "../../address-space/index.js";
|
|
2
|
+
import { cell, formatRows, withNextPage } from "../../command-line/index.js";
|
|
3
|
+
export const isRoutineResult = (result) => result.command.startsWith("routine.");
|
|
4
|
+
const scheduleText = (routine) => `${routine.schedule.expression} ${routine.schedule.timezone}`;
|
|
5
|
+
const routineRow = (routine) => [
|
|
6
|
+
routine.id,
|
|
7
|
+
routine.state,
|
|
8
|
+
routine.nextFireAt ?? "-",
|
|
9
|
+
scheduleText(routine),
|
|
10
|
+
cell(routine.name),
|
|
11
|
+
].join("\t");
|
|
12
|
+
const causeText = ({ failure, failureReason }) => {
|
|
13
|
+
if (failure === undefined)
|
|
14
|
+
return failureReason ?? "-";
|
|
15
|
+
return failureReason === undefined
|
|
16
|
+
? `${failure.code}: ${cell(failure.message)}`
|
|
17
|
+
: `${failureReason} (${failure.code}): ${cell(failure.message)}`;
|
|
18
|
+
};
|
|
19
|
+
const fireRow = (fire) => [
|
|
20
|
+
fire.scheduledAt,
|
|
21
|
+
fire.triggerKind,
|
|
22
|
+
fire.outcome,
|
|
23
|
+
fire.reason ?? "-",
|
|
24
|
+
fire.sessionId ?? "-",
|
|
25
|
+
fire.turnState ?? "-",
|
|
26
|
+
String(fire.missed ?? 0),
|
|
27
|
+
causeText(fire),
|
|
28
|
+
].join("\t");
|
|
29
|
+
const formatShow = ({ fires, routine }) => [
|
|
30
|
+
`${routine.id}\t${routine.state}\trevision=${routine.revision}\t${cell(routine.name)}`,
|
|
31
|
+
`schedule\t${scheduleText(routine)}`,
|
|
32
|
+
`next\t${routine.nextFireAt ?? "-"}`,
|
|
33
|
+
`project\t${routine.template.projectId}`,
|
|
34
|
+
`prompt\t${cell(routine.template.prompt)}`,
|
|
35
|
+
formatRows(fires, fireRow, {
|
|
36
|
+
empty: "No fires yet.",
|
|
37
|
+
headers: [
|
|
38
|
+
"SCHEDULED",
|
|
39
|
+
"TRIGGER",
|
|
40
|
+
"OUTCOME",
|
|
41
|
+
"REASON",
|
|
42
|
+
"SESSION",
|
|
43
|
+
"TURN",
|
|
44
|
+
"MISSED",
|
|
45
|
+
"CAUSE",
|
|
46
|
+
],
|
|
47
|
+
}),
|
|
48
|
+
].join("\n");
|
|
49
|
+
const formatPreview = (result) => `${result.routineId}\t${result.expiresAt}\n${result.nextFires
|
|
50
|
+
.map((fire) => `next\t${fire}\n`)
|
|
51
|
+
.join("")}`;
|
|
52
|
+
const formatChangePreview = (result) => `${result.routineId}\t${result.expiresAt}\t${cell(result.name)}\n`;
|
|
53
|
+
const formatChanged = ({ delivery, receipt, routine }) => `${routine.id}\t${routine.state}\t${routine.revision}\t${receipt.receiptId}\t${delivery}\t${routine.nextFireAt ?? "-"}\n`;
|
|
54
|
+
const ROUTINE_HEADERS = ["ROUTINE", "STATE", "NEXT FIRE", "SCHEDULE", "NAME"];
|
|
55
|
+
export const formatRoutineList = ({ result }) => formatMerged(result, routineRow, {
|
|
56
|
+
empty: "No routines.",
|
|
57
|
+
headers: ROUTINE_HEADERS,
|
|
58
|
+
});
|
|
59
|
+
const formatRun = ({ delivery, fire, receipt, }) => `${fire.id}\t${fire.outcome}\t${fire.routineId}\t${receipt.receiptId}\t${delivery}\n`;
|
|
60
|
+
export const formatRoutineResult = ({ result }) => {
|
|
61
|
+
switch (result.method) {
|
|
62
|
+
case "routine.list":
|
|
63
|
+
return withNextPage(formatRows(result.items, routineRow, {
|
|
64
|
+
empty: "No routines.",
|
|
65
|
+
headers: ROUTINE_HEADERS,
|
|
66
|
+
}), result.nextCursor);
|
|
67
|
+
case "routine.show":
|
|
68
|
+
return formatShow(result);
|
|
69
|
+
case "routine.create.preview":
|
|
70
|
+
return formatPreview(result);
|
|
71
|
+
case "routine.disable.preview":
|
|
72
|
+
case "routine.run.preview":
|
|
73
|
+
return formatChangePreview(result);
|
|
74
|
+
case "routine.create.confirm":
|
|
75
|
+
case "routine.pause":
|
|
76
|
+
case "routine.resume":
|
|
77
|
+
case "routine.disable.confirm":
|
|
78
|
+
return formatChanged(result);
|
|
79
|
+
case "routine.run.confirm":
|
|
80
|
+
return formatRun(result);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const routine = () => import("../index.js");
|
|
2
|
+
export const ROUTINE_TREE = {
|
|
3
|
+
groups: [["routine", "Cron-scheduled Sessions on exact Projects."]],
|
|
4
|
+
leaves: [
|
|
5
|
+
[
|
|
6
|
+
"routine create (--input-stdin --dry-run | --confirm-stdin)",
|
|
7
|
+
1,
|
|
8
|
+
["routine.create.preview", "routine.create.confirm"],
|
|
9
|
+
"Create a routine after a preview.",
|
|
10
|
+
{
|
|
11
|
+
example: "maia --json routine create --input-stdin --dry-run",
|
|
12
|
+
kind: "two-phase",
|
|
13
|
+
run: [routine, "runRoutineCreate"],
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"routine list [--project <project-id>] [--state <active|paused|disabled>] [--limit <1..100>] [--after <cursor>]",
|
|
18
|
+
1,
|
|
19
|
+
"routine.list",
|
|
20
|
+
"List routines.",
|
|
21
|
+
{ route: "--project", run: [routine, "runRoutineList"] },
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"routine show <routine-id>",
|
|
25
|
+
1,
|
|
26
|
+
"routine.show",
|
|
27
|
+
"Show a routine and its latest fires.",
|
|
28
|
+
{ route: "<routine-id>", run: [routine, "runRoutineShow"] },
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"routine run <routine-id> --expected-revision <revision> [--command-id <id>] [--dry-run | --confirm-stdin]",
|
|
32
|
+
1,
|
|
33
|
+
["routine.run.preview", "routine.run.confirm"],
|
|
34
|
+
"Run a routine now, after a preview.",
|
|
35
|
+
{
|
|
36
|
+
example: "maia --json routine run <routine-id> --expected-revision 1 --dry-run",
|
|
37
|
+
kind: "two-phase",
|
|
38
|
+
route: "<routine-id>",
|
|
39
|
+
run: [routine, "runRoutineRun"],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"routine pause <routine-id> --expected-revision <revision> [--command-id <id>]",
|
|
44
|
+
1,
|
|
45
|
+
"routine.pause",
|
|
46
|
+
"Pause a routine; it fires no Session until resumed.",
|
|
47
|
+
{ route: "<routine-id>", run: [routine, "runRoutinePause"] },
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
"routine resume <routine-id> --expected-revision <revision> [--command-id <id>]",
|
|
51
|
+
1,
|
|
52
|
+
"routine.resume",
|
|
53
|
+
"Resume a paused routine from its next slot.",
|
|
54
|
+
{ route: "<routine-id>", run: [routine, "runRoutineResume"] },
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"routine disable <routine-id> --expected-revision <revision> [--command-id <id>] [--dry-run | --confirm-stdin]",
|
|
58
|
+
1,
|
|
59
|
+
["routine.disable.preview", "routine.disable.confirm"],
|
|
60
|
+
"Disable a routine for good, after a preview.",
|
|
61
|
+
{
|
|
62
|
+
example: "maia --json routine disable <routine-id> --expected-revision 1 --dry-run",
|
|
63
|
+
kind: "two-phase",
|
|
64
|
+
route: "<routine-id>",
|
|
65
|
+
run: [routine, "runRoutineDisable"],
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
],
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=tree.js.map
|