Install payload for v3.2.6

Source commit: 603c871720
This commit is contained in:
github-actions[bot] committed 2026-12-05 06:41:04 +00:00
1 parent 9b876077e3
commit 7f221ad3d5
43 files changed
+409 -195

No files matched your search

+18 -15
View File
@@ -738,24 +738,27 @@ export const SKILL_CATALOG = FLOW_SKILLS.filter((s) => s.card).map((s) => ({
command: s.command,
workflow: s.workflow,
...(s.review ? { review: s.review } : {}),
...(s.loop ? { loop: s.loop } : {}),
...s.card,
}));
// The desktop app's Implementation Loop card: not a skill, so not in
// SKILL_CATALOG. The dashboard draws it after its group's other cards, and its
// click opens the setup screen instead of launching anything.
const LOOP_SKILL = SKILLS.find((s) => s.appOnly && s.card);
export const LOOP_ENTRY = LOOP_SKILL
? { skill: LOOP_SKILL.skill, command: "Desktop app only", workflow: null, appOnly: true, ...LOOP_SKILL.card }
: null;
// The Review Loop's card, the second app-only entry: same shape, own setup screen.
const REVIEW_LOOP_SKILL = SKILLS.find((s) => s.appOnly && s.card && s !== LOOP_SKILL);
export const REVIEW_LOOP_ENTRY = REVIEW_LOOP_SKILL
? { skill: REVIEW_LOOP_SKILL.skill, command: "Desktop app only", workflow: null, appOnly: true, ...REVIEW_LOOP_SKILL.card }
: null;
// Every app-only card, in the order the dashboard draws them.
export const APP_ONLY_ENTRIES = Object.freeze([LOOP_ENTRY, REVIEW_LOOP_ENTRY].filter(Boolean));
export const OUTSIDE_APP_LINE = "Runs only in the Plan2Code desktop app.";
export const LOOP_RUNNING_LINE = "A loop is running. Stop it from the banner at the top of the window first.";
// The app-only entry a card's Loop box opens the setup screen for (the
// Implementation Loop on Implement, the Review Loop on Review), or null.
export function loopFor(entry) {
return SKILLS.find((s) => s.appOnly && s.skill === entry.loop) || null;
}
// The Loop box on a confirm pane, as { on, reason }: off with the desktop-app
// line outside the app, off while a loop runs, else the loop entry's own
// availability for the picked spec.
export function loopBoxState(entry, scan, sel, { inApp, driving }) {
if (!inApp) return { on: false, reason: OUTSIDE_APP_LINE };
if (driving) return { on: false, reason: LOOP_RUNNING_LINE };
return cardAvailability({ skill: entry.loop, appOnly: true }, scan, sel);
}
// A workflow by the name its dashboard card gives it ("Implement"), for the
// screens that speak of it as a thing being started rather than as a badge.
@@ -873,7 +876,7 @@ export function cardAvailability(entry, scan, sel, lookup = stateFor) {
const hasAgents = Boolean(scan && scan.hasAgents);
const state = sel && sel.state && sel.state !== "unrecognized" ? sel.state : null;
const next = sel ? Boolean(state) && NEXT_FOR_STATE[state] === entry.skill : entry.skill === "plan2code-0-pathfinder";
const rule = skillByName(entry.skill) || (entry.appOnly ? SKILLS.find((s) => s.appOnly && s.skill === entry.skill) || LOOP_SKILL : null);
const rule = skillByName(entry.skill) || (entry.appOnly ? SKILLS.find((s) => s.appOnly && s.skill === entry.skill) : null);
if (!rule || !rule.states) return ON;
// The three cards whose rules read the scan rather than the spec.