@nodaro/shared 3.26.0 → 3.30.0

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.
Files changed (43) hide show
  1. package/dist/index.cjs +726 -174
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +569 -34
  4. package/dist/index.d.ts +569 -34
  5. package/dist/index.js +667 -175
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/__tests__/auto-aspect-source.test.ts +372 -0
  9. package/src/__tests__/camera-switch-contract.test.ts +10 -0
  10. package/src/__tests__/collections.test.ts +10 -0
  11. package/src/__tests__/edl.test.ts +319 -4
  12. package/src/__tests__/json-kinds.test.ts +11 -1
  13. package/src/__tests__/llm-models.test.ts +120 -8
  14. package/src/__tests__/pitch-tempo-pricing.test.ts +62 -0
  15. package/src/__tests__/render-nodes.test.ts +84 -5
  16. package/src/__tests__/transcribe-preflight.test.ts +5 -0
  17. package/src/__tests__/video-depth.test.ts +146 -0
  18. package/src/__tests__/video-mask.test.ts +77 -0
  19. package/src/camera-switch-contract.ts +9 -6
  20. package/src/collections.ts +72 -2
  21. package/src/credit-estimators/index.ts +10 -0
  22. package/src/credit-estimators/pitch-tempo.ts +68 -0
  23. package/src/credit-identifiers.ts +87 -19
  24. package/src/edl.ts +143 -23
  25. package/src/fan-out-rows.ts +3 -1
  26. package/src/i18n/camera-format.ko.ts +3 -3
  27. package/src/index.ts +35 -0
  28. package/src/json-kinds.ts +11 -6
  29. package/src/llm-models.ts +87 -2
  30. package/src/mask-composite.ts +108 -0
  31. package/src/model-catalog.ts +146 -4
  32. package/src/model-constants.ts +2 -1
  33. package/src/model-tree.ts +2 -0
  34. package/src/node-mappable-fields.ts +2 -0
  35. package/src/node-runtime-keys.ts +3 -0
  36. package/src/normalize-node-params.ts +47 -4
  37. package/src/pipeline-types.ts +16 -3
  38. package/src/presentation-utils.ts +3 -2
  39. package/src/producer-types.ts +13 -0
  40. package/src/render-nodes.ts +71 -6
  41. package/src/transcribe-preflight.ts +11 -10
  42. package/src/video-depth.ts +151 -0
  43. package/src/video-mask.ts +96 -0
package/dist/index.cjs CHANGED
@@ -1019,7 +1019,7 @@ var VIDEO_MODELS = {
1019
1019
  defaultDuration: 5,
1020
1020
  pricing: [{ identifier: "minimax", credits: 143, note: "5s, 1080p" }]
1021
1021
  },
1022
- // MiniMax Hailuo 3 (KIE "minimax-h3") — t2v / i2v (first and/or last frame) /
1022
+ // MiniMax H3 (KIE "minimax-h3") — t2v / i2v (first and/or last frame) /
1023
1023
  // reference-to-video (9 images / 3 videos ≤15s total / 3 audios ≤15s total;
1024
1024
  // audio refs require an image or video ref alongside). Two-rate resolution
1025
1025
  // lever (768P added 2026-08-03): 2K (KIE default) at 36.5 KIE cr/s, 768P at
@@ -1037,7 +1037,7 @@ var VIDEO_MODELS = {
1037
1037
  family: "MiniMax",
1038
1038
  label: "minimax-h3",
1039
1039
  series: "Hailuo",
1040
- description: "MiniMax Hailuo 3 \u2014 premium multimodal tier: first/last frame + image/video/audio references, native audio, 2K (default) or 768P output, 4-15s per-second pricing.",
1040
+ description: "MiniMax H3 \u2014 premium multimodal tier: first/last frame + image/video/audio references, native audio, 2K (default) or 768P output, 4-15s per-second pricing.",
1041
1041
  useCases: ["premium", "narrative"],
1042
1042
  features: ["end-frame", "audio", "reference-image", "video-reference"],
1043
1043
  aspectRatios: VIDEO_RATIOS_SEEDANCE_2,
@@ -2191,6 +2191,45 @@ var VIDEO_MODELS = {
2191
2191
  { identifier: "volcengine-lipsync:300s", credits: 6e3, note: "5-min ceiling" }
2192
2192
  ]
2193
2193
  },
2194
+ // ── Video Depth ── (video-depth node; billed per duration bucket via
2195
+ // videoDepthCreditId in video-depth.ts — `<provider>:<bucket>s`, bare row =
2196
+ // the 300 s ceiling, same shape as volcengine-lipsync.)
2197
+ "video-depth-anything": {
2198
+ id: "video-depth-anything",
2199
+ kind: "video",
2200
+ modes: ["video-depth"],
2201
+ family: "Depth Anything",
2202
+ label: "Video Depth Anything",
2203
+ series: "Depth Anything",
2204
+ description: "Temporally consistent depth video from any clip. Grayscale or colormapped, up to 2,400 frames or 300 seconds.",
2205
+ useCases: ["depth", "video-to-video", "compositing"],
2206
+ pricing: [
2207
+ { identifier: "video-depth-anything", credits: 6e3, note: "5-min ceiling (no duration given)" },
2208
+ { identifier: "video-depth-anything:15s", credits: 300 },
2209
+ { identifier: "video-depth-anything:30s", credits: 600 },
2210
+ { identifier: "video-depth-anything:60s", credits: 1200 },
2211
+ { identifier: "video-depth-anything:120s", credits: 2400 },
2212
+ { identifier: "video-depth-anything:300s", credits: 6e3, note: "5-min ceiling" }
2213
+ ]
2214
+ },
2215
+ "depth-anything-frames": {
2216
+ id: "depth-anything-frames",
2217
+ kind: "video",
2218
+ modes: ["video-depth"],
2219
+ family: "Depth Anything",
2220
+ label: "Depth Anything (per frame)",
2221
+ series: "Depth Anything",
2222
+ description: "Depth Anything v1 run on each frame. Grayscale or inferno colormap; may flicker between frames. Up to 80 s.",
2223
+ useCases: ["depth", "video-to-video"],
2224
+ pricing: [
2225
+ { identifier: "depth-anything-frames", credits: 600, note: "5-min ceiling (no duration given)" },
2226
+ { identifier: "depth-anything-frames:15s", credits: 30 },
2227
+ { identifier: "depth-anything-frames:30s", credits: 60 },
2228
+ { identifier: "depth-anything-frames:60s", credits: 120 },
2229
+ { identifier: "depth-anything-frames:120s", credits: 240 },
2230
+ { identifier: "depth-anything-frames:300s", credits: 600, note: "5-min ceiling" }
2231
+ ]
2232
+ },
2194
2233
  // ── Gemini video analysis ── (Gemini-only; billed per duration bucket — the
2195
2234
  // structural credit formula lives in video-analysis-pricing.ts. Composite id
2196
2235
  // shape `video-analysis:<model>:<bucket>s` mirrors volcengine-lipsync: bare
@@ -2922,7 +2961,35 @@ function sameOptionValue(a, b) {
2922
2961
  const fb = Number(nb);
2923
2962
  return Number.isFinite(fa) && Number.isFinite(fb) && fa === fb;
2924
2963
  }
2925
- function normalizeModelInput(modelId, input) {
2964
+ function isAutoAspectToken(value) {
2965
+ return typeof value === "string" && value.trim().toLowerCase() === "auto";
2966
+ }
2967
+ function usableSize(size) {
2968
+ return size !== void 0 && Number.isFinite(size.width) && size.width > 0 && Number.isFinite(size.height) && size.height > 0;
2969
+ }
2970
+ var ASPECT_TIE_EPSILON = 1e-9;
2971
+ function nearestCatalogAspectRatio(sourceWidth, sourceHeight, ratios) {
2972
+ if (!usableSize({ width: sourceWidth, height: sourceHeight })) return void 0;
2973
+ const target = Math.log(sourceWidth / sourceHeight);
2974
+ let best;
2975
+ let bestDist = Infinity;
2976
+ for (const ratio of ratios) {
2977
+ const [rw, rh] = ratio.split(":").map(Number);
2978
+ if (!rw || !rh || rw < 0 || rh < 0) continue;
2979
+ const dist = Math.abs(Math.log(rw / rh) - target);
2980
+ if (dist < bestDist - ASPECT_TIE_EPSILON) {
2981
+ bestDist = dist;
2982
+ best = ratio;
2983
+ }
2984
+ }
2985
+ return best;
2986
+ }
2987
+ function autoAspectNeedsSourceImage(modelId, aspectRatio) {
2988
+ if (!modelId || !isAutoAspectToken(aspectRatio)) return false;
2989
+ const ratios = MODEL_CATALOG[modelId]?.aspectRatios;
2990
+ return ratios !== void 0 && ratios.length > 0 && !ratios.some(isAutoAspectToken);
2991
+ }
2992
+ function normalizeModelInput(modelId, input, context = {}) {
2926
2993
  const m = MODEL_CATALOG[modelId];
2927
2994
  const adjustments = [];
2928
2995
  if (!m) return { ...input, adjustments };
@@ -2950,7 +3017,19 @@ function normalizeModelInput(modelId, input) {
2950
3017
  });
2951
3018
  return next;
2952
3019
  };
2953
- out.aspectRatio = snap("aspectRatio", input.aspectRatio, m.aspectRatios);
3020
+ const sourceRatio = autoAspectNeedsSourceImage(modelId, input.aspectRatio) && usableSize(context.sourceImage) ? nearestCatalogAspectRatio(context.sourceImage.width, context.sourceImage.height, m.aspectRatios ?? []) : void 0;
3021
+ if (sourceRatio !== void 0 && input.aspectRatio !== void 0) {
3022
+ const { width, height } = context.sourceImage;
3023
+ adjustments.push({
3024
+ field: "aspectRatio",
3025
+ from: input.aspectRatio,
3026
+ to: sourceRatio,
3027
+ reason: `${m.label} has no "auto" aspect ratio \u2014 using "${sourceRatio}", the supported ratio closest to the source image's shape (${width}x${height}).`
3028
+ });
3029
+ out.aspectRatio = sourceRatio;
3030
+ } else {
3031
+ out.aspectRatio = snap("aspectRatio", input.aspectRatio, m.aspectRatios);
3032
+ }
2954
3033
  out.resolution = snap(
2955
3034
  "resolution",
2956
3035
  input.resolution,
@@ -5516,15 +5595,26 @@ function buildCreditModelIdentifier(provider, quality, resolution, renderingSpee
5516
5595
  }
5517
5596
  return provider;
5518
5597
  }
