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.
- package/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/src/app.d.ts +7 -0
- package/dist/src/app.d.ts.map +1 -0
- package/dist/src/app.js +96 -0
- package/dist/src/app.js.map +1 -0
- package/dist/src/cli-flags.d.ts +3 -0
- package/dist/src/cli-flags.d.ts.map +1 -0
- package/dist/src/cli-flags.js +4 -0
- package/dist/src/cli-flags.js.map +1 -0
- package/dist/src/formatter.d.ts +22 -0
- package/dist/src/formatter.d.ts.map +1 -0
- package/dist/src/formatter.js +170 -0
- package/dist/src/formatter.js.map +1 -0
- package/dist/src/json-output.d.ts +41 -0
- package/dist/src/json-output.d.ts.map +1 -0
- package/dist/src/json-output.js +171 -0
- package/dist/src/json-output.js.map +1 -0
- package/dist/src/main.d.ts +3 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/main.js +4 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/root/auth/_auth.d.ts +3 -0
- package/dist/src/root/auth/_auth.d.ts.map +1 -0
- package/dist/src/root/auth/_auth.js +11 -0
- package/dist/src/root/auth/_auth.js.map +1 -0
- package/dist/src/root/auth/login.d.ts +15 -0
- package/dist/src/root/auth/login.d.ts.map +1 -0
- package/dist/src/root/auth/login.js +55 -0
- package/dist/src/root/auth/login.js.map +1 -0
- package/dist/src/root/auth/logout.d.ts +7 -0
- package/dist/src/root/auth/logout.d.ts.map +1 -0
- package/dist/src/root/auth/logout.js +59 -0
- package/dist/src/root/auth/logout.js.map +1 -0
- package/dist/src/root/auth/token.d.ts +7 -0
- package/dist/src/root/auth/token.d.ts.map +1 -0
- package/dist/src/root/auth/token.js +45 -0
- package/dist/src/root/auth/token.js.map +1 -0
- package/dist/src/root/auth/whoami.d.ts +7 -0
- package/dist/src/root/auth/whoami.d.ts.map +1 -0
- package/dist/src/root/auth/whoami.js +73 -0
- package/dist/src/root/auth/whoami.js.map +1 -0
- package/dist/src/root/commands/_commands.d.ts +3 -0
- package/dist/src/root/commands/_commands.d.ts.map +1 -0
- package/dist/src/root/commands/_commands.js +45 -0
- package/dist/src/root/commands/_commands.js.map +1 -0
- package/dist/src/root/commands/disable.d.ts +17 -0
- package/dist/src/root/commands/disable.d.ts.map +1 -0
- package/dist/src/root/commands/disable.js +100 -0
- package/dist/src/root/commands/disable.js.map +1 -0
- package/dist/src/root/commands/enable.d.ts +17 -0
- package/dist/src/root/commands/enable.d.ts.map +1 -0
- package/dist/src/root/commands/enable.js +101 -0
- package/dist/src/root/commands/enable.js.map +1 -0
- package/dist/src/root/commands/install/command-actions.d.ts +61 -0
- package/dist/src/root/commands/install/command-actions.d.ts.map +1 -0
- package/dist/src/root/commands/install/command-actions.js +211 -0
- package/dist/src/root/commands/install/command-actions.js.map +1 -0
- package/dist/src/root/commands/install/command.d.ts +3 -0
- package/dist/src/root/commands/install/command.d.ts.map +1 -0
- package/dist/src/root/commands/install/command.js +32 -0
- package/dist/src/root/commands/install/command.js.map +1 -0
- package/dist/src/root/commands/install/handler.d.ts +11 -0
- package/dist/src/root/commands/install/handler.d.ts.map +1 -0
- package/dist/src/root/commands/install/handler.js +31 -0
- package/dist/src/root/commands/install/handler.js.map +1 -0
- package/dist/src/root/commands/install/intent.d.ts +19 -0
- package/dist/src/root/commands/install/intent.d.ts.map +1 -0
- package/dist/src/root/commands/install/intent.js +9 -0
- package/dist/src/root/commands/install/intent.js.map +1 -0
- package/dist/src/root/commands/job-step-result.d.ts +21 -0
- package/dist/src/root/commands/job-step-result.d.ts.map +1 -0
- package/dist/src/root/commands/job-step-result.js +17 -0
- package/dist/src/root/commands/job-step-result.js.map +1 -0
- package/dist/src/root/commands/list.d.ts +7 -0
- package/dist/src/root/commands/list.d.ts.map +1 -0
- package/dist/src/root/commands/list.js +63 -0
- package/dist/src/root/commands/list.js.map +1 -0
- package/dist/src/root/commands/new.d.ts +19 -0
- package/dist/src/root/commands/new.d.ts.map +1 -0
- package/dist/src/root/commands/new.js +111 -0
- package/dist/src/root/commands/new.js.map +1 -0
- package/dist/src/root/commands/preview-sections.d.ts +11 -0
- package/dist/src/root/commands/preview-sections.d.ts.map +1 -0
- package/dist/src/root/commands/preview-sections.js +25 -0
- package/dist/src/root/commands/preview-sections.js.map +1 -0
- package/dist/src/root/commands/publish.d.ts +20 -0
- package/dist/src/root/commands/publish.d.ts.map +1 -0
- package/dist/src/root/commands/publish.js +238 -0
- package/dist/src/root/commands/publish.js.map +1 -0
- package/dist/src/root/commands/uninstall/command-actions.d.ts +31 -0
- package/dist/src/root/commands/uninstall/command-actions.d.ts.map +1 -0
- package/dist/src/root/commands/uninstall/command-actions.js +85 -0
- package/dist/src/root/commands/uninstall/command-actions.js.map +1 -0
- package/dist/src/root/commands/uninstall/command.d.ts +3 -0
- package/dist/src/root/commands/uninstall/command.d.ts.map +1 -0
- package/dist/src/root/commands/uninstall/command.js +27 -0
- package/dist/src/root/commands/uninstall/command.js.map +1 -0
- package/dist/src/root/commands/uninstall/handler.d.ts +8 -0
- package/dist/src/root/commands/uninstall/handler.d.ts.map +1 -0
- package/dist/src/root/commands/uninstall/handler.js +10 -0
- package/dist/src/root/commands/uninstall/handler.js.map +1 -0
- package/dist/src/root/commands/uninstall/intent.d.ts +15 -0
- package/dist/src/root/commands/uninstall/intent.d.ts.map +1 -0
- package/dist/src/root/commands/uninstall/intent.js +9 -0
- package/dist/src/root/commands/uninstall/intent.js.map +1 -0
- package/dist/src/root/commands/update.d.ts +18 -0
- package/dist/src/root/commands/update.d.ts.map +1 -0
- package/dist/src/root/commands/update.js +145 -0
- package/dist/src/root/commands/update.js.map +1 -0
- package/dist/src/root/discover/command.d.ts +6 -0
- package/dist/src/root/discover/command.d.ts.map +1 -0
- package/dist/src/root/discover/command.js +22 -0
- package/dist/src/root/discover/command.js.map +1 -0
- package/dist/src/root/discover/handler.d.ts +52 -0
- package/dist/src/root/discover/handler.d.ts.map +1 -0
- package/dist/src/root/discover/handler.js +102 -0
- package/dist/src/root/discover/handler.js.map +1 -0
- package/dist/src/root/doctor/command.d.ts +3 -0
- package/dist/src/root/doctor/command.d.ts.map +1 -0
- package/dist/src/root/doctor/command.js +19 -0
- package/dist/src/root/doctor/command.js.map +1 -0
- package/dist/src/root/doctor/handler.d.ts +10 -0
- package/dist/src/root/doctor/handler.d.ts.map +1 -0
- package/dist/src/root/doctor/handler.js +27 -0
- package/dist/src/root/doctor/handler.js.map +1 -0
- package/dist/src/root/doctor/render.d.ts +8 -0
- package/dist/src/root/doctor/render.d.ts.map +1 -0
- package/dist/src/root/doctor/render.js +183 -0
- package/dist/src/root/doctor/render.js.map +1 -0
- package/dist/src/root/init.d.ts +10 -0
- package/dist/src/root/init.d.ts.map +1 -0
- package/dist/src/root/init.js +133 -0
- package/dist/src/root/init.js.map +1 -0
- package/dist/src/root/install/command.d.ts +3 -0
- package/dist/src/root/install/command.d.ts.map +1 -0
- package/dist/src/root/install/command.js +32 -0
- package/dist/src/root/install/command.js.map +1 -0
- package/dist/src/root/install/handler.d.ts +17 -0
- package/dist/src/root/install/handler.d.ts.map +1 -0
- package/dist/src/root/install/handler.js +62 -0
- package/dist/src/root/install/handler.js.map +1 -0
- package/dist/src/root/install/resolve-root-install-intent.d.ts +16 -0
- package/dist/src/root/install/resolve-root-install-intent.d.ts.map +1 -0
- package/dist/src/root/install/resolve-root-install-intent.js +75 -0
- package/dist/src/root/install/resolve-root-install-intent.js.map +1 -0
- package/dist/src/root/install/workspace-install-handler.d.ts +23 -0
- package/dist/src/root/install/workspace-install-handler.d.ts.map +1 -0
- package/dist/src/root/install/workspace-install-handler.js +52 -0
- package/dist/src/root/install/workspace-install-handler.js.map +1 -0
- package/dist/src/root/install/workspace-install.d.ts +38 -0
- package/dist/src/root/install/workspace-install.d.ts.map +1 -0
- package/dist/src/root/install/workspace-install.js +160 -0
- package/dist/src/root/install/workspace-install.js.map +1 -0
- package/dist/src/root/mcp-servers/_mcp-servers.d.ts +3 -0
- package/dist/src/root/mcp-servers/_mcp-servers.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/_mcp-servers.js +14 -0
- package/dist/src/root/mcp-servers/_mcp-servers.js.map +1 -0
- package/dist/src/root/mcp-servers/install/command-actions.d.ts +48 -0
- package/dist/src/root/mcp-servers/install/command-actions.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/install/command-actions.js +185 -0
- package/dist/src/root/mcp-servers/install/command-actions.js.map +1 -0
- package/dist/src/root/mcp-servers/install/command.d.ts +3 -0
- package/dist/src/root/mcp-servers/install/command.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/install/command.js +32 -0
- package/dist/src/root/mcp-servers/install/command.js.map +1 -0
- package/dist/src/root/mcp-servers/install/handler.d.ts +13 -0
- package/dist/src/root/mcp-servers/install/handler.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/install/handler.js +22 -0
- package/dist/src/root/mcp-servers/install/handler.js.map +1 -0
- package/dist/src/root/mcp-servers/install/intent.d.ts +18 -0
- package/dist/src/root/mcp-servers/install/intent.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/install/intent.js +9 -0
- package/dist/src/root/mcp-servers/install/intent.js.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts +31 -0
- package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/command-actions.js +68 -0
- package/dist/src/root/mcp-servers/uninstall/command-actions.js.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/command.d.ts +3 -0
- package/dist/src/root/mcp-servers/uninstall/command.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/command.js +27 -0
- package/dist/src/root/mcp-servers/uninstall/command.js.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/handler.d.ts +8 -0
- package/dist/src/root/mcp-servers/uninstall/handler.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/handler.js +10 -0
- package/dist/src/root/mcp-servers/uninstall/handler.js.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/intent.d.ts +15 -0
- package/dist/src/root/mcp-servers/uninstall/intent.d.ts.map +1 -0
- package/dist/src/root/mcp-servers/uninstall/intent.js +9 -0
- package/dist/src/root/mcp-servers/uninstall/intent.js.map +1 -0
- package/dist/src/root/packs/_packs.d.ts +3 -0
- package/dist/src/root/packs/_packs.d.ts.map +1 -0
- package/dist/src/root/packs/_packs.js +35 -0
- package/dist/src/root/packs/_packs.js.map +1 -0
- package/dist/src/root/packs/add.d.ts +16 -0
- package/dist/src/root/packs/add.d.ts.map +1 -0
- package/dist/src/root/packs/add.js +198 -0
- package/dist/src/root/packs/add.js.map +1 -0
- package/dist/src/root/packs/install/command-actions.d.ts +56 -0
- package/dist/src/root/packs/install/command-actions.d.ts.map +1 -0
- package/dist/src/root/packs/install/command-actions.js +373 -0
- package/dist/src/root/packs/install/command-actions.js.map +1 -0
- package/dist/src/root/packs/install/command.d.ts +3 -0
- package/dist/src/root/packs/install/command.d.ts.map +1 -0
- package/dist/src/root/packs/install/command.js +36 -0
- package/dist/src/root/packs/install/command.js.map +1 -0
- package/dist/src/root/packs/install/handler.d.ts +13 -0
- package/dist/src/root/packs/install/handler.d.ts.map +1 -0
- package/dist/src/root/packs/install/handler.js +22 -0
- package/dist/src/root/packs/install/handler.js.map +1 -0
- package/dist/src/root/packs/install/intent.d.ts +15 -0
- package/dist/src/root/packs/install/intent.d.ts.map +1 -0
- package/dist/src/root/packs/install/intent.js +9 -0
- package/dist/src/root/packs/install/intent.js.map +1 -0
- package/dist/src/root/packs/install/plan.d.ts +63 -0
- package/dist/src/root/packs/install/plan.d.ts.map +1 -0
- package/dist/src/root/packs/install/plan.js +181 -0
- package/dist/src/root/packs/install/plan.js.map +1 -0
- package/dist/src/root/packs/new.d.ts +18 -0
- package/dist/src/root/packs/new.d.ts.map +1 -0
- package/dist/src/root/packs/new.js +103 -0
- package/dist/src/root/packs/new.js.map +1 -0
- package/dist/src/root/packs/publish.d.ts +30 -0
- package/dist/src/root/packs/publish.d.ts.map +1 -0
- package/dist/src/root/packs/publish.js +288 -0
- package/dist/src/root/packs/publish.js.map +1 -0
- package/dist/src/root/packs/remove.d.ts +16 -0
- package/dist/src/root/packs/remove.d.ts.map +1 -0
- package/dist/src/root/packs/remove.js +156 -0
- package/dist/src/root/packs/remove.js.map +1 -0
- package/dist/src/root/packs/uninstall/command-actions.d.ts +47 -0
- package/dist/src/root/packs/uninstall/command-actions.d.ts.map +1 -0
- package/dist/src/root/packs/uninstall/command-actions.js +175 -0
- package/dist/src/root/packs/uninstall/command-actions.js.map +1 -0
- package/dist/src/root/packs/uninstall/command.d.ts +3 -0
- package/dist/src/root/packs/uninstall/command.d.ts.map +1 -0
- package/dist/src/root/packs/uninstall/command.js +31 -0
- package/dist/src/root/packs/uninstall/command.js.map +1 -0
- package/dist/src/root/packs/uninstall/handler.d.ts +8 -0
- package/dist/src/root/packs/uninstall/handler.d.ts.map +1 -0
- package/dist/src/root/packs/uninstall/handler.js +10 -0
- package/dist/src/root/packs/uninstall/handler.js.map +1 -0
- package/dist/src/root/packs/uninstall/intent.d.ts +13 -0
- package/dist/src/root/packs/uninstall/intent.d.ts.map +1 -0
- package/dist/src/root/packs/uninstall/intent.js +10 -0
- package/dist/src/root/packs/uninstall/intent.js.map +1 -0
- package/dist/src/root/packs/uninstall/plan.d.ts +60 -0
- package/dist/src/root/packs/uninstall/plan.d.ts.map +1 -0
- package/dist/src/root/packs/uninstall/plan.js +166 -0
- package/dist/src/root/packs/uninstall/plan.js.map +1 -0
- package/dist/src/root/packs/unpack/command.d.ts +3 -0
- package/dist/src/root/packs/unpack/command.d.ts.map +1 -0
- package/dist/src/root/packs/unpack/command.js +31 -0
- package/dist/src/root/packs/unpack/command.js.map +1 -0
- package/dist/src/root/packs/unpack/handler.d.ts +16 -0
- package/dist/src/root/packs/unpack/handler.d.ts.map +1 -0
- package/dist/src/root/packs/unpack/handler.js +117 -0
- package/dist/src/root/packs/unpack/handler.js.map +1 -0
- package/dist/src/root/packs/unpack/plan.d.ts +72 -0
- package/dist/src/root/packs/unpack/plan.d.ts.map +1 -0
- package/dist/src/root/packs/unpack/plan.js +120 -0
- package/dist/src/root/packs/unpack/plan.js.map +1 -0
- package/dist/src/root/shared/registry-install-target.d.ts +35 -0
- package/dist/src/root/shared/registry-install-target.d.ts.map +1 -0
- package/dist/src/root/shared/registry-install-target.js +66 -0
- package/dist/src/root/shared/registry-install-target.js.map +1 -0
- package/dist/src/root/skills/_skills.d.ts +3 -0
- package/dist/src/root/skills/_skills.d.ts.map +1 -0
- package/dist/src/root/skills/_skills.js +38 -0
- package/dist/src/root/skills/_skills.js.map +1 -0
- package/dist/src/root/skills/disable.d.ts +15 -0
- package/dist/src/root/skills/disable.d.ts.map +1 -0
- package/dist/src/root/skills/disable.js +91 -0
- package/dist/src/root/skills/disable.js.map +1 -0
- package/dist/src/root/skills/enable.d.ts +16 -0
- package/dist/src/root/skills/enable.d.ts.map +1 -0
- package/dist/src/root/skills/enable.js +92 -0
- package/dist/src/root/skills/enable.js.map +1 -0
- package/dist/src/root/skills/fork.d.ts +22 -0
- package/dist/src/root/skills/fork.d.ts.map +1 -0
- package/dist/src/root/skills/fork.js +288 -0
- package/dist/src/root/skills/fork.js.map +1 -0
- package/dist/src/root/skills/install/command-actions.d.ts +76 -0
- package/dist/src/root/skills/install/command-actions.d.ts.map +1 -0
- package/dist/src/root/skills/install/command-actions.js +323 -0
- package/dist/src/root/skills/install/command-actions.js.map +1 -0
- package/dist/src/root/skills/install/command.d.ts +3 -0
- package/dist/src/root/skills/install/command.d.ts.map +1 -0
- package/dist/src/root/skills/install/command.js +46 -0
- package/dist/src/root/skills/install/command.js.map +1 -0
- package/dist/src/root/skills/install/handler.d.ts +15 -0
- package/dist/src/root/skills/install/handler.d.ts.map +1 -0
- package/dist/src/root/skills/install/handler.js +39 -0
- package/dist/src/root/skills/install/handler.js.map +1 -0
- package/dist/src/root/skills/install/intent.d.ts +21 -0
- package/dist/src/root/skills/install/intent.d.ts.map +1 -0
- package/dist/src/root/skills/install/intent.js +7 -0
- package/dist/src/root/skills/install/intent.js.map +1 -0
- package/dist/src/root/skills/install/plan.d.ts +43 -0
- package/dist/src/root/skills/install/plan.d.ts.map +1 -0
- package/dist/src/root/skills/install/plan.js +82 -0
- package/dist/src/root/skills/install/plan.js.map +1 -0
- package/dist/src/root/skills/install/resolve-skill-install-source.d.ts +17 -0
- package/dist/src/root/skills/install/resolve-skill-install-source.d.ts.map +1 -0
- package/dist/src/root/skills/install/resolve-skill-install-source.js +271 -0
- package/dist/src/root/skills/install/resolve-skill-install-source.js.map +1 -0
- package/dist/src/root/skills/install/select-skills.d.ts +37 -0
- package/dist/src/root/skills/install/select-skills.d.ts.map +1 -0
- package/dist/src/root/skills/install/select-skills.js +91 -0
- package/dist/src/root/skills/install/select-skills.js.map +1 -0
- package/dist/src/root/skills/list.d.ts +10 -0
- package/dist/src/root/skills/list.d.ts.map +1 -0
- package/dist/src/root/skills/list.js +68 -0
- package/dist/src/root/skills/list.js.map +1 -0
- package/dist/src/root/skills/new.d.ts +19 -0
- package/dist/src/root/skills/new.d.ts.map +1 -0
- package/dist/src/root/skills/new.js +113 -0
- package/dist/src/root/skills/new.js.map +1 -0
- package/dist/src/root/skills/publish.d.ts +20 -0
- package/dist/src/root/skills/publish.d.ts.map +1 -0
- package/dist/src/root/skills/publish.js +230 -0
- package/dist/src/root/skills/publish.js.map +1 -0
- package/dist/src/root/skills/rename.d.ts +16 -0
- package/dist/src/root/skills/rename.d.ts.map +1 -0
- package/dist/src/root/skills/rename.js +84 -0
- package/dist/src/root/skills/rename.js.map +1 -0
- package/dist/src/root/skills/uninstall/command-actions.d.ts +39 -0
- package/dist/src/root/skills/uninstall/command-actions.d.ts.map +1 -0
- package/dist/src/root/skills/uninstall/command-actions.js +85 -0
- package/dist/src/root/skills/uninstall/command-actions.js.map +1 -0
- package/dist/src/root/skills/uninstall/command.d.ts +3 -0
- package/dist/src/root/skills/uninstall/command.d.ts.map +1 -0
- package/dist/src/root/skills/uninstall/command.js +24 -0
- package/dist/src/root/skills/uninstall/command.js.map +1 -0
- package/dist/src/root/skills/uninstall/handler.d.ts +8 -0
- package/dist/src/root/skills/uninstall/handler.d.ts.map +1 -0
- package/dist/src/root/skills/uninstall/handler.js +10 -0
- package/dist/src/root/skills/uninstall/handler.js.map +1 -0
- package/dist/src/root/skills/uninstall/intent.d.ts +17 -0
- package/dist/src/root/skills/uninstall/intent.d.ts.map +1 -0
- package/dist/src/root/skills/uninstall/intent.js +7 -0
- package/dist/src/root/skills/uninstall/intent.js.map +1 -0
- package/dist/src/root/skills/uninstall/plan.d.ts +35 -0
- package/dist/src/root/skills/uninstall/plan.d.ts.map +1 -0
- package/dist/src/root/skills/uninstall/plan.js +66 -0
- package/dist/src/root/skills/uninstall/plan.js.map +1 -0
- package/dist/src/root/skills/update/command.d.ts +3 -0
- package/dist/src/root/skills/update/command.d.ts.map +1 -0
- package/dist/src/root/skills/update/command.js +31 -0
- package/dist/src/root/skills/update/command.js.map +1 -0
- package/dist/src/root/skills/update/constraint-resolution.d.ts +70 -0
- package/dist/src/root/skills/update/constraint-resolution.d.ts.map +1 -0
- package/dist/src/root/skills/update/constraint-resolution.js +94 -0
- package/dist/src/root/skills/update/constraint-resolution.js.map +1 -0
- package/dist/src/root/skills/update/handler.d.ts +18 -0
- package/dist/src/root/skills/update/handler.d.ts.map +1 -0
- package/dist/src/root/skills/update/handler.js +409 -0
- package/dist/src/root/skills/update/handler.js.map +1 -0
- package/dist/src/root/skills/update/plan.d.ts +35 -0
- package/dist/src/root/skills/update/plan.d.ts.map +1 -0
- package/dist/src/root/skills/update/plan.js +92 -0
- package/dist/src/root/skills/update/plan.js.map +1 -0
- package/dist/src/root/subagents/_subagents.d.ts +3 -0
- package/dist/src/root/subagents/_subagents.d.ts.map +1 -0
- package/dist/src/root/subagents/_subagents.js +31 -0
- package/dist/src/root/subagents/_subagents.js.map +1 -0
- package/dist/src/root/subagents/disable/command.d.ts +3 -0
- package/dist/src/root/subagents/disable/command.d.ts.map +1 -0
- package/dist/src/root/subagents/disable/command.js +24 -0
- package/dist/src/root/subagents/disable/command.js.map +1 -0
- package/dist/src/root/subagents/disable/handler.d.ts +14 -0
- package/dist/src/root/subagents/disable/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/disable/handler.js +71 -0
- package/dist/src/root/subagents/disable/handler.js.map +1 -0
- package/dist/src/root/subagents/enable/command.d.ts +3 -0
- package/dist/src/root/subagents/enable/command.d.ts.map +1 -0
- package/dist/src/root/subagents/enable/command.js +24 -0
- package/dist/src/root/subagents/enable/command.js.map +1 -0
- package/dist/src/root/subagents/enable/handler.d.ts +14 -0
- package/dist/src/root/subagents/enable/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/enable/handler.js +71 -0
- package/dist/src/root/subagents/enable/handler.js.map +1 -0
- package/dist/src/root/subagents/install/command-actions.d.ts +58 -0
- package/dist/src/root/subagents/install/command-actions.d.ts.map +1 -0
- package/dist/src/root/subagents/install/command-actions.js +258 -0
- package/dist/src/root/subagents/install/command-actions.js.map +1 -0
- package/dist/src/root/subagents/install/command.d.ts +3 -0
- package/dist/src/root/subagents/install/command.d.ts.map +1 -0
- package/dist/src/root/subagents/install/command.js +46 -0
- package/dist/src/root/subagents/install/command.js.map +1 -0
- package/dist/src/root/subagents/install/handler.d.ts +15 -0
- package/dist/src/root/subagents/install/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/install/handler.js +39 -0
- package/dist/src/root/subagents/install/handler.js.map +1 -0
- package/dist/src/root/subagents/install/intent.d.ts +21 -0
- package/dist/src/root/subagents/install/intent.d.ts.map +1 -0
- package/dist/src/root/subagents/install/intent.js +7 -0
- package/dist/src/root/subagents/install/intent.js.map +1 -0
- package/dist/src/root/subagents/install/plan.d.ts +44 -0
- package/dist/src/root/subagents/install/plan.d.ts.map +1 -0
- package/dist/src/root/subagents/install/plan.js +74 -0
- package/dist/src/root/subagents/install/plan.js.map +1 -0
- package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts +17 -0
- package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts.map +1 -0
- package/dist/src/root/subagents/install/resolve-subagent-install-source.js +265 -0
- package/dist/src/root/subagents/install/resolve-subagent-install-source.js.map +1 -0
- package/dist/src/root/subagents/install/select-subagents.d.ts +43 -0
- package/dist/src/root/subagents/install/select-subagents.d.ts.map +1 -0
- package/dist/src/root/subagents/install/select-subagents.js +90 -0
- package/dist/src/root/subagents/install/select-subagents.js.map +1 -0
- package/dist/src/root/subagents/list/command.d.ts +3 -0
- package/dist/src/root/subagents/list/command.d.ts.map +1 -0
- package/dist/src/root/subagents/list/command.js +21 -0
- package/dist/src/root/subagents/list/command.js.map +1 -0
- package/dist/src/root/subagents/list/handler.d.ts +8 -0
- package/dist/src/root/subagents/list/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/list/handler.js +56 -0
- package/dist/src/root/subagents/list/handler.js.map +1 -0
- package/dist/src/root/subagents/new/command.d.ts +3 -0
- package/dist/src/root/subagents/new/command.d.ts.map +1 -0
- package/dist/src/root/subagents/new/command.js +42 -0
- package/dist/src/root/subagents/new/command.js.map +1 -0
- package/dist/src/root/subagents/new/handler.d.ts +21 -0
- package/dist/src/root/subagents/new/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/new/handler.js +199 -0
- package/dist/src/root/subagents/new/handler.js.map +1 -0
- package/dist/src/root/subagents/publish/command.d.ts +3 -0
- package/dist/src/root/subagents/publish/command.d.ts.map +1 -0
- package/dist/src/root/subagents/publish/command.js +28 -0
- package/dist/src/root/subagents/publish/command.js.map +1 -0
- package/dist/src/root/subagents/publish/handler.d.ts +18 -0
- package/dist/src/root/subagents/publish/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/publish/handler.js +204 -0
- package/dist/src/root/subagents/publish/handler.js.map +1 -0
- package/dist/src/root/subagents/rename/command.d.ts +3 -0
- package/dist/src/root/subagents/rename/command.d.ts.map +1 -0
- package/dist/src/root/subagents/rename/command.js +25 -0
- package/dist/src/root/subagents/rename/command.js.map +1 -0
- package/dist/src/root/subagents/rename/handler.d.ts +15 -0
- package/dist/src/root/subagents/rename/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/rename/handler.js +174 -0
- package/dist/src/root/subagents/rename/handler.js.map +1 -0
- package/dist/src/root/subagents/uninstall/command-actions.d.ts +39 -0
- package/dist/src/root/subagents/uninstall/command-actions.d.ts.map +1 -0
- package/dist/src/root/subagents/uninstall/command-actions.js +85 -0
- package/dist/src/root/subagents/uninstall/command-actions.js.map +1 -0
- package/dist/src/root/subagents/uninstall/command.d.ts +3 -0
- package/dist/src/root/subagents/uninstall/command.d.ts.map +1 -0
- package/dist/src/root/subagents/uninstall/command.js +27 -0
- package/dist/src/root/subagents/uninstall/command.js.map +1 -0
- package/dist/src/root/subagents/uninstall/handler.d.ts +8 -0
- package/dist/src/root/subagents/uninstall/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/uninstall/handler.js +10 -0
- package/dist/src/root/subagents/uninstall/handler.js.map +1 -0
- package/dist/src/root/subagents/uninstall/intent.d.ts +17 -0
- package/dist/src/root/subagents/uninstall/intent.d.ts.map +1 -0
- package/dist/src/root/subagents/uninstall/intent.js +7 -0
- package/dist/src/root/subagents/uninstall/intent.js.map +1 -0
- package/dist/src/root/subagents/update/command.d.ts +3 -0
- package/dist/src/root/subagents/update/command.d.ts.map +1 -0
- package/dist/src/root/subagents/update/command.js +41 -0
- package/dist/src/root/subagents/update/command.js.map +1 -0
- package/dist/src/root/subagents/update/handler.d.ts +16 -0
- package/dist/src/root/subagents/update/handler.d.ts.map +1 -0
- package/dist/src/root/subagents/update/handler.js +188 -0
- package/dist/src/root/subagents/update/handler.js.map +1 -0
- package/dist/src/root/subagents/update/plan.d.ts +39 -0
- package/dist/src/root/subagents/update/plan.d.ts.map +1 -0
- package/dist/src/root/subagents/update/plan.js +81 -0
- package/dist/src/root/subagents/update/plan.js.map +1 -0
- package/dist/src/root/sync.d.ts +15 -0
- package/dist/src/root/sync.d.ts.map +1 -0
- package/dist/src/root/sync.js +82 -0
- package/dist/src/root/sync.js.map +1 -0
- package/dist/src/root/upgrade/handler.d.ts +21 -0
- package/dist/src/root/upgrade/handler.d.ts.map +1 -0
- package/dist/src/root/upgrade/handler.js +303 -0
- package/dist/src/root/upgrade/handler.js.map +1 -0
- package/dist/src/root/upgrade/upgrade.d.ts +3 -0
- package/dist/src/root/upgrade/upgrade.d.ts.map +1 -0
- package/dist/src/root/upgrade/upgrade.js +18 -0
- package/dist/src/root/upgrade/upgrade.js.map +1 -0
- package/dist/src/runtime.d.ts +39 -0
- package/dist/src/runtime.d.ts.map +1 -0
- package/dist/src/runtime.js +144 -0
- package/dist/src/runtime.js.map +1 -0
- package/dist/src/test-helpers.d.ts +101 -0
- package/dist/src/test-helpers.d.ts.map +1 -0
- package/dist/src/test-helpers.js +153 -0
- package/dist/src/test-helpers.js.map +1 -0
- package/dist/src/test-stubs.d.ts +128 -0
- package/dist/src/test-stubs.d.ts.map +1 -0
- package/dist/src/test-stubs.js +227 -0
- package/dist/src/test-stubs.js.map +1 -0
- package/dist/src/update-check-startup.d.ts +68 -0
- package/dist/src/update-check-startup.d.ts.map +1 -0
- package/dist/src/update-check-startup.js +127 -0
- package/dist/src/update-check-startup.js.map +1 -0
- package/dist/src/version.d.ts +2 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +23 -0
- package/dist/src/version.js.map +1 -0
- 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"}
|
package/dist/src/app.js
ADDED
|
@@ -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,wBAAwB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC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,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 @@
|
|
|
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;AAE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41 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { CliRenderer } from "@agentxm/client-core/unstable/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,gBAAgB,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,OAAO;IACP,SAAS;IACT,OAAO;IACP,SAAS;IACT,QAAQ;IACR,SAAS;CACD,CAAC,CAAC,QAAQ,CAAC;IACnB,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,sFAAsF;CACzF,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC,MAAM;IACpB,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACrC,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,MAAM;IAClB,KAAK,EAAE,WAAW;IAClB,WAAW,EACT,qFAAqF;CACxF,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC,CAAC,QAAQ,CAAC;QACzF,UAAU,EAAE,aAAa;QACzB,KAAK,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AC,IAAI,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACxF,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,CAAC;YACb,UAAU,EAAE,CAAC;YACb,YAAY,EAAE,CAAC;YACf,UAAU,EAAE,CAAC;YACb,YAAY,EAAE,CAAC;YACf,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,CAAC;YACf,KAAK,EAAE,EAAE;SACV;KACF,EACD,4BAA4B,CAC7B,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":""}
|
package/dist/src/main.js
ADDED
|
@@ -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"}
|