@slatesvideo/shared 0.7.16 → 0.7.17
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/manual/content.d.ts +1 -1
- package/dist/manual/content.js +1 -1
- package/dist/operations/index.d.ts +29 -12
- package/dist/operations/index.js +294 -109
- package/dist/prompts/model-capabilities.d.ts +39 -6
- package/dist/prompts/model-capabilities.js +120 -43
- package/dist/prompts/model-facts.d.ts +1 -1
- package/dist/prompts/model-facts.js +26 -21
- package/dist/prompts/prompting-tips.d.ts +1 -1
- package/dist/prompts/prompting-tips.js +16 -11
- package/dist/prompts/reference-composer.d.ts +4 -0
- package/dist/prompts/reference-composer.js +14 -1
- package/dist/prompts/shot-spec.d.ts +1 -1
- package/dist/skills/content.js +1 -1
- package/package.json +1 -1
|
@@ -190,6 +190,15 @@ export interface ModelCapability {
|
|
|
190
190
|
maxReferenceVideoSeconds?: number;
|
|
191
191
|
/** Combined seconds across every reference audio clip. */
|
|
192
192
|
maxReferenceAudioSeconds?: number;
|
|
193
|
+
/** Fewer reference videos on a longer output: above `aboveSeconds` of output,
|
|
194
|
+
* at most `max` (`maxReferenceVideosFor`). Absent = `maxReferenceVideos` at every length. */
|
|
195
|
+
longOutputReferenceVideos?: {
|
|
196
|
+
aboveSeconds: number;
|
|
197
|
+
max: number;
|
|
198
|
+
};
|
|
199
|
+
/** The longest output with a last frame, when shorter than `duration.max`
|
|
200
|
+
* (`lastFrameMaxSecondsFor`). Absent = the model's whole window. */
|
|
201
|
+
lastFrameMaxSeconds?: number;
|
|
193
202
|
/**
|
|
194
203
|
* Max characters in ONE synthesis request. Present ⟺ the surface is TTS.
|
|
195
204
|
* This is the number the character BILLING BUCKET is sized against, so it
|
|
@@ -214,12 +223,12 @@ export interface ModelCapability {
|
|
|
214
223
|
export declare const AGENT_ROUTE_PROVIDER = "fal";
|
|
215
224
|
export declare const MODEL_CAPABILITIES: Record<string, ModelCapability>;
|
|
216
225
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
226
|
+
* Seats that left the roster, each with the seat that replaced it. The desktop
|
|
227
|
+
* moves a stored or sent id onto its replacement (slate `migrateRetiredModel`,
|
|
228
|
+
* which reads this map and adds the retired video seats this repo does not name).
|
|
229
|
+
* The server keeps their cost keys so desktops released before a retirement
|
|
230
|
+
* still bill; the list and estimate ops hide those keys and name the replacement
|
|
231
|
+
* instead.
|
|
223
232
|
*/
|
|
224
233
|
export declare const RETIRED_MODELS: Readonly<Record<string, string>>;
|
|
225
234
|
/**
|
|
@@ -260,6 +269,30 @@ export declare function durationsFor(model: string, opts?: {
|
|
|
260
269
|
videoResolution?: string;
|
|
261
270
|
promptMode?: string;
|
|
262
271
|
}): DurationCapability | undefined;
|
|
272
|
+
/**
|
|
273
|
+
* Reference videos a request may carry at `duration` seconds of output: fewer
|
|
274
|
+
* above the row's `longOutputReferenceVideos` threshold, else `maxReferenceVideos`.
|
|
275
|
+
* Without a duration the threshold cannot apply, so the row's full cap is returned.
|
|
276
|
+
*/
|
|
277
|
+
export declare function maxReferenceVideosFor(model: string, duration?: number): number;
|
|
278
|
+
/** The longest output a request with a last frame may ask for: the row's
|
|
279
|
+
* `lastFrameMaxSeconds`, else its duration maximum. */
|
|
280
|
+
export declare function lastFrameMaxSecondsFor(model: string): number | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* The limits that move with the request rather than with the model alone: the
|
|
283
|
+
* output length a last frame allows, how many reference videos that length
|
|
284
|
+
* allows, and each reference video's length. `referenceVideoCount` defaults to
|
|
285
|
+
* the number of lengths given. A plain message naming `label`, or null. One
|
|
286
|
+
* function for the desktop's composer and the agent ops, so both refuse the same
|
|
287
|
+
* request before anything uploads or bills.
|
|
288
|
+
*/
|
|
289
|
+
export declare function checkReferenceShape(model: string, opts: {
|
|
290
|
+
duration?: number;
|
|
291
|
+
lastFrame?: boolean;
|
|
292
|
+
referenceVideoCount?: number;
|
|
293
|
+
referenceVideoSeconds?: readonly number[];
|
|
294
|
+
label?: string;
|
|
295
|
+
}): string | null;
|
|
263
296
|
/** Every legal whole-second duration. Mirrors `getAvailableDurations`. */
|
|
264
297
|
export declare function durationValuesFor(model: string, opts?: {
|
|
265
298
|
videoResolution?: string;
|
|
@@ -73,7 +73,7 @@ const KLING_FAL_ASPECT_RATIOS = ['16:9', '9:16', '1:1'];
|
|
|
73
73
|
* follows the input frames."
|
|
74
74
|
*/
|
|
75
75
|
const KLING_V4_ASPECT_RATIOS = ['16:9', '9:16', '1:1', '21:9'];
|
|
76
|
-
/** Gemini Omni Flash
|
|
76
|
+
/** Gemini Omni Flash 1.2: two, 16:9 default (fal's v1.2 schemas, all four endpoints, read 2026-11-10). */
|
|
77
77
|
const OMNI_FLASH_ASPECT_RATIOS = ['16:9', '9:16'];
|
|
78
78
|
/**
|
|
79
79
|
* Wan 3.0: five. Read off fal's live OpenAPI 2026-10-17 for all three
|
|
@@ -116,6 +116,8 @@ export const GPT_QUALITY_TIERS = ['low', 'medium', 'high', 'xhigh', 'max'];
|
|
|
116
116
|
export const DEFAULT_GPT_QUALITY = 'high';
|
|
117
117
|
export const GPT_BACKGROUNDS = ['auto', 'transparent', 'opaque'];
|
|
118
118
|
// Product output sizes; schema bounds and metering receipt live in the GPT harvest.
|
|
119
|
+
// GPT Image 2.6 keeps 2.5's size bounds (fal schema, 2026-11-10), so the table
|
|
120
|
+
// and its exported name carry over: slate and slates-api import it by that name.
|
|
119
121
|
export const GPT_IMAGE_25_SIZES = {
|
|
120
122
|
'1k': {
|
|
121
123
|
'1:1': { width: 1024, height: 1024 },
|
|
@@ -291,11 +293,15 @@ export const MODEL_CAPABILITIES = {
|
|
|
291
293
|
// becomes a Shot. That is strictly better than keeping the row — the Shot
|
|
292
294
|
// comes back FIREABLE on a live model, rather than merely openable on a dead
|
|
293
295
|
// one. Do not re-add this row to make a stale id resolve; migrate it.
|
|
294
|
-
// GPT Image 2.
|
|
295
|
-
//
|
|
296
|
-
//
|
|
297
|
-
//
|
|
298
|
-
//
|
|
296
|
+
// GPT Image 2.6 (fal `openai/gpt-image-2.6/{flare|sunburst}/{text-to-image|edit}`),
|
|
297
|
+
// replacing 2.5 on 2026-11-10 (Eric). Every field Slates sends has the same
|
|
298
|
+
// type, bounds and default as on 2.5 (fal OpenAPI, ripped verbatim to
|
|
299
|
+
// second-brain/business/projects/slates/provider-docs/fal-gpt-image-2-6-openapi-schemas.md;
|
|
300
|
+
// the diff is in second-brain plans/2026-11-10-slates-gpt-image-2-6-swap.md).
|
|
301
|
+
// The 2.5 ids are in RETIRED_MODELS below.
|
|
302
|
+
//
|
|
303
|
+
// 16 references IS fal's documented ceiling rather than a number of ours:
|
|
304
|
+
// `image_urls` carries `maxItems: 16` on both edit endpoints.
|
|
299
305
|
//
|
|
300
306
|
// 🚨 IT WAS 10 UNTIL 2026-09-09, AND 10 WAS NEVER ANYBODY'S LIMIT. The
|
|
301
307
|
// comment here used to call it "the 10-reference ceiling ... unchanged by the
|
|
@@ -310,13 +316,13 @@ export const MODEL_CAPABILITIES = {
|
|
|
310
316
|
// pricing.ts). Two SLATES caps sit outside this file and are not model
|
|
311
317
|
// limits either: the MCP's 4,000-character prompt against fal's 32,000, and
|
|
312
318
|
// image quantity, which is a fan-out and has no provider ceiling at all.
|
|
313
|
-
'gpt-image-2-
|
|
319
|
+
'gpt-image-2-6-flare': {
|
|
314
320
|
defaultImageResolution: '2k',
|
|
315
321
|
imageResolutions: ['2k', '3k', '4k'],
|
|
316
322
|
aspectRatios: ['1:1', '16:9', '9:16', '4:3', '3:4'],
|
|
317
323
|
maxRefImages: 16,
|
|
318
324
|
},
|
|
319
|
-
'gpt-image-2-
|
|
325
|
+
'gpt-image-2-6-sunburst': {
|
|
320
326
|
defaultImageResolution: '3k',
|
|
321
327
|
imageResolutions: ['2k', '3k', '4k'],
|
|
322
328
|
aspectRatios: ['1:1', '16:9', '9:16', '4:3', '3:4'],
|
|
@@ -404,44 +410,59 @@ export const MODEL_CAPABILITIES = {
|
|
|
404
410
|
videoResolution: { options: ['720p', '1080p'], default: '720p' },
|
|
405
411
|
duration: { min: 3, max: 30, mode: 'continuous' },
|
|
406
412
|
},
|
|
407
|
-
// ── Gemini Omni Flash 1.
|
|
413
|
+
// ── Gemini Omni Flash 1.2 ──────────────────────────────────────────────────
|
|
408
414
|
//
|
|
409
|
-
//
|
|
410
|
-
//
|
|
411
|
-
//
|
|
412
|
-
//
|
|
413
|
-
//
|
|
415
|
+
// fal `google/gemini-omni-flash/v1.2/{text-to-video,image-to-video,
|
|
416
|
+
// reference-to-video,edit}`, replacing 1.1 on 2026-11-10 (Eric: "Yes, same
|
|
417
|
+
// release"). The 1.1 ids `omni-flash` / `omni-flash-edit` are in
|
|
418
|
+
// RETIRED_MODELS below. Rips, read 2026-11-10: second-brain/business/projects/
|
|
419
|
+
// slates/provider-docs/fal-gemini-omni-flash-1-2-openapi-schemas.md (fal) and
|
|
420
|
+
// google-gemini-omni-1-2-flash-docs.md (Google, the higher rung: where the two
|
|
421
|
+
// differ, Google's narrower limit is the one sold). `v1.2/extend` and
|
|
422
|
+
// `v1.2/upscale` are not sold.
|
|
414
423
|
//
|
|
415
424
|
// Resolution: fal's enum is 360p / 720p / 1080p / 4k, default 720p, on all
|
|
416
425
|
// four endpoints. Google: "1080p output (upscaled)", "4K output (upscaled)".
|
|
417
426
|
// 360p is NOT offered: it sits below every other row's floor and would need
|
|
418
|
-
// a new resolution token in every exhaustive map.
|
|
419
|
-
'omni-flash': {
|
|
427
|
+
// a new resolution token in every exhaustive map.
|
|
428
|
+
'omni-flash-1-2': {
|
|
420
429
|
aspectRatios: OMNI_FLASH_ASPECT_RATIOS,
|
|
421
430
|
videoResolution: { options: ['720p', '1080p', '4k'], default: '720p' },
|
|
422
|
-
|
|
423
|
-
//
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
//
|
|
427
|
-
// seconds
|
|
428
|
-
|
|
429
|
-
//
|
|
430
|
-
//
|
|
431
|
+
// fal: `duration` integer, minimum 3, maximum 15. Google: "any whole second
|
|
432
|
+
// from 3 to 15 seconds".
|
|
433
|
+
duration: { min: 3, max: 15, mode: 'continuous' },
|
|
434
|
+
// Google: "First and last frame interpolation supports video durations from
|
|
435
|
+
// 3 to 10 seconds" (fal's `end_image_url`: "the duration is capped at 10
|
|
436
|
+
// seconds").
|
|
437
|
+
lastFrameMaxSeconds: 10,
|
|
438
|
+
// Google: "up to 6 reference images per request (up to 3 images per
|
|
439
|
+
// character for up to 2 characters)". fal's `image_urls` says 10; Google's
|
|
440
|
+
// six is sold. The per-character split cannot be checked (nothing says which
|
|
441
|
+
// character an image shows), so the guide carries it as craft.
|
|
442
|
+
maxIngredientImages: 6,
|
|
443
|
+
// Google: "Videos from 11 to 15 seconds support 1 reference video (up to 3
|
|
444
|
+
// seconds long), while videos from 3 to 10 seconds support up to 3 reference
|
|
445
|
+
// videos (up to 3 seconds each)". fal's `reference_video_urls` says three of
|
|
446
|
+
// up to 15 seconds; Google's bounds are sold. The 1-second floor is ours.
|
|
431
447
|
maxReferenceVideos: 3,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
//
|
|
436
|
-
|
|
448
|
+
longOutputReferenceVideos: { aboveSeconds: 10, max: 1 },
|
|
449
|
+
referenceVideoDuration: { min: 1, max: 3 },
|
|
450
|
+
maxReferenceVideoSeconds: 9,
|
|
451
|
+
// No combined ceiling is published, so the total is the two arms summed.
|
|
452
|
+
// Google: "Uploading audio inputs or audio references is unsupported".
|
|
453
|
+
maxReferenceFilesTotal: 9,
|
|
437
454
|
},
|
|
438
|
-
'omni-flash-edit': {
|
|
455
|
+
'omni-flash-1-2-edit': {
|
|
439
456
|
aspectRatios: OMNI_FLASH_ASPECT_RATIOS,
|
|
440
|
-
//
|
|
457
|
+
// fal's v1.2 edit takes `resolution`, same enum and default; no duration
|
|
458
|
+
// parameter, so the output follows the source clip.
|
|
441
459
|
videoResolution: { options: ['720p', '1080p', '4k'], default: '720p' },
|
|
442
|
-
// Source clip:
|
|
443
|
-
// seconds or less
|
|
444
|
-
|
|
460
|
+
// Source clip: fal, "Must be at most 15 seconds long"; Google, "input videos
|
|
461
|
+
// for editing must be 15 seconds or less". The 3-second floor is Google's
|
|
462
|
+
// output minimum ("Output video 3s-15s").
|
|
463
|
+
duration: { min: 3, max: 15, mode: 'continuous' },
|
|
464
|
+
// fal's v1.2 edit has no reference field. Google: reference videos "are only
|
|
465
|
+
// supported when generating a new video, not when editing".
|
|
445
466
|
maxIngredientImages: 0,
|
|
446
467
|
},
|
|
447
468
|
// ── Wan 3.0 (Alibaba, on fal — added 2026-10-17) ──────────────────────────
|
|
@@ -790,21 +811,27 @@ export const MODEL_CAPABILITIES = {
|
|
|
790
811
|
};
|
|
791
812
|
// ── Retired seats ────────────────────────────────────────────────────────────
|
|
792
813
|
/**
|
|
793
|
-
*
|
|
794
|
-
*
|
|
795
|
-
*
|
|
796
|
-
*
|
|
797
|
-
*
|
|
798
|
-
*
|
|
814
|
+
* Seats that left the roster, each with the seat that replaced it. The desktop
|
|
815
|
+
* moves a stored or sent id onto its replacement (slate `migrateRetiredModel`,
|
|
816
|
+
* which reads this map and adds the retired video seats this repo does not name).
|
|
817
|
+
* The server keeps their cost keys so desktops released before a retirement
|
|
818
|
+
* still bill; the list and estimate ops hide those keys and name the replacement
|
|
819
|
+
* instead.
|
|
799
820
|
*/
|
|
800
821
|
export const RETIRED_MODELS = {
|
|
801
|
-
// 2026-09-09: GPT Image 2.5 replaced it; Sunburst is the seat that does not
|
|
802
|
-
|
|
822
|
+
// 2026-09-09: GPT Image 2.5 replaced it; Sunburst is the seat that does not
|
|
823
|
+
// downgrade. 2026-11-10 (Eric): GPT Image 2.6 replaced 2.5, seat for seat.
|
|
824
|
+
'gpt-image-2': 'gpt-image-2-6-sunburst',
|
|
825
|
+
'gpt-image-2-5-flare': 'gpt-image-2-6-flare',
|
|
826
|
+
'gpt-image-2-5-sunburst': 'gpt-image-2-6-sunburst',
|
|
803
827
|
// 2026-10-23 (Eric): Nano Banana 2.1 replaced every Nano Banana row, FLUX 3 Image replaced FLUX.2 Max.
|
|
804
828
|
'nano-banana-2': 'nano-banana-2-1',
|
|
805
829
|
'nano-banana-2-lite': 'nano-banana-2-1',
|
|
806
830
|
'nano-banana-pro': 'nano-banana-2-1',
|
|
807
831
|
'flux-2-max': 'flux-3',
|
|
832
|
+
// 2026-11-10 (Eric, "Yes, same release"): Gemini Omni Flash 1.2 replaced 1.1, seat for seat.
|
|
833
|
+
'omni-flash': 'omni-flash-1-2',
|
|
834
|
+
'omni-flash-edit': 'omni-flash-1-2-edit',
|
|
808
835
|
};
|
|
809
836
|
/**
|
|
810
837
|
* The retired seat a cost key bills, or null when the key belongs to a current
|
|
@@ -885,6 +912,56 @@ export function durationsFor(model, opts = {}) {
|
|
|
885
912
|
}
|
|
886
913
|
return base;
|
|
887
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
* Reference videos a request may carry at `duration` seconds of output: fewer
|
|
917
|
+
* above the row's `longOutputReferenceVideos` threshold, else `maxReferenceVideos`.
|
|
918
|
+
* Without a duration the threshold cannot apply, so the row's full cap is returned.
|
|
919
|
+
*/
|
|
920
|
+
export function maxReferenceVideosFor(model, duration) {
|
|
921
|
+
const cap = MODEL_CAPABILITIES[model];
|
|
922
|
+
const max = cap?.maxReferenceVideos ?? 0;
|
|
923
|
+
const long = cap?.longOutputReferenceVideos;
|
|
924
|
+
return long && duration != null && duration > long.aboveSeconds ? Math.min(max, long.max) : max;
|
|
925
|
+
}
|
|
926
|
+
/** The longest output a request with a last frame may ask for: the row's
|
|
927
|
+
* `lastFrameMaxSeconds`, else its duration maximum. */
|
|
928
|
+
export function lastFrameMaxSecondsFor(model) {
|
|
929
|
+
const cap = MODEL_CAPABILITIES[model];
|
|
930
|
+
return cap?.lastFrameMaxSeconds ?? cap?.duration?.max;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* The limits that move with the request rather than with the model alone: the
|
|
934
|
+
* output length a last frame allows, how many reference videos that length
|
|
935
|
+
* allows, and each reference video's length. `referenceVideoCount` defaults to
|
|
936
|
+
* the number of lengths given. A plain message naming `label`, or null. One
|
|
937
|
+
* function for the desktop's composer and the agent ops, so both refuse the same
|
|
938
|
+
* request before anything uploads or bills.
|
|
939
|
+
*/
|
|
940
|
+
export function checkReferenceShape(model, opts) {
|
|
941
|
+
const cap = MODEL_CAPABILITIES[model];
|
|
942
|
+
if (!cap)
|
|
943
|
+
return null;
|
|
944
|
+
const name = opts.label ?? model;
|
|
945
|
+
const lastMax = cap.lastFrameMaxSeconds;
|
|
946
|
+
if (opts.lastFrame && lastMax != null && opts.duration != null && opts.duration > lastMax) {
|
|
947
|
+
return `${name} takes ${cap.duration?.min ?? 3}-${lastMax}s with a last frame, and ${opts.duration}s is longer. Set ${lastMax}s or less, or drop the last frame.`;
|
|
948
|
+
}
|
|
949
|
+
const clips = opts.referenceVideoSeconds ?? [];
|
|
950
|
+
const count = opts.referenceVideoCount ?? clips.length;
|
|
951
|
+
const maxClips = maxReferenceVideosFor(model, opts.duration);
|
|
952
|
+
if (count > maxClips) {
|
|
953
|
+
const long = cap.longOutputReferenceVideos;
|
|
954
|
+
const s = (n) => `${n} reference video${n === 1 ? '' : 's'}`;
|
|
955
|
+
return long && opts.duration != null && opts.duration > long.aboveSeconds && count <= (cap.maxReferenceVideos ?? 0)
|
|
956
|
+
? `${name} takes ${s(long.max)} on a clip over ${long.aboveSeconds}s (up to ${cap.maxReferenceVideos} at ${long.aboveSeconds}s or less), and this has ${count}. Set ${long.aboveSeconds}s or less, or remove ${count - maxClips}.`
|
|
957
|
+
: `${name} takes at most ${s(maxClips)}, and this has ${count}.`;
|
|
958
|
+
}
|
|
959
|
+
const bounds = cap.referenceVideoDuration;
|
|
960
|
+
if (bounds && clips.some((sec) => !Number.isFinite(sec) || sec > bounds.max + 0.05 || sec < bounds.min)) {
|
|
961
|
+
return `Each ${name} reference video must be ${bounds.min}-${bounds.max}s long. Trim it first.`;
|
|
962
|
+
}
|
|
963
|
+
return null;
|
|
964
|
+
}
|
|
888
965
|
/** Every legal whole-second duration. Mirrors `getAvailableDurations`. */
|
|
889
966
|
export function durationValuesFor(model, opts = {}) {
|
|
890
967
|
const d = durationsFor(model, opts);
|
|
@@ -45,7 +45,7 @@ export interface ModelFact {
|
|
|
45
45
|
* performance and lip-sync work and the only engine behind Motion Transfer and
|
|
46
46
|
* Lip Sync. Recorded in the vault's prompting-ssot.md the same day.
|
|
47
47
|
*
|
|
48
|
-
* IMAGE (Eric, 2026-09-15): GPT IMAGE
|
|
48
|
+
* IMAGE (Eric, 2026-09-15; 2.6 since 2026-11-10): GPT IMAGE SUNBURST IS THE DEFAULT IMAGE MODEL, at
|
|
49
49
|
* `high` and 3k, in agent routing as it has been in the app picker since
|
|
50
50
|
* 2026-09-09. Nano Banana 2.1 keeps the only headless path, so an image call
|
|
51
51
|
* with no project still runs there. Changing the
|
|
@@ -34,7 +34,7 @@ export const CHATGPT_IMAGE_HOST = {
|
|
|
34
34
|
import { MODEL_CAPABILITIES } from './model-capabilities.js';
|
|
35
35
|
import { DEFAULT_IMAGE_SEAT, TOOL_SEAT } from './generation-policy.js';
|
|
36
36
|
/** Authoring presets only: these do not claim hosted ChatGPT API capabilities. */
|
|
37
|
-
export const CHATGPT_FRAMING_RATIOS = MODEL_CAPABILITIES['gpt-image-2-
|
|
37
|
+
export const CHATGPT_FRAMING_RATIOS = MODEL_CAPABILITIES['gpt-image-2-6-sunburst'].aspectRatios;
|
|
38
38
|
export function composeChatGptFraming(prompt, aspectRatio) {
|
|
39
39
|
if (aspectRatio === undefined)
|
|
40
40
|
return prompt;
|
|
@@ -91,7 +91,7 @@ export function multimodalRefSummary(id) {
|
|
|
91
91
|
if (a > 0)
|
|
92
92
|
parts.push(`${a} audio clip${a === 1 ? '' : 's'} (${f.maxReferenceAudioSeconds}s total)`);
|
|
93
93
|
const total = f.maxReferenceFilesTotal ? `, ${f.maxReferenceFilesTotal} files max` : '';
|
|
94
|
-
// A model with no audio slot says nothing about audio (Omni Flash 1.
|
|
94
|
+
// A model with no audio slot says nothing about audio (Omni Flash 1.2 reads
|
|
95
95
|
// reference videos but no audio).
|
|
96
96
|
const companion = a === 0
|
|
97
97
|
? '; no audio references.'
|
|
@@ -155,22 +155,25 @@ export const MODEL_FACTS = [
|
|
|
155
155
|
notes: 'The all-rounder and the only image seat with a headless path: holds many subjects coherently in one frame, keeps what an edit leaves alone, and is the start-frame for legible in-scene text. It reasons before it draws, so dense compositions and hero frames land without a premium tier.',
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
id: 'gpt-image-2-
|
|
158
|
+
id: 'gpt-image-2-6-flare',
|
|
159
159
|
route: 'generate',
|
|
160
160
|
tier: 'specialist',
|
|
161
|
-
|
|
161
|
+
// GPT Image 2.6 replaced 2.5 on 2026-11-10 (Eric), seat for seat; stored
|
|
162
|
+
// 2.5 ids migrate through RETIRED_MODELS. The 2.5 notes' comparisons with
|
|
163
|
+
// GPT Image 2 were OpenAI's for 2.5 and are not carried over.
|
|
164
|
+
label: 'GPT Image 2.6 Flare',
|
|
162
165
|
kind: 'image',
|
|
163
|
-
...caps('gpt-image-2-
|
|
164
|
-
notes: 'THE FAST GPT IMAGE SEAT — OpenAI\'s small model, optimized for SPEED
|
|
166
|
+
...caps('gpt-image-2-6-flare'),
|
|
167
|
+
notes: 'THE FAST GPT IMAGE SEAT — OpenAI\'s small model, optimized for SPEED. Route here when speed matters: drafts, exploration, volume. TEXT / DIAGRAM / PANEL work — character sheets, shot grids, text-bearing panels. When quality outranks speed, escalate to Sunburst. Own content filter, distinct from Gemini\'s. Killed by a head-to-head at the intended crop going the other way.',
|
|
165
168
|
},
|
|
166
169
|
{
|
|
167
|
-
id: 'gpt-image-2-
|
|
170
|
+
id: 'gpt-image-2-6-sunburst',
|
|
168
171
|
route: 'generate',
|
|
169
172
|
tier: 'default',
|
|
170
|
-
label: 'GPT Image 2.
|
|
173
|
+
label: 'GPT Image 2.6 Sunburst',
|
|
171
174
|
kind: 'image',
|
|
172
|
-
...caps('gpt-image-2-
|
|
173
|
-
notes: 'THE QUALITY GPT IMAGE SEAT — OpenAI\'s most capable image model,
|
|
175
|
+
...caps('gpt-image-2-6-sunburst'),
|
|
176
|
+
notes: 'THE QUALITY GPT IMAGE SEAT — OpenAI\'s most capable image model, same price as Flare, deliberately SLOWER. Route here unless speed is the point: finals, hero frames, photoreal people, and multi-reference edits where every reference must survive into one frame. Explore on Flare, finish on Sunburst.',
|
|
174
177
|
},
|
|
175
178
|
{
|
|
176
179
|
id: 'flux-3',
|
|
@@ -189,7 +192,7 @@ export const MODEL_FACTS = [
|
|
|
189
192
|
label: 'Seedream 5 Lite',
|
|
190
193
|
kind: 'image',
|
|
191
194
|
...caps('seedream-5-lite'),
|
|
192
|
-
notes: 'Cheapest flat-priced image seat (GPT Image
|
|
195
|
+
notes: 'Cheapest flat-priced image seat (GPT Image at low quality costs less per image). Less filtered, though it can still reject a prompt. Routes to its edit endpoint when references are present.',
|
|
193
196
|
},
|
|
194
197
|
{
|
|
195
198
|
id: 'seedance-2',
|
|
@@ -240,7 +243,7 @@ export const MODEL_FACTS = [
|
|
|
240
243
|
kind: 'video',
|
|
241
244
|
// Family-level fact; 4 = combined subject elements + style refs per edit.
|
|
242
245
|
...caps('kling-v3.0-omni-edit'),
|
|
243
|
-
notes: 'VIDEO-TO-VIDEO EDIT, the REF-DRIVEN one: it is the only edit seat that takes element/style reference images to lock subject identity, and its keepAudio preserves the original audio verbatim. Route here when an edit NEEDS reference images or bit-exact audio; for prompt-only footage-synced VFX,
|
|
246
|
+
notes: 'VIDEO-TO-VIDEO EDIT, the REF-DRIVEN one: it is the only edit seat that takes element/style reference images to lock subject identity, and its keepAudio preserves the original audio verbatim. Route here when an edit NEEDS reference images or bit-exact audio; for prompt-only footage-synced VFX, Omni Flash edit won the fidelity head-to-head. One instruction beat per pass — multi-beat prompts get under-executed.',
|
|
244
247
|
},
|
|
245
248
|
{
|
|
246
249
|
id: 'kling-v4.0',
|
|
@@ -256,24 +259,26 @@ export const MODEL_FACTS = [
|
|
|
256
259
|
notes: 'The newest Kling, for single takes longer than Kling 3.0 reaches. Dearer per second and slower than 3.0, and on the same start frame 3.0 Pro won on camera and feel, so Kling 3.0 stays the Kling seat for everything else. Sound is always on at no extra cost. Start frame with an optional last frame, multi-shot sequences, or text alone; no reference images. VIDEO-ONLY.',
|
|
257
260
|
},
|
|
258
261
|
{
|
|
259
|
-
id: 'omni-flash',
|
|
262
|
+
id: 'omni-flash-1-2',
|
|
260
263
|
route: 'generate',
|
|
261
264
|
tier: 'specialist',
|
|
262
|
-
|
|
265
|
+
// Gemini Omni Flash 1.2 replaced 1.1 on 2026-11-10 (Eric), seat for seat;
|
|
266
|
+
// stored 1.1 ids migrate through RETIRED_MODELS. Caps are Google's (the
|
|
267
|
+
// narrower rung): 6 reference images, reference videos by output length.
|
|
268
|
+
label: 'Gemini Omni Flash 1.2',
|
|
263
269
|
kind: 'video',
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
notes: 'Google\'s video model, version 1.1 since 2026-10-17, with native synced audio in the same pass; 1080p and 4K are upscales of its 720p render. Takes a start frame with an optional last frame, or reference images plus short reference videos that carry a likeness (their audio is ignored), with no audio references. It cuts between shots by default, so ask for a single shot. Route here for cheap takes with sound and reference-driven character consistency; LTX, H3 and H3 Max Turbo cost less per second. VIDEO-ONLY. Hero-shot quality against Seedance is not yet measured.',
|
|
270
|
+
...caps('omni-flash-1-2'),
|
|
271
|
+
notes: 'Google\'s video model with native synced audio in the same pass; 1080p and 4K are upscales of its 720p render. Takes a start frame with an optional last frame, or reference images plus short reference videos that carry a likeness (their audio is ignored), with no audio references. Describe each input\'s role in plain words; it reads no tags. It cuts between shots by default, so ask for a single shot. Route here for cheap takes with sound and reference-driven character consistency; LTX, H3 and H3 Max Turbo cost less per second. VIDEO-ONLY. Hero-shot quality against Seedance is not yet measured.',
|
|
267
272
|
},
|
|
268
273
|
{
|
|
269
|
-
id: 'omni-flash-edit',
|
|
274
|
+
id: 'omni-flash-1-2-edit',
|
|
270
275
|
route: 'edit',
|
|
271
276
|
tier: 'default',
|
|
272
|
-
label: 'Omni Flash 1.
|
|
277
|
+
label: 'Omni Flash 1.2 Edit',
|
|
273
278
|
kind: 'video',
|
|
274
279
|
// 0: prompt + source clip ONLY — no element/style refs on this endpoint.
|
|
275
|
-
...caps('omni-flash-edit'),
|
|
276
|
-
notes: 'VIDEO-TO-VIDEO EDIT, prompt-only
|
|
280
|
+
...caps('omni-flash-1-2-edit'),
|
|
281
|
+
notes: 'VIDEO-TO-VIDEO EDIT, prompt-only. The 1.0 edit won the head-to-head against Kling edit on real talking footage (lips held, audio near-identical, both action beats landed); 1.2 has not been re-measured against it. Footage-synced prop, effect, environment and lighting swaps; 1080p and 4K output are upscales; it does not edit voices. Takes NO reference images — identity swaps needing refs go to Kling edit. Fidelity is EARNED by prompt discipline; the exact form is in slates-prompting-omni-flash.',
|
|
277
282
|
},
|
|
278
283
|
{
|
|
279
284
|
id: 'minimax-h3',
|
|
@@ -16,7 +16,7 @@ export interface PromptingTipsEntry {
|
|
|
16
16
|
/** Footer callout paragraphs. */
|
|
17
17
|
footer?: string[];
|
|
18
18
|
}
|
|
19
|
-
export type PromptingTipsKey = 'seedance' | 'seedance-2-5' | 'seedance-2-5-edit' | 'kling' | 'kling-edit' | 'omni-flash' | 'omni-flash-edit' | 'minimax-h3' | 'ltx-2-5' | 'wan-3' | 'nano-banana' | 'gpt-image-2-
|
|
19
|
+
export type PromptingTipsKey = 'seedance' | 'seedance-2-5' | 'seedance-2-5-edit' | 'kling' | 'kling-edit' | 'omni-flash' | 'omni-flash-edit' | 'minimax-h3' | 'ltx-2-5' | 'wan-3' | 'nano-banana' | 'gpt-image-2-6' | 'seed-audio' | 'eleven-sfx' | 'inworld-tts-2';
|
|
20
20
|
export declare const PROMPTING_TIPS: Record<PromptingTipsKey, PromptingTipsEntry>;
|
|
21
21
|
/** Null when no tips exist for the key — callers render an honest fallback. */
|
|
22
22
|
export declare function getPromptingTips(key: string): PromptingTipsEntry | null;
|
|
@@ -166,7 +166,7 @@ const SEEDANCE_25_EDIT = {
|
|
|
166
166
|
...SEEDANCE_25,
|
|
167
167
|
label: 'Seedance 2.5 Edit',
|
|
168
168
|
intro: [
|
|
169
|
-
'Seedance 2.5 Edit changes an existing clip: attach the clip, describe only what should be different, and the original motion, framing and timing are kept. It is the only editor in Slates that takes a clip longer than 15 seconds — 4 to 30s, against Kling O3 Edit
|
|
169
|
+
'Seedance 2.5 Edit changes an existing clip: attach the clip, describe only what should be different, and the original motion, framing and timing are kept. It is the only editor in Slates that takes a clip longer than 15 seconds — 4 to 30s, against 3-15s on Kling O3 Edit and Omni Flash Edit.',
|
|
170
170
|
'Output length and aspect ratio follow the SOURCE clip, so there is no duration or ratio control — the clip you attach is the quote. Output is 480p, 720p or 1080p with native audio.',
|
|
171
171
|
],
|
|
172
172
|
columns: [
|
|
@@ -280,9 +280,9 @@ const KLING_EDIT = {
|
|
|
280
280
|
],
|
|
281
281
|
};
|
|
282
282
|
const OMNI_FLASH = {
|
|
283
|
-
label: 'Gemini Omni Flash 1.
|
|
283
|
+
label: 'Gemini Omni Flash 1.2',
|
|
284
284
|
intro: [
|
|
285
|
-
'Gemini Omni Flash 1.
|
|
285
|
+
'Gemini Omni Flash 1.2 renders 720p natively, with 1080p and 4K as upscales, and native synced audio included — dialogue, SFX, and ambient generate WITH the video at no extra cost. 3-15s, 16:9 or 9:16. Text-to-video, a start frame with an optional last frame (10s or less with a last frame), or references: up to 6 images, and reference videos of 3s or less, three on a clip of 10s or less and one on 11-15s. A last frame never mixes with references, and there are no audio references.',
|
|
286
286
|
],
|
|
287
287
|
columns: [
|
|
288
288
|
[
|
|
@@ -307,12 +307,17 @@ const OMNI_FLASH = {
|
|
|
307
307
|
example: 'rain patters on the tin roof · distant traffic hum',
|
|
308
308
|
note: 'Describe sounds directly in the prose — no SFX: prefix needed.',
|
|
309
309
|
},
|
|
310
|
+
{
|
|
311
|
+
heading: 'Time the beats',
|
|
312
|
+
example: 'After 3 seconds, a woman enters the scene.',
|
|
313
|
+
note: 'Plain words place an event in time, which matters more on a 15s clip; a timecode form ([0-5s] ..., [5-10s] ...) works too.',
|
|
314
|
+
},
|
|
310
315
|
],
|
|
311
316
|
[
|
|
312
317
|
{
|
|
313
|
-
heading: '
|
|
314
|
-
example: '
|
|
315
|
-
note: 'Up to
|
|
318
|
+
heading: 'Say what each input is for',
|
|
319
|
+
example: 'The man in image 1 walks into the cafe from image 2...',
|
|
320
|
+
note: 'Describe each image\'s or video\'s role in plain words: it reads no bracket tags. Up to 6 reference images, at most 3 per character and 2 characters. A reference video carries a likeness only; its sound is ignored.',
|
|
316
321
|
},
|
|
317
322
|
{
|
|
318
323
|
heading: 'Negatives as plain instructions',
|
|
@@ -327,9 +332,9 @@ const OMNI_FLASH = {
|
|
|
327
332
|
],
|
|
328
333
|
};
|
|
329
334
|
const OMNI_FLASH_EDIT = {
|
|
330
|
-
label: 'Omni Flash Edit',
|
|
335
|
+
label: 'Omni Flash 1.2 Edit',
|
|
331
336
|
intro: [
|
|
332
|
-
'Omni Flash Edit changes what the prompt names in an existing 3-
|
|
337
|
+
'Omni Flash 1.2 Edit changes what the prompt names in an existing 3-15s clip, footage-synced — prop, effect, environment, and lighting swaps. Prompt + source clip only: no reference images (identity swaps that need refs → Kling O3 Edit). 720p output by default, 1080p and 4K as upscales; voice editing unsupported.',
|
|
333
338
|
],
|
|
334
339
|
columns: [
|
|
335
340
|
[
|
|
@@ -371,8 +376,8 @@ const OMNI_FLASH_EDIT = {
|
|
|
371
376
|
'Ship via segment-splice: edit only the seconds where the change happens (Trim / Split first), then splice back over the original on the timeline with the original audio underneath. Chain edits one change at a time — each edit saves as a new clip linked to its parent.',
|
|
372
377
|
],
|
|
373
378
|
};
|
|
374
|
-
const
|
|
375
|
-
label: 'GPT Image 2.
|
|
379
|
+
const GPT_IMAGE_26 = {
|
|
380
|
+
label: 'GPT Image 2.6',
|
|
376
381
|
intro: [
|
|
377
382
|
'Two tiers at the same price: Flare is the faster one; Sunburst is the better-quality one, and slower. Explore on Flare, finish on Sunburst.',
|
|
378
383
|
'The photoreal front-runner for people, and the most reliable model for readable text, ordered panels and exact placement.',
|
|
@@ -827,7 +832,7 @@ export const PROMPTING_TIPS = {
|
|
|
827
832
|
'ltx-2-5': LTX_2_5,
|
|
828
833
|
'wan-3': WAN_3,
|
|
829
834
|
'nano-banana': NANO_BANANA,
|
|
830
|
-
'gpt-image-2-
|
|
835
|
+
'gpt-image-2-6': GPT_IMAGE_26,
|
|
831
836
|
'seed-audio': SEED_AUDIO,
|
|
832
837
|
'eleven-sfx': ELEVEN_SFX,
|
|
833
838
|
'inworld-tts-2': INWORLD_TTS,
|
|
@@ -120,6 +120,10 @@ export interface ComposeOptions {
|
|
|
120
120
|
startImageNumber?: number;
|
|
121
121
|
startVideoNumber?: number;
|
|
122
122
|
startAudioNumber?: number;
|
|
123
|
+
/** What the images numbered ahead of the groups are ("the opening frame"), said as the first key
|
|
124
|
+
* line when something is numbered after them and the prompt does not cite them itself
|
|
125
|
+
* (the desktop's `firstFrameReferenceRole`: Omni Flash's first frame rides as reference image 1). */
|
|
126
|
+
leadImageRole?: string;
|
|
123
127
|
}
|
|
124
128
|
export declare function composeReferences(rawPrompt: string, groups: ReferenceGroup[], opts?: ComposeOptions): ComposedReferences;
|
|
125
129
|
/** One character's voice sample, in the order it is attached. */
|
|
@@ -257,7 +257,20 @@ export function composeReferences(rawPrompt, groups, opts = {}) {
|
|
|
257
257
|
// in the prompt each get ONE short neutral key line (never an essay). The user's
|
|
258
258
|
// own prompt supplies the intent ("this exact frame", "the man becomes…").
|
|
259
259
|
const topKeys = [];
|
|
260
|
-
//
|
|
260
|
+
// The images numbered ahead of the groups, when they carry a role ("Image 1 is the opening
|
|
261
|
+
// frame."). Gemini Omni Flash 1.2 reads each input's role from plain words, and Google retired
|
|
262
|
+
// the tags that used to declare a frame ("Describe how each image or video should be used in
|
|
263
|
+
// natural language instead"); beside references the first frame is just image 1 on the wire,
|
|
264
|
+
// so without this line nothing says which picture it starts from. Only when something is
|
|
265
|
+
// numbered after it: alone, a first frame rides its own field. Not when the prompt already
|
|
266
|
+
// cites those images itself, the same rule the subject lines below follow.
|
|
267
|
+
const leadCount = opts.startImageNumber ?? 0;
|
|
268
|
+
if (opts.leadImageRole && leadCount > 0 && orderedImagePaths.length + orderedVideoPaths.length > 0) {
|
|
269
|
+
const lead = Array.from({ length: leadCount }, (_, i) => i + 1).filter((n) => !citedImages.has(n));
|
|
270
|
+
if (lead.length > 0)
|
|
271
|
+
topKeys.push(`${lead.length === 1 ? 'Image' : 'Images'} ${joinNums(lead)} ${lead.length === 1 ? 'is' : 'are'} ${opts.leadImageRole}.`);
|
|
272
|
+
}
|
|
273
|
+
// Video sources ("Video 1 is the motion source.").
|
|
261
274
|
for (const g of numbered) {
|
|
262
275
|
if (g.kind === 'video' && g.videoNums.length > 0) {
|
|
263
276
|
const noun = g.videoNums.length === 1 ? 'Video' : 'Videos';
|
|
@@ -61,7 +61,7 @@ export interface ShotParams {
|
|
|
61
61
|
imageResolution?: string;
|
|
62
62
|
videoResolution?: string;
|
|
63
63
|
quality?: string;
|
|
64
|
-
/** GPT Image
|
|
64
|
+
/** GPT Image's tier. Always sent explicitly: fal's own default is
|
|
65
65
|
* `high`, which is the third of five rungs, not the top of two. */
|
|
66
66
|
gptQuality?: GptQuality;
|
|
67
67
|
/** GPT Image's alpha switch. `auto` is fal's default and ours; `transparent`
|
package/dist/skills/content.js
CHANGED
|
@@ -50,7 +50,7 @@ export const BRAIN_SHAPE = {
|
|
|
50
50
|
"model": [
|
|
51
51
|
"slates-prompting-elevenlabs",
|
|
52
52
|
"slates-prompting-flux-3",
|
|
53
|
-
"slates-prompting-gpt-image-2-
|
|
53
|
+
"slates-prompting-gpt-image-2-6",
|
|
54
54
|
"slates-prompting-inworld-tts",
|
|
55
55
|
"slates-prompting-kling-v3",
|
|
56
56
|
"slates-prompting-lip-sync",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slatesvideo/shared",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.17",
|
|
4
4
|
"description": "Shared operations layer for the Slates MCP server and CLI: auth, cloud/desktop clients, and the single tool surface both consume. Most users want @slatesvideo/mcp-server or @slatesvideo/cli instead.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|