Archilyzer · Source

archilyzer

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

commit 8dd2f12ad57664254265dca07dbbb1e60c1f17da
parent b2426a8a6ef031b148020ae79235a3ef074c1e08
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 17 Oct 2026 17:20:27 -0400

Merge r33/phrase-fetchpad: a phrase seed's fetchPad is 0

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

Diffstat:
Mumtool/docs/cli.md | 2+-
Mumtool/lib/projects/scaffold.mjs | 4++++
Mumtool/lib/scaffold-phrase.test.mjs | 1+
3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -189,7 +189,7 @@ its copy says it too, left to that copy's own hit; the same words twice within three days (a stream and its clip upload) are one clip, the others named in its note. A context matching `--exclude` is left out, and a caption speaker change (`>>`) is noted for a voice check. The clips are chronological, `s01…`, the cut -on the phrase's cues and the window 2.5 s wider each side; `onscreen.title` is +on the phrase's cues and the window 2.5 s wider each side (so `render.fetchPad` is 0: the window is what the editor fetches); `onscreen.title` is the phrase as said, `subtitle` the date, and `montage: {n, date, platform, match, speakerCheck}` feeds the montage styles. The scan's whole answer is `phrase-scan.json` beside the manifest. The new-project form offers it as the diff --git a/umtool/lib/projects/scaffold.mjs b/umtool/lib/projects/scaffold.mjs @@ -326,6 +326,10 @@ export async function scaffoldReportVideo({ root, slug, title, from = null, site const scan = await phraseScan({ channelsDir, channels: chans, prefer: prefer ? String(prefer).trim() : null, phrase: String(phrase), exclude: exclude || null }); doc.timeline = instancesAsClips(scan.instances); doc.render.transition = 0; + // The window already carries its margin (2.5 s each side), and the editor + // fetches exactly the window: a fetch pad on top would ask for seconds + // nobody fetched, and every clip would read as missing. + doc.render.fetchPad = 0; if (prefer) doc.provenance.channelSlug = String(prefer).trim(); else if (chans.length === 1) doc.provenance.channelSlug = chans[0]; seeded = doc.timeline.length; diff --git a/umtool/lib/scaffold-phrase.test.mjs b/umtool/lib/scaffold-phrase.test.mjs @@ -38,6 +38,7 @@ test("--seed phrase: chronological clips cut from the preferred copy, the scan b ]); assert.equal(doc.provenance.channelSlug, "synth-rumble"); assert.equal(doc.render.transition, 0); + assert.equal(doc.render.fetchPad, 0, "the window is the fetched extent"); const scan = JSON.parse(await readFile(path.join(r.dir, "phrase-scan.json"), "utf8")); assert.equal(scan.instances.length, 2); assert.equal(scan.hits, 3);