5598
+ function normalizedImageGenModelId(opts) {
5599
+ const provider = typeof opts.provider === "string" && opts.provider.length > 0 ? opts.provider : "nano-banana";
5600
+ return opts.swapToI2i && opts.refCount > 0 ? T2I_TO_I2I_VARIANT[provider] ?? provider : provider;
5601
+ }
5602
+ function imageGenAutoAspectNeedsSourceImage(opts) {
5603
+ const asks = (refCount) => autoAspectNeedsSourceImage(normalizedImageGenModelId({ provider: opts.provider, refCount, swapToI2i: true }), opts.aspectRatio);
5604
+ return opts.refCount === void 0 ? asks(0) || asks(1) : asks(opts.refCount);
5605
+ }
5519
5606
  function resolveNormalizedImageGen(opts) {
5520
5607
  const str7 = (v) => typeof v === "string" && v.length > 0 ? v : void 0;
5521
- const provider = str7(opts.provider) ?? "nano-banana";
5522
- const modelId = opts.swapToI2i && opts.refCount > 0 ? T2I_TO_I2I_VARIANT[provider] ?? provider : provider;
5523
- const n = normalizeModelInput(modelId, {
5524
- aspectRatio: str7(opts.aspectRatio),
5525
- resolution: str7(opts.resolution),
5526
- quality: str7(opts.quality)
5527
- });
5608
+ const modelId = normalizedImageGenModelId(opts);
5609
+ const n = normalizeModelInput(
5610
+ modelId,
5611
+ {
5612
+ aspectRatio: str7(opts.aspectRatio),
5613
+ resolution: str7(opts.resolution),
5614
+ quality: str7(opts.quality)
5615
+ },
5616
+ { sourceImage: opts.sourceImage }
5617
+ );
5528
5618
  return {
5529
5619
  identifier: buildCreditModelIdentifier(
5530
5620
  modelId,
@@ -5693,8 +5783,17 @@ function speedRampCreditId(quality) {
5693
5783
  function applyEdlCreditId(quality) {
5694
5784
  return quality === "proxy" ? "apply-edl:proxy" : "apply-edl";
5695
5785
  }
5696
- function speakerViewCreditId(quality) {
5697
- return quality === "proxy" ? "speaker-view:proxy" : "speaker-view";
5786
+ var SPEAKER_VIEW_PRICE_TIERS = ["standard", "complex"];
5787
+ var SPEAKER_VIEW_CREDIT_IDS = Object.freeze([
5788
+ "speaker-view",
5789
+ "speaker-view:proxy",
5790
+ "speaker-view:complex",
5791
+ "speaker-view:complex:proxy"
5792
+ ]);
5793
+ function speakerViewCreditId(quality, tier) {
5794
+ const proxy = quality === "proxy";
5795
+ if (tier === "standard") return proxy ? "speaker-view:proxy" : "speaker-view";
5796
+ return proxy ? "speaker-view:complex:proxy" : "speaker-view:complex";
5698
5797
  }
5699
5798
  function sunoCreditType(model, operation) {
5700
5799
  if (!SUNO_VERSION_PRICED_OPERATIONS.includes(operation)) {
@@ -5965,6 +6064,44 @@ function speechCredits(chars, perUnitCredits) {
5965
6064
  return speechPriceUnits(chars) * perUnitCredits;
5966
6065
  }
5967
6066
 
6067
+ // src/credit-estimators/pitch-tempo.ts
6068
+ var PITCH_TEMPO_PRICING = {
6069
+ /** The rate row: credits per started minute. Never reserved by itself. */
6070
+ RATE_CREDIT_ID: "pitch-tempo",
6071
+ /** The longest input a run accepts, in seconds (the route refuses longer). */
6072
+ MAX_DURATION_SEC: 1800,
6073
+ /** The most minutes a `pitch-tempo:<N>m` id can carry. */
6074
+ MAX_MINUTES: 30,
6075
+ /** The rate row's launch value (admin-retunable in /admin/models). */
6076
+ CREDITS_PER_MINUTE_DEFAULT: 20
6077
+ };
6078
+ var PITCH_TEMPO_LIMITS = {
6079
+ SEMITONES_MIN: -12,
6080
+ SEMITONES_MAX: 12,
6081
+ TEMPO_MIN: 0.5,
6082
+ TEMPO_MAX: 2
6083
+ };
6084
+ function pitchTempoStartedMinutes(durationSec) {
6085
+ if (typeof durationSec !== "number" || !Number.isFinite(durationSec) || durationSec <= 0) return 1;
6086
+ return Math.min(PITCH_TEMPO_PRICING.MAX_MINUTES, Math.max(1, Math.ceil(durationSec / 60)));
6087
+ }
6088
+ function pitchTempoCreditId(durationSec) {
6089
+ return `pitch-tempo:${pitchTempoStartedMinutes(durationSec)}m`;
6090
+ }
6091
+ function parsePitchTempoCreditId(id) {
6092
+ const m = /^pitch-tempo:(\d+)m$/.exec(id);
6093
+ if (!m) return void 0;
6094
+ const minutes = Number(m[1]);
6095
+ if (!Number.isInteger(minutes) || minutes < 1 || minutes > PITCH_TEMPO_PRICING.MAX_MINUTES) return void 0;
6096
+ return { minutes };
6097
+ }
6098
+ function pitchTempoBaseCredits(ratePerMinute, minutes) {
6099
+ return Math.max(1, Math.ceil(ratePerMinute * minutes));
6100
+ }
6101
+ function semitonesToPitchRatio(semitones) {
6102
+ return 2 ** (semitones / 12);
6103
+ }
6104
+
5968
6105
  // src/video-duration.ts
5969
6106
  function extractVideoDurationFromNode(data) {
5970
6107
  if (!data) return void 0;
@@ -6086,6 +6223,7 @@ var VIDEO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6086
6223
  "speech-to-video",
6087
6224
  "motion-transfer",
6088
6225
  "video-upscale",
6226
+ "video-depth",
6089
6227
  "extend-video",
6090
6228
  // face-swap output is video (writes generatedVideoUrl, per-result `url`).
6091
6229
  // Frontend execution-graph already includes it in VIDEO_SOURCE_TYPES; this
@@ -6111,6 +6249,9 @@ var VIDEO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6111
6249
  "speed-ramp",
6112
6250
  "loop-video",
6113
6251
  "fade-video",
6252
+ // Video Mask emits its mask as a video; Mask Composite its composite.
6253
+ "video-mask",
6254
+ "mask-composite",
6114
6255
  "transcode-video",
6115
6256
  "manual-edit",
6116
6257
  // Remove Audio: strips the audio track, emits a silent video.
@@ -6144,6 +6285,10 @@ var DYNAMIC_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6144
6285
  "list",
6145
6286
  "sub-workflow",
6146
6287
  "adjust-volume",
6288
+ // Pitch & Tempo: audio in → audio out, video in → video out (picture
6289
+ // copied). Dual-mode like adjust-volume; stays in AUDIO_PRODUCER_TYPES as
6290
+ // its default.
6291
+ "pitch-tempo",
6147
6292
  // Dual-mode: audio in → audio out; video in → video out (+ revoiced audio).
6148
6293
  // Listed here so canvas validators accept its output on BOTH audio and video
6149
6294
  // input handles (it also stays in AUDIO_PRODUCER_TYPES as its default).
@@ -6203,6 +6348,7 @@ var AUDIO_PRODUCER_TYPES = /* @__PURE__ */ new Set([
6203
6348
  "combine-audio",
6204
6349
  "adjust-volume",
6205
6350
  "audio-fx",
6351
+ "pitch-tempo",
6206
6352
  "reference-audio",
6207
6353
  "audio-isolation",
6208
6354
  "text-to-dialogue",
@@ -6316,7 +6462,11 @@ var FAN_IN_TARGETS = {
6316
6462
  deduplicate: "*",
6317
6463
  "merge-lists": "*",
6318
6464
  "sort-list": "*",
6319
- selector: "*"
6465
+ selector: "*",
6466
+ // Speaker Frames on a clip pack (P3-24 (a), decided 2026-10-06): ONE run over
6467
+ // the union of the clips' spans — the pack's EDLs fold onto its `edl` wire
6468
+ // instead of running one detection job (and one minimum charge) per clip.
6469
+ "speaker-frames": ["edl"]
6320
6470
  };
6321
6471
  function isFanInNodeType(nodeType) {
6322
6472
  return typeof nodeType === "string" && Object.prototype.hasOwnProperty.call(FAN_IN_TARGETS, nodeType);
@@ -6352,27 +6502,34 @@ function canonicalizeOverrideKeys(nodeType, overrides) {
6352
6502
  }
6353
6503
 
6354
6504
  // src/render-nodes.ts
6505
+ var RENDER_JSON_HANDLE = "json";
6355
6506
  var outputSettingMedium = (data) => data.output === "audio" ? "audio" : "video";
6356
- var descriptor = (d) => Object.freeze({ ...d });
6507
+ var descriptor = (d) => Object.freeze({ ...d, creditIds: Object.freeze([...d.creditIds]), transcriptOutput: Object.freeze({ ...d.transcriptOutput }) });
6357
6508
  var RENDER_NODE_TYPES = Object.freeze({
6358
6509
  "apply-edl": descriptor({
6359
6510
  mediumOf: outputSettingMedium,
6360
6511
  creditId: (quality) => applyEdlCreditId(quality),
6512
+ creditIds: ["apply-edl", "apply-edl:proxy"],
6361
6513
  clockMapFrom: "input",
6362
6514
  ownerOnlyListing: true,
6363
6515
  latestBatch: true,
6364
- jsonKind: "transcript"
6516
+ jsonKind: "transcript",
6517
+ transcriptOutput: { handle: RENDER_JSON_HANDLE, dataField: "generatedJson" }
6365
6518
  }),
6366
6519
  // Speaker View (C3.2): video only; its `json` is the EDL as it drew it (the
6367
6520
  // turns split, the layouts written), so a player maps the output clock
6368
- // through THAT, and Add Captions never takes it for a Transcript.
6521
+ // through THAT, and Add Captions never takes it for a Transcript. The wired
6522
+ // transcript, remapped through that same drawn edit, comes out on its own
6523
+ // `transcript` pip (decided 2026-10-08) — what a caption step reads.
6369
6524
  "speaker-view": descriptor({
6370
6525
  mediumOf: () => "video",
6371
- creditId: (quality) => speakerViewCreditId(quality),
6526
+ creditId: (quality, _output, priceTier) => speakerViewCreditId(quality, priceTier),
6527
+ creditIds: SPEAKER_VIEW_CREDIT_IDS,
6372
6528
  clockMapFrom: "output-json",
6373
6529
  ownerOnlyListing: true,
6374
6530
  latestBatch: true,
6375
- jsonKind: "edl"
6531
+ jsonKind: "edl",
6532
+ transcriptOutput: { handle: "transcript", dataField: "generatedTranscript" }
6376
6533
  })
6377
6534
  });
6378
6535
  var RENDER_NODE_TYPE_IDS = Object.freeze(Object.keys(RENDER_NODE_TYPES));
@@ -6388,6 +6545,21 @@ function rendersLatestBatch(type) {
6388
6545
  function rendersTranscriptJson(type) {
6389
6546
  return renderNodeOf(type)?.jsonKind === "transcript";
6390
6547
  }
6548
+ function renderTranscriptOutputOf(type) {
6549
+ return renderNodeOf(type)?.transcriptOutput;
6550
+ }
6551
+ function isRenderDataHandle(type, handle) {
6552
+ const d = renderNodeOf(type);
6553
+ if (!d || typeof handle !== "string") return false;
6554
+ return handle === RENDER_JSON_HANDLE || handle === d.transcriptOutput.handle;
6555
+ }
6556
+ function renderSavedJsonOutputs(type) {
6557
+ const d = renderNodeOf(type);
6558
+ if (!d) return [];
6559
+ const json = { outputKey: RENDER_JSON_HANDLE, dataField: "generatedJson" };
6560
+ const t2 = d.transcriptOutput;
6561
+ return t2.handle === RENDER_JSON_HANDLE ? [json] : [json, { outputKey: t2.handle, dataField: t2.dataField }];
6562
+ }
6391
6563
  var OWNER_ONLY_LISTING_RENDER_TYPES = Object.freeze(
6392
6564
  RENDER_NODE_TYPE_IDS.filter((t2) => RENDER_NODE_TYPES[t2].ownerOnlyListing)
6393
6565
  );
@@ -6672,7 +6844,8 @@ var MEDIA_PRODUCING_TYPES = /* @__PURE__ */ new Set([
6672
6844
  "extend-video",
6673
6845
  "lip-sync",
6674
6846
  "motion-transfer",
6675
- "video-upscale"
6847
+ "video-upscale",
6848
+ "video-depth"
6676
6849
  ]);
6677
6850
  var IMAGE_OUTPUT_TYPES = /* @__PURE__ */ new Set([
6678
6851
  "generate-image",
@@ -6704,6 +6877,7 @@ var VIDEO_OUTPUT_TYPES = /* @__PURE__ */ new Set([
6704
6877
  "lip-sync",
6705
6878
  "motion-transfer",
6706
6879
  "video-upscale",
6880
+ "video-depth",
6707
6881
  "add-captions",
6708
6882
  "social-media-format",
6709
6883
  // A render (Apply EDL) renders an EDL into video OR audio. Its medium is
@@ -6727,6 +6901,7 @@ var AUDIO_OUTPUT_TYPES = /* @__PURE__ */ new Set([
6727
6901
  "mix-audio",
6728
6902
  "adjust-volume",
6729
6903
  "audio-fx",
6904
+ "pitch-tempo",
6730
6905
  "trim-audio",
6731
6906
  "audio-isolation",
6732
6907
  "audio-separation",
@@ -7186,7 +7361,8 @@ var LLM_MODELS = [
7186
7361
  {
7187
7362
  id: "claude-haiku-4.5",
7188
7363
  displayName: "Claude Haiku 4.5",
7189
- desc: "Fast economy, good reasoning",
7364
+ // Demoted 2026-10-10 when claude-haiku-5.5 registered.
7365
+ desc: "Previous Haiku, fast economy",
7190
7366
  tier: "economy",
7191
7367
  kieFormat: "messages",
7192
7368
  kieSlugOrModel: "claude-haiku-4-5",
@@ -7199,6 +7375,49 @@ var LLM_MODELS = [
7199
7375
  // KIE served it plain and with a tool on its streaming wire that day.
7200
7376
  preferKie: true
7201
7377
  },
7378
+ {
7379
+ id: "claude-haiku-5.5",
7380
+ displayName: "Claude Haiku 5.5",
7381
+ desc: "Latest Haiku, fast and low-cost with reasoning",
7382
+ tier: "economy",
7383
+ kieFormat: "messages",
7384
+ // KIE plain id on the Claude-native messages dialect
7385
+ // (docs.kie.ai/market/claude/claude-haiku-5-5.md). Live-probed 2026-10-10
7386
+ // on the streaming wire: plain, system prompt, base64 image, a forced tool
7387
+ // and an auto + strict tool (both came back as a real tool_use block), and
7388
+ // `max_tokens: 32768` were all served.
7389
+ kieSlugOrModel: "claude-haiku-5-5",
7390
+ vendor: "anthropic",
7391
+ structuredOutputMode: "anthropic-tool",
7392
+ // NO `supportsForcedToolChoice: false`, unlike Sonnet 5.5 / Opus 5.5: this
7393
+ // model ACCEPTS a forced tool_choice (probed on Anthropic's API 2026-10-10).
7394
+ // A forced call skips thinking (same usage with and without an effort), and
7395
+ // an effort-bearing structured call is already sent the auto choice.
7396
+ //
7397
+ // A thinking block is valid only while everything before it is unchanged
7398
+ // (vendor docs: the same history check the other 5.5 models run).
7399
+ conversationBoundThinking: true,
7400
+ supportsImages: true,
7401
+ maxOutputTokens: 16384,
7402
+ directFallbackModel: "claude-haiku-5-5",
7403
+ // The first Haiku with effort levels. The vendor default is `medium`, where
7404
+ // most of the family defaults to `high`.
7405
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
7406
+ // KIE ignores effort on this slug too — measured 2026-10-10 on a
7407
+ // reasoning-heavy prompt: none / low / max / KIE's own `thinkingFlag` gave
7408
+ // 2,076 / 1,886 / 2,223 / 1,927 output tokens and no thinking block, while
7409
+ // Anthropic's API gave 2,059 at low and 28,097 at max. An effort call runs
7410
+ // direct and bills as Advanced.
7411
+ effortRequiresDirect: true,
7412
+ // Anthropic 400s a non-default sampling value ("`temperature` is deprecated
7413
+ // for this model", probed 2026-10-10); KIE's proxy accepted temperature: 0.2.
7414
+ supportsTemperature: false,
7415
+ preferKie: true,
7416
+ // Adaptive thinking runs when no thinking param is sent (vendor default),
7417
+ // on BOTH lanes: a no-effort KIE call spent ~2,000 output tokens on a
7418
+ // ~350-token answer and returned no thinking block.
7419
+ thinkingDefaultOn: true
7420
+ },
7202
7421
  {
7203
7422
  id: "claude-sonnet-4.6",
7204
7423
  displayName: "Claude Sonnet 4.6",
@@ -7696,7 +7915,10 @@ var LLM_MODELS = [
7696
7915
  // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
7697
7916
  effortRequiresDirect: true,
7698
7917
  supportsTemperature: false,
7699
- preferKie: true
7918
+ preferKie: true,
7919
+ // Thinking is always on (vendor docs: `disabled` is not supported), so it
7920
+ // shares the output cap on every call.
7921
+ thinkingDefaultOn: true
7700
7922
  },
7701
7923
  // ── Moonshot / DeepSeek ───────────────────────────────────────────────────
7702
7924
  // Both on KIE's THIRD responses family path, openai/v1/responses (llm-client
@@ -7808,6 +8030,19 @@ var LLM_FEATURE_DEFAULTS = {
7808
8030
  "content-recipe": "gemini-3.6-flash",
7809
8031
  "content-ideas": "gemini-3.6-flash"
7810
8032
  };
8033
+ var LLM_FEATURE_DEFAULT_EFFORTS = {
8034
+ // Decided 2026-10-09 from the picker bake-off v2: Opus 5.5 at `high` read
8035
+ // 4/4 portraits with the most attributes per image, ~9 s a read. Its effort
8036
+ // only takes effect on Anthropic's own API (`effortRequiresDirect`), so the
8037
+ // default analysis runs direct — and bills as such (`llmServesDirect`).
8038
+ "describe-to-picker": "high"
8039
+ };
8040
+ function defaultReasoningEffort(feature, modelId) {
8041
+ const effort = LLM_FEATURE_DEFAULT_EFFORTS[feature];
8042
+ if (!effort) return void 0;
8043
+ if (!modelId) return effort;
8044
+ return getLlmModel(modelId)?.id === LLM_FEATURE_DEFAULTS[feature] ? effort : void 0;
8045
+ }
7811
8046
  var LLM_MODALITY_CAPS = {
7812
8047
  "gemini-3-flash": { image: true, video: true, audio: true },
7813
8048
  "gemini-3.6-flash": { image: true, video: true, audio: true },
@@ -7828,6 +8063,7 @@ var LLM_MODALITY_CAPS = {
7828
8063
  "gemini-3.8-flash": { image: true, video: false, audio: false },
7829
8064
  "gemini-3.1-pro": { image: true, video: true, audio: true },
7830
8065
  "claude-haiku-4.5": { image: true, video: false, audio: false },
8066
+ "claude-haiku-5.5": { image: true, video: false, audio: false },
7831
8067
  "claude-sonnet-4.6": { image: true, video: false, audio: false },
7832
8068
  "claude-opus-4.7": { image: true, video: false, audio: false },
7833
8069
  "gpt-5.2": { image: true, video: false, audio: false },
@@ -9622,8 +9858,10 @@ var NON_PROMPT_TEXT_LANES = {
9622
9858
  negative: "*",
9623
9859
  "system-prompt": "*",
9624
9860
  script: ["ai-avatar"],
9625
- transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch", "speaker-view"],
9861
+ transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch", "speaker-view", "speaker-frames"],
9626
9862
  edl: ["apply-edl", "camera-switch", "speaker-view"],
9863
+ // Speaker View's face tracks (Speaker Frames' descriptor): framing data, never a prompt.
9864
+ tracks: ["speaker-view"],
9627
9865
  silence: ["edit-plan"],
9628
9866
  offsets: ["edit-plan"],
9629
9867
  qrText: ["image-overlay"],
@@ -10051,6 +10289,89 @@ function buildLipSyncCreditId(provider, audioDurationSec) {
10051
10289
  return `${provider}:${pickLipSyncBucket(requested)}s`;
10052
10290
  }
10053
10291
 
10292
+ // src/video-depth.ts
10293
+ var VIDEO_DEPTH_PROVIDERS = ["video-depth-anything", "depth-anything-frames"];
10294
+ var FAL_VIDEO_DEPTH_PROVIDERS = /* @__PURE__ */ new Set(["video-depth-anything"]);
10295
+ var REPLICATE_VIDEO_DEPTH_PROVIDERS = /* @__PURE__ */ new Set(["depth-anything-frames"]);
10296
+ function resolveVideoDepthProvider(raw) {
10297
+ return typeof raw === "string" && VIDEO_DEPTH_PROVIDERS.includes(raw) ? raw : VIDEO_DEPTH_PROVIDERS[0];
10298
+ }
10299
+ var VIDEO_DEPTH_MODEL_SIZES = ["small", "base", "large"];
10300
+ function resolveVideoDepthModelSize(raw) {
10301
+ return typeof raw === "string" && VIDEO_DEPTH_MODEL_SIZES.includes(raw) ? raw : "large";
10302
+ }
10303
+ var VIDEO_DEPTH_COLORMAPS = ["grayscale", "turbo", "inferno", "magma", "viridis"];
10304
+ var VIDEO_DEPTH_RESOLUTIONS = ["auto", "360p", "480p", "720p", "1080p"];
10305
+ var ALL_LEVERS = /* @__PURE__ */ new Set(["colormap", "resolution", "sideBySide"]);
10306
+ var COLORMAP_ONLY = /* @__PURE__ */ new Set(["colormap"]);
10307
+ var NO_LEVERS = /* @__PURE__ */ new Set();
10308
+ function videoDepthLevers(provider) {
10309
+ if (FAL_VIDEO_DEPTH_PROVIDERS.has(provider)) return ALL_LEVERS;
10310
+ if (REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider)) return COLORMAP_ONLY;
10311
+ return NO_LEVERS;
10312
+ }
10313
+ var REPLICATE_COLORMAPS = ["grayscale", "inferno"];
10314
+ function videoDepthColormaps(provider) {
10315
+ if (FAL_VIDEO_DEPTH_PROVIDERS.has(provider)) return VIDEO_DEPTH_COLORMAPS;
10316
+ if (REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider)) return REPLICATE_COLORMAPS;
10317
+ return [];
10318
+ }
10319
+ function resolveVideoDepthColormap(provider, requested) {
10320
+ if (!videoDepthLevers(provider).has("colormap")) return void 0;
10321
+ const offered = videoDepthColormaps(provider);
10322
+ return typeof requested === "string" && offered.includes(requested) ? requested : "grayscale";
10323
+ }
10324
+ function videoDepthNeedsGrayscalePass(provider, colormap) {
10325
+ return REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider) && resolveVideoDepthColormap(provider, colormap) === "grayscale";
10326
+ }
10327
+ var VIDEO_DEPTH_LIMITS = {
10328
+ /** fal `max_frames` ceiling. */
10329
+ FAL_MAX_FRAMES: 2400,
10330
+ /** Longest clip the fal lane accepts, whatever its frame rate: the top price bucket (a low-fps clip under the frame limit can otherwise run past every price row). */
10331
+ FAL_MAX_SECONDS: 300,
10332
+ /** Frame rate assumed when the clip reports none (variable-rate or missing). */
10333
+ ASSUMED_FPS: 30,
10334
+ /** Longest clip the Replicate lane accepts. */
10335
+ REPLICATE_MAX_SECONDS: 80
10336
+ };
10337
+ var fmt = (n) => n.toLocaleString("en-US");
10338
+ function checkVideoDepthLength(provider, probe) {
10339
+ if (REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider)) {
10340
+ if (probe.durationSec <= VIDEO_DEPTH_LIMITS.REPLICATE_MAX_SECONDS) return { ok: true };
10341
+ return {
10342
+ ok: false,
10343
+ message: `Video is ${Math.ceil(probe.durationSec)} s. This provider accepts at most ${VIDEO_DEPTH_LIMITS.REPLICATE_MAX_SECONDS} s.`
10344
+ };
10345
+ }
10346
+ if (probe.durationSec > VIDEO_DEPTH_LIMITS.FAL_MAX_SECONDS) {
10347
+ return {
10348
+ ok: false,
10349
+ message: `Video is ${Math.ceil(probe.durationSec)} s. This provider accepts at most ${VIDEO_DEPTH_LIMITS.FAL_MAX_SECONDS} s. Trim the clip and run again.`
10350
+ };
10351
+ }
10352
+ const assumed = !(typeof probe.fps === "number" && probe.fps > 0);
10353
+ const fps = assumed ? VIDEO_DEPTH_LIMITS.ASSUMED_FPS : probe.fps;
10354
+ const frames = Math.ceil(probe.durationSec * fps - 1e-9);
10355
+ if (frames <= VIDEO_DEPTH_LIMITS.FAL_MAX_FRAMES) return { ok: true };
10356
+ const maxSec = Math.floor(VIDEO_DEPTH_LIMITS.FAL_MAX_FRAMES / fps);
10357
+ return {
10358
+ ok: false,
10359
+ message: `Video is ${fmt(frames)} frames; the limit is ${fmt(VIDEO_DEPTH_LIMITS.FAL_MAX_FRAMES)} (about ${maxSec} s at ${Math.round(fps)} fps${assumed ? ", assumed 30 fps because the clip reports no frame rate" : ""}). Trim the clip and run again.`
10360
+ };
10361
+ }
10362
+ var VIDEO_DEPTH_BUCKETS = [15, 30, 60, 120, 300];
10363
+ function videoDepthMaxSeconds(provider) {
10364
+ return REPLICATE_VIDEO_DEPTH_PROVIDERS.has(provider) ? VIDEO_DEPTH_LIMITS.REPLICATE_MAX_SECONDS : VIDEO_DEPTH_LIMITS.FAL_MAX_SECONDS;
10365
+ }
10366
+ function videoDepthCreditId(provider, durationSec) {
10367
+ const top = VIDEO_DEPTH_BUCKETS[VIDEO_DEPTH_BUCKETS.length - 1];
10368
+ const maxSec = videoDepthMaxSeconds(provider);
10369
+ const reachableCeiling = VIDEO_DEPTH_BUCKETS.find((b) => b >= maxSec) ?? top;
10370
+ const known = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0 && durationSec <= maxSec;
10371
+ const bucket = known ? VIDEO_DEPTH_BUCKETS.find((b) => durationSec <= b) ?? top : reachableCeiling;
10372
+ return `${provider}:${bucket}s`;
10373
+ }
10374
+
10054
10375
  // src/ai-avatar-pricing.ts
10055
10376
  var AI_AVATAR_MAX_DURATION_SEC = 900;
10056
10377
  var AI_AVATAR_DURATION_BUCKETS = [5, 10, 15, 30, 60, 120, 240, 360, 600, 900];
@@ -11003,6 +11324,8 @@ var NODE_MAPPABLE_FIELDS = {
11003
11324
  // Span-replace sibling of generate-video-pro — prompt only, no
11004
11325
  // negativePrompt field on the node.
11005
11326
  "edit-video-pro": ["prompt"],
11327
+ // The subject to track — a {Label} reference or a mapping writes it.
11328
+ "video-mask": ["prompt"],
11006
11329
  "video-analysis": ["analysisFocus", "youtubeUrl"],
11007
11330
  "video-to-video": ["prompt"],
11008
11331
  // + the two neighbour-text fields (continuity across clips): a wired Text node can feed
@@ -11241,6 +11564,9 @@ var JSON_OUTPUT_KINDS = Object.freeze({
11241
11564
  transcribe: { primary: "json", pips: { json: "transcript" } },
11242
11565
  // Camera Switch: the switched edit and the renamed (still a Transcript) transcript.
11243
11566
  "camera-switch": { primary: "edl", pips: { edl: "edl", transcript: "transcript" } },
11567
+ // Speaker Frames: the stored track file's descriptor (P3-22) — neither a
11568
+ // Transcript nor an EDL, read by Speaker View's `tracks` input (P3.9).
11569
+ "speaker-frames": { primary: "tracks", pips: { tracks: "other" } },
11244
11570
  // Text to Dialogue: the Transcript built from the model's own word timings (its default read is the audio).
11245
11571
  "text-to-dialogue": { pips: { json: "transcript" } },
11246
11572
  // ── JSON that is neither a Transcript nor an EDL (decided 2026-10-08) ──
@@ -11268,7 +11594,6 @@ var JSON_OUTPUT_KINDS = Object.freeze({
11268
11594
  // Describe to Picker: the picker values read off an image.
11269
11595
  "describe-to-picker": { primary: "picker-json", pips: { "picker-json": "other" } }
11270
11596
  });
11271
- var RENDER_JSON_PIP = "json";
11272
11597
  var JSON_INPUT_KINDS = Object.freeze({
11273
11598
  transcript: "transcript",
11274
11599
  edl: "edl"
@@ -11277,7 +11602,11 @@ var own = (table, key) => Object.hasOwn(table, key) ? table[key] : void 0;
11277
11602
  function declaredJsonOutput(nodeType, sourceHandle, renders = RENDER_NODE_TYPES) {
11278
11603
  if (typeof nodeType !== "string") return void 0;
11279
11604
  const render = own(renders, nodeType);
11280
- if (render) return (sourceHandle ?? RENDER_JSON_PIP) === RENDER_JSON_PIP ? render.jsonKind : void 0;
11605
+ if (render) {
11606
+ const pip2 = sourceHandle ?? RENDER_JSON_HANDLE;
11607
+ if (pip2 === RENDER_JSON_HANDLE) return render.jsonKind;
11608
+ return pip2 === render.transcriptOutput.handle ? "transcript" : void 0;
11609
+ }
11281
11610
  const outputs = own(JSON_OUTPUT_KINDS, nodeType);
11282
11611
  if (!outputs) return void 0;
11283
11612
  const pip = sourceHandle ?? outputs.primary;
@@ -11565,7 +11894,7 @@ function formatterFor(timezone) {
11565
11894
  const known = canonicalZone.get(spelled);
11566
11895
  if (known) return formatters.get(known) ?? null;
11567
11896
  try {
11568
- const fmt = new Intl.DateTimeFormat("en-US", {
11897
+ const fmt2 = new Intl.DateTimeFormat("en-US", {
11569
11898
  timeZone: spelled,
11570
11899
  hourCycle: "h23",
11571
11900
  year: "numeric",
@@ -11574,11 +11903,11 @@ function formatterFor(timezone) {
11574
11903
  hour: "2-digit",
11575
11904
  minute: "2-digit"
11576
11905
  });
11577
- const canonical = fmt.resolvedOptions().timeZone;
11578
- if (!formatters.has(canonical)) formatters.set(canonical, fmt);
11906
+ const canonical = fmt2.resolvedOptions().timeZone;
11907
+ if (!formatters.has(canonical)) formatters.set(canonical, fmt2);
11579
11908
  if (canonicalZone.size >= MAX_ZONE_SPELLINGS) canonicalZone.clear();
11580
11909
  canonicalZone.set(spelled, canonical);
11581
- return formatters.get(canonical) ?? fmt;
11910
+ return formatters.get(canonical) ?? fmt2;
11582
11911
  } catch {
11583
11912
  return null;
11584
11913
  }
@@ -11595,10 +11924,10 @@ function localFromComponents(year, month, day, hour, minute) {
11595
11924
  return { year, month, day, hour: hour === 24 ? 0 : hour, minute, weekday, epochDay };
11596
11925
  }
11597
11926
  function localTimeIn(date, timezone) {
11598
- const fmt = formatterFor(timezone);
11599
- if (!fmt) return localFromComponents(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes());
11927
+ const fmt2 = formatterFor(timezone);
11928
+ if (!fmt2) return localFromComponents(date.getUTCFullYear(), date.getUTCMonth() + 1, date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes());
11600
11929
  const parts = {};
11601
- for (const p of fmt.formatToParts(date)) {
11930
+ for (const p of fmt2.formatToParts(date)) {
11602
11931
  if (p.type === "literal") continue;
11603
11932
  parts[p.type] = parseInt(p.value, 10);
11604
11933
  }
@@ -12360,6 +12689,114 @@ var SOCIAL_READ_PERIODS = ["window", "day"];
12360
12689
  var COMPETITOR_READ_ROLES = ["own", "about", "all"];
12361
12690
  var SOCIAL_READ_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
12362
12691
 
12692
+ // src/entity-node-fields.ts
12693
+ var ENTITY_NODE_KINDS = ["character", "object", "creature", "location"];
12694
+ var ENTITY_DB_ID_FIELD = {
12695
+ character: "characterDbId",
12696
+ object: "objectDbId",
12697
+ creature: "creatureDbId",
12698
+ location: "locationDbId"
12699
+ };
12700
+ var ENTITY_NAME_FIELD = {
12701
+ character: "characterName",
12702
+ object: "objectName",
12703
+ creature: "creatureName",
12704
+ location: "locationName"
12705
+ };
12706
+ var ENTITY_TABLE = {
12707
+ character: "characters",
12708
+ object: "objects",
12709
+ creature: "creatures",
12710
+ location: "locations"
12711
+ };
12712
+ var ENTITY_BUCKET_FIELDS = {
12713
+ character: [
12714
+ ["expressions", "expressions"],
12715
+ ["poses", "poses"],
12716
+ ["motions", "motions"],
12717
+ ["angles", "angles"],
12718
+ ["body_angles", "bodyAngles"],
12719
+ ["lighting_variations", "lightingVariations"],
12720
+ ["outfit_variations", "outfitVariations"],
12721
+ ["detail_closeups", "detailCloseups"],
12722
+ ["sheets", "sheets"]
12723
+ ],
12724
+ object: [
12725
+ ["angles", "angles"],
12726
+ ["materials", "materials"],
12727
+ ["variations", "variations"],
12728
+ ["motion_clips", "motionClips"],
12729
+ ["detail_closeups", "detailCloseups"],
12730
+ ["sheets", "sheets"]
12731
+ ],
12732
+ creature: [
12733
+ ["angles", "angles"],
12734
+ ["poses", "poses"],
12735
+ ["variations", "variations"],
12736
+ ["motion_clips", "motionClips"],
12737
+ ["detail_closeups", "detailCloseups"],
12738
+ ["sheets", "sheets"]
12739
+ ],
12740
+ location: [
12741
+ ["time_of_day", "timeOfDay"],
12742
+ ["weather", "weather"],
12743
+ ["angles", "angles"],
12744
+ ["lighting", "lighting"],
12745
+ ["seasons", "seasons"],
12746
+ ["atmosphere_motions", "atmosphereMotions"],
12747
+ ["detail_closeups", "detailCloseups"],
12748
+ ["sheets", "sheets"]
12749
+ ]
12750
+ };
12751
+ var ENTITY_SCALAR_FIELDS = [
12752
+ ["name", "__name"],
12753
+ // routed to the kind's own name field by the caller
12754
+ ["description", "description"],
12755
+ ["canonical_description", "canonicalDescription"],
12756
+ ["source_image_url", "sourceImageUrl"]
12757
+ ];
12758
+ var ENTITY_KIND_SCALAR_FIELDS = {
12759
+ character: [],
12760
+ object: [["style_lock", "styleLock"]],
12761
+ creature: [["style_lock", "styleLock"]],
12762
+ location: [["style_lock", "styleLock"]]
12763
+ };
12764
+ function entityHydrationColumns(kind) {
12765
+ return [
12766
+ "id",
12767
+ ...entityScalarFields(kind).map(([column]) => column),
12768
+ ...ENTITY_BUCKET_FIELDS[kind].map(([column]) => column)
12769
+ ];
12770
+ }
12771
+ function entityScalarFields(kind) {
12772
+ return [...ENTITY_SCALAR_FIELDS, ...ENTITY_KIND_SCALAR_FIELDS[kind]];
12773
+ }
12774
+
12775
+ // src/lone-media-url.ts
12776
+ var IMAGE_FILE_RE = /\.(png|jpe?g|gif|webp)$/i;
12777
+ var VIDEO_FILE_RE = /\.(mp4|mov|webm|m4v)$/i;
12778
+ function loneMediaUrlKind(value) {
12779
+ const s = value.trim();
12780
+ if (s.length === 0 || /[\s,]/.test(s) || !/^https?:\/\//i.test(s)) return null;
12781
+ let pathname;
12782
+ try {
12783
+ pathname = new URL(s).pathname;
12784
+ } catch {
12785
+ return null;
12786
+ }
12787
+ if (IMAGE_FILE_RE.test(pathname)) return "image";
12788
+ if (VIDEO_FILE_RE.test(pathname)) return "video";
12789
+ return null;
12790
+ }
12791
+ var MESSAGE_TRIGGER_TYPES = /* @__PURE__ */ new Set(["telegram-trigger", "telegram-account-trigger"]);
12792
+ function isLoneMediaLinkSource(nodeType) {
12793
+ if (!nodeType) return false;
12794
+ if (IMAGE_PRODUCER_TYPES.has(nodeType) || VIDEO_PRODUCER_TYPES.has(nodeType) || AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
12795
+ if (DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
12796
+ if (ENTITY_NODE_KINDS.includes(nodeType) || nodeType === "face") return false;
12797
+ return true;
12798
+ }
12799
+
12363
12800
  // src/collections.ts
12364
12801
  var COLLECTION_NAME_MAX = 80;
12365
12802
  var COLLECTION_DESCRIPTION_MAX = 500;
@@ -12387,6 +12824,11 @@ var COLLECTION_TIER_CAPS = {
12387
12824
  function collectionCapsForTier(tier) {
12388
12825
  return tier ? COLLECTION_TIER_CAPS[tier] : void 0;
12389
12826
  }
12827
+ var COLLECTION_USAGES = ["all", "unused", "used"];
12828
+ var COLLECTION_RECORD_STATUSES = ["active", "trash"];
12829
+ var COLLECTION_BULK_MAX = 100;
12830
+ var COLLECTION_BULK_ACTIONS = ["trash", "restore", "delete"];
12831
+ var COLLECTION_RECORDS_OFFSET_MAX = 1e6;
12390
12832
  var COLLECTION_DIGEST_SEPARATOR = "\n\n---\n\n";
12391
12833
  var COLLECTION_READ_WINDOW_HOURS_MAX = 720;
12392
12834
  var COLLECTION_READ_LIMIT_MAX = 200;
@@ -12546,8 +12988,14 @@ function mediaFromItem(item) {
12546
12988
  for (const key of IMAGE_KEYS) if (isHttpUrl(item[key]) && !push({ type: "image", url: item[key] })) break;
12547
12989
  for (const key of VIDEO_KEYS) if (isHttpUrl(item[key]) && !push({ type: "video", url: item[key] })) break;
12548
12990
  for (const key of AUDIO_KEYS) if (isHttpUrl(item[key]) && !push({ type: "audio", url: item[key] })) break;
12991
+ if (isHttpUrl(item.mediaUrl)) push({ type: mediaKindOf(item.mediaKind, item.mediaUrl), url: item.mediaUrl });
12549
12992
  return out;
12550
12993
  }
12994
+ function mediaKindOf(kind, url) {
12995
+ if (kind === "photo" || kind === "image") return "image";
12996
+ if (kind === "video" || kind === "audio") return kind;
12997
+ return loneMediaUrlKind(url) ?? "link";
12998
+ }
12551
12999
  function ingestRecordFromJson(item) {
12552
13000
  if (!isRecord2(item)) {
12553
13001
  const text2 = typeof item === "string" ? item : item === void 0 || item === null ? "" : JSON.stringify(item);
@@ -14250,7 +14698,6 @@ function transcribeWordTimestampsRefusal(provider) {
14250
14698
  }
14251
14699
  var TRANSCRIBE_JSON_OUT = "json";
14252
14700
  var TRANSCRIPT_IN = "transcript";
14253
- var RENDER_JSON_OUT = "json";
14254
14701
  function findWordlessTranscriptFeeds(nodes, edges) {
14255
14702
  const byId = new Map(nodes.map((n) => [n.id, n]));
14256
14703
  const isSkipped = (n) => !n || n.data?.skipped === true;
@@ -14275,9 +14722,12 @@ function findWordlessTranscriptFeeds(nodes, edges) {
14275
14722
  provider,
14276
14723
  message: `Captions need word timings, but ${refusal}.`
14277
14724
  });
14278
- } else if (rendersTranscriptJson(target.type) && !seen.has(target.id)) {
14279
- seen.add(target.id);
14280
- frontier.push({ id: target.id, outHandle: RENDER_JSON_OUT });
14725
+ } else if (!seen.has(target.id)) {
14726
+ const remapped = renderTranscriptOutputOf(target.type);
14727
+ if (remapped) {
14728
+ seen.add(target.id);
14729
+ frontier.push({ id: target.id, outHandle: remapped.handle });
14730
+ }
14281
14731
  }
14282
14732
  }
14283
14733
  }
@@ -14466,6 +14916,9 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
14466
14916
  "__pickedTotal",
14467
14917
  "__restTotal",
14468
14918
  "generatedJson",
14919
+ // A render's remapped transcript on its own pip (Speaker View's
14920
+ // `transcript`, RENDER_NODE_TYPES transcriptOutput) — run-result data.
14921
+ "generatedTranscript",
14469
14922
  // Edit Plan: a person's review of the plan (`EditedEdl`, edit-plan-review.ts),
14470
14923
  // kept beside `generatedJson` and fingerprinted against it. Run-result data
14471
14924
  // (TA14, decided 2026-10-04): out of undo, presets, templates and exports,
@@ -15593,14 +16046,19 @@ var PIPELINE_PINNABLE_VIDEO_MODELS = [
15593
16046
  "bytedance-pro"
15594
16047
  ];
15595
16048
  var PIPELINE_PINNABLE_SCRIPT_LLMS = [
15596
- "claude-haiku-4-5",
16049
+ "claude-haiku-5-5",
15597
16050
  "claude-sonnet-4-6",
15598
16051
  "claude-opus-4-7",
15599
16052
  "claude-opus-5"
15600
16053
  ];
16054
+ var PIPELINE_LEGACY_PINNED_SCRIPT_LLMS = ["claude-haiku-4-5"];
16055
+ var PIPELINE_ACCEPTED_SCRIPT_LLMS = [
16056
+ ...PIPELINE_PINNABLE_SCRIPT_LLMS,
16057
+ ...PIPELINE_LEGACY_PINNED_SCRIPT_LLMS
16058
+ ];
15601
16059
  var ImageModelEnum = zod.z.enum(PIPELINE_ACCEPTED_IMAGE_MODELS);
15602
16060
  var VideoModelEnum = zod.z.enum(PIPELINE_PINNABLE_VIDEO_MODELS);
15603
- var ScriptLlmEnum = zod.z.enum(PIPELINE_PINNABLE_SCRIPT_LLMS);
16061
+ var ScriptLlmEnum = zod.z.enum(PIPELINE_ACCEPTED_SCRIPT_LLMS);
15604
16062
  var StageModelsSchema = zod.z.object({
15605
16063
  characters_image: ImageModelEnum.optional(),
15606
16064
  locations_image: ImageModelEnum.optional(),
@@ -17201,114 +17659,6 @@ function clipNotesFrom(meta, single) {
17201
17659
  }));
17202
17660
  }
17203
17661
 
17204
- // src/entity-node-fields.ts
17205
- var ENTITY_NODE_KINDS = ["character", "object", "creature", "location"];
17206
- var ENTITY_DB_ID_FIELD = {
17207
- character: "characterDbId",
17208
- object: "objectDbId",
17209
- creature: "creatureDbId",
17210
- location: "locationDbId"
17211
- };
17212
- var ENTITY_NAME_FIELD = {
17213
- character: "characterName",
17214
- object: "objectName",
17215
- creature: "creatureName",
17216
- location: "locationName"
17217
- };
17218
- var ENTITY_TABLE = {
17219
- character: "characters",
17220
- object: "objects",
17221
- creature: "creatures",
17222
- location: "locations"
17223
- };
17224
- var ENTITY_BUCKET_FIELDS = {
17225
- character: [
17226
- ["expressions", "expressions"],
17227
- ["poses", "poses"],
17228
- ["motions", "motions"],
17229
- ["angles", "angles"],
17230
- ["body_angles", "bodyAngles"],
17231
- ["lighting_variations", "lightingVariations"],
17232
- ["outfit_variations", "outfitVariations"],
17233
- ["detail_closeups", "detailCloseups"],
17234
- ["sheets", "sheets"]
17235
- ],
17236
- object: [
17237
- ["angles", "angles"],
17238
- ["materials", "materials"],
17239
- ["variations", "variations"],
17240
- ["motion_clips", "motionClips"],
17241
- ["detail_closeups", "detailCloseups"],
17242
- ["sheets", "sheets"]
17243
- ],
17244
- creature: [
17245
- ["angles", "angles"],
17246
- ["poses", "poses"],
17247
- ["variations", "variations"],
17248
- ["motion_clips", "motionClips"],
17249
- ["detail_closeups", "detailCloseups"],
17250
- ["sheets", "sheets"]
17251
- ],
17252
- location: [
17253
- ["time_of_day", "timeOfDay"],
17254
- ["weather", "weather"],
17255
- ["angles", "angles"],
17256
- ["lighting", "lighting"],
17257
- ["seasons", "seasons"],
17258
- ["atmosphere_motions", "atmosphereMotions"],
17259
- ["detail_closeups", "detailCloseups"],
17260
- ["sheets", "sheets"]
17261
- ]
17262
- };
17263
- var ENTITY_SCALAR_FIELDS = [
17264
- ["name", "__name"],
17265
- // routed to the kind's own name field by the caller
17266
- ["description", "description"],
17267
- ["canonical_description", "canonicalDescription"],
17268
- ["source_image_url", "sourceImageUrl"]
17269
- ];
17270
- var ENTITY_KIND_SCALAR_FIELDS = {
17271
- character: [],
17272
- object: [["style_lock", "styleLock"]],
17273
- creature: [["style_lock", "styleLock"]],
17274
- location: [["style_lock", "styleLock"]]
17275
- };
17276
- function entityHydrationColumns(kind) {
17277
- return [
17278
- "id",
17279
- ...entityScalarFields(kind).map(([column]) => column),
17280
- ...ENTITY_BUCKET_FIELDS[kind].map(([column]) => column)
17281
- ];
17282
- }
17283
- function entityScalarFields(kind) {
17284
- return [...ENTITY_SCALAR_FIELDS, ...ENTITY_KIND_SCALAR_FIELDS[kind]];
17285
- }
17286
-
17287
- // src/lone-media-url.ts
17288
- var IMAGE_FILE_RE = /\.(png|jpe?g|gif|webp)$/i;
17289
- var VIDEO_FILE_RE = /\.(mp4|mov|webm|m4v)$/i;
17290
- function loneMediaUrlKind(value) {
17291
- const s = value.trim();
17292
- if (s.length === 0 || /[\s,]/.test(s) || !/^https?:\/\//i.test(s)) return null;
17293
- let pathname;
17294
- try {
17295
- pathname = new URL(s).pathname;
17296
- } catch {
17297
- return null;
17298
- }
17299
- if (IMAGE_FILE_RE.test(pathname)) return "image";
17300
- if (VIDEO_FILE_RE.test(pathname)) return "video";
17301
- return null;
17302
- }
17303
- var MESSAGE_TRIGGER_TYPES = /* @__PURE__ */ new Set(["telegram-trigger", "telegram-account-trigger"]);
17304
- function isLoneMediaLinkSource(nodeType) {
17305
- if (!nodeType) return false;
17306
- if (IMAGE_PRODUCER_TYPES.has(nodeType) || VIDEO_PRODUCER_TYPES.has(nodeType) || AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
17307
- if (DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
17308
- if (ENTITY_NODE_KINDS.includes(nodeType) || nodeType === "face") return false;
17309
- return true;
17310
- }
17311
-
17312
17662
  // src/suno-track-sources.ts
17313
17663
  var SUNO_TRACK_SOURCE_TYPES = /* @__PURE__ */ new Set([
17314
17664
  "suno-generate",
@@ -17427,6 +17777,15 @@ var MODEL_PARAM_NODE_TYPES = /* @__PURE__ */ new Set([
17427
17777
  "modify-image",
17428
17778
  "edit-image"
17429
17779
  ]);
17780
+ var SOURCE_IMAGE_NODE_TYPES = /* @__PURE__ */ new Set([
17781
+ "image-to-image",
17782
+ "modify-image",
17783
+ "edit-image"
17784
+ ]);
17785
+ var AUTO_ASPECT_AT_RUN_NODE_TYPES = /* @__PURE__ */ new Set([
17786
+ ...SOURCE_IMAGE_NODE_TYPES,
17787
+ "generate-image"
17788
+ ]);
17430
17789
  function normalizeNodeModelParams(nodes) {
17431
17790
  const adjustments = [];
17432
17791
  const out = nodes.map((node) => {
@@ -17439,12 +17798,14 @@ function normalizeNodeModelParams(nodes) {
17439
17798
  if (multi.length > 1) return node;
17440
17799
  const provider = typeof d.provider === "string" ? d.provider : typeof multi[0] === "string" ? multi[0] : void 0;
17441
17800
  if (!provider) return node;
17801
+ const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : autoAspectNeedsSourceImage(provider, d.aspectRatio));
17442
17802
  const normalized = normalizeModelInput(provider, {
17443
- aspectRatio: typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
17803
+ aspectRatio: !deferAuto && typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
17444
17804
  resolution: typeof d.resolution === "string" ? d.resolution : void 0,
17445
17805
  quality: typeof d.quality === "string" ? d.quality : void 0
17446
17806
  });
17447
- if (normalized.adjustments.length === 0) return node;
17807
+ const respell = deferAuto && d.aspectRatio !== "auto";
17808
+ if (normalized.adjustments.length === 0 && !respell) return node;
17448
17809
  const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
17449
17810
  for (const adj of normalized.adjustments) {
17450
17811
  adjustments.push({ ...adj, nodeId, provider });
@@ -17453,7 +17814,7 @@ function normalizeNodeModelParams(nodes) {
17453
17814
  ...node,
17454
17815
  data: {
17455
17816
  ...d,
17456
- aspectRatio: normalized.aspectRatio,
17817
+ aspectRatio: deferAuto ? "auto" : normalized.aspectRatio,
17457
17818
  resolution: normalized.resolution,
17458
17819
  quality: normalized.quality
17459
17820
  }
@@ -18136,6 +18497,7 @@ var ENUM_TARGETS = [
18136
18497
  [TEXT_TO_VIDEO_PROVIDERS, "generate-video"],
18137
18498
  [UPSCALE_IMAGE_PROVIDERS, "upscale-image"],
18138
18499
  [VIDEO_UPSCALE_PROVIDERS, "video-upscale"],
18500
+ [VIDEO_DEPTH_PROVIDERS, "video-depth"],
18139
18501
  [MODIFY_IMAGE_PROVIDERS, "modify-image"],
18140
18502
  [IMAGE_EDIT_PROVIDERS, "modify-image"],
18141
18503
  [VIDEO_TO_VIDEO_PROVIDERS, "video-to-video"],
@@ -18861,6 +19223,83 @@ function videoOverlayCompositionKey(c) {
18861
19223
  return JSON.stringify(canonicalValue(parts));
18862
19224
  }
18863
19225
 
19226
+ // src/video-mask.ts
19227
+ var VIDEO_MASK_PROVIDERS = ["sam-3.1", "sam-3"];
19228
+ var DEFAULT_VIDEO_MASK_PROVIDER = "sam-3.1";
19229
+ var VIDEO_MASK_DEFAULTS = {
19230
+ threshold: 0.5,
19231
+ provider: "sam-3.1"
19232
+ };
19233
+ var VIDEO_MASK_LIMITS = {
19234
+ /** The longest input clip a run accepts, in seconds of PRICED length (see `videoMaskBilledSeconds`). */
19235
+ MAX_BILLED_SEC: 300,
19236
+ /** Frame rate the price rows assume. A faster clip is priced proportionally longer. */
19237
+ FPS_BASIS: 30,
19238
+ /** Subject description length cap. */
19239
+ PROMPT_MAX_LENGTH: 500,
19240
+ /** Detection confidence bounds (the model's own range, narrowed to useful values). */
19241
+ THRESHOLD_MIN: 0.05,
19242
+ THRESHOLD_MAX: 0.95,
19243
+ THRESHOLD_STEP: 0.05,
19244
+ /** Default detection confidence. Lower finds more (and less precise) regions. */
19245
+ THRESHOLD_DEFAULT: VIDEO_MASK_DEFAULTS.threshold
19246
+ };
19247
+ var VIDEO_MASK_BUCKETS_SEC = [5, 10, 15, 30, 60, 90, 120, 180, 240, 300];
19248
+ function videoMaskCreditIds(provider = DEFAULT_VIDEO_MASK_PROVIDER) {
19249
+ return VIDEO_MASK_BUCKETS_SEC.map((sec2) => `${provider}-video:${sec2}s`);
19250
+ }
19251
+ function videoMaskBilledSeconds(durationSec, fps) {
19252
+ const rate = typeof fps === "number" && Number.isFinite(fps) && fps > 0 ? fps : VIDEO_MASK_LIMITS.FPS_BASIS;
19253
+ return durationSec * Math.max(1, rate / VIDEO_MASK_LIMITS.FPS_BASIS);
19254
+ }
19255
+ function videoMaskCreditId(billedSec, provider = DEFAULT_VIDEO_MASK_PROVIDER) {
19256
+ const ids = videoMaskCreditIds(provider);
19257
+ if (typeof billedSec !== "number" || !Number.isFinite(billedSec) || billedSec <= 0) return ids[ids.length - 1];
19258
+ const i = VIDEO_MASK_BUCKETS_SEC.findIndex((b) => billedSec <= b);
19259
+ return ids[i === -1 ? ids.length - 1 : i];
19260
+ }
19261
+ function resolveVideoMaskProvider(value) {
19262
+ return VIDEO_MASK_PROVIDERS.includes(value) ? value : DEFAULT_VIDEO_MASK_PROVIDER;
19263
+ }
19264
+
19265
+ // src/mask-composite.ts
19266
+ var MASK_COMPOSITE_BACKGROUND_FITS = ["cover", "contain", "stretch"];
19267
+ var MASK_COMPOSITE_AUDIO_SOURCES = ["foreground", "background", "mix", "none"];
19268
+ var MASK_COMPOSITE_BOUNDS = {
19269
+ /** Edge softening, pixels of blur radius on the mask (0 = hard edge). */
19270
+ FEATHER_MIN: 0,
19271
+ FEATHER_MAX: 20,
19272
+ /** Grow (+) or shrink (−) the white region, pixels. */
19273
+ GROW_MIN: -10,
19274
+ GROW_MAX: 10,
19275
+ /** The longest foreground a run accepts, seconds. */
19276
+ MAX_DURATION_SEC: 300
19277
+ };
19278
+ var MASK_COMPOSITE_UNIT_SEC = 5;
19279
+ function maskCompositeUnits(durationSec) {
19280
+ const sec2 = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0 ? Math.min(durationSec, MASK_COMPOSITE_BOUNDS.MAX_DURATION_SEC) : MASK_COMPOSITE_BOUNDS.MAX_DURATION_SEC;
19281
+ return Math.max(1, Math.ceil(sec2 / MASK_COMPOSITE_UNIT_SEC - 1e-6));
19282
+ }
19283
+ var MASK_COMPOSITE_DEFAULTS = {
19284
+ invertMask: false,
19285
+ feather: 2,
19286
+ grow: 0,
19287
+ backgroundFit: "cover",
19288
+ audioSource: "foreground"
19289
+ };
19290
+ var clampInt2 = (v, min, max, fallback) => typeof v === "number" && Number.isFinite(v) ? Math.min(max, Math.max(min, Math.round(v))) : fallback;
19291
+ function resolveMaskCompositeSettings(data) {
19292
+ const d = MASK_COMPOSITE_DEFAULTS;
19293
+ const b = MASK_COMPOSITE_BOUNDS;
19294
+ return {
19295
+ invertMask: typeof data.invertMask === "boolean" ? data.invertMask : d.invertMask,
19296
+ feather: clampInt2(data.feather, b.FEATHER_MIN, b.FEATHER_MAX, d.feather),
19297
+ grow: clampInt2(data.grow, b.GROW_MIN, b.GROW_MAX, d.grow),
19298
+ backgroundFit: MASK_COMPOSITE_BACKGROUND_FITS.includes(data.backgroundFit) ? data.backgroundFit : d.backgroundFit,
19299
+ audioSource: MASK_COMPOSITE_AUDIO_SOURCES.includes(data.audioSource) ? data.audioSource : d.audioSource
19300
+ };
19301
+ }
19302
+
18864
19303
  // src/entity-image-handle.ts
18865
19304
  var ENTITY_IMAGE_HANDLE_TYPES = /* @__PURE__ */ new Set([
18866
19305
  "character",
@@ -22524,6 +22963,8 @@ function speakerPresentationWarnings(edl) {
22524
22963
  var EDL_VERSION = 1;
22525
22964
  var EDL_SOURCE_ROLES = ["master-audio", "camera", "wide", "screen"];
22526
22965
  var KNOWN_SOURCE_ROLES = new Set(EDL_SOURCE_ROLES);
22966
+ var FOLLOW_MOTIONS = ["static", "glide"];
22967
+ var KNOWN_FOLLOW_MOTIONS = new Set(FOLLOW_MOTIONS);
22527
22968
  function transcriptDurationSec(transcript) {
22528
22969
  if (!transcript || typeof transcript !== "object") return void 0;
22529
22970
  const t2 = transcript;
@@ -22650,6 +23091,7 @@ function validateEdl(edl) {
22650
23091
  }
22651
23092
  if (slot.weight !== void 0 && !inRange(slot.weight)) issues.push(`${at}: slot.weight=${slot.weight} out of 0..1`);
22652
23093
  if (slot.region) issues.push(...regionIssues(slot.region, `${at} slot "${slot.source}"`));
23094
+ if (slot.follow) issues.push(...followIssues(slot.follow, slot.source, `${at} slot "${slot.source}"`));
22653
23095
  }
22654
23096
  });
22655
23097
  for (const d of edl.dropped ?? []) {
@@ -22704,6 +23146,11 @@ function outputMsToMasterMs(edl, outputMs) {
22704
23146
  function remapTranscriptThroughEdl(edl, transcript) {
22705
23147
  const off = offsetFor(edl, transcript.sourceId);
22706
23148
  const starts = segmentOutputStarts(edl);
23149
+ const touches = (j) => {
23150
+ const a = edl.segments[j];
23151
+ const b = edl.segments[j + 1];
23152
+ return b.inMs === a.outMs && starts[j + 1] === starts[j] + Math.max(0, a.outMs - a.inMs);
23153
+ };
22707
23154
  const mapWord = (w) => {
22708
23155
  const startMaster = w.startMs + off;
22709
23156
  const endMaster = w.endMs + off;
@@ -22720,8 +23167,11 @@ function remapTranscriptThroughEdl(edl, transcript) {
22720
23167
  for (let i = 0; i < edl.segments.length; i++) {
22721
23168
  const seg = edl.segments[i];
22722
23169
  const lo = Math.max(startMaster, seg.inMs);
22723
- const hi = Math.min(endMaster, seg.outMs);
23170
+ let hi = Math.min(endMaster, seg.outMs);
22724
23171
  if (lo < hi) {
23172
+ for (let j = i; hi < endMaster && j + 1 < edl.segments.length && touches(j); j++) {
23173
+ hi = Math.min(endMaster, edl.segments[j + 1].outMs);
23174
+ }
22725
23175
  return {
22726
23176
  ...w,
22727
23177
  startMs: Math.round(starts[i] + (lo - seg.inMs)),
@@ -22835,6 +23285,24 @@ function normalizeEdl(input) {
22835
23285
  ...meta ? { meta } : {}
22836
23286
  };
22837
23287
  }
23288
+ function followIssues(follow, slotSource, at) {
23289
+ const f = follow;
23290
+ const issues = [];
23291
+ if (f.sourceId !== slotSource) issues.push(`${at}: follow.sourceId ${JSON.stringify(f.sourceId)} is not the slot's source "${slotSource}"`);
23292
+ if (typeof f.trackId !== "string" || !f.trackId.trim()) issues.push(`${at}: follow.trackId is empty`);
23293
+ if (typeof f.motion !== "string" || !KNOWN_FOLLOW_MOTIONS.has(f.motion)) {
23294
+ issues.push(`${at}: follow.motion ${JSON.stringify(f.motion)} is not one of ${FOLLOW_MOTIONS.join(", ")}`);
23295
+ }
23296
+ return issues;
23297
+ }
23298
+ function normalizeFollow(input) {
23299
+ if (!input || typeof input !== "object") return void 0;
23300
+ const o = input;
23301
+ const sourceId = str3(o.sourceId);
23302
+ const trackId = str3(o.trackId);
23303
+ if (!sourceId || !trackId || typeof o.motion !== "string" || !KNOWN_FOLLOW_MOTIONS.has(o.motion)) return void 0;
23304
+ return { sourceId, trackId, motion: o.motion };
23305
+ }
22838
23306
  function normalizeLayout(input, dropTransition = false) {
22839
23307
  if (!input || typeof input !== "object") return void 0;
22840
23308
  const o = input;
@@ -22844,11 +23312,13 @@ function normalizeLayout(input, dropTransition = false) {
22844
23312
  const source = str3(s.source);
22845
23313
  if (!source) return null;
22846
23314
  const region = normalizeRegion(s.region);
23315
+ const follow = normalizeFollow(s.follow);
22847
23316
  return {
22848
23317
  source,
22849
23318
  ...region ? { region } : {},
22850
23319
  ...str3(s.speaker) ? { speaker: str3(s.speaker) } : {},
22851
- ...s.weight !== void 0 ? { weight: clamp012(num(s.weight)) } : {}
23320
+ ...s.weight !== void 0 ? { weight: clamp012(num(s.weight)) } : {},
23321
+ ...follow ? { follow } : {}
22852
23322
  };
22853
23323
  }).filter((x) => x !== null) : void 0;
22854
23324
  const emphasis = o.emphasis && typeof o.emphasis === "object" ? { style: str3(o.emphasis.style) ?? "none", durationMs: Math.round(num(o.emphasis.durationMs)) } : void 0;
@@ -22860,34 +23330,57 @@ function normalizeLayout(input, dropTransition = false) {
22860
23330
  ...transition ? { transition } : {}
22861
23331
  };
22862
23332
  }
23333
+ function timeMs(v) {
23334
+ const n = typeof v === "number" ? v : typeof v === "string" && v.trim() !== "" ? Number(v) : Number.NaN;
23335
+ return Number.isFinite(n) && n >= 0 ? Math.round(n) : void 0;
23336
+ }
23337
+ function spanMs(o) {
23338
+ const startMs = timeMs(o.startMs ?? o.start);
23339
+ const endMs = timeMs(o.endMs ?? o.end);
23340
+ if (startMs === void 0 || endMs === void 0 || endMs < startMs) return void 0;
23341
+ return { startMs, endMs };
23342
+ }
22863
23343
  function normalizeTranscript(input) {
22864
23344
  const o = input && typeof input === "object" ? input : {};
22865
- const words = Array.isArray(o.words) ? o.words.map((raw) => {
22866
- const w = raw ?? {};
22867
- const startMs = Math.round(num(w.startMs));
22868
- return {
22869
- text: str3(w.text) ?? "",
22870
- startMs,
22871
- // Never inverted: an endMs < startMs (garbage upstream) would be
22872
- // silently dropped at remap; clamp it to a non-negative width.
22873
- endMs: Math.max(startMs, Math.round(num(w.endMs))),
22874
- ...str3(w.speaker) ? { speaker: str3(w.speaker) } : {},
22875
- ...typeof w.confidence === "number" ? { confidence: w.confidence } : {}
22876
- };
22877
- }) : [];
22878
- const segments = Array.isArray(o.segments) ? o.segments.map((raw) => {
22879
- const s = raw ?? {};
22880
- const startMs = Math.round(num(s.startMs));
22881
- return { startMs, endMs: Math.max(startMs, Math.round(num(s.endMs))), text: str3(s.text) ?? "", ...str3(s.speaker) ? { speaker: str3(s.speaker) } : {} };
23345
+ const words = [];
23346
+ if (Array.isArray(o.words)) {
23347
+ for (const raw of o.words) {
23348
+ if (!raw || typeof raw !== "object") continue;
23349
+ const w = raw;
23350
+ const span = spanMs(w);
23351
+ if (!span) continue;
23352
+ words.push({
23353
+ text: str3(w.text) ?? "",
23354
+ ...span,
23355
+ ...str3(w.speaker) ? { speaker: str3(w.speaker) } : {},
23356
+ ...typeof w.confidence === "number" ? { confidence: w.confidence } : {}
23357
+ });
23358
+ }
23359
+ words.sort((a, b) => a.startMs - b.startMs);
23360
+ }
23361
+ const segments = Array.isArray(o.segments) ? o.segments.flatMap((raw) => {
23362
+ if (!raw || typeof raw !== "object") return [];
23363
+ const s = raw;
23364
+ const span = spanMs(s);
23365
+ return span ? [{ ...span, text: str3(s.text) ?? "", ...str3(s.speaker) ? { speaker: str3(s.speaker) } : {} }] : [];
22882
23366
  }) : void 0;
23367
+ const speakerNames = speakerNamesOf(o.speakerNames);
22883
23368
  return {
22884
23369
  version: EDL_VERSION,
22885
23370
  ...str3(o.sourceId) ? { sourceId: str3(o.sourceId) } : {},
22886
23371
  ...str3(o.language) ? { language: str3(o.language) } : {},
22887
23372
  words,
22888
- ...segments ? { segments } : {}
23373
+ ...segments ? { segments } : {},
23374
+ ...speakerNames ? { speakerNames } : {}
22889
23375
  };
22890
23376
  }
23377
+ function speakerNamesOf(v) {
23378
+ if (!v || typeof v !== "object" || Array.isArray(v)) return void 0;
23379
+ const entries = Object.entries(v).filter(
23380
+ (e) => e[0].length > 0 && typeof e[1] === "string" && e[1].length > 0
23381
+ );
23382
+ return entries.length > 0 ? Object.fromEntries(entries) : void 0;
23383
+ }
22891
23384
 
22892
23385
  // src/speaker-tracks.ts
22893
23386
  var SPEAKER_TRACKS_VERSION = 1;
@@ -23255,12 +23748,11 @@ var parseMaybe = (raw) => {
23255
23748
  }
23256
23749
  };
23257
23750
  function transcriptSpeakerLabels(transcript) {
23258
- const words = parseMaybe(transcript)?.words;
23259
- if (!Array.isArray(words)) return [];
23751
+ const parsed = parseMaybe(transcript);
23752
+ if (!parsed || typeof parsed !== "object") return [];
23260
23753
  const seen = /* @__PURE__ */ new Set();
23261
- for (const w of words) {
23262
- const s = w?.speaker;
23263
- if (typeof s === "string" && s && !seen.has(s)) seen.add(s);
23754
+ for (const w of normalizeTranscript(parsed).words) {
23755
+ if (w.speaker && !seen.has(w.speaker)) seen.add(w.speaker);
23264
23756
  }
23265
23757
  return [...seen];
23266
23758
  }
@@ -24176,6 +24668,7 @@ exports.AUDIO_FX_PRESET_SET = AUDIO_FX_PRESET_SET;
24176
24668
  exports.AUDIO_FX_REVERB_PRESETS = AUDIO_FX_REVERB_PRESETS;
24177
24669
  exports.AUDIO_PRODUCER_TYPES = AUDIO_PRODUCER_TYPES;
24178
24670
  exports.AUDIO_SYNC_MIN_CONFIDENCE = AUDIO_SYNC_MIN_CONFIDENCE;
24671
+ exports.AUTO_ASPECT_AT_RUN_NODE_TYPES = AUTO_ASPECT_AT_RUN_NODE_TYPES;
24179
24672
  exports.AUTO_DOWNLOAD_MAX_SEC = AUTO_DOWNLOAD_MAX_SEC;
24180
24673
  exports.AddBRollResultSchema = AddBRollResultSchema;
24181
24674
  exports.AnchorSceneStyleResultSchema = AnchorSceneStyleResultSchema;
@@ -24234,6 +24727,8 @@ exports.CINEMATIC_RESERVE_IDS = CINEMATIC_RESERVE_IDS;
24234
24727
  exports.COLLABORATOR_ROLES = COLLABORATOR_ROLES;
24235
24728
  exports.COLLECTIONS_PAGE_DEFAULT = COLLECTIONS_PAGE_DEFAULT;
24236
24729
  exports.COLLECTIONS_PAGE_MAX = COLLECTIONS_PAGE_MAX;
24730
+ exports.COLLECTION_BULK_ACTIONS = COLLECTION_BULK_ACTIONS;
24731
+ exports.COLLECTION_BULK_MAX = COLLECTION_BULK_MAX;
24237
24732
  exports.COLLECTION_DEDUPE_KEY_MAX = COLLECTION_DEDUPE_KEY_MAX;
24238
24733
  exports.COLLECTION_DESCRIPTION_MAX = COLLECTION_DESCRIPTION_MAX;
24239
24734
  exports.COLLECTION_DIGEST_SEPARATOR = COLLECTION_DIGEST_SEPARATOR;
@@ -24244,13 +24739,16 @@ exports.COLLECTION_MEDIA_TYPES = COLLECTION_MEDIA_TYPES;
24244
24739
  exports.COLLECTION_NAME_MAX = COLLECTION_NAME_MAX;
24245
24740
  exports.COLLECTION_READ_LIMIT_MAX = COLLECTION_READ_LIMIT_MAX;
24246
24741
  exports.COLLECTION_READ_WINDOW_HOURS_MAX = COLLECTION_READ_WINDOW_HOURS_MAX;
24742
+ exports.COLLECTION_RECORDS_OFFSET_MAX = COLLECTION_RECORDS_OFFSET_MAX;
24247
24743
  exports.COLLECTION_RECORD_FIELDS_BYTES_MAX = COLLECTION_RECORD_FIELDS_BYTES_MAX;
24248
24744
  exports.COLLECTION_RECORD_FIELDS_MAX = COLLECTION_RECORD_FIELDS_MAX;
24249
24745
  exports.COLLECTION_RECORD_MEDIA_MAX = COLLECTION_RECORD_MEDIA_MAX;
24746
+ exports.COLLECTION_RECORD_STATUSES = COLLECTION_RECORD_STATUSES;
24250
24747
  exports.COLLECTION_RECORD_TEXT_MAX = COLLECTION_RECORD_TEXT_MAX;
24251
24748
  exports.COLLECTION_RECORD_TITLE_MAX = COLLECTION_RECORD_TITLE_MAX;
24252
24749
  exports.COLLECTION_RECORD_URL_MAX = COLLECTION_RECORD_URL_MAX;
24253
24750
  exports.COLLECTION_TIER_CAPS = COLLECTION_TIER_CAPS;
24751
+ exports.COLLECTION_USAGES = COLLECTION_USAGES;
24254
24752
  exports.COLLECT_IN_HANDLE = COLLECT_IN_HANDLE;
24255
24753
  exports.COMBINE_TRANSITIONS = COMBINE_TRANSITIONS;
24256
24754
  exports.COMBINE_TRANSITION_GROUP_LABELS = COMBINE_TRANSITION_GROUP_LABELS;
@@ -24320,6 +24818,7 @@ exports.DEFAULT_VIDEO_ANALYSIS_MODEL = DEFAULT_VIDEO_ANALYSIS_MODEL;
24320
24818
  exports.DEFAULT_VIDEO_ANALYSIS_TIER = DEFAULT_VIDEO_ANALYSIS_TIER;
24321
24819
  exports.DEFAULT_VIDEO_CLIP_COST = DEFAULT_VIDEO_CLIP_COST;
24322
24820
  exports.DEFAULT_VIDEO_DURATION_SEC = DEFAULT_VIDEO_DURATION_SEC;
24821
+ exports.DEFAULT_VIDEO_MASK_PROVIDER = DEFAULT_VIDEO_MASK_PROVIDER;
24323
24822
  exports.DEFAULT_VIDEO_OVERLAY_LAYER = DEFAULT_VIDEO_OVERLAY_LAYER;
24324
24823
  exports.DEFAULT_VIDEO_PROVIDER = DEFAULT_VIDEO_PROVIDER;
24325
24824
  exports.DEFAULT_VOICE_CHANGER_MODEL = DEFAULT_VOICE_CHANGER_MODEL;
@@ -24367,6 +24866,7 @@ exports.EntityStaleEventSchema = EntityStaleEventSchema;
24367
24866
  exports.EntityStateChangeEventSchema = EntityStateChangeEventSchema;
24368
24867
  exports.FACE_SWAP_PROVIDERS = FACE_SWAP_PROVIDERS;
24369
24868
  exports.FAL_LIP_SYNC_PROVIDERS = FAL_LIP_SYNC_PROVIDERS;
24869
+ exports.FAL_VIDEO_DEPTH_PROVIDERS = FAL_VIDEO_DEPTH_PROVIDERS;
24370
24870
  exports.FAN_IN_TARGETS = FAN_IN_TARGETS;
24371
24871
  exports.FAN_OUT_ALL_OR_NOTHING_TYPES = FAN_OUT_ALL_OR_NOTHING_TYPES;
24372
24872
  exports.FAN_OUT_EACH_HANDLES = FAN_OUT_EACH_HANDLES;
@@ -24470,6 +24970,7 @@ exports.LIP_SYNC_MAX_AUDIO_SECONDS = LIP_SYNC_MAX_AUDIO_SECONDS;
24470
24970
  exports.LIP_SYNC_PROVIDERS = LIP_SYNC_PROVIDERS;
24471
24971
  exports.LLM_CREDIT_RUNGS = LLM_CREDIT_RUNGS;
24472
24972
  exports.LLM_FEATURE_DEFAULTS = LLM_FEATURE_DEFAULTS;
24973
+ exports.LLM_FEATURE_DEFAULT_EFFORTS = LLM_FEATURE_DEFAULT_EFFORTS;
24473
24974
  exports.LLM_MODALITY_CAPS = LLM_MODALITY_CAPS;
24474
24975
  exports.LLM_MODELS = LLM_MODELS;
24475
24976
  exports.LLM_MODEL_IDS = LLM_MODEL_IDS;
@@ -24497,6 +24998,11 @@ exports.LocationImageCriticVerdictSchema = LocationImageCriticVerdictSchema;
24497
24998
  exports.LocationMetadataSchema = LocationMetadataSchema;
24498
24999
  exports.LocationsCoverageCriticIssueSchema = LocationsCoverageCriticIssueSchema;
24499
25000
  exports.LocationsCoverageCriticVerdictSchema = LocationsCoverageCriticVerdictSchema;
25001
+ exports.MASK_COMPOSITE_AUDIO_SOURCES = MASK_COMPOSITE_AUDIO_SOURCES;
25002
+ exports.MASK_COMPOSITE_BACKGROUND_FITS = MASK_COMPOSITE_BACKGROUND_FITS;
25003
+ exports.MASK_COMPOSITE_BOUNDS = MASK_COMPOSITE_BOUNDS;
25004
+ exports.MASK_COMPOSITE_DEFAULTS = MASK_COMPOSITE_DEFAULTS;
25005
+ exports.MASK_COMPOSITE_UNIT_SEC = MASK_COMPOSITE_UNIT_SEC;
24500
25006
  exports.MATCH_CUT_BREAK_GATE = MATCH_CUT_BREAK_GATE;
24501
25007
  exports.MAX_CUSTOM_ENTRIES_PER_BOARD = MAX_CUSTOM_ENTRIES_PER_BOARD;
24502
25008
  exports.MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER = MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER;
@@ -24596,10 +25102,12 @@ exports.PAYG_RETENTION_DAYS = PAYG_RETENTION_DAYS;
24596
25102
  exports.PER_FORMAT_DURATION_BOUNDS = PER_FORMAT_DURATION_BOUNDS;
24597
25103
  exports.PICKER_TO_COMBINE_TRANSITION = PICKER_TO_COMBINE_TRANSITION;
24598
25104
  exports.PIPELINE_ACCEPTED_IMAGE_MODELS = PIPELINE_ACCEPTED_IMAGE_MODELS;
25105
+ exports.PIPELINE_ACCEPTED_SCRIPT_LLMS = PIPELINE_ACCEPTED_SCRIPT_LLMS;
24599
25106
  exports.PIPELINE_ACTIVATION_MODES = PIPELINE_ACTIVATION_MODES;
24600
25107
  exports.PIPELINE_FORMATS = PIPELINE_FORMATS;
24601
25108
  exports.PIPELINE_HARD_TIMEOUT_MS = PIPELINE_HARD_TIMEOUT_MS;
24602
25109
  exports.PIPELINE_LEGACY_PINNED_IMAGE_MODELS = PIPELINE_LEGACY_PINNED_IMAGE_MODELS;
25110
+ exports.PIPELINE_LEGACY_PINNED_SCRIPT_LLMS = PIPELINE_LEGACY_PINNED_SCRIPT_LLMS;
24603
25111
  exports.PIPELINE_MODEL_STAGES = PIPELINE_MODEL_STAGES;
24604
25112
  exports.PIPELINE_MODES = PIPELINE_MODES;
24605
25113
  exports.PIPELINE_OUTPUT_RESOLUTIONS = PIPELINE_OUTPUT_RESOLUTIONS;
@@ -24609,6 +25117,8 @@ exports.PIPELINE_PINNABLE_VIDEO_MODELS = PIPELINE_PINNABLE_VIDEO_MODELS;
24609
25117
  exports.PIPELINE_STAGE_NAMES = PIPELINE_STAGE_NAMES;
24610
25118
  exports.PIPELINE_STAGE_TIMEOUT_MS = PIPELINE_STAGE_TIMEOUT_MS;
24611
25119
  exports.PIPELINE_TYPES = PIPELINE_TYPES;
25120
+ exports.PITCH_TEMPO_LIMITS = PITCH_TEMPO_LIMITS;
25121
+ exports.PITCH_TEMPO_PRICING = PITCH_TEMPO_PRICING;
24612
25122
  exports.PLACEHOLDER_CHARACTER_NAME = PLACEHOLDER_CHARACTER_NAME;
24613
25123
  exports.PLATFORM_LABELS = PLATFORM_LABELS;
24614
25124
  exports.PLATFORM_SPECS = PLATFORM_SPECS;
@@ -24673,12 +25183,14 @@ exports.RENDERING_SPEED_SUPPORT = RENDERING_SPEED_SUPPORT;
24673
25183
  exports.RENDER_FINAL_CODES = RENDER_FINAL_CODES;
24674
25184
  exports.RENDER_FINAL_NODE_NOT_FOUND = RENDER_FINAL_NODE_NOT_FOUND;
24675
25185
  exports.RENDER_FINAL_NOT_A_RENDER = RENDER_FINAL_NOT_A_RENDER;
25186
+ exports.RENDER_JSON_HANDLE = RENDER_JSON_HANDLE;
24676
25187
  exports.RENDER_NODE_TYPES = RENDER_NODE_TYPES;
24677
25188
  exports.RENDER_NODE_TYPE_IDS = RENDER_NODE_TYPE_IDS;
24678
25189
  exports.RENDER_VIDEO_CREDIT_ID = RENDER_VIDEO_CREDIT_ID;
24679
25190
  exports.REPEATABLE_NODE_TYPES = REPEATABLE_NODE_TYPES;
24680
25191
  exports.REPEAT_PLACEHOLDER = REPEAT_PLACEHOLDER;
24681
25192
  exports.REPLICATE_LIP_SYNC_PROVIDERS = REPLICATE_LIP_SYNC_PROVIDERS;
25193
+ exports.REPLICATE_VIDEO_DEPTH_PROVIDERS = REPLICATE_VIDEO_DEPTH_PROVIDERS;
24682
25194
  exports.RESERVED_TEMPLATE_VARS = RESERVED_TEMPLATE_VARS;
24683
25195
  exports.RUN_CONTINUATION_CODES = RUN_CONTINUATION_CODES;
24684
25196
  exports.RUN_OVERRIDE_CLEARED_FIELDS = RUN_OVERRIDE_CLEARED_FIELDS;
@@ -24805,6 +25317,7 @@ exports.SOCIAL_SEARCH_PLATFORM_MODES = SOCIAL_SEARCH_PLATFORM_MODES;
24805
25317
  exports.SOCIAL_SEARCH_SORTS = SOCIAL_SEARCH_SORTS;
24806
25318
  exports.SOCIAL_SEARCH_VIDEO_KINDS = SOCIAL_SEARCH_VIDEO_KINDS;
24807
25319
  exports.SOCIAL_VIDEO_HOSTS = SOCIAL_VIDEO_HOSTS;
25320
+ exports.SOURCE_IMAGE_NODE_TYPES = SOURCE_IMAGE_NODE_TYPES;
24808
25321
  exports.SPEAKER_EMPHASIS_STYLES = SPEAKER_EMPHASIS_STYLES;
24809
25322
  exports.SPEAKER_LAYOUTS = SPEAKER_LAYOUTS;
24810
25323
  exports.SPEAKER_LAYOUT_IDS = SPEAKER_LAYOUT_IDS;
@@ -24814,6 +25327,8 @@ exports.SPEAKER_TRACKS_MAX_BOXES_PER_SOURCE = SPEAKER_TRACKS_MAX_BOXES_PER_SOURC
24814
25327
  exports.SPEAKER_TRACKS_MAX_BYTES = SPEAKER_TRACKS_MAX_BYTES;
24815
25328
  exports.SPEAKER_TRACKS_VERSION = SPEAKER_TRACKS_VERSION;
24816
25329
  exports.SPEAKER_TRACK_ATTRIBUTION_METHODS = SPEAKER_TRACK_ATTRIBUTION_METHODS;
25330
+ exports.SPEAKER_VIEW_CREDIT_IDS = SPEAKER_VIEW_CREDIT_IDS;
25331
+ exports.SPEAKER_VIEW_PRICE_TIERS = SPEAKER_VIEW_PRICE_TIERS;
24817
25332
  exports.SPEECH_FLOOR_UNITS = SPEECH_FLOOR_UNITS;
24818
25333
  exports.SPEECH_PRICE_UNIT_CHARS = SPEECH_PRICE_UNIT_CHARS;
24819
25334
  exports.SPEECH_UNIT_CREDIT_SUFFIX = SPEECH_UNIT_CREDIT_SUFFIX;
@@ -24958,6 +25473,12 @@ exports.VIDEO_CRITIC_MAX_RETRIES = VIDEO_CRITIC_MAX_RETRIES;
24958
25473
  exports.VIDEO_CRITIC_METADATA_KEYS = VIDEO_CRITIC_METADATA_KEYS;
24959
25474
  exports.VIDEO_CRITIC_MIN_ADHERENCE_SCORE = VIDEO_CRITIC_MIN_ADHERENCE_SCORE;
24960
25475
  exports.VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT = VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT;
25476
+ exports.VIDEO_DEPTH_BUCKETS = VIDEO_DEPTH_BUCKETS;
25477
+ exports.VIDEO_DEPTH_COLORMAPS = VIDEO_DEPTH_COLORMAPS;
25478
+ exports.VIDEO_DEPTH_LIMITS = VIDEO_DEPTH_LIMITS;
25479
+ exports.VIDEO_DEPTH_MODEL_SIZES = VIDEO_DEPTH_MODEL_SIZES;
25480
+ exports.VIDEO_DEPTH_PROVIDERS = VIDEO_DEPTH_PROVIDERS;
25481
+ exports.VIDEO_DEPTH_RESOLUTIONS = VIDEO_DEPTH_RESOLUTIONS;
24961
25482
  exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
24962
25483
  exports.VIDEO_DURATION_TIERS = VIDEO_DURATION_TIERS;
24963
25484
  exports.VIDEO_GEN_COLLAPSED_T2V_IDS = VIDEO_GEN_COLLAPSED_T2V_IDS;
@@ -24966,6 +25487,9 @@ exports.VIDEO_INPUT_LIP_SYNC_PROVIDERS = VIDEO_INPUT_LIP_SYNC_PROVIDERS;
24966
25487
  exports.VIDEO_LINK_AUDIO_CONSUMER_TYPES = VIDEO_LINK_AUDIO_CONSUMER_TYPES;
24967
25488
  exports.VIDEO_LINK_DERIVED_FIELDS = VIDEO_LINK_DERIVED_FIELDS;
24968
25489
  exports.VIDEO_LINK_TOLERANT_CONSUMER_TYPES = VIDEO_LINK_TOLERANT_CONSUMER_TYPES;
25490
+ exports.VIDEO_MASK_DEFAULTS = VIDEO_MASK_DEFAULTS;
25491
+ exports.VIDEO_MASK_LIMITS = VIDEO_MASK_LIMITS;
25492
+ exports.VIDEO_MASK_PROVIDERS = VIDEO_MASK_PROVIDERS;
24969
25493
  exports.VIDEO_MODEL_CAPS = VIDEO_MODEL_CAPS;
24970
25494
  exports.VIDEO_MODE_ALIASES = VIDEO_MODE_ALIASES;
24971
25495
  exports.VIDEO_ONLY_PARAMETER_NODE_TYPES = VIDEO_ONLY_PARAMETER_NODE_TYPES;
@@ -25050,6 +25574,7 @@ exports.aspectRatioToNumber = aspectRatioToNumber;
25050
25574
  exports.assembleNarratedVideoCredits = assembleNarratedVideoCredits;
25051
25575
  exports.assembleVideoOverlayRequest = assembleVideoOverlayRequest;
25052
25576
  exports.assertCanvasExecutionAllowed = assertCanvasExecutionAllowed;
25577
+ exports.autoAspectNeedsSourceImage = autoAspectNeedsSourceImage;
25053
25578
  exports.autoStrokeWidth = autoStrokeWidth;
25054
25579
  exports.availableReasoningEfforts = availableReasoningEfforts;
25055
25580
  exports.bucketSecondsFromAuditCreditId = bucketSecondsFromAuditCreditId;
@@ -25105,6 +25630,7 @@ exports.characterMentionableAssetArrays = characterMentionableAssetArrays;
25105
25630
  exports.characterSheetRefItems = characterSheetRefItems;
25106
25631
  exports.characterVariantAssetArrays = characterVariantAssetArrays;
25107
25632
  exports.checkRefVideoDurations = checkRefVideoDurations;
25633
+ exports.checkVideoDepthLength = checkVideoDepthLength;
25108
25634
  exports.cinematicCreditId = cinematicCreditId;
25109
25635
  exports.clampCameraSwitchSetting = clampCameraSwitchSetting;
25110
25636
  exports.clampChars = clampChars;
@@ -25152,6 +25678,7 @@ exports.decodeProviderItem = decodeProviderItem;
25152
25678
  exports.defaultCarriedFraction = defaultCarriedFraction;
25153
25679
  exports.defaultEdgeOutputMode = defaultEdgeOutputMode;
25154
25680
  exports.defaultImageModel = defaultImageModel;
25681
+ exports.defaultReasoningEffort = defaultReasoningEffort;
25155
25682
  exports.defaultResolutionFor = defaultResolutionFor;
25156
25683
  exports.defaultRoleForSource = defaultRoleForSource;
25157
25684
  exports.defaultSpeakerMap = defaultSpeakerMap;
@@ -25306,6 +25833,7 @@ exports.hexToRgbaArray = hexToRgbaArray;
25306
25833
  exports.holdsPreviewRender = holdsPreviewRender;
25307
25834
  exports.hostnameMatchesAllowlist = hostnameMatchesAllowlist;
25308
25835
  exports.humanizeSlotSid = humanizeSlotSid;
25836
+ exports.imageGenAutoAspectNeedsSourceImage = imageGenAutoAspectNeedsSourceImage;
25309
25837
  exports.imageMentionSlug = imageMentionSlug;
25310
25838
  exports.imageMentionSlugForRef = imageMentionSlugForRef;
25311
25839
  exports.imageModelDrawsRatio = imageModelDrawsRatio;
@@ -25323,6 +25851,7 @@ exports.instagramScrapeMode = instagramScrapeMode;
25323
25851
  exports.instagramScrapeSources = instagramScrapeSources;
25324
25852
  exports.instagramScrapeTier = instagramScrapeTier;
25325
25853
  exports.isAggregateableType = isAggregateableType;
25854
+ exports.isAutoAspectToken = isAutoAspectToken;
25326
25855
  exports.isAutoVideoDuration = isAutoVideoDuration;
25327
25856
  exports.isCharacterAspectRatio = isCharacterAspectRatio;
25328
25857
  exports.isCollectInEdge = isCollectInEdge;
@@ -25367,6 +25896,7 @@ exports.isPro3DRenderJobOutput = isPro3DRenderJobOutput;
25367
25896
  exports.isPro3DRenderQuote = isPro3DRenderQuote;
25368
25897
  exports.isPro3DRenderRenderOnly = isPro3DRenderRenderOnly;
25369
25898
  exports.isProjectedTriggerNodeType = isProjectedTriggerNodeType;
25899
+ exports.isRenderDataHandle = isRenderDataHandle;
25370
25900
  exports.isRenderNodeType = isRenderNodeType;
25371
25901
  exports.isRtlText = isRtlText;
25372
25902
  exports.isScene3DAuthoringEngine = isScene3DAuthoringEngine;
@@ -25427,6 +25957,7 @@ exports.ltxRetakeDurationSec = ltxRetakeDurationSec;
25427
25957
  exports.mapAspectRatio = mapAspectRatio;
25428
25958
  exports.mapQuality = mapQuality;
25429
25959
  exports.mapShotIntentToProviderDirectives = mapShotIntentToProviderDirectives;
25960
+ exports.maskCompositeUnits = maskCompositeUnits;
25430
25961
  exports.matchVariant = matchVariant;
25431
25962
  exports.matchesCron = matchesCron;
25432
25963
  exports.matchesCronField = matchesCronField;
@@ -25456,6 +25987,7 @@ exports.modelToNodeTarget = modelToNodeTarget;
25456
25987
  exports.modelsForInputMode = modelsForInputMode;
25457
25988
  exports.modelsWithFeature = modelsWithFeature;
25458
25989
  exports.motionGraphicsFeature = motionGraphicsFeature;
25990
+ exports.nearestCatalogAspectRatio = nearestCatalogAspectRatio;
25459
25991
  exports.newScene3DRevisionId = newScene3DRevisionId;
25460
25992
  exports.nextScheduleRuns = nextScheduleRuns;
25461
25993
  exports.nodeFeedsAnything = nodeFeedsAnything;
@@ -25483,6 +26015,7 @@ exports.normalizeTtsNeighbourText = normalizeTtsNeighbourText;
25483
26015
  exports.normalizeVideoOverlayNodes = normalizeVideoOverlayNodes;
25484
26016
  exports.normalizeVideoRequestParams = normalizeVideoRequestParams;
25485
26017
  exports.normalizeWan3Resolution = normalizeWan3Resolution;
26018
+ exports.normalizedImageGenModelId = normalizedImageGenModelId;
25486
26019
  exports.orderedLlmModels = orderedLlmModels;
25487
26020
  exports.outputMsToMasterMs = outputMsToMasterMs;
25488
26021
  exports.overlayFontById = overlayFontById;
@@ -25510,6 +26043,7 @@ exports.parseListExpression = parseListExpression;
25510
26043
  exports.parseLocationMentionToken = parseLocationMentionToken;
25511
26044
  exports.parseNodePresetExport = parseNodePresetExport;
25512
26045
  exports.parseNodeRef = parseNodeRef;
26046
+ exports.parsePitchTempoCreditId = parsePitchTempoCreditId;
25513
26047
  exports.parseScene3DCameraTrackJson = parseScene3DCameraTrackJson;
25514
26048
  exports.parseScene3DPlanV2Json = parseScene3DPlanV2Json;
25515
26049
  exports.parseSpeakerEmphasisStyle = parseSpeakerEmphasisStyle;
@@ -25521,6 +26055,9 @@ exports.pickLipSyncBucket = pickLipSyncBucket;
25521
26055
  exports.pickSocialPosts = pickSocialPosts;
25522
26056
  exports.pickSwitchXFrameTier = pickSwitchXFrameTier;
25523
26057
  exports.pickVideoAnalysisBucket = pickVideoAnalysisBucket;
26058
+ exports.pitchTempoBaseCredits = pitchTempoBaseCredits;
26059
+ exports.pitchTempoCreditId = pitchTempoCreditId;
26060
+ exports.pitchTempoStartedMinutes = pitchTempoStartedMinutes;
25524
26061
  exports.planClipKeyAt = planClipKeyAt;
25525
26062
  exports.planFanOut = planFanOut;
25526
26063
  exports.planFeedEmission = planFeedEmission;
@@ -25569,8 +26106,10 @@ exports.renderPlanValue = renderPlanValue;
25569
26106
  exports.renderReadBasis = renderReadBasis;
25570
26107
  exports.renderResultStamp = renderResultStamp;
25571
26108
  exports.renderRunQuality = renderRunQuality;
26109
+ exports.renderSavedJsonOutputs = renderSavedJsonOutputs;
25572
26110
  exports.renderSentRowStamps = renderSentRowStamps;
25573
26111
  exports.renderSettingsBasis = renderSettingsBasis;
26112
+ exports.renderTranscriptOutputOf = renderTranscriptOutputOf;
25574
26113
  exports.renderVideoCreditId = renderVideoCreditId;
25575
26114
  exports.renderedSourceHandle = renderedSourceHandle;
25576
26115
  exports.rendersAsPreview = rendersAsPreview;
@@ -25609,6 +26148,7 @@ exports.resolveLlmCreditId = resolveLlmCreditId;
25609
26148
  exports.resolveLocationFields = resolveLocationFields;
25610
26149
  exports.resolveLocationPresetCatalog = resolveLocationPresetCatalog;
25611
26150
  exports.resolveLottieOverlaySrc = resolveLottieOverlaySrc;
26151
+ exports.resolveMaskCompositeSettings = resolveMaskCompositeSettings;
25612
26152
  exports.resolveMetaAdsScrapeCreditId = resolveMetaAdsScrapeCreditId;
25613
26153
  exports.resolveMusicProvider = resolveMusicProvider;
25614
26154
  exports.resolveNodeRefs = resolveNodeRefs;
@@ -25629,7 +26169,11 @@ exports.resolveSwitchXCreditId = resolveSwitchXCreditId;
25629
26169
  exports.resolveTemplateCategory = resolveTemplateCategory;
25630
26170
  exports.resolveTopazUpscale = resolveTopazUpscale;
25631
26171
  exports.resolveVideoAnalysisModel = resolveVideoAnalysisModel;
26172
+ exports.resolveVideoDepthColormap = resolveVideoDepthColormap;
26173
+ exports.resolveVideoDepthModelSize = resolveVideoDepthModelSize;
26174
+ exports.resolveVideoDepthProvider = resolveVideoDepthProvider;
25632
26175
  exports.resolveVideoLinkOutput = resolveVideoLinkOutput;
26176
+ exports.resolveVideoMaskProvider = resolveVideoMaskProvider;
25633
26177
  exports.resolveVideoModeForInputs = resolveVideoModeForInputs;
25634
26178
  exports.resolveVideoOverlayGeometry = resolveVideoOverlayGeometry;
25635
26179
  exports.resolveVideoProviderForMode = resolveVideoProviderForMode;
@@ -25736,6 +26280,7 @@ exports.selectByPredicate = selectByPredicate;
25736
26280
  exports.selectListItems = selectListItems;
25737
26281
  exports.selectLoraRoutingForMentions = selectLoraRoutingForMentions;
25738
26282
  exports.selectRandom = selectRandom;
26283
+ exports.semitonesToPitchRatio = semitonesToPitchRatio;
25739
26284
  exports.setRegisteredPersonPackFields = setRegisteredPersonPackFields;
25740
26285
  exports.settingsInputAccepts = settingsInputAccepts;
25741
26286
  exports.settingsInputFields = settingsInputFields;
@@ -25872,12 +26417,19 @@ exports.videoCharacterVoiceCap = videoCharacterVoiceCap;
25872
26417
  exports.videoCharacterVoiceKey = videoCharacterVoiceKey;
25873
26418
  exports.videoCharacterVoiceProblem = videoCharacterVoiceProblem;
25874
26419
  exports.videoDefaultDurationSec = videoDefaultDurationSec;
26420
+ exports.videoDepthColormaps = videoDepthColormaps;
26421
+ exports.videoDepthCreditId = videoDepthCreditId;
26422
+ exports.videoDepthLevers = videoDepthLevers;
26423
+ exports.videoDepthNeedsGrayscalePass = videoDepthNeedsGrayscalePass;
25875
26424
  exports.videoLinkDownloadedFile = videoLinkDownloadedFile;
25876
26425
  exports.videoLinkInputProblem = videoLinkInputProblem;
25877
26426
  exports.videoLinkNeedOf = videoLinkNeedOf;
25878
26427
  exports.videoLinkNeedsDownload = videoLinkNeedsDownload;
25879
26428
  exports.videoLinkPageUrl = videoLinkPageUrl;
25880
26429
  exports.videoLinkRunNeeds = videoLinkRunNeeds;
26430
+ exports.videoMaskBilledSeconds = videoMaskBilledSeconds;
26431
+ exports.videoMaskCreditId = videoMaskCreditId;
26432
+ exports.videoMaskCreditIds = videoMaskCreditIds;
25881
26433
  exports.videoModelCanSpeakDialogue = videoModelCanSpeakDialogue;
25882
26434
  exports.videoModelSupportsAudio = videoModelSupportsAudio;
25883
26435
  exports.videoNegativeSuffix = videoNegativeSuffix;