Remember the terminal or web console choice, refresh the launcher model menus (v3.2.2)

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-30 20:08:23 -08:00
1 parent f1d087ba47
commit ccf82c4eb7
60 files changed
+477 -317

No files matched your search

+5 -4
View File
@@ -166,12 +166,12 @@ test("pathfinder trail: exact footer for forms A, B and C", () => {
assert.equal(P("trail", "audit-export", "--form", "B", "--item", "1", "--item", "2", "--item", "3", "--item", "4").code, 5, "three-probe cap");
assert.equal(P("trail", "audit-export", "--form", "C").json.error, "claim-open", "no menu while a claim is open");
const a = P("trail", "audit-export", "--form", "A", "--text").stdout;
assert.ok(a.endsWith("NEXT STEP · start a new conversation and run:\n`/plan2code-0-pathfinder specs/audit-export/pathfinder --web`\n"), a);
assert.ok(a.endsWith("NEXT STEP · start a new conversation and run:\n`/plan2code-0-pathfinder specs/audit-export/pathfinder`\nAdd `--web` for the web console.\n"), a);
fs.appendFileSync(path.join(root, pf, "questions/03-testing-posture.md"), "\n## Answer\n\nUnit; `Run after each phase`; `Critical paths`.\n\n**Gist:** Unit tests, run after each phase.\n");
P("resolve", "audit-export", "03");
const c = P("trail", "audit-export", "--form", "C", "--resolved-this-session", "3");
assert.equal(c.code, 0, c.stderr);
assert.ok(c.json.text.endsWith("OR START FRESH · new conversation, paste:\n`/plan2code-0-pathfinder specs/audit-export/pathfinder --web`"));
assert.ok(c.json.text.endsWith("OR START FRESH · new conversation, paste:\n`/plan2code-0-pathfinder specs/audit-export/pathfinder`\nAdd `--web` for the web console."));
assert.deepEqual(c.json.menu.options.map((o) => o.label), ["Row-count ceiling", "Start fresh"]);
assert.equal(c.json.menu.recommended, "Start fresh", "the checkpoint after ~3 decisions");
assert.equal(c.json.menu.options.find((o) => o.label === "Start fresh").fresh, true, "the page reads it as a clean start");
@@ -192,11 +192,12 @@ test("pathfinder trail: a cleared map arrives; init first only while AGENTS.md i
" Confidence: solid, but Requirements, Risk are borderline.",
"",
"NEXT STEP · start a new conversation and run:",
"`/plan2code-init`, then `/plan2code-1-plan --web`",
"`/plan2code-init`, then `/plan2code-1-plan`",
"Add `--web` for the web console.",
"",
].join("\n"));
write(root, "AGENTS.md", "# AGENTS.md\n");
assert.match(P("trail", "done", "--form", "A", "--text").stdout, /run:\n`\/plan2code-1-plan --web`\n$/);
assert.match(P("trail", "done", "--form", "A", "--text").stdout, /run:\n`\/plan2code-1-plan`\nAdd `--web` for the web console\.\n$/);
assert.equal(P("trail", "done", "--form", "C").code, 5, "no menu on a cleared map");
});