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,227 @@
1
+ /**
2
+ * Default no-op stubs for taxonomy getter methods added to WorkspaceContextService.
3
+ * Spread into test mocks to satisfy the interface without implementing every method.
4
+ *
5
+ * @internal Test-only. Not exported from the barrel.
6
+ */
7
+ import * as Effect from "effect/Effect";
8
+ import * as Option from "effect/Option";
9
+ import * as Schema from "effect/Schema";
10
+ import YAML from "yaml";
11
+ import { ExtensionDependencyConstraintMapSchema, decodeExtensionNameSync, normalizeHandle, } from "@agentxm/client-core/unstable/extensions";
12
+ import { makeRegistryExtensionPackLockEntry as buildRegistryExtensionPackLockEntry, ResolvedExtensionMapSchema, } from "@agentxm/client-core/unstable/lockfile";
13
+ import { decodeExactSemverVersionSync, decodeVersionConstraintSync, } from "@agentxm/client-core/unstable/version-constraints";
14
+ const empty = () => Effect.succeed({});
15
+ const emptyArr = () => Effect.succeed([]);
16
+ const fs = (() => {
17
+ const module = process.getBuiltinModule("node:fs");
18
+ if (!module) {
19
+ throw new Error("node:fs builtin is unavailable");
20
+ }
21
+ return module;
22
+ })();
23
+ const path = (() => {
24
+ const module = process.getBuiltinModule("node:path");
25
+ if (!module) {
26
+ throw new Error("node:path builtin is unavailable");
27
+ }
28
+ return module;
29
+ })();
30
+ /**
31
+ * No-op stubs for all taxonomy getters. Spread into mock objects:
32
+ * ```ts
33
+ * const ws: WorkspaceContextService = {
34
+ * ...taxonomyStubs,
35
+ * // your overrides
36
+ * };
37
+ * ```
38
+ */
39
+ export const taxonomyStubs = {
40
+ getLockfileState: () => Effect.succeed("ok"),
41
+ // Skill taxonomy
42
+ getConfiguredSkills: (empty),
43
+ getImplicitSkills: (empty),
44
+ getUnmanagedSkills: (empty),
45
+ getInstalledSkills: (empty),
46
+ getClassifiedSkills: (empty),
47
+ getConfiguredExternalSkills: (empty),
48
+ getUnmanagedExternalSkills: (empty),
49
+ getIgnoredSkillPatterns: emptyArr,
50
+ // Command taxonomy
51
+ getConfiguredCommands: (empty),
52
+ getImplicitCommands: (empty),
53
+ getUnmanagedCommands: (empty),
54
+ getInstalledCommands: (empty),
55
+ getClassifiedCommands: (empty),
56
+ getConfiguredExternalCommands: (empty),
57
+ getUnmanagedExternalCommands: (empty),
58
+ getIgnoredCommandPatterns: emptyArr,
59
+ // MCP Server taxonomy
60
+ getConfiguredMcpServers: (empty),
61
+ getImplicitMcpServers: (empty),
62
+ getUnmanagedMcpServers: (empty),
63
+ getInstalledMcpServers: (empty),
64
+ getClassifiedMcpServers: (empty),
65
+ getConfiguredExternalMcpServers: (empty),
66
+ getUnmanagedExternalMcpServers: (empty),
67
+ getIgnoredMcpServerPatterns: emptyArr,
68
+ // Subagent taxonomy
69
+ getConfiguredSubagents: (empty),
70
+ getImplicitSubagents: (empty),
71
+ getInstalledSubagents: (empty),
72
+ getClassifiedSubagents: (empty),
73
+ // Pack taxonomy
74
+ getConfiguredPacks: (empty),
75
+ getImplicitPacks: (empty),
76
+ getUnmanagedPacks: (empty),
77
+ getInstalledPacks: (empty),
78
+ getClassifiedPacks: (empty),
79
+ getConfiguredExternalPacks: (empty),
80
+ getUnmanagedExternalPacks: (empty),
81
+ getIgnoredPackPatterns: emptyArr,
82
+ };
83
+ /**
84
+ * Base workspace mock with no-op defaults for all methods.
85
+ * Tests should only override the methods they exercise.
86
+ *
87
+ * @example
88
+ * ```ts
89
+ * const ws = makeBaseWorkspaceMock("/tmp/axm", {
90
+ * setSkill: vi.fn(() => Effect.void),
91
+ * });
92
+ * ```
93
+ */
94
+ export const makeBaseWorkspaceMock = (axmDir = "/tmp/axm", overrides) => {
95
+ const baseDir = axmDir.replace(/\/\.axm$/, "") || "/tmp";
96
+ const base = {
97
+ ...taxonomyStubs,
98
+ scope: "project",
99
+ path: axmDir,
100
+ baseDir,
101
+ getConfiguredSources: () => Effect.succeed([]),
102
+ getConfiguredSourceByName: () => Effect.succeed(Option.none()),
103
+ getRegistrySourceHosts: () => Effect.succeed([]),
104
+ getConfiguredProfile: () => Effect.succeed(normalizeHandle("@community")),
105
+ getDefaultProfile: () => Effect.succeed(Option.none()),
106
+ addConfiguredSource: () => Effect.void,
107
+ getConfiguredSkills: () => Effect.succeed({}),
108
+ getInstalledSkills: () => Effect.succeed({}),
109
+ getConfiguredAgents: () => Effect.succeed(["claude-code"]),
110
+ getLockedSkills: () => Effect.succeed({}),
111
+ getLockedSkill: () => Effect.succeed(Option.none()),
112
+ getSkillDir: () => Effect.succeed({
113
+ canonicalPath: `${axmDir}/extensions/external/skills/test`,
114
+ skillSrcPath: `${axmDir}/extensions/external/skills/test`,
115
+ }),
116
+ setSkill: () => Effect.void,
117
+ setSkillLock: () => Effect.void,
118
+ removeSkill: () => Effect.void,
119
+ removeSkillFromSettings: () => Effect.void,
120
+ updateSkillEntry: () => Effect.void,
121
+ setSkillEntry: () => Effect.void,
122
+ renameSkill: () => Effect.void,
123
+ updateLockEntryAgents: () => Effect.void,
124
+ addConfiguredAgent: () => Effect.void,
125
+ getLockedExtensionPacks: () => Effect.succeed({}),
126
+ getLockedExtensionPack: () => Effect.succeed(Option.none()),
127
+ setExtensionPack: () => Effect.void,
128
+ removeExtensionPack: () => Effect.void,
129
+ getExtensionPackDir: () => Effect.succeed({ canonicalPath: `${axmDir}/extensions/@test/packs/test` }),
130
+ getLockedCommands: () => Effect.succeed({}),
131
+ getLockedCommand: () => Effect.succeed(Option.none()),
132
+ setCommand: () => Effect.void,
133
+ setCommandLock: () => Effect.void,
134
+ removeCommand: () => Effect.void,
135
+ getLockedSubagents: () => Effect.succeed({}),
136
+ getLockedSubagent: () => Effect.succeed(Option.none()),
137
+ setSubagent: () => Effect.void,
138
+ setSubagentLock: () => Effect.void,
139
+ removeSubagent: () => Effect.void,
140
+ updateSubagentEntry: () => Effect.void,
141
+ setSubagentEntry: () => Effect.void,
142
+ removeSubagentSettings: () => Effect.void,
143
+ removeSubagentLock: () => Effect.void,
144
+ getLockedMcpServers: () => Effect.succeed({}),
145
+ getLockedMcpServer: () => Effect.succeed(Option.none()),
146
+ setMcpServer: () => Effect.void,
147
+ setMcpServerLock: () => Effect.void,
148
+ removeMcpServer: () => Effect.void,
149
+ removeSkillLock: () => Effect.void,
150
+ removeCommandSettings: () => Effect.void,
151
+ removeCommandLock: () => Effect.void,
152
+ updateCommandEntry: () => Effect.void,
153
+ setCommandEntry: () => Effect.void,
154
+ removeMcpServerSettings: () => Effect.void,
155
+ removeMcpServerLock: () => Effect.void,
156
+ removeExtensionPackSettings: () => Effect.void,
157
+ removeExtensionPackLock: () => Effect.void,
158
+ isExtensionRequiredByInstalledExtensionPack: () => Effect.succeed(false),
159
+ markDependencyRetainedInLockfile: () => Effect.void,
160
+ };
161
+ return { ...base, ...overrides };
162
+ };
163
+ const TEST_DATE = new Date("2025-01-01T00:00:00.000Z");
164
+ const decodeResolvedExtensionMapSync = Schema.decodeUnknownSync(ResolvedExtensionMapSchema);
165
+ const decodeExtensionDependencyConstraintMapSync = Schema.decodeUnknownSync(ExtensionDependencyConstraintMapSchema);
166
+ const hasEntries = (value) => value !== undefined && Object.keys(value).length > 0;
167
+ export const exactVersion = (value) => decodeExactSemverVersionSync(value);
168
+ export const extensionName = (value) => decodeExtensionNameSync(value);
169
+ export const handle = (value) => normalizeHandle(value);
170
+ export const versionConstraint = (value) => decodeVersionConstraintSync(value);
171
+ export const resolvedExtensionMap = (entries) => decodeResolvedExtensionMapSync(entries);
172
+ export const dependencyConstraintMap = (entries) => decodeExtensionDependencyConstraintMapSync(entries);
173
+ export const writeWorkspaceFiles = (axmDir, opts = {}) => {
174
+ const settings = {
175
+ agents: [...(opts.agents ?? ["claude-code"])],
176
+ ...(opts.profile && { profile: opts.profile }),
177
+ ...(hasEntries(opts.skills) && { skills: opts.skills }),
178
+ ...(hasEntries(opts.commands) && { commands: opts.commands }),
179
+ ...(hasEntries(opts.subagents) && { subagents: opts.subagents }),
180
+ ...(hasEntries(opts["mcp-servers"]) && { "mcp-servers": opts["mcp-servers"] }),
181
+ ...(hasEntries(opts.packs) && { packs: opts.packs }),
182
+ ...(opts.sources && { sources: opts.sources }),
183
+ };
184
+ const lockfile = {
185
+ lockfileVersion: 1,
186
+ skills: opts.lockfileSkills ?? {},
187
+ ...(hasEntries(opts.lockfileCommands) && { commands: opts.lockfileCommands }),
188
+ ...(hasEntries(opts.lockfileSubagents) && { subagents: opts.lockfileSubagents }),
189
+ ...(hasEntries(opts.lockfileMcpServers) && { "mcp-servers": opts.lockfileMcpServers }),
190
+ ...(hasEntries(opts.lockfilePacks) && { packs: opts.lockfilePacks }),
191
+ };
192
+ fs.mkdirSync(axmDir, { recursive: true });
193
+ fs.writeFileSync(path.join(axmDir, "settings.json"), JSON.stringify(settings));
194
+ fs.writeFileSync(path.join(axmDir, "axm-lock.yaml"), YAML.stringify(lockfile));
195
+ };
196
+ export const makeLocalSkillLockEntry = (opts) => ({
197
+ type: "local",
198
+ path: opts?.path ?? "/installed",
199
+ agents: [...(opts?.agents ?? ["claude-code"])],
200
+ installedAt: opts?.installedAt ?? TEST_DATE,
201
+ updatedAt: opts?.updatedAt ?? TEST_DATE,
202
+ });
203
+ export const makeRegistrySkillLockEntry = (opts) => ({
204
+ type: "registry",
205
+ owner: normalizeHandle(opts.owner),
206
+ name: extensionName(opts.name),
207
+ resolvedVersion: opts.resolvedVersion ?? decodeExactSemverVersionSync("1.0.0"),
208
+ integrity: opts.integrity ?? "sha512-AAAA==",
209
+ sourceName: opts.sourceName ?? "default",
210
+ agents: [...(opts.agents ?? ["claude-code"])],
211
+ installedAt: opts.installedAt ?? TEST_DATE,
212
+ updatedAt: opts.updatedAt ?? TEST_DATE,
213
+ });
214
+ export const makeRegistryExtensionPackLockEntry = (opts) => buildRegistryExtensionPackLockEntry({
215
+ owner: normalizeHandle(opts.owner),
216
+ name: extensionName(opts.name),
217
+ resolvedVersion: opts.resolvedVersion ?? decodeExactSemverVersionSync("1.0.0"),
218
+ integrity: opts.integrity ?? "sha512-AAAA==",
219
+ sourceName: opts.sourceName ?? "default",
220
+ installedAt: opts.installedAt ?? TEST_DATE,
221
+ updatedAt: opts.updatedAt ?? TEST_DATE,
222
+ resolvedSkills: opts.resolvedSkills ?? {},
223
+ resolvedCommands: opts.resolvedCommands ?? {},
224
+ resolvedMcpServers: opts.resolvedMcpServers ?? {},
225
+ resolvedSubagents: opts.resolvedSubagents ?? {},
226
+ });
227
+ //# sourceMappingURL=test-stubs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-stubs.js","sourceRoot":"","sources":["../../src/test-stubs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CA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AAC,SAAS,IAAI,SAAS;IACtC,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,EAAE;IACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,EAAE;IAC7C,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,IAAI,EAAE;IACjD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,IAAI,EAAE;CAChD,CAAC,CAAC"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Update check integration for CLI startup.
3
+ *
4
+ * Runs early in the CLI lifecycle to:
5
+ * 1. Read cached version info and queue a notification if an update is available
6
+ * 2. Spawn a detached fiber to refresh the cache if stale or missing
7
+ * 3. Print the notification before the command output
8
+ *
9
+ * The entire check is skipped under conditions defined by `UpdateCheck.shouldSkip()`.
10
+ *
11
+ * @experimental This API is unstable and may change without notice.
12
+ */
13
+ import * as Effect from "effect/Effect";
14
+ import * as HttpClient from "effect/unstable/http/HttpClient";
15
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
16
+ import { InstallMethod } from "@agentxm/client-core/unstable/install-method";
17
+ import { UpdateCheck } from "@agentxm/client-core/unstable/update-check";
18
+ /**
19
+ * Detect whether the command being run is `axm upgrade` from raw argv.
20
+ */
21
+ export declare const isUpgradeCommand: (args: ReadonlyArray<string>) => boolean;
22
+ /**
23
+ * Detect non-interactive mode from raw argv and environment.
24
+ */
25
+ export declare const resolveNonInteractiveFromArgv: (args: ReadonlyArray<string>) => boolean;
26
+ export interface UpdateCheckContextInputs {
27
+ readonly args: ReadonlyArray<string>;
28
+ readonly isNonInteractive: boolean;
29
+ readonly isJsonOutput: boolean;
30
+ /** Override stderr TTY detection for testability. Defaults to `process.stderr.isTTY`. */
31
+ readonly isStderrTTY?: boolean | undefined;
32
+ /** Override AXM_NO_UPDATE_CHECK detection for testability. */
33
+ readonly noUpdateCheckEnv?: boolean | undefined;
34
+ /** Override agent-session detection for testability. Defaults to `isAgent(process.env)`. */
35
+ readonly isAgentSession?: boolean | undefined;
36
+ }
37
+ export declare const buildSkipContext: (inputs: UpdateCheckContextInputs) => {
38
+ isJsonOutput: boolean;
39
+ noUpdateCheckEnv: boolean;
40
+ isUpgradeCommand: boolean;
41
+ isNonInteractive: boolean;
42
+ isStderrTTY: boolean;
43
+ isAgentSession: boolean;
44
+ };
45
+ /**
46
+ * Fetch the latest version from GitHub and write it to cache.
47
+ * Silently ignores all errors (network, parse, write).
48
+ */
49
+ export declare const refreshCache: (localVersion: string) => Effect.Effect<void, never, HttpClient.HttpClient | UpdateCheck>;
50
+ /**
51
+ * Print the update notification to stderr.
52
+ */
53
+ export type NotificationPrinter = (message: string) => Effect.Effect<void>;
54
+ /**
55
+ * Wrap a command program with the update check lifecycle.
56
+ *
57
+ * 1. Before: Read cache, queue notification if update available, spawn refresh fiber if stale
58
+ * 2. Print notification if queued
59
+ * 3. Run the command program
60
+ *
61
+ * The notification printer is injectable for testability.
62
+ */
63
+ export declare const withUpdateCheck: <A, E, R>(program: Effect.Effect<A, E, R>, options: {
64
+ readonly localVersion: string;
65
+ readonly inputs: UpdateCheckContextInputs;
66
+ readonly printNotification?: NotificationPrinter | undefined;
67
+ }) => Effect.Effect<A, E, CliRenderer | HttpClient.HttpClient | InstallMethod | UpdateCheck | R>;
68
+ //# sourceMappingURL=update-check-startup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-check-startup.d.ts","sourceRoot":"","sources":["../../src/update-check-startup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAgB,MAAM,4CAA4C,CAAC;AAWvF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,aAAa,CAA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:
5
+ * 1. Read cached version info and queue a notification if an update is available
6
+ * 2. Spawn a detached fiber to refresh the cache if stale or missing
7
+ * 3. Print the notification before the command output
8
+ *
9
+ * The entire check is skipped under conditions defined by `UpdateCheck.shouldSkip()`.
10
+ *
11
+ * @experimental This API is unstable and may change without notice.
12
+ */
13
+ import * as Effect from "effect/Effect";
14
+ import * as Option from "effect/Option";
15
+ import * as HttpClient from "effect/unstable/http/HttpClient";
16
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
17
+ import { InstallMethod } from "@agentxm/client-core/unstable/install-method";
18
+ import { UpdateCheck, isCacheStale } from "@agentxm/client-core/unstable/update-check";
19
+ import { resolveLatestVersion, DEFAULT_GITHUB_REPO, } from "@agentxm/client-core/unstable/version-resolution";
20
+ import { isAgent } from "@agentxm/client-utils/unstable/interaction";
21
+ // -----------------------------------------------------------------------------
22
+ // Skip detection from argv
23
+ // -----------------------------------------------------------------------------
24
+ /**
25
+ * Detect whether the command being run is `axm upgrade` from raw argv.
26
+ */
27
+ export const isUpgradeCommand = (args) => args[0] === "upgrade";
28
+ /**
29
+ * Detect non-interactive mode from raw argv and environment.
30
+ */
31
+ export const resolveNonInteractiveFromArgv = (args) => args.includes("--non-interactive") ||
32
+ // eslint-disable-next-line no-restricted-properties -- Centralized env var access for CI detection
33
+ process.env["CI"] === "true" ||
34
+ process.stdin.isTTY !== true;
35
+ export const buildSkipContext = (inputs) => ({
36
+ isJsonOutput: inputs.isJsonOutput,
37
+ noUpdateCheckEnv: inputs.noUpdateCheckEnv ??
38
+ // eslint-disable-next-line no-restricted-properties -- Centralized env var access for update check
39
+ process.env["AXM_NO_UPDATE_CHECK"] === "1",
40
+ isUpgradeCommand: isUpgradeCommand(inputs.args),
41
+ isNonInteractive: inputs.isNonInteractive,
42
+ isStderrTTY: inputs.isStderrTTY ?? process.stderr.isTTY === true,
43
+ // eslint-disable-next-line no-restricted-properties -- Centralized env var access for agent-session detection
44
+ isAgentSession: inputs.isAgentSession ?? isAgent(process.env),
45
+ });
46
+ // -----------------------------------------------------------------------------
47
+ // Background cache refresh fiber
48
+ // -----------------------------------------------------------------------------
49
+ const REFRESH_TIMEOUT = "3 seconds";
50
+ /**
51
+ * Fetch the latest version from GitHub and write it to cache.
52
+ * Silently ignores all errors (network, parse, write).
53
+ */
54
+ export const refreshCache = (localVersion) => Effect.gen(function* () {
55
+ const httpClient = yield* HttpClient.HttpClient;
56
+ const updateCheck = yield* UpdateCheck;
57
+ // eslint-disable-next-line no-restricted-properties -- Centralized env var access for GitHub repo override
58
+ const repo = process.env["AXM_INSTALL_GITHUB_REPO"] ?? DEFAULT_GITHUB_REPO;
59
+ const resolution = yield* resolveLatestVersion(httpClient, localVersion, repo);
60
+ yield* updateCheck.writeCache(resolution.remoteVersion);
61
+ }).pipe(Effect.timeout(REFRESH_TIMEOUT), Effect.catch(() => Effect.void), Effect.catchCause(() => Effect.void));
62
+ const printAgentNotification = (message) => Effect.sync(() => {
63
+ process.stderr.write(`${message}\n`);
64
+ });
65
+ const UPDATE_AVAILABLE_PREFIX = "Update available: ";
66
+ const UPDATE_AVAILABLE_TITLE = "Update Available";
67
+ const toHumanUpdateNote = (message) => {
68
+ const [firstLine, ...rest] = message.split("\n");
69
+ const headline = firstLine?.startsWith(UPDATE_AVAILABLE_PREFIX)
70
+ ? firstLine.slice(UPDATE_AVAILABLE_PREFIX.length)
71
+ : (firstLine ?? message);
72
+ const body = rest.length > 0 ? [headline, ...rest].join("\n") : headline;
73
+ return {
74
+ message: body,
75
+ title: UPDATE_AVAILABLE_TITLE,
76
+ };
77
+ };
78
+ // -----------------------------------------------------------------------------
79
+ // Core integration effect
80
+ // -----------------------------------------------------------------------------
81
+ /**
82
+ * Wrap a command program with the update check lifecycle.
83
+ *
84
+ * 1. Before: Read cache, queue notification if update available, spawn refresh fiber if stale
85
+ * 2. Print notification if queued
86
+ * 3. Run the command program
87
+ *
88
+ * The notification printer is injectable for testability.
89
+ */
90
+ export const withUpdateCheck = (program, options) => Effect.gen(function* () {
91
+ const updateCheck = yield* UpdateCheck;
92
+ const skipContext = buildSkipContext(options.inputs);
93
+ const renderer = yield* CliRenderer;
94
+ const printer = options.printNotification ??
95
+ (skipContext.isAgentSession
96
+ ? printAgentNotification
97
+ : (message) => {
98
+ const note = toHumanUpdateNote(message);
99
+ return renderer.note(note.message, note.title);
100
+ });
101
+ if (updateCheck.shouldSkip(skipContext)) {
102
+ return yield* program;
103
+ }
104
+ // Phase 1: Read cache and resolve notification
105
+ const cache = yield* updateCheck.readCache();
106
+ const notification = yield* Effect.gen(function* () {
107
+ if (Option.isNone(cache))
108
+ return Option.none();
109
+ const updateAvailable = yield* updateCheck.isUpdateAvailable(options.localVersion);
110
+ if (Option.isNone(updateAvailable))
111
+ return Option.none();
112
+ const installMethod = yield* InstallMethod;
113
+ const method = yield* installMethod.detect();
114
+ return Option.some(updateCheck.notificationMessage(method, updateAvailable.value.current, updateAvailable.value.latest, skipContext.isAgentSession ? "agent" : "human"));
115
+ });
116
+ // Phase 2: Spawn detached refresh fiber if cache is missing or stale
117
+ const needsRefresh = Option.isNone(cache) || isCacheStale(cache.value.checkedAt, new Date());
118
+ if (needsRefresh) {
119
+ yield* Effect.forkDetach(refreshCache(options.localVersion));
120
+ }
121
+ // Phase 3: Print notification before command output
122
+ if (Option.isSome(notification)) {
123
+ yield* printer(notification.value);
124
+ }
125
+ return yield* program;
126
+ });
127
+ //# sourceMappingURL=update-check-startup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-check-startup.js","sourceRoot":"","sources":["../../src/update-check-startup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,8CA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AAC,CAAC,OAAO,CAAC;AACxB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const loadVersion: () => string;
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,MAsB9B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { createRequire } from "node:module";
2
+ export const loadVersion = () => {
3
+ if (typeof __AXM_VERSION__ === "string" && __AXM_VERSION__.length > 0) {
4
+ return __AXM_VERSION__;
5
+ }
6
+ const require = createRequire(import.meta.url);
7
+ for (const relPath of ["../package.json", "../../package.json"]) {
8
+ try {
9
+ const loaded = require(relPath);
10
+ if (typeof loaded === "object" &&
11
+ loaded !== null &&
12
+ "version" in loaded &&
13
+ typeof loaded.version === "string") {
14
+ return loaded.version;
15
+ }
16
+ }
17
+ catch {
18
+ continue;
19
+ }
20
+ }
21
+ return "unknown";
22
+ };
23
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAW,EAAE;IACtC,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtE,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,KAAK,MAAM,OAAO,IAAI,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,EAAE,CAAC;QAChE,IAAI,CAAC;YACH,MAAM,MAAM,GAAY,OAAO,CAAC,OAAO,CAAC,CAAC;YACzC,IACE,OAAO,MAAM,KAAK,QAAQ;gBAC1B,MAAM,KAAK,IAAI;gBACf,SAAS,IAAI,MAAM;gBACnB,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,EAClC,CAAC;gBACD,OAAO,MAAM,CAAC,OAAO,CAAC;YACxB,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,SAAS;QACX,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "axm.sh",
3
+ "version": "0.1.6",
4
+ "description": "Open agent extension manager for skills and more",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/agentxm/axm.git",
10
+ "directory": "packages/cli"
11
+ },
12
+ "keywords": [
13
+ "agent",
14
+ "extension",
15
+ "skills",
16
+ "cli"
17
+ ],
18
+ "exports": {
19
+ "./agents/index.js": {
20
+ "types": "./src/agents/index.ts",
21
+ "default": "./src/agents/index.js"
22
+ },
23
+ "./agents/types.js": {
24
+ "types": "./src/agents/types.ts",
25
+ "default": "./src/agents/types.js"
26
+ },
27
+ "./extensions/common.js": {
28
+ "types": "./src/extensions/common.ts",
29
+ "default": "./src/extensions/common.js"
30
+ },
31
+ "./extensions/sources.js": {
32
+ "types": "./src/extensions/sources.ts",
33
+ "default": "./src/extensions/sources.js"
34
+ },
35
+ "./schemas/lockfile.js": {
36
+ "types": "./src/lockfile/schema.ts",
37
+ "default": "./src/lockfile/schema.js"
38
+ },
39
+ "./schemas/settings.js": {
40
+ "types": "./src/settings/schema.ts",
41
+ "default": "./src/settings/schema.js"
42
+ },
43
+ "./extensions/skills": {
44
+ "types": "./src/extensions/skills/index.ts",
45
+ "default": "./src/extensions/skills/index.js"
46
+ },
47
+ "./extensions/skills/lockfile.js": {
48
+ "types": "./src/lockfile/lockfile.ts",
49
+ "default": "./src/lockfile/lockfile.js"
50
+ },
51
+ "./extensions/skills/settings.js": {
52
+ "types": "./src/settings/settings.ts",
53
+ "default": "./src/settings/settings.js"
54
+ },
55
+ "./extensions/skills/state/pure-functions.js": {
56
+ "types": "./src/extensions/skills/state/pure-functions.ts",
57
+ "default": "./src/extensions/skills/state/pure-functions.js"
58
+ },
59
+ "./extensions/skills/state/types.js": {
60
+ "types": "./src/extensions/skills/state/types.ts",
61
+ "default": "./src/extensions/skills/state/types.js"
62
+ }
63
+ },
64
+ "bin": {
65
+ "axm": "./dist/src/main.js"
66
+ },
67
+ "files": [
68
+ "dist/src/"
69
+ ],
70
+ "publishConfig": {
71
+ "access": "public"
72
+ },
73
+ "nx": {
74
+ "includedScripts": []
75
+ },
76
+ "engines": {
77
+ "node": ">=22 <23"
78
+ },
79
+ "dependencies": {
80
+ "@effect/platform-node": "4.0.0-beta.43",
81
+ "effect": "4.0.0-beta.43",
82
+ "gray-matter": "^4.0.3",
83
+ "semver": "^7.7.4",
84
+ "simple-git": "^3.33.0",
85
+ "yaml": "^2.8.3",
86
+ "@agentxm/client-core": "0.1.6",
87
+ "@agentxm/client-utils": "0.1.6"
88
+ },
89
+ "devDependencies": {
90
+ "@effect/vitest": "4.0.0-beta.43",
91
+ "@types/bun": "^1.3.11",
92
+ "@types/semver": "^7.5.8",
93
+ "typescript": "^5.9.3",
94
+ "vitest": "^4.0.0"
95
+ }
96
+ }