Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions evals/lib/fake-akm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,13 @@ try {
} catch {}

// Strip global flags so we can find the verb. Mirrors the akm CLI surface
// the hooks invoke: \`akm [--format X] [-q] [--detail Y] <verb> [args...]\`.
// the hooks invoke: \`akm [--format X] [--shape S] [-q] [--detail Y] <verb> [args...]\`.
// \`--shape\` is a v0.8.0 global flag (human|agent|summary); omitting it here made
// the shim mis-detect the verb as "--shape" and emit nothing, collapsing curation.
const args = []
for (let i = 0; i < argv.length; i++) {
const a = argv[i]
if (a === "--format" || a === "--detail") {
if (a === "--format" || a === "--detail" || a === "--shape") {
i++
continue
}
Expand Down
4 changes: 4 additions & 0 deletions evals/lib/stash-sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export function createSandbox(opts: SandboxOptions = {}): Sandbox {
XDG_CACHE_HOME: cacheDir,
AKM_PLUGIN_STATE_DIR: path.join(stateDir, "akm-claude"),
AKM_STASH_DIR: stashDir,
// Force the plugin to ignore its bundled akm-cli so akm invocations resolve
// to the deterministic fake shim on PATH (or the real akm in realAkm mode),
// not the real bundled dependency.
AKM_OPENCODE_IGNORE_BUNDLED_CLI: "1",
...opts.env,
}

Expand Down
Loading
Loading