by adom
See the shots your AI never showed you, and know it actually SAW them. adom-shotlog streams every screenshot the AI gathers into a live gallery (webview/pup/browser/phone), reports whether a human is really watching and on which surface, and ingests Adom Bridge child-window arrays via --meta.
← Commit history
Publish 0.29.4
8 files changed
+54−19
Cargo.lock+1−1@@ -10,7 +10,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "adom-shotlog"-version = "0.29.2"+version = "0.29.4" dependencies = [ "axum", "base64",
Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "adom-shotlog"-version = "0.29.2"+version = "0.29.4" edition = "2021" description = "Screenshot log viewer and CLI for Adom" license = "MIT"
VERSION+1−1@@ -1 +1 @@-0.29.2+0.29.4
bin/adom-shotlog⋯ 1 unchanged line ⋯
install.shpackage.json+3−3@@ -1,7 +1,7 @@ { "slug": "adom-shotlog",- "version": "0.29.3",- "changelog": "0.29.3: skill cleanup: shorter descriptions, the dev and publish skills no longer ship in the package, retired adompkg and adom-bridge-cli names replaced. Same 0.29.2 binary.",+ "version": "0.29.4",+ "changelog": "0.29.4: leaving fullscreen returns to the same spot in the list (card-anchored, survives a panel reload). Carries 0.29.3 (Colby): shorter skill descriptions, dev and publish skills no longer ship, retired adompkg and adom-bridge-cli names replaced.", "type": "app", "title": "Shotlog - Screenshot Log", "description": "See the shots your AI never showed you, and know it actually SAW them. adom-shotlog streams every screenshot the AI gathers into a live gallery (webview/pup/browser/phone), reports whether a human is really watching and on which surface, and ingests Adom Bridge child-window arrays via --meta.",@@ -68,4 +68,4 @@ }, "org": "adom", "platform": "any"-}+}
page.json+3−5@@ -1,7 +1,7 @@ { "slug": "adom-shotlog",- "version": "0.29.3",- "changelog": "0.29.3: skill cleanup: shorter descriptions, the dev and publish skills no longer ship in the package, retired adompkg and adom-bridge-cli names replaced. Same 0.29.2 binary.",+ "version": "0.29.4",+ "changelog": "0.29.4: leaving fullscreen returns to the same spot in the list (card-anchored, survives a panel reload). Carries 0.29.3 (Colby): shorter skill descriptions, dev and publish skills no longer ship, retired adompkg and adom-bridge-cli names replaced.", "type": "app", "title": "Shotlog - Screenshot Log", "description": "See the shots your AI never showed you, and know it actually SAW them. adom-shotlog streams every screenshot the AI gathers into a live gallery (webview/pup/browser/phone), reports whether a human is really watching and on which surface, and ingests Adom Bridge child-window arrays via --meta.",@@ -27,8 +27,6 @@ "VERSION", "LICENSE", "tools/**",- "dev-skills/**",- "publish-skills/**", "hooks/**" ], "install": {@@ -55,7 +53,7 @@ "dont foreground", "taskbar flash" ],- "discovery_pitch": "Your AI screenshots its work into channels and you review it live anywhere, even your phone. Every shot records its original capture resolution, and Adom Desktop child-window arrays come through with their coordMap.",+ "discovery_pitch": "Your AI screenshots its work into channels and you review it live anywhere, even your phone. Every shot records its original capture resolution, and Adom Bridge child-window arrays come through with their coordMap.", "visibility": "public", "bundled": true, "tags": [
src/html/index.html+45−8@@ -1291,7 +1291,7 @@ body:not(.compact) .card-refbar .rb-cap { display: none; } // (John: the old 3-layer stack, modal -> fullscreen -> unmax, is gone). // The next click anywhere (image or margin), or Esc, comes straight back // to the normal list. The modal stays only for child-window thumbnails.- img.addEventListener('click', ()=>fillWindow(imgUrl(e), e.description||e.filename));+ img.addEventListener('click', ()=>fillWindow(imgUrl(e), e.description||e.filename, e.id)); imgWrap.appendChild(img); // REF/HANDLE strip ABOVE the thumbnail (never ON it: humans screenshot a // thumbnail to send it back to the AI, so the image itself stays clean).@@ -1373,7 +1373,7 @@ body:not(.compact) .card-refbar .rb-cap { display: none; } const fillBtn=document.createElement('button'); fillBtn.className='card-fill-btn'; fillBtn.setAttribute('aria-label','Fullscreen this shot'); fillBtn.setAttribute('data-tooltip','Zoom STRAIGHT to fullscreen (skip the popup).\nIn Adom Hydrogen it fills 90% of the window; in pup/browser it goes fullscreen. Esc / click / × to exit.'); fillBtn.innerHTML='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"/></svg>';- fillBtn.addEventListener('click', ev=>{ ev.stopPropagation(); fillWindow(imgUrl(e), e.description||e.filename); });+ fillBtn.addEventListener('click', ev=>{ ev.stopPropagation(); fillWindow(imgUrl(e), e.description||e.filename, e.id); }); imgWrap.appendChild(fillBtn); c.appendChild(imgWrap); // All child windows in ONE row, inline — no need to open the shot.@@ -1400,7 +1400,9 @@ body:not(.compact) .card-refbar .rb-cap { display: none; } return c; } + let curModalId = null; function openModal(e) {+ curModalId = e.id; backFromFill=false; mImg.style.cursor=''; // fresh shot: click 1 = fill mImg.src=imgUrl(e); mImg.alt=e.description||e.filename; const isAutoM=(e.source||'').startsWith('read-hook');@@ -1503,8 +1505,37 @@ body:not(.compact) .card-refbar .rb-cap { display: none; } // of re-filling. The cursor flips to zoom-out to signal it. let backFromFill = false; function landOnMaxed(){ backFromFill = true; mImg.style.cursor = 'zoom-out'; }- function fillWindow(src, alt){+ // WHERE YOU WERE (John, 2026-10-27): leaving fullscreen must land you on+ // the same spot in the list. The host's fullscreen grant resizes (in+ // Hydrogen, re-parents) the panel, which can drop the feed's scroll or even+ // reload the page, so the anchor (card id + scrollTop) is kept in memory AND+ // in sessionStorage, and restored on exit or on the next load of this channel.+ let fillAnchor = null;+ function rememberFill(id){+ // Anchor on the CARD, not a pixel offset: heights above it change as+ // images load and unload, so "the same scrollTop" is not the same view.+ // Remember where the card sat inside the feed and put it back there.+ const el = id!=null && feed.querySelector(`[data-id="${id}"]`);+ const off = el ? el.getBoundingClientRect().top - feed.getBoundingClientRect().top : null;+ fillAnchor = { id: id==null ? null : id, top: feed.scrollTop, off, channel, t: Date.now() };+ try { sessionStorage.setItem('shotlog.fillAnchor', JSON.stringify(fillAnchor)); } catch {}+ }+ function restoreScroll(){+ const a = fillAnchor; if (!a || a.channel !== channel) return;+ const settle = () => {+ const el = a.id!=null && feed.querySelector(`[data-id="${a.id}"]`);+ if (el && a.off!=null) {+ const d = (el.getBoundingClientRect().top - feed.getBoundingClientRect().top) - a.off;+ if (Math.abs(d) > 2) feed.scrollTop += d;+ } else if (el) { el.scrollIntoView({block:'center'}); }+ else if (Math.abs(feed.scrollTop - a.top) > 2) feed.scrollTop = a.top;+ };+ settle(); [50, 200, 600, 1200].forEach(ms => setTimeout(settle, ms));+ try { sessionStorage.removeItem('shotlog.fillAnchor'); } catch {}+ }+ function fillWindow(src, alt, id){ // The click that called this IS the user gesture the API requires.+ rememberFill(id); backFromFill = false; mImg.style.cursor = ''; // going INTO fill lbImg.src = src; lbImg.alt = alt || ''; lightbox.classList.add('open'); // fallback overlay + backdrop, always@@ -1513,14 +1544,15 @@ body:not(.compact) .card-refbar .rb-cap { display: none; } function exitFill(){ // If the host granted fullscreen, leaving it fires fullscreenchange, which // clears .open + lands us on maxed. Otherwise (fallback overlay) do it here.- if (fsElement() === lightbox && xfs) { try { xfs.call(document); } catch { lightbox.classList.remove('open'); landOnMaxed(); } }- else { lightbox.classList.remove('open'); landOnMaxed(); }+ if (fsElement() === lightbox && xfs) { try { xfs.call(document); } catch { lightbox.classList.remove('open'); landOnMaxed(); restoreScroll(); } }+ else { lightbox.classList.remove('open'); landOnMaxed(); restoreScroll(); } } // Keep DOM state in lockstep with the host: if the user exits fullscreen by // any means (Esc, host chrome), drop the lightbox and arm the un-max click. const onFsChange = () => { if (fsElement()) return; // entering/switching: nothing to do if (lightbox.classList.contains('open')) { lightbox.classList.remove('open'); landOnMaxed(); }+ restoreScroll(); }; document.addEventListener('fullscreenchange', onFsChange); document.addEventListener('webkitfullscreenchange', onFsChange);@@ -1528,8 +1560,8 @@ body:not(.compact) .card-refbar .rb-cap { display: none; } // fill (the 4th click in the stack). The ⛶ button ALWAYS fills (explicit). mImg.addEventListener('click', e => { e.stopPropagation(); if (backFromFill) { backFromFill = false; mImg.style.cursor = ''; closeModal(); }- else fillWindow(mImg.src, mImg.alt); });- $('mFillBtn').addEventListener('click', e => { e.stopPropagation(); fillWindow(mImg.src, mImg.alt); });+ else fillWindow(mImg.src, mImg.alt, curModalId); });+ $('mFillBtn').addEventListener('click', e => { e.stopPropagation(); fillWindow(mImg.src, mImg.alt, curModalId); }); // ANY click inside the lightbox (image, the dark margin, anything) exits: // the next click after zooming always takes you back to the list. lightbox.addEventListener('click', e => { e.stopPropagation(); exitFill(); });@@ -1679,7 +1711,12 @@ body:not(.compact) .card-refbar .rb-cap { display: none; } } entries=c.entries; c.unseen=0;- renderAll(); feed.scrollTop=0;+ renderAll();+ // Back from a fullscreen that reloaded the page (Hydrogen re-parents the+ // panel): land on the card that was filled, not at the top.+ let back=null; try { back=JSON.parse(sessionStorage.getItem('shotlog.fillAnchor')||'null'); } catch {}+ if (back && back.channel===name && Date.now()-back.t < 120000) { fillAnchor=back; restoreScroll(); }+ else feed.scrollTop=0; renderTabs(); } // Boot: seed tabs from the broker's channel overview, then activate.