Archilyzer · Source

archilyzer

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

commit f62cd28683d985991b24b8112516efc318bf6cdc
parent 02225e9af857a6501fcfa948742dac44fe3d6ce8
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 17 Nov 2026 16:33:04 -0500

reads-find.spec: hash what is drawn with the reading pin's drawn(), never the read's timing

A picked re-read of other length moves the item's schedule (postItemPlan), not what its card draws;
the spec now hashes the cards as the reading pin does (plain, following, blocks and hidden
paragraphs, tile modes, screens).

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mumtool/e2e/reads-find.spec.ts | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/umtool/e2e/reads-find.spec.ts b/umtool/e2e/reads-find.spec.ts @@ -29,15 +29,15 @@ type Tts = { route: string; text?: string; voice?: string }; const ttsAsks = () => (existsSync(STUB_LOG) ? (JSON.parse(readFileSync(STUB_LOG, "utf8")) as Tts[]) : []).filter((r) => r.route === "tts"); const sha = (s: string) => createHash("sha1").update(s).digest("hex"); const files = (d: string) => (existsSync(d) ? readdirSync(d, { recursive: true }).map(String).sort() : []); -/** Every post item's card as drawn (plain and following) and its plan, and every other entry but its narration. */ +/** + * What the cut DRAWS: each post item's card as the reading pin hashes it (plain, following, its blocks and hidden + * paragraphs, its tile modes, its screens -- never its read's timing, which a new take changes), and every other entry + * but its narration. + */ const drawn = async () => { - const { postCardHtml, postItemPlan } = (await import("../report-to-video/post-item.mjs")) as unknown as { - postCardHtml: (e: unknown, o: Record<string, unknown>) => string; postItemPlan: (e: unknown, r?: unknown) => unknown; - }; - const m = JSON.parse(readFileSync(MANIFEST, "utf8")) as { render?: unknown; timeline: Array<Record<string, unknown>> }; - return m.timeline.map((e) => (e.type === "post" - ? sha(JSON.stringify([postCardHtml(e, { width: 1080, height: 1350 }), postCardHtml(e, { width: 1080, height: 1350, follow: true }), postItemPlan(e, m.render)])) - : sha(JSON.stringify(Object.fromEntries(Object.entries(e).filter(([k]) => k !== "narration")))))); + const { drawn: drawnOf } = (await import("../report-to-video/post-reading-pin.fixtures.mjs")) as unknown as { drawn: (e: unknown) => Record<string, string> }; + const m = JSON.parse(readFileSync(MANIFEST, "utf8")) as { timeline: Array<Record<string, unknown>> }; + return m.timeline.map((e) => (e.type === "post" ? drawnOf(e) : sha(JSON.stringify(Object.fromEntries(Object.entries(e).filter(([k]) => k !== "narration")))))); }; const pristine = { takes: [] as string[], readings: [] as string[] };