@funnelsgrove/cli 0.1.353 → 0.1.354

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.
@@ -97,6 +97,155 @@ export declare const syncCreativeFiles: (scope: CreativeScope, dir: string, opti
97
97
  }[];
98
98
  dryRun: boolean;
99
99
  }>;
100
+ /** Layout templates the API renders (CRE-BR-018); the API validates them, this list only documents the options. */
101
+ export declare const LAYOUT_TEMPLATE_IDS: readonly ["headline-over-scene", "bottom-band-cta", "split", "end-card"];
102
+ export type BrandKitContent = {
103
+ colors: Record<string, string>;
104
+ fonts: Record<string, {
105
+ family: string;
106
+ weights: number[];
107
+ }>;
108
+ radii: Record<string, number>;
109
+ logo: {
110
+ key: string;
111
+ url: string;
112
+ contentType: string;
113
+ } | null;
114
+ tone: string[];
115
+ avoid: string[];
116
+ defaultVoice: {
117
+ voiceId: string;
118
+ name: string;
119
+ } | null;
120
+ [key: string]: unknown;
121
+ };
122
+ export type BrandKit = {
123
+ id: string;
124
+ brand: string;
125
+ current_version: number;
126
+ content: BrandKitContent;
127
+ [key: string]: unknown;
128
+ };
129
+ export type Brief = {
130
+ id: string;
131
+ angle_code: string;
132
+ brand: string;
133
+ kind: 'image' | 'video';
134
+ sizes: string[];
135
+ headline: string;
136
+ supporting_line: string;
137
+ cta: string;
138
+ layout_template_id: string;
139
+ status: string;
140
+ [key: string]: unknown;
141
+ };
142
+ /** A kit file is either the output of `brand-kits show` or its `content`; only editable fields are sent. */
143
+ export declare const brandKitPatchFromFile: (json: unknown) => Record<string, unknown>;
144
+ export declare const findBrandKit: (kits: BrandKit[], brand: string) => BrandKit;
145
+ /** A local scene file becomes a file:// URL so the HTML opens in a browser; http(s) and file URLs are kept. */
146
+ export declare const sceneUrl: (scene: string) => string;
147
+ export type GenerationFile = {
148
+ size: string;
149
+ url: string;
150
+ contentType: string;
151
+ };
152
+ export type GenerationOutput = {
153
+ id: string;
154
+ role: string;
155
+ scene_index: number | null;
156
+ status: string;
157
+ files: GenerationFile[];
158
+ raw_url: string | null;
159
+ qa: {
160
+ hardFailures: unknown[];
161
+ softFindings: unknown[];
162
+ };
163
+ error: {
164
+ message: string;
165
+ } | null;
166
+ kept_variation_id: string | null;
167
+ [key: string]: unknown;
168
+ };
169
+ export type GenerationDetail = {
170
+ generation: {
171
+ id: string;
172
+ status: string;
173
+ kind: string;
174
+ model: string;
175
+ provider: string;
176
+ credits_reserved: number;
177
+ credits_settled: number;
178
+ credits_released: number;
179
+ cover_url: string | null;
180
+ video_url: string | null;
181
+ error: string | null;
182
+ [key: string]: unknown;
183
+ };
184
+ outputs: GenerationOutput[];
185
+ };
186
+ /** `--wait` stops at a finished Generation or at the keyframe approval stop. */
187
+ export declare const GENERATION_WAIT_STOP: string[];
188
+ /** The agent-facing view of a Generation: status, credits and every output's URLs. */
189
+ export declare const summarizeGeneration: ({ generation, outputs }: GenerationDetail) => {
190
+ id: string;
191
+ status: string;
192
+ kind: string;
193
+ model: string;
194
+ provider: string;
195
+ credits: {
196
+ reserved: number;
197
+ settled: number;
198
+ released: number;
199
+ };
200
+ coverUrl: string | null;
201
+ videoUrl: string | null;
202
+ error: string | null;
203
+ outputs: {
204
+ id: string;
205
+ role: string;
206
+ sceneIndex: number | null;
207
+ status: string;
208
+ urls: {
209
+ size: string;
210
+ url: string;
211
+ }[] | {
212
+ url: string;
213
+ }[];
214
+ softFindings: number;
215
+ error: string | null;
216
+ keptVariationId: string | null;
217
+ }[];
218
+ };
219
+ export declare const waitForGeneration: (scope: CreativeScope, generationId: string, options?: {
220
+ intervalMs?: number;
221
+ timeoutMs?: number;
222
+ sleep?: (ms: number) => Promise<void>;
223
+ }) => Promise<GenerationDetail>;
224
+ type GenerateOptions = {
225
+ brief?: string;
226
+ angle?: string;
227
+ brand?: string;
228
+ prompt?: string;
229
+ headline?: string;
230
+ cta?: string;
231
+ supporting?: string;
232
+ template?: string;
233
+ format?: string;
234
+ scenes?: string;
235
+ voiceover?: string;
236
+ kind?: string;
237
+ model?: string;
238
+ quality?: string;
239
+ resolution?: string;
240
+ sizes?: string;
241
+ count?: string;
242
+ reference?: string;
243
+ autoApprove?: boolean;
244
+ wait?: boolean;
245
+ estimate?: boolean;
246
+ };
247
+ /** Builds the `startGeneration` input: a Brief id, or an inline Brief from the quick-create flags. */
248
+ export declare const generationRequest: (options: GenerateOptions, angles: Angle[]) => Record<string, unknown>;
100
249
  /** `fgrove creatives …`: angles, creatives, variations, dictionaries and files of one project. */
