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,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/subagents/uninstall/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAqB9D,eAAO,MAAM,gBAAgB,6SAyB5B,CAAC"}
@@ -0,0 +1,27 @@
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 { handleUninstall } 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
+ subagent: Argument.string("subagent").pipe(Argument.withDescription("Name of the subagent to uninstall")),
9
+ yes: yesFlag.pipe(Flag.withDescription("Skip the 'are you sure?' confirmation")),
10
+ force: forceFlag.pipe(Flag.withDescription("Remove even if other extensions depend on this subagent")),
11
+ preview: previewFlag.pipe(Flag.withDescription("Show what would be removed without making changes")),
12
+ };
13
+ export const uninstallCommand = Command.make("uninstall", uninstallConfig, ({ subagent, yes, force, preview }) => handleUninstall({ subagent }, { yes, force, preview }).pipe(withWorkspace(DEFAULT_WORKSPACE_SCOPE), withRuntime("subagents uninstall"))).pipe(withArgvTracking(uninstallConfig), Command.withDescription("Uninstall a subagent from agents"), Command.withExamples([
14
+ {
15
+ command: "axm subagents uninstall my-subagent",
16
+ description: "Remove a subagent you no longer need",
17
+ },
18
+ {
19
+ command: "axm subagents uninstall my-subagent --preview",
20
+ description: "Check what would be removed first",
21
+ },
22
+ {
23
+ command: "axm subagents uninstall my-subagent --yes",
24
+ description: "Remove without confirmation (scripts/CI)",
25
+ },
26
+ ]));
27
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../src/root/subagents/uninstall/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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nB;QACE,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EAAE,sCAAsC;KACpD;IACD;QACE,OAAO,EAAE,+CAA+C;QACxD,WAAW,EAAE,mCAAmC;KACjD;IACD;QACE,OAAO,EAAE,2CAA2C;QACpD,WAAW,EAAE,0CAA0C;KACxD;CACF,CAAC,CACH,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as Effect from "effect/Effect";
2
+ import { UninstallSubagentCommandWorkflowActions, type UninstallSubagentHandlerArgs } from "./command-actions.js";
3
+ export declare const handleUninstall: (args: UninstallSubagentHandlerArgs, 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 | UninstallSubagentCommandWorkflowActions>;
8
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/root/subagents/uninstall/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EACL,uCAAuC,EACvC,KAAK,4BAA4B,EAClC,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,eAAe,GAC1B,MAAM,4BAA4B,EAClC,OAAO;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,kkBAMvD,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 { UninstallSubagentCommandWorkflowActions, } from "./command-actions.js";
5
+ export const handleUninstall = (args, flags) => Effect.gen(function* () {
6
+ const actions = yield* UninstallSubagentCommandWorkflowActions;
7
+ const resolution = yield* runUninstallCommandWorkflow(args, actions, flags);
8
+ yield* emitPlanResolutionResult("subagents.uninstall", resolution);
9
+ });
10
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../../src/root/subagents/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,uCAAuC,GAExC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,IAAkC,EAClC,KAAyD,EACzD,EAAE,CACF,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,uCAAuC,CAAC;IAC/D,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,2BAA2B,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC5E,KAAK,CAAC,CAAC,wBAAwB,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;AACrE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Intent type for the subagent uninstall command workflow.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ /**
7
+ * Describes the resolved intent to uninstall one or more subagents.
8
+ *
9
+ * Produced by `finalizeIntent` after parsing and glob expansion.
10
+ * Consumed by `buildUninstallPlan`.
11
+ */
12
+ export type UninstallSubagentCommandIntent = {
13
+ readonly subagentsToUninstall: ReadonlyArray<{
14
+ readonly subagentName: string;
15
+ }>;
16
+ };
17
+ //# sourceMappingURL=intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../../src/root/subagents/uninstall/intent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,oBAAoB,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjF,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Intent type for the subagent uninstall command workflow.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=intent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/root/subagents/uninstall/intent.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "effect/unstable/cli";
2
+ export declare const updateCommand: Command.Command<"update", 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/subagents/update/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAiC9D,eAAO,MAAM,aAAa,0SAiCzB,CAAC"}
@@ -0,0 +1,41 @@
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 { scopeFlag } from "../../../cli-flags.js";
5
+ import { handleUpdate } from "./handler.js";
6
+ import { withRuntime, withWorkspace } from "../../../runtime.js";
7
+ const updateConfig = {
8
+ source: Argument.string("source").pipe(Argument.withDescription("Filter to subagents from a specific source (owner/repo, path, or URL)"), Argument.optional),
9
+ scope: scopeFlag.pipe(Flag.withDescription("Update subagents in project (default) or user-level configuration")),
10
+ agent: Flag.string("agent").pipe(Flag.withDescription("Update only subagents installed for specific agent(s)"), Flag.atLeast(0)),
11
+ subagent: Flag.string("subagent").pipe(Flag.withDescription("Update only specific subagent(s) by name or glob pattern"), Flag.atLeast(0)),
12
+ yes: yesFlag.pipe(Flag.withDescription("Apply all updates without confirmation")),
13
+ force: forceFlag.pipe(Flag.withDescription("Update even if version constraints would prevent it")),
14
+ preview: previewFlag.pipe(Flag.withDescription("Show available updates without applying them")),
15
+ };
16
+ export const updateCommand = Command.make("update", updateConfig, ({ source, scope, agent, subagent, yes, force, preview }) => handleUpdate({
17
+ source,
18
+ agents: agent,
19
+ subagents: subagent,
20
+ yes,
21
+ force,
22
+ preview,
23
+ }).pipe(withWorkspace(scope), withRuntime("subagents update"))).pipe(withArgvTracking(updateConfig), Command.withDescription("Update installed subagents to latest versions"), Command.withExamples([
24
+ {
25
+ command: "axm subagents update",
26
+ description: "Update all subagents to their latest versions",
27
+ },
28
+ {
29
+ command: "axm subagents update --subagent researcher",
30
+ description: "Update a specific subagent",
31
+ },
32
+ {
33
+ command: "axm subagents update owner/repo",
34
+ description: "Update only subagents from a specific source",
35
+ },
36
+ {
37
+ command: "axm subagents update --preview",
38
+ description: "Preview available updates",
39
+ },
40
+ ]));
41
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../src/root/subagents/update/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAA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EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAC1D,YAAY,CAAC;IACX,MAAM;IACN,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,QAAQ;IACnB,GAAG;IACH,KAAK;IACL,OAAO;CACR,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC,CACjE,CAAC,IAAI,CACJ,gBAAgB,CAAC,YAAY,CAAC,EAC9B,OAAO,CAAC,eAAe,CAAC,+CAA+C,CAAC,EACxE,OAAO,CAAC,YAAY,CAAC;IACnB;QACE,OAAO,EAAE,sBAAsB;QAC/B,WAAW,EAAE,+CAA+C;KAC7D;IACD;QACE,OAAO,EAAE,4CAA4C;QACrD,WAAW,EAAE,4BAA4B;KAC1C;IACD;QACE,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EAAE,8CAA8C;KAC5D;IACD;QACE,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE,2BAA2B;KACzC;CACF,CAAC,CACH,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { SubagentManager } from "@agentxm/client-core/unstable/subagents";
2
+ import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
3
+ import * as Effect from "effect/Effect";
4
+ import * as Option from "effect/Option";
5
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
6
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
7
+ export interface UpdateHandlerArgs {
8
+ readonly source: Option.Option<string>;
9
+ readonly agents: readonly string[];
10
+ readonly subagents: readonly string[];
11
+ readonly force: boolean;
12
+ readonly yes: boolean;
13
+ readonly preview: boolean;
14
+ }
15
+ export declare const handleUpdate: (args: UpdateHandlerArgs) => Effect.Effect<undefined, import("@agentxm/client-core/unstable/app-error").AppError | import("packages/core/src/unstable/cli-prompt/prompt-cancelled.ts").PromptCancelled, CliRenderer | import("effect/Scope").Scope | 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 | SourceHostProviders | SubagentManager>;
16
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../../src/root/subagents/update/handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAEtF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASpE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAWD,eAAO,MAAM,YAAY,8eAuPvB,CAAC"}
@@ -0,0 +1,188 @@
1
+ import { SubagentManager } from "@agentxm/client-core/unstable/subagents";
2
+ import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
3
+ import * as Array from "effect/Array";
4
+ import * as Effect from "effect/Effect";
5
+ import * as Option from "effect/Option";
6
+ import { makeAppError } from "@agentxm/client-core/unstable/app-error";
7
+ import { expandGlobs } from "@agentxm/client-core/unstable/utils";
8
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
9
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
10
+ import { parseRegistrySourcePatternParts } from "@agentxm/client-core/unstable/extensions";
11
+ import { resolveSource } from "@agentxm/client-core/unstable/source-resolution";
12
+ import { buildInstallOperation } from "@agentxm/client-core/unstable/extensions";
13
+ import { previewOrApplyPlan } from "@agentxm/client-core/unstable/workspace";
14
+ import { emitNoOpResult, emitPlanResolutionResult } from "../../../json-output.js";
15
+ import { buildUpdatePlan } from "./plan.js";
16
+ const toRegistrySubagentPattern = (source) => {
17
+ const parsed = parseRegistrySourcePatternParts(source);
18
+ if (parsed === undefined)
19
+ return Option.none();
20
+ if (parsed.type !== undefined && parsed.type !== "subagents") {
21
+ return Option.none();
22
+ }
23
+ return Option.some(parsed);
24
+ };
25
+ export const handleUpdate = Effect.fn("SubagentsUpdate.handle")(function* (args) {
26
+ const ws = yield* Workspace;
27
+ const sources = yield* SourceHostProviders;
28
+ const renderer = yield* CliRenderer;
29
+ yield* renderer.info(`axm subagents update (${ws.scope})`);
30
+ // Step 1: Load configured subagents and filter to enabled
31
+ const allSubagents = yield* ws.getConfiguredSubagents();
32
+ const lockedSubagents = yield* ws.getLockedSubagents();
33
+ const subagentEntries = yield* Effect.forEach(Object.entries(allSubagents), ([name, entry]) => Effect.gen(function* () {
34
+ if (!entry.enabled) {
35
+ yield* renderer.info(`Skipping ${name} (disabled)`);
36
+ return Option.none();
37
+ }
38
+ return Option.some([name, entry.source]);
39
+ })).pipe(Effect.map(Array.getSomes));
40
+ if (subagentEntries.length === 0) {
41
+ if (yield* emitNoOpResult("subagents.update", {
42
+ planName: "Update subagent(s)",
43
+ planDescription: "Update installed subagents",
44
+ message: "No subagents installed. Nothing to update.",
45
+ })) {
46
+ return;
47
+ }
48
+ yield* renderer.info("No subagents installed. Nothing to update.");
49
+ return;
50
+ }
51
+ // Step 2: Filter by source argument if provided
52
+ const sourceValue = Option.getOrUndefined(args.source);
53
+ const sourceFilteredEntries = sourceValue !== undefined
54
+ ? yield* Effect.gen(function* () {
55
+ const sourceArg = yield* resolveSource(sourceValue).pipe(Effect.mapError((error) => makeAppError({
56
+ code: "INVALID_SOURCE",
57
+ what: `Invalid source: ${error.message}`,
58
+ details: [`Provided: ${sourceValue}`],
59
+ cause: error,
60
+ })));
61
+ const sourceArgOrigin = sources.origin(sourceArg);
62
+ return yield* Effect.forEach(subagentEntries, ([name, sourceStr]) => resolveSource(sourceStr).pipe(Effect.map((resolved) => sources.origin(resolved) === sourceArgOrigin
63
+ ? Option.some([name, sourceStr])
64
+ : Option.none()), Effect.catch(() => Effect.succeed(Option.none()))), { concurrency: "unbounded" }).pipe(Effect.map(Array.getSomes));
65
+ })
66
+ : subagentEntries;
67
+ // Step 3: Filter by --subagent glob patterns
68
+ const filteredEntries = (() => {
69
+ if (args.subagents.length === 0)
70
+ return sourceFilteredEntries;
71
+ const allNames = sourceFilteredEntries.map(([name]) => name);
72
+ const matchedNames = expandGlobs(args.subagents, allNames);
73
+ const matchedSet = new Set(matchedNames);
74
+ return sourceFilteredEntries.filter(([name]) => matchedSet.has(name));
75
+ })();
76
+ if (args.subagents.length > 0) {
77
+ if (filteredEntries.length === 0) {
78
+ if (yield* emitNoOpResult("subagents.update", {
79
+ planName: "Update subagent(s)",
80
+ planDescription: "Update installed subagents",
81
+ message: "No installed subagents match the --subagent filter. Nothing to update.",
82
+ })) {
83
+ return;
84
+ }
85
+ yield* renderer.warn("No installed subagents match the --subagent filter. Nothing to update.");
86
+ return;
87
+ }
88
+ }
89
+ // Step 4: Re-resolve each source and discover subagents
90
+ const findSubagentRefs = (source, options) => sources
91
+ .find(source, {
92
+ names: options.subagentNames,
93
+ type: "subagent",
94
+ owner: options.owner,
95
+ versionConstraint: options.versionConstraint,
96
+ })
97
+ .pipe(Effect.map((refs) => Array.filter(refs, (ref) => ref.type === "subagent")));
98
+ const results = yield* renderer.withSpinner("Resolving sources...", () => Effect.forEach(filteredEntries, ([name, sourceStr]) => Effect.gen(function* () {
99
+ const source = yield* resolveSource(sourceStr);
100
+ const registryPattern = toRegistrySubagentPattern(sourceStr);
101
+ const requestedOwner = Option.match(registryPattern, {
102
+ onNone: () => Option.none(),
103
+ onSome: (pattern) => Option.some(pattern.owner),
104
+ });
105
+ // Try with name filter (fast path)
106
+ const namedRefs = yield* findSubagentRefs(source, {
107
+ subagentNames: [name],
108
+ owner: requestedOwner,
109
+ versionConstraint: Option.none(),
110
+ });
111
+ const subagentRef = namedRefs.find((r) => r.subagent.name === name);
112
+ if (subagentRef) {
113
+ return Option.some({
114
+ type: "match",
115
+ ref: subagentRef,
116
+ });
117
+ }
118
+ // Subagent not found by name — re-resolve without name filter
119
+ const allSubagentRefs = yield* findSubagentRefs(source, {
120
+ subagentNames: [],
121
+ owner: requestedOwner,
122
+ versionConstraint: Option.none(),
123
+ });
124
+ if (allSubagentRefs.length === 1) {
125
+ const [newRef] = allSubagentRefs;
126
+ if (newRef === undefined) {
127
+ return Option.none();
128
+ }
129
+ return Option.some({
130
+ type: "match",
131
+ ref: newRef,
132
+ });
133
+ }
134
+ else if (allSubagentRefs.length > 1) {
135
+ const availableNames = allSubagentRefs.map((r) => r.subagent.name).join(", ");
136
+ yield* renderer.warn(`Subagent "${name}" not found in source. Available subagents: ${availableNames}. Use \`axm subagents rename ${name} <new-name>\` to update.`);
137
+ return Option.none();
138
+ }
139
+ else {
140
+ yield* renderer.warn(`Subagent "${name}" not found in source ${sources.origin(source)}`);
141
+ return Option.none();
142
+ }
143
+ }).pipe(Effect.catch((error) => {
144
+ return renderer
145
+ .warn(`Failed to resolve "${name}": ${String(error)}`)
146
+ .pipe(Effect.map(() => Option.none()));
147
+ })), { concurrency: "unbounded" }), { successMessage: "Sources resolved" });
148
+ // Step 5: Collect successful resolutions
149
+ const resolved = Array.getSomes(results);
150
+ if (resolved.length === 0) {
151
+ return yield* makeAppError({
152
+ code: "UPDATE_FAILED",
153
+ what: "All source re-resolutions failed. Nothing to update.",
154
+ howToFix: "Verify the original source paths are still accessible.",
155
+ });
156
+ }
157
+ // Step 6: Capture services for run closures
158
+ const subagentMgr = yield* SubagentManager;
159
+ const makeRunClosure = (op) => {
160
+ const step = buildInstallOperation(subagentMgr, {
161
+ ref: op.ref,
162
+ versionConstraint: Option.none(),
163
+ });
164
+ if (step.readiness === "error") {
165
+ return Effect.fail(makeAppError({
166
+ code: "UPDATE_INSTALL_BLOCKED",
167
+ what: step.errorMessage,
168
+ }));
169
+ }
170
+ return step.run;
171
+ };
172
+ // Step 7: Build operations
173
+ const ops = resolved.map((item) => ({
174
+ ref: item.ref,
175
+ force: args.force,
176
+ }));
177
+ // Step 8: Build plan
178
+ const plan = buildUpdatePlan(ops, { lockfileVersion: 1, subagents: lockedSubagents }, "Update subagent(s)", Option.some("Update installed subagents"), makeRunClosure);
179
+ // Step 9: Resolve plan
180
+ const resolution = yield* previewOrApplyPlan(plan, {
181
+ yes: args.yes,
182
+ force: args.force,
183
+ preview: args.preview,
184
+ });
185
+ yield* emitPlanResolutionResult("subagents.update", resolution);
186
+ yield* renderer.success("Done");
187
+ });
188
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../../src/root/subagents/update/handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,+B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uB;IACvB,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE;QACjD,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,OAAO,EAAE,IAAI,CAAC,OAAO;KACtB,CAAC,CAAC;IACH,KAAK,CAAC,CAAC,wBAAwB,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;IAEhE,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Update-specific plan builder for subagents.
3
+ *
4
+ * Compares re-resolved source metadata against lockfile entries to determine
5
+ * which subagents need updating. Registry sources compare versions, git sources
6
+ * compare tree hashes, and local sources always update.
7
+ *
8
+ * @experimental This API is unstable and may change without notice.
9
+ */
10
+ import * as Effect from "effect/Effect";
11
+ import * as Option from "effect/Option";
12
+ import type { AppError } from "@agentxm/client-core/unstable/app-error";
13
+ import type { SubagentLockEntry } from "@agentxm/client-core/unstable/lockfile";
14
+ import type { SubagentExtensionRef } from "@agentxm/client-core/unstable/subagents";
15
+ import type { JobStepResult, Plan } from "@agentxm/client-core/unstable/workspace";
16
+ export interface UpdateOperation {
17
+ readonly ref: SubagentExtensionRef;
18
+ readonly force: boolean;
19
+ }
20
+ /**
21
+ * A function that creates a run closure for an operation.
22
+ * The closure must have all services already provided (R = never).
23
+ */
24
+ export type MakeRunClosure = (op: UpdateOperation) => Effect.Effect<JobStepResult, AppError, never>;
25
+ interface SubagentLockfile {
26
+ readonly lockfileVersion: number;
27
+ readonly subagents: Record<string, SubagentLockEntry>;
28
+ }
29
+ /**
30
+ * Build an update plan by comparing operations against lockfile entries.
31
+ *
32
+ * Takes a `makeRunClosure` function that produces service-provided run closures
33
+ * for each operation.
34
+ *
35
+ * Pure function (no Effect needed) — service provision happens in the caller.
36
+ */
37
+ export declare const buildUpdatePlan: (ops: ReadonlyArray<UpdateOperation>, lockfile: SubagentLockfile, name: string, description: Option.Option<string>, makeRunClosure: MakeRunClosure) => Plan;
38
+ export {};
39
+ //# sourceMappingURL=plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../../../src/root/subagents/update/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAkB,MAAM,yCAAyC,CAAC;AAMnG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,oBAAoB,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,eAAe,KAAK,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAEpG,UAAU,gBAAgB;IACxB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CACvD;AAwCD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAC1B,KAAK,aAAa,CAAC,eAAe,CAAC,EACnC,UAAU,gBAAgB,EAC1B,MAAM,MAAM,EACZ,aAAa,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAClC,gBAAgB,cAAc,KAC7B,IA8BD,CAAC"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Update-specific plan builder for subagents.
3
+ *
4
+ * Compares re-resolved source metadata against lockfile entries to determine
5
+ * which subagents need updating. Registry sources compare versions, git sources
6
+ * compare tree hashes, and local sources always update.
7
+ *
8
+ * @experimental This API is unstable and may change without notice.
9
+ */
10
+ import * as Effect from "effect/Effect";
11
+ import * as Option from "effect/Option";
12
+ // -----------------------------------------------------------------------------
13
+ // Version comparison
14
+ // -----------------------------------------------------------------------------
15
+ /**
16
+ * Determine whether a subagent needs updating by comparing the operation's
17
+ * resolved metadata against the lockfile entry.
18
+ *
19
+ * Returns `true` when the subagent has changed and should be updated.
20
+ */
21
+ const hasChanged = (op, entry) => {
22
+ const { ref } = op;
23
+ if (ref.refType === "git-hosted") {
24
+ const lockHash = Option.fromUndefinedOr(entry.gitTreeHash);
25
+ const opHash = ref.gitTreeSha;
26
+ // If either hash is missing, treat as needing update
27
+ if (Option.isNone(lockHash) || Option.isNone(opHash))
28
+ return true;
29
+ return lockHash.value !== opHash.value;
30
+ }
31
+ if (ref.refType === "registry") {
32
+ if (entry.type !== "registry")
33
+ return true;
34
+ const lockVersion = entry.resolvedVersion;
35
+ const opVersion = ref.version;
36
+ return opVersion !== lockVersion;
37
+ }
38
+ // Local sources: always update (no version tracking)
39
+ return true;
40
+ };
41
+ // -----------------------------------------------------------------------------
42
+ // Plan builder
43
+ // -----------------------------------------------------------------------------
44
+ /**
45
+ * Build an update plan by comparing operations against lockfile entries.
46
+ *
47
+ * Takes a `makeRunClosure` function that produces service-provided run closures
48
+ * for each operation.
49
+ *
50
+ * Pure function (no Effect needed) — service provision happens in the caller.
51
+ */
52
+ export const buildUpdatePlan = (ops, lockfile, name, description, makeRunClosure) => ({
53
+ _tag: "Plan",
54
+ name,
55
+ description,
56
+ jobs: [
57
+ {
58
+ concurrency: "unbounded",
59
+ steps: ops.map((op) => {
60
+ const entry = lockfile.subagents[op.ref.subagent.name];
61
+ const needsUpdate = !entry || op.force || hasChanged(op, entry);
62
+ if (!needsUpdate) {
63
+ return {
64
+ readiness: "ready",
65
+ label: op.ref.subagent.name,
66
+ run: Effect.succeed({
67
+ result: "success",
68
+ message: "already up to date",
69
+ }),
70
+ };
71
+ }
72
+ return {
73
+ readiness: "ready",
74
+ label: op.ref.subagent.name,
75
+ run: makeRunClosure(op),
76
+ };
77
+ }),
78
+ },
79
+ ],
80
+ });
81
+ //# sourceMappingURL=plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../../../src/root/subagents/update/plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AA0BxC,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF;;;;;GAKG;AACH,MAAM,UAAU,GAAG,CAAC,EAAmB,EAAE,KAAwB,EAAW,EAAE;IAC5E,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAEnB,IAAI,GAAG,CAAC,OAAO,KAAK,YAAY,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;QAE9B,qDAAqD;QACrD,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;YAAE,OAAO,IAAI,CAAC;QAElE,OAAO,QAAQ,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;IACzC,CAAC;IAED,IAAI,GAAG,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;QAC/B,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU;YAAE,OAAO,IAAI,CAAC;QAC3C,MAAM,WAAW,GAAG,KAAK,CAAC,eAAe,CAAC;QAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;QAC9B,OAAO,SAAS,KAAK,WAAW,CAAC;IACnC,CAAC;IAED,qDAAqD;IACrD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,gFAAgF;AAChF,eAAe;AACf,gFAAgF;AAEhF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,GAAmC,EACnC,QAA0B,EAC1B,IAAY,EACZ,WAAkC,EAClC,cAA8B,EACxB,EAAE,CAAC,CAAC;IACV,IAAI,EAAE,MAAM;IACZ,IAAI;IACJ,WAAW;IACX,IAAI,EAAE;QACJ;YACE,WAAW,EAAE,WAAW;YACxB,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAkB,EAAE;gBACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACvD,MAAM,WAAW,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,IAAI,UAAU,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;gBAEhE,IAAI,CAAC,WAAW,EAAE,CAAC;oBACjB,OAAO;wBACL,SAAS,EAAE,OAAO;wBAClB,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI;wBAC3B,GAAG,EAAE,MAAM,CAAC,OAAO,CAAgB;4BACjC,MAAM,EAAE,SAAS;4BACjB,OAAO,EAAE,oBAAoB;yBAC9B,CAAC;qBACH,CAAC;gBACJ,CAAC;gBAED,OAAO;oBACL,SAAS,EAAE,OAAO;oBAClB,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI;oBAC3B,GAAG,EAAE,cAAc,CAAC,EAAE,CAAC;iBACxB,CAAC;YACJ,CAAC,CAAC;SACH;KACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import * as FileSystem from "effect/FileSystem";
2
+ import * as Path from "effect/Path";
3
+ import * as Effect from "effect/Effect";
4
+ import { Command } from "effect/unstable/cli";
5
+ import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
6
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
7
+ import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
8
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
9
+ export interface SyncHandlerArgs {
10
+ readonly yes: boolean;
11
+ readonly preview: boolean;
12
+ }
13
+ export declare const handleSync: (args: SyncHandlerArgs) => 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, CliRenderer | import("@agentxm/client-core/unstable/cli-flags").Verbosity | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CodingAgentRepository | (import("effect/Scope").Scope | FileSystem.FileSystem | Path.Path | Workspace | SourceHostProviders | import("./commands/install/command-actions.ts").InstallCommandCommandWorkflowActions | import("./mcp-servers/install/command-actions.ts").InstallMcpServerCommandWorkflowActions | import("./packs/install/command-actions.ts").InstallPackCommandWorkflowActions | import("./skills/install/command-actions.ts").InstallSkillCommandWorkflowActions | import("./subagents/install/command-actions.ts").InstallSubagentCommandWorkflowActions)>;
14
+ export declare const syncCommand: Command.Command<"sync", 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">;
15
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../src/root/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAQL,SAAS,EACV,MAAM,yCAAyC,CAAC;AAOjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAeD,eAAO,MAAM,UAAU,63BAqErB,CAAC;AAUH,eAAO,MAAM,WAAW,wSASvB,CAAC"}