@aicopycoders/exodus 2026.11.1200-beta.7 → 2026.11.1200-beta.8

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.
@@ -10,6 +10,7 @@ export declare const SWIPE_RUNS_PATH = "/api/v2/video/swipe-runs";
10
10
  export declare const SWIPE_SHEET_PATH = "/api/v2/video/swipe-sheet";
11
11
  export declare const SWIPE_SHEET_PRICE_PATH = "/api/v2/video/swipe-sheet-price";
12
12
  export declare const SWIPE_SHEET_OPTIONS_PATH = "/api/v2/video/swipe-sheet/options";
13
+ export declare const SHEET_SOURCES_QUERY = "sources=recommended";
13
14
  export declare const SWIPE_LIBRARY_PATH = "/api/v2/swipe-library";
14
15
  export interface SwipeBreakdown {
15
16
  _id: string;
@@ -213,7 +214,7 @@ export interface SwipeListRow {
213
214
  name: string;
214
215
  } | null;
215
216
  }
216
- export type SheetFrom = "you" | "their-ad" | "kind";
217
+ export type SheetFrom = "you" | "their-ad" | "kind" | "recommended";
217
218
  export interface SavedSheetRow {
218
219
  id: string;
219
220
  label: string;
@@ -237,6 +238,10 @@ export interface SavedSheetRow {
237
238
  failed?: boolean;
238
239
  noneYet?: boolean;
239
240
  };
241
+ none?: {
242
+ value: string;
243
+ label: string;
244
+ };
240
245
  }
241
246
  export interface SavedSheet {
242
247
  swipeId: string;
@@ -15,6 +15,7 @@ export const SWIPE_RUNS_PATH = "/api/v2/video/swipe-runs";
15
15
  export const SWIPE_SHEET_PATH = "/api/v2/video/swipe-sheet";
16
16
  export const SWIPE_SHEET_PRICE_PATH = "/api/v2/video/swipe-sheet-price";
17
17
  export const SWIPE_SHEET_OPTIONS_PATH = "/api/v2/video/swipe-sheet/options";
18
+ export const SHEET_SOURCES_QUERY = "sources=recommended";
18
19
  export const SWIPE_LIBRARY_PATH = "/api/v2/swipe-library";
19
20
  export const SWIPE_MODES = [
20
21
  { flag: "whole-ad", mode: "whole", label: "Whole ad", helper: "Every part of their ad, rewritten for your brand." },
@@ -1195,7 +1196,7 @@ export async function swipeListFlow(opts, deps) {
1195
1196
  }),
1196
1197
  };
1197
1198
  }
