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 with its AI thread's name in your taskbar or dock.
← Commit history
v1.8.15: fix cross-AD peer ping (targets returns {clients} incl. self; read clients + exclude self)
4 files changed
+14−9
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.8.14",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.14/adom-bridge-puppeteer-v1.8.14.zip",- "sha256": "4c0657b417050919306e81087d8ac161f6935c43f90a2a96595e9a1e2cbf793d",- "size": 139201,+ "version": "1.8.15",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.15/adom-bridge-puppeteer-v1.8.15.zip",+ "sha256": "0e66662d847d6052cd945395f50056eaef2d78ac8504160b503e2379af8ff3e6",+ "size": 139369, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.8.14+1.8.15
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.8.14",+ "version": "1.8.15", "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/chrome.js+8−3@@ -580,12 +580,17 @@ async function _probeAdNotifyCap() { } const adNotify = (args, target) => adCommand('notify_user', args, { target }); const adNotifyResponse = (id) => adCommand('notify_response', { id });-// Peer ADs on the same relay (other machines the user might be sitting at). [] if none/old AD.+// Peer ADs on the same relay (OTHER machines the user might be sitting at). [] if none/old+// AD. The direct-API `targets` returns {clients:[…]} and INCLUDES self, so we exclude our+// own hostname/clientName. (Shape-tolerant: also accepts targets/data.* for other builds.) async function adPeerNames() { try { const r = await adCommand('targets', {});- const list = (r && (r.targets || (r.data && r.data.targets))) || [];- return list.map(t => t && (t.name || t.clientName)).filter(Boolean);+ const list = (r && (r.clients || r.targets || (r.data && (r.data.clients || r.data.targets)))) || [];+ let self = ''; try { self = String(os.hostname() || '').toLowerCase(); } catch {}+ const names = list.map(t => t && (t.clientName || t.name || t.hostname)).filter(Boolean)+ .filter(n => String(n).toLowerCase() !== self);+ return [...new Set(names)]; } catch { return []; } } const _sleep = (ms) => new Promise(r => setTimeout(r, ms));