Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 45a543cd28bad023add90d3c5863a0e7a8ef76a8
parent 2290472aeb62e7c9adfd7cb88666a23fcd38dc5b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  2 Nov 2026 19:53:01 -0500

docs: capture-posts' avatars -- the ops help (COMMANDS.md regenerated), OPERATING's recipe and the store layout, the changelog

OPERATING.md, "Fetch and capture posts": the exact call to capture one
author's avatar (one page load) and the posts-media/_avatars/ layout.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
MCOMMANDS.md | 2+-
MOPERATING.md | 21+++++++++++++++++++++
Meditor/CHANGELOG.md | 1+
Mscripts/archilyzer-ops.mjs | 12++++++++++--
4 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/COMMANDS.md b/COMMANDS.md @@ -146,7 +146,7 @@ Drives a running editor over HTTP (`/api/ops/*`, the same actions its pages run) | `retry-bucket` | retry-bucket runs one bucket of a channel's report as one job, past any lane hold: {"slug", "bucket"}. "ids": \[...\] runs only those videos, and every one must be in the bucket (a stray id is refused, named); a job run with ids is not replayable, as a checkbox selection in the UI is not. "corruptFullSource" downloads again: the kept file is set aside, and comes back if the download fails; malformed again, the longer decode stays. A record that stores an Odysee media URL is read from that URL (as "only") until 2 such downloads are on record, then from the page. "storedUrl": "fallback" \| "only" reads each from the media URL its record stores, as on download-missing (a held platform's retry runs as "only"). "corruptHeldAudio" (held audio the audio audit found damaged) is refetched the same way, with the audio check on; the new file is audited again. | `pnpm ops retry-bucket --json '{"slug":"demo-odysee","bucket":"corruptHeldAudio"}' --wait` | | `transcribe-bucket` | transcribe-bucket transcribes a channel's "downloaded, not transcribed" bucket on the transcription queue, as the channel page's Transcribe button does: {"slug"}. "ids": \[...\] narrows it the same way as on retry-bucket. | | | `fetch-posts` | fetch-posts fetches a social channel's new posts: {"slug"}. "full": true re-walks the whole timeline; "older": true walks back from the oldest archived post through search (X; needs a login), saving its place for the next run, down to "floor": "YYYY-MM-DD" when given; "from": "YYYY-MM-DD" starts the walk afresh there, replacing its saved place (and a "complete") — for a gap above one surviving old post. "limit": N caps the posts one run reads; "pages": N caps the pages (a forum thread: its latest N pages). A forum thread keeps two positions: a run catches up from the last page, then continues the history where it stopped; "full": true is its full re-walk (every page, edits updated). "retryOnBlock": {"minutes": 30, "max": 12} (or true: the forum default in settings) waits out a challenge or refusal page and runs again, max tries in all. "full" and "older" together are refused. An older walk over an account that shows no posts (nothing archived, and the last timeline fetch read none) is refused unless "force": true. A drained fetch stops at its next resume point and the next run resumes. | | -| `capture-posts` | capture-posts captures archived posts of a social channel (X, forum, Bluesky): a screenshot of each through the connected X profile (a forum thread: its host's forum profile; Bluesky: a headless browser with no login on bsky.app, the shot cropped to the post), and its attached media through gallery-dl (a forum thread: the same profile; Bluesky: its images from the CDN), into the channel's posts-media/&lt;id&gt;/: {"slug", "ids": \[...\]}. Every id must be in the channel's posts archive. "shots": false or "media": false skips that half; posts already captured are skipped unless "force": true. A post that links to an X Article also gets the article (article.json, .md, .png and its images) unless "articles": false; both halves off with "articles": true reads only the articles. "thread": true (X; default the channel's postCaptureThread) also shoots each reply with the post it answers above it, as shot-thread.png beside shot.png (a post shot before gets only that); the replied-to author's avatar, name and handle are blurred unless verified or the reply's own. "threadRedact": false turns the blur off, true blurs any author; {"&lt;id&gt;": false} sets it per post. Paced like a post fetch, on its queue. | | +| `capture-posts` | capture-posts captures archived posts of a social channel (X, forum, Bluesky): a screenshot of each through the connected X profile (a forum thread: its host's forum profile; Bluesky: a headless browser with no login on bsky.app, the shot cropped to the post), and its attached media through gallery-dl (a forum thread: the same profile; Bluesky: its images from the CDN), into the channel's posts-media/&lt;id&gt;/: {"slug", "ids": \[...\]}. Every id must be in the channel's posts archive. "shots": false or "media": false skips that half; posts already captured are skipped unless "force": true. A post that links to an X Article also gets the article (article.json, .md, .png and its images) unless "articles": false; both halves off with "articles": true reads only the articles. "thread": true (X; default the channel's postCaptureThread) also shoots each reply with the post it answers above it, as shot-thread.png beside shot.png (a post shot before gets only that); the replied-to author's avatar, name and handle are blurred unless verified or the reply's own. "threadRedact": false turns the blur off, true blurs any author; {"&lt;id&gt;": false} sets it per post. X also keeps each author's avatar, read off the page the shot loads (with "thread", the replied-to and quoted authors' too), in posts-media/\_avatars/&lt;handle&gt;.&lt;ext&gt; + avatars.json; an author already stored is not fetched again unless "force". "avatars": false turns that off. "avatarsOnly": true (X) loads ONE post page per distinct archived author for the avatars alone -- no shot, media, article or thread shot, no capture record, no availability: one author's avatar is {"slug", "ids": \["&lt;one of their post ids&gt;"\], "avatarsOnly": true}. Paced like a post fetch, on its queue. | | | `publish` | publish runs publish stages on the editor's publish queue, one at a time, under one run id: {"verb": …}. "index" updates the index; "build" builds "siteId"/"siteIds" (forced; the index first when stale; "runner": "docker" builds every site in containers; "allowMissingMedia": true lets a report citation with no prepared media through compose, local builds only); "deploy" ships their built bundles (production, "preview": "&lt;branch&gt;", or "to": "local"; "force" redeploys a bundle already shipped there); "hub" / "homepage" build them, {"deploy": true} deploys after; "now" is Publish now (the stale index, then each policy target); "stale" builds every stale site. The answer lists every job ({target, kind, jobId}) and --wait follows them all. A site never built is refused: "no build of &lt;id&gt; in &lt;dir&gt; — archilyzer publish build &lt;id&gt;". `get publish` is the status. | | | `build-index`, `build-site`, `build-deploy`, `deploy-site`, `build-hub`, `deploy-hub`, `build-homepage`, `deploy-homepage` | build-index, build-site, build-deploy, deploy-site, build-hub, deploy-hub, build-homepage and deploy-homepage are publish's aliases, with their old bodies and answers ("skipData" is accepted and ignored). | `pnpm ops build-deploy --json '{"siteIds":["anilyzer","jeralyzer"]}' --wait`<br>`pnpm ops build-site --json '{"siteId":"anilyzer"}' --wait`<br>`pnpm ops deploy-site --json '{"siteId":"anilyzer","preview":"tags-exclude"}' --wait`<br>`pnpm ops build-hub --wait`<br>`pnpm ops build-hub --json '{"deploy":true}' --wait`<br>`pnpm ops deploy-hub --wait`<br>`pnpm ops build-homepage --json '{"deploy":true}' --wait`<br>`pnpm ops deploy-homepage --json '{"preview":"refresh"}' --wait` | | `build-site`, `build-deploy`, `deploy-site` | build-site, build-deploy and deploy-site all take "siteId" (one) or "siteIds" (a list). | | diff --git a/OPERATING.md b/OPERATING.md @@ -408,6 +408,27 @@ pnpm ops capture-posts --json '{"slug":"example-x","ids":["<postId>"]}' --wait pnpm ops capture-posts --json '{"slug":"example-x-replies","ids":["<postId>"],"thread":true}' --wait umtool posts set <project> <postId> thread=on ``` +- **Authors' avatars (X).** A post card draws its author's face from the channel's avatar store, not an initial + letter. Every X capture that loads a post page reads the author's avatar off it (with `"thread": true`, the + replied-to and quoted authors' too) and fetches it at 400×400 through the same browser context — no extra page + load; once per author per run, and an author already stored is not fetched again unless `"force": true`. + `"avatars": false` turns that off. For the avatars alone, `"avatarsOnly": true` loads ONE post page per distinct + archived author (the first id of each; one already stored costs no load unless `"force"`), paced like any X + contact, and writes nothing else — no shot, media, article, thread shot, `capture.json` or availability. One + author's avatar is one page load: + + ```sh + pnpm ops capture-posts --json '{"slug":"ObviousRises-x","ids":["<one of his post ids>"],"avatarsOnly":true}' --wait + ``` + + The store, beside the post ids (never one of them): + + ``` + channels/<slug>/posts-media/_avatars/<handle>.<ext> # jpg | png | webp | gif + channels/<slug>/posts-media/_avatars/avatars.json # { "<handle>": { "file", "url" (the _400x400), "capturedAt", "postId" } } + ``` + + Keys keep the handle's case as X prints it; lookups ignore case. X's default "egg" picture is not stored. - A **forum thread** keeps two positions (`posts-state.json` `forum`): **Fetch posts** catches up from the last page to the newest held post, then continues the history from where it stopped, down to page 1 — `"pages": N` caps the pages that hold anything new (an all-held page is stepped past uncounted), and a capped catch-up never moves diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **X post captures keep the authors' avatars.** A post card showed an initial letter because the posts archive keeps no profile pictures. `capture-posts` on an X channel now reads the post author's avatar off the page it already loads for the shot (with `"thread": true`, the replied-to and quoted authors' too) and saves it at 400×400, fetched through the same browser context with no extra page load, into `posts-media/_avatars/<handle>.<ext>` and `avatars.json` — once per author, an author already stored skipped unless `"force": true`; `"avatars": false` turns it off. `"avatarsOnly": true` loads one post page per distinct archived author for the avatars alone and writes nothing else (no shot, media, record or availability): `pnpm ops capture-posts --json '{"slug":"<x-channel>","ids":["<one post id>"],"avatarsOnly":true}' --wait`. X's default picture is not stored. Needs a restart of the editor. - **A research case can be verified, its leads decided and its evidence captured, all in umtool.** The case pipeline page gains **7 Verify**, **8 Leads** and **10 Evidence**. **Verify** shows each finding's moment in every caption track side by side — the original audio's captions beside the uploaded `en` ones, the quote's words lit where they land and "holds the quote" or "4 of 5 words" on each — and an **Audio check** that has the editor transcribe the window on a local worker (its held media, or a clip fetched through it; **Run even while transcription is paused** for a pause-all) and diffs what was heard with the quote ("Heard 9 of 9 words"). A finding is marked Verified, Corrected, Disputed, Unverified or Quarantined (one first seen on a forum says so); **Correct by hand** keeps the reader's words ("The reader wrote: …"). **Leads** lists the accounts and pages a forum or posts channel links most, counted by post, with the posts around each on demand; **Never archive** makes the lead's name one of the case's private names — stored as its hash, never as text, and withheld from then on — and **Archive** creates its channel through the editor on no site and starts its first fetch (**Older walk** after). **Evidence** takes Wayback captures of a list of pages at chosen dates (a page the Wayback Machine will not show is the row "excluded from the Wayback Machine (cause unknown)") and a forum post's attachments and screenshot, shown everywhere as "forum attachment, post #N, unverified", attached to the findings they back and listed in the exported report's Evidence section. Any quote, note or role typed by hand that holds one of the case's private names is refused by the privacy gate, with the row and a count, never the name. Needs a restart of umtool. - **Newgrounds pages are read whole.** A Wayback capture of a 2014 Newgrounds user page used to come out as one small block of it: the page keeps its profile, stats, links and news in many small boxes the generic extractor dropped. A user page (`<user>.newgrounds.com/`) is now read box by box — "Profile", "Location: …", "Joined on: …", its links — and an art page or a movie page is one record per work (its title, author, comments, image or file, tags, credits and date) that later captures update. A channel imported before this is put right by **Re-extract** (`reextract-pages`), from the captures it already keeps; nothing is fetched. Needs a restart of the editor. - **A Wayback scan goes on past a page the archive excludes.** A target the Wayback Machine answers 403 for stopped the whole `wayback-scan` as an error. Now that target is marked "excluded from the Wayback Machine (cause unknown)" on the Captures tab (and `refusal: "excluded"` in the scan's result), it is done for this pass, and the next target is scanned. A new pass asks again. Needs a restart of the editor. diff --git a/scripts/archilyzer-ops.mjs b/scripts/archilyzer-ops.mjs @@ -1535,8 +1535,16 @@ export function usage() { ' shot-thread.png beside shot.png (a post shot before gets only that);', ' the replied-to author\'s avatar, name and handle are blurred unless', ' verified or the reply\'s own. "threadRedact": false turns the blur off,', - ' true blurs any author; {"<id>": false} sets it per post. Paced like a', - ' post fetch, on its queue.', + ' true blurs any author; {"<id>": false} sets it per post. X also keeps', + ' each author\'s avatar, read off the page the shot loads (with "thread",', + ' the replied-to and quoted authors\' too), in', + ' posts-media/_avatars/<handle>.<ext> + avatars.json; an author already', + ' stored is not fetched again unless "force". "avatars": false turns that', + ' off. "avatarsOnly": true (X) loads ONE post page per distinct archived', + ' author for the avatars alone -- no shot, media, article or thread shot,', + ' no capture record, no availability: one author\'s avatar is', + ' {"slug", "ids": ["<one of their post ids>"], "avatarsOnly": true}.', + ' Paced like a post fetch, on its queue.', "", 'persist-videos saves specific videos, across channels, to the saved-video', ' store: {"items": [{"slug", "id"}, ...]}. "format": "original" |',