@slatesvideo/shared 0.7.16 → 0.7.18
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 +40 -14
- package/dist/operations/index.js +393 -132
- package/dist/prompts/generation-policy.d.ts +1 -1
- package/dist/prompts/generation-policy.js +7 -2
- package/dist/prompts/model-capabilities.d.ts +78 -6
- package/dist/prompts/model-capabilities.js +232 -48
- package/dist/prompts/model-facts.d.ts +1 -1
- package/dist/prompts/model-facts.js +36 -26
- 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 +2 -2
- package/package.json +1 -1
|
@@ -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,26 @@ 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
|
-
|
|
170
|
-
|
|
172
|
+
// The default image seat until 2026-11-16, when Seedream 5.5 took it (Eric).
|
|
173
|
+
tier: 'specialist',
|
|
174
|
+
label: 'GPT Image 2.6 Sunburst',
|
|
171
175
|
kind: 'image',
|
|
172
|
-
...caps('gpt-image-2-
|
|
173
|
-
notes: 'THE QUALITY GPT IMAGE SEAT — OpenAI\'s most capable image model,
|
|
176
|
+
...caps('gpt-image-2-6-sunburst'),
|
|
177
|
+
notes: 'THE QUALITY GPT IMAGE SEAT — OpenAI\'s most capable image model, same price as Flare, deliberately SLOWER. Route here for polish over realism: designed graphics, dense in-image text and layout, and multi-reference edits where every reference must survive into one frame. Explore on Flare, finish on Sunburst.',
|
|
174
178
|
},
|
|
175
179
|
{
|
|
176
180
|
id: 'flux-3',
|
|
@@ -183,13 +187,17 @@ export const MODEL_FACTS = [
|
|
|
183
187
|
notes: 'The premium less-filtered image seat: photoreal frames, precise layout and in-image text, at its loosest safety setting, which can still reject a prompt. Auto-routes to its edit endpoint when references are present.',
|
|
184
188
|
},
|
|
185
189
|
{
|
|
186
|
-
id: 'seedream-5-
|
|
190
|
+
id: 'seedream-5-5',
|
|
187
191
|
route: 'generate',
|
|
188
|
-
tier: '
|
|
189
|
-
|
|
192
|
+
tier: 'default',
|
|
193
|
+
// ByteDance's Seedream 5.5 on BytePlus ModelArk direct, replacing Seedream
|
|
194
|
+
// 5 Lite and taking the default image seat from Sunburst, 2026-11-16 (Eric:
|
|
195
|
+
// "there's no comparison in Fidelity for video frames and realistic looking
|
|
196
|
+
// images"). Stored 5 Lite ids migrate through RETIRED_MODELS.
|
|
197
|
+
label: 'Seedream 5.5',
|
|
190
198
|
kind: 'image',
|
|
191
|
-
...caps('seedream-5-
|
|
192
|
-
notes: '
|
|
199
|
+
...caps('seedream-5-5'),
|
|
200
|
+
notes: 'DEFAULT IMAGE MODEL — the realism seat: photoreal people, places and products, and start and end frames for video, where it holds fidelity better than the GPT Image seats. Cheaper than every other seat at full quality (GPT Image on its low and medium tiers costs less) and less filtered, though it can still reject a prompt. Renders a TRANSPARENT background on request (backgroundMode). Go to Sunburst for designed graphics and dense in-image text.',
|
|
193
201
|
},
|
|
194
202
|
{
|
|
195
203
|
id: 'seedance-2',
|
|
@@ -240,7 +248,7 @@ export const MODEL_FACTS = [
|
|
|
240
248
|
kind: 'video',
|
|
241
249
|
// Family-level fact; 4 = combined subject elements + style refs per edit.
|
|
242
250
|
...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,
|
|
251
|
+
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
252
|
},
|
|
245
253
|
{
|
|
246
254
|
id: 'kling-v4.0',
|
|
@@ -256,24 +264,26 @@ export const MODEL_FACTS = [
|
|
|
256
264
|
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
265
|
},
|
|
258
266
|
{
|
|
259
|
-
id: 'omni-flash',
|
|
267
|
+
id: 'omni-flash-1-2',
|
|
260
268
|
route: 'generate',
|
|
261
269
|
tier: 'specialist',
|
|
262
|
-
|
|
270
|
+
// Gemini Omni Flash 1.2 replaced 1.1 on 2026-11-10 (Eric), seat for seat;
|
|
271
|
+
// stored 1.1 ids migrate through RETIRED_MODELS. Caps are Google's (the
|
|
272
|
+
// narrower rung): 6 reference images, reference videos by output length.
|
|
273
|
+
label: 'Gemini Omni Flash 1.2',
|
|
263
274
|
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.',
|
|
275
|
+
...caps('omni-flash-1-2'),
|
|
276
|
+
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
277
|
},
|
|
268
278
|
{
|
|
269
|
-
id: 'omni-flash-edit',
|
|
279
|
+
id: 'omni-flash-1-2-edit',
|
|
270
280
|
route: 'edit',
|
|
271
281
|
tier: 'default',
|
|
272
|
-
label: 'Omni Flash 1.
|
|
282
|
+
label: 'Omni Flash 1.2 Edit',
|
|
273
283
|
kind: 'video',
|
|
274
284
|
// 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
|
|
285
|
+
...caps('omni-flash-1-2-edit'),
|
|
286
|
+
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
287
|
},
|
|
278
288
|
{
|
|
279
289
|
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",
|
|
@@ -62,7 +62,7 @@ export const BRAIN_SHAPE = {
|
|
|
62
62
|
"slates-prompting-seed-audio",
|
|
63
63
|
"slates-prompting-seedance",
|
|
64
64
|
"slates-prompting-seedance-2-5",
|
|
65
|
-
"slates-prompting-seedream-5-
|
|
65
|
+
"slates-prompting-seedream-5-5",
|
|
66
66
|
"slates-prompting-wan-3"
|
|
67
67
|
]
|
|
68
68
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slatesvideo/shared",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.18",
|
|
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",
|