fix(auto-prompts): add missing join import from node:path

auto-prompts.js called `join(base, ...)` in 11 places but only imported
`basename` from node:path. Crashed autonomous mode every iteration with
ReferenceError: join is not defined — observed in dr repo, 3 consecutive
iteration failures triggered the hard stop.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mikael Hugo 2026-05-14 21:19:09 +02:00
parent a3b68bb269
commit ccdf530488

View file

@ -6,7 +6,7 @@
* utility.
*/
import { existsSync } from "node:fs";
import { basename } from "node:path";
import { basename, join } from "node:path";
import { getLoadedSkills } from "@singularity-forge/coding-agent";
import { getAutoSession } from "./auto/session.js";
import { buildExtractionStepsBlock } from "./commands-extract-learnings.js";