Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
fa3fb2d
fix(lifecycle): reap command scripts when the APM command is interrup…
danielmeppiel Nov 12, 2026
bb8ce74
fix(mcp): route JSON MCP config writes through the shared adapter own…
danielmeppiel Nov 12, 2026
8beb01c
test(integration): fault-injection atomicity and fix-guard lifecycle …
danielmeppiel Nov 12, 2026
cc92cb0
test(integration): user-authored same-name collision lifecycle (#3649)
danielmeppiel Nov 12, 2026
0ccf46f
fix(integration): skip unmanaged same-name native rules instead of ov…
danielmeppiel Nov 12, 2026
e05af3e
fix(uninstall): never glob-delete native instruction files without a …
danielmeppiel Nov 12, 2026
8be90a5
test(integration): JSONC MCP configs survive install across adapters …
danielmeppiel Nov 12, 2026
b9e9cf9
fix(view): report user-scope provenance for every target in view -g -…
danielmeppiel Nov 12, 2026
1434220
fix(install): keep files renamed only by case on case-insensitive fil…
danielmeppiel Nov 12, 2026
d98b390
fix(export-patch): disambiguate patch names that differ only by case …
danielmeppiel Nov 12, 2026
16cbb6e
test(lifecycle): guard spaced and non-ASCII project, HOME and package…
danielmeppiel Nov 12, 2026
1c403ed
test(lifecycle): keep the unicode path chain independent of subdirect…
danielmeppiel Nov 12, 2026
3c296b8
fix(security): apm approve unlocks github.com dependencies (#3649)
danielmeppiel Nov 12, 2026
613db7a
fix(manifest): approve, deny and install --mcp keep apm.yml comments …
danielmeppiel Nov 12, 2026
08fadbe
test(install): racing install and uninstall converge under the lifecy…
danielmeppiel Nov 12, 2026
b79d7f0
chore(architecture): register the consumer apm.yml rewrite owner (#3649)
danielmeppiel Nov 12, 2026
9036d38
fix(install): targeted install and update re-read only the selected l…
danielmeppiel Nov 12, 2026
7334dc4
fix(lockfile): record a mixed-case parent by its canonical identity (…
danielmeppiel Nov 12, 2026
eb00eaa
test(lifecycle): one lock entry across dependency spellings; diamonds…
danielmeppiel Nov 12, 2026
19e9552
fix(view): match decomposed (NFD) paths in view --file (#3687)
danielmeppiel Nov 12, 2026
99063cd
fix(audit): fail audit --ci when the current directory has no apm.yml…
danielmeppiel Nov 12, 2026
03190c3
fix(install): name obstructed deployment paths with a remedy (#3678)
danielmeppiel Nov 12, 2026
12f1835
fix(cli): route SIGTERM through the Ctrl+C rollback path (#3676)
danielmeppiel Nov 12, 2026
a7b0a61
fix(install): release a removed dependency's skill dir that holds onl…
danielmeppiel Nov 12, 2026
a1f4e2a
fix(mcp): refuse symlinked project MCP configs and invalid Claude con…
danielmeppiel Nov 12, 2026
f2b72be
fix(lockfile): read an unquoted integer lockfile_version (#3692)
danielmeppiel Nov 12, 2026
3e95aa2
fix(config): unknown keys are a plain user error with the full key li…
danielmeppiel Nov 12, 2026
8c5fc10
fix(deps): deps list, deps tree and prune name a conflicted lockfile …
danielmeppiel Nov 12, 2026
4e3d965
fix(manifest): refuse duplicate top-level keys in apm.yml before any …
danielmeppiel Nov 12, 2026
997df69
fix(install): local bundle install honours apm.yml targets (#3649)
danielmeppiel Nov 12, 2026
6cd9f6d
fix(lockfile): link legacy mixed-case parents when reading a lockfile…
danielmeppiel Nov 12, 2026
9a1160b
fix(uninstall): remove every declaration of a package; install --dev …
danielmeppiel Nov 12, 2026
bb118d3
fix(resolve): reject a repository declared with its own subdirectory …
danielmeppiel Nov 12, 2026
ac625d6
fix(mcp): report same-name MCP conflicts on every JSON adapter (#3681)
danielmeppiel Nov 12, 2026
cd9e154
fix(audit): classify skipped same-name user files as unmanaged confli…
danielmeppiel Nov 12, 2026
46a244a
fix(view): strip the path anchor without the raw relative_to string f…
danielmeppiel Nov 13, 2026
60f7130
refactor(security): write allowExecutables through the round-trip man…
danielmeppiel Nov 13, 2026
3049555
docs(changelog): record 0.36.0 round-2 red-team fixes (#3649)
danielmeppiel Nov 13, 2026
03b7406
test(lifecycle): promote small round-2 fix guards to lifecycle smoke …
danielmeppiel Nov 13, 2026
749af9e
docs(changelog): link round-2 entries to #3709
danielmeppiel Nov 13, 2026
4bb3b8a
test(lifecycle): guard frozen replay of an unquoted lockfile_version …
danielmeppiel Nov 13, 2026
a5bf3c5
test(output-mode): audit a real manifest in the machine-output notice…
danielmeppiel Nov 13, 2026
2f2098a
test(prune): reach the released-root trim through a valid declaration…
danielmeppiel Nov 13, 2026
04bdf14
fix(mcp): keep Claude Code's trailing newline in shared JSON config w…
danielmeppiel Nov 13, 2026
068d48a
fix(security): key replacement consent by the declared with: source (…
danielmeppiel Nov 13, 2026
18ad539
test(pack): stop appending a duplicate dependencies key after apm ini…
danielmeppiel Nov 13, 2026
79dd5e6
fix(install): release user-content skill dirs only for departing owne…
danielmeppiel Nov 13, 2026
852d556
test(mcp): align adapter tests with the shared JSON config owner (#3649)
danielmeppiel Nov 13, 2026
a79f44a
fix(mcp): compare native MCP entries by JSON type, not Python equalit…
danielmeppiel Nov 13, 2026
292fdfa
test(lifecycle): expect unmanaged-conflict for the skipped Kiro promp…
danielmeppiel Nov 13, 2026
9a1f378
refactor(audit): give drift claim membership its own owner and regist…
danielmeppiel Nov 13, 2026
9e2a8d0
fix(mcp): keep APM-written entries until their declaration changes (#…
danielmeppiel Nov 13, 2026
ef850bc
test(mcp): align MCP and drift tests with the #3681/#3682 contracts (…
danielmeppiel Nov 13, 2026
4208c94
fix(mcp): retain the receipt of a managed MCP entry that already matc…
danielmeppiel Nov 13, 2026
3db7bc1
fix(mcp): compare VS Code entries against the render that keeps optio…
danielmeppiel Nov 13, 2026
53c5b54
docs(lockfile-spec): wrap the MCP receipt paragraph (#3681)
danielmeppiel Nov 13, 2026
68bd929
test(e2e): declare sibling subdirectory packages in the private fallb…
danielmeppiel Nov 13, 2026
d886521
fix(manifest): refuse duplicate top-level keys on the same line (#3691)
danielmeppiel Nov 13, 2026
5961fd8
perf(install): index spelling aliases once per inventory (#3684)
danielmeppiel Nov 13, 2026
a63591f
fix(view): keep the root spelling when retrying a decomposed --file p…
danielmeppiel Nov 13, 2026
f9eccea
fix(install): keep a declaration's fields when install moves or keeps…
danielmeppiel Nov 13, 2026
7b3280f
fix(mcp): keep the VS Code full-reference config key on the public de…
danielmeppiel Nov 13, 2026
f9df34c
test(cleanup): give round-2 cleanup tests the recorded hashes #3663 r…
danielmeppiel Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .apm/architecture/owners/core-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@
"owner": "core/scope.py (get_apm_home)",
"selectors": ["src/apm_cli/core/scope.py"],
"guards": ["registry-delegation-apm-home-resolution"]
},
{
"id": "process-interrupt-signals",
"decision": "SIGTERM takes the same interrupt (Ctrl+C) path as SIGINT; a second SIGTERM terminates",
"owner": "cli.py (main, _route_sigterm_to_interrupt)",
"selectors": ["src/apm_cli/cli.py"],
"guards": ["registry-delegation-process-interrupt-signals"]
}
]
}
4 changes: 2 additions & 2 deletions .apm/architecture/owners/hooks-integrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
},
{
"id": "mcp-package-launcher",
"decision": "MCP package launcher selection, argv shape (container and non-container), and config-key derivation",
"decision": "MCP package launcher selection, argv shape (container and non-container), and config-key derivation; MCP JSON config parse-for-update (never rewrite an unparsable file) and atomic write",
"owner": "adapters/client/base.py (MCPClientAdapter, including determine_config_key)",
"selectors": ["src/apm_cli/adapters/client/base.py"],
"guards": ["hooks-integrations-mcp-config-key-derivation", "hooks-integrations-mcp-package-launcher"]
"guards": ["hooks-integrations-mcp-config-key-derivation", "hooks-integrations-mcp-package-launcher", "hooks-integrations-mcp-json-config-write"]
},
{
"id": "mcp-passthrough-denylist",
Expand Down
25 changes: 22 additions & 3 deletions .apm/architecture/owners/install-deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@
{
"id": "legacy-mcp-ownership-key-migration",
"decision": "MCP native connection baseline comparison, actual-write fingerprints, exact-key safe removal and deferred claim preservation, plus legacy target ownership migration and adoption",
"owner": "install/mcp/ownership.py",
"owner": "install/mcp/ownership.py (native_comparison_clients selects compared runtimes; written_native_hash records fingerprints)",
"selectors": ["src/apm_cli/install/mcp/ownership.py"],
"guards": ["install-deployment-mcp-ownership-migration"]
"guards": [
"install-deployment-mcp-ownership-migration",
"install-deployment-mcp-native-comparison"
]
},
{
"id": "deployment-provenance-state",
Expand Down Expand Up @@ -159,13 +162,15 @@
{
"id": "file-level-deploy-sync-cleanup",
"decision": "File-level deploy / sync / cleanup",
"owner": "BaseIntegrator (successful source-member inventory and skip outcomes via copy_directory_files; SkillIntegrationResult completion after rewrite/hash; services consumes positive public completion into owner-scoped receipts; install-time package-relative link rewriting via resolve_links, including Codex agent conversion; see integrators.instructions.md)",
"owner": "BaseIntegrator (successful source-member inventory and skip outcomes via copy_directory_files; SkillIntegrationResult completion after rewrite/hash; services consumes positive public completion into owner-scoped receipts; install-time package-relative link rewriting via resolve_links, including Codex agent conversion; case/normalization-only spellings of a live deployed path resolve through utils/paths (stored_alias in check_collision, a SpellingAliasIndex built once per inventory in remove_stale_deployed_files, physical_alias for one-shot queries); a stale skill directory left only for user content is released (CleanupResult.released), never retained; see integrators.instructions.md)",
"selectors": [
"src/apm_cli/integration/base_integrator.py",
"src/apm_cli/integration/cleanup.py",
"src/apm_cli/install/services.py"
],
"guards": [
"install-deployment-base-integrator",
"install-deployment-cleanup-ownership-release",
"install-deployment-codex-agent-link-resolution"
]
},
Expand Down Expand Up @@ -204,6 +209,13 @@
"selectors": ["src/apm_cli/deps/lock_parent_placement.py"],
"guards": ["install-deployment-lock-parent-placement"]
},
{
"id": "drift-claim-membership",
"decision": "Drift replay claim membership: unclaimed differing files are unmanaged conflicts, never managed local edits",
"owner": "install/drift_claims.py (ReplayClaims.unclaimed)",
"selectors": ["src/apm_cli/install/drift_claims.py"],
"guards": ["install-deployment-drift-claim-classification"]
},
{
"id": "ci-audit-scratch-materialization",
"decision": "CI audit scratch materialization",
Expand Down Expand Up @@ -245,6 +257,13 @@
"src/apm_cli/commands/uninstall/engine.py"
],
"guards": ["install-deployment-skills-root-derivation"]
},
{
"id": "consumer-manifest-rewrite",
"decision": "apm.yml reads reject duplicate top-level keys; rewrites preserve user comments, aliases and layout",
"owner": "models/manifest_io.py (load_manifest, load_manifest_roundtrip) for apm.yml reads: APMPackage.from_apm_yml, project executable trust, apm run config and every rewrite; utils/yaml_io.py dump_yaml_roundtrip for install, uninstall, approve/deny and install --mcp rewrites",
"selectors": ["src/apm_cli/install/mcp/writer.py", "src/apm_cli/models/manifest_io.py"],
"guards": ["install-deployment-consumer-manifest-rewrite"]
}
]
}
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- A same-name MCP server whose definition differs from a dependency's is now reported as a conflict and `apm install` exits 1 on every JSON-config target (VS Code, Copilot, Cursor, Gemini, Kiro, OpenCode, Windsurf, Antigravity), as Claude and Codex already did; the user's entry is preserved and never claimed. (#3709)
- `apm audit --ci` now fails when the current directory has no `apm.yml` instead of passing with nothing audited; run it from the project root. (#3709)
- `apm.yml` with a duplicate top-level key (for example two `dependencies:` blocks after a merge) is now rejected with one error naming the key and both lines, before any file changes, instead of silently using the last block. (#3709)
- `apm uninstall X` removes every declaration of `X` (both sections, any spelling), and `apm install --dev X` moves `X` from `dependencies` to `devDependencies` instead of adding a duplicate that could not be uninstalled. (#3709)
- Declaring a repository together with one of its own subdirectory packages in `apm.yml` is now rejected before anything is fetched. (#3709)
- SIGTERM (for example a cancelled CI job) now takes the same path as Ctrl+C: the install transaction rolls back and running lifecycle scripts are stopped; a second SIGTERM terminates. (#3709)
- Cursor rules now use Cursor's native always-on `alwaysApply: true` instead of `globs: **` when an instruction's `applyTo` is exactly one `**`; reinstalling replaces old rules, and other `applyTo` values are unchanged. -- by @WilliamK112 (#2030)
- `apm mcp install --help` now lists its forwarded install options (`--transport`, `--url`, `--env`, `--header`, `--target`, `--registry`, `--mcp-version`, `--global`, `--trust-transitive-mcp`, `--dev`, `--dry-run`, `--force`, `--verbose`, `--no-policy`) with the same help text, accepted values and shell completion as `apm install`, instead of a hand-written summary that had drifted; forwarded installs behave as before. (#3633)
- `apm compile` places scoped `applyTo` instructions much faster on large projects (about 41x on a ~10,000-directory benchmark) by caching resolved paths and computing placement scores once per run; matching, placement, symlink handling and generated output are unchanged. -- by @sekosen (#3379)
Expand All @@ -52,6 +58,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- `APM_HOME` is now the single root for APM-owned user state: global `apm.yml`, `apm.lock.yaml` and `apm_modules/`, `config.json`, marketplace registrations, lifecycle trust and logs, and deployment receipts all follow it, so two `APM_HOME` values no longer share or leak into `~/.apm`. Unset keeps `~/.apm`; a relative value resolves against the starting directory; target deployment destinations are unchanged, and state-changing commands still serialize across `APM_HOME` values. -- by @WilliamK112 (#3614, #3707)
- `apm install` no longer rewrites a JSONC or trailing-comma MCP config (`.vscode/mcp.json`, `.github/mcp.json`, Gemini, Kiro, Claude) from scratch, which deleted user servers; it leaves the file unchanged, reports the server as not configured and exits 1. All JSON MCP configs are now written through the shared atomic, symlink-safe writer, and project MCP config files that are symbolic links are refused like user-scope ones. (#PRNUM)
- Interrupting an APM command (Ctrl+C) now stops a running lifecycle script, such as `pre-compile`, before APM exits. (#PRNUM)
- `apm install` no longer overwrites a user-authored rule with the same name in `.claude/rules`, `.cursor/rules`, `.windsurf/rules` or `.kiro/steering`: it adopts identical bytes and otherwise skips with a warning unless `--force`, like other primitives. (#PRNUM)
- `apm uninstall` without a lockfile no longer deletes user-authored `.cursor/rules/*.mdc` and `.github/instructions/*.instructions.md` files. (#PRNUM)
- On macOS and Windows, `apm update` after a package renamed primitives only by case keeps the renamed files instead of deleting them as stale. (#PRNUM)
- Targeted `apm install PKG`, `apm install --update PKG` and `apm update PKG` no longer re-read unselected local packages, so a sibling `apm.yml` mid-edit no longer fails the command or leaves unlocked modules. (#PRNUM)
- A dependency declared with mixed-case `Owner/Repo` now records its canonical parent identity, so `apm deps tree` and `apm deps why` keep its transitive dependencies; existing lockfiles are read the same way. (#PRNUM)
- `apm approve` now takes effect for `github.com` dependencies (hooks, bin, MCP and other executables stayed gated), and `apm approve --pending` honours user-level grants. (#PRNUM)
- `apm approve`, `apm deny` and `apm install --mcp` keep comments, key order and anchors in `apm.yml`. (#PRNUM)
- `apm view -g --file` reports provenance for user-scope files of every target, not only `~/.copilot/`, and `apm view --file` matches decomposed (NFD) path spellings that name the same file. (#PRNUM)
- `apm export-patch` no longer writes two packages whose names differ only by case to one patch file. (#PRNUM)
- `apm install <bundle>` without `--target` now deploys to the `targets:` declared in the project's `apm.yml` (then `apm config target`) instead of auto-detecting past them. (#PRNUM)
- Removing a dependency whose skill directory also holds a user file now drops its lockfile row and keeps the user's directory, so `apm install`, `apm deps list` and `apm audit --ci` agree. (#PRNUM)
- `apm audit --ci` reports a skipped user-authored file with the same name as a package primitive as `unmanaged-conflict` with rename guidance, without the `apm export-patch` hint. (#PRNUM)
- Install, compile and export-patch name an obstructed path and how to fix it instead of printing raw errno text, and a compile batch error prints once. (#PRNUM)
- An unquoted `lockfile_version: 1` is read as `"1"`; `apm config get/set` with an unknown key prints the full list of valid keys; `apm deps list`, `apm deps tree` and `apm prune` name a lockfile with merge conflict markers. (#PRNUM)
- `apm install` no longer rewrites a JSONC or trailing-comma MCP config (`.vscode/mcp.json`, `.github/mcp.json`, Gemini, Kiro, Claude) from scratch, which deleted user servers; it leaves the file unchanged, reports the server as not configured and exits 1. All JSON MCP configs are now written through the shared atomic, symlink-safe writer, and project MCP config files that are symbolic links are refused like user-scope ones. (#3709)
- Interrupting an APM command (Ctrl+C) now stops a running lifecycle script, such as `pre-compile`, before APM exits. (#3709)
- `apm install` no longer overwrites a user-authored rule with the same name in `.claude/rules`, `.cursor/rules`, `.windsurf/rules` or `.kiro/steering`: it adopts identical bytes and otherwise skips with a warning unless `--force`, like other primitives. (#3709)
- `apm uninstall` without a lockfile no longer deletes user-authored `.cursor/rules/*.mdc` and `.github/instructions/*.instructions.md` files. (#3709)
- On macOS and Windows, `apm update` after a package renamed primitives only by case keeps the renamed files instead of deleting them as stale. (#3709)
- Targeted `apm install PKG`, `apm install --update PKG` and `apm update PKG` no longer re-read unselected local packages, so a sibling `apm.yml` mid-edit no longer fails the command or leaves unlocked modules. (#3709)
- A dependency declared with mixed-case `Owner/Repo` now records its canonical parent identity, so `apm deps tree` and `apm deps why` keep its transitive dependencies; existing lockfiles are read the same way. (#3709)
- `apm approve` now takes effect for `github.com` dependencies (hooks, bin, MCP and other executables stayed gated), and `apm approve --pending` honours user-level grants. (#3709)
- `apm approve`, `apm deny` and `apm install --mcp` keep comments, key order and anchors in `apm.yml`. (#3709)
- `apm view -g --file` reports provenance for user-scope files of every target, not only `~/.copilot/`, and `apm view --file` matches decomposed (NFD) path spellings that name the same file. (#3709)
- `apm export-patch` no longer writes two packages whose names differ only by case to one patch file. (#3709)
- `apm install <bundle>` without `--target` now deploys to the `targets:` declared in the project's `apm.yml` (then `apm config target`) instead of auto-detecting past them. (#3709)
- Removing a dependency whose skill directory also holds a user file now drops its lockfile row and keeps the user's directory, so `apm install`, `apm deps list` and `apm audit --ci` agree. (#3709)
- `apm audit --ci` reports a skipped user-authored file with the same name as a package primitive as `unmanaged-conflict` with rename guidance, without the `apm export-patch` hint. (#3709)
- Install, compile and export-patch name an obstructed path and how to fix it instead of printing raw errno text, and a compile batch error prints once. (#3709)
- An unquoted `lockfile_version: 1` is read as `"1"`; `apm config get/set` with an unknown key prints the full list of valid keys; `apm deps list`, `apm deps tree` and `apm prune` name a lockfile with merge conflict markers. (#3709)
- `APM_HOME` is now the single root for APM-owned user state: global `apm.yml`, `apm.lock.yaml` and `apm_modules/`, `config.json`, marketplace registrations, lifecycle trust and logs, and deployment receipts all follow it, so two `APM_HOME` values no longer share or leak into `~/.apm`. Unset keeps `~/.apm`; a relative value resolves against the starting directory; target deployment destinations are unchanged, and state-changing commands still serialize across `APM_HOME` values. -- by @WilliamK112 (#3614)
- `apm install` for Codex now warns, naming the agent, when an agent's `model` is a Claude alias (`opus`, `sonnet`, `haiku`, `inherit`) or `claude-*` id; the value is still written to the Codex TOML exactly as declared. Rebuilt from #3481 by @xubenqiang. (#3650)
- `apm --help` shows the `apm view` summary in full again instead of wrapping it at 80 columns. (#3651)
- `apm export-patch` now writes patches for subdirectory packages with paths from the repository root, so `git apply` works from a clone of the package repository as documented. It also exports skill edits in Claude plugin packages (`plugin.json`, no `apm.yml`) instead of skipping them as "ambiguous source"; a file whose source APM cannot prove is still skipped. (#3672)
Expand Down
5 changes: 3 additions & 2 deletions docs/src/content/docs/consumer/deploy-a-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ For the full flag list see the [`apm install` reference](../../reference/cli/ins

## Targets

Pass `--target` to scope the deploy. Without it APM auto-detects from the
current project. If the bundle was packed for targets you are not
Pass `--target` to scope the deploy. Without it APM uses the `targets:`
declared in the project's `apm.yml` (then `apm config target`), and
auto-detects only when neither is set. If the bundle was packed for targets you are not
installing into, APM prints a warning naming the missing targets and
proceeds with what it can deploy.

Expand Down
19 changes: 13 additions & 6 deletions docs/src/content/docs/consumer/install-mcp-servers.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,12 @@ and plugin. Servers then install like `apm.yml`-declared self-defined servers.

## Resolve a connection name conflict

For self-defined Claude and Codex connections, a normal package update or root
override updates an unchanged managed connection. A differing native entry
is preserved, the affected target is named, and install exits `1`.
For every JSON-config target (VS Code, Copilot CLI, Cursor, Gemini, Kiro,
OpenCode, Windsurf, Antigravity) and for Claude and Codex, a normal package
update or root override updates an unchanged managed connection. A differing
native entry is preserved, the affected target is named, and install exits
`1`; it is never reported as "already configured". JetBrains and Hermes still
skip an existing connection by name.
Successful writes, including registry entries written before a later
self-defined conflict, remain recorded. This is not a whole-command rollback.

Expand Down Expand Up @@ -401,9 +404,13 @@ user manifest, lockfile, or runtime configuration. The direct command creates
or updates `~/.apm/apm.yml`; it does not fall back to the current project's
manifest. With `--dry-run`, it previews the user-scope entry and runtime
targets without creating that manifest, lockfile, or runtime configuration.
APM leaves an existing Cursor or OpenCode config untouched and reports that
target as failed when it cannot parse the file as JSON (for example, OpenCode
JSONC comments) or when its user-scope path runs through a symlink.
APM leaves an existing JSON MCP config (Copilot, VS Code, Claude Code,
Cursor, OpenCode, Gemini, Kiro) untouched and reports that target as failed
when it cannot parse the file as JSON (for example, JSONC comments or a
trailing comma). It also refuses a project MCP config that is a symbolic link,
or is reached through one, just as it refuses a user-scope path that runs
through a symlink below the home directory; replace the link with a regular
file and rerun the install.

## stdio vs HTTP servers

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/consumer/manage-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ parser. The supported forms:
| GitHub shorthand | `owner/repo` | Public GitHub repo, latest default branch. |
| Pinned ref | `owner/repo#v1.0.0` | Pin to a tag, branch, or full commit SHA. |
| FQDN shorthand | `gitlab.com/acme/repo#v2.0` | Any git host, not just github.com. |
| Virtual subdirectory | `owner/repo/skills/review` | Install one skill folder from a monorepo. |
| Virtual subdirectory | `owner/repo/skills/review` | Install one skill folder from a monorepo. Do not also declare `owner/repo` itself: install rejects a repository declared together with its own subdirectory package. |
| Virtual file | `owner/repo/prompts/review.prompt.md` | Install a single primitive file. |
| HTTPS git URL | `https://gitlab.com/acme/repo.git` | Explicit URL, any host. |
| SSH SCP-style | `git@gitlab.com:acme/repo.git` | SSH with default port. |
Expand Down
Loading
Loading