axm.sh 0.1.6

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 (503) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -0
  3. package/dist/src/app.d.ts +7 -0
  4. package/dist/src/app.d.ts.map +1 -0
  5. package/dist/src/app.js +96 -0
  6. package/dist/src/app.js.map +1 -0
  7. package/dist/src/cli-flags.d.ts +3 -0
  8. package/dist/src/cli-flags.d.ts.map +1 -0
  9. package/dist/src/cli-flags.js +4 -0
  10. package/dist/src/cli-flags.js.map +1 -0
  11. package/dist/src/formatter.d.ts +22 -0
  12. package/dist/src/formatter.d.ts.map +1 -0
  13. package/dist/src/formatter.js +170 -0
  14. package/dist/src/formatter.js.map +1 -0
  15. package/dist/src/json-output.d.ts +41 -0
  16. package/dist/src/json-output.d.ts.map +1 -0
  17. package/dist/src/json-output.js +171 -0
  18. package/dist/src/json-output.js.map +1 -0
  19. package/dist/src/main.d.ts +3 -0
  20. package/dist/src/main.d.ts.map +1 -0
  21. package/dist/src/main.js +4 -0
  22. package/dist/src/main.js.map +1 -0
  23. package/dist/src/root/auth/_auth.d.ts +3 -0
  24. package/dist/src/root/auth/_auth.d.ts.map +1 -0
  25. package/dist/src/root/auth/_auth.js +11 -0
  26. package/dist/src/root/auth/_auth.js.map +1 -0
  27. package/dist/src/root/auth/login.d.ts +15 -0
  28. package/dist/src/root/auth/login.d.ts.map +1 -0
  29. package/dist/src/root/auth/login.js +55 -0
  30. package/dist/src/root/auth/login.js.map +1 -0
  31. package/dist/src/root/auth/logout.d.ts +7 -0
  32. package/dist/src/root/auth/logout.d.ts.map +1 -0
  33. package/dist/src/root/auth/logout.js +59 -0
  34. package/dist/src/root/auth/logout.js.map +1 -0
  35. package/dist/src/root/auth/token.d.ts +7 -0
  36. package/dist/src/root/auth/token.d.ts.map +1 -0
  37. package/dist/src/root/auth/token.js +45 -0
  38. package/dist/src/root/auth/token.js.map +1 -0
  39. package/dist/src/root/auth/whoami.d.ts +7 -0
  40. package/dist/src/root/auth/whoami.d.ts.map +1 -0
  41. package/dist/src/root/auth/whoami.js +73 -0
  42. package/dist/src/root/auth/whoami.js.map +1 -0
  43. package/dist/src/root/commands/_commands.d.ts +3 -0
  44. package/dist/src/root/commands/_commands.d.ts.map +1 -0
  45. package/dist/src/root/commands/_commands.js +45 -0
  46. package/dist/src/root/commands/_commands.js.map +1 -0
  47. package/dist/src/root/commands/disable.d.ts +17 -0
  48. package/dist/src/root/commands/disable.d.ts.map +1 -0
  49. package/dist/src/root/commands/disable.js +100 -0
  50. package/dist/src/root/commands/disable.js.map +1 -0
  51. package/dist/src/root/commands/enable.d.ts +17 -0
  52. package/dist/src/root/commands/enable.d.ts.map +1 -0
  53. package/dist/src/root/commands/enable.js +101 -0
  54. package/dist/src/root/commands/enable.js.map +1 -0
  55. package/dist/src/root/commands/install/command-actions.d.ts +61 -0
  56. package/dist/src/root/commands/install/command-actions.d.ts.map +1 -0
  57. package/dist/src/root/commands/install/command-actions.js +211 -0
  58. package/dist/src/root/commands/install/command-actions.js.map +1 -0
  59. package/dist/src/root/commands/install/command.d.ts +3 -0
  60. package/dist/src/root/commands/install/command.d.ts.map +1 -0
  61. package/dist/src/root/commands/install/command.js +32 -0
  62. package/dist/src/root/commands/install/command.js.map +1 -0
  63. package/dist/src/root/commands/install/handler.d.ts +11 -0
  64. package/dist/src/root/commands/install/handler.d.ts.map +1 -0
  65. package/dist/src/root/commands/install/handler.js +31 -0
  66. package/dist/src/root/commands/install/handler.js.map +1 -0
  67. package/dist/src/root/commands/install/intent.d.ts +19 -0
  68. package/dist/src/root/commands/install/intent.d.ts.map +1 -0
  69. package/dist/src/root/commands/install/intent.js +9 -0
  70. package/dist/src/root/commands/install/intent.js.map +1 -0
  71. package/dist/src/root/commands/job-step-result.d.ts +21 -0
  72. package/dist/src/root/commands/job-step-result.d.ts.map +1 -0
  73. package/dist/src/root/commands/job-step-result.js +17 -0
  74. package/dist/src/root/commands/job-step-result.js.map +1 -0
  75. package/dist/src/root/commands/list.d.ts +7 -0
  76. package/dist/src/root/commands/list.d.ts.map +1 -0
  77. package/dist/src/root/commands/list.js +63 -0
  78. package/dist/src/root/commands/list.js.map +1 -0
  79. package/dist/src/root/commands/new.d.ts +19 -0
  80. package/dist/src/root/commands/new.d.ts.map +1 -0
  81. package/dist/src/root/commands/new.js +111 -0
  82. package/dist/src/root/commands/new.js.map +1 -0
  83. package/dist/src/root/commands/preview-sections.d.ts +11 -0
  84. package/dist/src/root/commands/preview-sections.d.ts.map +1 -0
  85. package/dist/src/root/commands/preview-sections.js +25 -0
  86. package/dist/src/root/commands/preview-sections.js.map +1 -0
  87. package/dist/src/root/commands/publish.d.ts +20 -0
  88. package/dist/src/root/commands/publish.d.ts.map +1 -0
  89. package/dist/src/root/commands/publish.js +238 -0
  90. package/dist/src/root/commands/publish.js.map +1 -0
  91. package/dist/src/root/commands/uninstall/command-actions.d.ts +31 -0
  92. package/dist/src/root/commands/uninstall/command-actions.d.ts.map +1 -0
  93. package/dist/src/root/commands/uninstall/command-actions.js +85 -0
  94. package/dist/src/root/commands/uninstall/command-actions.js.map +1 -0
  95. package/dist/src/root/commands/uninstall/command.d.ts +3 -0
  96. package/dist/src/root/commands/uninstall/command.d.ts.map +1 -0
  97. package/dist/src/root/commands/uninstall/command.js +27 -0
  98. package/dist/src/root/commands/uninstall/command.js.map +1 -0
  99. package/dist/src/root/commands/uninstall/handler.d.ts +8 -0
  100. package/dist/src/root/commands/uninstall/handler.d.ts.map +1 -0
  101. package/dist/src/root/commands/uninstall/handler.js +10 -0
  102. package/dist/src/root/commands/uninstall/handler.js.map +1 -0
  103. package/dist/src/root/commands/uninstall/intent.d.ts +15 -0
  104. package/dist/src/root/commands/uninstall/intent.d.ts.map +1 -0
  105. package/dist/src/root/commands/uninstall/intent.js +9 -0
  106. package/dist/src/root/commands/uninstall/intent.js.map +1 -0
  107. package/dist/src/root/commands/update.d.ts +18 -0
  108. package/dist/src/root/commands/update.d.ts.map +1 -0
  109. package/dist/src/root/commands/update.js +145 -0
  110. package/dist/src/root/commands/update.js.map +1 -0
  111. package/dist/src/root/discover/command.d.ts +6 -0
  112. package/dist/src/root/discover/command.d.ts.map +1 -0
  113. package/dist/src/root/discover/command.js +22 -0
  114. package/dist/src/root/discover/command.js.map +1 -0
  115. package/dist/src/root/discover/handler.d.ts +52 -0
  116. package/dist/src/root/discover/handler.d.ts.map +1 -0
  117. package/dist/src/root/discover/handler.js +102 -0
  118. package/dist/src/root/discover/handler.js.map +1 -0
  119. package/dist/src/root/doctor/command.d.ts +3 -0
  120. package/dist/src/root/doctor/command.d.ts.map +1 -0
  121. package/dist/src/root/doctor/command.js +19 -0
  122. package/dist/src/root/doctor/command.js.map +1 -0
  123. package/dist/src/root/doctor/handler.d.ts +10 -0
  124. package/dist/src/root/doctor/handler.d.ts.map +1 -0
  125. package/dist/src/root/doctor/handler.js +27 -0
  126. package/dist/src/root/doctor/handler.js.map +1 -0
  127. package/dist/src/root/doctor/render.d.ts +8 -0
  128. package/dist/src/root/doctor/render.d.ts.map +1 -0
  129. package/dist/src/root/doctor/render.js +183 -0
  130. package/dist/src/root/doctor/render.js.map +1 -0
  131. package/dist/src/root/init.d.ts +10 -0
  132. package/dist/src/root/init.d.ts.map +1 -0
  133. package/dist/src/root/init.js +133 -0
  134. package/dist/src/root/init.js.map +1 -0
  135. package/dist/src/root/install/command.d.ts +3 -0
  136. package/dist/src/root/install/command.d.ts.map +1 -0
  137. package/dist/src/root/install/command.js +32 -0
  138. package/dist/src/root/install/command.js.map +1 -0
  139. package/dist/src/root/install/handler.d.ts +17 -0
  140. package/dist/src/root/install/handler.d.ts.map +1 -0
  141. package/dist/src/root/install/handler.js +62 -0
  142. package/dist/src/root/install/handler.js.map +1 -0
  143. package/dist/src/root/install/resolve-root-install-intent.d.ts +16 -0
  144. package/dist/src/root/install/resolve-root-install-intent.d.ts.map +1 -0
  145. package/dist/src/root/install/resolve-root-install-intent.js +75 -0
  146. package/dist/src/root/install/resolve-root-install-intent.js.map +1 -0
  147. package/dist/src/root/install/workspace-install-handler.d.ts +23 -0
  148. package/dist/src/root/install/workspace-install-handler.d.ts.map +1 -0
  149. package/dist/src/root/install/workspace-install-handler.js +52 -0
  150. package/dist/src/root/install/workspace-install-handler.js.map +1 -0
  151. package/dist/src/root/install/workspace-install.d.ts +38 -0
  152. package/dist/src/root/install/workspace-install.d.ts.map +1 -0
  153. package/dist/src/root/install/workspace-install.js +160 -0
  154. package/dist/src/root/install/workspace-install.js.map +1 -0
  155. package/dist/src/root/mcp-servers/_mcp-servers.d.ts +3 -0
  156. package/dist/src/root/mcp-servers/_mcp-servers.d.ts.map +1 -0
  157. package/dist/src/root/mcp-servers/_mcp-servers.js +14 -0
  158. package/dist/src/root/mcp-servers/_mcp-servers.js.map +1 -0
  159. package/dist/src/root/mcp-servers/install/command-actions.d.ts +48 -0
  160. package/dist/src/root/mcp-servers/install/command-actions.d.ts.map +1 -0
  161. package/dist/src/root/mcp-servers/install/command-actions.js +185 -0
  162. package/dist/src/root/mcp-servers/install/command-actions.js.map +1 -0
  163. package/dist/src/root/mcp-servers/install/command.d.ts +3 -0
  164. package/dist/src/root/mcp-servers/install/command.d.ts.map +1 -0
  165. package/dist/src/root/mcp-servers/install/command.js +32 -0
  166. package/dist/src/root/mcp-servers/install/command.js.map +1 -0
  167. package/dist/src/root/mcp-servers/install/handler.d.ts +13 -0
  168. package/dist/src/root/mcp-servers/install/handler.d.ts.map +1 -0
  169. package/dist/src/root/mcp-servers/install/handler.js +22 -0
  170. package/dist/src/root/mcp-servers/install/handler.js.map +1 -0
  171. package/dist/src/root/mcp-servers/install/intent.d.ts +18 -0
  172. package/dist/src/root/mcp-servers/install/intent.d.ts.map +1 -0
  173. package/dist/src/root/mcp-servers/install/intent.js +9 -0
  174. package/dist/src/root/mcp-servers/install/intent.js.map +1 -0
  175. package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts +31 -0
  176. package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts.map +1 -0
  177. package/dist/src/root/mcp-servers/uninstall/command-actions.js +68 -0
  178. package/dist/src/root/mcp-servers/uninstall/command-actions.js.map +1 -0
  179. package/dist/src/root/mcp-servers/uninstall/command.d.ts +3 -0
  180. package/dist/src/root/mcp-servers/uninstall/command.d.ts.map +1 -0
  181. package/dist/src/root/mcp-servers/uninstall/command.js +27 -0
  182. package/dist/src/root/mcp-servers/uninstall/command.js.map +1 -0
  183. package/dist/src/root/mcp-servers/uninstall/handler.d.ts +8 -0
  184. package/dist/src/root/mcp-servers/uninstall/handler.d.ts.map +1 -0
  185. package/dist/src/root/mcp-servers/uninstall/handler.js +10 -0
  186. package/dist/src/root/mcp-servers/uninstall/handler.js.map +1 -0
  187. package/dist/src/root/mcp-servers/uninstall/intent.d.ts +15 -0
  188. package/dist/src/root/mcp-servers/uninstall/intent.d.ts.map +1 -0
  189. package/dist/src/root/mcp-servers/uninstall/intent.js +9 -0
  190. package/dist/src/root/mcp-servers/uninstall/intent.js.map +1 -0
  191. package/dist/src/root/packs/_packs.d.ts +3 -0
  192. package/dist/src/root/packs/_packs.d.ts.map +1 -0
  193. package/dist/src/root/packs/_packs.js +35 -0
  194. package/dist/src/root/packs/_packs.js.map +1 -0
  195. package/dist/src/root/packs/add.d.ts +16 -0
  196. package/dist/src/root/packs/add.d.ts.map +1 -0
  197. package/dist/src/root/packs/add.js +198 -0
  198. package/dist/src/root/packs/add.js.map +1 -0
  199. package/dist/src/root/packs/install/command-actions.d.ts +56 -0
  200. package/dist/src/root/packs/install/command-actions.d.ts.map +1 -0
  201. package/dist/src/root/packs/install/command-actions.js +373 -0
  202. package/dist/src/root/packs/install/command-actions.js.map +1 -0
  203. package/dist/src/root/packs/install/command.d.ts +3 -0
  204. package/dist/src/root/packs/install/command.d.ts.map +1 -0
  205. package/dist/src/root/packs/install/command.js +36 -0
  206. package/dist/src/root/packs/install/command.js.map +1 -0
  207. package/dist/src/root/packs/install/handler.d.ts +13 -0
  208. package/dist/src/root/packs/install/handler.d.ts.map +1 -0
  209. package/dist/src/root/packs/install/handler.js +22 -0
  210. package/dist/src/root/packs/install/handler.js.map +1 -0
  211. package/dist/src/root/packs/install/intent.d.ts +15 -0
  212. package/dist/src/root/packs/install/intent.d.ts.map +1 -0
  213. package/dist/src/root/packs/install/intent.js +9 -0
  214. package/dist/src/root/packs/install/intent.js.map +1 -0
  215. package/dist/src/root/packs/install/plan.d.ts +63 -0
  216. package/dist/src/root/packs/install/plan.d.ts.map +1 -0
  217. package/dist/src/root/packs/install/plan.js +181 -0
  218. package/dist/src/root/packs/install/plan.js.map +1 -0
  219. package/dist/src/root/packs/new.d.ts +18 -0
  220. package/dist/src/root/packs/new.d.ts.map +1 -0
  221. package/dist/src/root/packs/new.js +103 -0
  222. package/dist/src/root/packs/new.js.map +1 -0
  223. package/dist/src/root/packs/publish.d.ts +30 -0
  224. package/dist/src/root/packs/publish.d.ts.map +1 -0
  225. package/dist/src/root/packs/publish.js +288 -0
  226. package/dist/src/root/packs/publish.js.map +1 -0
  227. package/dist/src/root/packs/remove.d.ts +16 -0
  228. package/dist/src/root/packs/remove.d.ts.map +1 -0
  229. package/dist/src/root/packs/remove.js +156 -0
  230. package/dist/src/root/packs/remove.js.map +1 -0
  231. package/dist/src/root/packs/uninstall/command-actions.d.ts +47 -0
  232. package/dist/src/root/packs/uninstall/command-actions.d.ts.map +1 -0
  233. package/dist/src/root/packs/uninstall/command-actions.js +175 -0
  234. package/dist/src/root/packs/uninstall/command-actions.js.map +1 -0
  235. package/dist/src/root/packs/uninstall/command.d.ts +3 -0
  236. package/dist/src/root/packs/uninstall/command.d.ts.map +1 -0
  237. package/dist/src/root/packs/uninstall/command.js +31 -0
  238. package/dist/src/root/packs/uninstall/command.js.map +1 -0
  239. package/dist/src/root/packs/uninstall/handler.d.ts +8 -0
  240. package/dist/src/root/packs/uninstall/handler.d.ts.map +1 -0
  241. package/dist/src/root/packs/uninstall/handler.js +10 -0
  242. package/dist/src/root/packs/uninstall/handler.js.map +1 -0
  243. package/dist/src/root/packs/uninstall/intent.d.ts +13 -0
  244. package/dist/src/root/packs/uninstall/intent.d.ts.map +1 -0
  245. package/dist/src/root/packs/uninstall/intent.js +10 -0
  246. package/dist/src/root/packs/uninstall/intent.js.map +1 -0
  247. package/dist/src/root/packs/uninstall/plan.d.ts +60 -0
  248. package/dist/src/root/packs/uninstall/plan.d.ts.map +1 -0
  249. package/dist/src/root/packs/uninstall/plan.js +166 -0
  250. package/dist/src/root/packs/uninstall/plan.js.map +1 -0
  251. package/dist/src/root/packs/unpack/command.d.ts +3 -0
  252. package/dist/src/root/packs/unpack/command.d.ts.map +1 -0
  253. package/dist/src/root/packs/unpack/command.js +31 -0
  254. package/dist/src/root/packs/unpack/command.js.map +1 -0
  255. package/dist/src/root/packs/unpack/handler.d.ts +16 -0
  256. package/dist/src/root/packs/unpack/handler.d.ts.map +1 -0
  257. package/dist/src/root/packs/unpack/handler.js +117 -0
  258. package/dist/src/root/packs/unpack/handler.js.map +1 -0
  259. package/dist/src/root/packs/unpack/plan.d.ts +72 -0
  260. package/dist/src/root/packs/unpack/plan.d.ts.map +1 -0
  261. package/dist/src/root/packs/unpack/plan.js +120 -0
  262. package/dist/src/root/packs/unpack/plan.js.map +1 -0
  263. package/dist/src/root/shared/registry-install-target.d.ts +35 -0
  264. package/dist/src/root/shared/registry-install-target.d.ts.map +1 -0
  265. package/dist/src/root/shared/registry-install-target.js +66 -0
  266. package/dist/src/root/shared/registry-install-target.js.map +1 -0
  267. package/dist/src/root/skills/_skills.d.ts +3 -0
  268. package/dist/src/root/skills/_skills.d.ts.map +1 -0
  269. package/dist/src/root/skills/_skills.js +38 -0
  270. package/dist/src/root/skills/_skills.js.map +1 -0
  271. package/dist/src/root/skills/disable.d.ts +15 -0
  272. package/dist/src/root/skills/disable.d.ts.map +1 -0
  273. package/dist/src/root/skills/disable.js +91 -0
  274. package/dist/src/root/skills/disable.js.map +1 -0
  275. package/dist/src/root/skills/enable.d.ts +16 -0
  276. package/dist/src/root/skills/enable.d.ts.map +1 -0
  277. package/dist/src/root/skills/enable.js +92 -0
  278. package/dist/src/root/skills/enable.js.map +1 -0
  279. package/dist/src/root/skills/fork.d.ts +22 -0
  280. package/dist/src/root/skills/fork.d.ts.map +1 -0
  281. package/dist/src/root/skills/fork.js +288 -0
  282. package/dist/src/root/skills/fork.js.map +1 -0
  283. package/dist/src/root/skills/install/command-actions.d.ts +76 -0
  284. package/dist/src/root/skills/install/command-actions.d.ts.map +1 -0
  285. package/dist/src/root/skills/install/command-actions.js +323 -0
  286. package/dist/src/root/skills/install/command-actions.js.map +1 -0
  287. package/dist/src/root/skills/install/command.d.ts +3 -0
  288. package/dist/src/root/skills/install/command.d.ts.map +1 -0
  289. package/dist/src/root/skills/install/command.js +46 -0
  290. package/dist/src/root/skills/install/command.js.map +1 -0
  291. package/dist/src/root/skills/install/handler.d.ts +15 -0
  292. package/dist/src/root/skills/install/handler.d.ts.map +1 -0
  293. package/dist/src/root/skills/install/handler.js +39 -0
  294. package/dist/src/root/skills/install/handler.js.map +1 -0
  295. package/dist/src/root/skills/install/intent.d.ts +21 -0
  296. package/dist/src/root/skills/install/intent.d.ts.map +1 -0
  297. package/dist/src/root/skills/install/intent.js +7 -0
  298. package/dist/src/root/skills/install/intent.js.map +1 -0
  299. package/dist/src/root/skills/install/plan.d.ts +43 -0
  300. package/dist/src/root/skills/install/plan.d.ts.map +1 -0
  301. package/dist/src/root/skills/install/plan.js +82 -0
  302. package/dist/src/root/skills/install/plan.js.map +1 -0
  303. package/dist/src/root/skills/install/resolve-skill-install-source.d.ts +17 -0
  304. package/dist/src/root/skills/install/resolve-skill-install-source.d.ts.map +1 -0
  305. package/dist/src/root/skills/install/resolve-skill-install-source.js +271 -0
  306. package/dist/src/root/skills/install/resolve-skill-install-source.js.map +1 -0
  307. package/dist/src/root/skills/install/select-skills.d.ts +37 -0
  308. package/dist/src/root/skills/install/select-skills.d.ts.map +1 -0
  309. package/dist/src/root/skills/install/select-skills.js +91 -0
  310. package/dist/src/root/skills/install/select-skills.js.map +1 -0
  311. package/dist/src/root/skills/list.d.ts +10 -0
  312. package/dist/src/root/skills/list.d.ts.map +1 -0
  313. package/dist/src/root/skills/list.js +68 -0
  314. package/dist/src/root/skills/list.js.map +1 -0
  315. package/dist/src/root/skills/new.d.ts +19 -0
  316. package/dist/src/root/skills/new.d.ts.map +1 -0
  317. package/dist/src/root/skills/new.js +113 -0
  318. package/dist/src/root/skills/new.js.map +1 -0
  319. package/dist/src/root/skills/publish.d.ts +20 -0
  320. package/dist/src/root/skills/publish.d.ts.map +1 -0
  321. package/dist/src/root/skills/publish.js +230 -0
  322. package/dist/src/root/skills/publish.js.map +1 -0
  323. package/dist/src/root/skills/rename.d.ts +16 -0
  324. package/dist/src/root/skills/rename.d.ts.map +1 -0
  325. package/dist/src/root/skills/rename.js +84 -0
  326. package/dist/src/root/skills/rename.js.map +1 -0
  327. package/dist/src/root/skills/uninstall/command-actions.d.ts +39 -0
  328. package/dist/src/root/skills/uninstall/command-actions.d.ts.map +1 -0
  329. package/dist/src/root/skills/uninstall/command-actions.js +85 -0
  330. package/dist/src/root/skills/uninstall/command-actions.js.map +1 -0
  331. package/dist/src/root/skills/uninstall/command.d.ts +3 -0
  332. package/dist/src/root/skills/uninstall/command.d.ts.map +1 -0
  333. package/dist/src/root/skills/uninstall/command.js +24 -0
  334. package/dist/src/root/skills/uninstall/command.js.map +1 -0
  335. package/dist/src/root/skills/uninstall/handler.d.ts +8 -0
  336. package/dist/src/root/skills/uninstall/handler.d.ts.map +1 -0
  337. package/dist/src/root/skills/uninstall/handler.js +10 -0
  338. package/dist/src/root/skills/uninstall/handler.js.map +1 -0
  339. package/dist/src/root/skills/uninstall/intent.d.ts +17 -0
  340. package/dist/src/root/skills/uninstall/intent.d.ts.map +1 -0
  341. package/dist/src/root/skills/uninstall/intent.js +7 -0
  342. package/dist/src/root/skills/uninstall/intent.js.map +1 -0
  343. package/dist/src/root/skills/uninstall/plan.d.ts +35 -0
  344. package/dist/src/root/skills/uninstall/plan.d.ts.map +1 -0
  345. package/dist/src/root/skills/uninstall/plan.js +66 -0
  346. package/dist/src/root/skills/uninstall/plan.js.map +1 -0
  347. package/dist/src/root/skills/update/command.d.ts +3 -0
  348. package/dist/src/root/skills/update/command.d.ts.map +1 -0
  349. package/dist/src/root/skills/update/command.js +31 -0
  350. package/dist/src/root/skills/update/command.js.map +1 -0
  351. package/dist/src/root/skills/update/constraint-resolution.d.ts +70 -0
  352. package/dist/src/root/skills/update/constraint-resolution.d.ts.map +1 -0
  353. package/dist/src/root/skills/update/constraint-resolution.js +94 -0
  354. package/dist/src/root/skills/update/constraint-resolution.js.map +1 -0
  355. package/dist/src/root/skills/update/handler.d.ts +18 -0
  356. package/dist/src/root/skills/update/handler.d.ts.map +1 -0
  357. package/dist/src/root/skills/update/handler.js +409 -0
  358. package/dist/src/root/skills/update/handler.js.map +1 -0
  359. package/dist/src/root/skills/update/plan.d.ts +35 -0
  360. package/dist/src/root/skills/update/plan.d.ts.map +1 -0
  361. package/dist/src/root/skills/update/plan.js +92 -0
  362. package/dist/src/root/skills/update/plan.js.map +1 -0
  363. package/dist/src/root/subagents/_subagents.d.ts +3 -0
  364. package/dist/src/root/subagents/_subagents.d.ts.map +1 -0
  365. package/dist/src/root/subagents/_subagents.js +31 -0
  366. package/dist/src/root/subagents/_subagents.js.map +1 -0
  367. package/dist/src/root/subagents/disable/command.d.ts +3 -0
  368. package/dist/src/root/subagents/disable/command.d.ts.map +1 -0
  369. package/dist/src/root/subagents/disable/command.js +24 -0
  370. package/dist/src/root/subagents/disable/command.js.map +1 -0
  371. package/dist/src/root/subagents/disable/handler.d.ts +14 -0
  372. package/dist/src/root/subagents/disable/handler.d.ts.map +1 -0
  373. package/dist/src/root/subagents/disable/handler.js +71 -0
  374. package/dist/src/root/subagents/disable/handler.js.map +1 -0
  375. package/dist/src/root/subagents/enable/command.d.ts +3 -0
  376. package/dist/src/root/subagents/enable/command.d.ts.map +1 -0
  377. package/dist/src/root/subagents/enable/command.js +24 -0
  378. package/dist/src/root/subagents/enable/command.js.map +1 -0
  379. package/dist/src/root/subagents/enable/handler.d.ts +14 -0
  380. package/dist/src/root/subagents/enable/handler.d.ts.map +1 -0
  381. package/dist/src/root/subagents/enable/handler.js +71 -0
  382. package/dist/src/root/subagents/enable/handler.js.map +1 -0
  383. package/dist/src/root/subagents/install/command-actions.d.ts +58 -0
  384. package/dist/src/root/subagents/install/command-actions.d.ts.map +1 -0
  385. package/dist/src/root/subagents/install/command-actions.js +258 -0
  386. package/dist/src/root/subagents/install/command-actions.js.map +1 -0
  387. package/dist/src/root/subagents/install/command.d.ts +3 -0
  388. package/dist/src/root/subagents/install/command.d.ts.map +1 -0
  389. package/dist/src/root/subagents/install/command.js +46 -0
  390. package/dist/src/root/subagents/install/command.js.map +1 -0
  391. package/dist/src/root/subagents/install/handler.d.ts +15 -0
  392. package/dist/src/root/subagents/install/handler.d.ts.map +1 -0
  393. package/dist/src/root/subagents/install/handler.js +39 -0
  394. package/dist/src/root/subagents/install/handler.js.map +1 -0
  395. package/dist/src/root/subagents/install/intent.d.ts +21 -0
  396. package/dist/src/root/subagents/install/intent.d.ts.map +1 -0
  397. package/dist/src/root/subagents/install/intent.js +7 -0
  398. package/dist/src/root/subagents/install/intent.js.map +1 -0
  399. package/dist/src/root/subagents/install/plan.d.ts +44 -0
  400. package/dist/src/root/subagents/install/plan.d.ts.map +1 -0
  401. package/dist/src/root/subagents/install/plan.js +74 -0
  402. package/dist/src/root/subagents/install/plan.js.map +1 -0
  403. package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts +17 -0
  404. package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts.map +1 -0
  405. package/dist/src/root/subagents/install/resolve-subagent-install-source.js +265 -0
  406. package/dist/src/root/subagents/install/resolve-subagent-install-source.js.map +1 -0
  407. package/dist/src/root/subagents/install/select-subagents.d.ts +43 -0
  408. package/dist/src/root/subagents/install/select-subagents.d.ts.map +1 -0
  409. package/dist/src/root/subagents/install/select-subagents.js +90 -0
  410. package/dist/src/root/subagents/install/select-subagents.js.map +1 -0
  411. package/dist/src/root/subagents/list/command.d.ts +3 -0
  412. package/dist/src/root/subagents/list/command.d.ts.map +1 -0
  413. package/dist/src/root/subagents/list/command.js +21 -0
  414. package/dist/src/root/subagents/list/command.js.map +1 -0
  415. package/dist/src/root/subagents/list/handler.d.ts +8 -0
  416. package/dist/src/root/subagents/list/handler.d.ts.map +1 -0
  417. package/dist/src/root/subagents/list/handler.js +56 -0
  418. package/dist/src/root/subagents/list/handler.js.map +1 -0
  419. package/dist/src/root/subagents/new/command.d.ts +3 -0
  420. package/dist/src/root/subagents/new/command.d.ts.map +1 -0
  421. package/dist/src/root/subagents/new/command.js +42 -0
  422. package/dist/src/root/subagents/new/command.js.map +1 -0
  423. package/dist/src/root/subagents/new/handler.d.ts +21 -0
  424. package/dist/src/root/subagents/new/handler.d.ts.map +1 -0
  425. package/dist/src/root/subagents/new/handler.js +199 -0
  426. package/dist/src/root/subagents/new/handler.js.map +1 -0
  427. package/dist/src/root/subagents/publish/command.d.ts +3 -0
  428. package/dist/src/root/subagents/publish/command.d.ts.map +1 -0
  429. package/dist/src/root/subagents/publish/command.js +28 -0
  430. package/dist/src/root/subagents/publish/command.js.map +1 -0
  431. package/dist/src/root/subagents/publish/handler.d.ts +18 -0
  432. package/dist/src/root/subagents/publish/handler.d.ts.map +1 -0
  433. package/dist/src/root/subagents/publish/handler.js +204 -0
  434. package/dist/src/root/subagents/publish/handler.js.map +1 -0
  435. package/dist/src/root/subagents/rename/command.d.ts +3 -0
  436. package/dist/src/root/subagents/rename/command.d.ts.map +1 -0
  437. package/dist/src/root/subagents/rename/command.js +25 -0
  438. package/dist/src/root/subagents/rename/command.js.map +1 -0
  439. package/dist/src/root/subagents/rename/handler.d.ts +15 -0
  440. package/dist/src/root/subagents/rename/handler.d.ts.map +1 -0
  441. package/dist/src/root/subagents/rename/handler.js +174 -0
  442. package/dist/src/root/subagents/rename/handler.js.map +1 -0
  443. package/dist/src/root/subagents/uninstall/command-actions.d.ts +39 -0
  444. package/dist/src/root/subagents/uninstall/command-actions.d.ts.map +1 -0
  445. package/dist/src/root/subagents/uninstall/command-actions.js +85 -0
  446. package/dist/src/root/subagents/uninstall/command-actions.js.map +1 -0
  447. package/dist/src/root/subagents/uninstall/command.d.ts +3 -0
  448. package/dist/src/root/subagents/uninstall/command.d.ts.map +1 -0
  449. package/dist/src/root/subagents/uninstall/command.js +27 -0
  450. package/dist/src/root/subagents/uninstall/command.js.map +1 -0
  451. package/dist/src/root/subagents/uninstall/handler.d.ts +8 -0
  452. package/dist/src/root/subagents/uninstall/handler.d.ts.map +1 -0
  453. package/dist/src/root/subagents/uninstall/handler.js +10 -0
  454. package/dist/src/root/subagents/uninstall/handler.js.map +1 -0
  455. package/dist/src/root/subagents/uninstall/intent.d.ts +17 -0
  456. package/dist/src/root/subagents/uninstall/intent.d.ts.map +1 -0
  457. package/dist/src/root/subagents/uninstall/intent.js +7 -0
  458. package/dist/src/root/subagents/uninstall/intent.js.map +1 -0
  459. package/dist/src/root/subagents/update/command.d.ts +3 -0
  460. package/dist/src/root/subagents/update/command.d.ts.map +1 -0
  461. package/dist/src/root/subagents/update/command.js +41 -0
  462. package/dist/src/root/subagents/update/command.js.map +1 -0
  463. package/dist/src/root/subagents/update/handler.d.ts +16 -0
  464. package/dist/src/root/subagents/update/handler.d.ts.map +1 -0
  465. package/dist/src/root/subagents/update/handler.js +188 -0
  466. package/dist/src/root/subagents/update/handler.js.map +1 -0
  467. package/dist/src/root/subagents/update/plan.d.ts +39 -0
  468. package/dist/src/root/subagents/update/plan.d.ts.map +1 -0
  469. package/dist/src/root/subagents/update/plan.js +81 -0
  470. package/dist/src/root/subagents/update/plan.js.map +1 -0
  471. package/dist/src/root/sync.d.ts +15 -0
  472. package/dist/src/root/sync.d.ts.map +1 -0
  473. package/dist/src/root/sync.js +82 -0
  474. package/dist/src/root/sync.js.map +1 -0
  475. package/dist/src/root/upgrade/handler.d.ts +21 -0
  476. package/dist/src/root/upgrade/handler.d.ts.map +1 -0
  477. package/dist/src/root/upgrade/handler.js +303 -0
  478. package/dist/src/root/upgrade/handler.js.map +1 -0
  479. package/dist/src/root/upgrade/upgrade.d.ts +3 -0
  480. package/dist/src/root/upgrade/upgrade.d.ts.map +1 -0
  481. package/dist/src/root/upgrade/upgrade.js +18 -0
  482. package/dist/src/root/upgrade/upgrade.js.map +1 -0
  483. package/dist/src/runtime.d.ts +39 -0
  484. package/dist/src/runtime.d.ts.map +1 -0
  485. package/dist/src/runtime.js +144 -0
  486. package/dist/src/runtime.js.map +1 -0
  487. package/dist/src/test-helpers.d.ts +101 -0
  488. package/dist/src/test-helpers.d.ts.map +1 -0
  489. package/dist/src/test-helpers.js +153 -0
  490. package/dist/src/test-helpers.js.map +1 -0
  491. package/dist/src/test-stubs.d.ts +128 -0
  492. package/dist/src/test-stubs.d.ts.map +1 -0
  493. package/dist/src/test-stubs.js +227 -0
  494. package/dist/src/test-stubs.js.map +1 -0
  495. package/dist/src/update-check-startup.d.ts +68 -0
  496. package/dist/src/update-check-startup.d.ts.map +1 -0
  497. package/dist/src/update-check-startup.js +127 -0
  498. package/dist/src/update-check-startup.js.map +1 -0
  499. package/dist/src/version.d.ts +2 -0
  500. package/dist/src/version.d.ts.map +1 -0
  501. package/dist/src/version.js +23 -0
  502. package/dist/src/version.js.map +1 -0
  503. package/package.json +96 -0
