@maiaos/cli 0.1.0-canary.2 → 0.1.0-canary.3

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.
Files changed (216) hide show
  1. package/README.md +38 -265
  2. package/dist/address-space/address-space.d.ts +38 -0
  3. package/dist/address-space/address-space.js +130 -0
  4. package/dist/address-space/index.d.ts +2 -0
  5. package/dist/address-space/index.js +2 -0
  6. package/dist/agents/client.d.ts +171 -0
  7. package/dist/agents/client.js +8 -0
  8. package/dist/agents/commands.d.ts +7 -0
  9. package/dist/agents/commands.js +65 -0
  10. package/dist/agents/index.d.ts +3 -0
  11. package/dist/agents/index.js +3 -0
  12. package/dist/agents/input.d.ts +130 -0
  13. package/dist/agents/input.js +99 -0
  14. package/dist/agents/output/format.d.ts +8 -0
  15. package/dist/agents/output/format.js +47 -0
  16. package/dist/agents/output/index.d.ts +2 -0
  17. package/dist/agents/output/index.js +2 -0
  18. package/dist/agents/tree/index.d.ts +2 -0
  19. package/dist/agents/tree/index.js +2 -0
  20. package/dist/agents/tree/tree.d.ts +3 -0
  21. package/dist/agents/tree/tree.js +43 -0
  22. package/dist/bin/maia.cdx.json +37 -14
  23. package/dist/bin/maia.mjs +1 -1
  24. package/dist/bootstrap/exit.d.ts +14 -0
  25. package/dist/bootstrap/exit.js +42 -0
  26. package/dist/bootstrap/process.js +4 -26
  27. package/dist/cli/cli.js +70 -13
  28. package/dist/command-line/context.d.ts +13 -4
  29. package/dist/command-line/context.js +1 -1
  30. package/dist/command-line/index.d.ts +5 -5
  31. package/dist/command-line/index.js +5 -4
  32. package/dist/command-line/input/index.d.ts +1 -1
  33. package/dist/command-line/input/index.js +1 -1
  34. package/dist/command-line/input/stdin.d.ts +1 -0
  35. package/dist/command-line/input/stdin.js +1 -0
  36. package/dist/command-line/json.d.ts +1 -0
  37. package/dist/command-line/json.js +23 -0
  38. package/dist/command-line/output.d.ts +8 -1
  39. package/dist/command-line/output.js +33 -14
  40. package/dist/command-line/rows.d.ts +2 -0
  41. package/dist/command-line/rows.js +10 -1
  42. package/dist/command-line/two-phase.d.ts +5 -0
  43. package/dist/command-line/two-phase.js +33 -8
  44. package/dist/command-tree/help.d.ts +1 -1
  45. package/dist/command-tree/help.js +1 -0
  46. package/dist/command-tree/index.d.ts +2 -2
  47. package/dist/command-tree/index.js +1 -1
  48. package/dist/command-tree/local.js +12 -0
  49. package/dist/command-tree/placeholder.d.ts +1 -0
  50. package/dist/command-tree/placeholder.js +1 -0
  51. package/dist/command-tree/row.d.ts +2 -0
  52. package/dist/command-tree/tree.d.ts +3 -2
  53. package/dist/command-tree/tree.js +18 -2
  54. package/dist/connection/client.d.ts +93 -1
  55. package/dist/connection/client.js +7 -1
  56. package/dist/connection/index.d.ts +1 -1
  57. package/dist/connection/index.js +1 -1
  58. package/dist/connection/system.d.ts +1 -0
  59. package/dist/connection/system.js +109 -5
  60. package/dist/connection/tree/tree.js +17 -4
  61. package/dist/container/output/format.js +1 -2
  62. package/dist/dashboard/cockpit-client.d.ts +6 -0
  63. package/dist/dashboard/cockpit-client.js +27 -0
  64. package/dist/dashboard/cockpits.d.ts +29 -0
  65. package/dist/dashboard/cockpits.js +65 -0
  66. package/dist/dashboard/dashboard.d.ts +7 -0
  67. package/dist/dashboard/dashboard.js +47 -0
  68. package/dist/dashboard/draw.d.ts +15 -0
  69. package/dist/dashboard/draw.js +30 -0
  70. package/dist/dashboard/frame.d.ts +4 -0
  71. package/dist/dashboard/frame.js +15 -0
  72. package/dist/dashboard/index.d.ts +2 -0
  73. package/dist/dashboard/index.js +2 -0
  74. package/dist/dashboard/modes.d.ts +5 -0
  75. package/dist/dashboard/modes.js +16 -0
  76. package/dist/dashboard/node-connection.d.ts +15 -0
  77. package/dist/dashboard/node-connection.js +51 -0
  78. package/dist/dashboard/pi-tui.d.ts +6 -0
  79. package/dist/dashboard/pi-tui.js +35 -0
  80. package/dist/dashboard/status-bar.d.ts +4 -0
  81. package/dist/dashboard/status-bar.js +60 -0
  82. package/dist/dashboard/terminal.d.ts +53 -0
  83. package/dist/dashboard/terminal.js +165 -0
  84. package/dist/dashboard/tree-model.d.ts +28 -0
  85. package/dist/dashboard/tree-model.js +97 -0
  86. package/dist/dashboard/tree.d.ts +10 -0
  87. package/dist/dashboard/tree.js +76 -0
  88. package/dist/fleet/fleet.d.ts +70 -0
  89. package/dist/fleet/fleet.js +91 -0
  90. package/dist/fleet/index.d.ts +2 -0
  91. package/dist/fleet/index.js +2 -0
  92. package/dist/hold/output/format.js +1 -5
  93. package/dist/hold/tree/tree.js +1 -0
  94. package/dist/import/commands.js +3 -4
  95. package/dist/import/output.js +1 -4
  96. package/dist/local-node/client.d.ts +8 -4
  97. package/dist/local-node/client.js +20 -9
  98. package/dist/local-node/index.d.ts +1 -1
  99. package/dist/local-node/index.js +1 -1
  100. package/dist/login/commands.js +2 -1
  101. package/dist/mcp/calls.d.ts +1 -0
  102. package/dist/mcp/calls.js +36 -3
  103. package/dist/mcp/commands.d.ts +5 -2
  104. package/dist/mcp/commands.js +30 -4
  105. package/dist/mcp/routing.d.ts +24 -0
  106. package/dist/mcp/routing.js +188 -0
  107. package/dist/mcp/server.d.ts +13 -4
  108. package/dist/mcp/server.js +35 -12
  109. package/dist/presentation/output/format.js +4 -3
  110. package/dist/project-guard/commands.js +11 -2
  111. package/dist/project-workspace/commands.js +16 -6
  112. package/dist/project-workspace/output/human.d.ts +13 -0
  113. package/dist/project-workspace/output/human.js +17 -5
  114. package/dist/project-workspace/output/index.d.ts +1 -1
  115. package/dist/project-workspace/output/index.js +1 -1
  116. package/dist/project-workspace/output/metadata.js +1 -1
  117. package/dist/project-workspace/tree/tree.js +27 -12
  118. package/dist/reference/commands.js +4 -2
  119. package/dist/reference/index.d.ts +1 -1
  120. package/dist/reference/index.js +1 -1
  121. package/dist/reference/resolve.d.ts +2 -0
  122. package/dist/reference/resolve.js +20 -17
  123. package/dist/remote-node/client.d.ts +89 -9
  124. package/dist/remote-node/client.js +6 -1
  125. package/dist/remote-node/commands.d.ts +9 -0
  126. package/dist/remote-node/commands.js +96 -18
  127. package/dist/remote-node/connector.d.ts +12 -4
  128. package/dist/remote-node/connector.js +46 -25
  129. package/dist/remote-node/index.d.ts +2 -2
  130. package/dist/remote-node/index.js +2 -2
  131. package/dist/remote-node/reachability.d.ts +43 -1
  132. package/dist/remote-node/reachability.js +13 -3
  133. package/dist/remote-node/text.d.ts +2 -1
  134. package/dist/remote-node/text.js +74 -27
  135. package/dist/remote-node/tree/tree.js +21 -1
  136. package/dist/routine/client.d.ts +398 -0
  137. package/dist/routine/client.js +28 -0
  138. package/dist/routine/commands.d.ts +9 -0
  139. package/dist/routine/commands.js +109 -0
  140. package/dist/routine/index.d.ts +3 -0
  141. package/dist/routine/index.js +3 -0
  142. package/dist/routine/input.d.ts +28 -0
  143. package/dist/routine/input.js +44 -0
  144. package/dist/routine/output/format.d.ts +23 -0
  145. package/dist/routine/output/format.js +83 -0
  146. package/dist/routine/output/index.d.ts +2 -0
  147. package/dist/routine/output/index.js +2 -0
  148. package/dist/routine/tree/index.d.ts +2 -0
  149. package/dist/routine/tree/index.js +2 -0
  150. package/dist/routine/tree/tree.d.ts +3 -0
  151. package/dist/routine/tree/tree.js +70 -0
  152. package/dist/session/agent-permission.d.ts +2 -2
  153. package/dist/session/approval/commands.js +24 -6
  154. package/dist/session/approval/output/format.d.ts +11 -0
  155. package/dist/session/approval/output/format.js +8 -0
  156. package/dist/session/approval/output/index.d.ts +1 -1
  157. package/dist/session/approval/output/index.js +1 -1
  158. package/dist/session/attach-client.d.ts +1 -1
  159. package/dist/session/attach-client.js +12 -3
  160. package/dist/session/attach-render.js +15 -7
  161. package/dist/session/attach.js +17 -3
  162. package/dist/session/client.d.ts +4 -2
  163. package/dist/session/client.js +4 -15
  164. package/dist/session/commands.js +76 -9
  165. package/dist/session/create-tasks.js +29 -11
  166. package/dist/session/index.d.ts +1 -1
  167. package/dist/session/index.js +1 -0
  168. package/dist/session/interaction/output/format.js +2 -1
  169. package/dist/session/output/diff.js +3 -10
  170. package/dist/session/output/failure.js +3 -10
  171. package/dist/session/output/human.js +21 -10
  172. package/dist/session/output/index.d.ts +1 -1
  173. package/dist/session/output/index.js +1 -1
  174. package/dist/session/output/tasks.d.ts +16 -1
  175. package/dist/session/output/tasks.js +41 -27
  176. package/dist/session/tree/tree.js +56 -8
  177. package/dist/session/turn/client.d.ts +4 -1
  178. package/dist/session/turn/client.js +15 -2
  179. package/dist/session/turn/commands.d.ts +2 -0
  180. package/dist/session/turn/commands.js +38 -5
  181. package/dist/session/turn/index.d.ts +3 -3
  182. package/dist/session/turn/index.js +1 -1
  183. package/dist/session/turn/output.d.ts +7 -2
  184. package/dist/session/turn/output.js +36 -13
  185. package/dist/status/client.d.ts +7 -2
  186. package/dist/status/output/compact.d.ts +1 -0
  187. package/dist/status/output/compact.js +3 -0
  188. package/dist/status/output/human.d.ts +1 -1
  189. package/dist/status/output/human.js +71 -14
  190. package/dist/team-workspace/ceremony.d.ts +19 -0
  191. package/dist/team-workspace/ceremony.js +141 -0
  192. package/dist/team-workspace/client.d.ts +58 -0
  193. package/dist/team-workspace/client.js +6 -0
  194. package/dist/team-workspace/commands.d.ts +3 -0
  195. package/dist/team-workspace/commands.js +85 -0
  196. package/dist/team-workspace/confirmation.d.ts +4 -0
  197. package/dist/team-workspace/confirmation.js +8 -0
  198. package/dist/team-workspace/dependencies.d.ts +8 -0
  199. package/dist/team-workspace/dependencies.js +2 -0
  200. package/dist/team-workspace/index.d.ts +6 -0
  201. package/dist/team-workspace/index.js +5 -0
  202. package/dist/team-workspace/launcher.d.ts +17 -0
  203. package/dist/team-workspace/launcher.js +30 -0
  204. package/dist/team-workspace/output.d.ts +15 -0
  205. package/dist/team-workspace/output.js +28 -0
  206. package/dist/team-workspace/terminal.d.ts +9 -0
  207. package/dist/team-workspace/terminal.js +46 -0
  208. package/dist/terminal/client.d.ts +4 -0
  209. package/dist/terminal/client.js +3 -0
  210. package/dist/terminal/commands.js +37 -25
  211. package/dist/terminal/output/compact-list.d.ts +1 -0
  212. package/dist/terminal/output/compact-list.js +1 -0
  213. package/dist/terminal/output/human.d.ts +2 -19
  214. package/dist/terminal/output/human.js +6 -6
  215. package/dist/terminal/tree/tree.js +15 -15
  216. package/package.json +8 -6
