mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 00:15:41 -08:00
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:
1 parent
9629961f36
commit
658c813428
70 files changed
+818
-242
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// Page tests for the Review Loop's setup screen. The dashboard card that opens
|
||||
// it only shows inside the desktop app, so these open the screen through its
|
||||
// own module, then drive the real page, the way test-web-console-page-loop.mjs
|
||||
// does for the Implementation Loop's. Run with:
|
||||
// Page tests for the Review Loop's setup screen. Its Loop box only enables
|
||||
// inside the desktop app, so these open the screen through its own module,
|
||||
// then drive the real page, the way test-web-console-page-loop.mjs does for
|
||||
// the Implementation Loop's. Run with:
|
||||
// node --test scripts/test-web-console-page-review-loop.mjs
|
||||
|
||||
import test from "node:test";
|
||||
@@ -9,7 +9,7 @@ import assert from "node:assert/strict";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { pageSuite, openSession, tempProject, textOf } from "./page-test-helpers.mjs";
|
||||
import { pageSuite, openSession, tempProject, textOf, frameInFakeApp } from "./page-test-helpers.mjs";
|
||||
import { MODELS_DIR } from "./web-console-test-helpers.mjs";
|
||||
|
||||
const ROOT = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
||||
@@ -26,23 +26,6 @@ const MENU = { menu: { note: "Ready when you are." }, agent: { status: "waiting"
|
||||
|
||||
const FACTS = { agent: "claude", agentLabel: "Claude Code", helpers: true, strengthsMapped: true, running: false, promptSupport: true, notifyKind: "query", notifyUrl: "", notifyParam: "message" };
|
||||
|
||||
// Stands a real window in for the app that frames the page, listening to what
|
||||
// the page tells it; the returned function replies the way the app does.
|
||||
async function frameInFakeApp(s) {
|
||||
await s.page.evaluate(() => {
|
||||
const frame = document.createElement("iframe");
|
||||
frame.hidden = true;
|
||||
document.body.appendChild(frame);
|
||||
const app = frame.contentWindow;
|
||||
window.__told = [];
|
||||
app.postMessage = (message) => window.__told.push(message);
|
||||
Object.defineProperty(window, "parent", { value: app, configurable: true });
|
||||
});
|
||||
return (data) =>
|
||||
s.page.evaluate((message) => {
|
||||
window.dispatchEvent(new MessageEvent("message", { source: window.parent, data: message }));
|
||||
}, data);
|
||||
}
|
||||
|
||||
// The installed copy of the shipped model menu, with its strengths, as install.js drops it.
|
||||
function installShippedModels() {
|
||||
|
||||
Reference in new issue
Block a user