mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-30 23:59:20 -08:00
Remember the terminal or web console choice, refresh the launcher model menus (v3.2.2)
AI Assisted
This commit is contained in:
1 parent
f1d087ba47
commit
ccf82c4eb7
60 files changed
+477
-317
No files matched your search
@@ -1143,6 +1143,9 @@ function wrapJoin(parts, indent = " ", width = 100) {
|
||||
return lines;
|
||||
}
|
||||
|
||||
// Printed bare so it pastes as is; WEB_NOTE under it offers the console.
|
||||
const WEB_NOTE = "Add `--web` for the web console.";
|
||||
|
||||
// Init comes first only while the ground rules record AGENTS.md absent AND it is
|
||||
// still missing: one written since charting needs no init detour.
|
||||
function needsInit(loc, map) {
|
||||
@@ -1151,9 +1154,9 @@ function needsInit(loc, map) {
|
||||
|
||||
function resumeCommand(loc, map) {
|
||||
if (/^cleared$/i.test(map.status || "")) {
|
||||
return needsInit(loc, map) ? "`/plan2code-init`, then `/plan2code-1-plan --web`" : "`/plan2code-1-plan --web`";
|
||||
return needsInit(loc, map) ? "`/plan2code-init`, then `/plan2code-1-plan`" : "`/plan2code-1-plan`";
|
||||
}
|
||||
return `\`/plan2code-0-pathfinder ${loc.relPf} --web\``;
|
||||
return `\`/plan2code-0-pathfinder ${loc.relPf}\``;
|
||||
}
|
||||
|
||||
// What the human reads a question as: its name on the checklist row (the
|
||||
@@ -1212,7 +1215,7 @@ async function cmdTrail(loc, args) {
|
||||
let part2;
|
||||
let menu;
|
||||
if (form === "A") {
|
||||
part2 = ["NEXT STEP · start a new conversation and run:", cmd];
|
||||
part2 = ["NEXT STEP · start a new conversation and run:", cmd, WEB_NOTE];
|
||||
} else if (form === "B") {
|
||||
const items = args.item || [];
|
||||
if (!items.length) fail(EXIT.USAGE, "missing-items", "Form B names every outstanding item: pass 1-3 --item.", 'Example: --item "Q1 Duration model" --item "Q2 Contract while held"');
|
||||
@@ -1226,7 +1229,7 @@ async function cmdTrail(loc, args) {
|
||||
// Nothing takeable means there is no menu to offer: an empty frontier is a
|
||||
// stop (Work Step 4), and a stop is Form A.
|
||||
if (!f.frontier.length) fail(EXIT.REFUSED, "no-frontier", "Nothing on the frontier to offer: every open question is blocked, or none is left.", "Use --form A (report the blocked chain, or go to The Clearing Gate).");
|
||||
part2 = ["OR START FRESH · new conversation, paste:", cmd];
|
||||
part2 = ["OR START FRESH · new conversation, paste:", cmd, WEB_NOTE];
|
||||
const resolvedThisSession = Number(args["resolved-this-session"] || 0);
|
||||
const checkpoint = resolvedThisSession >= 3 || !!args.heavy;
|
||||
const options = f.frontier.slice(0, 3).map((x) => {
|
||||
|
||||
Reference in new issue
Block a user