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
Jump lists survive identity churn: a thread-owned window whose stamp cannot land still gets its task menu because the thread AUMID is derived from the owner and the tasks attach to it directly, and every strip or mode switch now resets the jump-list dedup keys so re-commits actually re-attach; plus the new full self-test harness and its maintainer skill.
4 files changed
+25−17
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "2.0.197",- "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.197/adom-bridge-puppeteer-v2.0.197.zip",- "sha256": "73bc8262c381a61752a99aba97554e8ff7e39606bd138e12d8ced499443cb482",- "size": 926403,+ "version": "2.0.198",+ "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.198/adom-bridge-puppeteer-v2.0.198.zip",+ "sha256": "5ead2e1573555dbf747b3b0927d7941ab8a222390995cd5088e15b5dc1a640f2",+ "size": 926534, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-2.0.197+2.0.198
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "2.0.197",+ "version": "2.0.198", "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. pup_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. pup_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, pup_alert_window posts a native toast whose click focuses the window, pup_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-bridge", "author": "Adom Inc.",
src/server.js+19−11@@ -4563,6 +4563,9 @@ async function stripAllPupIdentities(reason) { for (const [sid, s] of [...sessions]) { if (s._curAppId && s._curAppId !== PUP_APP_ID) ids.add(s._curAppId); s._curAppId = null; s._frozenAppId = null; s._desiredAppId = null; s._threadNudged = null;+ // v2.0.198: the shell-side lists are cleared below — reset the dedup keys too, or the later+ // re-commit believes the list is still attached and skips (John's taskless right-click menu).+ s._wikiJumplistKey = undefined; s._jlFrozen = false; targets.push([sid, s]); } for (const id of ids) {@@ -4697,7 +4700,11 @@ async function refreshAllJumplists() { const off = pupSettings().jumpLists !== 'on'; for (const [sid, s] of [...sessions]) { try {- const appId = s._curAppId; if (!appId) continue;+ let appId = s._curAppId;+ if (!appId && pupSettings().threadTiles === 'on' && (s.owner || s._ownerThread)) {+ appId = `${PUP_APP_ID}.thread.${threadSlug(s.owner || s._ownerThread)}.${THREAD_TILE_GEN}`; // v2.0.198: the button exists even when the stamp never landed+ }+ if (!appId) continue; if (off) { await chrome.abCommand('desktop_set_window_jumplist', { appId, tasks: [] }, { timeoutMs: 5000 }); s._wikiJumplistKey = undefined; s._jlFrozen = false; // so a later re-enable re-commits from scratch@@ -4767,15 +4774,16 @@ async function updateWikiJumplist(session, sessionId, opts) { if (!session) return; // 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.- // v2.0.177 (found by the test battery, and it is the OTHER half of John's "why do you apply the- // aumid twice"): when this ran before the identity stamp, the fallback minted a GENERIC- // Adom.Pup.<sid> AUMID (registered + registry-keyed with the category icon — measured live:- // "Adom.Pup.ai-battery-a icon=pup-cat-web9.ico") that the thread tile then superseded. In Thread- // Tiles mode a thread-owned window must never wear an intermediate identity: defer the jump-list- // until the thread stamp lands (the stamp re-invokes this with the real appId).- if (!(opts && opts.appId) && session && !session._curAppId- && pupSettings().threadTiles === 'on' && (session.owner || session._ownerThread)) return false;- const appId = (opts && opts.appId) || (session && session._curAppId) || `${PUP_APP_ID}.${sessionId}`;+ // v2.0.177: never mint a generic Adom.Pup.<sid> intermediate for a thread-owned window.+ // v2.0.198 (John's screenshot: syr-rental-car button with NO tasks, only Pin/Close): the 2.0.177+ // DEFER starved the list forever when the stamp could not land (unresolvable hwnd, #54) — but the+ // BUTTON lives on the thread AUMID regardless, and that id is COMPUTABLE from the owner alone.+ // So derive it and attach the tasks to it directly: the menu works even when stamping cannot.+ let _jlAppId = (opts && opts.appId) || (session && session._curAppId) || null;+ if (!_jlAppId && session && pupSettings().threadTiles === 'on' && (session.owner || session._ownerThread)) {+ _jlAppId = `${PUP_APP_ID}.thread.${threadSlug(session.owner || session._ownerThread)}.${THREAD_TILE_GEN}`;+ }+ const appId = _jlAppId || `${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@@ -12130,7 +12138,7 @@ const server = http.createServer(async (req, res) => { console.log(`[settings] taskbarMode -> ${val} (dashboard dialog)`); if (val === 'plain') { stripAllPupIdentities('settings-taskbarmode-plain').catch(() => {}); } else {- for (const [, s7] of [...sessions]) { try { s7._curAppId = null; s7._frozenAppId = null; } catch (e) {} }+ for (const [, s7] of [...sessions]) { try { s7._curAppId = null; s7._frozenAppId = null; s7._wikiJumplistKey = undefined; s7._jlFrozen = false; } catch (e) {} } try { _registeredPupAumids.clear(); } catch (e) {} brandSweep('settings-taskbarmode').catch(() => {}); reconcileModel('setting taskbarMode').catch(() => {});