@funnelsgrove/cli 0.1.354 → 0.1.357
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 +70 -0
- package/dist/creativeCommands.js +241 -12
- package/funnel-contract-compatibility.json +28 -28
- package/package.json +1 -1
- 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 +5 -5
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/funnel-docs.config.json +1 -1
|
@@ -104,6 +104,7 @@ export type BrandKitContent = {
|
|
|
104
104
|
fonts: Record<string, {
|
|
105
105
|
family: string;
|
|
106
106
|
weights: number[];
|
|
107
|
+
source?: 'google' | 'workspace';
|
|
107
108
|
}>;
|
|
108
109
|
radii: Record<string, number>;
|
|
109
110
|
logo: {
|
|
@@ -141,6 +142,16 @@ export type Brief = {
|
|
|
141
142
|
};
|
|
142
143
|
/** A kit file is either the output of `brand-kits show` or its `content`; only editable fields are sent. */
|
|
143
144
|
export declare const brandKitPatchFromFile: (json: unknown) => Record<string, unknown>;
|
|
145
|
+
/**
|
|
146
|
+
* A Brand Kit font flag, `Family` or `Family:400,700` (CRE-BR-029). Without weights the role keeps its current weights.
|
|
147
|
+
* The API takes a Workspace Font when the workspace has the family, else the Google family.
|
|
148
|
+
*/
|
|
149
|
+
export declare const parseFontFlag: (value: string, currentWeights: number[]) => {
|
|
150
|
+
family: string;
|
|
151
|
+
weights: number[];
|
|
152
|
+
};
|
|
153
|
+
/** The font type a file really has, from its first bytes (CRE-BR-028); the API checks it again after the upload. */
|
|
154
|
+
export declare const fontContentType: (body: Buffer) => string | null;
|
|
144
155
|
export declare const findBrandKit: (kits: BrandKit[], brand: string) => BrandKit;
|
|
145
156
|
/** A local scene file becomes a file:// URL so the HTML opens in a browser; http(s) and file URLs are kept. */
|
|
146
157
|
export declare const sceneUrl: (scene: string) => string;
|
|
@@ -243,7 +254,66 @@ type GenerateOptions = {
|
|
|
243
254
|
autoApprove?: boolean;
|
|
244
255
|
wait?: boolean;
|
|
245
256
|
estimate?: boolean;
|
|
257
|
+
flow?: string;
|
|
258
|
+
layout?: string;
|
|
259
|
+
texts?: string;
|
|
260
|
+
swap?: string;
|
|
261
|
+
pack?: string;
|
|
262
|
+
};
|
|
263
|
+
export type RemixSlot = {
|
|
264
|
+
id: string;
|
|
265
|
+
role: string;
|
|
266
|
+
kind: 'text' | 'button';
|
|
267
|
+
text: string;
|
|
268
|
+
box: unknown;
|
|
269
|
+
labelBox: unknown;
|
|
270
|
+
style: Record<string, unknown>;
|
|
271
|
+
};
|
|
272
|
+
export type ReferenceLayout = {
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
status: 'analyzing' | 'ready' | 'failed';
|
|
276
|
+
size: string;
|
|
277
|
+
error: string | null;
|
|
278
|
+
credits: number;
|
|
279
|
+
source_url: string;
|
|
280
|
+
plate_url: string | null;
|
|
281
|
+
source_variation_name: string | null;
|
|
282
|
+
slots: RemixSlot[];
|
|
283
|
+
[key: string]: unknown;
|
|
246
284
|
};
|
|
285
|
+
/** `remix show`: the layout an agent edits, with a text set of the reference's own words to copy into a texts file. */
|
|
286
|
+
export declare const summarizeLayout: (layout: ReferenceLayout) => {
|
|
287
|
+
id: string;
|
|
288
|
+
name: string;
|
|
289
|
+
status: "failed" | "ready" | "analyzing";
|
|
290
|
+
size: string;
|
|
291
|
+
error: string | null;
|
|
292
|
+
credits: number;
|
|
293
|
+
sourceVariation: string | null;
|
|
294
|
+
sourceUrl: string;
|
|
295
|
+
plateUrl: string | null;
|
|
296
|
+
slots: RemixSlot[];
|
|
297
|
+
textSet: {
|
|
298
|
+
[k: string]: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/** A texts file: one text set (slot id to words) per output, or a single text set. */
|
|
302
|
+
export declare const parseTextSets: (json: unknown) => Record<string, string>[];
|
|
303
|
+
/** A slots file: slot edits (id, text, style), or the output of `remix show`; only words and style are sent. */
|
|
304
|
+
export declare const slotEditsFromFile: (json: unknown) => {
|
|
305
|
+
style?: object | undefined;
|
|
306
|
+
text?: string | undefined;
|
|
307
|
+
id: string;
|
|
308
|
+
}[];
|
|
309
|
+
/** The `startGeneration` input of a Remix: a ready layout, the Angle and brand of its Variations, the text sets and a brand swap. */
|
|
310
|
+
export declare const remixRequest: (options: GenerateOptions, angles: Angle[], textSets: Record<string, string>[]) => Record<string, unknown>;
|
|
311
|
+
export declare const LAYOUT_WAIT_STOP: string[];
|
|
312
|
+
export declare const waitForLayout: (scope: CreativeScope, layoutId: string, options?: {
|
|
313
|
+
intervalMs?: number;
|
|
314
|
+
timeoutMs?: number;
|
|
315
|
+
sleep?: (ms: number) => Promise<void>;
|
|
316
|
+
}) => Promise<ReferenceLayout>;
|
|
247
317
|
/** Builds the `startGeneration` input: a Brief id, or an inline Brief from the quick-create flags. */
|
|
248
318
|
export declare const generationRequest: (options: GenerateOptions, angles: Angle[]) => Record<string, unknown>;
|
|
249
319
|
/** `fgrove creatives …`: angles, creatives, variations, dictionaries and files of one project. */
|
package/dist/creativeCommands.js
CHANGED
|
@@ -249,6 +249,22 @@ export const brandKitPatchFromFile = (json) => {
|
|
|
249
249
|
}
|
|
250
250
|
return Object.fromEntries(BRAND_KIT_EDITABLE.filter((key) => value[key] !== undefined).map((key) => [key, value[key]]));
|
|
251
251
|
};
|
|
252
|
+
/**
|
|
253
|
+
* A Brand Kit font flag, `Family` or `Family:400,700` (CRE-BR-029). Without weights the role keeps its current weights.
|
|
254
|
+
* The API takes a Workspace Font when the workspace has the family, else the Google family.
|
|
255
|
+
*/
|
|
256
|
+
export const parseFontFlag = (value, currentWeights) => {
|
|
257
|
+
const [family = '', weights] = value.split(':');
|
|
258
|
+
if (!family.trim()) {
|
|
259
|
+
throw new Error(`Use a font such as "Gilroy" or "Inter:400,600", got "${value}"`);
|
|
260
|
+
}
|
|
261
|
+
return { family: family.trim(), weights: weights === undefined ? currentWeights : weights.split(',').map((weight) => parseNumber(weight.trim())) };
|
|
262
|
+
};
|
|
263
|
+
const FONT_SIGNATURES = [
|
|
264
|
+
['774f4632', 'font/woff2'], ['774f4646', 'font/woff'], ['00010000', 'font/ttf'], ['74727565', 'font/ttf'], ['4f54544f', 'font/otf'],
|
|
265
|
+
];
|
|
266
|
+
/** The font type a file really has, from its first bytes (CRE-BR-028); the API checks it again after the upload. */
|
|
267
|
+
export const fontContentType = (body) => FONT_SIGNATURES.find(([magic]) => body.subarray(0, 4).toString('hex') === magic)?.[1] ?? null;
|
|
252
268
|
export const findBrandKit = (kits, brand) => {
|
|
253
269
|
const kit = kits.find((item) => item.id === brand || item.brand.toLowerCase() === brand.trim().toLowerCase());
|
|
254
270
|
if (!kit) {
|
|
@@ -306,6 +322,67 @@ export const waitForGeneration = async (scope, generationId, options = {}) => {
|
|
|
306
322
|
await sleep(options.intervalMs ?? 5000);
|
|
307
323
|
}
|
|
308
324
|
};
|
|
325
|
+
/** `remix show`: the layout an agent edits, with a text set of the reference's own words to copy into a texts file. */
|
|
326
|
+
export const summarizeLayout = (layout) => ({
|
|
327
|
+
id: layout.id,
|
|
328
|
+
name: layout.name,
|
|
329
|
+
status: layout.status,
|
|
330
|
+
size: layout.size,
|
|
331
|
+
error: layout.error,
|
|
332
|
+
credits: layout.credits,
|
|
333
|
+
sourceVariation: layout.source_variation_name,
|
|
334
|
+
sourceUrl: layout.source_url,
|
|
335
|
+
plateUrl: layout.plate_url,
|
|
336
|
+
slots: layout.slots,
|
|
337
|
+
textSet: Object.fromEntries(layout.slots.map((slot) => [slot.id, slot.text])),
|
|
338
|
+
});
|
|
339
|
+
const TEXTS_HINT = 'a JSON array of text sets such as [{"headline": "Last week to file", "cta": "See if you qualify"}] '
|
|
340
|
+
+ '(slot ids from "fgrove creatives remix show <id>"; a slot left out keeps its words)';
|
|
341
|
+
/** A texts file: one text set (slot id to words) per output, or a single text set. */
|
|
342
|
+
export const parseTextSets = (json) => {
|
|
343
|
+
const sets = Array.isArray(json) ? json : [json];
|
|
344
|
+
if (sets.length === 0 || !sets.every((set) => set && typeof set === 'object' && !Array.isArray(set)
|
|
345
|
+
&& Object.values(set).every((value) => typeof value === 'string'))) {
|
|
346
|
+
throw new Error(`The texts file must be ${TEXTS_HINT}`);
|
|
347
|
+
}
|
|
348
|
+
return sets;
|
|
349
|
+
};
|
|
350
|
+
/** A slots file: slot edits (id, text, style), or the output of `remix show`; only words and style are sent. */
|
|
351
|
+
export const slotEditsFromFile = (json) => {
|
|
352
|
+
const slots = (json && typeof json === 'object' && !Array.isArray(json) && 'slots' in json ? json.slots : json);
|
|
353
|
+
if (!Array.isArray(slots) || !slots.every((slot) => slot && typeof slot === 'object' && typeof slot.id === 'string')) {
|
|
354
|
+
throw new Error('The slots file must be the output of "remix show" or an array of {"id", "text", "style"}');
|
|
355
|
+
}
|
|
356
|
+
return slots.map((slot) => ({
|
|
357
|
+
id: slot.id, ...(typeof slot.text === 'string' ? { text: slot.text } : {}), ...(slot.style && typeof slot.style === 'object' ? { style: slot.style } : {}),
|
|
358
|
+
}));
|
|
359
|
+
};
|
|
360
|
+
/** The `startGeneration` input of a Remix: a ready layout, the Angle and brand of its Variations, the text sets and a brand swap. */
|
|
361
|
+
export const remixRequest = (options, angles, textSets) => {
|
|
362
|
+
const missing = ['layout', 'angle', 'brand', 'texts'].filter((key) => !options[key]);
|
|
363
|
+
if (missing.length > 0) {
|
|
364
|
+
throw new Error(`A Remix needs --${missing.join(', --')} (--texts: ${TEXTS_HINT})`);
|
|
365
|
+
}
|
|
366
|
+
return {
|
|
367
|
+
remix: {
|
|
368
|
+
layoutId: options.layout, angleId: findAngle(angles, options.angle).id, brand: options.brand, textSets,
|
|
369
|
+
...(options.swap?.trim() ? { swap: options.swap.trim() } : {}),
|
|
370
|
+
},
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
export const LAYOUT_WAIT_STOP = ['ready', 'failed'];
|
|
374
|
+
export const waitForLayout = async (scope, layoutId, options = {}) => {
|
|
375
|
+
const sleep = options.sleep ?? ((ms) => new Promise((resolve) => { setTimeout(resolve, ms); }));
|
|
376
|
+
const deadline = Date.now() + (options.timeoutMs ?? 10 * 60_000);
|
|
377
|
+
for (;;) {
|
|
378
|
+
const layout = await api(scope, 'referenceLayout', 'query', { layoutId });
|
|
379
|
+
if (LAYOUT_WAIT_STOP.includes(layout.status) || Date.now() >= deadline) {
|
|
380
|
+
return layout;
|
|
381
|
+
}
|
|
382
|
+
await sleep(options.intervalMs ?? 5000);
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
const IMAGE_TYPES = { '.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', '.webp': 'image/webp' };
|
|
309
386
|
/** Builds the `startGeneration` input: a Brief id, or an inline Brief from the quick-create flags. */
|
|
310
387
|
export const generationRequest = (options, angles) => {
|
|
311
388
|
const settings = {
|
|
@@ -351,15 +428,21 @@ const parseScene = (value) => {
|
|
|
351
428
|
/** `fgrove creatives generate` and `fgrove creatives generations …`. */
|
|
352
429
|
const registerGenerationRunCommands = (root, input) => {
|
|
353
430
|
const { scoped, run } = input;
|
|
354
|
-
|
|
431
|
+
/** `generate` and `generations start`: a Brief, a quick-create Brief, or a Remix (`--flow remix`). */
|
|
432
|
+
const startCommand = (command) => scoped(command
|
|
433
|
+
.option('--flow <flow>', 'image | video | remix (default: --kind, else image)')
|
|
355
434
|
.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')
|
|
435
|
+
.option('--angle <angle>', 'Quick-create and Remix: angle code or slug').option('--brand <brand>', 'Quick-create and Remix: brand with a Brand Kit')
|
|
357
436
|
.option('--prompt <text>', 'Quick-create: scene to generate').option('--headline <text>', 'Quick-create: headline')
|
|
358
437
|
.option('--cta <text>', 'Quick-create: call to action').option('--supporting <text>', 'Quick-create: supporting line')
|
|
359
438
|
.option('--template <id>', `Quick-create: ${LAYOUT_TEMPLATE_IDS.join(' | ')}`).option('--format <format>', 'Quick-create: format (st or vid)')
|
|
360
439
|
.option('--scenes <json>', 'Quick-create video: [{"description":"…","duration_seconds":5}, …] (3-5 scenes, 15-30 s)')
|
|
361
440
|
.option('--voiceover <text>', 'Quick-create video: voiceover script')
|
|
362
441
|
.option('--kind <kind>', 'Quick-create: image | video', 'image')
|
|
442
|
+
.option('--layout <id>', 'Remix: Reference Layout id (fgrove creatives remix list)')
|
|
443
|
+
.option('--texts <file>', `Remix: ${TEXTS_HINT}; one image each, 1-5`)
|
|
444
|
+
.option('--swap <instruction>', 'Remix: brand swap made once on the clean plate, such as "Replace the PayPal wordmark with the Venmo wordmark"')
|
|
445
|
+
.option('--pack <creative>', 'Approve outputs into this existing Creative, such as st003 (default: one new Creative per batch)')
|
|
363
446
|
.option('--model <model>', 'nano-banana-2.1 | gpt-image-2 (image); seedance-2-mini | seedance-2.5 (video)')
|
|
364
447
|
.option('--quality <quality>', 'low | medium | high (image scenes and keyframes)')
|
|
365
448
|
.option('--resolution <resolution>', 'Video clips: 480p | 720p | 1080p (default 720p)')
|
|
@@ -369,14 +452,25 @@ const registerGenerationRunCommands = (root, input) => {
|
|
|
369
452
|
.option('--wait', 'Poll until finished or awaiting approval, then print output URLs')
|
|
370
453
|
.option('--estimate', 'Print the credits per step and the balance; start nothing'))
|
|
371
454
|
.action(run(async (scope, options) => {
|
|
372
|
-
const
|
|
455
|
+
const flow = options.flow ?? options.kind;
|
|
456
|
+
if (!['image', 'video', 'remix'].includes(flow)) {
|
|
457
|
+
throw new Error('--flow is image, video or remix');
|
|
458
|
+
}
|
|
459
|
+
const request = {
|
|
460
|
+
...(flow === 'remix'
|
|
461
|
+
? remixRequest(options, await input.angles(scope), options.texts ? parseTextSets(JSON.parse(await readFile(options.texts, 'utf8'))) : [])
|
|
462
|
+
: generationRequest({ ...options, kind: flow }, options.brief ? [] : await input.angles(scope))),
|
|
463
|
+
...(options.pack ? { packCreativeId: findCreative(await input.creatives(scope), options.pack).id } : {}),
|
|
464
|
+
};
|
|
373
465
|
if (options.estimate) {
|
|
374
466
|
return api(scope, 'estimateGeneration', 'query', request);
|
|
375
467
|
}
|
|
376
468
|
const started = await api(scope, 'startGeneration', 'mutation', request);
|
|
377
469
|
return summarizeGeneration(options.wait ? await waitForGeneration(scope, started.generation.id) : started);
|
|
378
470
|
}));
|
|
471
|
+
startCommand(root.command('generate').description('Start a Generation from a Brief, a quick-create Brief or a Remix; reserves Creative Credits'));
|
|
379
472
|
const generations = root.command('generations').description('Generations: the gallery of AI runs, their outputs, approval and keeping');
|
|
473
|
+
startCommand(generations.command('start').description('Start a Generation (same as "generate"): --flow image | video | remix'));
|
|
380
474
|
scoped(generations.command('list').description('List Generations, newest first')
|
|
381
475
|
.option('--angle <angle>', 'Only this angle').option('--brand <brand>', 'Only this brand').option('--kind <kind>', 'image | video')
|
|
382
476
|
.option('--status <status>', 'queued | running | awaiting_approval | assembling | succeeded | partially_succeeded | failed | canceled')
|
|
@@ -395,7 +489,7 @@ const registerGenerationRunCommands = (root, input) => {
|
|
|
395
489
|
const detail = options.wait ? await waitForGeneration(scope, id) : await api(scope, 'generation', 'query', { generationId: id });
|
|
396
490
|
return options.full ? detail : summarizeGeneration(detail);
|
|
397
491
|
}));
|
|
398
|
-
scoped(generations.command('approve <id>').description('Approve every keyframe of a video Generation; reserves the clips'))
|
|
492
|
+
scoped(generations.command('approve-keyframes <id>').description('Approve every keyframe of a video Generation; reserves the clips'))
|
|
399
493
|
.action(run(async (scope, _options, id) => summarizeGeneration(await api(scope, 'approveKeyframes', 'mutation', { generationId: id }))));
|
|
400
494
|
scoped(generations.command('regenerate-keyframe <id>').description('Make one keyframe again before approval')
|
|
401
495
|
.requiredOption('--scene <index>', '0-based scene index'))
|
|
@@ -409,14 +503,89 @@ const registerGenerationRunCommands = (root, input) => {
|
|
|
409
503
|
}))));
|
|
410
504
|
scoped(generations.command('cancel <id>').description('Cancel a Generation; unfinished outputs release their credits'))
|
|
411
505
|
.action(run(async (scope, _options, id) => summarizeGeneration(await api(scope, 'cancelGeneration', 'mutation', { generationId: id }))));
|
|
412
|
-
scoped(generations.command('keep <outputId>').description('
|
|
413
|
-
.option('--creative <creative>', 'Add it to this existing Creative, such as st003 (otherwise
|
|
506
|
+
scoped(generations.command('keep <outputId>').description('Approve one output as a Variation of its pack (alias of approve; free; once per output)')
|
|
507
|
+
.option('--creative <creative>', 'Add it to this existing Creative, such as st003 (otherwise the pack chosen at start)'))
|
|
414
508
|
.action(run(async (scope, options, outputId) => api(scope, 'keepOutput', 'mutation', {
|
|
415
509
|
outputId,
|
|
416
510
|
...(options.creative ? { creativeId: findCreative(await input.creatives(scope), options.creative).id } : {}),
|
|
417
511
|
})));
|
|
512
|
+
scoped(generations.command('approve <outputIds...>').description('Approve outputs as Variations of their pack: the Creative chosen at start, or one new Creative per batch (free; once per output)')
|
|
513
|
+
.option('--creative <creative>', 'Approve into this existing Creative instead, such as st003'))
|
|
514
|
+
// Commander hands a variadic argument over as one array.
|
|
515
|
+
.action(run(async (scope, options, ...positional) => api(scope, 'approveOutputs', 'mutation', {
|
|
516
|
+
outputIds: positional.flat(),
|
|
517
|
+
...(options.creative ? { creativeId: findCreative(await input.creatives(scope), options.creative).id } : {}),
|
|
518
|
+
})));
|
|
519
|
+
scoped(generations.command('reject <outputIds...>').description('Reject delivered outputs; they leave the gallery and stay charged (an approved output cannot be rejected)'))
|
|
520
|
+
.action(run(async (scope, _options, ...positional) => api(scope, 'rejectOutputs', 'mutation', { outputIds: positional.flat() })));
|
|
521
|
+
const remix = root.command('remix').description('Remix: Reference Layouts read from existing ads (words, fonts, a clean plate), rewritten with new words');
|
|
522
|
+
scoped(remix.command('create').description('Make a Reference Layout from a Variation\'s image or a local image; reserves its credits (analysis and clean plate)')
|
|
523
|
+
.option('--variation <variation>', 'Variation id, full name (its utm_content) or st003_02')
|
|
524
|
+
.option('--size <size>', 'The Variation file to use, such as 1080x1350 (default: 4:5, then 9:16, 1:1, 16:9)')
|
|
525
|
+
.option('--file <image>', 'A png, jpg or webp ad at 1:1, 4:5, 9:16 or 16:9')
|
|
526
|
+
.option('--name <name>', 'Layout name (default: the Variation name and size, or the file name)')
|
|
527
|
+
.option('--estimate', 'Print the price and the balance; create nothing')
|
|
528
|
+
.option('--wait', 'Poll until the layout is ready or failed'))
|
|
529
|
+
.action(run(async (scope, options) => {
|
|
530
|
+
if (options.estimate) {
|
|
531
|
+
return api(scope, 'estimateReferenceLayout', 'query');
|
|
532
|
+
}
|
|
533
|
+
if (Boolean(options.variation) === Boolean(options.file)) {
|
|
534
|
+
throw new Error('Pass either --variation or --file');
|
|
535
|
+
}
|
|
536
|
+
let created;
|
|
537
|
+
if (options.variation) {
|
|
538
|
+
const variation = findVariation(await api(scope, 'variations', 'query'), options.variation);
|
|
539
|
+
created = await api(scope, 'createReferenceLayout', 'mutation', {
|
|
540
|
+
variationId: variation.id, ...(options.size ? { size: options.size } : {}), ...(options.name ? { name: options.name } : {}),
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
const contentType = IMAGE_TYPES[path.extname(options.file).toLowerCase()];
|
|
545
|
+
if (!contentType) {
|
|
546
|
+
throw new Error('Use a png, jpg or webp image');
|
|
547
|
+
}
|
|
548
|
+
const body = await readFile(options.file);
|
|
549
|
+
const hash = sha256(body);
|
|
550
|
+
const prepared = await api(scope, 'prepareReferenceLayoutUpload', 'mutation', {
|
|
551
|
+
contentType, sizeBytes: body.byteLength, sha256: hash,
|
|
552
|
+
});
|
|
553
|
+
const response = await fetch(prepared.uploadUrl, { method: 'PUT', headers: prepared.headers, body: new Uint8Array(body) });
|
|
554
|
+
if (!response.ok) {
|
|
555
|
+
throw new Error(`Upload failed with HTTP ${response.status}`);
|
|
556
|
+
}
|
|
557
|
+
created = await api(scope, 'createReferenceLayout', 'mutation', {
|
|
558
|
+
upload: { key: prepared.key, sha256: hash }, name: options.name ?? path.basename(options.file, path.extname(options.file)),
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
return summarizeLayout(options.wait ? await waitForLayout(scope, created.id) : created);
|
|
562
|
+
}));
|
|
563
|
+
scoped(remix.command('list').description('List the project\'s Reference Layouts, newest first')
|
|
564
|
+
.option('--limit <n>', 'Page size (1-100)').option('--cursor <cursor>', 'nextCursor of the previous page'))
|
|
565
|
+
.action(run((scope, options) => api(scope, 'referenceLayouts', 'query', {
|
|
566
|
+
...(options.limit ? { limit: parseNumber(options.limit) } : {}), ...(options.cursor ? { cursor: options.cursor } : {}),
|
|
567
|
+
})));
|
|
568
|
+
scoped(remix.command('show <id>').description('Show a layout with its slots (ids, words, boxes, style) and a text set of its own words')
|
|
569
|
+
.option('--wait', 'Poll until the layout is ready or failed').option('--full', 'Print every stored field, with the analysis'))
|
|
570
|
+
.action(run(async (scope, options, id) => {
|
|
571
|
+
const layout = options.wait ? await waitForLayout(scope, id) : await api(scope, 'referenceLayout', 'query', { layoutId: id });
|
|
572
|
+
return options.full ? layout : summarizeLayout(layout);
|
|
573
|
+
}));
|
|
574
|
+
scoped(remix.command('update <id>').description('Edit slots\' words and style (family, source, weight, italic, uppercase, color, accentColor, align) or rename; free. '
|
|
575
|
+
+ 'A family is a Google Fonts family (source "google") or a Workspace Font (source "workspace"); a missing weight becomes the next heavier one')
|
|
576
|
+
.option('--slots <file>', 'The output of "remix show" (edited) or an array of {"id", "text", "style"}').option('--name <name>', 'New name'))
|
|
577
|
+
.action(run(async (scope, options, id) => {
|
|
578
|
+
if (!options.slots && !options.name) {
|
|
579
|
+
throw new Error('Pass --slots <file> or --name <name>');
|
|
580
|
+
}
|
|
581
|
+
return summarizeLayout(await api(scope, 'updateReferenceLayout', 'mutation', {
|
|
582
|
+
layoutId: id,
|
|
583
|
+
...(options.slots ? { slots: slotEditsFromFile(JSON.parse(await readFile(options.slots, 'utf8'))) } : {}),
|
|
584
|
+
...(options.name ? { name: options.name } : {}),
|
|
585
|
+
}));
|
|
586
|
+
}));
|
|
418
587
|
};
|
|
419
|
-
/** `fgrove creatives brand-kits|briefs|render`. */
|
|
588
|
+
/** `fgrove creatives brand-kits|fonts|briefs|render`. */
|
|
420
589
|
const registerGenerationCommands = (root, input) => {
|
|
421
590
|
const { scoped, run } = input;
|
|
422
591
|
const kits = (scope) => api(scope, 'brandKits', 'query');
|
|
@@ -430,15 +599,30 @@ const registerGenerationCommands = (root, input) => {
|
|
|
430
599
|
.action(run((scope, options) => api(scope, 'seedBrandKit', 'mutation', {
|
|
431
600
|
brand: options.brand, funnelId: options.funnel,
|
|
432
601
|
})));
|
|
433
|
-
scoped(brandKit.command('update').description('Create or edit a brand\'s kit from a JSON file (output of show, or its content)
|
|
434
|
-
|
|
602
|
+
scoped(brandKit.command('update').description('Create or edit a brand\'s kit from a JSON file (output of show, or its content) '
|
|
603
|
+
+ 'or font flags; a new version. A font is a Workspace Font when the workspace has the family, else a Google family')
|
|
604
|
+
.option('--file <kit.json>', 'Kit JSON').option('--brand <brand>', 'Brand (defaults to the file\'s brand)')
|
|
605
|
+
.option('--display-font <family[:weights]>', 'Headline and CTA font, such as "Gilroy:700" (see fonts list and fonts search)')
|
|
606
|
+
.option('--body-font <family[:weights]>', 'Body font, such as "Inter:400,600"'))
|
|
435
607
|
.action(run(async (scope, options) => {
|
|
436
|
-
|
|
608
|
+
if (!options.file && !options.displayFont && !options.bodyFont) {
|
|
609
|
+
throw new Error('Pass --file, --display-font or --body-font');
|
|
610
|
+
}
|
|
611
|
+
const json = (options.file ? JSON.parse(await readFile(options.file, 'utf8')) : {});
|
|
437
612
|
const brand = options.brand ?? (typeof json.brand === 'string' ? json.brand : undefined);
|
|
438
613
|
if (!brand) {
|
|
439
614
|
throw new Error('--brand is required when the file has no "brand"');
|
|
440
615
|
}
|
|
441
|
-
|
|
616
|
+
const patch = brandKitPatchFromFile(json);
|
|
617
|
+
if (options.displayFont || options.bodyFont) {
|
|
618
|
+
const current = (await kits(scope)).find((kit) => kit.brand.toLowerCase() === brand.trim().toLowerCase())?.content.fonts;
|
|
619
|
+
patch.fonts = {
|
|
620
|
+
...patch.fonts,
|
|
621
|
+
...(options.displayFont ? { display: parseFontFlag(options.displayFont, current?.display?.weights ?? [700]) } : {}),
|
|
622
|
+
...(options.bodyFont ? { body: parseFontFlag(options.bodyFont, current?.body?.weights ?? [400]) } : {}),
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
return api(scope, 'updateBrandKit', 'mutation', { brand, patch });
|
|
442
626
|
}));
|
|
443
627
|
scoped(brandKit.command('logo <file>').description('Upload a logo (png, webp, svg, jpg) to a brand\'s kit; a new version')
|
|
444
628
|
.requiredOption('--brand <brand>', 'Brand'))
|
|
@@ -459,6 +643,42 @@ const registerGenerationCommands = (root, input) => {
|
|
|
459
643
|
}
|
|
460
644
|
return api(scope, 'finalizeBrandKitLogoUpload', 'mutation', { brandKitId: kit.id, key: prepared.key, sha256: hash });
|
|
461
645
|
}));
|
|
646
|
+
const fonts = root.command('fonts').description('Workspace Fonts, shared by every project of the workspace, and the Google Fonts catalog');
|
|
647
|
+
scoped(fonts.command('list').description('List the workspace\'s fonts by family, with their weights and files'))
|
|
648
|
+
.action(run((scope) => api(scope, 'workspaceFonts', 'query')));
|
|
649
|
+
scoped(fonts.command('search <query>').description('Search Google Fonts by family name, most popular first')
|
|
650
|
+
.option('--category <category>', 'sans | serif | display | handwriting | mono').option('--cyrillic', 'Only families with Cyrillic')
|
|
651
|
+
.option('--limit <n>', 'How many (1-100, default 20)'))
|
|
652
|
+
.action(run((scope, options, query) => api(scope, 'googleFonts', 'query', {
|
|
653
|
+
query, ...(options.category ? { category: options.category } : {}), ...(options.cyrillic ? { subset: 'cyrillic' } : {}),
|
|
654
|
+
...(options.limit ? { limit: parseNumber(options.limit) } : {}),
|
|
655
|
+
})));
|
|
656
|
+
scoped(fonts.command('upload <file>').description('Upload a woff2, woff, ttf or otf font (up to 10 MB) as a Workspace Font; '
|
|
657
|
+
+ 'family, weight and style default to what the file name says, such as Gilroy-BoldItalic.woff2')
|
|
658
|
+
.option('--family <family>', 'Family name').option('--weight <weight>', '100 to 900').option('--style <style>', 'normal | italic'))
|
|
659
|
+
.action(run(async (scope, options, file) => {
|
|
660
|
+
const body = await readFile(file);
|
|
661
|
+
const contentType = fontContentType(body);
|
|
662
|
+
if (!contentType) {
|
|
663
|
+
throw new Error(`${file} is not a woff2, woff, ttf or otf font`);
|
|
664
|
+
}
|
|
665
|
+
const hash = sha256(body);
|
|
666
|
+
const prepared = await api(scope, 'prepareWorkspaceFontUpload', 'mutation', {
|
|
667
|
+
fileName: path.basename(file), contentType, sizeBytes: body.byteLength, sha256: hash,
|
|
668
|
+
...(options.family ? { family: options.family } : {}),
|
|
669
|
+
...(options.weight ? { weight: parseNumber(options.weight) } : {}),
|
|
670
|
+
...(options.style ? { style: options.style } : {}),
|
|
671
|
+
});
|
|
672
|
+
const response = await fetch(prepared.uploadUrl, { method: 'PUT', headers: prepared.headers, body: new Uint8Array(body) });
|
|
673
|
+
if (!response.ok) {
|
|
674
|
+
throw new Error(`Font upload failed with HTTP ${response.status}`);
|
|
675
|
+
}
|
|
676
|
+
return api(scope, 'finalizeWorkspaceFontUpload', 'mutation', {
|
|
677
|
+
key: prepared.key, sha256: hash, family: prepared.family, weight: prepared.weight, style: prepared.style,
|
|
678
|
+
});
|
|
679
|
+
}));
|
|
680
|
+
scoped(fonts.command('archive <id>').description('Archive a font file: it leaves the picker, and Brand Kits and Generations that use it keep rendering'))
|
|
681
|
+
.action(run((scope, _options, id) => api(scope, 'archiveWorkspaceFont', 'mutation', { fontId: id })));
|
|
462
682
|
const brief = root.command('briefs').description('Creative Briefs: the words, scene and layout of a future variation, proposed from Angles');
|
|
463
683
|
scoped(brief.command('list').description('List Briefs, newest first, one page at a time').option('--angle <angle>', 'Only this angle')
|
|
464
684
|
.option('--status <status>', 'proposed | accepted | archived').option('--kind <kind>', 'image | video')
|
|
@@ -547,12 +767,21 @@ Examples:
|
|
|
547
767
|
fgrove creatives credits --project claimbee
|
|
548
768
|
fgrove creatives credits buy 50 --project claimbee
|
|
549
769
|
fgrove creatives brand-kits seed --brand Amazon --funnel <funnel id> --project claimbee
|
|
770
|
+
fgrove creatives fonts upload ./Gilroy-Bold.woff2 --project claimbee
|
|
771
|
+
fgrove creatives fonts search "dm sans" --project claimbee
|
|
772
|
+
fgrove creatives brand-kits update --brand Amazon --display-font "Gilroy:700" --body-font "DM Sans:400,500" --project claimbee
|
|
550
773
|
fgrove creatives briefs propose --angles C004,C007 --brand Amazon --format st --kind image --count 6 --project claimbee
|
|
551
774
|
fgrove creatives render --brief <brief id> --size 1080x1350 --scene ./scene.png --out brief.html --project claimbee
|
|
552
775
|
fgrove creatives generate --brief <brief id> --count 4 --sizes 1080x1350,1080x1920 --estimate --project claimbee
|
|
553
776
|
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
777
|
fgrove creatives generate --brief <video brief id> --auto-approve --wait --project claimbee
|
|
555
|
-
fgrove creatives generations
|
|
778
|
+
fgrove creatives generations approve <output id> <output id> --project claimbee
|
|
779
|
+
fgrove creatives generations approve <output id> --creative st003 --project claimbee
|
|
780
|
+
fgrove creatives generations reject <output id> --project claimbee
|
|
781
|
+
fgrove creatives remix create --variation CLMB_st027_03_deadline --wait --project claimbee
|
|
782
|
+
fgrove creatives remix show <layout id> --project claimbee > layout.json
|
|
783
|
+
fgrove creatives remix update <layout id> --slots layout.json --project claimbee
|
|
784
|
+
fgrove creatives generations start --flow remix --layout <layout id> --angle C004 --brand Venmo --texts texts.json --swap "Replace the PayPal wordmark with the Venmo wordmark" --estimate --project claimbee`);
|
|
556
785
|
const settings = root.command('settings').description('Project creative settings');
|
|
557
786
|
scoped(settings.command('show').description('Show the name prefix and dictionaries'))
|
|
558
787
|
.action(run((scope) => api(scope, 'settings', 'query')));
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.357",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.350",
|
|
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": "d7849f21c005bcac20c8e8e6caca4e90eff1c19add790e6e19904129714f4fc5"
|
|
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": "ad07c811a7a8ac21e7aa01c324a2d7b764e8dc5af03ebcd8b36617859ea8bb42"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.356",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.349",
|
|
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": "7cf7ffb707ef0d534ad4c9b3377c1d192cb304a16ca30f5f014ce0a8a0be065e"
|
|
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": "7c4dc24661a335b885b43d7ed8a53abc288344ea81efc9250908a4ac0cce0991"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.355",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.348",
|
|
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": "c72e184744cef59f40141bc950e40027c15c00032db03893bf0868c76feb85ee"
|
|
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": "ed74a5d6792358e6f3475efb1af19506da635b4a7d5723c34bee4187a2f28b99"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.354",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.347",
|
|
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": "
|
|
489
|
+
"sha256": "f1c2098061ec0f53fc655c29079ee6cb45889b24d86fa620ab1e406017facc50"
|
|
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": "a970838c18d563327669a681196c48b83bd3e00d9658c60d9402ccb226057428"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.353",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.346",
|
|
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": "
|
|
636
|
+
"sha256": "7aeda8d18a85667010396e754ff77338acd30494b09819a23fdf257401ff7f15"
|
|
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": "
|
|
736
|
+
"sha256": "7dacbe5ea0b190e1e6604033cfa5d933ff0da2aacd5c1035fcf0616601da4367"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.352",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.345",
|
|
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": "
|
|
783
|
+
"sha256": "a66ccac6a2aa87361d491759c06c87c718755552f04250ca51768679fbade4ac"
|
|
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": "
|
|
883
|
+
"sha256": "853f573a6667f1ec5ff4da9075ca8df488f82d984723c44bc947e60f020c6b51"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.351",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.344",
|
|
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": "5db03d9f8f9adf0542dc4bd4008a5cf42073cc3eb99909892efaffe49b751e5c"
|
|
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": "8b3a1d3859156a55c0125093d720aefc84a9eda7153a58211eba2460fc23316b"
|
|
1031
1031
|
}
|
|
1032
1032
|
]
|
|
1033
1033
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.350",
|
|
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": "d7849f21c005bcac20c8e8e6caca4e90eff1c19add790e6e19904129714f4fc5"
|
|
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": "ad07c811a7a8ac21e7aa01c324a2d7b764e8dc5af03ebcd8b36617859ea8bb42"
|
|
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.
|
|
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.357`, 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.350",
|
|
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": "d7849f21c005bcac20c8e8e6caca4e90eff1c19add790e6e19904129714f4fc5"
|
|
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": "ad07c811a7a8ac21e7aa01c324a2d7b764e8dc5af03ebcd8b36617859ea8bb42"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "1dcd0a6695f74078ded0afda1cf790174863f44284e7b8f985574c78105c8d54",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.350",
|
|
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": "4bce2804ef8c13fdbc9a3a8427cc3828e3e40802f80b29afccda290693b62cf6",
|
|
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": "d7849f21c005bcac20c8e8e6caca4e90eff1c19add790e6e19904129714f4fc5",
|
|
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": "ad07c811a7a8ac21e7aa01c324a2d7b764e8dc5af03ebcd8b36617859ea8bb42",
|
|
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.
|
|
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.357`, 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
|