@maiaos/cli 0.1.0-canary.8 → 0.1.0-canary.80
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 +211 -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 +20 -6
- 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 +189 -234
- package/dist/local-node/index.d.ts +1 -1
- package/dist/local-node/index.js +1 -1
- 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 -221
- package/dist/mcp/routing.d.ts +3 -2
- package/dist/mcp/routing.js +38 -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/remote-node/client.d.ts +85 -0
- package/dist/remote-node/commands.js +32 -17
- package/dist/remote-node/connector.d.ts +16 -0
- package/dist/remote-node/connector.js +10 -3
- 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 +14 -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 +272 -22
- 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.d.ts +1 -1
- package/dist/session/attach.js +7 -2
- package/dist/session/client.d.ts +18 -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 +5 -1
- package/dist/session/commands.js +366 -67
- package/dist/session/create-tasks.js +10 -47
- 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 +64 -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 +316 -32
- package/dist/session/turn/attachments.js +54 -0
- package/dist/session/turn/client.d.ts +3 -1
- package/dist/session/turn/client.js +6 -1
- package/dist/session/turn/commands.d.ts +5 -1
- package/dist/session/turn/commands.js +204 -31
- package/dist/session/turn/index.d.ts +2 -2
- package/dist/session/turn/index.js +1 -1
- package/dist/session/turn/output.d.ts +31 -1
- package/dist/session/turn/output.js +45 -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 +103 -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
|
@@ -9,6 +9,7 @@ export type TreeNode = {
|
|
|
9
9
|
readonly children: readonly TreeNode[];
|
|
10
10
|
readonly example?: string;
|
|
11
11
|
readonly forms: readonly TreeLeafForm[];
|
|
12
|
+
readonly json?: false;
|
|
12
13
|
readonly kind?: TreeLeafKind;
|
|
13
14
|
readonly name: string;
|
|
14
15
|
readonly node?: true;
|
|
@@ -20,7 +21,7 @@ export type TreeNode = {
|
|
|
20
21
|
readonly summary: string;
|
|
21
22
|
};
|
|
22
23
|
export declare const TREE_FRAGMENTS: readonly TreeFragment[];
|
|
23
|
-
export declare const TREE_SECTIONS: readonly [readonly ["Start and sign in", readonly ["setup", "login", "status"]], readonly ["Work", readonly ["session", "run", "routine", "import"]], readonly ["Resources", readonly ["project", "workspace", "container", "terminal", "execution", "port", "reference", "agents"]], readonly ["Accounts and Nodes", readonly ["connection", "integration", "provider", "node"]], readonly ["Safety and audit", readonly ["hold", "receipt", "context"]], readonly ["Clients and local", readonly ["presentation", "mcp", "dashboard", "agent", "help", "version", "doctor", "completion"]]];
|
|
24
|
+
export declare const TREE_SECTIONS: readonly [readonly ["Start and sign in", readonly ["setup", "login", "status", "migrate"]], readonly ["Work", readonly ["inbox", "session", "run", "board", "routine", "pr", "goal", "import"]], readonly ["Resources", readonly ["project", "workspace", "container", "terminal", "execution", "port", "reference", "agents", "skills", "webhooks"]], readonly ["Accounts and Nodes", readonly ["connection", "executors", "integration", "provider", "node", "principal"]], readonly ["Safety and audit", readonly ["hold", "secret", "receipt", "events", "context"]], readonly ["Clients and local", readonly ["presentation", "mcp", "dashboard", "panel", "agent", "help", "version", "doctor", "completion"]]];
|
|
24
25
|
export declare const usagePath: (usage: string) => readonly string[];
|
|
25
26
|
export declare const COMMAND_TREE: TreeNode;
|
|
26
27
|
export declare const commandTree: () => TreeNode;
|
|
@@ -1,33 +1,56 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { AGENTS_TREE } from "../agents/tree/index.js";
|
|
3
|
+
import { BOARD_TREE } from "../board/tree/index.js";
|
|
3
4
|
import { CONNECTION_TREE } from "../connection/tree/index.js";
|
|
5
|
+
import { EVENTS_TREE } from "../events/tree/index.js";
|
|
4
6
|
import { EXECUTION_TREE } from "../execution/tree/index.js";
|
|
7
|
+
import { PR_TREE } from "../github/tree/index.js";
|
|
8
|
+
import { GOAL_TREE } from "../goal/tree/index.js";
|
|
5
9
|
import { SAFETY_TREE } from "../hold/tree/index.js";
|
|
10
|
+
import { MIGRATE_TREE } from "../migrate/tree/index.js";
|
|
6
11
|
import { RUN_TREE } from "../orchestration/tree/index.js";
|
|
12
|
+
import { PANEL_TREE } from "../panel/tree/index.js";
|
|
13
|
+
import { PRINCIPAL_TREE } from "../principal/tree/index.js";
|
|
7
14
|
import { PROJECT_TREE } from "../project-workspace/tree/index.js";
|
|
8
15
|
import { REFERENCE_TREE } from "../reference/tree/index.js";
|
|
9
16
|
import { NODE_TREE } from "../remote-node/tree/index.js";
|
|
10
17
|
import { ROUTINE_TREE } from "../routine/tree/index.js";
|
|
18
|
+
import { SECRET_TREE } from "../secret/tree/index.js";
|
|
11
19
|
import { SESSION_TREE } from "../session/tree/index.js";
|
|
20
|
+
import { SKILLS_SYNC_TREE } from "../skills-sync/tree/index.js";
|
|
12
21
|
import { TERMINAL_TREE } from "../terminal/tree/index.js";
|
|
22
|
+
import { WEBHOOKS_TREE } from "../webhooks/tree/index.js";
|
|
13
23
|
import { LOCAL_TREE } from "./local.js";
|
|
14
24
|
export const TREE_FRAGMENTS = [
|
|
15
25
|
NODE_TREE,
|
|
16
26
|
CONNECTION_TREE,
|
|
17
27
|
SESSION_TREE,
|
|
18
28
|
RUN_TREE,
|
|
29
|
+
BOARD_TREE,
|
|
19
30
|
ROUTINE_TREE,
|
|
20
31
|
PROJECT_TREE,
|
|
21
32
|
REFERENCE_TREE,
|
|
33
|
+
EVENTS_TREE,
|
|
22
34
|
TERMINAL_TREE,
|
|
23
35
|
EXECUTION_TREE,
|
|
24
36
|
SAFETY_TREE,
|
|
37
|
+
SECRET_TREE,
|
|
25
38
|
AGENTS_TREE,
|
|
39
|
+
WEBHOOKS_TREE,
|
|
40
|
+
PR_TREE,
|
|
41
|
+
GOAL_TREE,
|
|
42
|
+
PANEL_TREE,
|
|
43
|
+
SKILLS_SYNC_TREE,
|
|
44
|
+
PRINCIPAL_TREE,
|
|
45
|
+
MIGRATE_TREE,
|
|
26
46
|
LOCAL_TREE,
|
|
27
47
|
];
|
|
28
48
|
export const TREE_SECTIONS = [
|
|
29
|
-
["Start and sign in", ["setup", "login", "status"]],
|
|
30
|
-
[
|
|
49
|
+
["Start and sign in", ["setup", "login", "status", "migrate"]],
|
|
50
|
+
[
|
|
51
|
+
"Work",
|
|
52
|
+
["inbox", "session", "run", "board", "routine", "pr", "goal", "import"],
|
|
53
|
+
],
|
|
31
54
|
[
|
|
32
55
|
"Resources",
|
|
33
56
|
[
|
|
@@ -39,16 +62,22 @@ export const TREE_SECTIONS = [
|
|
|
39
62
|
"port",
|
|
40
63
|
"reference",
|
|
41
64
|
"agents",
|
|
65
|
+
"skills",
|
|
66
|
+
"webhooks",
|
|
42
67
|
],
|
|
43
68
|
],
|
|
44
|
-
[
|
|
45
|
-
|
|
69
|
+
[
|
|
70
|
+
"Accounts and Nodes",
|
|
71
|
+
["connection", "executors", "integration", "provider", "node", "principal"],
|
|
72
|
+
],
|
|
73
|
+
["Safety and audit", ["hold", "secret", "receipt", "events", "context"]],
|
|
46
74
|
[
|
|
47
75
|
"Clients and local",
|
|
48
76
|
[
|
|
49
77
|
"presentation",
|
|
50
78
|
"mcp",
|
|
51
79
|
"dashboard",
|
|
80
|
+
"panel",
|
|
52
81
|
"agent",
|
|
53
82
|
"help",
|
|
54
83
|
"version",
|
|
@@ -92,6 +121,8 @@ const addLeaf = (root, row) => {
|
|
|
92
121
|
node.operations = operations === "" ? [] : [operations].flat();
|
|
93
122
|
node.kind = extra.kind ?? "operation";
|
|
94
123
|
node.run = extra.run;
|
|
124
|
+
if (extra.json !== undefined)
|
|
125
|
+
node.json = extra.json;
|
|
95
126
|
if (extra.node !== undefined)
|
|
96
127
|
node.node = extra.node;
|
|
97
128
|
if (extra.remote !== undefined)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ConnectionCapacitySetParameters, type ConnectionCreateParameters, type ConnectionDetectParameters, type ConnectionGatewayCreateParameters, type ConnectionListParameters, type ConnectionLoginStartParameters, type ConnectionModelsListParameters, type ConnectionShowParameters, type ConnectionStateSetParameters, type ConnectionSystemConfirmParameters, type ConnectionSystemPreviewParameters, type ConnectionUpkeepConfirmParameters, type ConnectionUpkeepPreviewParameters, type ConnectionUpkeepRefreshParameters, type ConnectionUsageShowParameters } from "@maiaos/sdk";
|
|
2
|
-
import type { CliNodeOperations } from "../local-node/index.js";
|
|
1
|
+
import { type ConnectionCapacitySetParameters, type ConnectionCreateParameters, type ConnectionDetectParameters, type ConnectionGatewayCreateParameters, type ConnectionListParameters, type ConnectionLoginStartParameters, type ConnectionModelsListParameters, type ConnectionShowParameters, type ConnectionStateSetParameters, type ConnectionSystemConfirmParameters, type ConnectionSystemPreviewParameters, type ConnectionUpkeepConfirmParameters, type ConnectionUpkeepPreviewParameters, type ConnectionUpkeepRefreshParameters, type ConnectionUsageShowParameters, type InstalledHarnessListResult } from "@maiaos/sdk";
|
|
2
|
+
import type { CliNodeEffect, CliNodeOperations } from "../local-node/index.js";
|
|
3
3
|
export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
4
4
|
confirmConnectionGrant: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionGrantSetConfirmParameters, import("@maiaos/sdk").ConnectionGrantSetConfirmResult>;
|
|
5
5
|
confirmConnectionPool: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolSetConfirmParameters, import("@maiaos/sdk").ConnectionPoolSetConfirmResult>;
|
|
@@ -7,7 +7,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
7
7
|
listConnectionPools: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolListParameters, import("@maiaos/sdk").ConnectionPoolListResult>;
|
|
8
8
|
previewConnectionGrant: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionGrantSetPreviewParameters, import("@maiaos/sdk").ConnectionGrantSetPreviewResult>;
|
|
9
9
|
previewConnectionPool: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolSetPreviewParameters, import("@maiaos/sdk").ConnectionPoolSetPreviewResult>;
|
|
10
|
-
listConnectionModels: (input: ConnectionModelsListParameters) =>
|
|
10
|
+
listConnectionModels: (input: ConnectionModelsListParameters) => CliNodeEffect<{
|
|
11
11
|
readonly connectionId: string;
|
|
12
12
|
readonly format: "anthropic" | "openai";
|
|
13
13
|
readonly method: "connection.models.list";
|
|
@@ -18,7 +18,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
18
18
|
readonly omitted: number;
|
|
19
19
|
readonly truncated: boolean;
|
|
20
20
|
}>;
|
|
21
|
-
listConnections: (input: ConnectionListParameters) =>
|
|
21
|
+
listConnections: (input: ConnectionListParameters) => CliNodeEffect<{
|
|
22
22
|
readonly items: readonly {
|
|
23
23
|
readonly configRoot: {
|
|
24
24
|
readonly kind: "maia-managed";
|
|
@@ -28,9 +28,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
28
28
|
};
|
|
29
29
|
readonly connectionId: string;
|
|
30
30
|
readonly createdAt: string;
|
|
31
|
+
readonly endpoint?: {
|
|
32
|
+
readonly credential: "cli-config";
|
|
33
|
+
readonly host: string;
|
|
34
|
+
} | undefined;
|
|
31
35
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
32
36
|
readonly gateway?: {
|
|
33
37
|
readonly baseUrl: string;
|
|
38
|
+
readonly keyEnv?: string | undefined;
|
|
34
39
|
} | undefined;
|
|
35
40
|
readonly limitedUntil: string | null;
|
|
36
41
|
readonly maxConcurrentSessions: number;
|
|
@@ -66,7 +71,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
66
71
|
readonly method: "connection.list";
|
|
67
72
|
readonly nextCursor?: string | undefined;
|
|
68
73
|
}>;
|
|
69
|
-
showConnection: (input: ConnectionShowParameters) =>
|
|
74
|
+
showConnection: (input: ConnectionShowParameters) => CliNodeEffect<{
|
|
70
75
|
readonly connection: {
|
|
71
76
|
readonly configRoot: {
|
|
72
77
|
readonly kind: "maia-managed";
|
|
@@ -76,9 +81,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
76
81
|
};
|
|
77
82
|
readonly connectionId: string;
|
|
78
83
|
readonly createdAt: string;
|
|
84
|
+
readonly endpoint?: {
|
|
85
|
+
readonly credential: "cli-config";
|
|
86
|
+
readonly host: string;
|
|
87
|
+
} | undefined;
|
|
79
88
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
80
89
|
readonly gateway?: {
|
|
81
90
|
readonly baseUrl: string;
|
|
91
|
+
readonly keyEnv?: string | undefined;
|
|
82
92
|
} | undefined;
|
|
83
93
|
readonly limitedUntil: string | null;
|
|
84
94
|
readonly maxConcurrentSessions: number;
|
|
@@ -113,7 +123,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
113
123
|
};
|
|
114
124
|
readonly method: "connection.show";
|
|
115
125
|
}>;
|
|
116
|
-
showConnectionUsage: (input: ConnectionUsageShowParameters) =>
|
|
126
|
+
showConnectionUsage: (input: ConnectionUsageShowParameters) => CliNodeEffect<{
|
|
117
127
|
readonly connection: {
|
|
118
128
|
readonly configRoot: {
|
|
119
129
|
readonly kind: "maia-managed";
|
|
@@ -123,9 +133,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
123
133
|
};
|
|
124
134
|
readonly connectionId: string;
|
|
125
135
|
readonly createdAt: string;
|
|
136
|
+
readonly endpoint?: {
|
|
137
|
+
readonly credential: "cli-config";
|
|
138
|
+
readonly host: string;
|
|
139
|
+
} | undefined;
|
|
126
140
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
127
141
|
readonly gateway?: {
|
|
128
142
|
readonly baseUrl: string;
|
|
143
|
+
readonly keyEnv?: string | undefined;
|
|
129
144
|
} | undefined;
|
|
130
145
|
readonly limitedUntil: string | null;
|
|
131
146
|
readonly maxConcurrentSessions: number;
|
|
@@ -160,7 +175,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
160
175
|
};
|
|
161
176
|
readonly method: "connection.usage.show";
|
|
162
177
|
}>;
|
|
163
|
-
createConnection: (input: ConnectionCreateParameters) =>
|
|
178
|
+
createConnection: (input: ConnectionCreateParameters) => CliNodeEffect<{
|
|
164
179
|
readonly commandId: string;
|
|
165
180
|
readonly connection: {
|
|
166
181
|
readonly configRoot: {
|
|
@@ -171,9 +186,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
171
186
|
};
|
|
172
187
|
readonly connectionId: string;
|
|
173
188
|
readonly createdAt: string;
|
|
189
|
+
readonly endpoint?: {
|
|
190
|
+
readonly credential: "cli-config";
|
|
191
|
+
readonly host: string;
|
|
192
|
+
} | undefined;
|
|
174
193
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
175
194
|
readonly gateway?: {
|
|
176
195
|
readonly baseUrl: string;
|
|
196
|
+
readonly keyEnv?: string | undefined;
|
|
177
197
|
} | undefined;
|
|
178
198
|
readonly limitedUntil: string | null;
|
|
179
199
|
readonly maxConcurrentSessions: number;
|
|
@@ -214,6 +234,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
214
234
|
readonly createdAt: string;
|
|
215
235
|
readonly eventCursor: string;
|
|
216
236
|
readonly method: string;
|
|
237
|
+
readonly proposedBy?: string | undefined;
|
|
217
238
|
readonly receiptId: string;
|
|
218
239
|
readonly schemaVersion: 1;
|
|
219
240
|
readonly state: "succeeded";
|
|
@@ -225,7 +246,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
225
246
|
};
|
|
226
247
|
readonly method: "connection.create";
|
|
227
248
|
}>;
|
|
228
|
-
setConnectionCapacity: (input: ConnectionCapacitySetParameters) =>
|
|
249
|
+
setConnectionCapacity: (input: ConnectionCapacitySetParameters) => CliNodeEffect<{
|
|
229
250
|
readonly commandId: string;
|
|
230
251
|
readonly connection: {
|
|
231
252
|
readonly configRoot: {
|
|
@@ -236,9 +257,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
236
257
|
};
|
|
237
258
|
readonly connectionId: string;
|
|
238
259
|
readonly createdAt: string;
|
|
260
|
+
readonly endpoint?: {
|
|
261
|
+
readonly credential: "cli-config";
|
|
262
|
+
readonly host: string;
|
|
263
|
+
} | undefined;
|
|
239
264
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
240
265
|
readonly gateway?: {
|
|
241
266
|
readonly baseUrl: string;
|
|
267
|
+
readonly keyEnv?: string | undefined;
|
|
242
268
|
} | undefined;
|
|
243
269
|
readonly limitedUntil: string | null;
|
|
244
270
|
readonly maxConcurrentSessions: number;
|
|
@@ -279,6 +305,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
279
305
|
readonly createdAt: string;
|
|
280
306
|
readonly eventCursor: string;
|
|
281
307
|
readonly method: string;
|
|
308
|
+
readonly proposedBy?: string | undefined;
|
|
282
309
|
readonly receiptId: string;
|
|
283
310
|
readonly schemaVersion: 1;
|
|
284
311
|
readonly state: "succeeded";
|
|
@@ -291,7 +318,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
291
318
|
readonly expectedRevision: string;
|
|
292
319
|
readonly method: "connection.capacity.set";
|
|
293
320
|
}>;
|
|
294
|
-
setConnectionState: (input: ConnectionStateSetParameters) =>
|
|
321
|
+
setConnectionState: (input: ConnectionStateSetParameters) => CliNodeEffect<{
|
|
295
322
|
readonly commandId: string;
|
|
296
323
|
readonly connection: {
|
|
297
324
|
readonly configRoot: {
|
|
@@ -302,9 +329,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
302
329
|
};
|
|
303
330
|
readonly connectionId: string;
|
|
304
331
|
readonly createdAt: string;
|
|
332
|
+
readonly endpoint?: {
|
|
333
|
+
readonly credential: "cli-config";
|
|
334
|
+
readonly host: string;
|
|
335
|
+
} | undefined;
|
|
305
336
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
306
337
|
readonly gateway?: {
|
|
307
338
|
readonly baseUrl: string;
|
|
339
|
+
readonly keyEnv?: string | undefined;
|
|
308
340
|
} | undefined;
|
|
309
341
|
readonly limitedUntil: string | null;
|
|
310
342
|
readonly maxConcurrentSessions: number;
|
|
@@ -345,6 +377,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
345
377
|
readonly createdAt: string;
|
|
346
378
|
readonly eventCursor: string;
|
|
347
379
|
readonly method: string;
|
|
380
|
+
readonly proposedBy?: string | undefined;
|
|
348
381
|
readonly receiptId: string;
|
|
349
382
|
readonly schemaVersion: 1;
|
|
350
383
|
readonly state: "succeeded";
|
|
@@ -357,7 +390,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
357
390
|
readonly expectedRevision: string;
|
|
358
391
|
readonly method: "connection.state.set";
|
|
359
392
|
}>;
|
|
360
|
-
createGatewayConnection: (input: ConnectionGatewayCreateParameters) =>
|
|
393
|
+
createGatewayConnection: (input: ConnectionGatewayCreateParameters) => CliNodeEffect<{
|
|
361
394
|
readonly commandId: string;
|
|
362
395
|
readonly connection: {
|
|
363
396
|
readonly configRoot: {
|
|
@@ -368,9 +401,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
368
401
|
};
|
|
369
402
|
readonly connectionId: string;
|
|
370
403
|
readonly createdAt: string;
|
|
404
|
+
readonly endpoint?: {
|
|
405
|
+
readonly credential: "cli-config";
|
|
406
|
+
readonly host: string;
|
|
407
|
+
} | undefined;
|
|
371
408
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
372
409
|
readonly gateway?: {
|
|
373
410
|
readonly baseUrl: string;
|
|
411
|
+
readonly keyEnv?: string | undefined;
|
|
374
412
|
} | undefined;
|
|
375
413
|
readonly limitedUntil: string | null;
|
|
376
414
|
readonly maxConcurrentSessions: number;
|
|
@@ -411,6 +449,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
411
449
|
readonly createdAt: string;
|
|
412
450
|
readonly eventCursor: string;
|
|
413
451
|
readonly method: string;
|
|
452
|
+
readonly proposedBy?: string | undefined;
|
|
414
453
|
readonly receiptId: string;
|
|
415
454
|
readonly schemaVersion: 1;
|
|
416
455
|
readonly state: "succeeded";
|
|
@@ -420,10 +459,10 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
420
459
|
};
|
|
421
460
|
readonly updatedAt: string;
|
|
422
461
|
};
|
|
423
|
-
readonly keyCustody: "kept" | "stored";
|
|
462
|
+
readonly keyCustody: "kept" | "referenced" | "stored";
|
|
424
463
|
readonly method: "connection.gateway.create";
|
|
425
464
|
}>;
|
|
426
|
-
startConnectionLogin: (input: ConnectionLoginStartParameters) =>
|
|
465
|
+
startConnectionLogin: (input: ConnectionLoginStartParameters) => CliNodeEffect<{
|
|
427
466
|
readonly commandId: string;
|
|
428
467
|
readonly connection: {
|
|
429
468
|
readonly configRoot: {
|
|
@@ -434,9 +473,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
434
473
|
};
|
|
435
474
|
readonly connectionId: string;
|
|
436
475
|
readonly createdAt: string;
|
|
476
|
+
readonly endpoint?: {
|
|
477
|
+
readonly credential: "cli-config";
|
|
478
|
+
readonly host: string;
|
|
479
|
+
} | undefined;
|
|
437
480
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
438
481
|
readonly gateway?: {
|
|
439
482
|
readonly baseUrl: string;
|
|
483
|
+
readonly keyEnv?: string | undefined;
|
|
440
484
|
} | undefined;
|
|
441
485
|
readonly limitedUntil: string | null;
|
|
442
486
|
readonly maxConcurrentSessions: number;
|
|
@@ -477,6 +521,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
477
521
|
readonly createdAt: string;
|
|
478
522
|
readonly eventCursor: string;
|
|
479
523
|
readonly method: string;
|
|
524
|
+
readonly proposedBy?: string | undefined;
|
|
480
525
|
readonly receiptId: string;
|
|
481
526
|
readonly schemaVersion: 1;
|
|
482
527
|
readonly state: "succeeded";
|
|
@@ -496,7 +541,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
496
541
|
};
|
|
497
542
|
readonly method: "connection.login.start";
|
|
498
543
|
}>;
|
|
499
|
-
confirmSystemConnections: (input: ConnectionSystemConfirmParameters) =>
|
|
544
|
+
confirmSystemConnections: (input: ConnectionSystemConfirmParameters) => CliNodeEffect<{
|
|
500
545
|
readonly actorId: string;
|
|
501
546
|
readonly commandId: string;
|
|
502
547
|
readonly delivery: "duplicate" | "new";
|
|
@@ -509,6 +554,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
509
554
|
readonly createdAt: string;
|
|
510
555
|
readonly eventCursor: string;
|
|
511
556
|
readonly method: string;
|
|
557
|
+
readonly proposedBy?: string | undefined;
|
|
512
558
|
readonly receiptId: string;
|
|
513
559
|
readonly schemaVersion: 1;
|
|
514
560
|
readonly state: "succeeded";
|
|
@@ -527,9 +573,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
527
573
|
};
|
|
528
574
|
readonly connectionId: string;
|
|
529
575
|
readonly createdAt: string;
|
|
576
|
+
readonly endpoint?: {
|
|
577
|
+
readonly credential: "cli-config";
|
|
578
|
+
readonly host: string;
|
|
579
|
+
} | undefined;
|
|
530
580
|
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
531
581
|
readonly gateway?: {
|
|
532
582
|
readonly baseUrl: string;
|
|
583
|
+
readonly keyEnv?: string | undefined;
|
|
533
584
|
} | undefined;
|
|
534
585
|
readonly limitedUntil: string | null;
|
|
535
586
|
readonly maxConcurrentSessions: number;
|
|
@@ -569,6 +620,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
569
620
|
readonly createdAt: string;
|
|
570
621
|
readonly eventCursor: string;
|
|
571
622
|
readonly method: string;
|
|
623
|
+
readonly proposedBy?: string | undefined;
|
|
572
624
|
readonly receiptId: string;
|
|
573
625
|
readonly schemaVersion: 1;
|
|
574
626
|
readonly state: "succeeded";
|
|
@@ -582,7 +634,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
582
634
|
}[];
|
|
583
635
|
readonly method: "connection.system.confirm";
|
|
584
636
|
}>;
|
|
585
|
-
detectConnections: (input: ConnectionDetectParameters) =>
|
|
637
|
+
detectConnections: (input: ConnectionDetectParameters) => CliNodeEffect<{
|
|
586
638
|
readonly executors: readonly [{
|
|
587
639
|
readonly accountKind?: string | undefined;
|
|
588
640
|
readonly auth: "custom-endpoint" | "none" | "unknown" | "vendor-login";
|
|
@@ -666,7 +718,8 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
666
718
|
}];
|
|
667
719
|
readonly method: "connection.detect";
|
|
668
720
|
}>;
|
|
669
|
-
|
|
721
|
+
listInstalledHarnesses: () => CliNodeEffect<InstalledHarnessListResult>;
|
|
722
|
+
previewSystemConnections: (input: ConnectionSystemPreviewParameters) => CliNodeEffect<{
|
|
670
723
|
readonly actorId: string;
|
|
671
724
|
readonly commandId: string;
|
|
672
725
|
readonly expiresAt: string;
|
|
@@ -725,7 +778,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
725
778
|
readonly method: "connection.system.preview";
|
|
726
779
|
readonly proof: string;
|
|
727
780
|
}>;
|
|
728
|
-
confirmConnectionUpkeep: (input: ConnectionUpkeepConfirmParameters) =>
|
|
781
|
+
confirmConnectionUpkeep: (input: ConnectionUpkeepConfirmParameters) => CliNodeEffect<{
|
|
729
782
|
readonly actorId: string;
|
|
730
783
|
readonly commandId: string;
|
|
731
784
|
readonly delivery: "duplicate" | "new";
|
|
@@ -741,6 +794,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
741
794
|
readonly createdAt: string;
|
|
742
795
|
readonly eventCursor: string;
|
|
743
796
|
readonly method: string;
|
|
797
|
+
readonly proposedBy?: string | undefined;
|
|
744
798
|
readonly receiptId: string;
|
|
745
799
|
readonly schemaVersion: 1;
|
|
746
800
|
readonly state: "succeeded";
|
|
@@ -751,7 +805,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
751
805
|
readonly updatedAt: string;
|
|
752
806
|
};
|
|
753
807
|
}>;
|
|
754
|
-
previewConnectionUpkeep: (input: ConnectionUpkeepPreviewParameters) =>
|
|
808
|
+
previewConnectionUpkeep: (input: ConnectionUpkeepPreviewParameters) => CliNodeEffect<{
|
|
755
809
|
readonly actorId: string;
|
|
756
810
|
readonly authorizationRevision: number;
|
|
757
811
|
readonly commandId: string;
|
|
@@ -765,7 +819,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
|
765
819
|
readonly policyRevision: number;
|
|
766
820
|
readonly proof: string;
|
|
767
821
|
}>;
|
|
768
|
-
refreshConnectionUpkeep: (input: ConnectionUpkeepRefreshParameters) =>
|
|
822
|
+
refreshConnectionUpkeep: (input: ConnectionUpkeepRefreshParameters) => CliNodeEffect<{
|
|
769
823
|
readonly executors: readonly [{
|
|
770
824
|
readonly available?: {
|
|
771
825
|
readonly checkedAt: string;
|
|
@@ -18,6 +18,7 @@ const signInClient = (node) => ({
|
|
|
18
18
|
const systemClient = (node) => ({
|
|
19
19
|
confirmSystemConnections: (input) => node.runValidatedNodeOperation(input, connectionSystemConfirmParametersSchema, (client, parameters, options) => client.confirmSystemConnections(parameters, options), { commandId: input.commandId }),
|
|
20
20
|
detectConnections: (input) => node.runValidatedNodeOperation(input, connectionDetectParametersSchema, (client, parameters, options) => client.detectConnections(parameters, options)),
|
|
21
|
+
listInstalledHarnesses: () => node.runNodeClientOperation((client, options) => client.listInstalledHarnesses({}, options)),
|
|
21
22
|
previewSystemConnections: (input) => node.runValidatedNodeOperation(input, connectionSystemPreviewParametersSchema, (client, parameters, options) => client.previewSystemConnections(parameters, options)),
|
|
22
23
|
});
|
|
23
24
|
const upkeepClient = (node) => ({
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InstalledHarnessListResult } from "@maiaos/sdk";
|
|
2
|
+
import type * as Crypto from "effect/Crypto";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import { type OutputContext } from "../../command-line/emit/index.js";
|
|
5
|
+
import { type CliArgumentError } from "../../command-line/input/index.js";
|
|
6
|
+
import type { CliNodeCall, CliNodeEffect } from "../../local-node/index.js";
|
|
7
|
+
type ExecutorsContext = OutputContext & {
|
|
8
|
+
readonly dependencies: {
|
|
9
|
+
readonly call?: CliNodeCall;
|
|
10
|
+
readonly listInstalledHarnesses?: () => CliNodeEffect<InstalledHarnessListResult>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type ExecutorsEffect = Effect.Effect<number, CliArgumentError, Crypto.Crypto>;
|
|
14
|
+
export declare const runExecutorsList: (tokens: readonly string[], context: ExecutorsContext) => ExecutorsEffect;
|
|
15
|
+
export declare const runExecutorsShow: (tokens: readonly string[], context: ExecutorsContext) => ExecutorsEffect;
|
|
16
|
+
export declare const runExecutorsDetect: (tokens: readonly string[], context: ExecutorsContext) => ExecutorsEffect;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=executors.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as Clock from "effect/Clock";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { cell, fields, formatRows, tab, writeNodeResult, } from "../../command-line/emit/index.js";
|
|
4
|
+
import { parseOptions, requirePositionals, } from "../../command-line/input/index.js";
|
|
5
|
+
import { redactConnection } from "../output/index.js";
|
|
6
|
+
import { describeReading, usageStateOf } from "./reading.js";
|
|
7
|
+
const redactEntry = ({ connections, ...entry }, now) => ({
|
|
8
|
+
...entry,
|
|
9
|
+
connections: connections.map(({ connection, ...rest }) => ({
|
|
10
|
+
...rest,
|
|
11
|
+
connection: redactConnection(connection),
|
|
12
|
+
usageState: usageStateOf(connection.usage, now),
|
|
13
|
+
})),
|
|
14
|
+
});
|
|
15
|
+
const redactResult = (result, now) => result.method === "connection.executors.list"
|
|
16
|
+
? {
|
|
17
|
+
...result,
|
|
18
|
+
executors: result.executors.map((entry) => redactEntry(entry, now)),
|
|
19
|
+
}
|
|
20
|
+
: { ...result, executor: redactEntry(result.executor, now) };
|
|
21
|
+
const NO_ACCOUNT = ["-", "-", "-", "-", "-", "-"];
|
|
22
|
+
const accountLines = ({ connections, executor }) => connections.length === 0
|
|
23
|
+
? [tab([executor, ...NO_ACCOUNT])]
|
|
24
|
+
: connections.map(({ connection, login, models, usageState }) => tab([
|
|
25
|
+
executor,
|
|
26
|
+
connection.connectionId,
|
|
27
|
+
cell(connection.name),
|
|
28
|
+
connection.state,
|
|
29
|
+
login,
|
|
30
|
+
cell(describeReading(connection.usage, usageState)),
|
|
31
|
+
models.length === 0 ? "-" : cell(models.join(", ")),
|
|
32
|
+
]));
|
|
33
|
+
const accountTable = (entries) => formatRows(entries.flatMap(accountLines), (line) => line, {
|
|
34
|
+
empty: "No executors.",
|
|
35
|
+
headers: [
|
|
36
|
+
"EXECUTOR",
|
|
37
|
+
"CONNECTION",
|
|
38
|
+
"NAME",
|
|
39
|
+
"STATE",
|
|
40
|
+
"LOGIN",
|
|
41
|
+
"USAGE",
|
|
42
|
+
"MODELS",
|
|
43
|
+
],
|
|
44
|
+
});
|
|
45
|
+
const showText = (entry) => `${fields([
|
|
46
|
+
["Executor", entry.executor],
|
|
47
|
+
[
|
|
48
|
+
"Capabilities",
|
|
49
|
+
entry.capabilities.length === 0 ? "none" : entry.capabilities.join(", "),
|
|
50
|
+
],
|
|
51
|
+
...(entry.unavailable === undefined
|
|
52
|
+
? []
|
|
53
|
+
: [["Unavailable", cell(entry.unavailable.reason)]]),
|
|
54
|
+
])}\n${accountTable([entry])}`;
|
|
55
|
+
const presenterAt = (now) => ({
|
|
56
|
+
toResult: (value) => ({
|
|
57
|
+
command: value.method,
|
|
58
|
+
result: redactResult(value, now),
|
|
59
|
+
}),
|
|
60
|
+
toText: ({ result }) => result.method === "connection.executors.list"
|
|
61
|
+
? accountTable(result.executors)
|
|
62
|
+
: showText(result.executor),
|
|
63
|
+
});
|
|
64
|
+
const unavailable = () => Effect.die(new Error("Missing the typed Node call."));
|
|
65
|
+
const REFRESH = "--refresh";
|
|
66
|
+
const refreshOf = (flags) => flags.has(REFRESH) ? { refresh: true } : {};
|
|
67
|
+
const present = (context) => (result) => Effect.map(Clock.currentTimeMillis, (now) => writeNodeResult(result, context, presenterAt(now)));
|
|
68
|
+
export const runExecutorsList = (tokens, context) => {
|
|
69
|
+
const { flags, positionals } = parseOptions(tokens, new Set(), new Set([REFRESH]));
|
|
70
|
+
requirePositionals(positionals, 0);
|
|
71
|
+
const { call } = context.dependencies;
|
|
72
|
+
if (call === undefined)
|
|
73
|
+
return unavailable();
|
|
74
|
+
return Effect.flatMap(call("connection.executors.list", refreshOf(flags)), present(context));
|
|
75
|
+
};
|
|
76
|
+
export const runExecutorsShow = (tokens, context) => {
|
|
77
|
+
const { flags, positionals } = parseOptions(tokens, new Set(), new Set([REFRESH]));
|
|
78
|
+
requirePositionals(positionals, 1);
|
|
79
|
+
const { call } = context.dependencies;
|
|
80
|
+
if (call === undefined)
|
|
81
|
+
return unavailable();
|
|
82
|
+
return Effect.flatMap(call("connection.executors.show", {
|
|
83
|
+
executor: positionals[0] ?? "",
|
|
84
|
+
...refreshOf(flags),
|
|
85
|
+
}), present(context));
|
|
86
|
+
};
|
|
87
|
+
const INSTALLED = {
|
|
88
|
+
toResult: (value) => ({ command: value.method, result: value }),
|
|
89
|
+
toText: ({ result }) => formatRows(result.items, (item) => tab([item.harnessId, item.status, item.detected ? "-" : item.reason]), { empty: "", headers: ["HARNESS", "STATUS", "REASON"] }),
|
|
90
|
+
};
|
|
91
|
+
export const runExecutorsDetect = (tokens, context) => {
|
|
92
|
+
requirePositionals(parseOptions(tokens, new Set()).positionals, 0);
|
|
93
|
+
return Effect.map(context.dependencies.listInstalledHarnesses?.() ?? unavailable(), (result) => writeNodeResult(result, context, INSTALLED));
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=executors.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Duration from "effect/Duration";
|
|
2
|
+
import { describeUsage } from "../output/index.js";
|
|
3
|
+
const READING_DEADLINE = Duration.seconds(12);
|
|
4
|
+
export const usageStateOf = (usage, now) => {
|
|
5
|
+
if (usage === undefined || usage.unavailable !== undefined)
|
|
6
|
+
return "unknown";
|
|
7
|
+
return now - Date.parse(usage.checkedAt) <=
|
|
8
|
+
Duration.toMillis(READING_DEADLINE)
|
|
9
|
+
? "live"
|
|
10
|
+
: "stale";
|
|
11
|
+
};
|
|
12
|
+
export const describeReading = (usage, state) => {
|
|
13
|
+
if (usage === undefined)
|
|
14
|
+
return "unknown";
|
|
15
|
+
if (usage.unavailable !== undefined)
|
|
16
|
+
return `unknown: ${usage.unavailable.message ?? usage.unavailable.reason}`;
|
|
17
|
+
const text = describeUsage(usage);
|
|
18
|
+
return state === "stale"
|
|
19
|
+
? `${text} (stale, read ${usage.checkedAt.slice(0, 16)}Z)`
|
|
20
|
+
: text;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=reading.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./access/index.js";
|
|
2
2
|
export { type ConnectionCliDependencies, makeConnectionClient, } from "./client.js";
|
|
3
3
|
export { runConnectionCapacitySet, runConnectionCreate, runConnectionDisable, runConnectionEnable, runConnectionList, runConnectionLoginStart, runConnectionModelsList, runConnectionShow, runConnectionUsageShow, type VendorLogin, } from "./commands.js";
|
|
4
|
+
export { runExecutorsDetect, runExecutorsList, runExecutorsShow, } from "./executors/index.js";
|
|
4
5
|
export { runVendorLogin } from "./login.js";
|
|
5
6
|
export { describeConnection, formatConnectionResult, redactConnection, redactConnectionResult, } from "./output/index.js";
|
|
6
7
|
export { callNode, ConnectionNodeError, findConnectionByName, } from "./resolve.js";
|
package/dist/connection/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./access/index.js";
|
|
2
2
|
export { makeConnectionClient, } from "./client.js";
|
|
3
3
|
export { runConnectionCapacitySet, runConnectionCreate, runConnectionDisable, runConnectionEnable, runConnectionList, runConnectionLoginStart, runConnectionModelsList, runConnectionShow, runConnectionUsageShow, } from "./commands.js";
|
|
4
|
+
export { runExecutorsDetect, runExecutorsList, runExecutorsShow, } from "./executors/index.js";
|
|
4
5
|
export { runVendorLogin } from "./login.js";
|
|
5
6
|
export { describeConnection, formatConnectionResult, redactConnection, redactConnectionResult, } from "./output/index.js";
|
|
6
7
|
export { callNode, ConnectionNodeError, findConnectionByName, } from "./resolve.js";
|
package/dist/connection/input.js
CHANGED
|
@@ -2,8 +2,8 @@ import { CliArgumentError, parseOptions, readExpectedRevision, readPageSize, req
|
|
|
2
2
|
const readSessionLimit = (value) => {
|
|
3
3
|
if (value === undefined)
|
|
4
4
|
return {};
|
|
5
|
-
if (!/^(?:[1-9]|1[0-6])$/u.test(value))
|
|
6
|
-
throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to
|
|
5
|
+
if (!/^(?:[1-9]|[1-5][0-9]|6[0-4])$/u.test(value))
|
|
6
|
+
throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to 64.");
|
|
7
7
|
return { maxConcurrentSessions: Number(value) };
|
|
8
8
|
};
|
|
9
9
|
const requireOption = (options, name) => {
|
|
@@ -15,7 +15,7 @@ const requireOption = (options, name) => {
|
|
|
15
15
|
export const readConnectionCreate = (tokens) => {
|
|
16
16
|
const parsed = parseOptions(tokens, new Set([
|
|
17
17
|
"--command-id",
|
|
18
|
-
"--
|
|
18
|
+
"--harness",
|
|
19
19
|
"--max-sessions",
|
|
20
20
|
"--name",
|
|
21
21
|
"--root",
|
|
@@ -24,7 +24,7 @@ export const readConnectionCreate = (tokens) => {
|
|
|
24
24
|
return {
|
|
25
25
|
commandId: parsed.options.get("--command-id"),
|
|
26
26
|
configRootKind: requireOption(parsed.options, "--root"),
|
|
27
|
-
executor: requireOption(parsed.options, "--
|
|
27
|
+
executor: requireOption(parsed.options, "--harness"),
|
|
28
28
|
name: requireOption(parsed.options, "--name"),
|
|
29
29
|
...readSessionLimit(parsed.options.get("--max-sessions")),
|
|
30
30
|
};
|