Skip to content
lkshrkPublic
forked from microsoft/apm

About

Agent Package Manager

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

APM, patched (lk builder branch)

This branch builds microsoft/apm with a small patch series and publishes the wheel as a GitHub release (v<upstream>+lk.<n>). It holds no APM source: CI checks out the upstream tag named in the Makefile, applies patches/, runs upstream's unit tests, builds the wheel and verifies it.

Patches

Patch What it does
0001 omp as an APM target: native MCP ownership, extensions and portable hooks; Codex local preferences and entry matching; apm approve grants for native extensions; apm outdated --json
0002 At user scope (apm install -g), MCP secrets stay environment references: Claude writes ${VAR}, Codex env_vars / env_http_headers / bearer_token_env_var; nothing is looked up or prompted, adapters that would resolve a reference refuse the server, and only runtimes that wrote a server report it as configured

tests/secret-references.sh checks 0002 against the built wheel: with fake values in the environment, no value may land in ~/.claude.json or ~/.codex/config.toml. Upstream fails it.

Releases

  • A push to lk that changes the Makefile or patches/ builds and, when every step passes, releases v<APM_VERSION>+lk.<n> with the wheel and SHA256SUMS. n restarts at 1 for each upstream version.
  • Renovate bumps APM_VERSION when upstream releases. Patch releases merge on their own once CI is green; minor and major releases wait for review.
  • Wheels are reproducible (SOURCE_DATE_EPOCH), so a rebuild of the same commit has the same sha256.

When a patch no longer applies

The series is authored on lk-patches/v<version> (upstream tag + one commit per patch):

git fetch upstream --tags
git switch -c lk-patches/v0.38.0 lk-patches/v0.37.0
git rebase --onto v0.38.0 v0.37.0        # resolve conflicts, run the tests
git switch lk                            # on the Renovate PR branch
make refresh-patches APM_VERSION=0.38.0  # re-export patches/ from the new branch

Commit the refreshed patches/ to the Renovate PR; CI builds it. Patches never touch the version, CHANGELOG.md or README.md, so they don't conflict on every upstream release.

Local build

Needs git, GNU make and uv:

make checkouts patches test
make wheel VERSION=$(make -s next-version)
make verify

About

Agent Package Manager

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages