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:
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);