← Commit history

Audit columns for the standard test table (John: 'put a column for how many times you triggered an orange flash, and another for if you triggered a progress bar in windows taskbar' + 'and how long that prog bar ran'). Every browser_list_windows entry now carries flashCount (both flash paths counted), progressBarCount (times the agent-activity taskbar progress bar engaged), and progressBarMs (total time it ran, live-inclusive if currently running) — so the post-open table proves the window's full attention footprint (flash, progress, overlay, geometry) from one call, no log scraping.

John Lauer ·f61697246a ·3mo ago ·parent 26a6490
4 files changed +19−7
adom-bridge-puppeteer-manifest.json+4−4
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "1.9.151",-  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.151/adom-bridge-puppeteer-v1.9.151.zip",-  "sha256": "ac31d975fc2d81b06615f225d97dfcf840a58f676cfc2a2a4787bf2a28147925",-  "size": 400381,+  "version": "1.9.152",+  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.152/adom-bridge-puppeteer-v1.9.152.zip",+  "sha256": "cac0b2fbaff2df160c80b6f7846eab4d16ccc4fe2f08623e59eefe656998e94a",+  "size": 400637,   "verbPrefixes": [     "browser_",     "desktop_recorder_",
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.9.151+1.9.152
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "puppeteer",   "displayName": "Puppeteer (Chrome for Testing + Native)",-  "version": "1.9.151",+  "version": "1.9.152",   "description": "Drives a browser ALREADY on the machine \u2014 installed Chrome, else Microsoft Edge (every Windows PC ships with Edge) \u2014 launched with a FRESH isolated profile, so the common case has NO ~150 MB Chrome-for-Testing download and it never touches the user's real tabs/logins. Binds its local server to LOOPBACK (127.0.0.1) only, so no Windows Firewall 'allow Node through the firewall' prompt ever pops. Chrome for Testing is fetched only as a LAST RESORT if the machine has no Chromium browser at all. SPAWN-VERIFIED fallback: pup tries each detected browser (Chrome \u2192 Edge \u2192 CfT) and actually launches it, falling through to the next if one won't start (and handling browsers like Edge that relaunch onto another PID), so a corrupt/partial install never hard-fails an open. The browser that launches is cached as the default (persisted across restarts) so it isn't re-probed each time. On spawn the bridge SELF-WARMS: detects browsers + disk, and only if the box has no Chrome/Edge and no cached CfT does it background-fetch CfT so the first open is instant. browser_use pins a specific browser (chrome | edge | cft | auto); {browser:'chrome',install:true} downloads & installs REAL Google Chrome (user-scoped, no admin) on an Edge-only box. browser_readiness (READ-ONLY) reports which browser will be used + the full candidate list + the default + free disk. Every failure returns a specific errorCode + _hint (chrome_install_no_disk, chrome_download_network, chrome_install_permission, chrome_stable_not_detected, \u2026). Launches with FULL browser permissions by default for full debug (strictPermissions:true opts out). Headful automation: open/close windows+tabs, navigate, screenshot, eval JS, record. pup is a GENERIC, non-profile browser only \u2014 every session is a fresh isolated Chrome/Edge process, never the user's real signed-in browser; profile defaults to sessionId. To drive the user's REAL Chrome/Edge (their profile, cookies, SSO), use the Adom browser EXTENSION's nbrowser_* verbs \u2014 a separate bridge, not pup's job. macOS (v1.9.74+): full parity with mac-native mechanics \u2014 background-by-default is the app-level hide (windows stay drivable/screenshottable while hidden), raise/lower map to unhide+activate/hide, browser_alert_window posts a native toast whose click focuses the window, browser_use {browser:'chrome',install:true} installs Chrome from the official dmg, and taskbar identity/badging remains Windows-only.",   "homepage": "https://wiki.adom.inc/adom/adom-desktop",   "author": "Adom Inc.",
src/server.js+13−1
@@ -2673,6 +2673,14 @@ const BUSY_IDLE_MS = 2500; // on mac" — it does; it just cannot address what pup needs to address. The mac equivalent of this // cue is browser_alert_window's toast-and-unhide path, which IS per-window. async function setSessionProgress(sessionId, busy) {+  // v1.9.152 (John's audit columns): count progress-bar triggers + total ms it ran, per session.+  try {+    const _ps = sessions.get(sessionId);+    if (_ps) {+      if (busy && !_ps._progressSince) { _ps._progressSince = Date.now(); _ps._progressCount = (_ps._progressCount || 0) + 1; }+      if (!busy && _ps._progressSince) { _ps._progressMs = (_ps._progressMs || 0) + (Date.now() - _ps._progressSince); _ps._progressSince = null; }+    }+  } catch (e) {}   if (process.platform !== 'win32') return;   try {     await chrome.adCommand('desktop_taskbar', {@@ -4676,6 +4684,7 @@ function scheduleAutoFlash(session, opts) {   const now = Date.now();   if (now - (_flashState.get(key) || 0) < 5000) return; // coalesce the burst   _flashState.set(key, now);+  session._flashCount = (session._flashCount || 0) + 1;   console.log(`[flash] "${key}" (auto)`);   // v1.9.140: every flash logs, so a double-flash can never hide again   flashViaAD(session._sessionId, {}); // fire-and-forget (async → AD desktop_flash_window) }@@ -5469,7 +5478,7 @@ async function launchSession(sessionId, url, { freshProfile = false, profile, st   // real URL's domcontentloaded, which for heavy sites is another 1–3s. Set _flashState so   // the open handler's later scheduleAutoFlash debounces (no double flash). Fire-and-forget.   if (!foreground && !silent && process.platform === 'win32') {-    try { _flashState.set(sessionId, Date.now()); _openFlashDone.set(sessionId, Date.now()); console.log(`[flash] "${sessionId}" (launch)`); flashViaAD(sessionId, {}); } catch (e) {}+    try { _flashState.set(sessionId, Date.now()); _openFlashDone.set(sessionId, Date.now()); try { const _fs=sessions.get(sessionId); if (_fs) _fs._flashCount=(_fs._flashCount||0)+1; } catch (e) {} console.log(`[flash] "${sessionId}" (launch)`); flashViaAD(sessionId, {}); } catch (e) {}   }    if (url) {@@ -6390,6 +6399,9 @@ async function getSessionInfo(sessionId, session) {     activeTabId: session.activeTabId,     // v1.9.150: which taskbar overlay this window wears and why (favicon:<host> | count:N | none).     overlay: session._overlayDesc || (session._appOverlay ? 'favicon' : 'none (not yet applied)'),+    flashCount: session._flashCount || 0,+    progressBarCount: session._progressCount || 0,+    progressBarMs: (session._progressMs || 0) + (session._progressSince ? Date.now() - session._progressSince : 0),     // v1.8.16: advisory ownership — which AI thread/task opened this window.     owner: session.owner || null,     ageMinutes: session.createdAt ? Math.round((Date.now() - session.createdAt) / 60000) : null,