@slatesvideo/shared 0.6.5 → 0.6.6

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.
@@ -199,8 +199,24 @@ function readParams(v) {
199
199
  b('multiShot');
200
200
  b('audioLoop');
201
201
  b('audioMultilingual');
202
- if (raw.gptQuality === 'medium' || raw.gptQuality === 'high')
202
+ // Shape validation only. The pre-2026-09-09 tier MIGRATION deliberately does
203
+ // NOT live here: this file is a dependency-free leaf, and the migration's
204
+ // SSOT is `migrateGptQuality` in slate/src/shared/pricing.ts, applied in
205
+ // `transform` (slate/src/main/storage/shots.ts) — the one place a DB row
206
+ // becomes a `Shot`. NOT in `resolveShotSpec`: by the time a spec reaches that
207
+ // function its gate value (`gpt-image-2`) has already been rewritten, so a
208
+ // copy there could never fire. A stored value outside the union is dropped
209
+ // exactly as before — it just has five legal names now instead of two.
210
+ if (raw.gptQuality === 'low' ||
211
+ raw.gptQuality === 'medium' ||
212
+ raw.gptQuality === 'high' ||
213
+ raw.gptQuality === 'xhigh' ||
214
+ raw.gptQuality === 'max') {
203
215
  out.gptQuality = raw.gptQuality;
216
+ }
217
+ if (raw.gptBackground === 'auto' || raw.gptBackground === 'transparent' || raw.gptBackground === 'opaque') {
218
+ out.gptBackground = raw.gptBackground;
219
+ }
204
220
  if (raw.gridMode === 'off' || raw.gridMode === '2x2' || raw.gridMode === '3x3')
205
221
  out.gridMode = raw.gridMode;
206
222
  if (Array.isArray(raw.multiShotSegments)) {