@@ -18,12 +18,13 @@ export const SESSION_TREE = {
18
18
  ],
19
19
  leaves: [
20
20
  [
21
- "session create (--workspace <workspace-id> | --project <project-id>) [--command-id <id>] [--role <worker|orchestrator>] [--connection <connection-id> [--executor <codex-cli|claude-code>] [--model <id>] | --executor <codex-cli|claude-code> | --agent-definition <key> --agent-definition-version <version> --agent-definition-digest <sha256>] [--base <branch-tag-or-commit>] [--title <text>] [--message <text> | --prompt-stdin | --from-file <path>]",
21
+ "session create (--workspace <workspace-id> | --project <project-id>) [--command-id <id>] [--role <worker|orchestrator>] [--connection <connection-id> [--executor <codex-cli|claude-code>] [--model <id>] | --executor <codex-cli|claude-code> | --agent <agent-id> | --agent-definition <key> --agent-definition-version <version> --agent-definition-digest <sha256>] [--effort <low|medium|high|xhigh|max|ultra>] [--base <branch-tag-or-commit>] [--title <text>] [--message <text> | --prompt-stdin | --from-file <path>]",
22
22
  0,
23
23
  "session.create",
24
24
  "Create a Session, optionally starting it with a first message.",
25
25
  {
26
26
  example: "maia --json session create --executor codex-cli --message 'Fix the build' --command-id create-1",
27
+ route: ["--project", "--workspace"],
27
28
  run: [session, "runSessionCreate"],
28
29
  },
29
30
  ],
@@ -34,6 +35,7 @@ export const SESSION_TREE = {
34
35
  "List Sessions of a Project, or all of them.",
35
36
  {
36
37
  example: "maia --json session list --all --attention",
38
+ route: "--project",
37
39
  run: [session, "runSessionList"],
38
40
  },
39
41
  ],
@@ -44,6 +46,7 @@ export const SESSION_TREE = {
44
46
  "Show one Session.",
45
47
  {
46
48
  example: "maia --json session show session_1",
49
+ route: "<session-id>",
47
50
  run: [session, "runSessionShow"],
48
51
  },
49
52
  ],
@@ -54,6 +57,7 @@ export const SESSION_TREE = {
54
57
  "Rename a Session at its current revision.",
55
58
  {
56
59
  example: "maia --json session rename session_1 --title 'Fix the build' --expected-revision 2",
60
+ route: "<session-id>",
57
61
  run: [session, "runSessionRename"],
58
62
  },
59
63
  ],
@@ -64,6 +68,7 @@ export const SESSION_TREE = {
64
68
  "Start a Session; --wait returns once it runs.",
65
69
  {
66
70
  example: "maia --json session start session_1 --expected-revision 1 --command-id start-1 --wait",
71
+ route: "<session-id>",
67
72
  run: [session, "runSessionStart"],
68
73
  },
69
74
  ],
@@ -74,6 +79,7 @@ export const SESSION_TREE = {
74
79
  "Stop a Session.",
75
80
  {
76
81
  example: "maia --json session stop session_1 --expected-revision 2 --command-id stop-1",
82
+ route: "<session-id>",
77
83
  run: [session, "runSessionStop"],
78
84
  },
79
85
  ],
@@ -82,7 +88,7 @@ export const SESSION_TREE = {
82
88
  1,
83
89
  "session.resume",
84
90
  "Resume a stopped Session.",
85
- { run: [session, "runSessionResume"] },
91
+ { route: "<session-id>", run: [session, "runSessionResume"] },
86
92
  ],
87
93
  [
88
94
  "session archive <session-id> --expected-revision <revision> [--command-id <id>]",
@@ -91,6 +97,7 @@ export const SESSION_TREE = {
91
97
  "Archive a Session and retire its worktree.",
92
98
  {
93
99
  example: "maia --json session archive session_1 --expected-revision 3 --command-id archive-1",
100
+ route: "<session-id>",
94
101
  run: [session, "runSessionArchive"],
95
102
  },
96
103
  ],
@@ -101,6 +108,7 @@ export const SESSION_TREE = {
101
108
  "Show the changes a coding Session made.",
102
109
  {
103
110
  example: "maia session diff session_1 --stat",
111
+ route: "<session-id>",
104
112
  run: [session, "runSessionDiff"],
105
113
  },
106
114
  ],
@@ -121,6 +129,7 @@ export const SESSION_TREE = {
121
129
  "Follow a Session's live items.",
122
130
  {
123
131
  example: "maia session attach session_1",
132
+ route: "<session-id>",
124
133
  run: [session, "runSessionAttach"],
125
134
  },
126
135
  ],
@@ -129,14 +138,17 @@ export const SESSION_TREE = {
129
138
  0,
130
139
  "session.events.list",
131
140
  "List a Session's events.",
132
- { run: [session, "runSessionEventsList"] },
141
+ { route: "--session", run: [session, "runSessionEventsList"] },
133
142
  ],
134
143
  [
135
144
  "session history read <session-id|claude:<id>|codex:<id>> [--offset <n>] [--limit <1..50>]",
136
145
  1,
137
146
  "session.history.read",
138
147
  "Read a Session's or vendor session's history.",
139
- { run: [discovery, "runHistoryRead"] },
148
+ {
149
+ route: "<session-id|claude:<id>|codex:<id>>",
150
+ run: [discovery, "runHistoryRead"],
151
+ },
140
152
  ],
141
153
  [
142
154
  "session adopt (<claude|codex>:<native-id> --workspace <workspace-id> [--attest-ended] [--command-id <id>] [--dry-run] | --confirm-stdin)",
@@ -181,12 +193,35 @@ export const SESSION_TREE = {
181
193
  "session turn send --session <session-id> --prompt-stdin --expected-revision <revision> [--command-id <id>]",
182
194
  1,
183
195
  "turn.send",
184
- "Send a turn to a Session from standard input.",
196
+ "Send a turn from stdin; it queues behind the running turn.",
185
197
  {
186
198
  example: "printf %s 'Explain the build' | maia --json session turn send --session session_1 --prompt-stdin --expected-revision 2 --command-id send-1",
199
+ route: "--session",
187
200
  run: [turn, "runTurnSend"],
188
201
  },
189
202
  ],
203
+ [
204
+ "session turn queue <session-id>",
205
+ 1,
206
+ "turn.queue.list",
207
+ "List the running turn and the queued turns in dispatch order.",
208
+ {
209
+ example: "maia --json session turn queue session_1",
210
+ route: "<session-id>",
211
+ run: [turn, "runTurnQueue"],
212
+ },
213
+ ],
214
+ [
215
+ "session turn cancel <turn-id> --expected-turn-revision <revision> [--command-id <id>]",
216
+ 1,
217
+ "turn.cancel",
218
+ "Cancel a queued turn at the turn's own revision.",
219
+ {
220
+ example: "maia --json session turn cancel turn_2 --expected-turn-revision 1 --command-id cancel-turn-2",
221
+ route: "<turn-id>",
222
+ run: [turn, "runTurnCancel"],
223
+ },
224
+ ],
190
225
  [
191
226
  "session turn show <turn-id> [--include-content]",
192
227
  1,
@@ -194,6 +229,7 @@ export const SESSION_TREE = {
194
229
  "Show one turn, its usage and, with --include-content, its text.",
195
230
  {
196
231
  example: "maia --json session turn show turn_1 --include-content",
232
+ route: "<turn-id>",
197
233
  run: [turn, "runTurnShow"],
198
234
  },
199
235
  ],
@@ -204,6 +240,7 @@ export const SESSION_TREE = {
204
240
  "Wait for turns to finish; a failed turn exits non-zero.",
205
241
  {
206
242
  example: "maia --json session turn wait turn_1 --timeout 10m",
243
+ route: "<turn-id>",
207
244
  run: [turn, "runTurnWait"],
208
245
  },
209
246
  ],
@@ -214,6 +251,7 @@ export const SESSION_TREE = {
214
251
  "Interrupt a running turn at its Session's revision.",
215
252
  {
216
253
  example: "maia --json session turn interrupt turn_1 --expected-session-revision 4 --command-id stop-turn-1",
254
+ route: "<turn-id>",
217
255
  run: [turn, "runTurnInterrupt"],
218
256
  },
219
257
  ],
@@ -224,6 +262,7 @@ export const SESSION_TREE = {
224
262
  "List what workers wait on a person for.",
225
263
  {
226
264
  example: "maia --json session approval list --all",
265
+ route: "--session",
227
266
  run: [approval, "runApprovalList"],
228
267
  },
229
268
  ],
@@ -232,7 +271,7 @@ export const SESSION_TREE = {
232
271
  1,
233
272
  "approval.show",
234
273
  "Show one approval request.",
235
- { run: [approval, "runApprovalShow"] },
274
+ { route: "<approval-id>", run: [approval, "runApprovalShow"] },
236
275
  ],
237
276
  [
238
277
  "session approval approve <approval-id> [--for-session] [--command-id <id>]",
@@ -242,6 +281,7 @@ export const SESSION_TREE = {
242
281
  {
243
282
  example: "maia session approval approve approval_1 --command-id approve-1",
244
283
  kind: "discriminant",
284
+ route: "<approval-id>",
245
285
  run: [approval, "runApprovalApprove"],
246
286
  },
247
287
  ],
@@ -250,14 +290,22 @@ export const SESSION_TREE = {
250
290
  1,
251
291
  "approval.respond",
252
292
  "Deny a worker's request.",
253
- { kind: "discriminant", run: [approval, "runApprovalDeny"] },
293
+ {
294
+ kind: "discriminant",
295
+ route: "<approval-id>",
296
+ run: [approval, "runApprovalDeny"],
297
+ },
254
298
  ],
255
299
  [
256
300
  "session approval answer <approval-id> (--text <answer> | --option <option-id>) [--command-id <id>]",
257
301
  1,
258
302
  "approval.respond",
259
303
  "Answer a worker's question.",
260
- { kind: "discriminant", run: [approval, "runApprovalAnswer"] },
304
+ {
305
+ kind: "discriminant",
306
+ route: "<approval-id>",
307
+ run: [approval, "runApprovalAnswer"],
308
+ },
261
309
  ],
262
310
  [
263
311
  "session interaction create --input-stdin",
@@ -1,10 +1,11 @@
1
- import type { TurnInterruptResult, TurnSendResult, TurnShowResult, TurnWaitParameters, TurnWaitResult } from "@maiaos/sdk";
1
+ import type { TurnCancelResult, TurnInterruptResult, TurnQueueListResult, TurnSendResult, TurnShowResult, TurnWaitParameters, TurnWaitResult } from "@maiaos/sdk";
2
2
  import { type CliNodeEffect, type CliNodeOperations } from "../../local-node/index.js";
3
3
  export type InterruptTurnInput = {
4
4
  readonly commandId?: string;
5
5
  readonly expectedRevision: string;
6
6
  readonly turnId: string;
7
7
  };
8
+ export type CancelTurnInput = InterruptTurnInput;
8
9
  export type SendTurnInput = {
9
10
  readonly commandId?: string;
10
11
  readonly expectedRevision: string;
@@ -17,7 +18,9 @@ export type WaitTurnsInput = {
17
18
  readonly turnIds: readonly string[];
18
19
  };
19
20
  export declare const makeTurnClient: (node: CliNodeOperations) => {
21
+ cancelTurn: (input: CancelTurnInput) => CliNodeEffect<TurnCancelResult>;
20
22
  interruptTurn: (input: InterruptTurnInput) => CliNodeEffect<TurnInterruptResult>;
23
+ listTurnQueue: (sessionId: string) => CliNodeEffect<TurnQueueListResult>;
21
24
  sendTurn: (input: SendTurnInput) => CliNodeEffect<TurnSendResult>;
22
25
  showTurn: (turnId: string) => CliNodeEffect<TurnShowResult>;
23
26
  waitTurns: (input: WaitTurnsInput) => CliNodeEffect<TurnWaitResult>;
@@ -1,4 +1,4 @@
1
- import { MAX_TURN_WAIT_MILLISECONDS, turnInterruptParametersSchema, turnSendParametersSchema, turnShowParametersSchema, turnWaitParametersSchema, } from "@maiaos/sdk";
1
+ import { MAX_TURN_WAIT_MILLISECONDS, turnCancelParametersSchema, turnInterruptParametersSchema, turnQueueListParametersSchema, turnSendParametersSchema, turnShowParametersSchema, turnWaitParametersSchema, } from "@maiaos/sdk";
2
2
  import { Effect } from "effect";
3
3
  import { commandIdentifier, } from "../../local-node/index.js";
4
4
  export const makeTurnClient = (node) => {
@@ -11,6 +11,12 @@ export const makeTurnClient = (node) => {
11
11
  }, turnInterruptParametersSchema, (client, parameters, options) => client.interruptTurn(parameters, options), { commandId });
12
12
  });
13
13
  };
14
+ const cancelTurn = (input) => Effect.flatMap(commandIdentifier(input.commandId), (commandId) => node.runValidatedNodeOperation({
15
+ commandId,
16
+ expectedRevision: input.expectedRevision,
17
+ turnId: input.turnId,
18
+ }, turnCancelParametersSchema, (client, parameters, options) => client.cancelTurn(parameters, options), { commandId }));
19
+ const listTurnQueue = (sessionId) => node.runValidatedNodeOperation({ sessionId }, turnQueueListParametersSchema, (client, parameters, options) => client.listTurnQueue(parameters, options));
14
20
  const sendTurn = (input) => {
15
21
  return Effect.flatMap(commandIdentifier(input.commandId), (commandId) => {
16
22
  return node.runValidatedNodeOperation({
@@ -35,6 +41,13 @@ export const makeTurnClient = (node) => {
35
41
  return result;
36
42
  return yield* waitWithin({ ...input, timeoutMilliseconds: remaining });
37
43
  });
38
- return { interruptTurn, sendTurn, showTurn, waitTurns: waitWithin };
44
+ return {
45
+ cancelTurn,
46
+ interruptTurn,
47
+ listTurnQueue,
48
+ sendTurn,
49
+ showTurn,
50
+ waitTurns: waitWithin,
51
+ };
39
52
  };
40
53
  //# sourceMappingURL=client.js.map
@@ -1,6 +1,8 @@
1
1
  import { type CommandContext, type CommandEffect } from "../../command-line/index.js";
2
2
  export declare const runTurnSend: (tokens: readonly string[], context: CommandContext) => CommandEffect;
3
3
  export declare const runTurnInterrupt: (tokens: readonly string[], context: CommandContext) => CommandEffect;
4
+ export declare const runTurnCancel: (tokens: readonly string[], context: CommandContext) => CommandEffect;
5
+ export declare const runTurnQueue: (tokens: readonly string[], context: CommandContext) => CommandEffect;
4
6
  export declare const runTurnShow: (tokens: readonly string[], context: CommandContext) => CommandEffect;
5
7
  export declare const runTurnWait: (tokens: readonly string[], context: CommandContext) => CommandEffect;
6
8
  //# sourceMappingURL=commands.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { MAX_TURN_INPUT_BYTES, MAX_TURN_WAIT_IDS, } from "@maiaos/sdk";
2
2
  import * as Effect from "effect/Effect";
3
3
  import { CliArgumentError, parseOptions, readDuration, readExpectedRevision, readRevisionOption, requirePositionals, writeNodeResult, } from "../../command-line/index.js";
4
- import { formatTurnMutation, formatTurnShow, formatTurnWait, turnWaitExitCode, } from "./output.js";
4
+ import { formatTurnMutation, formatTurnQueue, formatTurnShow, formatTurnWait, turnWaitExitCode, } from "./output.js";
5
5
  const utf8 = new TextEncoder();
6
6
  const summarizeTurnMutation = (result) => ({
7
7
  delivery: result.delivery,
@@ -47,8 +47,8 @@ export const runTurnSend = (tokens, context) => Effect.gen(function* () {
47
47
  toText: formatTurnMutation,
48
48
  });
49
49
  });
50
- const parseTurnInterruptArguments = (tokens) => {
51
- const parsed = parseOptions(tokens, new Set(["--command-id", "--expected-session-revision"]));
50
+ const parseTurnMutationArguments = (tokens, revisionOption) => {
51
+ const parsed = parseOptions(tokens, new Set(["--command-id", revisionOption]));
52
52
  requirePositionals(parsed.positionals, 1);
53
53
  const turnId = parsed.positionals[0];
54
54
  if (turnId === undefined) {
@@ -56,13 +56,13 @@ const parseTurnInterruptArguments = (tokens) => {
56
56
  }
57
57
  const commandId = parsed.options.get("--command-id");
58
58
  return {
59
- expectedRevision: readRevisionOption(parsed.options.get("--expected-session-revision"), "--expected-session-revision"),
59
+ expectedRevision: readRevisionOption(parsed.options.get(revisionOption), revisionOption),
60
60
  turnId,
61
61
  ...(commandId === undefined ? {} : { commandId }),
62
62
  };
63
63
  };
64
64
  export const runTurnInterrupt = (tokens, context) => Effect.gen(function* () {
65
- const input = parseTurnInterruptArguments(tokens);
65
+ const input = parseTurnMutationArguments(tokens, "--expected-session-revision");
66
66
  const result = yield* context.dependencies.interruptTurn(input);
67
67
  return writeNodeResult(result, context, {
68
68
  toResult: (value) => ({
@@ -72,6 +72,39 @@ export const runTurnInterrupt = (tokens, context) => Effect.gen(function* () {
72
72
  toText: formatTurnMutation,
73
73
  });
74
74
  });
75
+ export const runTurnCancel = (tokens, context) => Effect.gen(function* () {
76
+ const input = parseTurnMutationArguments(tokens, "--expected-turn-revision");
77
+ const { cancelTurn } = context.dependencies;
78
+ if (cancelTurn === undefined)
79
+ throw new CliArgumentError("Turn cancel is unavailable.");
80
+ const result = yield* cancelTurn(input);
81
+ return writeNodeResult(result, context, {
82
+ toResult: (value) => ({
83
+ command: "turn.cancel",
84
+ result: summarizeTurnMutation(value),
85
+ }),
86
+ toText: formatTurnMutation,
87
+ });
88
+ });
89
+ export const runTurnQueue = (tokens, context) => Effect.gen(function* () {
90
+ const parsed = parseOptions(tokens, new Set());
91
+ requirePositionals(parsed.positionals, 1);
92
+ const sessionId = parsed.positionals[0];
93
+ if (sessionId === undefined) {
94
+ throw new CliArgumentError("The Session identifier is missing.");
95
+ }
96
+ const { listTurnQueue } = context.dependencies;
97
+ if (listTurnQueue === undefined)
98
+ throw new CliArgumentError("Turn queue is unavailable.");
99
+ const result = yield* listTurnQueue(sessionId);
100
+ return writeNodeResult(result, context, {
101
+ toResult: (value) => ({
102
+ command: "turn.queue.list",
103
+ result: value,
104
+ }),
105
+ toText: formatTurnQueue,
106
+ });
107
+ });
75
108
  const parseTurnShowArguments = (tokens) => {
76
109
  const parsed = parseOptions(tokens, new Set(), new Set(["--include-content"]));
77
110
  requirePositionals(parsed.positionals, 1);
@@ -1,4 +1,4 @@
1
- export { type InterruptTurnInput, makeTurnClient, type SendTurnInput, type WaitTurnsInput, } from "./client.js";
2
- export { runTurnInterrupt, runTurnSend, runTurnShow, runTurnWait, } from "./commands.js";
3
- export { type CliTurnMutation, type CliTurnShow, type CliTurnWait, } from "./output.js";
1
+ export { type CancelTurnInput, type InterruptTurnInput, makeTurnClient, type SendTurnInput, type WaitTurnsInput, } from "./client.js";
2
+ export { runTurnCancel, runTurnInterrupt, runTurnQueue, runTurnSend, runTurnShow, runTurnWait, } from "./commands.js";
3
+ export { type CliTurnMutation, type CliTurnQueue, type CliTurnShow, type CliTurnWait, } from "./output.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export { makeTurnClient, } from "./client.js";
2
- export { runTurnInterrupt, runTurnSend, runTurnShow, runTurnWait, } from "./commands.js";
2
+ export { runTurnCancel, runTurnInterrupt, runTurnQueue, runTurnSend, runTurnShow, runTurnWait, } from "./commands.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import type { FailureDetail, TurnInterruptResult, TurnShowResult, TurnTokenUsage, TurnWaitResult } from "@maiaos/sdk";
1
+ import type { FailureDetail, TurnInterruptResult, TurnQueueListResult, TurnShowResult, TurnTokenUsage, TurnWaitResult } from "@maiaos/sdk";
2
2
  export type CliTurnMutation = {
3
- readonly command: "turn.interrupt" | "turn.send";
3
+ readonly command: "turn.cancel" | "turn.interrupt" | "turn.send";
4
4
  readonly result: {
5
5
  readonly delivery: TurnInterruptResult["delivery"];
6
6
  readonly receipt: TurnInterruptResult["receipt"];
@@ -35,7 +35,12 @@ export type CliTurnWait = {
35
35
  readonly command: "turn.wait";
36
36
  readonly result: TurnWaitResult;
37
37
  };
38
+ export type CliTurnQueue = {
39
+ readonly command: "turn.queue.list";
40
+ readonly result: TurnQueueListResult;
41
+ };
38
42
  export declare const formatTurnMutation: ({ result }: CliTurnMutation) => string;
43
+ export declare const formatTurnQueue: ({ result }: CliTurnQueue) => string;
39
44
  export declare const formatTurnShow: ({ result }: CliTurnShow) => string;
40
45
  export declare const formatTurnWait: ({ result }: CliTurnWait) => string;
41
46
  export declare const turnWaitExitCode: (result: TurnWaitResult) => number;
@@ -1,17 +1,40 @@
1
+ import { block, cell, fields, formatRows, tab, } from "../../command-line/index.js";
1
2
  import { formatFailure } from "../output/index.js";
2
- const tab = (values) => values.join("\t");
3
- const printable = (text) => Array.from(text, (character) => {
4
- const point = character.codePointAt(0) ?? 0;
5
- return (point < 32 && character !== "\n" && character !== "\t") ||
6
- (point >= 127 && point <= 159)
7
- ? "�"
8
- : character;
9
- }).join("");
10
- export const formatTurnMutation = ({ result }) => `${result.turnId}\t${result.state}\t${result.revision}\n`;
3
+ export const formatTurnMutation = ({ result }) => fields([
4
+ ["turn", result.turnId],
5
+ ["state", result.state],
6
+ ["revision", result.revision],
7
+ ]);
8
+ const turnFields = (turn, reason) => fields([
9
+ ["turn", turn.id],
10
+ ["state", turn.state],
11
+ ["revision", turn.revision],
12
+ ["session", turn.sessionId],
13
+ ["reason", reason],
14
+ ]);
15
+ export const formatTurnQueue = ({ result }) => {
16
+ const { activeTurn, queue } = result;
17
+ const rows = [
18
+ ...(activeTurn === undefined
19
+ ? []
20
+ : [["-", activeTurn.state, activeTurn.id, activeTurn.revision, ""]]),
21
+ ...queue.map((entry) => [
22
+ String(entry.position),
23
+ "queued",
24
+ entry.id,
25
+ entry.revision,
26
+ cell(entry.inputPreview.replaceAll(/\s+/gu, " ")),
27
+ ]),
28
+ ];
29
+ return formatRows(rows, tab, {
30
+ empty: "no running or queued turn",
31
+ headers: ["POSITION", "STATE", "TURN", "REVISION", "INPUT"],
32
+ });
33
+ };
11
34
  const formatUsage = (usage) => usage === undefined
12
35
  ? ""
13
36
  : `tokens: input ${String(usage.inputTokens)} (cached ${String(usage.cachedInputTokens)}), output ${String(usage.outputTokens)} (reasoning ${String(usage.reasoningOutputTokens)}), total ${String(usage.totalTokens)}${usage.modelCallCount === undefined ? "" : `, model calls ${String(usage.modelCallCount)}`}\n`;
14
- const formatContent = (turn) => `input:\n${printable(turn.input.text)}\n${turn.state === "completed" ? `response:\n${printable(turn.responseText)}\n` : ""}`;
37
+ const formatContent = (turn) => `input:\n${block(turn.input.text)}\n${turn.state === "completed" ? `response:\n${block(turn.responseText)}\n` : ""}`;
15
38
  const shownContent = (result) => result.contentIncluded ? formatContent(result.turn) : "";
16
39
  export const formatTurnShow = ({ result }) => {
17
40
  const { turn } = result;
@@ -20,11 +43,11 @@ export const formatTurnShow = ({ result }) => {
20
43
  ? formatFailure(turn.failure, turn.state)
21
44
  : "";
22
45
  const usage = "tokenUsage" in turn ? formatUsage(turn.tokenUsage) : "";
23
- return `${tab([turn.id, turn.state, turn.revision, turn.sessionId])}\n${failure}${usage}${shownContent(result)}`;
46
+ return `${turnFields(turn)}${failure}${usage}${shownContent(result)}`;
24
47
  };
25
48
  export const formatTurnWait = ({ result }) => result.turns
26
- .map((turn) => `${tab([turn.id, turn.state, turn.revision, turn.sessionId, ...(turn.failureReason === undefined ? [] : [turn.failureReason])])}\n${turn.state === "failed" || turn.state === "outcome-unknown" ? formatFailure(turn.failure, turn.state) : ""}`)
27
- .join("");
49
+ .map((turn) => `${turnFields(turn, turn.failureReason)}${turn.state === "failed" || turn.state === "outcome-unknown" ? formatFailure(turn.failure, turn.state) : ""}`)
50
+ .join("\n");
28
51
  const EXIT_FAILED = 70;
29
52
  const EXIT_DEADLINE = 74;
30
53
  const EXIT_OUTCOME_UNKNOWN = 76;
@@ -8,6 +8,11 @@ export declare const makeStatusClient: (node: CliNodeOperations) => {
8
8
  readonly pid: number;
9
9
  readonly profile: string;
10
10
  readonly startedAt: string;
11
+ readonly executorHost?: {
12
+ readonly bubblewrap: "found" | "missing";
13
+ readonly socat: "found" | "missing";
14
+ readonly userNamespaces: "allowed" | "no_nesting" | "restricted";
15
+ } | undefined;
11
16
  readonly method: "node.status";
12
17
  readonly processResources: {
13
18
  readonly activeTrees: number;
@@ -42,7 +47,7 @@ export declare const makeStatusClient: (node: CliNodeOperations) => {
42
47
  };
43
48
  readonly cleanupUnknownTrees: number;
44
49
  readonly fencedTrees: number;
45
- readonly nextStep: "close_idle_terminal" | "inspect_cleanup_unknown" | "inspect_observed_pressure" | "none" | "verify_native_host";
50
+ readonly nextStep: "close_idle_terminal" | "inspect_cleanup_unknown" | "inspect_observed_pressure" | "none" | "run_node_in_delegated_cgroup" | "verify_native_host";
46
51
  readonly observations: {
47
52
  readonly cpuTimeMilliseconds: {
48
53
  readonly availableTrees: number;
@@ -102,7 +107,7 @@ export declare const makeStatusClient: (node: CliNodeOperations) => {
102
107
  };
103
108
  readonly treeCount: number;
104
109
  };
105
- readonly pressure: "admission_degraded" | "cleanup_unknown" | "healthy" | "observed_pressure" | "warning";
110
+ readonly pressure: "admission_degraded" | "cgroup_delegation_unavailable" | "cleanup_unknown" | "healthy" | "observed_pressure" | "warning";
106
111
  readonly supervision: {
107
112
  readonly trackedTrees: number;
108
113
  readonly watcherFibers: number;
@@ -2,6 +2,7 @@ import type { LocalNodeStatusResult } from "@maiaos/sdk";
2
2
  export declare const sumObservationWarningTrees: (observations: LocalNodeStatusResult["processResources"]["observations"]) => number;
3
3
  export type CliCompactStatusResult = {
4
4
  readonly command: "status";
5
+ readonly executorHost?: LocalNodeStatusResult["executorHost"];
5
6
  readonly instanceId: LocalNodeStatusResult["instanceId"];
6
7
  readonly lifecycle: LocalNodeStatusResult["lifecycle"];
7
8
  readonly pid: LocalNodeStatusResult["pid"];
@@ -26,6 +26,9 @@ const projectStatusCapability = (capability) => ({
26
26
  });
27
27
  export const projectStatusResult = (node) => ({
28
28
  command: "status",
29
+ ...(node.executorHost === undefined
30
+ ? {}
31
+ : { executorHost: node.executorHost }),
29
32
  instanceId: node.instanceId,
30
33
  lifecycle: node.lifecycle,
31
34
  pid: node.pid,
@@ -3,5 +3,5 @@ export type CliStatusResult = {
3
3
  readonly command: "status";
4
4
  readonly node: LocalNodeStatusResult;
5
5
  };
6
- export declare const formatHumanStatus: (result: CliStatusResult) => string;
6
+ export declare const formatHumanStatus: ({ node }: CliStatusResult) => string;
7
7
  //# sourceMappingURL=human.d.ts.map
@@ -8,23 +8,80 @@ const processResourceNextStep = (nextStep) => {
8
8
  return "inspect per-tree pressure warnings; termination stays disabled";
9
9
  case "none":
10
10
  return "none";
11
+ case "run_node_in_delegated_cgroup":
12
+ return "restart the Node in a cgroup delegated to its user: a systemd user unit with Delegate=yes and DelegateSubgroup=node, or systemd-run --user -p Delegate=yes -p DelegateSubgroup=node";
11
13
  case "verify_native_host":
12
14
  return "verify the native process host";
13
15
  }
14
16
  };
15
- const formatObservedMetric = (label, metric) => `${label} ${metric.state}${metric.maximumValue === undefined ? "" : ` max ${String(metric.maximumValue)}`}; budget ${metric.budget}; ${String(metric.warningTrees)} warning`;
16
- export const formatHumanStatus = (result) => {
17
- const { node } = result;
18
- const resources = node.processResources;
19
- const observed = resources.observations;
20
- return `Maia node ${node.lifecycle}\n profile: ${node.profile}\n pid: ${String(node.pid)}\n instance: ${node.instanceId}\n storage: ${node.storage.integrity} (${node.storage.journalMode})\n process resources: ${resources.pressure} (${resources.capability.mode}; hard limits ${resources.capability.hardLimitEnforcement}; release qualified ${String(resources.capability.releaseQualified)})\n admission: ${resources.admission.state}; ${String(resources.admission.usedTrees)}/${String(resources.admission.capacity)} used; ${String(resources.admission.availableTrees)} available; ${String(resources.admission.queuedSpawns)} queued\n ownership: ${String(resources.activeTrees)} active; ${String(resources.fencedTrees)} fenced; ${String(resources.cleanupUnknownTrees)} cleanup unknown; ${String(resources.supervision.watcherFibers)} watcher fibers\n latest target observations: ${[
21
- formatObservedMetric("cpu-ms", observed.cpuTimeMilliseconds),
22
- formatObservedMetric("rss-bytes", observed.rssBytes),
23
- formatObservedMetric("peak-rss-bytes", observed.observedPeakRssBytes),
24
- formatObservedMetric("processes", observed.processCount),
25
- formatObservedMetric("fds", observed.fileDescriptorCount),
26
- formatObservedMetric("io-read-bytes", observed.ioReadBytes),
27
- formatObservedMetric("io-write-bytes", observed.ioWriteBytes),
28
- ].join("; ")}\n observed-pressure termination: ${resources.capability.observedPressureTermination}; samples are advisory, not hard enforcement or automatic kill\n inspect: --json compact; SDK lossless\n next step: ${processResourceNextStep(resources.nextStep)}\n get started: maia doctor checks accounts and integrations; maia setup uses the installed CLIs\n`;
17
+ const OBSERVED_METRICS = [
18
+ ["cpu-ms", "cpuTimeMilliseconds"],
19
+ ["rss-bytes", "rssBytes"],
20
+ ["peak-rss-bytes", "observedPeakRssBytes"],
21
+ ["processes", "processCount"],
22
+ ["fds", "fileDescriptorCount"],
23
+ ["io-read-bytes", "ioReadBytes"],
24
+ ["io-write-bytes", "ioWriteBytes"],
25
+ ];
26
+ const formatMetric = (label, metric, trees) => {
27
+ const parts = [
28
+ metric.maximumValue === undefined
29
+ ? ""
30
+ : `max ${String(metric.maximumValue)}`,
31
+ metric.unavailableTrees === 0
32
+ ? ""
33
+ : `${String(metric.unavailableTrees)} of ${String(trees)} unmeasured`,
34
+ metric.warningTrees === 0 ? "" : `${String(metric.warningTrees)} warning`,
35
+ ].filter(Boolean);
36
+ return metric.budget === "declared_per_tree_limit" && parts.length > 0
37
+ ? [`${label} ${parts.join(", ")}`]
38
+ : [];
39
+ };
40
+ const processResourceLines = ({ admission, capability, cleanupUnknownTrees, fencedTrees, nextStep, observations, pressure, }) => {
41
+ const measured = OBSERVED_METRICS.flatMap(([label, key]) => formatMetric(label, observations[key], observations.treeCount));
42
+ return [
43
+ `process resources: ${pressure} (${capability.mode}; hard limits ${capability.hardLimitEnforcement})`,
44
+ `capacity: ${String(admission.usedTrees)}/${String(admission.capacity)} process trees in use${admission.state === "available" ? "" : `; ${admission.state}`}`,
45
+ ...(cleanupUnknownTrees === 0
46
+ ? []
47
+ : [
48
+ `ownership: ${String(fencedTrees)} fenced; ${String(cleanupUnknownTrees)} cleanup unknown`,
49
+ ]),
50
+ `observations: ${measured.length === 0 ? "none yet" : measured.join("; ")}`,
51
+ ...(nextStep === "none"
52
+ ? []
53
+ : [`next step: ${processResourceNextStep(nextStep)}`]),
54
+ ];
55
+ };
56
+ const BOTH = "refuses Codex and coding Claude Code Sessions";
57
+ const CODING_CLAUDE = "refuses coding Claude Code Sessions";
58
+ const executorHostLines = (host) => {
59
+ if (host === undefined)
60
+ return [];
61
+ const userNamespaces = {
62
+ allowed: "user namespaces: allowed",
63
+ ["no_nesting"]: `user namespaces: no_nesting (${CODING_CLAUDE}); next step: the owner sets kernel.apparmor_restrict_unprivileged_userns=0 and stops enforcing the unpriv_bwrap AppArmor profile`,
64
+ restricted: `user namespaces: restricted (${BOTH}); next step: the owner sets kernel.apparmor_restrict_unprivileged_userns=0`,
65
+ };
66
+ return [
67
+ host.bubblewrap === "found"
68
+ ? "bubblewrap: found"
69
+ : `bubblewrap: missing (${BOTH}); next step: the owner installs the bubblewrap package`,
70
+ host.socat === "found"
71
+ ? "socat: found"
72
+ : `socat: missing (${CODING_CLAUDE}); next step: the owner installs the socat package`,
73
+ userNamespaces[host.userNamespaces],
74
+ ];
75
+ };
76
+ export const formatHumanStatus = ({ node }) => {
77
+ const lines = [
78
+ `profile: ${node.profile}`,
79
+ `pid: ${String(node.pid)}`,
80
+ `instance: ${node.instanceId}`,
81
+ `storage: ${node.storage.integrity} (${node.storage.journalMode})`,
82
+ ...processResourceLines(node.processResources),
83
+ ...executorHostLines(node.executorHost),
84
+ ];
85
+ return `Maia node ${node.lifecycle}\n${lines.map((line) => ` ${line}\n`).join("")}`;
29
86
  };
30
87
  //# sourceMappingURL=human.js.map
@@ -0,0 +1,19 @@
1
+ import { type ProtocolError, type TeamWorkspaceBootstrapPreviewParameters } from "@maiaos/sdk";
2
+ import * as Effect from "effect/Effect";
3
+ import * as Ref from "effect/Ref";
4
+ import { CliArgumentError, type CliDependencies, type CommandContext } from "../command-line/index.js";
5
+ import type { CliMutationRecovery } from "../local-node/index.js";
6
+ import type { BootstrapNode } from "./launcher.js";
7
+ export type BootstrapDependencies = Required<Pick<CliDependencies, "applyBootstrap" | "confirmOnTerminal" | "getReceipt" | "previewBootstrap" | "startBootstrapNode">>;
8
+ export type Ceremony = {
9
+ readonly context: CommandContext;
10
+ readonly dependencies: BootstrapDependencies;
11
+ readonly node: BootstrapNode;
12
+ readonly parameters: TeamWorkspaceBootstrapPreviewParameters;
13
+ readonly profile: string;
14
+ readonly sent: Ref.Ref<boolean>;
15
+ };
16
+ export declare const nodeUnavailable: (message: string) => ProtocolError;
17
+ export declare const recoveryFor: ({ parameters, profile, }: Pick<Ceremony, "parameters" | "profile">) => CliMutationRecovery;
18
+ export declare const runCeremony: (ceremony: Ceremony) => Effect.Effect<number, CliArgumentError, import("effect/Crypto").Crypto>;
19
+ //# sourceMappingURL=ceremony.d.ts.map