@funnelsgrove/cli 0.1.370 → 0.1.372
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/dist/creativeCommands.d.ts +8 -0
- package/dist/creativeCommands.js +13 -5
- package/dist/creativeMontage.d.ts +4 -0
- package/dist/creativeMontage.js +3 -0
- package/dist/creativeMontageGuide.d.ts +15 -0
- package/dist/creativeMontageGuide.js +437 -0
- package/funnel-contract-compatibility.json +43 -43
- package/package.json +4 -4
- package/template_docs/.funnelsgrove-docs.json +3 -3
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_docs/funnel-docs.config.json +1 -1
- package/template_scaffold/.funnelsgrove-docs.json +3 -3
- package/template_scaffold/.funnelsgrove-scaffold.json +7 -7
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/funnel-docs.config.json +1 -1
- package/template_scaffold/package-lock.json +15 -15
- package/template_scaffold/package.json +3 -3
|
@@ -161,6 +161,14 @@ export type GenerationFile = {
|
|
|
161
161
|
contentType: string;
|
|
162
162
|
};
|
|
163
163
|
export type GenerationOutput = {
|
|
164
|
+
words?: {
|
|
165
|
+
language: string | null;
|
|
166
|
+
words: {
|
|
167
|
+
text: string;
|
|
168
|
+
start: number;
|
|
169
|
+
end: number;
|
|
170
|
+
}[];
|
|
171
|
+
} | null;
|
|
164
172
|
id: string;
|
|
165
173
|
role: string;
|
|
166
174
|
scene_index: number | null;
|
package/dist/creativeCommands.js
CHANGED
|
@@ -3,6 +3,7 @@ import { mkdir, readdir, readFile, stat, writeFile } from 'node:fs/promises';
|
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { pathToFileURL } from 'node:url';
|
|
5
5
|
import { downloadMontage, previewBackdrops, resolveCutSheet, reviseCutSheet, summarizeMontage, writeStoryboard, } from './creativeMontage.js';
|
|
6
|
+
import { MONTAGE_GUIDE_TOPICS, montageGuide } from './creativeMontageGuide.js';
|
|
6
7
|
const ANGLE_STATUSES = ['working', 'burned_out', 'no_data', 'under_review', 'idea', 'failed'];
|
|
7
8
|
const DICTIONARY_FIELDS = ['format', 'task_type', 'creo_type', 'brand', 'size', 'visual_hook', 'text_hook'];
|
|
8
9
|
const api = (scope, procedure, type, data = {}) => (scope.callApi({
|
|
@@ -537,7 +538,7 @@ const registerGenerationRunCommands = (root, input) => {
|
|
|
537
538
|
.option('--pain <moment>', 'Format without --texts: the pain moment the copy opens with')
|
|
538
539
|
.option('--swap <instruction>', 'Remix: brand swap made once on the clean plate and shared by every text set, such as "Replace the PayPal wordmark with the Venmo wordmark"')
|
|
539
540
|
.option('--pack <creative>', 'Approve outputs into this existing Creative, such as st003 (default: one new Creative per batch)')
|
|
540
|
-
.option('--model <model>', 'nano-banana-2.1 | gpt-image-2 (image); seedance-2-mini | seedance-2.5 | kling-4 (video)')
|
|
541
|
+
.option('--model <model>', 'nano-banana-2.1 | gpt-image-2 (image); seedance-2-mini | seedance-2.5 | kling-4 | gemini-omni-flash-1.2 (video)')
|
|
541
542
|
.option('--quality <quality>', 'low | medium | high (image scenes and keyframes)')
|
|
542
543
|
.option('--resolution <resolution>', 'Video clips: 480p | 720p | 1080p (default 720p)')
|
|
543
544
|
.option('--sizes <list>', 'Comma-separated sizes, such as 1080x1350,1080x1920').option('--count <n>', 'Images to make (1-4); each is rendered in every size')
|
|
@@ -1208,9 +1209,9 @@ const registerCaptionCommands = (root, input) => {
|
|
|
1208
1209
|
return { fileName: exported.fileName, contentType: exported.contentType, content: exported.content };
|
|
1209
1210
|
}));
|
|
1210
1211
|
};
|
|
1211
|
-
// --- Montage (CRE-BR-045 to CRE-BR-
|
|
1212
|
-
const MONTAGE_MODEL_HINT = 'Video model of the generated clips: seedance-2-mini | seedance-2.5 | kling-4 (people and faces); a Shot may set its own';
|
|
1213
|
-
const MONTAGE_RESOLUTION_HINT = 'Resolution of the generated clips: 480p | 720p | 1080p (Kling 4.0: 720p or 1080p)';
|
|
1212
|
+
// --- Montage (CRE-BR-045 to CRE-BR-051) ---
|
|
1213
|
+
const MONTAGE_MODEL_HINT = 'Video model of the generated clips: seedance-2-mini | seedance-2.5 | kling-4 (people and faces) | gemini-omni-flash-1.2 (people who speak); a Shot may set its own';
|
|
1214
|
+
const MONTAGE_RESOLUTION_HINT = 'Resolution of the generated clips: 480p | 720p | 1080p (Kling 4.0 and Gemini Omni 1.2 Flash: 720p or 1080p)';
|
|
1214
1215
|
/** Uploads one file a cut sheet names and returns its upload ref. */
|
|
1215
1216
|
const uploadMontageFile = async (scope, file, body, hash, fetchFn = fetch) => {
|
|
1216
1217
|
const prepared = await api(scope, 'prepareMontageUpload', 'mutation', {
|
|
@@ -1257,11 +1258,16 @@ const montageSummary = (detail) => ({ ...summarizeGeneration(detail), montage: s
|
|
|
1257
1258
|
/** `fgrove creatives montage …` */
|
|
1258
1259
|
const registerMontageCommands = (root, input) => {
|
|
1259
1260
|
const { scoped, run } = input;
|
|
1260
|
-
const montage = root.command('montage').description('Montage: cut one video per variant from Shots described by a JSON cut sheet (CRE-BR-045 to CRE-BR-
|
|
1261
|
+
const montage = root.command('montage').description('Montage: cut one video per variant from Shots described by a JSON cut sheet (CRE-BR-045 to CRE-BR-051)');
|
|
1261
1262
|
montage.addHelpText('after', `
|
|
1263
|
+
Making a video ad from a script, step by step: fgrove creatives montage guide
|
|
1264
|
+
|
|
1262
1265
|
In a local cut sheet a stored file may be written { "file": "<path relative to the cut sheet>" } wherever a media ref goes
|
|
1263
1266
|
(clip, generate.keyframe, still, music.track, also in variants[].replace); it is uploaded once per command. A Variation's
|
|
1264
1267
|
video may be written { "variation": "<full name or vd005_01>", "size": "1080x1920" }.`);
|
|
1268
|
+
// Plain text, no login: the procedure an agent follows, and its topics.
|
|
1269
|
+
montage.command('guide [topic]').description(`How to make a video ad from a script with the Montage flow; topics: ${Object.keys(MONTAGE_GUIDE_TOPICS).join(', ')}`)
|
|
1270
|
+
.action((topic) => { process.stdout.write(montageGuide(topic)); });
|
|
1265
1271
|
scoped(montage.command('preview <cutSheet>').description('Render every Shot\'s on-screen text for free, over its local still or keyframe, as an HTML storyboard; uploads nothing')
|
|
1266
1272
|
.option('--out <dir>', 'Storyboard folder (default: <cut sheet name>.storyboard beside the cut sheet)')
|
|
1267
1273
|
.option('--model <model>', MONTAGE_MODEL_HINT)
|
|
@@ -1382,6 +1388,8 @@ Examples:
|
|
|
1382
1388
|
fgrove creatives captions transcribe ./talk.mp4 --angle C004 --brand Amazon --wait --project claimbee > words.json
|
|
1383
1389
|
fgrove creatives captions approve <generation id> --words words.json --style neon-glow --wait --project claimbee
|
|
1384
1390
|
fgrove creatives captions export <generation id> --format srt --out talk.srt --project claimbee
|
|
1391
|
+
fgrove creatives montage guide
|
|
1392
|
+
fgrove creatives montage guide takes
|
|
1385
1393
|
fgrove creatives montage preview ./vd007/cut.json --project acme
|
|
1386
1394
|
fgrove creatives montage start ./vd007/cut.json --angle C004 --brand "Acme Claims" --model kling-4 --estimate --project acme
|
|
1387
1395
|
fgrove creatives montage show <generation id> --wait --download ./vd007/out --project acme
|
|
@@ -108,8 +108,12 @@ export declare const summarizeMontage: (detail: GenerationDetail) => {
|
|
|
108
108
|
posterUrl: string | null;
|
|
109
109
|
error: string | null;
|
|
110
110
|
keptVariationId: string | null;
|
|
111
|
+
heard: string;
|
|
112
|
+
findings: string[];
|
|
111
113
|
}[];
|
|
112
114
|
clips: {
|
|
115
|
+
heard?: string | undefined;
|
|
116
|
+
words?: (string | number)[][] | undefined;
|
|
113
117
|
shotId: string;
|
|
114
118
|
seconds: number;
|
|
115
119
|
model: string;
|
package/dist/creativeMontage.js
CHANGED
|
@@ -212,10 +212,13 @@ export const summarizeMontage = (detail) => {
|
|
|
212
212
|
name, seconds, outputId: output?.id ?? null, status: output?.status ?? null, videoUrl: output ? urlOf(output) : null,
|
|
213
213
|
posterUrl: output?.files[0]?.posterUrl ?? null, error: output?.error?.message ?? null,
|
|
214
214
|
keptVariationId: output?.kept_variation_id ?? null,
|
|
215
|
+
heard: output?.words?.words.map((word) => word.text).join(' ') ?? '',
|
|
216
|
+
findings: (output?.qa.softFindings ?? []).map((finding) => finding.message),
|
|
215
217
|
})),
|
|
216
218
|
clips: clips.map(({ shotId, seconds, model, resolution, output }) => ({
|
|
217
219
|
shotId, seconds, model, resolution, outputId: output?.id ?? null, status: output?.status ?? null, url: output ? urlOf(output) : null,
|
|
218
220
|
error: output?.error?.message ?? null,
|
|
221
|
+
...(output?.words ? { heard: output.words.words.map((word) => word.text).join(' '), words: output.words.words.map(({ text, start, end }) => [text, start, end]) } : {}),
|
|
219
222
|
})),
|
|
220
223
|
...(videoIds.length > 0 ? { approving: `fgrove creatives generations approve ${videoIds.join(' ')}` } : {}),
|
|
221
224
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The procedure `fgrove creatives montage guide` prints: how an agent makes a scripted video ad with the Montage flow
|
|
3
|
+
* (CRE-UC-014). It ships inside the CLI so that anyone with the CLI has it, at the version of the commands it names.
|
|
4
|
+
* The main guide is the order of work; a topic holds what one step needs in detail and is read when that step comes.
|
|
5
|
+
* Plain text: an agent reads it from a terminal.
|
|
6
|
+
*/
|
|
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";
|
|
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
|
+
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";
|
|
12
|
+
};
|
|
13
|
+
export type MontageGuideTopic = keyof typeof MONTAGE_GUIDE_TOPICS;
|
|
14
|
+
/** The guide, or one of its topics; an unknown topic is an error that names the topics. */
|
|
15
|
+
export declare const montageGuide: (topic?: string) => string;
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The procedure `fgrove creatives montage guide` prints: how an agent makes a scripted video ad with the Montage flow
|
|
3
|
+
* (CRE-UC-014). It ships inside the CLI so that anyone with the CLI has it, at the version of the commands it names.
|
|
4
|
+
* The main guide is the order of work; a topic holds what one step needs in detail and is read when that step comes.
|
|
5
|
+
* Plain text: an agent reads it from a terminal.
|
|
6
|
+
*/
|
|
7
|
+
const MAIN = `
|
|
8
|
+
MAKE A VIDEO AD FROM A SCRIPT WITH THE MONTAGE FLOW
|
|
9
|
+
|
|
10
|
+
A Montage cuts one video per variant from Shots that a JSON cut sheet describes. A Shot's picture is a stored video, a
|
|
11
|
+
clip the video model makes from a keyframe you give, a still, a frozen frame or another Shot's clip. FunnelsGrove draws
|
|
12
|
+
everything written over it: a plate of words, the subtitles of the spoken line, the disclaimer. A Shot may sound: the
|
|
13
|
+
people in a generated clip say the lines its prompt gives them.
|
|
14
|
+
|
|
15
|
+
This is the order of work. Four topics hold the detail of a step; read each when its step comes:
|
|
16
|
+
|
|
17
|
+
fgrove creatives montage guide cut-sheet every field of the cut sheet (before you write one: steps 3, 4 and 6)
|
|
18
|
+
fgrove creatives montage guide takes how to write the prompt of a clip in which people speak (step 4)
|
|
19
|
+
fgrove creatives montage guide bloopers what to look for in every clip and in the finished video (steps 5 and 7)
|
|
20
|
+
fgrove creatives montage guide listening how to judge voices and the mix when you cannot hear (steps 5 and 7)
|
|
21
|
+
|
|
22
|
+
Every command prints JSON. Choose the workspace and project once with "fgrove use", or pass --project.
|
|
23
|
+
|
|
24
|
+
COSTS
|
|
25
|
+
|
|
26
|
+
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:
|
|
29
|
+
|
|
30
|
+
fgrove creatives credits
|
|
31
|
+
fgrove creatives montage start cut.json --angle <angle> --brand <brand> --estimate
|
|
32
|
+
|
|
33
|
+
Stop and tell the user when the balance is under the estimate.
|
|
34
|
+
|
|
35
|
+
1. TURN THE SCRIPT INTO A SHOT LIST
|
|
36
|
+
|
|
37
|
+
One row per Shot: id, seconds, what the picture shows, who says which line, the plate.
|
|
38
|
+
|
|
39
|
+
- Cut like an editor. One line per Shot; scenes that repeat a beat become one. A line decides its Shot's length: about
|
|
40
|
+
0.4 s a word plus one second. A Shot without a line lasts 2 to 3 s.
|
|
41
|
+
- Takes. A person's voice is made anew in every generated clip, so two clips of one person can sound like two people.
|
|
42
|
+
Give each speaker one take per run of lines: one clip, up to 15 s, in which they say all their consecutive lines.
|
|
43
|
+
Later you cut the take into Shots and put cutaways to the listener between them. The same person in another scene is
|
|
44
|
+
another take: step 5 checks that it is still the same voice.
|
|
45
|
+
- A line may come from outside the frame (a parent behind the camera): the take shows the one who listens.
|
|
46
|
+
- Hooks. One body, up to five variants that differ in the first seconds: a cold start, the first Shots inside a social
|
|
47
|
+
post, a plate over the first Shot, a Shot left out.
|
|
48
|
+
- Check the script against the product: open the product and compare every claim, number and name on a plate or in a
|
|
49
|
+
line with what its screens show. Propose the smallest rewording and tell the user.
|
|
50
|
+
- Footage the script calls "ready": download it and look. Burned-in captions, a voiceover or another ad's graphics make
|
|
51
|
+
it unusable under plates and subtitles; plan to generate those Shots again. An end card of an earlier ad of the same
|
|
52
|
+
brand can be reused whole (step 6).
|
|
53
|
+
|
|
54
|
+
Done when every Shot has an id, a length, a picture, a line or none, and a plate or none; every line belongs to a take;
|
|
55
|
+
the lengths add up to the length the user asked for.
|
|
56
|
+
|
|
57
|
+
2. CAST FIRST, THEN A KEYFRAME FOR EVERY TAKE AND CUTAWAY
|
|
58
|
+
|
|
59
|
+
A generated clip starts from a keyframe: its first frame. Make keyframes with any image tool you have, at 9:16. Codex's
|
|
60
|
+
image tool is free: codex exec --skip-git-repo-check -i cast.png -- "<prompt>"
|
|
61
|
+
A brand's footage, ads and reference frames go only to FunnelsGrove's generation providers (Gemini, OpenAI, sume,
|
|
62
|
+
ElevenLabs); ask the user before any other tool.
|
|
63
|
+
|
|
64
|
+
- Cast sheet. First make one image of the people standing side by side, full height, in plain light, and describe each
|
|
65
|
+
in words you will repeat in every prompt (age, hair, build). Attach the cast sheet to every keyframe prompt and say
|
|
66
|
+
that clothes, place and light are as the prompt says.
|
|
67
|
+
- One place, one look. The first keyframe of a place is a reference for every other keyframe of that place: the same
|
|
68
|
+
door, sofa, car seats, coats on the wall.
|
|
69
|
+
- The first frame is the start of the action: lips just parted to speak, the calm before an outburst. An image model
|
|
70
|
+
refuses a screaming or crying child; draw the moment before and let the clip's prompt carry the outburst.
|
|
71
|
+
- Zones of a 9:16 frame. Faces between 24% and 52% of the height. Nothing that matters between 60% and 76%: subtitles
|
|
72
|
+
are drawn there. The top third calm where the Shot has a plate. Shots that a variant shows inside a post keep
|
|
73
|
+
everything that matters between 20% and 80% of the height: the post shows the middle of the picture.
|
|
74
|
+
- No words and no interface in a picture. A phone's screen stays turned away from the camera. For a product screen,
|
|
75
|
+
record the real product and use the recording as a stored clip.
|
|
76
|
+
|
|
77
|
+
Done when you have opened every keyframe at full size and each shows the same people as the cast sheet, the same place
|
|
78
|
+
as the other keyframes of its scene, hands with five fingers, and its zones free.
|
|
79
|
+
|
|
80
|
+
3. STORYBOARD (FREE)
|
|
81
|
+
|
|
82
|
+
Write the cut sheet with every Shot as it will be in the finished video (the picture as a "still" of its keyframe for
|
|
83
|
+
now) and render the words over the keyframes:
|
|
84
|
+
|
|
85
|
+
fgrove creatives montage preview cut.json --out storyboard
|
|
86
|
+
|
|
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.
|
|
90
|
+
|
|
91
|
+
Done when no plate or subtitle covers a face and the user has what they asked to review.
|
|
92
|
+
|
|
93
|
+
4. FIRST CUT: BUY THE TAKES
|
|
94
|
+
|
|
95
|
+
Write a second cut sheet with one "generate" Shot per take and per cutaway. Each Shot shows its whole clip ("seconds"
|
|
96
|
+
equal to the clip's length), has "sound": true and carries its lines in "say". This cut is long and rough on purpose:
|
|
97
|
+
it buys the clips and brings back what each one says, word by word.
|
|
98
|
+
|
|
99
|
+
- Model: gemini-omni-flash-1.2 at 1080p for every clip with people; it speaks the lines of its prompt. Use kling-4 for
|
|
100
|
+
a keyframe Gemini refuses twice, and seedance-2.5 for hands, objects and screens without faces.
|
|
101
|
+
- Prompts: read "fgrove creatives montage guide takes".
|
|
102
|
+
- "fps": 24: the models make 24 frames a second.
|
|
103
|
+
|
|
104
|
+
fgrove creatives montage start takes.json --angle <angle> --brand <brand> --model gemini-omni-flash-1.2 --resolution 1080p --pack <creative> --wait
|
|
105
|
+
|
|
106
|
+
--brand needs a Brand Kit. --pack is the Creative the approved videos join; create it first to choose its number
|
|
107
|
+
(fgrove creatives create --format vd --number 2).
|
|
108
|
+
|
|
109
|
+
Done when the status is "succeeded", or you know which clip failed and why. A refused clip ("rejected_by_safety") costs
|
|
110
|
+
nothing: start a revised sheet (step 5) once more; when the same clip is refused again, give it another keyframe or
|
|
111
|
+
kling-4.
|
|
112
|
+
|
|
113
|
+
5. JUDGE EVERY TAKE
|
|
114
|
+
|
|
115
|
+
fgrove creatives montage show <generationId> --download takes
|
|
116
|
+
|
|
117
|
+
- Words. For each clip compare "heard" with the lines of its prompt, word for word. "findings" lists every Shot whose
|
|
118
|
+
line was heard differently or not at all. A wrong, missing or extra word is a reroll. A take without a line can
|
|
119
|
+
still come back with words ("Thank you for watching!", "Signing off"): the recognizer invents them over breath and
|
|
120
|
+
room noise, and the take does not say them.
|
|
121
|
+
- Voices. "heard" does not tell whose voice it is. Line up every character's lines and have them listened to
|
|
122
|
+
("fgrove creatives montage guide listening"): a line in a voice of another age or accent, or one that is no longer
|
|
123
|
+
the character's voice, is a reroll.
|
|
124
|
+
- Picture. Make a sheet of four frames a second and read it at full size against the blooper list
|
|
125
|
+
("fgrove creatives montage guide bloopers"):
|
|
126
|
+
ffmpeg -i takes/clip-<shot>.mp4 -vf "fps=4,scale=360:-1,tile=8x8" -frames:v 1 sheet-<shot>.png
|
|
127
|
+
- Reroll what fails; everything delivered is reused at no cost:
|
|
128
|
+
fgrove creatives montage revise <generationId> --reroll <shot> [<shot> ...] --out takes-2.json
|
|
129
|
+
Edit the rerolled Shots' prompts in takes-2.json and start it like the first cut.
|
|
130
|
+
|
|
131
|
+
Done when every take says its lines exactly and passes the blooper list frame by frame, and every character's lines
|
|
132
|
+
have been listened to as one voice.
|
|
133
|
+
|
|
134
|
+
6. THE CUT
|
|
135
|
+
|
|
136
|
+
fgrove creatives montage revise <generationId> --out cut.json
|
|
137
|
+
|
|
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):
|
|
140
|
+
|
|
141
|
+
- 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
|
+
0.4 s after its last. Recognition often puts the first word after a silence too early: trust the word's end.
|
|
143
|
+
- Several Shots of one take: the first is the take's Shot; the others "reuse" it at their own "from". Two Shots of
|
|
144
|
+
one take in a row read as a skipped frame: put a cutaway between them, or give one a "zoom" of 1.3 or more.
|
|
145
|
+
- A cutaway shows the listener and keeps the speaker's voice: "sound": { "shot": "<take>", "from": <seconds> }.
|
|
146
|
+
The voice runs on unbroken when its "from" is the earlier Shot's "from" plus that Shot's "seconds".
|
|
147
|
+
- Sound only where it is wanted. A Shot without a line that has "sound" plays the air of its own clip for its length;
|
|
148
|
+
between two clean lines that is a burst of rain or traffic. Leave such a Shot silent unless its sound is the point
|
|
149
|
+
(a door, a kick). End a Shot before a laugh or a breath that its end would cut: split it and leave the rest silent.
|
|
150
|
+
- Lengths in whole frames (at 24 fps, multiples of 0.125 s): every variant then shares the Shots of the body.
|
|
151
|
+
- "subtitles": true draws each Shot's "say" in chunks while its words are heard. A line break in "say" starts a new
|
|
152
|
+
chunk; use one where a second person answers.
|
|
153
|
+
- Plates ("text") for what the script puts on screen: a day counter, a hook.
|
|
154
|
+
- Variants: "post" shows the named Shots inside a social post; "replace" with an empty list leaves a Shot out; "text"
|
|
155
|
+
puts a plate on a Shot.
|
|
156
|
+
- An end card from an earlier ad: a "clip" of that Variation from the card's first clean frame, with "clean": true, so
|
|
157
|
+
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".
|
|
160
|
+
|
|
161
|
+
fgrove creatives montage preview cut.json --out storyboard
|
|
162
|
+
fgrove creatives montage start cut.json --angle <angle> --brand <brand> --pack <creative> --wait
|
|
163
|
+
|
|
164
|
+
This costs 1 credit per variant. Read "findings" of every variant and fix what they name; cut again as often as
|
|
165
|
+
needed.
|
|
166
|
+
|
|
167
|
+
Done when every variant is delivered and its "findings" are empty or each one is explained to the user.
|
|
168
|
+
|
|
169
|
+
7. CHECK THE FINISHED VIDEOS, THEN APPROVE
|
|
170
|
+
|
|
171
|
+
fgrove creatives montage show <generationId> --download final
|
|
172
|
+
|
|
173
|
+
- Read the whole cut at two frames a second, then every cut at full size: the last frame of a Shot and the first of the
|
|
174
|
+
next. Use the blooper list.
|
|
175
|
+
- Read every subtitle against the script letter by letter (names, apostrophes), and "heard" against the lines in order.
|
|
176
|
+
- Every frame is BT.709: ffprobe -v error -select_streams v -show_entries frame=color_range,color_space -of csv=p=0 final/<variant>.mp4 | sort | uniq -c
|
|
177
|
+
prints only "tv,bt709".
|
|
178
|
+
- Loudness: ffmpeg -i final/<variant>.mp4 -af ebur128 -f null - reads about -14 LUFS.
|
|
179
|
+
- Have the finished sound listened to ("fgrove creatives montage guide listening"): the background under the lines
|
|
180
|
+
must not step at a cut, no word, breath or laugh may be cut off, and each character keeps one voice.
|
|
181
|
+
- Hand the videos to a reviewer that did not make them: a subagent with the shot list, the lines and the cut times,
|
|
182
|
+
told to assume there are mistakes and to report each with a timestamp and a saved frame. You have seen every clip too
|
|
183
|
+
often to see it.
|
|
184
|
+
|
|
185
|
+
fgrove creatives generations approve <outputId> [<outputId> ...]
|
|
186
|
+
|
|
187
|
+
Each variant becomes a Variation named <prefix>_<creative code>_<NN>_<variant>, the utm_content of its ads.
|
|
188
|
+
|
|
189
|
+
Done when every variant is approved or rejected and you have told the user the cost, every departure from the script,
|
|
190
|
+
and what you could not check. You cannot hear: say who or what listened to the voices and the music, and what was only
|
|
191
|
+
measured.
|
|
192
|
+
`;
|
|
193
|
+
const CUT_SHEET = `
|
|
194
|
+
THE CUT SHEET
|
|
195
|
+
|
|
196
|
+
One JSON object. The API's error names the Shot and the rule when a sheet is wrong.
|
|
197
|
+
|
|
198
|
+
TOP LEVEL
|
|
199
|
+
|
|
200
|
+
size "1080x1920" (default), "1080x1350", "1080x1080" or "1920x1080"
|
|
201
|
+
fps 24, 25 or 30 (default 30); 24 when most Shots are generated
|
|
202
|
+
subtitles true draws every Shot's "say" as subtitles (default false)
|
|
203
|
+
language two letters, the language of the lines (default "en"); used to recognize them
|
|
204
|
+
disclaimer the small line at the bottom of every Shot
|
|
205
|
+
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
|
|
207
|
+
shots the body in order: up to 80 Shots, 120 s, 40 generated clips
|
|
208
|
+
variants up to 5; without any, one video
|
|
209
|
+
|
|
210
|
+
A SHOT
|
|
211
|
+
|
|
212
|
+
id lower-case letters, digits and hyphens
|
|
213
|
+
seconds 0.5 to 15: how long the Shot lasts in the cut
|
|
214
|
+
|
|
215
|
+
and exactly one picture:
|
|
216
|
+
|
|
217
|
+
"clip": <file> a stored video, shown from "from" seconds
|
|
218
|
+
"generate": { "keyframe": <file>, "prompt", "seconds"?, "model"?, "resolution"? }
|
|
219
|
+
a clip made from your keyframe, 4 to 15 whole seconds, shown from "from"
|
|
220
|
+
"still": <file> an image held for the Shot
|
|
221
|
+
"freeze": { "shot": "<id>", "at": <s> } one frame of that Shot's video
|
|
222
|
+
"reuse": { "shot": "<id>" } that Shot's video again, from this Shot's own "from"
|
|
223
|
+
|
|
224
|
+
and any of:
|
|
225
|
+
|
|
226
|
+
sound true: the Shot plays its own clip's sound. { "shot": "<id>", "from": <seconds> }: it plays another Shot's
|
|
227
|
+
clip from that moment (a cutaway under a voice). Without "sound" a Shot is silent.
|
|
228
|
+
say the line spoken during the Shot, up to 240 characters; a line break starts a new subtitle. It is drawn as
|
|
229
|
+
subtitles and compared with what is heard. On a silent Shot it is a caption.
|
|
230
|
+
text a plate of words in the upper half, up to 120 characters ("\\n" breaks a line)
|
|
231
|
+
checklist up to 4 checked rows instead of the plate's words
|
|
232
|
+
footer a small line near the bottom
|
|
233
|
+
zoom 1 to 4: the picture enlarged; "focus": { "x": 0 to 1, "y": 0 to 1 } is the point kept in the middle
|
|
234
|
+
clean true: nothing is drawn over the Shot, not even the disclaimer (a reused end card)
|
|
235
|
+
|
|
236
|
+
A <file> is one of:
|
|
237
|
+
|
|
238
|
+
{ "file": "clips/a.mp4" } a local file, relative to the cut sheet; uploaded once
|
|
239
|
+
{ "variation": "BND_vd001_01_H1" } a Variation's video ("size" picks one)
|
|
240
|
+
{ "generation": "<id>", "shot": "<id>" } a clip an earlier Montage generated; "montage revise" writes these
|
|
241
|
+
|
|
242
|
+
A VARIANT
|
|
243
|
+
|
|
244
|
+
{ "name": "H2",
|
|
245
|
+
"replace": { "<shot id>": [ <Shot>, ... ] }, other Shots in the place of one; an empty list leaves it out
|
|
246
|
+
"text": { "<shot id>": "words" }, a plate on a Shot of the body
|
|
247
|
+
"post": { "shots": ["<shot id>", ...], "name", "handle", "text", "meta"?, "stats"? } }
|
|
248
|
+
these Shots are shown inside a social post: author, words, the
|
|
249
|
+
picture in a window, subtitles inside it
|
|
250
|
+
|
|
251
|
+
SOUND
|
|
252
|
+
|
|
253
|
+
A clip that carries a line is cleaned of the background of its take (a denoiser takes about 20 dB off rain, traffic and
|
|
254
|
+
room noise; other people's voices stay) and set to the same level as every other; the lines are evened out, the music
|
|
255
|
+
sits under them and dips while a line is spoken, and the finished video is set to -14 LUFS. A clip without any line
|
|
256
|
+
(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
|
|
257
|
+
carries lines, it plays at that clip's level. Sound asked from past the end of its clip is an error that names the
|
|
258
|
+
Shot.
|
|
259
|
+
|
|
260
|
+
AN EXAMPLE
|
|
261
|
+
|
|
262
|
+
{
|
|
263
|
+
"size": "1080x1920", "fps": 24, "subtitles": true,
|
|
264
|
+
"disclaimer": "Illustrative. Individual results may vary. AI-generated.",
|
|
265
|
+
"music": { "track": { "file": "music.mp3" } },
|
|
266
|
+
"shots": [
|
|
267
|
+
{ "id": "door", "seconds": 3.5, "from": 0.9, "clip": { "generation": "<id>", "shot": "door" }, "sound": true,
|
|
268
|
+
"say": "You said we were going!" },
|
|
269
|
+
{ "id": "mentor", "seconds": 2.75, "from": 0.5, "clip": { "generation": "<id>", "shot": "mentor" }, "sound": true,
|
|
270
|
+
"say": "You think he was always this calm?" },
|
|
271
|
+
{ "id": "listens", "seconds": 2.875, "from": 0.3, "clip": { "generation": "<id>", "shot": "listens" },
|
|
272
|
+
"sound": { "shot": "mentor", "from": 3.25 }, "say": "We play these little games every day.\\nFive minutes." },
|
|
273
|
+
{ "id": "mentor-2", "seconds": 2.5, "from": 6.125, "reuse": { "shot": "mentor" }, "sound": true,
|
|
274
|
+
"say": "The rules keep changing, that's the point." },
|
|
275
|
+
{ "id": "day1", "seconds": 4.375, "clip": { "generation": "<id>", "shot": "day1" }, "sound": true, "text": "DAY 1",
|
|
276
|
+
"say": "Now red means go!\\nThat's not fair!" },
|
|
277
|
+
{ "id": "cards", "seconds": 7, "from": 73.8, "clip": { "variation": "BND_vd001_01_H1" }, "clean": true }
|
|
278
|
+
],
|
|
279
|
+
"variants": [
|
|
280
|
+
{ "name": "H1" },
|
|
281
|
+
{ "name": "H2", "post": { "shots": ["door"], "name": "Emma Clarke", "handle": "@emmaclarke", "text": "WHY DOES MY KID FALL APART EVERY TIME PLANS CHANGE?" } },
|
|
282
|
+
{ "name": "H3", "text": { "door": "HE'S NOT STUBBORN. HIS BRAIN CAN'T SWITCH GEARS \\u2014 YET." } }
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
`;
|
|
286
|
+
const TAKES = `
|
|
287
|
+
THE PROMPT OF A TAKE
|
|
288
|
+
|
|
289
|
+
A take is one generated clip, 4 to 15 s, in which people do and say what the prompt tells them. Write it in this
|
|
290
|
+
order; the example below is one prompt.
|
|
291
|
+
|
|
292
|
+
1. One shot. Start with: "Continuous, unbroken shot, static camera, no scene cuts, no zoom." Without it Gemini cuts
|
|
293
|
+
between several shots of its own.
|
|
294
|
+
2. Who and where, in one sentence, in the words of the keyframe.
|
|
295
|
+
3. What happens, with times in square brackets. Put each line in double quotes after the person who says it, with the
|
|
296
|
+
manner ("quietly", "tired but trying to sound upbeat"). Leave half a second before the first line and after the last.
|
|
297
|
+
[0-1s] She looks down. [1-3.5s] She looks up at her friend and says quietly: "The wedding's in four weeks."
|
|
298
|
+
4. Who stays silent: "The friend does not speak and keeps her mouth closed." A take without a line says "No dialogue:
|
|
299
|
+
nobody speaks." Otherwise the model gives everyone in the frame something to say.
|
|
300
|
+
5. A line from outside the frame: "From behind the camera his mother says gently: ...". The person in the frame only
|
|
301
|
+
listens.
|
|
302
|
+
6. The voice of each speaker, the same words in every take of that person: the age, the kind of voice, the accent,
|
|
303
|
+
and for a child what it is not.
|
|
304
|
+
"Mike, the father, speaks in a low, calm man's baritone with an American accent."
|
|
305
|
+
"Noah is a small boy of seven and sounds it: a high, thin, slightly hoarse little-boy voice with an American
|
|
306
|
+
accent. It is never a woman's voice and never a teenager's."
|
|
307
|
+
The manner of a line moves the voice. A child's line said "calmly" or "quietly" comes out in a grown woman's voice;
|
|
308
|
+
"small and bright, with a little smile" keeps the child. The model has no reliable old voice: give a line to someone
|
|
309
|
+
it voices well (a young woman rather than a grandmother), or plan several rerolls.
|
|
310
|
+
7. Sound, for a take with a line: "Sound design: the voice alone, recorded close and dry as in a studio: no rain, no
|
|
311
|
+
engine, no room tone, no crowd, no other sound under it." Every take brings its own background otherwise, and the
|
|
312
|
+
cut steps from one to the next at every line. Rain, a car or a playground belong to a take without a line
|
|
313
|
+
("Sound design: rain on the glass"). Then: "No background music." The cut brings its own music.
|
|
314
|
+
8. End with: "No captions, no subtitles, no on-screen text."
|
|
315
|
+
|
|
316
|
+
Lines: 15 words or fewer a sentence; a take of 15 s holds about four sentences with pauses. A name is spelled as it
|
|
317
|
+
sounds. One action per sentence, in order. Name what must stay as it is ("We never see the phone's screen").
|
|
318
|
+
|
|
319
|
+
An example of a whole prompt:
|
|
320
|
+
|
|
321
|
+
Continuous, unbroken shot, static camera with a very slight handheld sway, no scene cuts, no zoom. A man talks to
|
|
322
|
+
his wife, who is off camera, late at night in their kitchen. [0-3.5s] He says in a low, tired, worried voice: "We
|
|
323
|
+
can't change a single thing without a meltdown." [3.5-5s] He pauses and shakes his head slightly. [5-7.5s] He says:
|
|
324
|
+
"Kate's wedding is in four weeks." [7.5-8s] He presses his lips together and looks down. His lips move naturally
|
|
325
|
+
with the words. Mike, the father, speaks in a low, calm man's baritone with an American accent. Sound design: the
|
|
326
|
+
voice alone, recorded close and dry as in a studio: no room tone, no other sound under it. No background music. No
|
|
327
|
+
captions, no subtitles, no on-screen text.
|
|
328
|
+
|
|
329
|
+
A cutaway is a take of 4 s of the listener: what they do while they listen (lower the eyes, lean in, read a phone,
|
|
330
|
+
start to smile) and "No dialogue: nobody speaks, her mouth stays closed."
|
|
331
|
+
`;
|
|
332
|
+
const BLOOPERS = `
|
|
333
|
+
THE BLOOPER LIST
|
|
334
|
+
|
|
335
|
+
Reroll the clip or cut again when any of these shows. Look at consecutive frames: fast motion hides a mistake in one
|
|
336
|
+
frame and shows it in the next.
|
|
337
|
+
|
|
338
|
+
In a clip
|
|
339
|
+
|
|
340
|
+
- Hands and limbs: a sixth finger, fused fingers, a limb that bends wrong, an arm that belongs to nobody, a foot that
|
|
341
|
+
slides.
|
|
342
|
+
- A changed person: another face, age, hair or outfit than the keyframe or the other Shots of the scene; someone who
|
|
343
|
+
was not there. A wide laugh ages a face: ask for a soft smile.
|
|
344
|
+
- Objects that morph, double or vanish: a ball, a cup, a phone, a seat belt.
|
|
345
|
+
- A screen: any interface the model drew. A phone's screen stays turned away; a product screen is a recording.
|
|
346
|
+
- Stray text: letters, logos or watermarks.
|
|
347
|
+
- A mouth without a voice, a voice without a mouth: someone whose lips form words in a clip where they have no line,
|
|
348
|
+
or the speaker in frame with closed lips while the line is heard.
|
|
349
|
+
- 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
|
|
350
|
+
accent the others do not have. "heard" cannot show it and pitch alone cannot either (a child's calm line at 290 Hz
|
|
351
|
+
was a woman's voice to every listener): it takes listening ("fgrove creatives montage guide listening").
|
|
352
|
+
- One character, two voices: the same person in another take sounds like someone else.
|
|
353
|
+
- Cuts inside the clip: the model changed the shot. The prompt must start with "Continuous, unbroken shot".
|
|
354
|
+
- Music or a voice-over the model added.
|
|
355
|
+
|
|
356
|
+
In the finished video
|
|
357
|
+
|
|
358
|
+
- A line cut off: a word that starts before its Shot or ends after it. Move "from" or lengthen the Shot.
|
|
359
|
+
- A breath or a laugh cut off by the end of its Shot.
|
|
360
|
+
- The background steps at a cut: rain or traffic under one line, silence under the next. The take was not asked for a
|
|
361
|
+
dry voice, or a Shot without a line plays its clip's air between clean lines.
|
|
362
|
+
- A subtitle over a face, a subtitle that differs from the line by a letter, a subtitle left on a Shot where nobody
|
|
363
|
+
speaks.
|
|
364
|
+
- A plate over a face, or words that say what the picture under them contradicts.
|
|
365
|
+
- A jump cut: two Shots with the same framing in a row.
|
|
366
|
+
- A one-frame flash at a cut: the last frame of a Shot belongs to another moment.
|
|
367
|
+
- A place that changes inside a scene: another door, other seats, the people on other sides.
|
|
368
|
+
- Leftovers of the source: burned-in captions, a timer, another ad's graphics in reused footage.
|
|
369
|
+
- A prop that argues with the story: a tablet in the background of an ad about less screen time.
|
|
370
|
+
`;
|
|
371
|
+
const LISTENING = `
|
|
372
|
+
LISTENING WHEN YOU CANNOT HEAR
|
|
373
|
+
|
|
374
|
+
You read frames and words; you do not hear. "heard" gives the words of every clip, a meter gives a level, and neither
|
|
375
|
+
tells whose voice a line is in, how old it sounds, or whether the background jumps at a cut. Someone or something that
|
|
376
|
+
hears has to listen. Choose what you have.
|
|
377
|
+
|
|
378
|
+
WHAT TO PREPARE
|
|
379
|
+
|
|
380
|
+
One sound file per line, cut from the take by the line's own times, and the finished video:
|
|
381
|
+
|
|
382
|
+
ffmpeg -ss <from> -t <seconds> -i takes/clip-<shot>.mp4 -vn -ac 1 line-<character>-<n>.wav
|
|
383
|
+
|
|
384
|
+
THE PERSON YOU WORK FOR LISTENS
|
|
385
|
+
|
|
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.
|
|
388
|
+
|
|
389
|
+
- For each character: are these all one person? Which line is someone else, older, younger, or in another accent?
|
|
390
|
+
- Does every voice fit who we see: the child a child, the grandmother old, the man a man?
|
|
391
|
+
- 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
|
|
392
|
+
the music ever in the way of a line?
|
|
393
|
+
|
|
394
|
+
A MODEL THAT HEARS LISTENS
|
|
395
|
+
|
|
396
|
+
When you can call a model that takes audio (Gemini does), ask it these three things. Ask at least two models and act
|
|
397
|
+
only on what two of them report about the same line: one model alone hears two people in a single unbroken take.
|
|
398
|
+
|
|
399
|
+
1. One voice, blind. Send one line and do not say who should be speaking:
|
|
400
|
+
"One person speaks in this clip. From what you hear: sex; age group (young child, older child, teenager, young
|
|
401
|
+
adult, middle-aged, older adult); accent; how sure you are of the age group."
|
|
402
|
+
Ask it of the take, and again of the same line cut out of the finished video: what was done to the sound in
|
|
403
|
+
between can change the voice.
|
|
404
|
+
2. One character. Send all the lines of one character as numbered clips, in the order of the film:
|
|
405
|
+
"All these clips should be the same character: <who>. The moods differ, which is normal for one person. Group
|
|
406
|
+
the clips by voice; for each clip that stands apart say how it differs and how noticeable it is; give the age
|
|
407
|
+
each clip sounds."
|
|
408
|
+
Choosing between rerolls of one line: send three or four good lines of the character as the reference, then the
|
|
409
|
+
candidates, and ask which a viewer would take for the same person.
|
|
410
|
+
3. The finished video, with the list of lines and the times their Shots start:
|
|
411
|
+
"Report every problem a viewer could notice, with its time and how noticeable it is: a voice that changes or
|
|
412
|
+
does not fit its speaker; clicks, a word cut off, a jump in background noise between two Shots; music too loud,
|
|
413
|
+
pumping, a jarring start or end; a line too quiet or too loud."
|
|
414
|
+
A model that knows the script hears what it expects: it called a child's line an adult's twice where the blind
|
|
415
|
+
question and the character question both heard a child. Believe questions 1 and 2 over question 3 for voices, and
|
|
416
|
+
question 3 for the background, cut-off sounds and the music. Ask for faults and their times, never for a verdict:
|
|
417
|
+
asked whether a video would pass as professional work, both models failed one that people had already accepted.
|
|
418
|
+
|
|
419
|
+
WHAT DOES NOT WORK
|
|
420
|
+
|
|
421
|
+
- Pitch as a measure of age, and moving the pitch of a line to fix its voice: listeners hear the processing.
|
|
422
|
+
- Removing a take's background afterwards with a speech isolator: it drops a child's scream and the tail of a breath,
|
|
423
|
+
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
|
|
424
|
+
dry voice in the take's prompt instead ("fgrove creatives montage guide takes").
|
|
425
|
+
`;
|
|
426
|
+
export const MONTAGE_GUIDE_TOPICS = { 'cut-sheet': CUT_SHEET, takes: TAKES, bloopers: BLOOPERS, listening: LISTENING };
|
|
427
|
+
/** The guide, or one of its topics; an unknown topic is an error that names the topics. */
|
|
428
|
+
export const montageGuide = (topic) => {
|
|
429
|
+
if (!topic) {
|
|
430
|
+
return `${MAIN.trim()}\n`;
|
|
431
|
+
}
|
|
432
|
+
const text = MONTAGE_GUIDE_TOPICS[topic];
|
|
433
|
+
if (!text) {
|
|
434
|
+
throw new Error(`Unknown guide topic "${topic}". Topics: ${Object.keys(MONTAGE_GUIDE_TOPICS).join(', ')}`);
|
|
435
|
+
}
|
|
436
|
+
return `${text.trim()}\n`;
|
|
437
|
+
};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.372",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.365",
|
|
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": "
|
|
48
|
+
"sha256": "3a4bed43f0853688e930f1a0c005f39cc362ed295b4601fe195396eb38acd89a"
|
|
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": "
|
|
148
|
+
"sha256": "0b86aa9c6fd78412728225b661c7b1bac97394cf4a9bebaf4f0c54890021d027"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.371",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.364",
|
|
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": "
|
|
195
|
+
"sha256": "73fb5bc68fe203f8375380139af08baebe7b4af45421872f60d839f8c229aa5f"
|
|
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": "
|
|
295
|
+
"sha256": "58201e37f2a2fb93d912e2ed8d0335ca4dccbb4fbbf5fb892c4cdc32cdaa96b9"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.370",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.363",
|
|
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": "
|
|
342
|
+
"sha256": "20fa52d74baf761ec9fa1b8042bb1e680872c5bef8c6d253da658867dca419ba"
|
|
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": "
|
|
442
|
+
"sha256": "67f7d08d21485b19fb066e639a119095934545097c5623635f7862edfc2d304a"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.369",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.362",
|
|
452
452
|
"stepContractVersion": 3,
|
|
453
453
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
454
454
|
"managedFiles": [
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
473
|
-
"sha256": "
|
|
473
|
+
"sha256": "b0b15b74a397a46977be9b60be4dd9391101208369e16fed182d4831b963ddef"
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
476
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
489
|
-
"sha256": "
|
|
489
|
+
"sha256": "034e15a21dd82f0f15468015f3b70e4ba34bd6aeee9ce29a3718e0857da93759"
|
|
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": "
|
|
589
|
+
"sha256": "d6d910da200611b719c9385d8467cf3675450dbae684f2e961c1442d9ac98eb3"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.368",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.361",
|
|
599
599
|
"stepContractVersion": 3,
|
|
600
600
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
601
601
|
"managedFiles": [
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
},
|
|
610
610
|
{
|
|
611
611
|
"path": "docs/funnelsgrove/START-HERE.md",
|
|
612
|
-
"sha256": "
|
|
612
|
+
"sha256": "d80f71fcd0fb555ad25808c98e69b3a4b8dc6752d0381ad473e1764ebe0a062c"
|
|
613
613
|
},
|
|
614
614
|
{
|
|
615
615
|
"path": "docs/funnelsgrove/contracts/analytics-events.md",
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
},
|
|
618
618
|
{
|
|
619
619
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
620
|
-
"sha256": "
|
|
620
|
+
"sha256": "b0b15b74a397a46977be9b60be4dd9391101208369e16fed182d4831b963ddef"
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
623
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
627
|
"path": "docs/funnelsgrove/contracts/payments.md",
|
|
628
|
-
"sha256": "
|
|
628
|
+
"sha256": "ac346fe0aed3bc3ca48679772870ce98ec7446f23a963f86d707a7fcb051bb46"
|
|
629
629
|
},
|
|
630
630
|
{
|
|
631
631
|
"path": "docs/funnelsgrove/contracts/step-metadata.md",
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
636
|
-
"sha256": "
|
|
636
|
+
"sha256": "275ee52e64610321259b8af3418dfb21745cdf4c82ad3a10bb1d1922dc64c6a7"
|
|
637
637
|
},
|
|
638
638
|
{
|
|
639
639
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -657,11 +657,11 @@
|
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
659
|
"path": "docs/funnelsgrove/recipes/add-step.md",
|
|
660
|
-
"sha256": "
|
|
660
|
+
"sha256": "be390e3da8097d5b5a644f33468568939b5f415979920696bec1a6f3d53e002b"
|
|
661
661
|
},
|
|
662
662
|
{
|
|
663
663
|
"path": "docs/funnelsgrove/recipes/edit-step.md",
|
|
664
|
-
"sha256": "
|
|
664
|
+
"sha256": "bb9509746bdf8c0e4710b81d32a31f2accf394736fe1e31e0a70d5da5306e21b"
|
|
665
665
|
},
|
|
666
666
|
{
|
|
667
667
|
"path": "docs/funnelsgrove/steps/INDEX.md",
|
|
@@ -689,11 +689,11 @@
|
|
|
689
689
|
},
|
|
690
690
|
{
|
|
691
691
|
"path": "docs/funnelsgrove/steps/paywall_offer.md",
|
|
692
|
-
"sha256": "
|
|
692
|
+
"sha256": "ea24a8474585185bae8793b337956b53ca5a4d34c3f768e464a2b8b84ec5a159"
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
695
|
"path": "docs/funnelsgrove/steps/progress_interstitial.md",
|
|
696
|
-
"sha256": "
|
|
696
|
+
"sha256": "5e97cae3e3a4b048efa5d5c4aec9c6371de8db0c1427c012b1eb395ea62a678d"
|
|
697
697
|
},
|
|
698
698
|
{
|
|
699
699
|
"path": "docs/funnelsgrove/steps/purchase_completed.md",
|
|
@@ -733,16 +733,16 @@
|
|
|
733
733
|
},
|
|
734
734
|
{
|
|
735
735
|
"path": "funnel-docs.config.json",
|
|
736
|
-
"sha256": "
|
|
736
|
+
"sha256": "a322833e7872e04d895ab4ea07dbe410855ee98b867e8ba9d9f61502fc9285a9"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.367",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.360",
|
|
746
746
|
"stepContractVersion": 3,
|
|
747
747
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
748
748
|
"managedFiles": [
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
},
|
|
757
757
|
{
|
|
758
758
|
"path": "docs/funnelsgrove/START-HERE.md",
|
|
759
|
-
"sha256": "
|
|
759
|
+
"sha256": "d80f71fcd0fb555ad25808c98e69b3a4b8dc6752d0381ad473e1764ebe0a062c"
|
|
760
760
|
},
|
|
761
761
|
{
|
|
762
762
|
"path": "docs/funnelsgrove/contracts/analytics-events.md",
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
766
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
767
|
-
"sha256": "
|
|
767
|
+
"sha256": "49ef258b7320628c42fc8381fab7e65fdf4067e8bd6da7afe72e6ab634e2a4b2"
|
|
768
768
|
},
|
|
769
769
|
{
|
|
770
770
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
},
|
|
773
773
|
{
|
|
774
774
|
"path": "docs/funnelsgrove/contracts/payments.md",
|
|
775
|
-
"sha256": "
|
|
775
|
+
"sha256": "ac346fe0aed3bc3ca48679772870ce98ec7446f23a963f86d707a7fcb051bb46"
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
778
|
"path": "docs/funnelsgrove/contracts/step-metadata.md",
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
},
|
|
781
781
|
{
|
|
782
782
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
783
|
-
"sha256": "
|
|
783
|
+
"sha256": "bd323bff8a5b6312aa4e5734c83e50980d0d35d45f94ab6a3a3193e9a696b4cb"
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
786
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -804,11 +804,11 @@
|
|
|
804
804
|
},
|
|
805
805
|
{
|
|
806
806
|
"path": "docs/funnelsgrove/recipes/add-step.md",
|
|
807
|
-
"sha256": "
|
|
807
|
+
"sha256": "be390e3da8097d5b5a644f33468568939b5f415979920696bec1a6f3d53e002b"
|
|
808
808
|
},
|
|
809
809
|
{
|
|
810
810
|
"path": "docs/funnelsgrove/recipes/edit-step.md",
|
|
811
|
-
"sha256": "
|
|
811
|
+
"sha256": "bb9509746bdf8c0e4710b81d32a31f2accf394736fe1e31e0a70d5da5306e21b"
|
|
812
812
|
},
|
|
813
813
|
{
|
|
814
814
|
"path": "docs/funnelsgrove/steps/INDEX.md",
|
|
@@ -836,11 +836,11 @@
|
|
|
836
836
|
},
|
|
837
837
|
{
|
|
838
838
|
"path": "docs/funnelsgrove/steps/paywall_offer.md",
|
|
839
|
-
"sha256": "
|
|
839
|
+
"sha256": "ea24a8474585185bae8793b337956b53ca5a4d34c3f768e464a2b8b84ec5a159"
|
|
840
840
|
},
|
|
841
841
|
{
|
|
842
842
|
"path": "docs/funnelsgrove/steps/progress_interstitial.md",
|
|
843
|
-
"sha256": "
|
|
843
|
+
"sha256": "5e97cae3e3a4b048efa5d5c4aec9c6371de8db0c1427c012b1eb395ea62a678d"
|
|
844
844
|
},
|
|
845
845
|
{
|
|
846
846
|
"path": "docs/funnelsgrove/steps/purchase_completed.md",
|
|
@@ -880,16 +880,16 @@
|
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
"path": "funnel-docs.config.json",
|
|
883
|
-
"sha256": "
|
|
883
|
+
"sha256": "9638246c7490ae1dfe1ff07b20a9d820b995df59643119d18ccd11f69b6f6b2f"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.366",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.359",
|
|
893
893
|
"stepContractVersion": 3,
|
|
894
894
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
895
895
|
"managedFiles": [
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
},
|
|
928
928
|
{
|
|
929
929
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
930
|
-
"sha256": "
|
|
930
|
+
"sha256": "4a9ad9c35fd31e0c4fc3fe1912223604d726e74664f1735b022876bdee79da86"
|
|
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": "
|
|
1030
|
+
"sha256": "df03c20bd0244edbaebc33f9754ebfd93de79b5dc5f4ffca9b22e3098672e6d4"
|
|
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.
|
|
3
|
+
"version": "0.1.372",
|
|
4
4
|
"description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"test": "vitest run"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@funnelsgrove/runtime": "0.
|
|
37
|
+
"@funnelsgrove/runtime": "0.46.0",
|
|
38
38
|
"commander": "^12.0.0",
|
|
39
39
|
"ignore": "^7.0.8",
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@funnelsgrove/analytics": "0.
|
|
44
|
-
"@funnelsgrove/payments": "0.
|
|
43
|
+
"@funnelsgrove/analytics": "0.29.0",
|
|
44
|
+
"@funnelsgrove/payments": "0.73.0",
|
|
45
45
|
"vitest": "^3.0.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.365",
|
|
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": "
|
|
41
|
+
"sha256": "3a4bed43f0853688e930f1a0c005f39cc362ed295b4601fe195396eb38acd89a"
|
|
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": "
|
|
141
|
+
"sha256": "0b86aa9c6fd78412728225b661c7b1bac97394cf4a9bebaf4f0c54890021d027"
|
|
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.
|
|
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.372`, 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.
|
|
3
|
+
"bundleVersion": "2.0.365",
|
|
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": "
|
|
41
|
+
"sha256": "3a4bed43f0853688e930f1a0c005f39cc362ed295b4601fe195396eb38acd89a"
|
|
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": "
|
|
141
|
+
"sha256": "0b86aa9c6fd78412728225b661c7b1bac97394cf4a9bebaf4f0c54890021d027"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "2b901547bf7afb0ac3b46494477da7445b4f1915b6646b623452fe2b465b1ca9",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.365",
|
|
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": "
|
|
19
|
+
"sha256": "e5bf7361073c661935d53c85931514849234ee2c9d796f347978ea8bcd0e2754",
|
|
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": "
|
|
79
|
+
"sha256": "3a4bed43f0853688e930f1a0c005f39cc362ed295b4601fe195396eb38acd89a",
|
|
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": "
|
|
209
|
+
"sha256": "0b86aa9c6fd78412728225b661c7b1bac97394cf4a9bebaf4f0c54890021d027",
|
|
210
210
|
"mode": "100644"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
@@ -236,12 +236,12 @@
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"path": "package-lock.json",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "0acf94d42e71e5a19b039509c581d9154f4f70a1e60b8377c5dd30fc430b6e16",
|
|
240
240
|
"mode": "100644"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"path": "package.json",
|
|
244
|
-
"sha256": "
|
|
244
|
+
"sha256": "db15ca7fbedc008d92c7a32fb1a698f80077dfee119154e69930940bf9ff33de",
|
|
245
245
|
"mode": "100644"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
@@ -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.
|
|
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.372`, 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
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"name": "funnel-template",
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@funnelsgrove/analytics": "^0.
|
|
12
|
-
"@funnelsgrove/payments": "^0.
|
|
13
|
-
"@funnelsgrove/runtime": "^0.
|
|
11
|
+
"@funnelsgrove/analytics": "^0.29.0",
|
|
12
|
+
"@funnelsgrove/payments": "^0.73.0",
|
|
13
|
+
"@funnelsgrove/runtime": "^0.46.0",
|
|
14
14
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
15
15
|
"@stripe/stripe-js": "^8.7.0",
|
|
16
16
|
"lucide-react": "^0.553.0",
|
|
@@ -940,17 +940,17 @@
|
|
|
940
940
|
}
|
|
941
941
|
},
|
|
942
942
|
"node_modules/@funnelsgrove/analytics": {
|
|
943
|
-
"version": "0.
|
|
944
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.
|
|
945
|
-
"integrity": "sha512-
|
|
943
|
+
"version": "0.29.0",
|
|
944
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.29.0.tgz",
|
|
945
|
+
"integrity": "sha512-28/6KHobeIxJO+0zro1M5618vyENbRu0AOcv8hiRTjHbEXXe/qGeLZkLOnFmH/YT6/HAW4kmd+s+Ti7Z7CMP5g==",
|
|
946
946
|
"peerDependencies": {
|
|
947
|
-
"@funnelsgrove/runtime": "^0.
|
|
947
|
+
"@funnelsgrove/runtime": "^0.46.0"
|
|
948
948
|
}
|
|
949
949
|
},
|
|
950
950
|
"node_modules/@funnelsgrove/payments": {
|
|
951
|
-
"version": "0.
|
|
952
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.
|
|
953
|
-
"integrity": "sha512-
|
|
951
|
+
"version": "0.73.0",
|
|
952
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.73.0.tgz",
|
|
953
|
+
"integrity": "sha512-H85Cbucopnzlw/31SVEQ8x6Xc+oEKPdy7ZszsQDuJUcJS5oVwMFMB5V3t15dpt96P5002n+0ou+30eu+yxZvUw==",
|
|
954
954
|
"dependencies": {
|
|
955
955
|
"@solidgate/react-sdk": "1.34.0",
|
|
956
956
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
@@ -960,14 +960,14 @@
|
|
|
960
960
|
"stripe": "^20.3.1"
|
|
961
961
|
},
|
|
962
962
|
"peerDependencies": {
|
|
963
|
-
"@funnelsgrove/analytics": "^0.
|
|
964
|
-
"@funnelsgrove/runtime": "^0.
|
|
963
|
+
"@funnelsgrove/analytics": "^0.29.0",
|
|
964
|
+
"@funnelsgrove/runtime": "^0.46.0"
|
|
965
965
|
}
|
|
966
966
|
},
|
|
967
967
|
"node_modules/@funnelsgrove/runtime": {
|
|
968
|
-
"version": "0.
|
|
969
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.
|
|
970
|
-
"integrity": "sha512-
|
|
968
|
+
"version": "0.46.0",
|
|
969
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.46.0.tgz",
|
|
970
|
+
"integrity": "sha512-su78/DBxFzqfR7RsWoMj4aabtAAjMb3yBKWBSLitGUXE+YsVaEqaxZPD9SadPzE9lqtKAoANU+OEMX5yvBAxdw==",
|
|
971
971
|
"dependencies": {
|
|
972
972
|
"@funnelsgrove/sdk": "0.4.0",
|
|
973
973
|
"posthog-js": "^1.369.2",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"validate:funnel": "vite-node --config src/contract/funnel-validator.vite.config.ts src/contract/validate-funnel.cli.ts"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@funnelsgrove/analytics": "^0.
|
|
16
|
-
"@funnelsgrove/payments": "^0.
|
|
17
|
-
"@funnelsgrove/runtime": "^0.
|
|
15
|
+
"@funnelsgrove/analytics": "^0.29.0",
|
|
16
|
+
"@funnelsgrove/payments": "^0.73.0",
|
|
17
|
+
"@funnelsgrove/runtime": "^0.46.0",
|
|
18
18
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
19
19
|
"@stripe/stripe-js": "^8.7.0",
|
|
20
20
|
"lucide-react": "^0.553.0",
|