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
A dedicated pen button joins the browser toolbar (John: show the pen inline with the extension icons). Chrome permits exactly one action button per extension and no inline toolbars, so the pen is its own tiny third extension, Adom Annotate: one family tile (teal rounded tile, dark-teal pencil mark), pinned first so pen, pup, and identity read as one inline Adom toolbar. The click fires annotate via an instantly self-closing popup on the popup rail, the one extension surface proven reliable under load-extension here, resolving the window by tab URL like every other user path
10 files changed
+45−8
adom-bridge-puppeteer-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "puppeteer",- "version": "2.0.91",- "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.91/adom-bridge-puppeteer-v2.0.91.zip",- "sha256": "0dcf7e22d9a7a379f12a7b694e8bc947346ad878debd2e686ccc5e0bd8fbe4d6",- "size": 836771,+ "version": "2.0.92",+ "url": "https://wiki.adom.inc/download/adom/pup-bridge/2.0.92/adom-bridge-puppeteer-v2.0.92.zip",+ "sha256": "e61267900f5a21308d983fc1ffbf02ceb7b0e7bda5e8c94323a8b0d26f393b32",+ "size": 842640, "verbPrefixes": [ "browser_", "desktop_recorder_",
src/BRIDGE_VERSION+1−1@@ -1 +1 @@-2.0.91+2.0.92
src/bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "puppeteer", "displayName": "Puppeteer (Chrome for Testing + Native)",- "version": "2.0.91",+ "version": "2.0.92", "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/extension-annotate/go.htmladded+4@@ -0,0 +1,4 @@+<!doctype html><html><head><meta charset="utf-8"><style>+body { margin: 0; width: 120px; background: #0d1117; color: #00d4cb;+ font: 500 12px 'Segoe UI', sans-serif; padding: 8px 12px; border: 1px solid #30363d; }+</style></head><body>Annotating…<script src="go.js"></script></body></html>
src/extension-annotate/go.jsadded+20@@ -0,0 +1,20 @@+// Single-purpose: the popup IS the button handler (the popup rail is the one extension surface+// proven reliable under --load-extension here; action.onClicked worker events are not). Fire+// annotate on the active tab via pup's loopback, then close.+(async () => {+ const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });+ for (const port of [64230, 8851]) {+ try {+ const r = await fetch(`http://127.0.0.1:${port}/health`, { signal: AbortSignal.timeout(1200) });+ const j = await r.json();+ if (!j || j.bridge !== 'puppeteer') continue;+ await fetch(`http://127.0.0.1:${port}/command`, {+ method: 'POST',+ headers: { 'content-type': 'application/json', 'x-adom-caller-thread': 'user-toolbar', 'x-adom-caller-reason': 'Adom Annotate button' },+ body: JSON.stringify({ command: 'pup_annotate', args: { _tabUrl: tab && tab.url, tool: 'pen', caller: { aiThread: 'user-toolbar' } } }),+ });+ break;+ } catch (e) {}+ }+ window.close();+})();
src/extension-annotate/icon128.pngadded⋯ 1 unchanged line ⋯
src/extension-annotate/icon16.pngadded⋯ 1 unchanged line ⋯
src/extension-annotate/icon48.pngadded⋯ 1 unchanged line ⋯
src/extension-annotate/manifest.jsonadded+10@@ -0,0 +1,10 @@+{+ "manifest_version": 3,+ "name": "Adom Annotate",+ "version": "0.1.0",+ "description": "One-click annotate: draw on this pup page, red circle it, and the capture lands on your clipboard.",+ "action": { "default_popup": "go.html", "default_title": "Annotate this page (Alt+Shift+A)" },+ "permissions": ["tabs"],+ "host_permissions": ["http://127.0.0.1/*"],+ "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }+}
src/server.js+5−2@@ -2483,7 +2483,7 @@ function prepareCleanProfile(userDataDir) { if (pupSettings().toolbarExtension !== 'off') { prefs.extensions = prefs.extensions || {}; const pins = Array.isArray(prefs.extensions.pinned_extensions) ? prefs.extensions.pinned_extensions : [];- for (const d of [path.join(os.homedir(), '.adom', 'pup-extension'), path.join(os.homedir(), '.adom', 'pup-identity-extension')]) {+ for (const d of [path.join(os.homedir(), '.adom', 'pup-annotate-extension'), path.join(os.homedir(), '.adom', 'pup-extension'), path.join(os.homedir(), '.adom', 'pup-identity-extension')]) { const id2 = unpackedExtensionId(d); if (!pins.includes(id2)) pins.push(id2); }@@ -8271,7 +8271,10 @@ async function getOrLaunchBrowser(profileName, { freshProfile = false, strictPer // The identity extension rides ONLY adom-you (throwaway profiles must not claim the identity). const _tbExtDir = stageToolbarExtension(); const _idExtDir = (path.basename(userDataDir || '') === 'adom-you') ? await stageIdentityExtension() : null;- const _extDirs = [_tbExtDir, _idExtDir].filter(Boolean);+ // v2.0.92 (John: pen button beside the extension icons — Chrome allows ONE action per+ // extension, so the pen is its own tiny extension; three family tiles = the Adom toolbar)+ const _penExtDir = (pupSettings().toolbarExtension !== 'off') ? _stageExtDir('extension-annotate', 'pup-annotate-extension') : null;+ const _extDirs = [_penExtDir, _tbExtDir, _idExtDir].filter(Boolean); // ─── Spawn-verified launch: try each candidate browser in order, up to 3 ─── // attempts each (with orphan/lock cleanup between attempts). If a browser can't