← Commit history

v1.9.13: move the Adom wiki login indicator to the taskbar overlay slot (green closed / slate open padlock) for real legibility at 16px

John Lauer ·eb32d85a82 ·3mo ago ·parent 5803a62
5 files changed +64−8
CHANGELOG.md+15
@@ -1,5 +1,20 @@ # Changelog — Adom Desktop Puppeteer Bridge +## 1.9.13 — 2026-07-19 — Login state moves to the OVERLAY slot (readable at real taskbar size)++Honest follow-up to 1.9.12: the base-icon corner glyph (browser outline vs padlock) works+mechanically, but a full-res capture of the real taskbar showed pup buttons render at ~24px, so+that corner glyph is only ~7px — too small to be the "good human indicator" John asked for.+Moved the signal to the OVERLAY slot, which Windows paints ~16px bottom-right and designs for+exactly this:+  GREEN plate + closed padlock = signed in to the Adom wiki+  SLATE plate + open padlock   = logged out / public view+Colour carries it at 16px where shape cannot. The slot is free on wiki windows because the favicon+that normally rides there is the ADOM LOGO — redundant with the pup base icon, which is already+Adom. NON-Adom sites (ti.com, digikey) keep their favicon, which genuinely says where you are.+The 1.9.12 base-icon swap stays as a second signal for Alt-Tab and the flyout header, where+overlays are not painted. Tooltip spells it out: "Adom wiki: SIGNED IN / public - logged out".+ ## 1.9.12 — 2026-07-19 — The taskbar ICON now shows Adom-wiki login state  John: "can you show an indicator in the pup icon whether the adom wiki is logged in or not? maybe
adom-bridge-puppeteer-manifest.json+5−5
@@ -1,10 +1,10 @@ {   "manifest_version": 1,   "name": "puppeteer",-  "version": "1.9.12",-  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.12/adom-bridge-puppeteer-v1.9.12.zip",-  "sha256": "60628814b470b0ebc49589ce068c25d042333703d5ef9d3b8f955a791bd7764f",-  "size": 235677,+  "version": "1.9.13",+  "url": "https://wiki.adom.inc/download/adom/adom-desktop-puppeteer-bridge/1.9.13/adom-bridge-puppeteer-v1.9.13.zip",+  "sha256": "a8787ddf23c0e708756fd0b35a285fdcebb9f8ccb7a8825e1e96273b79b9dae1",+  "size": 238353,   "verbPrefixes": [     "browser_",     "desktop_recorder_",@@ -12,5 +12,5 @@   ],   "healthEndpoint": "/status",   "statusVerb": "browser_readiness",-  "released_at": "2026-07-19T23:30:00Z"+  "released_at": "2026-07-19T23:45:00Z" }
src/BRIDGE_VERSION+1−1
@@ -1 +1 @@-1.9.12\ No newline at end of file+1.9.13\ No newline at end of file
src/bridge.json+1−1
@@ -2,7 +2,7 @@   "manifest_version": 1,   "name": "puppeteer",   "displayName": "Puppeteer (Chrome for Testing + Native)",-  "version": "1.9.12",+  "version": "1.9.13",   "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+42−1
@@ -1820,9 +1820,10 @@ async function setWikiAuthedState(session, sessionId, authed) {   if (session._wikiAuthed === next) return false;   session._wikiAuthed = next;   if (process.platform !== 'win32') return true;-  console.log(`[identity] "${sessionId}" wiki login state -> ${next ? 'LOGGED IN (padlock icon)' : 'logged out (browser icon)'}`);+  console.log(`[identity] "${sessionId}" wiki login state -> ${next ? 'LOGGED IN (green closed padlock)' : 'logged out (slate open padlock)'}`);   try { await stampPupIdentity(sessionId); } catch (e) {}   try { await registerPerSessionAumid(`${PUP_APP_ID}.${sessionId}`); } catch (e) {}+  try { await updateTabCountBadge(session, sessionId); } catch (e) {} // repaint the lock overlay   return true; } // v1.9.3 (AD #208 — desktop_set_window_jumplist, AD ≥1.9.139): give each WIKI pup window a@@ -1923,6 +1924,32 @@ async function dualBadgeB64(wins, tabs) {   } catch (e) { return null; } } +// v1.9.12b: LOGIN-STATE OVERLAY for Adom wiki windows. The overlay slot is the one surface+// Windows actually designs for status (painted ~16px bottom-right of the taskbar button), and it+// is far more legible than the corner glyph baked into the 24px base icon. On an ADOM WIKI window+// the favicon that normally rides here is the ADOM LOGO — redundant with the pup base icon, which+// is already Adom — so the slot is free to carry real information. Non-Adom sites (ti.com,+// digikey, ...) keep their favicon, which genuinely tells you where you are.+//   GREEN + closed padlock = signed in to the Adom wiki+//   SLATE + open padlock   = logged out / public view+const _wikiLockB64 = new Map();+function wikiLockOverlay(authed) {+  const key = authed ? 'locked' : 'unlocked';+  if (_wikiLockB64.has(key)) return _wikiLockB64.get(key);+  try {+    const b = fs.readFileSync(path.join(__dirname, 'icons', 'wiki-lock', `${key}-32.png`)).toString('base64');+    _wikiLockB64.set(key, b);+    return b;+  } catch (e) { return null; }+}+// Is this session currently showing an Adom URL (so the lock, not the favicon, owns the slot)?+function sessionOnAdomUrl(session) {+  try {+    const t = (session.tabs || []).find(x => x.tabId === session.activeTabId) || (session.tabs || [])[0];+    const pg = (t && t.page) || session.page;+    return isAdomUrl(pg && pg.url());+  } catch (e) { return false; }+} async function updateTabCountBadge(session, sessionId) {   if (process.platform !== 'win32' || _identitySupported !== true) return; // overlay busy with brand badge on old AD   try {@@ -1948,6 +1975,20 @@ async function updateTabCountBadge(session, sessionId) {     // rides in the hover tooltip. Only if the active page has NO favicon do we fall back to a     // plain count badge (so a many-tab faviconless window isn't a blank Adom tile).     const count = (session.tabs || []).length;+    // v1.9.12b: Adom wiki window -> the LOCK owns the overlay (its favicon would just repeat the+    // Adom mark already in the base icon). This is the readable login indicator.+    if (sessionOnAdomUrl(session)) {+      const authed = !!session._wikiAuthed;+      const lock = wikiLockOverlay(authed);+      if (lock) {+        await chrome.adCommand('desktop_taskbar', {+          titleContains: `(session: ${sessionId}`,+          overlay: { icon: lock, tooltip: `Adom Pup — Adom wiki: ${authed ? 'SIGNED IN' : 'public / logged out'} · ${count} tab${count === 1 ? '' : 's'}` },+        }, { timeoutMs: 5000 });+        session._appOverlay = true;+        return;+      }+    }     const worn = await applyAppOverlay(session, sessionId); // active tab's favicon + count in tooltip     if (worn) return;     session._appOverlay = false;