fix(web): keep continuation manifest paths canonical
This commit is contained in:
@@ -78,6 +78,6 @@ fs.writeFileSync(abs(manifestPath), `${JSON.stringify({ schemaVersion: 1, task,
|
||||
execFileSync(process.execPath, [abs("tools/web/check-task-context.mjs"), "--task", nextTask, "--write"], { cwd: root, stdio: "inherit" });
|
||||
const tick = String.fromCharCode(96);
|
||||
let next = read("nextTask.md");
|
||||
next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | " + tick + nextTask + tick + " |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | " + tick + "in_progress" + tick + " |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | " + tick + "tests/golden/WBV2/" + task + "/manifest.json" + tick + " |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | " + tick + "docs/tasks/" + nextTask + ".md" + tick + " |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | " + tick + (nextIndex > 3 ? "NONE" : `WBV2-P${phase}-${String(nextIndex + 1).padStart(3, "0")}`) + tick + " |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | " + tick + (nextIndex > 3 ? "node tools/web/generate-wbv2-capability-continuation-root.mjs" : `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task ${nextTask} --write`) + tick + " |");
|
||||
next = next.replace(/\| Current task when this file was written \| `[^`]+` \|/u, "| Current task when this file was written | " + tick + nextTask + tick + " |").replace(/\| Current task state \| `[^`]+` \|/u, "| Current task state | " + tick + "in_progress" + tick + " |").replace(/\| Parent manifest \| `[^`]+` \|/u, "| Parent manifest | " + tick + "tests/golden/" + task + "/manifest.json" + tick + " |").replace(/\| Current task card \| `[^`]+` \|/u, "| Current task card | " + tick + "docs/tasks/" + nextTask + ".md" + tick + " |").replace(/\| Current task-context nextTask \| `[^`]+` \|/u, "| Current task-context nextTask | " + tick + (nextIndex > 3 ? "NONE" : `WBV2-P${phase}-${String(nextIndex + 1).padStart(3, "0")}`) + tick + " |").replace(/\| Focused command \| `[^`]+` \|/u, "| Focused command | " + tick + (nextIndex > 3 ? "node tools/web/generate-wbv2-capability-continuation-root.mjs" : `node tools/web/generate-wbv2-capability-continuation-slice.mjs --task ${nextTask} --write`) + tick + " |");
|
||||
fs.writeFileSync(abs("nextTask.md"), next);
|
||||
console.log(`wbv2-capability-continuation-slice-written task=${task} next=${nextTask} batches=27 pending=6609 verification=DEFERRED`);
|
||||
|
||||
Reference in New Issue
Block a user