@maiaos/cli 0.1.0-canary.6 → 0.1.0-canary.61

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 (266) hide show
  1. package/README.md +8 -7
  2. package/dist/agents/client.d.ts +47 -27
  3. package/dist/agents/client.js +10 -3
  4. package/dist/agents/commands.d.ts +1 -0
  5. package/dist/agents/commands.js +24 -2
  6. package/dist/agents/index.d.ts +1 -1
  7. package/dist/agents/index.js +1 -1
  8. package/dist/agents/input.js +6 -0
  9. package/dist/agents/output/format.js +11 -0
  10. package/dist/agents/tree/tree.js +13 -1
  11. package/dist/bin/maia.cdx.json +19 -19
  12. package/dist/bin/maia.mjs +1 -1
  13. package/dist/cli/cli.d.ts +8 -2
  14. package/dist/cli/cli.js +29 -6
  15. package/dist/cli/index.d.ts +1 -1
  16. package/dist/cli/index.js +1 -1
  17. package/dist/command-line/context.d.ts +4 -2
  18. package/dist/command-line/emit/index.d.ts +4 -0
  19. package/dist/command-line/emit/index.js +4 -0
  20. package/dist/command-line/{output.d.ts → emit/output.d.ts} +2 -2
  21. package/dist/command-line/{rows.d.ts → emit/rows.d.ts} +2 -0
  22. package/dist/command-line/{rows.js → emit/rows.js} +8 -0
  23. package/dist/command-line/index.d.ts +5 -5
  24. package/dist/command-line/index.js +5 -5
  25. package/dist/command-line/input/arguments.d.ts +10 -0
  26. package/dist/command-line/input/arguments.js +30 -10
  27. package/dist/command-line/input/index.d.ts +2 -1
  28. package/dist/command-line/input/index.js +2 -1
  29. package/dist/command-line/input/manager-options.d.ts +10 -0
  30. package/dist/command-line/input/manager-options.js +38 -0
  31. package/dist/command-line/two-phase/index.d.ts +2 -0
  32. package/dist/command-line/two-phase/index.js +2 -0
  33. package/dist/command-line/{two-phase.d.ts → two-phase/two-phase.d.ts} +12 -12
  34. package/dist/command-line/{two-phase.js → two-phase/two-phase.js} +2 -2
  35. package/dist/command-receipt/command.js +1 -1
  36. package/dist/command-tree/tree.d.ts +1 -1
  37. package/dist/command-tree/tree.js +6 -1
  38. package/dist/connection/input.js +2 -2
  39. package/dist/connection/system.js +3 -2
  40. package/dist/connection/tree/tree.js +5 -5
  41. package/dist/events/commands.js +65 -0
  42. package/dist/events/index.js +2 -0
  43. package/dist/events/tree/index.js +2 -0
  44. package/dist/events/tree/tree.js +17 -0
  45. package/dist/import/batch.js +196 -0
  46. package/dist/import/client.d.ts +3 -3
  47. package/dist/import/client.js +1 -1
  48. package/dist/import/commands.d.ts +1 -0
  49. package/dist/import/commands.js +82 -8
  50. package/dist/import/index.d.ts +1 -1
  51. package/dist/import/index.js +1 -1
  52. package/dist/import/input.js +38 -3
  53. package/dist/import/manifest.js +107 -0
  54. package/dist/import/output.js +46 -2
  55. package/dist/local-node/client.d.ts +1 -0
  56. package/dist/local-node/client.js +1 -0
  57. package/dist/local-node/index.d.ts +2 -1
  58. package/dist/local-node/index.js +2 -1
  59. package/dist/local-node/wait.d.ts +10 -0
  60. package/dist/local-node/wait.js +17 -0
  61. package/dist/login/gateway.js +2 -2
  62. package/dist/login/vendor-input.js +2 -2
  63. package/dist/mcp/calls.js +6 -1
  64. package/dist/mcp/routing.js +1 -0
  65. package/dist/project-guard/client.d.ts +12 -0
  66. package/dist/project-guard/input.js +15 -1
  67. package/dist/project-guard/output/format.js +5 -0
  68. package/dist/project-workspace/tree/tree.js +1 -1
  69. package/dist/reference/resolve.js +9 -2
  70. package/dist/remote-node/connector.js +8 -1
  71. package/dist/run-ledger/client.d.ts +2 -0
  72. package/dist/session/agent-permission.d.ts +2 -2
  73. package/dist/session/approval/client.d.ts +5 -2
  74. package/dist/session/approval/client.js +2 -2
  75. package/dist/session/approval/commands.d.ts +1 -0
  76. package/dist/session/approval/commands.js +97 -17
  77. package/dist/session/approval/index.d.ts +1 -1
  78. package/dist/session/approval/index.js +1 -1
  79. package/dist/session/client.d.ts +14 -3
  80. package/dist/session/client.js +17 -2
  81. package/dist/session/coding-client.d.ts +2 -0
  82. package/dist/session/coding-client.js +1 -2
  83. package/dist/session/coding-commands.js +24 -7
  84. package/dist/session/commands.d.ts +1 -0
  85. package/dist/session/commands.js +131 -18
  86. package/dist/session/create-tasks.js +10 -2
  87. package/dist/session/index.d.ts +1 -1
  88. package/dist/session/index.js +1 -1
  89. package/dist/session/output/human.js +32 -5
  90. package/dist/session/output/index.js +1 -1
  91. package/dist/session/output/tasks.js +51 -7
  92. package/dist/session/tree/tree.js +52 -19
  93. package/dist/session/turn/client.js +7 -9
  94. package/dist/session/turn/commands.js +67 -20
  95. package/dist/session/turn/output.d.ts +6 -0
  96. package/dist/session/turn/output.js +12 -2
  97. package/dist/status/client.d.ts +14 -3
  98. package/dist/status/command.js +3 -1
  99. package/dist/status/doctor.d.ts +5 -1
  100. package/dist/status/doctor.js +10 -4
  101. package/dist/status/output/compact.d.ts +3 -0
  102. package/dist/status/output/compact.js +17 -7
  103. package/dist/status/output/human.js +15 -0
  104. package/dist/terminal/control-commands.js +26 -9
  105. package/dist/terminal/keys.js +62 -0
  106. package/dist/terminal/output/compact-list.js +3 -0
  107. package/dist/terminal/output/human.js +2 -2
  108. package/dist/terminal/tree/tree.js +1 -1
  109. package/dist/webhooks/client.d.ts +156 -0
  110. package/dist/webhooks/client.js +8 -0
  111. package/dist/webhooks/commands.d.ts +17 -0
  112. package/dist/webhooks/commands.js +76 -0
  113. package/dist/webhooks/index.d.ts +3 -0
  114. package/dist/webhooks/index.js +3 -0
  115. package/dist/webhooks/input.js +125 -0
  116. package/dist/webhooks/output/format.js +75 -0
  117. package/dist/webhooks/output/index.js +2 -0
  118. package/dist/webhooks/tree/index.js +2 -0
  119. package/dist/webhooks/tree/tree.js +49 -0
  120. package/guidance/maia-cli/SKILL.md +1 -1
  121. package/guidance/maia-node/SKILL.md +54 -0
  122. package/guidance/maia-orchestration/SKILL.md +1 -2
  123. package/guidance/maia-sessions/SKILL.md +69 -0
  124. package/package.json +5 -5
  125. package/dist/address-space/address-space.d.ts +0 -38
  126. package/dist/address-space/index.d.ts +0 -2
  127. package/dist/agents/input.d.ts +0 -130
  128. package/dist/agents/output/format.d.ts +0 -8
  129. package/dist/agents/output/index.d.ts +0 -2
  130. package/dist/agents/tree/index.d.ts +0 -2
  131. package/dist/agents/tree/tree.d.ts +0 -3
  132. package/dist/bootstrap/exit.d.ts +0 -14
  133. package/dist/bootstrap/exit.js +0 -42
  134. package/dist/bootstrap/index.d.ts +0 -3
  135. package/dist/bootstrap/index.js +0 -3
  136. package/dist/bootstrap/process.d.ts +0 -5
  137. package/dist/bootstrap/process.js +0 -23
  138. package/dist/bootstrap/run.d.ts +0 -25
  139. package/dist/bootstrap/run.js +0 -95
  140. package/dist/bootstrap/stdio.d.ts +0 -4
  141. package/dist/bootstrap/stdio.js +0 -9
  142. package/dist/cli/environment.d.ts +0 -8
  143. package/dist/cli/services.d.ts +0 -4
  144. package/dist/command-line/input/stdin-stream.d.ts +0 -4
  145. package/dist/command-line/json-decoder.d.ts +0 -3
  146. package/dist/command-receipt/command.d.ts +0 -4
  147. package/dist/command-receipt/compact-list.d.ts +0 -20
  148. package/dist/command-receipt/index.d.ts +0 -3
  149. package/dist/command-tree/completion.d.ts +0 -6
  150. package/dist/command-tree/local.d.ts +0 -3
  151. package/dist/command-tree/row.js +0 -2
  152. package/dist/connection/access/format.d.ts +0 -8
  153. package/dist/connection/access/input.d.ts +0 -53
  154. package/dist/connection/input.d.ts +0 -50
  155. package/dist/connection/signin.d.ts +0 -4
  156. package/dist/connection/tree/index.d.ts +0 -2
  157. package/dist/connection/tree/tree.d.ts +0 -3
  158. package/dist/container/output/format.d.ts +0 -11
  159. package/dist/container/output/index.d.ts +0 -2
  160. package/dist/context/client.d.ts +0 -7
  161. package/dist/context/commands.d.ts +0 -3
  162. package/dist/context/index.d.ts +0 -3
  163. package/dist/dashboard/cockpit-client.d.ts +0 -6
  164. package/dist/dashboard/cockpit-client.js +0 -27
  165. package/dist/dashboard/cockpits.d.ts +0 -29
  166. package/dist/dashboard/cockpits.js +0 -65
  167. package/dist/dashboard/dashboard.d.ts +0 -7
  168. package/dist/dashboard/draw.d.ts +0 -15
  169. package/dist/dashboard/frame.d.ts +0 -4
  170. package/dist/dashboard/index.d.ts +0 -2
  171. package/dist/dashboard/modes.d.ts +0 -5
  172. package/dist/dashboard/node-connection.d.ts +0 -15
  173. package/dist/dashboard/node-connection.js +0 -51
  174. package/dist/dashboard/pi-tui.d.ts +0 -6
  175. package/dist/dashboard/status-bar.d.ts +0 -4
  176. package/dist/dashboard/terminal.d.ts +0 -53
  177. package/dist/dashboard/tree-model.d.ts +0 -28
  178. package/dist/dashboard/tree.d.ts +0 -10
  179. package/dist/development/cli.d.ts +0 -3
  180. package/dist/development/cli.js +0 -44
  181. package/dist/execution/tree/index.d.ts +0 -2
  182. package/dist/execution/tree/tree.d.ts +0 -3
  183. package/dist/hold/output/format.d.ts +0 -11
  184. package/dist/hold/output/index.d.ts +0 -2
  185. package/dist/hold/tree/index.d.ts +0 -2
  186. package/dist/hold/tree/tree.d.ts +0 -3
  187. package/dist/import/input.d.ts +0 -16
  188. package/dist/import/output.d.ts +0 -6
  189. package/dist/integration/output.d.ts +0 -22
  190. package/dist/login/failure.d.ts +0 -3
  191. package/dist/login/gateway.d.ts +0 -12
  192. package/dist/login/menu.d.ts +0 -4
  193. package/dist/login/output/format.d.ts +0 -16
  194. package/dist/login/output/index.d.ts +0 -2
  195. package/dist/login/vendor-account.d.ts +0 -95
  196. package/dist/login/vendor-input.d.ts +0 -14
  197. package/dist/mcp/calls.d.ts +0 -8
  198. package/dist/orchestration/output/compact-aggregate.d.ts +0 -121
  199. package/dist/orchestration/output/compact-run-list.d.ts +0 -20
  200. package/dist/orchestration/output/human.d.ts +0 -80
  201. package/dist/orchestration/output/index.d.ts +0 -4
  202. package/dist/orchestration/tree/index.d.ts +0 -2
  203. package/dist/orchestration/tree/tree.d.ts +0 -3
  204. package/dist/port-lease/input.d.ts +0 -65
  205. package/dist/port-lease/output/format.d.ts +0 -11
  206. package/dist/port-lease/output/index.d.ts +0 -2
  207. package/dist/presentation/output/format.d.ts +0 -11
  208. package/dist/presentation/output/index.d.ts +0 -3
  209. package/dist/project-guard/input.d.ts +0 -18
  210. package/dist/project-guard/output/format.d.ts +0 -11
  211. package/dist/project-guard/output/index.d.ts +0 -2
  212. package/dist/project-workspace/output/human.d.ts +0 -139
  213. package/dist/project-workspace/output/index.d.ts +0 -3
  214. package/dist/project-workspace/output/metadata.d.ts +0 -11
  215. package/dist/project-workspace/tree/index.d.ts +0 -2
  216. package/dist/project-workspace/tree/tree.d.ts +0 -3
  217. package/dist/provider/client.d.ts +0 -6
  218. package/dist/provider/commands.d.ts +0 -3
  219. package/dist/provider/index.d.ts +0 -3
  220. package/dist/reference/commands.d.ts +0 -3
  221. package/dist/reference/index.d.ts +0 -3
  222. package/dist/reference/resolve.d.ts +0 -31
  223. package/dist/reference/tree/index.d.ts +0 -2
  224. package/dist/reference/tree/tree.d.ts +0 -3
  225. package/dist/remote-node/reachability.d.ts +0 -64
  226. package/dist/remote-node/text.d.ts +0 -10
  227. package/dist/remote-node/tree/index.d.ts +0 -2
  228. package/dist/remote-node/tree/tree.d.ts +0 -3
  229. package/dist/routine/input.d.ts +0 -28
  230. package/dist/routine/output/format.d.ts +0 -23
  231. package/dist/routine/output/index.d.ts +0 -2
  232. package/dist/routine/tree/index.d.ts +0 -2
  233. package/dist/routine/tree/tree.d.ts +0 -3
  234. package/dist/run-ledger/input.d.ts +0 -42
  235. package/dist/run-ledger/output/format.d.ts +0 -11
  236. package/dist/run-ledger/output/index.d.ts +0 -2
  237. package/dist/session/approval/output/format.d.ts +0 -23
  238. package/dist/session/approval/output/index.d.ts +0 -2
  239. package/dist/session/attach-render.d.ts +0 -16
  240. package/dist/session/create-tasks.d.ts +0 -20
  241. package/dist/session/interaction/input.d.ts +0 -15
  242. package/dist/session/interaction/output/format.d.ts +0 -11
  243. package/dist/session/interaction/output/index.d.ts +0 -2
  244. package/dist/session/output/diff.d.ts +0 -3
  245. package/dist/session/output/failure.d.ts +0 -11
  246. package/dist/session/output/human.d.ts +0 -112
  247. package/dist/session/output/index.d.ts +0 -6
  248. package/dist/session/output/observe.d.ts +0 -4
  249. package/dist/session/output/tasks.d.ts +0 -34
  250. package/dist/session/task-file.d.ts +0 -5
  251. package/dist/session/tree/index.d.ts +0 -2
  252. package/dist/session/tree/tree.d.ts +0 -3
  253. package/dist/team-workspace/ceremony.d.ts +0 -19
  254. package/dist/team-workspace/confirmation.d.ts +0 -4
  255. package/dist/team-workspace/dependencies.js +0 -2
  256. package/dist/team-workspace/output.d.ts +0 -15
  257. package/dist/terminal/arguments.d.ts +0 -13
  258. package/dist/terminal/output/compact-list.d.ts +0 -148
  259. package/dist/terminal/output/human.d.ts +0 -42
  260. package/dist/terminal/output/index.d.ts +0 -3
  261. package/dist/terminal/tree/index.d.ts +0 -2
  262. package/dist/terminal/tree/tree.d.ts +0 -3
  263. /package/dist/command-line/{json-decoder.js → emit/json-decoder.js} +0 -0
  264. /package/dist/command-line/{json.d.ts → emit/json.d.ts} +0 -0
  265. /package/dist/command-line/{json.js → emit/json.js} +0 -0
  266. /package/dist/command-line/{output.js → emit/output.js} +0 -0
