@nodaro/shared 3.13.0 → 3.16.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.
- package/dist/index.cjs +1293 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1502 -30
- package/dist/index.d.ts +1502 -30
- package/dist/index.js +1134 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/camera-switch-contract.test.ts +98 -0
- package/src/__tests__/competitors.test.ts +49 -0
- package/src/__tests__/content-recipe-ideas.test.ts +96 -0
- package/src/__tests__/edl-multicam.test.ts +192 -0
- package/src/__tests__/llm-models.test.ts +5 -2
- package/src/__tests__/music-provider.test.ts +17 -0
- package/src/__tests__/node-runtime-keys.test.ts +10 -0
- package/src/__tests__/parameter-node-value.test.ts +2 -1
- package/src/__tests__/per-unit-video-pricing.test.ts +97 -0
- package/src/__tests__/producer-types.test.ts +35 -0
- package/src/__tests__/saved-posts.test.ts +37 -0
- package/src/__tests__/script-settings.test.ts +61 -0
- package/src/__tests__/settings-input.test.ts +252 -0
- package/src/__tests__/social-search.test.ts +243 -0
- package/src/__tests__/studio-take-voice.test.ts +200 -0
- package/src/__tests__/studio-transient.test.ts +37 -0
- package/src/__tests__/sub-gates.test.ts +21 -0
- package/src/__tests__/telegram-account-trigger.test.ts +120 -0
- package/src/__tests__/video-analysis-pricing.test.ts +27 -13
- package/src/__tests__/video-link.test.ts +2 -2
- package/src/__tests__/video-utils.test.ts +89 -83
- package/src/__tests__/workflow-export-strip.test.ts +37 -0
- package/src/camera-switch-contract.ts +166 -0
- package/src/catalog-projection.ts +27 -0
- package/src/competitors.ts +430 -0
- package/src/content-recipe-ideas.ts +69 -0
- package/src/credit-estimators/index.ts +14 -0
- package/src/credit-estimators/ltx-extend.ts +33 -0
- package/src/credit-estimators/ltx-retake.ts +30 -0
- package/src/credit-estimators/video-sfx.ts +41 -0
- package/src/credit-estimators/video-utils.ts +38 -24
- package/src/credit-identifiers.ts +10 -0
- package/src/edl-multicam.ts +220 -0
- package/src/fan-out-rows.ts +7 -2
- package/src/i18n/action-fx.ko.ts +18 -18
- package/src/i18n/action-fx.pt-BR.ts +66 -66
- package/src/i18n/aesthetic.ko.ts +49 -49
- package/src/i18n/aesthetic.pt-BR.ts +14 -14
- package/src/i18n/animals.ko.ts +126 -126
- package/src/i18n/animals.pt-BR.ts +33 -33
- package/src/i18n/atmosphere.ko.ts +37 -37
- package/src/i18n/atmosphere.pt-BR.ts +29 -29
- package/src/i18n/backdrop.ko.ts +40 -40
- package/src/i18n/backdrop.pt-BR.ts +38 -38
- package/src/i18n/camera-format.ko.ts +31 -31
- package/src/i18n/camera-format.pt-BR.ts +12 -12
- package/src/i18n/camera-motions.ko.ts +66 -66
- package/src/i18n/camera-motions.pt-BR.ts +51 -51
- package/src/i18n/character-fx.ko.ts +19 -19
- package/src/i18n/character-fx.pt-BR.ts +64 -52
- package/src/i18n/character-motion.ko.ts +164 -164
- package/src/i18n/character-motion.pt-BR.ts +867 -858
- package/src/i18n/color-look.ko.ts +41 -41
- package/src/i18n/color-look.pt-BR.ts +23 -23
- package/src/i18n/composition-effects.ko.ts +18 -18
- package/src/i18n/composition-effects.pt-BR.ts +17 -17
- package/src/i18n/era.ko.ts +28 -28
- package/src/i18n/era.pt-BR.ts +20 -20
- package/src/i18n/exposure-settings.ko.ts +20 -20
- package/src/i18n/exposure-settings.pt-BR.ts +3 -3
- package/src/i18n/framing.ko.ts +66 -66
- package/src/i18n/framing.pt-BR.ts +50 -50
- package/src/i18n/furniture.ko.ts +78 -78
- package/src/i18n/furniture.pt-BR.ts +46 -46
- package/src/i18n/held-prop.ko.ts +60 -60
- package/src/i18n/held-prop.pt-BR.ts +30 -30
- package/src/i18n/instrumentation.ko.ts +62 -62
- package/src/i18n/instrumentation.pt-BR.ts +64 -64
- package/src/i18n/lens.ko.ts +16 -16
- package/src/i18n/lens.pt-BR.ts +5 -5
- package/src/i18n/lighting.ko.ts +68 -68
- package/src/i18n/lighting.pt-BR.ts +43 -43
- package/src/i18n/loop-subject.ko.ts +1 -1
- package/src/i18n/loop-subject.pt-BR.ts +31 -31
- package/src/i18n/materials.ko.ts +66 -66
- package/src/i18n/materials.pt-BR.ts +22 -22
- package/src/i18n/mood.ko.ts +50 -50
- package/src/i18n/mood.pt-BR.ts +12 -12
- package/src/i18n/music-genre.ko.ts +28 -28
- package/src/i18n/music-genre.pt-BR.ts +50 -50
- package/src/i18n/music-mood.ko.ts +27 -27
- package/src/i18n/music-mood.pt-BR.ts +20 -20
- package/src/i18n/person.ko.ts +396 -396
- package/src/i18n/person.pt-BR.ts +237 -237
- package/src/i18n/photo-genre.ko.ts +46 -46
- package/src/i18n/photo-genre.pt-BR.ts +32 -32
- package/src/i18n/photographer.ko.ts +63 -63
- package/src/i18n/photographer.pt-BR.ts +15 -15
- package/src/i18n/pose.ko.ts +81 -81
- package/src/i18n/pose.pt-BR.ts +65 -65
- package/src/i18n/post-process-effects.ko.ts +18 -18
- package/src/i18n/post-process-effects.pt-BR.ts +18 -18
- package/src/i18n/render-quality.ko.ts +24 -24
- package/src/i18n/render-quality.pt-BR.ts +12 -12
- package/src/i18n/setting.ko.ts +64 -64
- package/src/i18n/setting.pt-BR.ts +41 -41
- package/src/i18n/style.ko.ts +49 -49
- package/src/i18n/style.pt-BR.ts +19 -19
- package/src/i18n/styling.ko.ts +265 -265
- package/src/i18n/styling.pt-BR.ts +141 -141
- package/src/i18n/temporal.ko.ts +18 -18
- package/src/i18n/temporal.pt-BR.ts +12 -12
- package/src/i18n/transitions.ko.ts +14 -14
- package/src/i18n/transitions.pt-BR.ts +83 -71
- package/src/i18n/vehicles.ko.ts +107 -107
- package/src/i18n/vehicles.pt-BR.ts +55 -55
- package/src/i18n/voice-character.ko.ts +19 -19
- package/src/i18n/voice-character.pt-BR.ts +19 -19
- package/src/i18n/voice-delivery.ko.ts +22 -22
- package/src/i18n/voice-delivery.pt-BR.ts +22 -22
- package/src/i18n/weapons.ko.ts +85 -85
- package/src/i18n/weapons.pt-BR.ts +46 -46
- package/src/index.ts +202 -1
- package/src/llm-models.ts +11 -0
- package/src/model-catalog.ts +30 -14
- package/src/model-constants.ts +28 -0
- package/src/node-mappable-fields.ts +21 -5
- package/src/node-runtime-keys.ts +33 -0
- package/src/oauth-scopes.ts +28 -0
- package/src/parameter-node-value.ts +13 -5
- package/src/pipeline-defaults.ts +14 -0
- package/src/pipeline-state-types.ts +14 -0
- package/src/producer-types.ts +85 -0
- package/src/recast-segment-packs.ts +13 -0
- package/src/resolve-field-mappings.ts +15 -5
- package/src/saved-posts.ts +106 -0
- package/src/script-settings.ts +70 -0
- package/src/settings-input.ts +366 -0
- package/src/social-search.ts +467 -0
- package/src/studio-transient.ts +176 -5
- package/src/telegram-account-send.ts +32 -0
- package/src/telegram-account-trigger.ts +108 -0
- package/src/video-analysis-pricing.ts +17 -6
- package/src/video-link.ts +16 -4
- package/src/workflow-export.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -1079,7 +1079,7 @@ var VIDEO_MODELS = {
|
|
|
1079
1079
|
resolutions: ["720p", "1080p", "4k"],
|
|
1080
1080
|
pricing: [
|
|
1081
1081
|
{ identifier: "veo3", credits: 1e3, note: "4/6/8s with audio (flat per-generation)" },
|
|
1082
|
-
{ identifier: "veo3:4k", credits:
|
|
1082
|
+
{ identifier: "veo3:4k", credits: 1300, note: "4K (base 1080p \u2192 get-4k-video)" }
|
|
1083
1083
|
],
|
|
1084
1084
|
featured: true
|
|
1085
1085
|
},
|
|
@@ -2105,9 +2105,9 @@ var VIDEO_MODELS = {
|
|
|
2105
2105
|
kind: "video",
|
|
2106
2106
|
modes: ["video-analysis"],
|
|
2107
2107
|
family: "Nodaro",
|
|
2108
|
-
label: "Video Analysis (Fast
|
|
2108
|
+
label: "Video Analysis (Fast)",
|
|
2109
2109
|
series: "Video Analysis",
|
|
2110
|
-
description: "
|
|
2110
|
+
description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 fast, economy tier. Billed per duration bucket.",
|
|
2111
2111
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
2112
2112
|
pricing: [
|
|
2113
2113
|
{ identifier: "video-analysis:gemini-3-flash", credits: 849, note: "10-min ceiling (no duration given)" },
|
|
@@ -2122,9 +2122,9 @@ var VIDEO_MODELS = {
|
|
|
2122
2122
|
kind: "video",
|
|
2123
2123
|
modes: ["video-analysis"],
|
|
2124
2124
|
family: "Nodaro",
|
|
2125
|
-
label: "Video Analysis (Fast)",
|
|
2125
|
+
label: "Video Analysis (Fast \u2014 legacy)",
|
|
2126
2126
|
series: "Video Analysis",
|
|
2127
|
-
description: "
|
|
2127
|
+
description: "Legacy fast-tier analysis model (backed the fast tier from 2026-07 until 2026-07-29). Kept so stored raw-model configs keep running and keep pricing under their own identifier; new fast-tier runs use the current fast model.",
|
|
2128
2128
|
useCases: ["video-analysis", "shot-list", "fast"],
|
|
2129
2129
|
pricing: [
|
|
2130
2130
|
{ identifier: "video-analysis:gemini-3.6-flash", credits: 995, note: "10-min ceiling (no duration given)" },
|
|
@@ -2708,6 +2708,14 @@ function nearestAspectRatio(token, allowed) {
|
|
|
2708
2708
|
}
|
|
2709
2709
|
return best;
|
|
2710
2710
|
}
|
|
2711
|
+
function fitAspectRatioToModel(modelId, ratio) {
|
|
2712
|
+
const token = ratio.trim();
|
|
2713
|
+
const allowed = MODEL_CATALOG[modelId]?.aspectRatios;
|
|
2714
|
+
if (!allowed?.length || token === "" || PASSTHROUGH_ASPECT_TOKENS.has(token.toLowerCase())) return token;
|
|
2715
|
+
const exact = allowed.find((a) => a === token) ?? allowed.find((a) => a.toLowerCase() === token.toLowerCase());
|
|
2716
|
+
if (exact !== void 0) return exact;
|
|
2717
|
+
return nearestAspectRatio(token, allowed.filter((a) => !PASSTHROUGH_ASPECT_TOKENS.has(a.toLowerCase()))) ?? allowed[0];
|
|
2718
|
+
}
|
|
2711
2719
|
function readOptionToken(value) {
|
|
2712
2720
|
if (value === void 0 || value === null) return void 0;
|
|
2713
2721
|
const s = (typeof value === "string" ? value : String(value)).trim();
|
|
@@ -2720,20 +2728,16 @@ function normalizeVideoRequestParams(modelId, input) {
|
|
|
2720
2728
|
const out = { aspectRatio: aspect, resolution: res, adjustments: [] };
|
|
2721
2729
|
if (!m) return out;
|
|
2722
2730
|
if (m.aspectRatios?.length && aspect && !PASSTHROUGH_ASPECT_TOKENS.has(aspect.toLowerCase())) {
|
|
2723
|
-
const
|
|
2724
|
-
|
|
2725
|
-
if (exact !== void 0) {
|
|
2726
|
-
out.aspectRatio = exact;
|
|
2727
|
-
} else {
|
|
2728
|
-
const next = nearestAspectRatio(aspect, allowed.filter((a) => !PASSTHROUGH_ASPECT_TOKENS.has(a.toLowerCase()))) ?? allowed[0];
|
|
2731
|
+
const next = fitAspectRatioToModel(modelId, aspect);
|
|
2732
|
+
if (next.toLowerCase() !== aspect.toLowerCase()) {
|
|
2729
2733
|
out.adjustments.push({
|
|
2730
2734
|
field: "aspectRatio",
|
|
2731
2735
|
from: aspect,
|
|
2732
2736
|
to: next,
|
|
2733
|
-
reason: `${m.label} does not support aspect ratio "${aspect}" \u2014 using "${next}" instead. Supported: ${
|
|
2737
|
+
reason: `${m.label} does not support aspect ratio "${aspect}" \u2014 using "${next}" instead. Supported: ${m.aspectRatios.join(", ")}.`
|
|
2734
2738
|
});
|
|
2735
|
-
out.aspectRatio = next;
|
|
2736
2739
|
}
|
|
2740
|
+
out.aspectRatio = next;
|
|
2737
2741
|
}
|
|
2738
2742
|
if (m.resolutions?.length && res) {
|
|
2739
2743
|
const allowed = m.resolutions;
|
|
@@ -3648,6 +3652,14 @@ var MUSIC_PROVIDERS = [
|
|
|
3648
3652
|
// "lyria",
|
|
3649
3653
|
// "bark",
|
|
3650
3654
|
];
|
|
3655
|
+
var DEFAULT_MUSIC_PROVIDER = "minimax";
|
|
3656
|
+
var MUSIC_PROVIDER_LABELS = {
|
|
3657
|
+
minimax: "MiniMax Music"
|
|
3658
|
+
};
|
|
3659
|
+
var MUSIC_CREDIT_ID = "generate-music";
|
|
3660
|
+
function resolveMusicProvider(value) {
|
|
3661
|
+
return MUSIC_PROVIDERS.includes(value) ? value : DEFAULT_MUSIC_PROVIDER;
|
|
3662
|
+
}
|
|
3651
3663
|
var TRANSCRIBE_PROVIDERS = [
|
|
3652
3664
|
"elevenlabs-stt",
|
|
3653
3665
|
"whisper",
|
|
@@ -5192,6 +5204,9 @@ var SUNO_SELECT_OPERATIONS = [
|
|
|
5192
5204
|
"suno-add-vocals",
|
|
5193
5205
|
"suno-upload-extend"
|
|
5194
5206
|
];
|
|
5207
|
+
function speedRampCreditId(quality) {
|
|
5208
|
+
return quality === "smooth" ? "speed-ramp:smooth" : "speed-ramp";
|
|
5209
|
+
}
|
|
5195
5210
|
function sunoCreditType(model, operation) {
|
|
5196
5211
|
if (!SUNO_VERSION_PRICED_OPERATIONS.includes(operation)) {
|
|
5197
5212
|
return operation;
|
|
@@ -5208,20 +5223,25 @@ var SUNO_VERSION_CREDIT_KEYS = {
|
|
|
5208
5223
|
|
|
5209
5224
|
// src/credit-estimators/video-utils.ts
|
|
5210
5225
|
var VIDEO_UTIL_PRICING = {
|
|
5211
|
-
/**
|
|
5212
|
-
|
|
5213
|
-
/**
|
|
5226
|
+
/** Base credits per pricing unit. The node's own `model_pricing` row is one unit. */
|
|
5227
|
+
CREDIT_UNIT: 10,
|
|
5228
|
+
/** Base credits per 5 seconds of output (one unit), ceiling. */
|
|
5229
|
+
CREDITS_PER_5_SEC: 10,
|
|
5230
|
+
/** Smart-loop-cut work scales at one unit per ~24 frames searched. */
|
|
5214
5231
|
FRAMES_PER_CREDIT: 24,
|
|
5215
5232
|
/** Used when an upstream node hasn't produced a measurable duration yet. */
|
|
5216
5233
|
FALLBACK_DURATION_SECONDS: 8
|
|
5217
5234
|
};
|
|
5235
|
+
function unitsToCredits(units) {
|
|
5236
|
+
return VIDEO_UTIL_PRICING.CREDIT_UNIT * Math.max(1, units);
|
|
5237
|
+
}
|
|
5218
5238
|
function estimateLoopVideoCredits(data, upstreamDuration) {
|
|
5219
5239
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
5220
5240
|
const inputDuration = upstreamDuration ?? fallback;
|
|
5221
5241
|
const output = data.mode === "duration" ? data.targetDuration ?? fallback : (data.repeatCount ?? 2) * inputDuration;
|
|
5222
5242
|
const base = Math.ceil(output / 5);
|
|
5223
5243
|
const cut = data.smartLoopCutBeforeRepeat ? Math.ceil((data.smartLoopCutLookback ?? 16) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT) : 0;
|
|
5224
|
-
return
|
|
5244
|
+
return unitsToCredits(base + cut);
|
|
5225
5245
|
}
|
|
5226
5246
|
function estimateTrimVideoCredits(data, upstreamDuration) {
|
|
5227
5247
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
@@ -5229,31 +5249,31 @@ function estimateTrimVideoCredits(data, upstreamDuration) {
|
|
|
5229
5249
|
if (data.trimMode === "smart-loop-cut") {
|
|
5230
5250
|
const base = Math.ceil(inputDuration / 5);
|
|
5231
5251
|
const cut = Math.ceil((data.smartLoopCutLookback ?? 16) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT);
|
|
5232
|
-
return
|
|
5252
|
+
return unitsToCredits(base + cut);
|
|
5233
5253
|
}
|
|
5234
5254
|
if (data.trimMode === "frames") {
|
|
5235
5255
|
const startSec = (data.trimStartFrames ?? 0) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT;
|
|
5236
5256
|
const endSec = (data.trimEndFrames ?? 0) / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT;
|
|
5237
5257
|
const output2 = Math.max(0, inputDuration - startSec - endSec);
|
|
5238
|
-
return
|
|
5258
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5239
5259
|
}
|
|
5240
5260
|
if (data.trimMode === "seconds") {
|
|
5241
5261
|
const output2 = Math.max(0, inputDuration - (data.trimStartSeconds ?? 0) - (data.trimEndSeconds ?? 0));
|
|
5242
|
-
return
|
|
5262
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5243
5263
|
}
|
|
5244
5264
|
if (data.trimMode === "keep-first-seconds") {
|
|
5245
5265
|
const output2 = Math.min(inputDuration, Math.max(0, data.keepFirstSeconds ?? 0));
|
|
5246
|
-
return
|
|
5266
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5247
5267
|
}
|
|
5248
5268
|
if (data.trimMode === "keep-last-seconds") {
|
|
5249
5269
|
const output2 = Math.min(inputDuration, Math.max(0, data.keepLastSeconds ?? 0));
|
|
5250
|
-
return
|
|
5270
|
+
return unitsToCredits(Math.ceil(output2 / 5));
|
|
5251
5271
|
}
|
|
5252
5272
|
const output = (data.endTime ?? 0) - (data.startTime ?? 0);
|
|
5253
|
-
return
|
|
5273
|
+
return unitsToCredits(Math.ceil(output / 5));
|
|
5254
5274
|
}
|
|
5255
5275
|
function estimateCombineVideosCredits(data, upstreamDurations) {
|
|
5256
|
-
if (upstreamDurations.length === 0) return 1;
|
|
5276
|
+
if (upstreamDurations.length === 0) return unitsToCredits(1);
|
|
5257
5277
|
const fallback = VIDEO_UTIL_PRICING.FALLBACK_DURATION_SECONDS;
|
|
5258
5278
|
const n = upstreamDurations.length;
|
|
5259
5279
|
let total = 0;
|
|
@@ -5267,15 +5287,17 @@ function estimateCombineVideosCredits(data, upstreamDurations) {
|
|
|
5267
5287
|
total -= trimSecPerClip * n;
|
|
5268
5288
|
const base = Math.ceil(Math.max(0, total) / 5);
|
|
5269
5289
|
const inputAdder = Math.max(0, n - 2);
|
|
5270
|
-
return
|
|
5290
|
+
return unitsToCredits(base + inputAdder);
|
|
5271
5291
|
}
|
|
5272
5292
|
function estimateLoopTrimAddonCredits(loopTrim, outputDurationSeconds) {
|
|
5273
5293
|
if (!loopTrim?.enabled) return 0;
|
|
5274
5294
|
const frames = Math.max(1, Math.min(loopTrim.framesToTest ?? 16, 64));
|
|
5275
|
-
return
|
|
5295
|
+
return unitsToCredits(
|
|
5296
|
+
Math.ceil(outputDurationSeconds / 5) + Math.ceil(frames / VIDEO_UTIL_PRICING.FRAMES_PER_CREDIT)
|
|
5297
|
+
);
|
|
5276
5298
|
}
|
|
5277
5299
|
function assembleNarratedVideoCredits(blockCount) {
|
|
5278
|
-
return 3 + Math.ceil(blockCount / 6);
|
|
5300
|
+
return unitsToCredits(3 + Math.ceil(blockCount / 6));
|
|
5279
5301
|
}
|
|
5280
5302
|
|
|
5281
5303
|
// src/image-overlay-platforms.ts
|
|
@@ -5335,6 +5357,49 @@ function imageOverlayCredits(variants) {
|
|
|
5335
5357
|
return IMAGE_OVERLAY_BASE_CREDITS + IMAGE_OVERLAY_VARIANT_CREDITS * imageOverlayBillableVariants(variants).length;
|
|
5336
5358
|
}
|
|
5337
5359
|
|
|
5360
|
+
// src/credit-estimators/video-sfx.ts
|
|
5361
|
+
var VIDEO_SFX_PRICING = {
|
|
5362
|
+
/** The longest input video a run accepts, in seconds. */
|
|
5363
|
+
MAX_DURATION_SEC: 300,
|
|
5364
|
+
/** The length priced (and generated) when the input video cannot be measured. */
|
|
5365
|
+
FALLBACK_DURATION_SEC: 8
|
|
5366
|
+
};
|
|
5367
|
+
var VIDEO_SFX_BUCKETS = [
|
|
5368
|
+
{ upToSec: 8, creditId: "replicate-mmaudio:8s" },
|
|
5369
|
+
{ upToSec: 15, creditId: "replicate-mmaudio:15s" },
|
|
5370
|
+
{ upToSec: 30, creditId: "replicate-mmaudio:30s" },
|
|
5371
|
+
{ upToSec: 60, creditId: "replicate-mmaudio:60s" },
|
|
5372
|
+
{ upToSec: 120, creditId: "replicate-mmaudio:120s" },
|
|
5373
|
+
{ upToSec: 300, creditId: "replicate-mmaudio:300s" }
|
|
5374
|
+
];
|
|
5375
|
+
function videoSfxCreditId(durationSec) {
|
|
5376
|
+
const seconds = typeof durationSec === "number" && Number.isFinite(durationSec) && durationSec > 0 ? durationSec : VIDEO_SFX_PRICING.FALLBACK_DURATION_SEC;
|
|
5377
|
+
const bucket = VIDEO_SFX_BUCKETS.find((b) => seconds <= b.upToSec) ?? VIDEO_SFX_BUCKETS[VIDEO_SFX_BUCKETS.length - 1];
|
|
5378
|
+
return bucket.creditId;
|
|
5379
|
+
}
|
|
5380
|
+
|
|
5381
|
+
// src/credit-estimators/ltx-extend.ts
|
|
5382
|
+
var LTX_EXTEND_PER_SECOND_CREDIT_ID = "ltx-2.3-pro-extend:per-second";
|
|
5383
|
+
var LTX_EXTEND_DURATION = {
|
|
5384
|
+
MIN_SEC: 1,
|
|
5385
|
+
MAX_SEC: 20,
|
|
5386
|
+
DEFAULT_SEC: 6
|
|
5387
|
+
};
|
|
5388
|
+
function ltxExtendDurationSec(raw) {
|
|
5389
|
+
const n = typeof raw === "number" ? raw : typeof raw === "string" && raw.trim() !== "" ? Number(raw) : Number.NaN;
|
|
5390
|
+
if (!Number.isFinite(n)) return LTX_EXTEND_DURATION.DEFAULT_SEC;
|
|
5391
|
+
return Math.min(LTX_EXTEND_DURATION.MAX_SEC, Math.max(LTX_EXTEND_DURATION.MIN_SEC, Math.round(n)));
|
|
5392
|
+
}
|
|
5393
|
+
|
|
5394
|
+
// src/credit-estimators/ltx-retake.ts
|
|
5395
|
+
var LTX_RETAKE_PER_SECOND_CREDIT_ID = "ltx-2.3-pro-retake:per-second";
|
|
5396
|
+
var LTX_RETAKE_MIN_DURATION_SEC = 2;
|
|
5397
|
+
function ltxRetakeDurationSec(raw) {
|
|
5398
|
+
const n = typeof raw === "number" ? raw : typeof raw === "string" && raw.trim() !== "" ? Number(raw) : Number.NaN;
|
|
5399
|
+
if (!Number.isFinite(n) || n <= 0) return LTX_RETAKE_MIN_DURATION_SEC;
|
|
5400
|
+
return Math.max(LTX_RETAKE_MIN_DURATION_SEC, n);
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5338
5403
|
// src/video-duration.ts
|
|
5339
5404
|
function extractVideoDurationFromNode(data) {
|
|
5340
5405
|
if (!data) return void 0;
|
|
@@ -5597,8 +5662,50 @@ var FAN_OUT_EACH_TYPES = /* @__PURE__ */ new Set([
|
|
|
5597
5662
|
// for which the list extractors return undefined, so an "each" edge falls back
|
|
5598
5663
|
// to the scalar `edl` value (no fan-out) — the same graceful degradation
|
|
5599
5664
|
// web-scrape relies on. See `unwrapEditPlanOutput` in `edit-plan-contract.ts`.
|
|
5600
|
-
"edit-plan"
|
|
5665
|
+
"edit-plan",
|
|
5666
|
+
// Content Ideas emits one creative brief per idea on `listResults`, so an
|
|
5667
|
+
// edge leaving it defaults to "each" — the node after it (typically
|
|
5668
|
+
// Generate Script) runs once per idea, on the server too.
|
|
5669
|
+
"content-ideas"
|
|
5601
5670
|
]);
|
|
5671
|
+
var FAN_OUT_EACH_HANDLES = {
|
|
5672
|
+
// Camera Switch run once per clip (Edit Plan in clips mode): each clip's
|
|
5673
|
+
// switched EDL is its own Apply EDL render. Its transcript is the same for
|
|
5674
|
+
// every clip (the master clock, renamed), so that handle stays one value
|
|
5675
|
+
// (decided 2026-10-04).
|
|
5676
|
+
"camera-switch": { each: ["edl"], primary: "edl" }
|
|
5677
|
+
};
|
|
5678
|
+
function defaultEdgeOutputMode(sourceType, sourceHandle) {
|
|
5679
|
+
if (typeof sourceType !== "string") return "last";
|
|
5680
|
+
if (FAN_OUT_EACH_TYPES.has(sourceType)) return "each";
|
|
5681
|
+
const entry = FAN_OUT_EACH_HANDLES[sourceType];
|
|
5682
|
+
if (!entry) return "last";
|
|
5683
|
+
return entry.each.includes(sourceHandle || entry.primary) ? "each" : "last";
|
|
5684
|
+
}
|
|
5685
|
+
function listResultsServeHandle(sourceType, sourceHandle) {
|
|
5686
|
+
const entry = typeof sourceType === "string" ? FAN_OUT_EACH_HANDLES[sourceType] : void 0;
|
|
5687
|
+
return !entry || entry.each.includes(sourceHandle || entry.primary);
|
|
5688
|
+
}
|
|
5689
|
+
var FAN_IN_TARGETS = {
|
|
5690
|
+
// Choose Best — every wire is a candidate.
|
|
5691
|
+
reduce: "*",
|
|
5692
|
+
// Content Ideas — one or more recipes, from several Content Recipe nodes
|
|
5693
|
+
// and/or one that ran once per post.
|
|
5694
|
+
"content-ideas": ["recipes"],
|
|
5695
|
+
// Telegram Reply — one message per run, whatever is wired into its text
|
|
5696
|
+
// input: a list (or a writer that ran once per item) arrives as one
|
|
5697
|
+
// message, never as a burst of sends to the owner's chat.
|
|
5698
|
+
"telegram-account-send": ["in"]
|
|
5699
|
+
};
|
|
5700
|
+
function isFanInNodeType(nodeType) {
|
|
5701
|
+
return typeof nodeType === "string" && Object.prototype.hasOwnProperty.call(FAN_IN_TARGETS, nodeType);
|
|
5702
|
+
}
|
|
5703
|
+
function isFanInEdge(targetType, targetHandle) {
|
|
5704
|
+
if (!isFanInNodeType(targetType)) return false;
|
|
5705
|
+
const spec = FAN_IN_TARGETS[targetType];
|
|
5706
|
+
if (spec === "*") return true;
|
|
5707
|
+
return targetHandle == null || targetHandle === "" || spec.includes(targetHandle);
|
|
5708
|
+
}
|
|
5602
5709
|
|
|
5603
5710
|
// src/presentation-utils.ts
|
|
5604
5711
|
var INPUT_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -6559,7 +6666,12 @@ var LLM_FEATURE_DEFAULTS = {
|
|
|
6559
6666
|
"translate": "gemini-3.6-flash",
|
|
6560
6667
|
"image-critic": "claude-sonnet-4.6",
|
|
6561
6668
|
"pick-best-llm": "claude-sonnet-4.6",
|
|
6562
|
-
"workflow-copilot": "claude-sonnet-5"
|
|
6669
|
+
"workflow-copilot": "claude-sonnet-5",
|
|
6670
|
+
// Both economy on purpose — measured: ten ideas in Hebrew took ~1 min here
|
|
6671
|
+
// and ~3.5 min (two calls) on claude-sonnet-4.6. The private plugin keeps
|
|
6672
|
+
// the same two defaults for API callers that omit the model.
|
|
6673
|
+
"content-recipe": "gemini-3.6-flash",
|
|
6674
|
+
"content-ideas": "gemini-3.6-flash"
|
|
6563
6675
|
};
|
|
6564
6676
|
var LLM_MODALITY_CAPS = {
|
|
6565
6677
|
"gemini-3-flash": { image: true, video: true, audio: true },
|
|
@@ -8348,11 +8460,16 @@ var NON_PROMPT_TEXT_LANES = {
|
|
|
8348
8460
|
negative: "*",
|
|
8349
8461
|
"system-prompt": "*",
|
|
8350
8462
|
script: ["ai-avatar"],
|
|
8351
|
-
transcript: ["add-captions", "apply-edl", "edit-plan"],
|
|
8352
|
-
edl: ["apply-edl"],
|
|
8463
|
+
transcript: ["add-captions", "apply-edl", "edit-plan", "camera-switch"],
|
|
8464
|
+
edl: ["apply-edl", "camera-switch"],
|
|
8353
8465
|
silence: ["edit-plan"],
|
|
8466
|
+
offsets: ["edit-plan"],
|
|
8354
8467
|
qrText: ["image-overlay"],
|
|
8355
|
-
transition: ["slideshow"]
|
|
8468
|
+
transition: ["slideshow"],
|
|
8469
|
+
// Content Recipe's `link` carries the post's address (inputs.sourceLink), not
|
|
8470
|
+
// the material it analyzes — a list of links fanned through it must not be
|
|
8471
|
+
// written into the material too.
|
|
8472
|
+
link: ["content-recipe"]
|
|
8356
8473
|
};
|
|
8357
8474
|
function fanOutTextFeedsPrompt(nodeType, targetHandle) {
|
|
8358
8475
|
const scope = Object.hasOwn(NON_PROMPT_TEXT_LANES, targetHandle ?? "") ? NON_PROMPT_TEXT_LANES[targetHandle ?? ""] : void 0;
|
|
@@ -8502,6 +8619,10 @@ var PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
|
8502
8619
|
"scene-count",
|
|
8503
8620
|
"duration",
|
|
8504
8621
|
"aspect-ratio",
|
|
8622
|
+
// Generation Settings "Provider": a model id read from data at run time, like
|
|
8623
|
+
// duration / aspect-ratio (it used to be only a SKIP node, so a server run
|
|
8624
|
+
// could not read it at all).
|
|
8625
|
+
"provider",
|
|
8505
8626
|
"music-genre",
|
|
8506
8627
|
"music-mood",
|
|
8507
8628
|
"instrumentation",
|
|
@@ -8509,17 +8630,18 @@ var PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
|
8509
8630
|
"voice-delivery"
|
|
8510
8631
|
]);
|
|
8511
8632
|
var HINT_EXEMPT_PARAMETER_TYPES = /* @__PURE__ */ new Set([
|
|
8512
|
-
"motion",
|
|
8513
8633
|
"scene-count",
|
|
8514
8634
|
"duration",
|
|
8515
|
-
"aspect-ratio"
|
|
8635
|
+
"aspect-ratio",
|
|
8636
|
+
"provider"
|
|
8516
8637
|
]);
|
|
8517
8638
|
var VIDEO_ONLY_PARAMETER_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
8518
8639
|
"camera-motion",
|
|
8519
8640
|
"temporal",
|
|
8520
8641
|
"transition",
|
|
8521
8642
|
"character-fx",
|
|
8522
|
-
"character-motion"
|
|
8643
|
+
"character-motion",
|
|
8644
|
+
"motion"
|
|
8523
8645
|
]);
|
|
8524
8646
|
var EXECUTION_GRAPH_COMPOSED_PARAMETER_TYPES = /* @__PURE__ */ new Set([
|
|
8525
8647
|
"camera-motion",
|
|
@@ -8632,6 +8754,8 @@ function getParameterValue(data, nodeType) {
|
|
|
8632
8754
|
return data.seconds != null ? String(data.seconds) : void 0;
|
|
8633
8755
|
case "aspect-ratio":
|
|
8634
8756
|
return trim(data.ratio);
|
|
8757
|
+
case "provider":
|
|
8758
|
+
return trim(data.provider);
|
|
8635
8759
|
default:
|
|
8636
8760
|
return void 0;
|
|
8637
8761
|
}
|
|
@@ -9494,9 +9618,161 @@ function deriveLinkedFields(nodeType, value) {
|
|
|
9494
9618
|
return {};
|
|
9495
9619
|
}
|
|
9496
9620
|
|
|
9621
|
+
// src/settings-input.ts
|
|
9622
|
+
var SETTINGS_INPUT_HANDLE = "settings";
|
|
9623
|
+
var SETTINGS_SOURCE_FIELDS = {
|
|
9624
|
+
"aspect-ratio": "aspectRatio",
|
|
9625
|
+
duration: "duration",
|
|
9626
|
+
provider: "provider"
|
|
9627
|
+
};
|
|
9628
|
+
var SETTINGS_HINT_SOURCES = ["motion"];
|
|
9629
|
+
var SETTINGS_SOURCE_TYPES = [
|
|
9630
|
+
...Object.keys(SETTINGS_SOURCE_FIELDS),
|
|
9631
|
+
...SETTINGS_HINT_SOURCES
|
|
9632
|
+
];
|
|
9633
|
+
function fieldOf(sourceType) {
|
|
9634
|
+
return Object.prototype.hasOwnProperty.call(SETTINGS_SOURCE_FIELDS, sourceType) ? SETTINGS_SOURCE_FIELDS[sourceType] : void 0;
|
|
9635
|
+
}
|
|
9636
|
+
var VIDEO_SETTINGS = ["aspect-ratio", "duration", "provider", "motion"];
|
|
9637
|
+
var SETTINGS_CONSUMERS = {
|
|
9638
|
+
"generate-video": {
|
|
9639
|
+
accepts: VIDEO_SETTINGS,
|
|
9640
|
+
models: VIDEO_GEN_PROVIDERS,
|
|
9641
|
+
defaultModel: DEFAULT_VIDEO_PROVIDER,
|
|
9642
|
+
duration: "model"
|
|
9643
|
+
},
|
|
9644
|
+
// Generate Video Pro has Generate Video's handles by construction
|
|
9645
|
+
// (generate-video-pro-handles.ts re-exports them), so it takes the same
|
|
9646
|
+
// settings; its own models and its own duration rule.
|
|
9647
|
+
"generate-video-pro": {
|
|
9648
|
+
accepts: VIDEO_SETTINGS,
|
|
9649
|
+
models: GVP_SUPPORTED_PROVIDERS,
|
|
9650
|
+
defaultModel: GVP_DEFAULT_PROVIDER,
|
|
9651
|
+
duration: "total"
|
|
9652
|
+
},
|
|
9653
|
+
// A still image has no length, so no Duration.
|
|
9654
|
+
"generate-image": {
|
|
9655
|
+
accepts: ["aspect-ratio", "provider"],
|
|
9656
|
+
models: IMAGE_GEN_PROVIDERS,
|
|
9657
|
+
// The node's own default (NODE_DEFINITIONS) — only used to fit a wired
|
|
9658
|
+
// ratio when the node names no model.
|
|
9659
|
+
defaultModel: "nano-banana-pro",
|
|
9660
|
+
modelList: "providers"
|
|
9661
|
+
}
|
|
9662
|
+
};
|
|
9663
|
+
var SETTINGS_INPUT_CONSUMERS = Object.fromEntries(
|
|
9664
|
+
Object.entries(SETTINGS_CONSUMERS).map(([type, consumer]) => [type, consumer.accepts])
|
|
9665
|
+
);
|
|
9666
|
+
function isSettingsSourceType(type) {
|
|
9667
|
+
return typeof type === "string" && SETTINGS_SOURCE_TYPES.includes(type);
|
|
9668
|
+
}
|
|
9669
|
+
function isSettingsHintSource(type) {
|
|
9670
|
+
return typeof type === "string" && SETTINGS_HINT_SOURCES.includes(type);
|
|
9671
|
+
}
|
|
9672
|
+
function settingsInputAccepts(consumerType, sourceType) {
|
|
9673
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).some((t2) => t2 === sourceType);
|
|
9674
|
+
}
|
|
9675
|
+
function settingsInputFields(consumerType) {
|
|
9676
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).flatMap((t2) => {
|
|
9677
|
+
const field = fieldOf(t2);
|
|
9678
|
+
return field ? [field] : [];
|
|
9679
|
+
});
|
|
9680
|
+
}
|
|
9681
|
+
function settingsProviderModels(consumerType) {
|
|
9682
|
+
return SETTINGS_CONSUMERS[consumerType]?.models ?? [];
|
|
9683
|
+
}
|
|
9684
|
+
function settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) {
|
|
9685
|
+
if (!settingsInputAccepts(consumerType, sourceType)) return void 0;
|
|
9686
|
+
let found;
|
|
9687
|
+
for (const edge of edges) {
|
|
9688
|
+
if (edge.target !== consumerId || edge.targetHandle !== SETTINGS_INPUT_HANDLE) continue;
|
|
9689
|
+
if (typeOf(edge.source) === sourceType) found = edge.source;
|
|
9690
|
+
}
|
|
9691
|
+
return found;
|
|
9692
|
+
}
|
|
9693
|
+
function settingsSourceForField(consumerId, consumerType, field, edges, typeOf) {
|
|
9694
|
+
const sourceType = (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).find((t2) => fieldOf(t2) === field);
|
|
9695
|
+
return sourceType ? settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) : void 0;
|
|
9696
|
+
}
|
|
9697
|
+
function isSettingsHintEdge(edge, consumerType, edges, typeOf) {
|
|
9698
|
+
if (edge.targetHandle !== SETTINGS_INPUT_HANDLE) return false;
|
|
9699
|
+
const sourceType = typeOf(edge.source);
|
|
9700
|
+
if (!isSettingsHintSource(sourceType)) return false;
|
|
9701
|
+
return settingsSourceForType(edge.target, consumerType, sourceType, edges, typeOf) === edge.source;
|
|
9702
|
+
}
|
|
9703
|
+
function connectedSettingsSources(consumerId, consumerType, edges, typeOf) {
|
|
9704
|
+
const out = [];
|
|
9705
|
+
for (const sourceType of SETTINGS_INPUT_CONSUMERS[consumerType] ?? []) {
|
|
9706
|
+
const sourceId = settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf);
|
|
9707
|
+
if (!sourceId) continue;
|
|
9708
|
+
const field = fieldOf(sourceType);
|
|
9709
|
+
out.push(field ? { sourceType, field, sourceId } : { sourceType, sourceId });
|
|
9710
|
+
}
|
|
9711
|
+
return out;
|
|
9712
|
+
}
|
|
9713
|
+
function snapToModelDuration(model, seconds) {
|
|
9714
|
+
const durations = MODEL_CATALOG[model]?.durations;
|
|
9715
|
+
if (!durations || durations.length === 0 || isAutoVideoDuration(seconds)) return seconds;
|
|
9716
|
+
let best = durations[0];
|
|
9717
|
+
for (const d of durations) {
|
|
9718
|
+
const closer = Math.abs(d - seconds) < Math.abs(best - seconds);
|
|
9719
|
+
const tieShorter = Math.abs(d - seconds) === Math.abs(best - seconds) && d < best;
|
|
9720
|
+
if (closer || tieShorter) best = d;
|
|
9721
|
+
}
|
|
9722
|
+
return best;
|
|
9723
|
+
}
|
|
9724
|
+
function applySettingsInput(consumerType, consumerId, data, edges, typeOf) {
|
|
9725
|
+
const consumer = SETTINGS_CONSUMERS[consumerType];
|
|
9726
|
+
const connected = connectedSettingsSources(consumerId, consumerType, edges, typeOf);
|
|
9727
|
+
if (!consumer || connected.length === 0) return { data: { ...data } };
|
|
9728
|
+
let next = { ...data };
|
|
9729
|
+
const providerSource = connected.find((c) => c.sourceType === "provider");
|
|
9730
|
+
if (providerSource) {
|
|
9731
|
+
const value = typeof next.provider === "string" ? next.provider : "";
|
|
9732
|
+
if (!consumer.models.includes(value)) {
|
|
9733
|
+
return { data: next, problem: { kind: "provider-not-accepted", sourceId: providerSource.sourceId, value } };
|
|
9734
|
+
}
|
|
9735
|
+
if (consumer.modelList) next = { ...next, [consumer.modelList]: [value] };
|
|
9736
|
+
}
|
|
9737
|
+
const model = typeof next.provider === "string" && next.provider || consumer.defaultModel;
|
|
9738
|
+
if (consumer.duration === "model" && connected.some((c) => c.sourceType === "duration")) {
|
|
9739
|
+
const raw = next.duration;
|
|
9740
|
+
const seconds = typeof raw === "number" ? raw : typeof raw === "string" ? Number.parseInt(raw, 10) : Number.NaN;
|
|
9741
|
+
if (Number.isFinite(seconds)) next = { ...next, duration: snapToModelDuration(model, seconds) };
|
|
9742
|
+
}
|
|
9743
|
+
if (connected.some((c) => c.sourceType === "aspect-ratio") && typeof next.aspectRatio === "string") {
|
|
9744
|
+
next = { ...next, aspectRatio: fitAspectRatioToModel(model, next.aspectRatio) };
|
|
9745
|
+
}
|
|
9746
|
+
return { data: next };
|
|
9747
|
+
}
|
|
9748
|
+
function resolveWiredSettings(consumerId, consumerType, data, nodes, edges) {
|
|
9749
|
+
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
9750
|
+
const typeOf = (id) => byId.get(id)?.type;
|
|
9751
|
+
const wired = connectedSettingsSources(consumerId, consumerType, edges, typeOf).map((c) => ({
|
|
9752
|
+
...c,
|
|
9753
|
+
value: getParameterValue(byId.get(c.sourceId)?.data ?? {}, c.sourceType)
|
|
9754
|
+
}));
|
|
9755
|
+
if (wired.length === 0) return { data: { ...data }, wired };
|
|
9756
|
+
let next = { ...data };
|
|
9757
|
+
for (const w of wired) {
|
|
9758
|
+
if (w.field && w.value != null) next = { ...next, [w.field]: w.value };
|
|
9759
|
+
}
|
|
9760
|
+
const applied = applySettingsInput(consumerType, consumerId, next, edges, typeOf);
|
|
9761
|
+
return applied.problem ? { data: applied.data, wired, problem: applied.problem } : { data: applied.data, wired };
|
|
9762
|
+
}
|
|
9763
|
+
function withWiredSettings(node, nodes, edges) {
|
|
9764
|
+
const type = node.type ?? "";
|
|
9765
|
+
if (!nodes || !edges || !node.id || !SETTINGS_CONSUMERS[type]) return node;
|
|
9766
|
+
const graphNodes = nodes.flatMap((n) => n.id ? [{ id: n.id, type: n.type, data: n.data }] : []);
|
|
9767
|
+
const graphEdges = edges.map((e) => ({ source: e.source ?? "", target: e.target, targetHandle: e.targetHandle }));
|
|
9768
|
+
const { data } = resolveWiredSettings(node.id, type, node.data ?? {}, graphNodes, graphEdges);
|
|
9769
|
+
return { ...node, data };
|
|
9770
|
+
}
|
|
9771
|
+
|
|
9497
9772
|
// src/node-mappable-fields.ts
|
|
9498
9773
|
var NODE_MAPPABLE_FIELDS = {
|
|
9499
|
-
|
|
9774
|
+
// + the fields its Settings input sets (settings-input.ts).
|
|
9775
|
+
"generate-image": ["prompt", "style", "negativePrompt", ...settingsInputFields("generate-image")],
|
|
9500
9776
|
"edit-image": ["prompt", "style", "negativePrompt"],
|
|
9501
9777
|
"image-to-image": ["prompt", "style", "negativePrompt"],
|
|
9502
9778
|
"modify-image": ["prompt", "style", "negativePrompt"],
|
|
@@ -9505,10 +9781,13 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9505
9781
|
// Unified t2v/i2v node — replaced the two deprecated keys above (kept only
|
|
9506
9782
|
// for back-compat with un-migrated workflow JSON). Mirrors text-to-video so
|
|
9507
9783
|
// fieldMappings/{} injection AND missing-ref detection work on the live node.
|
|
9508
|
-
|
|
9784
|
+
// + the fields its Settings input sets (settings-input.ts): a Generation
|
|
9785
|
+
// Settings node wired there overrides the node's own aspect ratio, duration
|
|
9786
|
+
// and model at run time, through the same resolver as a field mapping.
|
|
9787
|
+
"generate-video": ["prompt", "negativePrompt", ...settingsInputFields("generate-video")],
|
|
9509
9788
|
// Trimmed multi-segment stitch variant of generate-video — prompt only, no
|
|
9510
|
-
// negativePrompt field on the node.
|
|
9511
|
-
"generate-video-pro": ["prompt"],
|
|
9789
|
+
// negativePrompt field on the node; + the fields its Settings input sets.
|
|
9790
|
+
"generate-video-pro": ["prompt", ...settingsInputFields("generate-video-pro")],
|
|
9512
9791
|
// Span-replace sibling of generate-video-pro — prompt only, no
|
|
9513
9792
|
// negativePrompt field on the node.
|
|
9514
9793
|
"edit-video-pro": ["prompt"],
|
|
@@ -9539,7 +9818,9 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9539
9818
|
"edit-3d-scene": ["editPrompt"],
|
|
9540
9819
|
"pro-3d-render": ["scenePrompt"],
|
|
9541
9820
|
"motion-graphics": ["motionPrompt"],
|
|
9542
|
-
|
|
9821
|
+
// Every field the panel offers a source for. Numbers arrive as text from a
|
|
9822
|
+
// Scene Count / Duration node; readScriptSettings coerces them on both engines.
|
|
9823
|
+
"generate-script": ["styleGuide", "tone", "sceneCount", "targetLength"],
|
|
9543
9824
|
"speech-to-video": ["prompt", "negativePrompt"],
|
|
9544
9825
|
"extend-video": ["prompt"],
|
|
9545
9826
|
"motion-transfer": ["prompt"],
|
|
@@ -9561,13 +9842,72 @@ var NODE_MAPPABLE_FIELDS = {
|
|
|
9561
9842
|
"location": ["locationName", "description"],
|
|
9562
9843
|
"web-scrape": ["query", "url", "target"],
|
|
9563
9844
|
"meta-ads-scrape": ["query", "pageUrls"],
|
|
9564
|
-
"instagram-scrape": ["targets"]
|
|
9845
|
+
"instagram-scrape": ["targets"],
|
|
9846
|
+
// Content Recipe's material arrives on its `in` wire and the post link on
|
|
9847
|
+
// its `link` wire (a Video URL node's page link) — only the focus is a field.
|
|
9848
|
+
"content-recipe": ["focus"],
|
|
9849
|
+
// Content Ideas folds its recipes on the `recipes` wire (FAN_IN_TARGETS);
|
|
9850
|
+
// the brand profile and the language are fields a Text node can feed.
|
|
9851
|
+
"content-ideas": ["brand", "language"],
|
|
9852
|
+
// Social Search: the keyword or account a Text node (or a List item) feeds.
|
|
9853
|
+
"social-search": ["query"]
|
|
9565
9854
|
};
|
|
9566
9855
|
var SUNO_FIELD_HANDLE_FIELDS = ["style", "lyrics", "title", "negativeStyle"];
|
|
9567
9856
|
function fieldKeyFromHandle(handleId) {
|
|
9568
9857
|
return handleId.startsWith("field-") ? handleId.slice("field-".length) : null;
|
|
9569
9858
|
}
|
|
9570
9859
|
|
|
9860
|
+
// src/oauth-scopes.ts
|
|
9861
|
+
var OAUTH_SCOPES = [
|
|
9862
|
+
"workflows:read",
|
|
9863
|
+
"workflows:write",
|
|
9864
|
+
"workflows:execute",
|
|
9865
|
+
"jobs:read",
|
|
9866
|
+
"assets:read",
|
|
9867
|
+
"assets:write",
|
|
9868
|
+
"credits:read",
|
|
9869
|
+
"apps:read",
|
|
9870
|
+
"pipelines:read",
|
|
9871
|
+
"pipelines:execute",
|
|
9872
|
+
"pipelines:approve",
|
|
9873
|
+
"presets:read",
|
|
9874
|
+
"workspaces:read",
|
|
9875
|
+
"workspaces:write"
|
|
9876
|
+
];
|
|
9877
|
+
|
|
9878
|
+
// src/recast-segment-packs.ts
|
|
9879
|
+
var RECAST_SEGMENT_PACKS = ["max", "scenes-max", "scenes"];
|
|
9880
|
+
|
|
9881
|
+
// src/script-settings.ts
|
|
9882
|
+
var SCRIPT_SCENE_COUNT_RANGE = { min: 1, max: 20 };
|
|
9883
|
+
var SCRIPT_TARGET_DURATION_RANGE = { min: 5, max: 600 };
|
|
9884
|
+
var SCRIPT_SCENE_COUNT_DEFAULT = 5;
|
|
9885
|
+
var SCRIPT_TARGET_DURATION_DEFAULT = 60;
|
|
9886
|
+
var SCRIPT_TONE_MAX_LENGTH = 200;
|
|
9887
|
+
var SCRIPT_STYLE_GUIDE_MAX_LENGTH = LLM_TEXT_INPUT_MAX;
|
|
9888
|
+
function clampInt(value, range) {
|
|
9889
|
+
const n = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
|
|
9890
|
+
if (!Number.isFinite(n)) return void 0;
|
|
9891
|
+
return Math.min(range.max, Math.max(range.min, Math.round(n)));
|
|
9892
|
+
}
|
|
9893
|
+
function clampText(value, max) {
|
|
9894
|
+
if (typeof value !== "string") return void 0;
|
|
9895
|
+
const text = value.trim();
|
|
9896
|
+
return text.length > 0 ? text.slice(0, max) : void 0;
|
|
9897
|
+
}
|
|
9898
|
+
function readScriptSettings(data, refMap) {
|
|
9899
|
+
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
|
|
9900
|
+
return {
|
|
9901
|
+
sceneCount: clampInt(data.sceneCount, SCRIPT_SCENE_COUNT_RANGE),
|
|
9902
|
+
// The panel's own fields (the ones a mapping writes) come first. `style` is
|
|
9903
|
+
// an older key for the tone, and `targetDuration` is the route's name for
|
|
9904
|
+
// the length, which workflow JSON written by an agent can carry.
|
|
9905
|
+
tone: clampText(data.tone ?? data.style, SCRIPT_TONE_MAX_LENGTH),
|
|
9906
|
+
targetDuration: clampInt(data.targetLength ?? data.targetDuration, SCRIPT_TARGET_DURATION_RANGE),
|
|
9907
|
+
styleGuide: clampText(styleGuide, SCRIPT_STYLE_GUIDE_MAX_LENGTH)
|
|
9908
|
+
};
|
|
9909
|
+
}
|
|
9910
|
+
|
|
9571
9911
|
// src/trigger-node-types.ts
|
|
9572
9912
|
var SCHEDULE_TRIGGER_NODE_TYPE = "schedule-trigger";
|
|
9573
9913
|
var WEBHOOK_TRIGGER_NODE_TYPE = "webhook-trigger";
|
|
@@ -9583,6 +9923,71 @@ function isProjectedTriggerNodeType(type) {
|
|
|
9583
9923
|
return typeof type === "string" && PROJECTED_TRIGGER_NODE_TYPES.has(type);
|
|
9584
9924
|
}
|
|
9585
9925
|
|
|
9926
|
+
// src/telegram-account-trigger.ts
|
|
9927
|
+
var TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE = "out";
|
|
9928
|
+
var TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS = [
|
|
9929
|
+
/** The post's link, when the post has a video to analyze. */
|
|
9930
|
+
"videoLink",
|
|
9931
|
+
/** The post's words, when it has no video: the message, the link's preview, or the forwarded post. */
|
|
9932
|
+
"postText",
|
|
9933
|
+
/** The link of the post this run is about, whatever its kind. */
|
|
9934
|
+
"postLink"
|
|
9935
|
+
];
|
|
9936
|
+
var TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS = [
|
|
9937
|
+
"chatId",
|
|
9938
|
+
"chatType",
|
|
9939
|
+
"messageId",
|
|
9940
|
+
"senderId"
|
|
9941
|
+
];
|
|
9942
|
+
var TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES = [
|
|
9943
|
+
TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE,
|
|
9944
|
+
...TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS
|
|
9945
|
+
];
|
|
9946
|
+
var NAMED_HANDLES = /* @__PURE__ */ new Set([...TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS, ...TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS]);
|
|
9947
|
+
function isTelegramAccountTriggerNamedHandle(handle) {
|
|
9948
|
+
return typeof handle === "string" && NAMED_HANDLES.has(handle);
|
|
9949
|
+
}
|
|
9950
|
+
function telegramAccountListeningSignature(data) {
|
|
9951
|
+
const d = data !== null && typeof data === "object" ? data : {};
|
|
9952
|
+
const list = (value) => Array.isArray(value) ? [...new Set(value.filter((x) => typeof x === "string").map((x) => x.trim()).filter((x) => x !== ""))].sort() : [];
|
|
9953
|
+
return JSON.stringify({
|
|
9954
|
+
accountId: typeof d.accountId === "string" ? d.accountId : "",
|
|
9955
|
+
chatIds: list(d.chatIds),
|
|
9956
|
+
senderIds: list(d.senderIds),
|
|
9957
|
+
messageTypeFilters: list(d.messageTypeFilters),
|
|
9958
|
+
keywords: list(d.keywords),
|
|
9959
|
+
includeOutgoing: d.inboxMode === true || d.includeOutgoing === true,
|
|
9960
|
+
inboxMode: d.inboxMode === true,
|
|
9961
|
+
isActive: d.isActive === true
|
|
9962
|
+
});
|
|
9963
|
+
}
|
|
9964
|
+
function stringField(value) {
|
|
9965
|
+
if (typeof value === "string") return value.trim();
|
|
9966
|
+
if (typeof value === "number" && Number.isFinite(value)) return String(value);
|
|
9967
|
+
return "";
|
|
9968
|
+
}
|
|
9969
|
+
function telegramAccountTriggerOutputs(triggerData) {
|
|
9970
|
+
const td = triggerData ?? {};
|
|
9971
|
+
const out = {};
|
|
9972
|
+
for (const key of TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS) out[key] = stringField(td[key]);
|
|
9973
|
+
for (const key of TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS) {
|
|
9974
|
+
const value = stringField(td[key]);
|
|
9975
|
+
if (value !== "") out[key] = value;
|
|
9976
|
+
}
|
|
9977
|
+
return out;
|
|
9978
|
+
}
|
|
9979
|
+
|
|
9980
|
+
// src/telegram-account-send.ts
|
|
9981
|
+
var TELEGRAM_ACCOUNT_SEND_NODE_TYPE = "telegram-account-send";
|
|
9982
|
+
var TELEGRAM_SEND_AS = ["account", "bot"];
|
|
9983
|
+
var TELEGRAM_SEND_DESTINATIONS = ["reply", "saved"];
|
|
9984
|
+
function telegramSendAsOf(value) {
|
|
9985
|
+
return value === "bot" ? "bot" : "account";
|
|
9986
|
+
}
|
|
9987
|
+
function telegramSendDestinationOf(value) {
|
|
9988
|
+
return value === "saved" ? "saved" : "reply";
|
|
9989
|
+
}
|
|
9990
|
+
|
|
9586
9991
|
// src/trigger-feeds.ts
|
|
9587
9992
|
function buildFeedMaps(nodes, edges) {
|
|
9588
9993
|
const live = new Set(nodes.map((n) => n.id));
|
|
@@ -10269,6 +10674,291 @@ function resolveInstagramScrapeCreditId(body) {
|
|
|
10269
10674
|
return buildInstagramScrapeCreditId({ count, sources, analysis: instagramAnalysisTierFrom(raw) });
|
|
10270
10675
|
}
|
|
10271
10676
|
|
|
10677
|
+
// src/social-search.ts
|
|
10678
|
+
var SOCIAL_SEARCH_NODE_TYPE = "social-search";
|
|
10679
|
+
var SOCIAL_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit", "linkedin", "meta_ads"];
|
|
10680
|
+
var SOCIAL_SEARCH_MODES = ["keyword", "account", "community"];
|
|
10681
|
+
var SOCIAL_SEARCH_PLATFORM_MODES = {
|
|
10682
|
+
tiktok: ["keyword", "account"],
|
|
10683
|
+
instagram: ["keyword", "account"],
|
|
10684
|
+
youtube: ["keyword", "account"],
|
|
10685
|
+
x: ["keyword", "account"],
|
|
10686
|
+
reddit: ["keyword", "community"],
|
|
10687
|
+
linkedin: ["keyword", "account"],
|
|
10688
|
+
meta_ads: ["keyword", "account"]
|
|
10689
|
+
};
|
|
10690
|
+
var SOCIAL_SEARCH_PERIODS = ["day", "week", "month", "year", "all"];
|
|
10691
|
+
var SOCIAL_SEARCH_SORTS = ["relevance", "popular", "newest"];
|
|
10692
|
+
var SOCIAL_SEARCH_COUNTS = [20, 40, 60];
|
|
10693
|
+
var SOCIAL_SEARCH_PAGED_MODES = {
|
|
10694
|
+
tiktok: ["keyword"],
|
|
10695
|
+
instagram: ["keyword"],
|
|
10696
|
+
youtube: [],
|
|
10697
|
+
x: ["keyword", "account"],
|
|
10698
|
+
reddit: ["community"],
|
|
10699
|
+
linkedin: ["keyword"],
|
|
10700
|
+
meta_ads: ["keyword", "account"]
|
|
10701
|
+
};
|
|
10702
|
+
function socialSearchMaxCount(platform, mode) {
|
|
10703
|
+
return SOCIAL_SEARCH_PAGED_MODES[platform].includes(mode) ? 60 : 20;
|
|
10704
|
+
}
|
|
10705
|
+
var SOCIAL_SEARCH_VIDEO_KINDS = ["all", "videos", "shorts"];
|
|
10706
|
+
var SOCIAL_SEARCH_DEFAULT_PICK_TOP = 5;
|
|
10707
|
+
var SOCIAL_SEARCH_MAX_QUERY_LENGTH = 300;
|
|
10708
|
+
function isRecord(value) {
|
|
10709
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10710
|
+
}
|
|
10711
|
+
function isSocialPost(value) {
|
|
10712
|
+
if (!isRecord(value)) return false;
|
|
10713
|
+
return typeof value.id === "string" && typeof value.url === "string" && typeof value.text === "string" && typeof value.platform === "string" && SOCIAL_PLATFORMS.includes(value.platform) && isRecord(value.author) && typeof value.author.handle === "string" && typeof value.author.name === "string" && isRecord(value.metrics) && isRecord(value.media) && Array.isArray(value.hashtags) && isRecord(value.extra);
|
|
10714
|
+
}
|
|
10715
|
+
function socialPostsFrom(value) {
|
|
10716
|
+
return Array.isArray(value) ? value.filter(isSocialPost) : [];
|
|
10717
|
+
}
|
|
10718
|
+
function oneOf(list, value, fallback) {
|
|
10719
|
+
return typeof value === "string" && list.includes(value) ? value : fallback;
|
|
10720
|
+
}
|
|
10721
|
+
function socialSearchPlatform(value) {
|
|
10722
|
+
return oneOf(SOCIAL_PLATFORMS, value, "tiktok");
|
|
10723
|
+
}
|
|
10724
|
+
function socialSearchMode(platform, value) {
|
|
10725
|
+
const allowed = SOCIAL_SEARCH_PLATFORM_MODES[platform];
|
|
10726
|
+
return oneOf(allowed, value, allowed[0]);
|
|
10727
|
+
}
|
|
10728
|
+
function socialSearchCount(value) {
|
|
10729
|
+
return value === 60 ? 60 : value === 40 ? 40 : 20;
|
|
10730
|
+
}
|
|
10731
|
+
function socialSearchPages(count) {
|
|
10732
|
+
return count === 60 ? 3 : count === 40 ? 2 : 1;
|
|
10733
|
+
}
|
|
10734
|
+
function cleanText(value, max) {
|
|
10735
|
+
return typeof value === "string" && value.trim() ? value.trim().slice(0, max) : void 0;
|
|
10736
|
+
}
|
|
10737
|
+
function socialSearchEffectiveCount(platform, mode, value) {
|
|
10738
|
+
const asked = socialSearchCount(value);
|
|
10739
|
+
const max = socialSearchMaxCount(platform, mode);
|
|
10740
|
+
return asked > max ? max : asked;
|
|
10741
|
+
}
|
|
10742
|
+
function socialSearchRegion(value) {
|
|
10743
|
+
const text = typeof value === "string" ? value.trim().toUpperCase() : "";
|
|
10744
|
+
return /^[A-Z]{2}$/.test(text) ? text : void 0;
|
|
10745
|
+
}
|
|
10746
|
+
function socialSearchCountry(value) {
|
|
10747
|
+
const text = typeof value === "string" ? value.trim().toUpperCase() : "";
|
|
10748
|
+
return /^([A-Z]{2}|ALL)$/.test(text) ? text : "ALL";
|
|
10749
|
+
}
|
|
10750
|
+
function socialSearchRequestFromNode(data, wiredQuery) {
|
|
10751
|
+
const platform = socialSearchPlatform(data.platform);
|
|
10752
|
+
const mode = socialSearchMode(platform, data.mode);
|
|
10753
|
+
const query = cleanText(wiredQuery, SOCIAL_SEARCH_MAX_QUERY_LENGTH) ?? cleanText(data.query, SOCIAL_SEARCH_MAX_QUERY_LENGTH) ?? "";
|
|
10754
|
+
const region = socialSearchRegion(data.region);
|
|
10755
|
+
const country = socialSearchCountry(data.country);
|
|
10756
|
+
const subreddit = cleanText(data.subreddit, 100);
|
|
10757
|
+
return {
|
|
10758
|
+
platform,
|
|
10759
|
+
mode,
|
|
10760
|
+
query,
|
|
10761
|
+
count: socialSearchEffectiveCount(platform, mode, data.count),
|
|
10762
|
+
period: oneOf(SOCIAL_SEARCH_PERIODS, data.period, "month"),
|
|
10763
|
+
sort: oneOf(SOCIAL_SEARCH_SORTS, data.sort, "relevance"),
|
|
10764
|
+
...platform === "tiktok" && mode === "keyword" && region ? { region } : {},
|
|
10765
|
+
...platform === "meta_ads" ? { country, activeOnly: data.activeOnly !== false } : {},
|
|
10766
|
+
...platform === "reddit" && mode === "keyword" && subreddit ? { subreddit } : {},
|
|
10767
|
+
...platform === "youtube" ? { videoKind: oneOf(SOCIAL_SEARCH_VIDEO_KINDS, data.videoKind, "all") } : {}
|
|
10768
|
+
};
|
|
10769
|
+
}
|
|
10770
|
+
function socialSearchPostLink(output) {
|
|
10771
|
+
let parsed;
|
|
10772
|
+
try {
|
|
10773
|
+
parsed = JSON.parse(output);
|
|
10774
|
+
} catch {
|
|
10775
|
+
return void 0;
|
|
10776
|
+
}
|
|
10777
|
+
const post = Array.isArray(parsed) ? parsed[0] : parsed;
|
|
10778
|
+
const url = typeof post === "object" && post !== null ? post.url : void 0;
|
|
10779
|
+
return httpLink(url);
|
|
10780
|
+
}
|
|
10781
|
+
function httpLink(value) {
|
|
10782
|
+
const link = typeof value === "string" ? value.trim() : "";
|
|
10783
|
+
return /^https?:\/\/\S+$/i.test(link) ? link : void 0;
|
|
10784
|
+
}
|
|
10785
|
+
var SOCIAL_POST_VIDEO_LINK_MARGIN_MS = 60 * 60 * 1e3;
|
|
10786
|
+
function signedLinkExpiresAt(link) {
|
|
10787
|
+
let url;
|
|
10788
|
+
try {
|
|
10789
|
+
url = new URL(link);
|
|
10790
|
+
} catch {
|
|
10791
|
+
return void 0;
|
|
10792
|
+
}
|
|
10793
|
+
const params = url.searchParams;
|
|
10794
|
+
const oe = params.get("oe");
|
|
10795
|
+
if (oe !== null && /^[0-9a-f]{6,10}$/i.test(oe)) return parseInt(oe, 16) * 1e3;
|
|
10796
|
+
const linkedin = /(^|\.)licdn\.com$/i.test(url.hostname);
|
|
10797
|
+
const seconds = params.get("x-expires") ?? params.get("Expires") ?? params.get("expires") ?? (linkedin ? params.get("e") : null);
|
|
10798
|
+
return seconds !== null && /^\d{9,11}$/.test(seconds) ? Number(seconds) * 1e3 : void 0;
|
|
10799
|
+
}
|
|
10800
|
+
function videoFileLink(value) {
|
|
10801
|
+
const link = httpLink(value);
|
|
10802
|
+
if (!link) return void 0;
|
|
10803
|
+
try {
|
|
10804
|
+
return /\.m3u8$/i.test(new URL(link).pathname) ? void 0 : link;
|
|
10805
|
+
} catch {
|
|
10806
|
+
return void 0;
|
|
10807
|
+
}
|
|
10808
|
+
}
|
|
10809
|
+
function socialSearchPostVideo(output, now = Date.now()) {
|
|
10810
|
+
let parsed;
|
|
10811
|
+
try {
|
|
10812
|
+
parsed = JSON.parse(output);
|
|
10813
|
+
} catch {
|
|
10814
|
+
return void 0;
|
|
10815
|
+
}
|
|
10816
|
+
const post = Array.isArray(parsed) ? socialPostsFrom(parsed)[0] : isSocialPost(parsed) ? parsed : void 0;
|
|
10817
|
+
if (!post) return void 0;
|
|
10818
|
+
if (post.media.kind !== "video") return { kind: "none" };
|
|
10819
|
+
const file = videoFileLink(post.media.videoUrl);
|
|
10820
|
+
if (file) {
|
|
10821
|
+
const end = signedLinkExpiresAt(file);
|
|
10822
|
+
return end !== void 0 && end - SOCIAL_POST_VIDEO_LINK_MARGIN_MS <= now ? { kind: "expired" } : { kind: "file", url: file };
|
|
10823
|
+
}
|
|
10824
|
+
const page = httpLink(post.url);
|
|
10825
|
+
return page ? { kind: "page", url: page } : void 0;
|
|
10826
|
+
}
|
|
10827
|
+
function socialPostsLongestVideoSec(posts) {
|
|
10828
|
+
const lengths = posts.filter((p) => p.media.kind === "video").map((p) => p.media.durationSec);
|
|
10829
|
+
if (lengths.length === 0) return void 0;
|
|
10830
|
+
return lengths.every((d) => typeof d === "number" && Number.isFinite(d) && d > 0) ? Math.max(...lengths) : void 0;
|
|
10831
|
+
}
|
|
10832
|
+
var SOCIAL_SEARCH_CREDITS_PER_PAGE = 20;
|
|
10833
|
+
function socialSearchCreditId(count) {
|
|
10834
|
+
return `${SOCIAL_SEARCH_NODE_TYPE}:${socialSearchPages(count)}`;
|
|
10835
|
+
}
|
|
10836
|
+
function socialSearchCreditIdFromNode(data) {
|
|
10837
|
+
const platform = socialSearchPlatform(data.platform);
|
|
10838
|
+
return socialSearchCreditId(socialSearchEffectiveCount(platform, socialSearchMode(platform, data.mode), data.count));
|
|
10839
|
+
}
|
|
10840
|
+
var SOCIAL_SEARCH_CREDIT_COSTS = Object.fromEntries([
|
|
10841
|
+
[SOCIAL_SEARCH_NODE_TYPE, SOCIAL_SEARCH_CREDITS_PER_PAGE],
|
|
10842
|
+
...SOCIAL_SEARCH_COUNTS.map((count) => [socialSearchCreditId(count), SOCIAL_SEARCH_CREDITS_PER_PAGE * socialSearchPages(count)])
|
|
10843
|
+
]);
|
|
10844
|
+
function socialSearchPickTop(value) {
|
|
10845
|
+
const n = typeof value === "number" && Number.isFinite(value) ? Math.round(value) : SOCIAL_SEARCH_DEFAULT_PICK_TOP;
|
|
10846
|
+
return Math.min(60, Math.max(1, n));
|
|
10847
|
+
}
|
|
10848
|
+
function pickSocialPosts(results, pickedIds, pickTop) {
|
|
10849
|
+
const byId = new Map(results.map((p) => [p.id, p]));
|
|
10850
|
+
const picked = (pickedIds ?? []).map((id) => byId.get(id)).filter((p) => p !== void 0);
|
|
10851
|
+
return picked.length > 0 ? picked : results.slice(0, socialSearchPickTop(pickTop));
|
|
10852
|
+
}
|
|
10853
|
+
function isSocialSearchPickFrozen(type, data) {
|
|
10854
|
+
return type === SOCIAL_SEARCH_NODE_TYPE && data.keepPicks === true && socialPostsFrom(data.generatedJson).length > 0;
|
|
10855
|
+
}
|
|
10856
|
+
function metricLine(post) {
|
|
10857
|
+
const m = post.metrics;
|
|
10858
|
+
if (m.views !== void 0) return `${m.views} views`;
|
|
10859
|
+
if (m.score !== void 0) return `${m.score} points`;
|
|
10860
|
+
if (m.likes !== void 0) return `${m.likes} likes`;
|
|
10861
|
+
return "";
|
|
10862
|
+
}
|
|
10863
|
+
function socialPostDigestLine(post, index) {
|
|
10864
|
+
const who = post.author.handle ? `@${post.author.handle.replace(/^@/, "")}` : post.author.name || post.container || "";
|
|
10865
|
+
const when = post.publishedAt ? post.publishedAt.slice(0, 10) : "";
|
|
10866
|
+
const words = (post.title || post.text).replace(/\s+/g, " ").trim();
|
|
10867
|
+
const snippet = words.length > 160 ? `${words.slice(0, 159)}\u2026` : words;
|
|
10868
|
+
const head = `${index + 1}. ${[who, when, metricLine(post)].filter(Boolean).join(" \xB7 ")}`;
|
|
10869
|
+
return [head, snippet, post.url].filter(Boolean).join("\n ");
|
|
10870
|
+
}
|
|
10871
|
+
function socialPostsDigest(posts) {
|
|
10872
|
+
return posts.map(socialPostDigestLine).join("\n\n");
|
|
10873
|
+
}
|
|
10874
|
+
|
|
10875
|
+
// src/saved-posts.ts
|
|
10876
|
+
var SAVED_POST_SOURCES = ["picker", "competitors", "manual", "api"];
|
|
10877
|
+
var SAVED_POST_NOTE_MAX = 2e3;
|
|
10878
|
+
var SAVED_POST_MAX_TAGS = 10;
|
|
10879
|
+
var SAVED_POST_TAG_MAX = 40;
|
|
10880
|
+
var SAVED_POSTS_PAGE_MAX = 100;
|
|
10881
|
+
var SAVED_POSTS_LOOKUP_MAX = 200;
|
|
10882
|
+
function normalizeSavedPostTags(tags) {
|
|
10883
|
+
if (!Array.isArray(tags)) return [];
|
|
10884
|
+
const clean2 = tags.filter((t2) => typeof t2 === "string").flatMap((t2) => t2.split(/[,,、]/)).map(
|
|
10885
|
+
(t2) => t2.replace(/[{}"\\]/g, "").trim().replace(/^#+/, "").replace(/\s+/g, " ").toLowerCase().slice(0, SAVED_POST_TAG_MAX).trim()
|
|
10886
|
+
).filter((t2) => t2.length > 0);
|
|
10887
|
+
return Array.from(new Set(clean2)).slice(0, SAVED_POST_MAX_TAGS);
|
|
10888
|
+
}
|
|
10889
|
+
|
|
10890
|
+
// src/competitors.ts
|
|
10891
|
+
var COMPETITOR_ACCOUNT_KEYS = ["tiktok", "instagram", "youtube", "x", "linkedin", "meta_ads"];
|
|
10892
|
+
var COMPETITOR_ABOUT_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit", "linkedin"];
|
|
10893
|
+
var COMPETITOR_DEFAULT_ABOUT_PLATFORMS = ["tiktok", "instagram", "youtube", "x", "reddit"];
|
|
10894
|
+
var COMPETITOR_SCHEDULES = ["off", "weekly", "daily"];
|
|
10895
|
+
var COMPETITOR_SCAN_MAX_SEARCHES = COMPETITOR_ACCOUNT_KEYS.length + COMPETITOR_ABOUT_PLATFORMS.length;
|
|
10896
|
+
var COMPETITOR_SCAN_NODE_TYPE = "competitor-scan";
|
|
10897
|
+
var COMPETITORS_MAX = 50;
|
|
10898
|
+
var ACTION_CARD_KINDS = [
|
|
10899
|
+
"outlier",
|
|
10900
|
+
"launch",
|
|
10901
|
+
"complaints",
|
|
10902
|
+
"spreading",
|
|
10903
|
+
"sound",
|
|
10904
|
+
"mentions_up",
|
|
10905
|
+
"pace",
|
|
10906
|
+
"market_sound",
|
|
10907
|
+
"top_in_sources"
|
|
10908
|
+
];
|
|
10909
|
+
var ADVICE_FAMILIES = ["sound", "outlier", "launch", "complaints"];
|
|
10910
|
+
function adviceFamilyOf(kind) {
|
|
10911
|
+
if (kind === "sound" || kind === "market_sound") return "sound";
|
|
10912
|
+
if (kind === "outlier" || kind === "launch" || kind === "complaints") return kind;
|
|
10913
|
+
return null;
|
|
10914
|
+
}
|
|
10915
|
+
function isMeasurableCard(card) {
|
|
10916
|
+
if (card.kind === "complaints") return card.params.own !== true;
|
|
10917
|
+
return adviceFamilyOf(card.kind) !== null;
|
|
10918
|
+
}
|
|
10919
|
+
var CARD_OUTCOME_STATES = [
|
|
10920
|
+
"worked",
|
|
10921
|
+
"flat",
|
|
10922
|
+
"missed",
|
|
10923
|
+
"waiting",
|
|
10924
|
+
"not_found",
|
|
10925
|
+
"older_than_advice",
|
|
10926
|
+
"no_baseline",
|
|
10927
|
+
"posts_since",
|
|
10928
|
+
"no_posts_yet",
|
|
10929
|
+
"no_brand"
|
|
10930
|
+
];
|
|
10931
|
+
var BRAND_LESSON_KINDS = [
|
|
10932
|
+
"short_videos",
|
|
10933
|
+
"long_videos",
|
|
10934
|
+
"format",
|
|
10935
|
+
"question_hook",
|
|
10936
|
+
"number_hook",
|
|
10937
|
+
"short_caption",
|
|
10938
|
+
"long_caption",
|
|
10939
|
+
"hashtag",
|
|
10940
|
+
"sound",
|
|
10941
|
+
"weekday"
|
|
10942
|
+
];
|
|
10943
|
+
function competitorScanSearches(c) {
|
|
10944
|
+
const accounts = COMPETITOR_ACCOUNT_KEYS.filter((k) => (c.accounts?.[k] ?? "").trim() !== "").length;
|
|
10945
|
+
const about = (c.aboutPlatforms ?? []).filter((p) => COMPETITOR_ABOUT_PLATFORMS.includes(p)).length;
|
|
10946
|
+
return accounts + about;
|
|
10947
|
+
}
|
|
10948
|
+
function competitorScanCreditId(n) {
|
|
10949
|
+
const clamped = Math.min(Math.max(Math.round(n), 1), COMPETITOR_SCAN_MAX_SEARCHES);
|
|
10950
|
+
return `${COMPETITOR_SCAN_NODE_TYPE}:${clamped}`;
|
|
10951
|
+
}
|
|
10952
|
+
var COMPETITOR_SCAN_CREDIT_COSTS = Object.fromEntries(
|
|
10953
|
+
Array.from({ length: COMPETITOR_SCAN_MAX_SEARCHES }, (_, i) => [competitorScanCreditId(i + 1), (i + 1) * SOCIAL_SEARCH_CREDITS_PER_PAGE])
|
|
10954
|
+
);
|
|
10955
|
+
function competitorScanCredits(searches) {
|
|
10956
|
+
return searches <= 0 ? 0 : COMPETITOR_SCAN_CREDIT_COSTS[competitorScanCreditId(searches)] ?? 0;
|
|
10957
|
+
}
|
|
10958
|
+
function isCompetitorAboutPlatform(value) {
|
|
10959
|
+
return COMPETITOR_ABOUT_PLATFORMS.includes(value);
|
|
10960
|
+
}
|
|
10961
|
+
|
|
10272
10962
|
// src/condition-variables.ts
|
|
10273
10963
|
var VARIABLES_HANDLE_ID = "variables";
|
|
10274
10964
|
function buildConditionVariables(targetNodeId, edges, nodes, extractOutput) {
|
|
@@ -10613,9 +11303,11 @@ function resolveFieldMappings(data, upstreamText, mappableFieldNames, getSourceO
|
|
|
10613
11303
|
const fm = data.fieldMappings;
|
|
10614
11304
|
const resolved = { ...data };
|
|
10615
11305
|
for (const field of mappableFieldNames) {
|
|
10616
|
-
const
|
|
11306
|
+
const wired = edgeSourceForField?.(field);
|
|
11307
|
+
const edge = typeof wired === "string" ? { sourceNodeId: wired } : wired;
|
|
11308
|
+
const sourceNodeId = edge?.sourceNodeId ?? fm?.[field]?.sourceNodeId;
|
|
10617
11309
|
if (sourceNodeId) {
|
|
10618
|
-
const output = getSourceOutput(sourceNodeId);
|
|
11310
|
+
const output = getSourceOutput(sourceNodeId, edge?.sourceHandle);
|
|
10619
11311
|
if (output != null) resolved[field] = output;
|
|
10620
11312
|
} else {
|
|
10621
11313
|
const current = resolved[field];
|
|
@@ -11836,6 +12528,10 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11836
12528
|
// below. Without the transient half, a flip into review marks a passive tab
|
|
11837
12529
|
// dirty and a preset captures "awaiting review".
|
|
11838
12530
|
"jobAwaitingReview",
|
|
12531
|
+
// The editor cannot reach the server to read this node's job. The job keeps
|
|
12532
|
+
// running and the watch keeps polling. Pure run state, cleared by the next
|
|
12533
|
+
// check that gets through, so it is ALSO in TRANSIENT_RUNTIME_KEYS below.
|
|
12534
|
+
"jobConnectionLost",
|
|
11839
12535
|
"isStreaming",
|
|
11840
12536
|
"generatedImageUrl",
|
|
11841
12537
|
"generatedVideoUrl",
|
|
@@ -11894,18 +12590,43 @@ var EXECUTION_DATA_KEYS = /* @__PURE__ */ new Set([
|
|
|
11894
12590
|
"webhookSuccess",
|
|
11895
12591
|
"webhookStatusCode",
|
|
11896
12592
|
"webhookResponseBody",
|
|
12593
|
+
// Content Ideas: one creative brief per idea (the node's list output — kept
|
|
12594
|
+
// out of __listResults, which would clone the node). And the non-fatal notes
|
|
12595
|
+
// a Content Recipe / Content Ideas run returns ("read the first of 3 posts").
|
|
12596
|
+
// Both are RESULTS: they persist, and a preset, a template or a run-only
|
|
12597
|
+
// patch must never treat them as config.
|
|
12598
|
+
"ideaBriefs",
|
|
12599
|
+
"runWarnings",
|
|
12600
|
+
// Content Ideas: the own brand whose results the last run leaned on — a
|
|
12601
|
+
// RESULT naming the runner's brand, so a template or a preset never carries it.
|
|
12602
|
+
"brandLessons",
|
|
12603
|
+
// Social Search: every post the last search found (the picker's grid), the
|
|
12604
|
+
// ids a person picked from them, and the run's non-fatal notes ("only part
|
|
12605
|
+
// of the results loaded"). All RESULTS: a template, a preset or a run-only
|
|
12606
|
+
// patch must never carry yesterday's posts or picks as configuration.
|
|
12607
|
+
"searchResults",
|
|
12608
|
+
"pickedIds",
|
|
12609
|
+
"searchWarnings",
|
|
11897
12610
|
// When the editor's "Clear results" last emptied this node (ISO time). Not a
|
|
11898
12611
|
// result and not config: bookkeeping that tells the load-time recovery lanes
|
|
11899
12612
|
// "this node is empty ON PURPOSE" — without it, every reload reads an empty
|
|
11900
12613
|
// node as "ran while the editor was closed" and paints the last run back.
|
|
11901
12614
|
// Persisted (never transient): the reload is exactly when it is read.
|
|
11902
|
-
"resultsClearedAt"
|
|
12615
|
+
"resultsClearedAt",
|
|
12616
|
+
// The id of the trigger-started run whose results this node shows (the
|
|
12617
|
+
// editor paints a Telegram run onto the canvas). Bookkeeping, not a result
|
|
12618
|
+
// and not config: it stops a reload from painting the same run again over
|
|
12619
|
+
// edits made since. Persisted for the same reason as resultsClearedAt.
|
|
12620
|
+
"resultsRunId",
|
|
12621
|
+
// A trigger's last run values (also in TRANSIENT_RUNTIME_KEYS: never saved).
|
|
12622
|
+
"__triggerData"
|
|
11903
12623
|
]);
|
|
11904
12624
|
var TRANSIENT_RUNTIME_KEYS = /* @__PURE__ */ new Set([
|
|
11905
12625
|
"executionStatus",
|
|
11906
12626
|
"currentJobId",
|
|
11907
12627
|
"currentJobProgress",
|
|
11908
12628
|
"jobAwaitingReview",
|
|
12629
|
+
"jobConnectionLost",
|
|
11909
12630
|
"isStreaming",
|
|
11910
12631
|
"subWorkflowProgress",
|
|
11911
12632
|
"__listTotal",
|
|
@@ -11918,7 +12639,11 @@ var TRANSIENT_RUNTIME_KEYS = /* @__PURE__ */ new Set([
|
|
|
11918
12639
|
// job-progress keys above were moved here to stop. What SURVIVES a reload is
|
|
11919
12640
|
// `downloadStatus` + `downloadId`; the percent is re-read from the server.
|
|
11920
12641
|
"downloadPercent",
|
|
11921
|
-
"downloadPhase"
|
|
12642
|
+
"downloadPhase",
|
|
12643
|
+
// A trigger's last run values, shown in the editor after a run (a webhook's
|
|
12644
|
+
// body, a Telegram message and its post). Never saved: the workflow is not
|
|
12645
|
+
// where a message's content is kept — runs are, under their retention.
|
|
12646
|
+
"__triggerData"
|
|
11922
12647
|
]);
|
|
11923
12648
|
function stripTransientRuntimeData(nodes) {
|
|
11924
12649
|
return nodes.map((node) => {
|
|
@@ -11951,6 +12676,8 @@ var NODE_EXTRA_FIELDS = {
|
|
|
11951
12676
|
// (a schedule starts paused), and the rules themselves are config that
|
|
11952
12677
|
// travels.
|
|
11953
12678
|
"schedule-trigger": ["active"],
|
|
12679
|
+
// Same for a Telegram Account Trigger: listening is the importer's to start.
|
|
12680
|
+
"telegram-account-trigger": ["isActive"],
|
|
11954
12681
|
character: ["expressions", "poses", "lightingVariations", "angles", "customVariations"],
|
|
11955
12682
|
object: ["angles", "materials", "variations", "customVariations"],
|
|
11956
12683
|
creature: ["angles", "poses", "variations", "customVariations"],
|
|
@@ -11976,6 +12703,11 @@ var NODE_EXTRA_FIELDS = {
|
|
|
11976
12703
|
};
|
|
11977
12704
|
var UNOWNED_REF_FIELDS = {
|
|
11978
12705
|
"webhook-output": ["credentialId"],
|
|
12706
|
+
// The exporter's connected Telegram account and its chats (a Saved Messages
|
|
12707
|
+
// chat id IS the exporter's Telegram user id) — the importer picks their own.
|
|
12708
|
+
"telegram-account-trigger": ["accountId", "chatIds", "chatTitles", "senderIds"],
|
|
12709
|
+
// Telegram Reply: the exporter's account and their bot.
|
|
12710
|
+
"telegram-account-send": ["accountId", "connectionId"],
|
|
11979
12711
|
...Object.fromEntries([...SOCIAL_POST_NODE_TYPES].map((type) => [type, ["connectionId"]]))
|
|
11980
12712
|
};
|
|
11981
12713
|
function stripUnownedRefs(nodes) {
|
|
@@ -12654,6 +13386,11 @@ function clearImageCriticMetadata(meta) {
|
|
|
12654
13386
|
return next;
|
|
12655
13387
|
}
|
|
12656
13388
|
var VIDEO_CRITIC_FRAME_MODES = ["first_last", "first_middle_last", "five_evenly"];
|
|
13389
|
+
var VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT = {
|
|
13390
|
+
first_last: 20,
|
|
13391
|
+
first_middle_last: 30,
|
|
13392
|
+
five_evenly: 40
|
|
13393
|
+
};
|
|
12657
13394
|
var VIDEO_CRITIC_MAX_RETRIES = 1;
|
|
12658
13395
|
var VIDEO_CRITIC_MIN_ADHERENCE_SCORE = 5;
|
|
12659
13396
|
var VIDEO_CRITIC_METADATA_KEYS = [
|
|
@@ -13496,6 +14233,9 @@ var SubGateNameSchema = zod.z.enum([
|
|
|
13496
14233
|
"dialogue_recheck",
|
|
13497
14234
|
"match_cut_break_pending"
|
|
13498
14235
|
]);
|
|
14236
|
+
var ANIMATE_SUB_GATES = ["silent_cut_preview", "dialogue_recheck"];
|
|
14237
|
+
var AnimateSubGateSchema = zod.z.enum(ANIMATE_SUB_GATES);
|
|
14238
|
+
var MATCH_CUT_BREAK_GATE = "match_cut_break_pending";
|
|
13499
14239
|
var StageAwaitingSubGateEventSchema = zod.z.object({
|
|
13500
14240
|
type: zod.z.literal("stage:awaiting_sub_gate"),
|
|
13501
14241
|
pipelineId: zod.z.string().uuid(),
|
|
@@ -14576,7 +15316,8 @@ function detectVideoLinkPlatform(url) {
|
|
|
14576
15316
|
var VIDEO_LINK_TOLERANT_CONSUMER_TYPES = /* @__PURE__ */ new Set([
|
|
14577
15317
|
"suno-cover",
|
|
14578
15318
|
"transcribe",
|
|
14579
|
-
"dubbing"
|
|
15319
|
+
"dubbing",
|
|
15320
|
+
"content-recipe"
|
|
14580
15321
|
]);
|
|
14581
15322
|
function trimmed(value) {
|
|
14582
15323
|
if (typeof value !== "string") return void 0;
|
|
@@ -14593,6 +15334,9 @@ function videoLinkDownloadedFile(data) {
|
|
|
14593
15334
|
function resolveVideoLinkOutput(data) {
|
|
14594
15335
|
return videoLinkDownloadedFile(data) ?? trimmed(data.youtubeUrl);
|
|
14595
15336
|
}
|
|
15337
|
+
function videoLinkPageUrl(data) {
|
|
15338
|
+
return trimmed(data.youtubeUrl);
|
|
15339
|
+
}
|
|
14596
15340
|
function videoLinkNeedsDownload(data) {
|
|
14597
15341
|
const url = trimmed(data.youtubeUrl);
|
|
14598
15342
|
if (!url || !isSocialVideoUrl(url)) return false;
|
|
@@ -16584,20 +17328,22 @@ function stripDerivedAnalysisFields(json) {
|
|
|
16584
17328
|
|
|
16585
17329
|
// src/video-analysis-pricing.ts
|
|
16586
17330
|
var VIDEO_ANALYSIS_DURATION_BUCKETS = [60, 180, 360, 600];
|
|
16587
|
-
var
|
|
17331
|
+
var VIDEO_ANALYSIS_BUCKET_GRACE_SEC = 3;
|
|
17332
|
+
var VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC = VIDEO_ANALYSIS_BUCKET_GRACE_SEC + 3;
|
|
16588
17333
|
var VIDEO_ANALYSIS_MAX_DURATION_SEC = 600;
|
|
16589
17334
|
var WINDOW_LEN = 150;
|
|
16590
17335
|
var WINDOW_STRIDE = 145;
|
|
16591
17336
|
var WINDOW_OVERLAP = 5;
|
|
16592
17337
|
var VIDEO_ANALYSIS_WINDOW = { LEN: WINDOW_LEN, STRIDE: WINDOW_STRIDE, OVERLAP: WINDOW_OVERLAP, SINGLE_MAX: 180 };
|
|
16593
17338
|
var VIDEO_ANALYSIS_BUCKET_CREDITS = {
|
|
16594
|
-
//
|
|
17339
|
+
// Current fast tier (VIDEO_ANALYSIS_TIERS.fast; it was also the fast model
|
|
17340
|
+
// before 2026-07).
|
|
16595
17341
|
"video-analysis:gemini-3-flash:60s": 181,
|
|
16596
17342
|
"video-analysis:gemini-3-flash:180s": 186,
|
|
16597
17343
|
"video-analysis:gemini-3-flash:360s": 516,
|
|
16598
17344
|
"video-analysis:gemini-3-flash:600s": 849,
|
|
16599
|
-
//
|
|
16600
|
-
//
|
|
17345
|
+
// Legacy fast-tier model (backed the fast tier 2026-07 → 2026-07-29) — kept
|
|
17346
|
+
// for stored raw-id configs; still ≤ pro per bucket.
|
|
16601
17347
|
"video-analysis:gemini-3.6-flash:60s": 205,
|
|
16602
17348
|
"video-analysis:gemini-3.6-flash:180s": 219,
|
|
16603
17349
|
"video-analysis:gemini-3.6-flash:360s": 603,
|
|
@@ -16628,7 +17374,7 @@ function videoAnalysisCreditSegment(modelOrSentinel) {
|
|
|
16628
17374
|
return modelOrSentinel === "mixed-fast" ? "mixed" : modelOrSentinel;
|
|
16629
17375
|
}
|
|
16630
17376
|
function pickVideoAnalysisBucket(durationSec) {
|
|
16631
|
-
for (const b of VIDEO_ANALYSIS_DURATION_BUCKETS) if (durationSec <= b) return b;
|
|
17377
|
+
for (const b of VIDEO_ANALYSIS_DURATION_BUCKETS) if (durationSec <= b + VIDEO_ANALYSIS_BUCKET_GRACE_SEC) return b;
|
|
16632
17378
|
return VIDEO_ANALYSIS_MAX_DURATION_SEC;
|
|
16633
17379
|
}
|
|
16634
17380
|
function buildVideoAnalysisCreditId(model, durationSec) {
|
|
@@ -16667,6 +17413,47 @@ function bucketSecondsFromAuditCreditId(id) {
|
|
|
16667
17413
|
return m ? Number(m[1]) : null;
|
|
16668
17414
|
}
|
|
16669
17415
|
|
|
17416
|
+
// src/content-recipe-ideas.ts
|
|
17417
|
+
var CONTENT_IDEAS_MAX_COUNT = 10;
|
|
17418
|
+
var CONTENT_IDEAS_DEFAULT_COUNT = 5;
|
|
17419
|
+
var CONTENT_IDEAS_PER_CHARGE = 5;
|
|
17420
|
+
var CONTENT_RECIPE_SOURCE_MAX = 3e5;
|
|
17421
|
+
var CONTENT_IDEAS_MAX_RECIPE_INPUTS = 20;
|
|
17422
|
+
var CONTENT_IDEAS_BRAND_MAX = 6e3;
|
|
17423
|
+
var CONTENT_IDEAS_LANGUAGE_MAX = 40;
|
|
17424
|
+
function clampContentIdeasCount(raw) {
|
|
17425
|
+
const n = typeof raw === "number" && Number.isFinite(raw) ? Math.floor(raw) : CONTENT_IDEAS_DEFAULT_COUNT;
|
|
17426
|
+
return Math.min(CONTENT_IDEAS_MAX_COUNT, Math.max(1, n));
|
|
17427
|
+
}
|
|
17428
|
+
function contentIdeasCreditFeature(count) {
|
|
17429
|
+
return count > CONTENT_IDEAS_PER_CHARGE ? "content-ideas:10" : "content-ideas";
|
|
17430
|
+
}
|
|
17431
|
+
function effectiveContentModel(feature, llmModel) {
|
|
17432
|
+
if (typeof llmModel === "string" && getLlmModel(llmModel)?.structuredOutputMode != null) return llmModel;
|
|
17433
|
+
return LLM_FEATURE_DEFAULTS[feature];
|
|
17434
|
+
}
|
|
17435
|
+
function contentRecipeCreditId(llmModel, reasoningEffort) {
|
|
17436
|
+
return buildLlmCreditIdentifier("content-recipe", effectiveContentModel("content-recipe", llmModel), reasoningEffort);
|
|
17437
|
+
}
|
|
17438
|
+
function contentIdeasCreditId(count, llmModel, reasoningEffort) {
|
|
17439
|
+
return buildLlmCreditIdentifier(
|
|
17440
|
+
contentIdeasCreditFeature(clampContentIdeasCount(count)),
|
|
17441
|
+
effectiveContentModel("content-ideas", llmModel),
|
|
17442
|
+
reasoningEffort
|
|
17443
|
+
);
|
|
17444
|
+
}
|
|
17445
|
+
var CONTENT_RECIPE_IDEAS_CREDIT_IDS = [
|
|
17446
|
+
"content-recipe:economy",
|
|
17447
|
+
"content-recipe",
|
|
17448
|
+
"content-recipe:premium",
|
|
17449
|
+
"content-ideas:economy",
|
|
17450
|
+
"content-ideas",
|
|
17451
|
+
"content-ideas:premium",
|
|
17452
|
+
"content-ideas:10:economy",
|
|
17453
|
+
"content-ideas:10",
|
|
17454
|
+
"content-ideas:10:premium"
|
|
17455
|
+
];
|
|
17456
|
+
|
|
16670
17457
|
// src/smart-cut-windows.ts
|
|
16671
17458
|
var SMART_CUT_WINDOW_MAX = 24;
|
|
16672
17459
|
var SMART_CUT_WINDOW_MIN = 1;
|
|
@@ -18816,6 +19603,12 @@ var STUDIO_TRANSIENT_KEYS = [
|
|
|
18816
19603
|
"freecutDraftUrl"
|
|
18817
19604
|
];
|
|
18818
19605
|
var STUDIO_SHOT_TRANSIENT_KEYS = ["pendingClips", "pendingClip", "pendingStills"];
|
|
19606
|
+
var STUDIO_SHOT_DRAFT_KEYS = ["stillSlots", "clipSlots"];
|
|
19607
|
+
var STUDIO_SHOT_PRIVATE_KEYS = [...STUDIO_SHOT_TRANSIENT_KEYS, ...STUDIO_SHOT_DRAFT_KEYS];
|
|
19608
|
+
var STUDIO_TAKE_VOICE_KEYS = ["revoiceTo", "voiceMode"];
|
|
19609
|
+
function isRecord2(value) {
|
|
19610
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
19611
|
+
}
|
|
18819
19612
|
function withoutKeys(source, drop) {
|
|
18820
19613
|
const kept = {};
|
|
18821
19614
|
for (const [key, value] of Object.entries(source)) {
|
|
@@ -18824,15 +19617,15 @@ function withoutKeys(source, drop) {
|
|
|
18824
19617
|
}
|
|
18825
19618
|
return kept;
|
|
18826
19619
|
}
|
|
18827
|
-
function stripShots(value) {
|
|
19620
|
+
function stripShots(value, drop) {
|
|
18828
19621
|
if (!Array.isArray(value)) return value;
|
|
18829
19622
|
let changed = false;
|
|
18830
19623
|
const out = value.map((entry) => {
|
|
18831
19624
|
if (!entry || typeof entry !== "object" || Array.isArray(entry)) return entry;
|
|
18832
19625
|
const shot = entry;
|
|
18833
|
-
if (!
|
|
19626
|
+
if (!drop.some((key) => key in shot)) return entry;
|
|
18834
19627
|
changed = true;
|
|
18835
|
-
return withoutKeys(shot,
|
|
19628
|
+
return withoutKeys(shot, drop);
|
|
18836
19629
|
});
|
|
18837
19630
|
return changed ? out : value;
|
|
18838
19631
|
}
|
|
@@ -18842,13 +19635,82 @@ function stripStudioTransientSettings(settings) {
|
|
|
18842
19635
|
if (!studio || typeof studio !== "object" || Array.isArray(studio)) return settings;
|
|
18843
19636
|
const source = studio;
|
|
18844
19637
|
const kept = withoutKeys(source, STUDIO_TRANSIENT_KEYS);
|
|
18845
|
-
const shots = stripShots(source.shots);
|
|
19638
|
+
const shots = stripShots(source.shots, STUDIO_SHOT_PRIVATE_KEYS);
|
|
18846
19639
|
if (source.shots !== void 0) kept.shots = shots;
|
|
18847
19640
|
if (Object.keys(kept).length === Object.keys(source).length && shots === source.shots) {
|
|
18848
19641
|
return settings;
|
|
18849
19642
|
}
|
|
18850
19643
|
return { ...settings, studio: kept };
|
|
18851
19644
|
}
|
|
19645
|
+
function stripStudioTakeVoiceRecords(nodes) {
|
|
19646
|
+
if (!Array.isArray(nodes)) return nodes;
|
|
19647
|
+
let changed = false;
|
|
19648
|
+
const out = nodes.map((node) => {
|
|
19649
|
+
const data = isRecord2(node) ? node.data : void 0;
|
|
19650
|
+
const rows = isRecord2(data) ? data.generatedResults : void 0;
|
|
19651
|
+
if (!Array.isArray(rows)) return node;
|
|
19652
|
+
let touched = false;
|
|
19653
|
+
const kept = rows.map((row) => {
|
|
19654
|
+
if (!isRecord2(row) || !STUDIO_TAKE_VOICE_KEYS.some((key) => key in row)) return row;
|
|
19655
|
+
touched = true;
|
|
19656
|
+
return withoutKeys(row, STUDIO_TAKE_VOICE_KEYS);
|
|
19657
|
+
});
|
|
19658
|
+
if (!touched) return node;
|
|
19659
|
+
changed = true;
|
|
19660
|
+
return { ...node, data: { ...data, generatedResults: kept } };
|
|
19661
|
+
});
|
|
19662
|
+
return changed ? out : nodes;
|
|
19663
|
+
}
|
|
19664
|
+
function stripStudioDraftSettings(settings) {
|
|
19665
|
+
if (!settings || typeof settings !== "object") return settings;
|
|
19666
|
+
const studio = settings.studio;
|
|
19667
|
+
if (!isRecord2(studio)) return settings;
|
|
19668
|
+
const shots = stripShots(studio.shots, STUDIO_SHOT_PRIVATE_KEYS);
|
|
19669
|
+
const trash = stripBin(studio.trash);
|
|
19670
|
+
if (shots === studio.shots && trash === studio.trash) return settings;
|
|
19671
|
+
const kept = { ...studio };
|
|
19672
|
+
if (shots !== studio.shots) kept.shots = shots;
|
|
19673
|
+
if (trash !== studio.trash) kept.trash = trash;
|
|
19674
|
+
return { ...settings, studio: kept };
|
|
19675
|
+
}
|
|
19676
|
+
function stripBin(trash) {
|
|
19677
|
+
if (!Array.isArray(trash)) return trash;
|
|
19678
|
+
let changed = false;
|
|
19679
|
+
const out = [];
|
|
19680
|
+
for (const entry of trash) {
|
|
19681
|
+
if (isRecord2(entry) && entry.kind === "slot") {
|
|
19682
|
+
changed = true;
|
|
19683
|
+
continue;
|
|
19684
|
+
}
|
|
19685
|
+
const kept = !isRecord2(entry) ? entry : entry.kind === "shot" ? binSceneForReader(entry) : binTakeForReader(entry);
|
|
19686
|
+
if (kept !== entry) changed = true;
|
|
19687
|
+
out.push(kept);
|
|
19688
|
+
}
|
|
19689
|
+
return changed ? out : trash;
|
|
19690
|
+
}
|
|
19691
|
+
function binSceneForReader(entry) {
|
|
19692
|
+
const graph = entry.graph;
|
|
19693
|
+
if (!isRecord2(graph)) return entry;
|
|
19694
|
+
const nodes = stripStudioTakeVoiceRecords(graph.nodes);
|
|
19695
|
+
const settings = stripStudioDraftSettings(graph.settings);
|
|
19696
|
+
if (nodes === graph.nodes && settings === graph.settings) return entry;
|
|
19697
|
+
return { ...entry, graph: { ...graph, nodes, settings } };
|
|
19698
|
+
}
|
|
19699
|
+
function binTakeForReader(entry) {
|
|
19700
|
+
const result = entry.result;
|
|
19701
|
+
if (!isRecord2(result) || !STUDIO_TAKE_VOICE_KEYS.some((key) => key in result)) return entry;
|
|
19702
|
+
return { ...entry, result: withoutKeys(result, STUDIO_TAKE_VOICE_KEYS) };
|
|
19703
|
+
}
|
|
19704
|
+
function stripStudioDraftWorkflow(row) {
|
|
19705
|
+
const nodes = "nodes" in row ? stripStudioTakeVoiceRecords(row.nodes) : row.nodes;
|
|
19706
|
+
const settings = "settings" in row ? stripStudioDraftSettings(row.settings) : row.settings;
|
|
19707
|
+
if (nodes === row.nodes && settings === row.settings) return row;
|
|
19708
|
+
return {
|
|
19709
|
+
...row,
|
|
19710
|
+
...nodes !== row.nodes ? { nodes } : {},
|
|
19711
|
+
...settings !== row.settings ? { settings } : {}
|
|
19712
|
+
};
|
|
19713
|
+
}
|
|
18852
19714
|
var scene3DV2OverrideInputSchema = zod.z.discriminatedUnion("kind", [
|
|
18853
19715
|
zod.z.object({
|
|
18854
19716
|
kind: zod.z.literal("entity-transform"),
|
|
@@ -19293,6 +20155,123 @@ function mergeEdlSourceOffsets(edl, offsets, opts) {
|
|
|
19293
20155
|
const merged = Array.isArray(edl?.sources) ? { ...edl, sources: edl.sources.map((s) => s && typeof s === "object" && next.has(s.id) ? { ...s, offsetMs: next.get(s.id) } : s) } : { ...edl };
|
|
19294
20156
|
return { edl: merged, ...anchor !== void 0 ? { anchor } : {}, applied, ignored };
|
|
19295
20157
|
}
|
|
20158
|
+
var AUDIO_SYNC_MIN_CONFIDENCE = 0.5;
|
|
20159
|
+
function readAudioSyncRows(sync) {
|
|
20160
|
+
let value = sync;
|
|
20161
|
+
if (typeof value === "string") {
|
|
20162
|
+
try {
|
|
20163
|
+
value = JSON.parse(value);
|
|
20164
|
+
} catch {
|
|
20165
|
+
return null;
|
|
20166
|
+
}
|
|
20167
|
+
}
|
|
20168
|
+
if (!value || typeof value !== "object") return null;
|
|
20169
|
+
const { reference, offsets } = value;
|
|
20170
|
+
if (!Array.isArray(offsets)) return null;
|
|
20171
|
+
const rows = /* @__PURE__ */ new Map();
|
|
20172
|
+
for (const row of offsets) {
|
|
20173
|
+
if (!row || typeof row !== "object") return null;
|
|
20174
|
+
const { sourceId, offsetMs, confidence } = row;
|
|
20175
|
+
if (typeof sourceId !== "string" || !isFiniteNumber(offsetMs)) return null;
|
|
20176
|
+
if (!rows.has(sourceId)) rows.set(sourceId, { offsetMs, confidence: isFiniteNumber(confidence) ? confidence : 0 });
|
|
20177
|
+
}
|
|
20178
|
+
if (typeof reference === "string" && reference && !rows.has(reference)) rows.set(reference, { offsetMs: 0, confidence: 1 });
|
|
20179
|
+
return rows;
|
|
20180
|
+
}
|
|
20181
|
+
var handSet = (s) => isFiniteNumber(s.offsetMs);
|
|
20182
|
+
function plannerClockSource(sources) {
|
|
20183
|
+
return sources.find((s) => s.role === "master-audio") ?? sources[0];
|
|
20184
|
+
}
|
|
20185
|
+
function applyAudioSyncOffsets(sources, sync) {
|
|
20186
|
+
const rows = readAudioSyncRows(sync);
|
|
20187
|
+
if (!rows) return { ok: false, issues: [{ code: "not-audio-sync" }] };
|
|
20188
|
+
const list = Array.isArray(sources) ? sources.filter((s) => !!s && typeof s === "object") : [];
|
|
20189
|
+
const anchor = plannerClockSource(list);
|
|
20190
|
+
if (!anchor) return { ok: true, sources: [...list], applied: [] };
|
|
20191
|
+
const issues = [];
|
|
20192
|
+
for (const s of list) if (s.offsetMs !== void 0 && !handSet(s)) issues.push({ code: "invalid-offset", sourceId: s.id });
|
|
20193
|
+
if (handSet(anchor) && anchor.offsetMs !== 0) {
|
|
20194
|
+
issues.push({ code: "anchor-offset", sourceId: anchor.id, offsetMs: anchor.offsetMs });
|
|
20195
|
+
}
|
|
20196
|
+
const measured = {};
|
|
20197
|
+
for (const s of list) {
|
|
20198
|
+
if (s.id === anchor.id || handSet(s)) continue;
|
|
20199
|
+
const row = rows.get(s.id);
|
|
20200
|
+
if (!row) issues.push({ code: "unmeasured", sourceId: s.id });
|
|
20201
|
+
else if (!(row.confidence >= AUDIO_SYNC_MIN_CONFIDENCE)) issues.push({ code: "weak-match", sourceId: s.id, confidence: row.confidence, anchor: false });
|
|
20202
|
+
else measured[s.id] = row.offsetMs;
|
|
20203
|
+
}
|
|
20204
|
+
if (Object.keys(measured).length > 0) {
|
|
20205
|
+
const row = rows.get(anchor.id);
|
|
20206
|
+
if (!row) issues.push({ code: "anchor-unmeasured", sourceId: anchor.id });
|
|
20207
|
+
else if (!(row.confidence >= AUDIO_SYNC_MIN_CONFIDENCE)) issues.push({ code: "weak-match", sourceId: anchor.id, confidence: row.confidence, anchor: true });
|
|
20208
|
+
else measured[anchor.id] = row.offsetMs;
|
|
20209
|
+
}
|
|
20210
|
+
if (issues.length > 0) return { ok: false, issues };
|
|
20211
|
+
if (Object.keys(measured).length === 0) return { ok: true, sources: [...list], anchor: anchor.id, applied: [] };
|
|
20212
|
+
const pseudo = { version: 1, clock: "master", sources: list, segments: [] };
|
|
20213
|
+
const merged = mergeEdlSourceOffsets(pseudo, measured, { anchor: anchor.id });
|
|
20214
|
+
const byId = new Map(merged.edl.sources.map((s) => [s.id, s.offsetMs]));
|
|
20215
|
+
const applied = new Set(merged.applied);
|
|
20216
|
+
return {
|
|
20217
|
+
ok: true,
|
|
20218
|
+
sources: list.map((s) => applied.has(s.id) ? { ...s, offsetMs: byId.get(s.id) } : s),
|
|
20219
|
+
anchor: anchor.id,
|
|
20220
|
+
applied: merged.applied
|
|
20221
|
+
};
|
|
20222
|
+
}
|
|
20223
|
+
function resolveEditPlanSources(sources, opts = {}) {
|
|
20224
|
+
const list = Array.isArray(sources) ? sources.filter((s) => !!s && typeof s === "object") : [];
|
|
20225
|
+
const anchor = plannerClockSource(list);
|
|
20226
|
+
const issues = [];
|
|
20227
|
+
let planned = [...list];
|
|
20228
|
+
if (opts.offsets !== void 0) {
|
|
20229
|
+
const synced = applyAudioSyncOffsets(list, opts.offsets);
|
|
20230
|
+
if (synced.ok) planned = synced.sources;
|
|
20231
|
+
else issues.push(...synced.issues);
|
|
20232
|
+
} else {
|
|
20233
|
+
for (const s of list) if (s.offsetMs !== void 0 && !handSet(s)) issues.push({ code: "invalid-offset", sourceId: s.id });
|
|
20234
|
+
if (anchor && handSet(anchor) && anchor.offsetMs !== 0) {
|
|
20235
|
+
issues.push({ code: "anchor-offset", sourceId: anchor.id, offsetMs: anchor.offsetMs });
|
|
20236
|
+
}
|
|
20237
|
+
}
|
|
20238
|
+
const spoken = opts.transcriptSourceId ? planned.find((s) => s.id === opts.transcriptSourceId) : void 0;
|
|
20239
|
+
if (spoken && anchor && spoken.id !== anchor.id && handSet(spoken) && spoken.offsetMs !== 0) {
|
|
20240
|
+
issues.push({ code: "transcript-off-clock", sourceId: spoken.id, masterId: anchor.id, offsetMs: spoken.offsetMs });
|
|
20241
|
+
}
|
|
20242
|
+
if (issues.length > 0) return { ok: false, issues };
|
|
20243
|
+
return { ok: true, sources: planned, ...spoken ? { transcriptSourceId: spoken.id } : {} };
|
|
20244
|
+
}
|
|
20245
|
+
function editPlanTranscriptOrigin(producerId, typeOf, edges) {
|
|
20246
|
+
if (typeOf(producerId) !== "transcribe") return void 0;
|
|
20247
|
+
let current = producerId;
|
|
20248
|
+
for (let hop = 0; hop < 4; hop++) {
|
|
20249
|
+
const upstream = [...new Set(edges.filter((e) => e.target === current).map((e) => e.source))];
|
|
20250
|
+
if (upstream.length !== 1) return void 0;
|
|
20251
|
+
const up = upstream[0];
|
|
20252
|
+
if (typeOf(up) !== "extract-audio") return up;
|
|
20253
|
+
current = up;
|
|
20254
|
+
}
|
|
20255
|
+
return void 0;
|
|
20256
|
+
}
|
|
20257
|
+
function describeAudioSyncOffsetIssue(issue2, labelOf = (id) => id) {
|
|
20258
|
+
switch (issue2.code) {
|
|
20259
|
+
case "transcript-off-clock":
|
|
20260
|
+
return `the transcript was made from "${labelOf(issue2.sourceId)}", which is ${issue2.offsetMs} ms off the master "${labelOf(issue2.masterId)}" \u2014 the plan follows the master's clock, so transcribe "${labelOf(issue2.masterId)}", or mark "${labelOf(issue2.sourceId)}" as master audio`;
|
|
20261
|
+
case "not-audio-sync":
|
|
20262
|
+
return "the offsets carry no Audio Sync result \u2014 pass its job's output_data.json (on the canvas: connect Audio Sync's Offsets output and run it)";
|
|
20263
|
+
case "invalid-offset":
|
|
20264
|
+
return `the offset set on "${labelOf(issue2.sourceId)}" is not a number of milliseconds`;
|
|
20265
|
+
case "anchor-offset":
|
|
20266
|
+
return `"${labelOf(issue2.sourceId)}" is the master (the plan follows its clock), so its offset must be 0, not ${issue2.offsetMs} ms`;
|
|
20267
|
+
case "anchor-unmeasured":
|
|
20268
|
+
return `audio-sync did not measure "${labelOf(issue2.sourceId)}", the master the other sources are timed against \u2014 add it to audio-sync's sources`;
|
|
20269
|
+
case "weak-match":
|
|
20270
|
+
return issue2.anchor ? `audio-sync's match for "${labelOf(issue2.sourceId)}", the master the other sources are timed against, is too weak to trust (confidence ${issue2.confidence}; ${AUDIO_SYNC_MIN_CONFIDENCE} needed) \u2014 set the other sources' offsets by hand, or mark a better-recorded source as master audio` : `audio-sync's match for "${labelOf(issue2.sourceId)}" is too weak to trust (confidence ${issue2.confidence}; ${AUDIO_SYNC_MIN_CONFIDENCE} needed) \u2014 set its offset by hand`;
|
|
20271
|
+
case "unmeasured":
|
|
20272
|
+
return `"${labelOf(issue2.sourceId)}" was not measured by audio-sync \u2014 wire it into audio-sync, or set its offset by hand (0 if it started with the master)`;
|
|
20273
|
+
}
|
|
20274
|
+
}
|
|
19296
20275
|
var EDL_FULL_FRAME = Object.freeze({ x: 0, y: 0, w: 1, h: 1 });
|
|
19297
20276
|
function isInFrameRegion(r) {
|
|
19298
20277
|
if (!r || typeof r !== "object") return false;
|
|
@@ -19805,6 +20784,105 @@ function normalizeTranscript(input) {
|
|
|
19805
20784
|
};
|
|
19806
20785
|
}
|
|
19807
20786
|
|
|
20787
|
+
// src/camera-switch-contract.ts
|
|
20788
|
+
var CAMERA_SWITCH_DEFAULTS = Object.freeze({
|
|
20789
|
+
/** The shortest shot; a shorter turn (an interjection) holds the shot. */
|
|
20790
|
+
minShotMs: 2500,
|
|
20791
|
+
/** Cut this long before the new speaker starts. */
|
|
20792
|
+
leadMs: 200,
|
|
20793
|
+
/** With a `wide` camera: break to it after this long on one camera. */
|
|
20794
|
+
maxShotMs: 2e4,
|
|
20795
|
+
/** With a `wide` camera: every N-th cut goes to the wide (0 = off). */
|
|
20796
|
+
wideEvery: 0,
|
|
20797
|
+
/** Overlapping speech → a side-by-side / stacked layout hint. */
|
|
20798
|
+
layoutHints: false
|
|
20799
|
+
});
|
|
20800
|
+
var CAMERA_SWITCH_CREDIT_ID = "camera-switch";
|
|
20801
|
+
var parseMaybe = (raw) => {
|
|
20802
|
+
if (typeof raw !== "string") return raw;
|
|
20803
|
+
try {
|
|
20804
|
+
return JSON.parse(raw);
|
|
20805
|
+
} catch {
|
|
20806
|
+
return void 0;
|
|
20807
|
+
}
|
|
20808
|
+
};
|
|
20809
|
+
function transcriptSpeakerLabels(transcript) {
|
|
20810
|
+
const words = parseMaybe(transcript)?.words;
|
|
20811
|
+
if (!Array.isArray(words)) return [];
|
|
20812
|
+
const seen = /* @__PURE__ */ new Set();
|
|
20813
|
+
for (const w of words) {
|
|
20814
|
+
const s = w?.speaker;
|
|
20815
|
+
if (typeof s === "string" && s && !seen.has(s)) seen.add(s);
|
|
20816
|
+
}
|
|
20817
|
+
return [...seen];
|
|
20818
|
+
}
|
|
20819
|
+
function cameraSwitchCameras(edl) {
|
|
20820
|
+
const sources = parseMaybe(edl)?.sources;
|
|
20821
|
+
if (!Array.isArray(sources)) return [];
|
|
20822
|
+
return sources.filter((s) => !!s && typeof s.id === "string").filter((s) => s.kind !== "audio" && s.role !== "wide" && s.role !== "screen" && s.role !== "master-audio").map((s) => ({ id: s.id, ...s.role ? { role: s.role } : {} }));
|
|
20823
|
+
}
|
|
20824
|
+
var CAMERA_SWITCH_BOUNDS = Object.freeze({
|
|
20825
|
+
minShotMs: Object.freeze({ min: 500, max: 6e4 }),
|
|
20826
|
+
leadMs: Object.freeze({ min: 0, max: 5e3 }),
|
|
20827
|
+
maxShotMs: Object.freeze({ min: 0, max: 6e5 }),
|
|
20828
|
+
wideEvery: Object.freeze({ min: 0, max: 20 })
|
|
20829
|
+
});
|
|
20830
|
+
var CAMERA_SWITCH_NAME_MAX = 80;
|
|
20831
|
+
function clampCameraSwitchSetting(key, value) {
|
|
20832
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return void 0;
|
|
20833
|
+
const { min, max } = CAMERA_SWITCH_BOUNDS[key];
|
|
20834
|
+
return Math.min(max, Math.max(min, Math.round(value)));
|
|
20835
|
+
}
|
|
20836
|
+
function cleanSpeakerNames(raw) {
|
|
20837
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
|
|
20838
|
+
const out = {};
|
|
20839
|
+
for (const [label, name] of Object.entries(raw)) {
|
|
20840
|
+
const trimmed2 = typeof name === "string" ? name.trim() : "";
|
|
20841
|
+
if (label && trimmed2) out[label] = trimmed2.slice(0, CAMERA_SWITCH_NAME_MAX);
|
|
20842
|
+
}
|
|
20843
|
+
return out;
|
|
20844
|
+
}
|
|
20845
|
+
function cameraSwitchEdlProblem(edl) {
|
|
20846
|
+
const v = parseMaybe(edl);
|
|
20847
|
+
if (!v || typeof v !== "object" || Array.isArray(v)) return "camera-switch: `edl` must be one edit (an EDL object).";
|
|
20848
|
+
if (Array.isArray(v.clips)) return "camera-switch: `edl` is a clip set \u2014 pass one clip's EDL (a clip set fans out one run per clip on the canvas).";
|
|
20849
|
+
if (!Array.isArray(v.sources) || !Array.isArray(v.segments)) return "camera-switch: `edl` needs `sources` and `segments`.";
|
|
20850
|
+
if (v.segments.length === 0) return "camera-switch: `edl` has no segments.";
|
|
20851
|
+
const num2 = (x) => typeof x === "number" && Number.isFinite(x) ? x : void 0;
|
|
20852
|
+
for (const [i, row] of v.segments.entries()) {
|
|
20853
|
+
const seg = row;
|
|
20854
|
+
const inMs = num2(seg?.inMs), outMs = num2(seg?.outMs);
|
|
20855
|
+
if (inMs === void 0 || outMs === void 0 || !(outMs > inMs)) return `camera-switch: segment ${i} needs a numeric inMs < outMs.`;
|
|
20856
|
+
}
|
|
20857
|
+
if (v.clock === "output") return "camera-switch: the edit must be on the master clock (an edit-plan EDL), not a rendered output's.";
|
|
20858
|
+
return null;
|
|
20859
|
+
}
|
|
20860
|
+
function defaultSpeakerMap(labels, cameraIds, existing = {}) {
|
|
20861
|
+
const out = {};
|
|
20862
|
+
labels.forEach((label, i) => {
|
|
20863
|
+
if (Object.prototype.hasOwnProperty.call(existing, label)) {
|
|
20864
|
+
const kept = existing[label];
|
|
20865
|
+
if (typeof kept === "string") out[label] = kept;
|
|
20866
|
+
return;
|
|
20867
|
+
}
|
|
20868
|
+
if (i < cameraIds.length) out[label] = cameraIds[i];
|
|
20869
|
+
});
|
|
20870
|
+
return out;
|
|
20871
|
+
}
|
|
20872
|
+
function cameraSwitchSettingsPayload(data, edl, transcript) {
|
|
20873
|
+
const existing = data.speakerMap && typeof data.speakerMap === "object" ? data.speakerMap : {};
|
|
20874
|
+
const out = {
|
|
20875
|
+
speakerMap: defaultSpeakerMap(transcriptSpeakerLabels(transcript), cameraSwitchCameras(edl).map((c) => c.id), existing),
|
|
20876
|
+
speakerNames: cleanSpeakerNames(data.speakerNames),
|
|
20877
|
+
layoutHints: data.layoutHints === true
|
|
20878
|
+
};
|
|
20879
|
+
for (const key of Object.keys(CAMERA_SWITCH_BOUNDS)) {
|
|
20880
|
+
const v = clampCameraSwitchSetting(key, data[key]);
|
|
20881
|
+
if (v !== void 0) out[key] = v;
|
|
20882
|
+
}
|
|
20883
|
+
return out;
|
|
20884
|
+
}
|
|
20885
|
+
|
|
19808
20886
|
// src/edit-plan-contract.ts
|
|
19809
20887
|
var EDIT_PLAN_MODES = ["tighten", "clips", "chapters"];
|
|
19810
20888
|
var EDIT_PLAN_TIERS = ["economy", "standard", "premium"];
|
|
@@ -19843,8 +20921,10 @@ function unwrapEditPlanOutput(outputData) {
|
|
|
19843
20921
|
}
|
|
19844
20922
|
|
|
19845
20923
|
exports.ACCESS_LEVELS = ACCESS_LEVELS;
|
|
20924
|
+
exports.ACTION_CARD_KINDS = ACTION_CARD_KINDS;
|
|
19846
20925
|
exports.ACTIVE_SCENE_HELPERS = ACTIVE_SCENE_HELPERS;
|
|
19847
20926
|
exports.ADVANCED_MODE_UNAVAILABLE_REASON = ADVANCED_MODE_UNAVAILABLE_REASON;
|
|
20927
|
+
exports.ADVICE_FAMILIES = ADVICE_FAMILIES;
|
|
19848
20928
|
exports.AGGREGATEABLE_TYPES = AGGREGATEABLE_TYPES;
|
|
19849
20929
|
exports.AGGREGATE_LANE_SOURCE_TYPES = AGGREGATE_LANE_SOURCE_TYPES;
|
|
19850
20930
|
exports.AI_AVATAR_DURATION_BUCKETS = AI_AVATAR_DURATION_BUCKETS;
|
|
@@ -19857,6 +20937,7 @@ exports.ALL_CAPTION_STYLES = ALL_CAPTION_STYLES;
|
|
|
19857
20937
|
exports.ANIMALS = ANIMALS;
|
|
19858
20938
|
exports.ANIMAL_SUBCATEGORY_LABELS = ANIMAL_SUBCATEGORY_LABELS;
|
|
19859
20939
|
exports.ANIMAL_SUBCATEGORY_ORDER = ANIMAL_SUBCATEGORY_ORDER;
|
|
20940
|
+
exports.ANIMATE_SUB_GATES = ANIMATE_SUB_GATES;
|
|
19860
20941
|
exports.ASPECT_RATIO_DIMENSIONS = ASPECT_RATIO_DIMENSIONS;
|
|
19861
20942
|
exports.AUDIO_ADDON_PROVIDERS = AUDIO_ADDON_PROVIDERS;
|
|
19862
20943
|
exports.AUDIO_CROSSFADE_CURVES = AUDIO_CROSSFADE_CURVES;
|
|
@@ -19866,8 +20947,10 @@ exports.AUDIO_FX_PRESET_LABELS = AUDIO_FX_PRESET_LABELS;
|
|
|
19866
20947
|
exports.AUDIO_FX_PRESET_SET = AUDIO_FX_PRESET_SET;
|
|
19867
20948
|
exports.AUDIO_FX_REVERB_PRESETS = AUDIO_FX_REVERB_PRESETS;
|
|
19868
20949
|
exports.AUDIO_PRODUCER_TYPES = AUDIO_PRODUCER_TYPES;
|
|
20950
|
+
exports.AUDIO_SYNC_MIN_CONFIDENCE = AUDIO_SYNC_MIN_CONFIDENCE;
|
|
19869
20951
|
exports.AddBRollResultSchema = AddBRollResultSchema;
|
|
19870
20952
|
exports.AnchorSceneStyleResultSchema = AnchorSceneStyleResultSchema;
|
|
20953
|
+
exports.AnimateSubGateSchema = AnimateSubGateSchema;
|
|
19871
20954
|
exports.AssetRefSchema = AssetRefSchema;
|
|
19872
20955
|
exports.AuditImagesResultSchema = AuditImagesResultSchema;
|
|
19873
20956
|
exports.AuditImagesShotEntrySchema = AuditImagesShotEntrySchema;
|
|
@@ -19877,13 +20960,19 @@ exports.AvatarPayloadError = AvatarPayloadError;
|
|
|
19877
20960
|
exports.BOARD_TO_ASSET_TYPE = BOARD_TO_ASSET_TYPE;
|
|
19878
20961
|
exports.BOARD_TO_COLUMN = BOARD_TO_COLUMN;
|
|
19879
20962
|
exports.BOARD_VARIANTS = BOARD_VARIANTS;
|
|
20963
|
+
exports.BRAND_LESSON_KINDS = BRAND_LESSON_KINDS;
|
|
19880
20964
|
exports.BridgeToNextSceneInputSchema = BridgeToNextSceneInputSchema;
|
|
19881
20965
|
exports.BridgeToNextSceneResultSchema = BridgeToNextSceneResultSchema;
|
|
20966
|
+
exports.CAMERA_SWITCH_BOUNDS = CAMERA_SWITCH_BOUNDS;
|
|
20967
|
+
exports.CAMERA_SWITCH_CREDIT_ID = CAMERA_SWITCH_CREDIT_ID;
|
|
20968
|
+
exports.CAMERA_SWITCH_DEFAULTS = CAMERA_SWITCH_DEFAULTS;
|
|
20969
|
+
exports.CAMERA_SWITCH_NAME_MAX = CAMERA_SWITCH_NAME_MAX;
|
|
19882
20970
|
exports.CAPTION_LEVER_BOUNDS = CAPTION_LEVER_BOUNDS;
|
|
19883
20971
|
exports.CAPTION_LOOKS = CAPTION_LOOKS;
|
|
19884
20972
|
exports.CAPTION_LOOK_IDS = CAPTION_LOOK_IDS;
|
|
19885
20973
|
exports.CAPTION_MAX_WORDS_PER_LINE_MAX = CAPTION_MAX_WORDS_PER_LINE_MAX;
|
|
19886
20974
|
exports.CAPTION_MAX_WORDS_PER_LINE_MIN = CAPTION_MAX_WORDS_PER_LINE_MIN;
|
|
20975
|
+
exports.CARD_OUTCOME_STATES = CARD_OUTCOME_STATES;
|
|
19887
20976
|
exports.CATEGORY_DURATION_DEFAULTS = CATEGORY_DURATION_DEFAULTS;
|
|
19888
20977
|
exports.CHARACTER_ASPECT_DEFAULTS = CHARACTER_ASPECT_DEFAULTS;
|
|
19889
20978
|
exports.CHARACTER_ASPECT_OPTIONS = CHARACTER_ASPECT_OPTIONS;
|
|
@@ -19918,8 +21007,24 @@ exports.COMBINE_TRANSITIONS = COMBINE_TRANSITIONS;
|
|
|
19918
21007
|
exports.COMBINE_TRANSITION_GROUP_LABELS = COMBINE_TRANSITION_GROUP_LABELS;
|
|
19919
21008
|
exports.COMBINE_TRANSITION_GROUP_ORDER = COMBINE_TRANSITION_GROUP_ORDER;
|
|
19920
21009
|
exports.COMBINE_TRANSITION_IDS = COMBINE_TRANSITION_IDS;
|
|
21010
|
+
exports.COMPETITORS_MAX = COMPETITORS_MAX;
|
|
21011
|
+
exports.COMPETITOR_ABOUT_PLATFORMS = COMPETITOR_ABOUT_PLATFORMS;
|
|
21012
|
+
exports.COMPETITOR_ACCOUNT_KEYS = COMPETITOR_ACCOUNT_KEYS;
|
|
21013
|
+
exports.COMPETITOR_DEFAULT_ABOUT_PLATFORMS = COMPETITOR_DEFAULT_ABOUT_PLATFORMS;
|
|
21014
|
+
exports.COMPETITOR_SCAN_CREDIT_COSTS = COMPETITOR_SCAN_CREDIT_COSTS;
|
|
21015
|
+
exports.COMPETITOR_SCAN_MAX_SEARCHES = COMPETITOR_SCAN_MAX_SEARCHES;
|
|
21016
|
+
exports.COMPETITOR_SCAN_NODE_TYPE = COMPETITOR_SCAN_NODE_TYPE;
|
|
21017
|
+
exports.COMPETITOR_SCHEDULES = COMPETITOR_SCHEDULES;
|
|
19921
21018
|
exports.COMPOSER_PLAN_FIELDS = COMPOSER_PLAN_FIELDS;
|
|
19922
21019
|
exports.COMPOSER_PLAN_MAP = COMPOSER_PLAN_MAP;
|
|
21020
|
+
exports.CONTENT_IDEAS_BRAND_MAX = CONTENT_IDEAS_BRAND_MAX;
|
|
21021
|
+
exports.CONTENT_IDEAS_DEFAULT_COUNT = CONTENT_IDEAS_DEFAULT_COUNT;
|
|
21022
|
+
exports.CONTENT_IDEAS_LANGUAGE_MAX = CONTENT_IDEAS_LANGUAGE_MAX;
|
|
21023
|
+
exports.CONTENT_IDEAS_MAX_COUNT = CONTENT_IDEAS_MAX_COUNT;
|
|
21024
|
+
exports.CONTENT_IDEAS_MAX_RECIPE_INPUTS = CONTENT_IDEAS_MAX_RECIPE_INPUTS;
|
|
21025
|
+
exports.CONTENT_IDEAS_PER_CHARGE = CONTENT_IDEAS_PER_CHARGE;
|
|
21026
|
+
exports.CONTENT_RECIPE_IDEAS_CREDIT_IDS = CONTENT_RECIPE_IDEAS_CREDIT_IDS;
|
|
21027
|
+
exports.CONTENT_RECIPE_SOURCE_MAX = CONTENT_RECIPE_SOURCE_MAX;
|
|
19923
21028
|
exports.CONTENT_TYPES_BY_PLATFORM = CONTENT_TYPES_BY_PLATFORM;
|
|
19924
21029
|
exports.CREATURE_ATTACH_COLUMNS = CREATURE_ATTACH_COLUMNS;
|
|
19925
21030
|
exports.CREDIT_BASE_USD = CREDIT_BASE_USD;
|
|
@@ -19939,6 +21044,7 @@ exports.DEFAULT_FRAME_DELIVERY = DEFAULT_FRAME_DELIVERY;
|
|
|
19939
21044
|
exports.DEFAULT_FRAME_FIT = DEFAULT_FRAME_FIT;
|
|
19940
21045
|
exports.DEFAULT_LABEL_BY_SOURCE = DEFAULT_LABEL_BY_SOURCE;
|
|
19941
21046
|
exports.DEFAULT_LOCATION_USAGE_MODE = DEFAULT_LOCATION_USAGE_MODE;
|
|
21047
|
+
exports.DEFAULT_MUSIC_PROVIDER = DEFAULT_MUSIC_PROVIDER;
|
|
19942
21048
|
exports.DEFAULT_OVERLAY_QR = DEFAULT_OVERLAY_QR;
|
|
19943
21049
|
exports.DEFAULT_OVERLAY_SHAPE = DEFAULT_OVERLAY_SHAPE;
|
|
19944
21050
|
exports.DEFAULT_OVERLAY_TEXT = DEFAULT_OVERLAY_TEXT;
|
|
@@ -19998,6 +21104,8 @@ exports.EntityStaleEventSchema = EntityStaleEventSchema;
|
|
|
19998
21104
|
exports.EntityStateChangeEventSchema = EntityStateChangeEventSchema;
|
|
19999
21105
|
exports.FACE_SWAP_PROVIDERS = FACE_SWAP_PROVIDERS;
|
|
20000
21106
|
exports.FAL_LIP_SYNC_PROVIDERS = FAL_LIP_SYNC_PROVIDERS;
|
|
21107
|
+
exports.FAN_IN_TARGETS = FAN_IN_TARGETS;
|
|
21108
|
+
exports.FAN_OUT_EACH_HANDLES = FAN_OUT_EACH_HANDLES;
|
|
20001
21109
|
exports.FAN_OUT_EACH_TYPES = FAN_OUT_EACH_TYPES;
|
|
20002
21110
|
exports.FEATURED_ENTITIES = FEATURED_ENTITIES;
|
|
20003
21111
|
exports.FILM_BASE_CREDITS = FILM_BASE_CREDITS;
|
|
@@ -20106,10 +21214,15 @@ exports.LOCATION_REFERENCE_PHOTO_KIND_LABELS = LOCATION_REFERENCE_PHOTO_KIND_LAB
|
|
|
20106
21214
|
exports.LOCATION_USAGE_MODES = LOCATION_USAGE_MODES;
|
|
20107
21215
|
exports.LOTTIE_OVERLAY_CATALOG = LOTTIE_OVERLAY_CATALOG;
|
|
20108
21216
|
exports.LOTTIE_SLOT_FIELD_PREFIX = LOTTIE_SLOT_FIELD_PREFIX;
|
|
21217
|
+
exports.LTX_EXTEND_DURATION = LTX_EXTEND_DURATION;
|
|
21218
|
+
exports.LTX_EXTEND_PER_SECOND_CREDIT_ID = LTX_EXTEND_PER_SECOND_CREDIT_ID;
|
|
21219
|
+
exports.LTX_RETAKE_MIN_DURATION_SEC = LTX_RETAKE_MIN_DURATION_SEC;
|
|
21220
|
+
exports.LTX_RETAKE_PER_SECOND_CREDIT_ID = LTX_RETAKE_PER_SECOND_CREDIT_ID;
|
|
20109
21221
|
exports.LocationImageCriticVerdictSchema = LocationImageCriticVerdictSchema;
|
|
20110
21222
|
exports.LocationMetadataSchema = LocationMetadataSchema;
|
|
20111
21223
|
exports.LocationsCoverageCriticIssueSchema = LocationsCoverageCriticIssueSchema;
|
|
20112
21224
|
exports.LocationsCoverageCriticVerdictSchema = LocationsCoverageCriticVerdictSchema;
|
|
21225
|
+
exports.MATCH_CUT_BREAK_GATE = MATCH_CUT_BREAK_GATE;
|
|
20113
21226
|
exports.MAX_CUSTOM_ENTRIES_PER_BOARD = MAX_CUSTOM_ENTRIES_PER_BOARD;
|
|
20114
21227
|
exports.MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER = MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER;
|
|
20115
21228
|
exports.MAX_LOCATION_VARIANTS = MAX_LOCATION_VARIANTS;
|
|
@@ -20149,7 +21262,9 @@ exports.MODEL_RECOMMENDATIONS = MODEL_RECOMMENDATIONS;
|
|
|
20149
21262
|
exports.MODIFY_IMAGE_PROVIDERS = MODIFY_IMAGE_PROVIDERS;
|
|
20150
21263
|
exports.MOTION_COLUMN = MOTION_COLUMN;
|
|
20151
21264
|
exports.MOTION_TRANSFER_PROVIDERS = MOTION_TRANSFER_PROVIDERS;
|
|
21265
|
+
exports.MUSIC_CREDIT_ID = MUSIC_CREDIT_ID;
|
|
20152
21266
|
exports.MUSIC_PROVIDERS = MUSIC_PROVIDERS;
|
|
21267
|
+
exports.MUSIC_PROVIDER_LABELS = MUSIC_PROVIDER_LABELS;
|
|
20153
21268
|
exports.MatchCutVerdictSchema = MatchCutVerdictSchema;
|
|
20154
21269
|
exports.NATIVE_ADAPTIVE_ASPECT = NATIVE_ADAPTIVE_ASPECT;
|
|
20155
21270
|
exports.NATIVE_NEGATIVE_PROMPT_MODELS = NATIVE_NEGATIVE_PROMPT_MODELS;
|
|
@@ -20166,6 +21281,7 @@ exports.NODE_REF_PATTERN = NODE_REF_PATTERN;
|
|
|
20166
21281
|
exports.NON_EN_LOCALE_IDS = NON_EN_LOCALE_IDS;
|
|
20167
21282
|
exports.NON_PROMPT_TEXT_LANES = NON_PROMPT_TEXT_LANES;
|
|
20168
21283
|
exports.NO_SPLIT_DELIMITER = NO_SPLIT_DELIMITER;
|
|
21284
|
+
exports.OAUTH_SCOPES = OAUTH_SCOPES;
|
|
20169
21285
|
exports.OBJECT_ASPECT_DEFAULTS = OBJECT_ASPECT_DEFAULTS;
|
|
20170
21286
|
exports.OBJECT_ASPECT_OPTIONS = OBJECT_ASPECT_OPTIONS;
|
|
20171
21287
|
exports.OBJECT_ASSET_TYPES = OBJECT_ASSET_TYPES;
|
|
@@ -20257,6 +21373,7 @@ exports.PipelineStatusSchema = PipelineStatusSchema;
|
|
|
20257
21373
|
exports.PresetSettingsSchema = PresetSettingsSchema;
|
|
20258
21374
|
exports.QA_CHECK_PROVIDERS = QA_CHECK_PROVIDERS;
|
|
20259
21375
|
exports.REASONING_OUTPUT_FLOOR = REASONING_OUTPUT_FLOOR;
|
|
21376
|
+
exports.RECAST_SEGMENT_PACKS = RECAST_SEGMENT_PACKS;
|
|
20260
21377
|
exports.REDUCE_STRATEGIES = REDUCE_STRATEGIES;
|
|
20261
21378
|
exports.REDUCE_STRATEGY_IDS = REDUCE_STRATEGY_IDS;
|
|
20262
21379
|
exports.REFERENCE_BOARD_PROVIDERS = REFERENCE_BOARD_PROVIDERS;
|
|
@@ -20272,6 +21389,12 @@ exports.REPEATABLE_NODE_TYPES = REPEATABLE_NODE_TYPES;
|
|
|
20272
21389
|
exports.REPEAT_PLACEHOLDER = REPEAT_PLACEHOLDER;
|
|
20273
21390
|
exports.REPLICATE_LIP_SYNC_PROVIDERS = REPLICATE_LIP_SYNC_PROVIDERS;
|
|
20274
21391
|
exports.RESERVED_TEMPLATE_VARS = RESERVED_TEMPLATE_VARS;
|
|
21392
|
+
exports.SAVED_POSTS_LOOKUP_MAX = SAVED_POSTS_LOOKUP_MAX;
|
|
21393
|
+
exports.SAVED_POSTS_PAGE_MAX = SAVED_POSTS_PAGE_MAX;
|
|
21394
|
+
exports.SAVED_POST_MAX_TAGS = SAVED_POST_MAX_TAGS;
|
|
21395
|
+
exports.SAVED_POST_NOTE_MAX = SAVED_POST_NOTE_MAX;
|
|
21396
|
+
exports.SAVED_POST_SOURCES = SAVED_POST_SOURCES;
|
|
21397
|
+
exports.SAVED_POST_TAG_MAX = SAVED_POST_TAG_MAX;
|
|
20275
21398
|
exports.SCENE3D_ASSERTION_RESTORED_CODE = SCENE3D_ASSERTION_RESTORED_CODE;
|
|
20276
21399
|
exports.SCENE3D_ASSET_KINDS = SCENE3D_ASSET_KINDS;
|
|
20277
21400
|
exports.SCENE3D_ASSET_ROLES = SCENE3D_ASSET_ROLES;
|
|
@@ -20326,6 +21449,12 @@ exports.SCRAPER_ACTOR_LABELS = SCRAPER_ACTOR_LABELS;
|
|
|
20326
21449
|
exports.SCRAPER_CREDIT_COSTS = SCRAPER_CREDIT_COSTS;
|
|
20327
21450
|
exports.SCRAPER_OUTPUT_FIELDS = SCRAPER_OUTPUT_FIELDS;
|
|
20328
21451
|
exports.SCRIPT_PROVIDERS = SCRIPT_PROVIDERS;
|
|
21452
|
+
exports.SCRIPT_SCENE_COUNT_DEFAULT = SCRIPT_SCENE_COUNT_DEFAULT;
|
|
21453
|
+
exports.SCRIPT_SCENE_COUNT_RANGE = SCRIPT_SCENE_COUNT_RANGE;
|
|
21454
|
+
exports.SCRIPT_STYLE_GUIDE_MAX_LENGTH = SCRIPT_STYLE_GUIDE_MAX_LENGTH;
|
|
21455
|
+
exports.SCRIPT_TARGET_DURATION_DEFAULT = SCRIPT_TARGET_DURATION_DEFAULT;
|
|
21456
|
+
exports.SCRIPT_TARGET_DURATION_RANGE = SCRIPT_TARGET_DURATION_RANGE;
|
|
21457
|
+
exports.SCRIPT_TONE_MAX_LENGTH = SCRIPT_TONE_MAX_LENGTH;
|
|
20329
21458
|
exports.SEASONS = SEASONS;
|
|
20330
21459
|
exports.SECTION_BOARD = SECTION_BOARD;
|
|
20331
21460
|
exports.SECTION_KINDS = SECTION_KINDS;
|
|
@@ -20342,6 +21471,11 @@ exports.SEEDANCE_VIDEO_EDIT_SHAPE = SEEDANCE_VIDEO_EDIT_SHAPE;
|
|
|
20342
21471
|
exports.SEED_SUPPORT = SEED_SUPPORT;
|
|
20343
21472
|
exports.SEPARATOR_DISPLAY = SEPARATOR_DISPLAY;
|
|
20344
21473
|
exports.SEPARATOR_PRESETS = SEPARATOR_PRESETS;
|
|
21474
|
+
exports.SETTINGS_HINT_SOURCES = SETTINGS_HINT_SOURCES;
|
|
21475
|
+
exports.SETTINGS_INPUT_CONSUMERS = SETTINGS_INPUT_CONSUMERS;
|
|
21476
|
+
exports.SETTINGS_INPUT_HANDLE = SETTINGS_INPUT_HANDLE;
|
|
21477
|
+
exports.SETTINGS_SOURCE_FIELDS = SETTINGS_SOURCE_FIELDS;
|
|
21478
|
+
exports.SETTINGS_SOURCE_TYPES = SETTINGS_SOURCE_TYPES;
|
|
20345
21479
|
exports.SHEET_ASPECTS = SHEET_ASPECTS;
|
|
20346
21480
|
exports.SHEET_BACKGROUNDS = SHEET_BACKGROUNDS;
|
|
20347
21481
|
exports.SHEET_PRESETS = SHEET_PRESETS;
|
|
@@ -20354,7 +21488,21 @@ exports.SLOT_TOKEN_RE = SLOT_TOKEN_RE;
|
|
|
20354
21488
|
exports.SMART_CUT_WINDOW_DEFAULT = SMART_CUT_WINDOW_DEFAULT;
|
|
20355
21489
|
exports.SMART_CUT_WINDOW_MAX = SMART_CUT_WINDOW_MAX;
|
|
20356
21490
|
exports.SMART_CUT_WINDOW_MIN = SMART_CUT_WINDOW_MIN;
|
|
21491
|
+
exports.SOCIAL_PLATFORMS = SOCIAL_PLATFORMS;
|
|
20357
21492
|
exports.SOCIAL_POST_NODE_TYPES = SOCIAL_POST_NODE_TYPES;
|
|
21493
|
+
exports.SOCIAL_POST_VIDEO_LINK_MARGIN_MS = SOCIAL_POST_VIDEO_LINK_MARGIN_MS;
|
|
21494
|
+
exports.SOCIAL_SEARCH_COUNTS = SOCIAL_SEARCH_COUNTS;
|
|
21495
|
+
exports.SOCIAL_SEARCH_CREDITS_PER_PAGE = SOCIAL_SEARCH_CREDITS_PER_PAGE;
|
|
21496
|
+
exports.SOCIAL_SEARCH_CREDIT_COSTS = SOCIAL_SEARCH_CREDIT_COSTS;
|
|
21497
|
+
exports.SOCIAL_SEARCH_DEFAULT_PICK_TOP = SOCIAL_SEARCH_DEFAULT_PICK_TOP;
|
|
21498
|
+
exports.SOCIAL_SEARCH_MAX_QUERY_LENGTH = SOCIAL_SEARCH_MAX_QUERY_LENGTH;
|
|
21499
|
+
exports.SOCIAL_SEARCH_MODES = SOCIAL_SEARCH_MODES;
|
|
21500
|
+
exports.SOCIAL_SEARCH_NODE_TYPE = SOCIAL_SEARCH_NODE_TYPE;
|
|
21501
|
+
exports.SOCIAL_SEARCH_PAGED_MODES = SOCIAL_SEARCH_PAGED_MODES;
|
|
21502
|
+
exports.SOCIAL_SEARCH_PERIODS = SOCIAL_SEARCH_PERIODS;
|
|
21503
|
+
exports.SOCIAL_SEARCH_PLATFORM_MODES = SOCIAL_SEARCH_PLATFORM_MODES;
|
|
21504
|
+
exports.SOCIAL_SEARCH_SORTS = SOCIAL_SEARCH_SORTS;
|
|
21505
|
+
exports.SOCIAL_SEARCH_VIDEO_KINDS = SOCIAL_SEARCH_VIDEO_KINDS;
|
|
20358
21506
|
exports.SOCIAL_VIDEO_HOSTS = SOCIAL_VIDEO_HOSTS;
|
|
20359
21507
|
exports.SPEAKER_EMPHASIS_STYLES = SPEAKER_EMPHASIS_STYLES;
|
|
20360
21508
|
exports.SPEAKER_LAYOUTS = SPEAKER_LAYOUTS;
|
|
@@ -20366,7 +21514,9 @@ exports.STATIC_CAPTION_STYLES = STATIC_CAPTION_STYLES;
|
|
|
20366
21514
|
exports.STRUCTURAL_SECTIONS = STRUCTURAL_SECTIONS;
|
|
20367
21515
|
exports.STRUCTURED_VISION_MODELS = STRUCTURED_VISION_MODELS;
|
|
20368
21516
|
exports.STUDIO_DEPENDENT_FRAMES_CAPABILITY = STUDIO_DEPENDENT_FRAMES_CAPABILITY;
|
|
21517
|
+
exports.STUDIO_SHOT_DRAFT_KEYS = STUDIO_SHOT_DRAFT_KEYS;
|
|
20369
21518
|
exports.STUDIO_SHOT_TRANSIENT_KEYS = STUDIO_SHOT_TRANSIENT_KEYS;
|
|
21519
|
+
exports.STUDIO_TAKE_VOICE_KEYS = STUDIO_TAKE_VOICE_KEYS;
|
|
20370
21520
|
exports.STUDIO_TRANSIENT_KEYS = STUDIO_TRANSIENT_KEYS;
|
|
20371
21521
|
exports.SUBMISSION_STATUSES = SUBMISSION_STATUSES;
|
|
20372
21522
|
exports.SUNO_ACTIVE_MODELS = SUNO_ACTIVE_MODELS;
|
|
@@ -20401,7 +21551,14 @@ exports.StyleDirectivesSchema = StyleDirectivesSchema;
|
|
|
20401
21551
|
exports.SubGateNameSchema = SubGateNameSchema;
|
|
20402
21552
|
exports.T2I_TO_I2I_VARIANT = T2I_TO_I2I_VARIANT;
|
|
20403
21553
|
exports.TASK_CHAINED_EDIT_PROVIDERS = TASK_CHAINED_EDIT_PROVIDERS;
|
|
21554
|
+
exports.TELEGRAM_ACCOUNT_SEND_NODE_TYPE = TELEGRAM_ACCOUNT_SEND_NODE_TYPE;
|
|
21555
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS = TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_FIELDS;
|
|
21556
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE = TELEGRAM_ACCOUNT_TRIGGER_MESSAGE_HANDLE;
|
|
20404
21557
|
exports.TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE = TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE;
|
|
21558
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES = TELEGRAM_ACCOUNT_TRIGGER_OUTPUT_HANDLES;
|
|
21559
|
+
exports.TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS = TELEGRAM_ACCOUNT_TRIGGER_POST_FIELDS;
|
|
21560
|
+
exports.TELEGRAM_SEND_AS = TELEGRAM_SEND_AS;
|
|
21561
|
+
exports.TELEGRAM_SEND_DESTINATIONS = TELEGRAM_SEND_DESTINATIONS;
|
|
20405
21562
|
exports.TELEGRAM_TRIGGER_NODE_TYPE = TELEGRAM_TRIGGER_NODE_TYPE;
|
|
20406
21563
|
exports.TEMPLATE_CATEGORIES = TEMPLATE_CATEGORIES;
|
|
20407
21564
|
exports.TEXT_TO_AUDIO_PROVIDERS = TEXT_TO_AUDIO_PROVIDERS;
|
|
@@ -20430,6 +21587,7 @@ exports.VEHICLE_SUBCATEGORY_ORDER = VEHICLE_SUBCATEGORY_ORDER;
|
|
|
20430
21587
|
exports.VEO_PROVIDERS = VEO_PROVIDERS;
|
|
20431
21588
|
exports.VIDEO_ANALYSIS_AUDIO_MODES = VIDEO_ANALYSIS_AUDIO_MODES;
|
|
20432
21589
|
exports.VIDEO_ANALYSIS_BUCKET_CREDITS = VIDEO_ANALYSIS_BUCKET_CREDITS;
|
|
21590
|
+
exports.VIDEO_ANALYSIS_BUCKET_GRACE_SEC = VIDEO_ANALYSIS_BUCKET_GRACE_SEC;
|
|
20433
21591
|
exports.VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN = VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN;
|
|
20434
21592
|
exports.VIDEO_ANALYSIS_DEFAULT_VARIATION = VIDEO_ANALYSIS_DEFAULT_VARIATION;
|
|
20435
21593
|
exports.VIDEO_ANALYSIS_DURATION_BUCKETS = VIDEO_ANALYSIS_DURATION_BUCKETS;
|
|
@@ -20462,6 +21620,7 @@ exports.VIDEO_CRITIC_FRAME_MODES = VIDEO_CRITIC_FRAME_MODES;
|
|
|
20462
21620
|
exports.VIDEO_CRITIC_MAX_RETRIES = VIDEO_CRITIC_MAX_RETRIES;
|
|
20463
21621
|
exports.VIDEO_CRITIC_METADATA_KEYS = VIDEO_CRITIC_METADATA_KEYS;
|
|
20464
21622
|
exports.VIDEO_CRITIC_MIN_ADHERENCE_SCORE = VIDEO_CRITIC_MIN_ADHERENCE_SCORE;
|
|
21623
|
+
exports.VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT = VIDEO_CRITIC_RESERVED_CREDITS_PER_SHOT;
|
|
20465
21624
|
exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
|
|
20466
21625
|
exports.VIDEO_DURATION_TIERS = VIDEO_DURATION_TIERS;
|
|
20467
21626
|
exports.VIDEO_GEN_COLLAPSED_T2V_IDS = VIDEO_GEN_COLLAPSED_T2V_IDS;
|
|
@@ -20498,6 +21657,7 @@ exports.VIDEO_PROVIDERS_REQUIRING_IMAGE = VIDEO_PROVIDERS_REQUIRING_IMAGE;
|
|
|
20498
21657
|
exports.VIDEO_PROVIDERS_WITHOUT_DISPATCH = VIDEO_PROVIDERS_WITHOUT_DISPATCH;
|
|
20499
21658
|
exports.VIDEO_REF_LIMITS_BY_PROVIDER = VIDEO_REF_LIMITS_BY_PROVIDER;
|
|
20500
21659
|
exports.VIDEO_REF_VIDEO_DURATION_LIMITS = VIDEO_REF_VIDEO_DURATION_LIMITS;
|
|
21660
|
+
exports.VIDEO_SFX_PRICING = VIDEO_SFX_PRICING;
|
|
20501
21661
|
exports.VIDEO_TO_VIDEO_NODE_PROVIDERS = VIDEO_TO_VIDEO_NODE_PROVIDERS;
|
|
20502
21662
|
exports.VIDEO_TO_VIDEO_PROVIDERS = VIDEO_TO_VIDEO_PROVIDERS;
|
|
20503
21663
|
exports.VIDEO_UPSCALE_PROVIDERS = VIDEO_UPSCALE_PROVIDERS;
|
|
@@ -20524,16 +21684,19 @@ exports.WORKSPACE_ROLES = WORKSPACE_ROLES;
|
|
|
20524
21684
|
exports.WorkspaceSettingsSchema = WorkspaceSettingsSchema;
|
|
20525
21685
|
exports.YOUTUBE_HOSTS = YOUTUBE_HOSTS;
|
|
20526
21686
|
exports.adCreativeAnalysisFrom = adCreativeAnalysisFrom;
|
|
21687
|
+
exports.adviceFamilyOf = adviceFamilyOf;
|
|
20527
21688
|
exports.aggregateByType = aggregateByType;
|
|
20528
21689
|
exports.aiAvatarReserveCreditId = aiAvatarReserveCreditId;
|
|
20529
21690
|
exports.alignedFieldList = alignedFieldList;
|
|
20530
21691
|
exports.analyzedSceneSchema = analyzedSceneSchema;
|
|
21692
|
+
exports.applyAudioSyncOffsets = applyAudioSyncOffsets;
|
|
20531
21693
|
exports.applyDefaultVideoSelection = applyDefaultVideoSelection;
|
|
20532
21694
|
exports.applyHandleInputOverride = applyHandleInputOverride;
|
|
20533
21695
|
exports.applyRange = applyRange;
|
|
20534
21696
|
exports.applyRangeIndices = applyRangeIndices;
|
|
20535
21697
|
exports.applyScene3DEditOperations = applyScene3DEditOperations;
|
|
20536
21698
|
exports.applyScene3DV2EditOperations = applyScene3DV2EditOperations;
|
|
21699
|
+
exports.applySettingsInput = applySettingsInput;
|
|
20537
21700
|
exports.applySlots = applySlots;
|
|
20538
21701
|
exports.applyVideoAudioToggle = applyVideoAudioToggle;
|
|
20539
21702
|
exports.applyVideoNegativePrompt = applyVideoNegativePrompt;
|
|
@@ -20577,6 +21740,9 @@ exports.calculateCombinedProgress = calculateCombinedProgress;
|
|
|
20577
21740
|
exports.calculateMonetizationMarkup = calculateMonetizationMarkup;
|
|
20578
21741
|
exports.calculateMonetizedCost = calculateMonetizedCost;
|
|
20579
21742
|
exports.calculateProgress = calculateProgress;
|
|
21743
|
+
exports.cameraSwitchCameras = cameraSwitchCameras;
|
|
21744
|
+
exports.cameraSwitchEdlProblem = cameraSwitchEdlProblem;
|
|
21745
|
+
exports.cameraSwitchSettingsPayload = cameraSwitchSettingsPayload;
|
|
20580
21746
|
exports.canonicalScene3DPlanV2Json = canonicalScene3DPlanV2Json;
|
|
20581
21747
|
exports.canonicalVarName = canonicalVarName;
|
|
20582
21748
|
exports.captionRoutesToRemotion = captionRoutesToRemotion;
|
|
@@ -20589,7 +21755,9 @@ exports.characterSheetRefItems = characterSheetRefItems;
|
|
|
20589
21755
|
exports.characterVariantAssetArrays = characterVariantAssetArrays;
|
|
20590
21756
|
exports.checkRefVideoDurations = checkRefVideoDurations;
|
|
20591
21757
|
exports.cinematicCreditId = cinematicCreditId;
|
|
21758
|
+
exports.clampCameraSwitchSetting = clampCameraSwitchSetting;
|
|
20592
21759
|
exports.clampCinematicDuration = clampCinematicDuration;
|
|
21760
|
+
exports.clampContentIdeasCount = clampContentIdeasCount;
|
|
20593
21761
|
exports.clampEditPlanClipCount = clampEditPlanClipCount;
|
|
20594
21762
|
exports.clampInstagramFeaturedIndex = clampInstagramFeaturedIndex;
|
|
20595
21763
|
exports.clampMetaAdsFeaturedIndex = clampMetaAdsFeaturedIndex;
|
|
@@ -20597,6 +21765,7 @@ exports.clampSmartCutWindow = clampSmartCutWindow;
|
|
|
20597
21765
|
exports.classifyCreativeFormat = classifyCreativeFormat;
|
|
20598
21766
|
exports.classifyRefToken = classifyRefToken;
|
|
20599
21767
|
exports.cleanOrphanedItems = cleanOrphanedItems;
|
|
21768
|
+
exports.cleanSpeakerNames = cleanSpeakerNames;
|
|
20600
21769
|
exports.clearImageCriticMetadata = clearImageCriticMetadata;
|
|
20601
21770
|
exports.clearVideoCriticMetadata = clearVideoCriticMetadata;
|
|
20602
21771
|
exports.clearWiredVideoOverlayImageUrls = clearWiredVideoOverlayImageUrls;
|
|
@@ -20604,20 +21773,30 @@ exports.clipLookSchema = clipLookSchema;
|
|
|
20604
21773
|
exports.collectAncestorRefs = collectAncestorRefs;
|
|
20605
21774
|
exports.combineSameLabelRefs = combineSameLabelRefs;
|
|
20606
21775
|
exports.compactWithRows = compactWithRows;
|
|
21776
|
+
exports.competitorScanCreditId = competitorScanCreditId;
|
|
21777
|
+
exports.competitorScanCredits = competitorScanCredits;
|
|
21778
|
+
exports.competitorScanSearches = competitorScanSearches;
|
|
20607
21779
|
exports.computeAggregateLanes = computeAggregateLanes;
|
|
20608
21780
|
exports.computeFrameFitPlan = computeFrameFitPlan;
|
|
20609
21781
|
exports.computeScene3DPlanV2ContentHash = computeScene3DPlanV2ContentHash;
|
|
21782
|
+
exports.connectedSettingsSources = connectedSettingsSources;
|
|
21783
|
+
exports.contentIdeasCreditFeature = contentIdeasCreditFeature;
|
|
21784
|
+
exports.contentIdeasCreditId = contentIdeasCreditId;
|
|
21785
|
+
exports.contentRecipeCreditId = contentRecipeCreditId;
|
|
20610
21786
|
exports.countRefModalityEdges = countRefModalityEdges;
|
|
20611
21787
|
exports.creditRangesAll = creditRangesAll;
|
|
20612
21788
|
exports.creditsToUsd = creditsToUsd;
|
|
20613
21789
|
exports.decodeProviderItem = decodeProviderItem;
|
|
20614
21790
|
exports.defaultCarriedFraction = defaultCarriedFraction;
|
|
21791
|
+
exports.defaultEdgeOutputMode = defaultEdgeOutputMode;
|
|
20615
21792
|
exports.defaultResolutionFor = defaultResolutionFor;
|
|
20616
21793
|
exports.defaultRoleForSource = defaultRoleForSource;
|
|
21794
|
+
exports.defaultSpeakerMap = defaultSpeakerMap;
|
|
20617
21795
|
exports.defaultVideoAspectRatio = defaultVideoAspectRatio;
|
|
20618
21796
|
exports.deriveLinkedFields = deriveLinkedFields;
|
|
20619
21797
|
exports.deriveLottieSlotFields = deriveLottieSlotFields;
|
|
20620
21798
|
exports.deriveSlotRefs = deriveSlotRefs;
|
|
21799
|
+
exports.describeAudioSyncOffsetIssue = describeAudioSyncOffsetIssue;
|
|
20621
21800
|
exports.describeEdgeBehavior = describeEdgeBehavior;
|
|
20622
21801
|
exports.describeMaskRegion = describeMaskRegion;
|
|
20623
21802
|
exports.describeNodeAdjustments = describeNodeAdjustments;
|
|
@@ -20628,7 +21807,9 @@ exports.dropUnknownSpeakers = dropUnknownSpeakers;
|
|
|
20628
21807
|
exports.durationsByMode = durationsByMode;
|
|
20629
21808
|
exports.editPlanBucketMinutes = editPlanBucketMinutes;
|
|
20630
21809
|
exports.editPlanSourceDurationSec = editPlanSourceDurationSec;
|
|
21810
|
+
exports.editPlanTranscriptOrigin = editPlanTranscriptOrigin;
|
|
20631
21811
|
exports.edlDurationMs = edlDurationMs;
|
|
21812
|
+
exports.effectiveContentModel = effectiveContentModel;
|
|
20632
21813
|
exports.effectiveReasoningEffort = effectiveReasoningEffort;
|
|
20633
21814
|
exports.encodeProviderItem = encodeProviderItem;
|
|
20634
21815
|
exports.ensureLocaleCatalogLoaded = ensureLocaleCatalogLoaded;
|
|
@@ -20671,6 +21852,7 @@ exports.findLocationMentionTokens = findLocationMentionTokens;
|
|
|
20671
21852
|
exports.findSeedance2AudioOverLimit = findSeedance2AudioOverLimit;
|
|
20672
21853
|
exports.findWordlessTranscriptFeeds = findWordlessTranscriptFeeds;
|
|
20673
21854
|
exports.firstSightExtraRole = firstSightExtraRole;
|
|
21855
|
+
exports.fitAspectRatioToModel = fitAspectRatioToModel;
|
|
20674
21856
|
exports.flattenItems = flattenItems;
|
|
20675
21857
|
exports.formatVideoOverlayError = formatVideoOverlayError;
|
|
20676
21858
|
exports.getAnimal = getAnimal;
|
|
@@ -20747,11 +21929,14 @@ exports.isAggregateableType = isAggregateableType;
|
|
|
20747
21929
|
exports.isAutoVideoDuration = isAutoVideoDuration;
|
|
20748
21930
|
exports.isCharacterAspectRatio = isCharacterAspectRatio;
|
|
20749
21931
|
exports.isCollectInEdge = isCollectInEdge;
|
|
21932
|
+
exports.isCompetitorAboutPlatform = isCompetitorAboutPlatform;
|
|
20750
21933
|
exports.isCronExpression = isCronExpression;
|
|
20751
21934
|
exports.isDefaultSelectorConfig = isDefaultSelectorConfig;
|
|
20752
21935
|
exports.isEdlTargetAspect = isEdlTargetAspect;
|
|
20753
21936
|
exports.isExpandedClone = isExpandedClone;
|
|
20754
21937
|
exports.isFacebookPageUrl = isFacebookPageUrl;
|
|
21938
|
+
exports.isFanInEdge = isFanInEdge;
|
|
21939
|
+
exports.isFanInNodeType = isFanInNodeType;
|
|
20755
21940
|
exports.isFanOutUrlItem = isFanOutUrlItem;
|
|
20756
21941
|
exports.isFlux2Model = isFlux2Model;
|
|
20757
21942
|
exports.isGeminiOmniProvider = isGeminiOmniProvider;
|
|
@@ -20764,6 +21949,7 @@ exports.isKnownScene3DEngine = isKnownScene3DEngine;
|
|
|
20764
21949
|
exports.isKnownSpeakerEmphasisStyle = isKnownSpeakerEmphasisStyle;
|
|
20765
21950
|
exports.isLegacySunoModel = isLegacySunoModel;
|
|
20766
21951
|
exports.isLocationUsageMode = isLocationUsageMode;
|
|
21952
|
+
exports.isMeasurableCard = isMeasurableCard;
|
|
20767
21953
|
exports.isMetaAdsFormat = isMetaAdsFormat;
|
|
20768
21954
|
exports.isMetaAdsPlatform = isMetaAdsPlatform;
|
|
20769
21955
|
exports.isMetaAdsScrapeCount = isMetaAdsScrapeCount;
|
|
@@ -20790,7 +21976,13 @@ exports.isScene3DSchemaVersionSupported = isScene3DSchemaVersionSupported;
|
|
|
20790
21976
|
exports.isScraperActor = isScraperActor;
|
|
20791
21977
|
exports.isSeedance2Provider = isSeedance2Provider;
|
|
20792
21978
|
exports.isSeedanceVideoEditProvider = isSeedanceVideoEditProvider;
|
|
21979
|
+
exports.isSettingsHintEdge = isSettingsHintEdge;
|
|
21980
|
+
exports.isSettingsHintSource = isSettingsHintSource;
|
|
21981
|
+
exports.isSettingsSourceType = isSettingsSourceType;
|
|
21982
|
+
exports.isSocialPost = isSocialPost;
|
|
21983
|
+
exports.isSocialSearchPickFrozen = isSocialSearchPickFrozen;
|
|
20793
21984
|
exports.isSocialVideoUrl = isSocialVideoUrl;
|
|
21985
|
+
exports.isTelegramAccountTriggerNamedHandle = isTelegramAccountTriggerNamedHandle;
|
|
20794
21986
|
exports.isTemplateCategory = isTemplateCategory;
|
|
20795
21987
|
exports.isTiltDirection = isTiltDirection;
|
|
20796
21988
|
exports.isUsageMode = isUsageMode;
|
|
@@ -20808,6 +22000,7 @@ exports.knownImageSlugsFromRefs = knownImageSlugsFromRefs;
|
|
|
20808
22000
|
exports.legacyScheduleToRules = legacyScheduleToRules;
|
|
20809
22001
|
exports.listBoardTemplates = listBoardTemplates;
|
|
20810
22002
|
exports.listModels = listModels;
|
|
22003
|
+
exports.listResultsServeHandle = listResultsServeHandle;
|
|
20811
22004
|
exports.listSlotSids = listSlotSids;
|
|
20812
22005
|
exports.liveRowColumn = liveRowColumn;
|
|
20813
22006
|
exports.llmRouteDefaults = llmRouteDefaults;
|
|
@@ -20816,6 +22009,8 @@ exports.localTimeIn = localTimeIn;
|
|
|
20816
22009
|
exports.locationMentionSlug = locationMentionSlug;
|
|
20817
22010
|
exports.locationReferencePhotoKindLabel = locationReferencePhotoKindLabel;
|
|
20818
22011
|
exports.locationUsageModeLabel = locationUsageModeLabel;
|
|
22012
|
+
exports.ltxExtendDurationSec = ltxExtendDurationSec;
|
|
22013
|
+
exports.ltxRetakeDurationSec = ltxRetakeDurationSec;
|
|
20819
22014
|
exports.mapAspectRatio = mapAspectRatio;
|
|
20820
22015
|
exports.mapQuality = mapQuality;
|
|
20821
22016
|
exports.mapShotIntentToProviderDirectives = mapShotIntentToProviderDirectives;
|
|
@@ -20860,6 +22055,7 @@ exports.normalizeModelInput = normalizeModelInput;
|
|
|
20860
22055
|
exports.normalizeNodeModelParams = normalizeNodeModelParams;
|
|
20861
22056
|
exports.normalizePinterestUrl = normalizePinterestUrl;
|
|
20862
22057
|
exports.normalizeRoleSlug = normalizeRoleSlug;
|
|
22058
|
+
exports.normalizeSavedPostTags = normalizeSavedPostTags;
|
|
20863
22059
|
exports.normalizeScheduleRule = normalizeScheduleRule;
|
|
20864
22060
|
exports.normalizeScheduleRules = normalizeScheduleRules;
|
|
20865
22061
|
exports.normalizeTemplateCategory = normalizeTemplateCategory;
|
|
@@ -20895,6 +22091,7 @@ exports.parseSpeakerEmphasisStyle = parseSpeakerEmphasisStyle;
|
|
|
20895
22091
|
exports.pickAiAvatarBucket = pickAiAvatarBucket;
|
|
20896
22092
|
exports.pickIds = pickIds;
|
|
20897
22093
|
exports.pickLipSyncBucket = pickLipSyncBucket;
|
|
22094
|
+
exports.pickSocialPosts = pickSocialPosts;
|
|
20898
22095
|
exports.pickSwitchXFrameTier = pickSwitchXFrameTier;
|
|
20899
22096
|
exports.pickVideoAnalysisBucket = pickVideoAnalysisBucket;
|
|
20900
22097
|
exports.planFanOut = planFanOut;
|
|
@@ -20919,6 +22116,7 @@ exports.pro3DRenderShotStills = pro3DRenderShotStills;
|
|
|
20919
22116
|
exports.pro3DRenderTimingOverrides = pro3DRenderTimingOverrides;
|
|
20920
22117
|
exports.qualityOptionsByKind = qualityOptionsByKind;
|
|
20921
22118
|
exports.readPromptAffixes = readPromptAffixes;
|
|
22119
|
+
exports.readScriptSettings = readScriptSettings;
|
|
20922
22120
|
exports.reasoningOutputFloor = reasoningOutputFloor;
|
|
20923
22121
|
exports.refHandleCategory = refHandleCategory;
|
|
20924
22122
|
exports.referenceModalityForHandle = referenceModalityForHandle;
|
|
@@ -20942,6 +22140,7 @@ exports.resolveConditionValue = resolveConditionValue;
|
|
|
20942
22140
|
exports.resolveDefaultRole = resolveDefaultRole;
|
|
20943
22141
|
exports.resolveDescription = resolveDescription;
|
|
20944
22142
|
exports.resolveDialogueVoices = resolveDialogueVoices;
|
|
22143
|
+
exports.resolveEditPlanSources = resolveEditPlanSources;
|
|
20945
22144
|
exports.resolveEdlSegmentSlots = resolveEdlSegmentSlots;
|
|
20946
22145
|
exports.resolveEffectiveSourceType = resolveEffectiveSourceType;
|
|
20947
22146
|
exports.resolveEffectiveTier = resolveEffectiveTier;
|
|
@@ -20961,6 +22160,7 @@ exports.resolveLocationFields = resolveLocationFields;
|
|
|
20961
22160
|
exports.resolveLocationPresetCatalog = resolveLocationPresetCatalog;
|
|
20962
22161
|
exports.resolveLottieOverlaySrc = resolveLottieOverlaySrc;
|
|
20963
22162
|
exports.resolveMetaAdsScrapeCreditId = resolveMetaAdsScrapeCreditId;
|
|
22163
|
+
exports.resolveMusicProvider = resolveMusicProvider;
|
|
20964
22164
|
exports.resolveNodeRefs = resolveNodeRefs;
|
|
20965
22165
|
exports.resolveNormalizedImageGen = resolveNormalizedImageGen;
|
|
20966
22166
|
exports.resolveObjectAspectRatio = resolveObjectAspectRatio;
|
|
@@ -20983,6 +22183,7 @@ exports.resolveVideoLinkOutput = resolveVideoLinkOutput;
|
|
|
20983
22183
|
exports.resolveVideoModeForInputs = resolveVideoModeForInputs;
|
|
20984
22184
|
exports.resolveVideoOverlayGeometry = resolveVideoOverlayGeometry;
|
|
20985
22185
|
exports.resolveVideoProviderForMode = resolveVideoProviderForMode;
|
|
22186
|
+
exports.resolveWiredSettings = resolveWiredSettings;
|
|
20986
22187
|
exports.resolveXfadeName = resolveXfadeName;
|
|
20987
22188
|
exports.rewriteSceneBindings = rewriteSceneBindings;
|
|
20988
22189
|
exports.rewriteSlotTokens = rewriteSlotTokens;
|
|
@@ -21082,9 +22283,34 @@ exports.selectListItems = selectListItems;
|
|
|
21082
22283
|
exports.selectLoraRoutingForMentions = selectLoraRoutingForMentions;
|
|
21083
22284
|
exports.selectRandom = selectRandom;
|
|
21084
22285
|
exports.setRegisteredPersonPackFields = setRegisteredPersonPackFields;
|
|
22286
|
+
exports.settingsInputAccepts = settingsInputAccepts;
|
|
22287
|
+
exports.settingsInputFields = settingsInputFields;
|
|
22288
|
+
exports.settingsProviderModels = settingsProviderModels;
|
|
22289
|
+
exports.settingsSourceForField = settingsSourceForField;
|
|
22290
|
+
exports.settingsSourceForType = settingsSourceForType;
|
|
21085
22291
|
exports.settledWithLimit = settledWithLimit;
|
|
22292
|
+
exports.signedLinkExpiresAt = signedLinkExpiresAt;
|
|
21086
22293
|
exports.sizeVec3Schema = sizeVec3Schema;
|
|
21087
22294
|
exports.slotVariationSchema = slotVariationSchema;
|
|
22295
|
+
exports.snapToModelDuration = snapToModelDuration;
|
|
22296
|
+
exports.socialPostDigestLine = socialPostDigestLine;
|
|
22297
|
+
exports.socialPostsDigest = socialPostsDigest;
|
|
22298
|
+
exports.socialPostsFrom = socialPostsFrom;
|
|
22299
|
+
exports.socialPostsLongestVideoSec = socialPostsLongestVideoSec;
|
|
22300
|
+
exports.socialSearchCount = socialSearchCount;
|
|
22301
|
+
exports.socialSearchCountry = socialSearchCountry;
|
|
22302
|
+
exports.socialSearchCreditId = socialSearchCreditId;
|
|
22303
|
+
exports.socialSearchCreditIdFromNode = socialSearchCreditIdFromNode;
|
|
22304
|
+
exports.socialSearchEffectiveCount = socialSearchEffectiveCount;
|
|
22305
|
+
exports.socialSearchMaxCount = socialSearchMaxCount;
|
|
22306
|
+
exports.socialSearchMode = socialSearchMode;
|
|
22307
|
+
exports.socialSearchPages = socialSearchPages;
|
|
22308
|
+
exports.socialSearchPickTop = socialSearchPickTop;
|
|
22309
|
+
exports.socialSearchPlatform = socialSearchPlatform;
|
|
22310
|
+
exports.socialSearchPostLink = socialSearchPostLink;
|
|
22311
|
+
exports.socialSearchPostVideo = socialSearchPostVideo;
|
|
22312
|
+
exports.socialSearchRegion = socialSearchRegion;
|
|
22313
|
+
exports.socialSearchRequestFromNode = socialSearchRequestFromNode;
|
|
21088
22314
|
exports.sortCharacterEntriesForDisplay = sortCharacterEntriesForDisplay;
|
|
21089
22315
|
exports.sortListItems = sortListItems;
|
|
21090
22316
|
exports.sourceRefKey = sourceRefKey;
|
|
@@ -21092,6 +22318,7 @@ exports.speakerLayoutAllows = speakerLayoutAllows;
|
|
|
21092
22318
|
exports.speakerPresentationWarnings = speakerPresentationWarnings;
|
|
21093
22319
|
exports.speakerSwitchOverlaps = speakerSwitchOverlaps;
|
|
21094
22320
|
exports.speakerTurns = speakerTurns;
|
|
22321
|
+
exports.speedRampCreditId = speedRampCreditId;
|
|
21095
22322
|
exports.spliceDelimitedRows = spliceDelimitedRows;
|
|
21096
22323
|
exports.splitByLoopDelimiter = splitByLoopDelimiter;
|
|
21097
22324
|
exports.splitGeneratedItems = splitGeneratedItems;
|
|
@@ -21102,6 +22329,9 @@ exports.spreadJsonArrayIfSingleton = spreadJsonArrayIfSingleton;
|
|
|
21102
22329
|
exports.stringifyPathResults = stringifyPathResults;
|
|
21103
22330
|
exports.stripDerivedAnalysisFields = stripDerivedAnalysisFields;
|
|
21104
22331
|
exports.stripExportContent = stripExportContent;
|
|
22332
|
+
exports.stripStudioDraftSettings = stripStudioDraftSettings;
|
|
22333
|
+
exports.stripStudioDraftWorkflow = stripStudioDraftWorkflow;
|
|
22334
|
+
exports.stripStudioTakeVoiceRecords = stripStudioTakeVoiceRecords;
|
|
21105
22335
|
exports.stripStudioTransientSettings = stripStudioTransientSettings;
|
|
21106
22336
|
exports.stripTransientRuntimeData = stripTransientRuntimeData;
|
|
21107
22337
|
exports.stripUnownedRefs = stripUnownedRefs;
|
|
@@ -21113,6 +22343,10 @@ exports.supportsAdvancedMode = supportsAdvancedMode;
|
|
|
21113
22343
|
exports.supportsAutoVideoDuration = supportsAutoVideoDuration;
|
|
21114
22344
|
exports.supportsEndAnchor = supportsEndAnchor;
|
|
21115
22345
|
exports.supportsExtendRender = supportsExtendRender;
|
|
22346
|
+
exports.telegramAccountListeningSignature = telegramAccountListeningSignature;
|
|
22347
|
+
exports.telegramAccountTriggerOutputs = telegramAccountTriggerOutputs;
|
|
22348
|
+
exports.telegramSendAsOf = telegramSendAsOf;
|
|
22349
|
+
exports.telegramSendDestinationOf = telegramSendDestinationOf;
|
|
21116
22350
|
exports.templateCategoryStoredValues = templateCategoryStoredValues;
|
|
21117
22351
|
exports.timezoneOffsetMinutes = timezoneOffsetMinutes;
|
|
21118
22352
|
exports.toConnectedReference = toConnectedReference;
|
|
@@ -21123,6 +22357,7 @@ exports.transcribeLaneSupportsWordTimestamps = transcribeLaneSupportsWordTimesta
|
|
|
21123
22357
|
exports.transcribeProvidersWithWordTimestamps = transcribeProvidersWithWordTimestamps;
|
|
21124
22358
|
exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
|
|
21125
22359
|
exports.transcriptDurationSec = transcriptDurationSec;
|
|
22360
|
+
exports.transcriptSpeakerLabels = transcriptSpeakerLabels;
|
|
21126
22361
|
exports.tryParseJson = tryParseJson;
|
|
21127
22362
|
exports.uiAspectRatioFill = uiAspectRatioFill;
|
|
21128
22363
|
exports.uiDurationFill = uiDurationFill;
|
|
@@ -21155,6 +22390,7 @@ exports.videoAnalysisResultSchema = videoAnalysisResultSchema;
|
|
|
21155
22390
|
exports.videoAuditCreditsForBucket = videoAuditCreditsForBucket;
|
|
21156
22391
|
exports.videoLinkDownloadedFile = videoLinkDownloadedFile;
|
|
21157
22392
|
exports.videoLinkNeedsDownload = videoLinkNeedsDownload;
|
|
22393
|
+
exports.videoLinkPageUrl = videoLinkPageUrl;
|
|
21158
22394
|
exports.videoModelCanSpeakDialogue = videoModelCanSpeakDialogue;
|
|
21159
22395
|
exports.videoModelSupportsAudio = videoModelSupportsAudio;
|
|
21160
22396
|
exports.videoNegativeSuffix = videoNegativeSuffix;
|
|
@@ -21167,7 +22403,9 @@ exports.videoOverlaySlotOfHandle = videoOverlaySlotOfHandle;
|
|
|
21167
22403
|
exports.videoOverlaySlotSources = videoOverlaySlotSources;
|
|
21168
22404
|
exports.videoProviderFoldsLoneEndFrame = videoProviderFoldsLoneEndFrame;
|
|
21169
22405
|
exports.videoProviderRequiresImage = videoProviderRequiresImage;
|
|
22406
|
+
exports.videoSfxCreditId = videoSfxCreditId;
|
|
21170
22407
|
exports.windowAnalysisSchema = windowAnalysisSchema;
|
|
22408
|
+
exports.withWiredSettings = withWiredSettings;
|
|
21171
22409
|
exports.zipMergeLists = zipMergeLists;
|
|
21172
22410
|
//# sourceMappingURL=index.cjs.map
|
|
21173
22411
|
//# sourceMappingURL=index.cjs.map
|