@aicopycoders/exodus 2026.11.1200-beta.21 → 2026.11.1200-beta.22

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.
@@ -1507,7 +1507,12 @@ CLI words it the way the run page does. On their own brands they can:
1507
1507
  to watch it on.
1508
1508
  - `video keep <runId> --scene <n>`: keeps a held scene's clip as it is, as
1509
1509
  "Use scene N as-is" on the video's page does, after their yes. It orders
1510
- nothing; keeping the last held scene starts the cut.
1510
+ nothing; keeping the last held scene starts the cut. `status`, `wait` and a
1511
+ refused `approve` name every scene waiting on the member, each with what a
1512
+ check found, even while other scenes still film ("These scenes need you
1513
+ before your video can be finished:", `waitingScenes` in `--json`). Show
1514
+ those lines word for word: keep a scene only on their yes, and a remake is
1515
+ Try again on the video's page, which shows its price first.
1511
1516
  - `video swipe`: all of "Swiping a video ad" except `swipe start --title`,
1512
1517
  which is refused with one sentence naming it. The run it starts answers the
1513
1518
  way start's does.
@@ -30,8 +30,16 @@ export interface CustomerRunScene {
30
30
  productNote?: string;
31
31
  clip?: {
32
32
  speech?: SpeechSummary;
33
+ redoEstimateUsd?: number;
34
+ redoEstimateMaxUsd?: number;
33
35
  } | null;
34
36
  }
37
+ export type CustomerHeldScene = {
38
+ sceneIndex: number;
39
+ sentence: string;
40
+ take: boolean;
41
+ unfilmed?: true;
42
+ };
35
43
  export type CustomerStopReason = {
36
44
  kind: "out-of-credits";
37
45
  } | {
@@ -82,12 +90,8 @@ export interface CustomerRun {
82
90
  stopReason: CustomerStopReason | null;
83
91
  detailsPath: string | null;
84
92
  cutHolds?: string[];
85
- cutHeldScenes?: Array<{
86
- sceneIndex: number;
87
- sentence: string;
88
- take: boolean;
89
- unfilmed?: true;
90
- }>;
93
+ cutHeldScenes?: CustomerHeldScene[];
94
+ waitingScenes?: CustomerHeldScene[];
91
95
  spend?: {
92
96
  spentUsd: number;
93
97
  estimateUsd: number | null;
@@ -125,8 +129,10 @@ export declare function spendAskLines(run: {
125
129
  sentence?: string;
126
130
  };
127
131
  }, runId: string): string[];
128
- export declare const SPEND_STOPPED_LINE = "You stopped this video at its estimate. Nothing more will be filmed.";
132
+ export declare const SPEND_STOPPED_LINE = "You stopped this video at its estimate. The app films nothing more on its own.";
129
133
  export declare function customerCutHeld(run: CustomerRun): boolean;
134
+ export declare function waitingSceneLines(run: CustomerRun, page: string): string[];
135
+ export declare function approveWaitingLines(run: CustomerRun, page: string): string[];
130
136
  export interface ScriptTidied {
131
137
  setAside: string[];
132
138
  added: {
@@ -24,7 +24,7 @@ export function spendAskLines(run, runId) {
24
24
  return [run.spendWentOn.sentence];
25
25
  return [];
26
26
  }
27
- export const SPEND_STOPPED_LINE = "You stopped this video at its estimate. Nothing more will be filmed.";
27
+ export const SPEND_STOPPED_LINE = "You stopped this video at its estimate. The app films nothing more on its own.";
28
28
  export function customerCutHeld(run) {
29
29
  return (run.cutHolds?.length ?? 0) > 0;
30
30
  }
@@ -36,21 +36,59 @@ function heldLines(run, page) {
36
36
  if (!scenes?.length) {
37
37
  return [head, ...holds.map((hold) => ` ${hold}`), `${one ? "Make it again" : "Make each one again"}, or keep it as it is, on the video's page: ${page}`];
38
38
  }
39
+ return [head, ...heldSceneChoiceLines(run, scenes, page)];
40
+ }
41
+ export function waitingSceneLines(run, page) {
42
+ const scenes = run.waitingScenes;
43
+ if (!scenes?.length || customerCutHeld(run))
44
+ return [];
45
+ return [
46
+ `${scenes.length === 1 ? "This scene needs" : "These scenes need"} you before your video can be finished:`,
47
+ ...heldSceneChoiceLines(run, scenes, page),
48
+ ];
49
+ }
50
+ export function approveWaitingLines(run, page) {
51
+ const scenes = run.cutHeldScenes?.length ? run.cutHeldScenes : run.waitingScenes;
52
+ if (!scenes?.length)
53
+ return [];
54
+ const price = tryAgainPrice(run, scenes.filter((s) => !s.take).map((s) => s.sceneIndex));
55
+ return [
56
+ ...scenes.map((s) => ` Scene ${s.sceneIndex}: ${s.sentence}`),
57
+ price ? `On the video's page, Try again costs ${price}: ${page}` : `The video's page: ${page}`,
58
+ ...scenes
59
+ .filter((s) => !s.unfilmed)
60
+ .map((s) => `Keep scene ${s.sceneIndex} as it is: exodus video keep ${run.runId} --scene ${s.sceneIndex}`),
61
+ ];
62
+ }
63
+ function tryAgainPrice(run, sceneIndexes) {
64
+ const prices = sceneIndexes.map((n) => {
65
+ const clip = run.scenes?.find((s) => s.sceneIndex === n)?.clip;
66
+ return typeof clip?.redoEstimateUsd === "number" && typeof clip.redoEstimateMaxUsd === "number"
67
+ ? `$${clip.redoEstimateUsd.toFixed(2)} to $${clip.redoEstimateMaxUsd.toFixed(2)}`
68
+ : null;
69
+ });
70
+ if (prices.length === 0 || prices.some((p) => p === null))
71
+ return "";
72
+ return prices.length === 1 ? prices[0] : prices.map((p, i) => `${p} for scene ${sceneIndexes[i]}`).join(", ");
73
+ }
74
+ function heldSceneChoiceLines(run, scenes, page) {
39
75
  const takes = scenes.filter((s) => s.take);
40
76
  const unfilmed = scenes.filter((s) => s.unfilmed);
41
77
  const faults = scenes.filter((s) => !s.take && !s.unfilmed);
78
+ const inParens = (price) => (price ? ` (${price})` : "");
79
+ const unfilmedPrice = inParens(tryAgainPrice(run, unfilmed.map((s) => s.sceneIndex)));
80
+ const faultPrice = inParens(tryAgainPrice(run, faults.map((s) => s.sceneIndex)));
42
81
  return [
43
- head,
44
82
  ...scenes.map((s) => ` Scene ${s.sceneIndex}: ${s.sentence}`),
45
83
  ...(unfilmed.length > 0
46
- ? [`${unfilmed.length === 1 ? "Film it" : "Film each one"} with Try again on the video's page, which shows the price first: ${page}`]
84
+ ? [`${unfilmed.length === 1 ? "Film it" : "Film each one"} with Try again on the video's page, which shows the price first${unfilmedPrice}: ${page}`]
47
85
  : []),
48
86
  ...takes.map((s) => takes.length === 1
49
87
  ? `Keep it as it is: exodus video keep ${run.runId} --scene ${s.sceneIndex}`
50
88
  : `Keep scene ${s.sceneIndex} as it is: exodus video keep ${run.runId} --scene ${s.sceneIndex}`),
51
89
  ...(faults.length > 0
52
90
  ? [
53
- `${faults.length === 1 ? "Make it again" : "Make each one again"}, or keep it as it is, on the video's page: ${page}`,
91
+ `${faults.length === 1 ? "Make it again" : "Make each one again"} with Try again, or keep it as it is, on the video's page. Try again shows the price first${faultPrice}: ${page}`,
54
92
  ...faults.map((s) => `Or keep ${faults.length === 1 ? "it" : `scene ${s.sceneIndex}`} as it is from here: exodus video keep ${run.runId} --scene ${s.sceneIndex}`),
55
93
  ]
56
94
  : []),
@@ -176,12 +214,12 @@ export function customerStageLines(run, page) {
176
214
  ];
177
215
  switch (run.stage) {
178
216
  case "waiting":
179
- return [waitingSentence(run.waiting)];
217
+ return [waitingSentence(run.waiting), ...waitingSceneLines(run, page)];
180
218
  case "planning":
181
219
  case "drawing":
182
220
  case "filming":
183
221
  case "editing":
184
- return [WORKING_SENTENCE[run.stage]];
222
+ return [WORKING_SENTENCE[run.stage], ...waitingSceneLines(run, page)];
185
223
  case "picking":
186
224
  return ["This video is waiting for its picks: a face, a voice and a room for each part. The team makes them for now."];
187
225
  case "pilot":
@@ -217,7 +255,10 @@ export function customerStageLines(run, page) {
217
255
  ...(run.awaitingSignOff
218
256
  ? [
219
257
  `Your video is ready to watch: ${run.video?.url ?? page}`,
220
- `When you're happy with it, finish it: exodus video approve ${id}`,
258
+ ...waitingSceneLines(run, page),
259
+ waitingSceneLines(run, page).length > 0
260
+ ? `Once each one is answered and you're happy with the video, finish it: exodus video approve ${id}`
261
+ : `When you're happy with it, finish it: exodus video approve ${id}`,
221
262
  ]
222
263
  : [`Your video is ready: ${run.video?.url ?? page}`]),
223
264
  ...speechSummaryLines(run.video?.speech),
@@ -225,7 +266,7 @@ export function customerStageLines(run, page) {
225
266
  ...(run.video?.wordsOff
226
267
  ? ["Some words may not match your script exactly. Watch it through before you post it."]
227
268
  : []),
228
- ...(run.awaitingSignOff ? finalApproveLines(run.template === true) : []),
269
+ ...(run.awaitingSignOff && waitingSceneLines(run, page).length === 0 ? finalApproveLines(run.template === true) : []),
229
270
  `Download the pieces for your own cut: exodus video pull ${id} --out ./video-${id}`,
230
271
  ];
231
272
  case "failed":
@@ -12,7 +12,7 @@ import { scriptApprovalExpiresAt, scriptApprovalNeedsReview } from "../lib/scrip
12
12
  import { ASSET_UPLOAD_POLICY, boardDrawsThePlaceFirst, pauseAheadLine, parseVoicesFlag, } from "./workflow.js";
13
13
  import { HELPER_LEDGER_BASE, ONE_TAKE_BOARD_PLACE_LEDGER_INDEX, SET_OPTION_LEDGER_BASE } from "../lib/helperLedgerBase.js";
14
14
  import { ONE_TAKE_HOLD_CODES } from "../lib/oneTakeHolds.js";
15
- import { customerAnswer, customerRunPage, customerStageIsWorking, finalApproveLines, finalApprovedLines, customerCutHeld, customerStageLines, customerStatusLines, customerStoryboardLines, customerVoicesLines, speechSummaryLines, spendAskLines, onOwnDashboard, } from "./video-customer.js";
15
+ import { customerAnswer, customerRunPage, customerStageIsWorking, finalApproveLines, finalApprovedLines, customerCutHeld, approveWaitingLines, waitingSceneLines, customerStageLines, customerStatusLines, customerStoryboardLines, customerVoicesLines, speechSummaryLines, spendAskLines, onOwnDashboard, } from "./video-customer.js";
16
16
  import { planSwipeCommand, runSwipePlan } from "./video-swipe.js";
17
17
  const VOICE_MODES = ["native", "voice-first"];
18
18
  function joinedOr(items) {
@@ -3965,11 +3965,9 @@ export async function waitFlow(runId, opts, deps) {
3965
3965
  const maxPolls = opts.maxPolls ?? MAX_POLLS;
3966
3966
  const lines = [];
3967
3967
  let lastProgress = null;
3968
+ let shownWaiting = "";
3968
3969
  let redoSeen = false;
3969
- const progress = (line) => {
3970
- if (line === lastProgress)
3971
- return;
3972
- lastProgress = line;
3970
+ const say = (line) => {
3973
3971
  if (opts.json)
3974
3972
  return;
3975
3973
  if (opts.onProgressLine)
@@ -3977,6 +3975,12 @@ export async function waitFlow(runId, opts, deps) {
3977
3975
  else
3978
3976
  lines.push(line);
3979
3977
  };
3978
+ const progress = (line) => {
3979
+ if (line === lastProgress)
3980
+ return;
3981
+ lastProgress = line;
3982
+ say(line);
3983
+ };
3980
3984
  let misses = 0;
3981
3985
  for (let poll = 0; poll < maxPolls; poll++) {
3982
3986
  if (poll > 0 || misses > 0)
@@ -4002,15 +4006,22 @@ export async function waitFlow(runId, opts, deps) {
4002
4006
  if (customer) {
4003
4007
  const page = customerRunPage(deps.dashboardUrl, runId);
4004
4008
  if (customer.spendAsk) {
4009
+ const listed = customerCutHeld(customer) ? customerStageLines(customer, page) : waitingSceneLines(customer, page);
4010
+ const waiting = !customerCutHeld(customer) && listed.join("\n") === shownWaiting ? [] : listed;
4005
4011
  return {
4006
4012
  code: 0,
4007
4013
  lines: opts.json
4008
4014
  ? [JSON.stringify(customer)]
4009
- : [...lines, ...spendAskLines(customer, runId), `Watch it on the dashboard: ${page}`],
4015
+ : [...lines, ...waiting, ...spendAskLines(customer, runId), `Watch it on the dashboard: ${page}`],
4010
4016
  };
4011
4017
  }
4012
4018
  if (customerStageIsWorking(customer.stage) && !customer.templateApproval?.audition) {
4013
4019
  progress(customerStageLines(customer, page)[0]);
4020
+ const waiting = waitingSceneLines(customer, page);
4021
+ if (waiting.join("\n") !== shownWaiting) {
4022
+ shownWaiting = waiting.join("\n");
4023
+ waiting.forEach(say);
4024
+ }
4014
4025
  continue;
4015
4026
  }
4016
4027
  return {
@@ -4632,6 +4643,17 @@ export async function quoteFlow(runId, json, deps, privateExport = false) {
4632
4643
  : `AUTHORIZED RAW REQUEST REVIEW: ${JSON.stringify(privateView)}`] : []),
4633
4644
  ] };
4634
4645
  }
4646
+ const FINISH_STILL_CUTTING = "Your video is still being put together. You can finish it once it's ready.";
4647
+ async function waitingLinesAfterRefusal(runId, deps) {
4648
+ try {
4649
+ const read = await deps.get(`${RUN_PATH}?runId=${encodeURIComponent(runId)}`);
4650
+ const customer = read?.ok ? customerAnswer(read.data) : null;
4651
+ return customer ? approveWaitingLines(customer, customerRunPage(deps.dashboardUrl, runId)) : [];
4652
+ }
4653
+ catch {
4654
+ return [];
4655
+ }
4656
+ }
4635
4657
  async function waitsForFinalApprove(runId, deps) {
4636
4658
  try {
4637
4659
  const read = await deps.get(`${RUN_PATH}?runId=${encodeURIComponent(runId)}`);
@@ -4675,6 +4697,9 @@ export async function approveFlow(runId, opts, deps) {
4675
4697
  if (!opts.json && videoApiError(res).includes("accept the findings")) {
4676
4698
  return { ...refusal, lines: [...refusal.lines, `To go on anyway: exodus video approve ${runId} --accept-findings`] };
4677
4699
  }
4700
+ const waiting = opts.json || staleCut || videoApiError(res) === FINISH_STILL_CUTTING ? [] : await waitingLinesAfterRefusal(runId, deps);
4701
+ if (waiting.length > 0)
4702
+ return { ...refusal, lines: [...refusal.lines, ...waiting] };
4678
4703
  return staleCut
4679
4704
  ? {
4680
4705
  ...refusal,
@@ -5283,8 +5308,9 @@ export async function retryClipFlow(runId, target, { note, voiceFirst = false },
5283
5308
  if (!runRes.ok)
5284
5309
  return errorResult(runRes, json);
5285
5310
  if (customerAnswer(runRes.data)) {
5286
- return adminOnlyResult("Redoing a finished clip is for admins. To redo a scene's picture while your storyboard " +
5287
- `waits for you: exodus video retry-frame ${runId} --scene <n>`, json);
5311
+ return adminOnlyResult("Redoing a finished clip from here is for admins. To redo a scene's picture while your storyboard waits for " +
5312
+ `you, run exodus video retry-frame ${runId} --scene <n>. Where the video's page offers Try again on a scene, ` +
5313
+ `it films that clip again and shows the price first: ${customerRunPage(deps.dashboardUrl, runId)}`, json);
5288
5314
  }
5289
5315
  const run = asVideoRun(runRes.data);
5290
5316
  const itemsRes = await deps.get(`${ITEMS_PATH}?runId=${encodeURIComponent(runId)}`);
@@ -5454,7 +5480,7 @@ export async function spendAnswerFlow(runId, answer, json, deps) {
5454
5480
  ? typeof clearedToUsd === "number"
5455
5481
  ? `Keeping going. It will ask again before it spends past $${clearedToUsd.toFixed(2)}.`
5456
5482
  : "Keeping going."
5457
- : "Stopped at the estimate. Nothing more will be filmed. Every scene with a clip is kept.",
5483
+ : "Stopped at the estimate. The app films nothing more on its own. Every scene with a clip is kept.",
5458
5484
  `See where it stands: exodus video status ${runId}`,
5459
5485
  ],
5460
5486
  };
@@ -5886,6 +5912,7 @@ async function customerPullFlow(run, dir, json, deps) {
5886
5912
  `Every piece is listed in ${manifestPath}.`,
5887
5913
  ...replacedVideoLines(dir, manifest.video, videoBefore, deps),
5888
5914
  ...(manifest.video ? [] : ["The finished video isn't ready yet, so only the scene pieces came down."]),
5915
+ ...customerWaitingNote(run),
5889
5916
  ...(failures.length > 0
5890
5917
  ? [
5891
5918
  "",
@@ -5898,6 +5925,14 @@ async function customerPullFlow(run, dir, json, deps) {
5898
5925
  ],
5899
5926
  };
5900
5927
  }
5928
+ function customerWaitingNote(run) {
5929
+ const scenes = run.cutHeldScenes?.length ? run.cutHeldScenes : run.waitingScenes;
5930
+ if (!scenes?.length)
5931
+ return [];
5932
+ const names = scenes.map((s) => `scene ${s.sceneIndex}`);
5933
+ const list = names.length > 1 ? `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}` : names[0];
5934
+ return [`Your video waits on you for ${list} first. What each needs: exodus video status ${run.runId}`];
5935
+ }
5901
5936
  function customerDelivered(run) {
5902
5937
  return run.stage === "ready" && run.awaitingSignOff !== true;
5903
5938
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicopycoders/exodus",
3
- "version": "2026.11.1200-beta.21",
3
+ "version": "2026.11.1200-beta.22",
4
4
  "description": "CLI + Claude Code skills for the Copycoders Exodus ad pipeline",
5
5
  "repository": {
6
6
  "type": "git",