github microsoft/apm v0.39.3

37 minutes ago

[0.39.3] - 2026-12-01

Highlights

  • Installs resolve a dependency's commit through git ls-remote when the commits API is rate-limited or failing, on every host, so the lockfile never holds a dependency without its commit. (#5566, #5591)
  • Hook configs shared by a home-rooted project and -g keep each scope's entries, -g writes through dotfiles links you own and uninstall -g removes through them only what it wrote, and the hook entries you wrote or edited are kept. (#5598, #5645, #5677, #5684, #5720)
  • Git credentials stay on the host they were configured for, and a GitHub rate limit never sends one. (#5631, #5643)

Before you upgrade, skim the upgrade notes: some commands now stop with a named fix instead of continuing.

Upgrade notes

  • Use -g for dotfiles-managed hook configs: a home-rooted project refuses a linked hook config at install, uninstall and prune (exit 1), and -g refuses a link another user owns; at project scope, uninstall and prune refuse a link below the deploy root by name before any change. (#5598, #5720)
  • Add new MCP or hook config paths to unmanaged_files.exclude, or use warn: unmanaged_files: deny counts the configs an install writes, except .claude/settings.local.json. (closes #5472, #5453, #5482)
  • Set COPILOT_CUSTOM_INSTRUCTIONS_DIRS if you used ~/.copilot/AGENTS.md: apm compile -g no longer writes it. (#5558)
  • On GHE.com, allow https://api.<subdomain>.ghe.com through your proxy or firewall: API requests go there instead of /api/v3. (#5581)
  • Set GITHUB_URL to a full https:// URL; mixed-case hosts keep working. (#5606)
  • Run apm approve <package> again after reinstalling a package: apm uninstall removes its executables.allow approval, and apm.yml rewrites are atomic. (#5699)
  • Run apm approve once for MCP servers of a local package outside the project: it is now locked by relative path. (closes #5418, #5485)
  • Prefer path in marketplace sources: github sources honour subdir and apm update migrates a v0.39.2 root lock, while an invalid catalog subdirectory, traversal, %2e or a control character is refused by name. (#5638, #5676, #5615)

Changed

  • Repeat installs do less work: outside CI the first apm install --frozen after apm install takes the verified fast path, and each repository's refs are listed at most once per run. (#5423, #5605)
  • Failures name their exact fix: helper tools such as az and npm name the skipped project path, and upgrade failures name a full commit SHA, mcp.trust_transitive: true, a lockfile regeneration or the policy refusal. (#5481, #5484)

Fixed

  • Commit resolution: a rate-limited or failing commits API now falls back to git ls-remote on the same host, and unpinned virtual files follow the default branch; only if both fail does install stop, naming the dependency, instead of locking it without a commit. Artifactory is unchanged. (#5566, #5573, #5591, #5603)
  • Local bundles: withdrawing a bundle's approval no longer deletes a hook config or entry you edited; APM moves it, inactive and restorable, to .apm/disabled-hooks/ ($APM_HOME/disabled-hooks/ with -g), also on apm install <bundle>. (#5677, #5686, #5695)
  • Hook entries: uninstall keeps your own, byte-identical and shared entries and the scripts they run, and stops without changes on an edited, unrecorded or linked hook config; install removes entries a package no longer ships; a bare-string entry or undocumented event is skipped with one warning. (#5569, #5602, #5656, #5684, #5690, #5647, #5712, #5604, closes #5570, #5660, #5685)
  • Hook scopes: a home-rooted project and -g keep each other's entries through install, uninstall and prune, apm install -g no longer deploys ~/.apm/ twice (run apm install in ~ to restore it), and apm audit --ci checks only project entries. (#5645, #5648, #5654, #5674, closes #5658, #5688, #5662)
  • Hook commands: only commands that stay inside the package and use no shell expansion ($(...), backticks, eval, here-docs, subshells) are deployed; rewrite others and rerun apm install. (#5600)
  • Config and lock files: a hook config that is not valid JSON is no longer overwritten, a leading BOM is kept, a FIFO or other non-regular lockfile, hook config or context file no longer hangs, and a crashed install's apm.yml is restored; the command names the file. (#5609, #5678, closes #5619, #5626, #5627, #5652, #5599, #5622, #5454, #5487)
  • Local packages and update: local packages install from read-only sources such as the Nix store, apm update redeploys a changed one, case-variant diamond paths install, and apm install <pkg> configures only the MCP servers it adds. (closes #5544, #5564, #5463, #5489, #5457, #5492, #5562, #5618)
  • Windows and user paths: apm uninstall retries a briefly held file on Windows and removes a symlink in a read-only apm_modules without following it; apm install -g keeps an unchanged recreated home's receipts, and compile -g explains a kept user root. (closes #5495, #5568, #5601, #5616, #5634, #5653, #5589)
  • Antigravity: applyTo: "**" rules render as always-on, hook commands are relative to .agents/, a hook whose matcher names no Antigravity tool (use names such as run_command) is skipped with a warning while the rest deploy, and uninstall removes its entries and scripts. (#5563, #5590, #5580, #5665)
  • Plugins, skills and git: native Claude plugins with displayName, documentation, support, privacy or terms URLs or a contained icon install, an agent's skill link points at the deployed copy, a warm partial git cache is reused, and an HTML ref listing fails with a named error. (#5715, #5535, #5623, closes #5687, #5689, #5640)

Security

  • Git credentials are scoped to the configured host; a redirect to a different host stops with a named error. (#5631)
  • Git commands APM starts never answer a credential prompt; a GitHub rate limit sends no credential, and anonymous-first requests read none until challenged. (#5643, #5679)

Full list of changes: v0.39.2...v0.39.3

Don't miss a new apm release

NewReleases is sending notifications on new releases.