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
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 AgentXM, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # axm.sh
2
+
3
+ CLI package for `axm`.
4
+
5
+ ## Compile Standalone Binaries
6
+
7
+ Prerequisites:
8
+
9
+ - Bun installed locally
10
+ - `pnpm install`
11
+
12
+ Run:
13
+
14
+ ```sh
15
+ pnpm nx run cli:compile
16
+ ```
17
+
18
+ The target depends on `cli:build`, compiles from `dist/src/main.js`, and writes binaries to `packages/cli/dist/bin/`:
19
+
20
+ - `axm-darwin-arm64`
21
+ - `axm-darwin-x64`
22
+ - `axm-linux-arm64`
23
+ - `axm-linux-x64`
24
+ - `axm-windows-x64.exe`
25
+
26
+ The compile target also injects the package version at build time so compiled binaries report the correct `axm --version`.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Root CLI application.
3
+ */
4
+ import { Command } from "effect/unstable/cli";
5
+ export declare const rootCommand: Command.Command<"axm", {}, {}, never, import("packages/core/src/unstable/auth/device-login.ts").DeviceLoginInteraction>;
6
+ export declare const run: (args?: ReadonlyArray<string>) => Promise<void>;
7
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAa,OAAO,EAAc,MAAM,qBAAqB,CAAC;AAsCrE,eAAO,MAAM,WAAW,yHA8CvB,CAAC;AAWF,eAAO,MAAM,GAAG,GAAU,OAAM,aAAa,CAAC,MAAM,CAAyB,KAAG,OAAO,CAAC,IAAI,CA8B3F,CAAC"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Root CLI application.
3
+ */
4
+ import * as Effect from "effect/Effect";
5
+ import * as Layer from "effect/Layer";
6
+ import { CliOutput, Command, GlobalFlag } from "effect/unstable/cli";
7
+ import { InteractiveRenderer, MachineRenderer } from "@agentxm/client-core/unstable/cli-renderer";
8
+ import { removeBuiltInFlag, runCliMain } from "@agentxm/client-core/unstable/cli-runtime";
9
+ import { InstallMethodLive } from "@agentxm/client-core/unstable/install-method";
10
+ import { UpdateCheckLive } from "@agentxm/client-core/unstable/update-check";
11
+ import { LearnMore, makeAxmFormatter } from "./formatter.js";
12
+ import { withUpdateCheck, resolveNonInteractiveFromArgv } from "./update-check-startup.js";
13
+ import { axmGlobalFlags, baseLayer, runtimeBaseLayer } from "./runtime.js";
14
+ import { loadVersion } from "./version.js";
15
+ import { initCommand } from "./root/init.js";
16
+ import { skillsCommand } from "./root/skills/_skills.js";
17
+ import { packsCommand } from "./root/packs/_packs.js";
18
+ import { commandsCommand } from "./root/commands/_commands.js";
19
+ import { mcpServersCommand } from "./root/mcp-servers/_mcp-servers.js";
20
+ import { subagentsCommand } from "./root/subagents/_subagents.js";
21
+ import { authCommand } from "./root/auth/_auth.js";
22
+ import { loginCommand } from "./root/auth/login.js";
23
+ import { logoutCommand } from "./root/auth/logout.js";
24
+ import { whoamiCommand } from "./root/auth/whoami.js";
25
+ import { tokenCommand } from "./root/auth/token.js";
26
+ import { upgradeCommand } from "./root/upgrade/upgrade.js";
27
+ import { doctorCommand } from "./root/doctor/command.js";
28
+ import { syncCommand } from "./root/sync.js";
29
+ import { discoverCommand } from "./root/discover/command.js";
30
+ import { installCommand } from "./root/install/command.js";
31
+ const ROOT_COMMAND = "axm";
32
+ const version = loadVersion();
33
+ const LEARN_MORE_FOOTER = "LEARN MORE\n Use 'axm <command> --help' for more information about a command.";
34
+ removeBuiltInFlag(GlobalFlag.Completions);
35
+ removeBuiltInFlag(GlobalFlag.LogLevel);
36
+ export const rootCommand = Command.make(ROOT_COMMAND).pipe(Command.withDescription("Open extension manager for AI coding agents.\n Manage skills, commands, MCP servers, and extension packs across your AI coding agents from a single CLI."), Command.annotate(LearnMore, LEARN_MORE_FOOTER), Command.withExamples([
37
+ { command: "axm init", description: "Start managing extensions in your project" },
38
+ {
39
+ command: "axm install @acme/skills/code-review",
40
+ description: "Add a code review skill to your agents",
41
+ },
42
+ {
43
+ command: "axm packs install @acme/packs/frontend-tools",
44
+ description: "Install a curated set of extensions at once",
45
+ },
46
+ { command: "axm whoami", description: "Check who you're authenticated as" },
47
+ ]), Command.withSubcommands([
48
+ { group: "GETTING STARTED", commands: [initCommand] },
49
+ {
50
+ group: "EXTENSIONS",
51
+ commands: [
52
+ installCommand,
53
+ skillsCommand,
54
+ packsCommand,
55
+ commandsCommand,
56
+ mcpServersCommand,
57
+ subagentsCommand,
58
+ discoverCommand,
59
+ ],
60
+ },
61
+ {
62
+ group: "AUTH AND CONFIG",
63
+ commands: [
64
+ doctorCommand,
65
+ syncCommand,
66
+ authCommand,
67
+ loginCommand,
68
+ logoutCommand,
69
+ whoamiCommand,
70
+ tokenCommand,
71
+ upgradeCommand,
72
+ ],
73
+ },
74
+ ]), Command.withGlobalFlags(axmGlobalFlags));
75
+ const hasExplicitJsonFlag = (args) => args.includes("--json") || args.includes("-j");
76
+ /** Layer providing UpdateCheck and InstallMethod for the startup update check. */
77
+ const updateCheckServicesLayer = Layer.provide(Layer.mergeAll(UpdateCheckLive, InstallMethodLive), runtimeBaseLayer);
78
+ export const run = async (args = process.argv.slice(2)) => {
79
+ await runCliMain((argv) => {
80
+ const isJson = hasExplicitJsonFlag(argv);
81
+ const commandProgram = Command.runWith(rootCommand, { version })(argv);
82
+ const rendererLayer = isJson ? MachineRenderer() : InteractiveRenderer();
83
+ return withUpdateCheck(commandProgram, {
84
+ localVersion: version,
85
+ inputs: {
86
+ args: argv,
87
+ isNonInteractive: resolveNonInteractiveFromArgv(argv),
88
+ isJsonOutput: isJson,
89
+ },
90
+ }).pipe(
91
+ // Built-in --help / --version output is formatter-driven, so explicit
92
+ // --json has to be reflected here before Effect CLI starts rendering.
93
+ Effect.provide(Layer.mergeAll(baseLayer, updateCheckServicesLayer, rendererLayer, CliOutput.layer(makeAxmFormatter({ json: isJson })))));
94
+ }, { args });
95
+ };
96
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE3F,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wB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CAAC;QAEvE,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC;QAEzE,OAAO,eAAe,CAAC,cAAc,EAAE;YACrC,YAAY,EAAE,OAAO;YACrB,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI;gBACV,gBAAgB,EAAE,6BAA6B,CAAC,IAAI,CAAC;gBACrD,YAAY,EAAE,MAAM;aACrB;SACF,CAAC,CAAC,IAAI;QACL,sEAAsE;QACtE,sEAAsE;QACtE,MAAM,CAAC,OAAO,CACZ,KAAK,CAAC,QAAQ,CACZ,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,SAAS,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CACpD,CACF,CACF,CAAC;IACJ,CAAC,EACD,EAAE,IAAI,EAAE,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Flag } from "effect/unstable/cli";
2
+ export declare const scopeFlag: Flag.Flag<"user" | "project">;
3
+ //# sourceMappingURL=cli-flags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-flags.d.ts","sourceRoot":"","sources":["../../src/cli-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAG3C,eAAO,MAAM,SAAS,+BAGrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Flag } from "effect/unstable/cli";
2
+ import { DEFAULT_WORKSPACE_SCOPE, WORKSPACE_SCOPES } from "@agentxm/client-core/unstable/workspace";
3
+ export const scopeFlag = Flag.choice("scope", WORKSPACE_SCOPES).pipe(Flag.withDescription("Configuration scope: project (default) or user"), Flag.withDefault(DEFAULT_WORKSPACE_SCOPE));
4
+ //# sourceMappingURL=cli-flags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-flags.js","sourceRoot":"","sources":["../../src/cli-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAEpG,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,IAAI,CAClE,IAAI,CAAC,eAAe,CAAC,gDAAgD,CAAC,EACtE,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAC1C,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Custom CLI output formatter that suppresses global flags on subcommand help
3
+ * and appends a "learn more" footer from command annotations.
4
+ */
5
+ import * as ServiceMap from "effect/ServiceMap";
6
+ import { CliOutput } from "effect/unstable/cli";
7
+ /**
8
+ * Annotation key for "learn more" footer text.
9
+ * Attach to commands via `Command.annotate(LearnMore, "...")`.
10
+ */
11
+ export declare const LearnMore: ServiceMap.Reference<string>;
12
+ /**
13
+ * Creates a custom CLI output formatter that wraps the Effect default
14
+ * formatter with two enhancements:
15
+ *
16
+ * 1. Global flag suppression on subcommand help output
17
+ * 2. "Learn more" footer appended from the `LearnMore` command annotation
18
+ */
19
+ export declare const makeAxmFormatter: (options?: {
20
+ readonly json?: boolean | undefined;
21
+ }) => CliOutput.Formatter;
22
+ //# sourceMappingURL=formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAOhD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,MAAM,CAEjD,CAAC;AAoLH;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,KAAG,SAAS,CAAC,SA2Cb,CAAC"}
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Custom CLI output formatter that suppresses global flags on subcommand help
3
+ * and appends a "learn more" footer from command annotations.
4
+ */
5
+ import * as Option from "effect/Option";
6
+ import * as Schema from "effect/Schema";
7
+ import * as ServiceMap from "effect/ServiceMap";
8
+ import { CliOutput } from "effect/unstable/cli";
9
+ import { JsonSchemaVersion, JsonSchemaVersionSchema, } from "@agentxm/client-core/unstable/cli-runtime";
10
+ /**
11
+ * Annotation key for "learn more" footer text.
12
+ * Attach to commands via `Command.annotate(LearnMore, "...")`.
13
+ */
14
+ export const LearnMore = ServiceMap.Reference("axm/learn-more", {
15
+ defaultValue: () => "",
16
+ });
17
+ /**
18
+ * Determines whether a HelpDoc represents a subcommand (as opposed to the
19
+ * root command) by counting the command tokens in the usage string that
20
+ * precede any bracketed placeholder like `[flags]` or `<subcommand>`.
21
+ *
22
+ * Root usage: `"axm <subcommand> [flags]"` => 1 token ("axm")
23
+ * Subcommand: `"axm skills install [flags]"` => 3 tokens
24
+ */
25
+ const isSubcommandDoc = (doc) => {
26
+ const beforeBrackets = doc.usage.replace(/\s*[[<].*$/, "").trim();
27
+ const tokens = beforeBrackets.split(/\s+/).filter((t) => t.length > 0);
28
+ return tokens.length > 1;
29
+ };
30
+ const getVisibleGlobalFlags = (doc) => {
31
+ if (!isSubcommandDoc(doc)) {
32
+ return doc.globalFlags;
33
+ }
34
+ const globalFlags = doc.globalFlags?.filter((flag) => flag.name === "json");
35
+ return globalFlags !== undefined && globalFlags.length > 0 ? globalFlags : undefined;
36
+ };
37
+ const getLearnMore = (doc) => ServiceMap.getReferenceUnsafe(doc.annotations, LearnMore);
38
+ const getAdjustedHelpDoc = (doc) => {
39
+ if (!isSubcommandDoc(doc)) {
40
+ return doc;
41
+ }
42
+ const visibleGlobalFlags = getVisibleGlobalFlags(doc);
43
+ const { globalFlags: _globalFlags, ...rest } = doc;
44
+ return visibleGlobalFlags === undefined ? rest : { ...rest, globalFlags: visibleGlobalFlags };
45
+ };
46
+ const JsonFlagDocSchema = Schema.Struct({
47
+ name: Schema.String,
48
+ aliases: Schema.Array(Schema.String),
49
+ type: Schema.String,
50
+ required: Schema.Boolean,
51
+ description: Schema.optional(Schema.String),
52
+ });
53
+ const JsonArgDocSchema = Schema.Struct({
54
+ name: Schema.String,
55
+ type: Schema.String,
56
+ required: Schema.Boolean,
57
+ variadic: Schema.Boolean,
58
+ description: Schema.optional(Schema.String),
59
+ });
60
+ const JsonSubcommandDocSchema = Schema.Struct({
61
+ name: Schema.String,
62
+ alias: Schema.optional(Schema.String),
63
+ shortDescription: Schema.optional(Schema.String),
64
+ description: Schema.optional(Schema.String),
65
+ });
66
+ const JsonSubcommandGroupDocSchema = Schema.Struct({
67
+ group: Schema.optional(Schema.String),
68
+ commands: Schema.Array(JsonSubcommandDocSchema),
69
+ });
70
+ const JsonExampleDocSchema = Schema.Struct({
71
+ command: Schema.String,
72
+ description: Schema.optional(Schema.String),
73
+ });
74
+ const JsonHelpDocSchema = Schema.Struct({
75
+ _version: JsonSchemaVersionSchema,
76
+ type: Schema.Literal("help"),
77
+ description: Schema.String,
78
+ usage: Schema.String,
79
+ flags: Schema.Array(JsonFlagDocSchema),
80
+ globalFlags: Schema.optional(Schema.Array(JsonFlagDocSchema)),
81
+ args: Schema.optional(Schema.Array(JsonArgDocSchema)),
82
+ subcommands: Schema.optional(Schema.Array(JsonSubcommandGroupDocSchema)),
83
+ examples: Schema.optional(Schema.Array(JsonExampleDocSchema)),
84
+ learnMore: Schema.optional(Schema.String),
85
+ });
86
+ const JsonVersionDocSchema = Schema.Struct({
87
+ _version: JsonSchemaVersionSchema,
88
+ type: Schema.Literal("version"),
89
+ name: Schema.String,
90
+ version: Schema.String,
91
+ });
92
+ const toJsonFlagDoc = (flag) => ({
93
+ name: flag.name,
94
+ aliases: flag.aliases,
95
+ type: flag.type,
96
+ required: flag.required,
97
+ description: Option.getOrUndefined(flag.description),
98
+ });
99
+ const toJsonHelpDoc = (doc) => {
100
+ const adjusted = getAdjustedHelpDoc(doc);
101
+ const learnMore = getLearnMore(doc);
102
+ return {
103
+ _version: JsonSchemaVersion,
104
+ type: "help",
105
+ description: adjusted.description,
106
+ usage: adjusted.usage,
107
+ flags: adjusted.flags.map(toJsonFlagDoc),
108
+ globalFlags: adjusted.globalFlags?.map(toJsonFlagDoc),
109
+ args: adjusted.args?.map((arg) => ({
110
+ name: arg.name,
111
+ type: arg.type,
112
+ required: arg.required,
113
+ variadic: arg.variadic,
114
+ description: Option.getOrUndefined(arg.description),
115
+ })),
116
+ subcommands: adjusted.subcommands?.map((group) => ({
117
+ group: group.group,
118
+ commands: group.commands.map((command) => ({
119
+ name: command.name,
120
+ alias: command.alias,
121
+ shortDescription: command.shortDescription,
122
+ description: command.description,
123
+ })),
124
+ })),
125
+ examples: adjusted.examples?.map((example) => ({
126
+ command: example.command,
127
+ description: example.description,
128
+ })),
129
+ ...(learnMore !== "" && { learnMore }),
130
+ };
131
+ };
132
+ /**
133
+ * Creates a custom CLI output formatter that wraps the Effect default
134
+ * formatter with two enhancements:
135
+ *
136
+ * 1. Global flag suppression on subcommand help output
137
+ * 2. "Learn more" footer appended from the `LearnMore` command annotation
138
+ */
139
+ export const makeAxmFormatter = (options) => {
140
+ const base = CliOutput.defaultFormatter();
141
+ const json = options?.json === true;
142
+ return {
143
+ ...base,
144
+ formatHelpDoc: (doc) => {
145
+ if (json) {
146
+ return JSON.stringify(Schema.encodeSync(JsonHelpDocSchema)(toJsonHelpDoc(doc)), null, 2);
147
+ }
148
+ const adjusted = getAdjustedHelpDoc(doc);
149
+ let output = base.formatHelpDoc(adjusted);
150
+ const learnMore = getLearnMore(doc);
151
+ if (learnMore !== "") {
152
+ output += "\n\n" + learnMore;
153
+ }
154
+ return output;
155
+ },
156
+ formatVersion: (name, version) => json
157
+ ? JSON.stringify(Schema.encodeSync(JsonVersionDocSchema)({
158
+ _version: JsonSchemaVersion,
159
+ type: "version",
160
+ name,
161
+ version,
162
+ }), null, 2)
163
+ : version,
164
+ // Keep usage failures human-oriented on stderr even when --json is set.
165
+ // Effect CLI owns the parse/help path, so this is the cleanest contract
166
+ // we can provide without replacing Command.runWith().
167
+ formatErrors: (errors) => base.formatErrors(errors),
168
+ };
169
+ };
170
+ //# sourceMappingURL=formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../src/formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,2CAA2C,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAiC,UAAU,CAAC,SAAS,CAAC,gBAAgB,EAAE;IAC5F,YAAY,EAAE,GAAG,EAAE,CAAC,EAAE;CACvB,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,CAAC,GAAY,EAAW,EAAE;IAChD,MAAM,cAAc,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAClE,MAAM,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,GAAY,EAA0B,EAAE;IACrE,IAAI,CAAC,eAAe,CAAC,GAA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able/cli-renderer";
4
+ import type { CommandOutcomeSummary, SourceKind, SubjectType } from "@agentxm/client-core/unstable/cli-runtime";
5
+ import type { PlanResolution } from "@agentxm/client-core/unstable/workspace";
6
+ export declare const PlanResolutionResultSchema: Schema.Struct<{
7
+ readonly outcome: Schema.Literals<readonly ["previewed", "cancelled", "applied", "no-op"]>;
8
+ readonly planName: Schema.String;
9
+ readonly planDescription: Schema.optional<Schema.String>;
10
+ readonly message: Schema.optional<Schema.String>;
11
+ readonly totalSteps: Schema.Number;
12
+ readonly readyCount: Schema.Number;
13
+ readonly warningCount: Schema.Number;
14
+ readonly errorCount: Schema.Number;
15
+ readonly appliedCount: Schema.Number;
16
+ readonly failedCount: Schema.Number;
17
+ readonly blockedCount: Schema.Number;
18
+ readonly steps: Schema.$Array<Schema.Struct<{
19
+ readonly label: Schema.String;
20
+ readonly status: Schema.Literals<readonly ["ready", "warning", "error", "applied", "failed", "blocked"]>;
21
+ readonly message: Schema.optional<Schema.String>;
22
+ readonly code: Schema.optional<Schema.String>;
23
+ }>>;
24
+ }>;
25
+ export type PlanResolutionResult = typeof PlanResolutionResultSchema.Type;
26
+ export declare const toPlanResolutionResult: (resolution: PlanResolution) => PlanResolutionResult;
27
+ export declare const emitPlanResolutionResult: <TCommand extends string>(command: TCommand, resolution: PlanResolution) => Effect.Effect<boolean, never, CliRenderer>;
28
+ /**
29
+ * Convert a PlanResolution to a CommandOutcomeSummary for telemetry.
30
+ * Produces normalized outcome, counts, and optional subject/source context.
31
+ */
32
+ export declare const planResolutionToSummary: (resolution: PlanResolution, context: {
33
+ readonly subjectType?: SubjectType;
34
+ readonly sourceKind?: SourceKind;
35
+ }) => CommandOutcomeSummary;
36
+ export declare const emitNoOpResult: <TCommand extends string>(command: TCommand, args: {
37
+ readonly planName: string;
38
+ readonly planDescription?: string;
39
+ readonly message: string;
40
+ }) => Effect.Effect<boolean, never, CliRenderer>;
41
+ //# sourceMappingURL=json-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-output.d.ts","sourceRoot":"","sources":["../../src/json-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,KAAK,EACV,qBAAqB,EACrB,UAAU,EACV,WAAW,EACZ,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,yCAAyC,CAAC;AA6BjD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAsBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAiD1E,eAAO,MAAM,sBAAsB,GAAI,YAAY,cAAc,KAAG,oBA8CnE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,SAAS,MAAM,EAC9D,SAAS,QAAQ,EACjB,YAAY,cAAc,+CASxB,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAClC,YAAY,cAAc,EAC1B,SAAS;IAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAA;CAAE,KAChF,qBAUF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,MAAM,EACpD,SAAS,QAAQ,EACjB,MAAM;IACJ,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,+CAwBC,CAAC"}
@@ -0,0 +1,171 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Option from "effect/Option";
3
+ import * as Schema from "effect/Schema";
4
+ import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
5
+ const StepStatusSchema = Schema.Literals([
6
+ "ready",
7
+ "warning",
8
+ "error",
9
+ "applied",
10
+ "failed",
11
+ "blocked",
12
+ ]).annotate({
13
+ identifier: "StepStatus",
14
+ title: "Step Status",
15
+ description: "Execution status of a plan step: ready, warning, error, applied, failed, or blocked.",
16
+ });
17
+ const StepSchema = Schema.Struct({
18
+ label: Schema.String,
19
+ status: StepStatusSchema,
20
+ message: Schema.optional(Schema.String),
21
+ code: Schema.optional(Schema.String),
22
+ }).annotate({
23
+ identifier: "Step",
24
+ title: "Plan Step",
25
+ description: "A single step in a plan resolution result with label, status, and optional details.",
26
+ });
27
+ export const PlanResolutionResultSchema = Schema.Struct({
28
+ outcome: Schema.Literals(["previewed", "cancelled", "applied", "no-op"]).annotate({
29
+ identifier: "PlanOutcome",
30
+ title: "Plan Outcome",
31
+ description: "Final outcome of a plan resolution: previewed, cancelled, applied, or no-op.",
32
+ }),
33
+ planName: Schema.String,
34
+ planDescription: Schema.optional(Schema.String),
35
+ message: Schema.optional(Schema.String),
36
+ totalSteps: Schema.Number,
37
+ readyCount: Schema.Number,
38
+ warningCount: Schema.Number,
39
+ errorCount: Schema.Number,
40
+ appliedCount: Schema.Number,
41
+ failedCount: Schema.Number,
42
+ blockedCount: Schema.Number,
43
+ steps: Schema.Array(StepSchema),
44
+ }).annotate({
45
+ identifier: "PlanResolutionResult",
46
+ title: "Plan Resolution Result",
47
+ description: "Result of a plan resolution including outcome, step counts, and individual step details.",
48
+ });
49
+ const PlanResolutionDocumentFields = {
50
+ result: PlanResolutionResultSchema,
51
+ };
52
+ const plannedStepToStep = (step) => {
53
+ switch (step.readiness) {
54
+ case "ready":
55
+ return { label: step.label, status: "ready" };
56
+ case "warn":
57
+ return {
58
+ label: step.label,
59
+ status: "warning",
60
+ message: step.warnMessage,
61
+ };
62
+ case "error":
63
+ return {
64
+ label: step.label,
65
+ status: "error",
66
+ message: step.errorMessage,
67
+ };
68
+ }
69
+ };
70
+ const completedStepToStep = (step) => {
71
+ if (step.result.result === "success") {
72
+ return {
73
+ label: step.label,
74
+ status: "applied",
75
+ ...(step.result.message.length > 0 ? { message: step.result.message } : {}),
76
+ };
77
+ }
78
+ const code = step.result.error.code;
79
+ return {
80
+ label: step.label,
81
+ status: code === "PLAN_STEP_BLOCKED" ? "blocked" : "failed",
82
+ ...(step.result.message.length > 0 ? { message: step.result.message } : {}),
83
+ code,
84
+ };
85
+ };
86
+ const flattenExecutedSteps = (plan) => plan.jobs.flatMap((job) => [...job.steps]);
87
+ const planDescription = (resolution) => Option.getOrUndefined(resolution.description);
88
+ export const toPlanResolutionResult = (resolution) => {
89
+ switch (resolution._tag) {
90
+ case "PreviewedPlan":
91
+ case "CancelledPlan": {
92
+ const steps = resolution.jobs.flatMap((job) => [...job.steps]).map(plannedStepToStep);
93
+ const readyCount = steps.filter((step) => step.status === "ready").length;
94
+ const warningCount = steps.filter((step) => step.status === "warning").length;
95
+ const errorCount = steps.filter((step) => step.status === "error").length;
96
+ const description = planDescription(resolution);
97
+ return {
98
+ outcome: resolution._tag === "PreviewedPlan" ? "previewed" : "cancelled",
99
+ planName: resolution.name,
100
+ ...(description !== undefined ? { planDescription: description } : {}),
101
+ totalSteps: steps.length,
102
+ readyCount,
103
+ warningCount,
104
+ errorCount,
105
+ appliedCount: 0,
106
+ failedCount: 0,
107
+ blockedCount: 0,
108
+ steps,
109
+ };
110
+ }
111
+ case "ExecutedPlan": {
112
+ const steps = flattenExecutedSteps(resolution).map(completedStepToStep);
113
+ const appliedCount = steps.filter((step) => step.status === "applied").length;
114
+ const failedCount = steps.filter((step) => step.status === "failed").length;
115
+ const blockedCount = steps.filter((step) => step.status === "blocked").length;
116
+ const description = planDescription(resolution);
117
+ return {
118
+ outcome: "applied",
119
+ planName: resolution.name,
120
+ ...(description !== undefined ? { planDescription: description } : {}),
121
+ totalSteps: steps.length,
122
+ readyCount: 0,
123
+ warningCount: 0,
124
+ errorCount: 0,
125
+ appliedCount,
126
+ failedCount,
127
+ blockedCount,
128
+ steps,
129
+ };
130
+ }
131
+ }
132
+ };
133
+ export const emitPlanResolutionResult = (command, resolution) => Effect.gen(function* () {
134
+ const renderer = yield* CliRenderer;
135
+ return yield* renderer.document(command, { result: toPlanResolutionResult(resolution) }, PlanResolutionDocumentFields);
136
+ });
137
+ /**
138
+ * Convert a PlanResolution to a CommandOutcomeSummary for telemetry.
139
+ * Produces normalized outcome, counts, and optional subject/source context.
140
+ */
141
+ export const planResolutionToSummary = (resolution, context) => {
142
+ const result = toPlanResolutionResult(resolution);
143
+ return {
144
+ outcome: result.outcome,
145
+ ...(context.subjectType !== undefined ? { subjectType: context.subjectType } : {}),
146
+ ...(context.sourceKind !== undefined ? { sourceKind: context.sourceKind } : {}),
147
+ ...(result.appliedCount > 0 ? { appliedCount: result.appliedCount } : {}),
148
+ ...(result.failedCount > 0 ? { failedCount: result.failedCount } : {}),
149
+ ...(result.blockedCount > 0 ? { blockedCount: result.blockedCount } : {}),
150
+ };
151
+ };
152
+ export const emitNoOpResult = (command, args) => Effect.gen(function* () {
153
+ const renderer = yield* CliRenderer;
154
+ return yield* renderer.document(command, {
155
+ result: {
156
+ outcome: "no-op",
157
+ planName: args.planName,
158
+ ...(args.planDescription !== undefined ? { planDescription: args.planDescription } : {}),
159
+ message: args.message,
160
+ totalSteps: 0,
161
+ readyCount: 0,
162
+ warningCount: 0,
163
+ errorCount: 0,
164
+ appliedCount: 0,
165
+ failedCount: 0,
166
+ blockedCount: 0,
167
+ steps: [],
168
+ },
169
+ }, PlanResolutionDocumentFields);
170
+ });
171
+ //# sourceMappingURL=json-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-output.js","sourceRoot":"","sources":["../../src/json-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAazE,MAAM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,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { run } from "./app.js";
3
+ void run();
4
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,KAAK,GAAG,EAAE,CAAC"}