@slatesvideo/shared 0.7.21 → 0.7.22

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.
@@ -141,6 +141,7 @@ export function multimodalRefModels() {
141
141
  export const MODEL_FACTS = [
142
142
  {
143
143
  id: 'nano-banana-2-1',
144
+ tipsKey: 'nano-banana',
144
145
  route: 'generate',
145
146
  tier: 'specialist',
146
147
  // Google's `gemini-nano-banana-2.1` (GA 2026-10-06), on fal as
@@ -156,6 +157,7 @@ export const MODEL_FACTS = [
156
157
  },
157
158
  {
158
159
  id: 'gpt-image-2-6-flare',
160
+ tipsKey: 'gpt-image-2-6',
159
161
  route: 'generate',
160
162
  tier: 'specialist',
161
163
  // GPT Image 2.6 replaced 2.5 on 2026-11-10 (Eric), seat for seat; stored
@@ -168,6 +170,7 @@ export const MODEL_FACTS = [
168
170
  },
169
171
  {
170
172
  id: 'gpt-image-2-6-sunburst',
173
+ tipsKey: 'gpt-image-2-6',
171
174
  route: 'generate',
172
175
  // The default image seat until 2026-11-16, when Seedream 5.5 took it (Eric).
173
176
  tier: 'specialist',
@@ -178,6 +181,7 @@ export const MODEL_FACTS = [
178
181
  },
179
182
  {
180
183
  id: 'flux-3',
184
+ tipsKey: null,
181
185
  route: 'generate',
182
186
  tier: 'specialist',
183
187
  // Black Forest Labs' FLUX 3 Image, replacing FLUX.2 Max 2026-10-23 (Eric).
@@ -188,6 +192,7 @@ export const MODEL_FACTS = [
188
192
  },
189
193
  {
190
194
  id: 'seedream-5-5',
195
+ tipsKey: null,
191
196
  route: 'generate',
192
197
  tier: 'default',
193
198
  // ByteDance's Seedream 5.5 on BytePlus ModelArk direct, replacing Seedream
@@ -201,6 +206,7 @@ export const MODEL_FACTS = [
201
206
  },
202
207
  {
203
208
  id: 'seedance-2',
209
+ tipsKey: 'seedance',
204
210
  route: 'generate',
205
211
  tier: 'specialist',
206
212
  label: 'Seedance 2.0',
@@ -211,6 +217,7 @@ export const MODEL_FACTS = [
211
217
  },
212
218
  {
213
219
  id: 'seedance-2.5',
220
+ tipsKey: 'seedance-2-5',
214
221
  route: 'generate',
215
222
  tier: 'default',
216
223
  label: 'Seedance 2.5',
@@ -222,16 +229,19 @@ export const MODEL_FACTS = [
222
229
  },
223
230
  {
224
231
  id: 'seedance-2.5-edit',
232
+ tipsKey: 'seedance-2-5-edit',
225
233
  route: 'edit',
226
- tier: 'specialist',
234
+ tier: 'default',
227
235
  label: 'Seedance 2.5 Edit',
228
236
  kind: 'video',
229
- // 0 ingredients: prompt + source clip only on slates_edit_video.
237
+ // Takes reference images (subject swaps, location swaps, painted Video Brush masks) on BytePlus and EvoLink.
230
238
  ...caps('seedance-2.5-edit'),
231
- notes: 'VIDEO-TO-VIDEO EDIT via slates_edit_video, and the only edit engine that takes a clip longer than the other two reach — that length is the whole reason to route here. Inside their range, compare on fidelity instead: Omni Flash edit won the prompt-only head-to-head, and Kling edit is the one that takes reference images. Edits audio on the same row (re-voice, re-accent, translate with re-fitted lips, replace BGM). Costs about 1.2x a plain 2.5 generation of the same length: an edit bills at twice the reduced video-reference rate.',
239
+ notes: 'DEFAULT VIDEO EDIT MODEL — the flagship video-to-video edit seat: takes the source clip plus reference images (character swaps, location swaps, painted Video Brush masks), reaches longer clips than the other edit engines, and edits audio on the same row (re-voice, re-accent, translate with re-fitted lips, replace BGM). Set seedanceFace: true when an AI character face is visible; real-person footage that the Face route rejects goes to Kling O3 Edit. Costs about 1.2x a plain 2.5 generation of the same length: an edit bills at twice the reduced video-reference rate.',
232
240
  },
233
241
  {
234
242
  id: 'kling-v3',
243
+ variants: ['kling-v3.0-std', 'kling-v3.0-pro', 'kling-v3.0-omni', 'kling-v3.0-omni-pro'],
244
+ tipsKey: 'kling',
235
245
  route: 'generate',
236
246
  tier: 'specialist',
237
247
  label: 'Kling 3.0',
@@ -242,16 +252,19 @@ export const MODEL_FACTS = [
242
252
  },
243
253
  {
244
254
  id: 'kling-v3-edit',
255
+ variants: ['kling-v3.0-omni-edit', 'kling-v3.0-omni-pro-edit'],
256
+ tipsKey: 'kling-edit',
245
257
  route: 'edit',
246
258
  tier: 'specialist',
247
259
  label: 'Kling O3 Video Edit',
248
260
  kind: 'video',
249
261
  // Family-level fact; 4 = combined subject elements + style refs per edit.
250
262
  ...caps('kling-v3.0-omni-edit'),
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.',
263
+ notes: 'VIDEO-TO-VIDEO EDIT, the real-person and bit-exact-audio specialist: takes element/style reference images and its keepAudio preserves the original audio verbatim. Route here for real-person footage Seedance\'s face policy rejects, or when bit-exact original audio is required. One instruction beat per pass — multi-beat prompts get under-executed.',
252
264
  },
253
265
  {
254
266
  id: 'kling-v4.0',
267
+ tipsKey: 'kling',
255
268
  route: 'generate',
256
269
  tier: 'specialist',
257
270
  // Added 2026-10-23 beside Kling 3.0, which stays the Kling seat (Eric). One
@@ -265,6 +278,7 @@ export const MODEL_FACTS = [
265
278
  },
266
279
  {
267
280
  id: 'omni-flash-1-2',
281
+ tipsKey: 'omni-flash',
268
282
  route: 'generate',
269
283
  tier: 'specialist',
270
284
  // Gemini Omni Flash 1.2 replaced 1.1 on 2026-11-10 (Eric), seat for seat;
@@ -273,20 +287,22 @@ export const MODEL_FACTS = [
273
287
  label: 'Gemini Omni Flash 1.2',
274
288
  kind: 'video',
275
289
  ...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.',
290
+ 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; H3 and H3 Max Turbo cost less per second. VIDEO-ONLY. Hero-shot quality against Seedance is not yet measured.',
277
291
  },
278
292
  {
279
293
  id: 'omni-flash-1-2-edit',
294
+ tipsKey: 'omni-flash-edit',
280
295
  route: 'edit',
281
- tier: 'default',
296
+ tier: 'specialist',
282
297
  label: 'Omni Flash 1.2 Edit',
283
298
  kind: 'video',
284
299
  // 0: prompt + source clip ONLY — no element/style refs on this endpoint.
285
300
  ...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.',
301
+ notes: 'VIDEO-TO-VIDEO EDIT, prompt-only specialist. Footage-synced prop, effect, environment and lighting swaps when no reference photo or mask is needed; its top resolution tiers are upscales; it does not edit voices. Takes NO reference images — identity swaps and Video Brush masks go to Seedance 2.5 Edit (default) or Kling O3 Edit. Fidelity is EARNED by prompt discipline; the exact form is in slates-prompting-omni-flash.',
287
302
  },
288
303
  {
289
304
  id: 'minimax-h3',
305
+ tipsKey: 'minimax-h3',
290
306
  route: 'generate',
291
307
  tier: 'specialist',
292
308
  label: 'MiniMax H3',
@@ -300,6 +316,7 @@ export const MODEL_FACTS = [
300
316
  },
301
317
  {
302
318
  id: 'minimax-h3-max',
319
+ tipsKey: 'minimax-h3',
303
320
  route: 'generate',
304
321
  tier: 'specialist',
305
322
  label: 'MiniMax H3 Max',
@@ -317,6 +334,7 @@ export const MODEL_FACTS = [
317
334
  },
318
335
  {
319
336
  id: 'minimax-h3-max-turbo',
337
+ tipsKey: 'minimax-h3',
320
338
  route: 'generate',
321
339
  tier: 'specialist',
322
340
  label: 'MiniMax H3 Max Turbo',
@@ -329,6 +347,7 @@ export const MODEL_FACTS = [
329
347
  },
330
348
  {
331
349
  id: 'wan-3.0',
350
+ tipsKey: 'wan-3',
332
351
  route: 'generate',
333
352
  tier: 'specialist',
334
353
  label: 'Wan 3.0',
@@ -337,29 +356,9 @@ export const MODEL_FACTS = [
337
356
  ...caps('wan-3.0'),
338
357
  notes: 'Alibaba\'s video model, added 2026-10-17: first on Artificial Analysis text-to-video that day, at about a third of Seedance 2.5\'s price per second at 1080p. Long single takes, multi-shot sequences with timestamps, sound on or off. Start frame with an optional last frame, or references across images, videos and audio cited as Image N / Video N / Audio N (audio-only allowed); frames and references never mix. Reference video seconds bill on top of the output. Route here for long takes, timed multi-shot scenes and reference-driven shots on a budget; Seedance 2.5 stays the default. VIDEO-ONLY.',
339
358
  },
340
- {
341
- id: 'ltx-2-5',
342
- route: 'generate',
343
- tier: 'specialist',
344
- label: 'LTX-2.5',
345
- kind: 'video',
346
- // No reference caps: fal publishes text-to-video and image-to-video for LTX
347
- // and no reference endpoint at all, so `caps()` returns nulls and the
348
- // composer refuses references. Start/end FRAMES are unaffected.
349
- ...caps('ltx-2-5'),
350
- notes: 'THE VOLUME SEAT — the cheapest native 1080p second with sound included (H3 Max Turbo\'s 1080p is refined from 768p), and the row for MANY takes rather than one hero shot. Native synced audio is included free at every tier, unlike Kling where sound is a paid key dimension. It reaches higher resolutions and longer takes than most seats; use the capability surface for its resolution-dependent duration limits. VIDEO-ONLY. INPUTS ARE FRAMES, NOT REFERENCES: start frame plus an optional end frame, and no reference endpoint at all — for character consistency across shots use H3 or Kling. Route here for batch coverage, long takes, and anything where the credit budget is the binding constraint.',
351
- },
352
- {
353
- id: 'ltx-2-5-pro',
354
- route: 'generate',
355
- tier: 'specialist',
356
- label: 'LTX-2.5 Pro',
357
- kind: 'video',
358
- ...caps('ltx-2-5-pro'),
359
- notes: 'THE FIDELITY SEAT of the LTX pair — the full diffusion build against the base row\'s distilled one. 🚨 IT IS NOT A SUPERSET OF THE BASE ROW, which is the opposite of every other Pro seat here: it reaches a SHORTER resolution ladder and makes SHORTER clips, and it costs more at both tiers they share. Reaching for it because the name says Pro costs more AND takes away reach. Everything else matches the base row. Route here only when a specific shot needs the fidelity and fits inside its narrower envelope.',
360
- },
361
359
  {
362
360
  id: 'seed-audio',
361
+ tipsKey: 'seed-audio',
363
362
  route: 'generate',
364
363
  tier: 'default',
365
364
  label: 'Seed Audio 1.0',
@@ -370,6 +369,7 @@ export const MODEL_FACTS = [
370
369
  },
371
370
  {
372
371
  id: 'eleven-sfx',
372
+ tipsKey: 'eleven-sfx',
373
373
  route: 'generate',
374
374
  tier: 'specialist',
375
375
  label: 'ElevenLabs Sound Effects v2',
@@ -379,6 +379,7 @@ export const MODEL_FACTS = [
379
379
  },
380
380
  {
381
381
  id: 'inworld-tts-2',
382
+ tipsKey: 'inworld-tts-2',
382
383
  route: 'generate',
383
384
  tier: 'specialist',
384
385
  label: 'Inworld Realtime TTS-2',
@@ -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-6' | 'seed-audio' | 'eleven-sfx' | 'inworld-tts-2';
19
+ export type PromptingTipsKey = 'seedance' | 'seedance-2-5' | 'seedance-2-5-edit' | 'kling' | 'kling-edit' | 'omni-flash' | 'omni-flash-edit' | 'minimax-h3' | '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;
@@ -326,7 +326,7 @@ const OMNI_FLASH = {
326
326
  },
327
327
  {
328
328
  heading: 'Know its role',
329
- note: 'Drafts and audio in one pass; LTX, H3 and H3 Max Turbo cost less per second. For hero shots, Seedance 2.5 (the default) or Seedance 2.0 (4K, cheaper) still win.',
329
+ note: 'Drafts and audio in one pass; H3 and H3 Max Turbo cost less per second. For hero shots, Seedance 2.5 (the default) or Seedance 2.0 (4K, cheaper) still win.',
330
330
  },
331
331
  ],
332
332
  ],
@@ -654,70 +654,6 @@ const MINIMAX_H3 = {
654
654
  'Slates disables the provider\'s prompt expander, so what you write is what the model reads — nothing will pad a thin prompt. Aim for a 350-500 word body on a reference-carrying shot, and let dialogue-heavy scenes run longer if that is what fits the spoken timeline.',
655
655
  ],
656
656
  };
657
- const LTX_2_5 = {
658
- label: 'LTX-2.5',
659
- intro: [
660
- 'LTX-2.5 scores the picture on the same pass that draws it, so SOUND IS THE FIRST THING YOU WRITE, not the last. Lightricks ranks the six parts of a prompt in this order: sound, camera, character detail, shot type and scene, then scene dressing — and scene dressing is the first thing to cut when a prompt sprawls. Everything goes in ONE flowing paragraph, not a list of labelled sections.',
661
- 'Two models. Base LTX-2.5 is the distilled build: 720p / 1080p / 1440p / 4K and clips from 6 to 20 seconds, and it is the cheapest native 1080p second with sound included in Slates. LTX-2.5 Pro is the full diffusion build ("Diffusion Fidelity Rendering" spends extra compute on busy frames) but reaches a SHORTER ladder — 1080p and 10 seconds maximum — while costing about a third more. Pro is for a dense final render; base is for iteration, long takes and 4K.',
662
- ],
663
- columns: [
664
- [
665
- {
666
- heading: 'Anchor every sound to something in frame',
667
- example: 'the rope creaks against the cleat, gulls somewhere off the port bow',
668
- note: 'Write the audio line last, then check each cue has a visible or at least locatable source. Anything unanchored gets invented for you. "Not visible but locatable" passes — a whistle is fine if you name the marshal post it comes from.',
669
- critical: true,
670
- },
671
- {
672
- heading: 'Never write mood words for sound',
673
- example: 'Bad: "tense atmosphere, sense of dread"\nGood: "a loose shutter knocks twice against the frame"',
674
- note: 'Atmosphere adjectives produce nothing. If a scene feels thin, add one more MOVING OBJECT with a sound attached to it rather than another adjective.',
675
- },
676
- {
677
- heading: 'Dialogue takes quotes, language and accent',
678
- example: '"We should not have come back," in English with a slight German accent.',
679
- note: 'Give the character a beat of stillness before they speak so the lip sync has something to lock against. Describe the beat: looks, waits, speaks, looks away.',
680
- },
681
- {
682
- heading: 'Emotion is physical, not abstract',
683
- example: 'Bad: "she looks anxious"\nGood: "her jaw sets, she turns the ring on her finger twice"',
684
- note: 'The model renders actions, not adjectives. Tension in the jaw, weight shifts, fidgeting hands — these read; "anxious" does not.',
685
- },
686
- ],
687
- [
688
- {
689
- heading: 'Multishot: two to four shots, and re-establish at every cut',
690
- example: 'wide establishing shot — hard cut — macro close-up — match cut — medium shot',
691
- note: 'One generation can carry several connected shots holding character, light and voice across the cuts. Name the edit ("hard cut", "dissolve") in the prose, then RESET scale, angle, lens and light. Two to four is the working range.',
692
- critical: true,
693
- },
694
- {
695
- heading: 'Re-identify characters at every cut',
696
- example: 'Good: "the woman in the bronze gown"\nBad: "she"',
697
- note: 'Pronouns lose the character across a cut. Repeat the original descriptor every time. Also state what the SOUND does at the cut — silence is not assumed.',
698
- },
699
- {
700
- heading: 'Write the camera into the sentence',
701
- example: 'a slow push-in settles as she reaches the door, then holds',
702
- note: 'Slates does not expose the camera_motion enum, and prose is the better tool anyway: a written move can be tied to a specific moment, an enum value cannot. Name lens, framing and the moment the move resolves.',
703
- },
704
- {
705
- heading: 'Durations are even numbers only, from six',
706
- note: '6, 8, 10, 12, 14, 16, 18 or 20 seconds — there is no 5s or 7s LTX clip. And the long end is 1080p-and-below only: at 1440p and 4K the ceiling drops to 10s. Slates always sends an explicit length rather than letting the model pick one, so what you choose is what you are billed for.',
707
- critical: true,
708
- },
709
- {
710
- heading: 'Do not ask for text on screen',
711
- note: 'Neither the spelling nor its stability frame to frame can be relied on. Signage, labels and captions belong in post.',
712
- },
713
- ],
714
- ],
715
- footer: [
716
- 'Frames, not references. LTX takes a start frame and an optional end frame (which generates a transition between the two) — it has no reference endpoint at all, so identity, style and environment reference images are not available on this model. For character consistency across separate shots, use MiniMax H3 or Kling.',
717
- 'Aspect ratios are 16:9 and 9:16 only, and native audio is included free at every resolution — there is no sound surcharge on either model.',
718
- 'In image-to-video, do not cut away from the opening frame too early: you have paid for that frame, so let it play before the first move.',
719
- ],
720
- };
721
657
  const INWORLD_TTS = {
722
658
  label: 'Inworld TTS-2',
723
659
  intro: [
@@ -829,7 +765,6 @@ export const PROMPTING_TIPS = {
829
765
  'omni-flash': OMNI_FLASH,
830
766
  'omni-flash-edit': OMNI_FLASH_EDIT,
831
767
  'minimax-h3': MINIMAX_H3,
832
- 'ltx-2-5': LTX_2_5,
833
768
  'wan-3': WAN_3,
834
769
  'nano-banana': NANO_BANANA,
835
770
  'gpt-image-2-6': GPT_IMAGE_26,
@@ -0,0 +1,34 @@
1
+ export interface RetiredSeat {
2
+ /** The live seat a saved recipe, template or default moves to. */
3
+ readonly replacement: string;
4
+ /** What an old take made by this seat is still called. */
5
+ readonly label: string;
6
+ readonly retiredOn: string;
7
+ /**
8
+ * `'update-floor'`: the server still bills this seat's cost keys, because
9
+ * desktops released before the retirement still send them, until the first
10
+ * desktop without the seat is the oldest one supported. `null`: its keys are
11
+ * gone from `CREDIT_COSTS`.
12
+ */
13
+ readonly keysBilledUntil: 'update-floor' | null;
14
+ /** The guide name a published client's agent still asks for; the server answers it with the replacement's guide. */
15
+ readonly oldGuide?: string;
16
+ /**
17
+ * What the static check counts as a mention, when the whole family left.
18
+ * Empty when the family lives on under a newer version (`nano-banana-2` beside
19
+ * `nano-banana-2-1`), where a word match would count the live seat.
20
+ */
21
+ readonly terms: readonly RegExp[];
22
+ /** Files the server keeps while `keysBilledUntil` holds; the static check does not count them. */
23
+ readonly serverFiles?: readonly string[];
24
+ }
25
+ export declare const RETIRED_SEATS: Readonly<Record<string, RetiredSeat>>;
26
+ /**
27
+ * Older roster changes with no seat to move to: only their labels survive, on
28
+ * takes made before them. `kling-v2-1` is how such takes are stamped; the dotted
29
+ * spelling is the one older rows and the 1.5.8 usage table used.
30
+ */
31
+ export declare const HISTORY_MODEL_LABELS: Readonly<Record<string, string>>;
32
+ /** Retired id → the seat that replaced it. */
33
+ export declare const RETIRED_MODELS: Readonly<Record<string, string>>;
34
+ //# sourceMappingURL=retired-models.d.ts.map
@@ -0,0 +1,67 @@
1
+ // ─────────────────────────────────────────────────────────────────────────────
2
+ // RETIRED SEATS — the one list of models that left the roster.
3
+ //
4
+ // Everything a retirement changes reads this file: the label an old take keeps
5
+ // (slate `modelLabel`), the seat a saved recipe moves to (slate
6
+ // `migrateRetiredModel`), the cost keys the server still bills older desktops
7
+ // for and hides from the agent's model list (slates-api `agent-models.ts`), the
8
+ // guide name an older client's agent still asks for (slates-api `brain.ts`), and
9
+ // the words the static check counts across the four repos
10
+ // (`scripts/retired-model-check.mjs`). slates-api's `model-lifecycle-check.mjs`
11
+ // fails a retired id still offered anywhere.
12
+ //
13
+ // Retiring a model is: delete its rows, add its entry here, run
14
+ // `npm run check:model-lifecycle` in slates-api.
15
+ //
16
+ // LEAF MODULE: no imports. `model-capabilities.ts` re-exports it, and the
17
+ // desktop renderer bundles both.
18
+ // ─────────────────────────────────────────────────────────────────────────────
19
+ // Two expressions per family, because only the first may ignore case: `/i` on
20
+ // the second would let lowercase `veo` inside `curveOut` match.
21
+ const VEO_TERMS = [/(?<![A-Za-z])veo/gi, /(?<=[a-z])Veo/g];
22
+ const LTX_TERMS = [/(?<![A-Za-z])ltx/gi, /(?<=[a-z])Ltx/g];
23
+ const LTX_SERVER_FILES = ['slates-api/src/lib/ltx-keys.ts', 'slates-api/scripts/ltx-billing-gate-check.mjs'];
24
+ export const RETIRED_SEATS = {
25
+ // 2026-09-09: GPT Image 2.5 replaced it; Sunburst is the seat that does not
26
+ // downgrade. 2026-11-10 (Eric): GPT Image 2.6 replaced 2.5, seat for seat.
27
+ 'gpt-image-2': { replacement: 'gpt-image-2-6-sunburst', label: 'GPT Image 2', retiredOn: '2026-09-09', keysBilledUntil: 'update-floor', terms: [] },
28
+ 'gpt-image-2-5-flare': { replacement: 'gpt-image-2-6-flare', label: 'GPT Image 2.5 Flare', retiredOn: '2026-11-10', keysBilledUntil: 'update-floor', oldGuide: 'slates-prompting-gpt-image-2-5', terms: [] },
29
+ 'gpt-image-2-5-sunburst': { replacement: 'gpt-image-2-6-sunburst', label: 'GPT Image 2.5 Sunburst', retiredOn: '2026-11-10', keysBilledUntil: 'update-floor', oldGuide: 'slates-prompting-gpt-image-2-5', terms: [] },
30
+ // 2026-10-02 (Eric): Seedance 2.5 is the default video seat and takes every Veo
31
+ // duration (4-8s inside its 4-30s) and both of Veo's ratios on the credits route.
32
+ 'veo-3.1-fast': { replacement: 'seedance-2.5', label: 'Veo 3.1 Fast', retiredOn: '2026-10-02', keysBilledUntil: 'update-floor', terms: VEO_TERMS, serverFiles: ['slates-api/src/lib/veo-keys.ts'] },
33
+ 'veo-3.1-standard': { replacement: 'seedance-2.5', label: 'Veo 3.1 Standard', retiredOn: '2026-10-02', keysBilledUntil: 'update-floor', terms: VEO_TERMS, serverFiles: ['slates-api/src/lib/veo-keys.ts'] },
34
+ // 2026-10-23 (Eric): Nano Banana 2.1 replaced every Nano Banana row, FLUX 3 Image replaced FLUX.2 Max.
35
+ 'nano-banana-2': { replacement: 'nano-banana-2-1', label: 'Nano Banana 2', retiredOn: '2026-10-23', keysBilledUntil: 'update-floor', terms: [] },
36
+ 'nano-banana-2-lite': { replacement: 'nano-banana-2-1', label: 'Nano Banana 2 Lite', retiredOn: '2026-10-23', keysBilledUntil: 'update-floor', terms: [] },
37
+ 'nano-banana-pro': { replacement: 'nano-banana-2-1', label: 'Nano Banana Pro', retiredOn: '2026-10-23', keysBilledUntil: 'update-floor', terms: [] },
38
+ 'flux-2-max': { replacement: 'flux-3', label: 'FLUX.2 Max', retiredOn: '2026-10-23', keysBilledUntil: 'update-floor', terms: [] },
39
+ // 2026-11-10 (Eric, "Yes, same release"): Gemini Omni Flash 1.2 replaced 1.1, seat for seat.
40
+ 'omni-flash': { replacement: 'omni-flash-1-2', label: 'Gemini Omni Flash 1.1', retiredOn: '2026-11-10', keysBilledUntil: 'update-floor', terms: [] },
41
+ 'omni-flash-edit': { replacement: 'omni-flash-1-2-edit', label: 'Omni Flash 1.1 Edit', retiredOn: '2026-11-10', keysBilledUntil: 'update-floor', terms: [] },
42
+ // 2026-11-16 (Eric): Seedream 5.5 replaced Seedream 5 Lite and became the default image seat.
43
+ 'seedream-5-lite': { replacement: 'seedream-5-5', label: 'Seedream 5 Lite', retiredOn: '2026-11-16', keysBilledUntil: 'update-floor', oldGuide: 'slates-prompting-seedream-5-lite', terms: [] },
44
+ // 2026-11-24 (Eric, "I would just remove LTX 2.5 completely"): both seats, nothing replaces them. A saved
45
+ // recipe lands on Seedance 2.5, which takes every LTX length (6-20s inside its 4-30s); a 1440p Shot is clamped
46
+ // to the nearest rung Seedance has.
47
+ 'ltx-2-5': { replacement: 'seedance-2.5', label: 'LTX-2.5', retiredOn: '2026-11-25', keysBilledUntil: 'update-floor', oldGuide: 'slates-prompting-ltx-2-5', terms: LTX_TERMS, serverFiles: LTX_SERVER_FILES },
48
+ 'ltx-2-5-pro': { replacement: 'seedance-2.5', label: 'LTX-2.5 Pro', retiredOn: '2026-11-25', keysBilledUntil: 'update-floor', oldGuide: 'slates-prompting-ltx-2-5', terms: LTX_TERMS, serverFiles: LTX_SERVER_FILES },
49
+ };
50
+ /**
51
+ * Older roster changes with no seat to move to: only their labels survive, on
52
+ * takes made before them. `kling-v2-1` is how such takes are stamped; the dotted
53
+ * spelling is the one older rows and the 1.5.8 usage table used.
54
+ */
55
+ export const HISTORY_MODEL_LABELS = {
56
+ 'kling-image-o1': 'Kling Image O1',
57
+ 'kling-v2-1': 'Kling V2.1',
58
+ 'kling-v2.1': 'Kling V2.1',
59
+ 'kling-v2.5-turbo-std': 'Kling V2.5 Turbo Std',
60
+ 'kling-v2.5-turbo-pro': 'Kling V2.5 Turbo Pro',
61
+ 'kling-v2.6-std': 'Kling V2.6 Std',
62
+ 'kling-v2.6-pro': 'Kling V2.6 Pro',
63
+ 'kling-v2.6-audio': 'Kling V2.6 + Audio',
64
+ };
65
+ /** Retired id → the seat that replaced it. */
66
+ export const RETIRED_MODELS = Object.fromEntries(Object.entries(RETIRED_SEATS).map(([id, seat]) => [id, seat.replacement]));
67
+ //# sourceMappingURL=retired-models.js.map
@@ -258,7 +258,12 @@ export declare function effectivePrompt(spec: ShotSpec): string;
258
258
  export declare function emptyShotSpec(): ShotSpec;
259
259
  /** The mutually exclusive TTS source fields, shared by readers and patch merging. */
260
260
  export declare const VOICE_SOURCE_FIELDS: readonly ["voiceId", "voiceReferenceAssetId", "voiceDescription"];
261
- /** Setting a voice replaces the previous source; unrelated parameter edits preserve it. */
261
+ /**
262
+ * Setting a voice replaces the previous source; unrelated parameter edits preserve it.
263
+ * A draft renders at 480p whatever is stored, so the 480p `readParams` filled in for it
264
+ * carries no choice: switching the draft off drops it (the model's default applies)
265
+ * unless the patch names a resolution, and draft on then off restores the params.
266
+ */
262
267
  export declare function mergeShotParams(existing: ShotParams, patch: Record<string, unknown>): ShotParams;
263
268
  /**
264
269
  * Read a `ShotSpec` out of whatever is on disk — a row written by an older
@@ -151,13 +151,24 @@ const str = (v) => (typeof v === 'string' && v.length > 0 ? v : null);
151
151
  const strArray = (v) => Array.isArray(v) ? v.filter((x) => typeof x === 'string' && x.length > 0) : [];
152
152
  /** The mutually exclusive TTS source fields, shared by readers and patch merging. */
153
153
  export const VOICE_SOURCE_FIELDS = ['voiceId', 'voiceReferenceAssetId', 'voiceDescription'];
154
- /** Setting a voice replaces the previous source; unrelated parameter edits preserve it. */
154
+ /**
155
+ * Setting a voice replaces the previous source; unrelated parameter edits preserve it.
156
+ * A draft renders at 480p whatever is stored, so the 480p `readParams` filled in for it
157
+ * carries no choice: switching the draft off drops it (the model's default applies)
158
+ * unless the patch names a resolution, and draft on then off restores the params.
159
+ */
155
160
  export function mergeShotParams(existing, patch) {
156
161
  const next = { ...existing };
157
162
  if (VOICE_SOURCE_FIELDS.some((k) => typeof patch[k] === 'string' && patch[k].trim())) {
158
163
  for (const k of VOICE_SOURCE_FIELDS)
159
164
  delete next[k];
160
165
  }
166
+ if (existing.seedanceDraft && patch.seedanceDraft === false && patch.videoResolution === undefined && next.videoResolution === '480p') {
167
+ delete next.videoResolution;
168
+ }
169
+ // Switching the draft on with no resolution named: the stored one gives way, so the draft's 480p is filled.
170
+ if (patch.seedanceDraft === true && patch.videoResolution === undefined)
171
+ delete next.videoResolution;
161
172
  return readParams({ ...next, ...patch });
162
173
  }
163
174
  function readParams(v) {
@@ -56,7 +56,6 @@ export const BRAIN_SHAPE = {
56
56
  "slates-prompting-inworld-tts",
57
57
  "slates-prompting-kling-v3",
58
58
  "slates-prompting-lip-sync",
59
- "slates-prompting-ltx-2-5",
60
59
  "slates-prompting-minimax-h3",
61
60
  "slates-prompting-motion-transfer",
62
61
  "slates-prompting-nano-banana-2-1",
@@ -9,7 +9,9 @@
9
9
  // restarts, a global install nobody re-runs, or skill files copied months ago.
10
10
  //
11
11
  // HOW IT WORKS. One small registry GET (`/<pkg>/latest`), cached on disk in
12
- // ~/.slates/update-check.json and refreshed at most once an hour. Readers are
12
+ // ~/.slates/update-check.json and refreshed at most once an hour; a lookup that
13
+ // failed is remembered too and retried after ten minutes, so a network that
14
+ // swallows the request costs one wait, not one per command. Readers are
13
15
  // SYNCHRONOUS and disk-only so the MCP server can put the notice into its
14
16
  // `instructions` at construction time without delaying startup; the refresh
15
17
  // runs in the background for the NEXT launch. The CLI awaits the refresh
@@ -21,6 +23,7 @@ import { join } from 'node:path';
21
23
  import { AGENT_DIR } from './auth.js';
22
24
  export const UPDATE_CACHE_FILE = join(AGENT_DIR, 'update-check.json');
23
25
  const REFRESH_AFTER_MS = 60 * 60 * 1000;
26
+ const RETRY_FAILED_AFTER_MS = 10 * 60 * 1000;
24
27
  const FETCH_TIMEOUT_MS = 2500;
25
28
  // The registry's answer and the cache are both outside text, and the notice lands in the MCP
26
29
  // instructions, a channel the model treats as the product's own words. So only a plain release
@@ -72,8 +75,14 @@ export async function refreshLatestVersion(pkgName, options = {}) {
72
75
  const now = options.now ?? Date.now();
73
76
  const cache = readCache(cacheFile);
74
77
  const entry = cache[pkgName];
75
- if (entry && now - entry.checkedAt < REFRESH_AFTER_MS)
76
- return entry.latest;
78
+ if (entry && now - entry.checkedAt < (entry.failed ? RETRY_FAILED_AFTER_MS : REFRESH_AFTER_MS))
79
+ return entry.latest ?? null;
80
+ const known = typeof entry?.latest === 'string' ? entry.latest : null;
81
+ const failed = () => {
82
+ cache[pkgName] = { latest: known, checkedAt: now, failed: true };
83
+ writeCache(cacheFile, cache);
84
+ return known;
85
+ };
77
86
  const registryUrl = options.registryUrl ?? 'https://registry.npmjs.org';
78
87
  const controller = new AbortController();
79
88
  const timer = setTimeout(() => controller.abort(), FETCH_TIMEOUT_MS);
@@ -86,16 +95,16 @@ export async function refreshLatestVersion(pkgName, options = {}) {
86
95
  headers: { accept: 'application/json' },
87
96
  });
88
97
  if (!res.ok)
89
- return entry?.latest ?? null;
98
+ return failed();
90
99
  const body = (await res.json());
91
100
  if (typeof body.version !== 'string')
92
- return entry?.latest ?? null;
101
+ return failed();
93
102
  cache[pkgName] = { latest: body.version, checkedAt: now };
94
103
  writeCache(cacheFile, cache);
95
104
  return body.version;
96
105
  }
97
106
  catch {
98
- return entry?.latest ?? null;
107
+ return failed();
99
108
  }
100
109
  finally {
101
110
  clearTimeout(timer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slatesvideo/shared",
3
- "version": "0.7.21",
3
+ "version": "0.7.22",
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",