@maiaos/cli 0.1.0-canary.2 → 0.1.0-canary.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -265
- package/dist/address-space/address-space.d.ts +38 -0
- package/dist/address-space/address-space.js +130 -0
- package/dist/address-space/index.d.ts +2 -0
- package/dist/address-space/index.js +2 -0
- package/dist/agents/client.d.ts +171 -0
- package/dist/agents/client.js +8 -0
- package/dist/agents/commands.d.ts +7 -0
- package/dist/agents/commands.js +65 -0
- package/dist/agents/index.d.ts +3 -0
- package/dist/agents/index.js +3 -0
- package/dist/agents/input.d.ts +130 -0
- package/dist/agents/input.js +99 -0
- package/dist/agents/output/format.d.ts +8 -0
- package/dist/agents/output/format.js +47 -0
- package/dist/agents/output/index.d.ts +2 -0
- package/dist/agents/output/index.js +2 -0
- package/dist/agents/tree/index.d.ts +2 -0
- package/dist/agents/tree/index.js +2 -0
- package/dist/agents/tree/tree.d.ts +3 -0
- package/dist/agents/tree/tree.js +43 -0
- package/dist/bin/maia.cdx.json +37 -14
- package/dist/bin/maia.mjs +1 -1
- package/dist/bootstrap/exit.d.ts +14 -0
- package/dist/bootstrap/exit.js +42 -0
- package/dist/bootstrap/process.js +4 -26
- package/dist/bootstrap/run.js +5 -2
- package/dist/cli/cli.d.ts +2 -1
- package/dist/cli/cli.js +81 -16
- package/dist/command-line/context.d.ts +14 -4
- package/dist/command-line/context.js +1 -1
- package/dist/command-line/index.d.ts +6 -6
- package/dist/command-line/index.js +6 -5
- package/dist/command-line/input/arguments.d.ts +7 -0
- package/dist/command-line/input/arguments.js +22 -10
- package/dist/command-line/input/index.d.ts +2 -2
- package/dist/command-line/input/index.js +2 -2
- package/dist/command-line/input/stdin.d.ts +1 -0
- package/dist/command-line/input/stdin.js +1 -0
- package/dist/command-line/json.d.ts +1 -0
- package/dist/command-line/json.js +23 -0
- package/dist/command-line/output.d.ts +8 -1
- package/dist/command-line/output.js +33 -14
- package/dist/command-line/rows.d.ts +2 -0
- package/dist/command-line/rows.js +10 -1
- package/dist/command-line/two-phase.d.ts +5 -0
- package/dist/command-line/two-phase.js +33 -8
- package/dist/command-tree/help.d.ts +1 -1
- package/dist/command-tree/help.js +1 -0
- package/dist/command-tree/index.d.ts +2 -2
- package/dist/command-tree/index.js +1 -1
- package/dist/command-tree/local.js +12 -0
- package/dist/command-tree/placeholder.d.ts +1 -0
- package/dist/command-tree/placeholder.js +1 -0
- package/dist/command-tree/row.d.ts +2 -0
- package/dist/command-tree/tree.d.ts +3 -2
- package/dist/command-tree/tree.js +18 -2
- package/dist/connection/access/client.d.ts +13 -0
- package/dist/connection/access/client.js +19 -0
- package/dist/connection/access/commands.d.ts +6 -0
- package/dist/connection/access/commands.js +60 -0
- package/dist/connection/access/format.d.ts +8 -0
- package/dist/connection/access/format.js +61 -0
- package/dist/connection/access/index.d.ts +3 -0
- package/dist/connection/access/index.js +3 -0
- package/dist/connection/access/input.d.ts +53 -0
- package/dist/connection/access/input.js +83 -0
- package/dist/connection/client.d.ts +99 -1
- package/dist/connection/client.js +9 -1
- package/dist/connection/index.d.ts +2 -1
- package/dist/connection/index.js +2 -1
- package/dist/connection/system.d.ts +1 -0
- package/dist/connection/system.js +109 -5
- package/dist/connection/tree/tree.js +59 -8
- package/dist/container/output/format.js +1 -2
- package/dist/dashboard/cockpit-client.d.ts +6 -0
- package/dist/dashboard/cockpit-client.js +27 -0
- package/dist/dashboard/cockpits.d.ts +29 -0
- package/dist/dashboard/cockpits.js +65 -0
- package/dist/dashboard/dashboard.d.ts +7 -0
- package/dist/dashboard/dashboard.js +47 -0
- package/dist/dashboard/draw.d.ts +15 -0
- package/dist/dashboard/draw.js +30 -0
- package/dist/dashboard/frame.d.ts +4 -0
- package/dist/dashboard/frame.js +15 -0
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.js +2 -0
- package/dist/dashboard/modes.d.ts +5 -0
- package/dist/dashboard/modes.js +16 -0
- package/dist/dashboard/node-connection.d.ts +15 -0
- package/dist/dashboard/node-connection.js +51 -0
- package/dist/dashboard/pi-tui.d.ts +6 -0
- package/dist/dashboard/pi-tui.js +35 -0
- package/dist/dashboard/status-bar.d.ts +4 -0
- package/dist/dashboard/status-bar.js +60 -0
- package/dist/dashboard/terminal.d.ts +53 -0
- package/dist/dashboard/terminal.js +165 -0
- package/dist/dashboard/tree-model.d.ts +28 -0
- package/dist/dashboard/tree-model.js +97 -0
- package/dist/dashboard/tree.d.ts +10 -0
- package/dist/dashboard/tree.js +76 -0
- package/dist/fleet/fleet.d.ts +70 -0
- package/dist/fleet/fleet.js +91 -0
- package/dist/fleet/index.d.ts +2 -0
- package/dist/fleet/index.js +2 -0
- package/dist/hold/output/format.js +1 -5
- package/dist/hold/tree/tree.js +1 -0
- package/dist/import/commands.js +3 -4
- package/dist/import/output.js +1 -4
- package/dist/local-node/client.d.ts +9 -4
- package/dist/local-node/client.js +21 -9
- package/dist/local-node/index.d.ts +2 -1
- package/dist/local-node/index.js +2 -1
- package/dist/local-node/wait.d.ts +10 -0
- package/dist/local-node/wait.js +17 -0
- package/dist/login/commands.js +2 -1
- package/dist/mcp/calls.d.ts +1 -0
- package/dist/mcp/calls.js +37 -3
- package/dist/mcp/commands.d.ts +5 -2
- package/dist/mcp/commands.js +30 -4
- package/dist/mcp/routing.d.ts +24 -0
- package/dist/mcp/routing.js +188 -0
- package/dist/mcp/server.d.ts +13 -4
- package/dist/mcp/server.js +35 -12
- package/dist/presentation/output/format.js +4 -3
- package/dist/project-guard/commands.js +11 -2
- package/dist/project-workspace/commands.js +16 -6
- package/dist/project-workspace/output/human.d.ts +13 -0
- package/dist/project-workspace/output/human.js +17 -5
- package/dist/project-workspace/output/index.d.ts +1 -1
- package/dist/project-workspace/output/index.js +1 -1
- package/dist/project-workspace/output/metadata.js +1 -1
- package/dist/project-workspace/tree/tree.js +27 -12
- package/dist/reference/commands.js +4 -2
- package/dist/reference/index.d.ts +1 -1
- package/dist/reference/index.js +1 -1
- package/dist/reference/resolve.d.ts +2 -0
- package/dist/reference/resolve.js +28 -18
- package/dist/remote-node/client.d.ts +89 -9
- package/dist/remote-node/client.js +6 -1
- package/dist/remote-node/commands.d.ts +9 -0
- package/dist/remote-node/commands.js +96 -18
- package/dist/remote-node/connector.d.ts +12 -4
- package/dist/remote-node/connector.js +54 -26
- package/dist/remote-node/index.d.ts +2 -2
- package/dist/remote-node/index.js +2 -2
- package/dist/remote-node/reachability.d.ts +43 -1
- package/dist/remote-node/reachability.js +13 -3
- package/dist/remote-node/text.d.ts +2 -1
- package/dist/remote-node/text.js +74 -27
- package/dist/remote-node/tree/tree.js +21 -1
- package/dist/routine/client.d.ts +398 -0
- package/dist/routine/client.js +28 -0
- package/dist/routine/commands.d.ts +9 -0
- package/dist/routine/commands.js +109 -0
- package/dist/routine/index.d.ts +3 -0
- package/dist/routine/index.js +3 -0
- package/dist/routine/input.d.ts +28 -0
- package/dist/routine/input.js +44 -0
- package/dist/routine/output/format.d.ts +23 -0
- package/dist/routine/output/format.js +83 -0
- package/dist/routine/output/index.d.ts +2 -0
- package/dist/routine/output/index.js +2 -0
- package/dist/routine/tree/index.d.ts +2 -0
- package/dist/routine/tree/index.js +2 -0
- package/dist/routine/tree/tree.d.ts +3 -0
- package/dist/routine/tree/tree.js +70 -0
- package/dist/session/agent-permission.d.ts +2 -2
- package/dist/session/approval/commands.js +31 -9
- package/dist/session/approval/output/format.d.ts +11 -0
- package/dist/session/approval/output/format.js +8 -0
- package/dist/session/approval/output/index.d.ts +1 -1
- package/dist/session/approval/output/index.js +1 -1
- package/dist/session/attach-client.d.ts +1 -1
- package/dist/session/attach-client.js +12 -3
- package/dist/session/attach-render.js +15 -7
- package/dist/session/attach.js +17 -3
- package/dist/session/client.d.ts +12 -3
- package/dist/session/client.js +18 -17
- package/dist/session/commands.d.ts +1 -0
- package/dist/session/commands.js +120 -13
- package/dist/session/create-tasks.js +29 -11
- package/dist/session/index.d.ts +2 -2
- package/dist/session/index.js +2 -1
- package/dist/session/interaction/output/format.js +2 -1
- package/dist/session/output/diff.js +3 -10
- package/dist/session/output/failure.js +3 -10
- package/dist/session/output/human.d.ts +1 -0
- package/dist/session/output/human.js +21 -10
- package/dist/session/output/index.d.ts +2 -2
- package/dist/session/output/index.js +2 -2
- package/dist/session/output/tasks.d.ts +16 -1
- package/dist/session/output/tasks.js +41 -27
- package/dist/session/tree/tree.js +67 -8
- package/dist/session/turn/client.d.ts +4 -1
- package/dist/session/turn/client.js +22 -11
- package/dist/session/turn/commands.d.ts +2 -0
- package/dist/session/turn/commands.js +39 -11
- package/dist/session/turn/index.d.ts +3 -3
- package/dist/session/turn/index.js +1 -1
- package/dist/session/turn/output.d.ts +7 -2
- package/dist/session/turn/output.js +36 -13
- package/dist/status/client.d.ts +7 -2
- package/dist/status/command.js +3 -1
- package/dist/status/doctor.d.ts +5 -1
- package/dist/status/doctor.js +10 -4
- package/dist/status/output/compact.d.ts +1 -0
- package/dist/status/output/compact.js +3 -0
- package/dist/status/output/human.d.ts +1 -1
- package/dist/status/output/human.js +71 -14
- package/dist/team-workspace/ceremony.d.ts +19 -0
- package/dist/team-workspace/ceremony.js +141 -0
- package/dist/team-workspace/client.d.ts +58 -0
- package/dist/team-workspace/client.js +6 -0
- package/dist/team-workspace/commands.d.ts +3 -0
- package/dist/team-workspace/commands.js +85 -0
- package/dist/team-workspace/confirmation.d.ts +4 -0
- package/dist/team-workspace/confirmation.js +8 -0
- package/dist/team-workspace/dependencies.d.ts +8 -0
- package/dist/team-workspace/dependencies.js +2 -0
- package/dist/team-workspace/index.d.ts +6 -0
- package/dist/team-workspace/index.js +5 -0
- package/dist/team-workspace/launcher.d.ts +17 -0
- package/dist/team-workspace/launcher.js +30 -0
- package/dist/team-workspace/output.d.ts +15 -0
- package/dist/team-workspace/output.js +28 -0
- package/dist/team-workspace/terminal.d.ts +9 -0
- package/dist/team-workspace/terminal.js +46 -0
- package/dist/terminal/client.d.ts +4 -0
- package/dist/terminal/client.js +3 -0
- package/dist/terminal/commands.js +37 -25
- package/dist/terminal/control-commands.js +26 -9
- package/dist/terminal/keys.d.ts +12 -0
- package/dist/terminal/keys.js +62 -0
- package/dist/terminal/output/compact-list.d.ts +1 -0
- package/dist/terminal/output/compact-list.js +1 -0
- package/dist/terminal/output/human.d.ts +2 -19
- package/dist/terminal/output/human.js +6 -6
- package/dist/terminal/tree/tree.js +16 -16
- package/package.json +10 -8
|
@@ -9,95 +9,95 @@ export const TERMINAL_TREE = {
|
|
|
9
9
|
],
|
|
10
10
|
leaves: [
|
|
11
11
|
[
|
|
12
|
-
"terminal create --workspace <workspace-id> [--interactive --columns <2..500> --rows <2..300>] [--command-id <id>]",
|
|
12
|
+
"terminal create --workspace <workspace-id> [--interactive --columns <2..500> --rows <2..300>] [--command-id <id>] [-- <program> [arguments...]]",
|
|
13
13
|
1,
|
|
14
14
|
"terminal.create",
|
|
15
|
-
"Create a terminal
|
|
16
|
-
{ run: [terminal, "runTerminalCreate"] },
|
|
15
|
+
"Create a terminal: a login shell, or a listed program after '--'.",
|
|
16
|
+
{ route: "--workspace", run: [terminal, "runTerminalCreate"] },
|
|
17
17
|
],
|
|
18
18
|
[
|
|
19
19
|
"terminal list --workspace <workspace-id> [--limit <1..100>] [--after <cursor>]",
|
|
20
20
|
1,
|
|
21
21
|
"terminal.list",
|
|
22
22
|
"List a Workspace's terminals.",
|
|
23
|
-
{ run: [terminal, "runTerminalList"] },
|
|
23
|
+
{ route: "--workspace", run: [terminal, "runTerminalList"] },
|
|
24
24
|
],
|
|
25
25
|
[
|
|
26
26
|
"terminal show <terminal-id>",
|
|
27
27
|
1,
|
|
28
28
|
"terminal.show",
|
|
29
29
|
"Show one terminal.",
|
|
30
|
-
{ run: [terminal, "runTerminalShow"] },
|
|
30
|
+
{ route: "<terminal-id>", run: [terminal, "runTerminalShow"] },
|
|
31
31
|
],
|
|
32
32
|
[
|
|
33
33
|
"terminal read <terminal-id> [--limit <1..8>] [--after <chunk-cursor>]",
|
|
34
34
|
1,
|
|
35
35
|
"terminal.read",
|
|
36
36
|
"Read a terminal's output.",
|
|
37
|
-
{ run: [terminal, "runTerminalRead"] },
|
|
37
|
+
{ route: "<terminal-id>", run: [terminal, "runTerminalRead"] },
|
|
38
38
|
],
|
|
39
39
|
[
|
|
40
40
|
"terminal events list --terminal <terminal-id> [--limit <1..32>] [--after <terminal-cursor>]",
|
|
41
41
|
1,
|
|
42
42
|
"terminal.events.list",
|
|
43
43
|
"List a terminal's events.",
|
|
44
|
-
{ run: [terminal, "runTerminalEventsList"] },
|
|
44
|
+
{ route: "--terminal", run: [terminal, "runTerminalEventsList"] },
|
|
45
45
|
],
|
|
46
46
|
[
|
|
47
47
|
"terminal controller request create --terminal <terminal-id> --terminal-generation <1..65535> --lease-ms <1000..30000> [--command-id <id>]",
|
|
48
48
|
1,
|
|
49
49
|
"terminal.controller.request",
|
|
50
50
|
"Request control of a terminal.",
|
|
51
|
-
{ run: [terminal, "runControllerRequestCreate"] },
|
|
51
|
+
{ route: "--terminal", run: [terminal, "runControllerRequestCreate"] },
|
|
52
52
|
],
|
|
53
53
|
[
|
|
54
54
|
"terminal controller request show <controller-request-id> --terminal <terminal-id> --terminal-generation <1..65535>",
|
|
55
55
|
1,
|
|
56
56
|
"terminal.controller.request.show",
|
|
57
57
|
"Show a terminal control request.",
|
|
58
|
-
{ run: [terminal, "runControllerRequestShow"] },
|
|
58
|
+
{ route: "--terminal", run: [terminal, "runControllerRequestShow"] },
|
|
59
59
|
],
|
|
60
60
|
[
|
|
61
61
|
"terminal controller acquire <terminal-id> --request <controller-request-id> --terminal-generation <1..65535> --expected-revision <revision> [--command-id <id>]",
|
|
62
62
|
1,
|
|
63
63
|
"terminal.controller.acquire",
|
|
64
64
|
"Acquire control of a terminal.",
|
|
65
|
-
{ run: [terminal, "runControllerAcquire"] },
|
|
65
|
+
{ route: "<terminal-id>", run: [terminal, "runControllerAcquire"] },
|
|
66
66
|
],
|
|
67
67
|
[
|
|
68
68
|
"terminal controller release <terminal-id> --controller-id <id> --controller-epoch <epoch> --controller-revision <revision> --controller-expires-at <timestamp> --terminal-generation <1..65535> --expected-revision <revision> [--command-id <id>]",
|
|
69
69
|
1,
|
|
70
70
|
"terminal.controller.release",
|
|
71
71
|
"Release control of a terminal.",
|
|
72
|
-
{ run: [terminal, "runControllerRelease"] },
|
|
72
|
+
{ route: "<terminal-id>", run: [terminal, "runControllerRelease"] },
|
|
73
73
|
],
|
|
74
74
|
[
|
|
75
|
-
"terminal input write <terminal-id> --input-stdin --input-id <id> --input-sequence <1..2147483647> --controller-id <id> --controller-epoch <epoch> --controller-revision <revision> --controller-expires-at <timestamp> --terminal-generation <1..65535> --expected-revision <revision> [--command-id <id>]",
|
|
75
|
+
"terminal input write <terminal-id> (--input-stdin | [--text <text>] [--keys <names>]) --input-id <id> --input-sequence <1..2147483647> --controller-id <id> --controller-epoch <epoch> --controller-revision <revision> --controller-expires-at <timestamp> --terminal-generation <1..65535> --expected-revision <revision> [--command-id <id>]",
|
|
76
76
|
1,
|
|
77
77
|
"terminal.input.write",
|
|
78
78
|
"Write input to a terminal you control.",
|
|
79
|
-
{ run: [terminal, "runTerminalInputWrite"] },
|
|
79
|
+
{ route: "<terminal-id>", run: [terminal, "runTerminalInputWrite"] },
|
|
80
80
|
],
|
|
81
81
|
[
|
|
82
82
|
"terminal resize <terminal-id> --columns <2..500> --rows <2..300> --controller-id <id> --controller-epoch <epoch> --controller-revision <revision> --controller-expires-at <timestamp> --terminal-generation <1..65535> --expected-revision <revision> [--command-id <id>]",
|
|
83
83
|
1,
|
|
84
84
|
"terminal.session.resize",
|
|
85
85
|
"Resize a terminal you control.",
|
|
86
|
-
{ run: [terminal, "runTerminalResize"] },
|
|
86
|
+
{ route: "<terminal-id>", run: [terminal, "runTerminalResize"] },
|
|
87
87
|
],
|
|
88
88
|
[
|
|
89
89
|
"terminal signal <terminal-id> --signal <hangup|interrupt|terminate> --controller-id <id> --controller-epoch <epoch> --controller-revision <revision> --controller-expires-at <timestamp> --terminal-generation <1..65535> --expected-revision <revision> [--command-id <id>]",
|
|
90
90
|
1,
|
|
91
91
|
"terminal.session.signal",
|
|
92
92
|
"Signal a terminal you control.",
|
|
93
|
-
{ run: [terminal, "runTerminalSignal"] },
|
|
93
|
+
{ route: "<terminal-id>", run: [terminal, "runTerminalSignal"] },
|
|
94
94
|
],
|
|
95
95
|
[
|
|
96
96
|
"terminal close <terminal-id> --controller-id <id> --controller-epoch <epoch> --controller-revision <revision> --controller-expires-at <timestamp> --terminal-generation <1..65535> --expected-revision <revision> [--command-id <id>]",
|
|
97
97
|
1,
|
|
98
98
|
"terminal.session.close",
|
|
99
99
|
"Close a terminal you control.",
|
|
100
|
-
{ run: [terminal, "runTerminalClose"] },
|
|
100
|
+
{ route: "<terminal-id>", run: [terminal, "runTerminalClose"] },
|
|
101
101
|
],
|
|
102
102
|
],
|
|
103
103
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maiaos/cli",
|
|
3
|
-
"version": "0.1.0-canary.
|
|
3
|
+
"version": "0.1.0-canary.20",
|
|
4
4
|
"description": "The maia CLI and MCP server: start, drive, observe and stop swarms of Claude Code and Codex agents from a terminal, a script or another agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maia",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"codex",
|
|
18
18
|
"typescript"
|
|
19
19
|
],
|
|
20
|
-
"homepage": "https://github.com/
|
|
21
|
-
"bugs": "https://github.com/
|
|
20
|
+
"homepage": "https://github.com/vllnt/maia/tree/main/apps/cli#readme",
|
|
21
|
+
"bugs": "https://github.com/vllnt/maia/issues",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/
|
|
24
|
+
"url": "git+https://github.com/vllnt/maia.git",
|
|
25
25
|
"directory": "apps/cli"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
@@ -62,15 +62,17 @@
|
|
|
62
62
|
"typescript": "npm:@typescript/typescript6@6.0.2"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
+
"@earendil-works/pi-tui": "1.0.0",
|
|
65
66
|
"@effect/platform-node-shared": "4.0.0",
|
|
66
|
-
"@maiaos/agent": "0.1.0-canary.
|
|
67
|
-
"@maiaos/
|
|
67
|
+
"@maiaos/agent": "0.1.0-canary.20",
|
|
68
|
+
"@maiaos/client-core": "0.1.0-canary.20",
|
|
69
|
+
"@maiaos/sdk": "0.1.0-canary.20",
|
|
68
70
|
"effect": "4.0.0"
|
|
69
71
|
},
|
|
70
72
|
"scripts": {
|
|
71
73
|
"build": "node -e \"require('node:fs').rmSync('dist',{force:true,recursive:true})\" && tsc --project tsconfig.build.json && node scripts/build-executable.mjs",
|
|
72
|
-
"lint": "eslint src scripts --max-warnings 0",
|
|
74
|
+
"lint": "eslint src scripts --max-warnings 0 --cache --cache-location node_modules/.cache/eslint/ --cache-strategy content",
|
|
73
75
|
"test": "node -e \"require('node:fs').rmSync('.test-dist',{force:true,recursive:true})\" && tsc --project tsconfig.test.json && node --import ../../scripts/lib/test-environment.mjs --test --test-concurrency=2 --enable-source-maps \".test-dist/**/*.test.js\"",
|
|
74
|
-
"typecheck": "tsc --project tsconfig.json --noEmit && tsc --project scripts/tsconfig.json --noEmit"
|
|
76
|
+
"typecheck": "tsc --project tsconfig.json --noEmit --incremental --tsBuildInfoFile node_modules/.cache/tsc/typecheck.tsbuildinfo && tsc --project scripts/tsconfig.json --noEmit --incremental --tsBuildInfoFile node_modules/.cache/tsc/scripts.tsbuildinfo"
|
|
75
77
|
}
|
|
76
78
|
}
|