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
Fix Thread Tiles icon not appearing on the taskbar button: the generated .ico embedded PNG for every size, but Windows' taskbar does not render PNG-compressed ICO entries at small sizes, so it fell back to the AUMID default icon. Small sizes (16/32/48) are now encoded as uncompressed 32bpp BMP/DIB with an all-opaque AND mask (the taskbar-reliable format); PNG is kept only for the 256 entry. Tile-gen bumped to t3 to regenerate.
4 files changed
+37−18
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "2.0.159",- "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.159/adom-bridge-puppeteer-v2.0.159.zip",- "sha256": "b56f760e4486c22adaf7bb2965e48ba5db23948e2a482d26510745967822fe2f",- "size": 907231,+ "version": "2.0.160",+ "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.160/adom-bridge-puppeteer-v2.0.160.zip",+ "sha256": "f4b26e4ad682c61a29e8c45fa6b3cdff8f541fb0c5b562f6e739632dbef7527d",+ "size": 907795, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-2.0.159+2.0.160
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "2.0.159",+ "version": "2.0.160", "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+31−12@@ -4246,7 +4246,7 @@ function writeAumidIcon(appId, iconPath) { // NAME rendered on the teal tile. The name is rendered in the real Adom font (Familjen Grotesk) by // CHROME — the ONE renderer guaranteed to have the woff2 — into a 256px PNG, which sharp downscales // to a multi-size .ico. Rendered once per thread name and cached on disk.-const THREAD_TILE_GEN = 't2';+const THREAD_TILE_GEN = 't3'; const THREAD_TILE_DIR = path.join(os.tmpdir(), 'pup-thread-tiles', THREAD_TILE_GEN); let _fgFontB64 = null; function fgFontB64() {@@ -4284,23 +4284,42 @@ window.__tileReady=true;})(); // modern ICO form Windows Vista+ reads). sharp does the downscales (available on the desktop). async function pngToIco(png256) { let sharp; try { sharp = require('sharp'); } catch (e) { return null; }- const sizes = [256, 48, 32, 16];- const pngs = [];+ // v2.0.160: the small sizes MUST be BMP/DIB (32bpp), not PNG — Windows' TASKBAR does not render+ // PNG-compressed ICO entries for small icons, so a PNG-only .ico fell back to the AUMID's default+ // registry icon (why the button showed the plain pup mark, not the name). BMP for 16/32/48; PNG is+ // fine (and smaller) only for the 256 entry.+ const sizes = [16, 32, 48, 256];+ const entries = []; for (const s of sizes) {- const b = s === 256 ? png256 : await sharp(png256).resize(s, s, { fit: 'fill', kernel: 'lanczos3' }).png().toBuffer();- pngs.push({ s, b });+ if (s === 256) {+ entries.push({ s, data: await sharp(png256).resize(256, 256, { fit: 'fill' }).png().toBuffer() });+ continue;+ }+ const { data } = await sharp(png256).resize(s, s, { fit: 'fill', kernel: 'lanczos3' }).ensureAlpha().raw().toBuffer({ resolveWithObject: true });+ // BITMAPINFOHEADER: height is DOUBLED (XOR color bitmap + AND mask), 32bpp, uncompressed.+ const hdr = Buffer.alloc(40);+ hdr.writeUInt32LE(40, 0); hdr.writeInt32LE(s, 4); hdr.writeInt32LE(s * 2, 8);+ hdr.writeUInt16LE(1, 12); hdr.writeUInt16LE(32, 14);+ const xor = Buffer.alloc(s * s * 4); // bottom-up BGRA+ for (let y = 0; y < s; y++) for (let x = 0; x < s; x++) {+ const si = ((s - 1 - y) * s + x) * 4, di = (y * s + x) * 4;+ xor[di] = data[si + 2]; xor[di + 1] = data[si + 1]; xor[di + 2] = data[si]; xor[di + 3] = data[si + 3];+ }+ const andRow = Math.ceil(s / 32) * 4; // 1bpp mask, 4-byte aligned rows; all-zero = opaque+ const andMask = Buffer.alloc(andRow * s, 0);+ entries.push({ s, data: Buffer.concat([hdr, xor, andMask]) }); }- const N = pngs.length;+ const N = entries.length; const header = Buffer.alloc(6); header.writeUInt16LE(0, 0); header.writeUInt16LE(1, 2); header.writeUInt16LE(N, 4); const dir = Buffer.alloc(16 * N); let offset = 6 + 16 * N;- pngs.forEach((p, i) => {- const e = dir.subarray(i * 16, i * 16 + 16);- e.writeUInt8(p.s >= 256 ? 0 : p.s, 0); e.writeUInt8(p.s >= 256 ? 0 : p.s, 1);- e.writeUInt8(0, 2); e.writeUInt8(0, 3); e.writeUInt16LE(1, 4); e.writeUInt16LE(32, 6);- e.writeUInt32LE(p.b.length, 8); e.writeUInt32LE(offset, 12); offset += p.b.length;+ entries.forEach((e, i) => {+ const d = dir.subarray(i * 16, i * 16 + 16);+ d.writeUInt8(e.s >= 256 ? 0 : e.s, 0); d.writeUInt8(e.s >= 256 ? 0 : e.s, 1);+ d.writeUInt8(0, 2); d.writeUInt8(0, 3); d.writeUInt16LE(1, 4); d.writeUInt16LE(32, 6);+ d.writeUInt32LE(e.data.length, 8); d.writeUInt32LE(offset, 12); offset += e.data.length; });- return Buffer.concat([header, dir, ...pngs.map(p => p.b)]);+ return Buffer.concat([header, dir, ...entries.map(e => e.data)]); } const _threadTileInflight = new Map(); // name -> Promise (dedupe concurrent renders) // Render (or return cached) the .ico path for a thread name. v2.0.158: draw the tile on an OFFSCREEN