@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.
Files changed (240) 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/bootstrap/run.js +5 -2
  28. package/dist/cli/cli.d.ts +2 -1
  29. package/dist/cli/cli.js +81 -16
  30. package/dist/command-line/context.d.ts +14 -4
  31. package/dist/command-line/context.js +1 -1
  32. package/dist/command-line/index.d.ts +6 -6
  33. package/dist/command-line/index.js +6 -5
  34. package/dist/command-line/input/arguments.d.ts +7 -0
  35. package/dist/command-line/input/arguments.js +22 -10
  36. package/dist/command-line/input/index.d.ts +2 -2
  37. package/dist/command-line/input/index.js +2 -2
  38. package/dist/command-line/input/stdin.d.ts +1 -0
  39. package/dist/command-line/input/stdin.js +1 -0
  40. package/dist/command-line/json.d.ts +1 -0
  41. package/dist/command-line/json.js +23 -0
  42. package/dist/command-line/output.d.ts +8 -1
  43. package/dist/command-line/output.js +33 -14
  44. package/dist/command-line/rows.d.ts +2 -0
  45. package/dist/command-line/rows.js +10 -1
  46. package/dist/command-line/two-phase.d.ts +5 -0
  47. package/dist/command-line/two-phase.js +33 -8
  48. package/dist/command-tree/help.d.ts +1 -1
  49. package/dist/command-tree/help.js +1 -0
  50. package/dist/command-tree/index.d.ts +2 -2
  51. package/dist/command-tree/index.js +1 -1
  52. package/dist/command-tree/local.js +12 -0
  53. package/dist/command-tree/placeholder.d.ts +1 -0
  54. package/dist/command-tree/placeholder.js +1 -0
  55. package/dist/command-tree/row.d.ts +2 -0
  56. package/dist/command-tree/tree.d.ts +3 -2
  57. package/dist/command-tree/tree.js +18 -2
  58. package/dist/connection/access/client.d.ts +13 -0
  59. package/dist/connection/access/client.js +19 -0
  60. package/dist/connection/access/commands.d.ts +6 -0
  61. package/dist/connection/access/commands.js +60 -0
  62. package/dist/connection/access/format.d.ts +8 -0
  63. package/dist/connection/access/format.js +61 -0
  64. package/dist/connection/access/index.d.ts +3 -0
  65. package/dist/connection/access/index.js +3 -0
  66. package/dist/connection/access/input.d.ts +53 -0
  67. package/dist/connection/access/input.js +83 -0
  68. package/dist/connection/client.d.ts +99 -1
  69. package/dist/connection/client.js +9 -1
  70. package/dist/connection/index.d.ts +2 -1
  71. package/dist/connection/index.js +2 -1
  72. package/dist/connection/system.d.ts +1 -0
  73. package/dist/connection/system.js +109 -5
  74. package/dist/connection/tree/tree.js +59 -8
  75. package/dist/container/output/format.js +1 -2
  76. package/dist/dashboard/cockpit-client.d.ts +6 -0
  77. package/dist/dashboard/cockpit-client.js +27 -0
  78. package/dist/dashboard/cockpits.d.ts +29 -0
  79. package/dist/dashboard/cockpits.js +65 -0
  80. package/dist/dashboard/dashboard.d.ts +7 -0
  81. package/dist/dashboard/dashboard.js +47 -0
  82. package/dist/dashboard/draw.d.ts +15 -0
  83. package/dist/dashboard/draw.js +30 -0
  84. package/dist/dashboard/frame.d.ts +4 -0
  85. package/dist/dashboard/frame.js +15 -0
  86. package/dist/dashboard/index.d.ts +2 -0
  87. package/dist/dashboard/index.js +2 -0
  88. package/dist/dashboard/modes.d.ts +5 -0
  89. package/dist/dashboard/modes.js +16 -0
  90. package/dist/dashboard/node-connection.d.ts +15 -0
  91. package/dist/dashboard/node-connection.js +51 -0
  92. package/dist/dashboard/pi-tui.d.ts +6 -0
  93. package/dist/dashboard/pi-tui.js +35 -0
  94. package/dist/dashboard/status-bar.d.ts +4 -0
  95. package/dist/dashboard/status-bar.js +60 -0
  96. package/dist/dashboard/terminal.d.ts +53 -0
  97. package/dist/dashboard/terminal.js +165 -0
  98. package/dist/dashboard/tree-model.d.ts +28 -0
  99. package/dist/dashboard/tree-model.js +97 -0
  100. package/dist/dashboard/tree.d.ts +10 -0
  101. package/dist/dashboard/tree.js +76 -0
  102. package/dist/fleet/fleet.d.ts +70 -0
  103. package/dist/fleet/fleet.js +91 -0
  104. package/dist/fleet/index.d.ts +2 -0
  105. package/dist/fleet/index.js +2 -0
  106. package/dist/hold/output/format.js +1 -5
  107. package/dist/hold/tree/tree.js +1 -0
  108. package/dist/import/commands.js +3 -4
  109. package/dist/import/output.js +1 -4
  110. package/dist/local-node/client.d.ts +9 -4
  111. package/dist/local-node/client.js +21 -9
  112. package/dist/local-node/index.d.ts +2 -1
  113. package/dist/local-node/index.js +2 -1
  114. package/dist/local-node/wait.d.ts +10 -0
  115. package/dist/local-node/wait.js +17 -0
  116. package/dist/login/commands.js +2 -1
  117. package/dist/mcp/calls.d.ts +1 -0
  118. package/dist/mcp/calls.js +37 -3
  119. package/dist/mcp/commands.d.ts +5 -2
  120. package/dist/mcp/commands.js +30 -4
  121. package/dist/mcp/routing.d.ts +24 -0
  122. package/dist/mcp/routing.js +188 -0
  123. package/dist/mcp/server.d.ts +13 -4
  124. package/dist/mcp/server.js +35 -12
  125. package/dist/presentation/output/format.js +4 -3
  126. package/dist/project-guard/commands.js +11 -2
  127. package/dist/project-workspace/commands.js +16 -6
  128. package/dist/project-workspace/output/human.d.ts +13 -0
  129. package/dist/project-workspace/output/human.js +17 -5
  130. package/dist/project-workspace/output/index.d.ts +1 -1
  131. package/dist/project-workspace/output/index.js +1 -1
  132. package/dist/project-workspace/output/metadata.js +1 -1
  133. package/dist/project-workspace/tree/tree.js +27 -12
  134. package/dist/reference/commands.js +4 -2
  135. package/dist/reference/index.d.ts +1 -1
  136. package/dist/reference/index.js +1 -1
  137. package/dist/reference/resolve.d.ts +2 -0
  138. package/dist/reference/resolve.js +28 -18
  139. package/dist/remote-node/client.d.ts +89 -9
  140. package/dist/remote-node/client.js +6 -1
  141. package/dist/remote-node/commands.d.ts +9 -0
  142. package/dist/remote-node/commands.js +96 -18
  143. package/dist/remote-node/connector.d.ts +12 -4
  144. package/dist/remote-node/connector.js +54 -26
  145. package/dist/remote-node/index.d.ts +2 -2
  146. package/dist/remote-node/index.js +2 -2
  147. package/dist/remote-node/reachability.d.ts +43 -1
  148. package/dist/remote-node/reachability.js +13 -3
  149. package/dist/remote-node/text.d.ts +2 -1
  150. package/dist/remote-node/text.js +74 -27
  151. package/dist/remote-node/tree/tree.js +21 -1
  152. package/dist/routine/client.d.ts +398 -0
  153. package/dist/routine/client.js +28 -0
  154. package/dist/routine/commands.d.ts +9 -0
  155. package/dist/routine/commands.js +109 -0
  156. package/dist/routine/index.d.ts +3 -0
  157. package/dist/routine/index.js +3 -0
  158. package/dist/routine/input.d.ts +28 -0
  159. package/dist/routine/input.js +44 -0
  160. package/dist/routine/output/format.d.ts +23 -0
  161. package/dist/routine/output/format.js +83 -0
  162. package/dist/routine/output/index.d.ts +2 -0
  163. package/dist/routine/output/index.js +2 -0
  164. package/dist/routine/tree/index.d.ts +2 -0
  165. package/dist/routine/tree/index.js +2 -0
  166. package/dist/routine/tree/tree.d.ts +3 -0
  167. package/dist/routine/tree/tree.js +70 -0
  168. package/dist/session/agent-permission.d.ts +2 -2
  169. package/dist/session/approval/commands.js +31 -9
  170. package/dist/session/approval/output/format.d.ts +11 -0
  171. package/dist/session/approval/output/format.js +8 -0
  172. package/dist/session/approval/output/index.d.ts +1 -1
  173. package/dist/session/approval/output/index.js +1 -1
  174. package/dist/session/attach-client.d.ts +1 -1
  175. package/dist/session/attach-client.js +12 -3
  176. package/dist/session/attach-render.js +15 -7
  177. package/dist/session/attach.js +17 -3
  178. package/dist/session/client.d.ts +12 -3
  179. package/dist/session/client.js +18 -17
  180. package/dist/session/commands.d.ts +1 -0
  181. package/dist/session/commands.js +120 -13
  182. package/dist/session/create-tasks.js +29 -11
  183. package/dist/session/index.d.ts +2 -2
  184. package/dist/session/index.js +2 -1
  185. package/dist/session/interaction/output/format.js +2 -1
  186. package/dist/session/output/diff.js +3 -10
  187. package/dist/session/output/failure.js +3 -10
  188. package/dist/session/output/human.d.ts +1 -0
  189. package/dist/session/output/human.js +21 -10
  190. package/dist/session/output/index.d.ts +2 -2
  191. package/dist/session/output/index.js +2 -2
  192. package/dist/session/output/tasks.d.ts +16 -1
  193. package/dist/session/output/tasks.js +41 -27
  194. package/dist/session/tree/tree.js +67 -8
  195. package/dist/session/turn/client.d.ts +4 -1
  196. package/dist/session/turn/client.js +22 -11
  197. package/dist/session/turn/commands.d.ts +2 -0
  198. package/dist/session/turn/commands.js +39 -11
  199. package/dist/session/turn/index.d.ts +3 -3
  200. package/dist/session/turn/index.js +1 -1
  201. package/dist/session/turn/output.d.ts +7 -2
  202. package/dist/session/turn/output.js +36 -13
  203. package/dist/status/client.d.ts +7 -2
  204. package/dist/status/command.js +3 -1
  205. package/dist/status/doctor.d.ts +5 -1
  206. package/dist/status/doctor.js +10 -4
  207. package/dist/status/output/compact.d.ts +1 -0
  208. package/dist/status/output/compact.js +3 -0
  209. package/dist/status/output/human.d.ts +1 -1
  210. package/dist/status/output/human.js +71 -14
  211. package/dist/team-workspace/ceremony.d.ts +19 -0
  212. package/dist/team-workspace/ceremony.js +141 -0
  213. package/dist/team-workspace/client.d.ts +58 -0
  214. package/dist/team-workspace/client.js +6 -0
  215. package/dist/team-workspace/commands.d.ts +3 -0
  216. package/dist/team-workspace/commands.js +85 -0
  217. package/dist/team-workspace/confirmation.d.ts +4 -0
  218. package/dist/team-workspace/confirmation.js +8 -0
  219. package/dist/team-workspace/dependencies.d.ts +8 -0
  220. package/dist/team-workspace/dependencies.js +2 -0
  221. package/dist/team-workspace/index.d.ts +6 -0
  222. package/dist/team-workspace/index.js +5 -0
  223. package/dist/team-workspace/launcher.d.ts +17 -0
  224. package/dist/team-workspace/launcher.js +30 -0
  225. package/dist/team-workspace/output.d.ts +15 -0
  226. package/dist/team-workspace/output.js +28 -0
  227. package/dist/team-workspace/terminal.d.ts +9 -0
  228. package/dist/team-workspace/terminal.js +46 -0
  229. package/dist/terminal/client.d.ts +4 -0
  230. package/dist/terminal/client.js +3 -0
  231. package/dist/terminal/commands.js +37 -25
  232. package/dist/terminal/control-commands.js +26 -9
  233. package/dist/terminal/keys.d.ts +12 -0
  234. package/dist/terminal/keys.js +62 -0
  235. package/dist/terminal/output/compact-list.d.ts +1 -0
  236. package/dist/terminal/output/compact-list.js +1 -0
  237. package/dist/terminal/output/human.d.ts +2 -19
  238. package/dist/terminal/output/human.js +6 -6
  239. package/dist/terminal/tree/tree.js +16 -16
  240. package/package.json +10 -8
