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
Rebuild all category icons with PNG-compressed 256 frames (Vista+ rule: a BMP 256 entry renders the generic white document on the jump-list header), bump icon generation to i3, and add the thumbnail tooltip using AD 1.9.152 desktop_taskbar thumbnailTooltip
4 files changed
+67−7
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "1.9.57",- "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.57/adom-bridge-puppeteer-v1.9.57.zip",- "sha256": "5a6d242e45211cc114ea8a80d5f17a2bdc1a0d4cbef4b6f9f43a9823da0c6a67",- "size": 312464,+ "version": "1.9.58",+ "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.58/adom-bridge-puppeteer-v1.9.58.zip",+ "sha256": "31ca4507716f425213f70dee7e1d2a77cf3624d837ecd8d7e7a5b4e7302ba74b",+ "size": 302413, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.57+1.9.58
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "1.9.57",+ "version": "1.9.58", "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+61−1@@ -258,6 +258,7 @@ function scheduleCategoryRecheck(sessionId) { if (!cat || cat === s._lastCat) return; console.log(`[identity] "${sessionId}" category changed ${s._lastCat || 'none'} -> ${cat} (after navigation) — re-stamping`); s._lastCat = cat;+ updateThumbnailTooltip(s, sessionId).catch(() => {}); for (let i = 0; i < 4; i++) { let ok = false; try { ok = await brandPupWindow(sessionId); } catch (e) {}@@ -1828,7 +1829,7 @@ const PUP_ICON_DEFAULT = 'pup-cat-default9.ico'; // already-created ones white, because their tiles were baked while the AUMID was still unbranded. // Folding a generation token into the appId turns an icon change into a NEW appId, which forces the // shell to create a NEW button, which is the ONLY thing that repaints. Cost is one button rebuild.-const PUP_ICON_GEN = 'i2';+const PUP_ICON_GEN = 'i3'; // i3: icons rebuilt with PNG-compressed 128/256 frames (Vista+ rule) const PUP_CAT_ICONS = { wiki: 'pup-cat-wiki9.ico', 'wiki-in': 'pup-cat-wiki-in9.ico',@@ -2274,6 +2275,64 @@ const PASSIVE_VERBS = new Set([ 'browser_describe', 'browser_configure', 'browser_prewarm', 'browser_rescan', 'browser_wait', ]); +// v1.9.58 — THUMBNAIL TOOLTIP (AD >= 1.9.152: desktop_taskbar { thumbnailTooltip }).+//+// The hover-preview CAPTION is just the window title and Windows truncates it at ~25-30 chars, so it+// can only ever carry the state glyph plus a clipped page name. The thumbnail tooltip is the only+// UNCAPPED text surface on that popup and it accepts NEWLINES, so this is where the full answer to+// "what is this window?" belongs: that it is Adom Pup, what KIND of content it holds, whether a wiki+// page is the public or the signed-in view, that it is Chrome-driven, and the tab count.+const CAT_LABEL = {+ wiki: 'Adom wiki (PUBLIC view)',+ 'wiki-in': 'Adom wiki (SIGNED IN)',+ app: 'Adom app',+ web: 'Web page',+ mixed: 'Mixed content',+};+function buildThumbnailTooltip(session, sessionId) {+ const cat = pupCategory(sessionId);+ const tabs = (session.tabs || []).length;+ const lines = [`Adom Pup · ${CAT_LABEL[cat] || 'Browser window'}`];+ try {+ if (cat === 'mixed') {+ // Name the distinct hosts so the user knows WHY it is mixed without opening it.+ const hosts = [];+ for (const t of (session.tabs || [])) {+ try { const h = new URL(t.page.url()).hostname.replace(/^www\./, ''); if (h && !hosts.includes(h)) hosts.push(h); } catch (e) {}+ }+ if (hosts.length) lines.push(hosts.slice(0, 4).join(', '));+ } else {+ const active = (session.tabs || []).find(t => t.tabId === session.activeTabId) || (session.tabs || [])[0];+ if (active) {+ let u = ''; try { u = active.page.url(); } catch (e) {}+ if (u) { try { const p = new URL(u); lines.push((p.hostname + p.pathname).replace(/^www\./, '').slice(0, 70)); } catch (e) {} }+ }+ }+ } catch (e) {}+ lines.push(`Chrome for Testing · ${tabs} tab${tabs === 1 ? '' : 's'}`);+ return lines.join('\n');+}+async function updateThumbnailTooltip(session, sessionId) {+ if (process.platform !== 'win32' || !session || _thumbTooltipSupported === false) return;+ const tip = buildThumbnailTooltip(session, sessionId);+ if (session._thumbTip === tip) return; // idempotent: only push real changes+ try {+ const r = await chrome.adCommand('desktop_taskbar', {+ titleContains: `(session: ${sessionId}`, thumbnailTooltip: tip,+ }, { timeoutMs: 5000 });+ const raw = r && (typeof r.output === 'string' ? r.output : JSON.stringify(r.output || ''));+ if (_isUnknownVerb(r, raw) || /unknown (arg|field)|unexpected (arg|field)/i.test(raw || '')) {+ _thumbTooltipSupported = false;+ console.log('[thumbtip] AD lacks thumbnailTooltip (needs >=1.9.152) — skipping');+ return;+ }+ _thumbTooltipSupported = true;+ session._thumbTip = tip;+ console.log(`[thumbtip] "${sessionId}" -> ${tip.replace(/\n/g, ' | ')}`);+ } catch (e) {}+}+let _thumbTooltipSupported = null;+ async function updateTabCountBadge(session, sessionId) { if (process.platform !== 'win32' || _identitySupported !== true) return; // overlay busy with brand badge on old AD // v1.9.31: a tab verb just ran — cheap moment to notice a drag-out (event-driven, not a scan).@@ -2991,6 +3050,7 @@ async function refreshWindowChrome(session, sessionId, tries = 5) { if (ok) { try { await updateTabCountBadge(session, sessionId); } catch (e) {} try { await updateWikiJumplist(session, sessionId); } catch (e) {}+ try { await updateThumbnailTooltip(session, sessionId); } catch (e) {} return true; } await new Promise(r => setTimeout(r, 600 * (i + 1)));