axm.sh 0.4.5 → 0.5.1

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 (378) hide show
  1. package/README.md +7 -8
  2. package/dist/src/__generated__/help-topics.d.ts +8 -0
  3. package/dist/src/__generated__/help-topics.d.ts.map +1 -0
  4. package/dist/src/__generated__/help-topics.js +21 -0
  5. package/dist/src/__generated__/help-topics.js.map +1 -0
  6. package/dist/src/app.d.ts.map +1 -1
  7. package/dist/src/app.js +11 -2
  8. package/dist/src/app.js.map +1 -1
  9. package/dist/src/formatter.d.ts.map +1 -1
  10. package/dist/src/formatter.js +28 -60
  11. package/dist/src/formatter.js.map +1 -1
  12. package/dist/src/json-output.d.ts +6 -2
  13. package/dist/src/json-output.d.ts.map +1 -1
  14. package/dist/src/json-output.js +5 -5
  15. package/dist/src/json-output.js.map +1 -1
  16. package/dist/src/root/auth/login.d.ts.map +1 -1
  17. package/dist/src/root/auth/login.js +2 -6
  18. package/dist/src/root/auth/login.js.map +1 -1
  19. package/dist/src/root/auth/logout.d.ts.map +1 -1
  20. package/dist/src/root/auth/logout.js +2 -2
  21. package/dist/src/root/auth/logout.js.map +1 -1
  22. package/dist/src/root/auth/token.d.ts.map +1 -1
  23. package/dist/src/root/auth/token.js +3 -7
  24. package/dist/src/root/auth/token.js.map +1 -1
  25. package/dist/src/root/auth/whoami.d.ts.map +1 -1
  26. package/dist/src/root/auth/whoami.js +3 -7
  27. package/dist/src/root/auth/whoami.js.map +1 -1
  28. package/dist/src/root/commands/_commands.d.ts.map +1 -1
  29. package/dist/src/root/commands/_commands.js +6 -0
  30. package/dist/src/root/commands/_commands.js.map +1 -1
  31. package/dist/src/root/commands/disable.d.ts +3 -4
  32. package/dist/src/root/commands/disable.d.ts.map +1 -1
  33. package/dist/src/root/commands/disable.js +24 -18
  34. package/dist/src/root/commands/disable.js.map +1 -1
  35. package/dist/src/root/commands/enable.d.ts +3 -4
  36. package/dist/src/root/commands/enable.d.ts.map +1 -1
  37. package/dist/src/root/commands/enable.js +24 -18
  38. package/dist/src/root/commands/enable.js.map +1 -1
  39. package/dist/src/root/commands/install/command-actions.d.ts +3 -3
  40. package/dist/src/root/commands/install/command-actions.d.ts.map +1 -1
  41. package/dist/src/root/commands/install/command-actions.js +106 -39
  42. package/dist/src/root/commands/install/command-actions.js.map +1 -1
  43. package/dist/src/root/commands/install/command.d.ts.map +1 -1
  44. package/dist/src/root/commands/install/command.js +2 -2
  45. package/dist/src/root/commands/install/command.js.map +1 -1
  46. package/dist/src/root/commands/install/handler.d.ts +1 -1
  47. package/dist/src/root/commands/install/handler.d.ts.map +1 -1
  48. package/dist/src/root/commands/list.d.ts +2 -2
  49. package/dist/src/root/commands/list.d.ts.map +1 -1
  50. package/dist/src/root/commands/list.js +23 -20
  51. package/dist/src/root/commands/list.js.map +1 -1
  52. package/dist/src/root/commands/new.d.ts +3 -2
  53. package/dist/src/root/commands/new.d.ts.map +1 -1
  54. package/dist/src/root/commands/new.js +41 -26
  55. package/dist/src/root/commands/new.js.map +1 -1
  56. package/dist/src/root/commands/publish.d.ts +2 -2
  57. package/dist/src/root/commands/publish.d.ts.map +1 -1
  58. package/dist/src/root/commands/publish.js +92 -47
  59. package/dist/src/root/commands/publish.js.map +1 -1
  60. package/dist/src/root/commands/uninstall/command-actions.d.ts +3 -3
  61. package/dist/src/root/commands/uninstall/command-actions.d.ts.map +1 -1
  62. package/dist/src/root/commands/uninstall/command-actions.js +18 -7
  63. package/dist/src/root/commands/uninstall/command-actions.js.map +1 -1
  64. package/dist/src/root/commands/uninstall/handler.d.ts +1 -1
  65. package/dist/src/root/commands/uninstall/handler.d.ts.map +1 -1
  66. package/dist/src/root/commands/update.d.ts +2 -2
  67. package/dist/src/root/commands/update.d.ts.map +1 -1
  68. package/dist/src/root/commands/update.js +17 -9
  69. package/dist/src/root/commands/update.js.map +1 -1
  70. package/dist/src/root/discover/command.js +1 -1
  71. package/dist/src/root/discover/command.js.map +1 -1
  72. package/dist/src/root/discover/handler.d.ts +0 -3
  73. package/dist/src/root/discover/handler.d.ts.map +1 -1
  74. package/dist/src/root/discover/handler.js +2 -3
  75. package/dist/src/root/discover/handler.js.map +1 -1
  76. package/dist/src/root/help/command.d.ts +3 -0
  77. package/dist/src/root/help/command.d.ts.map +1 -0
  78. package/dist/src/root/help/command.js +57 -0
  79. package/dist/src/root/help/command.js.map +1 -0
  80. package/dist/src/root/install/command.d.ts.map +1 -1
  81. package/dist/src/root/install/command.js +2 -2
  82. package/dist/src/root/install/command.js.map +1 -1
  83. package/dist/src/root/install/handler.d.ts +1 -1
  84. package/dist/src/root/install/handler.d.ts.map +1 -1
  85. package/dist/src/root/install/resolve-root-install-intent.d.ts.map +1 -1
  86. package/dist/src/root/install/resolve-root-install-intent.js +27 -17
  87. package/dist/src/root/install/resolve-root-install-intent.js.map +1 -1
  88. package/dist/src/root/install/workspace-install-handler.d.ts +2 -2
  89. package/dist/src/root/install/workspace-install-handler.d.ts.map +1 -1
  90. package/dist/src/root/install/workspace-install.d.ts +2 -2
  91. package/dist/src/root/install/workspace-install.d.ts.map +1 -1
  92. package/dist/src/root/install/workspace-install.js +11 -11
  93. package/dist/src/root/install/workspace-install.js.map +1 -1
  94. package/dist/src/root/lint/handler.d.ts +5 -4
  95. package/dist/src/root/lint/handler.d.ts.map +1 -1
  96. package/dist/src/root/lint/handler.js +31 -107
  97. package/dist/src/root/lint/handler.js.map +1 -1
  98. package/dist/src/root/mcp-servers/_mcp-servers.d.ts.map +1 -1
  99. package/dist/src/root/mcp-servers/_mcp-servers.js +6 -1
  100. package/dist/src/root/mcp-servers/_mcp-servers.js.map +1 -1
  101. package/dist/src/root/mcp-servers/install/command-actions.d.ts +3 -3
  102. package/dist/src/root/mcp-servers/install/command-actions.d.ts.map +1 -1
  103. package/dist/src/root/mcp-servers/install/command-actions.js +75 -35
  104. package/dist/src/root/mcp-servers/install/command-actions.js.map +1 -1
  105. package/dist/src/root/mcp-servers/install/command.js +2 -2
  106. package/dist/src/root/mcp-servers/install/command.js.map +1 -1
  107. package/dist/src/root/mcp-servers/install/handler.d.ts +1 -1
  108. package/dist/src/root/mcp-servers/install/handler.d.ts.map +1 -1
  109. package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts +3 -3
  110. package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts.map +1 -1
  111. package/dist/src/root/mcp-servers/uninstall/command-actions.js +8 -6
  112. package/dist/src/root/mcp-servers/uninstall/command-actions.js.map +1 -1
  113. package/dist/src/root/mcp-servers/uninstall/handler.d.ts +1 -1
  114. package/dist/src/root/mcp-servers/uninstall/handler.d.ts.map +1 -1
  115. package/dist/src/root/outdated/handler.d.ts +1 -1
  116. package/dist/src/root/outdated/handler.d.ts.map +1 -1
  117. package/dist/src/root/outdated/handler.js +2 -2
  118. package/dist/src/root/outdated/handler.js.map +1 -1
  119. package/dist/src/root/packs/_packs.d.ts.map +1 -1
  120. package/dist/src/root/packs/_packs.js +6 -0
  121. package/dist/src/root/packs/_packs.js.map +1 -1
  122. package/dist/src/root/packs/add.d.ts +2 -2
  123. package/dist/src/root/packs/add.d.ts.map +1 -1
  124. package/dist/src/root/packs/add.js +50 -24
  125. package/dist/src/root/packs/add.js.map +1 -1
  126. package/dist/src/root/packs/install/command-actions.d.ts +3 -3
  127. package/dist/src/root/packs/install/command-actions.d.ts.map +1 -1
  128. package/dist/src/root/packs/install/command-actions.js +87 -55
  129. package/dist/src/root/packs/install/command-actions.js.map +1 -1
  130. package/dist/src/root/packs/install/command.js +2 -2
  131. package/dist/src/root/packs/install/command.js.map +1 -1
  132. package/dist/src/root/packs/install/handler.d.ts +1 -1
  133. package/dist/src/root/packs/install/handler.d.ts.map +1 -1
  134. package/dist/src/root/packs/install/plan.d.ts +2 -2
  135. package/dist/src/root/packs/install/plan.d.ts.map +1 -1
  136. package/dist/src/root/packs/install/plan.js +3 -3
  137. package/dist/src/root/packs/install/plan.js.map +1 -1
  138. package/dist/src/root/packs/new.d.ts +2 -2
  139. package/dist/src/root/packs/new.d.ts.map +1 -1
  140. package/dist/src/root/packs/new.js +38 -20
  141. package/dist/src/root/packs/new.js.map +1 -1
  142. package/dist/src/root/packs/publish.d.ts +2 -2
  143. package/dist/src/root/packs/publish.d.ts.map +1 -1
  144. package/dist/src/root/packs/publish.js +84 -46
  145. package/dist/src/root/packs/publish.js.map +1 -1
  146. package/dist/src/root/packs/remove.d.ts +2 -2
  147. package/dist/src/root/packs/remove.d.ts.map +1 -1
  148. package/dist/src/root/packs/remove.js +43 -23
  149. package/dist/src/root/packs/remove.js.map +1 -1
  150. package/dist/src/root/packs/uninstall/command-actions.d.ts +3 -3
  151. package/dist/src/root/packs/uninstall/command-actions.d.ts.map +1 -1
  152. package/dist/src/root/packs/uninstall/command-actions.js +39 -15
  153. package/dist/src/root/packs/uninstall/command-actions.js.map +1 -1
  154. package/dist/src/root/packs/uninstall/handler.d.ts +1 -1
  155. package/dist/src/root/packs/uninstall/handler.d.ts.map +1 -1
  156. package/dist/src/root/packs/uninstall/plan.d.ts +2 -2
  157. package/dist/src/root/packs/uninstall/plan.d.ts.map +1 -1
  158. package/dist/src/root/packs/uninstall/plan.js +3 -3
  159. package/dist/src/root/packs/uninstall/plan.js.map +1 -1
  160. package/dist/src/root/packs/unpack/handler.d.ts +2 -2
  161. package/dist/src/root/packs/unpack/handler.d.ts.map +1 -1
  162. package/dist/src/root/packs/unpack/handler.js +15 -10
  163. package/dist/src/root/packs/unpack/handler.js.map +1 -1
  164. package/dist/src/root/packs/unpack/plan.d.ts +2 -2
  165. package/dist/src/root/packs/unpack/plan.d.ts.map +1 -1
  166. package/dist/src/root/packs/unpack/plan.js +3 -3
  167. package/dist/src/root/packs/unpack/plan.js.map +1 -1
  168. package/dist/src/root/prune/handler.d.ts +2 -2
  169. package/dist/src/root/prune/handler.d.ts.map +1 -1
  170. package/dist/src/root/prune/handler.js +3 -3
  171. package/dist/src/root/prune/handler.js.map +1 -1
  172. package/dist/src/root/setup.d.ts +21 -1
  173. package/dist/src/root/setup.d.ts.map +1 -1
  174. package/dist/src/root/setup.js +54 -27
  175. package/dist/src/root/setup.js.map +1 -1
  176. package/dist/src/root/shared/extension-version.d.ts +43 -0
  177. package/dist/src/root/shared/extension-version.d.ts.map +1 -0
  178. package/dist/src/root/shared/extension-version.js +132 -0
  179. package/dist/src/root/shared/extension-version.js.map +1 -0
  180. package/dist/src/root/shared/publish-preflight.d.ts +10 -0
  181. package/dist/src/root/shared/publish-preflight.d.ts.map +1 -0
  182. package/dist/src/root/shared/publish-preflight.js +36 -0
  183. package/dist/src/root/shared/publish-preflight.js.map +1 -0
  184. package/dist/src/root/shared/resolve-owner.d.ts +16 -0
  185. package/dist/src/root/shared/resolve-owner.d.ts.map +1 -0
  186. package/dist/src/root/shared/resolve-owner.js +38 -0
  187. package/dist/src/root/shared/resolve-owner.js.map +1 -0
  188. package/dist/src/root/shared/version-command.d.ts +27 -0
  189. package/dist/src/root/shared/version-command.d.ts.map +1 -0
  190. package/dist/src/root/shared/version-command.js +165 -0
  191. package/dist/src/root/shared/version-command.js.map +1 -0
  192. package/dist/src/root/skills/_skills.d.ts.map +1 -1
  193. package/dist/src/root/skills/_skills.js +6 -4
  194. package/dist/src/root/skills/_skills.js.map +1 -1
  195. package/dist/src/root/skills/disable.d.ts +2 -2
  196. package/dist/src/root/skills/disable.d.ts.map +1 -1
  197. package/dist/src/root/skills/disable.js +23 -16
  198. package/dist/src/root/skills/disable.js.map +1 -1
  199. package/dist/src/root/skills/enable.d.ts +3 -4
  200. package/dist/src/root/skills/enable.d.ts.map +1 -1
  201. package/dist/src/root/skills/enable.js +23 -17
  202. package/dist/src/root/skills/enable.js.map +1 -1
  203. package/dist/src/root/skills/install/command-actions.d.ts +3 -3
  204. package/dist/src/root/skills/install/command-actions.d.ts.map +1 -1
  205. package/dist/src/root/skills/install/command-actions.js +28 -34
  206. package/dist/src/root/skills/install/command-actions.js.map +1 -1
  207. package/dist/src/root/skills/install/command.js +2 -2
  208. package/dist/src/root/skills/install/command.js.map +1 -1
  209. package/dist/src/root/skills/install/handler.d.ts +1 -1
  210. package/dist/src/root/skills/install/handler.d.ts.map +1 -1
  211. package/dist/src/root/skills/install/handler.js +16 -6
  212. package/dist/src/root/skills/install/handler.js.map +1 -1
  213. package/dist/src/root/skills/install/plan.d.ts +2 -2
  214. package/dist/src/root/skills/install/plan.d.ts.map +1 -1
  215. package/dist/src/root/skills/install/plan.js +4 -5
  216. package/dist/src/root/skills/install/plan.js.map +1 -1
  217. package/dist/src/root/skills/install/resolve-skill-install-source.d.ts +3 -3
  218. package/dist/src/root/skills/install/resolve-skill-install-source.d.ts.map +1 -1
  219. package/dist/src/root/skills/install/resolve-skill-install-source.js +122 -128
  220. package/dist/src/root/skills/install/resolve-skill-install-source.js.map +1 -1
  221. package/dist/src/root/skills/install/select-skills.d.ts.map +1 -1
  222. package/dist/src/root/skills/install/select-skills.js +5 -4
  223. package/dist/src/root/skills/install/select-skills.js.map +1 -1
  224. package/dist/src/root/skills/list.d.ts +2 -2
  225. package/dist/src/root/skills/list.d.ts.map +1 -1
  226. package/dist/src/root/skills/list.js +10 -14
  227. package/dist/src/root/skills/list.js.map +1 -1
  228. package/dist/src/root/skills/new.d.ts +2 -2
  229. package/dist/src/root/skills/new.d.ts.map +1 -1
  230. package/dist/src/root/skills/new.js +41 -25
  231. package/dist/src/root/skills/new.js.map +1 -1
  232. package/dist/src/root/skills/prune/handler.d.ts +6 -6
  233. package/dist/src/root/skills/prune/handler.d.ts.map +1 -1
  234. package/dist/src/root/skills/prune/handler.js +13 -13
  235. package/dist/src/root/skills/prune/handler.js.map +1 -1
  236. package/dist/src/root/skills/publish.d.ts +2 -2
  237. package/dist/src/root/skills/publish.d.ts.map +1 -1
  238. package/dist/src/root/skills/publish.js +79 -39
  239. package/dist/src/root/skills/publish.js.map +1 -1
  240. package/dist/src/root/skills/uninstall/command-actions.d.ts +3 -3
  241. package/dist/src/root/skills/uninstall/command-actions.d.ts.map +1 -1
  242. package/dist/src/root/skills/uninstall/command-actions.js +14 -7
  243. package/dist/src/root/skills/uninstall/command-actions.js.map +1 -1
  244. package/dist/src/root/skills/uninstall/handler.d.ts +1 -1
  245. package/dist/src/root/skills/uninstall/handler.d.ts.map +1 -1
  246. package/dist/src/root/skills/uninstall/plan.d.ts +2 -2
  247. package/dist/src/root/skills/uninstall/plan.d.ts.map +1 -1
  248. package/dist/src/root/skills/uninstall/plan.js +3 -3
  249. package/dist/src/root/skills/uninstall/plan.js.map +1 -1
  250. package/dist/src/root/skills/update/handler.d.ts +2 -2
  251. package/dist/src/root/skills/update/handler.d.ts.map +1 -1
  252. package/dist/src/root/skills/update/handler.js +68 -130
  253. package/dist/src/root/skills/update/handler.js.map +1 -1
  254. package/dist/src/root/skills/update/plan.d.ts +1 -5
  255. package/dist/src/root/skills/update/plan.d.ts.map +1 -1
  256. package/dist/src/root/skills/update/plan.js +0 -11
  257. package/dist/src/root/skills/update/plan.js.map +1 -1
  258. package/dist/src/root/subagents/_subagents.d.ts.map +1 -1
  259. package/dist/src/root/subagents/_subagents.js +6 -2
  260. package/dist/src/root/subagents/_subagents.js.map +1 -1
  261. package/dist/src/root/subagents/disable/handler.d.ts +2 -2
  262. package/dist/src/root/subagents/disable/handler.d.ts.map +1 -1
  263. package/dist/src/root/subagents/disable/handler.js +22 -15
  264. package/dist/src/root/subagents/disable/handler.js.map +1 -1
  265. package/dist/src/root/subagents/enable/handler.d.ts +2 -2
  266. package/dist/src/root/subagents/enable/handler.d.ts.map +1 -1
  267. package/dist/src/root/subagents/enable/handler.js +22 -15
  268. package/dist/src/root/subagents/enable/handler.js.map +1 -1
  269. package/dist/src/root/subagents/install/command-actions.d.ts +3 -3
  270. package/dist/src/root/subagents/install/command-actions.d.ts.map +1 -1
  271. package/dist/src/root/subagents/install/command-actions.js +34 -37
  272. package/dist/src/root/subagents/install/command-actions.js.map +1 -1
  273. package/dist/src/root/subagents/install/command.js +2 -2
  274. package/dist/src/root/subagents/install/command.js.map +1 -1
  275. package/dist/src/root/subagents/install/handler.d.ts +1 -1
  276. package/dist/src/root/subagents/install/handler.d.ts.map +1 -1
  277. package/dist/src/root/subagents/install/handler.js +16 -6
  278. package/dist/src/root/subagents/install/handler.js.map +1 -1
  279. package/dist/src/root/subagents/install/plan.d.ts +2 -2
  280. package/dist/src/root/subagents/install/plan.d.ts.map +1 -1
  281. package/dist/src/root/subagents/install/plan.js +4 -5
  282. package/dist/src/root/subagents/install/plan.js.map +1 -1
  283. package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts +3 -3
  284. package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts.map +1 -1
  285. package/dist/src/root/subagents/install/resolve-subagent-install-source.js +122 -124
  286. package/dist/src/root/subagents/install/resolve-subagent-install-source.js.map +1 -1
  287. package/dist/src/root/subagents/install/select-subagents.d.ts.map +1 -1
  288. package/dist/src/root/subagents/install/select-subagents.js +5 -4
  289. package/dist/src/root/subagents/install/select-subagents.js.map +1 -1
  290. package/dist/src/root/subagents/list/handler.d.ts +2 -2
  291. package/dist/src/root/subagents/list/handler.d.ts.map +1 -1
  292. package/dist/src/root/subagents/list/handler.js +11 -16
  293. package/dist/src/root/subagents/list/handler.js.map +1 -1
  294. package/dist/src/root/subagents/new/command.d.ts.map +1 -1
  295. package/dist/src/root/subagents/new/command.js +3 -14
  296. package/dist/src/root/subagents/new/command.js.map +1 -1
  297. package/dist/src/root/subagents/new/handler.d.ts +2 -5
  298. package/dist/src/root/subagents/new/handler.d.ts.map +1 -1
  299. package/dist/src/root/subagents/new/handler.js +59 -65
  300. package/dist/src/root/subagents/new/handler.js.map +1 -1
  301. package/dist/src/root/subagents/publish/handler.d.ts +2 -2
  302. package/dist/src/root/subagents/publish/handler.d.ts.map +1 -1
  303. package/dist/src/root/subagents/publish/handler.js +77 -41
  304. package/dist/src/root/subagents/publish/handler.js.map +1 -1
  305. package/dist/src/root/subagents/uninstall/command-actions.d.ts +3 -3
  306. package/dist/src/root/subagents/uninstall/command-actions.d.ts.map +1 -1
  307. package/dist/src/root/subagents/uninstall/command-actions.js +12 -5
  308. package/dist/src/root/subagents/uninstall/command-actions.js.map +1 -1
  309. package/dist/src/root/subagents/uninstall/handler.d.ts +1 -1
  310. package/dist/src/root/subagents/uninstall/handler.d.ts.map +1 -1
  311. package/dist/src/root/subagents/update/handler.d.ts +2 -2
  312. package/dist/src/root/subagents/update/handler.d.ts.map +1 -1
  313. package/dist/src/root/subagents/update/handler.js +22 -39
  314. package/dist/src/root/subagents/update/handler.js.map +1 -1
  315. package/dist/src/root/sync/command.d.ts +3 -0
  316. package/dist/src/root/sync/command.d.ts.map +1 -0
  317. package/dist/src/root/sync/command.js +28 -0
  318. package/dist/src/root/sync/command.js.map +1 -0
  319. package/dist/src/root/sync/handler.d.ts +20 -0
  320. package/dist/src/root/sync/handler.d.ts.map +1 -0
  321. package/dist/src/root/sync/handler.js +131 -0
  322. package/dist/src/root/sync/handler.js.map +1 -0
  323. package/dist/src/root/uninstall/handler.d.ts +1 -1
  324. package/dist/src/root/uninstall/handler.d.ts.map +1 -1
  325. package/dist/src/root/uninstall/resolve-root-uninstall-intent.d.ts.map +1 -1
  326. package/dist/src/root/uninstall/resolve-root-uninstall-intent.js +27 -17
  327. package/dist/src/root/uninstall/resolve-root-uninstall-intent.js.map +1 -1
  328. package/dist/src/root/update/handler.d.ts +1 -1
  329. package/dist/src/root/update/handler.d.ts.map +1 -1
  330. package/dist/src/root/update/resolve-root-update-intent.d.ts.map +1 -1
  331. package/dist/src/root/update/resolve-root-update-intent.js +27 -17
  332. package/dist/src/root/update/resolve-root-update-intent.js.map +1 -1
  333. package/dist/src/root/update/workspace-update-handler.d.ts +1 -1
  334. package/dist/src/root/update/workspace-update-handler.d.ts.map +1 -1
  335. package/dist/src/root/update/workspace-update.d.ts +2 -2
  336. package/dist/src/root/update/workspace-update.d.ts.map +1 -1
  337. package/dist/src/root/update/workspace-update.js +11 -11
  338. package/dist/src/root/update/workspace-update.js.map +1 -1
  339. package/dist/src/root/upgrade/handler.d.ts.map +1 -1
  340. package/dist/src/root/upgrade/handler.js +66 -33
  341. package/dist/src/root/upgrade/handler.js.map +1 -1
  342. package/dist/src/root/view/command.d.ts +3 -0
  343. package/dist/src/root/view/command.d.ts.map +1 -0
  344. package/dist/src/root/view/command.js +26 -0
  345. package/dist/src/root/view/command.js.map +1 -0
  346. package/dist/src/root/view/handler.d.ts +13 -0
  347. package/dist/src/root/view/handler.d.ts.map +1 -0
  348. package/dist/src/root/view/handler.js +247 -0
  349. package/dist/src/root/view/handler.js.map +1 -0
  350. package/dist/src/runtime.d.ts +2 -2
  351. package/dist/src/runtime.d.ts.map +1 -1
  352. package/dist/src/runtime.js +8 -2
  353. package/dist/src/runtime.js.map +1 -1
  354. package/dist/src/test-helpers.d.ts +9 -8
  355. package/dist/src/test-helpers.d.ts.map +1 -1
  356. package/dist/src/test-helpers.js +6 -6
  357. package/dist/src/test-helpers.js.map +1 -1
  358. package/dist/src/test-stubs.d.ts +9 -32
  359. package/dist/src/test-stubs.d.ts.map +1 -1
  360. package/dist/src/test-stubs.js +39 -41
  361. package/dist/src/test-stubs.js.map +1 -1
  362. package/package.json +11 -11
  363. package/dist/src/root/skills/fork.d.ts +0 -22
  364. package/dist/src/root/skills/fork.d.ts.map +0 -1
  365. package/dist/src/root/skills/fork.js +0 -288
  366. package/dist/src/root/skills/fork.js.map +0 -1
  367. package/dist/src/root/skills/rename.d.ts +0 -16
  368. package/dist/src/root/skills/rename.d.ts.map +0 -1
  369. package/dist/src/root/skills/rename.js +0 -84
  370. package/dist/src/root/skills/rename.js.map +0 -1
  371. package/dist/src/root/subagents/rename/command.d.ts +0 -3
  372. package/dist/src/root/subagents/rename/command.d.ts.map +0 -1
  373. package/dist/src/root/subagents/rename/command.js +0 -25
  374. package/dist/src/root/subagents/rename/command.js.map +0 -1
  375. package/dist/src/root/subagents/rename/handler.d.ts +0 -15
  376. package/dist/src/root/subagents/rename/handler.d.ts.map +0 -1
  377. package/dist/src/root/subagents/rename/handler.js +0 -174
  378. package/dist/src/root/subagents/rename/handler.js.map +0 -1
