@funnelsgrove/cli 0.1.373 → 0.1.375

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.
package/README.md CHANGED
@@ -297,12 +297,17 @@ users. `find` searches every workspace you belong to (narrow it with
297
297
  `--workspace`), lists workspaces where you are not an admin as not searched and
298
298
  exits 1 when a project could not be searched. Stripe charges and subscriptions come live from Stripe; Solidgate
299
299
  payments come from the FunnelsGrove ledger with refunded amounts read live from
300
- Solidgate. Refunds are full refunds of each payment's remaining amount, using
301
- the payment IDs printed by `lookup`. Each payment is refunded at most once,
300
+ Solidgate. PayPal subscriptions and sales come from the ledger with status read
301
+ live from PayPal; refunded amounts come from the ledger, and a sale PayPal shows
302
+ refunded differently is not refundable until the refund webhook is recorded.
303
+ Refunds are full refunds of each payment's remaining amount, using
304
+ the payment IDs printed by `lookup` (PayPal sale IDs as printed, without a
305
+ prefix). Disputed payments are not refundable. Each payment is refunded at most once,
302
306
  including against Chargeback Prevention refunds of the same payment. A
303
- Solidgate refund that is still processing is reported as `processing`; run
307
+ Solidgate or PayPal refund that is still processing is reported as `processing`; run
304
308
  `lookup` later to confirm it. The command exits 1 if any payment failed. `cancel` refuses to guess when several
305
- subscriptions are still billing; pass `--subscription`. When `lookup` reports a
309
+ subscriptions are still billing; pass `--subscription`. PayPal Live
310
+ subscriptions cancel at period end only; `--now` works for PayPal in `--env test`. When `lookup` reports a
306
311
  provider that did not answer, missing data does not mean there is no
307
312
  subscription.
308
313
 
@@ -1284,7 +1284,7 @@ video may be written { "variation": "<full name or vd005_01>", "size": "1080x192
1284
1284
  return {
1285
1285
  size: preview.size, fps: preview.fps, textStyle: preview.textStyle,
1286
1286
  variants: preview.variants.map((variant) => ({ name: variant.name, seconds: variant.seconds, shots: variant.shots.length })),
1287
- clips: preview.clips, storyboard: index, written,
1287
+ clips: preview.clips, ...(preview.music ? { music: preview.music } : {}), storyboard: index, written,
1288
1288
  };
1289
1289
  }));
1290
1290
  scoped(montage.command('start <cutSheet>').description('Upload the cut sheet\'s files and start a Montage Generation; every credit is reserved at start')
@@ -1313,12 +1313,12 @@ video may be written { "variation": "<full name or vd005_01>", "size": "1080x192
1313
1313
  }));
1314
1314
  scoped(montage.command('show <generationId>').description('Show a Montage Generation: each variant\'s video and each generated clip, with their output ids')
1315
1315
  .option('--wait', 'Poll until the Generation finished')
1316
- .option('--download <dir>', 'Save every delivered video as <variant>.mp4 and every delivered generated clip as clip-<shot>.mp4'))
1316
+ .option('--download <dir>', 'Save every delivered video as <variant>.mp4, every delivered generated clip as clip-<shot>.mp4 and a generated music track as music.mp3'))
1317
1317
  .action(run(async (scope, options, generationId) => {
1318
1318
  const detail = options.wait ? await waitForGeneration(scope, generationId) : await api(scope, 'generation', 'query', { generationId });
1319
1319
  return { ...montageSummary(detail), ...(options.download ? { downloaded: await downloadMontage(detail, options.download) } : {}) };
1320
1320
  }));
1321
- scoped(montage.command('revise <generationId>').description('Write the cut sheet of a follow-up Montage: delivered generated clips are reused at no cost, '
1321
+ scoped(montage.command('revise <generationId>').description('Write the cut sheet of a follow-up Montage: delivered generated clips and music are reused at no cost, '
1322
1322
  + 'rerolled and undelivered Shots generate again')
1323
1323
  .option('--reroll <shots...>', 'Generated Shots to make again, by id')
1324
1324
  .option('--out <file>', 'Where to write the cut sheet (default: montage-<first 8 of the id>.revised.json)'))
@@ -1327,7 +1327,7 @@ video may be written { "variation": "<full name or vd005_01>", "size": "1080x192
1327
1327
  const revised = await reviseCutSheet(await read(generationId), options.reroll ?? [], read);
1328
1328
  const out = options.out ?? `montage-${generationId.slice(0, 8)}.revised.json`;
1329
1329
  await writeFile(out, `${JSON.stringify(revised.cutSheet, null, 2)}\n`, 'utf8');
1330
- return { written: out, reused: revised.reused, generating: revised.generating };
1330
+ return { written: out, reused: revised.reused, generating: revised.generating, ...(revised.music ? { music: revised.music } : {}) };
1331
1331
  }));
1332
1332
  };
1333
1333
  export const registerCreativeCommands = (program, deps) => {
@@ -55,6 +55,11 @@ export type MontagePreview = {
55
55
  resolution: string;
56
56
  credits: number;
57
57
  }[];
58
+ /** CRE-BR-052: the track the music model makes, when the cut sheet asks for one. */
59
+ music?: {
60
+ seconds: number;
61
+ credits: number;
62
+ } | null;
58
63
  };
59
64
  /** `0:03`, `1:02.5`. */
60
65
  export declare const montageTime: (seconds: number) => string;
@@ -75,12 +80,17 @@ export type MontageRecipe = {
75
80
  model: string;
76
81
  resolution: string;
77
82
  }[];
83
+ /** CRE-BR-052: the generated music track; absent or null when the music is stored or there is none. */
84
+ music?: {
85
+ prompt: string;
86
+ seconds: number;
87
+ } | null;
78
88
  variants: {
79
89
  name: string;
80
90
  seconds: number;
81
91
  }[];
82
92
  };
