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
Claim the jump-list dedupe key before the await so two concurrent callers cannot both commit (a redundant CommitList rebuilds the menu and dismisses one the user is opening)
4 files changed
+15−8
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.61",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.61/adom-bridge-puppeteer-v1.9.61.zip",- "sha256": "b0e996d6f5ee0a0424e90dae7d97343aeb07c9a0a185ee1d9413e5169f842a3b",- "size": 303758,+ "version": "1.9.62",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.62/adom-bridge-puppeteer-v1.9.62.zip",+ "sha256": "3caedd4a814d133c069587d3c8fc15738cd8bf7d321f9e4d83bd1b9a86a92c5b",+ "size": 303983, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.61+1.9.62
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.61",+ "version": "1.9.62", "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.", "homepage": "https://wiki.adom.inc/adom/adom-desktop", "author": "Adom Inc.",
src/server.js+9−2@@ -2141,6 +2141,12 @@ async function updateWikiJumplist(session, sessionId, opts) { // wonkiness. One commit per (button, view), never a redundant one. const jlKey = `${appId}|${view || 'none'}`; if (session._wikiJumplistKey === jlKey) return;+ // v1.9.62: CLAIM the key before the await. Two callers (the pre-stamp brand and a timer-driven+ // refresh) can both compute the same key and both find it unset, so both commit — a redundant+ // CommitList that rebuilds the menu and can dismiss one the user is opening. Claiming up front+ // makes the second caller a no-op; we roll it back below if the call actually fails.+ const _prevJlKey = session._wikiJumplistKey;+ session._wikiJumplistKey = jlKey; // v1.9.6: give each task an icon (iconPath) — without it Windows shows a generic blank-document // glyph (John: "why is your icon generic for that menu item?"). // v1.9.54: use THIS WINDOW'S category icon, not pupIconPath() with no arg — that argless call fell@@ -2203,7 +2209,7 @@ async function updateWikiJumplist(session, sessionId, opts) { if (hwnd) { payload.hwnd = hwnd; payload.headerIcon = pupIconPath(sessionId); } const r = await chrome.adCommand('desktop_set_window_jumplist', payload, { timeoutMs: 6000 }); const raw = r && (typeof r.output === 'string' ? r.output : JSON.stringify(r.output || ''));- if (_isUnknownVerb(r, raw)) { _jumplistSupported = false; return; }+ if (_isUnknownVerb(r, raw)) { _jumplistSupported = false; session._wikiJumplistKey = _prevJlKey; return; } _jumplistSupported = true; session._wikiJumplistView = view; session._wikiJumplistKey = jlKey;@@ -2212,7 +2218,7 @@ async function updateWikiJumplist(session, sessionId, opts) { let hb = null, hic = null; try { const o2 = raw ? JSON.parse(raw) : {}; const d2 = o2.data || o2; hb = d2.headerBranded; hic = d2.headerIconCheck; } catch (e) {} console.log(`[jumplist] "${sessionId}" set ${tasks.length} task(s) on ${appId} (view=${view || 'none'}${view ? '+' : ''}close-all) headerBranded=${hb}${hic && hic.ok === false ? ` ICONCHECK_FAILED:${(hic.issues || []).join('; ')}` : ''}`);- } catch (e) {}+ } catch (e) { session._wikiJumplistKey = _prevJlKey; } } // v1.8.80: TAB-COUNT overlay badge (John: "if the ai opens 8 tabs that makes that pup window // unique"). The overlay slot is FREE on identity-capable AD (the base icon is the Adom Pup@@ -5874,6 +5880,7 @@ const server = http.createServer(async (req, res) => { if (view === 'public') s2._publicProfile = newProfile; s2._foreground = true; s2._wikiJumplistView = undefined;+ s2._wikiJumplistKey = undefined; // v1.9.62: the key is what gates the commit now // v1.9.7: the user clicked a per-window taskbar task → REALLY pop it to the foreground // (full OS SetForegroundWindow raise, not the old CDP-only maximize that left it behind // the user's active window — the reason John "never saw the switch work"). Plus a taskbar