From a0997cbcf7613d25a7dafd01a63b24fda4877a55 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Tue, 1 Dec 2026 21:14:27 +0000 Subject: [PATCH 1/2] docs(adr): pin apm per repo with uv (ADR-0034) Record that apm is pinned per repo with uv (minimum 0.39.2, pinned 0.39.3), shipped hook-first, with the consumer hook fallback contract. Add forward notes on ADR-0019 and ADR-0033 for their 0.28.0 claims, pending re-verification on 0.39.3. Refs #265, #245 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi --- ...tart-hook-keeps-the-apm-install-current.md | 5 ++ ...in-releases-are-tagged-plugin-v-version.md | 4 + .../0034-apm-is-pinned-per-repo-with-uv.md | 82 +++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 docs/adr/0034-apm-is-pinned-per-repo-with-uv.md diff --git a/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md b/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md index e8ce5df..411ec74 100644 --- a/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md +++ b/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md @@ -7,6 +7,11 @@ and nothing detects it. **Status: accepted (2026-08-14).** +*Amended 2026-12-01 (holocron#265): the hook resolves apm through the contract in ADR-0034 (a +repo-pinned `uv run --frozen` apm, else `PATH` apm, else exit 0) instead of a bare `command -v apm`. +The "0.28.0" claims below (the correction near line 80, the `apm outdated` prose at about line 143, +and the sidecar reproduction at about line 217) are pending re-verification on 0.39.3 under #265.* + ## Context The pre-existing answer was `scripts/git-hooks/post-push`, which pulled the marketplace clone and diff --git a/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md b/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md index 6dec278..4c4e426 100644 --- a/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md +++ b/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md @@ -2,6 +2,10 @@ **Status: accepted (2026-11-27).** +*Amended 2026-12-01 (holocron#265): the 0.28.0 claims in this ADR (the `apm outdated` tag-pattern +check in Context and the apm behaviour in consequence 3) are pending re-verification on 0.39.3 under +#265, once apm is pinned per repo (ADR-0034). The Decision is unchanged.* + ## Context Issue #223. Consumers that pin a holocron package need a git tag per package version. Two consumers diff --git a/docs/adr/0034-apm-is-pinned-per-repo-with-uv.md b/docs/adr/0034-apm-is-pinned-per-repo-with-uv.md new file mode 100644 index 0000000..ebcd22a --- /dev/null +++ b/docs/adr/0034-apm-is-pinned-per-repo-with-uv.md @@ -0,0 +1,82 @@ +# apm is pinned per repo with uv + +**Status: accepted (2026-12-01).** + +## Context + +Issue #265. apm is installed once per machine with pipx, at 0.28.0, and every repo and the +`SessionStart` hook (ADR-0019) call whatever `apm` is on `PATH`. Three things now fail against that: + +- **Lockfile format.** apm 0.37 and later write lockfile v4, and apm 0.36.1 and earlier refuse it. A + lock written by 0.39.2 is in turn refused by 0.37.0 through 0.39.1. +- **Command keys.** apm 0.39.0 and later keep Claude command keys such as `disable-model-invocation` + (#245). Earlier versions drop them, so a deployed command silently loses the setting. +- **Machine-global drift.** One shared binary means every checkout's behaviour depends on what was + last installed on that machine. apm has no minimum-version field in `apm.yml`, and upstream's advice + is to pin a minimum in CI. This repo has no CI (ADR-0024), so the pin has to live in the repo. + +## Decision + +**Each repo pins its own apm with uv. This repo needs apm 0.39.2 or later and is pinned to 0.39.3.** + +- **Pin.** The root `pyproject.toml` has no build system, sets `[tool.uv] package = false` and + `requires-python = ">=3.11"`, and declares `[dependency-groups] dev = ["apm-cli==0.39.3"]`. A + committed `uv.lock` fixes the transitive dependencies. `.venv/` is gitignored. +- **Invocation.** Repo scripts run apm as `uv run --project --frozen apm`. An `APM` + environment variable overrides the command, as a seam for tests. +- **Minimum version, 0.39.2.** It is the lowest version that reads and writes lockfile v4 and is + read back by later versions, and it is at or above 0.39.0, which keeps the Claude command keys. + Inside this repo the `==` pin enforces it. Where apm comes from `PATH` (a consumer repo that does + not pin), an explicit version check enforces it. +- **uv only pins apm itself.** ADR-0024 stands: apm is the only supported install path for plugin + content. uv installs the tool, never plugins, skills or agents. +- **Hook first.** The kyberforge `SessionStart` hook change ships first, with a kyberforge version + bump and its release tag (ADR-0033). The cutover (the v4 lock, `pyproject.toml`, `uv.lock`, the + scripts and their tests) follows as one PR. The order matters because the deployed hook comes from + the `main` commit that `apm.lock.yaml` records. If the v4 lock landed first, the old hook would run + `PATH` apm 0.28.0, which refuses the lock, and staleness detection would be lost with no error. +- **The cutover PR commits a lock rewrite (v1 to v4) on purpose.** It is the one sanctioned exception + to the rule that `apm.lock.yaml` churn is discarded on feature branches (ADR-0019). +- **Consumer hook contract.** The shipped hook (`check-apm-current.sh`) resolves apm in this order: + 1. `uv run --frozen`, when the project pins `apm-cli` and uv exists. + 2. `apm` on `PATH`. + 3. Neither: exit 0. + + It never triggers a uv sync, and on a cold cache it must not touch the network inside the + `SessionStart` timeout. It never reports "up to date" when it ran on an apm older than 0.39.2. Its + advice strings are fixed and name the chosen binary, with no interpolation of command output. +- **Global apm 0.28.0 stays.** It stays installed and on `PATH`, because ansible still uses it + (Defame1297/ansible-homelab-mono#1078). It is not upgraded. Whichever of that issue and + Mortis/Kamino#499 lands last uninstalls it: the last mover deletes. +- **New setup step.** The offline pre-push guarantee of ADR-0019 now needs `uv sync --frozen` once + and `apm install` once per checkout. The first apm 0.39 install also needs the network, to record + commit verdicts. + +## Considered options + +**Global pipx apm, as today (rejected).** It is the drift described above, and it cannot enforce a +minimum version. + +**Upgrade the global apm (rejected).** It would fix this repo and break ansible, which still depends +on 0.28.0 behaviour, and it would leave the next repo with the same shared-binary problem. + +**`uvx` (rejected).** It has no lock, so apm's transitive dependencies float between runs and the +pin only covers the top-level package. + +**`uv tool install` (rejected).** It is machine-global state, the same drift as pipx under a +different name. + +## Consequences + +1. **A bare `apm` instruction fails closed.** Any leftover `apm` call in this repo that resolves to + the global 0.28.0 refuses the v4 lock instead of rewriting it. That is the intended failure, but it + will surprise whoever hits it; the fix is the `uv run` form. +2. **The network is needed on first sync.** A fresh checkout needs it for `uv sync --frozen` and again + for the first `apm install`. After both, the offline guarantee holds. +3. **uv becomes a prerequisite** of working in this repo. A consumer without uv falls back to `PATH` + apm and the version check. +4. **Re-verification is pending.** ADR-0019 and ADR-0033 state facts verified against apm 0.28.0. + They are re-checked on 0.39.3 under #265, and each carries a note saying so. + +Related: ADR-0019, ADR-0024, ADR-0033; #245, #265; Defame1297/ansible-homelab-mono#1078; +Mortis/Kamino#499. From 5ca20560465b2c88974dbbc5f64e3e71f2e276bb Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Tue, 1 Dec 2026 21:46:06 +0000 Subject: [PATCH 2/2] docs(research): refresh apm reference set to 0.39.3 (#265) Add lockfile-and-compatibility, approvals-and-executables and migration-0-28-to-0-39 topics; update installation, cli-reference, the prompt, hooks and instructions topics for 0.39.x behaviour; label the remaining 0.28.0 observations by version. Sources: the v0.39.3 source, CHANGELOG and docs; Context7 was unavailable. Refs #265 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi --- .../approvals-and-executables.md | 86 ++++++++ .../docs/microsoft-apm/cli-reference.md | 184 ++++++++++++++---- .../microsoft-apm/hooks-primitive-schema.md | 25 +++ .../docs/microsoft-apm/installation.md | 89 +++++++-- .../microsoft-apm/instructions-gotchas.md | 3 +- .../instructions-target-mapping.md | 19 +- .../lockfile-and-compatibility.md | 97 +++++++++ .../microsoft-apm/migration-0-28-to-0-39.md | 88 +++++++++ .../docs/microsoft-apm/prompt-gotchas.md | 16 +- .../microsoft-apm/prompt-primitive-schema.md | 25 ++- .../microsoft-apm/prompt-target-mapping.md | 3 + .../research/docs/microsoft-apm/sources.md | 60 ++++++ 12 files changed, 629 insertions(+), 66 deletions(-) create mode 100644 plugins/kyberforge/docs/research/docs/microsoft-apm/approvals-and-executables.md create mode 100644 plugins/kyberforge/docs/research/docs/microsoft-apm/lockfile-and-compatibility.md create mode 100644 plugins/kyberforge/docs/research/docs/microsoft-apm/migration-0-28-to-0-39.md diff --git a/plugins/kyberforge/docs/research/docs/microsoft-apm/approvals-and-executables.md b/plugins/kyberforge/docs/research/docs/microsoft-apm/approvals-and-executables.md new file mode 100644 index 0000000..b9f8dcc --- /dev/null +++ b/plugins/kyberforge/docs/research/docs/microsoft-apm/approvals-and-executables.md @@ -0,0 +1,86 @@ +--- +topic: approvals-and-executables +source_keys: + - apm-v0-39-3-source + - apm-v0-39-3-changelog + - apm-v0-39-3-docs +--- + +How apm 0.39.3 decides whether a package's executables may be deployed. Executables means hooks, MCP servers, `bin`, LSP servers, canvas extensions and native plugins. This also covers what `apm approve` writes and which `apm audit --ci` checks enforce it. Read from the v0.39.3 source, CHANGELOG and docs, and not run. Claims are marked **source** or **doc**. + +## The gate and its opt-in + +- **Source:** the executables gate is on when the project `apm.yml` has an `executables:` block (even `{}`) or the deprecated `allowExecutables:` block. **Doc:** a non-empty `executables:` block in org policy also turns it on. +- **Doc:** without an opt-in, executables deploy unconditionally. The first project approval prompts that it turns the gate on. A `--user` approval never turns it on. +- **Source:** `allowExecutables:` is still read as an alias of `executables.allow`, warned once per run, and migrated on the next approve or deny write. + +## Store shape + +`apm approve` writes the project `apm.yml` under `executables: {allow, deny}` by default. `--user` writes `$APM_HOME/config.json` instead. + +```yaml +executables: + allow: + acme/agent-kit: + hooks: { .apm/hooks/lint-on-save.json: sha256:<64 hex> } + mcp: { kit-docs: sha256:<64 hex> } + acme/tools: { bin: true } + deny: + evil/pkg: { hooks: true, mcp: true, bin: true, canvas: true, lsp: true } +``` + +- **Source:** each package key is a version-blind identity, such as `owner/repo`, `./pkgs/x` or `local:pkgs/leaf`. +- **Source:** values by type: + - `hooks` and `mcp` are maps of `item: sha256:<64 hex>`. The item is the package-relative hook file path, or the MCP server name. + - `bin`, `lsp` and `canvas` are `true`. + - A native plugin gets a single `plugin: sha256:`. +- **Source:** deny entries stay booleans. +- **Source:** malformed pins are rejected. A pinned item set to `true`, or a short digest, fails with `expected 'sha256:<64 hex>'`. + +## Grants are version-blind + +- **Source:** an ordinary grant key has its `#version` suffix stripped before matching. So `owner/repo#1.2.0` matches any installed version of `owner/repo`, and `apm approve` folds such keys into the bare identity. This was already true in 0.28.0. +- **Source:** the one exception is content-bound local-bundle keys of the form `name#version@sha256:`, which match only exactly. + +## Type-level versus content-pinned grants + +- **Source/doc:** type-level `hooks: true` and `mcp: true` still deploy any content. Each install warns once: `N executable approval(s) not pinned to content: () ... Upstream changes deploy without review.` +- **Source/doc:** `mcp: true` never admits a transitive MCP server. +- **Source/doc:** re-running `apm approve ` converts a type-level grant to pins. +- **Source:** a pinned item whose bytes change is parked as `definition-changed` and not deployed. A project pin decides alone; a user pin applies only when the project has none for that item. +- **Source (0.38.0, #4688):** a hook pin covers everything the hook deploys: + - the hook JSON; + - every script it references; + - every file the hook-bundle copier deploys from those script roots, such as helpers and nested `package.json`; + - the Node module type. + + It does not cover code the hook downloads at run time. Pins written before 0.38 show as changed once, so re-run `apm approve `. +- **Source:** pinned approvals need apm 0.37 or later on every machine. The first pinned approval prints `Teammates need APM 0.37 or later to read pinned approvals.`, and older clients reject the item form and fail closed. +- **Doc (0.39.3):** re-run `apm approve ` after reinstalling a package. + +## Transitive MCP servers + +- **Source:** `--trust-transitive-mcp` still exists in 0.39.3 as a per-run install flag that is never saved. **Doc:** it never overrides a deny or a mismatched pin. +- **Doc (0.37.0, #3918):** the durable replacement is `apm approve `, with `apm.yml` committed. +- **Doc (0.39.0):** a server trusted in 0.38 only via the flag is parked and removed on the first plain 0.39 install. Approve it to keep it. + +## Audit checks that enforce approvals (doc) + +| Check | Fails when | +|---|---| +| `config-consistency` | The lock admits an MCP server that `apm.yml` does not approve: `admitted in apm.lock.yaml but not approved in apm.yml (); run 'apm approve ' and re-run 'apm install'`. Admission is re-evaluated from `apm.yml` and org policy only, never from the lock or the user store. | +| `hook-approval-pins` | A recorded deployed hook file no longer matches its pin; or an unrecorded file sits at a withheld package's hook path; or a merged-config entry matches such a package's hook with no ownership record. | +| `exec-status-current` | A recorded `exec_status` differs from the current gate decision. Claude `settings.json` hooks are included. Not evaluated under `--no-policy`. | +| `local-bundle-hooks` | A local-bundle hook entry was edited or is unrecorded. Needs the `.claude/apm-hooks.json` record. | + +`apm install --frozen` fails on the same pin mismatches. + +## `apm approve` and `apm deny` + +- **Doc:** flags are `--pending`, `--all`, `--recommended`, `--list`, `--user`/`-g`. +- **Doc:** it exits 1 when: + - a requested package is not installed or is refused; + - the first-approval prompt is declined; + - a blocking org policy applies; + - installed files differ from `apm.lock.yaml`. +- **Source:** `apm deny [PACKAGES] --user/-g` writes deny entries. diff --git a/plugins/kyberforge/docs/research/docs/microsoft-apm/cli-reference.md b/plugins/kyberforge/docs/research/docs/microsoft-apm/cli-reference.md index 0a24d22..4fc06f8 100644 --- a/plugins/kyberforge/docs/research/docs/microsoft-apm/cli-reference.md +++ b/plugins/kyberforge/docs/research/docs/microsoft-apm/cli-reference.md @@ -2,35 +2,151 @@ topic: cli-reference source_keys: - context7-microsoft-apm + - apm-v0-39-3-source + - apm-v0-39-3-docs --- +The command surface as of apm 0.39.3, read from source (`cli.py` and `commands/`) and the reference docs. Version-specific changes are summarized in `migration-0-28-to-0-39.md`. + +## Command list (0.39.3, source) + +`approve`, `audit`, `auth`, `cache`, `compile`, `config`, `deny`, `deps`, `doctor`, `experimental`, `export-patch`, `find`, `init`, `install`, `lifecycle`, `list`, `lock`, `marketplace`, `mcp`, `outdated`, `pack`, `plugin`, `policy`, `preview`, `prune`, `publish`, `run`, `runtime`, `search`, `self-update`, `targets`, `uninstall`, `unpack`, `update`, `view`. + +There are also two hidden entries: `discover` (use the documented `apm init --discover` form) and `info`, an alias of `view`. + ## Install ```bash apm install [PACKAGE_REF...] [OPTIONS] ``` -With no arguments, resolves and installs everything declared in `apm.yml` against `apm.lock.yaml`. Explicit `PACKAGE_REF` arguments (e.g. `acme/internal-tools#^1.0.0`) install and add that dependency. `apm install --update` re-resolves and accepts new upstream content even when it doesn't match the recorded lockfile hash (see troubleshooting). `apm install --target agent-skills` generates a vendor-neutral output directory for IDE-agnostic tool support instead of a harness-specific one. +- With no arguments, apm installs everything declared in `apm.yml` against `apm.lock.yaml`. +- Naming a `PACKAGE_REF` installs that package and adds it as a dependency. +- `--update` re-resolves the dependencies and accepts new upstream content. +- `--target agent-skills` produces a vendor-neutral output directory. + +Frozen-install behaviour is in `lockfile-and-compatibility.md`. + +Options (doc): + +| Group | Options | +|---|---| +| Resolution and lockfile | `--update`, `--frozen/--no-frozen`, `--refresh`, `--accept-ref-change` | +| Run control | `--dry-run`, `--force`, `-v`, `--dev` | +| Scope and targets | `--root DIR`, `-t/--target`, `--runtime`, `--exclude`, `--only apm\|mcp`, `-g/--global`, `--legacy-skill-paths` | +| Policy and security | `--policy SOURCE`, `--no-policy`, `--audit off\|warn\|block`, `--no-audit` | +| Trust | `--trust-transitive-mcp`, `--trust-bin/--no-trust-bin` | +| Network and transport | `--allow-insecure`, `--allow-insecure-host`, `--parallel-downloads N`, `--ssh`, `--https`, `--allow-protocol-fallback`, `--auth-first` | +| Skill selection | `--skill`, `--as` | +| MCP | `--mcp`, `--transport`, `--url`, `--env`, `--header`, `--mcp-version`, `--registry` | + +Exit codes (doc): + +| Code | Meaning | +|---|---| +| 0 | Success or preview | +| 1 | Install failure. This includes frozen violations, and any reported error even with `--force`. | +| 2 | Usage error: no target detectable, `--ssh` with `--https`, `--frozen` with `--update`, or `--root` with `--global`. | + +## Update and outdated + +```bash +apm update [PACKAGES] [--yes] [--dry-run] [--verbose] [--global] [--force] [--target ...] +apm outdated [-g] [-v] [-j N] +``` + +**`apm update`** (source): +- `--check` is deprecated (doc). Use `--dry-run`, or `self-update --check` instead. +- Run outside an `apm.yml` project, bare `apm update` forwards to `self-update` with a warning (doc). +- `apm deps update` is deprecated in favour of `apm update`. + +**`apm outdated`** (source): +- Options are `--global`, `--verbose` and `--parallel-checks/-j N` (default 4; 0 means sequential). +- There is no `--json` and no package filter. +- **Output:** a "Dependency Status" table with columns Package, Current, Wanted (only when registry rows exist), Latest, Status and Source. + - The summary line is ` outdated dependency found` or ` outdated dependencies found`, or `Some dependencies could not be checked`. + - Statuses in code are `up-to-date`, `outdated`, `unknown`, `origin-conflict`, `access-denied` and `not-comparable`. + - With `-v`, the table adds the newer tags. +- **Exit codes:** 1 on `origin-conflict` or `access-denied` (source); the docs also give 1 for no lockfile in scope. Outdated or unknown rows still exit 0. +- Local and Artifactory dependencies are skipped, and the command is read-only. + +## Audit + +```bash +apm audit # scan deployed files for hidden Unicode +apm audit --ci # CI gate: lockfile consistency, approvals, drift replay, policy +apm audit --file # scan an arbitrary file +apm audit --ci -f json -o r.json +``` + +- **Options:** `--file`, `--strip`, `--dry-run`, `--no-drift`, `-v`, `--ci`, `--policy`, `--no-policy`, `--no-cache`, `--no-fail-fast`, `-f/--format text|json|sarif|markdown`, `-o/--output PATH`. + - When `-o` is given without `-f`, the format is inferred from the file extension. + - `markdown` is not allowed with `--ci`. +- **Exit codes in content-scan mode** (source docstring): 0 clean, 1 critical, 2 warnings only. The docs add 3 for configuration or infrastructure errors. +- **Exit codes in `--ci` mode:** 0 when every check passes, 1 when any fails. +- **Text output in `--ci` mode** (source): + - On success: `All check(s) passed`. + - On failure: ` of check(s) failed`, with each failure as `: ` followed by detail lines. + - M varies with which checks apply; the list is in `migration-0-28-to-0-39.md`. +- **Lockfile message** (source): when `apm.yml` declares dependencies but there is no lock, the detail reads `apm.yml declares dependencies but apm.lock.yaml is absent`. +- Fail-fast is the default. + +See `testing-and-validation.md` for CI wiring. + +## Approve, deny and export-patch + +```bash +apm approve [PACKAGES] [--pending|--all|--recommended|--list] [--user|-g] +apm deny [PACKAGES] [--user|-g] +apm export-patch [--out DIR] [--dry-run] [-v] +``` + +- Approvals are covered in `approvals-and-executables.md`. +- **`export-patch` (doc):** + - It writes one `patches/@.patch` per package, ready for `git apply`, covering only files that were deployed verbatim. + - It needs a lockfile and a populated `apm_modules/`, and it runs cache-only. + - It exits 0 on success, including when there is nothing to export. It exits 1 on a missing manifest or lock, a cold cache, or an invalid `--out`. ## Compile ```bash -apm compile +apm compile [-t TARGET|--all] [--root DIR] [-o PATH] [--clean] [--validate] [--dry-run] [--watch] [-g] ``` -Generates per-target output (Claude, Copilot, etc.) from the vendor-neutral `.apm/` primitive source tree, per the `compilation:` block in `apm.yml`. +- `apm compile` generates root context files (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`) from instructions. +- Other options: `--single-agents`, `--chatmode`, `--no-links`, `--with-constitution/--no-constitution`, `--local-only`, `--force-instructions` (alias `--no-dedup`) and `--legacy-skill-paths`. +- It exits 1 when org policy blocks a recorded package. +- A hand-authored root `CLAUDE.md` or `AGENTS.md` is never overwritten (source). For the 0.38/0.39 Claude layout, see `instructions-target-mapping.md`. ## Pack ```bash -apm pack --dry-run # resolve and print; do not write -apm pack --offline # cached refs only -apm pack --include-prerelease # allow pre-release tags -apm pack -v # per-entry resolution detail -apm pack --marketplace=claude --json # JSON output for CI pipelines +apm pack --dry-run # resolve and print; do not write +apm pack --check-versions --check-clean --dry-run +apm pack --format plugin # Claude Code plugin bundle (alias) +apm pack --marketplace=claude --json ``` -Bundles a producer package into a distributable artifact. +- **Options (source):** + - `--claude-plugin` + - `--format plugin|agent-plugin|claude|claude-plugin|apm`. With no flag the default is `claude-plugin`. `plugin` is an alias for the Claude Code plugin bundle. + - `--target/-t`, which is deprecated and informational only. + - `--archive` (default `.zip`) with `--archive-format zip|tar.gz`. + - `-o`, `--dry-run`, `--force`, `-v`, `--offline`, `--include-prerelease`. + - `--check-versions`, `--check-clean`, `--strict-metadata`. + - `-m/--marketplace`, `--marketplace-path FORMAT=PATH`, `--json`, `--legacy-skill-paths`. +- **Exit codes (source):** + + | Code | Meaning | + |---|---| + | 0 | Success | + | 1 | Build or runtime error | + | 2 | Usage error | + | 3 | `--check-versions` misalignment | + | 4 | `--check-clean` drift | + | 5 | `--strict-metadata` failure | + +- `--check-clean` is read-only. ## Publish @@ -39,17 +155,17 @@ apm publish --package acme/my-skill --dry-run -v apm publish --package acme/my-skill ``` -Publishes a producer package (root containing `apm.yml`, `.apm/`, and optionally a `registries:` block) to a registry. Always dry-run with `-v` first to see resolution detail before publishing for real. +`apm publish` sends a producer package to a registry. Always dry-run with `-v` first. ## Runtime management ```bash -apm runtime setup copilot # install with APM defaults -apm runtime setup codex --version 0.20.0 # pinned version -apm runtime setup llm --vanilla # skip APM-managed config -apm runtime list # what's installed -apm runtime status # which runtime `apm run` will pick -apm runtime remove gemini -y # uninstall without prompting +apm runtime setup copilot +apm runtime setup codex --version 0.20.0 +apm runtime setup llm --vanilla +apm runtime list +apm runtime status +apm runtime remove gemini -y ``` ## Run @@ -58,42 +174,28 @@ apm runtime remove gemini -y # uninstall without prompting apm run