83
- /** The variants' videos in order and the generated clips with their Shots. */
93
+ /** The variants' videos in order, the generated clips with their Shots and the generated music track. */
84
94
  export declare const montageOutputs: (detail: GenerationDetail) => {
85
95
  recipe: MontageRecipe;
86
96
  variants: {
@@ -95,10 +105,22 @@ export declare const montageOutputs: (detail: GenerationDetail) => {
95
105
  model: string;
96
106
  resolution: string;
97
107
  }[];
108
+ music: {
109
+ output: GenerationOutput | undefined;
110
+ prompt: string;
111
+ seconds: number;
112
+ } | null;
98
113
  };
99
114
  /** The `montage` part of `montage show`: each variant's video and each generated clip, with their outputs. */
100
115
  export declare const summarizeMontage: (detail: GenerationDetail) => {
101
116
  approving?: string | undefined;
117
+ music?: {
118
+ seconds: number;
119
+ outputId: string | null;
120
+ status: string | null;
121
+ url: string | null;
122
+ error: string | null;
123
+ } | undefined;
102
124
  variants: {
103
125
  name: string;
104
126
  seconds: number;
@@ -124,15 +146,17 @@ export declare const summarizeMontage: (detail: GenerationDetail) => {
124
146
  error: string | null;
125
147
  }[];
126
148
  };
127
- /** Saves every delivered variant video as `<variant>.mp4` and every delivered clip as `clip-<shot>.mp4`. */
149
+ /** Saves every delivered variant video as `<variant>.mp4`, every delivered clip as `clip-<shot>.mp4` and a generated track as `music.mp3`. */
128
150
  export declare const downloadMontage: (detail: GenerationDetail, dir: string, fetchFn?: typeof fetch) => Promise<string[]>;
129
151
  /**
130
152
  * The cut sheet of a follow-up Montage (CRE-BR-045): each `generate` Shot whose clip was delivered becomes a `clip`
131
- * naming that clip, unless it is rerolled; everything else is copied as stored. A rerolled Shot that shows a clip an
153
+ * naming that clip, unless it is rerolled, and a delivered generated music track becomes a stored track (CRE-BR-052);
154
+ * everything else is copied as stored. A rerolled Shot that shows a clip an
132
155
  * earlier Montage generated gets that Montage's keyframe and prompt back (`earlier` reads it), so a Shot can be made
133
156
  * again in any later revision.
134
157
  */
135
158
  export declare const reviseCutSheet: (detail: GenerationDetail, reroll: string[], earlier: (generationId: string) => Promise<GenerationDetail>) => Promise<{
159
+ music?: "reused" | "generating" | undefined;
136
160
  cutSheet: Json;
137
161
  reused: string[];
138
162
  generating: string[];
@@ -132,7 +132,7 @@ export const storyboardHtml = (preview, title) => {
132
132
  };
133
133
  const rows = preview.variants.map((variant) => `<section><h2>${escapeHtml(variant.name)} <span>${round(variant.seconds)} s · ${variant.shots.length} shots</span></h2>`
134
134
  + `<ol class="row">${variant.shots.map((shot, index) => tile(variant.name, shot, index)).join('')}</ol></section>`).join('\n');
135
- const credits = preview.clips.reduce((sum, clip) => sum + clip.credits, 0);
135
+ const credits = preview.clips.reduce((sum, clip) => sum + clip.credits, 0) + (preview.music?.credits ?? 0);
136
136
  return `<!doctype html>
137
137
  <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
138
138
  <title>${escapeHtml(title)} storyboard</title>
@@ -159,7 +159,7 @@ h2 span{font-size:13px;font-weight:400;margin-left:8px}
159
159
  .time{padding:2px 8px 8px;font-family:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums}
160
160
  </style></head>
161
161
  <body><header><h1>${escapeHtml(title)}</h1><p>${escapeHtml(preview.size)} · ${preview.fps} fps · ${escapeHtml(preview.textStyle)} · `
162
- + `${preview.clips.length} generated clip(s), ${credits} credits</p></header>
162
+ + `${preview.clips.length} generated clip(s)${preview.music ? `, a ${preview.music.seconds} s music track` : ''}, ${credits} credits</p></header>
163
163
  ${rows}
164
164
  </body></html>
165
165
  `;
@@ -192,7 +192,7 @@ const recipeOf = (detail) => {
192
192
  };
193
193
  const urlOf = (output) => output.files[0]?.url ?? output.raw_url;
194
194
  const delivered = (output) => output?.status === 'succeeded' && Boolean(urlOf(output));
195
- /** The variants' videos in order and the generated clips with their Shots. */
195
+ /** The variants' videos in order, the generated clips with their Shots and the generated music track. */
196
196
  export const montageOutputs = (detail) => {
197
197
  const recipe = recipeOf(detail);
198
198
  const videos = detail.outputs.filter((output) => output.role === 'video')
@@ -201,11 +201,14 @@ export const montageOutputs = (detail) => {
201
201
  recipe,
202
202
  variants: recipe.variants.map((variant, index) => ({ ...variant, output: videos[index] })),
203
203
  clips: recipe.clips.map((clip, index) => ({ ...clip, output: detail.outputs.find((output) => output.role === 'clip' && output.scene_index === index) })),
204
+ music: recipe.music ? { ...recipe.music, output: detail.outputs.find((output) => output.role === 'music') } : null,
204
205
  };
205
206
  };
207
+ /** `music.mp3` or `music.wav`, after the stored track. */
208
+ const musicFileName = (output) => `music.${/\.wav(\?|$)/.test(urlOf(output) ?? '') ? 'wav' : 'mp3'}`;
206
209
  /** The `montage` part of `montage show`: each variant's video and each generated clip, with their outputs. */
207
210
  export const summarizeMontage = (detail) => {
208
- const { variants, clips } = montageOutputs(detail);
211
+ const { variants, clips, music } = montageOutputs(detail);
209
212
  const videoIds = variants.flatMap(({ output }) => (delivered(output) ? [output.id] : []));
210
213
  return {
211
214
  variants: variants.map(({ name, seconds, output }) => ({
@@ -220,15 +223,18 @@ export const summarizeMontage = (detail) => {
220
223
  error: output?.error?.message ?? null,
221
224
  ...(output?.words ? { heard: output.words.words.map((word) => word.text).join(' '), words: output.words.words.map(({ text, start, end }) => [text, start, end]) } : {}),
222
225
  })),
226
+ ...(music ? { music: { seconds: music.seconds, outputId: music.output?.id ?? null, status: music.output?.status ?? null,
227
+ url: music.output ? urlOf(music.output) : null, error: music.output?.error?.message ?? null } } : {}),
223
228
  ...(videoIds.length > 0 ? { approving: `fgrove creatives generations approve ${videoIds.join(' ')}` } : {}),
224
229
  };
225
230
  };
226
- /** Saves every delivered variant video as `<variant>.mp4` and every delivered clip as `clip-<shot>.mp4`. */
231
+ /** Saves every delivered variant video as `<variant>.mp4`, every delivered clip as `clip-<shot>.mp4` and a generated track as `music.mp3`. */
227
232
  export const downloadMontage = async (detail, dir, fetchFn = fetch) => {
228
- const { variants, clips } = montageOutputs(detail);
233
+ const { variants, clips, music } = montageOutputs(detail);
229
234
  const files = [
230
235
  ...variants.flatMap(({ name, output }) => (delivered(output) ? [{ url: urlOf(output), file: path.join(dir, `${name}.mp4`) }] : [])),
231
236
  ...clips.flatMap(({ shotId, output }) => (delivered(output) ? [{ url: urlOf(output), file: path.join(dir, `clip-${shotId}.mp4`) }] : [])),
237
+ ...(delivered(music?.output) ? [{ url: urlOf(music.output), file: path.join(dir, musicFileName(music.output)) }] : []),
232
238
  ];
233
239
  await mkdir(dir, { recursive: true });
234
240
  for (const { url, file } of files) {
@@ -248,12 +254,13 @@ const shotsOf = (sheet) => [
248
254
  ].filter(isObject);
249
255
  /**
250
256
  * The cut sheet of a follow-up Montage (CRE-BR-045): each `generate` Shot whose clip was delivered becomes a `clip`
251
- * naming that clip, unless it is rerolled; everything else is copied as stored. A rerolled Shot that shows a clip an
257
+ * naming that clip, unless it is rerolled, and a delivered generated music track becomes a stored track (CRE-BR-052);
258
+ * everything else is copied as stored. A rerolled Shot that shows a clip an
252
259
  * earlier Montage generated gets that Montage's keyframe and prompt back (`earlier` reads it), so a Shot can be made
253
260
  * again in any later revision.
254
261
  */
255
262
  export const reviseCutSheet = async (detail, reroll, earlier) => {
256
- const { recipe, clips } = montageOutputs(detail);
263
+ const { recipe, clips, music } = montageOutputs(detail);
257
264
  const generated = new Set(recipe.clips.map((clip) => clip.shotId));
258
265
  const sheet = recipe.cutSheet;
259
266
  const restored = new Map();
@@ -304,5 +311,11 @@ export const reviseCutSheet = async (detail, reroll, earlier) => {
304
311
  : variant)),
305
312
  } : {}),
306
313
  };
307
- return { cutSheet, reused: [...reuse], generating };
314
+ // The music ref names the Generation like a clip ref, with `music: true` in place of a Shot: a Shot may be called "music".
315
+ const generatedMusic = isObject(sheet.music) && sheet.music.generate !== undefined;
316
+ if (generatedMusic && delivered(music?.output)) {
317
+ const { generate: _generate, ...rest } = sheet.music;
318
+ cutSheet.music = { ...rest, track: { generation: detail.generation.id, music: true } };
319
+ }
320
+ return { cutSheet, reused: [...reuse], generating, ...(generatedMusic ? { music: delivered(music?.output) ? 'reused' : 'generating' } : {}) };
308
321
  };
@@ -5,10 +5,10 @@
5
5
  * Plain text: an agent reads it from a terminal.
6
6
  */
7
7
  export declare const MONTAGE_GUIDE_TOPICS: {
8
- readonly 'cut-sheet': "\nTHE CUT SHEET\n\nOne JSON object. The API's error names the Shot and the rule when a sheet is wrong.\n\nTOP LEVEL\n\n size \"1080x1920\" (default), \"1080x1350\", \"1080x1080\" or \"1920x1080\"\n fps 24, 25 or 30 (default 30); 24 when most Shots are generated\n subtitles true draws every Shot's \"say\" as subtitles (default false)\n language two letters, the language of the lines (default \"en\"); used to recognize them\n disclaimer the small line at the bottom of every Shot\n textStyle \"plate-light\" (default: black words on a white plate) or \"plate-dark\"\n music { \"track\": <file>, \"from\": <seconds>, \"volume\": 0 to 1 }; fades out over the last 0.6 s\n shots the body in order: up to 80 Shots, 120 s, 40 generated clips\n variants up to 5; without any, one video\n\nA SHOT\n\n id lower-case letters, digits and hyphens\n seconds 0.5 to 15: how long the Shot lasts in the cut\n\nand exactly one picture:\n\n \"clip\": <file> a stored video, shown from \"from\" seconds\n \"generate\": { \"keyframe\": <file>, \"prompt\", \"seconds\"?, \"model\"?, \"resolution\"? }\n a clip made from your keyframe, 4 to 15 whole seconds, shown from \"from\"\n \"still\": <file> an image held for the Shot\n \"freeze\": { \"shot\": \"<id>\", \"at\": <s> } one frame of that Shot's video\n \"reuse\": { \"shot\": \"<id>\" } that Shot's video again, from this Shot's own \"from\"\n\nand any of:\n\n sound true: the Shot plays its own clip's sound. { \"shot\": \"<id>\", \"from\": <seconds> }: it plays another Shot's\n clip from that moment (a cutaway under a voice). Without \"sound\" a Shot is silent.\n say the line spoken during the Shot, up to 240 characters; a line break starts a new subtitle. It is drawn as\n subtitles and compared with what is heard. On a silent Shot it is a caption.\n text a plate of words in the upper half, up to 120 characters (\"\\n\" breaks a line)\n checklist up to 4 checked rows instead of the plate's words\n footer a small line near the bottom\n zoom 1 to 4: the picture enlarged; \"focus\": { \"x\": 0 to 1, \"y\": 0 to 1 } is the point kept in the middle\n clean true: nothing is drawn over the Shot, not even the disclaimer (a reused end card)\n\nA <file> is one of:\n\n { \"file\": \"clips/a.mp4\" } a local file, relative to the cut sheet; uploaded once\n { \"variation\": \"BND_vd001_01_H1\" } a Variation's video (\"size\" picks one)\n { \"generation\": \"<id>\", \"shot\": \"<id>\" } a clip an earlier Montage generated; \"montage revise\" writes these\n\nA VARIANT\n\n { \"name\": \"H2\",\n \"replace\": { \"<shot id>\": [ <Shot>, ... ] }, other Shots in the place of one; an empty list leaves it out\n \"text\": { \"<shot id>\": \"words\" }, a plate on a Shot of the body\n \"post\": { \"shots\": [\"<shot id>\", ...], \"name\", \"handle\", \"text\", \"meta\"?, \"stats\"? } }\n these Shots are shown inside a social post: author, words, the\n picture in a window, subtitles inside it\n\nSOUND\n\nA clip that carries a line is cleaned of the background of its take (a denoiser takes about 20 dB off rain, traffic and\nroom noise; other people's voices stay) and set to the same level as every other; the lines are evened out, the music\nsits under them and dips while a line is spoken, and the finished video is set to -14 LUFS. A clip without any line\n(rain, a car) stays quiet, and a Shot that sounds without a line fades in and out over 0.15 s; cut from a clip that\ncarries lines, it plays at that clip's level. Sound asked from past the end of its clip is an error that names the\nShot.\n\nAN EXAMPLE\n\n {\n \"size\": \"1080x1920\", \"fps\": 24, \"subtitles\": true,\n \"disclaimer\": \"Illustrative. Individual results may vary. AI-generated.\",\n \"music\": { \"track\": { \"file\": \"music.mp3\" } },\n \"shots\": [\n { \"id\": \"door\", \"seconds\": 3.5, \"from\": 0.9, \"clip\": { \"generation\": \"<id>\", \"shot\": \"door\" }, \"sound\": true,\n \"say\": \"You said we were going!\" },\n { \"id\": \"mentor\", \"seconds\": 2.75, \"from\": 0.5, \"clip\": { \"generation\": \"<id>\", \"shot\": \"mentor\" }, \"sound\": true,\n \"say\": \"You think he was always this calm?\" },\n { \"id\": \"listens\", \"seconds\": 2.875, \"from\": 0.3, \"clip\": { \"generation\": \"<id>\", \"shot\": \"listens\" },\n \"sound\": { \"shot\": \"mentor\", \"from\": 3.25 }, \"say\": \"We play these little games every day.\\nFive minutes.\" },\n { \"id\": \"mentor-2\", \"seconds\": 2.5, \"from\": 6.125, \"reuse\": { \"shot\": \"mentor\" }, \"sound\": true,\n \"say\": \"The rules keep changing, that's the point.\" },\n { \"id\": \"day1\", \"seconds\": 4.375, \"clip\": { \"generation\": \"<id>\", \"shot\": \"day1\" }, \"sound\": true, \"text\": \"DAY 1\",\n \"say\": \"Now red means go!\\nThat's not fair!\" },\n { \"id\": \"cards\", \"seconds\": 7, \"from\": 73.8, \"clip\": { \"variation\": \"BND_vd001_01_H1\" }, \"clean\": true }\n ],\n \"variants\": [\n { \"name\": \"H1\" },\n { \"name\": \"H2\", \"post\": { \"shots\": [\"door\"], \"name\": \"Emma Clarke\", \"handle\": \"@emmaclarke\", \"text\": \"WHY DOES MY KID FALL APART EVERY TIME PLANS CHANGE?\" } },\n { \"name\": \"H3\", \"text\": { \"door\": \"HE'S NOT STUBBORN. HIS BRAIN CAN'T SWITCH GEARS \\u2014 YET.\" } }\n ]\n }\n";
8
+ readonly 'cut-sheet': "\nTHE CUT SHEET\n\nOne JSON object. The API's error names the Shot and the rule when a sheet is wrong.\n\nTOP LEVEL\n\n size \"1080x1920\" (default), \"1080x1350\", \"1080x1080\" or \"1920x1080\"\n fps 24, 25 or 30 (default 30); 24 when most Shots are generated\n subtitles true draws every Shot's \"say\" as subtitles (default false)\n language two letters, the language of the lines (default \"en\"); used to recognize them\n disclaimer the small line at the bottom of every Shot\n textStyle \"plate-light\" (default: black words on a white plate) or \"plate-dark\"\n music { \"track\": <file>, \"from\": <seconds>, \"volume\": 0 to 1 }; fades out over the last 0.6 s. In place of\n \"track\", \"generate\": { \"prompt\", \"seconds\"? } has the music model make it: 10 to 120 whole seconds, by\n default the longest variant rounded up; 30 credits per started minute, made once for every variant\n shots the body in order: up to 80 Shots, 120 s, 40 generated clips\n variants up to 5; without any, one video\n\nA SHOT\n\n id lower-case letters, digits and hyphens\n seconds 0.5 to 15: how long the Shot lasts in the cut\n\nand exactly one picture:\n\n \"clip\": <file> a stored video, shown from \"from\" seconds\n \"generate\": { \"keyframe\": <file>, \"prompt\", \"seconds\"?, \"model\"?, \"resolution\"? }\n a clip made from your keyframe, 4 to 15 whole seconds, shown from \"from\"\n \"still\": <file> an image held for the Shot\n \"freeze\": { \"shot\": \"<id>\", \"at\": <s> } one frame of that Shot's video\n \"reuse\": { \"shot\": \"<id>\" } that Shot's video again, from this Shot's own \"from\"\n\nand any of:\n\n sound true: the Shot plays its own clip's sound. { \"shot\": \"<id>\", \"from\": <seconds> }: it plays another Shot's\n clip from that moment (a cutaway under a voice). Without \"sound\" a Shot is silent.\n say the line spoken during the Shot, up to 240 characters; a line break starts a new subtitle. It is drawn as\n subtitles and compared with what is heard. On a silent Shot it is a caption.\n text a plate of words in the upper half, up to 120 characters (\"\\n\" breaks a line)\n checklist up to 4 checked rows instead of the plate's words\n footer a small line near the bottom\n zoom 1 to 4: the picture enlarged; \"focus\": { \"x\": 0 to 1, \"y\": 0 to 1 } is the point kept in the middle\n clean true: nothing is drawn over the Shot, not even the disclaimer (a reused end card)\n\nA <file> is one of:\n\n { \"file\": \"clips/a.mp4\" } a local file, relative to the cut sheet; uploaded once\n { \"variation\": \"BND_vd001_01_H1\" } a Variation's video (\"size\" picks one)\n { \"generation\": \"<id>\", \"shot\": \"<id>\" } a clip an earlier Montage generated; \"montage revise\" writes these\n { \"generation\": \"<id>\", \"music\": true } the music track an earlier Montage generated; \"revise\" writes it\n\nA VARIANT\n\n { \"name\": \"H2\",\n \"replace\": { \"<shot id>\": [ <Shot>, ... ] }, other Shots in the place of one; an empty list leaves it out\n \"text\": { \"<shot id>\": \"words\" }, a plate on a Shot of the body\n \"post\": { \"shots\": [\"<shot id>\", ...], \"name\", \"handle\", \"text\", \"meta\"?, \"stats\"? } }\n these Shots are shown inside a social post: author, words, the\n picture in a window, subtitles inside it\n\nSOUND\n\nA clip that carries a line is cleaned of the background of its take (a denoiser takes about 20 dB off rain, traffic and\nroom noise; other people's voices stay) and set to the same level as every other; the lines are evened out, the music\nsits under them and dips while a line is spoken, and the finished video is set to -14 LUFS. A clip without any line\n(rain, a car) stays quiet, and a Shot that sounds without a line fades in and out over 0.15 s; cut from a clip that\ncarries lines, it plays at that clip's level. Sound asked from past the end of its clip is an error that names the\nShot.\n\nAN EXAMPLE\n\n {\n \"size\": \"1080x1920\", \"fps\": 24, \"subtitles\": true,\n \"disclaimer\": \"Illustrative. Individual results may vary. AI-generated.\",\n \"music\": { \"track\": { \"file\": \"music.mp3\" } },\n \"shots\": [\n { \"id\": \"door\", \"seconds\": 3.5, \"from\": 0.9, \"clip\": { \"generation\": \"<id>\", \"shot\": \"door\" }, \"sound\": true,\n \"say\": \"You said we were going!\" },\n { \"id\": \"mentor\", \"seconds\": 2.75, \"from\": 0.5, \"clip\": { \"generation\": \"<id>\", \"shot\": \"mentor\" }, \"sound\": true,\n \"say\": \"You think he was always this calm?\" },\n { \"id\": \"listens\", \"seconds\": 2.875, \"from\": 0.3, \"clip\": { \"generation\": \"<id>\", \"shot\": \"listens\" },\n \"sound\": { \"shot\": \"mentor\", \"from\": 3.25 }, \"say\": \"We play these little games every day.\\nFive minutes.\" },\n { \"id\": \"mentor-2\", \"seconds\": 2.5, \"from\": 6.125, \"reuse\": { \"shot\": \"mentor\" }, \"sound\": true,\n \"say\": \"The rules keep changing, that's the point.\" },\n { \"id\": \"day1\", \"seconds\": 4.375, \"clip\": { \"generation\": \"<id>\", \"shot\": \"day1\" }, \"sound\": true, \"text\": \"DAY 1\",\n \"say\": \"Now red means go!\\nThat's not fair!\" },\n { \"id\": \"cards\", \"seconds\": 7, \"from\": 73.8, \"clip\": { \"variation\": \"BND_vd001_01_H1\" }, \"clean\": true }\n ],\n \"variants\": [\n { \"name\": \"H1\" },\n { \"name\": \"H2\", \"post\": { \"shots\": [\"door\"], \"name\": \"Emma Clarke\", \"handle\": \"@emmaclarke\", \"text\": \"WHY DOES MY KID FALL APART EVERY TIME PLANS CHANGE?\" } },\n { \"name\": \"H3\", \"text\": { \"door\": \"HE'S NOT STUBBORN. HIS BRAIN CAN'T SWITCH GEARS \\u2014 YET.\" } }\n ]\n }\n";
9
9
  readonly takes: "\nTHE PROMPT OF A TAKE\n\nA take is one generated clip, 4 to 15 s, in which people do and say what the prompt tells them. Write it in this\norder; the example below is one prompt.\n\n1. One shot. Start with: \"Continuous, unbroken shot, static camera, no scene cuts, no zoom.\" Without it Gemini cuts\n between several shots of its own.\n2. Who and where, in one sentence, in the words of the keyframe.\n3. What happens, with times in square brackets. Put each line in double quotes after the person who says it, with the\n manner (\"quietly\", \"tired but trying to sound upbeat\"). Leave half a second before the first line and after the last.\n [0-1s] She looks down. [1-3.5s] She looks up at her friend and says quietly: \"The wedding's in four weeks.\"\n4. Who stays silent: \"The friend does not speak and keeps her mouth closed.\" A take without a line says \"No dialogue:\n nobody speaks.\" Otherwise the model gives everyone in the frame something to say.\n5. A line from outside the frame: \"From behind the camera his mother says gently: ...\". The person in the frame only\n listens.\n6. The voice of each speaker, the same words in every take of that person: the age, the kind of voice, the accent,\n and for a child what it is not.\n \"Mike, the father, speaks in a low, calm man's baritone with an American accent.\"\n \"Noah is a small boy of seven and sounds it: a high, thin, slightly hoarse little-boy voice with an American\n accent. It is never a woman's voice and never a teenager's.\"\n The manner of a line moves the voice. A child's line said \"calmly\" or \"quietly\" comes out in a grown woman's voice;\n \"small and bright, with a little smile\" keeps the child. The model has no reliable old voice: give a line to someone\n it voices well (a young woman rather than a grandmother), or plan several rerolls.\n7. Sound, for a take with a line: \"Sound design: the voice alone, recorded close and dry as in a studio: no rain, no\n engine, no room tone, no crowd, no other sound under it.\" Every take brings its own background otherwise, and the\n cut steps from one to the next at every line. Rain, a car or a playground belong to a take without a line\n (\"Sound design: rain on the glass\"). Then: \"No background music.\" The cut brings its own music.\n8. End with: \"No captions, no subtitles, no on-screen text.\"\n\nLines: 15 words or fewer a sentence; a take of 15 s holds about four sentences with pauses. A name is spelled as it\nsounds. One action per sentence, in order. Name what must stay as it is (\"We never see the phone's screen\").\n\nAn example of a whole prompt:\n\n Continuous, unbroken shot, static camera with a very slight handheld sway, no scene cuts, no zoom. A man talks to\n his wife, who is off camera, late at night in their kitchen. [0-3.5s] He says in a low, tired, worried voice: \"We\n can't change a single thing without a meltdown.\" [3.5-5s] He pauses and shakes his head slightly. [5-7.5s] He says:\n \"Kate's wedding is in four weeks.\" [7.5-8s] He presses his lips together and looks down. His lips move naturally\n with the words. Mike, the father, speaks in a low, calm man's baritone with an American accent. Sound design: the\n voice alone, recorded close and dry as in a studio: no room tone, no other sound under it. No background music. No\n captions, no subtitles, no on-screen text.\n\nA cutaway is a take of 4 s of the listener: what they do while they listen (lower the eyes, lean in, read a phone,\nstart to smile) and \"No dialogue: nobody speaks, her mouth stays closed.\"\n";
10
10
  readonly bloopers: "\nTHE BLOOPER LIST\n\nReroll the clip or cut again when any of these shows. Look at consecutive frames: fast motion hides a mistake in one\nframe and shows it in the next.\n\nIn a clip\n\n- Hands and limbs: a sixth finger, fused fingers, a limb that bends wrong, an arm that belongs to nobody, a foot that\n slides.\n- A changed person: another face, age, hair or outfit than the keyframe or the other Shots of the scene; someone who\n was not there. A wide laugh ages a face: ask for a soft smile.\n- Objects that morph, double or vanish: a ball, a cup, a phone, a seat belt.\n- A screen: any interface the model drew. A phone's screen stays turned away; a product screen is a recording.\n- Stray text: letters, logos or watermarks.\n- A mouth without a voice, a voice without a mouth: someone whose lips form words in a clip where they have no line,\n or the speaker in frame with closed lips while the line is heard.\n- The wrong voice: a man's line in a woman's voice, a child's in an adult's, a grandmother's in a young woman's, an\n accent the others do not have. \"heard\" cannot show it and pitch alone cannot either (a child's calm line at 290 Hz\n was a woman's voice to every listener): it takes listening (\"fgrove creatives montage guide listening\").\n- One character, two voices: the same person in another take sounds like someone else.\n- Cuts inside the clip: the model changed the shot. The prompt must start with \"Continuous, unbroken shot\".\n- Music or a voice-over the model added.\n\nIn the finished video\n\n- A line cut off: a word that starts before its Shot or ends after it. Move \"from\" or lengthen the Shot.\n- A breath or a laugh cut off by the end of its Shot.\n- The background steps at a cut: rain or traffic under one line, silence under the next. The take was not asked for a\n dry voice, or a Shot without a line plays its clip's air between clean lines.\n- A subtitle over a face, a subtitle that differs from the line by a letter, a subtitle left on a Shot where nobody\n speaks.\n- A plate over a face, or words that say what the picture under them contradicts.\n- A jump cut: two Shots with the same framing in a row.\n- A one-frame flash at a cut: the last frame of a Shot belongs to another moment.\n- A place that changes inside a scene: another door, other seats, the people on other sides.\n- Leftovers of the source: burned-in captions, a timer, another ad's graphics in reused footage.\n- A prop that argues with the story: a tablet in the background of an ad about less screen time.\n";
11
- readonly listening: "\nLISTENING WHEN YOU CANNOT HEAR\n\nYou read frames and words; you do not hear. \"heard\" gives the words of every clip, a meter gives a level, and neither\ntells whose voice a line is in, how old it sounds, or whether the background jumps at a cut. Someone or something that\nhears has to listen. Choose what you have.\n\nWHAT TO PREPARE\n\nOne sound file per line, cut from the take by the line's own times, and the finished video:\n\n ffmpeg -ss <from> -t <seconds> -i takes/clip-<shot>.mp4 -vn -ac 1 line-<character>-<n>.wav\n\nTHE PERSON YOU WORK FOR LISTENS\n\nSend them the lines of one character at a time, in the order of the film, and the finished video, with these\nquestions. It takes them about as long as the film is.\n\n- For each character: are these all one person? Which line is someone else, older, younger, or in another accent?\n- Does every voice fit who we see: the child a child, the grandmother old, the man a man?\n- In the finished video: does the noise behind the voices jump at a cut? Is a word, a breath or a laugh cut off? Is\n the music ever in the way of a line?\n\nA MODEL THAT HEARS LISTENS\n\nWhen you can call a model that takes audio (Gemini does), ask it these three things. Ask at least two models and act\nonly on what two of them report about the same line: one model alone hears two people in a single unbroken take.\n\n1. One voice, blind. Send one line and do not say who should be speaking:\n \"One person speaks in this clip. From what you hear: sex; age group (young child, older child, teenager, young\n adult, middle-aged, older adult); accent; how sure you are of the age group.\"\n Ask it of the take, and again of the same line cut out of the finished video: what was done to the sound in\n between can change the voice.\n2. One character. Send all the lines of one character as numbered clips, in the order of the film:\n \"All these clips should be the same character: <who>. The moods differ, which is normal for one person. Group\n the clips by voice; for each clip that stands apart say how it differs and how noticeable it is; give the age\n each clip sounds.\"\n Choosing between rerolls of one line: send three or four good lines of the character as the reference, then the\n candidates, and ask which a viewer would take for the same person.\n3. The finished video, with the list of lines and the times their Shots start:\n \"Report every problem a viewer could notice, with its time and how noticeable it is: a voice that changes or\n does not fit its speaker; clicks, a word cut off, a jump in background noise between two Shots; music too loud,\n pumping, a jarring start or end; a line too quiet or too loud.\"\n A model that knows the script hears what it expects: it called a child's line an adult's twice where the blind\n question and the character question both heard a child. Believe questions 1 and 2 over question 3 for voices, and\n question 3 for the background, cut-off sounds and the music. Ask for faults and their times, never for a verdict:\n asked whether a video would pass as professional work, both models failed one that people had already accepted.\n\nWHAT DOES NOT WORK\n\n- Pitch as a measure of age, and moving the pitch of a line to fix its voice: listeners hear the processing.\n- Removing a take's background afterwards with a speech isolator: it drops a child's scream and the tail of a breath,\n and it turned a girl of ten into a grown woman (the same take, left alone, was a child to every model). Ask for a\n dry voice in the take's prompt instead (\"fgrove creatives montage guide takes\").\n";
11
+ readonly listening: "\nLISTENING WHEN YOU CANNOT HEAR\n\nYou read frames and words; you do not hear. \"heard\" gives the words of every clip, a meter gives a level, and neither\ntells whose voice a line is in, how old it sounds, or whether the background jumps at a cut. Someone or something that\nhears has to listen. Choose what you have.\n\nWHAT TO PREPARE\n\nOne sound file per line, cut from the take by the line's own times, and the finished video:\n\n ffmpeg -ss <from> -t <seconds> -i takes/clip-<shot>.mp4 -vn -ac 1 line-<character>-<n>.wav\n\nTHE PERSON YOU WORK FOR LISTENS\n\nTheir answer settles a voice. Ask in the doubt reel of check 2 (main guide, step 6): only the lines in doubt, each\nunder its question, about 20 seconds; a whole film to listen to waits for hours. These are the questions:\n\n- For each character: are these all one person? Which line is someone else, older, younger, or in another accent?\n- Does every voice fit who we see: the child a child, the grandmother old, the man a man?\n- In the finished video: does the noise behind the voices jump at a cut? Is a word, a breath or a laugh cut off? Is\n the music ever in the way of a line?\n\nA MODEL THAT HEARS LISTENS\n\nA model shortlists doubts for the reel; it does not decide them. When you can call a model that takes audio (Gemini\ndoes), ask it these three things. Ask at least two models and act\nonly on what two of them report about the same line: one model alone hears two people in a single unbroken take.\n\n1. One voice, blind. Send one line and do not say who should be speaking:\n \"One person speaks in this clip. From what you hear: sex; age group (young child, older child, teenager, young\n adult, middle-aged, older adult); accent; how sure you are of the age group.\"\n Ask it of the take, and again of the same line cut out of the finished video: what was done to the sound in\n between can change the voice.\n2. One character. Send all the lines of one character as numbered clips, in the order of the film:\n \"All these clips should be the same character: <who>. The moods differ, which is normal for one person. Group\n the clips by voice; for each clip that stands apart say how it differs and how noticeable it is; give the age\n each clip sounds.\"\n Choosing between rerolls of one line: send three or four good lines of the character as the reference, then the\n candidates, and ask which a viewer would take for the same person.\n3. The finished video, with the list of lines and the times their Shots start:\n \"Report every problem a viewer could notice, with its time and how noticeable it is: a voice that changes or\n does not fit its speaker; clicks, a word cut off, a jump in background noise between two Shots; music too loud,\n pumping, a jarring start or end; a line too quiet or too loud.\"\n A model that knows the script hears what it expects: it called a child's line an adult's twice where the blind\n question and the character question both heard a child. Believe questions 1 and 2 over question 3 for voices, and\n question 3 for the background, cut-off sounds and the music. Ask for faults and their times, never for a verdict:\n asked whether a video would pass as professional work, both models failed one that people had already accepted.\n\nWHAT DOES NOT WORK\n\n- Pitch as a measure of age, and moving the pitch of a line to fix its voice: listeners hear the processing.\n- Removing a take's background afterwards with a speech isolator: it drops a child's scream and the tail of a breath,\n and it turned a girl of ten into a grown woman (the same take, left alone, was a child to every model). Ask for a\n dry voice in the take's prompt instead (\"fgrove creatives montage guide takes\").\n";
12
12
  };
13
13
  export type MontageGuideTopic = keyof typeof MONTAGE_GUIDE_TOPICS;
14
14
  /** The guide, or one of its topics; an unknown topic is an error that names the topics. */
@@ -21,11 +21,27 @@ This is the order of work. Four topics hold the detail of a step; read each when
21
21
 
22
22
  Every command prints JSON. Choose the workspace and project once with "fgrove use", or pass --project.
23
23
 
24
+ THE USER'S THREE CHECKS
25
+
26
+ You measure whatever has a number. The user judges what needs eyes, ears and taste, at three checks and nowhere else.
27
+ A check costs them three minutes at most: send what to look at and how long it takes, questions each answered in a
28
+ word, and your recommendation; then wait for the answer. A short listen by a person settled what several hundred model
29
+ listens had not.
30
+
31
+ 1. The board, end of step 3. Does the story read? Are these the people and the places? Which Shots to redo? Is the
32
+ estimate accepted? Nothing is paid for before it.
33
+ 2. The rough cut, end of step 6. The whole cut and the doubt reel (step 6). For each doubt: fine or redo. After it
34
+ the Shots' lengths are frozen, and one round of fixes follows.
35
+ 3. The final, step 7. One variant end to end: approve, or what to change.
36
+
37
+ "Minor is fine" from the user closes a doubt: note it and do not raise it again.
38
+
24
39
  COSTS
25
40
 
26
41
  A generated clip costs per started 5 seconds: Gemini Omni 1.2 Flash 105 credits at 1080p (70 at 720p), Kling 4.0 236
27
- (157). An assembled video costs 1 credit per variant. Previews, uploads, stored clips and music are free. 100 credits
28
- are $1. A 90-second drama of 25 takes is about 3 000 credits. Before anything paid:
42
+ (157). A generated music track costs 30 credits per started minute of its length. An assembled video costs 1 credit
43
+ per variant. Previews, uploads, stored clips and stored music are free. 100 credits are $1. A 90-second drama of 25
44
+ takes is about 3 000 credits. Before anything paid:
29
45
 
30
46
  fgrove creatives credits
31
47
  fgrove creatives montage start cut.json --angle <angle> --brand <brand> --estimate
@@ -84,11 +100,10 @@ now) and render the words over the keyframes:
84
100
 
85
101
  fgrove creatives montage preview cut.json --out storyboard
86
102
 
87
- Open storyboard/index.html: plates, the first subtitle of each line, the post of a variant. When the user asked to see a
88
- storyboard, send it now, name every place where you departed from the script, and keep working on what does not depend
89
- on their answer.
103
+ Open storyboard/index.html: plates, the first subtitle of each line, the post of a variant. Send it to the user with
104
+ the estimate for check 1, and name every place where you departed from the script.
90
105
 
91
- Done when no plate or subtitle covers a face and the user has what they asked to review.
106
+ Done when no plate or subtitle covers a face and the user has passed check 1.
92
107
 
93
108
  4. FIRST CUT: BUY THE TAKES
94
109
 
@@ -127,6 +142,8 @@ kling-4.
127
142
  - Reroll what fails; everything delivered is reused at no cost:
128
143
  fgrove creatives montage revise <generationId> --reroll <shot> [<shot> ...] --out takes-2.json
129
144
  Edit the rerolled Shots' prompts in takes-2.json and start it like the first cut.
145
+ - Two rerolls per Shot at most. After that, restage it: the line from off screen over the listener, a cutaway, the
146
+ Shot split in two, or the sound of an accepted take under the new picture.
130
147
 
131
148
  Done when every take says its lines exactly and passes the blooper list frame by frame, and every character's lines
132
149
  have been listened to as one voice.
@@ -135,8 +152,8 @@ have been listened to as one voice.
135
152
 
136
153
  fgrove creatives montage revise <generationId> --out cut.json
137
154
 
138
- writes a cut sheet in which every delivered clip is a stored clip. Turn it into the finished video ("guide cut-sheet"
139
- has every field):
155
+ writes a cut sheet in which every delivered clip, and a generated music track, is a stored file. Turn it into the
156
+ finished video ("guide cut-sheet" has every field):
140
157
 
141
158
  - A Shot per line. Set "from" and "seconds" from the clip's "words": start 0.3 s before the line's first word, end
142
159
  0.4 s after its last. Recognition often puts the first word after a silence too early: trust the word's end.
@@ -155,8 +172,9 @@ has every field):
155
172
  puts a plate on a Shot.
156
173
  - An end card from an earlier ad: a "clip" of that Variation from the card's first clean frame, with "clean": true, so
157
174
  nothing is drawn over the card's own graphics.
158
- - Music: one instrumental track. With lines in the cut it becomes a bed under them and dips while someone speaks; turn
159
- it down further with "volume".
175
+ - Music: one instrumental track, a file or "generate": { "prompt" }, made as long as the longest variant. Keep the
176
+ prompt plain (style, mood, instruments): one that spelled the ending out in bars came back 48 s long for 30. With
177
+ lines in the cut it becomes a bed under them and dips while someone speaks; turn it down further with "volume".
160
178
 
161
179
  fgrove creatives montage preview cut.json --out storyboard
162
180
  fgrove creatives montage start cut.json --angle <angle> --brand <brand> --pack <creative> --wait
@@ -164,7 +182,14 @@ has every field):
164
182
  This costs 1 credit per variant. Read "findings" of every variant and fix what they name; cut again as often as
165
183
  needed.
166
184
 
167
- Done when every variant is delivered and its "findings" are empty or each one is explained to the user.
185
+ Then the doubt reel for check 2: every moment you are unsure of, cut out and joined, each under a plate with one
186
+ question. It is one more Montage of the delivered clips, 1 credit: a Shot per doubt with the same "clip" and "from" as
187
+ the moment, 2 to 4 s, "sound": true, and a "text" that numbers it and asks ("2 of 4. Jess: the same woman as in 1?").
188
+ Put the listening models' shortlist ("guide listening") in it, never their verdict. A doubt about the mix (the music, a
189
+ jump in the background at a cut) is a time in the whole cut instead.
190
+
191
+ Done when every variant is delivered, its "findings" are empty or each one is explained to the user, and the user has
192
+ passed check 2.
168
193
 
169
194
  7. CHECK THE FINISHED VIDEOS, THEN APPROVE
170
195
 
@@ -181,6 +206,7 @@ Done when every variant is delivered and its "findings" are empty or each one is
181
206
  - Hand the videos to a reviewer that did not make them: a subagent with the shot list, the lines and the cut times,
182
207
  told to assume there are mistakes and to report each with a timestamp and a saved frame. You have seen every clip too
183
208
  often to see it.
209
+ - Check 3: send the user one variant end to end and what you changed since check 2.
184
210
 
185
211
  fgrove creatives generations approve <outputId> [<outputId> ...]
186
212
 
@@ -203,7 +229,9 @@ TOP LEVEL
203
229
  language two letters, the language of the lines (default "en"); used to recognize them
204
230
  disclaimer the small line at the bottom of every Shot
205
231
  textStyle "plate-light" (default: black words on a white plate) or "plate-dark"
206
- music { "track": <file>, "from": <seconds>, "volume": 0 to 1 }; fades out over the last 0.6 s
232
+ music { "track": <file>, "from": <seconds>, "volume": 0 to 1 }; fades out over the last 0.6 s. In place of
233
+ "track", "generate": { "prompt", "seconds"? } has the music model make it: 10 to 120 whole seconds, by
234
+ default the longest variant rounded up; 30 credits per started minute, made once for every variant
207
235
  shots the body in order: up to 80 Shots, 120 s, 40 generated clips
208
236
  variants up to 5; without any, one video
209
237
 
@@ -238,6 +266,7 @@ A <file> is one of:
238
266
  { "file": "clips/a.mp4" } a local file, relative to the cut sheet; uploaded once
239
267
  { "variation": "BND_vd001_01_H1" } a Variation's video ("size" picks one)
240
268
  { "generation": "<id>", "shot": "<id>" } a clip an earlier Montage generated; "montage revise" writes these
269
+ { "generation": "<id>", "music": true } the music track an earlier Montage generated; "revise" writes it
241
270
 
242
271
  A VARIANT
243
272
 
@@ -383,8 +412,8 @@ One sound file per line, cut from the take by the line's own times, and the fini
383
412
 
384
413
  THE PERSON YOU WORK FOR LISTENS
385
414
 
386
- Send them the lines of one character at a time, in the order of the film, and the finished video, with these
387
- questions. It takes them about as long as the film is.
415
+ Their answer settles a voice. Ask in the doubt reel of check 2 (main guide, step 6): only the lines in doubt, each
416
+ under its question, about 20 seconds; a whole film to listen to waits for hours. These are the questions:
388
417
 
389
418
  - For each character: are these all one person? Which line is someone else, older, younger, or in another accent?
390
419
  - Does every voice fit who we see: the child a child, the grandmother old, the man a man?
@@ -393,7 +422,8 @@ questions. It takes them about as long as the film is.
393
422
 
394
423
  A MODEL THAT HEARS LISTENS
395
424
 
396
- When you can call a model that takes audio (Gemini does), ask it these three things. Ask at least two models and act
425
+ A model shortlists doubts for the reel; it does not decide them. When you can call a model that takes audio (Gemini
426
+ does), ask it these three things. Ask at least two models and act
397
427
  only on what two of them report about the same line: one model alone hears two people in a single unbroken take.
398
428
 
399
429
  1. One voice, blind. Send one line and do not say who should be speaking:
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.373",
7
+ "repositoryCliVersion": "0.1.375",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.366",
10
+ "bundleVersion": "2.0.368",
11
11
  "stepContractVersion": 3,
12
12
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
13
13
  "managedFiles": [
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
48
- "sha256": "cfa50813a9abe7fa68c2af75ff17436fc85e74d1925477de8edcbce46ea4088e"
48
+ "sha256": "f241802bdd646f3d2a2278320626bac3394b60d02dcbddb0df91c5936f850718"
49
49
  },
50
50
  {
51
51
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -145,16 +145,16 @@
145
145
  },
146
146
  {
147
147
  "path": "funnel-docs.config.json",
148
- "sha256": "fe0596aab0c1fc32510645957f5aa57e968d716440a720b3619b30a0312d230e"
148
+ "sha256": "1d0984a547eb8015bae73d1fdb468aed35324cf77c988fa0fa013370cf4bbfa3"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.372",
154
+ "repositoryCliVersion": "0.1.374",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.365",
157
+ "bundleVersion": "2.0.367",
158
158
  "stepContractVersion": 3,
159
159
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
160
160
  "managedFiles": [
@@ -192,7 +192,7 @@
192
192
  },
193
193
  {
194
194
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
195
- "sha256": "3a4bed43f0853688e930f1a0c005f39cc362ed295b4601fe195396eb38acd89a"
195
+ "sha256": "10c3663aaabb8dcb8dbdd23c588e6d6aab1d93aadc9fa0416a04b03ff341e43b"
196
196
  },
197
197
  {
198
198
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -292,16 +292,16 @@
292
292
  },
293
293
  {
294
294
  "path": "funnel-docs.config.json",
295
- "sha256": "0b86aa9c6fd78412728225b661c7b1bac97394cf4a9bebaf4f0c54890021d027"
295
+ "sha256": "5d67b18fcfc8d7c3e630b8ce74ea3b6b71a80becc3d68f1d46f430b25c202a36"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.371",
301
+ "repositoryCliVersion": "0.1.373",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.364",
304
+ "bundleVersion": "2.0.366",
305
305
  "stepContractVersion": 3,
306
306
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
307
307
  "managedFiles": [
@@ -339,7 +339,7 @@
339
339
  },
340
340
  {
341
341
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
342
- "sha256": "73fb5bc68fe203f8375380139af08baebe7b4af45421872f60d839f8c229aa5f"
342
+ "sha256": "cfa50813a9abe7fa68c2af75ff17436fc85e74d1925477de8edcbce46ea4088e"
343
343
  },
344
344
  {
345
345
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -439,16 +439,16 @@
439
439
  },
440
440
  {
441
441
  "path": "funnel-docs.config.json",
442
- "sha256": "58201e37f2a2fb93d912e2ed8d0335ca4dccbb4fbbf5fb892c4cdc32cdaa96b9"
442
+ "sha256": "fe0596aab0c1fc32510645957f5aa57e968d716440a720b3619b30a0312d230e"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.370",
448
+ "repositoryCliVersion": "0.1.372",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.363",
451
+ "bundleVersion": "2.0.365",
452
452
  "stepContractVersion": 3,
453
453
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
454
454
  "managedFiles": [
@@ -486,7 +486,7 @@
486
486
  },
487
487
  {
488
488
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
489
- "sha256": "20fa52d74baf761ec9fa1b8042bb1e680872c5bef8c6d253da658867dca419ba"
489
+ "sha256": "3a4bed43f0853688e930f1a0c005f39cc362ed295b4601fe195396eb38acd89a"
490
490
  },
491
491
  {
492
492
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -586,16 +586,16 @@
586
586
  },
587
587
  {
588
588
  "path": "funnel-docs.config.json",
589
- "sha256": "67f7d08d21485b19fb066e639a119095934545097c5623635f7862edfc2d304a"
589
+ "sha256": "0b86aa9c6fd78412728225b661c7b1bac97394cf4a9bebaf4f0c54890021d027"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.369",
595
+ "repositoryCliVersion": "0.1.371",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.362",
598
+ "bundleVersion": "2.0.364",
599
599
  "stepContractVersion": 3,
600
600
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
601
601
  "managedFiles": [
@@ -633,7 +633,7 @@
633
633
  },
634
634
  {
635
635
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
636
- "sha256": "034e15a21dd82f0f15468015f3b70e4ba34bd6aeee9ce29a3718e0857da93759"
636
+ "sha256": "73fb5bc68fe203f8375380139af08baebe7b4af45421872f60d839f8c229aa5f"
637
637
  },
638
638
  {
639
639
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -733,16 +733,16 @@
733
733
  },
734
734
  {
735
735
  "path": "funnel-docs.config.json",
736
- "sha256": "d6d910da200611b719c9385d8467cf3675450dbae684f2e961c1442d9ac98eb3"
736
+ "sha256": "58201e37f2a2fb93d912e2ed8d0335ca4dccbb4fbbf5fb892c4cdc32cdaa96b9"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.368",
742
+ "repositoryCliVersion": "0.1.370",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.361",
745
+ "bundleVersion": "2.0.363",
746
746
  "stepContractVersion": 3,
747
747
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
748
748
  "managedFiles": [
@@ -780,7 +780,7 @@
780
780
  },
781
781
  {
782
782
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
783
- "sha256": "275ee52e64610321259b8af3418dfb21745cdf4c82ad3a10bb1d1922dc64c6a7"
783
+ "sha256": "20fa52d74baf761ec9fa1b8042bb1e680872c5bef8c6d253da658867dca419ba"
784
784
  },
785
785
  {
786
786
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -880,16 +880,16 @@
880
880
  },
881
881
  {
882
882
  "path": "funnel-docs.config.json",
883
- "sha256": "a322833e7872e04d895ab4ea07dbe410855ee98b867e8ba9d9f61502fc9285a9"
883
+ "sha256": "67f7d08d21485b19fb066e639a119095934545097c5623635f7862edfc2d304a"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.367",
889
+ "repositoryCliVersion": "0.1.369",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.360",
892
+ "bundleVersion": "2.0.362",
893
893
  "stepContractVersion": 3,
894
894
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
895
895
  "managedFiles": [
@@ -911,7 +911,7 @@
911
911
  },
912
912
  {
913
913
  "path": "docs/funnelsgrove/contracts/content-answers.md",
914
- "sha256": "49ef258b7320628c42fc8381fab7e65fdf4067e8bd6da7afe72e6ab634e2a4b2"
914
+ "sha256": "b0b15b74a397a46977be9b60be4dd9391101208369e16fed182d4831b963ddef"
915
915
  },
916
916
  {
917
917
  "path": "docs/funnelsgrove/contracts/flow-routing.md",
@@ -927,7 +927,7 @@
927
927
  },
928
928
  {
929
929
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
930
- "sha256": "bd323bff8a5b6312aa4e5734c83e50980d0d35d45f94ab6a3a3193e9a696b4cb"
930
+ "sha256": "034e15a21dd82f0f15468015f3b70e4ba34bd6aeee9ce29a3718e0857da93759"
931
931
  },
932
932
  {
933
933
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -1027,7 +1027,7 @@
1027
1027
  },
1028
1028
  {
1029
1029
  "path": "funnel-docs.config.json",
1030
- "sha256": "9638246c7490ae1dfe1ff07b20a9d820b995df59643119d18ccd11f69b6f6b2f"
1030
+ "sha256": "d6d910da200611b719c9385d8467cf3675450dbae684f2e961c1442d9ac98eb3"
1031
1031
  }
1032
1032
  ]
1033
1033
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/cli",
3
- "version": "0.1.373",
3
+ "version": "0.1.375",
4
4
  "description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.366",
3
+ "bundleVersion": "2.0.368",
4
4
  "stepContractVersion": 3,
5
5
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
6
6
  "managedFiles": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  {
40
40
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
41
- "sha256": "cfa50813a9abe7fa68c2af75ff17436fc85e74d1925477de8edcbce46ea4088e"
41
+ "sha256": "f241802bdd646f3d2a2278320626bac3394b60d02dcbddb0df91c5936f850718"
42
42
  },
43
43
  {
44
44
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "path": "funnel-docs.config.json",
141
- "sha256": "fe0596aab0c1fc32510645957f5aa57e968d716440a720b3619b30a0312d230e"
141
+ "sha256": "1d0984a547eb8015bae73d1fdb468aed35324cf77c988fa0fa013370cf4bbfa3"
142
142
  }
143
143
  ]
144
144
  }
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
17
17
 
18
18
  ### Package release order
19
19
 
20
- Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.46.0`, then `@funnelsgrove/analytics` `0.29.0`, then `@funnelsgrove/payments` `0.73.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.373`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.46.0`, then `@funnelsgrove/analytics` `0.29.0`, then `@funnelsgrove/payments` `0.73.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.375`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
21
21
  <!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
22
22
 
23
23
  ## Version-last policy
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.366",
3
+ "bundleVersion": "2.0.368",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.366",
3
+ "bundleVersion": "2.0.368",
4
4
  "stepContractVersion": 3,
5
5
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
6
6
  "managedFiles": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  {
40
40
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
41
- "sha256": "cfa50813a9abe7fa68c2af75ff17436fc85e74d1925477de8edcbce46ea4088e"
41
+ "sha256": "f241802bdd646f3d2a2278320626bac3394b60d02dcbddb0df91c5936f850718"
42
42
  },
43
43
  {
44
44
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "path": "funnel-docs.config.json",
141
- "sha256": "fe0596aab0c1fc32510645957f5aa57e968d716440a720b3619b30a0312d230e"
141
+ "sha256": "1d0984a547eb8015bae73d1fdb468aed35324cf77c988fa0fa013370cf4bbfa3"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "836ba5ea289735986e6c5334ea86032c4316a8f4d00333fca7aeb017967ffa76",
3
+ "sourceTreeHash": "eee3a83efb2c7abc418fa426f734281a0146679d4147eb0d191c0bb3146fcc06",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.366",
5
+ "docsBundleVersion": "2.0.368",
6
6
  "files": [
7
7
  {
8
8
  "path": ".env.example",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  {
18
18
  "path": ".funnelsgrove-docs.json",
19
- "sha256": "56600b183d80d061034195388d70ad501d25211de6ec3cf8d376136dfa406de8",
19
+ "sha256": "5081f81411d10c4d55b060ed2ad1315775922829627597ac942b51e644af3155",
20
20
  "mode": "100644"
21
21
  },
22
22
  {
@@ -76,7 +76,7 @@
76
76
  },
77
77
  {
78
78
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
79
- "sha256": "cfa50813a9abe7fa68c2af75ff17436fc85e74d1925477de8edcbce46ea4088e",
79
+ "sha256": "f241802bdd646f3d2a2278320626bac3394b60d02dcbddb0df91c5936f850718",
80
80
  "mode": "100644"
81
81
  },
82
82
  {
@@ -206,7 +206,7 @@
206
206
  },
207
207
  {
208
208
  "path": "funnel-docs.config.json",
209
- "sha256": "fe0596aab0c1fc32510645957f5aa57e968d716440a720b3619b30a0312d230e",
209
+ "sha256": "1d0984a547eb8015bae73d1fdb468aed35324cf77c988fa0fa013370cf4bbfa3",
210
210
  "mode": "100644"
211
211
  },
212
212
  {
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
17
17
 
18
18
  ### Package release order
19
19
 
20
- Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.46.0`, then `@funnelsgrove/analytics` `0.29.0`, then `@funnelsgrove/payments` `0.73.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.373`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.46.0`, then `@funnelsgrove/analytics` `0.29.0`, then `@funnelsgrove/payments` `0.73.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.375`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
21
21
  <!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
22
22
 
23
23
  ## Version-last policy
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.366",
3
+ "bundleVersion": "2.0.368",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",