@maiaos/cli 0.1.0-canary.2 → 0.1.0-canary.21
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/guidance/maia-orchestration/SKILL.md +1 -2
- package/package.json +10 -8
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { type AgentsChangeConfirmParameters, type AgentsChangePreviewParameters, type AgentsListParameters, type AgentsShowParameters } from "@maiaos/sdk";
|
|
2
|
+
import type { CliNodeOperations } from "../local-node/index.js";
|
|
3
|
+
export declare const makeAgentsClient: (node: CliNodeOperations) => {
|
|
4
|
+
confirmAgentChange: (input: AgentsChangeConfirmParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
5
|
+
readonly actorId: string;
|
|
6
|
+
readonly agent: {
|
|
7
|
+
readonly contentDigest: string;
|
|
8
|
+
readonly createdAt: string;
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly projectId: string;
|
|
11
|
+
readonly revision: string;
|
|
12
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
13
|
+
readonly spec: {
|
|
14
|
+
readonly accountableActorId: string;
|
|
15
|
+
readonly connectionId?: string | undefined;
|
|
16
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
17
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
18
|
+
readonly homeSessionId?: string | undefined;
|
|
19
|
+
readonly instruction: string;
|
|
20
|
+
readonly managerAgentId?: string | undefined;
|
|
21
|
+
readonly model?: string | undefined;
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly placement: "local";
|
|
24
|
+
};
|
|
25
|
+
readonly state: "active" | "disabled";
|
|
26
|
+
readonly updatedAt: string;
|
|
27
|
+
};
|
|
28
|
+
readonly commandId: string;
|
|
29
|
+
readonly delivery: "duplicate" | "new";
|
|
30
|
+
readonly inputDigest: string;
|
|
31
|
+
readonly kind: "create" | "disable" | "revise";
|
|
32
|
+
readonly method: "agents.change.confirm";
|
|
33
|
+
readonly receipt: {
|
|
34
|
+
readonly actorId: string;
|
|
35
|
+
readonly aggregateRevision: string;
|
|
36
|
+
readonly commandId: string;
|
|
37
|
+
readonly createdAt: string;
|
|
38
|
+
readonly eventCursor: string;
|
|
39
|
+
readonly method: string;
|
|
40
|
+
readonly receiptId: string;
|
|
41
|
+
readonly schemaVersion: 1;
|
|
42
|
+
readonly state: "succeeded";
|
|
43
|
+
readonly target: {
|
|
44
|
+
readonly id: string;
|
|
45
|
+
readonly type: string;
|
|
46
|
+
};
|
|
47
|
+
readonly updatedAt: string;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
listAgents: (input: AgentsListParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
51
|
+
readonly items: readonly {
|
|
52
|
+
readonly contentDigest: string;
|
|
53
|
+
readonly createdAt: string;
|
|
54
|
+
readonly id: string;
|
|
55
|
+
readonly projectId: string;
|
|
56
|
+
readonly revision: string;
|
|
57
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
58
|
+
readonly spec: {
|
|
59
|
+
readonly accountableActorId: string;
|
|
60
|
+
readonly connectionId?: string | undefined;
|
|
61
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
62
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
63
|
+
readonly homeSessionId?: string | undefined;
|
|
64
|
+
readonly instruction: string;
|
|
65
|
+
readonly managerAgentId?: string | undefined;
|
|
66
|
+
readonly model?: string | undefined;
|
|
67
|
+
readonly name: string;
|
|
68
|
+
readonly placement: "local";
|
|
69
|
+
};
|
|
70
|
+
readonly state: "active" | "disabled";
|
|
71
|
+
readonly updatedAt: string;
|
|
72
|
+
}[];
|
|
73
|
+
readonly method: "agents.list";
|
|
74
|
+
readonly nextCursor?: string | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
previewAgentChange: (input: AgentsChangePreviewParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
77
|
+
readonly change: {
|
|
78
|
+
readonly kind: "create";
|
|
79
|
+
readonly projectId: string;
|
|
80
|
+
readonly spec: {
|
|
81
|
+
readonly accountableActorId: string;
|
|
82
|
+
readonly connectionId?: string | undefined;
|
|
83
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
84
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
85
|
+
readonly homeSessionId?: string | undefined;
|
|
86
|
+
readonly instruction: string;
|
|
87
|
+
readonly managerAgentId?: string | undefined;
|
|
88
|
+
readonly model?: string | undefined;
|
|
89
|
+
readonly name: string;
|
|
90
|
+
readonly placement: "local";
|
|
91
|
+
};
|
|
92
|
+
} | {
|
|
93
|
+
readonly agentId: string;
|
|
94
|
+
readonly expectedRevision: string;
|
|
95
|
+
readonly kind: "revise";
|
|
96
|
+
readonly spec: {
|
|
97
|
+
readonly accountableActorId: string;
|
|
98
|
+
readonly connectionId?: string | undefined;
|
|
99
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
100
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
101
|
+
readonly homeSessionId?: string | undefined;
|
|
102
|
+
readonly instruction: string;
|
|
103
|
+
readonly managerAgentId?: string | undefined;
|
|
104
|
+
readonly model?: string | undefined;
|
|
105
|
+
readonly name: string;
|
|
106
|
+
readonly placement: "local";
|
|
107
|
+
};
|
|
108
|
+
} | {
|
|
109
|
+
readonly agentId: string;
|
|
110
|
+
readonly expectedRevision: string;
|
|
111
|
+
readonly kind: "disable";
|
|
112
|
+
};
|
|
113
|
+
readonly commandId: string;
|
|
114
|
+
readonly inputDigest: string;
|
|
115
|
+
readonly proof: string;
|
|
116
|
+
readonly actorId: string;
|
|
117
|
+
readonly agentId: string;
|
|
118
|
+
readonly current?: {
|
|
119
|
+
readonly contentDigest: string;
|
|
120
|
+
readonly createdAt: string;
|
|
121
|
+
readonly id: string;
|
|
122
|
+
readonly projectId: string;
|
|
123
|
+
readonly revision: string;
|
|
124
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
125
|
+
readonly spec: {
|
|
126
|
+
readonly accountableActorId: string;
|
|
127
|
+
readonly connectionId?: string | undefined;
|
|
128
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
129
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
130
|
+
readonly homeSessionId?: string | undefined;
|
|
131
|
+
readonly instruction: string;
|
|
132
|
+
readonly managerAgentId?: string | undefined;
|
|
133
|
+
readonly model?: string | undefined;
|
|
134
|
+
readonly name: string;
|
|
135
|
+
readonly placement: "local";
|
|
136
|
+
};
|
|
137
|
+
readonly state: "active" | "disabled";
|
|
138
|
+
readonly updatedAt: string;
|
|
139
|
+
} | undefined;
|
|
140
|
+
readonly expiresAt: string;
|
|
141
|
+
readonly issuedAt: string;
|
|
142
|
+
readonly method: "agents.change.preview";
|
|
143
|
+
}>;
|
|
144
|
+
showAgent: (input: AgentsShowParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
145
|
+
readonly agent: {
|
|
146
|
+
readonly contentDigest: string;
|
|
147
|
+
readonly createdAt: string;
|
|
148
|
+
readonly id: string;
|
|
149
|
+
readonly projectId: string;
|
|
150
|
+
readonly revision: string;
|
|
151
|
+
readonly schemaVersion: "maia.agent/v1";
|
|
152
|
+
readonly spec: {
|
|
153
|
+
readonly accountableActorId: string;
|
|
154
|
+
readonly connectionId?: string | undefined;
|
|
155
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
156
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
157
|
+
readonly homeSessionId?: string | undefined;
|
|
158
|
+
readonly instruction: string;
|
|
159
|
+
readonly managerAgentId?: string | undefined;
|
|
160
|
+
readonly model?: string | undefined;
|
|
161
|
+
readonly name: string;
|
|
162
|
+
readonly placement: "local";
|
|
163
|
+
};
|
|
164
|
+
readonly state: "active" | "disabled";
|
|
165
|
+
readonly updatedAt: string;
|
|
166
|
+
};
|
|
167
|
+
readonly method: "agents.show";
|
|
168
|
+
}>;
|
|
169
|
+
};
|
|
170
|
+
export type AgentsCliDependencies = ReturnType<typeof makeAgentsClient>;
|
|
171
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { agentsChangeConfirmParametersSchema, agentsChangePreviewParametersSchema, agentsListParametersSchema, agentsShowParametersSchema, } from "@maiaos/sdk";
|
|
2
|
+
export const makeAgentsClient = (node) => ({
|
|
3
|
+
confirmAgentChange: (input) => node.runValidatedNodeOperation(input, agentsChangeConfirmParametersSchema, (client, parameters, options) => client.confirmAgentChange(parameters, options), { commandId: input.commandId }),
|
|
4
|
+
listAgents: (input) => node.runValidatedNodeOperation(input, agentsListParametersSchema, (client, parameters, options) => client.listAgents(parameters, options)),
|
|
5
|
+
previewAgentChange: (input) => node.runValidatedNodeOperation(input, agentsChangePreviewParametersSchema, (client, parameters, options) => client.previewAgentChange(parameters, options)),
|
|
6
|
+
showAgent: (input) => node.runValidatedNodeOperation(input, agentsShowParametersSchema, (client, parameters, options) => client.showAgent(parameters, options)),
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type CommandContext, type CommandEffect } from "../command-line/index.js";
|
|
2
|
+
export declare const runAgentsList: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
3
|
+
export declare const runAgentsShow: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
4
|
+
export declare const runAgentsCreate: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
5
|
+
export declare const runAgentsRevise: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
6
|
+
export declare const runAgentsDisable: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
7
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { agentsChangeConfirmParametersSchema, } from "@maiaos/sdk";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { CliArgumentError, confirmParameters, parseOptions, readTwoPhaseMode, requirePositionals, runTwoPhase, TWO_PHASE_FLAGS, writeNodeResult, } from "../command-line/index.js";
|
|
4
|
+
import { AGENT_OPTIONS, readAgentsList, readAgentsShow, readCreateChange, readDisableChange, readReviseChange, } from "./input.js";
|
|
5
|
+
import { formatAgentsResult } from "./output/index.js";
|
|
6
|
+
const write = (context) => (result) => writeNodeResult(result, context, {
|
|
7
|
+
toResult: (value) => ({ command: value.method, result: value }),
|
|
8
|
+
toText: formatAgentsResult,
|
|
9
|
+
});
|
|
10
|
+
export const runAgentsList = (tokens, context) => Effect.gen(function* () {
|
|
11
|
+
const list = context.dependencies.listAgents;
|
|
12
|
+
if (list === undefined)
|
|
13
|
+
return yield* Effect.die(new Error("Missing Agents client."));
|
|
14
|
+
return write(context)(yield* list(readAgentsList(tokens)));
|
|
15
|
+
});
|
|
16
|
+
export const runAgentsShow = (tokens, context) => Effect.gen(function* () {
|
|
17
|
+
const show = context.dependencies.showAgent;
|
|
18
|
+
if (show === undefined)
|
|
19
|
+
return yield* Effect.die(new Error("Missing Agents client."));
|
|
20
|
+
return write(context)(yield* show(readAgentsShow(tokens)));
|
|
21
|
+
});
|
|
22
|
+
const describe = (preview) => formatAgentsResult({ command: preview.method, result: preview });
|
|
23
|
+
const confirmOwnKind = (kind, confirm) => (preview) => Effect.flatMap(confirmParameters(agentsChangeConfirmParametersSchema, preview, [
|
|
24
|
+
"agentId",
|
|
25
|
+
"current",
|
|
26
|
+
]), (parameters) => parameters.change.kind === kind
|
|
27
|
+
? confirm(parameters)
|
|
28
|
+
: Effect.fail(new CliArgumentError(`The piped preview is a ${parameters.change.kind} change; confirm it with 'maia agents ${parameters.change.kind} --confirm-stdin'.`)));
|
|
29
|
+
const runChange = (tokens, context, spec) => Effect.gen(function* () {
|
|
30
|
+
const parsed = parseOptions(tokens, spec.options, new Set(TWO_PHASE_FLAGS));
|
|
31
|
+
const mode = readTwoPhaseMode(parsed.flags, context);
|
|
32
|
+
if (mode === "confirm-stdin")
|
|
33
|
+
requirePositionals(parsed.positionals, 0);
|
|
34
|
+
const { confirmAgentChange, previewAgentChange } = context.dependencies;
|
|
35
|
+
if (confirmAgentChange === undefined || previewAgentChange === undefined)
|
|
36
|
+
return yield* new CliArgumentError("Agent changes are unavailable.");
|
|
37
|
+
return yield* runTwoPhase({
|
|
38
|
+
confirm: confirmOwnKind(spec.kind, confirmAgentChange),
|
|
39
|
+
context,
|
|
40
|
+
mode,
|
|
41
|
+
preview: () => Effect.flatMap(spec.read(parsed), previewAgentChange),
|
|
42
|
+
prompt: { describe, question: spec.question },
|
|
43
|
+
writeConfirm: write(context),
|
|
44
|
+
writePreview: write(context),
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
export const runAgentsCreate = (tokens, context) => runChange(tokens, context, {
|
|
48
|
+
kind: "create",
|
|
49
|
+
options: AGENT_OPTIONS.create,
|
|
50
|
+
question: "Create this Agent?",
|
|
51
|
+
read: readCreateChange,
|
|
52
|
+
});
|
|
53
|
+
export const runAgentsRevise = (tokens, context) => runChange(tokens, context, {
|
|
54
|
+
kind: "revise",
|
|
55
|
+
options: AGENT_OPTIONS.revise,
|
|
56
|
+
question: "Revise this Agent?",
|
|
57
|
+
read: readReviseChange,
|
|
58
|
+
});
|
|
59
|
+
export const runAgentsDisable = (tokens, context) => runChange(tokens, context, {
|
|
60
|
+
kind: "disable",
|
|
61
|
+
options: AGENT_OPTIONS.disable,
|
|
62
|
+
question: "Disable this Agent for good?",
|
|
63
|
+
read: readDisableChange,
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { type AgentsListParameters, type AgentsShowParameters } from "@maiaos/sdk";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { type ParsedOptions } from "../command-line/index.js";
|
|
4
|
+
export declare const AGENT_OPTIONS: {
|
|
5
|
+
readonly create: Set<string>;
|
|
6
|
+
readonly disable: Set<string>;
|
|
7
|
+
readonly list: Set<string>;
|
|
8
|
+
readonly revise: Set<string>;
|
|
9
|
+
readonly show: Set<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare const readAgentsList: (tokens: readonly string[]) => AgentsListParameters;
|
|
12
|
+
export declare const readAgentsShow: (tokens: readonly string[]) => AgentsShowParameters;
|
|
13
|
+
export declare const readCreateChange: (parsed: ParsedOptions) => Effect.Effect<{
|
|
14
|
+
change: {
|
|
15
|
+
readonly kind: "create";
|
|
16
|
+
readonly projectId: string;
|
|
17
|
+
readonly spec: {
|
|
18
|
+
readonly accountableActorId: string;
|
|
19
|
+
readonly connectionId?: string | undefined;
|
|
20
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
21
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
22
|
+
readonly homeSessionId?: string | undefined;
|
|
23
|
+
readonly instruction: string;
|
|
24
|
+
readonly managerAgentId?: string | undefined;
|
|
25
|
+
readonly model?: string | undefined;
|
|
26
|
+
readonly name: string;
|
|
27
|
+
readonly placement: "local";
|
|
28
|
+
};
|
|
29
|
+
} | {
|
|
30
|
+
readonly agentId: string;
|
|
31
|
+
readonly expectedRevision: string;
|
|
32
|
+
readonly kind: "revise";
|
|
33
|
+
readonly spec: {
|
|
34
|
+
readonly accountableActorId: string;
|
|
35
|
+
readonly connectionId?: string | undefined;
|
|
36
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
37
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
38
|
+
readonly homeSessionId?: string | undefined;
|
|
39
|
+
readonly instruction: string;
|
|
40
|
+
readonly managerAgentId?: string | undefined;
|
|
41
|
+
readonly model?: string | undefined;
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly placement: "local";
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
readonly agentId: string;
|
|
47
|
+
readonly expectedRevision: string;
|
|
48
|
+
readonly kind: "disable";
|
|
49
|
+
};
|
|
50
|
+
commandId: string;
|
|
51
|
+
}, never, import("effect/Crypto").Crypto>;
|
|
52
|
+
export declare const readReviseChange: (parsed: ParsedOptions) => Effect.Effect<{
|
|
53
|
+
change: {
|
|
54
|
+
readonly kind: "create";
|
|
55
|
+
readonly projectId: string;
|
|
56
|
+
readonly spec: {
|
|
57
|
+
readonly accountableActorId: string;
|
|
58
|
+
readonly connectionId?: string | undefined;
|
|
59
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
60
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
61
|
+
readonly homeSessionId?: string | undefined;
|
|
62
|
+
readonly instruction: string;
|
|
63
|
+
readonly managerAgentId?: string | undefined;
|
|
64
|
+
readonly model?: string | undefined;
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly placement: "local";
|
|
67
|
+
};
|
|
68
|
+
} | {
|
|
69
|
+
readonly agentId: string;
|
|
70
|
+
readonly expectedRevision: string;
|
|
71
|
+
readonly kind: "revise";
|
|
72
|
+
readonly spec: {
|
|
73
|
+
readonly accountableActorId: string;
|
|
74
|
+
readonly connectionId?: string | undefined;
|
|
75
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
76
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
77
|
+
readonly homeSessionId?: string | undefined;
|
|
78
|
+
readonly instruction: string;
|
|
79
|
+
readonly managerAgentId?: string | undefined;
|
|
80
|
+
readonly model?: string | undefined;
|
|
81
|
+
readonly name: string;
|
|
82
|
+
readonly placement: "local";
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
85
|
+
readonly agentId: string;
|
|
86
|
+
readonly expectedRevision: string;
|
|
87
|
+
readonly kind: "disable";
|
|
88
|
+
};
|
|
89
|
+
commandId: string;
|
|
90
|
+
}, never, import("effect/Crypto").Crypto>;
|
|
91
|
+
export declare const readDisableChange: (parsed: ParsedOptions) => Effect.Effect<{
|
|
92
|
+
change: {
|
|
93
|
+
readonly kind: "create";
|
|
94
|
+
readonly projectId: string;
|
|
95
|
+
readonly spec: {
|
|
96
|
+
readonly accountableActorId: string;
|
|
97
|
+
readonly connectionId?: string | undefined;
|
|
98
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
99
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
100
|
+
readonly homeSessionId?: string | undefined;
|
|
101
|
+
readonly instruction: string;
|
|
102
|
+
readonly managerAgentId?: string | undefined;
|
|
103
|
+
readonly model?: string | undefined;
|
|
104
|
+
readonly name: string;
|
|
105
|
+
readonly placement: "local";
|
|
106
|
+
};
|
|
107
|
+
} | {
|
|
108
|
+
readonly agentId: string;
|
|
109
|
+
readonly expectedRevision: string;
|
|
110
|
+
readonly kind: "revise";
|
|
111
|
+
readonly spec: {
|
|
112
|
+
readonly accountableActorId: string;
|
|
113
|
+
readonly connectionId?: string | undefined;
|
|
114
|
+
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
115
|
+
readonly harness: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
116
|
+
readonly homeSessionId?: string | undefined;
|
|
117
|
+
readonly instruction: string;
|
|
118
|
+
readonly managerAgentId?: string | undefined;
|
|
119
|
+
readonly model?: string | undefined;
|
|
120
|
+
readonly name: string;
|
|
121
|
+
readonly placement: "local";
|
|
122
|
+
};
|
|
123
|
+
} | {
|
|
124
|
+
readonly agentId: string;
|
|
125
|
+
readonly expectedRevision: string;
|
|
126
|
+
readonly kind: "disable";
|
|
127
|
+
};
|
|
128
|
+
commandId: string;
|
|
129
|
+
}, never, import("effect/Crypto").Crypto>;
|
|
130
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { agentSpecSchema, } from "@maiaos/sdk";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { CliArgumentError, parseOptions, readExpectedRevision, readPageSize, readRevisionOption, requirePositionals, } from "../command-line/index.js";
|
|
4
|
+
import { commandIdentifier } from "../local-node/index.js";
|
|
5
|
+
const SPEC_OPTIONS = [
|
|
6
|
+
"--accountable",
|
|
7
|
+
"--connection",
|
|
8
|
+
"--effort",
|
|
9
|
+
"--harness",
|
|
10
|
+
"--home-session",
|
|
11
|
+
"--instruction",
|
|
12
|
+
"--manager",
|
|
13
|
+
"--model",
|
|
14
|
+
"--name",
|
|
15
|
+
];
|
|
16
|
+
export const AGENT_OPTIONS = {
|
|
17
|
+
create: new Set(["--command-id", "--project", ...SPEC_OPTIONS]),
|
|
18
|
+
disable: new Set(["--command-id", "--expected-revision"]),
|
|
19
|
+
list: new Set(["--after", "--limit", "--project", "--state"]),
|
|
20
|
+
revise: new Set(["--command-id", "--expected-revision", ...SPEC_OPTIONS]),
|
|
21
|
+
show: new Set(["--revision"]),
|
|
22
|
+
};
|
|
23
|
+
const INVALID_SPEC = "The Agent definition is invalid: check '--harness' (claude-code, codex-cli, maia-agent or pi), '--effort' (a vendor harness, at a level it supports), and '--model' (needs '--connection').";
|
|
24
|
+
const required = (options, name) => {
|
|
25
|
+
const value = options.get(name);
|
|
26
|
+
if (value === undefined)
|
|
27
|
+
throw new CliArgumentError(`Option '${name}' is required.`);
|
|
28
|
+
return value;
|
|
29
|
+
};
|
|
30
|
+
const present = (key, value) => value === undefined ? {} : { [key]: value };
|
|
31
|
+
const readSpec = (options) => {
|
|
32
|
+
const spec = agentSpecSchema.safeParse({
|
|
33
|
+
accountableActorId: required(options, "--accountable"),
|
|
34
|
+
...present("connectionId", options.get("--connection")),
|
|
35
|
+
...present("effort", options.get("--effort")),
|
|
36
|
+
harness: required(options, "--harness"),
|
|
37
|
+
...present("homeSessionId", options.get("--home-session")),
|
|
38
|
+
instruction: required(options, "--instruction"),
|
|
39
|
+
...present("managerAgentId", options.get("--manager")),
|
|
40
|
+
...present("model", options.get("--model")),
|
|
41
|
+
name: required(options, "--name"),
|
|
42
|
+
placement: "local",
|
|
43
|
+
});
|
|
44
|
+
if (!spec.success)
|
|
45
|
+
throw new CliArgumentError(INVALID_SPEC);
|
|
46
|
+
return spec.data;
|
|
47
|
+
};
|
|
48
|
+
export const readAgentsList = (tokens) => {
|
|
49
|
+
const { options, positionals } = parseOptions(tokens, AGENT_OPTIONS.list);
|
|
50
|
+
requirePositionals(positionals, 0);
|
|
51
|
+
const state = options.get("--state");
|
|
52
|
+
if (state !== undefined && state !== "active" && state !== "disabled")
|
|
53
|
+
throw new CliArgumentError("Option '--state' must be 'active' or 'disabled'.");
|
|
54
|
+
const afterCursor = options.get("--after");
|
|
55
|
+
return {
|
|
56
|
+
...(afterCursor === undefined ? {} : { afterCursor }),
|
|
57
|
+
limit: readPageSize(options.get("--limit")),
|
|
58
|
+
projectId: required(options, "--project"),
|
|
59
|
+
...(state === undefined ? {} : { state }),
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export const readAgentsShow = (tokens) => {
|
|
63
|
+
const { options, positionals } = parseOptions(tokens, AGENT_OPTIONS.show);
|
|
64
|
+
requirePositionals(positionals, 1);
|
|
65
|
+
const revision = options.get("--revision");
|
|
66
|
+
return {
|
|
67
|
+
agentId: positionals[0] ?? "",
|
|
68
|
+
...(revision === undefined
|
|
69
|
+
? {}
|
|
70
|
+
: { revision: readRevisionOption(revision, "--revision") }),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
const withCommandId = (parsed, change) => Effect.map(commandIdentifier(parsed.options.get("--command-id")), (commandId) => ({ change, commandId }));
|
|
74
|
+
export const readCreateChange = (parsed) => {
|
|
75
|
+
requirePositionals(parsed.positionals, 0);
|
|
76
|
+
const projectId = required(parsed.options, "--project");
|
|
77
|
+
return withCommandId(parsed, {
|
|
78
|
+
kind: "create",
|
|
79
|
+
projectId,
|
|
80
|
+
spec: readSpec(parsed.options),
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
const targetOf = (parsed) => {
|
|
84
|
+
requirePositionals(parsed.positionals, 1);
|
|
85
|
+
return {
|
|
86
|
+
agentId: parsed.positionals[0] ?? "",
|
|
87
|
+
expectedRevision: readExpectedRevision(parsed.options.get("--expected-revision")),
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export const readReviseChange = (parsed) => {
|
|
91
|
+
const target = targetOf(parsed);
|
|
92
|
+
return withCommandId(parsed, {
|
|
93
|
+
...target,
|
|
94
|
+
kind: "revise",
|
|
95
|
+
spec: readSpec(parsed.options),
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
export const readDisableChange = (parsed) => withCommandId(parsed, { ...targetOf(parsed), kind: "disable" });
|
|
99
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { cell, formatRows, tab, withNextPage, } from "../../command-line/index.js";
|
|
2
|
+
const labelled = (label, value) => value === undefined || value === "" ? [] : [`${label}=${value}`];
|
|
3
|
+
const headline = (agent) => tab([
|
|
4
|
+
agent.id,
|
|
5
|
+
agent.state,
|
|
6
|
+
agent.revision,
|
|
7
|
+
agent.spec.harness,
|
|
8
|
+
cell(agent.spec.name),
|
|
9
|
+
]);
|
|
10
|
+
const routeCells = (spec) => [
|
|
11
|
+
...labelled("connection", spec.connectionId),
|
|
12
|
+
...labelled("model", spec.model),
|
|
13
|
+
...labelled("effort", spec.effort),
|
|
14
|
+
];
|
|
15
|
+
const specLines = (spec) => `${tab([
|
|
16
|
+
...routeCells(spec),
|
|
17
|
+
`accountable=${spec.accountableActorId}`,
|
|
18
|
+
...labelled("manager", spec.managerAgentId),
|
|
19
|
+
...labelled("home", spec.homeSessionId),
|
|
20
|
+
`placement=${spec.placement}`,
|
|
21
|
+
])}\n${spec.instruction.split("\n").map(cell).join("\n")}\n`;
|
|
22
|
+
const showLines = (agent) => `${headline(agent)}\n${tab([`project=${agent.projectId}`, `digest=${agent.contentDigest}`, `updated=${agent.updatedAt}`])}\n${specLines(agent.spec)}`;
|
|
23
|
+
const proposedLines = (result) => {
|
|
24
|
+
const { change, current } = result;
|
|
25
|
+
const project = change.kind === "create" ? change.projectId : current?.projectId;
|
|
26
|
+
if (change.kind === "disable")
|
|
27
|
+
return `${tab([`project=${project ?? ""}`])}\n`;
|
|
28
|
+
const { harness, name } = change.spec;
|
|
29
|
+
return `${tab([`project=${project ?? ""}`, `name=${cell(name)}`, `harness=${harness}`])}\n${specLines(change.spec)}`;
|
|
30
|
+
};
|
|
31
|
+
const previewLines = (result) => `${tab([result.change.kind, result.agentId, `command=${result.commandId}`, `expires=${result.expiresAt}`])}\n${proposedLines(result)}${result.current === undefined ? "" : `current\t${headline(result.current)}\n`}`;
|
|
32
|
+
export const formatAgentsResult = ({ result }) => {
|
|
33
|
+
switch (result.method) {
|
|
34
|
+
case "agents.list":
|
|
35
|
+
return withNextPage(formatRows(result.items, headline, {
|
|
36
|
+
empty: "No Agents.",
|
|
37
|
+
headers: ["AGENT", "STATE", "REVISION", "HARNESS", "NAME"],
|
|
38
|
+
}), result.nextCursor);
|
|
39
|
+
case "agents.show":
|
|
40
|
+
return showLines(result.agent);
|
|
41
|
+
case "agents.change.preview":
|
|
42
|
+
return previewLines(result);
|
|
43
|
+
case "agents.change.confirm":
|
|
44
|
+
return `${tab([result.agent.id, result.agent.state, result.agent.revision, result.receipt.receiptId, result.delivery])}\n`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const agents = () => import("../index.js");
|
|
2
|
+
const SPEC = "--name <text> --harness <claude-code|codex-cli|maia-agent|pi> --accountable <actor-id> --instruction <text> [--connection <connection-id>] [--model <id>] [--effort <low|medium|high|xhigh|max|ultra>] [--manager <agent-id>] [--home-session <session-id>]";
|
|
3
|
+
export const AGENTS_TREE = {
|
|
4
|
+
groups: [["agents", "Versioned Agent definitions of a Project."]],
|
|
5
|
+
leaves: [
|
|
6
|
+
[
|
|
7
|
+
"agents list --project <project-id> [--state <active|disabled>] [--limit <1..100>] [--after <agent-id>]",
|
|
8
|
+
1,
|
|
9
|
+
"agents.list",
|
|
10
|
+
"List a Project's Agent definitions.",
|
|
11
|
+
{ run: [agents, "runAgentsList"] },
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"agents show <agent-id> [--revision <revision>]",
|
|
15
|
+
1,
|
|
16
|
+
"agents.show",
|
|
17
|
+
"Show an Agent definition at its current or a named revision.",
|
|
18
|
+
{ run: [agents, "runAgentsShow"] },
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
`agents create (--project <project-id> ${SPEC} [--command-id <id>] [--dry-run] | --confirm-stdin)`,
|
|
22
|
+
1,
|
|
23
|
+
["agents.change.preview", "agents.change.confirm"],
|
|
24
|
+
"Create an Agent definition after a preview.",
|
|
25
|
+
{ kind: "two-phase", run: [agents, "runAgentsCreate"] },
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
`agents revise (<agent-id> --expected-revision <revision> ${SPEC} [--command-id <id>] [--dry-run] | --confirm-stdin)`,
|
|
29
|
+
1,
|
|
30
|
+
["agents.change.preview", "agents.change.confirm"],
|
|
31
|
+
"Replace an Agent definition with a new revision after a preview.",
|
|
32
|
+
{ kind: "two-phase", run: [agents, "runAgentsRevise"] },
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"agents disable (<agent-id> --expected-revision <revision> [--command-id <id>] [--dry-run] | --confirm-stdin)",
|
|
36
|
+
1,
|
|
37
|
+
["agents.change.preview", "agents.change.confirm"],
|
|
38
|
+
"Disable an Agent definition for good after a preview.",
|
|
39
|
+
{ kind: "two-phase", run: [agents, "runAgentsDisable"] },
|
|
40
|
+
],
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=tree.js.map
|