axm.sh 0.4.5 → 0.5.0
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/README.md +7 -7
- package/dist/src/__generated__/help-topics.d.ts +8 -0
- package/dist/src/__generated__/help-topics.d.ts.map +1 -0
- package/dist/src/__generated__/help-topics.js +12 -0
- package/dist/src/__generated__/help-topics.js.map +1 -0
- package/dist/src/app.d.ts.map +1 -1
- package/dist/src/app.js +11 -2
- package/dist/src/app.js.map +1 -1
- package/dist/src/formatter.d.ts.map +1 -1
- package/dist/src/formatter.js +28 -55
- package/dist/src/formatter.js.map +1 -1
- package/dist/src/root/commands/_commands.d.ts.map +1 -1
- package/dist/src/root/commands/_commands.js +6 -0
- package/dist/src/root/commands/_commands.js.map +1 -1
- package/dist/src/root/commands/disable.d.ts +2 -2
- package/dist/src/root/commands/disable.d.ts.map +1 -1
- package/dist/src/root/commands/disable.js +5 -5
- package/dist/src/root/commands/disable.js.map +1 -1
- package/dist/src/root/commands/enable.d.ts +2 -2
- package/dist/src/root/commands/enable.d.ts.map +1 -1
- package/dist/src/root/commands/enable.js +5 -5
- package/dist/src/root/commands/enable.js.map +1 -1
- package/dist/src/root/commands/install/command-actions.d.ts +2 -2
- package/dist/src/root/commands/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/commands/install/command-actions.js +11 -4
- package/dist/src/root/commands/install/command-actions.js.map +1 -1
- package/dist/src/root/commands/install/command.d.ts.map +1 -1
- package/dist/src/root/commands/install/command.js +2 -2
- package/dist/src/root/commands/install/command.js.map +1 -1
- package/dist/src/root/commands/install/handler.d.ts +1 -1
- package/dist/src/root/commands/install/handler.d.ts.map +1 -1
- package/dist/src/root/commands/list.d.ts +2 -2
- package/dist/src/root/commands/list.d.ts.map +1 -1
- package/dist/src/root/commands/list.js +15 -7
- package/dist/src/root/commands/list.js.map +1 -1
- package/dist/src/root/commands/new.d.ts +1 -2
- package/dist/src/root/commands/new.d.ts.map +1 -1
- package/dist/src/root/commands/new.js +5 -12
- package/dist/src/root/commands/new.js.map +1 -1
- package/dist/src/root/commands/publish.d.ts +2 -2
- package/dist/src/root/commands/publish.d.ts.map +1 -1
- package/dist/src/root/commands/publish.js +40 -16
- package/dist/src/root/commands/publish.js.map +1 -1
- package/dist/src/root/commands/uninstall/command-actions.d.ts +2 -2
- package/dist/src/root/commands/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/commands/uninstall/command-actions.js +2 -2
- package/dist/src/root/commands/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/commands/uninstall/handler.d.ts +1 -1
- package/dist/src/root/commands/uninstall/handler.d.ts.map +1 -1
- package/dist/src/root/commands/update.d.ts +2 -2
- package/dist/src/root/commands/update.d.ts.map +1 -1
- package/dist/src/root/commands/update.js +4 -4
- package/dist/src/root/commands/update.js.map +1 -1
- package/dist/src/root/help/command.d.ts +3 -0
- package/dist/src/root/help/command.d.ts.map +1 -0
- package/dist/src/root/help/command.js +49 -0
- package/dist/src/root/help/command.js.map +1 -0
- package/dist/src/root/install/command.d.ts.map +1 -1
- package/dist/src/root/install/command.js +2 -2
- package/dist/src/root/install/command.js.map +1 -1
- package/dist/src/root/install/handler.d.ts +1 -1
- package/dist/src/root/install/handler.d.ts.map +1 -1
- package/dist/src/root/install/workspace-install-handler.d.ts +2 -2
- package/dist/src/root/install/workspace-install-handler.d.ts.map +1 -1
- package/dist/src/root/install/workspace-install.d.ts +2 -2
- package/dist/src/root/install/workspace-install.d.ts.map +1 -1
- package/dist/src/root/install/workspace-install.js +11 -11
- package/dist/src/root/install/workspace-install.js.map +1 -1
- package/dist/src/root/lint/handler.d.ts +5 -4
- package/dist/src/root/lint/handler.d.ts.map +1 -1
- package/dist/src/root/lint/handler.js +29 -105
- package/dist/src/root/lint/handler.js.map +1 -1
- package/dist/src/root/mcp-servers/install/command-actions.d.ts +2 -2
- package/dist/src/root/mcp-servers/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/mcp-servers/install/command-actions.js +11 -4
- package/dist/src/root/mcp-servers/install/command-actions.js.map +1 -1
- package/dist/src/root/mcp-servers/install/command.js +2 -2
- package/dist/src/root/mcp-servers/install/command.js.map +1 -1
- package/dist/src/root/mcp-servers/install/handler.d.ts +1 -1
- package/dist/src/root/mcp-servers/install/handler.d.ts.map +1 -1
- package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts +2 -2
- package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/mcp-servers/uninstall/command-actions.js +2 -2
- package/dist/src/root/mcp-servers/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/mcp-servers/uninstall/handler.d.ts +1 -1
- package/dist/src/root/mcp-servers/uninstall/handler.d.ts.map +1 -1
- package/dist/src/root/outdated/handler.d.ts +1 -1
- package/dist/src/root/outdated/handler.d.ts.map +1 -1
- package/dist/src/root/packs/add.d.ts +2 -2
- package/dist/src/root/packs/add.d.ts.map +1 -1
- package/dist/src/root/packs/add.js +13 -5
- package/dist/src/root/packs/add.js.map +1 -1
- package/dist/src/root/packs/install/command-actions.d.ts +2 -2
- package/dist/src/root/packs/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/packs/install/command-actions.js +15 -8
- package/dist/src/root/packs/install/command-actions.js.map +1 -1
- package/dist/src/root/packs/install/command.js +2 -2
- package/dist/src/root/packs/install/command.js.map +1 -1
- package/dist/src/root/packs/install/handler.d.ts +1 -1
- package/dist/src/root/packs/install/handler.d.ts.map +1 -1
- package/dist/src/root/packs/install/plan.d.ts +2 -2
- package/dist/src/root/packs/install/plan.d.ts.map +1 -1
- package/dist/src/root/packs/install/plan.js +3 -3
- package/dist/src/root/packs/install/plan.js.map +1 -1
- package/dist/src/root/packs/new.d.ts +2 -2
- package/dist/src/root/packs/new.d.ts.map +1 -1
- package/dist/src/root/packs/new.js +8 -13
- package/dist/src/root/packs/new.js.map +1 -1
- package/dist/src/root/packs/publish.d.ts +2 -2
- package/dist/src/root/packs/publish.d.ts.map +1 -1
- package/dist/src/root/packs/publish.js +37 -15
- package/dist/src/root/packs/publish.js.map +1 -1
- package/dist/src/root/packs/remove.d.ts +2 -2
- package/dist/src/root/packs/remove.d.ts.map +1 -1
- package/dist/src/root/packs/remove.js +13 -5
- package/dist/src/root/packs/remove.js.map +1 -1
- package/dist/src/root/packs/uninstall/command-actions.d.ts +2 -2
- package/dist/src/root/packs/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/packs/uninstall/command-actions.js +33 -14
- package/dist/src/root/packs/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/packs/uninstall/handler.d.ts +1 -1
- package/dist/src/root/packs/uninstall/handler.d.ts.map +1 -1
- package/dist/src/root/packs/uninstall/plan.d.ts +2 -2
- package/dist/src/root/packs/uninstall/plan.d.ts.map +1 -1
- package/dist/src/root/packs/uninstall/plan.js +3 -3
- package/dist/src/root/packs/uninstall/plan.js.map +1 -1
- package/dist/src/root/packs/unpack/handler.d.ts +2 -2
- package/dist/src/root/packs/unpack/handler.d.ts.map +1 -1
- package/dist/src/root/packs/unpack/handler.js +5 -5
- package/dist/src/root/packs/unpack/handler.js.map +1 -1
- package/dist/src/root/packs/unpack/plan.d.ts +2 -2
- package/dist/src/root/packs/unpack/plan.d.ts.map +1 -1
- package/dist/src/root/packs/unpack/plan.js +3 -3
- package/dist/src/root/packs/unpack/plan.js.map +1 -1
- package/dist/src/root/prune/handler.d.ts +2 -2
- package/dist/src/root/prune/handler.d.ts.map +1 -1
- package/dist/src/root/setup.d.ts +21 -1
- package/dist/src/root/setup.d.ts.map +1 -1
- package/dist/src/root/setup.js +52 -25
- package/dist/src/root/setup.js.map +1 -1
- package/dist/src/root/shared/extension-version.d.ts +40 -0
- package/dist/src/root/shared/extension-version.d.ts.map +1 -0
- package/dist/src/root/shared/extension-version.js +113 -0
- package/dist/src/root/shared/extension-version.js.map +1 -0
- package/dist/src/root/shared/publish-preflight.d.ts +10 -0
- package/dist/src/root/shared/publish-preflight.d.ts.map +1 -0
- package/dist/src/root/shared/publish-preflight.js +32 -0
- package/dist/src/root/shared/publish-preflight.js.map +1 -0
- package/dist/src/root/shared/resolve-owner.d.ts +16 -0
- package/dist/src/root/shared/resolve-owner.d.ts.map +1 -0
- package/dist/src/root/shared/resolve-owner.js +33 -0
- package/dist/src/root/shared/resolve-owner.js.map +1 -0
- package/dist/src/root/shared/version-command.d.ts +24 -0
- package/dist/src/root/shared/version-command.d.ts.map +1 -0
- package/dist/src/root/shared/version-command.js +133 -0
- package/dist/src/root/shared/version-command.js.map +1 -0
- package/dist/src/root/skills/_skills.d.ts.map +1 -1
- package/dist/src/root/skills/_skills.js +6 -0
- package/dist/src/root/skills/_skills.js.map +1 -1
- package/dist/src/root/skills/disable.d.ts +2 -2
- package/dist/src/root/skills/disable.d.ts.map +1 -1
- package/dist/src/root/skills/disable.js +6 -6
- package/dist/src/root/skills/disable.js.map +1 -1
- package/dist/src/root/skills/enable.d.ts +2 -2
- package/dist/src/root/skills/enable.d.ts.map +1 -1
- package/dist/src/root/skills/enable.js +5 -5
- package/dist/src/root/skills/enable.js.map +1 -1
- package/dist/src/root/skills/fork.d.ts +2 -2
- package/dist/src/root/skills/fork.d.ts.map +1 -1
- package/dist/src/root/skills/fork.js +6 -10
- package/dist/src/root/skills/fork.js.map +1 -1
- package/dist/src/root/skills/install/command-actions.d.ts +2 -2
- package/dist/src/root/skills/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/skills/install/command-actions.js +3 -3
- package/dist/src/root/skills/install/command-actions.js.map +1 -1
- package/dist/src/root/skills/install/command.js +2 -2
- package/dist/src/root/skills/install/command.js.map +1 -1
- package/dist/src/root/skills/install/handler.d.ts +1 -1
- package/dist/src/root/skills/install/handler.d.ts.map +1 -1
- package/dist/src/root/skills/install/plan.d.ts +2 -2
- package/dist/src/root/skills/install/plan.d.ts.map +1 -1
- package/dist/src/root/skills/install/plan.js +3 -3
- package/dist/src/root/skills/install/plan.js.map +1 -1
- package/dist/src/root/skills/install/resolve-skill-install-source.d.ts +3 -3
- package/dist/src/root/skills/install/resolve-skill-install-source.d.ts.map +1 -1
- package/dist/src/root/skills/install/resolve-skill-install-source.js +5 -5
- package/dist/src/root/skills/install/resolve-skill-install-source.js.map +1 -1
- package/dist/src/root/skills/list.d.ts +2 -2
- package/dist/src/root/skills/list.d.ts.map +1 -1
- package/dist/src/root/skills/list.js +2 -2
- package/dist/src/root/skills/list.js.map +1 -1
- package/dist/src/root/skills/new.d.ts +2 -2
- package/dist/src/root/skills/new.d.ts.map +1 -1
- package/dist/src/root/skills/new.js +9 -14
- package/dist/src/root/skills/new.js.map +1 -1
- package/dist/src/root/skills/prune/handler.d.ts +6 -6
- package/dist/src/root/skills/prune/handler.d.ts.map +1 -1
- package/dist/src/root/skills/prune/handler.js +7 -7
- package/dist/src/root/skills/prune/handler.js.map +1 -1
- package/dist/src/root/skills/publish.d.ts +2 -2
- package/dist/src/root/skills/publish.d.ts.map +1 -1
- package/dist/src/root/skills/publish.js +40 -16
- package/dist/src/root/skills/publish.js.map +1 -1
- package/dist/src/root/skills/rename.d.ts +2 -2
- package/dist/src/root/skills/rename.d.ts.map +1 -1
- package/dist/src/root/skills/rename.js +4 -4
- package/dist/src/root/skills/rename.js.map +1 -1
- package/dist/src/root/skills/uninstall/command-actions.d.ts +2 -2
- package/dist/src/root/skills/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/skills/uninstall/command-actions.js +4 -4
- package/dist/src/root/skills/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/skills/uninstall/handler.d.ts +1 -1
- package/dist/src/root/skills/uninstall/handler.d.ts.map +1 -1
- package/dist/src/root/skills/uninstall/plan.d.ts +2 -2
- package/dist/src/root/skills/uninstall/plan.d.ts.map +1 -1
- package/dist/src/root/skills/uninstall/plan.js +3 -3
- package/dist/src/root/skills/uninstall/plan.js.map +1 -1
- package/dist/src/root/skills/update/handler.d.ts +2 -2
- package/dist/src/root/skills/update/handler.d.ts.map +1 -1
- package/dist/src/root/skills/update/handler.js +6 -6
- package/dist/src/root/skills/update/handler.js.map +1 -1
- package/dist/src/root/subagents/disable/handler.d.ts +2 -2
- package/dist/src/root/subagents/disable/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/disable/handler.js +5 -5
- package/dist/src/root/subagents/disable/handler.js.map +1 -1
- package/dist/src/root/subagents/enable/handler.d.ts +2 -2
- package/dist/src/root/subagents/enable/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/enable/handler.js +5 -5
- package/dist/src/root/subagents/enable/handler.js.map +1 -1
- package/dist/src/root/subagents/install/command-actions.d.ts +2 -2
- package/dist/src/root/subagents/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/subagents/install/command-actions.js +3 -3
- package/dist/src/root/subagents/install/command-actions.js.map +1 -1
- package/dist/src/root/subagents/install/command.js +2 -2
- package/dist/src/root/subagents/install/command.js.map +1 -1
- package/dist/src/root/subagents/install/handler.d.ts +1 -1
- package/dist/src/root/subagents/install/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/install/plan.d.ts +2 -2
- package/dist/src/root/subagents/install/plan.d.ts.map +1 -1
- package/dist/src/root/subagents/install/plan.js +3 -3
- package/dist/src/root/subagents/install/plan.js.map +1 -1
- package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts +3 -3
- package/dist/src/root/subagents/install/resolve-subagent-install-source.d.ts.map +1 -1
- package/dist/src/root/subagents/install/resolve-subagent-install-source.js +4 -4
- package/dist/src/root/subagents/install/resolve-subagent-install-source.js.map +1 -1
- package/dist/src/root/subagents/list/handler.d.ts +2 -2
- package/dist/src/root/subagents/list/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/list/handler.js +3 -3
- package/dist/src/root/subagents/list/handler.js.map +1 -1
- package/dist/src/root/subagents/new/command.js +2 -2
- package/dist/src/root/subagents/new/command.js.map +1 -1
- package/dist/src/root/subagents/new/handler.d.ts +2 -2
- package/dist/src/root/subagents/new/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/new/handler.js +7 -11
- package/dist/src/root/subagents/new/handler.js.map +1 -1
- package/dist/src/root/subagents/publish/handler.d.ts +2 -2
- package/dist/src/root/subagents/publish/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/publish/handler.js +31 -15
- package/dist/src/root/subagents/publish/handler.js.map +1 -1
- package/dist/src/root/subagents/rename/handler.d.ts +2 -2
- package/dist/src/root/subagents/rename/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/rename/handler.js +4 -3
- package/dist/src/root/subagents/rename/handler.js.map +1 -1
- package/dist/src/root/subagents/uninstall/command-actions.d.ts +2 -2
- package/dist/src/root/subagents/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/subagents/uninstall/command-actions.js +2 -2
- package/dist/src/root/subagents/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/subagents/uninstall/handler.d.ts +1 -1
- package/dist/src/root/subagents/uninstall/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/update/handler.d.ts +2 -2
- package/dist/src/root/subagents/update/handler.d.ts.map +1 -1
- package/dist/src/root/subagents/update/handler.js +3 -3
- package/dist/src/root/subagents/update/handler.js.map +1 -1
- package/dist/src/root/sync/command.d.ts +3 -0
- package/dist/src/root/sync/command.d.ts.map +1 -0
- package/dist/src/root/sync/command.js +28 -0
- package/dist/src/root/sync/command.js.map +1 -0
- package/dist/src/root/sync/handler.d.ts +17 -0
- package/dist/src/root/sync/handler.d.ts.map +1 -0
- package/dist/src/root/sync/handler.js +76 -0
- package/dist/src/root/sync/handler.js.map +1 -0
- package/dist/src/root/uninstall/handler.d.ts +1 -1
- package/dist/src/root/uninstall/handler.d.ts.map +1 -1
- package/dist/src/root/update/handler.d.ts +1 -1
- package/dist/src/root/update/handler.d.ts.map +1 -1
- package/dist/src/root/update/workspace-update-handler.d.ts +1 -1
- package/dist/src/root/update/workspace-update-handler.d.ts.map +1 -1
- package/dist/src/root/update/workspace-update.d.ts +2 -2
- package/dist/src/root/update/workspace-update.d.ts.map +1 -1
- package/dist/src/root/update/workspace-update.js +11 -11
- package/dist/src/root/update/workspace-update.js.map +1 -1
- package/dist/src/root/view/command.d.ts +3 -0
- package/dist/src/root/view/command.d.ts.map +1 -0
- package/dist/src/root/view/command.js +25 -0
- package/dist/src/root/view/command.js.map +1 -0
- package/dist/src/root/view/handler.d.ts +11 -0
- package/dist/src/root/view/handler.d.ts.map +1 -0
- package/dist/src/root/view/handler.js +175 -0
- package/dist/src/root/view/handler.js.map +1 -0
- package/dist/src/runtime.d.ts +2 -2
- package/dist/src/runtime.d.ts.map +1 -1
- package/dist/src/runtime.js +8 -2
- package/dist/src/runtime.js.map +1 -1
- package/dist/src/test-helpers.d.ts +7 -6
- package/dist/src/test-helpers.d.ts.map +1 -1
- package/dist/src/test-helpers.js +2 -2
- package/dist/src/test-helpers.js.map +1 -1
- package/dist/src/test-stubs.d.ts +9 -32
- package/dist/src/test-stubs.d.ts.map +1 -1
- package/dist/src/test-stubs.js +39 -40
- package/dist/src/test-stubs.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
[](https://github.com/agentxm/axm/actions/workflows/ci.yml)
|
|
12
12
|
[](https://github.com/agentxm/axm/blob/main/LICENSE)
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# AXM — Extension manager for coding agents and AI assistants
|
|
15
15
|
|
|
16
16
|
> [!WARNING]
|
|
17
|
-
>
|
|
17
|
+
> AXM is in **early alpha** testing. Capabilities and APIs may change. To be
|
|
18
18
|
> included in the test user group, reach out to
|
|
19
19
|
> [hello@agentxm.ai](mailto:hello@agentxm.ai).
|
|
20
20
|
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
|
-
**Ask your agent to install
|
|
32
|
+
**Ask your agent to install AXM:**
|
|
33
33
|
|
|
34
34
|
```
|
|
35
|
-
Follow these install instructions to set up
|
|
35
|
+
Follow these install instructions to set up AXM: https://axm.sh/install.md
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
**macOS / Linux:**
|
|
@@ -67,7 +67,7 @@ npx axm.sh --version
|
|
|
67
67
|
|
|
68
68
|
## Getting started
|
|
69
69
|
|
|
70
|
-
Initialize
|
|
70
|
+
Initialize AXM in your project. AXM detects your installed agents and creates
|
|
71
71
|
an `.axm/` workspace to manage extensions across all of them.
|
|
72
72
|
|
|
73
73
|
```bash
|
|
@@ -80,7 +80,7 @@ See what's recommended for your project:
|
|
|
80
80
|
axm discover
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
Install an extension and
|
|
83
|
+
Install an extension and AXM wires it into every agent in your workspace:
|
|
84
84
|
|
|
85
85
|
```bash
|
|
86
86
|
axm install @acme/skills/code-review
|
|
@@ -185,7 +185,7 @@ axm token # Print the current token (for scripting)
|
|
|
185
185
|
|
|
186
186
|
## Supported agents
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
AXM supports nearly 40 agents — Claude Code, Codex, Cursor,
|
|
189
189
|
Gemini CLI, GitHub Copilot, OpenCode, Windsurf, Cline, Continue, Roo, Goose,
|
|
190
190
|
and more. If your agent isn't there,
|
|
191
191
|
[open an issue](https://github.com/agentxm/axm/issues) and we'll add it.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by packages/cli/scripts/generate-help-topics.ts.
|
|
3
|
+
* Do not edit by hand.
|
|
4
|
+
*/
|
|
5
|
+
export declare const HELP_TOPIC_NAMES: readonly ["basic-usage", "exit-codes", "getting-started", "skills"];
|
|
6
|
+
export type HelpTopicName = (typeof HELP_TOPIC_NAMES)[number];
|
|
7
|
+
export declare const HELP_TOPICS: Record<HelpTopicName, string>;
|
|
8
|
+
//# sourceMappingURL=help-topics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-topics.d.ts","sourceRoot":"","sources":["../../../src/__generated__/help-topics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,qEAAsE,CAAC;AAEpG,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CASrD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by packages/cli/scripts/generate-help-topics.ts.
|
|
3
|
+
* Do not edit by hand.
|
|
4
|
+
*/
|
|
5
|
+
export const HELP_TOPIC_NAMES = ["basic-usage", "exit-codes", "getting-started", "skills"];
|
|
6
|
+
export const HELP_TOPICS = {
|
|
7
|
+
"basic-usage": '# Basic usage\n\nAXM is an agent extension manager for coding agents and AI assistants.\n\n- One tool to manage agent skills, subagents, commands, and more across agents.\n- Bundle skills, subagents, commands and more with extension packs\n- Package and publish your extensions to the AgentXM.ai registry\n- Discover and distribute agent extensions for your platform package ecosystems, including JavaScript, Python, Rust, Java, .NET, Ruby, Go, and more\n\n## How to use AXM\n\nThe best way to use AXM is just to ask your agent to do it:\n\n- "Create a new skill to do <x>"\n- "Update subagent to do <y>"\n- "Disable the doomscroll skill"\n- "Publish a new extension pack with my karate-shihan subagent, rei command, and nunchuck skill"\n\nUse `axm help` to see a list of topics on how to use AXM for your specific use case.\n\nYou will need to have an AgentXM.ai account to publish extensions to the registry or install private extensions.\n\n## How AXM works\n\n_Extensions_ are agent extensions managed by AXM: skills, subagents, and commands. Coding agents may have other extensibility mechanisms (e.g. hooks, plugins, etc.) that aren\'t managed by AXM.\n\nAfter running `axm setup`, AXM configures a workspace settings file at [`.axm/settings.json`(https://axm.sh/schemas/settings.schema.json). Here the installed extensions will be listed, sometimes with extended metadata Operations will have an effect for any coding agent configured in `$.agents`. Extensions are typically referenced by their full name: `<@owner>/<skills|subagents...>/<name>` and vendored under `.axm/extensions/<@owner>/<type>/<name>`. Non-registry sourced extensions are vendored under `.axm/extensions/external/<type>/<name>`. `.axm` should not be ignored by source control. The `.axm/axm-lock.yaml` file serves to provide additional metadata about resolved metadata at install time.\n\n### Ignoring Extensions\n\nIt\'s possible to ignore pre-existing skills and other extensions in your workspace so that AXM won\'t modify or prune them. This is helpful when these extensions are installed/managed by some other tool or mechanism.\n\n### Enabling/Disabling Extensions\n\nAXM makes it easy to enable or disable extensions on the fly.\n\n- `axm skills disable doomscroll`\n- `axm subagents enable karate-shihan`\n\n### Updating Extensions\n\nAn `authored: true` flag in the settings entry for an extension indicates that it is acceptable to make changes to the extension in the workspace. It does not need to be forked or copied prior to modification. This should be set to true for any workspace where you anticpate making and publishing changes for an extension.\n\n### Publishing Extensions\n\nUse `axm view` to get the latest published version and use `axm version` to bump if needed.\n\n## Where to go next\n\n- `axm help getting-started` — first-time setup for a workspace that has\n never used AXM.\n- `axm help skills` — working with skills\n- `axm help exit-codes` — process exit codes and their meaning.\n- `axm <command> --help` — flags and examples for any command.\n',
|
|
8
|
+
"exit-codes": "# Exit codes\n\nAXM uses stable process exit codes so scripts can distinguish success, usage\nerrors, runtime errors, and signal termination.\n\n| Code | Meaning |\n| ---- | ------------------------------------------------------- |\n| 0 | Success, including help output and cancelled prompts. |\n| 1 | Runtime or domain error reported as an AppError. |\n| 2 | CLI usage or validation error, such as an unknown flag. |\n| 130 | Signal termination, such as SIGINT or SIGTERM. |\n\nIn JSON output mode, AppError failures use a stable error code shaped like\n`AREA_REASON`, plus a human-readable message and the same process exit code.\n",
|
|
9
|
+
"getting-started": "# Getting started\n\nUse this when the current workspace has never been managed by AXM before. It\nwalks through first-time setup. Once `.axm/` exists, switch to\n`axm help basic-usage`.\n\nAXM manages agent extensions for a workspace: skills, commands, MCP servers,\nsubagents, and packs. A workspace is the project (or user) directory whose\nextensions AXM tracks.\n\n## Confirm AXM is installed\n\n```bash\naxm --version\n```\n\nIf this fails, follow the install bootstrap at `https://axm.sh/install.md`\nbefore continuing. Do not invent a runner fallback such as `bunx`, `pnpx`, or\n`npx` — they skip `axm setup` and split state across cached versions.\n\n## Initialize the workspace\n\nRun setup in the project you want AXM to manage:\n\n```bash\naxm setup\n```\n\nSetup is idempotent. It creates `.axm/`, detects supported coding agents,\nrecords workspace settings, and writes the resolution lockfile. Read\n`axm help basic-usage` to learn what those files do and which ones must be\nchecked in.\n\nFor non-interactive environments, pass `--yes`. To pin which agents AXM\nconfigures, pass one or more `--agent <id>` flags instead of relying on\nauto-detection.\n\n## Add your first extension\n\nOnce setup is complete, install extensions in one of these ways:\n\n```bash\naxm discover --json # suggestions from project deps\naxm install @profile/skills/<name> --yes # install a known registry FQN\naxm skills install owner/repo --yes # install from a GitHub source\n```\n\n`axm discover` is read-only and a good starting point when you do not already\nknow what to install.\n\n## Where to go next\n\n- `axm help basic-usage` — what each workspace file is for, what is safe to\n inspect, what changes state, and what must be checked in.\n- `axm help skills` — anatomy of a native managed skill on disk.\n- `axm <command> --help` — flags and examples for any command.\n- `axm help` — list every available help topic.\n",
|
|
10
|
+
skills: "# Skills\n\nSkill packages live in `./.axm/extensions/<@owner>/skills/<skill-name>`.\n\n## skill.json\n\n[`skill.json`](https://axm.sh/schemas/skill.schema.json) is the skill package manifest for the agentxm.ai registry.\n\n## `src/`\n\nThe `src/` within the skill package contains `SKILL.md` and any other files as specified by the agentskills.io specification.\n\n## Updating skills\n\nThe contents of the `src` symlinked by AXM to the respective agent skill directories, so no need to `axm sync` after an edit. Only run `axm sync` if symlinks or copies are broken.\n\n## Where to go next\n\n- `axm skills --help` — full skill subcommand surface.\n",
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=help-topics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-topics.js","sourceRoot":"","sources":["../../../src/__generated__/help-topics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,CAAU,CAAC;AAIpG,MAAM,CAAC,MAAM,WAAW,GAAkC;IACxD,aAAa,EACX,q/FAAq/F;IACv/F,YAAY,EACV,usBAAusB;IACzsB,iBAAiB,EACf,w7DAAw7D;IAC17D,MAAM,EACJ,4oBAA4oB;CAC/oB,CAAC"}
|
package/dist/src/app.d.ts.map
CHANGED
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAa,OAAO,EAAc,MAAM,qBAAqB,CAAC;AA8CrE,eAAO,MAAM,WAAW,8HAgDvB,CAAC;AAWF,eAAO,MAAM,GAAG,GAAU,OAAM,aAAa,CAAC,MAAM,CAAyB,KAAG,OAAO,CAAC,IAAI,CA8B3F,CAAC"}
|
package/dist/src/app.js
CHANGED
|
@@ -30,10 +30,16 @@ import { installCommand } from "./root/install/command.js";
|
|
|
30
30
|
import { outdatedCommand } from "./root/outdated/command.js";
|
|
31
31
|
import { uninstallCommand } from "./root/uninstall/command.js";
|
|
32
32
|
import { pruneCommand } from "./root/prune/command.js";
|
|
33
|
+
import { syncCommand } from "./root/sync/command.js";
|
|
33
34
|
import { updateCommand } from "./root/update/command.js";
|
|
35
|
+
import { helpCommand } from "./root/help/command.js";
|
|
36
|
+
import { viewCommand } from "./root/view/command.js";
|
|
37
|
+
import { versionCommand } from "./root/shared/version-command.js";
|
|
38
|
+
import { HELP_TOPIC_NAMES } from "./__generated__/help-topics.js";
|
|
34
39
|
const ROOT_COMMAND = "axm";
|
|
35
40
|
const version = loadVersion();
|
|
36
|
-
const
|
|
41
|
+
const HELP_TOPIC_LIST = HELP_TOPIC_NAMES.map((topic) => ` ${topic}`).join("\n");
|
|
42
|
+
const LEARN_MORE_FOOTER = `LEARN MORE\n Use 'axm help <topic>' to read a topic page.\n\nTOPICS\n${HELP_TOPIC_LIST}\n\nCOMMAND HELP\n Use 'axm <command> --help' for command help.\n Report issues at https://github.com/agentxm/axm/issues`;
|
|
37
43
|
removeBuiltInFlag(GlobalFlag.Completions);
|
|
38
44
|
removeBuiltInFlag(GlobalFlag.LogLevel);
|
|
39
45
|
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([
|
|
@@ -52,7 +58,7 @@ export const rootCommand = Command.make(ROOT_COMMAND).pipe(Command.withDescripti
|
|
|
52
58
|
},
|
|
53
59
|
{ command: "axm whoami", description: "Check who you're authenticated as" },
|
|
54
60
|
]), Command.withSubcommands([
|
|
55
|
-
{ group: "GETTING STARTED", commands: [setupCommand, discoverCommand] },
|
|
61
|
+
{ group: "GETTING STARTED", commands: [helpCommand, setupCommand, discoverCommand] },
|
|
56
62
|
{
|
|
57
63
|
group: "EXTENSIONS",
|
|
58
64
|
commands: [skillsCommand, commandsCommand, mcpServersCommand, subagentsCommand, packsCommand],
|
|
@@ -62,8 +68,11 @@ export const rootCommand = Command.make(ROOT_COMMAND).pipe(Command.withDescripti
|
|
|
62
68
|
commands: [
|
|
63
69
|
installCommand,
|
|
64
70
|
updateCommand,
|
|
71
|
+
syncCommand,
|
|
65
72
|
uninstallCommand,
|
|
66
73
|
outdatedCommand,
|
|
74
|
+
viewCommand,
|
|
75
|
+
versionCommand,
|
|
67
76
|
lintCommand,
|
|
68
77
|
pruneCommand,
|
|
69
78
|
upgradeCommand,
|
package/dist/src/app.js.map
CHANGED
|
@@ -1 +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,EAA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F,CACF,CAAC;IACJ,CAAC,EACD,EAAE,IAAI,EAAE,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAShD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,MAAM,CAEjD,CAAC;
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/formatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAShD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,MAAM,CAEjD,CAAC;AA6OH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,KAAG,SAAS,CAAC,SA8Cb,CAAC"}
|
package/dist/src/formatter.js
CHANGED
|
@@ -129,62 +129,36 @@ const toJsonHelpDoc = (doc) => {
|
|
|
129
129
|
...(learnMore !== "" && { learnMore }),
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
// eslint-disable-next-line no-control-regex
|
|
136
|
-
const ANSI_RE = /\x1b\[[0-9;]*m/g;
|
|
137
|
-
/** Detect ALL-CAPS section headers (with optional trailing colon). */
|
|
138
|
-
const isSectionHeader = (line) => {
|
|
139
|
-
const plain = line.replace(ANSI_RE, "").trim();
|
|
140
|
-
return plain.length > 0 && /^[A-Z][A-Z ]+:?$/.test(plain);
|
|
132
|
+
const flagNames = (flag) => {
|
|
133
|
+
const names = [`--${flag.name}`, ...flag.aliases.map((alias) => `-${alias}`)];
|
|
134
|
+
return names.join(", ");
|
|
141
135
|
};
|
|
142
|
-
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
]
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if (isSectionHeader(line)) {
|
|
163
|
-
currentKey = line.replace(ANSI_RE, "").trim();
|
|
164
|
-
sections.set(currentKey, [line]);
|
|
165
|
-
}
|
|
166
|
-
else if (currentKey) {
|
|
167
|
-
const current = sections.get(currentKey);
|
|
168
|
-
if (current !== undefined)
|
|
169
|
-
current.push(line);
|
|
170
|
-
}
|
|
136
|
+
const flagLabel = (flag) => flag.type === "boolean" ? flagNames(flag) : `${flagNames(flag)} <${flag.type}>`;
|
|
137
|
+
const padRows = (rows, indent = " ") => {
|
|
138
|
+
const width = rows.reduce((max, [label]) => Math.max(max, label.length), 0);
|
|
139
|
+
return rows.map(([label, description]) => description === "" ? `${indent}${label}` : `${indent}${label.padEnd(width)} ${description}`);
|
|
140
|
+
};
|
|
141
|
+
const commandDescription = (command) => command.shortDescription ?? command.description;
|
|
142
|
+
const renderRootHelpDoc = (doc) => {
|
|
143
|
+
const sections = [
|
|
144
|
+
["", BRANDING, "", doc.description].filter((line) => line !== "").join("\n"),
|
|
145
|
+
["USAGE", ` ${doc.usage}`].join("\n"),
|
|
146
|
+
];
|
|
147
|
+
for (const group of doc.subcommands ?? []) {
|
|
148
|
+
const groupName = group.group ?? "COMMANDS";
|
|
149
|
+
const rows = group.commands.map((command) => [command.name, commandDescription(command)]);
|
|
150
|
+
sections.push([`${groupName} COMMANDS`, ...padRows(rows)].join("\n"));
|
|
151
|
+
}
|
|
152
|
+
const flags = [...doc.flags, ...(doc.globalFlags ?? [])];
|
|
153
|
+
if (flags.length > 0) {
|
|
154
|
+
const rows = flags.map((flag) => [flagLabel(flag), Option.getOrElse(flag.description, () => "")]);
|
|
155
|
+
sections.push(["FLAGS", ...padRows(rows)].join("\n"));
|
|
171
156
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
sectionLines.pop();
|
|
176
|
-
}
|
|
157
|
+
if (doc.examples !== undefined && doc.examples.length > 0) {
|
|
158
|
+
const rows = doc.examples.map((example) => [example.command, example.description ?? ""]);
|
|
159
|
+
sections.push(["EXAMPLES", ...padRows(rows)].join("\n"));
|
|
177
160
|
}
|
|
178
|
-
|
|
179
|
-
const orderedKeys = new Set(ROOT_SECTION_ORDER);
|
|
180
|
-
const ordered = ROOT_SECTION_ORDER.flatMap((key) => {
|
|
181
|
-
const s = sections.get(key);
|
|
182
|
-
return s !== undefined ? [s.join("\n")] : [];
|
|
183
|
-
});
|
|
184
|
-
const unrecognized = [...sections.entries()]
|
|
185
|
-
.filter(([key]) => !orderedKeys.has(key))
|
|
186
|
-
.map(([, sectionLines]) => sectionLines.join("\n"));
|
|
187
|
-
return [...ordered, ...unrecognized].join("\n\n");
|
|
161
|
+
return sections.join("\n\n");
|
|
188
162
|
};
|
|
189
163
|
// ---------------------------------------------------------------------------
|
|
190
164
|
// Formatter
|
|
@@ -208,9 +182,8 @@ export const makeAxmFormatter = (options) => {
|
|
|
208
182
|
}
|
|
209
183
|
const adjusted = getAdjustedHelpDoc(doc);
|
|
210
184
|
let output = base.formatHelpDoc(adjusted);
|
|
211
|
-
// Root help: reorder sections, omit DESCRIPTION, and prepend branding
|
|
212
185
|
if (!isSubcommandDoc(doc)) {
|
|
213
|
-
output =
|
|
186
|
+
output = renderRootHelpDoc(adjusted);
|
|
214
187
|
}
|
|
215
188
|
const learnMore = getLearnMore(doc);
|
|
216
189
|
if (learnMore !== "") {
|
|
@@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pD,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_commands.d.ts","sourceRoot":"","sources":["../../../../src/root/commands/_commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"_commands.d.ts","sourceRoot":"","sources":["../../../../src/root/commands/_commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAY9C,eAAO,MAAM,eAAe,uRA2C3B,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { disableCommand } from "./disable.js";
|
|
|
7
7
|
import { updateCommand } from "./update.js";
|
|
8
8
|
import { newCommand } from "./new.js";
|
|
9
9
|
import { publishCommand } from "./publish.js";
|
|
10
|
+
import { commandsVersionCommand } from "../shared/version-command.js";
|
|
10
11
|
export const commandsCommand = Command.make("commands").pipe(Command.withDescription("Manage commands"), Command.withExamples([
|
|
11
12
|
{
|
|
12
13
|
command: "axm commands install @acme/commands/my-cmd",
|
|
@@ -32,6 +33,10 @@ export const commandsCommand = Command.make("commands").pipe(Command.withDescrip
|
|
|
32
33
|
command: "axm commands publish @acme/commands/my-cmd",
|
|
33
34
|
description: "Publish a command to a registry",
|
|
34
35
|
},
|
|
36
|
+
{
|
|
37
|
+
command: "axm commands version @acme/commands/my-cmd patch",
|
|
38
|
+
description: "Bump a command version",
|
|
39
|
+
},
|
|
35
40
|
]), Command.withSubcommands([
|
|
36
41
|
installCommand,
|
|
37
42
|
uninstallCommand,
|
|
@@ -40,6 +45,7 @@ export const commandsCommand = Command.make("commands").pipe(Command.withDescrip
|
|
|
40
45
|
disableCommand,
|
|
41
46
|
updateCommand,
|
|
42
47
|
newCommand,
|
|
48
|
+
commandsVersionCommand,
|
|
43
49
|
publishCommand,
|
|
44
50
|
]));
|
|
45
51
|
//# sourceMappingURL=_commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_commands.js","sourceRoot":"","sources":["../../../../src/root/commands/_commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"_commands.js","sourceRoot":"","sources":["../../../../src/root/commands/_commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAC1D,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAC1C,OAAO,CAAC,YAAY,CAAC;IACnB;QACE,OAAO,EAAE,4CAA4C;QACrD,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE,yBAAyB;KACvC;IACD;QACE,OAAO,EAAE,4BAA4B;QACrC,WAAW,EAAE,2BAA2B;KACzC;IACD;QACE,OAAO,EAAE,+BAA+B;QACxC,WAAW,EAAE,kBAAkB;KAChC;IACD;QACE,OAAO,EAAE,yBAAyB;QAClC,WAAW,EAAE,wBAAwB;KACtC;IACD;QACE,OAAO,EAAE,4CAA4C;QACrD,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,OAAO,EAAE,kDAAkD;QAC3D,WAAW,EAAE,wBAAwB;KACtC;CACF,CAAC,EACF,OAAO,CAAC,eAAe,CAAC;IACtB,cAAc;IACd,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,cAAc;IACd,aAAa;IACb,UAAU;IACV,sBAAsB;IACtB,cAAc;CACf,CAAC,CACH,CAAC"}
|
|
@@ -5,13 +5,13 @@ import * as Effect from "effect/Effect";
|
|
|
5
5
|
import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
|
|
6
6
|
import { type ExtensionName } from "@agentxm/client-core/unstable/extensions";
|
|
7
7
|
import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
|
|
8
|
-
import {
|
|
8
|
+
import { WorkspaceMutations } from "@agentxm/client-core/unstable/workspace";
|
|
9
9
|
export interface DisableCommandHandlerArgs {
|
|
10
10
|
readonly name: ExtensionName;
|
|
11
11
|
readonly yes: boolean;
|
|
12
12
|
readonly force: boolean;
|
|
13
13
|
readonly preview: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const handleDisableCommand: (args: DisableCommandHandlerArgs) => Effect.Effect<undefined, import("@agentxm/client-core/unstable/app-error").AppError | import("packages/core/dist/src/unstable/cli-prompt/prompt-cancelled.js").PromptCancelled, CliRenderer |
|
|
15
|
+
export declare const handleDisableCommand: (args: DisableCommandHandlerArgs) => Effect.Effect<undefined, import("@agentxm/client-core/unstable/app-error").AppError | import("packages/core/dist/src/unstable/cli-prompt/prompt-cancelled.js").PromptCancelled, CliRenderer | WorkspaceMutations | FileSystem.FileSystem | Path.Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | import("@agentxm/client-core/unstable/cli-flags").Verbosity | CodingAgentRepository>;
|
|
16
16
|
export declare const disableCommand: Command.Command<"disable", Record<string, unknown>, {}, never, "effect/unstable/cli/GlobalFlag/axm-non-interactive" | "effect/unstable/cli/GlobalFlag/axm-json" | "effect/unstable/cli/GlobalFlag/axm-quiet" | "effect/unstable/cli/GlobalFlag/axm-verbose" | "effect/unstable/cli/GlobalFlag/axm-debug">;
|
|
17
17
|
//# sourceMappingURL=disable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../../src/root/commands/disable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../../src/root/commands/disable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAiB7E,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,oBAAoB,yaA6F/B,CAAC;AAYH,eAAO,MAAM,cAAc,2SAqB1B,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { makeAppError } from "@agentxm/client-core/unstable/app-error";
|
|
|
7
7
|
import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
|
|
8
8
|
import { decodeExtensionNameSync, } from "@agentxm/client-core/unstable/extensions";
|
|
9
9
|
import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
|
|
10
|
-
import {
|
|
10
|
+
import { WorkspaceMutations } from "@agentxm/client-core/unstable/workspace";
|
|
11
11
|
import { disableCommand as runDisableCommand } from "@agentxm/client-core/unstable/commands";
|
|
12
12
|
import { forceFlag, previewFlag, yesFlag } from "@agentxm/client-core/unstable/cli-flags";
|
|
13
13
|
import { withArgvTracking } from "@agentxm/client-core/unstable/cli-runtime";
|
|
@@ -18,14 +18,14 @@ import { scopeFlag } from "../../cli-flags.js";
|
|
|
18
18
|
import { toJobStepResult } from "./job-step-result.js";
|
|
19
19
|
import { combinePlanSections, makeAgentSection, makeRenderedFilesSection, } from "./preview-sections.js";
|
|
20
20
|
export const handleDisableCommand = Effect.fn("DisableCommand.handle")(function* (args) {
|
|
21
|
-
const ws = yield*
|
|
21
|
+
const ws = yield* WorkspaceMutations;
|
|
22
22
|
const renderer = yield* CliRenderer;
|
|
23
23
|
const fs = yield* FileSystem.FileSystem;
|
|
24
24
|
const path = yield* Path.Path;
|
|
25
25
|
const agentRepo = yield* CodingAgentRepository;
|
|
26
26
|
yield* renderer.info("axm commands disable");
|
|
27
|
-
// Load installed commands (configured + implicit)
|
|
28
|
-
const installedCommands = yield* ws.getInstalledCommands();
|
|
27
|
+
// Load installed commands (configured + implicit) from the read-model record projection.
|
|
28
|
+
const installedCommands = yield* ws.records.getInstalledCommands();
|
|
29
29
|
const installedEntry = installedCommands[args.name];
|
|
30
30
|
// Validate: command is installed (ignored names are excluded from installed)
|
|
31
31
|
if (installedEntry === undefined) {
|
|
@@ -61,7 +61,7 @@ export const handleDisableCommand = Effect.fn("DisableCommand.handle")(function*
|
|
|
61
61
|
const step = {
|
|
62
62
|
readiness: "ready",
|
|
63
63
|
label: args.name,
|
|
64
|
-
run: runDisableCommand(op).pipe(Effect.map(toJobStepResult), Effect.provideService(
|
|
64
|
+
run: runDisableCommand(op).pipe(Effect.map(toJobStepResult), Effect.provideService(WorkspaceMutations, ws), Effect.provideService(FileSystem.FileSystem, fs), Effect.provideService(Path.Path, path), Effect.provideService(CodingAgentRepository, agentRepo)),
|
|
65
65
|
};
|
|
66
66
|
const plan = {
|
|
67
67
|
_tag: "Plan",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../../src/root/commands/disable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAA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C1F,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,0CAA0C,CAAC,CAAC;CACnF,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CACxC,SAAS,EACT,aAAa,EACb,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CACvC,oBAAoB,CAAC,EAAE,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CACrF,aAAa,CAAC,KAAK,CAAC,EACpB,WAAW,CAAC,kBAAkB,CAAC,CAChC,CACJ,CAAC,IAAI,CACJ,gBAAgB,CAAC,aAAa,CAAC,EAC/B,OAAO,CAAC,eAAe,CAAC,2CAA2C,CAAC,EACpE,OAAO,CAAC,YAAY,CAAC;IACnB;QACE,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,mDAAmD;KACjE;IACD;QACE,OAAO,EAAE,0CAA0C;QACnD,WAAW,EAAE,sCAAsC;KACpD;CACF,CAAC,CACH,CAAC"}
|
|
@@ -5,13 +5,13 @@ import * as Effect from "effect/Effect";
|
|
|
5
5
|
import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
|
|
6
6
|
import { type ExtensionName } from "@agentxm/client-core/unstable/extensions";
|
|
7
7
|
import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
|
|
8
|
-
import {
|
|
8
|
+
import { WorkspaceMutations } from "@agentxm/client-core/unstable/workspace";
|
|
9
9
|
export interface EnableCommandHandlerArgs {
|
|
10
10
|
readonly name: ExtensionName;
|
|
11
11
|
readonly yes: boolean;
|
|
12
12
|
readonly force: boolean;
|
|
13
13
|
readonly preview: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const handleEnableCommand: (args: EnableCommandHandlerArgs) => Effect.Effect<undefined, import("@agentxm/client-core/unstable/app-error").AppError | import("packages/core/dist/src/unstable/cli-prompt/prompt-cancelled.js").PromptCancelled, CliRenderer |
|
|
15
|
+
export declare const handleEnableCommand: (args: EnableCommandHandlerArgs) => Effect.Effect<undefined, import("@agentxm/client-core/unstable/app-error").AppError | import("packages/core/dist/src/unstable/cli-prompt/prompt-cancelled.js").PromptCancelled, CliRenderer | WorkspaceMutations | FileSystem.FileSystem | Path.Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | import("@agentxm/client-core/unstable/cli-flags").Verbosity | CodingAgentRepository>;
|
|
16
16
|
export declare const enableCommand: Command.Command<"enable", Record<string, unknown>, {}, never, "effect/unstable/cli/GlobalFlag/axm-non-interactive" | "effect/unstable/cli/GlobalFlag/axm-json" | "effect/unstable/cli/GlobalFlag/axm-quiet" | "effect/unstable/cli/GlobalFlag/axm-verbose" | "effect/unstable/cli/GlobalFlag/axm-debug">;
|
|
17
17
|
//# sourceMappingURL=enable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/root/commands/enable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/root/commands/enable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAY,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAa7E,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,waAgG9B,CAAC;AAcH,eAAO,MAAM,aAAa,0SAqBzB,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { makeAppError } from "@agentxm/client-core/unstable/app-error";
|
|
|
7
7
|
import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
|
|
8
8
|
import { decodeExtensionNameSync, } from "@agentxm/client-core/unstable/extensions";
|
|
9
9
|
import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
|
|
10
|
-
import {
|
|
10
|
+
import { WorkspaceMutations } from "@agentxm/client-core/unstable/workspace";
|
|
11
11
|
import { enableCommand as runEnableCommand } from "@agentxm/client-core/unstable/commands";
|
|
12
12
|
import { forceFlag, previewFlag, yesFlag } from "@agentxm/client-core/unstable/cli-flags";
|
|
13
13
|
import { withArgvTracking } from "@agentxm/client-core/unstable/cli-runtime";
|
|
@@ -18,14 +18,14 @@ import { scopeFlag } from "../../cli-flags.js";
|
|
|
18
18
|
import { toJobStepResult } from "./job-step-result.js";
|
|
19
19
|
import { combinePlanSections, makeAgentSection } from "./preview-sections.js";
|
|
20
20
|
export const handleEnableCommand = Effect.fn("EnableCommand.handle")(function* (args) {
|
|
21
|
-
const ws = yield*
|
|
21
|
+
const ws = yield* WorkspaceMutations;
|
|
22
22
|
const renderer = yield* CliRenderer;
|
|
23
23
|
const fs = yield* FileSystem.FileSystem;
|
|
24
24
|
const path = yield* Path.Path;
|
|
25
25
|
const agentRepo = yield* CodingAgentRepository;
|
|
26
26
|
yield* renderer.info("axm commands enable");
|
|
27
|
-
// Load installed commands (configured + implicit)
|
|
28
|
-
const installedCommands = yield* ws.getInstalledCommands();
|
|
27
|
+
// Load installed commands (configured + implicit) from the read-model record projection.
|
|
28
|
+
const installedCommands = yield* ws.records.getInstalledCommands();
|
|
29
29
|
const entry = installedCommands[args.name];
|
|
30
30
|
// Validate: command is installed (ignored names are excluded from installed)
|
|
31
31
|
if (entry === undefined) {
|
|
@@ -62,7 +62,7 @@ export const handleEnableCommand = Effect.fn("EnableCommand.handle")(function* (
|
|
|
62
62
|
const step = {
|
|
63
63
|
readiness: "ready",
|
|
64
64
|
label: args.name,
|
|
65
|
-
run: runEnableCommand(op).pipe(Effect.map(toJobStepResult), Effect.provideService(
|
|
65
|
+
run: runEnableCommand(op).pipe(Effect.map(toJobStepResult), Effect.provideService(WorkspaceMutations, ws), Effect.provideService(FileSystem.FileSystem, fs), Effect.provideService(Path.Path, path), Effect.provideService(CodingAgentRepository, agentRepo)),
|
|
66
66
|
};
|
|
67
67
|
const plan = {
|
|
68
68
|
_tag: "Plan",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/root/commands/enable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,MAAM,MAAM,eAAe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,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;IACtE,KAAK,EAAE,SAAS,CAAC,IAAI,CACnB,IAAI,CAAC,eAAe,CAAC,wDAAwD,CAAC,CAC/E;IACD,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,yCAAyC,CAAC,CAAC;CAClF,CAAC;AAEX,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CACvC,QAAQ,EACR,YAAY,EACZ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CACvC,mBAAmB,CAAC,EAAE,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CACpF,aAAa,CAAC,KAAK,CAAC,EACpB,WAAW,CAAC,iBAAiB,CAAC,CAC/B,CACJ,CAAC,IAAI,CACJ,gBAAgB,CAAC,YAAY,CAAC,EAC9B,OAAO,CAAC,eAAe,CAAC,sCAAsC,CAAC,EAC/D,OAAO,CAAC,YAAY,CAAC;IACnB;QACE,OAAO,EAAE,4BAA4B;QACrC,WAAW,EAAE,6CAA6C;KAC3D;IACD;QACE,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EAAE,oCAAoC;KAClD;CACF,CAAC,CACH,CAAC"}
|
|
@@ -23,7 +23,7 @@ import type { ExtensionName, Handle } from "@agentxm/client-core/unstable/extens
|
|
|
23
23
|
import type { VersionConstraint } from "@agentxm/client-core/unstable/version-constraints";
|
|
24
24
|
import type { RegistrySource } from "@agentxm/client-core/unstable/sources";
|
|
25
25
|
import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
|
|
26
|
-
import {
|
|
26
|
+
import { WorkspaceMutations } from "@agentxm/client-core/unstable/workspace";
|
|
27
27
|
import { CommandManager, type CommandExtensionRef } from "@agentxm/client-core/unstable/commands";
|
|
28
28
|
import type { InstallExtensionCommandWorkflowActions } from "@agentxm/client-core/unstable/workflows";
|
|
29
29
|
import type { InstallCommandCommandIntent } from "./intent.js";
|
|
@@ -56,6 +56,6 @@ export declare class InstallCommandCommandWorkflowActions extends InstallCommand
|
|
|
56
56
|
* Constructs the actions by resolving all services at layer-build time.
|
|
57
57
|
* Each action method closes over the captured services so `R = never`.
|
|
58
58
|
*/
|
|
59
|
-
export declare const InstallCommandCommandWorkflowActionsLive: Layer.Layer<InstallCommandCommandWorkflowActions, never, SourceHostProviders |
|
|
59
|
+
export declare const InstallCommandCommandWorkflowActionsLive: Layer.Layer<InstallCommandCommandWorkflowActions, never, SourceHostProviders | WorkspaceMutations | CommandManager | FileSystem.FileSystem | Path.Path>;
|
|
60
60
|
export {};
|
|
61
61
|
//# sourceMappingURL=command-actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-actions.d.ts","sourceRoot":"","sources":["../../../../../src/root/commands/install/command-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAGpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAEL,mBAAmB,EACpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"command-actions.d.ts","sourceRoot":"","sources":["../../../../../src/root/commands/install/command-actions.ts"],"names":[],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