101
250
  export declare const registerCreativeCommands: (program: Command, deps: {
102
251
  resolveScope: (options: {
@@ -1,6 +1,7 @@
1
1
  import { createHash } from 'node:crypto';
2
- import { readdir, readFile, stat } from 'node:fs/promises';
2
+ import { readdir, readFile, stat, writeFile } from 'node:fs/promises';
3
3
  import path from 'node:path';
4
+ import { pathToFileURL } from 'node:url';
4
5
  const ANGLE_STATUSES = ['working', 'burned_out', 'no_data', 'under_review', 'idea', 'failed'];
5
6
  const DICTIONARY_FIELDS = ['format', 'task_type', 'creo_type', 'brand', 'size', 'visual_hook', 'text_hook'];
6
7
  const api = (scope, procedure, type, data = {}) => (scope.callApi({
@@ -236,6 +237,284 @@ const collect = (values, options) => Object.fromEntries(options
236
237
  const raw = values[camel(option.flag)];
237
238
  return [option.key, option.parse ? option.parse(raw) : raw];
238
239
  }));
240
+ // --- Generation: Brand Kits, Creative Briefs and layout previews ---
241
+ /** Layout templates the API renders (CRE-BR-018); the API validates them, this list only documents the options. */
242
+ export const LAYOUT_TEMPLATE_IDS = ['headline-over-scene', 'bottom-band-cta', 'split', 'end-card'];
243
+ const BRAND_KIT_EDITABLE = ['colors', 'fonts', 'radii', 'tone', 'avoid', 'defaultVoice'];
244
+ /** A kit file is either the output of `brand-kits show` or its `content`; only editable fields are sent. */
245
+ export const brandKitPatchFromFile = (json) => {
246
+ const value = (json && typeof json === 'object' && 'content' in json ? json.content : json);
247
+ if (!value || typeof value !== 'object' || Array.isArray(value)) {
248
+ throw new Error('The kit file must be a JSON object, such as the output of brand-kits show');
249
+ }
250
+ return Object.fromEntries(BRAND_KIT_EDITABLE.filter((key) => value[key] !== undefined).map((key) => [key, value[key]]));
251
+ };
252
+ export const findBrandKit = (kits, brand) => {
253
+ const kit = kits.find((item) => item.id === brand || item.brand.toLowerCase() === brand.trim().toLowerCase());
254
+ if (!kit) {
255
+ throw new Error(`No Brand Kit for "${brand}". Create one with: fgrove creatives brand-kits seed --brand "${brand}" --funnel <funnel id>`);
256
+ }
257
+ return kit;
258
+ };
259
+ /** A local scene file becomes a file:// URL so the HTML opens in a browser; http(s) and file URLs are kept. */
260
+ export const sceneUrl = (scene) => (/^(https?|file):\/\//i.test(scene) ? scene : pathToFileURL(path.resolve(scene)).href);
261
+ const BRIEF_OPTIONS = [
262
+ { flag: '--headline <text>', description: 'Headline', key: 'headline' },
263
+ { flag: '--supporting-line <text>', description: 'Supporting line ("" clears)', key: 'supporting_line' },
264
+ { flag: '--cta <text>', description: 'Call to action', key: 'cta' },
265
+ { flag: '--scene <text>', description: 'Scene description for the image model', key: 'scene_description' },
266
+ { flag: '--visual-hook <hook>', description: 'Visual hook from the dictionary ("none" clears)', key: 'visual_hook', parse: parseNullableText },
267
+ { flag: '--text-hook <hook>', description: 'Text hook from the dictionary ("none" clears)', key: 'text_hook', parse: parseNullableText },
268
+ { flag: '--layout <template>', description: LAYOUT_TEMPLATE_IDS.join(' | '), key: 'layout_template_id' },
269
+ { flag: '--sizes <list>', description: 'Comma-separated sizes from the dictionary', key: 'sizes', parse: parseSizes },
270
+ { flag: '--voiceover <text>', description: 'Voiceover script (video)', key: 'voiceover_script' },
271
+ { flag: '--status <status>', description: 'proposed | accepted', key: 'status' },
272
+ ];
273
+ const CONTENT_TYPES_LOGO = { '.png': 'image/png', '.webp': 'image/webp', '.svg': 'image/svg+xml', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg' };
274
+ /** `--wait` stops at a finished Generation or at the keyframe approval stop. */
275
+ export const GENERATION_WAIT_STOP = ['awaiting_approval', 'succeeded', 'partially_succeeded', 'failed', 'canceled'];
276
+ /** The agent-facing view of a Generation: status, credits and every output's URLs. */
277
+ export const summarizeGeneration = ({ generation, outputs }) => ({
278
+ id: generation.id,
279
+ status: generation.status,
280
+ kind: generation.kind,
281
+ model: generation.model,
282
+ provider: generation.provider,
283
+ credits: { reserved: generation.credits_reserved, settled: generation.credits_settled, released: generation.credits_released },
284
+ coverUrl: generation.cover_url,
285
+ videoUrl: generation.video_url,
286
+ error: generation.error,
287
+ outputs: outputs.map((output) => ({
288
+ id: output.id,
289
+ role: output.role,
290
+ sceneIndex: output.scene_index,
291
+ status: output.status,
292
+ urls: output.files.length > 0 ? output.files.map((file) => ({ size: file.size, url: file.url })) : output.raw_url ? [{ url: output.raw_url }] : [],
293
+ softFindings: output.qa.softFindings.length,
294
+ error: output.error?.message ?? null,
295
+ keptVariationId: output.kept_variation_id,
296
+ })),
297
+ });
298
+ export const waitForGeneration = async (scope, generationId, options = {}) => {
299
+ const sleep = options.sleep ?? ((ms) => new Promise((resolve) => { setTimeout(resolve, ms); }));
300
+ const deadline = Date.now() + (options.timeoutMs ?? 30 * 60_000);
301
+ for (;;) {
302
+ const detail = await api(scope, 'generation', 'query', { generationId });
303
+ if (GENERATION_WAIT_STOP.includes(detail.generation.status) || Date.now() >= deadline) {
304
+ return detail;
305
+ }
306
+ await sleep(options.intervalMs ?? 5000);
307
+ }
308
+ };
309
+ /** Builds the `startGeneration` input: a Brief id, or an inline Brief from the quick-create flags. */
310
+ export const generationRequest = (options, angles) => {
311
+ const settings = {
312
+ ...(options.model ? { model: options.model } : {}),
313
+ ...(options.quality ? { quality: options.quality } : {}),
314
+ ...(options.resolution ? { resolution: options.resolution } : {}),
315
+ ...(options.sizes ? { sizes: parseSizes(options.sizes) } : {}),
316
+ ...(options.count ? { count: parseNumber(options.count) } : {}),
317
+ ...(options.reference ? { referenceImageUrls: parseSizes(options.reference) } : {}),
318
+ ...(options.autoApprove ? { autoApprove: true } : {}),
319
+ };
320
+ if (options.brief) {
321
+ return { briefId: options.brief, ...settings };
322
+ }
323
+ const missing = ['angle', 'brand', 'prompt', 'headline', 'cta'].filter((key) => !options[key]);
324
+ if (missing.length > 0) {
325
+ throw new Error(`Pass --brief <id>, or --${missing.join(', --')} for a quick-create Brief`);
326
+ }
327
+ return {
328
+ inline: {
329
+ angleId: findAngle(angles, options.angle).id,
330
+ brand: options.brand,
331
+ kind: options.kind ?? 'image',
332
+ prompt: options.prompt,
333
+ headline: options.headline,
334
+ cta: options.cta,
335
+ ...(options.supporting !== undefined ? { supportingLine: options.supporting } : {}),
336
+ ...(options.template ? { layoutTemplateId: options.template } : {}),
337
+ ...(options.format ? { format: options.format } : {}),
338
+ ...(options.scenes ? { scenes: JSON.parse(options.scenes) } : {}),
339
+ ...(options.voiceover ? { voiceoverScript: options.voiceover } : {}),
340
+ },
341
+ ...settings,
342
+ };
343
+ };
344
+ const parseScene = (value) => {
345
+ const scene = Number(value);
346
+ if (!Number.isInteger(scene) || scene < 0) {
347
+ throw new Error('--scene is the 0-based scene index shown by generations show');
348
+ }
349
+ return scene;
350
+ };
351
+ /** `fgrove creatives generate` and `fgrove creatives generations …`. */
352
+ const registerGenerationRunCommands = (root, input) => {
353
+ const { scoped, run } = input;
354
+ scoped(root.command('generate').description('Start a Generation from a Brief or a quick-create Brief; reserves Creative Credits')
355
+ .option('--brief <id>', 'Brief id')
356
+ .option('--angle <angle>', 'Quick-create: angle code or slug').option('--brand <brand>', 'Quick-create: brand with a Brand Kit')
357
+ .option('--prompt <text>', 'Quick-create: scene to generate').option('--headline <text>', 'Quick-create: headline')
358
+ .option('--cta <text>', 'Quick-create: call to action').option('--supporting <text>', 'Quick-create: supporting line')
359
+ .option('--template <id>', `Quick-create: ${LAYOUT_TEMPLATE_IDS.join(' | ')}`).option('--format <format>', 'Quick-create: format (st or vid)')
360
+ .option('--scenes <json>', 'Quick-create video: [{"description":"…","duration_seconds":5}, …] (3-5 scenes, 15-30 s)')
361
+ .option('--voiceover <text>', 'Quick-create video: voiceover script')
362
+ .option('--kind <kind>', 'Quick-create: image | video', 'image')
363
+ .option('--model <model>', 'nano-banana-2.1 | gpt-image-2 (image); seedance-2-mini | seedance-2.5 (video)')
364
+ .option('--quality <quality>', 'low | medium | high (image scenes and keyframes)')
365
+ .option('--resolution <resolution>', 'Video clips: 480p | 720p | 1080p (default 720p)')
366
+ .option('--sizes <list>', 'Comma-separated sizes, such as 1080x1350,1080x1920').option('--count <n>', 'Images to make (1-4); each is rendered in every size')
367
+ .option('--reference <urls>', 'Comma-separated reference image URLs')
368
+ .option('--auto-approve', 'Video: skip the keyframe approval stop')
369
+ .option('--wait', 'Poll until finished or awaiting approval, then print output URLs')
370
+ .option('--estimate', 'Print the credits per step and the balance; start nothing'))
371
+ .action(run(async (scope, options) => {
372
+ const request = generationRequest(options, options.brief ? [] : await input.angles(scope));
373
+ if (options.estimate) {
374
+ return api(scope, 'estimateGeneration', 'query', request);
375
+ }
376
+ const started = await api(scope, 'startGeneration', 'mutation', request);
377
+ return summarizeGeneration(options.wait ? await waitForGeneration(scope, started.generation.id) : started);
378
+ }));
379
+ const generations = root.command('generations').description('Generations: the gallery of AI runs, their outputs, approval and keeping');
380
+ scoped(generations.command('list').description('List Generations, newest first')
381
+ .option('--angle <angle>', 'Only this angle').option('--brand <brand>', 'Only this brand').option('--kind <kind>', 'image | video')
382
+ .option('--status <status>', 'queued | running | awaiting_approval | assembling | succeeded | partially_succeeded | failed | canceled')
383
+ .option('--limit <n>', 'Page size (1-100)').option('--cursor <cursor>', 'nextCursor of the previous page'))
384
+ .action(run(async (scope, options) => (api(scope, 'generations', 'query', {
385
+ ...(options.angle ? { angleId: findAngle(await input.angles(scope), options.angle).id } : {}),
386
+ ...(options.brand ? { brand: options.brand } : {}),
387
+ ...(options.kind ? { kind: options.kind } : {}),
388
+ ...(options.status ? { status: options.status } : {}),
389
+ ...(options.limit ? { limit: parseNumber(options.limit) } : {}),
390
+ ...(options.cursor ? { cursor: options.cursor } : {}),
391
+ }))));
392
+ scoped(generations.command('show <id>').description('Show a Generation with its outputs').option('--wait', 'Poll until finished or awaiting approval')
393
+ .option('--full', 'Print every stored field'))
394
+ .action(run(async (scope, options, id) => {
395
+ const detail = options.wait ? await waitForGeneration(scope, id) : await api(scope, 'generation', 'query', { generationId: id });
396
+ return options.full ? detail : summarizeGeneration(detail);
397
+ }));
398
+ scoped(generations.command('approve <id>').description('Approve every keyframe of a video Generation; reserves the clips'))
399
+ .action(run(async (scope, _options, id) => summarizeGeneration(await api(scope, 'approveKeyframes', 'mutation', { generationId: id }))));
400
+ scoped(generations.command('regenerate-keyframe <id>').description('Make one keyframe again before approval')
401
+ .requiredOption('--scene <index>', '0-based scene index'))
402
+ .action(run(async (scope, options, id) => summarizeGeneration(await api(scope, 'regenerateKeyframe', 'mutation', {
403
+ generationId: id, sceneIndex: parseScene(options.scene),
404
+ }))));
405
+ scoped(generations.command('retry-scene <id>').description('Retry one failed clip of a video Generation')
406
+ .requiredOption('--scene <index>', '0-based scene index'))
407
+ .action(run(async (scope, options, id) => summarizeGeneration(await api(scope, 'retryScene', 'mutation', {
408
+ generationId: id, sceneIndex: parseScene(options.scene),
409
+ }))));
410
+ scoped(generations.command('cancel <id>').description('Cancel a Generation; unfinished outputs release their credits'))
411
+ .action(run(async (scope, _options, id) => summarizeGeneration(await api(scope, 'cancelGeneration', 'mutation', { generationId: id }))));
412
+ scoped(generations.command('keep <outputId>').description('Keep an image or video output as a new Variation (free; once per output)')
413
+ .option('--creative <creative>', 'Add it to this existing Creative, such as st003 (otherwise a new Creative)'))
414
+ .action(run(async (scope, options, outputId) => api(scope, 'keepOutput', 'mutation', {
415
+ outputId,
416
+ ...(options.creative ? { creativeId: findCreative(await input.creatives(scope), options.creative).id } : {}),
417
+ })));
418
+ };
419
+ /** `fgrove creatives brand-kits|briefs|render`. */
420
+ const registerGenerationCommands = (root, input) => {
421
+ const { scoped, run } = input;
422
+ const kits = (scope) => api(scope, 'brandKits', 'query');
423
+ const brandKit = root.command('brand-kits').description('Brand Kits: colors, fonts, logo, tone and avoid list per brand (one per brand, versioned)');
424
+ scoped(brandKit.command('list').description('List Brand Kits'))
425
+ .action(run((scope) => kits(scope)));
426
+ scoped(brandKit.command('show <brand>').description('Show a Brand Kit with every version'))
427
+ .action(run(async (scope, _options, brand) => api(scope, 'brandKit', 'query', { brandKitId: findBrandKit(await kits(scope), brand).id })));
428
+ scoped(brandKit.command('seed').description('Seed (or re-seed) a brand\'s kit from a published funnel: theme tokens, and tone from Design.md')
429
+ .requiredOption('--brand <brand>', 'Brand from the dictionary').requiredOption('--funnel <id>', 'Funnel id'))
430
+ .action(run((scope, options) => api(scope, 'seedBrandKit', 'mutation', {
431
+ brand: options.brand, funnelId: options.funnel,
432
+ })));
433
+ scoped(brandKit.command('update').description('Create or edit a brand\'s kit from a JSON file (output of show, or its content); a new version')
434
+ .requiredOption('--file <kit.json>', 'Kit JSON').option('--brand <brand>', 'Brand (defaults to the file\'s brand)'))
435
+ .action(run(async (scope, options) => {
436
+ const json = JSON.parse(await readFile(options.file, 'utf8'));
437
+ const brand = options.brand ?? (typeof json.brand === 'string' ? json.brand : undefined);
438
+ if (!brand) {
439
+ throw new Error('--brand is required when the file has no "brand"');
440
+ }
441
+ return api(scope, 'updateBrandKit', 'mutation', { brand, patch: brandKitPatchFromFile(json) });
442
+ }));
443
+ scoped(brandKit.command('logo <file>').description('Upload a logo (png, webp, svg, jpg) to a brand\'s kit; a new version')
444
+ .requiredOption('--brand <brand>', 'Brand'))
445
+ .action(run(async (scope, options, file) => {
446
+ const contentType = CONTENT_TYPES_LOGO[path.extname(file).toLowerCase()];
447
+ if (!contentType) {
448
+ throw new Error('Use a png, webp, svg or jpg logo');
449
+ }
450
+ const body = await readFile(file);
451
+ const hash = sha256(body);
452
+ const kit = findBrandKit(await kits(scope), options.brand);
453
+ const prepared = await api(scope, 'prepareBrandKitLogoUpload', 'mutation', {
454
+ brandKitId: kit.id, contentType, sizeBytes: body.byteLength, sha256: hash,
455
+ });
456
+ const response = await fetch(prepared.uploadUrl, { method: 'PUT', headers: prepared.headers, body: new Uint8Array(body) });
457
+ if (!response.ok) {
458
+ throw new Error(`Logo upload failed with HTTP ${response.status}`);
459
+ }
460
+ return api(scope, 'finalizeBrandKitLogoUpload', 'mutation', { brandKitId: kit.id, key: prepared.key, sha256: hash });
461
+ }));
462
+ const brief = root.command('briefs').description('Creative Briefs: the words, scene and layout of a future variation, proposed from Angles');
463
+ scoped(brief.command('list').description('List Briefs, newest first, one page at a time').option('--angle <angle>', 'Only this angle')
464
+ .option('--status <status>', 'proposed | accepted | archived').option('--kind <kind>', 'image | video')
465
+ .option('--limit <n>', 'Page size (1-100, default 50)').option('--cursor <cursor>', 'nextCursor of the previous page'))
466
+ .action(run(async (scope, options) => (api(scope, 'briefs', 'query', {
467
+ ...(options.angle ? { angleId: findAngle(await input.angles(scope), options.angle).id } : {}),
468
+ ...(options.status ? { status: options.status } : {}),
469
+ ...(options.kind ? { kind: options.kind } : {}),
470
+ ...(options.limit ? { limit: parseNumber(options.limit) } : {}),
471
+ ...(options.cursor ? { cursor: options.cursor } : {}),
472
+ }))));
473
+ scoped(brief.command('show <id>').description('Show one Brief'))
474
+ .action(run((scope, _options, id) => api(scope, 'brief', 'query', { briefId: id })));
475
+ scoped(brief.command('propose').description('Propose Briefs from Angles with an LLM; near-duplicates are dropped and reported')
476
+ .requiredOption('--angles <codes>', 'Comma-separated angle codes or slugs, such as C004,C007')
477
+ .requiredOption('--brand <brand>', 'Brand from the dictionary')
478
+ .requiredOption('--format <format>', 'Format from the dictionary, such as st')
479
+ .option('--kind <kind>', 'image | video', 'image')
480
+ .option('--count <n>', 'How many Briefs to propose (1-12)', '6')
481
+ .option('--sizes <list>', 'Comma-separated sizes (default: 1080x1350,1080x1920 for image, 1080x1920 for video)'))
482
+ .action(run(async (scope, options) => {
483
+ const angles = await input.angles(scope);
484
+ return api(scope, 'proposeBriefs', 'mutation', {
485
+ angleIds: parseSizes(options.angles).map((ref) => findAngle(angles, ref).id),
486
+ brand: options.brand, format: options.format, kind: options.kind, count: parseNumber(options.count),
487
+ ...(options.sizes ? { sizes: parseSizes(options.sizes) } : {}),
488
+ });
489
+ }));
490
+ addOptions(scoped(brief.command('update <id>').description('Edit a Brief, or accept it with --status accepted')
491
+ .option('--file <brief.json>', 'JSON with the fields to change')), BRIEF_OPTIONS)
492
+ .action(run(async (scope, options, id) => api(scope, 'updateBrief', 'mutation', {
493
+ ...(options.file ? JSON.parse(await readFile(options.file, 'utf8')) : {}),
494
+ ...collect(options, BRIEF_OPTIONS),
495
+ briefId: id,
496
+ })));
497
+ scoped(brief.command('archive <id>').description('Archive a Brief'))
498
+ .action(run((scope, _options, id) => api(scope, 'archiveBrief', 'mutation', { briefId: id })));
499
+ scoped(root.command('render').description('Render a Brief as HTML with its brand\'s kit and layout template (no credits). '
500
+ + 'Outputs HTML only; open it in a browser or capture it with Playwright for a PNG')
501
+ .requiredOption('--brief <id>', 'Brief id').requiredOption('--size <size>', 'Size, such as 1080x1350')
502
+ .option('--scene <path-or-url>', 'Scene image (local path or URL); omitted shows the brand background')
503
+ .option('--template <id>', `Layout template instead of the Brief's: ${LAYOUT_TEMPLATE_IDS.join(' | ')}`)
504
+ .requiredOption('--out <file.html>', 'Output HTML file'))
505
+ .action(run(async (scope, options) => {
506
+ const preview = await api(scope, 'renderLayoutPreview', 'query', {
507
+ briefId: options.brief, size: options.size,
508
+ ...(options.template ? { templateId: options.template } : {}),
509
+ ...(options.scene ? { sceneUrl: sceneUrl(options.scene) } : {}),
510
+ });
511
+ await writeFile(options.out, preview.html, 'utf8');
512
+ return {
513
+ out: path.resolve(options.out), brief: preview.briefId, template: preview.templateId, size: preview.size, brandKit: preview.brandKit,
514
+ format: 'html',
515
+ };
516
+ }));
517
+ };
239
518
  /** `fgrove creatives …`: angles, creatives, variations, dictionaries and files of one project. */
240
519
  export const registerCreativeCommands = (program, deps) => {
241
520
  const run = (work) => (async (...args) => {
@@ -264,7 +543,16 @@ Examples:
264
543
  fgrove creatives create --format st --drive-url https://drive.google.com/... --project claimbee
265
544
  fgrove creatives variations create --creative st003 --angle deadline --brand Amazon --sizes 1080x1080,1080x1920 --project claimbee
266
545
  fgrove creatives variations update st003_02 --launched true --result go --winner true --project claimbee
267
- fgrove creatives files sync ./downloads/st003 --project claimbee`);
546
+ fgrove creatives files sync ./downloads/st003 --project claimbee
547
+ fgrove creatives credits --project claimbee
548
+ fgrove creatives credits buy 50 --project claimbee
549
+ fgrove creatives brand-kits seed --brand Amazon --funnel <funnel id> --project claimbee
550
+ fgrove creatives briefs propose --angles C004,C007 --brand Amazon --format st --kind image --count 6 --project claimbee
551
+ fgrove creatives render --brief <brief id> --size 1080x1350 --scene ./scene.png --out brief.html --project claimbee
552
+ fgrove creatives generate --brief <brief id> --count 4 --sizes 1080x1350,1080x1920 --estimate --project claimbee
553
+ fgrove creatives generate --angle C004 --brand Amazon --prompt "A receipt on a kitchen table" --headline "Your refund is waiting" --cta "Check now" --wait --project claimbee
554
+ fgrove creatives generate --brief <video brief id> --auto-approve --wait --project claimbee
555
+ fgrove creatives generations keep <output id> --creative st003 --project claimbee`);
268
556
  const settings = root.command('settings').description('Project creative settings');
269
557
  scoped(settings.command('show').description('Show the name prefix and dictionaries'))
270
558
  .action(run((scope) => api(scope, 'settings', 'query')));
@@ -372,6 +660,21 @@ Examples:
372
660
  })));
373
661
  scoped(variation.command('delete <variation>').description('Delete a variation and its files'))
374
662
  .action(run(async (scope, _options, ref) => api(scope, 'deleteVariation', 'mutation', { variationId: findVariation(await variations(scope), ref).id })));
663
+ // Creative Credits: the workspace's prepaid balance for generation (CRE-BR-009 to CRE-BR-011).
664
+ const credits = scoped(root.command('credits').description('Creative Credits: the workspace balance and grants with expiry'))
665
+ .action(run(async (scope) => {
666
+ const { balance, grants, canBuy } = await api(scope, 'credits', 'query');
667
+ return { balance, grants, canBuy };
668
+ }));
669
+ scoped(credits.command('buy <dollars>').description('Buy a $20, $50, $100 or $500 pack (Owner or Admin); prints the checkout URL'))
670
+ .action(run(async (scope, _options, dollars) => {
671
+ const packDollars = Number(dollars);
672
+ if (![20, 50, 100, 500].includes(packDollars)) {
673
+ throw new Error('Choose a pack of 20, 50, 100 or 500 dollars');
674
+ }
675
+ const { checkoutUrl, pack } = await api(scope, 'buyCreditPack', 'mutation', { packDollars });
676
+ return { checkoutUrl, pack };
677
+ }));
375
678
  const files = root.command('files').description('Creative Files stored by FunnelsGrove, one per variation and size');
376
679
  scoped(files.command('sync <dir>').description('Upload new or changed files named by convention; never deletes')
377
680
  .option('--dry-run', 'Show what would upload'))
@@ -394,4 +697,6 @@ Examples:
394
697
  .action(run(async (scope, options) => api(scope, 'deleteFile', 'mutation', {
395
698
  variationId: findVariation(await variations(scope), options.variation).id, size: options.size,
396
699
  })));
700
+ registerGenerationCommands(root, { scoped, run, angles });
701
+ registerGenerationRunCommands(root, { scoped, run, angles, creatives });
397
702
  };
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.353",
7
+ "repositoryCliVersion": "0.1.354",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.346",
10
+ "bundleVersion": "2.0.347",
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": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15"
48
+ "sha256": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
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": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367"
148
+ "sha256": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.352",
154
+ "repositoryCliVersion": "0.1.353",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.345",
157
+ "bundleVersion": "2.0.346",
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": "a66ccac6a2aa87361d491759c06c87c718755552f04250ca51768679fbade4ac"
195
+ "sha256": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15"
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": "853f573a6667f1ec5ff4da9075ca8df488f82d984723c44bc947e60f020c6b51"
295
+ "sha256": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.351",
301
+ "repositoryCliVersion": "0.1.352",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.344",
304
+ "bundleVersion": "2.0.345",
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": "5db03d9f8f9adf0542dc4bd4008a5cf42073cc3eb99909892efaffe49b751e5c"
342
+ "sha256": "a66ccac6a2aa87361d491759c06c87c718755552f04250ca51768679fbade4ac"
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": "8b3a1d3859156a55c0125093d720aefc84a9eda7153a58211eba2460fc23316b"
442
+ "sha256": "853f573a6667f1ec5ff4da9075ca8df488f82d984723c44bc947e60f020c6b51"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.350",
448
+ "repositoryCliVersion": "0.1.351",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.343",
451
+ "bundleVersion": "2.0.344",
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": "642abb9ad362188cefdc4b756c3fcfeb78c2aba54b552ab606996cae32285a25"
489
+ "sha256": "5db03d9f8f9adf0542dc4bd4008a5cf42073cc3eb99909892efaffe49b751e5c"
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": "b7421e4fbee50ef16e21c4863c256cdf1acbb146356d093d6c234b6bc209eff0"
589
+ "sha256": "8b3a1d3859156a55c0125093d720aefc84a9eda7153a58211eba2460fc23316b"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.349",
595
+ "repositoryCliVersion": "0.1.350",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.342",
598
+ "bundleVersion": "2.0.343",
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": "7feb445afac29d0bdde1c88a9c1a067c9f7b7582030ae9d74f4794a1a9096653"
636
+ "sha256": "642abb9ad362188cefdc4b756c3fcfeb78c2aba54b552ab606996cae32285a25"
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": "0527f742251b4a66cff004a686a5e700ec25f8bafd0e58e61ccd1ede0dcf307f"
736
+ "sha256": "b7421e4fbee50ef16e21c4863c256cdf1acbb146356d093d6c234b6bc209eff0"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.348",
742
+ "repositoryCliVersion": "0.1.349",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.341",
745
+ "bundleVersion": "2.0.342",
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": "3bf19c149e0c203b4958a9476d561e1ebd25deb7f0592b7b3190029c2d307a21"
783
+ "sha256": "7feb445afac29d0bdde1c88a9c1a067c9f7b7582030ae9d74f4794a1a9096653"
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": "d8d48c6b6b11c9ab8031f1d48da083125856a0362571263d53c828399d27d64f"
883
+ "sha256": "0527f742251b4a66cff004a686a5e700ec25f8bafd0e58e61ccd1ede0dcf307f"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.347",
889
+ "repositoryCliVersion": "0.1.348",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.340",
892
+ "bundleVersion": "2.0.341",
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": "22881ce507f392cb400365d2c7fffc741a62b2709584047ce1e438da9e8c194a"
930
+ "sha256": "3bf19c149e0c203b4958a9476d561e1ebd25deb7f0592b7b3190029c2d307a21"
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": "7019f60385a97377bc21204f3ee4fdbbc9a89b3891db7be77797f3bbe3fdf797"
1030
+ "sha256": "d8d48c6b6b11c9ab8031f1d48da083125856a0362571263d53c828399d27d64f"
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.353",
3
+ "version": "0.1.354",
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.346",
3
+ "bundleVersion": "2.0.347",
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": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15"
41
+ "sha256": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
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": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367"
141
+ "sha256": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
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.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.353`, 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.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.354`, 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.346",
3
+ "bundleVersion": "2.0.347",
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.346",
3
+ "bundleVersion": "2.0.347",
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": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15"
41
+ "sha256": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
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": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367"
141
+ "sha256": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "4a105ab747a7ebb1f4d4c59f5be95cf3d8d0881f7aacf611ddbb16b5ad405375",
3
+ "sourceTreeHash": "dc5637cc9cbe5f6cf96a0fa4dc8ad0e8aa1429255f6c713d2d2c004a9c2b78bf",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.346",
5
+ "docsBundleVersion": "2.0.347",
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": "1f893818c946009314c497eac9cd82b8c3b47db210c3cfbdaf795aaa27edac10",
19
+ "sha256": "c671cd2de196de45a2828d08d3e665b1fd053057de770971890c37b68343322c",
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": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15",
79
+ "sha256": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50",
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": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367",
209
+ "sha256": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428",
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.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.353`, 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.44.0`, then `@funnelsgrove/analytics` `0.27.0`, then `@funnelsgrove/payments` `0.71.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.354`, 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.346",
3
+ "bundleVersion": "2.0.347",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",