fix(kyberforge): run the repo-pinned apm from apm-workflow
apm-workflow spelled every command as bare apm, which in a repo that pins apm with uv runs whatever is on PATH, possibly an apm that refuses the repo's lockfile. Add a step that checks for the pin and runs uv run --frozen apm there, and the PATH apm otherwise. apm-orchestrate's version check now probes the same apm. Bring the references level with apm 0.39.3: the Copilot marketplace output profile, get_effective_type() still ignoring the declared type, plain apm audit's exit codes, the uv form of the CI example, and audit --ci needing an apm at least as new as the lock's writer. Bump metadata.version to 1.0.4. Refs: #273 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
b81af32425
commit
0fb106b731
7 files changed
+63
-11
No files matched your search
@@ -5,10 +5,11 @@ description: >
|
||||
the dependencies it declares, or an apm marketplace — even when the user does
|
||||
not say "apm". Not the apm binary or an agent runtime -> `apm-install`.
|
||||
metadata:
|
||||
version: "1.0.3"
|
||||
version: "1.0.4"
|
||||
category: apm
|
||||
source_keys:
|
||||
- context7-microsoft-apm
|
||||
- apm-cli-0-39-3-uv-experiments
|
||||
---
|
||||
|
||||
## Gotchas
|
||||
@@ -29,6 +30,15 @@ metadata:
|
||||
|
||||
Read the reference file matching the resolved flow — it carries that flow's own traps, and names a sibling file wherever one flow genuinely depends on another's detail.
|
||||
|
||||
## Step 2 — Execute
|
||||
## Step 2 — Choose the apm command
|
||||
|
||||
Follow the matched reference file's instructions. Report back which `apm` command(s) were run (or drafted, if the user asked for a plan rather than execution) and their outcome.
|
||||
The references spell every command as bare `apm`. Before running one, check whether the repo pins apm: a `pyproject.toml` at the repo root naming `apm-cli` in a dependency group, with a `uv.lock` beside it.
|
||||
|
||||
- **Pinned:** run each command as `uv run --frozen apm <args>`, adding `--project <repo root>` from a subdirectory. Run `uv sync --frozen` once per checkout first; the first sync needs the network. A bare `apm` there runs whatever is on `PATH`, which may be older than the repo's pin and refuse its lockfile.
|
||||
- **Not pinned:** use the `apm` on `PATH`. If it is missing, or refuses the repo's lockfile as too new, hand off to `apm-install`.
|
||||
|
||||
Installing apm, or adding or moving the pin, belongs to `apm-install`.
|
||||
|
||||
## Step 3 — Execute
|
||||
|
||||
Follow the matched reference file's instructions. Report back which `apm` command(s) were run (or drafted, if the user asked for a plan rather than execution), spelled as invoked, and their outcome.
|
||||
Reference in new issue
Block a user