axm.sh 0.6.2 → 0.7.2
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/dist/src/__generated__/help-topics.js +1 -1
- package/dist/src/__generated__/help-topics.js.map +1 -1
- package/dist/src/root/setup/bundled-axm-skill.d.ts +1 -0
- package/dist/src/root/setup/bundled-axm-skill.d.ts.map +1 -1
- package/dist/src/root/setup/bundled-axm-skill.js +6 -1
- package/dist/src/root/setup/bundled-axm-skill.js.map +1 -1
- package/dist/src/root/setup.d.ts.map +1 -1
- package/dist/src/root/setup.js +20 -2
- package/dist/src/root/setup.js.map +1 -1
- package/dist/src/root/upgrade/handler.d.ts +2 -1
- package/dist/src/root/upgrade/handler.d.ts.map +1 -1
- package/dist/src/root/upgrade/handler.js +89 -27
- package/dist/src/root/upgrade/handler.js.map +1 -1
- package/dist/src/root/upgrade/subprocess.d.ts +23 -0
- package/dist/src/root/upgrade/subprocess.d.ts.map +1 -0
- package/dist/src/root/upgrade/subprocess.js +58 -0
- package/dist/src/root/upgrade/subprocess.js.map +1 -0
- package/dist/src/root/upgrade/upgrade.d.ts.map +1 -1
- package/dist/src/root/upgrade/upgrade.js +2 -1
- package/dist/src/root/upgrade/upgrade.js.map +1 -1
- package/package.json +3 -3
|
@@ -16,7 +16,7 @@ export const HELP_TOPICS = {
|
|
|
16
16
|
"basic-usage": '# Basic usage\n\nAXM is the 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 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 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). Installed extensions are listed there, sometimes with extended metadata. Management operations apply to every coding agent configured in `$.agents`.\n\nExtensions 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 records resolved metadata captured at install time.\n\n### Authoring and editing 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. Set this to `true` for any workspace where you anticipate making and publishing changes for an extension.\n\nMake any desired changes to authored extensions inside the extension\'s directory `.axm/extensions/<@owner>/<type>/<name>` per the appropriate help topic for that extension type, followed by `axm sync` to render the changes to different coding agent folders and configurations.\n\n### Publishing extensions\n\nUse `axm view` to get the latest published version and use `axm version` to bump if needed.\n\n### Enabling and 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### 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## Where to go next\n\n**Use `axm help` to see a list of topics and select the one relevant to your task.**\n\n- `axm help getting-started` — first-time setup for a workspace that has never used AXM\n- `axm help settings` — `.axm/settings.json` fields and schema\n- `axm help skills` — working with skills\n- `axm help subagents` — working with subagents\n- `axm help commands` — working with slash commands\n- `axm help packs` — working with packs\n- `axm help exit-codes` — process exit codes and their meaning\n- `axm <command> --help` — flags and examples for any command\n',
|
|
17
17
|
commands: '# Commands\n\nCommand packages live in `./.axm/extensions/<@owner>/commands/<command-name>`.\n\nA command is two files: a registry manifest plus a Markdown content file that\nholds agent-facing frontmatter and the slash-command prompt body.\n\n## command.json\n\n[`command.json`](https://axm.sh/schemas/command.schema.json)\n\n### Schema\n\n```json\n{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$ref": "#/definitions/CommandManifest",\n "definitions": {\n "Handle": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?$",\n "title": "Handle",\n "description": "A unique username or organization name starting with @, like @my-org.",\n "examples": ["@my-org", "@username"]\n }\n ]\n },\n "Version": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)(?:-((?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\\\.(?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\\+([0-9a-zA-Z-]+(?:\\\\.[0-9a-zA-Z-]+)*))?$",\n "title": "Version",\n "description": "A semver version like 1.0.0. Ranges are not allowed here.",\n "examples": ["1.0.0", "2.3.1", "0.1.0-beta.1"]\n }\n ]\n },\n "Author": {\n "type": "object",\n "properties": {\n "name": { "type": "string" },\n "email": { "anyOf": [{ "type": "string" }, { "type": "null" }] },\n "url": { "anyOf": [{ "type": "string" }, { "type": "null" }] }\n },\n "required": ["name"],\n "additionalProperties": false,\n "title": "Author",\n "description": "A person credited as a creator or maintainer of this extension."\n },\n "PackageUrl": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^[Pp][Kk][Gg]:[a-zA-Z][a-zA-Z0-9.+-]*\\\\/.+$",\n "title": "Package URL",\n "description": "A Package URL (purl) string identifying a package across ecosystems (e.g. pkg:npm/react@18.2.0).",\n "examples": ["pkg:npm/react@18.2.0", "pkg:pypi/requests@2.31.0", "pkg:cargo/serde@1.0"]\n }\n ]\n },\n "PackSpec": {\n "type": "string",\n "allOf": [\n { "minLength": 1 },\n {\n "pattern": "^(@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?)\\\\/packs\\\\/([a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?)(?:@.+)?$",\n "title": "Pack Spec",\n "description": "Pack reference with an optional version constraint suffix.",\n "examples": ["@acme/packs/typescript", "@acme/packs/typescript@^1.0.0"]\n }\n ]\n },\n "ExtensionName": {\n "type": "string",\n "allOf": [\n { "minLength": 1 },\n {\n "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",\n "title": "Extension Name",\n "description": "Short name for this command within its owner namespace. Combined with owner, forms the FQN @owner/commands/<name>.",\n "examples": ["my-skill", "code-review", "prettier"]\n }\n ]\n },\n "CommandManifest": {\n "type": "object",\n "properties": {\n "$schema": { "anyOf": [{ "type": "string" }, { "type": "null" }] },\n "owner": { "$ref": "#/definitions/Handle" },\n "version": { "$ref": "#/definitions/Version" },\n "description": {\n "anyOf": [\n {\n "type": "string",\n "description": "Short, registry-facing summary of this extension shown in listings and search results."\n },\n { "type": "null" }\n ]\n },\n "keywords": {\n "anyOf": [\n {\n "type": "array",\n "examples": [["lint", "typescript", "review"]],\n "items": { "type": "string", "allOf": [{ "minLength": 1 }] }\n },\n { "type": "null" }\n ]\n },\n "repository": {\n "anyOf": [\n {\n "type": "string",\n "examples": ["https://github.com/acme/code-review"],\n "format": "uri"\n },\n { "type": "null" }\n ]\n },\n "homepage": {\n "anyOf": [\n { "type": "string", "examples": ["https://acme.dev/code-review"], "format": "uri" },\n { "type": "null" }\n ]\n },\n "license": {\n "anyOf": [\n { "type": "string", "allOf": [{ "minLength": 1, "examples": ["MIT", "Apache-2.0"] }] },\n { "type": "null" }\n ]\n },\n "bugs": {\n "anyOf": [\n {\n "type": "string",\n "examples": ["https://github.com/acme/code-review/issues"],\n "format": "uri"\n },\n { "type": "null" }\n ]\n },\n "authors": {\n "anyOf": [\n { "type": "array", "items": { "$ref": "#/definitions/Author" } },\n { "type": "null" }\n ]\n },\n "companionPackages": {\n "anyOf": [\n {\n "type": "array",\n "description": "External ecosystem packages this extension is designed to work with (e.g. the npm or PyPI package an MCP server wraps), identified by Package URL (purl).",\n "items": { "$ref": "#/definitions/PackageUrl" }\n },\n { "type": "null" }\n ]\n },\n "recommendedPacks": {\n "anyOf": [\n {\n "type": "array",\n "description": "Packs this extension is designed to work alongside. Each entry is a pack spec, optionally pinned to a version range.",\n "items": { "$ref": "#/definitions/PackSpec" }\n },\n { "type": "null" }\n ]\n },\n "standalone": {\n "anyOf": [\n {\n "type": "boolean",\n "description": "Set to false to indicate this extension only makes sense when installed alongside one of its recommendedPacks.",\n "default": true\n },\n { "type": "null" }\n ]\n },\n "type": { "type": "string", "enum": ["command"] },\n "name": { "$ref": "#/definitions/ExtensionName" }\n },\n "required": ["owner", "version", "type", "name"],\n "additionalProperties": false,\n "title": "Command Manifest",\n "description": "Extension manifest file for slash-command. Carries registry-facing identity, version, and metadata. Per-agent frontmatter overrides live in the content file."\n }\n }\n}\n```\n\n## Content File\n\nThe command content file is `<command-name>.md`. Its YAML frontmatter is passed\nthrough verbatim. AXM does not rename or translate fields such as\n`argumentHint` to `argument-hint`; write the target agent\'s native key, or put\nper-agent shape changes in `command.json` `agentOverrides`.\n\n```markdown\n---\ndescription: Review code\nargument-hint: "[scope]"\nallowed-tools:\n - Read\n - Grep\n---\n\nReview {{arguments}}.\n```\n\nSupported body placeholders:\n\n- `{{arguments}}` — all arguments the user passed to the command.\n- `{{arguments[N]}}` — the Nth positional argument, zero-indexed.\n- `{{arg:name}}` — a named argument slot, rendered with each target agent\'s named-argument syntax (e.g. `${input:name}` on Copilot, `$name` on Junie). Families without native named arguments — Claude Code, Cursor, Gemini — render the placeholder as a context appendix instead of inlining a value.\n\nUse `\\{{` to render a literal `{{` without substitution.\n\nUse `agentOverrides` in the content file frontmatter for per-agent differences.\nEach `agentOverrides.<agent-id>` entry is applied as an RFC 7396 JSON Merge\nPatch on top of the content file\'s frontmatter for that agent: objects merge\nrecursively, `null` deletes a key, arrays replace wholesale, and primitive\nvalues replace.\n\n## Rendering\n\n`axm install` and `axm sync` render commands into each configured agent\'s\nnative command directory:\n\n- **Markdown + YAML** (Claude Code, Codex, OpenCode, Augment, Junie, Kilo,\n Roo) — frontmatter keys become YAML; body follows the `---` block.\n- **Markdown body only** (Cursor) — body only; frontmatter is dropped.\n- **Prompt Markdown** (GitHub Copilot IDE) — frontmatter keys become YAML;\n file names end in `.prompt.md`.\n- **TOML** (Gemini CLI) — frontmatter keys become TOML; body becomes `prompt`.\n Nested filenames map to Gemini `:` command namespaces.\n- **Plain text** (Kiro CLI) — body only; frontmatter is not rendered.\n\nTargets that drop frontmatter (such as Cursor\'s body-only Markdown) ignore keys like `argument-hint` and `allowed-tools` entirely. Keep the body self-explanatory so the command still works on those agents, and use `agentOverrides` for anything that must vary by target.\n\nDo not edit rendered command files directly. Edit the command package source and re-render.\n\n## Where to go next\n\n- `axm help packs` — bundling command extensions with extension packs\n- `axm commands --help` — full command subcommand surface\n',
|
|
18
18
|
"exit-codes": "# Exit codes\n\n| Code | Meaning |\n| ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| 0 | Success. Also used for help output and cancelled prompts. |\n| 1 | Command ran successfully but reported problems requiring attention (e.g., `axm lint` findings, doctor-style checks). Not lint-only — any \"ran but found problems\" outcome belongs here. |\n| 2 | Invalid command, flags, or arguments. Fix the invocation. |\n| 3 | Resource doesn't exist or isn't visible. |\n| 4 | Credentials are missing, expired, or invalid. Sign in again. |\n| 5 | Signed in, but not authorized for this action. |\n| 6 | Conflicts with current state (already exists, version mismatch, concurrent update). Reconcile and retry. |\n| 7 | Rate or quota exceeded. Retry after a backoff. |\n| 8 | Couldn't reach the remote service (DNS, TCP, TLS, timeout). Usually retryable. |\n| 9 | Input parsed but failed validation. Correct it and retry. |\n| 10 | Unexpected internal error. Likely a bug — please report it. |\n",
|
|
19
|
-
"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 inspect, what changes state, and what must be checked in\n- `axm help settings` — `.axm/settings.json` fields and schema\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",
|
|
19
|
+
"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## Add AXM CLI to allowed tools\n\nAdd the `axm` CLI to the list of allowed tools for your coding agent.\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 inspect, what changes state, and what must be checked in\n- `axm help settings` — `.axm/settings.json` fields and schema\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",
|
|
20
20
|
packs: '# Packs\n\nPack packages live in `./.axm/extensions/<@owner>/packs/<pack-name>`.\n\n## pack.json\n\n[`pack.json`](https://axm.sh/schemas/pack.schema.json)\n\n### Schema\n\n```json\n{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$ref": "#/definitions/PackManifest",\n "definitions": {\n "Handle": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?$",\n "title": "Handle",\n "description": "A unique username or organization name starting with @, like @my-org.",\n "examples": ["@my-org", "@username"]\n }\n ]\n },\n "Version": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)(?:-((?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\\\.(?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\\+([0-9a-zA-Z-]+(?:\\\\.[0-9a-zA-Z-]+)*))?$",\n "title": "Version",\n "description": "A semver version like 1.0.0. Ranges are not allowed here.",\n "examples": ["1.0.0", "2.3.1", "0.1.0-beta.1"]\n }\n ]\n },\n "Author": {\n "type": "object",\n "properties": {\n "name": { "type": "string" },\n "email": { "anyOf": [{ "type": "string" }, { "type": "null" }] },\n "url": { "anyOf": [{ "type": "string" }, { "type": "null" }] }\n },\n "required": ["name"],\n "additionalProperties": false,\n "title": "Author",\n "description": "A person credited as a creator or maintainer of this extension."\n },\n "PackageUrl": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^[Pp][Kk][Gg]:[a-zA-Z][a-zA-Z0-9.+-]*\\\\/.+$",\n "title": "Package URL",\n "description": "A Package URL (purl) string identifying a package across ecosystems (e.g. pkg:npm/react@18.2.0).",\n "examples": ["pkg:npm/react@18.2.0", "pkg:pypi/requests@2.31.0", "pkg:cargo/serde@1.0"]\n }\n ]\n },\n "ExtensionName": {\n "type": "string",\n "allOf": [\n { "minLength": 1 },\n {\n "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",\n "title": "Extension Name",\n "description": "Short name for this pack within its owner namespace. Combined with owner, forms the FQN @owner/packs/<name>.",\n "examples": ["my-skill", "code-review", "prettier"]\n }\n ]\n },\n "NonPackExtensionFqn": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^(@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?)\\\\/(skills|commands|mcp-servers|subagents|files|rules)\\\\/([a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?)$",\n "title": "Non-Pack Extension FQN",\n "description": "Extension identifier restricted to non-pack types (skills, commands, mcp-servers, subagents, files, rules).",\n "examples": ["@acme/skills/code-review", "@my-org/commands/format"]\n }\n ]\n },\n "VersionRange": {\n "type": "string",\n "allOf": [\n { "minLength": 1 },\n {\n "pattern": "^[~^<>=*xXvV0-9A-Za-z| .-]+$",\n "title": "Version Range",\n "description": "A semver version range like ^1.0.0, ~2.3.0, >=1.0.0 <3.0.0, or an exact version 1.2.3. Use \\"*\\" to always resolve to the latest available version.",\n "examples": ["^1.0.0", "~2.4", ">=1 <3", "1.2.3", "*"]\n }\n ]\n },\n "PackManifest": {\n "type": "object",\n "properties": {\n "$schema": { "anyOf": [{ "type": "string" }, { "type": "null" }] },\n "owner": { "$ref": "#/definitions/Handle" },\n "version": { "$ref": "#/definitions/Version" },\n "description": {\n "anyOf": [\n {\n "type": "string",\n "description": "Short, registry-facing summary of this extension shown in listings and search results."\n },\n { "type": "null" }\n ]\n },\n "keywords": {\n "anyOf": [\n {\n "type": "array",\n "examples": [["lint", "typescript", "review"]],\n "items": { "type": "string", "allOf": [{ "minLength": 1 }] }\n },\n { "type": "null" }\n ]\n },\n "repository": {\n "anyOf": [\n {\n "type": "string",\n "examples": ["https://github.com/acme/code-review"],\n "format": "uri"\n },\n { "type": "null" }\n ]\n },\n "homepage": {\n "anyOf": [\n { "type": "string", "examples": ["https://acme.dev/code-review"], "format": "uri" },\n { "type": "null" }\n ]\n },\n "license": {\n "anyOf": [\n { "type": "string", "allOf": [{ "minLength": 1, "examples": ["MIT", "Apache-2.0"] }] },\n { "type": "null" }\n ]\n },\n "bugs": {\n "anyOf": [\n {\n "type": "string",\n "examples": ["https://github.com/acme/code-review/issues"],\n "format": "uri"\n },\n { "type": "null" }\n ]\n },\n "authors": {\n "anyOf": [\n { "type": "array", "items": { "$ref": "#/definitions/Author" } },\n { "type": "null" }\n ]\n },\n "companionPackages": {\n "anyOf": [\n {\n "type": "array",\n "description": "External ecosystem packages this extension is designed to work with (e.g. the npm or PyPI package an MCP server wraps), identified by Package URL (purl).",\n "items": { "$ref": "#/definitions/PackageUrl" }\n },\n { "type": "null" }\n ]\n },\n "type": { "type": "string", "enum": ["pack"] },\n "name": { "$ref": "#/definitions/ExtensionName" },\n "dependencies": {\n "type": "object",\n "description": "Map of fully-qualified non-pack extension names to version ranges. Packs cannot depend on other packs.",\n "propertyNames": { "$ref": "#/definitions/NonPackExtensionFqn" },\n "additionalProperties": { "$ref": "#/definitions/VersionRange" }\n }\n },\n "required": ["owner", "version", "type", "name", "dependencies"],\n "additionalProperties": false,\n "title": "Pack Manifest",\n "description": "Extension manifest file for extension packs. Bundles a curated set of skills, commands, MCP servers, subagents, files, and rules into a single installable unit."\n }\n }\n}\n```\n\n## Authoring and editing packs\n\nRun `axm packs new <name>` to scaffold a managed pack. Use `axm packs add <pack> <extension>` and `axm packs remove <pack> <extension>` to edit dependencies when possible.\n\nRun `axm packs publish <pack>` to release a new version. Install with `axm packs install @owner/packs/<name>`.\n\n## Pack dependencies\n\nBundle extensions by defining the pack dependencies in `pack.json`. Each key uses the same fully qualified form as the extension directories (`<@owner>/<type>/<name>`, with the plural type segment):\n\n```\n"dependencies": {\n "@acme/skills/brick-building": "*",\n "@acme/subagents/brick-layer": "^1.0.0"\n}\n```\n\nUse `"*"` to indicate the latest version (recommended) unless there is a specific reason to constrain it.\n\n## No transitive dependencies\n\nPacks may not depend on other extension packs. A pack\'s dependency graph is exactly the extensions it lists.\n\n## Recommended packs\n\nExtensions that are designed to work with a specific pack should declare it in `recommendedPacks`:\n\n```\n{\n "recommendedPacks": [\n "@acme/packs/bricks"\n ]\n}\n```\n\nSee the individual help topics for each extension type for more details.\n\n## Standalone extensions\n\n`standalone` defaults to `false`. Set it to `true` only when the extension is meaningless outside its recommended packs. Otherwise leave the field undefined.\n\n## Where to go next\n\n- `axm packs --help` — full pack subcommand surface\n',
|
|
21
21
|
settings: '# Settings\n\nAXM workspace state lives in `.axm/settings.json`.\n\n## `.axm/settings.json`\n\n[`settings.json`](https://axm.sh/schemas/settings.schema.json)\n\n### Schema\n\n```json\n{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$ref": "#/definitions/AxmSettings",\n "definitions": {\n "TelemetryMode": {\n "anyOf": [{ "type": "boolean" }, { "type": "string", "enum": ["errors"] }],\n "title": "Telemetry Mode",\n "description": "`true` sends usage and error telemetry, `\\"errors\\"` sends only errors, and `false` disables telemetry.",\n "examples": [true, "errors", false]\n },\n "Handle": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?$",\n "title": "Handle",\n "description": "A unique username or organization name starting with @, like @my-org.",\n "examples": ["@my-org", "@username"]\n }\n ]\n },\n "AgentId": {\n "type": "string",\n "enum": [\n "adal",\n "amp",\n "antigravity",\n "augment",\n "claude-code",\n "cline",\n "codebuddy",\n "codex",\n "command-code",\n "continue",\n "crush",\n "cursor",\n "droid",\n "gemini-cli",\n "github-copilot",\n "goose",\n "iflow-cli",\n "junie",\n "kilo",\n "kimi-cli",\n "kiro-cli",\n "kode",\n "mcpjam",\n "mistral-vibe",\n "mux",\n "neovate",\n "openclaw",\n "opencode",\n "openhands",\n "pi",\n "pochi",\n "qoder",\n "qwen-code",\n "replit",\n "roo",\n "trae",\n "trae-cn",\n "windsurf",\n "zencoder"\n ],\n "title": "Agent ID",\n "description": "Supported coding agent identifier used in `.axm/settings.json` `agents`.",\n "examples": ["claude-code", "codex", "cursor"]\n },\n "SourceName": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^[a-z0-9][a-z0-9.-]*$",\n "title": "Source Name",\n "description": "Alias used in entry source strings for this source host.",\n "examples": ["github", "my-registry.dev"]\n }\n ]\n },\n "GitHubSourceHostConfig": {\n "type": "object",\n "properties": {\n "name": { "$ref": "#/definitions/SourceName" },\n "type": { "type": "string", "enum": ["github"] },\n "url": { "type": "string" }\n },\n "required": ["name", "type", "url"],\n "additionalProperties": false,\n "title": "GitHub Source Host",\n "description": "A GitHub source host."\n },\n "GitLabSourceHostConfig": {\n "type": "object",\n "properties": {\n "name": { "$ref": "#/definitions/SourceName" },\n "type": { "type": "string", "enum": ["gitlab"] },\n "url": { "type": "string" }\n },\n "required": ["name", "type", "url"],\n "additionalProperties": false,\n "title": "GitLab Source Host",\n "description": "A GitLab source host."\n },\n "BitbucketSourceHostConfig": {\n "type": "object",\n "properties": {\n "name": { "$ref": "#/definitions/SourceName" },\n "type": { "type": "string", "enum": ["bitbucket"] },\n "url": { "type": "string" }\n },\n "required": ["name", "type", "url"],\n "additionalProperties": false,\n "title": "Bitbucket Source Host",\n "description": "A Bitbucket source host."\n },\n "AzureReposSourceHostConfig": {\n "type": "object",\n "properties": {\n "name": { "$ref": "#/definitions/SourceName" },\n "type": { "type": "string", "enum": ["azurerepos"] },\n "url": { "type": "string" }\n },\n "required": ["name", "type", "url"],\n "additionalProperties": false,\n "title": "Azure Repos Source Host",\n "description": "An Azure Repos source host."\n },\n "RegistrySourceHostConfig": {\n "type": "object",\n "properties": {\n "name": { "$ref": "#/definitions/SourceName" },\n "type": { "type": "string", "enum": ["registry"] },\n "location": { "type": "string" }\n },\n "required": ["name", "type", "location"],\n "additionalProperties": false,\n "title": "Registry Source Host",\n "description": "A package registry source host."\n },\n "SourceHostConfig": {\n "anyOf": [\n { "$ref": "#/definitions/GitHubSourceHostConfig" },\n { "$ref": "#/definitions/GitLabSourceHostConfig" },\n { "$ref": "#/definitions/BitbucketSourceHostConfig" },\n { "$ref": "#/definitions/AzureReposSourceHostConfig" },\n { "$ref": "#/definitions/RegistrySourceHostConfig" }\n ],\n "title": "Source Host Config",\n "description": "A source host configuration: GitHub, GitLab, Bitbucket, Azure Repos, or a package registry."\n },\n "SkillEntry": {\n "anyOf": [\n { "type": "string" },\n {\n "type": "object",\n "properties": {\n "source": {\n "type": "string",\n "allOf": [\n {\n "minLength": 1,\n "description": "FQN with optional version constraint, source-scheme ref like github:owner/repo, or local path.",\n "examples": [\n "@acme/skills/code-review@^1.0.0",\n "github:acme/agent-extensions",\n "./extensions/code-review"\n ]\n }\n ]\n },\n "enabled": {\n "type": "boolean",\n "description": "Set to false to disable this entry. Omit otherwise — true is the default and should not be written explicitly.",\n "default": true\n },\n "authored": {\n "type": "boolean",\n "description": "Set to true to mark this entry as authored locally in this workspace. Omit otherwise — false is the default and should not be written explicitly.",\n "default": false\n }\n },\n "required": ["source"],\n "additionalProperties": false,\n "title": "Skill Entry Object",\n "description": "A skill entry with source and optional enabled/authored flags."\n }\n ],\n "title": "Skill Entry",\n "description": "A skill entry: a source string, or an object with source plus optional flags.",\n "examples": [\n "@acme/skills/code-review@^1.0.0",\n { "source": "github:acme/agent-extensions", "enabled": false }\n ]\n },\n "SkillsMap": {\n "type": "object",\n "title": "Skills Map",\n "description": "A map of skill names to skill entries.",\n "propertyNames": { "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },\n "additionalProperties": { "$ref": "#/definitions/SkillEntry" }\n },\n "SkillsConfig": {\n "type": "object",\n "properties": {\n "ignore": {\n "type": "array",\n "description": "Installed skill names AXM should leave unmanaged.",\n "examples": [["local-*", "legacy-helper"]],\n "items": { "type": "string" }\n }\n },\n "additionalProperties": false,\n "title": "Skills Config",\n "description": "Feature-level configuration for skills."\n },\n "CommandEntry": {\n "anyOf": [\n { "type": "string" },\n {\n "type": "object",\n "properties": {\n "source": {\n "type": "string",\n "allOf": [\n {\n "minLength": 1,\n "description": "FQN with optional version constraint, source-scheme ref like github:owner/repo, or local path.",\n "examples": [\n "@acme/commands/code-review@^1.0.0",\n "github:acme/agent-extensions",\n "./extensions/code-review"\n ]\n }\n ]\n },\n "enabled": {\n "type": "boolean",\n "description": "Set to false to disable this entry. Omit otherwise — true is the default and should not be written explicitly.",\n "default": true\n },\n "authored": {\n "type": "boolean",\n "description": "Set to true to mark this entry as authored locally in this workspace. Omit otherwise — false is the default and should not be written explicitly.",\n "default": false\n }\n },\n "required": ["source"],\n "additionalProperties": false,\n "title": "Command Entry Object",\n "description": "A command entry with source and optional enabled/authored flags."\n }\n ],\n "title": "Command Entry",\n "description": "A command entry: a source string, or an object with source plus optional flags.",\n "examples": [\n "@acme/commands/code-review@^1.0.0",\n { "source": "github:acme/agent-extensions", "enabled": false }\n ]\n },\n "CommandsMap": {\n "type": "object",\n "title": "Commands Map",\n "description": "A map of command names to command entries.",\n "propertyNames": { "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },\n "additionalProperties": { "$ref": "#/definitions/CommandEntry" }\n },\n "CommandsConfig": {\n "type": "object",\n "properties": {\n "ignore": {\n "type": "array",\n "description": "Installed command names AXM should leave unmanaged.",\n "examples": [["local-*", "legacy-helper"]],\n "items": { "type": "string" }\n }\n },\n "additionalProperties": false,\n "title": "Commands Config",\n "description": "Feature-level configuration for commands."\n },\n "SubagentEntry": {\n "anyOf": [\n { "type": "string" },\n {\n "type": "object",\n "properties": {\n "source": {\n "type": "string",\n "allOf": [\n {\n "minLength": 1,\n "description": "FQN with optional version constraint, source-scheme ref like github:owner/repo, or local path.",\n "examples": [\n "@acme/subagents/code-review@^1.0.0",\n "github:acme/agent-extensions",\n "./extensions/code-review"\n ]\n }\n ]\n },\n "enabled": {\n "type": "boolean",\n "description": "Set to false to disable this entry. Omit otherwise — true is the default and should not be written explicitly.",\n "default": true\n },\n "authored": {\n "type": "boolean",\n "description": "Set to true to mark this entry as authored locally in this workspace. Omit otherwise — false is the default and should not be written explicitly.",\n "default": false\n }\n },\n "required": ["source"],\n "additionalProperties": false,\n "title": "Subagent Entry Object",\n "description": "A subagent entry with source and optional enabled/authored flags."\n }\n ],\n "title": "Subagent Entry",\n "description": "A subagent entry: a source string, or an object with source plus optional flags.",\n "examples": [\n "@acme/subagents/reviewer@^1.0.0",\n { "source": "github:acme/agent-extensions", "enabled": false }\n ]\n },\n "SubagentsMap": {\n "type": "object",\n "title": "Subagents Map",\n "description": "A map of subagent names to subagent entries.",\n "propertyNames": { "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },\n "additionalProperties": { "$ref": "#/definitions/SubagentEntry" }\n },\n "SubagentsConfig": {\n "type": "object",\n "properties": {\n "ignore": {\n "type": "array",\n "description": "Installed subagent names AXM should leave unmanaged.",\n "examples": [["local-*", "legacy-helper"]],\n "items": { "type": "string" }\n }\n },\n "additionalProperties": false,\n "title": "Subagents Config",\n "description": "Feature-level configuration for subagents."\n },\n "PackEntry": {\n "anyOf": [\n { "type": "string" },\n {\n "type": "object",\n "properties": {\n "source": {\n "type": "string",\n "allOf": [\n {\n "minLength": 1,\n "description": "FQN with optional version constraint, source-scheme ref like github:owner/repo, or local path.",\n "examples": [\n "@acme/packs/code-review@^1.0.0",\n "github:acme/agent-extensions",\n "./extensions/code-review"\n ]\n }\n ]\n },\n "authored": {\n "type": "boolean",\n "description": "Set to true to mark this entry as authored locally in this workspace. Omit otherwise — false is the default and should not be written explicitly.",\n "default": false\n }\n },\n "required": ["source"],\n "additionalProperties": false,\n "title": "Pack Entry Object",\n "description": "A pack entry with source and optional authored flag."\n }\n ],\n "title": "Pack Entry",\n "description": "A pack entry: a source string, or an object with source plus optional authored flag.",\n "examples": [\n "@acme/packs/typescript@^1.0.0",\n { "source": "github:acme/agent-extensions", "authored": true }\n ]\n },\n "PacksMap": {\n "type": "object",\n "title": "Packs Map",\n "description": "A map of pack names to pack entries.",\n "propertyNames": { "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },\n "additionalProperties": { "$ref": "#/definitions/PackEntry" }\n },\n "PacksConfig": {\n "type": "object",\n "properties": {\n "ignore": {\n "type": "array",\n "description": "Installed pack names AXM should leave unmanaged.",\n "examples": [["local-*", "legacy-helper"]],\n "items": { "type": "string" }\n }\n },\n "additionalProperties": false,\n "title": "Packs Config",\n "description": "Feature-level configuration for packs."\n },\n "McpServerEntry": {\n "anyOf": [\n { "type": "string" },\n {\n "type": "object",\n "properties": {\n "source": {\n "type": "string",\n "allOf": [\n {\n "minLength": 1,\n "description": "FQN with optional version constraint, source-scheme ref like github:owner/repo, or local path.",\n "examples": [\n "@acme/mcp-servers/code-review@^1.0.0",\n "github:acme/agent-extensions",\n "./extensions/code-review"\n ]\n }\n ]\n },\n "authored": {\n "type": "boolean",\n "description": "Set to true to mark this entry as authored locally in this workspace. Omit otherwise — false is the default and should not be written explicitly.",\n "default": false\n }\n },\n "required": ["source"],\n "additionalProperties": false,\n "title": "MCP Server Entry Object",\n "description": "An MCP server entry with source and optional authored flag."\n }\n ],\n "title": "MCP Server Entry",\n "description": "An MCP server entry: a source string, or an object with source plus optional authored flag.",\n "examples": [\n "@acme/mcp-servers/context@^1.0.0",\n { "source": "github:acme/agent-extensions", "authored": true }\n ]\n },\n "McpServersMap": {\n "type": "object",\n "title": "MCP Servers Map",\n "description": "A map of MCP server names to MCP server entries.",\n "propertyNames": { "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$" },\n "additionalProperties": { "$ref": "#/definitions/McpServerEntry" }\n },\n "McpServersConfig": {\n "type": "object",\n "properties": {\n "ignore": {\n "type": "array",\n "description": "Installed MCP server names AXM should leave unmanaged.",\n "examples": [["local-*", "legacy-helper"]],\n "items": { "type": "string" }\n }\n },\n "additionalProperties": false,\n "title": "MCP Servers Config",\n "description": "Feature-level configuration for MCP servers."\n },\n "LintRuleSeverity": {\n "type": "string",\n "enum": ["off", "info", "warn", "error"],\n "title": "Lint Rule Severity",\n "description": "Severity override for a lint rule: \'off\' silences it, \'info\'/\'warn\'/\'error\' raise or lower severity."\n },\n "LintConfig": {\n "type": "object",\n "properties": {\n "rules": {\n "type": "object",\n "additionalProperties": { "$ref": "#/definitions/LintRuleSeverity" },\n "title": "Lint Rules Map",\n "description": "Map of exact <namespace>/<name> rule ids to severity overrides for `axm lint`."\n }\n },\n "additionalProperties": false,\n "title": "Lint Config",\n "description": "Lint configuration under `lint` in `.axm/settings.json`."\n },\n "AxmSettings": {\n "type": "object",\n "properties": {\n "telemetry": {\n "anyOf": [{ "$ref": "#/definitions/TelemetryMode" }],\n "description": "Workspace telemetry mode: full, errors-only, or disabled."\n },\n "owner": {\n "anyOf": [{ "$ref": "#/definitions/Handle" }],\n "description": "Default owner handle used when AXM scaffolds or resolves workspace extensions."\n },\n "agents": {\n "type": "array",\n "description": "Coding agents AXM should sync managed extensions into.",\n "examples": [["claude-code", "codex"]],\n "allOf": [{ "uniqueItems": true }],\n "items": { "$ref": "#/definitions/AgentId" }\n },\n "sources": {\n "type": "array",\n "description": "Named source hosts used to resolve source-scheme entry references.",\n "items": { "$ref": "#/definitions/SourceHostConfig" }\n },\n "skills": {\n "anyOf": [{ "$ref": "#/definitions/SkillsMap" }],\n "description": "Your installed skills, keyed by workspace skill name. Prefer plain source strings; use the object form only to set `enabled: false` or `authored: true`, and never write `enabled: true` or `authored: false` explicitly."\n },\n "skillsConfig": {\n "anyOf": [{ "$ref": "#/definitions/SkillsConfig" }],\n "description": "Feature-level options for skill management."\n },\n "commands": {\n "anyOf": [{ "$ref": "#/definitions/CommandsMap" }],\n "description": "Your installed commands, keyed by workspace command name. Prefer plain source strings; use the object form only to set `enabled: false` or `authored: true`, and never write `enabled: true` or `authored: false` explicitly."\n },\n "commandsConfig": {\n "anyOf": [{ "$ref": "#/definitions/CommandsConfig" }],\n "description": "Feature-level options for command management."\n },\n "subagents": {\n "anyOf": [{ "$ref": "#/definitions/SubagentsMap" }],\n "description": "Your installed subagents, keyed by workspace subagent name. Prefer plain source strings; use the object form only to set `enabled: false` or `authored: true`, and never write `enabled: true` or `authored: false` explicitly."\n },\n "subagentsConfig": {\n "anyOf": [{ "$ref": "#/definitions/SubagentsConfig" }],\n "description": "Feature-level options for subagent management."\n },\n "packs": {\n "anyOf": [{ "$ref": "#/definitions/PacksMap" }],\n "description": "Your installed packs, keyed by workspace pack name. Prefer plain source strings; use the object form only to set `authored: true`, and never write `authored: false` explicitly. Pack entries do not support `enabled` yet."\n },\n "packsConfig": {\n "anyOf": [{ "$ref": "#/definitions/PacksConfig" }],\n "description": "Feature-level options for pack management."\n },\n "mcpServers": {\n "anyOf": [{ "$ref": "#/definitions/McpServersMap" }],\n "description": "Your installed MCP servers, keyed by workspace MCP server name. Prefer plain source strings; use the object form only to set `authored: true`, and never write `authored: false` explicitly. MCP server entries do not support `enabled` yet."\n },\n "mcpServersConfig": {\n "anyOf": [{ "$ref": "#/definitions/McpServersConfig" }],\n "description": "Feature-level options for MCP server management."\n },\n "lint": {\n "anyOf": [{ "$ref": "#/definitions/LintConfig" }],\n "description": "Lint configuration for `axm lint` in this workspace."\n }\n },\n "additionalProperties": false,\n "title": "AXM Settings",\n "description": "Your workspace configuration — owner, sources, installed extensions, feature config, and lint config.",\n "examples": [\n {\n "telemetry": "errors",\n "agents": ["claude-code", "codex"],\n "skills": {\n "code-review": "@acme/skills/code-review@^1.0.0",\n "legacy-rules": { "source": "@acme/skills/legacy-rules@^1.0.0", "enabled": false }\n },\n "skillsConfig": { "ignore": ["local-*"] },\n "lint": { "rules": { "workspace/settings-schema-valid": "error" } }\n }\n ]\n }\n }\n}\n```\n\n## Anatomy\n\n`owner` is the default handle AXM uses when creating or resolving workspace-owned extensions.\n\n`agents` lists the coding agents AXM syncs into. `sources` names registries and source hosts that entries can reference.\n\nExtension entries live under `skills`, `commands`, `subagents`, `packs`, and `mcpServers`. Each entry can be a source string or an object with metadata such as `enabled` or `authored`.\n\nPrefer the plain source string. Use the object form only when you need to depart from the defaults — set `enabled: false` to disable an entry, or `authored: true` to mark it as locally authored. Never write `enabled: true` or `authored: false` explicitly; those are the defaults and should be omitted.\n\n```jsonc\n{\n "skills": {\n "code-review": "@acme/skills/code-review@^1.0.0",\n "legacy-rules": { "source": "@acme/skills/legacy-rules@^1.0.0", "enabled": false },\n "house-style": { "source": "./skills/house-style", "authored": true },\n },\n}\n```\n\nFeature config lives under `skillsConfig`, `commandsConfig`, `subagentsConfig`, `packsConfig`, and `mcpServersConfig`.\n\n`lint` configures workspace-only severity overrides for `axm lint`.\n\n## Authoring\n\nLet AXM edit settings for routine install, remove, enable, disable, and source changes. Hand-edit settings when reviewing generated changes, adding source hosts, or adjusting `lint.rules`.\n\nSet `authored: true` only for extensions you expect to edit in this workspace. Omit `authored` otherwise — `false` is the default and should not be written explicitly. Likewise, omit `enabled` unless you are disabling an entry with `enabled: false`.\n\n## Ignoring Extensions\n\nUse each feature\'s `ignore` list to leave matching pre-existing extensions unmanaged. Ignored extensions are not pruned or reconciled by AXM.\n\n## Where to go next\n\n- `axm help basic-usage` — workspace file overview\n- `axm help skills` — working with skills\n- `axm help commands` — working with slash commands\n- `axm help subagents` — working with subagents\n- `axm help packs` — working with packs\n',
|
|
22
22
|
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)\n\n### Schema\n\n```json\n{\n "$schema": "http://json-schema.org/draft-07/schema#",\n "$ref": "#/definitions/SkillManifest",\n "definitions": {\n "Handle": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?$",\n "title": "Handle",\n "description": "A unique username or organization name starting with @, like @my-org.",\n "examples": ["@my-org", "@username"]\n }\n ]\n },\n "Version": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)(?:-((?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\\\.(?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\\+([0-9a-zA-Z-]+(?:\\\\.[0-9a-zA-Z-]+)*))?$",\n "title": "Version",\n "description": "A semver version like 1.0.0. Ranges are not allowed here.",\n "examples": ["1.0.0", "2.3.1", "0.1.0-beta.1"]\n }\n ]\n },\n "Author": {\n "type": "object",\n "properties": {\n "name": { "type": "string" },\n "email": { "anyOf": [{ "type": "string" }, { "type": "null" }] },\n "url": { "anyOf": [{ "type": "string" }, { "type": "null" }] }\n },\n "required": ["name"],\n "additionalProperties": false,\n "title": "Author",\n "description": "A person credited as a creator or maintainer of this extension."\n },\n "PackageUrl": {\n "type": "string",\n "allOf": [\n {\n "pattern": "^[Pp][Kk][Gg]:[a-zA-Z][a-zA-Z0-9.+-]*\\\\/.+$",\n "title": "Package URL",\n "description": "A Package URL (purl) string identifying a package across ecosystems (e.g. pkg:npm/react@18.2.0).",\n "examples": ["pkg:npm/react@18.2.0", "pkg:pypi/requests@2.31.0", "pkg:cargo/serde@1.0"]\n }\n ]\n },\n "PackSpec": {\n "type": "string",\n "allOf": [\n { "minLength": 1 },\n {\n "pattern": "^(@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?)\\\\/packs\\\\/([a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?)(?:@.+)?$",\n "title": "Pack Spec",\n "description": "Pack reference with an optional version constraint suffix.",\n "examples": ["@acme/packs/typescript", "@acme/packs/typescript@^1.0.0"]\n }\n ]\n },\n "ExtensionName": {\n "type": "string",\n "allOf": [\n { "minLength": 1 },\n {\n "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",\n "title": "Extension Name",\n "description": "Short name for this skill within its owner namespace. Combined with owner, forms the FQN @owner/skills/<name>.",\n "examples": ["my-skill", "code-review", "prettier"]\n }\n ]\n },\n "SkillManifest": {\n "type": "object",\n "properties": {\n "$schema": { "anyOf": [{ "type": "string" }, { "type": "null" }] },\n "owner": { "$ref": "#/definitions/Handle" },\n "version": { "$ref": "#/definitions/Version" },\n "description": {\n "anyOf": [\n {\n "type": "string",\n "description": "Short, registry-facing summary of this extension shown in listings and search results."\n },\n { "type": "null" }\n ]\n },\n "keywords": {\n "anyOf": [\n {\n "type": "array",\n "examples": [["lint", "typescript", "review"]],\n "items": { "type": "string", "allOf": [{ "minLength": 1 }] }\n },\n { "type": "null" }\n ]\n },\n "repository": {\n "anyOf": [\n {\n "type": "string",\n "examples": ["https://github.com/acme/code-review"],\n "format": "uri"\n },\n { "type": "null" }\n ]\n },\n "homepage": {\n "anyOf": [\n { "type": "string", "examples": ["https://acme.dev/code-review"], "format": "uri" },\n { "type": "null" }\n ]\n },\n "license": {\n "anyOf": [\n { "type": "string", "allOf": [{ "minLength": 1, "examples": ["MIT", "Apache-2.0"] }] },\n { "type": "null" }\n ]\n },\n "bugs": {\n "anyOf": [\n {\n "type": "string",\n "examples": ["https://github.com/acme/code-review/issues"],\n "format": "uri"\n },\n { "type": "null" }\n ]\n },\n "authors": {\n "anyOf": [\n { "type": "array", "items": { "$ref": "#/definitions/Author" } },\n { "type": "null" }\n ]\n },\n "companionPackages": {\n "anyOf": [\n {\n "type": "array",\n "description": "External ecosystem packages this extension is designed to work with (e.g. the npm or PyPI package an MCP server wraps), identified by Package URL (purl).",\n "items": { "$ref": "#/definitions/PackageUrl" }\n },\n { "type": "null" }\n ]\n },\n "recommendedPacks": {\n "anyOf": [\n {\n "type": "array",\n "description": "Packs this extension is designed to work alongside. Each entry is a pack spec, optionally pinned to a version range.",\n "items": { "$ref": "#/definitions/PackSpec" }\n },\n { "type": "null" }\n ]\n },\n "standalone": {\n "anyOf": [\n {\n "type": "boolean",\n "description": "Set to false to indicate this extension only makes sense when installed alongside one of its recommendedPacks.",\n "default": true\n },\n { "type": "null" }\n ]\n },\n "type": { "type": "string", "enum": ["skill"] },\n "name": { "$ref": "#/definitions/ExtensionName" }\n },\n "required": ["owner", "version", "type", "name"],\n "additionalProperties": false,\n "title": "Skill Manifest",\n "description": "Extension manifest file for skill. Carries the registry-facing identity, version, and metadata."\n }\n }\n}\n```\n\n## `src/`\n\nThe `src/` directory holds `SKILL.md` and any other files described by the [agentskills.io](https://agentskills.io) specification.\n\n`SKILL.md` is Markdown with YAML frontmatter. Only `name` is required, and it must match both the manifest\'s `name` and the skill directory name. Everything else in the frontmatter passes through verbatim to the rendered agent file.\n\n## Authoring and editing skills\n\nThe contents of `src/` are symlinked by AXM into each configured agent\'s skill directory, so you do not need to run `axm sync` after an edit. Run `axm sync` only if symlinks or copies are broken.\n\n## Where to go next\n\n- `axm skills --help` — full skill subcommand surface\n- `axm help packs` — bundling skill extensions with extension packs\n',
|
|
@@ -1 +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;IAC9B,aAAa;IACb,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,OAAO;IACP,UAAU;IACV,QAAQ;IACR,WAAW;CACH,CAAC;AAIX,MAAM,CAAC,MAAM,WAAW,GAAkC;IACxD,aAAa,EACX,y8GAAy8G;IAC38G,QAAQ,EACN,o/RAAo/R;IACt/R,YAAY,EACV,wgFAAwgF;IAC1gF,iBAAiB,EACf,
|
|
1
|
+
{"version":3,"file":"help-topics.js","sourceRoot":"","sources":["../../../src/__generated__/help-topics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,aAAa;IACb,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,OAAO;IACP,UAAU;IACV,QAAQ;IACR,WAAW;CACH,CAAC;AAIX,MAAM,CAAC,MAAM,WAAW,GAAkC;IACxD,aAAa,EACX,y8GAAy8G;IAC38G,QAAQ,EACN,o/RAAo/R;IACt/R,YAAY,EACV,wgFAAwgF;IAC1gF,iBAAiB,EACf,6lEAA6lE;IAC/lE,KAAK,EACH,i/PAAi/P;IACn/P,QAAQ,EACN,26vBAA26vB;IAC76vB,MAAM,EACJ,qkOAAqkO;IACvkO,SAAS,EACP,48TAA48T;CAC/8T,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundled-axm-skill.d.ts","sourceRoot":"","sources":["../../../../src/root/setup/bundled-axm-skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,QASf,CAAC;AAEb,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"bundled-axm-skill.d.ts","sourceRoot":"","sources":["../../../../src/root/setup/bundled-axm-skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAEzC,eAAO,MAAM,cAAc,QASf,CAAC;AAEb,eAAO,MAAM,YAAY,QA2Db,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export const AXM_SKILL_VERSION = "0.2.1";
|
|
1
2
|
export const AXM_SKILL_JSON = [
|
|
2
3
|
"{",
|
|
3
4
|
' "$schema": "https://axm.sh/schemas/skill.schema.json",',
|
|
4
5
|
' "owner": "@agentxm",',
|
|
5
6
|
' "type": "skill",',
|
|
6
7
|
' "name": "axm",',
|
|
7
|
-
|
|
8
|
+
` "version": "${AXM_SKILL_VERSION}"`,
|
|
8
9
|
"}",
|
|
9
10
|
"",
|
|
10
11
|
].join("\n");
|
|
@@ -23,6 +24,10 @@ export const AXM_SKILL_MD = [
|
|
|
23
24
|
"**MUST follow these rules:**",
|
|
24
25
|
"",
|
|
25
26
|
"1. **Choose right output mode**: `--json` for full JSON",
|
|
27
|
+
"2. **Gate mutating CLI use**: AXM can copy, symlink, and delete AXM-managed files. Before running mutating AXM commands, verify:",
|
|
28
|
+
" - User explicitly chose to trust AXM for filesystem mutations.",
|
|
29
|
+
" - Agent sandbox can write every needed target. Codex: use `--sandbox workspace-write` plus `--add-dir <dir>` for extra roots; `read-only` needs explicit escalation. Claude Code: enable workspace/user-dir write permissions.",
|
|
30
|
+
" - If trust or permissions are missing, do not run AXM for mutating operations. Tell the user the exact `axm ...` command to run after they configure permissions. Offer option to run CI command via agent prompt if you have the ability to do so with sufficient consent from the user.",
|
|
26
31
|
"",
|
|
27
32
|
"### CLI Introspection",
|
|
28
33
|
"",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundled-axm-skill.js","sourceRoot":"","sources":["../../../../src/root/setup/bundled-axm-skill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG;IACH,0DAA0D;IAC1D,wBAAwB;IACxB,oBAAoB;IACpB,kBAAkB;IAClB,
|
|
1
|
+
{"version":3,"file":"bundled-axm-skill.js","sourceRoot":"","sources":["../../../../src/root/setup/bundled-axm-skill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAEzC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG;IACH,0DAA0D;IAC1D,wBAAwB;IACxB,oBAAoB;IACpB,kBAAkB;IAClB,iBAAiB,iBAAiB,GAAG;IACrC,GAAG;IACH,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,KAAK;IACL,WAAW;IACX,gBAAgB;IAChB,uNAAuN;IACvN,iBAAiB;IACjB,KAAK;IACL,EAAE;IACF,0CAA0C;IAC1C,EAAE;IACF,qBAAqB;IACrB,EAAE;IACF,8BAA8B;IAC9B,EAAE;IACF,yDAAyD;IACzD,kIAAkI;IAClI,mEAAmE;IACnE,mOAAmO;IACnO,8RAA8R;IAC9R,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,6CAA6C;IAC7C,EAAE;IACF,iBAAiB;IACjB,EAAE;IACF,2IAA2I;IAC3I,EAAE;IACF,oBAAoB;IACpB,EAAE;IACF,uJAAuJ;IACvJ,EAAE;IACF,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,0GAA0G;IAC1G,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,0GAA0G;IAC1G,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,wGAAwG;IACxG,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/root/setup.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAIzE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/root/setup.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAIzE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAEtF,OAAO,EAKL,KAAK,cAAc,EAEpB,MAAM,yCAAyC,CAAC;AAOjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAqCpD,UAAU,0BAA0B;IAClC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,IAAI,EAAE;QACnC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;QAC/B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;QACtB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;KAC3B,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,GAAG,eAAe,CAAC,CAAC;CACvD;;AAED,qBAAa,mBAAoB,SAAQ,wBAGG;CAAG;AAiG/C,eAAO,MAAM,uBAAuB,mLAuBnC,CAAC;AAoBF,eAAO,MAAM,WAAW;oBACN,cAAc;sBACZ,aAAa,CAAC,MAAM,CAAC;mBACxB,OAAO;qBACL,OAAO;uBACL,OAAO;mLAkFX,CAAC;AAalB,eAAO,MAAM,YAAY,ySA0BxB,CAAC"}
|
package/dist/src/root/setup.js
CHANGED
|
@@ -7,8 +7,9 @@ import { envOption } from "@agentxm/client-core/unstable/utils";
|
|
|
7
7
|
import { RegistryUrl } from "@agentxm/client-core/unstable/auth";
|
|
8
8
|
import { makeAppError } from "@agentxm/client-core/unstable/app-error";
|
|
9
9
|
import { bootstrapWorkspace, scanAllSubagentFiles, WorkspaceMutations, } from "@agentxm/client-core/unstable/workspace";
|
|
10
|
-
import { normalizeHandle, sanitizeName } from "@agentxm/client-core/unstable/extensions";
|
|
10
|
+
import { decodeExtensionNameSync, normalizeHandle, sanitizeName, } from "@agentxm/client-core/unstable/extensions";
|
|
11
11
|
import { computeSkillPaths, ensureSkillAgentArtifact } from "@agentxm/client-core/unstable/skills";
|
|
12
|
+
import { decodeVersionSync } from "@agentxm/client-core/unstable/version-constraints";
|
|
12
13
|
import * as Effect from "effect/Effect";
|
|
13
14
|
import * as Option from "effect/Option";
|
|
14
15
|
import * as Schema from "effect/Schema";
|
|
@@ -21,7 +22,7 @@ import { Command, Flag } from "effect/unstable/cli";
|
|
|
21
22
|
import { scopeFlag } from "../cli-flags.js";
|
|
22
23
|
import { BRANDING } from "@agentxm/client-core/unstable/branding";
|
|
23
24
|
import { withRuntime, withWorkspace } from "../runtime.js";
|
|
24
|
-
import { AXM_SKILL_JSON, AXM_SKILL_MD } from "./setup/bundled-axm-skill.js";
|
|
25
|
+
import { AXM_SKILL_JSON, AXM_SKILL_MD, AXM_SKILL_VERSION } from "./setup/bundled-axm-skill.js";
|
|
25
26
|
const SubagentFileSchema = Schema.Struct({
|
|
26
27
|
path: Schema.String,
|
|
27
28
|
});
|
|
@@ -93,6 +94,23 @@ const installBundledAxmSkill = Effect.gen(function* () {
|
|
|
93
94
|
baseDir: ws.baseDir,
|
|
94
95
|
provide,
|
|
95
96
|
}), { concurrency: "unbounded" });
|
|
97
|
+
const now = new Date();
|
|
98
|
+
const lockEntry = {
|
|
99
|
+
type: "registry",
|
|
100
|
+
owner: normalizeHandle("@agentxm"),
|
|
101
|
+
name: decodeExtensionNameSync(sanitizedName),
|
|
102
|
+
resolvedVersion: decodeVersionSync(AXM_SKILL_VERSION),
|
|
103
|
+
integrity: "",
|
|
104
|
+
sourceName: "default",
|
|
105
|
+
agents: configuredAgents.map((agent) => agent.id),
|
|
106
|
+
installedAt: now,
|
|
107
|
+
updatedAt: now,
|
|
108
|
+
};
|
|
109
|
+
yield* ws.setSkillLock({
|
|
110
|
+
name: sanitizedName,
|
|
111
|
+
lockEntry,
|
|
112
|
+
versionRange: Option.none(),
|
|
113
|
+
});
|
|
96
114
|
});
|
|
97
115
|
export const SetupSkillInstallerLive = Layer.effect(SetupSkillInstaller, Effect.gen(function* () {
|
|
98
116
|
const renderer = yield* CliRenderer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/root/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAErF,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,WAAW,EACX,OAAO,GACR,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAA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WAAW,EAAE,kDAAkD;KAChE;IACD,EAAE,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,sCAAsC,EAAE;IAC1F;QACE,OAAO,EAAE,8CAA8C;QACvD,WAAW,EAAE,iCAAiC;KAC/C;CACF,CAAC,CACH,CAAC"}
|
|
@@ -6,6 +6,7 @@ import * as HttpClient from "effect/unstable/http/HttpClient";
|
|
|
6
6
|
import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
|
|
7
7
|
import { InstallMeta } from "@agentxm/client-core/unstable/install-meta";
|
|
8
8
|
import { InstallMethod } from "@agentxm/client-core/unstable/install-method";
|
|
9
|
+
import { Subprocess } from "./subprocess.js";
|
|
9
10
|
export interface UpgradeHandlerArgs {
|
|
10
11
|
readonly force: boolean;
|
|
11
12
|
}
|
|
@@ -16,6 +17,6 @@ interface PlatformBinaryInfo {
|
|
|
16
17
|
}
|
|
17
18
|
export declare const resolvePlatformBinary: (platform: string, arch: string) => Option.Option<PlatformBinaryInfo>;
|
|
18
19
|
export declare const makeDownloadUrl: (repo: string, version: string, binaryName: string) => string;
|
|
19
|
-
export declare const handleUpgrade: (args: UpgradeHandlerArgs) => Effect.Effect<void, import("@agentxm/client-core/unstable/app-error").AppError, HttpClient.HttpClient | CliRenderer | InstallMethod | FileSystem.FileSystem | Path.Path | InstallMeta>;
|
|
20
|
+
export declare const handleUpgrade: (args: UpgradeHandlerArgs) => Effect.Effect<void, import("@agentxm/client-core/unstable/app-error").AppError, HttpClient.HttpClient | CliRenderer | InstallMethod | FileSystem.FileSystem | Path.Path | Subprocess | InstallMeta>;
|
|
20
21
|
export {};
|
|
21
22
|
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/root/upgrade/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAA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,CAAC"}
|
|
@@ -10,6 +10,7 @@ import { InstallMeta } from "@agentxm/client-core/unstable/install-meta";
|
|
|
10
10
|
import { InstallMethod, } from "@agentxm/client-core/unstable/install-method";
|
|
11
11
|
import { resolveLatestVersion, DEFAULT_GITHUB_REPO, } from "@agentxm/client-core/unstable/version-resolution";
|
|
12
12
|
import { loadVersion } from "../../version.js";
|
|
13
|
+
import { Subprocess } from "./subprocess.js";
|
|
13
14
|
const UpgradeResultSchema = Schema.Struct({
|
|
14
15
|
status: Schema.Literals(["already-up-to-date", "reinstalled", "upgraded", "delegated"]),
|
|
15
16
|
installMethod: Schema.Literals(["script", "homebrew", "npm", "unknown"]),
|
|
@@ -21,6 +22,9 @@ const UpgradeResultSchema = Schema.Struct({
|
|
|
21
22
|
const UpgradeDocumentFields = {
|
|
22
23
|
result: UpgradeResultSchema,
|
|
23
24
|
};
|
|
25
|
+
const BREW_UPGRADE_COMMAND = "brew upgrade agentxm/tap/axm";
|
|
26
|
+
const NPM_PACKAGE = "axm.sh";
|
|
27
|
+
const HOMEBREW_ENV = { HOMEBREW_NO_AUTO_UPDATE: "1" };
|
|
24
28
|
const SUPPORTED_TARGETS = [
|
|
25
29
|
{ platform: "darwin", arch: "arm64", binaryName: "axm-darwin-arm64" },
|
|
26
30
|
{ platform: "darwin", arch: "x64", binaryName: "axm-darwin-x64" },
|
|
@@ -135,32 +139,63 @@ const atomicReplace = (sourcePath, targetPath, platform) => Effect.gen(function*
|
|
|
135
139
|
})));
|
|
136
140
|
}
|
|
137
141
|
});
|
|
138
|
-
const verifyBinary = (binaryPath) => Effect.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
142
|
+
const verifyBinary = (binaryPath) => Effect.gen(function* () {
|
|
143
|
+
const subprocess = yield* Subprocess;
|
|
144
|
+
const result = yield* subprocess.run(binaryPath, ["--version"], { timeoutMs: 10_000 });
|
|
145
|
+
if (result.exitCode !== 0) {
|
|
146
|
+
return yield* makeAppError({
|
|
147
|
+
code: "validation",
|
|
148
|
+
message: "Downloaded binary could not be verified",
|
|
149
|
+
breadcrumbs: [
|
|
150
|
+
{
|
|
151
|
+
description: "The upgrade may have succeeded. Try running `axm --version` to check.",
|
|
152
|
+
cmd: "axm --version",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
return result.stdout.trim();
|
|
158
|
+
});
|
|
159
|
+
const resolveTargetVersion = (localVersion) => Effect.gen(function* () {
|
|
160
|
+
const httpClient = yield* HttpClient.HttpClient;
|
|
161
|
+
const repo = yield* resolveGithubRepo();
|
|
162
|
+
const resolution = yield* resolveLatestVersion(httpClient, localVersion, repo);
|
|
163
|
+
return resolution.remoteVersion;
|
|
164
|
+
});
|
|
165
|
+
const commandOutput = (result) => [result.stdout.trim(), result.stderr.trim()].filter((part) => part.length > 0).join("\n");
|
|
166
|
+
const commandFailedError = (args) => {
|
|
167
|
+
const output = commandOutput(args.result);
|
|
168
|
+
const permissionHint = /EACCES|permission denied/i.test(output)
|
|
169
|
+
? " This looks like a permissions issue."
|
|
170
|
+
: "";
|
|
171
|
+
return makeAppError({
|
|
172
|
+
code: "internal",
|
|
173
|
+
message: `${args.manager} upgrade failed.${permissionHint}`,
|
|
156
174
|
breadcrumbs: [
|
|
157
175
|
{
|
|
158
|
-
description:
|
|
159
|
-
|
|
176
|
+
description: output.length > 0
|
|
177
|
+
? `Command output:\n${output}`
|
|
178
|
+
: `Command exited with code ${String(args.result.exitCode)}.`,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
description: "Manual fallback:",
|
|
182
|
+
cmd: args.command,
|
|
160
183
|
},
|
|
161
184
|
],
|
|
162
|
-
})
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
const failOnCommandError = (args) => args.result.exitCode === 0 ? Effect.succeed(args.result) : Effect.fail(commandFailedError(args));
|
|
188
|
+
const verifyUpgradedVersion = (targetVersion) => Effect.gen(function* () {
|
|
189
|
+
const renderer = yield* CliRenderer;
|
|
190
|
+
const version = yield* verifyBinary(process.execPath).pipe(Effect.catch(() => renderer.warn("Could not verify upgraded binary. Try running `axm --version` to check.")));
|
|
191
|
+
if (version === undefined || version === targetVersion)
|
|
192
|
+
return;
|
|
193
|
+
yield* renderer.warn(`Upgrade completed, but axm reports ${version} instead of ${targetVersion}.`);
|
|
163
194
|
});
|
|
195
|
+
const homebrewTapIsPresent = (result) => result.stdout
|
|
196
|
+
.split(/\r?\n/)
|
|
197
|
+
.map((line) => line.trim())
|
|
198
|
+
.includes("agentxm/tap");
|
|
164
199
|
const cleanupWindowsOld = (targetPath) => Effect.gen(function* () {
|
|
165
200
|
if (process.platform !== "win32")
|
|
166
201
|
return;
|
|
@@ -170,33 +205,60 @@ const cleanupWindowsOld = (targetPath) => Effect.gen(function* () {
|
|
|
170
205
|
});
|
|
171
206
|
const handleHomebrew = (force) => Effect.gen(function* () {
|
|
172
207
|
const renderer = yield* CliRenderer;
|
|
208
|
+
const subprocess = yield* Subprocess;
|
|
173
209
|
const localVersion = loadVersion();
|
|
210
|
+
const targetVersion = yield* resolveTargetVersion(localVersion);
|
|
211
|
+
const delegatedCommand = BREW_UPGRADE_COMMAND;
|
|
174
212
|
if (force) {
|
|
175
213
|
yield* renderer.info("--force has no effect for Homebrew installs.");
|
|
176
214
|
}
|
|
177
215
|
yield* renderer.info("Installed via Homebrew");
|
|
178
|
-
yield*
|
|
216
|
+
const tapList = yield* subprocess.run("brew", ["tap"], { env: HOMEBREW_ENV });
|
|
217
|
+
if (tapList.exitCode !== 0) {
|
|
218
|
+
return yield* commandFailedError({
|
|
219
|
+
manager: "Homebrew",
|
|
220
|
+
command: delegatedCommand,
|
|
221
|
+
result: tapList,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
if (!homebrewTapIsPresent(tapList)) {
|
|
225
|
+
yield* renderer.withSpinner("Tapping Homebrew formula...", () => subprocess
|
|
226
|
+
.run("brew", ["tap", "agentxm/tap"], { env: HOMEBREW_ENV })
|
|
227
|
+
.pipe(Effect.flatMap((result) => failOnCommandError({ manager: "Homebrew", command: delegatedCommand, result }))), { successMessage: "Tapped agentxm/tap" });
|
|
228
|
+
}
|
|
229
|
+
yield* renderer.withSpinner("Upgrading via Homebrew...", () => subprocess
|
|
230
|
+
.run("brew", ["upgrade", "agentxm/tap/axm"], { env: HOMEBREW_ENV })
|
|
231
|
+
.pipe(Effect.flatMap((result) => failOnCommandError({ manager: "Homebrew", command: delegatedCommand, result }))), { successMessage: `Upgraded to ${targetVersion}` });
|
|
232
|
+
yield* verifyUpgradedVersion(targetVersion);
|
|
179
233
|
return {
|
|
180
|
-
status: "
|
|
234
|
+
status: "upgraded",
|
|
181
235
|
installMethod: "homebrew",
|
|
182
236
|
localVersion,
|
|
183
|
-
|
|
237
|
+
targetVersion,
|
|
238
|
+
delegatedCommand,
|
|
184
239
|
force,
|
|
185
240
|
};
|
|
186
241
|
});
|
|
187
242
|
const handleNpm = (force) => Effect.gen(function* () {
|
|
188
243
|
const renderer = yield* CliRenderer;
|
|
244
|
+
const subprocess = yield* Subprocess;
|
|
189
245
|
const localVersion = loadVersion();
|
|
246
|
+
const targetVersion = yield* resolveTargetVersion(localVersion);
|
|
247
|
+
const delegatedCommand = `npm install -g ${NPM_PACKAGE}@${targetVersion}`;
|
|
190
248
|
if (force) {
|
|
191
249
|
yield* renderer.info("--force has no effect for npm installs.");
|
|
192
250
|
}
|
|
193
251
|
yield* renderer.info("Installed via npm");
|
|
194
|
-
yield* renderer.
|
|
252
|
+
yield* renderer.withSpinner("Upgrading via npm...", () => subprocess
|
|
253
|
+
.run("npm", ["install", "-g", `${NPM_PACKAGE}@${targetVersion}`])
|
|
254
|
+
.pipe(Effect.flatMap((result) => failOnCommandError({ manager: "npm", command: delegatedCommand, result }))), { successMessage: `Upgraded to ${targetVersion}` });
|
|
255
|
+
yield* verifyUpgradedVersion(targetVersion);
|
|
195
256
|
return {
|
|
196
|
-
status: "
|
|
257
|
+
status: "upgraded",
|
|
197
258
|
installMethod: "npm",
|
|
198
259
|
localVersion,
|
|
199
|
-
|
|
260
|
+
targetVersion,
|
|
261
|
+
delegatedCommand,
|
|
200
262
|
force,
|
|
201
263
|
};
|
|
202
264
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/root/upgrade/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EACL,aAAa,GAEd,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,oBAAoB,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,CAAU,CAAC;IAChG,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,SA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AE,CAAC;YACpB,KAAK,QAAQ;gBACX,OAAO,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YAC1C,KAAK,UAAU;gBACb,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpC,KAAK,KAAK;gBACR,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC/B,KAAK,SAAS;gBACZ,OAAO,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,IAAI,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC;QAC7E,OAAO;IACT,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,KAAK,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;AACH,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import * as ServiceMap from "effect/Context";
|
|
4
|
+
import type { ChildProcessSpawner as ChildProcessSpawnerService } from "effect/unstable/process/ChildProcessSpawner";
|
|
5
|
+
import { type AppError } from "@agentxm/client-core/unstable/app-error";
|
|
6
|
+
export interface CommandResult {
|
|
7
|
+
readonly exitCode: number;
|
|
8
|
+
readonly stdout: string;
|
|
9
|
+
readonly stderr: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RunCommandOptions {
|
|
12
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
13
|
+
readonly timeoutMs?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface SubprocessService {
|
|
16
|
+
readonly run: (command: string, args: ReadonlyArray<string>, options?: RunCommandOptions) => Effect.Effect<CommandResult, AppError>;
|
|
17
|
+
}
|
|
18
|
+
declare const Subprocess_base: ServiceMap.ServiceClass<Subprocess, "axm.sh/root/upgrade/subprocess", SubprocessService>;
|
|
19
|
+
export declare class Subprocess extends Subprocess_base {
|
|
20
|
+
}
|
|
21
|
+
export declare const SubprocessLive: Layer.Layer<Subprocess, never, ChildProcessSpawnerService>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=subprocess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subprocess.d.ts","sourceRoot":"","sources":["../../../../src/root/upgrade/subprocess.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAG7C,OAAO,KAAK,EAAE,mBAAmB,IAAI,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAGrH,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,yCAAyC,CAAC;AAEtF,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,EAAE,CACZ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,EAC3B,OAAO,CAAC,EAAE,iBAAiB,KACxB,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;CAC7C;;AAED,qBAAa,UAAW,SAAQ,eAE/B;CAAG;AAsEJ,eAAO,MAAM,cAAc,4DAM1B,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as Duration from "effect/Duration";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Layer from "effect/Layer";
|
|
4
|
+
import * as ServiceMap from "effect/Context";
|
|
5
|
+
import * as Stream from "effect/Stream";
|
|
6
|
+
import * as ChildProcess from "effect/unstable/process/ChildProcess";
|
|
7
|
+
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
|
|
8
|
+
import { makeAppError } from "@agentxm/client-core/unstable/app-error";
|
|
9
|
+
export class Subprocess extends ServiceMap.Service()("axm.sh/root/upgrade/subprocess") {
|
|
10
|
+
}
|
|
11
|
+
const defaultTimeoutMs = 120_000;
|
|
12
|
+
const collectBytes = (stream) => Effect.gen(function* () {
|
|
13
|
+
const chunks = yield* Stream.runCollect(stream);
|
|
14
|
+
const totalLength = chunks.reduce((acc, chunk) => acc + chunk.length, 0);
|
|
15
|
+
const bytes = new Uint8Array(totalLength);
|
|
16
|
+
let offset = 0;
|
|
17
|
+
for (const chunk of chunks) {
|
|
18
|
+
bytes.set(chunk, offset);
|
|
19
|
+
offset += chunk.length;
|
|
20
|
+
}
|
|
21
|
+
return new TextDecoder("utf-8").decode(bytes);
|
|
22
|
+
});
|
|
23
|
+
const makeRunCommand = (spawner) => (command, args, options) => {
|
|
24
|
+
const timeoutMs = options?.timeoutMs ?? defaultTimeoutMs;
|
|
25
|
+
return Effect.gen(function* () {
|
|
26
|
+
const handle = yield* spawner.spawn(ChildProcess.make(command, args, {
|
|
27
|
+
env: { ...(options?.env ?? {}) },
|
|
28
|
+
extendEnv: true,
|
|
29
|
+
}));
|
|
30
|
+
const result = yield* Effect.all({
|
|
31
|
+
stdout: collectBytes(handle.stdout),
|
|
32
|
+
stderr: collectBytes(handle.stderr),
|
|
33
|
+
exitCode: handle.exitCode,
|
|
34
|
+
}, { concurrency: "unbounded" });
|
|
35
|
+
return {
|
|
36
|
+
exitCode: Number(result.exitCode),
|
|
37
|
+
stdout: result.stdout,
|
|
38
|
+
stderr: result.stderr,
|
|
39
|
+
};
|
|
40
|
+
}).pipe(Effect.scoped, Effect.mapError((cause) => makeAppError({
|
|
41
|
+
code: "internal",
|
|
42
|
+
message: `Failed to execute ${command}`,
|
|
43
|
+
breadcrumbs: [{ description: "Check that the command is installed and on PATH." }],
|
|
44
|
+
cause,
|
|
45
|
+
})), Effect.timeoutOrElse({
|
|
46
|
+
duration: Duration.millis(timeoutMs),
|
|
47
|
+
orElse: () => Effect.fail(makeAppError({
|
|
48
|
+
code: "internal",
|
|
49
|
+
message: `Timed out executing ${command}`,
|
|
50
|
+
breadcrumbs: [{ description: "Check the package manager state and try again." }],
|
|
51
|
+
})),
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
export const SubprocessLive = Layer.effect(Subprocess, Effect.gen(function* () {
|
|
55
|
+
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
|
|
56
|
+
return { run: makeRunCommand(spawner) };
|
|
57
|
+
}));
|
|
58
|
+
//# sourceMappingURL=subprocess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subprocess.js","sourceRoot":"","sources":["../../../../src/root/upgrade/subprocess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AAErE,OAAO,KAAK,mBAAmB,MAAM,6CAA6C,CAAC;AAEnF,OAAO,EAAiB,YAAY,EAAE,MAAM,yCAAyC,CAAC;A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AAC,mBAAmB,CAAC;IAC/D,OAAO,EAAE,GAAG,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1C,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../../../src/root/upgrade/upgrade.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../../../src/root/upgrade/upgrade.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AAcpD,eAAO,MAAM,cAAc,2SAS1B,CAAC"}
|
|
@@ -7,7 +7,8 @@ import { InstallMetaLive } from "@agentxm/client-core/unstable/install-meta";
|
|
|
7
7
|
import { Command, Flag } from "effect/unstable/cli";
|
|
8
8
|
import { withRuntime } from "../../runtime.js";
|
|
9
9
|
import { handleUpgrade } from "./handler.js";
|
|
10
|
-
|
|
10
|
+
import { SubprocessLive } from "./subprocess.js";
|
|
11
|
+
const upgradeLayer = Layer.mergeAll(InstallMethodLive, InstallMetaLive, SubprocessLive);
|
|
11
12
|
const upgradeConfig = {
|
|
12
13
|
force: forceFlag.pipe(Flag.withDescription("Re-download even if already up to date (script installs only)")),
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../../../src/root/upgrade/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,e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AAW,CAAC,SAAS,CAAC,CAAC,CACpF,CAAC,IAAI,CACJ,gBAAgB,CAAC,aAAa,CAAC,EAC/B,OAAO,CAAC,eAAe,CAAC,kCAAkC,CAAC,EAC3D,OAAO,CAAC,YAAY,CAAC;IACnB,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,yCAAyC,EAAE;IAClF,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,wCAAwC,EAAE;CAC1F,CAAC,CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axm.sh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Extension manager for AI coding agents — install skills, subagents, slash commands, and MCP servers across Claude Code, Codex, Cursor, Copilot, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"semver": "^7.8.0",
|
|
69
69
|
"simple-git": "^3.36.0",
|
|
70
70
|
"yaml": "^2.8.4",
|
|
71
|
-
"@agentxm/client-core": "^0.
|
|
72
|
-
"@agentxm/client-utils": "^0.
|
|
71
|
+
"@agentxm/client-core": "^0.7.2",
|
|
72
|
+
"@agentxm/client-utils": "^0.7.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@effect/vitest": "4.0.0-beta.64",
|