@@ -1,12 +1,5 @@
1
- import { formatRows } from "../../command-line/index.js";
2
- const isTerminalControl = (character) => {
3
- const point = character.codePointAt(0) ?? 0;
4
- return (point <= 31 ||
5
- (point >= 127 && point <= 159) ||
6
- point === 8232 ||
7
- point === 8233);
8
- };
9
- export const formatFailureCell = (failure) => `${failure.code}: ${Array.from(failure.message, (character) => isTerminalControl(character) ? "�" : character).join("")}`;
1
+ import { cell, formatRows } from "../../command-line/index.js";
2
+ export const formatFailureCell = (failure) => cell(`${failure.code}: ${failure.message}`);
10
3
  export const formatFailure = (failure, state = "failed") => failure === undefined ? "" : `${state}: ${formatFailureCell(failure)}\n`;
11
4
  const eventFailure = (event) => {
12
5
  const { eventType, payload } = event;
@@ -15,7 +8,7 @@ const eventFailure = (event) => {
15
8
  typeof payload.reason !== "string")
16
9
  return "";
17
10
  const failure = "failure" in payload ? payload.failure : undefined;
18
- return `\t${payload.reason}${failure === undefined ? "" : `\t${formatFailureCell(failure)}`}`;
11
+ return `\t${cell(payload.reason)}${failure === undefined ? "" : `\t${formatFailureCell(failure)}`}`;
19
12
  };
