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.12: taskbar icon signals Adom wiki login state (solid padlock vs browser outline) with state-keyed identity and AUMID caches
6 files changed
+78−15
CHANGELOG.md+18@@ -1,5 +1,23 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.12 — 2026-07-19 — The taskbar ICON now shows Adom-wiki login state++John: "can you show an indicator in the pup icon whether the adom wiki is logged in or not? maybe+that browser window icon gets filled in solid". Done, as a MAIN-ICON swap (the overlay slot stays+the active tab's favicon, which is more useful):+ adom-pup-browser3.ico — browser-window OUTLINE glyph = logged OUT / non-wiki window+ adom-pup-wiki-authed1.ico — SOLID PADLOCK glyph = signed in to the Adom wiki+Same art otherwise, only the lower-right corner glyph differs. Solid-vs-outline is deliberate: a+mass/contrast change is what survives downscaling to 16-32px (fine shape detail does not), and the+padlock carries the meaning. Rendered from SVG at 16/24/32/48/64/128/256.++Plumbing: session._wikiAuthed tracks the state and setWikiAuthedState() re-stamps the window+identity AND re-registers the per-session AUMID when it flips (so Alt-Tab and the flyout header+follow too). Two cache traps handled — the identity cacheKey now includes the state, and the AUMID+registry is a Map of appId->state instead of a Set, because both cache by key/path and would+otherwise pin the stale tile. State is set on open, on the view toggle (both directions), and on+the navigate auth re-check, so a window that logs in mid-session updates its icon on its own.+ ## 1.9.11 — 2026-07-19 — OS captions live, jump-list header branded, in-page toast retired AD shipped all four asks; pup now consumes them.
adom-bridge-puppeteer-manifest.json+5−5@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.11",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.11/adom-bridge-puppeteer-v1.9.11.zip",- "sha256": "10d0811ba5c5ce4e13f4429327702cb54701f1a94e003b7ecc58c9d3a1b35700",- "size": 217687,+ "version": "1.9.12",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.12/adom-bridge-puppeteer-v1.9.12.zip",+ "sha256": "60628814b470b0ebc49589ce068c25d042333703d5ef9d3b8f955a791bd7764f",+ "size": 235677, "verbPrefixes": [ "browser_", "desktop_recorder_",@@ -12,5 +12,5 @@ ], "healthEndpoint": "/status", "statusVerb": "browser_readiness",- "released_at": "2026-07-19T23:00:00Z"+ "released_at": "2026-07-19T23:30:00Z" }
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.11+1.9.12
src/adom-pup-wiki-authed.svgadded+4@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 244 244"><defs><style>.cls-1{fill:none;}.cls-1,.cls-2,.cls-3,.cls-4{stroke-width:0px;}.cls-2{fill:#00b8b0;}.cls-3{fill:#fff;}.cls-4{fill:#003d40;}.cls-5{clip-path:url(#clippath);}</style><clipPath id="clippath"><rect class="cls-1" x="2.33" y="2.33" width="239.33" height="239.33"/></clipPath></defs><path class="cls-3" d="M184.3,59.7c-16.95-16.95-41.26-20.14-54.29-7.11-5.29,5.29-7.9,12.43-8.01,20.18h0s0,0,0,0c0,.03,0,.05,0,.08v48.09c0,.58.47,1.05,1.05,1.05h47.57-.01c7.99,0,15.37-2.6,20.79-8.02,13.03-13.03,9.84-37.33-7.11-54.29Z"/><path class="cls-3" d="M59.7,184.3c16.95,16.95,41.26,20.14,54.29,7.11,5.29-5.29,7.9-12.43,8.01-20.18h0s0,0,0,0c0-.03,0-.05,0-.08v-48.09c0-.58-.47-1.05-1.05-1.05h-47.57.01c-7.99,0-15.37,2.6-20.79,8.02-13.03,13.03-9.84,37.33,7.11,54.29Z"/><g class="cls-5"><path class="cls-2" d="M206.67,241.67H37.33c-19.33,0-34.99-15.67-34.99-34.99V37.33C2.33,18,18,2.33,37.33,2.33h169.34c19.33,0,34.99,15.67,34.99,34.99v169.34c0,19.33-15.67,34.99-34.99,34.99"/><path class="cls-4" d="M173.76,70.24c-14.09-14.09-34.28-16.73-45.1-5.91-4.39,4.39-6.56,10.33-6.66,16.77h0v40.03c0,.48.39.88.88.88h39.52,0c6.64,0,12.77-2.16,17.28-6.66,10.82-10.82,8.18-31.02-5.91-45.1"/><path class="cls-4" d="M70.24,173.76c14.09,14.09,34.28,16.73,45.1,5.91,4.39-4.39,6.56-10.33,6.66-16.77h0v-40.03c0-.48-.39-.88-.88-.88h-39.52,0c-6.64,0-12.77,2.16-17.28,6.66-10.82,10.82-8.18,31.02,5.91,45.1"/></g><g id="pup-lock-solid">+ <path d="M 172 182 V 168 A 15 15 0 0 1 202 168 V 182" fill="none" stroke="#003d40" stroke-width="12" stroke-linecap="round"/>+ <rect x="156" y="180" width="62" height="44" rx="11" fill="#003d40"/>+</g></svg>
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.11",+ "version": "1.9.12", "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+49−8@@ -1693,7 +1693,23 @@ let _jumplistSupported = null; // null = unprobed (desktop_set_window_jumplist // says "this is an Adom BROWSER window" at a glance. NEW FILENAME on art change, always — // Windows' shell + AD's HICON cache key by path (stale-tile risk otherwise). Future home for // the master art: the Adom brand-icons wiki repo; for now the pup repo owns it.-function pupIconPath() { return path.join(__dirname, 'icons', 'adom-pup-browser3.ico'); }+// v1.9.12: the taskbar icon now CARRIES THE ADOM-WIKI LOGIN STATE (John: "show an indicator in the+// pup icon whether the adom wiki is logged in... maybe that browser window icon gets filled in+// solid"). Two variants of the SAME art, differing only in the lower-right corner glyph:+// adom-pup-browser3.ico — browser-window OUTLINE = logged OUT / not a wiki window (default)+// adom-pup-wiki-authed1.ico — SOLID PADLOCK = signed in to the Adom wiki+// Solid-vs-outline is the most legible difference at 16-32px (a mass/contrast change survives+// downscaling; fine shape detail does not), and the padlock adds the semantic meaning on top.+// The OVERLAY slot is NOT used for this — it belongs to the active tab's favicon (v1.9.0).+// NEW FILENAME on any art change, always: the shell + AD cache HICONs by PATH (stale-tile trap).+const PUP_ICON_DEFAULT = 'adom-pup-browser3.ico';+const PUP_ICON_WIKI_AUTHED = 'adom-pup-wiki-authed1.ico';+function pupSessionAuthed(sessionId) {+ try { const s = sessionId && sessions.get(sessionId); return !!(s && s._wikiAuthed); } catch (e) { return false; }+}+function pupIconPath(sessionId) {+ return path.join(__dirname, 'icons', pupSessionAuthed(sessionId) ? PUP_ICON_WIKI_AUTHED : PUP_ICON_DEFAULT);+} // v1.9.11: the RelaunchCommand half of the Relaunch* trio (see stampPupIdentity) — Windows will // not honor RelaunchIconResource for the jump-list header row unless RelaunchCommand is set too. // It is also literally what a header click / taskbar PIN launches, so it must genuinely refocus@@ -1737,8 +1753,8 @@ async function stampPupIdentity(sessionId) { // brand an UNREGISTERED AUMID's button, and the registered plain "Adom.Pup" stays as the // pinnable Start Menu launcher. const r = await chrome.adCommand('desktop_set_window_identity', {- titleContains: `(session: ${sessionId}`, cacheKey: `pup-${sessionId}`,- appId: pupSettings().taskbarGrouping === 'grouped' ? PUP_APP_ID : `${PUP_APP_ID}.${sessionId}`, displayName: PUP_DISPLAY_NAME, iconPath: pupIconPath(),+ titleContains: `(session: ${sessionId}`, cacheKey: `pup-${sessionId}-${pupSessionAuthed(sessionId) ? 'auth' : 'plain'}`,+ appId: pupSettings().taskbarGrouping === 'grouped' ? PUP_APP_ID : `${PUP_APP_ID}.${sessionId}`, displayName: PUP_DISPLAY_NAME, iconPath: pupIconPath(sessionId), // v1.9.11 (AD ≥1.9.141): brand the taskbar RIGHT-CLICK MENU HEADER row (it showed the // chrome.exe icon for months). There is NO "ApplicationIcon" registry value on AUMID keys // and the registry cannot brand the header at all — the header obeys the window's@@ -1770,17 +1786,23 @@ async function stampPupIdentity(sessionId) { return ok; } catch (e) { return false; } }-const _registeredSessionAumids = new Set();+// v1.9.12: Map (not Set) appId -> the ICON STATE it was registered with ('auth' | 'plain'). The+// registration is what Alt-Tab and the flyout header resolve, so a wiki login/logout must+// RE-register with the other icon — a plain "already registered" guard would pin the stale one.+const _registeredSessionAumids = new Map(); async function registerPerSessionAumid(appId) {- if (_identitySupported === false || _registeredSessionAumids.has(appId) || appId === PUP_APP_ID) return;+ if (_identitySupported === false || appId === PUP_APP_ID) return;+ const sid = appId.startsWith(PUP_APP_ID + '.') ? appId.slice(PUP_APP_ID.length + 1) : null;+ const state = pupSessionAuthed(sid) ? 'auth' : 'plain';+ if (_registeredSessionAumids.get(appId) === state) return; // already registered in THIS state try { const r = await chrome.adCommand('desktop_register_app_identity', {- appId, displayName: PUP_DISPLAY_NAME, iconPath: pupIconPath(), shortcut: false,+ appId, displayName: PUP_DISPLAY_NAME, iconPath: pupIconPath(sid), shortcut: false, }, { timeoutMs: 6000 }); const raw = r && (typeof r.output === 'string' ? r.output : JSON.stringify(r.output || '')); if (_isUnknownVerb(r, raw)) return; // older AD without #207 — the per-window stamp still brands the taskbar button- _registeredSessionAumids.add(appId);- console.log(`[identity] registered per-session AUMID ${appId} (registry-only) — Alt-Tab/jumplist now show the Adom icon`);+ _registeredSessionAumids.set(appId, state);+ console.log(`[identity] registered per-session AUMID ${appId} (registry-only, icon=${state}) — Alt-Tab/jumplist show the Adom icon`); } catch (e) {} } async function unregisterPerSessionAumid(sessionId) {@@ -1789,6 +1811,20 @@ async function unregisterPerSessionAumid(sessionId) { _registeredSessionAumids.delete(appId); try { await chrome.adCommand('desktop_unregister_app_identity', { appId }, { timeoutMs: 5000 }); } catch (e) {} }+// v1.9.12: record the wiki auth state and RE-BRAND if it changed, so the taskbar icon flips+// between the browser-window glyph and the solid padlock the moment login state is known.+// Returns true if the state changed (i.e. a re-stamp was issued).+async function setWikiAuthedState(session, sessionId, authed) {+ if (!session) return false;+ const next = !!authed;+ if (session._wikiAuthed === next) return false;+ session._wikiAuthed = next;+ if (process.platform !== 'win32') return true;+ console.log(`[identity] "${sessionId}" wiki login state -> ${next ? 'LOGGED IN (padlock icon)' : 'logged out (browser icon)'}`);+ try { await stampPupIdentity(sessionId); } catch (e) {}+ try { await registerPerSessionAumid(`${PUP_APP_ID}.${sessionId}`); } catch (e) {}+ return true;+} // v1.9.3 (AD #208 — desktop_set_window_jumplist, AD ≥1.9.139): give each WIKI pup window a // taskbar RIGHT-CLICK task to flip between the logged-in and public view. The jump list attaches // to the per-session AUMID (registered registry-only in v1.9.2), so it is a PER-WINDOW menu.@@ -4557,6 +4593,8 @@ const server = http.createServer(async (req, res) => { if (session && isAdomUrl(args.url)) { session._wikiView = (args.wikiView === 'authed') ? 'authed' : 'public'; if (session._wikiView === 'public') session._publicProfile = session.profileName;+ // v1.9.12: seed the icon state so the FIRST brand already carries the right glyph.+ session._wikiAuthed = !!(_wikiAuth && _wikiAuth.authed); } if (session && fgGranted) { session._lastForeground = { ts: Date.now(), verb: 'browser_open_window', reason: fgReason };@@ -4862,6 +4900,7 @@ const server = http.createServer(async (req, res) => { 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) {}+ try { await setWikiAuthedState(s2, sessionId, a && a.authed); } 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). const _doneMsg = a && a.authed@@ -4869,6 +4908,7 @@ const server = http.createServer(async (req, res) => { : '\u{1F513} Adom wiki: logged-in view needs the one-time sign-in — sign in in this window'; wikiCaption(_doneMsg, 6000).catch(() => {}); } else {+ try { await setWikiAuthedState(s2, sessionId, false); } catch (e) {} const _doneMsg = '\u{1F4D6} Adom wiki: now the PUBLIC (logged-out) view — what the world sees'; wikiCaption(_doneMsg, 6000).catch(() => {}); }@@ -6127,6 +6167,7 @@ const server = http.createServer(async (req, res) => { try { const a = await checkWikiAuth(session.page); await setWikiModeGlyph(session.page, a && a.authed ? '\u{1F513} Logged in' : '\u{1F4D6} Public');+ await setWikiAuthedState(session, resolvedId, a && a.authed); } catch (e) {} }, 1800); }