@@ -0,0 +1,175 @@
1
+ /**
2
+ * Pack uninstall command workflow actions.
3
+ *
4
+ * Implements `UninstallExtensionCommandWorkflowActions` for the pack uninstall
5
+ * command. The live layer captures all required services at construction time
6
+ * so action methods satisfy the `R = never` contract.
7
+ *
8
+ * @experimental This API is unstable and may change without notice.
9
+ */
10
+ import * as ServiceMap from "effect/ServiceMap";
11
+ import * as Effect from "effect/Effect";
12
+ import * as Layer from "effect/Layer";
13
+ import * as Option from "effect/Option";
14
+ import { SkillManager } from "@agentxm/client-core/unstable/skills";
15
+ import { ExtensionPackManager, expandExtensionPackUninstallTargets, } from "@agentxm/client-core/unstable/packs";
16
+ import { CommandManager } from "@agentxm/client-core/unstable/commands";
17
+ import { McpServerManager, } from "@agentxm/client-core/unstable/mcp-servers";
18
+ import { SubagentManager, } from "@agentxm/client-core/unstable/subagents";
19
+ import { buildUninstallOperation, toLabel, } from "@agentxm/client-core/unstable/extensions";
20
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
21
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
22
+ import { expandGlob } from "@agentxm/client-core/unstable/utils";
23
+ // -----------------------------------------------------------------------------
24
+ // Service Tag
25
+ // -----------------------------------------------------------------------------
26
+ export class UninstallPackCommandWorkflowActions extends ServiceMap.Service()("axm.sh/UninstallPackCommandWorkflowActions") {
27
+ }
28
+ // -----------------------------------------------------------------------------
29
+ // Live Layer
30
+ // -----------------------------------------------------------------------------
31
+ /**
32
+ * Constructs the actions by resolving all services at layer-build time.
33
+ * Each action method closes over the captured services so `R = never`.
34
+ */
35
+ export const UninstallPackCommandWorkflowActionsLive = Layer.effect(UninstallPackCommandWorkflowActions, Effect.gen(function* () {
36
+ const ws = yield* Workspace;
37
+ const renderer = yield* CliRenderer;
38
+ const packMgr = yield* ExtensionPackManager;
39
+ const skillMgr = yield* SkillManager;
40
+ const commandMgr = yield* CommandManager;
41
+ const mcpServerMgr = yield* McpServerManager;
42
+ const subagentMgr = yield* SubagentManager;
43
+ const parseArgs = (args) => Effect.gen(function* () {
44
+ yield* renderer.info("axm packs uninstall");
45
+ const lockedPacks = yield* ws.getLockedExtensionPacks();
46
+ const isGlob = args.name.includes("*");
47
+ const packNames = expandGlob(args.name, Object.keys(lockedPacks));
48
+ // Handle glob matching zero packs
49
+ if (isGlob && packNames.length === 0) {
50
+ yield* renderer.warn(`No extension packs matched pattern "${args.name}"`);
51
+ yield* renderer.success("Nothing to uninstall.");
52
+ return { packNames: [], isGlob, earlyExit: true };
53
+ }
54
+ // For literal names not in lockfile, still build a target
55
+ const names = packNames.length > 0 ? packNames : [args.name];
56
+ return { packNames: names, isGlob, earlyExit: false };
57
+ });
58
+ const finalizeIntent = (parsed) => Effect.gen(function* () {
59
+ if (parsed.earlyExit) {
60
+ return { packsToUninstall: [] };
61
+ }
62
+ const lockedPacks = yield* ws.getLockedExtensionPacks();
63
+ const defaultOwner = yield* ws.getConfiguredProfile();
64
+ const targets = parsed.packNames.map((name) => {
65
+ const lockEntry = lockedPacks[name];
66
+ return {
67
+ type: "pack",
68
+ name,
69
+ owner: lockEntry?.owner ?? defaultOwner,
70
+ };
71
+ });
72
+ return { packsToUninstall: targets };
73
+ });
74
+ const buildUninstallPlan = (intent) => Effect.gen(function* () {
75
+ if (intent.packsToUninstall.length === 0) {
76
+ return {
77
+ _tag: "Plan",
78
+ name: "Uninstall pack",
79
+ description: Option.none(),
80
+ jobs: [{ concurrency: 1, steps: [] }],
81
+ };
82
+ }
83
+ const retentionPolicy = {
84
+ isRequiredByInstalledPack: (args) => ws.isExtensionRequiredByInstalledExtensionPack(args.target),
85
+ markDependencyRetainedInLockfile: (args) => ws.markDependencyRetainedInLockfile(args.target),
86
+ };
87
+ // Load lockfile and settings for orphan computation
88
+ const lockedPacks = yield* ws.getLockedExtensionPacks();
89
+ const lockedSkills = yield* ws.getLockedSkills();
90
+ const lockedCommands = yield* ws.getLockedCommands();
91
+ const lockedMcpServers = yield* ws.getLockedMcpServers();
92
+ const lockfile = {
93
+ lockfileVersion: 1,
94
+ skills: lockedSkills,
95
+ commands: lockedCommands,
96
+ mcpServers: lockedMcpServers,
97
+ packs: lockedPacks,
98
+ };
99
+ // Build settings context for orphan check (just need the keys)
100
+ const configuredSkills = yield* ws.getConfiguredSkills();
101
+ const configuredCommands = yield* ws.getConfiguredCommands();
102
+ const configuredMcpServers = yield* ws.getConfiguredMcpServers();
103
+ const configuredSubagents = yield* ws.getConfiguredSubagents();
104
+ const settings = {
105
+ skills: Object.fromEntries(Object.keys(configuredSkills).map((k) => [k, k])),
106
+ commands: Object.fromEntries(Object.keys(configuredCommands).map((k) => [k, k])),
107
+ mcpServers: Object.fromEntries(Object.keys(configuredMcpServers).map((k) => [k, k])),
108
+ subagents: Object.fromEntries(Object.keys(configuredSubagents).map((k) => [k, k])),
109
+ };
110
+ // Expand each pack and collect all targets, deduplicating by type+name
111
+ const allTargets = new Map();
112
+ for (const pack of intent.packsToUninstall) {
113
+ const targets = yield* expandExtensionPackUninstallTargets({
114
+ pack,
115
+ supportedDependencyTypes: ["skill", "command", "mcp-server", "subagent"],
116
+ lockfile,
117
+ settings,
118
+ });
119
+ for (const target of targets) {
120
+ const key = `${target.type}:${target.name}`;
121
+ if (!allTargets.has(key)) {
122
+ allTargets.set(key, target);
123
+ }
124
+ }
125
+ }
126
+ // Order: pack targets first, then dependency targets
127
+ const packTargets = [...allTargets.values()].filter((t) => t.type === "pack");
128
+ const depTargets = [...allTargets.values()].filter((t) => t.type !== "pack");
129
+ const orderedTargets = [...packTargets, ...depTargets];
130
+ const steps = orderedTargets.map((target) => {
131
+ if (target.type === "pack") {
132
+ return buildUninstallOperation(packMgr, retentionPolicy, {
133
+ target,
134
+ });
135
+ }
136
+ if (target.type === "skill") {
137
+ return buildUninstallOperation(skillMgr, retentionPolicy, {
138
+ target,
139
+ });
140
+ }
141
+ if (target.type === "command") {
142
+ return buildUninstallOperation(commandMgr, retentionPolicy, {
143
+ target,
144
+ });
145
+ }
146
+ if (target.type === "mcp-server") {
147
+ return buildUninstallOperation(mcpServerMgr, retentionPolicy, {
148
+ target,
149
+ });
150
+ }
151
+ if (target.type === "subagent") {
152
+ return buildUninstallOperation(subagentMgr, retentionPolicy, {
153
+ target,
154
+ });
155
+ }
156
+ return {
157
+ label: toLabel(target),
158
+ readiness: "error",
159
+ errorMessage: "Unsupported dependency type",
160
+ };
161
+ });
162
+ return {
163
+ _tag: "Plan",
164
+ name: intent.packsToUninstall.length > 1 ? "Uninstall pack(s)" : "Uninstall pack",
165
+ description: Option.none(),
166
+ jobs: [{ concurrency: 1, steps }],
167
+ };
168
+ });
169
+ return {
170
+ parseArgs,
171
+ finalizeIntent,
172
+ buildUninstallPlan,
173
+ };
174
+ }));
175
+ //# sourceMappingURL=command-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-actions.js","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/command-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAA0B,MAAM,sCAAsC,CAAC;AAC5F,OAAO,EACL,oBAAoB,EACpB,mCAAmC,GAGpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,cAAc,EAA4B,MAAM,wCAAwC,CAAC;AAClG,OAAO,EACL,gBAAgB,GAEjB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,eAAe,GAEhB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,uBAAuB,EACvB,OAAO,GAER,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AA4BjE,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,OAAO,mCAAoC,SAAQ,UAAU,CAAC,OAAO,EAOxE,CAAC,4CAA4C,CAAC;CAAG;AAEpD,gFAAgF;AAChF,aAAa;AACb,gFAAgF;AAEhF;;;GAGG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,KAAK,CAAC,MAAM,CACjE,mCAAmC,EACnC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,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E,OAAO;gBAClB,YAAY,EAAE,6BAA6B;aAC5C,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,gBAAgB;YACjF,WAAW,EAAE,MAAM,CAAC,IAAI,EAAE;YAC1B,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,CAAU,EAAE,KAAK,EAAE,CAAC;SAC5B,CAAC;IACnB,CAAC,CAAC,CAAC;IAEL,OAAO;QACL,SAAS;QACT,cAAc;QACd,kBAAkB;KACnB,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "effect/unstable/cli";
2
+ export declare const uninstallCommand: Command.Command<"uninstall", Record<string, unknown>, {}, never, "effect/unstable/cli/GlobalFlag/axm-non-interactive" | "effect/unstable/cli/GlobalFlag/axm-json" | "effect/unstable/cli/GlobalFlag/axm-quiet" | "effect/unstable/cli/GlobalFlag/axm-verbose" | "effect/unstable/cli/GlobalFlag/axm-debug">;
3
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAqB9D,eAAO,MAAM,gBAAgB,6SA6B5B,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { Argument, Command, Flag } from "effect/unstable/cli";
2
+ import { forceFlag, previewFlag, yesFlag } from "@agentxm/client-core/unstable/cli-flags";
3
+ import { withArgvTracking } from "@agentxm/client-core/unstable/cli-runtime";
4
+ import { handleUninstallPack } from "./handler.js";
5
+ import { DEFAULT_WORKSPACE_SCOPE } from "@agentxm/client-core/unstable/workspace";
6
+ import { withRuntime, withWorkspace } from "../../../runtime.js";
7
+ const uninstallConfig = {
8
+ name: Argument.string("name").pipe(Argument.withDescription("Name or glob pattern of the extension pack to uninstall")),
9
+ yes: yesFlag.pipe(Flag.withDescription("Skip the 'are you sure?' confirmation")),
10
+ force: forceFlag.pipe(Flag.withDescription("Remove even if extensions in this extension pack are used elsewhere")),
11
+ preview: previewFlag.pipe(Flag.withDescription("Show what would be removed without making changes")),
12
+ };
13
+ export const uninstallCommand = Command.make("uninstall", uninstallConfig, ({ name, yes, force, preview }) => handleUninstallPack({ name }, { yes, force, preview }).pipe(withWorkspace(DEFAULT_WORKSPACE_SCOPE), withRuntime("packs uninstall"))).pipe(withArgvTracking(uninstallConfig), Command.withDescription("Uninstall an extension pack"), Command.withExamples([
14
+ {
15
+ command: "axm packs uninstall my-pack",
16
+ description: "Remove an extension pack and its orphaned extensions",
17
+ },
18
+ {
19
+ command: "axm packs uninstall my-pack --preview",
20
+ description: "Check what would be removed first",
21
+ },
22
+ {
23
+ command: "axm packs uninstall my-pack --yes",
24
+ description: "Remove without confirmation (scripts/CI)",
25
+ },
26
+ {
27
+ command: "axm packs uninstall acme-*",
28
+ description: "Remove all extension packs matching a pattern",
29
+ },
30
+ ]));
31
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEjE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gs } from "./command-actions.js";
3
+ export declare const handleUninstallPack: (args: UninstallPackHandlerArgs, flags: {
4
+ yes: boolean;
5
+ force: boolean;
6
+ preview: boolean;
7
+ }) => Effect.Effect<void, import("packages/core/src/unstable/app-error/app-error.ts").AppError | import("packages/core/src/unstable/cli-prompt/prompt-cancelled.ts").PromptCancelled, import("packages/core/src/unstable/cli-renderer/cli-renderer.ts").CliRenderer | import("packages/core/src/unstable/cli-flags/verbosity.ts").Verbosity | import("effect/FileSystem").FileSystem | import("effect/Path").Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | import("packages/core/src/unstable/workspace/service-interface.ts").Workspace | UninstallPackCommandWorkflowActions>;
8
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EACL,mCAAmC,EACnC,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,GAC9B,MAAM,wBAAwB,EAC9B,OAAO;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,8jBAMvD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as Effect from "effect/Effect";
2
+ import { runUninstallCommandWorkflow } from "@agentxm/client-core/unstable/workflows";
3
+ import { emitPlanResolutionResult } from "../../../json-output.js";
4
+ import { UninstallPackCommandWorkflowActions, } from "./command-actions.js";
5
+ export const handleUninstallPack = (args, flags) => Effect.gen(function* () {
6
+ const actions = yield* UninstallPackCommandWorkflowActions;
7
+ const resolution = yield* runUninstallCommandWorkflow(args, actions, flags);
8
+ yield* emitPlanResolutionResult("packs.uninstall", resolution);
9
+ });
10
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAEtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EACL,mCAAmC,GAEpC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,IAA8B,EAC9B,KAAyD,EACzD,EAAE,CACF,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,mCAAmC,CAAC;IAC3D,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,2BAA2B,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC5E,KAAK,CAAC,CAAC,wBAAwB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;AACjE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pack uninstall command intent type.
3
+ *
4
+ * Captures the validated inputs needed to build a pack uninstall plan.
5
+ * Supports multiple packs for glob expansion.
6
+ *
7
+ * @experimental This API is unstable and may change without notice.
8
+ */
9
+ import type { PackExtensionTarget } from "@agentxm/client-core/unstable/workspace";
10
+ export interface UninstallPackCommandIntent {
11
+ readonly packsToUninstall: ReadonlyArray<PackExtensionTarget>;
12
+ }
13
+ //# sourceMappingURL=intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,gBAAgB,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Pack uninstall command intent type.
3
+ *
4
+ * Captures the validated inputs needed to build a pack uninstall plan.
5
+ * Supports multiple packs for glob expansion.
6
+ *
7
+ * @experimental This API is unstable and may change without notice.
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=intent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Pack-specific uninstall plan builder.
3
+ *
4
+ * Diffs UninstallExtensionPackOperations against lockfile state to produce a Plan with
5
+ * inline run closures. Installed packs become ready steps; missing packs become
6
+ * no-op success steps. Removable skills/commands/mcp-servers (orphaned by the
7
+ * uninstall) become ready uninstall steps.
8
+ *
9
+ * @experimental This API is unstable and may change without notice.
10
+ */
11
+ import * as FileSystem from "effect/FileSystem";
12
+ import * as Path from "effect/Path";
13
+ import * as Effect from "effect/Effect";
14
+ import * as Option from "effect/Option";
15
+ import type { Lockfile } from "@agentxm/client-core/unstable/lockfile";
16
+ import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
17
+ import type { PlannedJobStep } from "@agentxm/client-core/unstable/workspace";
18
+ import { type UninstallSkillOperation } from "@agentxm/client-core/unstable/skills";
19
+ import { type UninstallExtensionPackOperation } from "@agentxm/client-core/unstable/packs";
20
+ import { type UninstallCommandOperation } from "@agentxm/client-core/unstable/commands";
21
+ import { type UninstallMcpServerOperation } from "@agentxm/client-core/unstable/mcp-servers";
22
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
23
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
24
+ /**
25
+ * Union of operation types produced by the pack uninstall plan builder.
26
+ */
27
+ export type PackUninstallOp = UninstallExtensionPackOperation | UninstallSkillOperation | UninstallCommandOperation | UninstallMcpServerOperation;
28
+ /**
29
+ * Arguments for building a pack uninstall plan.
30
+ */
31
+ export interface BuildUninstallPlanArgs {
32
+ /** Uninstall operations to plan */
33
+ readonly ops: ReadonlyArray<UninstallExtensionPackOperation>;
34
+ /** Current lockfile state for installed-pack detection */
35
+ readonly lockfile: Lockfile;
36
+ /** Directly configured skill names (protected from orphan removal) */
37
+ readonly configuredSkills: ReadonlyArray<string>;
38
+ /** Plan display name */
39
+ readonly name: string;
40
+ /** Plan description */
41
+ readonly description: Option.Option<string>;
42
+ /** Directly configured command names (protected from orphan removal) */
43
+ readonly configuredCommands: ReadonlyArray<string>;
44
+ /** Directly configured MCP server names (protected from orphan removal) */
45
+ readonly configuredMcpServers: ReadonlyArray<string>;
46
+ }
47
+ /**
48
+ * Build an uninstall plan with inline run closures.
49
+ * Captures all service dependencies during plan construction.
50
+ */
51
+ export declare const buildUninstallPlan: (args: BuildUninstallPlanArgs) => Effect.Effect<{
52
+ _tag: "Plan";
53
+ name: string;
54
+ description: Option.Option<string>;
55
+ jobs: {
56
+ concurrency: 1;
57
+ steps: PlannedJobStep[];
58
+ }[];
59
+ }, never, CliRenderer | FileSystem.FileSystem | Path.Path | Workspace | CodingAgentRepository>;
60
+ //# sourceMappingURL=plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,QAAQ,EAA0B,MAAM,wCAAwC,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,EAAQ,cAAc,EAAiB,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAkB,KAAK,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpG,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,+BAA+B,GAC/B,uBAAuB,GACvB,yBAAyB,GACzB,2BAA2B,CAAC;AAsDhC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,mCAAmC;IACnC,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IAC7D,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,sEAAsE;IACtE,QAAQ,CAAC,gBAAgB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,wBAAwB;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uBAAuB;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5C,wEAAwE;IACxE,QAAQ,CAAC,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACnD,2EAA2E;IAC3E,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CACtD;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,sBAAsB;;;;;;;;8FAsJ3D,CAAC"}
@@ -0,0 +1,166 @@
1
+ /**
2
+ * Pack-specific uninstall plan builder.
3
+ *
4
+ * Diffs UninstallExtensionPackOperations against lockfile state to produce a Plan with
5
+ * inline run closures. Installed packs become ready steps; missing packs become
6
+ * no-op success steps. Removable skills/commands/mcp-servers (orphaned by the
7
+ * uninstall) become ready uninstall steps.
8
+ *
9
+ * @experimental This API is unstable and may change without notice.
10
+ */
11
+ import * as FileSystem from "effect/FileSystem";
12
+ import * as Path from "effect/Path";
13
+ import * as Effect from "effect/Effect";
14
+ import * as Option from "effect/Option";
15
+ import { parseFullyQualifiedNameParts } from "@agentxm/client-core/unstable/extensions";
16
+ import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
17
+ import { uninstallSkill } from "@agentxm/client-core/unstable/skills";
18
+ import { uninstallExtensionPack, } from "@agentxm/client-core/unstable/packs";
19
+ import { uninstallCommand, } from "@agentxm/client-core/unstable/commands";
20
+ import { uninstallMcpServer, } from "@agentxm/client-core/unstable/mcp-servers";
21
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
22
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
23
+ /**
24
+ * Extract the simple name (last segment) from a skill FQN.
25
+ * E.g., `@acme/skills/code-review` -> `code-review`
26
+ */
27
+ const simpleNameFromFqn = (fqn) => {
28
+ return parseFullyQualifiedNameParts(fqn)?.name ?? fqn;
29
+ };
30
+ /**
31
+ * Compute FQNs orphaned by pack removal: candidates from packs being removed,
32
+ * minus those still referenced by remaining packs, minus directly configured ones.
33
+ */
34
+ const computeOrphanedFqns = (lockedPacks, removingNames, configured, getResolvedFqns) => {
35
+ const candidates = new Set();
36
+ const remaining = new Set();
37
+ for (const [packName, entry] of Object.entries(lockedPacks)) {
38
+ if (removingNames.has(packName)) {
39
+ for (const fqn of Object.keys(getResolvedFqns(entry))) {
40
+ candidates.add(fqn);
41
+ }
42
+ }
43
+ else {
44
+ for (const fqn of Object.keys(getResolvedFqns(entry))) {
45
+ remaining.add(fqn);
46
+ }
47
+ }
48
+ }
49
+ const configuredSet = new Set(configured);
50
+ const removable = [];
51
+ const preservedConfigured = [];
52
+ for (const fqn of candidates) {
53
+ if (remaining.has(fqn)) {
54
+ continue;
55
+ }
56
+ if (configuredSet.has(simpleNameFromFqn(fqn))) {
57
+ preservedConfigured.push(fqn);
58
+ continue;
59
+ }
60
+ removable.push(fqn);
61
+ }
62
+ return { removable, preservedConfigured };
63
+ };
64
+ /**
65
+ * Build an uninstall plan with inline run closures.
66
+ * Captures all service dependencies during plan construction.
67
+ */
68
+ export const buildUninstallPlan = (args) => Effect.gen(function* () {
69
+ const { ops, lockfile, configuredSkills, name, description, configuredCommands, configuredMcpServers, } = args;
70
+ // Capture services for run closures
71
+ const workspace = yield* Workspace;
72
+ const fs = yield* FileSystem.FileSystem;
73
+ const path = yield* Path.Path;
74
+ const renderer = yield* CliRenderer;
75
+ const agentRepo = yield* CodingAgentRepository;
76
+ const provideServices = (effect) => effect.pipe(Effect.provideService(Workspace, workspace), Effect.provideService(FileSystem.FileSystem, fs), Effect.provideService(Path.Path, path), Effect.provideService(CliRenderer, renderer), Effect.provideService(CodingAgentRepository, agentRepo));
77
+ const lockedPacks = lockfile.packs ?? {};
78
+ const removingNames = new Set(ops.map((op) => op.args.packName));
79
+ // Build pack steps
80
+ const packSteps = ops.map((op) => {
81
+ const installed = Object.hasOwn(lockedPacks, op.args.packName);
82
+ if (!installed) {
83
+ return {
84
+ readiness: "ready",
85
+ label: op.args.packName,
86
+ run: Effect.succeed({
87
+ result: "success",
88
+ message: `${op.args.packName} not installed`,
89
+ }),
90
+ };
91
+ }
92
+ return {
93
+ readiness: "ready",
94
+ label: op.args.packName,
95
+ run: provideServices(uninstallExtensionPack(op)),
96
+ };
97
+ });
98
+ // Compute orphaned extensions
99
+ const skillDisposition = computeOrphanedFqns(lockedPacks, removingNames, configuredSkills, (entry) => entry.resolvedSkills);
100
+ const commandDisposition = computeOrphanedFqns(lockedPacks, removingNames, configuredCommands, (entry) => entry.resolvedCommands);
101
+ const mcpServerDisposition = computeOrphanedFqns(lockedPacks, removingNames, configuredMcpServers, (entry) => entry.resolvedMcpServers);
102
+ const skillSteps = skillDisposition.removable.map((fqn) => {
103
+ const op = {
104
+ name: "uninstall-skill",
105
+ args: { skillName: simpleNameFromFqn(fqn), agents: [] },
106
+ };
107
+ return {
108
+ readiness: "ready",
109
+ label: fqn,
110
+ run: provideServices(uninstallSkill(op)),
111
+ };
112
+ });
113
+ const commandSteps = commandDisposition.removable.map((fqn) => {
114
+ const op = {
115
+ name: "uninstall-command",
116
+ args: { commandName: simpleNameFromFqn(fqn) },
117
+ };
118
+ return {
119
+ readiness: "ready",
120
+ label: fqn,
121
+ run: provideServices(uninstallCommand(op)),
122
+ };
123
+ });
124
+ const mcpServerSteps = mcpServerDisposition.removable.map((fqn) => {
125
+ const op = {
126
+ name: "uninstall-mcp-server",
127
+ args: { serverName: simpleNameFromFqn(fqn) },
128
+ };
129
+ return {
130
+ readiness: "ready",
131
+ label: fqn,
132
+ run: provideServices(uninstallMcpServer(op)),
133
+ };
134
+ });
135
+ // Preserved configured extensions (no-op steps)
136
+ const preservedSteps = [
137
+ ...skillDisposition.preservedConfigured,
138
+ ...commandDisposition.preservedConfigured,
139
+ ...mcpServerDisposition.preservedConfigured,
140
+ ].map((fqn) => ({
141
+ readiness: "ready",
142
+ label: fqn,
143
+ run: Effect.succeed({
144
+ result: "success",
145
+ message: `preserved (directly configured in settings)`,
146
+ }),
147
+ }));
148
+ return {
149
+ _tag: "Plan",
150
+ name,
151
+ description,
152
+ jobs: [
153
+ {
154
+ concurrency: 1,
155
+ steps: [
156
+ ...packSteps,
157
+ ...skillSteps,
158
+ ...commandSteps,
159
+ ...mcpServerSteps,
160
+ ...preservedSteps,
161
+ ],
162
+ },
163
+ ],
164
+ };
165
+ });
166
+ //# sourceMappingURL=plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../../../src/root/packs/uninstall/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAA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F,CAAC;IAEF,MAAM,cAAc,GAAqB,oBAAoB,CAAC,SAAS,CAAC,GAAG,CACzE,CAAC,GAAG,EAAkB,EAAE;QACtB,MAAM,EAAE,GAAgC;YACtC,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,EAAE,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE;SAC7C,CAAC;QACF,OAAO;YACL,SAAS,EAAE,OAAO;YAClB,KAAK,EAAE,GAAG;YACV,GAAG,EAAE,eAAe,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;SAC7C,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,gDAAgD;IAChD,MAAM,cAAc,GAAqB;QACvC,GAAG,gBAAgB,CAAC,mBAAmB;QACvC,GAAG,kBAAkB,CAAC,mBAAmB;QACzC,GAAG,oBAAoB,CAAC,mBAAmB;KAC5C,CAAC,GAAG,CACH,CAAC,GAAG,EAAkB,EAAE,CAAC,CAAC;QACxB,SAAS,EAAE,OAAO;QAClB,KAAK,EAAE,GAAG;QACV,GAAG,EAAE,MAAM,CAAC,OAAO,CAAgB;YACjC,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,6CAA6C;SACvD,CAAC;KACH,CAAC,CACH,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,IAAI;QACJ,WAAW;QACX,IAAI,EAAE;YACJ;gBACE,WAAW,EAAE,CAAU;gBACvB,KAAK,EAAE;oBACL,GAAG,SAAS;oBACZ,GAAG,UAAU;oBACb,GAAG,YAAY;oBACf,GAAG,cAAc;oBACjB,GAAG,cAAc;iBAClB;aACF;SACF;KACa,CAAC;AACnB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "effect/unstable/cli";
2
+ export declare const unpackCommand: Command.Command<"unpack", Record<string, unknown>, {}, never, "effect/unstable/cli/GlobalFlag/axm-non-interactive" | "effect/unstable/cli/GlobalFlag/axm-json" | "effect/unstable/cli/GlobalFlag/axm-quiet" | "effect/unstable/cli/GlobalFlag/axm-verbose" | "effect/unstable/cli/GlobalFlag/axm-debug">;
3
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/root/packs/unpack/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAuB9D,eAAO,MAAM,aAAa,0SAwBzB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { Argument, Command, Flag } from "effect/unstable/cli";
2
+ import * as Option from "effect/Option";
3
+ import { forceFlag, previewFlag, yesFlag } from "@agentxm/client-core/unstable/cli-flags";
4
+ import { withArgvTracking } from "@agentxm/client-core/unstable/cli-runtime";
5
+ import { handleUnpack } from "./handler.js";
6
+ import { DEFAULT_WORKSPACE_SCOPE } from "@agentxm/client-core/unstable/workspace";
7
+ import { withRuntime, withWorkspace } from "../../../runtime.js";
8
+ const unpackConfig = {
9
+ name: Argument.string("name").pipe(Argument.withDescription("Extension pack name to unpack")),
10
+ strictAgentSync: Flag.boolean("strict-agent-sync").pipe(Flag.withDescription("Fail when MCP agent sync has strict-policy failures")),
11
+ yes: yesFlag.pipe(Flag.withDescription("Eject without confirmation")),
12
+ force: forceFlag.pipe(Flag.withDescription("Eject even if it would overwrite existing individual entries")),
13
+ preview: previewFlag.pipe(Flag.withDescription("Show what would change in settings without modifying them")),
14
+ };
15
+ export const unpackCommand = Command.make("unpack", unpackConfig, ({ name, strictAgentSync, yes, force, preview }) => handleUnpack({
16
+ name,
17
+ strictAgentSync: Option.liftPredicate(strictAgentSync, Boolean),
18
+ yes,
19
+ force,
20
+ preview,
21
+ }).pipe(withWorkspace(DEFAULT_WORKSPACE_SCOPE), withRuntime("packs unpack"))).pipe(withArgvTracking(unpackConfig), Command.withDescription("Eject extension pack into individual entries"), Command.withExamples([
22
+ {
23
+ command: "axm packs unpack @acme/frontend-tools",
24
+ description: "Stop using an extension pack and manage extensions individually",
25
+ },
26
+ {
27
+ command: "axm packs unpack @acme/frontend-tools --preview",
28
+ description: "See what settings would change first",
29
+ },
30
+ ]));
31
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../src/root/packs/unpack/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,YAAY,GAAG;IACnB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,+BAA+B,CAAC,CAAC;IAC7F,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,IAAI,CACrD,IAAI,CAAC,eAAe,CAAC,qDAAqD,CAAC,CAC5E;IACD,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;IACrE,KAAK,EAAE,SAAS,CAAC,IAAI,CACnB,IAAI,CAAC,eAAe,CAAC,8DAA8D,CAAC,CACrF;IACD,OAAO,EAAE,WAAW,CAAC,IAAI,CACvB,IAAI,CAAC,eAAe,CAAC,2DAA2D,CAAC,CAClF;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CACvC,QAAQ,EACR,YAAY,EACZ,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CACjD,YAAY,CAAC;IACX,IAAI;IACJ,eAAe,EAAE,MAAM,CAAC,aAAa,CAAC,eAAe,EAAE,OAAO,CAAC;IAC/D,GAAG;IACH,KAAK;IACL,OAAO;CACR,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,CAC/E,CAAC,IAAI,CACJ,gBAAgB,CAAC,YAAY,CAAC,EAC9B,OAAO,CAAC,eAAe,CAAC,8CAA8C,CAAC,EACvE,OAAO,CAAC,YAAY,CAAC;IACnB;QACE,OAAO,EAAE,uCAAuC;QAChD,WAAW,EAAE,iEAAiE;KAC/E;IACD;QACE,OAAO,EAAE,iDAAiD;QAC1D,WAAW,EAAE,sCAAsC;KACpD;CACF,CAAC,CACH,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
4
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
5
+ export interface UnpackHandlerArgs {
6
+ readonly name: string;
7
+ readonly strictAgentSync: Option.Option<boolean>;
8
+ readonly yes: boolean;
9
+ readonly force: boolean;
10
+ readonly preview: boolean;
11
+ }
12
+ /**
13
+ * Handles the `axm packs unpack` command.
14
+ */
15
+ export declare const handleUnpack: (args: UnpackHandlerArgs) => Effect.Effect<void, import("@agentxm/client-core/unstable/app-error").AppError | import("packages/core/src/unstable/cli-prompt/prompt-cancelled.ts").PromptCancelled, CliRenderer | import("packages/core/src/unstable/cli-flags/verbosity.ts").Verbosity | import("effect/FileSystem").FileSystem | import("effect/Path").Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | Workspace | import("packages/core/src/unstable/agents/coding-agent.ts").CodingAgentRepository | import("packages/core/src/unstable/source-resolution/service.ts").SourceHostProviders>;
16
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/root/packs/unpack/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgBpE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjD,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,8kBA4HvB,CAAC"}