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.
| 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.
- A push to
lkthat changes theMakefileorpatches/builds and, when every step passes, releasesv<APM_VERSION>+lk.<n>with the wheel andSHA256SUMS.nrestarts at 1 for each upstream version. - Renovate bumps
APM_VERSIONwhen 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.
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 branchCommit 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.
Needs git, GNU make and uv:
make checkouts patches test
make wheel VERSION=$(make -s next-version)
make verify