feat(kyberforge): resolve the repo-pinned apm in the SessionStart hook
The hook now picks one apm and uses it for both the outdated check and the update (ADR-0034): `uv run --project <root> --frozen --no-sync --offline apm` when the project pins apm-cli (a quoted apm-cli requirement in pyproject.toml plus a uv.lock) and uv is on PATH, else the PATH apm, else it exits silently. uv is only ever called as `uv run`; `--no-sync` keeps a plain run from syncing the environment, and `--offline` keeps uv off the network. Before the outdated check it reads `--version`. Below 0.39.2, or when the version cannot be read, it prints a fixed notice naming the chosen binary and skips the check, since an older apm refuses a lockfile v4 and would report it as up to date. All advice strings are fixed literals that name the chosen binary; no command output is interpolated. Tests use seam A: a fake uv first on a whitelisted PATH logs every call and reaches the pinned fake apm only through `uv run`. They cover pin plus uv, pin without uv, pin without uv.lock, no pin, no apm, too-old and boundary versions, stale and current output on both paths, and hostile output. ADR-0034 is amended to record that seam. Impact: kyberforge 2.2.1 -> 2.3.0, catalog 0.9.0 -> 0.9.1. Refs: #270 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
0ad15c80bc
commit
1fb8cc797b
7 files changed
+436
-33
No files matched your search
@@ -1,5 +1,5 @@
|
||||
name: holocron
|
||||
version: 0.9.0
|
||||
version: 0.9.1
|
||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||
license: MIT
|
||||
|
||||
@@ -72,7 +72,7 @@ dependencies:
|
||||
# an apm mechanic.
|
||||
executables:
|
||||
allow:
|
||||
kyberforge#2.2.1:
|
||||
kyberforge#2.3.0:
|
||||
hooks: true
|
||||
bin: true
|
||||
# delivery ships the guard hook (ADR-0032 enforcement layer 2). Same
|
||||
@@ -86,7 +86,7 @@ marketplace:
|
||||
# top-level apm.yml description:/version: above are NOT inherited into the
|
||||
# compiled output despite being used elsewhere (e.g. by `apm audit`).
|
||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||
version: 0.9.0
|
||||
version: 0.9.1
|
||||
owner:
|
||||
name: Mortis
|
||||
url: https://git.rkdr.net/Mortis/
|
||||
|
||||
Reference in new issue
Block a user