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
@@ -124,6 +124,25 @@ export async function openSession(browser, { t, workflow, payload: first, projec
|
||||
return s;
|
||||
}
|
||||
|
||||
// Stands a real window in for the desktop app that frames the page, listening
|
||||
// to what the page tells it (kept in window.__told); the returned function
|
||||
// replies the way the app's window does.
|
||||
export 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);
|
||||
}
|
||||
|
||||
// Waits until the document has not changed for `quietMs`, or `maxMs` at most (a page that never
|
||||
// goes quiet must not block a test). Counts mutations in the page and polls the count from
|
||||
// here, so it needs no timer in the page.
|
||||
|
||||
Reference in new issue
Block a user