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
Brand the jump-list header BEFORE stamping the new appId (Win11 bakes button art at creation, so branding after had no visible effect), and dedupe jump-list commits on appId+view so a CommitList cannot dismiss a menu the user is opening
4 files changed
+28−12
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.60",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.60/adom-bridge-puppeteer-v1.9.60.zip",- "sha256": "799fde79d0df39674e5eed132fdf0d46409329c9b8da6d146fd133d3d929f540",- "size": 303317,+ "version": "1.9.61",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.61/adom-bridge-puppeteer-v1.9.61.zip",+ "sha256": "b0e996d6f5ee0a0424e90dae7d97343aeb07c9a0a185ee1d9413e5169f842a3b",+ "size": 303758, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.60+1.9.61
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.60",+ "version": "1.9.61", "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+22−6@@ -1954,7 +1954,16 @@ async function stampPupIdentity(sessionId) { const prevAppId = sess && sess._curAppId; // Register the NEW appId BEFORE stamping (AD's verified order) so the fresh button resolves // its icon/name from the registry the moment it is created.- if (!grouped && prevAppId !== appId) { try { await registerPupAumid(appId, sessionId); } catch (e) {} }+ if (!grouped && prevAppId !== appId) {+ try { await registerPupAumid(appId, sessionId); } catch (e) {}+ // v1.9.61 — ORDER MATTERS (the live-tile trap, from AD's window-identity skill): Win11 bakes a+ // taskbar button's art when the button is CREATED and never re-reads it. Stamping the new appId+ // below is what creates that button. We used to brand the jump-list header AFTER the stamp, so+ // the header baked GENERIC and the later headerBranded:true had no visible effect — exactly what+ // John kept seeing. Brand the header (writes the window's Relaunch trio) FIRST, so the button is+ // born with it.+ try { await updateWikiJumplist(sess, sessionId, { appId }); } catch (e) {}+ } const r = await chrome.adCommand('desktop_set_window_identity', { titleContains: `(session: ${sessionId}`, cacheKey: `pup-${sessionId}-${cat}`, appId, displayName: PUP_DISPLAY_NAME, iconPath: pupIconPath(sessionId),@@ -1985,8 +1994,7 @@ async function stampPupIdentity(sessionId) { sess._curAppId = appId; // The jump list attaches to the AUMID — a new appId starts with NO jump list, so force a // re-attach on the next updateWikiJumplist pass.- sess._wikiJumplistView = undefined;- updateWikiJumplist(sess, sessionId).catch(() => {});+ updateWikiJumplist(sess, sessionId).catch(() => {}); // deduped by _wikiJumplistKey // Unregister the superseded appId (cleanup, AD step 3). Never the pinnable base id. if (prevAppId && prevAppId !== PUP_APP_ID) { unregisterPupAumid(prevAppId).catch(() => {}); } }@@ -2116,16 +2124,23 @@ async function setWikiAuthedState(session, sessionId, authed) { // = a relaunch). Only meaningful in SPLIT mode (grouped mode shares one taskbar button, so a // per-window menu would be ambiguous) and only for Adom (adom.inc) URLs; any other URL clears the // menu. Self-gates off if AD lacks the verb. Idempotent per (session, view) via _wikiJumplistView.-async function updateWikiJumplist(session, sessionId) {+async function updateWikiJumplist(session, sessionId, opts) { if (process.platform !== 'win32' || _identitySupported !== true || _jumplistSupported === false) return; if (!session || pupSettings().taskbarGrouping === 'grouped') return;- const appId = (session && session._curAppId) || `${PUP_APP_ID}.${sessionId}`;+ // v1.9.61: callers may pass the appId EXPLICITLY. stampPupIdentity brands the header BEFORE it+ // stamps the new appId onto the window, so at that moment session._curAppId is still the OLD id.+ const appId = (opts && opts.appId) || (session && session._curAppId) || `${PUP_APP_ID}.${sessionId}`; let url = null; try { url = (session.page && session.page.url()) || null; } catch (e) {} const view = isAdomUrl(url) ? (session._wikiView === 'authed' ? 'authed' : 'public') : null; // v1.9.51: the jump-list STATE is now (view + a constant close-all task). The close-all task is // on EVERY pup window, so the idempotency key is just the view — a menu that already reflects this // view already has the close-all row too.- if (session._wikiJumplistView === view) return; // menu already reflects this state+ // v1.9.61: key on (appId|view). Keying on view alone re-committed the list on every refresh once+ // the appId changed, and EVERY CommitList rebuilds the menu — if one lands while the user is+ // opening it, the shell dismisses it. That is the "first right-click does nothing, second works"+ // wonkiness. One commit per (button, view), never a redundant one.+ const jlKey = `${appId}|${view || 'none'}`;+ if (session._wikiJumplistKey === jlKey) return; // v1.9.6: give each task an icon (iconPath) — without it Windows shows a generic blank-document // glyph (John: "why is your icon generic for that menu item?"). // v1.9.54: use THIS WINDOW'S category icon, not pupIconPath() with no arg — that argless call fell@@ -2191,6 +2206,7 @@ async function updateWikiJumplist(session, sessionId) { if (_isUnknownVerb(r, raw)) { _jumplistSupported = false; return; } _jumplistSupported = true; session._wikiJumplistView = view;+ session._wikiJumplistKey = jlKey; // Surface the header-branding outcome: it is the ONLY programmatic signal that the app-tile row // actually took our icon (the rendered menu itself cannot be captured from the cloud). let hb = null, hic = null;