@maiaos/cli 0.1.0-canary.9 → 0.1.0-canary.91
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 +21 -15
- package/dist/address-space/address-space.js +21 -2
- package/dist/address-space/index.js +1 -1
- package/dist/agents/client.d.ts +48 -27
- package/dist/agents/client.js +10 -3
- package/dist/agents/commands.d.ts +1 -0
- package/dist/agents/commands.js +24 -2
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/agents/input.js +6 -0
- package/dist/agents/output/format.js +11 -0
- package/dist/agents/tree/tree.js +16 -4
- package/dist/bin/maia.NOTICES.txt +1 -1
- package/dist/bin/maia.cdx.json +70 -19
- package/dist/bin/maia.mjs +1 -1
- package/dist/board/client.d.ts +27 -0
- package/dist/board/client.js +40 -0
- package/dist/board/commands.d.ts +28 -0
- package/dist/board/commands.js +52 -0
- package/dist/board/index.d.ts +3 -0
- package/dist/board/index.js +3 -0
- package/dist/board/input.js +339 -0
- package/dist/board/output/format.js +175 -0
- package/dist/board/output/index.js +2 -0
- package/dist/board/plan.js +47 -0
- package/dist/board/tree/index.js +2 -0
- package/dist/board/tree/tree.js +161 -0
- package/dist/cli/cli.d.ts +11 -3
- package/dist/cli/cli.js +215 -12
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/log-level.d.ts +11 -0
- package/dist/cli/log-level.js +14 -0
- package/dist/command-line/context.d.ts +25 -7
- package/dist/command-line/emit/index.d.ts +4 -0
- package/dist/command-line/emit/index.js +4 -0
- package/dist/command-line/{output.d.ts → emit/output.d.ts} +7 -3
- package/dist/command-line/{output.js → emit/output.js} +13 -5
- package/dist/command-line/{rows.d.ts → emit/rows.d.ts} +2 -0
- package/dist/command-line/{rows.js → emit/rows.js} +6 -0
- package/dist/command-line/index.d.ts +6 -6
- package/dist/command-line/index.js +5 -6
- package/dist/command-line/input/arguments.d.ts +6 -0
- package/dist/command-line/input/arguments.js +20 -0
- package/dist/command-line/input/index.d.ts +3 -2
- package/dist/command-line/input/index.js +3 -2
- package/dist/command-line/input/manager-options.d.ts +10 -0
- package/dist/command-line/input/manager-options.js +38 -0
- package/dist/command-line/input/prompt.d.ts +1 -0
- package/dist/command-line/input/prompt.js +1 -0
- package/dist/command-line/two-phase/index.d.ts +2 -0
- package/dist/command-line/two-phase/index.js +2 -0
- package/dist/command-line/{two-phase.d.ts → two-phase/two-phase.d.ts} +14 -14
- package/dist/command-line/{two-phase.js → two-phase/two-phase.js} +11 -11
- package/dist/command-receipt/command.js +1 -1
- package/dist/command-tree/commands.d.ts +1 -1
- package/dist/command-tree/commands.js +1 -5
- package/dist/command-tree/deprecated.d.ts +2 -0
- package/dist/command-tree/deprecated.js +29 -0
- package/dist/command-tree/grammar.js +2 -0
- package/dist/command-tree/help.d.ts +2 -2
- package/dist/command-tree/help.js +13 -15
- package/dist/command-tree/index.d.ts +1 -0
- package/dist/command-tree/index.js +1 -0
- package/dist/command-tree/local.js +27 -7
- package/dist/command-tree/placeholder.js +1 -1
- package/dist/command-tree/row.d.ts +1 -0
- package/dist/command-tree/tree.d.ts +2 -1
- package/dist/command-tree/tree.js +35 -4
- package/dist/connection/client.d.ts +72 -18
- package/dist/connection/client.js +1 -0
- package/dist/connection/executors/executors.d.ts +18 -0
- package/dist/connection/executors/executors.js +95 -0
- package/dist/connection/executors/index.d.ts +2 -0
- package/dist/connection/executors/index.js +2 -0
- package/dist/connection/executors/reading.js +22 -0
- package/dist/connection/index.d.ts +1 -0
- package/dist/connection/index.js +1 -0
- package/dist/connection/input.js +4 -4
- package/dist/connection/login.d.ts +1 -1
- package/dist/connection/login.js +4 -3
- package/dist/connection/output/format.js +6 -3
- package/dist/connection/output/index.d.ts +1 -1
- package/dist/connection/output/index.js +1 -1
- package/dist/connection/resolve.d.ts +5 -0
- package/dist/connection/setup-file.js +227 -0
- package/dist/connection/setup-project.js +138 -0
- package/dist/connection/system.js +126 -61
- package/dist/connection/tree/tree.js +179 -10
- package/dist/container/client.d.ts +2 -0
- package/dist/events/commands.js +65 -0
- package/dist/events/index.js +2 -0
- package/dist/events/tree/index.js +2 -0
- package/dist/events/tree/tree.js +17 -0
- package/dist/fleet/fleet.d.ts +7 -8
- package/dist/fleet/fleet.js +18 -6
- package/dist/fleet/index.d.ts +1 -1
- package/dist/fleet/index.js +1 -1
- package/dist/github/client.d.ts +189 -0
- package/dist/github/client.js +16 -0
- package/dist/github/commands.d.ts +17 -0
- package/dist/github/commands.js +81 -0
- package/dist/github/index.d.ts +3 -0
- package/dist/github/index.js +3 -0
- package/dist/github/input.js +114 -0
- package/dist/github/output/format.js +78 -0
- package/dist/github/output/index.js +2 -0
- package/dist/github/tree/index.js +2 -0
- package/dist/github/tree/tree.js +28 -0
- package/dist/goal/client.d.ts +246 -0
- package/dist/goal/client.js +13 -0
- package/dist/goal/commands.d.ts +22 -0
- package/dist/goal/commands.js +110 -0
- package/dist/goal/index.d.ts +4 -0
- package/dist/goal/index.js +4 -0
- package/dist/goal/input.js +118 -0
- package/dist/goal/output/format.js +29 -0
- package/dist/goal/output/index.js +2 -0
- package/dist/goal/pause.d.ts +16 -0
- package/dist/goal/pause.js +91 -0
- package/dist/goal/tree/index.js +2 -0
- package/dist/goal/tree/tree.js +49 -0
- package/dist/hold/client.d.ts +2 -0
- package/dist/hold/tree/tree.js +2 -2
- package/dist/import/batch/batch.js +196 -0
- package/dist/import/batch/index.js +3 -0
- package/dist/import/batch/manifest.js +108 -0
- package/dist/import/client.d.ts +3 -3
- package/dist/import/client.js +1 -1
- package/dist/import/commands.d.ts +2 -0
- package/dist/import/commands.js +104 -18
- package/dist/import/detach.d.ts +12 -0
- package/dist/import/detach.js +70 -0
- package/dist/import/index.d.ts +2 -1
- package/dist/import/index.js +2 -1
- package/dist/import/input.js +68 -11
- package/dist/import/output.js +57 -8
- package/dist/inbox/client.d.ts +310 -0
- package/dist/inbox/client.js +15 -0
- package/dist/inbox/index.d.ts +2 -0
- package/dist/inbox/index.js +2 -0
- package/dist/integration/client.d.ts +607 -1
- package/dist/integration/client.js +41 -1
- package/dist/integration/commands.d.ts +16 -0
- package/dist/integration/commands.js +93 -10
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js +1 -1
- package/dist/local-node/client.d.ts +13 -1
- package/dist/local-node/client.js +191 -235
- package/dist/local-node/index.d.ts +1 -1
- package/dist/local-node/index.js +1 -1
- package/dist/local-node/launch/index.d.ts +2 -0
- package/dist/local-node/launch/index.js +2 -0
- package/dist/local-node/launch/launch.d.ts +19 -0
- package/dist/local-node/launch/launch.js +60 -0
- package/dist/login/commands.js +7 -1
- package/dist/login/gateway.js +36 -13
- package/dist/login/menu.js +2 -1
- package/dist/login/vendor-account.js +3 -2
- package/dist/login/vendor-input.js +5 -4
- package/dist/mcp/calls.js +47 -222
- package/dist/mcp/routing.d.ts +3 -2
- package/dist/mcp/routing.js +39 -8
- package/dist/mcp/server.d.ts +10 -1
- package/dist/mcp/server.js +16 -6
- package/dist/migrate/classes.js +158 -0
- package/dist/migrate/commands.js +46 -0
- package/dist/migrate/format.js +199 -0
- package/dist/migrate/index.js +2 -0
- package/dist/migrate/item.js +59 -0
- package/dist/migrate/plan.js +79 -0
- package/dist/migrate/tree/index.js +2 -0
- package/dist/migrate/tree/tree.js +23 -0
- package/dist/node-update/client.d.ts +17 -0
- package/dist/node-update/client.js +27 -0
- package/dist/node-update/commands.d.ts +20 -0
- package/dist/node-update/commands.js +150 -0
- package/dist/node-update/index.d.ts +4 -0
- package/dist/node-update/index.js +4 -0
- package/dist/node-update/output.d.ts +12 -0
- package/dist/node-update/output.js +165 -0
- package/dist/node-update/tree/index.js +2 -0
- package/dist/node-update/tree/tree.js +73 -0
- package/dist/pairing/client.d.ts +13 -0
- package/dist/pairing/client.js +36 -0
- package/dist/pairing/commands.d.ts +15 -0
- package/dist/pairing/commands.js +131 -0
- package/dist/pairing/index.d.ts +4 -0
- package/dist/pairing/index.js +4 -0
- package/dist/pairing/output.d.ts +12 -0
- package/dist/pairing/output.js +53 -0
- package/dist/pairing/tree/index.js +2 -0
- package/dist/pairing/tree/tree.js +35 -0
- package/dist/panel/client.d.ts +9 -0
- package/dist/panel/client.js +24 -0
- package/dist/panel/commands.d.ts +19 -0
- package/dist/panel/commands.js +112 -0
- package/dist/panel/index.d.ts +3 -0
- package/dist/panel/index.js +3 -0
- package/dist/panel/tree/index.js +2 -0
- package/dist/panel/tree/tree.js +14 -0
- package/dist/port-lease/client.d.ts +3 -0
- package/dist/principal/client.d.ts +9 -0
- package/dist/principal/client.js +7 -0
- package/dist/principal/commands.d.ts +14 -0
- package/dist/principal/commands.js +84 -0
- package/dist/principal/index.d.ts +4 -0
- package/dist/principal/index.js +4 -0
- package/dist/principal/output.d.ts +8 -0
- package/dist/principal/output.js +43 -0
- package/dist/principal/tree/index.js +2 -0
- package/dist/principal/tree/tree.js +31 -0
- package/dist/project-guard/client.d.ts +13 -0
- package/dist/project-guard/input.js +15 -1
- package/dist/project-guard/output/format.js +5 -0
- package/dist/project-instructions/client.d.ts +56 -0
- package/dist/project-instructions/client.js +7 -0
- package/dist/project-instructions/commands.d.ts +13 -0
- package/dist/project-instructions/commands.js +89 -0
- package/dist/project-instructions/index.d.ts +3 -0
- package/dist/project-instructions/index.js +3 -0
- package/dist/project-instructions/input.js +33 -0
- package/dist/project-instructions/output/format.js +22 -0
- package/dist/project-instructions/output/index.js +2 -0
- package/dist/project-knowledge/change.js +22 -0
- package/dist/project-knowledge/client.d.ts +127 -0
- package/dist/project-knowledge/client.js +17 -0
- package/dist/project-knowledge/commands.d.ts +14 -0
- package/dist/project-knowledge/commands.js +100 -0
- package/dist/project-knowledge/index.d.ts +3 -0
- package/dist/project-knowledge/index.js +3 -0
- package/dist/project-knowledge/input.js +32 -0
- package/dist/project-knowledge/output/format.js +64 -0
- package/dist/project-knowledge/output/index.js +2 -0
- package/dist/project-knowledge/sources.js +108 -0
- package/dist/project-knowledge/upload.js +27 -0
- package/dist/project-workspace/git-reads.d.ts +12 -0
- package/dist/project-workspace/git-reads.js +71 -0
- package/dist/project-workspace/index.d.ts +1 -0
- package/dist/project-workspace/index.js +1 -0
- package/dist/project-workspace/metadata-client.d.ts +2 -0
- package/dist/project-workspace/output/human.js +1 -1
- package/dist/project-workspace/tree/tree.js +95 -5
- package/dist/reach/client.d.ts +9 -0
- package/dist/reach/client.js +7 -0
- package/dist/reach/commands.d.ts +14 -0
- package/dist/reach/commands.js +72 -0
- package/dist/reach/index.d.ts +3 -0
- package/dist/reach/index.js +3 -0
- package/dist/reach/output.js +41 -0
- package/dist/reach/tree/index.js +2 -0
- package/dist/reach/tree/tree.js +28 -0
- package/dist/reference/resolve.js +2 -1
- package/dist/remote-node/client.d.ts +85 -0
- package/dist/remote-node/commands.d.ts +1 -0
- package/dist/remote-node/commands.js +61 -18
- package/dist/remote-node/connector.d.ts +16 -0
- package/dist/remote-node/connector.js +10 -3
- package/dist/remote-node/index.d.ts +1 -1
- package/dist/remote-node/index.js +1 -1
- package/dist/remote-node/lifecycle.js +66 -0
- package/dist/remote-node/reachability.js +31 -18
- package/dist/remote-node/reading.js +31 -0
- package/dist/remote-node/text.js +68 -5
- package/dist/remote-node/tree/tree.js +26 -3
- package/dist/routine/client.d.ts +547 -13
- package/dist/routine/client.js +19 -1
- package/dist/routine/commands.d.ts +5 -0
- package/dist/routine/commands.js +73 -15
- package/dist/routine/index.d.ts +2 -1
- package/dist/routine/index.js +2 -1
- package/dist/routine/input.js +66 -3
- package/dist/routine/output/format.js +80 -19
- package/dist/routine/output/index.js +1 -1
- package/dist/routine/portable/import-files.js +74 -0
- package/dist/routine/portable/import-output.js +21 -0
- package/dist/routine/portable/import.js +274 -0
- package/dist/routine/portable/index.js +3 -0
- package/dist/routine/portable/portable.js +185 -0
- package/dist/routine/tree/tree.js +80 -8
- package/dist/routine/trigger/commands.d.ts +20 -0
- package/dist/routine/trigger/commands.js +74 -0
- package/dist/routine/trigger/format.js +42 -0
- package/dist/routine/trigger/index.d.ts +2 -0
- package/dist/routine/trigger/index.js +2 -0
- package/dist/routine/trigger/input.js +81 -0
- package/dist/run-ledger/client.d.ts +47 -0
- package/dist/secret/client.d.ts +39 -0
- package/dist/secret/client.js +6 -0
- package/dist/secret/commands.d.ts +12 -0
- package/dist/secret/commands.js +91 -0
- package/dist/secret/index.d.ts +3 -0
- package/dist/secret/index.js +3 -0
- package/dist/secret/input.js +22 -0
- package/dist/secret/output/format.js +10 -0
- package/dist/secret/output/index.js +2 -0
- package/dist/secret/tree/index.js +2 -0
- package/dist/secret/tree/tree.js +16 -0
- package/dist/session/agent-permission.d.ts +3 -2
- package/dist/session/approval/client.d.ts +9 -5
- package/dist/session/approval/client.js +2 -2
- package/dist/session/approval/commands.d.ts +8 -0
- package/dist/session/approval/commands.js +267 -21
- package/dist/session/approval/index.d.ts +1 -1
- package/dist/session/approval/index.js +1 -1
- package/dist/session/approval/output/format.js +53 -1
- package/dist/session/approval/output/index.js +1 -1
- package/dist/session/attach-render.js +6 -0
- package/dist/session/attach.d.ts +1 -1
- package/dist/session/attach.js +7 -2
- package/dist/session/client.d.ts +19 -13
- package/dist/session/client.js +39 -19
- package/dist/session/coding-client.d.ts +2 -0
- package/dist/session/coding-client.js +1 -2
- package/dist/session/coding-commands.js +24 -7
- package/dist/session/command/commands.js +109 -0
- package/dist/session/command/index.js +2 -0
- package/dist/session/commands.d.ts +6 -1
- package/dist/session/commands.js +417 -73
- package/dist/session/create-tasks.js +24 -51
- package/dist/session/creation/creation.js +51 -0
- package/dist/session/creation/index.js +2 -0
- package/dist/session/fork/fork.js +135 -0
- package/dist/session/fork/index.js +2 -0
- package/dist/session/git-status.d.ts +11 -0
- package/dist/session/git-status.js +30 -0
- package/dist/session/index.d.ts +4 -3
- package/dist/session/index.js +3 -2
- package/dist/session/interaction/client.d.ts +3 -0
- package/dist/session/move/index.js +2 -0
- package/dist/session/move/move.js +439 -0
- package/dist/session/output/held.js +28 -0
- package/dist/session/output/human.js +73 -10
- package/dist/session/output/tasks.js +68 -7
- package/dist/session/setup/index.js +2 -0
- package/dist/session/setup/setup.js +69 -0
- package/dist/session/spawn/caps.js +128 -0
- package/dist/session/spawn/index.js +5 -0
- package/dist/session/spawn/spawn.js +203 -0
- package/dist/session/spawn/standing.js +62 -0
- package/dist/session/spawn/supervision.js +62 -0
- package/dist/session/switch/index.js +2 -0
- package/dist/session/switch/switch.js +103 -0
- package/dist/session/tree/tree.js +372 -32
- package/dist/session/turn/attachments.js +54 -0
- package/dist/session/turn/client.d.ts +9 -1
- package/dist/session/turn/client.js +20 -1
- package/dist/session/turn/commands.d.ts +8 -1
- package/dist/session/turn/commands.js +253 -36
- package/dist/session/turn/index.d.ts +3 -3
- package/dist/session/turn/index.js +1 -1
- package/dist/session/turn/output.d.ts +34 -2
- package/dist/session/turn/output.js +52 -2
- package/dist/skills-sync/client.d.ts +9 -0
- package/dist/skills-sync/client.js +7 -0
- package/dist/skills-sync/commands.d.ts +15 -0
- package/dist/skills-sync/commands.js +241 -0
- package/dist/skills-sync/index.d.ts +3 -0
- package/dist/skills-sync/index.js +3 -0
- package/dist/skills-sync/output.js +168 -0
- package/dist/skills-sync/set-file.js +23 -0
- package/dist/skills-sync/tree/index.js +2 -0
- package/dist/skills-sync/tree/tree.js +38 -0
- package/dist/status/client.d.ts +21 -3
- package/dist/status/command.js +6 -3
- package/dist/status/doctor.d.ts +5 -1
- package/dist/status/doctor.js +14 -7
- package/dist/status/output/compact.d.ts +3 -0
- package/dist/status/output/compact.js +17 -7
- package/dist/status/output/human.js +25 -0
- package/dist/team-workspace/client.d.ts +1 -0
- package/dist/terminal/control-commands.js +26 -9
- package/dist/terminal/keys.js +62 -0
- package/dist/terminal/output/compact-list.js +3 -0
- package/dist/terminal/output/human.js +2 -2
- package/dist/terminal/tree/tree.js +1 -1
- package/dist/text-input/index.js +2 -0
- package/dist/text-input/text-input.js +35 -0
- package/dist/webhooks/client.d.ts +157 -0
- package/dist/webhooks/client.js +8 -0
- package/dist/webhooks/commands.d.ts +17 -0
- package/dist/webhooks/commands.js +76 -0
- package/dist/webhooks/index.d.ts +3 -0
- package/dist/webhooks/index.js +3 -0
- package/dist/webhooks/input.js +125 -0
- package/dist/webhooks/output/format.js +75 -0
- package/dist/webhooks/output/index.js +2 -0
- package/dist/webhooks/tree/index.js +2 -0
- package/dist/webhooks/tree/tree.js +49 -0
- package/guidance/maia-cli/SKILL.md +1 -1
- package/guidance/maia-node/SKILL.md +54 -0
- package/guidance/maia-orchestration/SKILL.md +1 -2
- package/guidance/maia-sessions/SKILL.md +110 -0
- package/package.json +7 -6
- package/dist/address-space/address-space.d.ts +0 -38
- package/dist/address-space/index.d.ts +0 -2
- package/dist/agents/input.d.ts +0 -130
- package/dist/agents/output/format.d.ts +0 -8
- package/dist/agents/output/index.d.ts +0 -2
- package/dist/agents/tree/index.d.ts +0 -2
- package/dist/agents/tree/tree.d.ts +0 -3
- package/dist/bootstrap/exit.d.ts +0 -14
- package/dist/bootstrap/exit.js +0 -42
- package/dist/bootstrap/index.d.ts +0 -3
- package/dist/bootstrap/index.js +0 -3
- package/dist/bootstrap/process.d.ts +0 -5
- package/dist/bootstrap/process.js +0 -23
- package/dist/bootstrap/run.d.ts +0 -25
- package/dist/bootstrap/run.js +0 -95
- package/dist/bootstrap/stdio.d.ts +0 -4
- package/dist/bootstrap/stdio.js +0 -9
- package/dist/cli/environment.d.ts +0 -8
- package/dist/cli/services.d.ts +0 -4
- package/dist/command-line/context.js +0 -2
- package/dist/command-line/input/stdin-stream.d.ts +0 -4
- package/dist/command-line/json-decoder.d.ts +0 -3
- package/dist/command-receipt/command.d.ts +0 -4
- package/dist/command-receipt/compact-list.d.ts +0 -20
- package/dist/command-receipt/index.d.ts +0 -3
- package/dist/command-tree/completion.d.ts +0 -6
- package/dist/command-tree/local.d.ts +0 -3
- package/dist/command-tree/row.js +0 -2
- package/dist/connection/access/format.d.ts +0 -8
- package/dist/connection/access/input.d.ts +0 -53
- package/dist/connection/input.d.ts +0 -50
- package/dist/connection/signin.d.ts +0 -4
- package/dist/connection/tree/index.d.ts +0 -2
- package/dist/connection/tree/tree.d.ts +0 -3
- package/dist/container/output/format.d.ts +0 -11
- package/dist/container/output/index.d.ts +0 -2
- package/dist/context/client.d.ts +0 -7
- package/dist/context/commands.d.ts +0 -3
- package/dist/context/index.d.ts +0 -3
- package/dist/dashboard/cockpit-client.d.ts +0 -6
- package/dist/dashboard/cockpit-client.js +0 -27
- package/dist/dashboard/cockpits.d.ts +0 -29
- package/dist/dashboard/cockpits.js +0 -65
- package/dist/dashboard/dashboard.d.ts +0 -7
- package/dist/dashboard/draw.d.ts +0 -15
- package/dist/dashboard/frame.d.ts +0 -4
- package/dist/dashboard/index.d.ts +0 -2
- package/dist/dashboard/modes.d.ts +0 -5
- package/dist/dashboard/node-connection.d.ts +0 -15
- package/dist/dashboard/node-connection.js +0 -51
- package/dist/dashboard/pi-tui.d.ts +0 -6
- package/dist/dashboard/status-bar.d.ts +0 -4
- package/dist/dashboard/terminal.d.ts +0 -53
- package/dist/dashboard/tree-model.d.ts +0 -28
- package/dist/dashboard/tree.d.ts +0 -10
- package/dist/development/cli.d.ts +0 -3
- package/dist/development/cli.js +0 -44
- package/dist/execution/tree/index.d.ts +0 -2
- package/dist/execution/tree/tree.d.ts +0 -3
- package/dist/hold/output/format.d.ts +0 -11
- package/dist/hold/output/index.d.ts +0 -2
- package/dist/hold/tree/index.d.ts +0 -2
- package/dist/hold/tree/tree.d.ts +0 -3
- package/dist/import/input.d.ts +0 -16
- package/dist/import/output.d.ts +0 -6
- package/dist/integration/output.d.ts +0 -22
- package/dist/login/failure.d.ts +0 -3
- package/dist/login/gateway.d.ts +0 -12
- package/dist/login/menu.d.ts +0 -4
- package/dist/login/output/format.d.ts +0 -16
- package/dist/login/output/index.d.ts +0 -2
- package/dist/login/vendor-account.d.ts +0 -95
- package/dist/login/vendor-input.d.ts +0 -14
- package/dist/mcp/calls.d.ts +0 -8
- package/dist/orchestration/output/compact-aggregate.d.ts +0 -121
- package/dist/orchestration/output/compact-run-list.d.ts +0 -20
- package/dist/orchestration/output/human.d.ts +0 -80
- package/dist/orchestration/output/index.d.ts +0 -4
- package/dist/orchestration/tree/index.d.ts +0 -2
- package/dist/orchestration/tree/tree.d.ts +0 -3
- package/dist/port-lease/input.d.ts +0 -65
- package/dist/port-lease/output/format.d.ts +0 -11
- package/dist/port-lease/output/index.d.ts +0 -2
- package/dist/presentation/output/format.d.ts +0 -11
- package/dist/presentation/output/index.d.ts +0 -3
- package/dist/project-guard/input.d.ts +0 -18
- package/dist/project-guard/output/format.d.ts +0 -11
- package/dist/project-guard/output/index.d.ts +0 -2
- package/dist/project-workspace/output/human.d.ts +0 -139
- package/dist/project-workspace/output/index.d.ts +0 -3
- package/dist/project-workspace/output/metadata.d.ts +0 -11
- package/dist/project-workspace/tree/index.d.ts +0 -2
- package/dist/project-workspace/tree/tree.d.ts +0 -3
- package/dist/provider/client.d.ts +0 -6
- package/dist/provider/commands.d.ts +0 -3
- package/dist/provider/index.d.ts +0 -3
- package/dist/reference/commands.d.ts +0 -3
- package/dist/reference/index.d.ts +0 -3
- package/dist/reference/resolve.d.ts +0 -31
- package/dist/reference/tree/index.d.ts +0 -2
- package/dist/reference/tree/tree.d.ts +0 -3
- package/dist/remote-node/reachability.d.ts +0 -64
- package/dist/remote-node/text.d.ts +0 -10
- package/dist/remote-node/tree/index.d.ts +0 -2
- package/dist/remote-node/tree/tree.d.ts +0 -3
- package/dist/routine/input.d.ts +0 -28
- package/dist/routine/output/format.d.ts +0 -23
- package/dist/routine/output/index.d.ts +0 -2
- package/dist/routine/tree/index.d.ts +0 -2
- package/dist/routine/tree/tree.d.ts +0 -3
- package/dist/run-ledger/input.d.ts +0 -42
- package/dist/run-ledger/output/format.d.ts +0 -11
- package/dist/run-ledger/output/index.d.ts +0 -2
- package/dist/session/approval/output/format.d.ts +0 -23
- package/dist/session/approval/output/index.d.ts +0 -2
- package/dist/session/attach-render.d.ts +0 -16
- package/dist/session/create-tasks.d.ts +0 -20
- package/dist/session/interaction/input.d.ts +0 -15
- package/dist/session/interaction/output/format.d.ts +0 -11
- package/dist/session/interaction/output/index.d.ts +0 -2
- package/dist/session/output/diff.d.ts +0 -3
- package/dist/session/output/failure.d.ts +0 -11
- package/dist/session/output/human.d.ts +0 -113
- package/dist/session/output/index.d.ts +0 -6
- package/dist/session/output/observe.d.ts +0 -4
- package/dist/session/output/tasks.d.ts +0 -34
- package/dist/session/task-file.d.ts +0 -5
- package/dist/session/tree/index.d.ts +0 -2
- package/dist/session/tree/tree.d.ts +0 -3
- package/dist/team-workspace/ceremony.d.ts +0 -19
- package/dist/team-workspace/confirmation.d.ts +0 -4
- package/dist/team-workspace/dependencies.js +0 -2
- package/dist/team-workspace/output.d.ts +0 -15
- package/dist/terminal/arguments.d.ts +0 -13
- package/dist/terminal/output/compact-list.d.ts +0 -148
- package/dist/terminal/output/human.d.ts +0 -42
- package/dist/terminal/output/index.d.ts +0 -3
- package/dist/terminal/tree/index.d.ts +0 -2
- package/dist/terminal/tree/tree.d.ts +0 -3
- /package/dist/command-line/{json-decoder.js → emit/json-decoder.js} +0 -0
- /package/dist/command-line/{json.d.ts → emit/json.d.ts} +0 -0
- /package/dist/command-line/{json.js → emit/json.js} +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AgentsChangeConfirmResult, AgentsChangePreviewResult, AgentsListResult, AgentsShowResult } from "@maiaos/sdk";
|
|
2
|
-
export type AgentsResult = AgentsChangeConfirmResult | AgentsChangePreviewResult | AgentsListResult | AgentsShowResult;
|
|
3
|
-
export type CliAgentsResult = {
|
|
4
|
-
readonly command: AgentsResult["method"];
|
|
5
|
-
readonly result: AgentsResult;
|
|
6
|
-
};
|
|
7
|
-
export declare const formatAgentsResult: ({ result }: CliAgentsResult) => string;
|
|
8
|
-
//# sourceMappingURL=format.d.ts.map
|
package/dist/bootstrap/exit.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
type Output = {
|
|
3
|
-
readonly on: (event: "close" | "error", listener: () => void) => unknown;
|
|
4
|
-
readonly writableLength: number;
|
|
5
|
-
readonly write: (chunk: string, callback?: () => void) => unknown;
|
|
6
|
-
};
|
|
7
|
-
type ExitingProcess = {
|
|
8
|
-
readonly exit: (code: number) => void;
|
|
9
|
-
readonly stderr: Output;
|
|
10
|
-
readonly stdout: Output;
|
|
11
|
-
};
|
|
12
|
-
export declare const exitAfterOutput: (program: Effect.Effect<number>, host: ExitingProcess) => Effect.Effect<void>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=exit.d.ts.map
|
package/dist/bootstrap/exit.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as Cause from "effect/Cause";
|
|
2
|
-
import * as Deferred from "effect/Deferred";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import * as Exit from "effect/Exit";
|
|
5
|
-
import * as Fiber from "effect/Fiber";
|
|
6
|
-
const EXIT_INTERRUPTED = 130;
|
|
7
|
-
const watch = (output) => Effect.gen(function* () {
|
|
8
|
-
const ended = yield* Deferred.make();
|
|
9
|
-
const end = () => {
|
|
10
|
-
Deferred.doneUnsafe(ended, Effect.succeed(true));
|
|
11
|
-
};
|
|
12
|
-
output.on("error", end);
|
|
13
|
-
output.on("close", end);
|
|
14
|
-
const flushed = Effect.callback((resume) => {
|
|
15
|
-
if (output.writableLength === 0) {
|
|
16
|
-
resume(Effect.succeed(true));
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
output.write("", () => {
|
|
20
|
-
resume(Effect.succeed(true));
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
return Effect.raceFirst(Deferred.await(ended), flushed);
|
|
24
|
-
});
|
|
25
|
-
const exitCode = (exit, stderr) => {
|
|
26
|
-
if (Exit.isSuccess(exit))
|
|
27
|
-
return exit.value;
|
|
28
|
-
if (Cause.hasInterruptsOnly(exit.cause))
|
|
29
|
-
return EXIT_INTERRUPTED;
|
|
30
|
-
stderr.write(`${Cause.pretty(exit.cause)}\n`);
|
|
31
|
-
return 1;
|
|
32
|
-
};
|
|
33
|
-
export const exitAfterOutput = (program, host) => Effect.gen(function* () {
|
|
34
|
-
const drains = [yield* watch(host.stdout), yield* watch(host.stderr)];
|
|
35
|
-
const running = yield* Effect.forkChild(program, {
|
|
36
|
-
startImmediately: true,
|
|
37
|
-
});
|
|
38
|
-
const code = exitCode(yield* Fiber.await(running), host.stderr);
|
|
39
|
-
yield* Effect.all(drains, { concurrency: "unbounded", discard: true });
|
|
40
|
-
host.exit(code);
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=exit.js.map
|
package/dist/bootstrap/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import process from "node:process";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import { constVoid } from "effect/Function";
|
|
4
|
-
import * as Runtime from "effect/Runtime";
|
|
5
|
-
import { promptLine, terminalIsInteractive, } from "../command-line/input/index.js";
|
|
6
|
-
import { exitAfterOutput } from "./exit.js";
|
|
7
|
-
const readProcessStdin = (request) => Effect.promise(() => import("./stdio.js")).pipe(Effect.flatMap((stdio) => stdio.readStdin(request)));
|
|
8
|
-
export const processIo = () => ({
|
|
9
|
-
interactive: terminalIsInteractive(),
|
|
10
|
-
prompt: promptLine,
|
|
11
|
-
stderr(text) {
|
|
12
|
-
process.stderr.write(text);
|
|
13
|
-
},
|
|
14
|
-
stdin: readProcessStdin,
|
|
15
|
-
stdout(text) {
|
|
16
|
-
process.stdout.write(text);
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
const runMain = Runtime.makeRunMain(constVoid);
|
|
20
|
-
export const runProcessMain = (program) => {
|
|
21
|
-
runMain(exitAfterOutput(program, process), { disableErrorReporting: true });
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=process.js.map
|
package/dist/bootstrap/run.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import type { CliIo } from "../command-line/index.js";
|
|
3
|
-
type AgentModule = {
|
|
4
|
-
readonly runMaiaAgent?: (arguments_: readonly string[], options: {
|
|
5
|
-
readonly io: Pick<CliIo, "stderr" | "stdout">;
|
|
6
|
-
}) => Promise<number>;
|
|
7
|
-
};
|
|
8
|
-
type ProductCliModule = {
|
|
9
|
-
readonly runCli?: (arguments_: readonly string[], version: string, io: CliIo) => Effect.Effect<number>;
|
|
10
|
-
};
|
|
11
|
-
export type MaiaBootstrapDependencies = {
|
|
12
|
-
readonly loadAgent: () => Promise<AgentModule>;
|
|
13
|
-
readonly loadProductCli: () => Promise<ProductCliModule>;
|
|
14
|
-
};
|
|
15
|
-
type MaiaBootstrapInput = {
|
|
16
|
-
readonly arguments_: readonly string[];
|
|
17
|
-
readonly currentNodeVersion: string;
|
|
18
|
-
readonly expectedNodeVersion: string;
|
|
19
|
-
readonly io: CliIo;
|
|
20
|
-
readonly version: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const isAgentInvocation: (arguments_: readonly string[]) => boolean;
|
|
23
|
-
export declare const runMaiaBootstrap: (input: MaiaBootstrapInput, dependencies: MaiaBootstrapDependencies) => Effect.Effect<number>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=run.d.ts.map
|
package/dist/bootstrap/run.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import * as Cause from "effect/Cause";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
const EXIT_SOFTWARE = 70;
|
|
4
|
-
const EXIT_UNAVAILABLE = 69;
|
|
5
|
-
const isDoctor = (arguments_) => !arguments_.includes("-h") &&
|
|
6
|
-
!arguments_.includes("--help") &&
|
|
7
|
-
arguments_.find((token) => !token.startsWith("-")) === "doctor";
|
|
8
|
-
export const isAgentInvocation = (arguments_) => arguments_[0] === "agent";
|
|
9
|
-
const reportBootstrapFailure = (subject, io) => {
|
|
10
|
-
io.stderr(`Maia ${subject} could not start; run 'maia doctor'.\n`);
|
|
11
|
-
return EXIT_SOFTWARE;
|
|
12
|
-
};
|
|
13
|
-
const load = (loader) => Effect.tryPromise({ catch: (error) => error, try: loader });
|
|
14
|
-
const probe = (loader, passes) => load(loader).pipe(Effect.map(passes), Effect.catchCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.interrupt : Effect.succeed(false)));
|
|
15
|
-
const probePayloads = (dependencies) => Effect.all([
|
|
16
|
-
probe(dependencies.loadProductCli, (module) => typeof module.runCli === "function"),
|
|
17
|
-
probe(dependencies.loadAgent, (module) => typeof module.runMaiaAgent === "function"),
|
|
18
|
-
]).pipe(Effect.map(([cliPayload, agent]) => ({ agent, cliPayload })));
|
|
19
|
-
const formatInstallation = (checks) => `Maia doctor failed\n${checks
|
|
20
|
-
.map((check) => ` ${check.code}: ${check.ok ? "ok" : "failed; next: reinstall Maia"}`)
|
|
21
|
-
.join("\n")}\n`;
|
|
22
|
-
const writeInstallationFailure = (output) => {
|
|
23
|
-
const { arguments_, checks, input } = output;
|
|
24
|
-
const result = {
|
|
25
|
-
checks: checks.map((check) => check.ok ? check : { ...check, next: "reinstall Maia" }),
|
|
26
|
-
command: "doctor",
|
|
27
|
-
ok: false,
|
|
28
|
-
version: input.version,
|
|
29
|
-
};
|
|
30
|
-
input.io.stdout(arguments_.includes("--json")
|
|
31
|
-
? `${JSON.stringify({ ok: true, result })}\n`
|
|
32
|
-
: formatInstallation(checks));
|
|
33
|
-
return EXIT_SOFTWARE;
|
|
34
|
-
};
|
|
35
|
-
const runDoctor = (input, dependencies) => Effect.flatMap(probePayloads(dependencies), (payloads) => {
|
|
36
|
-
const checks = [
|
|
37
|
-
{ code: "bootstrap", ok: true },
|
|
38
|
-
{
|
|
39
|
-
code: "node_runtime",
|
|
40
|
-
ok: input.currentNodeVersion === input.expectedNodeVersion,
|
|
41
|
-
},
|
|
42
|
-
{ code: "cli_payload", ok: payloads.cliPayload },
|
|
43
|
-
{ code: "agent", ok: payloads.agent },
|
|
44
|
-
];
|
|
45
|
-
return checks.every((check) => check.ok)
|
|
46
|
-
? runProductCli(input, dependencies)
|
|
47
|
-
: Effect.succeed(writeInstallationFailure({
|
|
48
|
-
arguments_: input.arguments_,
|
|
49
|
-
checks,
|
|
50
|
-
input,
|
|
51
|
-
}));
|
|
52
|
-
});
|
|
53
|
-
const requireSupportedNode = (input) => {
|
|
54
|
-
if (input.currentNodeVersion === input.expectedNodeVersion)
|
|
55
|
-
return undefined;
|
|
56
|
-
input.io.stderr(`Maia CLI requires Node ${input.expectedNodeVersion}; received ${input.currentNodeVersion}.\n`);
|
|
57
|
-
return EXIT_UNAVAILABLE;
|
|
58
|
-
};
|
|
59
|
-
const missingEntry = Effect.fail(new Error("The payload lacks its entry."));
|
|
60
|
-
const runPayload = ({ input, loader, run, subject, }) => load(loader).pipe(Effect.flatMap(run), Effect.catchCause((cause) => Cause.hasInterruptsOnly(cause)
|
|
61
|
-
? Effect.interrupt
|
|
62
|
-
: Effect.sync(() => reportBootstrapFailure(subject, input.io))));
|
|
63
|
-
const runAgent = (input, dependencies) => runPayload({
|
|
64
|
-
input,
|
|
65
|
-
loader: dependencies.loadAgent,
|
|
66
|
-
run: (module) => {
|
|
67
|
-
const runMaiaAgent = module.runMaiaAgent;
|
|
68
|
-
return typeof runMaiaAgent === "function"
|
|
69
|
-
? Effect.tryPromise({
|
|
70
|
-
catch: (error) => error,
|
|
71
|
-
try: () => runMaiaAgent(input.arguments_.slice(1), { io: input.io }),
|
|
72
|
-
})
|
|
73
|
-
: missingEntry;
|
|
74
|
-
},
|
|
75
|
-
subject: "Agent",
|
|
76
|
-
});
|
|
77
|
-
const runProductCli = (input, dependencies) => runPayload({
|
|
78
|
-
input,
|
|
79
|
-
loader: dependencies.loadProductCli,
|
|
80
|
-
run: (module) => typeof module.runCli === "function"
|
|
81
|
-
? module.runCli(input.arguments_, input.version, input.io)
|
|
82
|
-
: missingEntry,
|
|
83
|
-
subject: "CLI",
|
|
84
|
-
});
|
|
85
|
-
export const runMaiaBootstrap = (input, dependencies) => Effect.suspend(() => {
|
|
86
|
-
if (isDoctor(input.arguments_))
|
|
87
|
-
return runDoctor(input, dependencies);
|
|
88
|
-
const unsupportedNode = requireSupportedNode(input);
|
|
89
|
-
if (unsupportedNode !== undefined)
|
|
90
|
-
return Effect.succeed(unsupportedNode);
|
|
91
|
-
return isAgentInvocation(input.arguments_)
|
|
92
|
-
? runAgent(input, dependencies)
|
|
93
|
-
: runProductCli(input, dependencies);
|
|
94
|
-
});
|
|
95
|
-
//# sourceMappingURL=run.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import { type BoundedStdinRequest } from "../command-line/input/index.js";
|
|
3
|
-
export declare const readStdin: (request: BoundedStdinRequest) => Effect.Effect<string, import("../command-line/input/arguments.js").CliArgumentError, never>;
|
|
4
|
-
//# sourceMappingURL=stdio.d.ts.map
|
package/dist/bootstrap/stdio.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as NodeStdio from "@effect/platform-node-shared/NodeStdio";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import * as Stdio from "effect/Stdio";
|
|
4
|
-
import { readBoundedStdin, } from "../command-line/input/index.js";
|
|
5
|
-
export const readStdin = (request) => Effect.gen(function* () {
|
|
6
|
-
const stdio = yield* Stdio.Stdio;
|
|
7
|
-
return yield* readBoundedStdin(stdio.stdin, request);
|
|
8
|
-
}).pipe(Effect.provide(NodeStdio.layer));
|
|
9
|
-
//# sourceMappingURL=stdio.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
export type EnvironmentOptions = {
|
|
3
|
-
readonly node?: string;
|
|
4
|
-
readonly noInput?: string;
|
|
5
|
-
readonly profile?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const environmentOptions: Effect.Effect<EnvironmentOptions>;
|
|
8
|
-
//# sourceMappingURL=environment.d.ts.map
|
package/dist/cli/services.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import type { CliServices } from "../command-line/index.js";
|
|
3
|
-
export declare const provideCliServices: <TValue, TError>(command: Effect.Effect<TValue, TError, CliServices>) => Effect.Effect<TValue, TError>;
|
|
4
|
-
//# sourceMappingURL=services.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type * as Effect from "effect/Effect";
|
|
2
|
-
import * as Stream from "effect/Stream";
|
|
3
|
-
export declare const foldStream: <TChunk, TState, TError>(input: Stream.Stream<TChunk, unknown>, initial: () => TState, step: (state: TState, chunk: TChunk) => Effect.Effect<TState, TError>) => Effect.Effect<TState, TError>;
|
|
4
|
-
//# sourceMappingURL=stdin-stream.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type CommandContext, type CommandEffect } from "../command-line/index.js";
|
|
2
|
-
export declare const runReceiptList: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
3
|
-
export declare const runReceiptShow: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
4
|
-
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReceiptListResult } from "@maiaos/sdk";
|
|
2
|
-
type CliReceiptListItem = {
|
|
3
|
-
readonly commandId: ReceiptListResult["items"][number]["commandId"];
|
|
4
|
-
readonly createdAt: ReceiptListResult["items"][number]["createdAt"];
|
|
5
|
-
readonly method: ReceiptListResult["items"][number]["method"];
|
|
6
|
-
readonly receiptId: ReceiptListResult["items"][number]["receiptId"];
|
|
7
|
-
readonly state: ReceiptListResult["items"][number]["state"];
|
|
8
|
-
readonly target: ReceiptListResult["items"][number]["target"];
|
|
9
|
-
};
|
|
10
|
-
export type CliReceiptListResult = {
|
|
11
|
-
readonly command: "receipt.list";
|
|
12
|
-
readonly count: number;
|
|
13
|
-
readonly items: readonly CliReceiptListItem[];
|
|
14
|
-
readonly nextCursor?: ReceiptListResult["nextCursor"];
|
|
15
|
-
};
|
|
16
|
-
export declare const projectReceiptListItem: (item: ReceiptListResult["items"][number]) => CliReceiptListItem;
|
|
17
|
-
export declare const projectReceiptListResult: (value: ReceiptListResult) => CliReceiptListResult;
|
|
18
|
-
export declare const formatReceiptList: (result: CliReceiptListResult) => string;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=compact-list.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const SHELLS: readonly ["bash", "zsh", "fish"];
|
|
2
|
-
export type CompletionShell = (typeof SHELLS)[number];
|
|
3
|
-
export declare const isCompletionShell: (value: string | undefined) => value is CompletionShell;
|
|
4
|
-
export declare const completionScript: (shell: CompletionShell) => string;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=completion.d.ts.map
|
package/dist/command-tree/row.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ConnectionGrantListResult, ConnectionGrantSetConfirmResult, ConnectionGrantSetPreviewResult, ConnectionPoolListResult, ConnectionPoolSetConfirmResult, ConnectionPoolSetPreviewResult } from "@maiaos/sdk";
|
|
2
|
-
export type ConnectionAccessResult = ConnectionGrantListResult | ConnectionGrantSetConfirmResult | ConnectionGrantSetPreviewResult | ConnectionPoolListResult | ConnectionPoolSetConfirmResult | ConnectionPoolSetPreviewResult;
|
|
3
|
-
export type CliConnectionAccessResult = {
|
|
4
|
-
readonly command: ConnectionAccessResult["method"];
|
|
5
|
-
readonly result: ConnectionAccessResult;
|
|
6
|
-
};
|
|
7
|
-
export declare const formatConnectionAccessResult: ({ result, }: CliConnectionAccessResult) => string;
|
|
8
|
-
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import { type ParsedOptions } from "../../command-line/index.js";
|
|
3
|
-
type PoolMode = "off" | "rotate" | "single";
|
|
4
|
-
export declare const readGrantList: (tokens: readonly string[]) => {
|
|
5
|
-
afterCursor?: string | undefined;
|
|
6
|
-
limit: number;
|
|
7
|
-
scope?: undefined;
|
|
8
|
-
connectionId?: string | undefined;
|
|
9
|
-
state?: "active" | "revoked" | undefined;
|
|
10
|
-
} | {
|
|
11
|
-
afterCursor?: string | undefined;
|
|
12
|
-
limit: number;
|
|
13
|
-
scope: {
|
|
14
|
-
readonly id: string;
|
|
15
|
-
readonly kind: "project" | "workspace";
|
|
16
|
-
};
|
|
17
|
-
connectionId?: string | undefined;
|
|
18
|
-
state?: "active" | "revoked" | undefined;
|
|
19
|
-
};
|
|
20
|
-
export declare const readPoolList: (tokens: readonly string[]) => {
|
|
21
|
-
afterCursor?: string | undefined;
|
|
22
|
-
limit: number;
|
|
23
|
-
scope?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
afterCursor?: string | undefined;
|
|
26
|
-
limit: number;
|
|
27
|
-
scope: {
|
|
28
|
-
readonly id: string;
|
|
29
|
-
readonly kind: "project" | "workspace";
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare const GRANT_SET_OPTIONS: ReadonlySet<string>;
|
|
33
|
-
export declare const readGrantPreview: (parsed: ParsedOptions) => Effect.Effect<{
|
|
34
|
-
commandId: string;
|
|
35
|
-
connectionId: string;
|
|
36
|
-
granted: boolean;
|
|
37
|
-
scope: {
|
|
38
|
-
readonly id: string;
|
|
39
|
-
readonly kind: "project" | "workspace";
|
|
40
|
-
};
|
|
41
|
-
}, never, import("effect/Crypto").Crypto>;
|
|
42
|
-
export declare const POOL_SET_OPTIONS: ReadonlySet<string>;
|
|
43
|
-
export declare const readPoolPreview: (parsed: ParsedOptions) => Effect.Effect<{
|
|
44
|
-
commandId: string;
|
|
45
|
-
members: readonly string[];
|
|
46
|
-
mode: PoolMode;
|
|
47
|
-
scope: {
|
|
48
|
-
readonly id: string;
|
|
49
|
-
readonly kind: "project" | "workspace";
|
|
50
|
-
};
|
|
51
|
-
}, never, import("effect/Crypto").Crypto>;
|
|
52
|
-
export {};
|
|
53
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const readConnectionCreate: (tokens: readonly string[]) => {
|
|
2
|
-
maxConcurrentSessions?: undefined;
|
|
3
|
-
commandId: string | undefined;
|
|
4
|
-
configRootKind: string;
|
|
5
|
-
executor: string;
|
|
6
|
-
name: string;
|
|
7
|
-
} | {
|
|
8
|
-
maxConcurrentSessions: number;
|
|
9
|
-
commandId: string | undefined;
|
|
10
|
-
configRootKind: string;
|
|
11
|
-
executor: string;
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const readConnectionList: (tokens: readonly string[]) => {
|
|
15
|
-
limit: number;
|
|
16
|
-
afterCursor?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
export declare const readConnectionTarget: (tokens: readonly string[]) => {
|
|
19
|
-
connectionId: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
export declare const readConnectionCapacity: (tokens: readonly string[]) => {
|
|
22
|
-
maxConcurrentSessions?: undefined;
|
|
23
|
-
commandId: string | undefined;
|
|
24
|
-
connectionId: string | undefined;
|
|
25
|
-
expectedRevision: string;
|
|
26
|
-
} | {
|
|
27
|
-
maxConcurrentSessions: number;
|
|
28
|
-
commandId: string | undefined;
|
|
29
|
-
connectionId: string | undefined;
|
|
30
|
-
expectedRevision: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const readConnectionUsage: (tokens: readonly string[]) => {
|
|
33
|
-
connection: string;
|
|
34
|
-
refresh: boolean;
|
|
35
|
-
};
|
|
36
|
-
export declare const readConnectionSignin: (tokens: readonly string[]) => {
|
|
37
|
-
commandId: string | undefined;
|
|
38
|
-
connection: string;
|
|
39
|
-
flow: "browser" | "device-code";
|
|
40
|
-
};
|
|
41
|
-
export declare const readConnectionState: (tokens: readonly string[], state: "disabled" | "enabled") => {
|
|
42
|
-
commandId: string | undefined;
|
|
43
|
-
connectionId: string | undefined;
|
|
44
|
-
expectedRevision: string;
|
|
45
|
-
state: "disabled" | "enabled";
|
|
46
|
-
};
|
|
47
|
-
export declare const readConnectionModels: (tokens: readonly string[]) => {
|
|
48
|
-
connectionId: string;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Effect } from "effect";
|
|
2
|
-
import { CliArgumentError, type CommandContext } from "../command-line/index.js";
|
|
3
|
-
export declare const signInThroughNode: (tokens: readonly string[], context: CommandContext) => Effect.Effect<number, CliArgumentError | Error, import("effect/Crypto").Crypto>;
|
|
4
|
-
//# sourceMappingURL=signin.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ContainerCreateConfirmResult, ContainerCreatePreviewResult, ContainerIndexListResult, ContainerListResult, ContainerRenameConfirmResult, ContainerRenamePreviewResult, ContainerShowResult } from "@maiaos/sdk";
|
|
2
|
-
export type ContainerResult = ContainerCreateConfirmResult | ContainerCreatePreviewResult | ContainerIndexListResult | ContainerListResult | ContainerRenameConfirmResult | ContainerRenamePreviewResult | ContainerShowResult;
|
|
3
|
-
export type CliContainerResult = {
|
|
4
|
-
readonly command: ContainerResult["method"];
|
|
5
|
-
readonly result: ContainerResult;
|
|
6
|
-
};
|
|
7
|
-
export declare const isContainerResult: (result: {
|
|
8
|
-
readonly command: string;
|
|
9
|
-
}) => result is CliContainerResult;
|
|
10
|
-
export declare const formatContainerResult: ({ result, }: CliContainerResult) => string;
|
|
11
|
-
//# sourceMappingURL=format.d.ts.map
|
package/dist/context/client.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { InvocationContextShowResult } from "@maiaos/sdk";
|
|
2
|
-
import type { CliNodeEffect, CliNodeOperations } from "../local-node/index.js";
|
|
3
|
-
export declare const makeContextClient: (node: CliNodeOperations) => {
|
|
4
|
-
showAttachedCurrentContext: () => CliNodeEffect<InvocationContextShowResult>;
|
|
5
|
-
showCurrentContext: () => CliNodeEffect<InvocationContextShowResult>;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=client.d.ts.map
|
package/dist/context/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type CockpitClient } from "@maiaos/client-core/cockpit";
|
|
2
|
-
import type * as Context from "effect/Context";
|
|
3
|
-
import type * as Crypto from "effect/Crypto";
|
|
4
|
-
import { type HeldConnection } from "./node-connection.js";
|
|
5
|
-
export declare const makeCockpitClient: (held: HeldConnection, context: Context.Context<Crypto.Crypto>) => CockpitClient;
|
|
6
|
-
//# sourceMappingURL=cockpit-client.d.ts.map
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { COCKPIT_CLIENT_METHODS, } from "@maiaos/client-core/cockpit";
|
|
2
|
-
import { classifyClientError } from "@maiaos/sdk";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import * as Exit from "effect/Exit";
|
|
5
|
-
import { newCliIdentifier, retryBriefSaturation, } from "../local-node/index.js";
|
|
6
|
-
import { noConnection } from "./node-connection.js";
|
|
7
|
-
const rejectsCredential = (error) => {
|
|
8
|
-
const { code } = classifyClientError(error, { mutation: false });
|
|
9
|
-
return code === "authentication_failed" || code === "credential_invalid";
|
|
10
|
-
};
|
|
11
|
-
const connectionLost = (error) => {
|
|
12
|
-
const { code, kind } = classifyClientError(error, { mutation: false });
|
|
13
|
-
return ((kind === "offline" && code !== "saturated") ||
|
|
14
|
-
kind === "outcome_unknown" ||
|
|
15
|
-
code === "node_unavailable" ||
|
|
16
|
-
rejectsCredential(error));
|
|
17
|
-
};
|
|
18
|
-
const failedOn = (held, connection) => (error) => Effect.andThen(connectionLost(error) ? held.lose(connection) : Effect.void, Effect.fail(rejectsCredential(error) ? noConnection("node_connecting") : error));
|
|
19
|
-
const operationOf = (client, name) => Reflect.get(client, name);
|
|
20
|
-
export const makeCockpitClient = (held, context) => Object.fromEntries(COCKPIT_CLIENT_METHODS.map((name) => [
|
|
21
|
-
name,
|
|
22
|
-
(parameters, options) => Effect.runPromiseWith(context)(Effect.flatMap(held.current, (connection) => retryBriefSaturation(Effect.flatMap(newCliIdentifier("request"), (messageId) => operationOf(connection.client, name)(parameters, {
|
|
23
|
-
...options,
|
|
24
|
-
messageId,
|
|
25
|
-
})), options?.deadlineAt).pipe(Effect.onExit((exit) => held.heard(connection, !Exit.hasInterrupts(exit))), Effect.catch(failedOn(held, connection)))), options?.signal === undefined ? {} : { signal: options.signal }),
|
|
26
|
-
]));
|
|
27
|
-
//# sourceMappingURL=cockpit-client.js.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type Cockpit, type CockpitClient, type CockpitState, type NodeCockpitState, type ReadAdmissionService } from "@maiaos/client-core/cockpit";
|
|
2
|
-
import { type NodeEntry, type NodeRegistry, type NodeView } from "@maiaos/client-core/node-registry";
|
|
3
|
-
import type { NodeApiEffectDiscoveryOptions } from "@maiaos/sdk/node/effect";
|
|
4
|
-
import type * as Crypto from "effect/Crypto";
|
|
5
|
-
import * as Effect from "effect/Effect";
|
|
6
|
-
import type * as Scope from "effect/Scope";
|
|
7
|
-
import * as Stream from "effect/Stream";
|
|
8
|
-
import type { CliNodeConnector } from "../local-node/index.js";
|
|
9
|
-
import { type OpenConnection } from "./node-connection.js";
|
|
10
|
-
export declare const READS_IN_FLIGHT = 3;
|
|
11
|
-
export type NodeCockpit = {
|
|
12
|
-
readonly admit: ReadAdmissionService;
|
|
13
|
-
readonly client: CockpitClient;
|
|
14
|
-
readonly cockpit: Cockpit;
|
|
15
|
-
readonly node: NodeEntry;
|
|
16
|
-
};
|
|
17
|
-
export declare const openNodeCockpit: (registry: NodeRegistry, node: NodeEntry, open: OpenConnection) => Effect.Effect<NodeCockpit, never, Crypto.Crypto | Scope.Scope>;
|
|
18
|
-
export type DashboardNodes = {
|
|
19
|
-
readonly local: CliNodeConnector;
|
|
20
|
-
readonly options: NodeApiEffectDiscoveryOptions;
|
|
21
|
-
readonly remote: (name: string, scope: Scope.Scope) => CliNodeConnector;
|
|
22
|
-
};
|
|
23
|
-
export type DashboardCockpits = {
|
|
24
|
-
readonly combined: Stream.Stream<CockpitState>;
|
|
25
|
-
readonly nodes: Stream.Stream<readonly NodeView[]>;
|
|
26
|
-
readonly states: Stream.Stream<readonly NodeCockpitState[]>;
|
|
27
|
-
};
|
|
28
|
-
export declare const dashboardCockpits: (nodes: DashboardNodes) => Effect.Effect<DashboardCockpits, never, Crypto.Crypto | Scope.Scope>;
|
|
29
|
-
//# sourceMappingURL=cockpits.d.ts.map
|