Archilyzer · Source

archilyzer

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

commit d4ebf3b0779c0ea84ce63681cb58dbec5d46b7b6
parent 1206a68110122b327ff6723751ca0b3b74e3511a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu,  5 Nov 2026 16:03:15 -0500

umtool: updateVideoEntry above updateTeaser's JSDoc (updateTeaser keeps its types), typed itself

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

Diffstat:
Mumtool/lib/report/manifest.mjs | 21+++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/umtool/lib/report/manifest.mjs b/umtool/lib/report/manifest.mjs @@ -3756,20 +3756,15 @@ export async function flashForward(dir, clipId, spec, { token = null } = {}) { const TEASER_PATCH_KEYS = ["lines", "beat", "dip", "tail", "tailWait"]; /** - * Patch one teaser: its lines, beat, dip, tail and tail wait. A key given as - * null (or "") is removed; a key not given is kept. Checked with the build's - * validateTeaser (which checks the dip too) against the patched entry. + * SET a video entry's knobs (video-entry.mjs applyVideoPatch: from, to, fit, + * audio.bass, audio.gain, enter, holdLast, deck, title, note, src), checked as + * the build checks it; one undo point. * * @param {string} dir * @param {string} id * @param {Record<string, unknown>} patch * @param {{ token?: string | null, at?: number | null }} [opts] */ -/** - * SET a video entry's knobs (video-entry.mjs applyVideoPatch: from, to, fit, - * audio.bass, audio.gain, enter, holdLast, deck, title, note, src), checked as - * the build checks it; one undo point. - */ export async function updateVideoEntry(dir, id, patch, { token = null, at = null } = {}) { if (!patch || typeof patch !== "object" || !Object.keys(patch).length) throw new Error("nothing to change"); return structural(dir, "video", token, (m) => { @@ -3784,6 +3779,16 @@ export async function updateVideoEntry(dir, id, patch, { token = null, at = null }); } +/** + * Patch one teaser: its lines, beat, dip, tail and tail wait. A key given as + * null (or "") is removed; a key not given is kept. Checked with the build's + * validateTeaser (which checks the dip too) against the patched entry. + * + * @param {string} dir + * @param {string} id + * @param {Record<string, unknown>} patch + * @param {{ token?: string | null, at?: number | null }} [opts] + */ export async function updateTeaser(dir, id, patch, { token = null, at = null } = {}) { if (!patch || typeof patch !== "object" || Array.isArray(patch)) throw new Error("a teaser patch is an object"); const keys = Object.keys(patch);