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,75 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import * as Schema from "effect/Schema";
4
+ import * as SchemaIssue from "effect/SchemaIssue";
5
+ import { makeAppError } from "@agentxm/client-core/unstable/app-error";
6
+ import { installableExtensionTypePluralSegments, InstallableExtensionTypePluralSchema, isInstallableExtensionTypePlural, RegistrySourceRefSchema, toInstallableExtensionType, } from "@agentxm/client-core/unstable/extensions";
7
+ import { parseInputPattern } from "@agentxm/client-core/unstable/sources";
8
+ const decodeRegistrySourceRef = Schema.decodeUnknownEffect(RegistrySourceRefSchema);
9
+ export const rootInstallableTypeSegments = installableExtensionTypePluralSegments;
10
+ export const RootInstallableTypeSegmentSchema = InstallableExtensionTypePluralSchema;
11
+ const rootInstallFqnGrammar = "@<handle>/<plural-type>/<name>[@<version>]";
12
+ const supportedRootInstallTypes = rootInstallableTypeSegments.join(", ");
13
+ const rootInstallRegistryOnlyHowToFix = (source) => {
14
+ const parsed = parseInputPattern(source);
15
+ if (Option.isNone(parsed)) {
16
+ return "Use `axm install @<handle>/<plural-type>/<name>[@<version>]`. For path, URL, or git sources, use `axm skills install <source>` or `axm subagents install <source>` instead.";
17
+ }
18
+ switch (parsed.value.pattern.pattern) {
19
+ case "file-path-pattern":
20
+ case "url-input":
21
+ case "git-scp-address":
22
+ case "shorthand-input":
23
+ case "slash-pattern":
24
+ return `Root install only accepts registry FQNs. Use \`axm skills install ${source}\` or \`axm subagents install ${source}\` instead.`;
25
+ case "name-input":
26
+ case "glob-input":
27
+ return `Root install only accepts registry FQNs. Use the matching per-type command instead: \`axm skills install ${source}\`, \`axm commands install ${source}\`, \`axm subagents install ${source}\`, \`axm packs install ${source}\`, or \`axm mcp-servers install ${source}\`.`;
28
+ case "registry-pattern-input":
29
+ return "Use `axm install @<handle>/<plural-type>/<name>[@<version>]`.";
30
+ }
31
+ };
32
+ export const resolveRootInstallIntent = (input) => Effect.gen(function* () {
33
+ const source = input.trim();
34
+ const segments = source.split("/");
35
+ const pluralType = segments.length === 3 ? segments[1] : undefined;
36
+ if (!source.startsWith("@")) {
37
+ return yield* makeAppError({
38
+ code: "INSTALL_SOURCE_NOT_FQN",
39
+ what: "Root install only accepts registry FQNs",
40
+ details: [`Provided: ${source}`],
41
+ howToFix: rootInstallRegistryOnlyHowToFix(source),
42
+ });
43
+ }
44
+ const parsed = yield* decodeRegistrySourceRef(source).pipe(Effect.mapError((error) => {
45
+ if (pluralType !== undefined && !isInstallableExtensionTypePlural(pluralType)) {
46
+ return makeAppError({
47
+ code: "INSTALL_SOURCE_UNKNOWN_TYPE",
48
+ what: "Install source uses an unsupported plural type",
49
+ details: [`Provided: ${source}`, `Supported types: ${supportedRootInstallTypes}`],
50
+ howToFix: `Use ${rootInstallFqnGrammar}. Supported plural types: ${supportedRootInstallTypes}.`,
51
+ cause: error,
52
+ });
53
+ }
54
+ return makeAppError({
55
+ code: "INSTALL_SOURCE_INVALID_FQN",
56
+ what: "Install source must be a registry FQN",
57
+ details: [SchemaIssue.makeFormatterDefault()(error.issue)],
58
+ howToFix: `Use ${rootInstallFqnGrammar} with one of: ${supportedRootInstallTypes}.`,
59
+ cause: error,
60
+ });
61
+ }));
62
+ if (!isInstallableExtensionTypePlural(parsed.type)) {
63
+ return yield* makeAppError({
64
+ code: "INSTALL_SOURCE_UNSUPPORTED_TYPE",
65
+ what: "Root install does not support that extension type",
66
+ details: [`Provided: ${source}`, `Supported types: ${supportedRootInstallTypes}`],
67
+ howToFix: `Use ${rootInstallFqnGrammar}. Supported plural types: ${supportedRootInstallTypes}.`,
68
+ });
69
+ }
70
+ return {
71
+ source,
72
+ type: toInstallableExtensionType(parsed.type),
73
+ };
74
+ });
75
+ //# sourceMappingURL=resolve-root-install-intent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-root-install-intent.js","sourceRoot":"","sources":["../../../../src/root/install/resolve-root-install-intent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EACL,sCAAsC,EACtC,oCAAoC,EACpC,gCAAgC,EAChC,uBAAuB,EACvB,0BAA0B,GAE3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uC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ACnD,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC;YACzB,IAAI,EAAE,iCAAiC;YACvC,IAAI,EAAE,mDAAmD;YACzD,OAAO,EAAE,CAAC,aAAa,MAAM,EAAE,EAAE,oBAAoB,yBAAyB,EAAE,CAAC;YACjF,QAAQ,EAAE,OAAO,qBAAqB,6BAA6B,yBAAyB,GAAG;SAChG,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,MAAM;QACN,IAAI,EAAE,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC;KAClB,CAAC;AAChC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import { type PlanResolution } from "@agentxm/client-core/unstable/workspace";
4
+ import { type WorkspaceInstallableType } from "./workspace-install.js";
5
+ export interface WorkspaceInstallFlags {
6
+ readonly yes: boolean;
7
+ readonly force: boolean;
8
+ readonly preview: boolean;
9
+ }
10
+ export declare const handleWorkspaceInstall: (args: {
11
+ readonly command: string;
12
+ readonly type: Option.Option<WorkspaceInstallableType>;
13
+ readonly planName: string;
14
+ readonly planDescription: Option.Option<string>;
15
+ readonly flags: WorkspaceInstallFlags;
16
+ }) => 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 | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | (import("effect/Scope").Scope | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("@agentxm/client-core/unstable/workspace").Workspace | import("packages/core/src/unstable/source-resolution/service.ts").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)>;
17
+ export declare const runWorkspaceInstall: (args: {
18
+ readonly type: Option.Option<WorkspaceInstallableType>;
19
+ readonly planName: string;
20
+ readonly planDescription: Option.Option<string>;
21
+ readonly flags: WorkspaceInstallFlags;
22
+ }) => Effect.Effect<Option.None<PlanResolution> | Option.Some<PlanResolution>, 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 | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | (import("effect/Scope").Scope | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("@agentxm/client-core/unstable/workspace").Workspace | import("packages/core/src/unstable/source-resolution/service.ts").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)>;
23
+ //# sourceMappingURL=workspace-install-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-install-handler.d.ts","sourceRoot":"","sources":["../../../../src/root/install/workspace-install-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAOxC,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAOlG,OAAO,EAA6B,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAQlG,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,sBAAsB,GAAI,MAAM;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IACvD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;CACvC,ojCAqCG,CAAC;AAEL,eAAO,MAAM,mBAAmB,GAAI,MAAM;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IACvD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;CACvC,ymCAcG,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import { setCommandSemanticProperties, summarizeCommandOutcome, } from "@agentxm/client-core/unstable/cli-runtime";
4
+ import { previewOrApplyPlan } from "@agentxm/client-core/unstable/workspace";
5
+ import { emitNoOpResult, emitPlanResolutionResult, planResolutionToSummary, } from "../../json-output.js";
6
+ import { buildWorkspaceInstallPlan } from "./workspace-install.js";
7
+ const workspaceInstallSubjectType = (type) => Option.match(type, {
8
+ onNone: () => "mixed",
9
+ onSome: (value) => value,
10
+ });
11
+ export const handleWorkspaceInstall = (args) => Effect.gen(function* () {
12
+ const planResult = yield* buildWorkspaceInstallPlan({
13
+ type: args.type,
14
+ planName: args.planName,
15
+ planDescription: args.planDescription,
16
+ });
17
+ if (planResult._tag === "NoConfiguredExtensions") {
18
+ yield* setCommandSemanticProperties(summarizeCommandOutcome({
19
+ outcome: "no-op",
20
+ subjectType: workspaceInstallSubjectType(args.type),
21
+ sourceKind: "workspace",
22
+ }));
23
+ yield* emitNoOpResult(args.command, {
24
+ planName: args.planName,
25
+ message: planResult.message,
26
+ ...Option.match(args.planDescription, {
27
+ onNone: () => ({}),
28
+ onSome: (planDescription) => ({ planDescription }),
29
+ }),
30
+ });
31
+ return;
32
+ }
33
+ const resolution = yield* previewOrApplyPlan(planResult.plan, args.flags);
34
+ yield* setCommandSemanticProperties(summarizeCommandOutcome(planResolutionToSummary(resolution, {
35
+ subjectType: workspaceInstallSubjectType(args.type),
36
+ sourceKind: "workspace",
37
+ })));
38
+ yield* emitPlanResolutionResult(args.command, resolution);
39
+ });
40
+ export const runWorkspaceInstall = (args) => Effect.gen(function* () {
41
+ const planResult = yield* buildWorkspaceInstallPlan({
42
+ type: args.type,
43
+ planName: args.planName,
44
+ planDescription: args.planDescription,
45
+ });
46
+ if (planResult._tag === "NoConfiguredExtensions") {
47
+ return Option.none();
48
+ }
49
+ const resolution = yield* previewOrApplyPlan(planResult.plan, args.flags);
50
+ return Option.some(resolution);
51
+ });
52
+ //# sourceMappingURL=workspace-install-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-install-handler.js","sourceRoot":"","sources":["../../../../src/root/install/workspace-install-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,GAExB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAuB,MAAM,yCAAyC,CAAC;AAElG,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAiC,MAAM,wBAAwB,CAAC;AAElG,MAAM,2BAA2B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,4BAA4B,CACjC,uBAAuB,CACrB,uBAAuB,CAAC,UAAU,EAAE;QAClC,WAAW,EAAE,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC;QACnD,UAAU,EAAE,WAAW;KACxB,CAAC,CACH,CACF,CAAC;IACF,KAAK,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAKnC,EAAE,EAAE,CACH,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,yBAAyB,CAAC;QAClD,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,eAAe,EAAE,IAAI,CAAC,eAAe;KACtC,CAAC,CAAC;IAEH,IAAI,UAAU,CAAC,IAAI,KAAK,wBAAwB,EAAE,CAAC;QACjD,OAAO,MAAM,CAAC,IAAI,EAAkB,CAAC;IACvC,CAAC;IAED,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,kBAAkB,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1E,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import type * as FileSystem from "effect/FileSystem";
4
+ import type * as Path from "effect/Path";
5
+ import type * as Scope from "effect/Scope";
6
+ import type { AppError } from "@agentxm/client-core/unstable/app-error";
7
+ import { type Plan, Workspace } from "@agentxm/client-core/unstable/workspace";
8
+ import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
9
+ import { type InstallableExtensionType } from "@agentxm/client-core/unstable/extensions";
10
+ import { InstallCommandCommandWorkflowActions } from "../commands/install/command-actions.js";
11
+ import { InstallMcpServerCommandWorkflowActions } from "../mcp-servers/install/command-actions.js";
12
+ import { InstallPackCommandWorkflowActions } from "../packs/install/command-actions.js";
13
+ import { InstallSkillCommandWorkflowActions } from "../skills/install/command-actions.js";
14
+ import { InstallSubagentCommandWorkflowActions } from "../subagents/install/command-actions.js";
15
+ export type WorkspaceInstallableType = InstallableExtensionType;
16
+ type WorkspaceInstallCollectorContext = Scope.Scope | FileSystem.FileSystem | Path.Path | Workspace | SourceHostProviders | InstallSkillCommandWorkflowActions | InstallCommandCommandWorkflowActions | InstallSubagentCommandWorkflowActions | InstallMcpServerCommandWorkflowActions | InstallPackCommandWorkflowActions;
17
+ export type WorkspaceInstallPlanResult = {
18
+ readonly _tag: "NoConfiguredExtensions";
19
+ readonly message: string;
20
+ } | {
21
+ readonly _tag: "WorkspaceInstallPlan";
22
+ readonly plan: Plan;
23
+ };
24
+ export declare const buildWorkspaceInstallPlan: (args: {
25
+ readonly type: Option.Option<WorkspaceInstallableType>;
26
+ readonly planName: string;
27
+ readonly planDescription: Option.Option<string>;
28
+ }) => Effect.Effect<{
29
+ _tag: "NoConfiguredExtensions";
30
+ message: string;
31
+ plan?: never;
32
+ } | {
33
+ _tag: "WorkspaceInstallPlan";
34
+ plan: Plan;
35
+ message?: never;
36
+ }, AppError, WorkspaceInstallCollectorContext>;
37
+ export {};
38
+ //# sourceMappingURL=workspace-install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-install.d.ts","sourceRoot":"","sources":["../../../../src/root/install/workspace-install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,KAAK,IAAI,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,QAAQ,EA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@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import { Workspace, resolveConfiguredCommand, resolveConfiguredMcpServer, resolveConfiguredPack, resolveConfiguredSkill, resolveConfiguredSubagent, } from "@agentxm/client-core/unstable/workspace";
4
+ import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
5
+ import { extensionTypePluralSentenceLabels, toInstallableExtensionTypePlural, } from "@agentxm/client-core/unstable/extensions";
6
+ import { InstallCommandCommandWorkflowActions } from "../commands/install/command-actions.js";
7
+ import { InstallMcpServerCommandWorkflowActions } from "../mcp-servers/install/command-actions.js";
8
+ import { InstallPackCommandWorkflowActions } from "../packs/install/command-actions.js";
9
+ import { InstallSkillCommandWorkflowActions } from "../skills/install/command-actions.js";
10
+ import { InstallSubagentCommandWorkflowActions } from "../subagents/install/command-actions.js";
11
+ const noConfiguredMessage = (type) => Option.match(type, {
12
+ onNone: () => "No configured extensions. Nothing to install.",
13
+ onSome: (value) => `No configured ${extensionTypePluralSentenceLabels[toInstallableExtensionTypePlural(value)]}. Nothing to install.`,
14
+ });
15
+ const flattenPlanSteps = (plan) => plan.jobs.flatMap((job) => job.steps);
16
+ const mergePlanSections = (plans) => {
17
+ const byTitle = new Map();
18
+ for (const plan of plans) {
19
+ for (const section of plan.sections ?? []) {
20
+ const existing = byTitle.get(section.title);
21
+ if (existing === undefined) {
22
+ byTitle.set(section.title, new Set(section.items));
23
+ continue;
24
+ }
25
+ for (const item of section.items) {
26
+ existing.add(item);
27
+ }
28
+ }
29
+ }
30
+ if (byTitle.size === 0) {
31
+ return undefined;
32
+ }
33
+ return [...byTitle.entries()].map(([title, items]) => ({
34
+ title,
35
+ items: [...items],
36
+ }));
37
+ };
38
+ const toCollectedWorkspaceInstallPlans = ({ plans, originForStep = () => "direct", }) => ({
39
+ plans,
40
+ fragments: plans.flatMap((plan) => flattenPlanSteps(plan).map((step, index) => ({
41
+ key: step.key ?? step.label,
42
+ origin: originForStep(index),
43
+ step,
44
+ }))),
45
+ });
46
+ const matchesRequestedType = (requestedType, candidate) => Option.match(requestedType, {
47
+ onNone: () => true,
48
+ onSome: (value) => value === candidate,
49
+ });
50
+ const mergeFragments = (collections) => {
51
+ const byKey = new Map();
52
+ for (const fragment of collections.flatMap((collection) => collection.fragments)) {
53
+ const existing = byKey.get(fragment.key);
54
+ if (existing === undefined) {
55
+ byKey.set(fragment.key, fragment);
56
+ continue;
57
+ }
58
+ if (existing.origin === "dependency" && fragment.origin === "direct") {
59
+ byKey.set(fragment.key, fragment);
60
+ }
61
+ }
62
+ return [...byKey.values()];
63
+ };
64
+ const resolveSkillIntent = (name, source) => resolveConfiguredSkill(name, source).pipe(Effect.map(({ ref, versionConstraint }) => ({
65
+ skillsToInstall: [{ ref, versionConstraint }],
66
+ })));
67
+ const resolveSubagentIntent = (name, source) => resolveConfiguredSubagent(name, source).pipe(Effect.map(({ ref, versionConstraint }) => ({
68
+ subagentsToInstall: [{ ref, versionConstraint }],
69
+ })));
70
+ const resolveCommandIntent = (name, source) => resolveConfiguredCommand(name, source).pipe(Effect.map(({ ref, versionConstraint }) => ({
71
+ ref,
72
+ versionConstraint,
73
+ force: false,
74
+ })));
75
+ const resolveMcpServerIntent = (name, source) => resolveConfiguredMcpServer(name, source).pipe(Effect.map(({ ref, versionConstraint }) => ({
76
+ ref,
77
+ versionConstraint,
78
+ force: false,
79
+ })));
80
+ const resolvePackRef = (name, source) => resolveConfiguredPack(name, source).pipe(Effect.map(({ ref, versionConstraint }) => ({
81
+ packToInstall: ref,
82
+ versionConstraint,
83
+ })));
84
+ const collectSkillPlans = () => Effect.gen(function* () {
85
+ const ws = yield* Workspace;
86
+ const actions = yield* InstallSkillCommandWorkflowActions;
87
+ const configured = yield* ws.getConfiguredSkills();
88
+ const entries = Object.entries(configured).filter(([, entry]) => entry.enabled);
89
+ const plans = yield* Effect.forEach(entries, ([name, entry]) => resolveSkillIntent(name, entry.source).pipe(Effect.flatMap((intent) => actions.buildPlan(intent))), { concurrency: "unbounded" });
90
+ return toCollectedWorkspaceInstallPlans({ plans });
91
+ });
92
+ const collectCommandPlans = () => Effect.gen(function* () {
93
+ const ws = yield* Workspace;
94
+ const actions = yield* InstallCommandCommandWorkflowActions;
95
+ const configured = yield* ws.getConfiguredCommands();
96
+ const entries = Object.entries(configured).filter(([, entry]) => entry.enabled);
97
+ const plans = yield* Effect.forEach(entries, ([name, entry]) => resolveCommandIntent(name, entry.source).pipe(Effect.flatMap((intent) => actions.buildPlan(intent))), { concurrency: "unbounded" });
98
+ return toCollectedWorkspaceInstallPlans({ plans });
99
+ });
100
+ const collectSubagentPlans = () => Effect.gen(function* () {
101
+ const ws = yield* Workspace;
102
+ const actions = yield* InstallSubagentCommandWorkflowActions;
103
+ const configured = yield* ws.getConfiguredSubagents();
104
+ const entries = Object.entries(configured).filter(([, entry]) => entry.enabled);
105
+ const plans = yield* Effect.forEach(entries, ([name, entry]) => resolveSubagentIntent(name, entry.source).pipe(Effect.flatMap((intent) => actions.buildPlan(intent))), { concurrency: "unbounded" });
106
+ return toCollectedWorkspaceInstallPlans({ plans });
107
+ });
108
+ const collectMcpServerPlans = () => Effect.gen(function* () {
109
+ const ws = yield* Workspace;
110
+ const actions = yield* InstallMcpServerCommandWorkflowActions;
111
+ const configured = yield* ws.getConfiguredMcpServers();
112
+ const entries = Object.entries(configured);
113
+ const plans = yield* Effect.forEach(entries, ([name, entry]) => resolveMcpServerIntent(name, entry.source).pipe(Effect.flatMap((intent) => actions.buildPlan(intent))), { concurrency: "unbounded" });
114
+ return toCollectedWorkspaceInstallPlans({ plans });
115
+ });
116
+ const collectPackPlans = () => Effect.gen(function* () {
117
+ const ws = yield* Workspace;
118
+ const actions = yield* InstallPackCommandWorkflowActions;
119
+ const configured = yield* ws.getConfiguredPacks();
120
+ const entries = Object.entries(configured);
121
+ const plans = yield* Effect.forEach(entries, ([name, entry]) => resolvePackRef(name, entry.source).pipe(Effect.flatMap((intent) => actions.buildPlan(intent))), { concurrency: "unbounded" });
122
+ return toCollectedWorkspaceInstallPlans({
123
+ plans,
124
+ originForStep: (index) => (index === 0 ? "direct" : "dependency"),
125
+ });
126
+ });
127
+ const workspaceInstallCollectors = [
128
+ { type: "skill", collect: collectSkillPlans },
129
+ { type: "command", collect: collectCommandPlans },
130
+ { type: "subagent", collect: collectSubagentPlans },
131
+ { type: "mcp-server", collect: collectMcpServerPlans },
132
+ { type: "pack", collect: collectPackPlans },
133
+ ];
134
+ const makePlan = (name, description, steps, sections) => ({
135
+ _tag: "Plan",
136
+ name,
137
+ description,
138
+ jobs: [{ concurrency: 1, steps }],
139
+ ...(sections === undefined ? {} : { sections }),
140
+ });
141
+ export const buildWorkspaceInstallPlan = (args) => Effect.gen(function* () {
142
+ const selectedCollectors = workspaceInstallCollectors.filter(({ type }) => matchesRequestedType(args.type, type));
143
+ const collections = yield* Effect.forEach(selectedCollectors, ({ collect }) => collect(), {
144
+ concurrency: "unbounded",
145
+ });
146
+ const fragments = mergeFragments(collections);
147
+ if (fragments.length === 0) {
148
+ return {
149
+ _tag: "NoConfiguredExtensions",
150
+ message: noConfiguredMessage(args.type),
151
+ };
152
+ }
153
+ const plans = collections.flatMap((collection) => collection.plans);
154
+ const sections = mergePlanSections(plans);
155
+ return {
156
+ _tag: "WorkspaceInstallPlan",
157
+ plan: makePlan(args.planName, args.planDescription, fragments.map((fragment) => fragment.step), sections),
158
+ };
159
+ });
160
+ //# sourceMappingURL=workspace-install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-install.js","sourceRoot":"","sources":["../../../../src/root/install/workspace-install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAIL,SAAS,EACT,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,i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AAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,EAAE;QACxF,WAAW,EAAE,WAAW;KACzB,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;IAE9C,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO;YACL,IAAI,EAAE,wBAAwB;YAC9B,OAAO,EAAE,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC;SACH,CAAC;IACzC,CAAC;IAED,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAE1C,OAAO;QACL,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,QAAQ,CACZ,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,eAAe,EACpB,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC1C,QAAQ,CACT;KACmC,CAAC;AACzC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "effect/unstable/cli";
2
+ export declare const mcpServersCommand: Command.Command<"mcp-servers", {}, {}, 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=_mcp-servers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_mcp-servers.d.ts","sourceRoot":"","sources":["../../../../src/root/mcp-servers/_mcp-servers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,eAAO,MAAM,iBAAiB,0RAa7B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Command } from "effect/unstable/cli";
2
+ import { installCommand } from "./install/command.js";
3
+ import { uninstallCommand } from "./uninstall/command.js";
4
+ export const mcpServersCommand = Command.make("mcp-servers").pipe(Command.withDescription("Install and manage MCP servers"), Command.withExamples([
5
+ {
6
+ command: "axm mcp-servers install @acme/mcp-servers/my-server",
7
+ description: "Add an MCP server from the registry",
8
+ },
9
+ {
10
+ command: "axm mcp-servers uninstall my-server",
11
+ description: "Remove an MCP server",
12
+ },
13
+ ]), Command.withSubcommands([installCommand, uninstallCommand]));
14
+ //# sourceMappingURL=_mcp-servers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_mcp-servers.js","sourceRoot":"","sources":["../../../../src/root/mcp-servers/_mcp-servers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAC/D,OAAO,CAAC,eAAe,CAAC,gCAAgC,CAAC,EACzD,OAAO,CAAC,YAAY,CAAC;IACnB;QACE,OAAO,EAAE,qDAAqD;QAC9D,WAAW,EAAE,qCAAqC;KACnD;IACD;QACE,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EAAE,sBAAsB;KACpC;CACF,CAAC,EACF,OAAO,CAAC,eAAe,CAAC,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC,CAC5D,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * MCP server install workflow actions service.
3
+ *
4
+ * Implements InstallExtensionCommandWorkflowActions for MCP servers.
5
+ * MCP servers are registry-only, similar to commands.
6
+ * The live layer captures all required services at construction time
7
+ * so action methods satisfy the `R = never` contract.
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 ServiceMap from "effect/ServiceMap";
14
+ import * as Layer from "effect/Layer";
15
+ import * as Option from "effect/Option";
16
+ import type { ExtensionName, Handle } from "@agentxm/client-core/unstable/extensions";
17
+ import type { RegistrySource } from "@agentxm/client-core/unstable/sources";
18
+ import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
19
+ import { Workspace } from "@agentxm/client-core/unstable/workspace";
20
+ import { McpServerManager, type McpServerExtensionRef } from "@agentxm/client-core/unstable/mcp-servers";
21
+ import type { InstallExtensionCommandWorkflowActions } from "@agentxm/client-core/unstable/workflows";
22
+ import type { InstallMcpServerCommandIntent } from "./intent.js";
23
+ export interface InstallMcpServerHandlerArgs {
24
+ readonly source: string;
25
+ }
26
+ export interface ParsedMcpServerInstallArgs {
27
+ readonly owner: Handle;
28
+ readonly serverName: ExtensionName;
29
+ readonly versionConstraint: Option.Option<string>;
30
+ readonly resolvedInput: string;
31
+ readonly force: boolean;
32
+ }
33
+ export interface McpServerInstallSourceRequest {
34
+ readonly source: RegistrySource;
35
+ readonly owner: Handle;
36
+ readonly serverName: ExtensionName;
37
+ readonly versionConstraint: Option.Option<string>;
38
+ }
39
+ declare const InstallMcpServerCommandWorkflowActions_base: ServiceMap.ServiceClass<InstallMcpServerCommandWorkflowActions, "axm.sh/InstallMcpServerCommandWorkflowActions", InstallExtensionCommandWorkflowActions<InstallMcpServerHandlerArgs, ParsedMcpServerInstallArgs, McpServerInstallSourceRequest, McpServerExtensionRef, InstallMcpServerCommandIntent>>;
40
+ export declare class InstallMcpServerCommandWorkflowActions extends InstallMcpServerCommandWorkflowActions_base {
41
+ }
42
+ /**
43
+ * Constructs the actions by resolving all services at layer-build time.
44
+ * Each action method closes over the captured services so `R = never`.
45
+ */
46
+ export declare const InstallMcpServerCommandWorkflowActionsLive: Layer.Layer<InstallMcpServerCommandWorkflowActions, never, FileSystem.FileSystem | Path.Path | Workspace | SourceHostProviders | McpServerManager>;
47
+ export {};
48
+ //# sourceMappingURL=command-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-actions.d.ts","sourceRoot":"","sources":["../../../../../src/root/mcp-servers/install/command-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAEL,mBAAmB,EACpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC3B,MAAM,2CAA2C,CAAC;AAGnD,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,yCAAyC,CAAC;AACtG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAOjE,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAMD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,KAAK,EA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