20
13
  export const formatSessionEvents = (items) => formatRows(items, (event) => `${event.sessionCursor}\t${event.eventType}\t${event.globalCursor}${eventFailure(event)}`, {
21
14
  empty: "No events.",
@@ -103,6 +103,7 @@ export type CliSessionResult = {
103
103
  readonly command: "session.show";
104
104
  readonly result: SessionShowResult;
105
105
  };
106
+ export declare const formatSessionShow: ({ session, }: Pick<SessionShowResult, "session">) => string;
106
107
  export declare const formatSessionResult: (result: CliSessionResult) => string;
107
108
  export declare const writeSessionResult: <TValue>(result: CliNodeResult<TValue>, context: {
108
109
  readonly io: CliIo;
@@ -1,16 +1,18 @@
1
- import { cell, formatRows, tab, writeNodeResult, } from "../../command-line/index.js";
1
+ import { cell, fields, formatRows, tab, writeNodeResult, } from "../../command-line/index.js";
2
2
  import { formatSessionDiff } from "./diff.js";
3
3
  import { formatFailure, formatSessionEvents } from "./failure.js";
4
4
  import { formatSessionObservation } from "./observe.js";
5
5
  import { formatSessionList, formatSessionTasks, } from "./tasks.js";
6
6
  const formatSessionInbox = (deliveries) => formatRows(deliveries, (delivery) => `${delivery.deliveryId}\t${delivery.sequence}\t${cell(delivery.message.senderSessionId)}\t${cell(delivery.message.subject)}\t${cell(delivery.message.body)}`);
7
- const formatSessionCreation = (result) => `${tab([
8
- result.sessionId,
9
- ...(result.executor === undefined ? [] : [result.executor.connectionId]),
10
- ...(result.worktree === undefined
11
- ? []
12
- : [result.workspaceId, result.worktree.branch]),
13
- ])}\nnext: maia session start ${result.sessionId} --expected-revision ${result.revision} --wait\n`;
7
+ const formatSessionCreation = (result) => `${fields([
8
+ ["session", result.sessionId],
9
+ ["account", result.executor?.connectionId],
10
+ [
11
+ "workspace",
12
+ result.worktree === undefined ? undefined : result.workspaceId,
13
+ ],
14
+ ["branch", result.worktree?.branch],
15
+ ])}next: maia session start ${result.sessionId} --expected-revision ${result.revision} --wait\n`;
14
16
  const formatArchive = ({ archive, revision, sessionId, state, }) => {
15
17
  const kept = archive === undefined
16
18
  ? ["no worktree to keep"]
@@ -29,8 +31,17 @@ const formatCodingSession = (result) => {
29
31
  const formatAgentPermission = (result) => result.command === "session.agent-permission.preview"
30
32
  ? `${result.result.sessionId}\t${result.result.expiresAt}\n`
31
33
  : `${result.result.receipt.receiptId}\t${result.result.delivery}\n`;
32
- const formatSessionShow = ({ session, }) => `${session.id}\t${session.state}\t${session.workspaceId}\n${formatFailure(session.failure)}`;
33
- const formatLifecycle = ({ revision, sessionId, state, }) => `${sessionId}\t${state}\t${revision}\n${state === "starting" ? `next: maia session start ${sessionId} --expected-revision ${revision} --wait returns once it runs; maia session show ${sessionId} shows it now\n` : ""}`;
34
+ export const formatSessionShow = ({ session, }) => `${fields([
35
+ ["session", session.id],
36
+ ["state", session.state],
37
+ ["revision", session.revision],
38
+ ["workspace", session.workspaceId],
39
+ ])}${formatFailure(session.failure)}`;
40
+ const formatLifecycle = ({ revision, sessionId, state, }) => `${fields([
41
+ ["session", sessionId],
42
+ ["state", state],
43
+ ["revision", revision],
44
+ ])}${state === "starting" ? `next: maia session start ${sessionId} --expected-revision ${revision} --wait returns once it runs; maia session show ${sessionId} shows it now\n` : ""}`;
34
45
  const formatSessions = (result) => result.items.length === 0 ? "No Sessions.\n" : formatSessionList(result);
35
46
  const formatInboxAck = ({ delivery, deliveryRecord, mailboxRevision, }) => `${tab([deliveryRecord.deliveryId, delivery, mailboxRevision])}\n`;
36
47
  const formatMessageSend = ({ delivery, deliveryId, sequence, }) => `${tab([deliveryId, delivery, sequence])}\n`;
@@ -1,6 +1,6 @@
1
1
  export { formatSessionDiff } from "./diff.js";
2
2
  export { formatFailure, formatFailureCell, formatSessionEvents, } from "./failure.js";
3
- export { type CliSessionResult, formatSessionResult, writeSessionResult, } from "./human.js";
3
+ export { type CliSessionResult, formatSessionResult, formatSessionShow, writeSessionResult, } from "./human.js";
4
4
  export { formatSessionObservation } from "./observe.js";
5
- export { type CliSessionTaskItem, type CliSessionTasksResult, formatSessionList, formatSessionTasks, } from "./tasks.js";
5
+ export { type CliSessionList, type CliSessionTaskItem, type CliSessionTasksResult, formatMergedSessions, formatSessionList, formatSessionTasks, } from "./tasks.js";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export { formatSessionDiff } from "./diff.js";
2
2
  export { formatFailure, formatFailureCell, formatSessionEvents, } from "./failure.js";
3
- export { formatSessionResult, writeSessionResult, } from "./human.js";
3
+ export { formatSessionResult, formatSessionShow, writeSessionResult, } from "./human.js";
4
4
  export { formatSessionObservation } from "./observe.js";
5
- export { formatSessionList, formatSessionTasks, } from "./tasks.js";
5
+ export { formatMergedSessions, formatSessionList, formatSessionTasks, } from "./tasks.js";
6
6
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,5 @@
1
1
  import type { SessionCreationOutcome, SessionListResult } from "@maiaos/sdk";
2
+ import type { ListedNode } from "../../fleet/index.js";
2
3
  export type CliSessionTaskItem = {
3
4
  readonly error?: SessionCreationOutcome["error"];
4
5
  readonly line: number;
@@ -14,6 +15,20 @@ export type CliSessionTasksResult = {
14
15
  readonly items: readonly CliSessionTaskItem[];
15
16
  readonly workspaceId: string;
16
17
  };
17
- export declare const formatSessionTasks: (result: CliSessionTasksResult) => string;
18
+ export declare const formatSessionTasks: ({ items }: CliSessionTasksResult) => string;
19
+ type ListedSession = SessionListResult["items"][number];
18
20
  export declare const formatSessionList: (result: SessionListResult) => string;
21
+ type Labeled<TValue> = TValue & {
22
+ readonly node: string;
23
+ };
24
+ export type CliSessionList = {
25
+ readonly attention?: readonly Labeled<NonNullable<SessionListResult["attention"]>[number]>[];
26
+ readonly items: readonly Labeled<ListedSession>[];
27
+ readonly method: "session.list";
28
+ readonly nodes: readonly ListedNode[];
29
+ };
30
+ export declare const formatMergedSessions: ({ result, }: {
31
+ readonly result: CliSessionList;
32
+ }) => string;
33
+ export {};
19
34
  //# sourceMappingURL=tasks.d.ts.map
@@ -1,34 +1,48 @@
1
- import { cell, formatRows, tab, withNextPage, } from "../../command-line/index.js";
1
+ import { formatMerged } from "../../address-space/index.js";
2
+ import { cell, fields, formatRows, tab, withNextPage, } from "../../command-line/index.js";
2
3
  import { formatFailureCell } from "./failure.js";
3
4
  const failure = ({ error }) => error === undefined
4
- ? "-"
5
+ ? undefined
5
6
  : `${error.operationId}:${error.code ?? error.kind}${error.failure === undefined ? "" : ` (${formatFailureCell(error.failure)})`}`;
6
- const receiptIds = ({ receipts }) => {
7
- const ids = [receipts.create, receipts.start, receipts.send].flatMap((receipt) => (receipt === undefined ? [] : [receipt.receiptId]));
8
- return ids.length === 0 ? "-" : ids.join(",");
9
- };
10
- export const formatSessionTasks = (result) => result.items
11
- .map((item) => `${[
12
- String(item.line),
13
- item.stage,
14
- item.sessionId ?? "-",
15
- item.turnId ?? "-",
16
- failure(item),
17
- receiptIds(item),
18
- item.recovery?.commandId ?? "-",
19
- ].join("\t")}\n`)
20
- .join("");
7
+ export const formatSessionTasks = ({ items }) => items.length === 1
8
+ ? items
9
+ .map((item) => fields([
10
+ ["stage", item.stage],
11
+ ["session", item.sessionId],
12
+ ["turn", item.turnId],
13
+ ["command", item.recovery?.commandId],
14
+ ["error", failure(item)],
15
+ ]))
16
+ .join("")
17
+ : formatRows(items, (item) => tab([
18
+ item.line,
19
+ item.stage,
20
+ item.sessionId ?? "-",
21
+ item.turnId ?? "-",
22
+ item.recovery?.commandId ?? "-",
23
+ failure(item) ?? "-",
24
+ ]), {
25
+ empty: "",
26
+ headers: ["LINE", "STAGE", "SESSION", "TURN", "COMMAND", "ERROR"],
27
+ });
28
+ const SESSION_HEADERS = ["SESSION", "STATE", "WORKSPACE", "ATTENTION", "TITLE"];
29
+ const sessionCells = (session, attention) => [
30
+ session.id,
31
+ session.state,
32
+ session.workspaceId,
33
+ attention ?? "-",
34
+ cell(session.title ?? "-"),
35
+ ];
21
36
  export const formatSessionList = (result) => {
22
37
  const attention = new Map((result.attention ?? []).map((item) => [item.sessionId, item.attention]));
23
- return withNextPage(formatRows(result.items, (session) => tab([
24
- session.id,
25
- session.state,
26
- session.workspaceId,
27
- attention.get(session.id) ?? "-",
28
- cell(session.title ?? "-"),
29
- ]), {
30
- empty: "No Sessions.",
31
- headers: ["SESSION", "STATE", "WORKSPACE", "ATTENTION", "TITLE"],
32
- }), result.nextCursor);
38
+ return withNextPage(formatRows(result.items, (session) => tab(sessionCells(session, attention.get(session.id))), { empty: "No Sessions.", headers: SESSION_HEADERS }), result.nextCursor);
39
+ };
40
+ const sessionKey = (node, id) => `${node} ${id}`;
41
+ export const formatMergedSessions = ({ result, }) => {
42
+ const attention = new Map((result.attention ?? []).map((item) => [
43
+ sessionKey(item.node, item.sessionId),
44
+ item.attention,
45
+ ]));
46
+ return formatMerged(result, (session) => tab(sessionCells(session, attention.get(sessionKey(session.node, session.id)))), { empty: "No Sessions.", headers: SESSION_HEADERS });
33
47
  };
34
48
  //# sourceMappingURL=tasks.js.map
@@ -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>] [--cwd <path>] [--title <text> | --name <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,9 +46,21 @@ 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
  ],
53
+ [
54
+ "session wait <session-id> --until <state>[,<state>...] [--timeout <duration>]",
55
+ 1,
56
+ "session.wait",
57
+ "Wait until a Session reaches one of the states; exits 74 on timeout.",
58
+ {
59
+ example: "maia --json session wait session_1 --until idle --until failed --timeout 10m",
60
+ route: "<session-id>",
61
+ run: [session, "runSessionWait"],
62
+ },
63
+ ],
50
64
  [
51
65
  "session rename <session-id> --title <text> --expected-revision <revision> [--command-id <id>]",
52
66
  1,
@@ -54,6 +68,7 @@ export const SESSION_TREE = {
54
68
  "Rename a Session at its current revision.",
55
69
  {
56
70
  example: "maia --json session rename session_1 --title 'Fix the build' --expected-revision 2",
71
+ route: "<session-id>",
57
72
  run: [session, "runSessionRename"],
58
73
  },
59
74
  ],
@@ -64,6 +79,7 @@ export const SESSION_TREE = {
64
79
  "Start a Session; --wait returns once it runs.",
65
80
  {
66
81
  example: "maia --json session start session_1 --expected-revision 1 --command-id start-1 --wait",
82
+ route: "<session-id>",
67
83
  run: [session, "runSessionStart"],
68
84
  },
69
85
  ],
@@ -74,6 +90,7 @@ export const SESSION_TREE = {
74
90
  "Stop a Session.",
75
91
  {
76
92
  example: "maia --json session stop session_1 --expected-revision 2 --command-id stop-1",
93
+ route: "<session-id>",
77
94
  run: [session, "runSessionStop"],
78
95
  },
79
96
  ],
@@ -82,7 +99,7 @@ export const SESSION_TREE = {
82
99
  1,
83
100
  "session.resume",
84
101
  "Resume a stopped Session.",
85
- { run: [session, "runSessionResume"] },
102
+ { route: "<session-id>", run: [session, "runSessionResume"] },
86
103
  ],
87
104
  [
88
105
  "session archive <session-id> --expected-revision <revision> [--command-id <id>]",
@@ -91,6 +108,7 @@ export const SESSION_TREE = {
91
108
  "Archive a Session and retire its worktree.",
92
109
  {
93
110
  example: "maia --json session archive session_1 --expected-revision 3 --command-id archive-1",
111
+ route: "<session-id>",
94
112
  run: [session, "runSessionArchive"],
95
113
  },
96
114
  ],
@@ -101,6 +119,7 @@ export const SESSION_TREE = {
101
119
  "Show the changes a coding Session made.",
102
120
  {
103
121
  example: "maia session diff session_1 --stat",
122
+ route: "<session-id>",
104
123
  run: [session, "runSessionDiff"],
105
124
  },
106
125
  ],
@@ -121,6 +140,7 @@ export const SESSION_TREE = {
121
140
  "Follow a Session's live items.",
122
141
  {
123
142
  example: "maia session attach session_1",
143
+ route: "<session-id>",
124
144
  run: [session, "runSessionAttach"],
125
145
  },
126
146
  ],
@@ -129,14 +149,17 @@ export const SESSION_TREE = {
129
149
  0,
130
150
  "session.events.list",
131
151
  "List a Session's events.",
132
- { run: [session, "runSessionEventsList"] },
152
+ { route: "--session", run: [session, "runSessionEventsList"] },
133
153
  ],
134
154
  [
135
155
  "session history read <session-id|claude:<id>|codex:<id>> [--offset <n>] [--limit <1..50>]",
136
156
  1,
137
157
  "session.history.read",
138
158
  "Read a Session's or vendor session's history.",
139
- { run: [discovery, "runHistoryRead"] },
159
+ {
160
+ route: "<session-id|claude:<id>|codex:<id>>",
161
+ run: [discovery, "runHistoryRead"],
162
+ },
140
163
  ],
141
164
  [
142
165
  "session adopt (<claude|codex>:<native-id> --workspace <workspace-id> [--attest-ended] [--command-id <id>] [--dry-run] | --confirm-stdin)",
@@ -181,12 +204,35 @@ export const SESSION_TREE = {
181
204
  "session turn send --session <session-id> --prompt-stdin --expected-revision <revision> [--command-id <id>]",
182
205
  1,
183
206
  "turn.send",
184
- "Send a turn to a Session from standard input.",
207
+ "Send a turn from stdin; it queues behind the running turn.",
185
208
  {
186
209
  example: "printf %s 'Explain the build' | maia --json session turn send --session session_1 --prompt-stdin --expected-revision 2 --command-id send-1",
210
+ route: "--session",
187
211
  run: [turn, "runTurnSend"],
188
212
  },
189
213
  ],
214
+ [
215
+ "session turn queue <session-id>",
216
+ 1,
217
+ "turn.queue.list",
218
+ "List the running turn and the queued turns in dispatch order.",
219
+ {
220
+ example: "maia --json session turn queue session_1",
221
+ route: "<session-id>",
222
+ run: [turn, "runTurnQueue"],
223
+ },
224
+ ],
225
+ [
226
+ "session turn cancel <turn-id> --expected-turn-revision <revision> [--command-id <id>]",
227
+ 1,
228
+ "turn.cancel",
229
+ "Cancel a queued turn at the turn's own revision.",
230
+ {
231
+ example: "maia --json session turn cancel turn_2 --expected-turn-revision 1 --command-id cancel-turn-2",
232
+ route: "<turn-id>",
233
+ run: [turn, "runTurnCancel"],
234
+ },
235
+ ],
190
236
  [
191
237
  "session turn show <turn-id> [--include-content]",
192
238
  1,
@@ -194,6 +240,7 @@ export const SESSION_TREE = {
194
240
  "Show one turn, its usage and, with --include-content, its text.",
195
241
  {
196
242
  example: "maia --json session turn show turn_1 --include-content",
243
+ route: "<turn-id>",
197
244
  run: [turn, "runTurnShow"],
198
245
  },
199
246
  ],
@@ -204,6 +251,7 @@ export const SESSION_TREE = {
204
251
  "Wait for turns to finish; a failed turn exits non-zero.",
205
252
  {
206
253
  example: "maia --json session turn wait turn_1 --timeout 10m",
254
+ route: "<turn-id>",
207
255
  run: [turn, "runTurnWait"],
208
256
  },
209
257
  ],
@@ -214,6 +262,7 @@ export const SESSION_TREE = {
214
262
  "Interrupt a running turn at its Session's revision.",
215
263
  {
216
264
  example: "maia --json session turn interrupt turn_1 --expected-session-revision 4 --command-id stop-turn-1",
265
+ route: "<turn-id>",
217
266
  run: [turn, "runTurnInterrupt"],
218
267
  },
219
268
  ],
@@ -224,6 +273,7 @@ export const SESSION_TREE = {
224
273
  "List what workers wait on a person for.",
225
274
  {
226
275
  example: "maia --json session approval list --all",
276
+ route: "--session",
227
277
  run: [approval, "runApprovalList"],
228
278
  },
229
279
  ],
@@ -232,7 +282,7 @@ export const SESSION_TREE = {
232
282
  1,
233
283
  "approval.show",
234
284
  "Show one approval request.",
235
- { run: [approval, "runApprovalShow"] },
285
+ { route: "<approval-id>", run: [approval, "runApprovalShow"] },
236
286
  ],
237
287
  [
238
288
  "session approval approve <approval-id> [--for-session] [--command-id <id>]",
@@ -242,6 +292,7 @@ export const SESSION_TREE = {
242
292
  {
243
293
  example: "maia session approval approve approval_1 --command-id approve-1",
244
294
  kind: "discriminant",
295
+ route: "<approval-id>",
245
296
  run: [approval, "runApprovalApprove"],
246
297
  },
247
298
  ],
@@ -250,14 +301,22 @@ export const SESSION_TREE = {
250
301
  1,
251
302
  "approval.respond",
252
303
  "Deny a worker's request.",
253
- { kind: "discriminant", run: [approval, "runApprovalDeny"] },
304
+ {
305
+ kind: "discriminant",
306
+ route: "<approval-id>",
307
+ run: [approval, "runApprovalDeny"],
308
+ },
254
309
  ],
255
310
  [
256
311
  "session approval answer <approval-id> (--text <answer> | --option <option-id>) [--command-id <id>]",
257
312
  1,
258
313
  "approval.respond",
259
314
  "Answer a worker's question.",
260
- { kind: "discriminant", run: [approval, "runApprovalAnswer"] },
315
+ {
316
+ kind: "discriminant",
317
+ route: "<approval-id>",
318
+ run: [approval, "runApprovalAnswer"],
319
+ },
261
320
  ],
262
321
  [
263
322
  "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,6 +1,6 @@
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
- import { commandIdentifier, } from "../../local-node/index.js";
3
+ import { commandIdentifier, repeatBoundedWait, } from "../../local-node/index.js";
4
4
  export const makeTurnClient = (node) => {
5
5
  const interruptTurn = (input) => {
6
6
  return Effect.flatMap(commandIdentifier(input.commandId), (commandId) => {
@@ -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({
@@ -23,18 +29,23 @@ export const makeTurnClient = (node) => {
23
29
  };
24
30
  const showTurn = (turnId) => node.runValidatedNodeOperation({ turnId }, turnShowParametersSchema, (client, parameters, options) => client.showTurn(parameters, options));
25
31
  const waitTurnsOnce = (parameters) => node.runValidatedNodeOperation(parameters, turnWaitParametersSchema, (client, validated, options) => client.waitTurns(validated, options));
26
- const waitWithin = (input) => Effect.gen(function* () {
27
- const waitMilliseconds = Math.min(MAX_TURN_WAIT_MILLISECONDS, input.timeoutMilliseconds);
28
- const result = yield* waitTurnsOnce({
32
+ const waitWithin = (input) => repeatBoundedWait({
33
+ maxRequestMilliseconds: MAX_TURN_WAIT_MILLISECONDS,
34
+ once: (waitMilliseconds) => waitTurnsOnce({
29
35
  mode: input.mode,
30
36
  turnIds: input.turnIds,
31
37
  waitMilliseconds,
32
- });
33
- const remaining = input.timeoutMilliseconds - waitMilliseconds;
34
- if (!result.ok || result.value.satisfied || remaining <= 0)
35
- return result;
36
- return yield* waitWithin({ ...input, timeoutMilliseconds: remaining });
38
+ }),
39
+ satisfied: (value) => value.satisfied,
40
+ timeoutMilliseconds: input.timeoutMilliseconds,
37
41
  });
38
- return { interruptTurn, sendTurn, showTurn, waitTurns: waitWithin };
42
+ return {
43
+ cancelTurn,
44
+ interruptTurn,
45
+ listTurnQueue,
46
+ sendTurn,
47
+ showTurn,
48
+ waitTurns: waitWithin,
49
+ };
39
50
  };
40
51
  //# 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
- import { CliArgumentError, parseOptions, readDuration, readExpectedRevision, readRevisionOption, requirePositionals, writeNodeResult, } from "../../command-line/index.js";
4
- import { formatTurnMutation, formatTurnShow, formatTurnWait, turnWaitExitCode, } from "./output.js";
3
+ import { CliArgumentError, parseOptions, readExpectedRevision, readRevisionOption, readWaitTimeoutSeconds, requirePositionals, writeNodeResult, } from "../../command-line/index.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);
@@ -123,11 +156,6 @@ export const runTurnShow = (tokens, context) => Effect.gen(function* () {
123
156
  toText: formatTurnShow,
124
157
  });
125
158
  });
126
- const DEFAULT_TURN_WAIT_SECONDS = 600;
127
- const MAX_TURN_WAIT_SECONDS = 86_400;
128
- const readWaitTimeoutSeconds = (value) => value === undefined
129
- ? DEFAULT_TURN_WAIT_SECONDS
130
- : readDuration(value, "--timeout", { max: MAX_TURN_WAIT_SECONDS, min: 1 });
131
159
  const parseTurnWaitArguments = (tokens) => {
132
160
  const parsed = parseOptions(tokens, new Set(["--timeout"]), new Set(["--any"]));
133
161
  if (parsed.positionals.length === 0 ||
@@ -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