1198
- const FROM_WORDS = { you: "from you", "their-ad": "from their ad", kind: "from the kind of ad" };
1199
+ const FROM_WORDS = { you: "from you", "their-ad": "from their ad", kind: "from the kind of ad", recommended: "recommended" };
1199
1200
  function sheetOf(data) {
1200
1201
  if (!isRecord(data) || !isRecord(data.sheet) || !Array.isArray(data.sheet.sections))
1201
1202
  return null;
@@ -1241,10 +1242,12 @@ export function sheetLines(sheet, dashboardUrl) {
1241
1242
  lines.push("", section.label);
1242
1243
  for (const row of section.rows) {
1243
1244
  const picked = typeof row.value === "number" ? row.options?.find((option) => option.id === String(row.value)) : undefined;
1244
- const value = row.value === null ? "not set" : picked ? `${row.value} (${picked.label})` : String(row.value);
1245
+ const none = row.none && row.value === row.none.value ? row.none : undefined;
1246
+ const value = row.value === null ? "not set" : picked ? `${row.value} (${picked.label})` : none ? `${row.value} (${none.label})` : String(row.value);
1245
1247
  lines.push(` ${row.id}${row.readOnly ? ", read only" : ""}: ${value}`);
1246
- if (row.from)
1247
- lines.push(` ${FROM_WORDS[row.from]}${row.why ? `: ${row.why}` : ""}`);
1248
+ const fromWords = row.from && Object.prototype.hasOwnProperty.call(FROM_WORDS, row.from) ? FROM_WORDS[row.from] : null;
1249
+ if (fromWords)
1250
+ lines.push(` ${fromWords}${row.why ? `: ${row.why}` : ""}`);
1248
1251
  else if (row.why)
1249
1252
  lines.push(` ${row.why}`);
1250
1253
  lines.push(...optionLines(row, section.rows[section.rows.indexOf(row) - 1], swipeId));
@@ -1262,7 +1265,7 @@ export function sheetLines(sheet, dashboardUrl) {
1262
1265
  return lines;
1263
1266
  }
1264
1267
  export async function swipeSheetReadFlow(swipeId, opts, deps) {
1265
- const res = await deps.get(`${SWIPE_SHEET_PATH}?id=${encodeURIComponent(swipeId)}`);
1268
+ const res = await deps.get(`${SWIPE_SHEET_PATH}?id=${encodeURIComponent(swipeId)}&${SHEET_SOURCES_QUERY}`);
1266
1269
  if (!res.ok)
1267
1270
  return swipeError(res, opts.json);
1268
1271
  const read = sheetOf(res.data);
@@ -1276,7 +1279,7 @@ export async function swipeSheetSetFlow(swipeId, picks, opts, deps) {
1276
1279
  const readAgain = `Whether it was saved is not known. Read the sheet again: exodus video swipe sheet ${swipeId}`;
1277
1280
  let res;
1278
1281
  try {
1279
- res = await deps.post(SWIPE_SHEET_PATH, { swipeId, picks });
1282
+ res = await deps.post(`${SWIPE_SHEET_PATH}?${SHEET_SOURCES_QUERY}`, { swipeId, picks });
1280
1283
  }
1281
1284
  catch (err) {
1282
1285
  const error = `The server could not be reached: ${describeFetchFailure(err)}.`;
@@ -1300,7 +1303,20 @@ export async function swipeSheetSetFlow(swipeId, picks, opts, deps) {
1300
1303
  return { code: 0, lines: [JSON.stringify({ ok: true, saved: true, ...read })] };
1301
1304
  const set = Object.keys(picks).filter((row) => picks[row] !== null);
1302
1305
  const cleared = Object.keys(picks).filter((row) => picks[row] === null);
1303
- const said = [...(set.length > 0 ? [`Saved ${set.join(", ")}.`] : []), ...(cleared.length > 0 ? [`Cleared ${cleared.join(", ")}.`] : [])];
1306
+ const rowsNow = read.sheet.sections.flatMap((section) => section.rows);
1307
+ const backToDefault = (id) => {
1308
+ const row = rowsNow.find((candidate) => candidate.id === id);
1309
+ return row?.none && row.value !== null && row.from !== "you" ? row : undefined;
1310
+ };
1311
+ const plainCleared = cleared.filter((id) => !backToDefault(id));
1312
+ const said = [
1313
+ ...(set.length > 0 ? [`Saved ${set.join(", ")}.`] : []),
1314
+ ...(plainCleared.length > 0 ? [`Cleared ${plainCleared.join(", ")}.`] : []),
1315
+ ...cleared.flatMap((id) => {
1316
+ const row = backToDefault(id);
1317
+ return row?.none ? [`Cleared ${id}, so it is back to its default, ${String(row.value)}; for ${row.none.label}, set ${id}=${row.none.value}.`] : [];
1318
+ }),
1319
+ ];
1304
1320
  if (read.sheet.notice)
1305
1321
  said.push(read.sheet.notice);
1306
1322
  return { code: 0, lines: [said.join(" "), "", ...sheetLines(read.sheet, read.dashboardUrl)] };
@@ -1432,7 +1448,7 @@ export async function swipeSheetPeopleFlow(swipeId, count, maxUsd, opts, deps) {
1432
1448
  const again = `exodus video swipe sheet people ${swipeId}${count !== null ? ` --count ${count}` : ""}`;
1433
1449
  let res;
1434
1450
  try {
1435
- res = await deps.post(SWIPE_SHEET_OPTIONS_PATH, {
1451
+ res = await deps.post(`${SWIPE_SHEET_OPTIONS_PATH}?${SHEET_SOURCES_QUERY}`, {
1436
1452
  swipeId,
1437
1453
  row: "who",
1438
1454
  ...(count !== null ? { count } : {}),
@@ -1476,7 +1492,7 @@ export async function swipeSheetPeopleFlow(swipeId, count, maxUsd, opts, deps) {
1476
1492
  const out = progress(opts);
1477
1493
  for (const line of head)
1478
1494
  out.say(line);
1479
- const ended = await poll(() => deps.get(`${SWIPE_SHEET_PATH}?id=${encodeURIComponent(swipeId)}`), (read) => {
1495
+ const ended = await poll(() => deps.get(`${SWIPE_SHEET_PATH}?id=${encodeURIComponent(swipeId)}&${SHEET_SOURCES_QUERY}`), (read) => {
1480
1496
  if (!read.ok)
1481
1497
  return { done: { refused: read } };
1482
1498
  const sheet = sheetOf(read.data);
@@ -1516,7 +1532,7 @@ async function maxUsdUnsupported(swipeId, maxUsd, deps) {
1516
1532
  }
1517
1533
  }
1518
1534
  export async function swipeSheetVoicesFlow(swipeId, opts, deps) {
1519
- const res = await deps.post(SWIPE_SHEET_OPTIONS_PATH, { swipeId, row: "voice" });
1535
+ const res = await deps.post(`${SWIPE_SHEET_OPTIONS_PATH}?${SHEET_SOURCES_QUERY}`, { swipeId, row: "voice" });
1520
1536
  if (!res.ok)
1521
1537
  return swipeError(res, opts.json);
1522
1538
  const answer = optionsAnswerOf(res.data);
@@ -601,7 +601,7 @@ export declare function waitFlow(runId: string, opts: {
601
601
  }, deps: VideoDeps): Promise<FlowResult>;
602
602
  export declare function statusFlow(runId: string, json: boolean, deps: VideoDeps): Promise<FlowResult>;
603
603
  export declare const ONE_TAKE_HEARD_AS_CODE = "one-take-words-heard-as";
604
- export declare const ONE_TAKE_LABEL_CODES: readonly ["one-take-label-flipped", "one-take-label-unsure"];
604
+ export declare const ONE_TAKE_LABEL_CODES: readonly ["one-take-label-flipped", "one-take-label-unsure", "one-take-label-held"];
605
605
  export declare function directorLines(director: RunDirector): string[];
606
606
  export type DirectorSwitch = boolean | null;
607
607
  export declare function parseDirectorSwitch(word: string | undefined): {
@@ -3995,7 +3995,7 @@ export async function statusFlow(runId, json, deps) {
3995
3995
  return { code: 0, lines };
3996
3996
  }
3997
3997
  export const ONE_TAKE_HEARD_AS_CODE = "one-take-words-heard-as";
3998
- export const ONE_TAKE_LABEL_CODES = ["one-take-label-flipped", "one-take-label-unsure"];
3998
+ export const ONE_TAKE_LABEL_CODES = ["one-take-label-flipped", "one-take-label-unsure", "one-take-label-held"];
3999
3999
  const ONE_TAKE_PLAIN_FINDING_CODES = [ONE_TAKE_HEARD_AS_CODE, ...ONE_TAKE_LABEL_CODES];
4000
4000
  const DIRECTOR_STATUS_WORDS = {
4001
4001
  reviewing: "Watching this run",
@@ -3,4 +3,5 @@ export const ONE_TAKE_HOLD_CODES = [
3
3
  "one-take-number-word-missing",
4
4
  "one-take-kept-paid-take",
5
5
  "one-take-words-unchecked",
6
+ "one-take-label-held",
6
7
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicopycoders/exodus",
3
- "version": "2026.11.1200-beta.7",
3
+ "version": "2026.11.1200-beta.8",
4
4
  "description": "CLI + Claude Code skills for the Copycoders Exodus ad pipeline",
5
5
  "repository": {
6
6
  "type": "git",