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
Settings endpoint actually works + readable caption default (ralph caught my own regression before John did, then his live feedback landed too). (1) THE BUG: in the dashboard action handler the parsed request body is 'a' and 'body' is the raw string - my set-setting block read body.key, so every settings change failed with 'unknown setting or value' (and the fg action's tab-switch read body.tabId, silently never switching). One-word class of bug, fixed to a.key/a.value and the already-parsed tid. (2) John: '2s feels too fast cuz i can't read' - the caption duration default is now 3.5s (slider 0.5s to 5s unchanged), with a one-time migration of stored 2000 (the hours-old previous default, not a dialog choice). (3) Ralph's [send to bg] check exposed a real interplay bug: a deliberate browser_lower z-bottoms the window but Windows KEEPS its input focus, and the no-fault watch then mislabeled that residual focus as 'surfaced without pup' and re-marked the window foreground - a lower now disarms the watch. (4) Ralph hardening: settings checks drive the endpoint from INSIDE the page (immune to cmd.exe quote-mangling, which was producing 'unknown action' from shell-side curl), and the raise-path curl timeout gets headroom (45s).
4 files changed
+13−8
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.259",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.259/adom-bridge-puppeteer-v1.9.259.zip",- "sha256": "047ada481a4ff23703324a720883b35bcf58ed2e84195e9474a72f588758fe7a",- "size": 476236,+ "version": "1.9.260",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.260/adom-bridge-puppeteer-v1.9.260.zip",+ "sha256": "5d119f5f11877711523190a065a4970e8e2d13d5f6b01b115887ebee1b5f078a",+ "size": 476424, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.259+1.9.260
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.259",+ "version": "1.9.260", "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+7−2@@ -2711,6 +2711,10 @@ function pupSettings() { // v1.9.259 (John's settings dialog): every user-facing behavior gets an explicit pref. const D = { aumidIcons: 'off', jumpLists: 'off', fgWatch: 'on', fgCaption: 'on', fgCaptionMs: 2000, overlayBadges: 'on', autoFlash: 'off', sleepRecovery: 'on', openFlash: 'off' };+ // v1.9.260 (John: "2s feels too fast cuz i can't read"): readable default. A stored 2000 was the+ // old default, not a choice made in the dialog (it shipped hours ago) - migrate it up once.+ if (D.fgCaptionMs) D.fgCaptionMs = 3500;+ if (_pupSettings.fgCaptionMs === 2000) _pupSettings.fgCaptionMs = 3500; for (const k of Object.keys(D)) if (_pupSettings[k] === undefined) _pupSettings[k] = D[k]; return _pupSettings; }@@ -8690,7 +8694,7 @@ const server = http.createServer(async (req, res) => { reportIssues: ['on', 'off'], autoLogin: ['on', 'off'], minimalTouch: ['on', 'off'], taskbarGrouping: ['split', 'grouped'], };- const key = String(body.key || ''); let val = body.value;+ const key = String(a.key || ''); let val = a.value; if (key === 'fgCaptionMs') { val = Math.max(500, Math.min(5000, Number(val) || 2000)); } else if (!ALLOWED[key] || !ALLOWED[key].includes(val)) {@@ -8706,7 +8710,7 @@ const server = http.createServer(async (req, res) => { // the reason, standard reveal geometry, badge re-assert). A dashboard click IS the user // acting, so the foreground gate's reason is exactly that. try {- if (body.tabId) { await fetch(`http://127.0.0.1:${PORT}/command`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ command: 'browser_switch_tab', args: { sessionId: sid, tabId: body.tabId } }) }); }+ if (tid) { await fetch(`http://127.0.0.1:${PORT}/command`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ command: 'browser_switch_tab', args: { sessionId: sid, tabId: tid } }) }); } const r = await fetch(`http://127.0.0.1:${PORT}/command`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ command: 'browser_raise_os_window', args: { sessionId: sid, foregroundReason: 'you clicked "bring to fg" on this window in the pup dashboard' } }) }); const j = await r.json().catch(() => ({})); return done({ ok: !!j.success });@@ -10296,6 +10300,7 @@ const server = http.createServer(async (req, res) => { ok = (be && be.browser) ? (osBackgroundWindowByPid(be.browser._detachedPid, be.browser._cdpPort, be.browser._priorForeground, false, session._hwnd) === 'backgrounded') : osSendWindowToBack(session.profileName); } session._foreground = false;+ session._fgWatchUntil = 0; // v1.9.260: a deliberate lower is not a "surfaced without pup" event - z-bottom keeps OS focus and the no-fault watch was mislabeling it sendJSON(res, { success: true, output: JSON.stringify({ ok: true, sessionId, placement: 'background', applied: ok, _hint: 'Window sent behind the user\'s windows (still drivable/screenshottable). Keep pup in the background unless the user asked to watch.' }) }); return; }