@aicopycoders/exodus 2026.11.1200-beta.25 → 2026.11.1200-beta.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -386,6 +386,12 @@ export interface CutSync {
386
386
  /** COP-357, fps30: the frame rate a film with the phone look is delivered at, by repeated frames. */
387
387
  export const DELIVERY_FPS: number;
388
388
 
389
+ /** The finished cut's frames on its own 24 fps clock: the joined picture's, or round(frames / speed) after a speed step. */
390
+ export function filmFrames(pictureSec: number, speed?: number | null): number;
391
+
392
+ /** #4817: the frames a film delivered at `deliverFps` has, so its picture runs as long as its sound (filmFrames after a speed step, else pictureSec), rounded up. */
393
+ export function deliveredFrames(pictureSec: number, speed: number | null, deliverFps: number): number;
394
+
389
395
  /** The bars checkVerdict holds a finished cut to. */
390
396
  export const CHECK_BARS: {
391
397
  voiceOverBedDb: number;
@@ -306,6 +306,22 @@ function wholeLinesOf(raw) {
306
306
  * motion is read back on FPS, and its caption check reads each caption on the frame the delivered file shows it on.
307
307
  */
308
308
  export const DELIVERY_FPS = 30;
309
+
310
+ /** The finished cut's frames on FPS: the joined picture's, or round(frames / speed) after a speed step, as its sound ends. */
311
+ export function filmFrames(pictureSec, speed = null) {
312
+ const frames = Math.round(pictureSec * FPS);
313
+ return speed ? Math.round(frames / speed + 1e-9) : frames;
314
+ }
315
+
316
+ /**
317
+ * #4817: the frames a film delivered at `deliverFps` has, so its picture runs as long as its sound: after a speed step
318
+ * the sound ends on filmFrames on FPS, with none it ends on pictureSec itself. Rounded up to a whole delivered frame, so
319
+ * the picture never ends before the sound, and never by a whole frame after it.
320
+ */
321
+ export function deliveredFrames(pictureSec, speed, deliverFps) {
322
+ const soundSec = speed ? filmFrames(pictureSec, speed) / FPS : Number(pictureSec.toFixed(6));
323
+ return Math.ceil(soundSec * deliverFps - 1e-9);
324
+ }
309
325
  export const LENS_SMUDGE = {
310
326
  /** Where the side is read: this far into the cut. */
311
327
  readAtSec: 1,
@@ -4905,8 +4921,11 @@ export function buildFfmpegArgs(timeline, { resolve, music, out, finish = null,
4905
4921
  videoLabel = "burned";
4906
4922
  }
4907
4923
  // COP-357, fps30: the finished picture, words and all, at the delivered rate by repeated frames; the clock above is FPS.
4924
+ // #4817: it ends on exactly the frames its sound needs (deliveredFrames), its last frame repeated when the graph
4925
+ // ends a frame early, as Debian's ffmpeg 5.1 (the worker's) does after the lens smudge's maskedmerge.
4908
4926
  if (finish?.deliverFps) {
4909
- filters.push(`[${videoLabel}]fps=${finish.deliverFps}[delivered]`);
4927
+ const frames = deliveredFrames(pictureSec, speed, finish.deliverFps);
4928
+ filters.push(`[${videoLabel}]fps=${finish.deliverFps},tpad=stop_mode=clone:stop=-1,trim=end_frame=${frames}[delivered]`);
4910
4929
  videoLabel = "delivered";
4911
4930
  }
4912
4931
 
@@ -5016,7 +5035,7 @@ export function buildFfmpegArgs(timeline, { resolve, music, out, finish = null,
5016
5035
  // COP-300: the faster sound padded or cut to the faster picture's own length, as each segment's is to its
5017
5036
  // picture's: `fps` ends the picture on round(frames / speed) frames, and atempo runs on past it. The cut can land
5018
5037
  // in a word's tail, so the last END_FADE_SAMPLES fade out, as each segment's edges do, and the end never clicks.
5019
- const end = Math.round(Math.round(pictureSec * FPS) / speed + 1e-9) * SAMPLES_PER_FRAME;
5038
+ const end = filmFrames(pictureSec, speed) * SAMPLES_PER_FRAME;
5020
5039
  filters.push(`[mix]atempo=${speed},apad,atrim=end_sample=${end},afade=t=out:ss=${end - END_FADE_SAMPLES}:ns=${END_FADE_SAMPLES}[mixfaster]`);
5021
5040
  audioLabel = "mixfaster";
5022
5041
  }
@@ -4273,23 +4273,14 @@ export async function statusFlow(runId, json, deps) {
4273
4273
  lines.push(` picture: ${row.frame.lastRedo.label}`);
4274
4274
  for (const found of row.clip?.findings ?? []) {
4275
4275
  const finding = choiceMade(row.clip) ? { ...found, detail: heldChoiceMade(found.detail) } : found;
4276
- if (ONE_TAKE_PLAIN_FINDING_CODES.includes(finding.code)) {
4277
- if (finding.code === ONE_TAKE_LABEL_ALL_FLIPPED_CODE) {
4278
- if (allFlippedSaid)
4279
- continue;
4280
- allFlippedSaid = true;
4281
- }
4282
- lines.push(` ${finding.detail}`);
4283
- continue;
4284
- }
4285
- lines.push(` ${finding.code} (${finding.severity}): ${finding.detail}`);
4286
- const judgeSeverity = finding.judgeSeverity ?? finding.severity;
4287
- if (finding.judgeDetail) {
4288
- lines.push(` checker said (${judgeSeverity}): ${finding.judgeDetail}`);
4289
- }
4290
- else if (judgeSeverity !== finding.severity) {
4291
- lines.push(` checker rated it ${judgeSeverity}`);
4276
+ if (finding.code === ONE_TAKE_LABEL_ALL_FLIPPED_CODE) {
4277
+ if (allFlippedSaid)
4278
+ continue;
4279
+ allFlippedSaid = true;
4292
4280
  }
4281
+ lines.push(` ${finding.detail}`);
4282
+ if (finding.judgeDetail)
4283
+ lines.push(` checker said: ${finding.judgeDetail}`);
4293
4284
  }
4294
4285
  if (row.clip?.error)
4295
4286
  lines.push(` ${row.clip.error}`);
@@ -4309,7 +4300,7 @@ export async function statusFlow(runId, json, deps) {
4309
4300
  lines.push(" word timings: measured on the original voice (close, not frame-exact)");
4310
4301
  }
4311
4302
  for (const finding of row.frame?.findings ?? []) {
4312
- lines.push(` picture: ${finding.code} (${finding.severity}): ${finding.detail}`);
4303
+ lines.push(` picture: ${finding.detail}`);
4313
4304
  }
4314
4305
  }
4315
4306
  if (outputsOfNodeKind(run, "voiceover").some(isNarrationMaster)) {
@@ -4368,7 +4359,6 @@ export const ONE_TAKE_HEARD_AS_CODE = "one-take-words-heard-as";
4368
4359
  export const ONE_TAKE_LABEL_CODES = ["one-take-label-flipped", "one-take-label-unsure", "one-take-label-held", "one-take-label-flipped-all"];
4369
4360
  const ONE_TAKE_LABEL_ALL_FLIPPED_CODE = "one-take-label-flipped-all";
4370
4361
  export const ONE_TAKE_SAID_WRONG_CODES = ["one-take-said-wrong", "one-take-second-listen-failed"];
4371
- const ONE_TAKE_PLAIN_FINDING_CODES = [ONE_TAKE_HEARD_AS_CODE, ...ONE_TAKE_LABEL_CODES, ...ONE_TAKE_SAID_WRONG_CODES];
4372
4362
  const DIRECTOR_STATUS_WORDS = {
4373
4363
  reviewing: "Watching this run",
4374
4364
  waiting: "Waiting for redos to finish",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicopycoders/exodus",
3
- "version": "2026.11.1200-beta.25",
3
+ "version": "2026.11.1200-beta.26",
4
4
  "description": "CLI + Claude Code skills for the Copycoders Exodus ad pipeline",
5
5
  "repository": {
6
6
  "type": "git",