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
v1.9.10: in-page wikiToast feedback (desktop_caption is relay-only on the direct API), logged caption failures, branding waits for title suffix
5 files changed
+72−14
CHANGELOG.md+12@@ -1,5 +1,17 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.10 — 2026-07-19 — In-page toast feedback (desktop_caption is relay-only) + branding race fix++Root-caused why the 1.9.9 captions never appeared: AD's loopback direct API — the path bridges use+via chrome.adCommand — does NOT expose desktop_caption (confirmed live: "'desktop_caption' is not a+built-in desktop verb"; the relay path has it, which is why a CLI test showed one). Filed with AD.+pup now renders its own IN-PAGE toast (wikiToast — a fixed-position Adom-teal pill injected into the+page, auto-fade): "Switching…" into the old page at click time, and the result ("🔓 Adom wiki: now+the LOGGED-IN view (John Lauer)" / "📖 …now the PUBLIC (logged-out) view") into the relaunched page+right where the user is looking. The AD caption call stays (now logged, not silent) and lights up+the moment AD ships direct-API captions. Also fixed the [badge] FAILED race: the toggle branded the+window before the title suffix existed — branding now waits 1.5s like every other path.+ ## 1.9.9 — 2026-07-19 — FIX: clicking the jump-list task did nothing (Windows argv quoting) THE bug that made the whole feature look broken. The jump-list task line is parsed by the CLI's
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.9",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.9/adom-bridge-puppeteer-v1.9.9.zip",- "sha256": "7fc65759fecf66d9cdb1c4e4b6e1d8957f442b4331f0b00a449fd53b6db49f55",- "size": 216435,+ "version": "1.9.10",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.10/adom-bridge-puppeteer-v1.9.10.zip",+ "sha256": "12abde61276e5abb71ab88570348c6d235e9755c8828b5be4ff98aad1b66051f",+ "size": 217534, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-07-19T22:00:00Z"+ "released_at": "2026-07-19T22:35:00Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.9+1.9.10
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.9",+ "version": "1.9.10", "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+53−7@@ -2070,9 +2070,43 @@ function appIconReprimand(url, hadFavicon) { // REPLACED by the result caption instead of stacking. Best-effort; never throws. async function wikiCaption(text, duration) { try {- await chrome.adCommand('desktop_caption', {+ // v1.9.10: LOG the result — this call failed silently for a whole session because AD's+ // loopback direct API does NOT expose desktop_caption (relay-only verb; confirmed live:+ // "'desktop_caption' is not a built-in desktop verb"). Filed with AD; the moment it ships+ // on the direct API this starts working with no pup change. Until then the in-PAGE toast+ // (wikiToast) is the user-visible feedback.+ const r = await chrome.adCommand('desktop_caption', { text, duration, id: 'pup-wiki-view', position: 'bottom', size: 'medium', }, { timeoutMs: 4000 });+ const raw = r && (typeof r.output === 'string' ? r.output : JSON.stringify(r.output || r || ''));+ if (!r || (r.success === false) || /not a built-in desktop verb|unknown/i.test(raw || '')) {+ console.log('[wiki] desktop_caption unavailable on this AD direct API (expected pre-fix) — in-page toast is the visible feedback');+ } else {+ console.log('[wiki] desktop_caption shown');+ }+ } catch (e) {}+}+// v1.9.10: in-PAGE toast — pup-owned visual feedback that needs NO AD verb. A fixed-position+// pill injected into the page (top-center, Adom dark teal, auto-fade). Used by the wiki view+// toggle to confirm the switch IN the very window the user is now looking at. Idempotent per+// call (replaces any prior toast). Best-effort; never throws.+async function wikiToast(page, text, ms = 6000) {+ try {+ await page.evaluate((t, dur) => {+ try {+ const old = document.getElementById('__pup_wiki_toast'); if (old) old.remove();+ const d = document.createElement('div');+ d.id = '__pup_wiki_toast';+ d.textContent = t;+ d.style.cssText = 'position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:2147483647;' ++ 'background:#0b2325;color:#e8fbfa;border:1px solid #14b8a6;border-radius:999px;' ++ 'padding:10px 22px;font:600 15px/1.4 system-ui,sans-serif;box-shadow:0 6px 24px rgba(0,0,0,.45);' ++ 'opacity:0;transition:opacity .25s ease;pointer-events:none;max-width:80vw;text-align:center';+ (document.body || document.documentElement).appendChild(d);+ requestAnimationFrame(() => { d.style.opacity = '1'; });+ setTimeout(() => { try { d.style.opacity = '0'; setTimeout(() => { try { d.remove(); } catch (e) {} }, 400); } catch (e) {} }, dur);+ } catch (e) {}+ }, text, ms); } catch (e) {} } // v1.9.7: reusable OS FOREGROUND raise, extracted verbatim from the proven browser_raise_os_window@@ -4766,9 +4800,13 @@ const server = http.createServer(async (req, res) => { console.log(`[wiki] view toggle "${sessionId}": ${curView} → ${view} (${url})`); // v1.9.9: tell the user IMMEDIATELY that their click registered — the relaunch takes a // few seconds and silence reads as "it did nothing". Replaced by the result caption below.- wikiCaption(view === 'authed'+ const _switchMsg = view === 'authed' ? '\u{1F513} Switching to the LOGGED-IN view of the Adom wiki…'- : '\u{1F4D6} Switching to the PUBLIC (logged-out) view of the Adom wiki…', 30000).catch(() => {});+ : '\u{1F4D6} Switching to the PUBLIC (logged-out) view of the Adom wiki…';+ wikiCaption(_switchMsg, 30000).catch(() => {});+ // v1.9.10: ALSO toast in the page itself (desktop_caption is relay-only pre-AD-fix) so+ // a user watching the window sees the click registered before the teardown.+ try { await wikiToast(session.page, _switchMsg, 8000); } catch (e) {} // Close the current window (mirror browser_close_window) so we can relaunch under the // other cookie jar. const oldProfile = session.profileName;@@ -4813,23 +4851,31 @@ const server = http.createServer(async (req, res) => { }) }); (async () => { if (process.platform === 'win32') {+ // v1.9.10: WAIT for the title suffix "(session: <id>)" to exist before branding —+ // branding immediately raced the title injector and AD found "No visible window+ // with title containing (session: wiki-demo)" ([badge] FAILED in the log).+ await new Promise(r => setTimeout(r, 1500)); try { await brandPupWindow(sessionId); } catch (e) {} try { await registerPerSessionAumid(`${PUP_APP_ID}.${sessionId}`); } catch (e) {} try { await applyAppOverlay(s2, sessionId); } catch (e) {} try { await updateWikiJumplist(s2, sessionId); } catch (e) {} } if (view === 'authed') {- await new Promise(r => setTimeout(r, 1800));+ await new Promise(r => setTimeout(r, 300)); let a = null; try { a = await checkWikiAuth(s2.page); } catch (e) {} try { await setWikiModeGlyph(s2.page, (a && a.authed) ? '\u{1F513} Logged in' : '\u{1F4D6} Public'); } catch (e) {} // v1.9.9: result caption — names WHO you're signed in as (John's ask), or says the // one-time sign-in is still needed. Replaces the "Switching…" caption (same id).- wikiCaption(a && a.authed+ const _doneMsg = a && a.authed ? `\u{1F513} Adom wiki: now the LOGGED-IN view${a.user ? ` (${a.user})` : ''}`- : '\u{1F513} Adom wiki: logged-in view needs the one-time sign-in — sign in in this window', 4000).catch(() => {});+ : '\u{1F513} Adom wiki: logged-in view needs the one-time sign-in — sign in in this window';+ wikiCaption(_doneMsg, 4000).catch(() => {});+ try { await wikiToast(s2.page, _doneMsg, 7000); } catch (e) {} } else {- wikiCaption('\u{1F4D6} Adom wiki: now the PUBLIC (logged-out) view', 4000).catch(() => {});+ const _doneMsg = '\u{1F4D6} Adom wiki: now the PUBLIC (logged-out) view — what the world sees';+ wikiCaption(_doneMsg, 4000).catch(() => {});+ try { await wikiToast(s2.page, _doneMsg, 7000); } catch (e) {} } })().catch(() => {}); return;