fix(web): keep continuation manifest paths canonical
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-08-30 07:38:10 +08:00
parent 63ba5b1e0c
commit 34375845bd
2 changed files with 2 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ Recorded: 2026-08-29 Asia/Shanghai
| --- | --- |
| Current task when this file was written | `WBV2-P78-000` |
| Current task state | `in_progress` |
| Parent manifest | `tests/golden/WBV2/WBV2-P77-003/manifest.json` |
| Parent manifest | `tests/golden/WBV2-P77-003/manifest.json` |
| Current task card | `docs/tasks/WBV2-P78-000.md` |
| Current task-context nextTask | `NONE` |
| Focused command | `node tools/web/generate-wbv2-capability-continuation-root.mjs` |

View File

@@ -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`);