@@ -0,0 +1,107 @@
1
+ import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
2
+ import { sessionAdoptPreviewParametersSchema } from "@maiaos/sdk";
3
+ import * as Effect from "effect/Effect";
4
+ import * as FileSystem from "effect/FileSystem";
5
+ import * as Schema from "effect/Schema";
6
+ import { CliArgumentError } from "../command-line/input/index.js";
7
+ export const MAX_IMPORT_ENTRIES = 64;
8
+ export const MAX_IMPORT_BYTES = 64 * 1024;
9
+ const ENTRY_KEYS = new Set([
10
+ "attestEnded",
11
+ "harness",
12
+ "hostAuthority",
13
+ "labels",
14
+ "nativeId",
15
+ "role",
16
+ "title",
17
+ "workspaceId",
18
+ ]);
19
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
20
+ const invalid = (message) => new CliArgumentError(message);
21
+ const unreadable = () => invalid("Option '--from' must name a readable JSON file.");
22
+ export const readManifestFile = (path) => Effect.gen(function* () {
23
+ const fs = yield* FileSystem.FileSystem;
24
+ const info = yield* fs.stat(path);
25
+ if (info.type !== "File")
26
+ return yield* unreadable();
27
+ if (Number(info.size) > MAX_IMPORT_BYTES)
28
+ return yield* invalid(`The import file must be at most ${String(MAX_IMPORT_BYTES)} bytes.`);
29
+ const bytes = yield* fs.readFile(path);
30
+ return yield* Effect.try({
31
+ catch: () => invalid("The import file must be UTF-8 text."),
32
+ try: () => new TextDecoder("utf-8", { fatal: true }).decode(bytes),
33
+ });
34
+ }).pipe(Effect.catchTag("PlatformError", () => Effect.fail(unreadable())), Effect.provide(NodeFileSystem.layer));
35
+ const hostFields = (value, where) => {
36
+ if (value === undefined)
37
+ return {};
38
+ if (!isRecord(value) ||
39
+ Object.keys(value).some((key) => key !== "permission"))
40
+ throw invalid(`${where}: 'hostAuthority' must be an object with an optional 'permission'.`);
41
+ const { permission } = value;
42
+ return {
43
+ hostAuthority: true,
44
+ ...(permission === undefined ? {} : { permission }),
45
+ };
46
+ };
47
+ const readHarness = (value, where) => {
48
+ const unknown = Object.keys(value).filter((key) => !ENTRY_KEYS.has(key));
49
+ if (unknown.length > 0)
50
+ throw invalid(`${where} has unknown fields: ${unknown.join(", ")}.`);
51
+ const { harness } = value;
52
+ if (harness !== "claude-code" && harness !== "codex-cli")
53
+ throw invalid(`${where}: 'harness' must be claude-code or codex-cli.`);
54
+ return harness;
55
+ };
56
+ const parseEntry = (value, index) => {
57
+ const where = `Entry ${String(index)}`;
58
+ if (!isRecord(value))
59
+ throw invalid(`${where} must be an object.`);
60
+ const harness = readHarness(value, where);
61
+ const { attestEnded, hostAuthority, labels, nativeId, role, title } = value;
62
+ const { workspaceId } = value;
63
+ const parsed = sessionAdoptPreviewParametersSchema.safeParse({
64
+ ...(attestEnded === undefined ? {} : { attestEnded }),
65
+ commandId: "command_manifest_check",
66
+ executor: harness,
67
+ ...hostFields(hostAuthority, where),
68
+ nativeId,
69
+ ...(labels === undefined ? {} : { labels }),
70
+ ...(role === undefined ? {} : { role }),
71
+ ...(title === undefined ? {} : { title }),
72
+ workspaceId,
73
+ });
74
+ if (!parsed.success)
75
+ throw invalid(`${where}: 'nativeId', 'workspaceId', 'attestEnded', 'hostAuthority', 'title', 'labels' or 'role' is invalid.`);
76
+ const { commandId: _commandId, ...request } = parsed.data;
77
+ return { harness, index, nativeId: request.nativeId, request };
78
+ };
79
+ const requireEntries = (document) => {
80
+ const entries = isRecord(document) ? document.entries : undefined;
81
+ if (!Array.isArray(entries) || entries.length === 0)
82
+ throw invalid('The import file must be { "entries": [ ... ] } with at least one entry.');
83
+ if (entries.length > MAX_IMPORT_ENTRIES)
84
+ throw invalid(`An import takes at most ${String(MAX_IMPORT_ENTRIES)} entries; split the file.`);
85
+ return entries;
86
+ };
87
+ const requireDistinct = (entries) => {
88
+ const seen = new Set();
89
+ entries.forEach((entry) => {
90
+ const key = `${entry.harness}:${entry.nativeId}`;
91
+ if (seen.has(key))
92
+ throw invalid(`Entry ${String(entry.index)} repeats ${key}.`);
93
+ seen.add(key);
94
+ });
95
+ };
96
+ const decodeDocument = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
97
+ export const parseManifest = (text) => decodeDocument(text).pipe(Effect.mapError(() => invalid("The import file is not valid JSON.")), Effect.flatMap((document) => Effect.try({
98
+ catch: (error) => error instanceof CliArgumentError
99
+ ? error
100
+ : invalid("The import file is invalid."),
101
+ try: () => {
102
+ const parsed = requireEntries(document).map(parseEntry);
103
+ requireDistinct(parsed);
104
+ return parsed;
105
+ },
106
+ })));
107
+ //# sourceMappingURL=manifest.js.map
@@ -2,15 +2,17 @@ import { cell } from "../command-line/index.js";
2
2
  const line = (...cells) => `${cells.map(cell).join("\t")}\n`;
