Sync upstream v3.2.6: Loop checkboxes, Notes drag handle, US English replies, app update fetch (v3.2.6)

- Implement's and Review's confirm panes carry a Loop checkbox in place of
  the dashboard's loop cards; loop end-screen buttons show a spinner.
- The stacked Notes panel gets a drag handle.
- Every skill prompt and the console contracts say to reply in US English.
- The desktop app offers Update to latest when the skills are newer, and
  plan2code update refetches an app that install.json does not record.
- Devin Balanced maps to Sonnet 5.5 Medium.
This commit is contained in:
jparkerweb committed 2026-12-04 22:35:28 -08:00
1 parent 9629961f36
commit 658c813428
70 files changed
+818 -242

No files matched your search

+30 -13
View File
@@ -19,7 +19,8 @@ import {
isWorkflow,
isAgentless,
} from "../src/web-console/public/skills.js";
import { APP_ONLY_ENTRIES, REVIEW_LOOP_ENTRY, cardAvailability, CONSOLE_WORKFLOWS, SKILL_CATALOG, catalogEntry, launchVariant, START_POSES, WORKFLOW_LABEL, dashNoteKind, onInitialPick, startPose, startingHint } from "../src/web-console/public/answers.js";
import * as ANSWERS from "../src/web-console/public/answers.js";
import { cardAvailability, CONSOLE_WORKFLOWS, loopBoxState, loopFor, OUTSIDE_APP_LINE, SKILL_CATALOG, catalogEntry, launchVariant, START_POSES, WORKFLOW_LABEL, dashNoteKind, onInitialPick, startPose, startingHint } from "../src/web-console/public/answers.js";
import { LAUNCH_COUNTED, PROGRESS_WORKFLOWS } from "../src/web-console/public/meter.js";
import { BUILD_WORKFLOWS } from "../src/web-console/public/labels.js";
import { helpTabFor } from "../src/web-console/public/help.js";
@@ -428,8 +429,9 @@ test("helper-strength.md ships in the eighteen skills that start helpers (the da
]);
});
// The Implementation Loop and the Review Loop are cards the desktop app offers,
// not skills: neither has a workflow, so no list built from the workflows may hold them.
// The Implementation Loop and the Review Loop are features the desktop app
// offers, not skills: neither has a workflow, so no list built from the
// workflows may hold them, and neither draws a card of its own.
test("the app-only Implementation Loop and Review Loop entries stay out of every workflow list", () => {
const apps = EVERY_ENTRY.filter((s) => s.appOnly);
assert.deepEqual(apps.map((s) => s.skill), ["plan2code-loop", "plan2code-review-loop"], "both, the Implementation Loop first");
@@ -439,23 +441,38 @@ test("the app-only Implementation Loop and Review Loop entries stay out of every
assert.ok(!isWorkflow(entry.skill));
assert.equal(skillByName(entry.skill), null);
assert.ok(!CONSOLE_WORKFLOWS.includes(entry.command), "no console page is offered for it");
assert.ok(!SKILL_CATALOG.some((e) => e.skill === entry.skill), "the dashboard draws it apart from the catalog");
assert.ok(!SKILL_CATALOG.some((e) => e.skill === entry.skill), "the catalog leaves it out");
assert.equal(entry.subagents, null);
assert.equal(entry.card.group, "pipeline", "beside the Implementation Loop");
assert.equal(entry.card, null, "no card: its parent card's Loop box opens it");
}
assert.ok(!WORKFLOWS.includes(null) && !isWorkflow(null));
assert.ok(!("null" in WORKFLOW_LABEL));
assert.deepEqual([...apps[0].states], ["documented", "building"]);
assert.equal(apps[1].states, "any", "a Review Loop needs no spec");
assert.equal(apps[1].card.title, "Review Loop");
assert.equal(apps[1].card.blurb, "Review and fix in rounds on its own, each round checked by a fresh reviewer.");
});
test("the Review card carries the app-only pointer line, and the app-only cards are the dashboard's extras", () => {
test("Implement's and Review's cards name the loop their Loop box opens, and no card carries an app-only line", () => {
const byId = (skill) => SKILL_CATALOG.find((e) => e.skill === skill);
assert.equal(byId("plan2code-3-implement").loop, "plan2code-loop");
assert.equal(byId("plan2code-review").loop, "plan2code-review-loop");
assert.deepEqual(SKILL_CATALOG.filter((e) => e.loop).map((e) => e.skill), ["plan2code-3-implement", "plan2code-review"], "no other card has a Loop box");
assert.equal(loopFor(byId("plan2code-3-implement")).name, "Implementation Loop");
assert.equal(loopFor(byId("plan2code-review")).name, "Review Loop");
assert.equal(loopFor(byId("plan2code-4-finalize")), null);
assert.deepEqual(EVERY_ENTRY.filter((s) => s.card && s.card.appNote).map((s) => s.skill), [], "no entry carries appNote");
assert.ok(!("APP_ONLY_ENTRIES" in ANSWERS) && !("REVIEW_LOOP_ENTRY" in ANSWERS) && !("LOOP_ENTRY" in ANSWERS), "the app-only card entries are gone");
});
test("the Loop box: grayed outside the app and while a loop runs, else the loop's own availability", () => {
const implement = SKILL_CATALOG.find((e) => e.skill === "plan2code-3-implement");
const review = SKILL_CATALOG.find((e) => e.skill === "plan2code-review");
assert.equal(review.appNote, "In the app, the Review Loop runs review and fix rounds on its own.");
assert.deepEqual(SKILL_CATALOG.filter((e) => e.appNote).map((e) => e.skill), ["plan2code-review"], "no other card has one");
assert.deepEqual(APP_ONLY_ENTRIES.map((e) => e.skill), ["plan2code-loop", "plan2code-review-loop"]);
assert.equal(REVIEW_LOOP_ENTRY.command, "Desktop app only");
assert.equal(cardAvailability(REVIEW_LOOP_ENTRY, { hasAgents: true }, null).on, true, "lit for any project state");
const scanned = { hasAgents: true };
const documented = { dir: "specs/x", state: "documented" };
assert.deepEqual(loopBoxState(implement, scanned, documented, { inApp: false, driving: false }), { on: false, reason: OUTSIDE_APP_LINE });
const running = loopBoxState(review, scanned, null, { inApp: true, driving: true });
assert.equal(running.on, false);
assert.match(running.reason, /A loop is running/);
assert.equal(loopBoxState(implement, scanned, documented, { inApp: true, driving: false }).on, true);
assert.equal(loopBoxState(implement, scanned, null, { inApp: true, driving: false }).on, false, "the Implementation Loop needs a documented or building spec");
assert.equal(loopBoxState(review, scanned, null, { inApp: true, driving: false }).on, true, "the Review Loop is lit for any project state");
});