@nodaro/shared 3.62.0 → 3.63.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/{chunk-6CSXMWL4.cjs → chunk-2PU3AGGS.cjs} +27 -4
- package/dist/chunk-2PU3AGGS.cjs.map +1 -0
- package/dist/{chunk-CC4V2B7S.js → chunk-34QLPTSA.js} +3 -3
- package/dist/{chunk-CC4V2B7S.js.map → chunk-34QLPTSA.js.map} +1 -1
- package/dist/{chunk-G4U3HW6W.js → chunk-3K24DWOH.js} +3 -3
- package/dist/{chunk-G4U3HW6W.js.map → chunk-3K24DWOH.js.map} +1 -1
- package/dist/{chunk-GSFB537T.js → chunk-4DVWXEB6.js} +23 -4
- package/dist/chunk-4DVWXEB6.js.map +1 -0
- package/dist/{chunk-ZES6EZC4.js → chunk-4MMZD63H.js} +3 -3
- package/dist/{chunk-ZES6EZC4.js.map → chunk-4MMZD63H.js.map} +1 -1
- package/dist/{chunk-N7OUQK7E.cjs → chunk-63H4C56Q.cjs} +8 -8
- package/dist/{chunk-N7OUQK7E.cjs.map → chunk-63H4C56Q.cjs.map} +1 -1
- package/dist/{chunk-2D5LQFV4.cjs → chunk-6BZC2ZHC.cjs} +9 -9
- package/dist/{chunk-2D5LQFV4.cjs.map → chunk-6BZC2ZHC.cjs.map} +1 -1
- package/dist/{chunk-3OYO3XCC.js → chunk-6M563QE6.js} +71 -9
- package/dist/chunk-6M563QE6.js.map +1 -0
- package/dist/{chunk-IDTKF5EX.cjs → chunk-6TGB7ECA.cjs} +7 -7
- package/dist/{chunk-IDTKF5EX.cjs.map → chunk-6TGB7ECA.cjs.map} +1 -1
- package/dist/{chunk-2HZGDZZN.cjs → chunk-6XUG4L7X.cjs} +6 -6
- package/dist/{chunk-2HZGDZZN.cjs.map → chunk-6XUG4L7X.cjs.map} +1 -1
- package/dist/{chunk-CIPPPT7E.cjs → chunk-77WU3V3J.cjs} +6 -6
- package/dist/{chunk-CIPPPT7E.cjs.map → chunk-77WU3V3J.cjs.map} +1 -1
- package/dist/{chunk-C7POAYFE.js → chunk-AE3AAJ4O.js} +3 -3
- package/dist/{chunk-C7POAYFE.js.map → chunk-AE3AAJ4O.js.map} +1 -1
- package/dist/{chunk-NGKKNSK6.js → chunk-BMJVKYVB.js} +36 -15
- package/dist/chunk-BMJVKYVB.js.map +1 -0
- package/dist/{chunk-YCXRSWCQ.js → chunk-CZ5IQB3L.js} +3 -3
- package/dist/{chunk-YCXRSWCQ.js.map → chunk-CZ5IQB3L.js.map} +1 -1
- package/dist/{chunk-E2HZTGYX.js → chunk-EPXGG27L.js} +7 -7
- package/dist/chunk-EPXGG27L.js.map +1 -0
- package/dist/{chunk-3M4BNKFJ.cjs → chunk-F6WGGYQW.cjs} +167 -3
- package/dist/chunk-F6WGGYQW.cjs.map +1 -0
- package/dist/{chunk-7FCTCWHD.js → chunk-FXGNRYQQ.js} +3 -3
- package/dist/{chunk-7FCTCWHD.js.map → chunk-FXGNRYQQ.js.map} +1 -1
- package/dist/{chunk-QWYFHQYK.cjs → chunk-GMBDLNLD.cjs} +86 -62
- package/dist/chunk-GMBDLNLD.cjs.map +1 -0
- package/dist/{chunk-KJSRPHJ2.cjs → chunk-GSKLPI3J.cjs} +100 -46
- package/dist/chunk-GSKLPI3J.cjs.map +1 -0
- package/dist/{chunk-S5TMRJMX.js → chunk-HBXF6RUU.js} +4 -4
- package/dist/{chunk-S5TMRJMX.js.map → chunk-HBXF6RUU.js.map} +1 -1
- package/dist/{chunk-S24ZBUB4.js → chunk-HWQ2SYNA.js} +6 -32
- package/dist/chunk-HWQ2SYNA.js.map +1 -0
- package/dist/{chunk-JJNNM23P.js → chunk-IY3Y462W.js} +3 -3
- package/dist/{chunk-JJNNM23P.js.map → chunk-IY3Y462W.js.map} +1 -1
- package/dist/{chunk-JZGZ26YB.js → chunk-KCZHQH2O.js} +4 -4
- package/dist/{chunk-JZGZ26YB.js.map → chunk-KCZHQH2O.js.map} +1 -1
- package/dist/{chunk-FVII3KHN.js → chunk-KMGCHV6O.js} +163 -4
- package/dist/chunk-KMGCHV6O.js.map +1 -0
- package/dist/{chunk-4ZEFP2FQ.cjs → chunk-L2TVY6XN.cjs} +4 -4
- package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-L2TVY6XN.cjs.map} +1 -1
- package/dist/{chunk-TRVWMKNE.cjs → chunk-LH72PQO2.cjs} +204 -52
- package/dist/chunk-LH72PQO2.cjs.map +1 -0
- package/dist/{chunk-HRY7KGAE.cjs → chunk-LMAQUR55.cjs} +6 -6
- package/dist/{chunk-HRY7KGAE.cjs.map → chunk-LMAQUR55.cjs.map} +1 -1
- package/dist/{chunk-MYJQELFN.cjs → chunk-M5OCFGHF.cjs} +254 -7
- package/dist/chunk-M5OCFGHF.cjs.map +1 -0
- package/dist/{chunk-I2RQB7VG.js → chunk-MD4XHED4.js} +3 -3
- package/dist/{chunk-I2RQB7VG.js.map → chunk-MD4XHED4.js.map} +1 -1
- package/dist/{chunk-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
- package/dist/chunk-NIAFR5EE.js.map +1 -0
- package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
- package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
- package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
- package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
- package/dist/{chunk-UDDVDQMF.js → chunk-OV3JTKBY.js} +166 -25
- package/dist/chunk-OV3JTKBY.js.map +1 -0
- package/dist/{chunk-5YYN5X57.js → chunk-PSKZKLDG.js} +252 -8
- package/dist/chunk-PSKZKLDG.js.map +1 -0
- package/dist/{chunk-IWWVPR3W.cjs → chunk-TM5JYSJF.cjs} +95 -19
- package/dist/chunk-TM5JYSJF.cjs.map +1 -0
- package/dist/{chunk-G3KVK7OU.cjs → chunk-V5EEQR2U.cjs} +21 -21
- package/dist/{chunk-G3KVK7OU.cjs.map → chunk-V5EEQR2U.cjs.map} +1 -1
- package/dist/{chunk-AOJ6B7K4.cjs → chunk-WZVIBAKN.cjs} +12 -12
- package/dist/chunk-WZVIBAKN.cjs.map +1 -0
- package/dist/{chunk-5M43XMRB.cjs → chunk-X5BAFW3Q.cjs} +8 -8
- package/dist/{chunk-5M43XMRB.cjs.map → chunk-X5BAFW3Q.cjs.map} +1 -1
- package/dist/{chunk-SYWR5G3T.js → chunk-XBTYGQ6Z.js} +51 -7
- package/dist/chunk-XBTYGQ6Z.js.map +1 -0
- package/dist/{chunk-AFYTX4AI.cjs → chunk-XGGZWA4A.cjs} +107 -50
- package/dist/chunk-XGGZWA4A.cjs.map +1 -0
- package/dist/{chunk-VACPZPUA.cjs → chunk-XGVJGNZW.cjs} +5 -5
- package/dist/{chunk-VACPZPUA.cjs.map → chunk-XGVJGNZW.cjs.map} +1 -1
- package/dist/{chunk-2W745U4A.cjs → chunk-Y35JQPT6.cjs} +42 -70
- package/dist/chunk-Y35JQPT6.cjs.map +1 -0
- package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
- package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
- package/dist/{chunk-PTD6EDUU.js → chunk-YUER7TJG.js} +3 -3
- package/dist/{chunk-PTD6EDUU.js.map → chunk-YUER7TJG.js.map} +1 -1
- package/dist/{chunk-Y6X7UJSD.js → chunk-YX6TFX7H.js} +66 -14
- package/dist/chunk-YX6TFX7H.js.map +1 -0
- package/dist/{chunk-TWF2OSH4.cjs → chunk-ZPE2ZTJ4.cjs} +4 -4
- package/dist/{chunk-TWF2OSH4.cjs.map → chunk-ZPE2ZTJ4.cjs.map} +1 -1
- package/dist/entries/apps.cjs +42 -42
- package/dist/entries/apps.js +7 -7
- package/dist/entries/credits.cjs +237 -169
- package/dist/entries/credits.d.cts +163 -16
- package/dist/entries/credits.d.ts +163 -16
- package/dist/entries/credits.js +10 -10
- package/dist/entries/llm-models.cjs +77 -57
- package/dist/entries/llm-models.d.cts +85 -6
- package/dist/entries/llm-models.d.ts +85 -6
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +63 -63
- package/dist/entries/media.d.cts +8 -0
- package/dist/entries/media.d.ts +8 -0
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +121 -105
- package/dist/entries/model-catalog.d.cts +48 -18
- package/dist/entries/model-catalog.d.ts +48 -18
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +418 -322
- package/dist/entries/models.d.cts +71 -5
- package/dist/entries/models.d.ts +71 -5
- package/dist/entries/models.js +5 -5
- package/dist/entries/nodes.cjs +216 -208
- package/dist/entries/nodes.d.cts +22 -6
- package/dist/entries/nodes.d.ts +22 -6
- package/dist/entries/nodes.js +8 -8
- package/dist/entries/pipeline.cjs +152 -152
- package/dist/entries/pipeline.d.cts +3 -3
- package/dist/entries/pipeline.d.ts +3 -3
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/runtime-config.cjs +29 -29
- package/dist/entries/runtime-config.d.cts +10 -7
- package/dist/entries/runtime-config.d.ts +10 -7
- package/dist/entries/runtime-config.js +1 -1
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/types.d.cts +8 -0
- package/dist/entries/types.d.ts +8 -0
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +154 -150
- package/dist/entries/video.d.cts +11 -2
- package/dist/entries/video.d.ts +11 -2
- package/dist/entries/video.js +6 -6
- package/dist/entries/workflow.d.cts +1 -1
- package/dist/entries/workflow.d.ts +1 -1
- package/dist/index.cjs +1727 -1515
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +23 -23
- package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-C_Eo35tL.d.cts} +30 -0
- package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-C_Eo35tL.d.ts} +30 -0
- package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-Bg4ccSQb.d.ts} +138 -25
- package/dist/{model-constants-B88p6XR0.d.ts → model-constants-DWcxOmaY.d.cts} +138 -25
- package/package.json +1 -1
- package/src/__tests__/credit-identifiers.test.ts +29 -0
- package/src/__tests__/extend-providers.test.ts +106 -26
- package/src/__tests__/gvp-supported-providers.test.ts +27 -2
- package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
- package/src/__tests__/lip-sync-levers.test.ts +31 -0
- package/src/__tests__/llm-models.test.ts +132 -3
- package/src/__tests__/llm-price-key.test.ts +152 -1
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
- package/src/__tests__/normalize-node-params.test.ts +25 -0
- package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
- package/src/__tests__/prompt-length-limits.test.ts +4 -0
- package/src/__tests__/seedance-task-type.test.ts +13 -3
- package/src/__tests__/transcribe-capabilities.test.ts +39 -2
- package/src/__tests__/transcribe-preflight.test.ts +50 -1
- package/src/__tests__/video-audio-capability.test.ts +35 -6
- package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
- package/src/__tests__/video-upscale-params.test.ts +62 -0
- package/src/catalog-projection.ts +8 -0
- package/src/credit-estimators/index.ts +10 -0
- package/src/credit-estimators/nemotron-transcribe.ts +87 -0
- package/src/credit-identifiers.ts +109 -35
- package/src/entries/credits.ts +12 -1
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/model-catalog.ts +9 -0
- package/src/entries/models.ts +35 -0
- package/src/entries/nodes.ts +2 -0
- package/src/entries/video.ts +1 -1
- package/src/freecut-protocol.ts +8 -0
- package/src/lip-sync-levers.ts +56 -0
- package/src/lip-sync-pricing.ts +91 -1
- package/src/llm-models.ts +249 -4
- package/src/model-catalog.ts +250 -4
- package/src/model-constants.ts +277 -30
- package/src/model-tree.ts +2 -1
- package/src/nodaro-video-upscale.ts +48 -0
- package/src/node-default-mappings.ts +3 -0
- package/src/normalize-node-params.ts +49 -1
- package/src/runtime-config/contract.ts +10 -7
- package/src/seedance-draft.ts +2 -1
- package/src/transcribe-preflight.ts +58 -7
- package/src/video-duration.ts +9 -0
- package/src/video-ui-defaults.ts +5 -3
- package/src/video-upscale-params.ts +67 -0
- package/dist/chunk-2W745U4A.cjs.map +0 -1
- package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
- package/dist/chunk-3OYO3XCC.js.map +0 -1
- package/dist/chunk-5YYN5X57.js.map +0 -1
- package/dist/chunk-6CSXMWL4.cjs.map +0 -1
- package/dist/chunk-6G7NN4S4.js.map +0 -1
- package/dist/chunk-AFYTX4AI.cjs.map +0 -1
- package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
- package/dist/chunk-E2HZTGYX.js.map +0 -1
- package/dist/chunk-FVII3KHN.js.map +0 -1
- package/dist/chunk-GSFB537T.js.map +0 -1
- package/dist/chunk-IWWVPR3W.cjs.map +0 -1
- package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
- package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
- package/dist/chunk-MYJQELFN.cjs.map +0 -1
- package/dist/chunk-NGKKNSK6.js.map +0 -1
- package/dist/chunk-QWYFHQYK.cjs.map +0 -1
- package/dist/chunk-S24ZBUB4.js.map +0 -1
- package/dist/chunk-SYWR5G3T.js.map +0 -1
- package/dist/chunk-TRVWMKNE.cjs.map +0 -1
- package/dist/chunk-UDDVDQMF.js.map +0 -1
- package/dist/chunk-Y6X7UJSD.js.map +0 -1
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkBLJUCPMV_cjs = require('./chunk-BLJUCPMV.cjs');
|
|
4
4
|
var chunkYWNYGYI7_cjs = require('./chunk-YWNYGYI7.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunk2PU3AGGS_cjs = require('./chunk-2PU3AGGS.cjs');
|
|
6
|
+
var chunk6BZC2ZHC_cjs = require('./chunk-6BZC2ZHC.cjs');
|
|
7
7
|
var chunkKU6S7IYV_cjs = require('./chunk-KU6S7IYV.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var chunkGMBDLNLD_cjs = require('./chunk-GMBDLNLD.cjs');
|
|
9
|
+
var chunkWZVIBAKN_cjs = require('./chunk-WZVIBAKN.cjs');
|
|
10
|
+
var chunkL2TVY6XN_cjs = require('./chunk-L2TVY6XN.cjs');
|
|
11
11
|
var chunkV24EPI5N_cjs = require('./chunk-V24EPI5N.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var chunkLH72PQO2_cjs = require('./chunk-LH72PQO2.cjs');
|
|
13
|
+
var chunkM5OCFGHF_cjs = require('./chunk-M5OCFGHF.cjs');
|
|
14
14
|
var chunkR2VF5NQG_cjs = require('./chunk-R2VF5NQG.cjs');
|
|
15
15
|
var chunkWNVQ3SMB_cjs = require('./chunk-WNVQ3SMB.cjs');
|
|
16
16
|
var zod = require('zod');
|
|
@@ -91,8 +91,8 @@ var VIDEO_SETTINGS = ["aspect-ratio", "duration", "provider", "motion"];
|
|
|
91
91
|
var SETTINGS_CONSUMERS = {
|
|
92
92
|
"generate-video": {
|
|
93
93
|
accepts: VIDEO_SETTINGS,
|
|
94
|
-
models:
|
|
95
|
-
defaultModel:
|
|
94
|
+
models: chunkLH72PQO2_cjs.VIDEO_GEN_PROVIDERS,
|
|
95
|
+
defaultModel: chunkLH72PQO2_cjs.DEFAULT_VIDEO_PROVIDER,
|
|
96
96
|
duration: "model"
|
|
97
97
|
},
|
|
98
98
|
// Generate Video Pro has Generate Video's handles by construction
|
|
@@ -100,17 +100,17 @@ var SETTINGS_CONSUMERS = {
|
|
|
100
100
|
// settings; its own models and its own duration rule.
|
|
101
101
|
"generate-video-pro": {
|
|
102
102
|
accepts: VIDEO_SETTINGS,
|
|
103
|
-
models:
|
|
104
|
-
defaultModel:
|
|
103
|
+
models: chunkLH72PQO2_cjs.GVP_SUPPORTED_PROVIDERS,
|
|
104
|
+
defaultModel: chunkLH72PQO2_cjs.GVP_DEFAULT_PROVIDER,
|
|
105
105
|
duration: "total"
|
|
106
106
|
},
|
|
107
107
|
// A still image has no length, so no Duration.
|
|
108
108
|
"generate-image": {
|
|
109
109
|
accepts: ["aspect-ratio", "provider"],
|
|
110
|
-
models:
|
|
110
|
+
models: chunkLH72PQO2_cjs.IMAGE_GEN_PROVIDERS,
|
|
111
111
|
// The node's own default (NODE_DEFINITIONS) — only used to fit a wired
|
|
112
112
|
// ratio when the node names no model.
|
|
113
|
-
defaultModel:
|
|
113
|
+
defaultModel: chunk2PU3AGGS_cjs.IMAGE_MODEL_ROLE_DEFAULTS.general,
|
|
114
114
|
modelList: "providers"
|
|
115
115
|
}
|
|
116
116
|
};
|
|
@@ -165,8 +165,8 @@ function connectedSettingsSources(consumerId, consumerType, edges, typeOf) {
|
|
|
165
165
|
return out;
|
|
166
166
|
}
|
|
167
167
|
function snapToModelDuration(model, seconds) {
|
|
168
|
-
const durations =
|
|
169
|
-
if (!durations || durations.length === 0 ||
|
|
168
|
+
const durations = chunkM5OCFGHF_cjs.MODEL_CATALOG[model]?.durations;
|
|
169
|
+
if (!durations || durations.length === 0 || chunkM5OCFGHF_cjs.isAutoVideoDuration(seconds)) return seconds;
|
|
170
170
|
let best = durations[0];
|
|
171
171
|
for (const d of durations) {
|
|
172
172
|
const closer = Math.abs(d - seconds) < Math.abs(best - seconds);
|
|
@@ -195,7 +195,7 @@ function applySettingsInput(consumerType, consumerId, data, edges, typeOf) {
|
|
|
195
195
|
if (Number.isFinite(seconds)) next = { ...next, duration: snapToModelDuration(model, seconds) };
|
|
196
196
|
}
|
|
197
197
|
if (connected.some((c) => c.sourceType === "aspect-ratio") && typeof next.aspectRatio === "string") {
|
|
198
|
-
next = { ...next, aspectRatio:
|
|
198
|
+
next = { ...next, aspectRatio: chunkM5OCFGHF_cjs.fitAspectRatioToModel(model, next.aspectRatio) };
|
|
199
199
|
}
|
|
200
200
|
return { data: next };
|
|
201
201
|
}
|
|
@@ -326,7 +326,7 @@ var SCRIPT_TARGET_DURATION_RANGE = { min: 5, max: 600 };
|
|
|
326
326
|
var SCRIPT_SCENE_COUNT_DEFAULT = 5;
|
|
327
327
|
var SCRIPT_TARGET_DURATION_DEFAULT = 60;
|
|
328
328
|
var SCRIPT_TONE_MAX_LENGTH = 200;
|
|
329
|
-
var SCRIPT_STYLE_GUIDE_MAX_LENGTH =
|
|
329
|
+
var SCRIPT_STYLE_GUIDE_MAX_LENGTH = chunkLH72PQO2_cjs.LLM_TEXT_INPUT_MAX;
|
|
330
330
|
function clampInt(value, range) {
|
|
331
331
|
const n = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
|
|
332
332
|
if (!Number.isFinite(n)) return void 0;
|
|
@@ -393,10 +393,10 @@ var LEGACY_JSON_OUTPUT_KINDS = Object.freeze({
|
|
|
393
393
|
// clip tickets, the sized plan), and UGC Cards' layer plan and caption plan.
|
|
394
394
|
// Their text pips (category, transcript, report) are not JSON pips. The pip an
|
|
395
395
|
// edge with no `sourceHandle` reads is the UGC wires' own (UGC_PRIMARY_HANDLE).
|
|
396
|
-
"ugc-creator": { primary:
|
|
397
|
-
"ugc-script": { primary:
|
|
398
|
-
"ugc-clips": { primary:
|
|
399
|
-
"ugc-cards": { primary:
|
|
396
|
+
"ugc-creator": { primary: chunkL2TVY6XN_cjs.UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
|
|
397
|
+
"ugc-script": { primary: chunkL2TVY6XN_cjs.UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
|
|
398
|
+
"ugc-clips": { primary: chunkL2TVY6XN_cjs.UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
|
|
399
|
+
"ugc-cards": { primary: chunkL2TVY6XN_cjs.UGC_PRIMARY_HANDLE["ugc-cards"], pips: { layerPlan: "other", captionPlan: "other" } }
|
|
400
400
|
});
|
|
401
401
|
var JSON_OUTPUT_KINDS = Object.freeze(composeJsonOutputs(LEGACY_JSON_OUTPUT_KINDS, chunkV24EPI5N_cjs.unitJsonPips()));
|
|
402
402
|
function composeJsonOutputs(legacy, rows) {
|
|
@@ -412,12 +412,12 @@ var JSON_INPUT_KINDS = Object.freeze({
|
|
|
412
412
|
edl: "edl"
|
|
413
413
|
});
|
|
414
414
|
var own = (table, key) => Object.hasOwn(table, key) ? table[key] : void 0;
|
|
415
|
-
function declaredJsonOutput(nodeType, sourceHandle, renders =
|
|
415
|
+
function declaredJsonOutput(nodeType, sourceHandle, renders = chunk6BZC2ZHC_cjs.RENDER_NODE_TYPES) {
|
|
416
416
|
if (typeof nodeType !== "string") return void 0;
|
|
417
417
|
const render = own(renders, nodeType);
|
|
418
418
|
if (render) {
|
|
419
|
-
const pip2 = sourceHandle ??
|
|
420
|
-
if (pip2 ===
|
|
419
|
+
const pip2 = sourceHandle ?? chunk6BZC2ZHC_cjs.RENDER_JSON_HANDLE;
|
|
420
|
+
if (pip2 === chunk6BZC2ZHC_cjs.RENDER_JSON_HANDLE) return render.jsonKind;
|
|
421
421
|
return pip2 === render.transcriptOutput.handle ? "transcript" : void 0;
|
|
422
422
|
}
|
|
423
423
|
const outputs = own(JSON_OUTPUT_KINDS, nodeType);
|
|
@@ -430,14 +430,14 @@ function declaredJsonOutputRows() {
|
|
|
430
430
|
([type, o]) => Object.entries(o.pips).map(([pip, kind]) => [type, pip, kind])
|
|
431
431
|
);
|
|
432
432
|
}
|
|
433
|
-
function jsonOutputKind(nodeType, sourceHandle, renders =
|
|
433
|
+
function jsonOutputKind(nodeType, sourceHandle, renders = chunk6BZC2ZHC_cjs.RENDER_NODE_TYPES) {
|
|
434
434
|
const declared = declaredJsonOutput(nodeType, sourceHandle, renders);
|
|
435
435
|
return declared === "other" ? void 0 : declared;
|
|
436
436
|
}
|
|
437
437
|
function jsonInputKind(_nodeType, targetHandle) {
|
|
438
438
|
return typeof targetHandle === "string" ? own(JSON_INPUT_KINDS, targetHandle) : void 0;
|
|
439
439
|
}
|
|
440
|
-
function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders =
|
|
440
|
+
function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders = chunk6BZC2ZHC_cjs.RENDER_NODE_TYPES) {
|
|
441
441
|
const input = jsonInputKind(targetType, targetHandle);
|
|
442
442
|
if (!input) return null;
|
|
443
443
|
const output = jsonOutputKind(sourceType, sourceHandle, renders);
|
|
@@ -453,7 +453,7 @@ function jsonKindMismatchMessage(mismatch, labels = {}) {
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
// src/preview-gate.ts
|
|
456
|
-
var PREVIEW_RENDER_NODE_TYPES = new Set(
|
|
456
|
+
var PREVIEW_RENDER_NODE_TYPES = new Set(chunk6BZC2ZHC_cjs.RENDER_NODE_TYPE_IDS);
|
|
457
457
|
var REVIEW_HOLDING_USE_CASE_TYPES = new Set(chunkV24EPI5N_cjs.unitReviewHolds());
|
|
458
458
|
function isPreviewHoldingType(type) {
|
|
459
459
|
return PREVIEW_RENDER_NODE_TYPES.has(type ?? "") || REVIEW_HOLDING_USE_CASE_TYPES.has(type ?? "");
|
|
@@ -498,7 +498,7 @@ var outputModeOf = (edge) => {
|
|
|
498
498
|
return typeof mode === "string" ? mode : void 0;
|
|
499
499
|
};
|
|
500
500
|
function readsEach(render, consumerEdge, renderHandle) {
|
|
501
|
-
return (outputModeOf(consumerEdge) ??
|
|
501
|
+
return (outputModeOf(consumerEdge) ?? chunkWZVIBAKN_cjs.defaultEdgeOutputMode(render.type, renderHandle)) === "each";
|
|
502
502
|
}
|
|
503
503
|
function savedPreviewConsumers(render, children, nodeById, edges, reader) {
|
|
504
504
|
const data = dataOf(render);
|
|
@@ -590,7 +590,7 @@ function withRunOverrides(nodes, overrides) {
|
|
|
590
590
|
const data = withoutRunOnlyFields(saved);
|
|
591
591
|
const fields = overrides?.[n.id];
|
|
592
592
|
if (!fields) return data === saved ? n : { ...n, data };
|
|
593
|
-
const merged =
|
|
593
|
+
const merged = chunk6BZC2ZHC_cjs.mergeNodeInputOverrides(n.type ?? void 0, { ...data }, { ...fields });
|
|
594
594
|
for (const key of RUN_OVERRIDE_CLEARED_FIELDS) delete merged[key];
|
|
595
595
|
return { ...n, data: merged };
|
|
596
596
|
});
|
|
@@ -654,8 +654,8 @@ function loneMediaUrlKind(value) {
|
|
|
654
654
|
var MESSAGE_TRIGGER_TYPES = /* @__PURE__ */ new Set(["telegram-trigger", "telegram-account-trigger"]);
|
|
655
655
|
function isLoneMediaLinkSource(nodeType) {
|
|
656
656
|
if (!nodeType) return false;
|
|
657
|
-
if (
|
|
658
|
-
if (
|
|
657
|
+
if (chunkWZVIBAKN_cjs.IMAGE_PRODUCER_TYPES.has(nodeType) || chunkWZVIBAKN_cjs.VIDEO_PRODUCER_TYPES.has(nodeType) || chunkWZVIBAKN_cjs.AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
|
|
658
|
+
if (chunkWZVIBAKN_cjs.DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
|
|
659
659
|
if (chunkWNVQ3SMB_cjs.ENTITY_NODE_KINDS.includes(nodeType) || nodeType === "face") return false;
|
|
660
660
|
return true;
|
|
661
661
|
}
|
|
@@ -906,10 +906,33 @@ function captionPlanPassThrough(input) {
|
|
|
906
906
|
}
|
|
907
907
|
|
|
908
908
|
// src/transcribe-preflight.ts
|
|
909
|
-
function
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
909
|
+
function transcribeTargetLanguageOf(value) {
|
|
910
|
+
return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
|
|
911
|
+
}
|
|
912
|
+
function transcribeWordTimestampsRefusal(provider, targetLanguage) {
|
|
913
|
+
const lane = provider || chunkLH72PQO2_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
914
|
+
if (!chunkLH72PQO2_cjs.transcribeLaneSupportsWordTimestamps(lane)) {
|
|
915
|
+
return `the "${lane}" engine does not return word timings \u2014 pick ${chunkLH72PQO2_cjs.transcribeProvidersWithWordTimestamps().join(" or ")}`;
|
|
916
|
+
}
|
|
917
|
+
if (transcribeTargetLanguageOf(targetLanguage) !== void 0) {
|
|
918
|
+
return "a translation carries no word timings \u2014 clear the target language to get a transcript with word timings";
|
|
919
|
+
}
|
|
920
|
+
return null;
|
|
921
|
+
}
|
|
922
|
+
function transcribeTranslationRefusal(provider, targetLanguage, wordTimestamps) {
|
|
923
|
+
const target = transcribeTargetLanguageOf(targetLanguage);
|
|
924
|
+
if (target === void 0) return null;
|
|
925
|
+
const lane = provider || chunkLH72PQO2_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
926
|
+
if (!chunkLH72PQO2_cjs.transcribeLaneSupportsTranslation(lane)) {
|
|
927
|
+
return `the "${lane}" engine does not translate \u2014 pick ${chunkLH72PQO2_cjs.transcribeProvidersWithTranslation().join(" or ")} to translate, or clear the target language`;
|
|
928
|
+
}
|
|
929
|
+
if (!chunkLH72PQO2_cjs.TRANSCRIBE_TARGET_LANGUAGES.includes(target)) {
|
|
930
|
+
return `"${target}" is not a language the "${lane}" engine translates into \u2014 pick one of ${chunkLH72PQO2_cjs.TRANSCRIBE_TARGET_LANGUAGES.join(", ")}`;
|
|
931
|
+
}
|
|
932
|
+
if (wordTimestamps === true) {
|
|
933
|
+
return "word timings and a translation cannot be asked for together \u2014 turn word timings off, or clear the target language";
|
|
934
|
+
}
|
|
935
|
+
return null;
|
|
913
936
|
}
|
|
914
937
|
var TRANSCRIBE_JSON_OUT = "json";
|
|
915
938
|
var TRANSCRIPT_IN = "transcript";
|
|
@@ -919,8 +942,8 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
919
942
|
const out = [];
|
|
920
943
|
for (const node of nodes) {
|
|
921
944
|
if (node.type !== "transcribe" || isSkipped(node)) continue;
|
|
922
|
-
const provider = typeof node.data?.provider === "string" && node.data.provider ||
|
|
923
|
-
const refusal = transcribeWordTimestampsRefusal(provider);
|
|
945
|
+
const provider = typeof node.data?.provider === "string" && node.data.provider || chunkLH72PQO2_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
946
|
+
const refusal = transcribeWordTimestampsRefusal(provider, node.data?.targetLanguage);
|
|
924
947
|
if (!refusal) continue;
|
|
925
948
|
const seen = /* @__PURE__ */ new Set();
|
|
926
949
|
const frontier = [{ id: node.id, outHandle: TRANSCRIBE_JSON_OUT }];
|
|
@@ -938,7 +961,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
938
961
|
message: `Captions need word timings, but ${refusal}.`
|
|
939
962
|
});
|
|
940
963
|
} else if (!seen.has(target.id)) {
|
|
941
|
-
const remapped =
|
|
964
|
+
const remapped = chunk6BZC2ZHC_cjs.renderTranscriptOutputOf(target.type);
|
|
942
965
|
if (remapped) {
|
|
943
966
|
seen.add(target.id);
|
|
944
967
|
frontier.push({ id: target.id, outHandle: remapped.handle });
|
|
@@ -978,6 +1001,8 @@ function normalizeNodeModelParams(nodes) {
|
|
|
978
1001
|
const adjustments = [];
|
|
979
1002
|
const out = nodes.map((node) => {
|
|
980
1003
|
const type = typeof node.type === "string" ? node.type : "";
|
|
1004
|
+
if (type === "video-upscale") return normalizeVideoUpscaleNode(node, adjustments);
|
|
1005
|
+
if (type === "motion-transfer") return normalizeMotionTransferNode(node, adjustments);
|
|
981
1006
|
if (!MODEL_PARAM_NODE_TYPES.has(type)) return node;
|
|
982
1007
|
const data = node.data;
|
|
983
1008
|
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
@@ -986,8 +1011,8 @@ function normalizeNodeModelParams(nodes) {
|
|
|
986
1011
|
if (multi.length > 1) return node;
|
|
987
1012
|
const provider = typeof d.provider === "string" ? d.provider : typeof multi[0] === "string" ? multi[0] : void 0;
|
|
988
1013
|
if (!provider) return node;
|
|
989
|
-
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ?
|
|
990
|
-
const normalized =
|
|
1014
|
+
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? chunkGMBDLNLD_cjs.imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : chunkM5OCFGHF_cjs.autoAspectNeedsSourceImage(provider, d.aspectRatio));
|
|
1015
|
+
const normalized = chunkM5OCFGHF_cjs.normalizeModelInput(provider, {
|
|
991
1016
|
aspectRatio: !deferAuto && typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
|
|
992
1017
|
resolution: typeof d.resolution === "string" ? d.resolution : void 0,
|
|
993
1018
|
quality: typeof d.quality === "string" ? d.quality : void 0
|
|
@@ -1010,6 +1035,33 @@ function normalizeNodeModelParams(nodes) {
|
|
|
1010
1035
|
});
|
|
1011
1036
|
return { nodes: out, adjustments };
|
|
1012
1037
|
}
|
|
1038
|
+
function normalizeVideoUpscaleNode(node, adjustments) {
|
|
1039
|
+
const data = node.data;
|
|
1040
|
+
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
1041
|
+
const d = data;
|
|
1042
|
+
if (typeof d.targetResolution !== "string" || d.targetResolution === "") return node;
|
|
1043
|
+
const provider = typeof d.provider === "string" && d.provider !== "" ? d.provider : "topaz";
|
|
1044
|
+
if (chunk2PU3AGGS_cjs.videoUpscaleResolutionsFor(provider).length === 0) return node;
|
|
1045
|
+
const asked = d.targetResolution.trim().toLowerCase();
|
|
1046
|
+
if (!chunk2PU3AGGS_cjs.VIDEO_UPSCALE_RESOLUTIONS.includes(asked)) return node;
|
|
1047
|
+
const normalized = chunk2PU3AGGS_cjs.normalizeVideoUpscaleResolution(provider, d.targetResolution);
|
|
1048
|
+
if (normalized.targetResolution === d.targetResolution) return node;
|
|
1049
|
+
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
1050
|
+
if (normalized.adjustment) adjustments.push({ ...normalized.adjustment, nodeId, provider });
|
|
1051
|
+
return { ...node, data: { ...d, targetResolution: normalized.targetResolution } };
|
|
1052
|
+
}
|
|
1053
|
+
function normalizeMotionTransferNode(node, adjustments) {
|
|
1054
|
+
const data = node.data;
|
|
1055
|
+
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
1056
|
+
const d = data;
|
|
1057
|
+
if (typeof d.resolution !== "string" || d.resolution === "") return node;
|
|
1058
|
+
const provider = typeof d.provider === "string" && d.provider !== "" ? d.provider : "kling";
|
|
1059
|
+
const sized = chunkGMBDLNLD_cjs.motionTransferResolution(provider, d.resolution);
|
|
1060
|
+
if (sized.resolution === d.resolution) return node;
|
|
1061
|
+
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
1062
|
+
for (const adj of sized.adjustments) adjustments.push({ ...adj, nodeId, provider });
|
|
1063
|
+
return { ...node, data: { ...d, resolution: sized.resolution } };
|
|
1064
|
+
}
|
|
1013
1065
|
function describeNodeAdjustments(adjustments) {
|
|
1014
1066
|
return adjustments.map(
|
|
1015
1067
|
(a) => `${a.nodeId} (${a.provider}): ${a.field} "${a.from}" \u2192 ${a.to === void 0 ? "removed" : `"${a.to}"`} \u2014 ${a.reason}`
|
|
@@ -1033,7 +1085,7 @@ function readPromptAffixes(data) {
|
|
|
1033
1085
|
|
|
1034
1086
|
// src/node-preset-extract.ts
|
|
1035
1087
|
var PRESET_APPLY_CLEAR_KEYS = [
|
|
1036
|
-
...
|
|
1088
|
+
...chunkLH72PQO2_cjs.COMPOSER_PLAN_FIELDS,
|
|
1037
1089
|
"lottieUrl",
|
|
1038
1090
|
// Scene revision history contains old plans and their reference/prompt context.
|
|
1039
1091
|
// Preserve it in workflows, never capture or resurrect it through a preset.
|
|
@@ -1289,7 +1341,7 @@ function renderPlanPath(renderId, nodes, edges) {
|
|
|
1289
1341
|
edge = teleportInput(node.id);
|
|
1290
1342
|
continue;
|
|
1291
1343
|
}
|
|
1292
|
-
const mode = outputModeOf2(consumer.data) ??
|
|
1344
|
+
const mode = outputModeOf2(consumer.data) ?? chunkWZVIBAKN_cjs.defaultEdgeOutputMode(node.type, edge.sourceHandle);
|
|
1293
1345
|
hops.unshift({ edge: consumer, each: mode === "each", ...node.type ? { source: node.type } : {} });
|
|
1294
1346
|
if (node.type === "edit-plan") return { planId: node.id, hops };
|
|
1295
1347
|
if (!EDL_PASS_THROUGH_TYPES.has(node.type ?? "")) return void 0;
|
|
@@ -1567,8 +1619,8 @@ var IDENTITY_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([
|
|
|
1567
1619
|
"creature",
|
|
1568
1620
|
"location"
|
|
1569
1621
|
]);
|
|
1570
|
-
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER =
|
|
1571
|
-
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...
|
|
1622
|
+
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER = chunkWZVIBAKN_cjs.VIDEO_PRODUCER_TYPES;
|
|
1623
|
+
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...chunkWZVIBAKN_cjs.AUDIO_PRODUCER_TYPES, "youtube-video"]);
|
|
1572
1624
|
var DUAL_MODE_REVOICE_TARGETS = /* @__PURE__ */ new Set(["voice-changer", "voice-changer-pro", "dubbing"]);
|
|
1573
1625
|
function classifyLegacyTargetHandle(targetType, handle, sourceType, sentHandle = handle) {
|
|
1574
1626
|
if (!targetType) return handle;
|
|
@@ -1808,9 +1860,11 @@ exports.siteCapturePageUrl = siteCapturePageUrl;
|
|
|
1808
1860
|
exports.siteCaptureStillUrls = siteCaptureStillUrls;
|
|
1809
1861
|
exports.siteCaptureStills = siteCaptureStills;
|
|
1810
1862
|
exports.snapToModelDuration = snapToModelDuration;
|
|
1863
|
+
exports.transcribeTargetLanguageOf = transcribeTargetLanguageOf;
|
|
1864
|
+
exports.transcribeTranslationRefusal = transcribeTranslationRefusal;
|
|
1811
1865
|
exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
|
|
1812
1866
|
exports.videoOverlayPassThrough = videoOverlayPassThrough;
|
|
1813
1867
|
exports.withRunOverrides = withRunOverrides;
|
|
1814
1868
|
exports.withWiredSettings = withWiredSettings;
|
|
1815
|
-
//# sourceMappingURL=chunk-
|
|
1816
|
-
//# sourceMappingURL=chunk-
|
|
1869
|
+
//# sourceMappingURL=chunk-GSKLPI3J.cjs.map
|
|
1870
|
+
//# sourceMappingURL=chunk-GSKLPI3J.cjs.map
|