@maiaos/cli 0.1.0-canary.8 → 0.1.0-canary.81

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 (528) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -15
  3. package/dist/address-space/address-space.js +21 -2
  4. package/dist/address-space/index.js +1 -1
  5. package/dist/agents/client.d.ts +48 -27
  6. package/dist/agents/client.js +10 -3
  7. package/dist/agents/commands.d.ts +1 -0
  8. package/dist/agents/commands.js +24 -2
  9. package/dist/agents/index.d.ts +1 -1
  10. package/dist/agents/index.js +1 -1
  11. package/dist/agents/input.js +6 -0
  12. package/dist/agents/output/format.js +11 -0
  13. package/dist/agents/tree/tree.js +16 -4
  14. package/dist/bin/maia.NOTICES.txt +1 -1
  15. package/dist/bin/maia.cdx.json +70 -19
  16. package/dist/bin/maia.mjs +1 -1
  17. package/dist/board/client.d.ts +27 -0
  18. package/dist/board/client.js +40 -0
  19. package/dist/board/commands.d.ts +28 -0
  20. package/dist/board/commands.js +52 -0
  21. package/dist/board/index.d.ts +3 -0
  22. package/dist/board/index.js +3 -0
  23. package/dist/board/input.js +339 -0
  24. package/dist/board/output/format.js +175 -0
  25. package/dist/board/output/index.js +2 -0
  26. package/dist/board/plan.js +47 -0
  27. package/dist/board/tree/index.js +2 -0
  28. package/dist/board/tree/tree.js +161 -0
  29. package/dist/cli/cli.d.ts +11 -3
  30. package/dist/cli/cli.js +211 -12
  31. package/dist/cli/index.d.ts +1 -1
  32. package/dist/cli/index.js +1 -1
  33. package/dist/cli/log-level.d.ts +11 -0
  34. package/dist/cli/log-level.js +14 -0
  35. package/dist/command-line/context.d.ts +20 -6
  36. package/dist/command-line/emit/index.d.ts +4 -0
  37. package/dist/command-line/emit/index.js +4 -0
  38. package/dist/command-line/{output.d.ts → emit/output.d.ts} +7 -3
  39. package/dist/command-line/{output.js → emit/output.js} +13 -5
  40. package/dist/command-line/{rows.d.ts → emit/rows.d.ts} +2 -0
  41. package/dist/command-line/{rows.js → emit/rows.js} +6 -0
  42. package/dist/command-line/index.d.ts +6 -6
  43. package/dist/command-line/index.js +5 -6
  44. package/dist/command-line/input/arguments.d.ts +6 -0
  45. package/dist/command-line/input/arguments.js +20 -0
  46. package/dist/command-line/input/index.d.ts +3 -2
  47. package/dist/command-line/input/index.js +3 -2
  48. package/dist/command-line/input/manager-options.d.ts +10 -0
  49. package/dist/command-line/input/manager-options.js +38 -0
  50. package/dist/command-line/input/prompt.d.ts +1 -0
  51. package/dist/command-line/input/prompt.js +1 -0
  52. package/dist/command-line/two-phase/index.d.ts +2 -0
  53. package/dist/command-line/two-phase/index.js +2 -0
  54. package/dist/command-line/{two-phase.d.ts → two-phase/two-phase.d.ts} +14 -14
  55. package/dist/command-line/{two-phase.js → two-phase/two-phase.js} +11 -11
  56. package/dist/command-receipt/command.js +1 -1
  57. package/dist/command-tree/commands.d.ts +1 -1
  58. package/dist/command-tree/commands.js +1 -5
  59. package/dist/command-tree/deprecated.d.ts +2 -0
  60. package/dist/command-tree/deprecated.js +29 -0
  61. package/dist/command-tree/grammar.js +2 -0
  62. package/dist/command-tree/help.d.ts +2 -2
  63. package/dist/command-tree/help.js +13 -15
  64. package/dist/command-tree/index.d.ts +1 -0
  65. package/dist/command-tree/index.js +1 -0
  66. package/dist/command-tree/local.js +27 -7
  67. package/dist/command-tree/placeholder.js +1 -1
  68. package/dist/command-tree/row.d.ts +1 -0
  69. package/dist/command-tree/tree.d.ts +2 -1
  70. package/dist/command-tree/tree.js +35 -4
  71. package/dist/connection/client.d.ts +72 -18
  72. package/dist/connection/client.js +1 -0
  73. package/dist/connection/executors/executors.d.ts +18 -0
  74. package/dist/connection/executors/executors.js +95 -0
  75. package/dist/connection/executors/index.d.ts +2 -0
  76. package/dist/connection/executors/index.js +2 -0
  77. package/dist/connection/executors/reading.js +22 -0
  78. package/dist/connection/index.d.ts +1 -0
  79. package/dist/connection/index.js +1 -0
  80. package/dist/connection/input.js +4 -4
  81. package/dist/connection/login.d.ts +1 -1
  82. package/dist/connection/login.js +4 -3
  83. package/dist/connection/output/format.js +6 -3
  84. package/dist/connection/output/index.d.ts +1 -1
  85. package/dist/connection/output/index.js +1 -1
  86. package/dist/connection/resolve.d.ts +5 -0
  87. package/dist/connection/setup-file.js +227 -0
  88. package/dist/connection/setup-project.js +138 -0
  89. package/dist/connection/system.js +126 -61
  90. package/dist/connection/tree/tree.js +179 -10
  91. package/dist/container/client.d.ts +2 -0
  92. package/dist/events/commands.js +65 -0
  93. package/dist/events/index.js +2 -0
  94. package/dist/events/tree/index.js +2 -0
  95. package/dist/events/tree/tree.js +17 -0
  96. package/dist/fleet/fleet.d.ts +7 -8
  97. package/dist/fleet/fleet.js +18 -6
  98. package/dist/fleet/index.d.ts +1 -1
  99. package/dist/fleet/index.js +1 -1
  100. package/dist/github/client.d.ts +189 -0
  101. package/dist/github/client.js +16 -0
  102. package/dist/github/commands.d.ts +17 -0
  103. package/dist/github/commands.js +81 -0
  104. package/dist/github/index.d.ts +3 -0
  105. package/dist/github/index.js +3 -0
  106. package/dist/github/input.js +114 -0
  107. package/dist/github/output/format.js +78 -0
  108. package/dist/github/output/index.js +2 -0
  109. package/dist/github/tree/index.js +2 -0
  110. package/dist/github/tree/tree.js +28 -0
  111. package/dist/goal/client.d.ts +246 -0
  112. package/dist/goal/client.js +13 -0
  113. package/dist/goal/commands.d.ts +22 -0
  114. package/dist/goal/commands.js +110 -0
  115. package/dist/goal/index.d.ts +4 -0
  116. package/dist/goal/index.js +4 -0
  117. package/dist/goal/input.js +118 -0
  118. package/dist/goal/output/format.js +29 -0
  119. package/dist/goal/output/index.js +2 -0
  120. package/dist/goal/pause.d.ts +16 -0
  121. package/dist/goal/pause.js +91 -0
  122. package/dist/goal/tree/index.js +2 -0
  123. package/dist/goal/tree/tree.js +49 -0
  124. package/dist/hold/client.d.ts +2 -0
  125. package/dist/hold/tree/tree.js +2 -2
  126. package/dist/import/batch/batch.js +196 -0
  127. package/dist/import/batch/index.js +3 -0
  128. package/dist/import/batch/manifest.js +108 -0
  129. package/dist/import/client.d.ts +3 -3
  130. package/dist/import/client.js +1 -1
  131. package/dist/import/commands.d.ts +2 -0
  132. package/dist/import/commands.js +104 -18
  133. package/dist/import/detach.d.ts +12 -0
  134. package/dist/import/detach.js +70 -0
  135. package/dist/import/index.d.ts +2 -1
  136. package/dist/import/index.js +2 -1
  137. package/dist/import/input.js +68 -11
  138. package/dist/import/output.js +57 -8
  139. package/dist/inbox/client.d.ts +310 -0
  140. package/dist/inbox/client.js +15 -0
  141. package/dist/inbox/index.d.ts +2 -0
  142. package/dist/inbox/index.js +2 -0
  143. package/dist/integration/client.d.ts +607 -1
  144. package/dist/integration/client.js +41 -1
  145. package/dist/integration/commands.d.ts +16 -0
  146. package/dist/integration/commands.js +93 -10
  147. package/dist/integration/index.d.ts +1 -1
  148. package/dist/integration/index.js +1 -1
  149. package/dist/local-node/client.d.ts +13 -1
  150. package/dist/local-node/client.js +189 -234
  151. package/dist/local-node/index.d.ts +1 -1
  152. package/dist/local-node/index.js +1 -1
  153. package/dist/login/commands.js +7 -1
  154. package/dist/login/gateway.js +36 -13
  155. package/dist/login/menu.js +2 -1
  156. package/dist/login/vendor-account.js +3 -2
  157. package/dist/login/vendor-input.js +5 -4
  158. package/dist/mcp/calls.js +47 -221
  159. package/dist/mcp/routing.d.ts +3 -2
  160. package/dist/mcp/routing.js +38 -8
  161. package/dist/mcp/server.d.ts +10 -1
  162. package/dist/mcp/server.js +16 -6
  163. package/dist/migrate/classes.js +158 -0
  164. package/dist/migrate/commands.js +46 -0
  165. package/dist/migrate/format.js +199 -0
  166. package/dist/migrate/index.js +2 -0
  167. package/dist/migrate/item.js +59 -0
  168. package/dist/migrate/plan.js +79 -0
  169. package/dist/migrate/tree/index.js +2 -0
  170. package/dist/migrate/tree/tree.js +23 -0
  171. package/dist/node-update/client.d.ts +17 -0
  172. package/dist/node-update/client.js +27 -0
  173. package/dist/node-update/commands.d.ts +20 -0
  174. package/dist/node-update/commands.js +150 -0
  175. package/dist/node-update/index.d.ts +4 -0
  176. package/dist/node-update/index.js +4 -0
  177. package/dist/node-update/output.d.ts +12 -0
  178. package/dist/node-update/output.js +165 -0
  179. package/dist/node-update/tree/index.js +2 -0
  180. package/dist/node-update/tree/tree.js +73 -0
  181. package/dist/pairing/client.d.ts +13 -0
  182. package/dist/pairing/client.js +36 -0
  183. package/dist/pairing/commands.d.ts +15 -0
  184. package/dist/pairing/commands.js +131 -0
  185. package/dist/pairing/index.d.ts +4 -0
  186. package/dist/pairing/index.js +4 -0
  187. package/dist/pairing/output.d.ts +12 -0
  188. package/dist/pairing/output.js +53 -0
  189. package/dist/pairing/tree/index.js +2 -0
  190. package/dist/pairing/tree/tree.js +35 -0
  191. package/dist/panel/client.d.ts +9 -0
  192. package/dist/panel/client.js +24 -0
  193. package/dist/panel/commands.d.ts +19 -0
  194. package/dist/panel/commands.js +112 -0
  195. package/dist/panel/index.d.ts +3 -0
  196. package/dist/panel/index.js +3 -0
  197. package/dist/panel/tree/index.js +2 -0
  198. package/dist/panel/tree/tree.js +14 -0
  199. package/dist/port-lease/client.d.ts +3 -0
  200. package/dist/principal/client.d.ts +9 -0
  201. package/dist/principal/client.js +7 -0
  202. package/dist/principal/commands.d.ts +14 -0
  203. package/dist/principal/commands.js +84 -0
  204. package/dist/principal/index.d.ts +4 -0
  205. package/dist/principal/index.js +4 -0
  206. package/dist/principal/output.d.ts +8 -0
  207. package/dist/principal/output.js +43 -0
  208. package/dist/principal/tree/index.js +2 -0
  209. package/dist/principal/tree/tree.js +31 -0
  210. package/dist/project-guard/client.d.ts +13 -0
  211. package/dist/project-guard/input.js +15 -1
  212. package/dist/project-guard/output/format.js +5 -0
  213. package/dist/project-instructions/client.d.ts +56 -0
  214. package/dist/project-instructions/client.js +7 -0
  215. package/dist/project-instructions/commands.d.ts +13 -0
  216. package/dist/project-instructions/commands.js +89 -0
  217. package/dist/project-instructions/index.d.ts +3 -0
  218. package/dist/project-instructions/index.js +3 -0
  219. package/dist/project-instructions/input.js +33 -0
  220. package/dist/project-instructions/output/format.js +22 -0
  221. package/dist/project-instructions/output/index.js +2 -0
  222. package/dist/project-knowledge/change.js +22 -0
  223. package/dist/project-knowledge/client.d.ts +127 -0
  224. package/dist/project-knowledge/client.js +17 -0
  225. package/dist/project-knowledge/commands.d.ts +14 -0
  226. package/dist/project-knowledge/commands.js +100 -0
  227. package/dist/project-knowledge/index.d.ts +3 -0
  228. package/dist/project-knowledge/index.js +3 -0
  229. package/dist/project-knowledge/input.js +32 -0
  230. package/dist/project-knowledge/output/format.js +64 -0
  231. package/dist/project-knowledge/output/index.js +2 -0
  232. package/dist/project-knowledge/sources.js +108 -0
  233. package/dist/project-knowledge/upload.js +27 -0
  234. package/dist/project-workspace/git-reads.d.ts +12 -0
  235. package/dist/project-workspace/git-reads.js +71 -0
  236. package/dist/project-workspace/index.d.ts +1 -0
  237. package/dist/project-workspace/index.js +1 -0
  238. package/dist/project-workspace/metadata-client.d.ts +2 -0
  239. package/dist/project-workspace/output/human.js +1 -1
  240. package/dist/project-workspace/tree/tree.js +95 -5
  241. package/dist/reach/client.d.ts +9 -0
  242. package/dist/reach/client.js +7 -0
  243. package/dist/reach/commands.d.ts +14 -0
  244. package/dist/reach/commands.js +72 -0
  245. package/dist/reach/index.d.ts +3 -0
  246. package/dist/reach/index.js +3 -0
  247. package/dist/reach/output.js +41 -0
  248. package/dist/reach/tree/index.js +2 -0
  249. package/dist/reach/tree/tree.js +28 -0
  250. package/dist/reference/resolve.js +2 -1
  251. package/dist/remote-node/client.d.ts +85 -0
  252. package/dist/remote-node/commands.js +32 -17
  253. package/dist/remote-node/connector.d.ts +16 -0
  254. package/dist/remote-node/connector.js +10 -3
  255. package/dist/remote-node/reachability.js +31 -18
  256. package/dist/remote-node/reading.js +31 -0
  257. package/dist/remote-node/text.js +68 -5
  258. package/dist/remote-node/tree/tree.js +14 -3
  259. package/dist/routine/client.d.ts +547 -13
  260. package/dist/routine/client.js +19 -1
  261. package/dist/routine/commands.d.ts +5 -0
  262. package/dist/routine/commands.js +73 -15
  263. package/dist/routine/index.d.ts +2 -1
  264. package/dist/routine/index.js +2 -1
  265. package/dist/routine/input.js +66 -3
  266. package/dist/routine/output/format.js +80 -19
  267. package/dist/routine/output/index.js +1 -1
  268. package/dist/routine/portable/import-files.js +74 -0
  269. package/dist/routine/portable/import-output.js +21 -0
  270. package/dist/routine/portable/import.js +274 -0
  271. package/dist/routine/portable/index.js +3 -0
  272. package/dist/routine/portable/portable.js +185 -0
  273. package/dist/routine/tree/tree.js +80 -8
  274. package/dist/routine/trigger/commands.d.ts +20 -0
  275. package/dist/routine/trigger/commands.js +74 -0
  276. package/dist/routine/trigger/format.js +42 -0
  277. package/dist/routine/trigger/index.d.ts +2 -0
  278. package/dist/routine/trigger/index.js +2 -0
  279. package/dist/routine/trigger/input.js +81 -0
  280. package/dist/run-ledger/client.d.ts +47 -0
  281. package/dist/secret/client.d.ts +39 -0
  282. package/dist/secret/client.js +6 -0
  283. package/dist/secret/commands.d.ts +12 -0
  284. package/dist/secret/commands.js +91 -0
  285. package/dist/secret/index.d.ts +3 -0
  286. package/dist/secret/index.js +3 -0
  287. package/dist/secret/input.js +22 -0
  288. package/dist/secret/output/format.js +10 -0
  289. package/dist/secret/output/index.js +2 -0
  290. package/dist/secret/tree/index.js +2 -0
  291. package/dist/secret/tree/tree.js +16 -0
  292. package/dist/session/agent-permission.d.ts +3 -2
  293. package/dist/session/approval/client.d.ts +9 -5
  294. package/dist/session/approval/client.js +2 -2
  295. package/dist/session/approval/commands.d.ts +8 -0
  296. package/dist/session/approval/commands.js +272 -22
  297. package/dist/session/approval/index.d.ts +1 -1
  298. package/dist/session/approval/index.js +1 -1
  299. package/dist/session/approval/output/format.js +53 -1
  300. package/dist/session/approval/output/index.js +1 -1
  301. package/dist/session/attach.d.ts +1 -1
  302. package/dist/session/attach.js +7 -2
  303. package/dist/session/client.d.ts +18 -13
  304. package/dist/session/client.js +39 -19
  305. package/dist/session/coding-client.d.ts +2 -0
  306. package/dist/session/coding-client.js +1 -2
  307. package/dist/session/coding-commands.js +24 -7
  308. package/dist/session/command/commands.js +109 -0
  309. package/dist/session/command/index.js +2 -0
  310. package/dist/session/commands.d.ts +6 -1
  311. package/dist/session/commands.js +411 -73
  312. package/dist/session/create-tasks.js +23 -51
  313. package/dist/session/creation/creation.js +51 -0
  314. package/dist/session/creation/index.js +2 -0
  315. package/dist/session/fork/fork.js +135 -0
  316. package/dist/session/fork/index.js +2 -0
  317. package/dist/session/git-status.d.ts +11 -0
  318. package/dist/session/git-status.js +30 -0
  319. package/dist/session/index.d.ts +4 -3
  320. package/dist/session/index.js +3 -2
  321. package/dist/session/interaction/client.d.ts +3 -0
  322. package/dist/session/move/index.js +2 -0
  323. package/dist/session/move/move.js +439 -0
  324. package/dist/session/output/held.js +28 -0
  325. package/dist/session/output/human.js +64 -10
  326. package/dist/session/output/tasks.js +68 -7
  327. package/dist/session/setup/index.js +2 -0
  328. package/dist/session/setup/setup.js +69 -0
  329. package/dist/session/spawn/caps.js +128 -0
  330. package/dist/session/spawn/index.js +5 -0
  331. package/dist/session/spawn/spawn.js +203 -0
  332. package/dist/session/spawn/standing.js +62 -0
  333. package/dist/session/spawn/supervision.js +62 -0
  334. package/dist/session/switch/index.js +2 -0
  335. package/dist/session/switch/switch.js +103 -0
  336. package/dist/session/tree/tree.js +328 -32
  337. package/dist/session/turn/attachments.js +54 -0
  338. package/dist/session/turn/client.d.ts +3 -1
  339. package/dist/session/turn/client.js +6 -1
  340. package/dist/session/turn/commands.d.ts +5 -1
  341. package/dist/session/turn/commands.js +204 -31
  342. package/dist/session/turn/index.d.ts +2 -2
  343. package/dist/session/turn/index.js +1 -1
  344. package/dist/session/turn/output.d.ts +31 -1
  345. package/dist/session/turn/output.js +45 -2
  346. package/dist/skills-sync/client.d.ts +9 -0
  347. package/dist/skills-sync/client.js +7 -0
  348. package/dist/skills-sync/commands.d.ts +15 -0
  349. package/dist/skills-sync/commands.js +241 -0
  350. package/dist/skills-sync/index.d.ts +3 -0
  351. package/dist/skills-sync/index.js +3 -0
  352. package/dist/skills-sync/output.js +168 -0
  353. package/dist/skills-sync/set-file.js +23 -0
  354. package/dist/skills-sync/tree/index.js +2 -0
  355. package/dist/skills-sync/tree/tree.js +38 -0
  356. package/dist/status/client.d.ts +21 -3
  357. package/dist/status/command.js +6 -3
  358. package/dist/status/doctor.d.ts +5 -1
  359. package/dist/status/doctor.js +14 -7
  360. package/dist/status/output/compact.d.ts +3 -0
  361. package/dist/status/output/compact.js +17 -7
  362. package/dist/status/output/human.js +25 -0
  363. package/dist/team-workspace/client.d.ts +1 -0
  364. package/dist/terminal/control-commands.js +26 -9
  365. package/dist/terminal/keys.js +62 -0
  366. package/dist/terminal/output/compact-list.js +3 -0
  367. package/dist/terminal/output/human.js +2 -2
  368. package/dist/terminal/tree/tree.js +1 -1
  369. package/dist/text-input/index.js +2 -0
  370. package/dist/text-input/text-input.js +35 -0
  371. package/dist/webhooks/client.d.ts +157 -0
  372. package/dist/webhooks/client.js +8 -0
  373. package/dist/webhooks/commands.d.ts +17 -0
  374. package/dist/webhooks/commands.js +76 -0
  375. package/dist/webhooks/index.d.ts +3 -0
  376. package/dist/webhooks/index.js +3 -0
  377. package/dist/webhooks/input.js +125 -0
  378. package/dist/webhooks/output/format.js +75 -0
  379. package/dist/webhooks/output/index.js +2 -0
  380. package/dist/webhooks/tree/index.js +2 -0
  381. package/dist/webhooks/tree/tree.js +49 -0
  382. package/guidance/maia-cli/SKILL.md +1 -1
  383. package/guidance/maia-node/SKILL.md +54 -0
  384. package/guidance/maia-orchestration/SKILL.md +1 -2
  385. package/guidance/maia-sessions/SKILL.md +110 -0
  386. package/package.json +7 -6
  387. package/dist/address-space/address-space.d.ts +0 -38
  388. package/dist/address-space/index.d.ts +0 -2
  389. package/dist/agents/input.d.ts +0 -130
  390. package/dist/agents/output/format.d.ts +0 -8
  391. package/dist/agents/output/index.d.ts +0 -2
  392. package/dist/agents/tree/index.d.ts +0 -2
  393. package/dist/agents/tree/tree.d.ts +0 -3
  394. package/dist/bootstrap/exit.d.ts +0 -14
  395. package/dist/bootstrap/exit.js +0 -42
  396. package/dist/bootstrap/index.d.ts +0 -3
  397. package/dist/bootstrap/index.js +0 -3
  398. package/dist/bootstrap/process.d.ts +0 -5
  399. package/dist/bootstrap/process.js +0 -23
  400. package/dist/bootstrap/run.d.ts +0 -25
  401. package/dist/bootstrap/run.js +0 -95
  402. package/dist/bootstrap/stdio.d.ts +0 -4
  403. package/dist/bootstrap/stdio.js +0 -9
  404. package/dist/cli/environment.d.ts +0 -8
  405. package/dist/cli/services.d.ts +0 -4
  406. package/dist/command-line/context.js +0 -2
  407. package/dist/command-line/input/stdin-stream.d.ts +0 -4
  408. package/dist/command-line/json-decoder.d.ts +0 -3
  409. package/dist/command-receipt/command.d.ts +0 -4
  410. package/dist/command-receipt/compact-list.d.ts +0 -20
  411. package/dist/command-receipt/index.d.ts +0 -3
  412. package/dist/command-tree/completion.d.ts +0 -6
  413. package/dist/command-tree/local.d.ts +0 -3
  414. package/dist/command-tree/row.js +0 -2
  415. package/dist/connection/access/format.d.ts +0 -8
  416. package/dist/connection/access/input.d.ts +0 -53
  417. package/dist/connection/input.d.ts +0 -50
  418. package/dist/connection/signin.d.ts +0 -4
  419. package/dist/connection/tree/index.d.ts +0 -2
  420. package/dist/connection/tree/tree.d.ts +0 -3
  421. package/dist/container/output/format.d.ts +0 -11
  422. package/dist/container/output/index.d.ts +0 -2
  423. package/dist/context/client.d.ts +0 -7
  424. package/dist/context/commands.d.ts +0 -3
  425. package/dist/context/index.d.ts +0 -3
  426. package/dist/dashboard/cockpit-client.d.ts +0 -6
  427. package/dist/dashboard/cockpit-client.js +0 -27
  428. package/dist/dashboard/cockpits.d.ts +0 -29
  429. package/dist/dashboard/cockpits.js +0 -65
  430. package/dist/dashboard/dashboard.d.ts +0 -7
  431. package/dist/dashboard/draw.d.ts +0 -15
  432. package/dist/dashboard/frame.d.ts +0 -4
  433. package/dist/dashboard/index.d.ts +0 -2
  434. package/dist/dashboard/modes.d.ts +0 -5
  435. package/dist/dashboard/node-connection.d.ts +0 -15
  436. package/dist/dashboard/node-connection.js +0 -51
  437. package/dist/dashboard/pi-tui.d.ts +0 -6
  438. package/dist/dashboard/status-bar.d.ts +0 -4
  439. package/dist/dashboard/terminal.d.ts +0 -53
  440. package/dist/dashboard/tree-model.d.ts +0 -28
  441. package/dist/dashboard/tree.d.ts +0 -10
  442. package/dist/development/cli.d.ts +0 -3
  443. package/dist/development/cli.js +0 -44
  444. package/dist/execution/tree/index.d.ts +0 -2
  445. package/dist/execution/tree/tree.d.ts +0 -3
  446. package/dist/hold/output/format.d.ts +0 -11
  447. package/dist/hold/output/index.d.ts +0 -2
  448. package/dist/hold/tree/index.d.ts +0 -2
  449. package/dist/hold/tree/tree.d.ts +0 -3
  450. package/dist/import/input.d.ts +0 -16
  451. package/dist/import/output.d.ts +0 -6
  452. package/dist/integration/output.d.ts +0 -22
  453. package/dist/login/failure.d.ts +0 -3
  454. package/dist/login/gateway.d.ts +0 -12
  455. package/dist/login/menu.d.ts +0 -4
  456. package/dist/login/output/format.d.ts +0 -16
  457. package/dist/login/output/index.d.ts +0 -2
  458. package/dist/login/vendor-account.d.ts +0 -95
  459. package/dist/login/vendor-input.d.ts +0 -14
  460. package/dist/mcp/calls.d.ts +0 -8
  461. package/dist/orchestration/output/compact-aggregate.d.ts +0 -121
  462. package/dist/orchestration/output/compact-run-list.d.ts +0 -20
  463. package/dist/orchestration/output/human.d.ts +0 -80
  464. package/dist/orchestration/output/index.d.ts +0 -4
  465. package/dist/orchestration/tree/index.d.ts +0 -2
  466. package/dist/orchestration/tree/tree.d.ts +0 -3
  467. package/dist/port-lease/input.d.ts +0 -65
  468. package/dist/port-lease/output/format.d.ts +0 -11
  469. package/dist/port-lease/output/index.d.ts +0 -2
  470. package/dist/presentation/output/format.d.ts +0 -11
  471. package/dist/presentation/output/index.d.ts +0 -3
  472. package/dist/project-guard/input.d.ts +0 -18
  473. package/dist/project-guard/output/format.d.ts +0 -11
  474. package/dist/project-guard/output/index.d.ts +0 -2
  475. package/dist/project-workspace/output/human.d.ts +0 -139
  476. package/dist/project-workspace/output/index.d.ts +0 -3
  477. package/dist/project-workspace/output/metadata.d.ts +0 -11
  478. package/dist/project-workspace/tree/index.d.ts +0 -2
  479. package/dist/project-workspace/tree/tree.d.ts +0 -3
  480. package/dist/provider/client.d.ts +0 -6
  481. package/dist/provider/commands.d.ts +0 -3
  482. package/dist/provider/index.d.ts +0 -3
  483. package/dist/reference/commands.d.ts +0 -3
  484. package/dist/reference/index.d.ts +0 -3
  485. package/dist/reference/resolve.d.ts +0 -31
  486. package/dist/reference/tree/index.d.ts +0 -2
  487. package/dist/reference/tree/tree.d.ts +0 -3
  488. package/dist/remote-node/reachability.d.ts +0 -64
  489. package/dist/remote-node/text.d.ts +0 -10
  490. package/dist/remote-node/tree/index.d.ts +0 -2
  491. package/dist/remote-node/tree/tree.d.ts +0 -3
  492. package/dist/routine/input.d.ts +0 -28
  493. package/dist/routine/output/format.d.ts +0 -23
  494. package/dist/routine/output/index.d.ts +0 -2
  495. package/dist/routine/tree/index.d.ts +0 -2
  496. package/dist/routine/tree/tree.d.ts +0 -3
  497. package/dist/run-ledger/input.d.ts +0 -42
  498. package/dist/run-ledger/output/format.d.ts +0 -11
  499. package/dist/run-ledger/output/index.d.ts +0 -2
  500. package/dist/session/approval/output/format.d.ts +0 -23
  501. package/dist/session/approval/output/index.d.ts +0 -2
  502. package/dist/session/attach-render.d.ts +0 -16
  503. package/dist/session/create-tasks.d.ts +0 -20
  504. package/dist/session/interaction/input.d.ts +0 -15
  505. package/dist/session/interaction/output/format.d.ts +0 -11
  506. package/dist/session/interaction/output/index.d.ts +0 -2
  507. package/dist/session/output/diff.d.ts +0 -3
  508. package/dist/session/output/failure.d.ts +0 -11
  509. package/dist/session/output/human.d.ts +0 -113
  510. package/dist/session/output/index.d.ts +0 -6
  511. package/dist/session/output/observe.d.ts +0 -4
  512. package/dist/session/output/tasks.d.ts +0 -34
  513. package/dist/session/task-file.d.ts +0 -5
  514. package/dist/session/tree/index.d.ts +0 -2
  515. package/dist/session/tree/tree.d.ts +0 -3
  516. package/dist/team-workspace/ceremony.d.ts +0 -19
  517. package/dist/team-workspace/confirmation.d.ts +0 -4
  518. package/dist/team-workspace/dependencies.js +0 -2
  519. package/dist/team-workspace/output.d.ts +0 -15
  520. package/dist/terminal/arguments.d.ts +0 -13
  521. package/dist/terminal/output/compact-list.d.ts +0 -148
  522. package/dist/terminal/output/human.d.ts +0 -42
  523. package/dist/terminal/output/index.d.ts +0 -3
  524. package/dist/terminal/tree/index.d.ts +0 -2
  525. package/dist/terminal/tree/tree.d.ts +0 -3
  526. /package/dist/command-line/{json-decoder.js → emit/json-decoder.js} +0 -0
  527. /package/dist/command-line/{json.d.ts → emit/json.d.ts} +0 -0
  528. /package/dist/command-line/{json.js → emit/json.js} +0 -0
