web: live chat transcript over chat_event (C5)

This commit is contained in:
2026-10-19 07:01:00 +01:00
parent 7df4891f14
commit 7b578498ae
12 changed files with 1252 additions and 23 deletions
+8
View File
@@ -208,6 +208,14 @@ export async function launchChrome({ width = 1440, height = 900, chromePath } =
{ what: `load of ${nextUrl}` },
);
},
/**
* Install a script that runs in every document created from now on, before
* the page's own scripts — the CDP hook a UI check uses to wrap a global
* (for example to record the page's WebSocket) before the app boots.
*/
async addInitScript(source) {
await session("Page.addScriptToEvaluateOnNewDocument", { source });
},
/** Set an input's value and fire input/change so the app sees it. */
async fill(selector, value) {
const ok = await api.evaluate(`(() => {