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
1.8.99: Adom-wide auth gating; overlay = site favicon for 1 tab, count for 2+
5 files changed
+35−12
CHANGELOG.md+9@@ -1,5 +1,14 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.8.99 — 2026-07-19 — Auth gating is Adom-wide; overlay = site favicon (1 tab) or count (2+)++- Authed treatment now gates on ANY adom.inc host (isAdomUrl), not just wiki.adom.inc — other+ Adom properties get the logged-in view + hints too. NON-Adom sites (ti.com, digikey.com,+ adom.cloud proxies) get NOTHING: no auth routing, hints, or glyph.+- Overlay rule resolved (John's 3-vendor-tabs question): 1 tab → wear THAT site's favicon on a+ dark plate (you see it's ti.com); 2+ tabs → show the tab COUNT (no single favicon represents a+ multi-site window; hover tooltip carries the detail). No stacking — the 32px slot can't.+ ## 1.8.98 — 2026-07-19 — Profiles live OUTSIDE the bridge cache (persistence actually persists) Root-cause fix behind "the wiki login didn't survive": PROFILES_DIR/SESSIONS_DIR were inside the
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.8.98",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.98/adom-bridge-puppeteer-v1.8.98.zip",- "sha256": "fb0002d79707b49c7ce12f4421082118cff3f8f5e29c96fafb12893d68057605",- "size": 208384,+ "version": "1.8.99",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.8.99/adom-bridge-puppeteer-v1.8.99.zip",+ "sha256": "2a95b55eed7caf2b5f79a71e02dfc62ae52e485b187dc554a7252050fe0ba85b",+ "size": 208804, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.8.98+1.8.99
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.8.98",+ "version": "1.8.99", "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+20−6@@ -1780,8 +1780,16 @@ async function updateTabCountBadge(session, sessionId) { } return; }- if (session._appOverlay) { applyAppOverlay(session, sessionId).catch(() => {}); return; } // app icon owns the slot; tooltip carries the count+ // v1.8.99 split-mode overlay RULE (John's question — 3 vendor tabs, one slot, no room to+ // stack): ONE tab → wear THAT site's favicon (you see it's ti.com). TWO+ tabs → show the+ // COUNT (no single favicon represents a multi-site window; the hover tooltip can name them). const count = (session.tabs || []).length;+ if (count === 1) {+ const worn = await applyAppOverlay(session, sessionId); // site favicon on a dark plate+ if (!worn) { try { await chrome.adCommand('desktop_taskbar', { titleContains: `(session: ${sessionId}`, overlay: { badge: 'none' } }, { timeoutMs: 5000 }); } catch (e) {} }+ return;+ }+ session._appOverlay = false; // multi-tab → count wins the slot if (count >= 2) { const icon = tabBadgeIcon(count); if (!icon) return;@@ -1842,6 +1850,10 @@ async function brandSweep(reason) { // hide_source page shows source to authed, binaries-only to public). const WIKI_AUTH_PROFILE = 'adom-wiki-authed'; function isWikiUrl(u) { try { return /(^|\.)wiki\.adom\.inc$/i.test(new URL(u).hostname); } catch (e) { return false; } }+// v1.8.99: the SSO session covers the whole Adom ecosystem, not just the wiki. Gate the authed+// treatment on ANY adom.inc host (wiki + other Adom properties). NON-Adom sites (ti.com,+// digikey.com, even adom.cloud proxies) get NOTHING — no auth routing, hints, or glyph.+function isAdomUrl(u) { try { const h = new URL(u).hostname; return h === 'adom.inc' || /\.adom\.inc$/i.test(h); } catch (e) { return false; } } // Ask the page (using ITS cookies) whether the wiki session is authenticated. async function checkWikiAuth(page) { try {@@ -1872,7 +1884,7 @@ async function setWikiModeGlyph(page, glyph) { } function wikiViewHint(url, view, auth) {- if (!isWikiUrl(url)) return '';+ if (!isAdomUrl(url)) return ''; if (view === 'authed') { if (auth && auth.authed) return ` 🔓 Wiki LOGGED-IN view (as ${auth.user || 'the user'}) — private source, drafts, owner-only cards, reply/edit. This authed session is SHARED: every thread's wikiView:"authed" is logged in too (one login served it). For the PUBLIC view (what the world sees — e.g. verify a publish didn't leak private source), open WITHOUT wikiView.`; return ` 🔑 Wiki authed view requested, but NO ONE has done the one-time login yet (or the ~30-day session expired) — so this window is currently PUBLIC/logged-out. A thread can't self-login (it's the user's SSO). Offer it: browser_raise_os_window {foregroundReason:"sign into the Adom wiki"} → user does the hydrogen.adom.inc SSO ONCE → then EVERY thread's wikiView:"authed" is silently logged in for ~30 days (shared vault profile). Tell the user it's a one-time login that unlocks the logged-in view everywhere.`;@@ -4173,7 +4185,7 @@ const server = http.createServer(async (req, res) => { // profile the thread passed (that's what makes ONE login serve EVERY thread). Each // session still gets its OWN window; they share only the cookie jar (proven: two // different threads, both authed, separate windows).- if (args.wikiView === 'authed' && isWikiUrl(args.url)) args.profile = WIKI_AUTH_PROFILE;+ if (args.wikiView === 'authed' && isAdomUrl(args.url)) args.profile = WIKI_AUTH_PROFILE; if (!args.profile) args.profile = args.sessionId; const sessionId = args.sessionId; // v1.6.3+: optional downloadPath override. Defaults to the user's@@ -4247,16 +4259,18 @@ const server = http.createServer(async (req, res) => { let _appIconWorn = false; if (session && process.platform === 'win32') { try { _appIconWorn = await Promise.race([applyAppOverlay(session, sessionId), new Promise(r => setTimeout(() => r(false), 4000))]); } catch (e) {}+ // v1.8.99: run the favicon-vs-count decider (a window may open with multiple tabs).+ try { updateTabCountBadge(session, sessionId).catch(() => {}); } catch (e) {} } const appIconHint = appIconReprimand(args.url, _appIconWorn); // v1.8.93: wiki dual-view hint + auth-state check. let _wikiAuth = null;- if (session && isWikiUrl(args.url)) {+ if (session && isAdomUrl(args.url)) { if (args.wikiView === 'authed') { try { _wikiAuth = await Promise.race([checkWikiAuth(session.page), new Promise(r => setTimeout(() => r({ authed: false }), 3500))]); } catch (e) {} } } const wikiHint = wikiViewHint(args.url, args.wikiView === 'authed' ? 'authed' : 'public', _wikiAuth); // v1.8.97: gentle in-tab glyph — 🔓 authed (logged in), 📖 public.- if (session && isWikiUrl(args.url)) {+ if (session && isAdomUrl(args.url)) { const glyph = (args.wikiView === 'authed' && _wikiAuth && _wikiAuth.authed) ? '\u{1F513}' : '\u{1F4D6}'; try { await setWikiModeGlyph(session.page, glyph); } catch (e) {} }@@ -4361,7 +4375,7 @@ const server = http.createServer(async (req, res) => { reused: reuse ? { navigatedAway: reuse.navigatedAway, previousUrl: reuse.previousUrl, previousOwner: reuse.previousOwner, takeover: reuse.takeover } : null, owner: session.owner || null, appIconWorn: _appIconWorn || undefined,- wikiView: isWikiUrl(args.url) ? (args.wikiView === 'authed' ? 'authed' : 'public') : undefined,+ wikiView: isAdomUrl(args.url) ? (args.wikiView === 'authed' ? 'authed' : 'public') : undefined, wikiLoginNeeded: (args.wikiView === 'authed' && _wikiAuth && !_wikiAuth.authed) || undefined, foregroundDenied: fgDenied ? 'foreground_reason_required' : undefined, _hint: `${wikiHint}${authSteerHint(args.url)}${fgDenyHint}${appIconHint}${bgHint}${ownHint} ${brep._hint}${staleWindowsHint()}${adUpgradeHint()}`,