app
Pup - the AI's own browser
Public Made by Adomby adom
pup gives your AI a real browser on your desktop that it drives completely, in the background, signed in as you: windows that never jump in front of your work, one shared profile that learns your logins, and every window labeled on the taskbar with its AI thread's name.
← Commit history
v2.0.247: The page-health check judges images only once the document has finished loading, so it stops calling placeholder slots broken and stops missing real failures it sampled too early, and it declines to judge rather than guessing while a page is still loading.
4 files changed
+20−32
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "2.0.246",- "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.246/adom-bridge-puppeteer-v2.0.246.zip",- "sha256": "c04daab5b113a0dd10cc3f5bfe9ed0f2afb133e847503123236ef27fa4e91d6a",- "size": 946568,+ "version": "2.0.247",+ "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.247/adom-bridge-puppeteer-v2.0.247.zip",+ "sha256": "5fc5da6b380896b03fab207de19c246b79eb89c1dec4ff51643b9a99f7ee17c4",+ "size": 946540, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-08-19T17:46:51.086179Z"+ "released_at": "2026-08-19T17:48:37.162106Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-2.0.246+2.0.247
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "2.0.246",+ "version": "2.0.247", "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. pup_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. pup_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, pup_alert_window posts a native toast whose click focuses the window, pup_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-bridge", "author": "Adom Inc.",
src/server.js+13−25@@ -11031,27 +11031,13 @@ async function probeRender(page, httpStatus) { const out = { httpStatus: (httpStatus === undefined ? null : httpStatus), ok: true, signals: [] }; try { const probe = await Promise.race([- page.evaluate(async () => {- // v2.0.246 (verifying pup-bridge#60): the image verdict was sampled the instant the probe- // ran, so an image still in flight counted as fine and a REAL 404 was missed — the mirror- // image of the placeholder false alarm. Give in-flight images a bounded moment to settle- // (capped, never blocking the probe) so both answers are trustworthy: placeholders are- // ignored because they have no src, and a genuine failure has had time to become one.- try {- const pending = Array.from(document.images).filter((i) => {- const src = i.getAttribute('src');- return !!(src && src.trim()) && !i.complete;- });- if (pending.length) {- await Promise.race([- Promise.all(pending.map((i) => new Promise((res) => {- i.addEventListener('load', res, { once: true });- i.addEventListener('error', res, { once: true });- }))),- new Promise((res) => setTimeout(res, 1200)),- ]);- }- } catch (e) {}+ page.evaluate(() => {+ // v2.0.246 (verifying pup-bridge#60): judge images ONLY when the document has actually+ // finished loading. The probe runs right after navigation, so mid-load it saw placeholders+ // as broken (Colby's false alarm) and missed a real 404 that had not failed yet (the mirror+ // false negative I then created). The load event fires after every image has settled, so at+ // readyState 'complete' the verdict is trustworthy — and before that pup simply declines to+ // judge instead of guessing, which costs nothing and never lies. const t = (document.body ? (document.body.innerText || '') : '').trim(); return { title: document.title || '',@@ -11065,14 +11051,16 @@ async function probeRender(page, httpStatus) { // here" boxes). Counting those as broken told the driving AI the page was BROKEN when // nothing had failed to load. A broken image is a REAL src that failed: non-empty src, // finished loading, zero natural width.- brokenImgs: document.images+ // null = "not judged yet" (page still loading); a number = a verdict pup stands behind.+ brokenImgs: (document.readyState === 'complete' && document.images) ? Array.from(document.images).filter((i) => { const src = i.getAttribute('src');+ // a placeholder slot (no src / src="") reports naturalWidth 0 and is NOT broken return !!(src && src.trim()) && i.complete && i.naturalWidth === 0;- }).length : 0,+ }).length : null, }; }),- new Promise(r => setTimeout(() => r(null), 5500)), // > the in-page image settle cap+ new Promise(r => setTimeout(() => r(null), 4000)), ]); if (!probe) { out.signals.push('probe_timed_out'); return out; } out.title = probe.title; out.bodyChars = probe.bodyChars; out.elements = probe.elements;@@ -11085,7 +11073,7 @@ async function probeRender(page, httpStatus) { if (/traceback \(most recent call last\)|unhandled (exception|rejection)|referenceerror|typeerror:|syntaxerror:/.test(low)) out.signals.push('stack_trace_visible'); if (probe.bodyChars < 12 && probe.elements < 8) out.signals.push('effectively_blank'); if (probe.bodyChars > 40 && probe.styleSheets === 0) out.signals.push('no_stylesheets_loaded');- if (probe.brokenImgs > 0) out.signals.push('broken_images_' + probe.brokenImgs);+ if (typeof probe.brokenImgs === 'number' && probe.brokenImgs > 0) out.signals.push('broken_images_' + probe.brokenImgs); out.ok = out.signals.length === 0; if (!out.ok) out.excerpt = head.slice(0, 180); } catch (e) { out.signals.push('probe_failed'); }