package/README.md CHANGED
@@ -11,10 +11,10 @@
11
11
  [![CI](https://img.shields.io/github/actions/workflow/status/agentxm/axm/ci.yml?branch=main&label=CI)](https://github.com/agentxm/axm/actions/workflows/ci.yml)
12
12
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/agentxm/axm/blob/main/LICENSE)
13
13
 
14
- # axm CLI — Extension manager for coding agents and AI assistants
14
+ # AXM — Extension manager for coding agents and AI assistants
15
15
 
16
16
  > [!WARNING]
17
- > axm is in **early alpha** testing. Capabilities and APIs may change. To be
17
+ > AXM is in **early alpha** testing. Capabilities and APIs may change. To be
18
18
  > included in the test user group, reach out to
19
19
  > [hello@agentxm.ai](mailto:hello@agentxm.ai).
20
20
 
@@ -29,10 +29,10 @@
29
29
 
30
30
  ## Installation
31
31
 
32
- **Ask your agent to install axm:**
32
+ **Ask your agent to install AXM:**
33
33
 
34
34
  ```
35
- Follow these install instructions to set up axm: https://axm.sh/install.md
35
+ Follow these install instructions to set up AXM: https://axm.sh/install.md
36
36
  ```
37
37
 
38
38
  **macOS / Linux:**
@@ -67,7 +67,7 @@ npx axm.sh --version
67
67
 
68
68
  ## Getting started
69
69
 
70
- Initialize axm in your project. axm detects your installed agents and creates
70
+ Initialize AXM in your project. AXM detects your installed agents and creates
71
71
  an `.axm/` workspace to manage extensions across all of them.
72
72
 
73
73
  ```bash
@@ -80,7 +80,7 @@ See what's recommended for your project:
80
80
  axm discover
81
81
  ```
82
82
 
83
- Install an extension and axm wires it into every agent in your workspace:
83
+ Install an extension and AXM wires it into every agent in your workspace:
84
84
 
85
85
  ```bash
86
86
  axm install @acme/skills/code-review
@@ -107,7 +107,6 @@ Examples below use `skills`; the same shape applies to every type.
107
107
 
108
108
  ```bash
109
109
  axm skills new my-skill # Scaffold a new skill
110
- axm skills fork my-skill # Fork an installed skill to customize
111
110
  axm skills install @acme/skills/code-review
112
111
  axm skills list
113
112
  axm skills disable my-skill # Turn off without uninstalling
@@ -185,7 +184,7 @@ axm token # Print the current token (for scripting)
185
184
 
186
185
  ## Supported agents
187
186
 
188
- axm supports nearly 40 agents — Claude Code, Codex, Cursor,
187
+ AXM supports nearly 40 agents — Claude Code, Codex, Cursor,
189
188
  Gemini CLI, GitHub Copilot, OpenCode, Windsurf, Cline, Continue, Roo, Goose,
190
189
  and more. If your agent isn't there,
191
190
  [open an issue](https://github.com/agentxm/axm/issues) and we'll add it.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Generated by packages/cli/scripts/generate-help-topics.ts.
3
+ * Do not edit by hand.
4
+ */
5
+ export declare const HELP_TOPIC_NAMES: readonly ["basic-usage", "commands", "exit-codes", "getting-started", "skills", "subagents"];
6
+ export type HelpTopicName = (typeof HELP_TOPIC_NAMES)[number];
7
+ export declare const HELP_TOPICS: Record<HelpTopicName, string>;
8
+ //# sourceMappingURL=help-topics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help-topics.d.ts","sourceRoot":"","sources":["../../../src/__generated__/help-topics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,8FAOnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAarD,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by packages/cli/scripts/generate-help-topics.ts.
3
+ * Do not edit by hand.
4
+ */
5
+ export const HELP_TOPIC_NAMES = [
6
+ "basic-usage",
7
+ "commands",
8
+ "exit-codes",
9
+ "getting-started",
10
+ "skills",
11
+ "subagents",
12
+ ];
13
+ export const HELP_TOPICS = {
14
+ "basic-usage": '# Basic usage\n\nAXM is an agent extension manager for coding agents and AI assistants.\n\n- One tool to manage agent skills, subagents, commands, and more across agents.\n- Bundle skills, subagents, commands and more with extension packs\n- Package and publish your extensions to the AgentXM.ai registry\n- Discover and distribute agent extensions for your platform package ecosystems, including JavaScript, Python, Rust, Java, .NET, Ruby, Go, and more\n\n## How to use AXM\n\nThe best way to use AXM is just to ask your agent to do it:\n\n- "Create a new skill to do <x>"\n- "Update subagent to do <y>"\n- "Disable the doomscroll skill"\n- "Publish a new extension pack with my karate-shihan subagent, rei command, and nunchuck skill"\n\nUse `axm help` to see a list of topics on how to use AXM for your specific use case.\n\nYou will need to have an AgentXM.ai account to publish extensions to the registry or install private extensions.\n\n## How AXM works\n\n_Extensions_ are agent extensions managed by AXM: skills, subagents, and commands. Coding agents may have other extensibility mechanisms (e.g. hooks, plugins, etc.) that aren\'t managed by AXM.\n\nAfter running `axm setup`, AXM configures a workspace settings file at [`.axm/settings.json`(https://axm.sh/schemas/settings.schema.json). Here the installed extensions will be listed, sometimes with extended metadata. Management operations will have an effect for any coding agent configured in `$.agents`. Extensions are typically referenced by their full name: `<@owner>/<skills|subagents...>/<name>` and vendored under `.axm/extensions/<@owner>/<type>/<name>`. Non-registry sourced extensions are vendored under `.axm/extensions/external/<type>/<name>`. `.axm` should not be ignored by source control. The `.axm/axm-lock.yaml` file serves to provide additional metadata about resolved metadata at install time.\n\n### Updating Extensions\n\n### Authoring and Editing Extensions\n\nAn `authored: true` flag in the settings entry for an extension indicates that it is acceptable to make changes to the extension in the workspace. This should be set to true for any workspace where you anticipate making and publishing changes for an extension.\n\nMake any desired changes to authored extensions inside the extension\'s directory `.axm/extensions/<@owner>/<type>/<name>` per the apprpriate help topic for\nthat extension type, followed by `axm sync` to render the changes to different coding agent folders and configurations.\n\n### Publishing Extensions\n\nUse `axm view` to get the latest published version and use `axm version` to bump if needed.\n\n### Enabling/Disabling Extensions\n\nAXM makes it easy to enable or disable extensions on the fly.\n\n- `axm skills disable doomscroll`\n- `axm subagents enable karate-shihan`\n-\n\n### Ignoring Extensions\n\nIt\'s possible to ignore pre-existing skills and other extensions in your workspace so that AXM won\'t modify or prune them. This is helpful when these extensions are installed/managed by some other tool or mechanism.\n\n## Where to go next\n\n**Use `axm help` to see a list of topics and select the one relevant to your task.**\n\n- `axm help getting-started` — first-time setup for a workspace that has\n never used AXM.\n- `axm help skills` — working with skills\n- `axm help subagents` — working with subagents\n- `axm help commands` — working with slash commands\n- `axm help exit-codes` — process exit codes and their meaning.\n- `axm <command> --help` — flags and examples for any command.\n',
15
+ commands: '# Commands\n\nCommand packages live in `./.axm/extensions/<@owner>/commands/<command-name>`.\n\nA command is two files: a registry manifest plus a Markdown content file that\nholds agent-facing frontmatter and the slash-command prompt body.\n\n## command.json\n\n[`command.json`](https://axm.sh/schemas/command.schema.json) is the command\npackage manifest. It carries identity and registry metadata.\n\nUse `agentOverrides` in the manifest for per-agent frontmatter differences.\nEach `agentOverrides.<agent-id>` entry is applied as an RFC 7396 JSON Merge\nPatch on top of the content file\'s frontmatter for that agent: objects merge\nrecursively, `null` deletes a key, arrays replace wholesale, and primitive\nvalues replace.\n\n```json\n{\n "type": "command",\n "name": "review",\n "version": "0.1.0",\n "agentOverrides": {\n "claude-code": {\n "allowed-tools": ["Read", "Grep"]\n },\n "github-copilot": {\n "tools": ["codebase"]\n }\n }\n}\n```\n\n## Content File\n\nThe command content file is `<command-name>.md`. Its YAML frontmatter is passed\nthrough verbatim. AXM does not rename or translate fields such as\n`argumentHint` to `argument-hint`; write the target agent\'s native key, or put\nper-agent shape changes in `command.json` `agentOverrides`.\n\n```markdown\n---\ndescription: Review code\nargument-hint: "[scope]"\nallowed-tools:\n - Read\n - Grep\n---\n\nReview {{arguments}}.\n```\n\nSupported body placeholders: `{{arguments}}`, `{{arguments[N]}}`, `{{arg:name}}`.\n\n## Rendering\n\n`axm install` and `axm sync` render commands into each configured agent\'s\nnative command directory:\n\n- **Markdown + YAML** (Claude Code, Codex, OpenCode, Augment, Junie, Kilo,\n Roo) — frontmatter keys become YAML; body follows the `---` block.\n- **Markdown body only** (Cursor) — body only; frontmatter is dropped.\n- **Prompt Markdown** (GitHub Copilot IDE) — frontmatter keys become YAML;\n file names end in `.prompt.md`.\n- **TOML** (Gemini CLI) — frontmatter keys become TOML; body becomes `prompt`.\n Nested filenames map to Gemini `:` command namespaces.\n- **Plain text** (Kiro CLI) — body only; frontmatter is not rendered.\n\nDo not edit rendered command files directly. Edit the command package source and\nre-render.\n\n## Where to go next\n\n- `axm commands --help` — full command subcommand surface.\n',
16
+ "exit-codes": "# Exit codes\n\n| Code | Meaning |\n| ---- | ---------------------------------------------------------- |\n| 0 | Success, including help output and cancelled prompts. |\n| 1 | Internal or uncategorized error. |\n| 2 | Usage error, such as an unknown flag or CLI parse failure. |\n| 3 | Not found. |\n| 4 | Authentication required or invalid. |\n| 5 | Forbidden — authenticated but lacking permission. |\n| 6 | Conflict, such as a publish version that already exists. |\n| 7 | Rate limited. |\n| 8 | Network error. |\n| 9 | Validation error. |\n| 130 | Signal termination, such as SIGINT or SIGTERM. |\n",
17
+ "getting-started": "# Getting started\n\nUse this when the current workspace has never been managed by AXM before. It\nwalks through first-time setup. Once `.axm/` exists, switch to\n`axm help basic-usage`.\n\nAXM manages agent extensions for a workspace: skills, commands, MCP servers,\nsubagents, and packs. A workspace is the project (or user) directory whose\nextensions AXM tracks.\n\n## Confirm AXM is installed\n\n```bash\naxm --version\n```\n\nIf this fails, follow the install bootstrap at `https://axm.sh/install.md`\nbefore continuing. Do not invent a runner fallback such as `bunx`, `pnpx`, or\n`npx` — they skip `axm setup` and split state across cached versions.\n\n## Initialize the workspace\n\nRun setup in the project you want AXM to manage:\n\n```bash\naxm setup\n```\n\nSetup is idempotent. It creates `.axm/`, detects supported coding agents,\nrecords workspace settings, and writes the resolution lockfile. Read\n`axm help basic-usage` to learn what those files do and which ones must be\nchecked in.\n\nFor non-interactive environments, pass `--yes`. To pin which agents AXM\nconfigures, pass one or more `--agent <id>` flags instead of relying on\nauto-detection.\n\n## Add your first extension\n\nOnce setup is complete, install extensions in one of these ways:\n\n```bash\naxm discover --json # suggestions from project deps\naxm install @profile/skills/<name> --yes # install a known registry FQN\naxm skills install owner/repo --yes # install from a GitHub source\n```\n\n`axm discover` is read-only and a good starting point when you do not already\nknow what to install.\n\n## Where to go next\n\n- `axm help basic-usage` — what each workspace file is for, what is safe to\n inspect, what changes state, and what must be checked in.\n- `axm help skills` — anatomy of a native managed skill on disk.\n- `axm <command> --help` — flags and examples for any command.\n- `axm help` — list every available help topic.\n",
18
+ skills: "# Skills\n\nSkill packages live in `./.axm/extensions/<@owner>/skills/<skill-name>`.\n\n## skill.json\n\n[`skill.json`](https://axm.sh/schemas/skill.schema.json) is the skill package manifest for the agentxm.ai registry.\n\n## `src/`\n\nThe `src/` within the skill package contains `SKILL.md` and any other files as specified by the agentskills.io specification.\n\n## Authoring and editing skills\n\nThe contents of the `src` symlinked by AXM to the respective agent skill directories, so no need to `axm sync` after an edit. Only run `axm sync` if symlinks or copies are broken.\n\n## Where to go next\n\n- `axm skills --help` — full skill subcommand surface.\n",
19
+ subagents: "# Subagents\n\nSubagent packages live in `./.axm/extensions/<@owner>/subagents/<subagent-name>`.\n\nA subagent is two coordinated files: a portable manifest plus a content file that holds the system prompt and any agent-facing frontmatter.\n\n## subagent.json\n\n[`subagent.json`](https://axm.sh/schemas/subagent.schema.json) is the subagent package manifest for the agentxm.ai registry. It carries identity (`owner`, `type`, `name`, `version`) and registry metadata (`description`, `keywords`, `repository`, `license`, `authors`, `compatiblePackages`). Targeting is workspace-owned through `.axm/settings.json` `agents`; publish rejects manifest `agents`. The manifest does not carry per-agent behavior — that lives in the content file.\n\nThe manifest's `description` is the registry-facing summary. It has no relationship to anything in the frontmatter; you can have a different description in either place.\n\n## `src/`\n\nThe `src/` directory holds `<subagent-name>.md` — Markdown with YAML frontmatter and a body containing the system prompt.\n\nOnly one frontmatter field is required: `name`. Everything else you write in the frontmatter passes through verbatim into the rendered agent-native file. AXM does not interpret or reshape it. Omit top-level frontmatter unless it will work on all agents. Otherwise, specify the desired subagent\nconfiguration per each agent's official subagent documentation.\n\n```markdown\n---\nname: code-reviewer\ndescription: \"call me uncle bob\"\nagentOverrides:\n claude-code:\n model: claude-opus-4-6\n codex:\n model: gpt-5-codex\n sandbox_mode: read-only\n description: null\n---\n\nYou are a senior code reviewer...\n```\n\n`name` must match both the manifest's `name` and the filename stem.\n\n## Pass-through rendering\n\n`axm install` and `axm sync` translate the content file's frontmatter into each target agent's native format and place the body in the format's natural slot:\n\n- **Markdown + YAML** (Claude Code, Copilot, Cursor, Gemini CLI, OpenCode, Augment, Junie, Kilo Code, Kiro IDE) — frontmatter keys → YAML; body follows the `---` block.\n- **TOML** (Codex) — frontmatter keys → TOML key-value lines; body becomes `developer_instructions`.\n- **JSON** (Kiro CLI) — frontmatter keys → JSON object; body becomes `prompt`.\n- **Roo modes** (Roo Code) — `slug` and `name` are set to the subagent name; the body splits at the first blank line into `roleDefinition` and `customInstructions`; `groups` defaults to `[read, edit, command, mcp]` if not in frontmatter; other frontmatter keys flow through.\n\nWhatever you write in your frontmatter is what shows up in the rendered file. If you want different values for different agents, use `agentOverrides`. Do not edit the rendered subagents directly.\n\n## Agent overrides\n\n`agentOverrides.<agent-id>` is the one recognized convention key in frontmatter. It is consumed by the renderer and never appears in the rendered output. Each entry is applied as an RFC 7396 JSON Merge Patch on top of the rendered fields for that agent: objects merge recursively, `null` deletes a key, arrays replace wholesale, and primitive values replace.\n\n```yaml\nagentOverrides:\n claude-code:\n permissions:\n write: false\n legacyMode: null\n allowedTools:\n - Read\n - Grep\n codex:\n sandbox_mode: workspace-write\n```\n\nOverrides for agents not in your configured `agents` set are ignored, with a warning.\n\n## Updating subagents\n\nEdit the content file under `src/` and update `subagent.json` if you change identity or registry metadata. `axm sync` re-renders the agent-native files from the content file's frontmatter and body; it does not write to `subagent.json`.\n\nRun `axm subagents publish` to release a new version. Publish validates the manifest, checks that `src/<subagent-name>.md` exists and that its frontmatter `name` matches the manifest, then zips the extension directory, computes its SRI integrity hash, and uploads the version to the target registry. Publish never edits `subagent.json` — whatever is on disk is what gets shipped.\n\n## Where to go next\n\n- `axm subagents --help` — full subagent subcommand surface.\n",
20
+ };
21
+ //# sourceMappingURL=help-topics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help-topics.js","sourceRoot":"","sources":["../../../src/__generated__/help-topics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,aAAa;IACb,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,QAAQ;IACR,WAAW;CACH,CAAC;AAIX,MAAM,CAAC,MAAM,WAAW,GAAkC;IACxD,aAAa,EACX,q8GAAq8G;IACv8G,QAAQ,EACN,yzEAAyzE;IAC3zE,YAAY,EACV,66BAA66B;IAC/6B,iBAAiB,EACf,w7DAAw7D;IAC17D,MAAM,EACJ,ypBAAypB;IAC3pB,SAAS,EACP,ylIAAylI;CAC5lI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAa,OAAO,EAAc,MAAM,qBAAqB,CAAC;AAyCrE,eAAO,MAAM,WAAW,8HA6CvB,CAAC;AAWF,eAAO,MAAM,GAAG,GAAU,OAAM,aAAa,CAAC,MAAM,CAAyB,KAAG,OAAO,CAAC,IAAI,CA8B3F,CAAC"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAa,OAAO,EAAc,MAAM,qBAAqB,CAAC;AA8CrE,eAAO,MAAM,WAAW,8HAgDvB,CAAC;AAWF,eAAO,MAAM,GAAG,GAAU,OAAM,aAAa,CAAC,MAAM,CAAyB,KAAG,OAAO,CAAC,IAAI,CA8B3F,CAAC"}
package/dist/src/app.js CHANGED
@@ -30,10 +30,16 @@ import { installCommand } from "./root/install/command.js";
30
30
  import { outdatedCommand } from "./root/outdated/command.js";
31
31
  import { uninstallCommand } from "./root/uninstall/command.js";
32
32
  import { pruneCommand } from "./root/prune/command.js";
33
+ import { syncCommand } from "./root/sync/command.js";
33
34
  import { updateCommand } from "./root/update/command.js";
35
+ import { helpCommand } from "./root/help/command.js";
36
+ import { viewCommand } from "./root/view/command.js";
37
+ import { versionCommand } from "./root/shared/version-command.js";
38
+ import { HELP_TOPIC_NAMES } from "./__generated__/help-topics.js";
34
39
  const ROOT_COMMAND = "axm";
35
40
  const version = loadVersion();
36
- const LEARN_MORE_FOOTER = "LEARN MORE\n Use 'axm <command> --help' for more information about a command.\n Report issues at https://github.com/agentxm/axm/issues";
41
+ const HELP_TOPIC_LIST = HELP_TOPIC_NAMES.map((topic) => ` ${topic}`).join("\n");
42
+ const LEARN_MORE_FOOTER = `LEARN MORE\n Use 'axm help <topic>' to read a topic page.\n\nTOPICS\n${HELP_TOPIC_LIST}\n\nCOMMAND HELP\n Use 'axm <command> --help' for command help.\n Report issues at https://github.com/agentxm/axm/issues`;
37
43
  removeBuiltInFlag(GlobalFlag.Completions);
38
44
  removeBuiltInFlag(GlobalFlag.LogLevel);
39
45
  export const rootCommand = Command.make(ROOT_COMMAND).pipe(Command.withDescription("Open extension manager for AI coding agents.\n Manage skills, commands, MCP servers, and extension packs across your AI coding agents from a single CLI."), Command.annotate(LearnMore, LEARN_MORE_FOOTER), Command.withExamples([
@@ -52,7 +58,7 @@ export const rootCommand = Command.make(ROOT_COMMAND).pipe(Command.withDescripti
52
58
  },
53
59
  { command: "axm whoami", description: "Check who you're authenticated as" },
54
60
  ]), Command.withSubcommands([
55
- { group: "GETTING STARTED", commands: [setupCommand, discoverCommand] },
61
+ { group: "GETTING STARTED", commands: [helpCommand, setupCommand, discoverCommand] },
56
62
  {
57
63
  group: "EXTENSIONS",
58
64
  commands: [skillsCommand, commandsCommand, mcpServersCommand, subagentsCommand, packsCommand],
@@ -62,8 +68,11 @@ export const rootCommand = Command.make(ROOT_COMMAND).pipe(Command.withDescripti
62
68
  commands: [
63
69
  installCommand,
64
70
  updateCommand,
71
+ syncCommand,
65
72
  uninstallCommand,
66
73
  outdatedCommand,
74
+ viewCommand,
75
+ versionCommand,
67
76
  lintCommand,
68
77
  pruneCommand,
69
78
  upgradeCommand,
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE3F,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAA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,YAAY,EAAE,OAAO;YACrB,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI;gBACV,gBAAgB,EAAE,6BAA6B,CAAC,IAAI,CAAC;gBACrD,YAAY,EAAE,MAAM;aACrB;SACF,CAAC,CAAC,IAAI;QACL,sEAAsE;QACtE,sEAAsE;QACtE,MAAM,CAAC,OAAO,CACZ,KAAK,CAAC,QAAQ,CACZ,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,SAAS,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CACpD,CACF,CACF,CAAC;IACJ,CAAC,EACD,EAAE,IAAI,EAAE,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAShD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,MAAM,CAEjD,CAAC;AAsPH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,KAAG,SAAS,CAAC,SA+Cb,CAAC"}
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,MAAM,CAEjD,CAAC;AAyOH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,KAAG,SAAS,CAAC,SA6Cb,CAAC"}
@@ -6,7 +6,6 @@ import * as Option from "effect/Option";
6
6
  import * as Schema from "effect/Schema";
7
7
  import * as ServiceMap from "effect/Context";
8
8
  import { CliOutput } from "effect/unstable/cli";
9
- import { JsonSchemaVersion, JsonSchemaVersionSchema, } from "@agentxm/client-core/unstable/cli-runtime";
10
9
  import { BRANDING } from "@agentxm/client-core/unstable/branding";
11
10
  /**
12
11
  * Annotation key for "learn more" footer text.
@@ -72,7 +71,6 @@ const JsonExampleDocSchema = Schema.Struct({
72
71
  description: Schema.optional(Schema.String),
73
72
  });
74
73
  const JsonHelpDocSchema = Schema.Struct({
75
- _version: JsonSchemaVersionSchema,
76
74
  type: Schema.Literal("help"),
77
75
  description: Schema.String,
78
76
  usage: Schema.String,
@@ -84,7 +82,6 @@ const JsonHelpDocSchema = Schema.Struct({
84
82
  learnMore: Schema.optional(Schema.String),
85
83
  });
86
84
  const JsonVersionDocSchema = Schema.Struct({
87
- _version: JsonSchemaVersionSchema,
88
85
  type: Schema.Literal("version"),
89
86
  name: Schema.String,
90
87
  version: Schema.String,
@@ -100,7 +97,6 @@ const toJsonHelpDoc = (doc) => {
100
97
  const adjusted = getAdjustedHelpDoc(doc);
101
98
  const learnMore = getLearnMore(doc);
102
99
  return {
103
- _version: JsonSchemaVersion,
104
100
  type: "help",
105
101
  description: adjusted.description,
106
102
  usage: adjusted.usage,
@@ -129,62 +125,36 @@ const toJsonHelpDoc = (doc) => {
129
125
  ...(learnMore !== "" && { learnMore }),
130
126
  };
131
127
  };
132
- // ---------------------------------------------------------------------------
133
- // Root help section reordering
134
- // ---------------------------------------------------------------------------
135
- // eslint-disable-next-line no-control-regex
136
- const ANSI_RE = /\x1b\[[0-9;]*m/g;
137
- /** Detect ALL-CAPS section headers (with optional trailing colon). */
138
- const isSectionHeader = (line) => {
139
- const plain = line.replace(ANSI_RE, "").trim();
140
- return plain.length > 0 && /^[A-Z][A-Z ]+:?$/.test(plain);
128
+ const flagNames = (flag) => {
129
+ const names = [`--${flag.name}`, ...flag.aliases.map((alias) => `-${alias}`)];
130
+ return names.join(", ");
141
131
  };
142
- /** Desired root help section order. Sections not listed are omitted. */
143
- const ROOT_SECTION_ORDER = [
144
- "USAGE",
145
- "GETTING STARTED:",
146
- "EXTENSIONS:",
147
- "WORKSPACE:",
148
- "AUTH:",
149
- "GLOBAL FLAGS",
150
- "EXAMPLES",
151
- ];
152
- /**
153
- * Reorder sections in the rendered root help output. Parses the base
154
- * formatter's text by detecting ALL-CAPS header lines, then reassembles
155
- * only the sections listed in {@link ROOT_SECTION_ORDER}.
156
- */
157
- const reorderRootSections = (output) => {
158
- const lines = output.split("\n");
159
- const sections = new Map();
160
- let currentKey = "";
161
- for (const line of lines) {
162
- if (isSectionHeader(line)) {
163
- currentKey = line.replace(ANSI_RE, "").trim();
164
- sections.set(currentKey, [line]);
165
- }
166
- else if (currentKey) {
167
- const current = sections.get(currentKey);
168
- if (current !== undefined)
169
- current.push(line);
170
- }
132
+ const flagLabel = (flag) => flag.type === "boolean" ? flagNames(flag) : `${flagNames(flag)} <${flag.type}>`;
133
+ const padRows = (rows, indent = " ") => {
134
+ const width = rows.reduce((max, [label]) => Math.max(max, label.length), 0);
135
+ return rows.map(([label, description]) => description === "" ? `${indent}${label}` : `${indent}${label.padEnd(width)} ${description}`);
136
+ };
137
+ const commandDescription = (command) => command.shortDescription ?? command.description;
138
+ const renderRootHelpDoc = (doc) => {
139
+ const sections = [
140
+ ["", BRANDING, "", doc.description].filter((line) => line !== "").join("\n"),
141
+ ["USAGE", ` ${doc.usage}`].join("\n"),
142
+ ];
143
+ for (const group of doc.subcommands ?? []) {
144
+ const groupName = group.group ?? "COMMANDS";
145
+ const rows = group.commands.map((command) => [command.name, commandDescription(command)]);
146
+ sections.push([`${groupName} COMMANDS`, ...padRows(rows)].join("\n"));
147
+ }
148
+ const flags = [...doc.flags, ...(doc.globalFlags ?? [])];
149
+ if (flags.length > 0) {
150
+ const rows = flags.map((flag) => [flagLabel(flag), Option.getOrElse(flag.description, () => "")]);
151
+ sections.push(["FLAGS", ...padRows(rows)].join("\n"));
171
152
  }
172
- // Trim trailing blank lines from each section
173
- for (const [, sectionLines] of sections) {
174
- while (sectionLines.length > 0 && sectionLines[sectionLines.length - 1]?.trim() === "") {
175
- sectionLines.pop();
176
- }
153
+ if (doc.examples !== undefined && doc.examples.length > 0) {
154
+ const rows = doc.examples.map((example) => [example.command, example.description ?? ""]);
155
+ sections.push(["EXAMPLES", ...padRows(rows)].join("\n"));
177
156
  }
178
- // Ordered sections first, then any unrecognized sections to avoid silent drops
179
- const orderedKeys = new Set(ROOT_SECTION_ORDER);
180
- const ordered = ROOT_SECTION_ORDER.flatMap((key) => {
181
- const s = sections.get(key);
182
- return s !== undefined ? [s.join("\n")] : [];
183
- });
184
- const unrecognized = [...sections.entries()]
185
- .filter(([key]) => !orderedKeys.has(key))
186
- .map(([, sectionLines]) => sectionLines.join("\n"));
187
- return [...ordered, ...unrecognized].join("\n\n");
157
+ return sections.join("\n\n");
188
158
  };
189
159
  // ---------------------------------------------------------------------------
190
160
  // Formatter
@@ -208,9 +178,8 @@ export const makeAxmFormatter = (options) => {
208
178
  }
209
179
  const adjusted = getAdjustedHelpDoc(doc);
210
180
  let output = base.formatHelpDoc(adjusted);
211
- // Root help: reorder sections, omit DESCRIPTION, and prepend branding
212
181
  if (!isSubcommandDoc(doc)) {
213
- output = "\n" + BRANDING + "\n\n" + reorderRootSections(output);
182
+ output = renderRootHelpDoc(adjusted);
214
183
  }
215
184
  const learnMore = getLearnMore(doc);
216
185
  if (learnMore !== "") {
@@ -220,7 +189,6 @@ export const makeAxmFormatter = (options) => {
220
189
  },
221
190
  formatVersion: (name, version) => json
222
191
  ? JSON.stringify(Schema.encodeSync(JsonVersionDocSchema)({
223
- _version: JsonSchemaVersion,
224
192
  type: "version",
225
193
  name,
226
194
  version,
@@ -1 +1 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tC,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;YAC3F,CAAC;YAED,MAAM,QAAQ,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;YACzC,IAAI,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAE1C,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC1B,MAAM,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;YACvC,CAAC;YAED,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;YACpC,IAAI,SAAS,KAAK,EAAE,EAAE,CAAC;gBACrB,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC;YAC/B,CAAC;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,aAAa,EAAE,CAAC,IAAY,EAAE,OAAe,EAAU,EAAE,CACvD,IAAI;YACF,CAAC,CAAC,IAAI,CAAC,SAAS,CACZ,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;gBACtC,IAAI,EAAE,SAAS;gBACf,IAAI;gBACJ,OAAO;aACR,CAAC,EACF,IAAI,EACJ,CAAC,CACF;YACH,CAAC,CAAC,OAAO;QAEb,wEAAwE;QACxE,wEAAwE;QACxE,sDAAsD;QACtD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;KACpD,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as Effect from "effect/Effect";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
4
- import type { CommandOutcomeSummary, SourceKind, SubjectType } from "@agentxm/client-core/unstable/cli-runtime";
4
+ import type { Breadcrumb, CommandOutcomeSummary, SourceKind, SubjectType } from "@agentxm/client-core/unstable/cli-runtime";
5
5
  import type { PlanResolution } from "@agentxm/client-core/unstable/plan";
6
6
  export declare const PlanResolutionResultSchema: Schema.Struct<{
7
7
  readonly outcome: Schema.Literals<readonly ["previewed", "cancelled", "applied", "no-op"]>;
@@ -24,7 +24,11 @@ export declare const PlanResolutionResultSchema: Schema.Struct<{
24
24
  }>;
25
25
  export type PlanResolutionResult = typeof PlanResolutionResultSchema.Type;
26
26
  export declare const toPlanResolutionResult: (resolution: PlanResolution) => PlanResolutionResult;
27
- export declare const emitPlanResolutionResult: <TCommand extends string>(command: TCommand, resolution: PlanResolution) => Effect.Effect<boolean, never, CliRenderer>;
27
+ export declare const emitPlanResolutionResult: <TCommand extends string>(command: TCommand, resolution: PlanResolution, options?: {
28
+ readonly summary?: string;
29
+ readonly breadcrumbs?: ReadonlyArray<Breadcrumb>;
30
+ readonly withoutBreadcrumbs?: boolean;
31
+ }) => Effect.Effect<boolean, never, CliRenderer>;
28
32
  /**
29
33
  * Convert a PlanResolution to a CommandOutcomeSummary for telemetry.
30
34
  * Produces normalized outcome, counts, and optional subject/source context.
@@ -1 +1 @@
1
- {"version":3,"file":"json-output.d.ts","sourceRoot":"","sources":["../../src/json-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,KAAK,EACV,qBAAqB,EACrB,UAAU,EACV,WAAW,EACZ,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,oCAAoC,CAAC;AA6B5C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAsBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAiD1E,eAAO,MAAM,s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1B,UAAU;IACR,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACjD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CACvC,+CASC,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAClC,YAAY,cAAc,EAC1B,SAAS;IAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAA;CAAE,KAChF,qBAUF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,MAAM,EACpD,SAAS,QAAQ,EACjB,MAAM;IACJ,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,+CAuBC,CAAC"}
@@ -78,7 +78,7 @@ const completedStepToStep = (step) => {
78
78
  const code = step.result.error.code;
79
79
  return {
80
80
  label: step.label,
81
- status: code === "PLAN_STEP_BLOCKED" ? "blocked" : "failed",
81
+ status: step.result.message.includes("blocked") ? "blocked" : "failed",
82
82
  ...(step.result.message.length > 0 ? { message: step.result.message } : {}),
83
83
  code,
84
84
  };
@@ -130,9 +130,9 @@ export const toPlanResolutionResult = (resolution) => {
130
130
  }
131
131
  }
132
132
  };
133
- export const emitPlanResolutionResult = (command, resolution) => Effect.gen(function* () {
133
+ export const emitPlanResolutionResult = (command, resolution, options) => Effect.gen(function* () {
134
134
  const renderer = yield* CliRenderer;
135
- return yield* renderer.document(command, { result: toPlanResolutionResult(resolution) }, PlanResolutionDocumentFields);
135
+ return yield* renderer.result({ result: toPlanResolutionResult(resolution) }, Schema.Struct(PlanResolutionDocumentFields), options);
136
136
  });
137
137
  /**
138
138
  * Convert a PlanResolution to a CommandOutcomeSummary for telemetry.
@@ -151,7 +151,7 @@ export const planResolutionToSummary = (resolution, context) => {
151
151
  };
152
152
  export const emitNoOpResult = (command, args) => Effect.gen(function* () {
153
153
  const renderer = yield* CliRenderer;
154
- return yield* renderer.document(command, {
154
+ return yield* renderer.result({
155
155
  result: {
156
156
  outcome: "no-op",
157
157
  planName: args.planName,
@@ -166,6 +166,6 @@ export const emitNoOpResult = (command, args) => Effect.gen(function* () {
166
166
  blockedCount: 0,
167
167
  steps: [],
168
168
  },
169
- }, PlanResolutionDocumentFields);
169
+ }, Schema.Struct(PlanResolutionDocumentFields));
170
170
  });
171
171
  //# sourceMappingURL=json-output.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-output.js","sourceRoot":"","sources":["../../src/json-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAazE,MAAM,gBAAgB,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,OAAO;IACP,SAAS;IACT,OAAO;IACP,SAAS;IACT,QAAQ;IACR,SAAS;CACD,CAAC,CAAC,QAAQ,CAAC;IACnB,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,sFAAsF;CACzF,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACrC,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,MAAM;IAClB,KAAK,EAAE,WAAW;IAClB,W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,WAAW,EACX,eAAe,EAGhB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAGzE,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAGtF,UAAU,iBAAiB;IACzB,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,CAAC,CAAC;CACnG;AAKD,eAAO,MAAM,WAAW;SACN,OAAO;+SA0CR,CAAC;AAQlB,eAAO,MAAM,YAAY,+WAUxB,CAAC"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/root/auth/login.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,OAAO,EAAQ,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EACL,UAAU,EACV,WAAW,EACX,eAAe,EAGhB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAGzE,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAGtF,UAAU,iBAAiB;IACzB,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,CAAC,CAAC;CACnG;AAKD,eAAO,MAAM,WAAW;SACN,OAAO;+SAqCR,CAAC;AAQlB,eAAO,MAAM,YAAY,+WAUxB,CAAC"}
@@ -6,7 +6,7 @@ import { requireInteractive } from "@agentxm/client-core/unstable/cli/prompt";
6
6
  import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
7
7
  import { isNonInteractive, yesFlag } from "@agentxm/client-core/unstable/cli-flags";
8
8
  import { withArgvTracking } from "@agentxm/client-core/unstable/cli-runtime";
9
- import { makeAppError } from "@agentxm/client-core/unstable/app-error";
9
+ import { errAuthRequired } from "@agentxm/client-core/unstable/app-error";
10
10
  import { withAuthRuntime } from "../../runtime.js";
11
11
  const confirmRelogin = (message) => requireInteractive(Prompt.confirm({ message }), { message });
12
12
  export const handleLogin = Effect.fn("AuthLogin.handle")(function* (options, interactions) {
@@ -19,11 +19,7 @@ export const handleLogin = Effect.fn("AuthLogin.handle")(function* (options, int
19
19
  // Step 1: Reject non-interactive mode
20
20
  const nonInteractive = yield* isNonInteractive;
21
21
  if (nonInteractive) {
22
- return yield* makeAppError({
23
- code: "AUTH_LOGIN_REQUIRED",
24
- what: "Login requires an interactive terminal",
25
- howToFix: "Set the AXM_TOKEN environment variable or run `axm login` in an interactive terminal.",
26
- });
22
+ return yield* errAuthRequired("Login requires an interactive terminal");
27
23
  }
28
24
  // Step 2: Check existing auth — validate token against the server
29
25
  const existing = yield* credStore.load(registryUrl);
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../../src/root/auth/login.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EACL,UAAU,EACV,WAAW,EACX,eAAe,EACf,wCAAwC,EACxC,cAAc,GACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,gBAAgB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;IAClB,GAAG,EAAE,OAAO,CAAC,IAAI,CACf,IAAI,CAAC,eAAe,CAAC,2DAA2D,CAAC,CAClF;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CACzE,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CACzD,CAAC,IAAI,CACJ,gBAAgB,CAAC,WAAW,CAAC,EAC7B,OAAO,CAAC,eAAe,CAAC,uBAAuB,CAAC,EAChD,OAAO,CAAC,YAAY,CAAC;IACnB,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iCAAiC,EAAE;IAC7E,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,2BAA2B,EAAE;IAClE,EAAE,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,+BAA+B,EAAE;CAClF,CAAC,CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../src/root/auth/logout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAczE,eAAO,MAAM,YAAY,gKAmDR,CAAC;AAIlB,eAAO,MAAM,aAAa,0SASzB,CAAC"}
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../src/root/auth/logout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAczE,eAAO,MAAM,YAAY,gKAkDR,CAAC;AAIlB,eAAO,MAAM,aAAa,0SASzB,CAAC"}
@@ -23,7 +23,7 @@ export const handleLogout = Effect.fn("AuthLogout.handle")(function* () {
23
23
  // Step 1: Load credentials
24
24
  const existing = yield* credStore.load(registryUrl);
25
25
  if (Option.isNone(existing)) {
26
- if (yield* renderer.document("auth.logout", { result: { status: "not-logged-in", registryHost } }, LogoutDocumentFields)) {
26
+ if (yield* renderer.result({ result: { status: "not-logged-in", registryHost } }, Schema.Struct(LogoutDocumentFields))) {
27
27
  return;
28
28
  }
29
29
  yield* renderer.success(`Not logged in to ${registryHost}. Nothing to do.`);
@@ -41,7 +41,7 @@ export const handleLogout = Effect.fn("AuthLogout.handle")(function* () {
41
41
  // Step 4: Build result and render
42
42
  const status = Option.isSome(revokeResult) ? "logged-out" : "logged-out-local-only";
43
43
  const result = { status, registryHost, ...optionalHandle };
44
- if (yield* renderer.document("auth.logout", { result }, LogoutDocumentFields)) {
44
+ if (yield* renderer.result({ result }, Schema.Struct(LogoutDocumentFields))) {
45
45
  return;
46
46
  }
47
47
  if (Option.isSome(revokeResult)) {
@@ -1 +1 @@
1
- {"version":3,"file":"logout.js","sourceRoot":"","sources":["../../../../src/root/auth/logout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO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AC,EACjD,OAAO,CAAC,YAAY,CAAC;IACnB,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,kCAAkC,EAAE;IAC/E,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,2BAA2B,EAAE;CACpE,CAAC,CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../src/root/auth/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAwB,MAAM,oCAAoC,CAAC;AAGvF,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAWzE,eAAO,MAAM,WAAW,6NAqBP,CAAC;AAIlB,eAAO,MAAM,YAAY,ySAaxB,CAAC"}
1
+ {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../src/root/auth/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAwB,MAAM,oCAAoC,CAAC;AAGvF,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAWzE,eAAO,MAAM,WAAW,6NAiBP,CAAC;AAIlB,eAAO,MAAM,YAAY,ySAaxB,CAAC"}