← Commit history
README.md+7−7@@ -3,7 +3,7 @@ Screenshot any Adom Wiki page in **light mode** and show it to the human via [adom-shotlog](https://wiki.adom.inc/adom/adom-shotlog). -The wiki is dark-only by design — `color-scheme: dark`, no theme toggle, no+The wiki is dark-only by design: `color-scheme: dark`, no theme toggle, no light palette anywhere. Sometimes you still want a light rendering: for a doc, a slide, print, or just preference. This skill synthesizes one that reads like a real light theme.@@ -23,7 +23,7 @@ The same page, as the wiki serves it and as this tool captures it: 1. **Logs in as you.** Mints a single-use `adom-wiki auth login` magic link (60s expiry, one per attempt) and opens it in a headless Chrome inside the- container — so **private pages work**. No stored browser profile, no+ container, so **private pages work**. No stored browser profile, no long-lived cookie. 2. **Renders the page** at 1920x1200 (configurable), waits for the app to settle.@@ -33,9 +33,9 @@ The same page, as the wiki serves it and as this tool captures it: 4. **Proves it worked**: decodes the PNG and computes mean luminance. A light capture scores ~195/255; if the page still reads dark (markup drift), you get a loud WARN instead of a silently-wrong image.-5. **Saves two shots** — top of page and full page (height-capped, default- 8000px) — and **injects them into adom-shotlog**, where the broker surfaces- the channel to the human and reports whether a viewer is actually on-screen.+5. **Saves two shots**, top of page and full page (height-capped, default+ 8000px), and **injects them into adom-shotlog**, where the broker surfaces+ the channel to the human and reports whether a viewer is on-screen. ## Hardening @@ -43,7 +43,7 @@ The same page, as the wiki serves it and as this tool captures it: blocks non-wiki subresource requests at the network layer. The logged-in session cannot be carried to another site. - **Self-healing deps**: `puppeteer-core` auto-installs into the skill package- on first run (`--no-save` — the wiki `package.json` dependencies field, which+ on first run (`--no-save`: the wiki `package.json` dependencies field, which holds wiki refs, is never touched). - **Chrome discovery**: puppeteer cache (newest version first), then system binaries, then a `WIKI_LIGHT_CHROME` override.@@ -69,5 +69,5 @@ The same page, as the wiki serves it and as this tool captures it: Node 18+, a Chrome/Chromium on the machine (any puppeteer-cache or system install; the tool finds it), and the `adom-wiki` CLI for auth. `adom-shotlog`-is optional but strongly recommended — without it the shots only land on disk,+is optional but strongly recommended: without it the shots only land on disk, where a human in a text thread will never see them.
package.json+5−5@@ -2,7 +2,7 @@ "slug": "wiki-light-mode", "title": "Wiki Light Mode", "type": "skill",- "version": "1.0.0",+ "version": "1.0.1", "description": "Screenshot any Adom Wiki page in synthesized light mode and show it to the human via adom-shotlog. Logs a headless Chrome in as the user (single-use magic link, private pages included), applies an invert overlay that keeps images true-color, pixel-verifies the shot is really light, and injects top + full-page captures into shotlog.", "license": "MIT", "tags": [@@ -43,8 +43,7 @@ "package.json", "install.sh", "uninstall.sh",- "bin/**",- "docs/**"+ "bin/**" ], "scripts": { "install": "./install.sh",@@ -52,5 +51,6 @@ }, "hero": { "path": "docs/hero.png"- }-}+ },+ "visibility": "public"+}
page.json+4−4@@ -2,7 +2,7 @@ "slug": "wiki-light-mode", "title": "Wiki Light Mode", "type": "skill",- "version": "1.0.0",+ "version": "1.0.1", "description": "Screenshot any Adom Wiki page in synthesized light mode and show it to the human via adom-shotlog. Logs a headless Chrome in as the user (single-use magic link, private pages included), applies an invert overlay that keeps images true-color, pixel-verifies the shot is really light, and injects top + full-page captures into shotlog.", "license": "MIT", "tags": [@@ -43,8 +43,7 @@ "package.json", "install.sh", "uninstall.sh",- "bin/**",- "docs/**"+ "bin/**" ], "scripts": { "install": "./install.sh",@@ -58,5 +57,6 @@ "author": { "name": "Drew Owens", "email": "[email protected]"- }+ },+ "visibility": "public" }