3
3
  const nativeName = (session) => `${session.executor === "claude-code" ? "claude" : "codex"}:${session.nativeId}`;
4
4
  const groupLine = (group) => line(group.kind, group.repository?.rootPath ?? group.cwd ?? "", `${String(group.sessionCount)} sessions`, group.registeredProjectId ?? "unregistered");
5
- const sessionLine = (session) => line(nativeName(session), `${session.liveness}/${session.livenessEvidence}`, session.lastActivityAt, session.cwd, session.sources.join(","), session.adoptedSessionId === undefined
5
+ const sessionLine = (session) => line(nativeName(session), `${session.liveness}/${session.livenessEvidence}`, session.observed ?? "", session.lastActivityAt, session.cwd, session.sources.join(","), session.adoptedSessionId === undefined
6
6
  ? ""
7
7
  : `adopted:${session.adoptedSessionId}`, session.content?.title ?? session.content?.firstPrompt ?? "");
8
+ const truncatedLines = (result) => (result.truncatedSources ?? []).map((source) => line("truncated", source, "this page ends where the listing stopped; the next page continues from the cursor"));
8
9
  export const formatScan = (result) => {
9
10
  const { bySource, excluded, orphaned, total } = result.summary;
10
11
  return [
11
12
  line(`${String(total)} sessions since ${result.since}`, `claude ${String(bySource.claude)}, codex ${String(bySource.codex)}`, `orphaned ${String(orphaned)}`),
12
13
  line("excluded", `maia ${String(excluded.maiaOwned)}`, `workers ${String(excluded.subagent)}`, `outside-roots ${String(excluded.outsideRoots)}`),
13
14
  ...result.sourceErrors.map((error) => line("source-error", error.source, error.code, error.message)),
15
+ ...truncatedLines(result),
14
16
  ...result.groups.map(groupLine),
15
17
  ...result.items.map(sessionLine),
16
18
  result.nextCursor === undefined
@@ -18,8 +20,21 @@ export const formatScan = (result) => {
18
20
  : line("next", `--cursor ${result.nextCursor}`),
19
21
  ].join("");
20
22
  };
23
+ const managerParts = ({ labels, role, title, }) => [
24
+ ...(role === undefined ? [] : [`role ${role}`]),
25
+ ...(labels === undefined
26
+ ? []
27
+ : [
28
+ `labels ${Object.entries(labels)
29
+ .map(([key, value]) => `${key}=${value}`)
30
+ .join(",")}`,
31
+ ]),
32
+ ...(title === undefined ? [] : [`title ${title}`]),
33
+ ];
21
34
  export const formatAdoptPreview = (preview) => [
22
- line(`adopt ${nativeName(preview)}`, `workspace ${preview.workspaceId}`, `${preview.workingDirectory} (${preview.workingDirectoryOrigin})`, `account ${preview.connectionId}`, `${preview.liveness}/${preview.livenessEvidence}`),
35
+ line(`adopt ${nativeName(preview)}`, `workspace ${preview.workspaceId}`, `${preview.workingDirectory} (${preview.workingDirectoryOrigin})`, `account ${preview.connectionId}`, `${preview.liveness}/${preview.livenessEvidence}`, ...(preview.hostAuthority === true
36
+ ? ["containment none (host authority)"]
37
+ : []), ...managerParts(preview)),
23
38
  line("confirm", `printf '{"previewId":"${preview.previewId}"}' | maia session adopt --confirm-stdin`, `expires ${preview.expiresAt}`),
24
39
  ].join("");
25
40
  export const formatAdoptConfirm = (result) => [
@@ -34,4 +49,33 @@ export const formatHistory = (result) => [
34
49
  ? ""
35
50
  : line("next", `--offset ${String(result.nextOffset)}`),
36
51
  ].join("");
52
+ const adoptDetail = (entry) => "workspaceId" in entry
53
+ ? [
54
+ `workspace ${entry.workspaceId}`,
55
+ `account ${entry.connectionId}`,
56
+ entry.workingDirectory,
57
+ entry.hostAuthority === true
58
+ ? `host authority${entry.permission === undefined ? "" : ` ${entry.permission}`}`
59
+ : "contained",
60
+ ...managerParts(entry),
61
+ ]
62
+ : [];
63
+ const importLine = (entry) => {
64
+ const name = `${entry.harness === "claude-code" ? "claude" : "codex"}:${entry.nativeId}`;
65
+ const detail = [
66
+ ...adoptDetail(entry),
67
+ "sessionId" in entry ? entry.sessionId : undefined,
68
+ "reason" in entry ? entry.reason : undefined,
69
+ "previewId" in entry ? `preview ${entry.previewId}` : undefined,
70
+ "commandId" in entry && !("previewId" in entry)
71
+ ? `command ${entry.commandId}`
72
+ : undefined,
73
+ ].filter((part) => part !== undefined);
74
+ return line(`#${String(entry.index)}`, entry.outcome, name, ...detail);
75
+ };
76
+ export const formatImportPreview = (plan) => [
77
+ ...plan.entries.map(importLine),
78
+ line("confirm", "maia --json session import --from <file> --dry-run | maia session import --confirm-stdin"),
79
+ ].join("");
80
+ export const formatImportResult = (result) => result.entries.map(importLine).join("");
37
81
  //# sourceMappingURL=output.js.map
@@ -22,6 +22,7 @@ export declare const newCliIdentifier: (prefix: "command" | "request") => Effect
22
22
  export declare const commandIdentifier: (commandId: string | undefined) => Effect.Effect<string, never, Crypto.Crypto>;
23
23
  export declare const fillCommandIdentifier: (input: unknown) => Effect.Effect<unknown, never, Crypto.Crypto>;
24
24
  export declare const connectLocalNode: CliNodeConnector;
25
+ export declare const holdsSessionCredential: Effect.Effect<boolean>;
25
26
  export declare const outcomeCanBeAmbiguous: (error: unknown) => boolean;
26
27
  export declare const invalidNodeInput: <TValue>(schemaError?: unknown) => Effect.Effect<CliNodeResult<TValue>>;
27
28
  export type ParameterSchema<TParameters> = {
@@ -70,6 +70,7 @@ const sessionAttachmentDenied = () => new CliLocalNodeError({
70
70
  retryable: false,
71
71
  },
72
72
  });
73
+ export const holdsSessionCredential = Effect.map(Config.option(Config.String(SESSION_CREDENTIAL_VARIABLE)), Option.isSome).pipe(Effect.orElseSucceed(() => false));
73
74
  const sessionLaunch = Effect.gen(function* () {
74
75
  const credential = yield* Config.option(Config.String(SESSION_CREDENTIAL_VARIABLE));
75
76
  const origin = yield* Config.option(Config.String(SESSION_NODE_ORIGIN_VARIABLE));
@@ -1,3 +1,4 @@
1
1
  export { type CliNodeCall, makeCallClient } from "./call.js";
2
- export { type CliMutationRecovery, type CliNodeBinding, type CliNodeConnection, type CliNodeConnector, type CliNodeEffect, type CliNodeOperations, type CliNodeOperationsOptions, type CliNodeResult, commandIdentifier, connectLocalNode, discoveryOptionsFor, fillCommandIdentifier, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, outcomeCanBeAmbiguous, type ParameterSchema, retryBriefSaturation, runLazyNodeDependency, } from "./client.js";
2
+ export { type CliMutationRecovery, type CliNodeBinding, type CliNodeConnection, type CliNodeConnector, type CliNodeEffect, type CliNodeOperations, type CliNodeOperationsOptions, type CliNodeResult, commandIdentifier, connectLocalNode, discoveryOptionsFor, fillCommandIdentifier, holdsSessionCredential, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, outcomeCanBeAmbiguous, type ParameterSchema, retryBriefSaturation, runLazyNodeDependency, } from "./client.js";
3
+ export { repeatBoundedWait } from "./wait.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export { makeCallClient } from "./call.js";
2
- export { commandIdentifier, connectLocalNode, discoveryOptionsFor, fillCommandIdentifier, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, outcomeCanBeAmbiguous, retryBriefSaturation, runLazyNodeDependency, } from "./client.js";
2
+ export { commandIdentifier, connectLocalNode, discoveryOptionsFor, fillCommandIdentifier, holdsSessionCredential, invalidNodeInput, makeCliNodeOperations, newCliIdentifier, outcomeCanBeAmbiguous, retryBriefSaturation, runLazyNodeDependency, } from "./client.js";
3
+ export { repeatBoundedWait } from "./wait.js";
3
4
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ import type { CliNodeEffect } from "./client.js";
2
+ type BoundedWait<TValue> = {
3
+ readonly maxRequestMilliseconds: number;
4
+ readonly once: (waitMilliseconds: number) => CliNodeEffect<TValue>;
5
+ readonly satisfied: (value: TValue) => boolean;
6
+ readonly timeoutMilliseconds: number;
7
+ };
8
+ export declare const repeatBoundedWait: <TValue>(input: BoundedWait<TValue>) => CliNodeEffect<TValue>;
9
+ export {};
10
+ //# sourceMappingURL=wait.d.ts.map
@@ -0,0 +1,17 @@
1
+ import * as Clock from "effect/Clock";
2
+ import * as Effect from "effect/Effect";
3
+ const monotonicMilliseconds = Effect.map(Clock.monotonicTimeNanos, (nanos) => Number(nanos / 1000000n));
4
+ export const repeatBoundedWait = (input) => Effect.gen(function* () {
5
+ const deadline = (yield* monotonicMilliseconds) + input.timeoutMilliseconds;
6
+ const next = () => Effect.gen(function* () {
7
+ const remaining = deadline - (yield* monotonicMilliseconds);
8
+ const result = yield* input.once(Math.max(0, Math.min(input.maxRequestMilliseconds, remaining)));
9
+ if (!result.ok || input.satisfied(result.value))
10
+ return result;
11
+ return (yield* monotonicMilliseconds) >= deadline
12
+ ? result
13
+ : yield* next();
14
+ });
15
+ return yield* next();
16
+ });
17
+ //# sourceMappingURL=wait.js.map
@@ -6,8 +6,8 @@ import { newCliIdentifier } from "../local-node/index.js";
6
6
  const readSessionLimit = (value) => {
7
7
  if (value === undefined)
8
8
  return {};
9
- if (!/^(?:[1-9]|1[0-6])$/u.test(value))
10
- throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to 16.");
9
+ if (!/^(?:[1-9]|[1-5][0-9]|6[0-4])$/u.test(value))
10
+ throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to 64.");
11
11
  return { maxConcurrentSessions: Number(value) };
12
12
  };
13
13
  export const readGatewayLogin = (tokens) => {
@@ -7,8 +7,8 @@ export const vendorExecutor = (vendor) => EXECUTORS.get(vendor);
7
7
  const readSessionLimit = (value) => {
8
8
  if (value === undefined)
9
9
  return {};
10
- if (!/^(?:[1-9]|1[0-6])$/u.test(value))
11
- throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to 16.");
10
+ if (!/^(?:[1-9]|[1-5][0-9]|6[0-4])$/u.test(value))
11
+ throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to 64.");
12
12
  return { maxConcurrentSessions: Number(value) };
13
13
  };
14
14
  export const readVendorLogin = (tokens) => {
package/dist/mcp/calls.js CHANGED
@@ -1,4 +1,4 @@
1
- import { agentsListParametersSchema, agentsShowParametersSchema, approvalListParametersSchema, approvalShowParametersSchema, connectionDetectParametersSchema, connectionListParametersSchema, connectionModelsListParametersSchema, connectionShowParametersSchema, connectionUsageShowParametersSchema, containerIndexListParametersSchema, COORDINATOR_TOOL_OPERATIONS, discoverySessionsListParametersSchema, invocationContextShowParametersSchema, LOCAL_NODE_CALL_METHODS, localNodeRequestPayloadSchema, portLeaseAcquireParametersSchema, portLeaseListParametersSchema, portLeaseReleaseParametersSchema, portLeaseRenewParametersSchema, projectGuardShowParametersSchema, projectListParametersSchema, projectShowParametersSchema, receiptGetParametersSchema, routineListParametersSchema, routineShowParametersSchema, runLedgerCreateParametersSchema, runLedgerListParametersSchema, runLedgerTaskDispatchParametersSchema, runLedgerTaskListParametersSchema, runLedgerTaskSettleParametersSchema, runLedgerTaskShowParametersSchema, sessionArchiveParametersSchema, sessionCreateParametersSchema, sessionDiffParametersSchema, sessionEventsListParametersSchema, sessionHistoryReadParametersSchema, sessionInboxAckParametersSchema, sessionInboxCheckParametersSchema, sessionListParametersSchema, sessionMessageSendParametersSchema, sessionObserveParametersSchema, sessionResumeParametersSchema, sessionShowParametersSchema, sessionStartParametersSchema, sessionStopParametersSchema, turnCancelParametersSchema, turnInterruptParametersSchema, turnQueueListParametersSchema, turnSendParametersSchema, turnShowParametersSchema, turnWaitParametersSchema, workerToolDefinitions, workspaceListParametersSchema, workspaceShowParametersSchema, } from "@maiaos/sdk";
1
+ import { agentsListParametersSchema, agentsShowParametersSchema, approvalListParametersSchema, approvalRespondParametersSchema, approvalShowParametersSchema, connectionDetectParametersSchema, connectionListParametersSchema, connectionModelsListParametersSchema, connectionShowParametersSchema, connectionUsageShowParametersSchema, containerIndexListParametersSchema, COORDINATOR_TOOL_OPERATIONS, discoverySessionsListParametersSchema, invocationContextShowParametersSchema, LOCAL_NODE_CALL_METHODS, localNodeRequestPayloadSchema, portLeaseAcquireParametersSchema, portLeaseListParametersSchema, portLeaseReleaseParametersSchema, portLeaseRenewParametersSchema, projectGuardShowParametersSchema, projectListParametersSchema, projectShowParametersSchema, receiptGetParametersSchema, routineListParametersSchema, routineShowParametersSchema, runLedgerCreateParametersSchema, runLedgerListParametersSchema, runLedgerTaskDispatchParametersSchema, runLedgerTaskListParametersSchema, runLedgerTaskSettleParametersSchema, runLedgerTaskShowParametersSchema, sessionArchiveParametersSchema, sessionCreateParametersSchema, sessionDiffParametersSchema, sessionEventsListParametersSchema, sessionHistoryReadParametersSchema, sessionInboxAckParametersSchema, sessionInboxCheckParametersSchema, sessionListParametersSchema, sessionMessageSendParametersSchema, sessionObserveParametersSchema, sessionResumeParametersSchema, sessionShowParametersSchema, sessionStartParametersSchema, sessionStopParametersSchema, turnCancelParametersSchema, turnInterruptParametersSchema, turnQueueListParametersSchema, turnSendParametersSchema, turnShowParametersSchema, turnWaitParametersSchema, workerToolDefinitions, workspaceListParametersSchema, workspaceShowParametersSchema, } from "@maiaos/sdk";
2
2
  import { Effect, Predicate } from "effect";
3
3
  import { invalidNodeInput, } from "../local-node/index.js";
4
4
  const recoveryOf = (input) => Predicate.hasProperty(input, "commandId") &&
@@ -39,6 +39,10 @@ export const COORDINATOR_CALLS = new Map([
39
39
  "approval.list",
40
40
  validated(approvalListParametersSchema, (client, parameters, options) => client.listApprovals(parameters, options)),
41
41
  ],
42
+ [
43
+ "approval.respond",
44
+ validated(approvalRespondParametersSchema, (client, parameters, options) => client.respondToApproval(parameters, options)),
45
+ ],
42
46
  [
43
47
  "approval.show",
44
48
  validated(approvalShowParametersSchema, (client, parameters, options) => client.showApproval(parameters, options)),
@@ -222,6 +226,7 @@ export const callCoordinator = (node) => (operation, input) => {
222
226
  export const WORKER_CALLS = (() => {
223
227
  const available = new Map(COORDINATOR_CALLS);
224
228
  available.set("context.show", validated(invocationContextShowParametersSchema, (client, parameters, options) => client.showCurrentContext(parameters, options)));
229
+ available.set("approval.respond", validated(approvalRespondParametersSchema, (client, parameters, options) => client.respondToApproval(parameters, options)));
225
230
  available.set("session.inbox.ack", validated(sessionInboxAckParametersSchema, (client, parameters, options) => client.acknowledgeSessionDelivery(parameters, options)));
226
231
  available.set("session.inbox.check", validated(sessionInboxCheckParametersSchema, (client, parameters, options) => client.checkSessionInbox(parameters, options)));
227
232
  available.set("session.message.send", validated(sessionMessageSendParametersSchema, (client, parameters, options) => client.sendSessionMessage(parameters, options)));
@@ -25,6 +25,7 @@ export const TOOL_ROUTES = new Map([
25
25
  ["agents.list", LOCAL],
26
26
  ["agents.show", LOCAL],
27
27
  ["approval.list", held("session", "sessionId", true)],
28
+ ["approval.respond", held("approval", "approvalId")],
28
29
  ["approval.show", held("approval", "approvalId")],
29
30
  ["connection.detect", LOCAL],
30
31
  ["connection.list", LOCAL],
@@ -6,6 +6,9 @@ export declare const makeProjectGuardClient: (node: CliNodeOperations) => {
6
6
  readonly delivery: "duplicate" | "new";
7
7
  readonly expectedRevision: string;
8
8
  readonly guard: {
9
+ readonly approvalGrants: {
10
+ readonly coordinator: "answer" | "decide" | "none";
11
+ };
9
12
  readonly limits: {
10
13
  readonly maxDepth: number;
11
14
  readonly maxLeasesPerSession: number;
@@ -41,8 +44,14 @@ export declare const makeProjectGuardClient: (node: CliNodeOperations) => {
41
44
  readonly inputDigest: string;
42
45
  readonly proof: string;
43
46
  readonly actorId: string;
47
+ readonly approvalGrants: {
48
+ readonly coordinator: "answer" | "decide" | "none";
49
+ };
44
50
  readonly commandId: string;
45
51
  readonly current: {
52
+ readonly approvalGrants: {
53
+ readonly coordinator: "answer" | "decide" | "none";
54
+ };
46
55
  readonly limits: {
47
56
  readonly maxDepth: number;
48
57
  readonly maxLeasesPerSession: number;
@@ -69,6 +78,9 @@ export declare const makeProjectGuardClient: (node: CliNodeOperations) => {
69
78
  }>;
70
79
  showProjectGuard: (input: ProjectGuardShowParameters) => import("../local-node/client.js").CliNodeEffect<{
71
80
  readonly guard: {
81
+ readonly approvalGrants: {
82
+ readonly coordinator: "answer" | "decide" | "none";
83
+ };
72
84
  readonly limits: {
73
85
  readonly maxDepth: number;
74
86
  readonly maxLeasesPerSession: number;
@@ -1,4 +1,4 @@
1
- import { SESSION_GUARD_BOUNDS } from "@maiaos/sdk";
1
+ import { COORDINATOR_APPROVAL_GRANTS, SESSION_GUARD_BOUNDS, } from "@maiaos/sdk";
2
2
  import * as Effect from "effect/Effect";
3
3
  import { CliArgumentError, parseOptions, readExpectedRevision, requirePositionals, } from "../command-line/index.js";
4
4
  import { commandIdentifier } from "../local-node/index.js";
@@ -23,6 +23,17 @@ const readLimits = (options) => ({
23
23
  maxLiveChildren: readLimit(options, "maxLiveChildren"),
24
24
  maxMessagesPerMinute: readLimit(options, "maxMessagesPerMinute"),
25
25
  });
26
+ const GRANT_OPTIONS = { coordinator: "--approval-coordinator" };
27
+ const readGrants = (options) => {
28
+ const option = GRANT_OPTIONS.coordinator;
29
+ const value = options.get(option);
30
+ if (value === undefined)
31
+ return undefined;
32
+ const levels = COORDINATOR_APPROVAL_GRANTS;
33
+ if (!levels.includes(value))
34
+ throw new CliArgumentError(`Option '${option}' must be ${levels.join(", ")}.`);
35
+ return { coordinator: value };
36
+ };
26
37
  export const readGuardShow = (tokens) => {
27
38
  const parsed = parseOptions(tokens, new Set());
28
39
  requirePositionals(parsed.positionals, 1);
@@ -32,12 +43,15 @@ export const GUARD_OPTIONS = new Set([
32
43
  "--command-id",
33
44
  "--expected-revision",
34
45
  ...Object.values(LIMIT_OPTIONS),
46
+ ...Object.values(GRANT_OPTIONS),
35
47
  ]);
36
48
  export const readGuardPreview = (parsed) => {
37
49
  requirePositionals(parsed.positionals, 1);
38
50
  const expectedRevision = readExpectedRevision(parsed.options.get("--expected-revision"));
39
51
  const limits = readLimits(parsed.options);
52
+ const approvalGrants = readGrants(parsed.options);
40
53
  return Effect.map(commandIdentifier(parsed.options.get("--command-id")), (commandId) => ({
54
+ ...(approvalGrants === undefined ? {} : { approvalGrants }),
41
55
  commandId,
42
56
  expectedRevision,
43
57
  limits,
@@ -5,11 +5,15 @@ const limitCells = (limits) => [
5
5
  `maxMessagesPerMinute=${String(limits.maxMessagesPerMinute)}`,
6
6
  `maxLeasesPerSession=${String(limits.maxLeasesPerSession)}`,
7
7
  ];
8
+ const grantCells = (grants) => [
9
+ `approvalCoordinator=${grants.coordinator}`,
10
+ ];
8
11
  const guardLine = (guard) => [
9
12
  guard.projectId,
10
13
  `source=${guard.source}`,
11
14
  `revision=${guard.revision}`,
12
15
  ...limitCells(guard.limits),
16
+ ...grantCells(guard.approvalGrants),
13
17
  ].join("\t");
14
18
  const previewLines = (result) => [
15
19
  `${guardLine(result.current)}\tcurrent`,
@@ -17,6 +21,7 @@ const previewLines = (result) => [
17
21
  result.projectId,
18
22
  "proposed",
19
23
  ...limitCells(result.limits),
24
+ ...grantCells(result.approvalGrants),
20
25
  `command=${result.commandId}`,
21
26
  `expires=${result.expiresAt}`,
22
27
  ].join("\t"),
@@ -64,7 +64,7 @@ export const PROJECT_TREE = {
64
64
  { route: "<project-id>", run: [guard, "runProjectGuardShow"] },
65
65
  ],
66
66
  [
67
- "project guard set (<project-id> --expected-revision <revision> --max-depth <1..4> --max-live-children <1..64> --max-messages-per-minute <1..600> --max-leases-per-session <1..64> [--command-id <id>] [--dry-run] | --confirm-stdin)",
67
+ "project guard set (<project-id> --expected-revision <revision> --max-depth <1..4> --max-live-children <1..64> --max-messages-per-minute <1..600> --max-leases-per-session <1..64> [--approval-coordinator <none|answer|decide>] [--command-id <id>] [--dry-run] | --confirm-stdin)",
68
68
  1,
69
69
  ["project.guard.preview", "project.guard.confirm"],
70
70
  "Set a Project's guards after a preview.",
@@ -1,6 +1,6 @@
1
1
  import * as Data from "effect/Data";
2
2
  import * as Effect from "effect/Effect";
3
- import { cell, CliArgumentError, LOCAL_NODE, parseOptions, reportError, tokenizeArguments, } from "../command-line/index.js";
3
+ import { cell, CliArgumentError, LOCAL_NODE, parseOptionsWith, reportError, tokenizeArguments, } from "../command-line/index.js";
4
4
  import { parseUsage, REFERENCE_PLACEHOLDER, } from "../command-tree/index.js";
5
5
  class ReferenceRefused extends Data.TaggedError("ReferenceRefused") {
6
6
  }
@@ -36,6 +36,9 @@ const grammarOf = (arguments_) => ({
36
36
  : [])),
37
37
  positionals: arguments_.filter((argument) => argument.name.startsWith("<")),
38
38
  });
39
+ const repeatableOf = (arguments_) => new Set(arguments_.flatMap((argument) => argument.name.startsWith("--") && argument.value?.includes("...") === true
40
+ ? [argument.name]
41
+ : []));
39
42
  const slotOf = (grammar, position) => {
40
43
  const { positionals } = grammar;
41
44
  const last = positionals.at(-1);
@@ -87,7 +90,11 @@ const locate = (arguments_, tokens) => Effect.try({
87
90
  const grammar = grammarOf(arguments_);
88
91
  const valueOptions = new Set(grammar.options.keys());
89
92
  const end = tokens.indexOf("--");
90
- parseOptions(end === -1 ? tokens : tokens.slice(0, end), valueOptions, flagsOf(arguments_));
93
+ parseOptionsWith(end === -1 ? tokens : tokens.slice(0, end), {
94
+ allowed: valueOptions,
95
+ allowedFlags: flagsOf(arguments_),
96
+ repeatable: repeatableOf(arguments_),
97
+ });
91
98
  const roles = tokenizeArguments(tokens, valueOptions);
92
99
  const placements = placementsOf(grammar, tokens, roles);
93
100
  return {
@@ -23,13 +23,20 @@ const unreachable = (name, reason) => new MaiaClientError("transport_failure", r
23
23
  retryable: true,
24
24
  },
25
25
  });
26
+ const unknownNode = (name) => new MaiaClientError("transport_failure", "no Node has this name", {
27
+ remoteError: {
28
+ code: "invalid_argument",
29
+ message: `No Node is named '${name}'; see maia node list.`,
30
+ retryable: false,
31
+ },
32
+ });
26
33
  export const readRemoteNode = (connector, options, name) => Effect.gen(function* () {
27
34
  const local = yield* connector(options);
28
35
  const messageId = yield* newCliIdentifier("request");
29
36
  const listed = yield* local.client.listRemoteNodes({}, { messageId });
30
37
  const node = listed.nodes.find((candidate) => candidate.name === name);
31
38
  if (node === undefined)
32
- return yield* Effect.fail(unreachable(name, "no Node has this name; see maia node list."));
39
+ return yield* Effect.fail(unknownNode(name));
33
40
  return node;
34
41
  });
35
42
  const spawnBridge = (node) => ChildProcess.make("ssh", sshCommandArguments({
@@ -167,6 +167,8 @@ export declare const makeRunLedgerClient: (node: CliNodeOperations) => {
167
167
  readonly state: "completed";
168
168
  readonly tokenUsage?: {
169
169
  readonly cachedInputTokens: number;
170
+ readonly contextTokens?: number | undefined;
171
+ readonly contextWindow?: number | undefined;
170
172
  readonly inputTokens: number;
171
173
  readonly modelCallCount?: number | undefined;
172
174
  readonly outputTokens: number;
@@ -18,7 +18,7 @@ export declare const makeAgentPermissionCliClient: (node: CliNodeOperations) =>
18
18
  readonly commandId: string;
19
19
  readonly grantedAt: string;
20
20
  readonly inputDigest: string;
21
- readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
21
+ readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "events.read" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "session.wait" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
22
22
  readonly revision: "1";
23
23
  };
24
24
  readonly method: "session.agent-permission.confirm";
@@ -55,7 +55,7 @@ export declare const makeAgentPermissionCliClient: (node: CliNodeOperations) =>
55
55
  readonly inputDigest: string;
56
56
  readonly issuedAt: string;
57
57
  readonly method: "session.agent-permission.preview";
58
- readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
58
+ readonly operationIds: readonly ("agents.change.confirm" | "agents.change.preview" | "agents.detect" | "agents.list" | "agents.show" | "approval.list" | "approval.respond" | "approval.show" | "connection.capacity.set" | "connection.create" | "connection.detect" | "connection.gateway.create" | "connection.grant.list" | "connection.grant.set.confirm" | "connection.grant.set.preview" | "connection.list" | "connection.login.start" | "connection.models.list" | "connection.pool.list" | "connection.pool.set.confirm" | "connection.pool.set.preview" | "connection.show" | "connection.state.set" | "connection.system.confirm" | "connection.system.preview" | "connection.upkeep.confirm" | "connection.upkeep.preview" | "connection.upkeep.refresh" | "connection.usage.show" | "container.create.confirm" | "container.create.preview" | "container.index.list" | "container.list" | "container.rename.confirm" | "container.rename.preview" | "container.show" | "context.show" | "discovery.sessions.list" | "events.read" | "execution.catalog.get" | "execution.checkpoint.create" | "execution.checkpoint.show" | "execution.command.run" | "execution.file.read" | "execution.placement.create" | "execution.placement.show" | "execution.relocation.apply" | "execution.relocation.plan" | "execution.relocation.reconcile" | "execution.relocation.show" | "execution.worktree.create" | "execution.worktree.import" | "execution.worktree.reconcile" | "execution.worktree.remove.apply" | "execution.worktree.remove.plan" | "execution.worktree.status" | "harness.installed.list" | "hold.list" | "hold.place.confirm" | "hold.place.preview" | "hold.release.confirm" | "hold.release.preview" | "integration.apply.claude-code" | "integration.apply.codex" | "integration.apply.pi-rpc" | "integration.plan.claude-code" | "integration.plan.codex" | "integration.plan.pi-rpc" | "integration.remove.claude-code" | "integration.remove.codex" | "integration.remove.pi-rpc" | "integration.status.claude-code" | "integration.status.codex" | "integration.status.pi-rpc" | "interaction.cancel" | "interaction.create" | "interaction.list" | "interaction.respond" | "interaction.show" | "monitor.bootstrap.create" | "node.remote.install.confirm" | "node.remote.install.preview" | "node.remote.list" | "node.remote.register.confirm" | "node.remote.register.preview" | "node.remote.remove.confirm" | "node.remote.remove.preview" | "node.shutdown" | "node.status" | "port.lease.acquire" | "port.lease.list" | "port.lease.release" | "port.lease.renew" | "presentation.catalog.show" | "presentation.project-list.show" | "presentation.session-list.show" | "presentation.workspace-directory.show" | "project.context.list" | "project.context.record" | "project.context.show" | "project.create.confirm" | "project.create.preview" | "project.guard.confirm" | "project.guard.preview" | "project.guard.show" | "project.list" | "project.register" | "project.rename.confirm" | "project.rename.preview" | "project.show" | "provider.pool.list" | "receipt.get" | "receipt.list" | "reference.resolve" | "routine.create.confirm" | "routine.create.preview" | "routine.disable.confirm" | "routine.disable.preview" | "routine.list" | "routine.pause" | "routine.resume" | "routine.run.confirm" | "routine.run.preview" | "routine.show" | "run.create" | "run.dispatch.settle-terminal" | "run.dispatch.show" | "run.inbox.ack" | "run.inbox.check" | "run.ledger.create" | "run.ledger.list" | "run.ledger.task.dispatch" | "run.ledger.task.list" | "run.ledger.task.settle" | "run.ledger.task.show" | "run.list" | "run.question.cancel" | "run.question.open" | "run.question.reply" | "run.show" | "run.task.list" | "run.task.show" | "runtime.probe" | "session.adopt.confirm" | "session.adopt.preview" | "session.agent-permission.confirm" | "session.agent-permission.preview" | "session.archive" | "session.create" | "session.diff" | "session.events.list" | "session.history.read" | "session.inbox.ack" | "session.inbox.check" | "session.list" | "session.message.send" | "session.observe" | "session.rename" | "session.resume" | "session.show" | "session.spawn" | "session.start" | "session.stop" | "session.wait" | "team-workspace.bootstrap.apply" | "team-workspace.bootstrap.preview" | "terminal.controller.acquire" | "terminal.controller.release" | "terminal.controller.renew" | "terminal.controller.request" | "terminal.controller.request.show" | "terminal.create" | "terminal.events.list" | "terminal.input.write" | "terminal.list" | "terminal.mutation.reconcile" | "terminal.observer.attach" | "terminal.observer.check" | "terminal.observer.detach" | "terminal.observer.resync" | "terminal.read" | "terminal.session.close" | "terminal.session.delete" | "terminal.session.resize" | "terminal.session.restart" | "terminal.session.signal" | "terminal.show" | "turn.cancel" | "turn.interrupt" | "turn.queue.list" | "turn.send" | "turn.show" | "turn.wait" | "voice.managed-turn.confirm" | "voice.managed-turn.preview" | "voice.orchestrator.context.show" | "voice.orchestrator.tool.call" | "voice.pi.relay" | "voice.pi.relay.preview" | "voice.pi.relay.reconcile" | "webhooks.change.confirm" | "webhooks.change.preview" | "webhooks.deliveries" | "webhooks.list" | "workspace.context.show" | "workspace.execution.configure" | "workspace.execution.show" | "workspace.list" | "workspace.membership.attach" | "workspace.repository.attach" | "workspace.select" | "workspace.show")[];
59
59
  readonly proof: string;
60
60
  }>;
61
61
  };
@@ -19,6 +19,7 @@ export declare const makeApprovalClient: (node: CliNodeOperations) => {
19
19
  readonly actorId: string;
20
20
  readonly answer?: string | undefined;
21
21
  readonly forSession?: true | undefined;
22
+ readonly guardRevision?: string | undefined;
22
23
  readonly reason?: string | undefined;
23
24
  readonly resolvedAt: string;
24
25
  } | undefined;
@@ -32,7 +33,7 @@ export declare const makeApprovalClient: (node: CliNodeOperations) => {
32
33
  }[];
33
34
  readonly method: "approval.list";
34
35
  }>;
35
- respondToApproval: (input: ApprovalRespondParameters) => import("../../local-node/client.js").CliNodeEffect<{
36
+ respondToApproval: (input: ApprovalRespondParameters, asCoordinator?: boolean) => import("../../local-node/client.js").CliNodeEffect<{
36
37
  readonly approval: {
37
38
  readonly approvalId: string;
38
39
  readonly createdAt: string;
@@ -50,6 +51,7 @@ export declare const makeApprovalClient: (node: CliNodeOperations) => {
50
51
  readonly actorId: string;
51
52
  readonly answer?: string | undefined;
52
53
  readonly forSession?: true | undefined;
54
+ readonly guardRevision?: string | undefined;
53
55
  readonly reason?: string | undefined;
54
56
  readonly resolvedAt: string;
55
57
  } | undefined;
@@ -81,7 +83,7 @@ export declare const makeApprovalClient: (node: CliNodeOperations) => {
81
83
  readonly updatedAt: string;
82
84
  };
83
85
  }>;
84
- showApproval: (input: ApprovalShowParameters) => import("../../local-node/client.js").CliNodeEffect<{
86
+ showApproval: (input: ApprovalShowParameters, asCoordinator?: boolean) => import("../../local-node/client.js").CliNodeEffect<{
85
87
  readonly approval: {
86
88
  readonly approvalId: string;
87
89
  readonly createdAt: string;
@@ -99,6 +101,7 @@ export declare const makeApprovalClient: (node: CliNodeOperations) => {
99
101
  readonly actorId: string;
100
102
  readonly answer?: string | undefined;
101
103
  readonly forSession?: true | undefined;
104
+ readonly guardRevision?: string | undefined;
102
105
  readonly reason?: string | undefined;
103
106
  readonly resolvedAt: string;
104
107
  } | undefined;
@@ -1,7 +1,7 @@
1
1
  import { approvalListParametersSchema, approvalRespondParametersSchema, approvalShowParametersSchema, } from "@maiaos/sdk";
2
2
  export const makeApprovalClient = (node) => ({
3
3
  listApprovals: (input) => node.runValidatedNodeOperation(input, approvalListParametersSchema, (client, parameters, options) => client.listApprovals(parameters, options)),
4
- respondToApproval: (input) => node.runValidatedNodeOperation(input, approvalRespondParametersSchema, (client, parameters, options) => client.respondToApproval(parameters, options), { commandId: input.commandId }),
5
- showApproval: (input) => node.runValidatedNodeOperation(input, approvalShowParametersSchema, (client, parameters, options) => client.showApproval(parameters, options)),
4
+ respondToApproval: (input, asCoordinator = false) => (asCoordinator ? node.asCoordinator() : node).runValidatedNodeOperation(input, approvalRespondParametersSchema, (client, parameters, options) => client.respondToApproval(parameters, options), { commandId: input.commandId }),
5
+ showApproval: (input, asCoordinator = false) => (asCoordinator ? node.asCoordinator() : node).runValidatedNodeOperation(input, approvalShowParametersSchema, (client, parameters, options) => client.showApproval(parameters, options)),
6
6
  });
7
7
  //# sourceMappingURL=client.js.map
@@ -4,4 +4,5 @@ export declare const runApprovalShow: (tokens: readonly string[], context: Comma
4
4
  export declare const runApprovalApprove: (tokens: readonly string[], context: CommandContext) => CommandEffect;
5
5
  export declare const runApprovalDeny: (tokens: readonly string[], context: CommandContext) => CommandEffect;
6
6
  export declare const runApprovalAnswer: (tokens: readonly string[], context: CommandContext) => CommandEffect;
7
+ export declare const runSessionAnswer: (tokens: readonly string[], context: CommandContext) => CommandEffect;
7
8
  //# sourceMappingURL=commands.d.ts.map