@@ -9,6 +9,7 @@ export type TreeNode = {
9
9
  readonly children: readonly TreeNode[];
10
10
  readonly example?: string;
11
11
  readonly forms: readonly TreeLeafForm[];
12
+ readonly json?: false;
12
13
  readonly kind?: TreeLeafKind;
13
14
  readonly name: string;
14
15
  readonly node?: true;
@@ -20,7 +21,7 @@ export type TreeNode = {
20
21
  readonly summary: string;
21
22
  };
22
23
  export declare const TREE_FRAGMENTS: readonly TreeFragment[];
23
- export declare const TREE_SECTIONS: readonly [readonly ["Start and sign in", readonly ["setup", "login", "status"]], readonly ["Work", readonly ["session", "run", "routine", "import"]], readonly ["Resources", readonly ["project", "workspace", "container", "terminal", "execution", "port", "reference", "agents"]], readonly ["Accounts and Nodes", readonly ["connection", "integration", "provider", "node"]], readonly ["Safety and audit", readonly ["hold", "receipt", "context"]], readonly ["Clients and local", readonly ["presentation", "mcp", "dashboard", "agent", "help", "version", "doctor", "completion"]]];
24
+ export declare const TREE_SECTIONS: readonly [readonly ["Start and sign in", readonly ["setup", "login", "status", "migrate"]], readonly ["Work", readonly ["inbox", "session", "run", "board", "routine", "pr", "goal", "import"]], readonly ["Resources", readonly ["project", "workspace", "container", "terminal", "execution", "port", "reference", "agents", "skills", "webhooks"]], readonly ["Accounts and Nodes", readonly ["connection", "executors", "integration", "provider", "node", "principal"]], readonly ["Safety and audit", readonly ["hold", "secret", "receipt", "events", "context"]], readonly ["Clients and local", readonly ["presentation", "mcp", "dashboard", "panel", "agent", "help", "version", "doctor", "completion"]]];
24
25
  export declare const usagePath: (usage: string) => readonly string[];
25
26
  export declare const COMMAND_TREE: TreeNode;
26
27
  export declare const commandTree: () => TreeNode;
@@ -1,33 +1,56 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { AGENTS_TREE } from "../agents/tree/index.js";
3
+ import { BOARD_TREE } from "../board/tree/index.js";
3
4
  import { CONNECTION_TREE } from "../connection/tree/index.js";
5
+ import { EVENTS_TREE } from "../events/tree/index.js";
4
6
  import { EXECUTION_TREE } from "../execution/tree/index.js";
7
+ import { PR_TREE } from "../github/tree/index.js";
8
+ import { GOAL_TREE } from "../goal/tree/index.js";
5
9
  import { SAFETY_TREE } from "../hold/tree/index.js";
10
+ import { MIGRATE_TREE } from "../migrate/tree/index.js";
6
11
  import { RUN_TREE } from "../orchestration/tree/index.js";
12
+ import { PANEL_TREE } from "../panel/tree/index.js";
13
+ import { PRINCIPAL_TREE } from "../principal/tree/index.js";
7
14
  import { PROJECT_TREE } from "../project-workspace/tree/index.js";
8
15
  import { REFERENCE_TREE } from "../reference/tree/index.js";
9
16
  import { NODE_TREE } from "../remote-node/tree/index.js";
10
17
  import { ROUTINE_TREE } from "../routine/tree/index.js";
18
+ import { SECRET_TREE } from "../secret/tree/index.js";
11
19
  import { SESSION_TREE } from "../session/tree/index.js";
20
+ import { SKILLS_SYNC_TREE } from "../skills-sync/tree/index.js";
12
21
  import { TERMINAL_TREE } from "../terminal/tree/index.js";
22
+ import { WEBHOOKS_TREE } from "../webhooks/tree/index.js";
13
23
  import { LOCAL_TREE } from "./local.js";
14
24
  export const TREE_FRAGMENTS = [
15
25
  NODE_TREE,
16
26
  CONNECTION_TREE,
17
27
  SESSION_TREE,
18
28
  RUN_TREE,
29
+ BOARD_TREE,
19
30
  ROUTINE_TREE,
20
31
  PROJECT_TREE,
21
32
  REFERENCE_TREE,
33
+ EVENTS_TREE,
22
34
  TERMINAL_TREE,
23
35
  EXECUTION_TREE,
24
36
  SAFETY_TREE,
37
+ SECRET_TREE,
25
38
  AGENTS_TREE,
39
+ WEBHOOKS_TREE,
40
+ PR_TREE,
41
+ GOAL_TREE,
42
+ PANEL_TREE,
43
+ SKILLS_SYNC_TREE,
44
+ PRINCIPAL_TREE,
45
+ MIGRATE_TREE,
26
46
  LOCAL_TREE,
27
47
  ];
28
48
  export const TREE_SECTIONS = [
29
- ["Start and sign in", ["setup", "login", "status"]],
30
- ["Work", ["session", "run", "routine", "import"]],
49
+ ["Start and sign in", ["setup", "login", "status", "migrate"]],
50
+ [
51
+ "Work",
52
+ ["inbox", "session", "run", "board", "routine", "pr", "goal", "import"],
53
+ ],
31
54
  [
32
55
  "Resources",
33
56
  [
@@ -39,16 +62,22 @@ export const TREE_SECTIONS = [
39
62
  "port",
40
63
  "reference",
41
64
  "agents",
65
+ "skills",
66
+ "webhooks",
42
67
  ],
43
68
  ],
44
- ["Accounts and Nodes", ["connection", "integration", "provider", "node"]],
45
- ["Safety and audit", ["hold", "receipt", "context"]],
69
+ [
70
+ "Accounts and Nodes",
71
+ ["connection", "executors", "integration", "provider", "node", "principal"],
72
+ ],
73
+ ["Safety and audit", ["hold", "secret", "receipt", "events", "context"]],
46
74
  [
47
75
  "Clients and local",
48
76
  [
49
77
  "presentation",
50
78
  "mcp",
51
79
  "dashboard",
80
+ "panel",
52
81
  "agent",
53
82
  "help",
54
83
  "version",
@@ -92,6 +121,8 @@ const addLeaf = (root, row) => {
92
121
  node.operations = operations === "" ? [] : [operations].flat();
93
122
  node.kind = extra.kind ?? "operation";
94
123
  node.run = extra.run;
124
+ if (extra.json !== undefined)
125
+ node.json = extra.json;
95
126
  if (extra.node !== undefined)
96
127
  node.node = extra.node;
97
128
  if (extra.remote !== undefined)
@@ -1,5 +1,5 @@
1
- import { type ConnectionCapacitySetParameters, type ConnectionCreateParameters, type ConnectionDetectParameters, type ConnectionGatewayCreateParameters, type ConnectionListParameters, type ConnectionLoginStartParameters, type ConnectionModelsListParameters, type ConnectionShowParameters, type ConnectionStateSetParameters, type ConnectionSystemConfirmParameters, type ConnectionSystemPreviewParameters, type ConnectionUpkeepConfirmParameters, type ConnectionUpkeepPreviewParameters, type ConnectionUpkeepRefreshParameters, type ConnectionUsageShowParameters } from "@maiaos/sdk";
2
- import type { CliNodeOperations } from "../local-node/index.js";
1
+ import { type ConnectionCapacitySetParameters, type ConnectionCreateParameters, type ConnectionDetectParameters, type ConnectionGatewayCreateParameters, type ConnectionListParameters, type ConnectionLoginStartParameters, type ConnectionModelsListParameters, type ConnectionShowParameters, type ConnectionStateSetParameters, type ConnectionSystemConfirmParameters, type ConnectionSystemPreviewParameters, type ConnectionUpkeepConfirmParameters, type ConnectionUpkeepPreviewParameters, type ConnectionUpkeepRefreshParameters, type ConnectionUsageShowParameters, type InstalledHarnessListResult } from "@maiaos/sdk";
2
+ import type { CliNodeEffect, CliNodeOperations } from "../local-node/index.js";
3
3
  export declare const makeConnectionClient: (node: CliNodeOperations) => {
4
4
  confirmConnectionGrant: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionGrantSetConfirmParameters, import("@maiaos/sdk").ConnectionGrantSetConfirmResult>;
5
5
  confirmConnectionPool: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolSetConfirmParameters, import("@maiaos/sdk").ConnectionPoolSetConfirmResult>;
@@ -7,7 +7,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
7
7
  listConnectionPools: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolListParameters, import("@maiaos/sdk").ConnectionPoolListResult>;
8
8
  previewConnectionGrant: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionGrantSetPreviewParameters, import("@maiaos/sdk").ConnectionGrantSetPreviewResult>;
9
9
  previewConnectionPool: import("./access/client.js").Operation<import("@maiaos/sdk").ConnectionPoolSetPreviewParameters, import("@maiaos/sdk").ConnectionPoolSetPreviewResult>;
10
- listConnectionModels: (input: ConnectionModelsListParameters) => import("../local-node/client.js").CliNodeEffect<{
10
+ listConnectionModels: (input: ConnectionModelsListParameters) => CliNodeEffect<{
11
11
  readonly connectionId: string;
12
12
  readonly format: "anthropic" | "openai";
13
13
  readonly method: "connection.models.list";
@@ -18,7 +18,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
18
18
  readonly omitted: number;
19
19
  readonly truncated: boolean;
20
20
  }>;
21
- listConnections: (input: ConnectionListParameters) => import("../local-node/client.js").CliNodeEffect<{
21
+ listConnections: (input: ConnectionListParameters) => CliNodeEffect<{
22
22
  readonly items: readonly {
23
23
  readonly configRoot: {
24
24
  readonly kind: "maia-managed";
@@ -28,9 +28,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
28
28
  };
29
29
  readonly connectionId: string;
30
30
  readonly createdAt: string;
31
+ readonly endpoint?: {
32
+ readonly credential: "cli-config";
33
+ readonly host: string;
34
+ } | undefined;
31
35
  readonly executor: "claude-code" | "codex-cli" | "gateway";
32
36
  readonly gateway?: {
33
37
  readonly baseUrl: string;
38
+ readonly keyEnv?: string | undefined;
34
39
  } | undefined;
35
40
  readonly limitedUntil: string | null;
36
41
  readonly maxConcurrentSessions: number;
@@ -66,7 +71,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
66
71
  readonly method: "connection.list";
67
72
  readonly nextCursor?: string | undefined;
68
73
  }>;
69
- showConnection: (input: ConnectionShowParameters) => import("../local-node/client.js").CliNodeEffect<{
74
+ showConnection: (input: ConnectionShowParameters) => CliNodeEffect<{
70
75
  readonly connection: {
71
76
  readonly configRoot: {
72
77
  readonly kind: "maia-managed";
@@ -76,9 +81,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
76
81
  };
77
82
  readonly connectionId: string;
78
83
  readonly createdAt: string;
84
+ readonly endpoint?: {
85
+ readonly credential: "cli-config";
86
+ readonly host: string;
87
+ } | undefined;
79
88
  readonly executor: "claude-code" | "codex-cli" | "gateway";
80
89
  readonly gateway?: {
81
90
  readonly baseUrl: string;
91
+ readonly keyEnv?: string | undefined;
82
92
  } | undefined;
83
93
  readonly limitedUntil: string | null;
84
94
  readonly maxConcurrentSessions: number;
@@ -113,7 +123,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
113
123
  };
114
124
  readonly method: "connection.show";
115
125
  }>;
116
- showConnectionUsage: (input: ConnectionUsageShowParameters) => import("../local-node/client.js").CliNodeEffect<{
126
+ showConnectionUsage: (input: ConnectionUsageShowParameters) => CliNodeEffect<{
117
127
  readonly connection: {
118
128
  readonly configRoot: {
119
129
  readonly kind: "maia-managed";
@@ -123,9 +133,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
123
133
  };
124
134
  readonly connectionId: string;
125
135
  readonly createdAt: string;
136
+ readonly endpoint?: {
137
+ readonly credential: "cli-config";
138
+ readonly host: string;
139
+ } | undefined;
126
140
  readonly executor: "claude-code" | "codex-cli" | "gateway";
127
141
  readonly gateway?: {
128
142
  readonly baseUrl: string;
143
+ readonly keyEnv?: string | undefined;
129
144
  } | undefined;
130
145
  readonly limitedUntil: string | null;
131
146
  readonly maxConcurrentSessions: number;
@@ -160,7 +175,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
160
175
  };
161
176
  readonly method: "connection.usage.show";
162
177
  }>;
163
- createConnection: (input: ConnectionCreateParameters) => import("../local-node/client.js").CliNodeEffect<{
178
+ createConnection: (input: ConnectionCreateParameters) => CliNodeEffect<{
164
179
  readonly commandId: string;
165
180
  readonly connection: {
166
181
  readonly configRoot: {
@@ -171,9 +186,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
171
186
  };
172
187
  readonly connectionId: string;
173
188
  readonly createdAt: string;
189
+ readonly endpoint?: {
190
+ readonly credential: "cli-config";
191
+ readonly host: string;
192
+ } | undefined;
174
193
  readonly executor: "claude-code" | "codex-cli" | "gateway";
175
194
  readonly gateway?: {
176
195
  readonly baseUrl: string;
196
+ readonly keyEnv?: string | undefined;
177
197
  } | undefined;
178
198
  readonly limitedUntil: string | null;
179
199
  readonly maxConcurrentSessions: number;
@@ -214,6 +234,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
214
234
  readonly createdAt: string;
215
235
  readonly eventCursor: string;
216
236
  readonly method: string;
237
+ readonly proposedBy?: string | undefined;
217
238
  readonly receiptId: string;
218
239
  readonly schemaVersion: 1;
219
240
  readonly state: "succeeded";
@@ -225,7 +246,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
225
246
  };
226
247
  readonly method: "connection.create";
227
248
  }>;
228
- setConnectionCapacity: (input: ConnectionCapacitySetParameters) => import("../local-node/client.js").CliNodeEffect<{
249
+ setConnectionCapacity: (input: ConnectionCapacitySetParameters) => CliNodeEffect<{
229
250
  readonly commandId: string;
230
251
  readonly connection: {
231
252
  readonly configRoot: {
@@ -236,9 +257,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
236
257
  };
237
258
  readonly connectionId: string;
238
259
  readonly createdAt: string;
260
+ readonly endpoint?: {
261
+ readonly credential: "cli-config";
262
+ readonly host: string;
263
+ } | undefined;
239
264
  readonly executor: "claude-code" | "codex-cli" | "gateway";
240
265
  readonly gateway?: {
241
266
  readonly baseUrl: string;
267
+ readonly keyEnv?: string | undefined;
242
268
  } | undefined;
243
269
  readonly limitedUntil: string | null;
244
270
  readonly maxConcurrentSessions: number;
@@ -279,6 +305,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
279
305
  readonly createdAt: string;
280
306
  readonly eventCursor: string;
281
307
  readonly method: string;
308
+ readonly proposedBy?: string | undefined;
282
309
  readonly receiptId: string;
283
310
  readonly schemaVersion: 1;
284
311
  readonly state: "succeeded";
@@ -291,7 +318,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
291
318
  readonly expectedRevision: string;
292
319
  readonly method: "connection.capacity.set";
293
320
  }>;
294
- setConnectionState: (input: ConnectionStateSetParameters) => import("../local-node/client.js").CliNodeEffect<{
321
+ setConnectionState: (input: ConnectionStateSetParameters) => CliNodeEffect<{
295
322
  readonly commandId: string;
296
323
  readonly connection: {
297
324
  readonly configRoot: {
@@ -302,9 +329,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
302
329
  };
303
330
  readonly connectionId: string;
304
331
  readonly createdAt: string;
332
+ readonly endpoint?: {
333
+ readonly credential: "cli-config";
334
+ readonly host: string;
335
+ } | undefined;
305
336
  readonly executor: "claude-code" | "codex-cli" | "gateway";
306
337
  readonly gateway?: {
307
338
  readonly baseUrl: string;
339
+ readonly keyEnv?: string | undefined;
308
340
  } | undefined;
309
341
  readonly limitedUntil: string | null;
310
342
  readonly maxConcurrentSessions: number;
@@ -345,6 +377,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
345
377
  readonly createdAt: string;
346
378
  readonly eventCursor: string;
347
379
  readonly method: string;
380
+ readonly proposedBy?: string | undefined;
348
381
  readonly receiptId: string;
349
382
  readonly schemaVersion: 1;
350
383
  readonly state: "succeeded";
@@ -357,7 +390,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
357
390
  readonly expectedRevision: string;
358
391
  readonly method: "connection.state.set";
359
392
  }>;
360
- createGatewayConnection: (input: ConnectionGatewayCreateParameters) => import("../local-node/client.js").CliNodeEffect<{
393
+ createGatewayConnection: (input: ConnectionGatewayCreateParameters) => CliNodeEffect<{
361
394
  readonly commandId: string;
362
395
  readonly connection: {
363
396
  readonly configRoot: {
@@ -368,9 +401,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
368
401
  };
369
402
  readonly connectionId: string;
370
403
  readonly createdAt: string;
404
+ readonly endpoint?: {
405
+ readonly credential: "cli-config";
406
+ readonly host: string;
407
+ } | undefined;
371
408
  readonly executor: "claude-code" | "codex-cli" | "gateway";
372
409
  readonly gateway?: {
373
410
  readonly baseUrl: string;
411
+ readonly keyEnv?: string | undefined;
374
412
  } | undefined;
375
413
  readonly limitedUntil: string | null;
376
414
  readonly maxConcurrentSessions: number;
@@ -411,6 +449,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
411
449
  readonly createdAt: string;
412
450
  readonly eventCursor: string;
413
451
  readonly method: string;
452
+ readonly proposedBy?: string | undefined;
414
453
  readonly receiptId: string;
415
454
  readonly schemaVersion: 1;
416
455
  readonly state: "succeeded";
@@ -420,10 +459,10 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
420
459
  };
421
460
  readonly updatedAt: string;
422
461
  };
423
- readonly keyCustody: "kept" | "stored";
462
+ readonly keyCustody: "kept" | "referenced" | "stored";
424
463
  readonly method: "connection.gateway.create";
425
464
  }>;
426
- startConnectionLogin: (input: ConnectionLoginStartParameters) => import("../local-node/client.js").CliNodeEffect<{
465
+ startConnectionLogin: (input: ConnectionLoginStartParameters) => CliNodeEffect<{
427
466
  readonly commandId: string;
428
467
  readonly connection: {
429
468
  readonly configRoot: {
@@ -434,9 +473,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
434
473
  };
435
474
  readonly connectionId: string;
436
475
  readonly createdAt: string;
476
+ readonly endpoint?: {
477
+ readonly credential: "cli-config";
478
+ readonly host: string;
479
+ } | undefined;
437
480
  readonly executor: "claude-code" | "codex-cli" | "gateway";
438
481
  readonly gateway?: {
439
482
  readonly baseUrl: string;
483
+ readonly keyEnv?: string | undefined;
440
484
  } | undefined;
441
485
  readonly limitedUntil: string | null;
442
486
  readonly maxConcurrentSessions: number;
@@ -477,6 +521,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
477
521
  readonly createdAt: string;
478
522
  readonly eventCursor: string;
479
523
  readonly method: string;
524
+ readonly proposedBy?: string | undefined;
480
525
  readonly receiptId: string;
481
526
  readonly schemaVersion: 1;
482
527
  readonly state: "succeeded";
@@ -496,7 +541,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
496
541
  };
497
542
  readonly method: "connection.login.start";
498
543
  }>;
499
- confirmSystemConnections: (input: ConnectionSystemConfirmParameters) => import("../local-node/client.js").CliNodeEffect<{
544
+ confirmSystemConnections: (input: ConnectionSystemConfirmParameters) => CliNodeEffect<{
500
545
  readonly actorId: string;
501
546
  readonly commandId: string;
502
547
  readonly delivery: "duplicate" | "new";
@@ -509,6 +554,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
509
554
  readonly createdAt: string;
510
555
  readonly eventCursor: string;
511
556
  readonly method: string;
557
+ readonly proposedBy?: string | undefined;
512
558
  readonly receiptId: string;
513
559
  readonly schemaVersion: 1;
514
560
  readonly state: "succeeded";
@@ -527,9 +573,14 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
527
573
  };
528
574
  readonly connectionId: string;
529
575
  readonly createdAt: string;
576
+ readonly endpoint?: {
577
+ readonly credential: "cli-config";
578
+ readonly host: string;
579
+ } | undefined;
530
580
  readonly executor: "claude-code" | "codex-cli" | "gateway";
531
581
  readonly gateway?: {
532
582
  readonly baseUrl: string;
583
+ readonly keyEnv?: string | undefined;
533
584
  } | undefined;
534
585
  readonly limitedUntil: string | null;
535
586
  readonly maxConcurrentSessions: number;
@@ -569,6 +620,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
569
620
  readonly createdAt: string;
570
621
  readonly eventCursor: string;
571
622
  readonly method: string;
623
+ readonly proposedBy?: string | undefined;
572
624
  readonly receiptId: string;
573
625
  readonly schemaVersion: 1;
574
626
  readonly state: "succeeded";
@@ -582,7 +634,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
582
634
  }[];
583
635
  readonly method: "connection.system.confirm";
584
636
  }>;
585
- detectConnections: (input: ConnectionDetectParameters) => import("../local-node/client.js").CliNodeEffect<{
637
+ detectConnections: (input: ConnectionDetectParameters) => CliNodeEffect<{
586
638
  readonly executors: readonly [{
587
639
  readonly accountKind?: string | undefined;
588
640
  readonly auth: "custom-endpoint" | "none" | "unknown" | "vendor-login";
@@ -666,7 +718,8 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
666
718
  }];
667
719
  readonly method: "connection.detect";
668
720
  }>;
669
- previewSystemConnections: (input: ConnectionSystemPreviewParameters) => import("../local-node/client.js").CliNodeEffect<{
721
+ listInstalledHarnesses: () => CliNodeEffect<InstalledHarnessListResult>;
722
+ previewSystemConnections: (input: ConnectionSystemPreviewParameters) => CliNodeEffect<{
670
723
  readonly actorId: string;
671
724
  readonly commandId: string;
672
725
  readonly expiresAt: string;
@@ -725,7 +778,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
725
778
  readonly method: "connection.system.preview";
726
779
  readonly proof: string;
727
780
  }>;
728
- confirmConnectionUpkeep: (input: ConnectionUpkeepConfirmParameters) => import("../local-node/client.js").CliNodeEffect<{
781
+ confirmConnectionUpkeep: (input: ConnectionUpkeepConfirmParameters) => CliNodeEffect<{
729
782
  readonly actorId: string;
730
783
  readonly commandId: string;
731
784
  readonly delivery: "duplicate" | "new";
@@ -741,6 +794,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
741
794
  readonly createdAt: string;
742
795
  readonly eventCursor: string;
743
796
  readonly method: string;
797
+ readonly proposedBy?: string | undefined;
744
798
  readonly receiptId: string;
745
799
  readonly schemaVersion: 1;
746
800
  readonly state: "succeeded";
@@ -751,7 +805,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
751
805
  readonly updatedAt: string;
752
806
  };
753
807
  }>;
754
- previewConnectionUpkeep: (input: ConnectionUpkeepPreviewParameters) => import("../local-node/client.js").CliNodeEffect<{
808
+ previewConnectionUpkeep: (input: ConnectionUpkeepPreviewParameters) => CliNodeEffect<{
755
809
  readonly actorId: string;
756
810
  readonly authorizationRevision: number;
757
811
  readonly commandId: string;
@@ -765,7 +819,7 @@ export declare const makeConnectionClient: (node: CliNodeOperations) => {
765
819
  readonly policyRevision: number;
766
820
  readonly proof: string;
767
821
  }>;
768
- refreshConnectionUpkeep: (input: ConnectionUpkeepRefreshParameters) => import("../local-node/client.js").CliNodeEffect<{
822
+ refreshConnectionUpkeep: (input: ConnectionUpkeepRefreshParameters) => CliNodeEffect<{
769
823
  readonly executors: readonly [{
770
824
  readonly available?: {
771
825
  readonly checkedAt: string;
@@ -18,6 +18,7 @@ const signInClient = (node) => ({
18
18
  const systemClient = (node) => ({
19
19
  confirmSystemConnections: (input) => node.runValidatedNodeOperation(input, connectionSystemConfirmParametersSchema, (client, parameters, options) => client.confirmSystemConnections(parameters, options), { commandId: input.commandId }),
20
20
  detectConnections: (input) => node.runValidatedNodeOperation(input, connectionDetectParametersSchema, (client, parameters, options) => client.detectConnections(parameters, options)),
21
+ listInstalledHarnesses: () => node.runNodeClientOperation((client, options) => client.listInstalledHarnesses({}, options)),
21
22
  previewSystemConnections: (input) => node.runValidatedNodeOperation(input, connectionSystemPreviewParametersSchema, (client, parameters, options) => client.previewSystemConnections(parameters, options)),
22
23
  });
23
24
  const upkeepClient = (node) => ({
@@ -0,0 +1,18 @@
1
+ import type { InstalledHarnessListResult } from "@maiaos/sdk";
2
+ import type * as Crypto from "effect/Crypto";
3
+ import * as Effect from "effect/Effect";
4
+ import { type OutputContext } from "../../command-line/emit/index.js";
5
+ import { type CliArgumentError } from "../../command-line/input/index.js";
6
+ import type { CliNodeCall, CliNodeEffect } from "../../local-node/index.js";
7
+ type ExecutorsContext = OutputContext & {
8
+ readonly dependencies: {
9
+ readonly call?: CliNodeCall;
10
+ readonly listInstalledHarnesses?: () => CliNodeEffect<InstalledHarnessListResult>;
11
+ };
12
+ };
13
+ type ExecutorsEffect = Effect.Effect<number, CliArgumentError, Crypto.Crypto>;
14
+ export declare const runExecutorsList: (tokens: readonly string[], context: ExecutorsContext) => ExecutorsEffect;
15
+ export declare const runExecutorsShow: (tokens: readonly string[], context: ExecutorsContext) => ExecutorsEffect;
16
+ export declare const runExecutorsDetect: (tokens: readonly string[], context: ExecutorsContext) => ExecutorsEffect;
17
+ export {};
18
+ //# sourceMappingURL=executors.d.ts.map
@@ -0,0 +1,95 @@
1
+ import * as Clock from "effect/Clock";
2
+ import * as Effect from "effect/Effect";
3
+ import { cell, fields, formatRows, tab, writeNodeResult, } from "../../command-line/emit/index.js";
4
+ import { parseOptions, requirePositionals, } from "../../command-line/input/index.js";
5
+ import { redactConnection } from "../output/index.js";
6
+ import { describeReading, usageStateOf } from "./reading.js";
7
+ const redactEntry = ({ connections, ...entry }, now) => ({
8
+ ...entry,
9
+ connections: connections.map(({ connection, ...rest }) => ({
10
+ ...rest,
11
+ connection: redactConnection(connection),
12
+ usageState: usageStateOf(connection.usage, now),
13
+ })),
14
+ });
15
+ const redactResult = (result, now) => result.method === "connection.executors.list"
16
+ ? {
17
+ ...result,
18
+ executors: result.executors.map((entry) => redactEntry(entry, now)),
19
+ }
20
+ : { ...result, executor: redactEntry(result.executor, now) };
21
+ const NO_ACCOUNT = ["-", "-", "-", "-", "-", "-"];
22
+ const accountLines = ({ connections, executor }) => connections.length === 0
23
+ ? [tab([executor, ...NO_ACCOUNT])]
24
+ : connections.map(({ connection, login, models, usageState }) => tab([
25
+ executor,
26
+ connection.connectionId,
27
+ cell(connection.name),
28
+ connection.state,
29
+ login,
30
+ cell(describeReading(connection.usage, usageState)),
31
+ models.length === 0 ? "-" : cell(models.join(", ")),
32
+ ]));
33
+ const accountTable = (entries) => formatRows(entries.flatMap(accountLines), (line) => line, {
34
+ empty: "No executors.",
35
+ headers: [
36
+ "EXECUTOR",
37
+ "CONNECTION",
38
+ "NAME",
39
+ "STATE",
40
+ "LOGIN",
41
+ "USAGE",
42
+ "MODELS",
43
+ ],
44
+ });
45
+ const showText = (entry) => `${fields([
46
+ ["Executor", entry.executor],
47
+ [
48
+ "Capabilities",
49
+ entry.capabilities.length === 0 ? "none" : entry.capabilities.join(", "),
50
+ ],
51
+ ...(entry.unavailable === undefined
52
+ ? []
53
+ : [["Unavailable", cell(entry.unavailable.reason)]]),
54
+ ])}\n${accountTable([entry])}`;
55
+ const presenterAt = (now) => ({
56
+ toResult: (value) => ({
57
+ command: value.method,
58
+ result: redactResult(value, now),
59
+ }),
60
+ toText: ({ result }) => result.method === "connection.executors.list"
61
+ ? accountTable(result.executors)
62
+ : showText(result.executor),
63
+ });
64
+ const unavailable = () => Effect.die(new Error("Missing the typed Node call."));
65
+ const REFRESH = "--refresh";
66
+ const refreshOf = (flags) => flags.has(REFRESH) ? { refresh: true } : {};
67
+ const present = (context) => (result) => Effect.map(Clock.currentTimeMillis, (now) => writeNodeResult(result, context, presenterAt(now)));
68
+ export const runExecutorsList = (tokens, context) => {
69
+ const { flags, positionals } = parseOptions(tokens, new Set(), new Set([REFRESH]));
70
+ requirePositionals(positionals, 0);
71
+ const { call } = context.dependencies;
72
+ if (call === undefined)
73
+ return unavailable();
74
+ return Effect.flatMap(call("connection.executors.list", refreshOf(flags)), present(context));
75
+ };
76
+ export const runExecutorsShow = (tokens, context) => {
77
+ const { flags, positionals } = parseOptions(tokens, new Set(), new Set([REFRESH]));
78
+ requirePositionals(positionals, 1);
79
+ const { call } = context.dependencies;
80
+ if (call === undefined)
81
+ return unavailable();
82
+ return Effect.flatMap(call("connection.executors.show", {
83
+ executor: positionals[0] ?? "",
84
+ ...refreshOf(flags),
85
+ }), present(context));
86
+ };
87
+ const INSTALLED = {
88
+ toResult: (value) => ({ command: value.method, result: value }),
89
+ toText: ({ result }) => formatRows(result.items, (item) => tab([item.harnessId, item.status, item.detected ? "-" : item.reason]), { empty: "", headers: ["HARNESS", "STATUS", "REASON"] }),
90
+ };
91
+ export const runExecutorsDetect = (tokens, context) => {
92
+ requirePositionals(parseOptions(tokens, new Set()).positionals, 0);
93
+ return Effect.map(context.dependencies.listInstalledHarnesses?.() ?? unavailable(), (result) => writeNodeResult(result, context, INSTALLED));
94
+ };
95
+ //# sourceMappingURL=executors.js.map
@@ -0,0 +1,2 @@
1
+ export { runExecutorsDetect, runExecutorsList, runExecutorsShow, } from "./executors.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { runExecutorsDetect, runExecutorsList, runExecutorsShow, } from "./executors.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,22 @@
1
+ import * as Duration from "effect/Duration";
2
+ import { describeUsage } from "../output/index.js";
3
+ const READING_DEADLINE = Duration.seconds(12);
4
+ export const usageStateOf = (usage, now) => {
5
+ if (usage === undefined || usage.unavailable !== undefined)
6
+ return "unknown";
7
+ return now - Date.parse(usage.checkedAt) <=
8
+ Duration.toMillis(READING_DEADLINE)
9
+ ? "live"
10
+ : "stale";
11
+ };
12
+ export const describeReading = (usage, state) => {
13
+ if (usage === undefined)
14
+ return "unknown";
15
+ if (usage.unavailable !== undefined)
16
+ return `unknown: ${usage.unavailable.message ?? usage.unavailable.reason}`;
17
+ const text = describeUsage(usage);
18
+ return state === "stale"
19
+ ? `${text} (stale, read ${usage.checkedAt.slice(0, 16)}Z)`
20
+ : text;
21
+ };
22
+ //# sourceMappingURL=reading.js.map
@@ -1,6 +1,7 @@
1
1
  export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./access/index.js";
2
2
  export { type ConnectionCliDependencies, makeConnectionClient, } from "./client.js";
3
3
  export { runConnectionCapacitySet, runConnectionCreate, runConnectionDisable, runConnectionEnable, runConnectionList, runConnectionLoginStart, runConnectionModelsList, runConnectionShow, runConnectionUsageShow, type VendorLogin, } from "./commands.js";
4
+ export { runExecutorsDetect, runExecutorsList, runExecutorsShow, } from "./executors/index.js";
4
5
  export { runVendorLogin } from "./login.js";
5
6
  export { describeConnection, formatConnectionResult, redactConnection, redactConnectionResult, } from "./output/index.js";
6
7
  export { callNode, ConnectionNodeError, findConnectionByName, } from "./resolve.js";
@@ -1,6 +1,7 @@
1
1
  export { runConnectionGrantList, runConnectionGrantSet, runConnectionPoolList, runConnectionPoolSet, } from "./access/index.js";
2
2
  export { makeConnectionClient, } from "./client.js";
3
3
  export { runConnectionCapacitySet, runConnectionCreate, runConnectionDisable, runConnectionEnable, runConnectionList, runConnectionLoginStart, runConnectionModelsList, runConnectionShow, runConnectionUsageShow, } from "./commands.js";
4
+ export { runExecutorsDetect, runExecutorsList, runExecutorsShow, } from "./executors/index.js";
4
5
  export { runVendorLogin } from "./login.js";
5
6
  export { describeConnection, formatConnectionResult, redactConnection, redactConnectionResult, } from "./output/index.js";
6
7
  export { callNode, ConnectionNodeError, findConnectionByName, } from "./resolve.js";
@@ -2,8 +2,8 @@ import { CliArgumentError, parseOptions, readExpectedRevision, readPageSize, req
2
2
  const readSessionLimit = (value) => {
3
3
  if (value === undefined)
4
4
  return {};
5
- if (!/^(?:[1-9]|1[0-6])$/u.test(value))
6
- throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to 16.");
5
+ if (!/^(?:[1-9]|[1-5][0-9]|6[0-4])$/u.test(value))
6
+ throw new CliArgumentError("Option '--max-sessions' must be an integer from 1 to 64.");
7
7
  return { maxConcurrentSessions: Number(value) };
8
8
  };
9
9
  const requireOption = (options, name) => {
@@ -15,7 +15,7 @@ const requireOption = (options, name) => {
15
15
  export const readConnectionCreate = (tokens) => {
16
16
  const parsed = parseOptions(tokens, new Set([
17
17
  "--command-id",
18
- "--executor",
18
+ "--harness",
19
19
  "--max-sessions",
20
20
  "--name",
21
21
  "--root",
@@ -24,7 +24,7 @@ export const readConnectionCreate = (tokens) => {
24
24
  return {
25
25
  commandId: parsed.options.get("--command-id"),
26
26
  configRootKind: requireOption(parsed.options, "--root"),
27
- executor: requireOption(parsed.options, "--executor"),
27
+ executor: requireOption(parsed.options, "--harness"),
28
28
  name: requireOption(parsed.options, "--name"),
29
29
  ...readSessionLimit(parsed.options.get("--max-sessions")),
30
30
  };