@nodaro/shared 3.63.0 → 3.65.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-3K24DWOH.js → chunk-222QM7CO.js} +3 -3
- package/dist/{chunk-3K24DWOH.js.map → chunk-222QM7CO.js.map} +1 -1
- package/dist/chunk-27HA6YOL.cjs +377 -0
- package/dist/chunk-27HA6YOL.cjs.map +1 -0
- package/dist/{chunk-4DVWXEB6.js → chunk-2NKF476Z.js} +3 -3
- package/dist/{chunk-4DVWXEB6.js.map → chunk-2NKF476Z.js.map} +1 -1
- package/dist/chunk-3AU52TSW.js +143 -0
- package/dist/chunk-3AU52TSW.js.map +1 -0
- package/dist/{chunk-F6WGGYQW.cjs → chunk-5NVGKXJV.cjs} +68 -29
- package/dist/chunk-5NVGKXJV.cjs.map +1 -0
- package/dist/{chunk-HWQ2SYNA.js → chunk-5SSMPYE5.js} +99 -9
- package/dist/chunk-5SSMPYE5.js.map +1 -0
- package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
- package/dist/chunk-6BRWPJPP.cjs.map +1 -0
- package/dist/{chunk-KHH54GRP.cjs → chunk-6ET3KDO4.cjs} +15 -338
- package/dist/chunk-6ET3KDO4.cjs.map +1 -0
- package/dist/{chunk-TM5JYSJF.cjs → chunk-6OSIOVF7.cjs} +98 -37
- package/dist/chunk-6OSIOVF7.cjs.map +1 -0
- package/dist/{chunk-YUER7TJG.js → chunk-6X5PBAC4.js} +13 -4
- package/dist/chunk-6X5PBAC4.js.map +1 -0
- package/dist/chunk-7BN4EDIC.cjs +185 -0
- package/dist/chunk-7BN4EDIC.cjs.map +1 -0
- package/dist/{chunk-6M563QE6.js → chunk-7OWXHW7Z.js} +78 -28
- package/dist/chunk-7OWXHW7Z.js.map +1 -0
- package/dist/{chunk-FXGNRYQQ.js → chunk-AT53ZQUC.js} +3 -3
- package/dist/{chunk-FXGNRYQQ.js.map → chunk-AT53ZQUC.js.map} +1 -1
- package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
- package/dist/chunk-BQYCZLMF.js.map +1 -0
- package/dist/{chunk-34QLPTSA.js → chunk-BSTAAGLY.js} +3 -3
- package/dist/{chunk-34QLPTSA.js.map → chunk-BSTAAGLY.js.map} +1 -1
- package/dist/{chunk-PSKZKLDG.js → chunk-CW6MMQNO.js} +562 -26
- package/dist/chunk-CW6MMQNO.js.map +1 -0
- package/dist/{chunk-EPXGG27L.js → chunk-D5Y3EYRM.js} +5 -5
- package/dist/{chunk-EPXGG27L.js.map → chunk-D5Y3EYRM.js.map} +1 -1
- package/dist/{chunk-XGVJGNZW.cjs → chunk-DQ2PARNH.cjs} +15 -5
- package/dist/chunk-DQ2PARNH.cjs.map +1 -0
- package/dist/{chunk-6BZC2ZHC.cjs → chunk-E66HSC2E.cjs} +9 -9
- package/dist/{chunk-6BZC2ZHC.cjs.map → chunk-E66HSC2E.cjs.map} +1 -1
- package/dist/{chunk-NIAFR5EE.js → chunk-FGBGKBML.js} +32 -3
- package/dist/chunk-FGBGKBML.js.map +1 -0
- package/dist/{chunk-M5OCFGHF.cjs → chunk-FI3HJZWM.cjs} +588 -25
- package/dist/chunk-FI3HJZWM.cjs.map +1 -0
- package/dist/{chunk-L2TVY6XN.cjs → chunk-FJZTQTF4.cjs} +4 -4
- package/dist/{chunk-L2TVY6XN.cjs.map → chunk-FJZTQTF4.cjs.map} +1 -1
- package/dist/{chunk-XGGZWA4A.cjs → chunk-GJ3D5X4X.cjs} +52 -49
- package/dist/chunk-GJ3D5X4X.cjs.map +1 -0
- package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
- package/dist/chunk-H5KHWTAE.js.map +1 -0
- package/dist/{chunk-MD4XHED4.js → chunk-H745DQ6V.js} +3 -3
- package/dist/{chunk-MD4XHED4.js.map → chunk-H745DQ6V.js.map} +1 -1
- package/dist/{chunk-KCZHQH2O.js → chunk-HAH2F7LT.js} +4 -4
- package/dist/{chunk-KCZHQH2O.js.map → chunk-HAH2F7LT.js.map} +1 -1
- package/dist/{chunk-V5EEQR2U.cjs → chunk-JQMFJAYU.cjs} +21 -21
- package/dist/{chunk-V5EEQR2U.cjs.map → chunk-JQMFJAYU.cjs.map} +1 -1
- package/dist/{chunk-WZVIBAKN.cjs → chunk-JYU5EIRM.cjs} +12 -12
- package/dist/{chunk-WZVIBAKN.cjs.map → chunk-JYU5EIRM.cjs.map} +1 -1
- package/dist/{chunk-Y35JQPT6.cjs → chunk-K6RIN3LW.cjs} +142 -45
- package/dist/chunk-K6RIN3LW.cjs.map +1 -0
- package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
- package/dist/chunk-KSHAAPQF.cjs.map +1 -0
- package/dist/{chunk-2PU3AGGS.cjs → chunk-KTCEKGBJ.cjs} +7 -7
- package/dist/{chunk-2PU3AGGS.cjs.map → chunk-KTCEKGBJ.cjs.map} +1 -1
- package/dist/{chunk-LH72PQO2.cjs → chunk-KWYS4IIM.cjs} +165 -50
- package/dist/chunk-KWYS4IIM.cjs.map +1 -0
- package/dist/{chunk-GSKLPI3J.cjs → chunk-MIT2USTS.cjs} +118 -61
- package/dist/chunk-MIT2USTS.cjs.map +1 -0
- package/dist/{chunk-Y4GCJJPF.cjs → chunk-NYZQOIXJ.cjs} +35 -2
- package/dist/chunk-NYZQOIXJ.cjs.map +1 -0
- package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
- package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
- package/dist/{chunk-X5BAFW3Q.cjs → chunk-PGDR7CO3.cjs} +8 -8
- package/dist/{chunk-X5BAFW3Q.cjs.map → chunk-PGDR7CO3.cjs.map} +1 -1
- package/dist/{chunk-OV3JTKBY.js → chunk-PL7AQQV7.js} +123 -22
- package/dist/chunk-PL7AQQV7.js.map +1 -0
- package/dist/chunk-Q4YOLT4M.js +164 -0
- package/dist/chunk-Q4YOLT4M.js.map +1 -0
- package/dist/{chunk-GMBDLNLD.cjs → chunk-R5ILCNCC.cjs} +197 -60
- package/dist/chunk-R5ILCNCC.cjs.map +1 -0
- package/dist/chunk-RP4KQUNU.cjs +168 -0
- package/dist/chunk-RP4KQUNU.cjs.map +1 -0
- package/dist/{chunk-77WU3V3J.cjs → chunk-SPU7MUWE.cjs} +6 -6
- package/dist/{chunk-77WU3V3J.cjs.map → chunk-SPU7MUWE.cjs.map} +1 -1
- package/dist/{chunk-XBTYGQ6Z.js → chunk-ST7OBB5J.js} +8 -5
- package/dist/chunk-ST7OBB5J.js.map +1 -0
- package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
- package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
- package/dist/{chunk-BMJVKYVB.js → chunk-V5NLQ4L5.js} +123 -7
- package/dist/chunk-V5NLQ4L5.js.map +1 -0
- package/dist/{chunk-KMGCHV6O.js → chunk-V6OXSXIX.js} +63 -30
- package/dist/chunk-V6OXSXIX.js.map +1 -0
- package/dist/{chunk-LMAQUR55.cjs → chunk-WQMPIURW.cjs} +6 -6
- package/dist/{chunk-LMAQUR55.cjs.map → chunk-WQMPIURW.cjs.map} +1 -1
- package/dist/{chunk-ZPE2ZTJ4.cjs → chunk-WZG6GZIL.cjs} +4 -4
- package/dist/{chunk-ZPE2ZTJ4.cjs.map → chunk-WZG6GZIL.cjs.map} +1 -1
- package/dist/{chunk-AE3AAJ4O.js → chunk-XJANKTIL.js} +3 -3
- package/dist/{chunk-AE3AAJ4O.js.map → chunk-XJANKTIL.js.map} +1 -1
- package/dist/{chunk-O7RZRUMZ.js → chunk-XJWED257.js} +14 -309
- package/dist/chunk-XJWED257.js.map +1 -0
- package/dist/chunk-XSSLNINL.js +346 -0
- package/dist/chunk-XSSLNINL.js.map +1 -0
- package/dist/{chunk-6TGB7ECA.cjs → chunk-YD4XY74W.cjs} +12 -8
- package/dist/chunk-YD4XY74W.cjs.map +1 -0
- package/dist/{chunk-YX6TFX7H.js → chunk-YMZUE2IX.js} +66 -11
- package/dist/chunk-YMZUE2IX.js.map +1 -0
- package/dist/{chunk-4MMZD63H.js → chunk-Z77M7Q2R.js} +3 -3
- package/dist/{chunk-4MMZD63H.js.map → chunk-Z77M7Q2R.js.map} +1 -1
- package/dist/{chunk-CZ5IQB3L.js → chunk-ZSRXY5YT.js} +8 -5
- package/dist/chunk-ZSRXY5YT.js.map +1 -0
- package/dist/entries/apps.cjs +43 -42
- package/dist/entries/apps.js +8 -7
- package/dist/entries/captions.cjs +38 -30
- package/dist/entries/captions.d.cts +48 -2
- package/dist/entries/captions.d.ts +48 -2
- package/dist/entries/captions.js +1 -1
- package/dist/entries/credits.cjs +319 -191
- package/dist/entries/credits.d.cts +260 -19
- package/dist/entries/credits.d.ts +260 -19
- package/dist/entries/credits.js +11 -11
- package/dist/entries/entities.cjs +202 -193
- package/dist/entries/entities.d.cts +44 -9
- package/dist/entries/entities.d.ts +44 -9
- package/dist/entries/entities.js +2 -1
- package/dist/entries/llm-models.cjs +86 -62
- package/dist/entries/llm-models.d.cts +73 -20
- package/dist/entries/llm-models.d.ts +73 -20
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +79 -63
- package/dist/entries/media.d.cts +154 -1
- package/dist/entries/media.d.ts +154 -1
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +205 -109
- package/dist/entries/model-catalog.d.cts +65 -58
- package/dist/entries/model-catalog.d.ts +65 -58
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +527 -346
- package/dist/entries/models.d.cts +86 -7
- package/dist/entries/models.d.ts +86 -7
- package/dist/entries/models.js +6 -5
- package/dist/entries/nodes.cjs +220 -211
- package/dist/entries/nodes.d.cts +46 -3
- package/dist/entries/nodes.d.ts +46 -3
- package/dist/entries/nodes.js +10 -9
- package/dist/entries/pipeline.cjs +156 -152
- package/dist/entries/pipeline.d.cts +14 -4
- package/dist/entries/pipeline.d.ts +14 -4
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +174 -145
- package/dist/entries/video.d.cts +114 -2
- package/dist/entries/video.d.ts +114 -2
- package/dist/entries/video.js +7 -6
- package/dist/entries/workflow.cjs +150 -150
- package/dist/entries/workflow.d.cts +1 -1
- package/dist/entries/workflow.d.ts +1 -1
- package/dist/entries/workflow.js +2 -2
- package/dist/index.cjs +2430 -1929
- package/dist/index.d.cts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +28 -27
- package/dist/{model-catalog-C_Eo35tL.d.cts → model-catalog-BoUKGFNl.d.cts} +182 -3
- package/dist/{model-catalog-C_Eo35tL.d.ts → model-catalog-BoUKGFNl.d.ts} +182 -3
- package/dist/{model-constants-DWcxOmaY.d.cts → model-constants-BElS3AeE.d.ts} +142 -23
- package/dist/{model-constants-Bg4ccSQb.d.ts → model-constants-CpQz1bGa.d.cts} +142 -23
- package/dist/tts-capabilities-BtnDWK9K.d.ts +133 -0
- package/dist/tts-capabilities-C52UccTI.d.cts +133 -0
- package/package.json +1 -1
- package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
- package/src/__tests__/dialogue-capabilities.test.ts +167 -6
- package/src/__tests__/extend-providers.test.ts +353 -26
- package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
- package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
- package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
- package/src/__tests__/flux-3-klein.test.ts +203 -0
- package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
- package/src/__tests__/kling4-catalog.test.ts +1 -1
- package/src/__tests__/llm-models.test.ts +48 -13
- package/src/__tests__/llm-price-key.test.ts +12 -0
- package/src/__tests__/model-makers.test.ts +3 -0
- package/src/__tests__/node-runtime-keys.test.ts +7 -0
- package/src/__tests__/normalize-node-params.test.ts +147 -1
- package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
- package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
- package/src/__tests__/sequence-execution.test.ts +22 -1
- package/src/__tests__/speech-pricing.test.ts +62 -1
- package/src/__tests__/suno-credit-type.test.ts +21 -2
- package/src/__tests__/transcribe-capabilities.test.ts +4 -2
- package/src/__tests__/tts-capabilities.test.ts +160 -4
- package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
- package/src/__tests__/video-analysis-pricing.test.ts +22 -9
- package/src/__tests__/video-subjects.test.ts +192 -0
- package/src/__tests__/wired-character-names.test.ts +142 -0
- package/src/caption-styles.ts +62 -0
- package/src/credit-estimators/add-captions-nemotron.ts +73 -0
- package/src/credit-estimators/index.ts +14 -0
- package/src/credit-estimators/speech.ts +57 -9
- package/src/credit-identifiers.ts +284 -13
- package/src/dialogue-capabilities.ts +220 -3
- package/src/dubbing-structure.ts +186 -0
- package/src/entries/captions.ts +2 -0
- package/src/entries/credits.ts +25 -1
- package/src/entries/entities.ts +2 -0
- package/src/entries/llm-models.ts +7 -0
- package/src/entries/media.ts +3 -1
- package/src/entries/model-catalog.ts +30 -0
- package/src/entries/models.ts +54 -0
- package/src/entries/nodes.ts +2 -0
- package/src/entries/pipeline.ts +1 -1
- package/src/entries/video.ts +8 -1
- package/src/flux-3-klein.ts +69 -0
- package/src/gemini-tts.ts +144 -0
- package/src/input-image-pricing.ts +23 -6
- package/src/llm-models.ts +130 -36
- package/src/model-catalog.ts +539 -25
- package/src/model-constants.ts +247 -25
- package/src/node-default-mappings.ts +3 -0
- package/src/node-runtime-keys.ts +3 -0
- package/src/normalize-node-params.ts +123 -2
- package/src/seedance-extend-rate.ts +116 -0
- package/src/sequence-execution.ts +24 -0
- package/src/transcribe-preflight.ts +23 -0
- package/src/tts-capabilities.ts +193 -1
- package/src/video-analysis-pricing.ts +39 -15
- package/src/video-character-refs.ts +160 -3
- package/src/wired-character-names.ts +134 -18
- package/src/wired-character-video-subjects.ts +63 -0
- package/dist/chunk-63H4C56Q.cjs +0 -38
- package/dist/chunk-63H4C56Q.cjs.map +0 -1
- package/dist/chunk-6M563QE6.js.map +0 -1
- package/dist/chunk-6TGB7ECA.cjs.map +0 -1
- package/dist/chunk-6XUG4L7X.cjs +0 -54
- package/dist/chunk-6XUG4L7X.cjs.map +0 -1
- package/dist/chunk-BLJUCPMV.cjs.map +0 -1
- package/dist/chunk-BMJVKYVB.js.map +0 -1
- package/dist/chunk-CZ5IQB3L.js.map +0 -1
- package/dist/chunk-F6WGGYQW.cjs.map +0 -1
- package/dist/chunk-GMBDLNLD.cjs.map +0 -1
- package/dist/chunk-GSKLPI3J.cjs.map +0 -1
- package/dist/chunk-HBXF6RUU.js +0 -31
- package/dist/chunk-HBXF6RUU.js.map +0 -1
- package/dist/chunk-HSHCCBIV.js.map +0 -1
- package/dist/chunk-HWQ2SYNA.js.map +0 -1
- package/dist/chunk-IY3Y462W.js +0 -42
- package/dist/chunk-IY3Y462W.js.map +0 -1
- package/dist/chunk-KHH54GRP.cjs.map +0 -1
- package/dist/chunk-KMGCHV6O.js.map +0 -1
- package/dist/chunk-LH72PQO2.cjs.map +0 -1
- package/dist/chunk-M5OCFGHF.cjs.map +0 -1
- package/dist/chunk-NIAFR5EE.js.map +0 -1
- package/dist/chunk-O7RZRUMZ.js.map +0 -1
- package/dist/chunk-OV3JTKBY.js.map +0 -1
- package/dist/chunk-PSKZKLDG.js.map +0 -1
- package/dist/chunk-Q6IES3U2.js.map +0 -1
- package/dist/chunk-TM5JYSJF.cjs.map +0 -1
- package/dist/chunk-WRSWH7US.cjs.map +0 -1
- package/dist/chunk-XBTYGQ6Z.js.map +0 -1
- package/dist/chunk-XGGZWA4A.cjs.map +0 -1
- package/dist/chunk-XGVJGNZW.cjs.map +0 -1
- package/dist/chunk-Y35JQPT6.cjs.map +0 -1
- package/dist/chunk-Y4GCJJPF.cjs.map +0 -1
- package/dist/chunk-YUER7TJG.js.map +0 -1
- package/dist/chunk-YX6TFX7H.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKSHAAPQF_cjs = require('./chunk-KSHAAPQF.cjs');
|
|
4
4
|
var chunkYWNYGYI7_cjs = require('./chunk-YWNYGYI7.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkKTCEKGBJ_cjs = require('./chunk-KTCEKGBJ.cjs');
|
|
6
|
+
var chunkE66HSC2E_cjs = require('./chunk-E66HSC2E.cjs');
|
|
7
7
|
var chunkKU6S7IYV_cjs = require('./chunk-KU6S7IYV.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var chunkR5ILCNCC_cjs = require('./chunk-R5ILCNCC.cjs');
|
|
9
|
+
var chunkJYU5EIRM_cjs = require('./chunk-JYU5EIRM.cjs');
|
|
10
|
+
var chunkFJZTQTF4_cjs = require('./chunk-FJZTQTF4.cjs');
|
|
11
11
|
var chunkV24EPI5N_cjs = require('./chunk-V24EPI5N.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var chunkKWYS4IIM_cjs = require('./chunk-KWYS4IIM.cjs');
|
|
13
|
+
var chunkFI3HJZWM_cjs = require('./chunk-FI3HJZWM.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: chunkKWYS4IIM_cjs.VIDEO_GEN_PROVIDERS,
|
|
95
|
+
defaultModel: chunkKWYS4IIM_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: chunkKWYS4IIM_cjs.GVP_SUPPORTED_PROVIDERS,
|
|
104
|
+
defaultModel: chunkKWYS4IIM_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: chunkKWYS4IIM_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: chunkKTCEKGBJ_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 = chunkFI3HJZWM_cjs.MODEL_CATALOG[model]?.durations;
|
|
169
|
+
if (!durations || durations.length === 0 || chunkFI3HJZWM_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: chunkFI3HJZWM_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 = chunkKWYS4IIM_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;
|
|
@@ -338,7 +338,7 @@ function clampText(value, max) {
|
|
|
338
338
|
return text.length > 0 ? text.slice(0, max) : void 0;
|
|
339
339
|
}
|
|
340
340
|
function readScriptSettings(data, refMap) {
|
|
341
|
-
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ?
|
|
341
|
+
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? chunkKSHAAPQF_cjs.resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
|
|
342
342
|
return {
|
|
343
343
|
sceneCount: clampInt(data.sceneCount, SCRIPT_SCENE_COUNT_RANGE),
|
|
344
344
|
// The panel's own fields (the ones a mapping writes) come first. `style` is
|
|
@@ -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: chunkFJZTQTF4_cjs.UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
|
|
397
|
+
"ugc-script": { primary: chunkFJZTQTF4_cjs.UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
|
|
398
|
+
"ugc-clips": { primary: chunkFJZTQTF4_cjs.UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
|
|
399
|
+
"ugc-cards": { primary: chunkFJZTQTF4_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 = chunkE66HSC2E_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 ?? chunkE66HSC2E_cjs.RENDER_JSON_HANDLE;
|
|
420
|
+
if (pip2 === chunkE66HSC2E_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 = chunkE66HSC2E_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 = chunkE66HSC2E_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(chunkE66HSC2E_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) ?? chunkJYU5EIRM_cjs.defaultEdgeOutputMode(render.type, renderHandle)) === "each";
|
|
502
502
|
}
|
|
503
503
|
function savedPreviewConsumers(render, children, nodeById, edges, reader) {
|
|
504
504
|
const data = dataOf(render);
|
|
@@ -534,7 +534,7 @@ function previewStops(nodes, edges, run = {}) {
|
|
|
534
534
|
return !!n && dataOf(n).skipped !== true;
|
|
535
535
|
});
|
|
536
536
|
const reader = run.savedRenders ?? SAVED_RENDER_STAMPS;
|
|
537
|
-
const { children } =
|
|
537
|
+
const { children } = chunkKSHAAPQF_cjs.buildFeedMaps(nodes, edges);
|
|
538
538
|
const previewRenderIds = [];
|
|
539
539
|
const savedPreviewRenderIds = [];
|
|
540
540
|
const seeds = [];
|
|
@@ -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 = chunkE66HSC2E_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 (chunkJYU5EIRM_cjs.IMAGE_PRODUCER_TYPES.has(nodeType) || chunkJYU5EIRM_cjs.VIDEO_PRODUCER_TYPES.has(nodeType) || chunkJYU5EIRM_cjs.AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
|
|
658
|
+
if (chunkJYU5EIRM_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
|
}
|
|
@@ -910,9 +910,9 @@ function transcribeTargetLanguageOf(value) {
|
|
|
910
910
|
return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
|
|
911
911
|
}
|
|
912
912
|
function transcribeWordTimestampsRefusal(provider, targetLanguage) {
|
|
913
|
-
const lane = provider ||
|
|
914
|
-
if (!
|
|
915
|
-
return `the "${lane}" engine does not return word timings \u2014 pick ${
|
|
913
|
+
const lane = provider || chunkKWYS4IIM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
914
|
+
if (!chunkKWYS4IIM_cjs.transcribeLaneSupportsWordTimestamps(lane)) {
|
|
915
|
+
return `the "${lane}" engine does not return word timings \u2014 pick ${chunkKWYS4IIM_cjs.transcribeProvidersWithWordTimestamps().join(" or ")}`;
|
|
916
916
|
}
|
|
917
917
|
if (transcribeTargetLanguageOf(targetLanguage) !== void 0) {
|
|
918
918
|
return "a translation carries no word timings \u2014 clear the target language to get a transcript with word timings";
|
|
@@ -922,18 +922,25 @@ function transcribeWordTimestampsRefusal(provider, targetLanguage) {
|
|
|
922
922
|
function transcribeTranslationRefusal(provider, targetLanguage, wordTimestamps) {
|
|
923
923
|
const target = transcribeTargetLanguageOf(targetLanguage);
|
|
924
924
|
if (target === void 0) return null;
|
|
925
|
-
const lane = provider ||
|
|
926
|
-
if (!
|
|
927
|
-
return `the "${lane}" engine does not translate \u2014 pick ${
|
|
925
|
+
const lane = provider || chunkKWYS4IIM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
926
|
+
if (!chunkKWYS4IIM_cjs.transcribeLaneSupportsTranslation(lane)) {
|
|
927
|
+
return `the "${lane}" engine does not translate \u2014 pick ${chunkKWYS4IIM_cjs.transcribeProvidersWithTranslation().join(" or ")} to translate, or clear the target language`;
|
|
928
928
|
}
|
|
929
|
-
if (!
|
|
930
|
-
return `"${target}" is not a language the "${lane}" engine translates into \u2014 pick one of ${
|
|
929
|
+
if (!chunkKWYS4IIM_cjs.TRANSCRIBE_TARGET_LANGUAGES.includes(target)) {
|
|
930
|
+
return `"${target}" is not a language the "${lane}" engine translates into \u2014 pick one of ${chunkKWYS4IIM_cjs.TRANSCRIBE_TARGET_LANGUAGES.join(", ")}`;
|
|
931
931
|
}
|
|
932
932
|
if (wordTimestamps === true) {
|
|
933
933
|
return "word timings and a translation cannot be asked for together \u2014 turn word timings off, or clear the target language";
|
|
934
934
|
}
|
|
935
935
|
return null;
|
|
936
936
|
}
|
|
937
|
+
var ALWAYS_WORD_LEVEL_LANES = /* @__PURE__ */ new Set(["elevenlabs-stt"]);
|
|
938
|
+
function transcribeNodeReturnsWords(data, jsonWired) {
|
|
939
|
+
const provider = typeof data?.provider === "string" && data.provider || chunkKWYS4IIM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
940
|
+
if (transcribeTargetLanguageOf(data?.targetLanguage) !== void 0) return false;
|
|
941
|
+
if (!chunkKWYS4IIM_cjs.transcribeLaneSupportsWordTimestamps(provider)) return false;
|
|
942
|
+
return ALWAYS_WORD_LEVEL_LANES.has(provider) || data?.wordTimestamps === true || jsonWired;
|
|
943
|
+
}
|
|
937
944
|
var TRANSCRIBE_JSON_OUT = "json";
|
|
938
945
|
var TRANSCRIPT_IN = "transcript";
|
|
939
946
|
function findWordlessTranscriptFeeds(nodes, edges) {
|
|
@@ -942,7 +949,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
942
949
|
const out = [];
|
|
943
950
|
for (const node of nodes) {
|
|
944
951
|
if (node.type !== "transcribe" || isSkipped(node)) continue;
|
|
945
|
-
const provider = typeof node.data?.provider === "string" && node.data.provider ||
|
|
952
|
+
const provider = typeof node.data?.provider === "string" && node.data.provider || chunkKWYS4IIM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
946
953
|
const refusal = transcribeWordTimestampsRefusal(provider, node.data?.targetLanguage);
|
|
947
954
|
if (!refusal) continue;
|
|
948
955
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -961,7 +968,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
961
968
|
message: `Captions need word timings, but ${refusal}.`
|
|
962
969
|
});
|
|
963
970
|
} else if (!seen.has(target.id)) {
|
|
964
|
-
const remapped =
|
|
971
|
+
const remapped = chunkE66HSC2E_cjs.renderTranscriptOutputOf(target.type);
|
|
965
972
|
if (remapped) {
|
|
966
973
|
seen.add(target.id);
|
|
967
974
|
frontier.push({ id: target.id, outHandle: remapped.handle });
|
|
@@ -1003,6 +1010,7 @@ function normalizeNodeModelParams(nodes) {
|
|
|
1003
1010
|
const type = typeof node.type === "string" ? node.type : "";
|
|
1004
1011
|
if (type === "video-upscale") return normalizeVideoUpscaleNode(node, adjustments);
|
|
1005
1012
|
if (type === "motion-transfer") return normalizeMotionTransferNode(node, adjustments);
|
|
1013
|
+
if (REFERENCE_TASK_TYPE_NODE_MODES.has(type)) return withListedReferenceTaskTypes([node], adjustments)[0];
|
|
1006
1014
|
if (!MODEL_PARAM_NODE_TYPES.has(type)) return node;
|
|
1007
1015
|
const data = node.data;
|
|
1008
1016
|
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
@@ -1011,8 +1019,8 @@ function normalizeNodeModelParams(nodes) {
|
|
|
1011
1019
|
if (multi.length > 1) return node;
|
|
1012
1020
|
const provider = typeof d.provider === "string" ? d.provider : typeof multi[0] === "string" ? multi[0] : void 0;
|
|
1013
1021
|
if (!provider) return node;
|
|
1014
|
-
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ?
|
|
1015
|
-
const normalized =
|
|
1022
|
+
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? chunkR5ILCNCC_cjs.imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : chunkFI3HJZWM_cjs.autoAspectNeedsSourceImage(provider, d.aspectRatio));
|
|
1023
|
+
const normalized = chunkFI3HJZWM_cjs.normalizeModelInput(provider, {
|
|
1016
1024
|
aspectRatio: !deferAuto && typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
|
|
1017
1025
|
resolution: typeof d.resolution === "string" ? d.resolution : void 0,
|
|
1018
1026
|
quality: typeof d.quality === "string" ? d.quality : void 0
|
|
@@ -1041,10 +1049,10 @@ function normalizeVideoUpscaleNode(node, adjustments) {
|
|
|
1041
1049
|
const d = data;
|
|
1042
1050
|
if (typeof d.targetResolution !== "string" || d.targetResolution === "") return node;
|
|
1043
1051
|
const provider = typeof d.provider === "string" && d.provider !== "" ? d.provider : "topaz";
|
|
1044
|
-
if (
|
|
1052
|
+
if (chunkKTCEKGBJ_cjs.videoUpscaleResolutionsFor(provider).length === 0) return node;
|
|
1045
1053
|
const asked = d.targetResolution.trim().toLowerCase();
|
|
1046
|
-
if (!
|
|
1047
|
-
const normalized =
|
|
1054
|
+
if (!chunkKTCEKGBJ_cjs.VIDEO_UPSCALE_RESOLUTIONS.includes(asked)) return node;
|
|
1055
|
+
const normalized = chunkKTCEKGBJ_cjs.normalizeVideoUpscaleResolution(provider, d.targetResolution);
|
|
1048
1056
|
if (normalized.targetResolution === d.targetResolution) return node;
|
|
1049
1057
|
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
1050
1058
|
if (normalized.adjustment) adjustments.push({ ...normalized.adjustment, nodeId, provider });
|
|
@@ -1056,12 +1064,59 @@ function normalizeMotionTransferNode(node, adjustments) {
|
|
|
1056
1064
|
const d = data;
|
|
1057
1065
|
if (typeof d.resolution !== "string" || d.resolution === "") return node;
|
|
1058
1066
|
const provider = typeof d.provider === "string" && d.provider !== "" ? d.provider : "kling";
|
|
1059
|
-
const sized =
|
|
1067
|
+
const sized = chunkR5ILCNCC_cjs.motionTransferResolution(provider, d.resolution);
|
|
1060
1068
|
if (sized.resolution === d.resolution) return node;
|
|
1061
1069
|
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
1062
1070
|
for (const adj of sized.adjustments) adjustments.push({ ...adj, nodeId, provider });
|
|
1063
1071
|
return { ...node, data: { ...d, resolution: sized.resolution } };
|
|
1064
1072
|
}
|
|
1073
|
+
var REFERENCE_TASK_TYPE_NODE_MODES = /* @__PURE__ */ new Map([
|
|
1074
|
+
["generate-video", ["image-to-video", "text-to-video"]],
|
|
1075
|
+
["image-to-video", ["image-to-video"]],
|
|
1076
|
+
["text-to-video", ["text-to-video"]],
|
|
1077
|
+
["video-to-video", []]
|
|
1078
|
+
]);
|
|
1079
|
+
var namedModel = (v) => typeof v === "string" && v !== "" ? v : void 0;
|
|
1080
|
+
function videoRunModels(type, d) {
|
|
1081
|
+
const list = Array.isArray(d.providers) ? d.providers.flatMap((p) => namedModel(p) ?? []) : [];
|
|
1082
|
+
if (list.length >= 2) return list;
|
|
1083
|
+
const named = namedModel(d.provider);
|
|
1084
|
+
if (type === "generate-video") return [chunkKWYS4IIM_cjs.applyDefaultVideoSelection({ provider: named }).provider];
|
|
1085
|
+
return [named ?? (type === "video-to-video" ? chunkKWYS4IIM_cjs.DEFAULT_VIDEO_TO_VIDEO_PROVIDER : chunkKWYS4IIM_cjs.LEGACY_VIDEO_NODE_DEFAULT_PROVIDER)];
|
|
1086
|
+
}
|
|
1087
|
+
function normalizeReferenceTaskTypeNode(node, type, adjustments) {
|
|
1088
|
+
const data = node.data;
|
|
1089
|
+
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
1090
|
+
const d = data;
|
|
1091
|
+
const value = d.referenceTaskType;
|
|
1092
|
+
if (value === void 0) return node;
|
|
1093
|
+
const modes = REFERENCE_TASK_TYPE_NODE_MODES.get(type) ?? [];
|
|
1094
|
+
const models = videoRunModels(type, d);
|
|
1095
|
+
const sentTo = models.flatMap((m) => [m, ...modes.map((mode) => chunkKWYS4IIM_cjs.resolveVideoProviderForMode(m, mode))]);
|
|
1096
|
+
if (sentTo.some((m) => chunkKWYS4IIM_cjs.listedSeedanceTaskType(m, value) !== void 0)) return node;
|
|
1097
|
+
const listedAnywhere = Object.values(chunkFI3HJZWM_cjs.MODEL_CATALOG).some((m) => m.referenceTaskTypes?.some((t) => t === value));
|
|
1098
|
+
const label = chunkFI3HJZWM_cjs.MODEL_CATALOG[models[0]]?.label ?? models[0];
|
|
1099
|
+
const reason = listedAnywhere ? `${label} does not take the reference task type "${String(value)}": removed, so the run declares none (Auto).` : `"${String(value)}" is not a reference task type a model takes (reference, edit or extend): removed \u2014 Auto is the setting left unset.`;
|
|
1100
|
+
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
1101
|
+
adjustments.push({ field: "referenceTaskType", from: typeof value === "number" ? value : String(value), to: void 0, reason, nodeId, provider: models[0] });
|
|
1102
|
+
const { referenceTaskType: _removed, ...rest } = d;
|
|
1103
|
+
return { ...node, data: rest };
|
|
1104
|
+
}
|
|
1105
|
+
function withListedReferenceTaskTypes(nodes, adjustments) {
|
|
1106
|
+
if (!Array.isArray(nodes)) return nodes;
|
|
1107
|
+
const sink = adjustments ?? [];
|
|
1108
|
+
let changed = false;
|
|
1109
|
+
const out = nodes.map((node) => {
|
|
1110
|
+
if (!node || typeof node !== "object" || Array.isArray(node)) return node;
|
|
1111
|
+
const n = node;
|
|
1112
|
+
const type = typeof n.type === "string" ? n.type : "";
|
|
1113
|
+
if (!REFERENCE_TASK_TYPE_NODE_MODES.has(type)) return node;
|
|
1114
|
+
const next = normalizeReferenceTaskTypeNode(n, type, sink);
|
|
1115
|
+
if (next !== n) changed = true;
|
|
1116
|
+
return next;
|
|
1117
|
+
});
|
|
1118
|
+
return changed ? out : nodes;
|
|
1119
|
+
}
|
|
1065
1120
|
function describeNodeAdjustments(adjustments) {
|
|
1066
1121
|
return adjustments.map(
|
|
1067
1122
|
(a) => `${a.nodeId} (${a.provider}): ${a.field} "${a.from}" \u2192 ${a.to === void 0 ? "removed" : `"${a.to}"`} \u2014 ${a.reason}`
|
|
@@ -1085,7 +1140,7 @@ function readPromptAffixes(data) {
|
|
|
1085
1140
|
|
|
1086
1141
|
// src/node-preset-extract.ts
|
|
1087
1142
|
var PRESET_APPLY_CLEAR_KEYS = [
|
|
1088
|
-
...
|
|
1143
|
+
...chunkKWYS4IIM_cjs.COMPOSER_PLAN_FIELDS,
|
|
1089
1144
|
"lottieUrl",
|
|
1090
1145
|
// Scene revision history contains old plans and their reference/prompt context.
|
|
1091
1146
|
// Preserve it in workflows, never capture or resurrect it through a preset.
|
|
@@ -1161,7 +1216,7 @@ var PRESET_EXCLUDED_KEYS = /* @__PURE__ */ new Set([
|
|
|
1161
1216
|
function extractPresetData(data, nodeType) {
|
|
1162
1217
|
const out = {};
|
|
1163
1218
|
for (const key of Object.keys(data)) {
|
|
1164
|
-
if (
|
|
1219
|
+
if (chunkKSHAAPQF_cjs.isExecutionDataKey(key, nodeType)) continue;
|
|
1165
1220
|
if (PRESET_EXCLUDED_KEYS.has(key)) continue;
|
|
1166
1221
|
out[key] = data[key];
|
|
1167
1222
|
}
|
|
@@ -1341,7 +1396,7 @@ function renderPlanPath(renderId, nodes, edges) {
|
|
|
1341
1396
|
edge = teleportInput(node.id);
|
|
1342
1397
|
continue;
|
|
1343
1398
|
}
|
|
1344
|
-
const mode = outputModeOf2(consumer.data) ??
|
|
1399
|
+
const mode = outputModeOf2(consumer.data) ?? chunkJYU5EIRM_cjs.defaultEdgeOutputMode(node.type, edge.sourceHandle);
|
|
1345
1400
|
hops.unshift({ edge: consumer, each: mode === "each", ...node.type ? { source: node.type } : {} });
|
|
1346
1401
|
if (node.type === "edit-plan") return { planId: node.id, hops };
|
|
1347
1402
|
if (!EDL_PASS_THROUGH_TYPES.has(node.type ?? "")) return void 0;
|
|
@@ -1363,10 +1418,10 @@ function singlePick(clips, hop) {
|
|
|
1363
1418
|
const mode = outputModeOf2(hop.edge.data);
|
|
1364
1419
|
if (mode === "item") {
|
|
1365
1420
|
const expr = typeof data?.itemIndex === "string" ? data.itemIndex : "1";
|
|
1366
|
-
return [clips[
|
|
1421
|
+
return [clips[chunkKSHAAPQF_cjs.resolveIndex(expr, clips.length)] ?? clips[0]];
|
|
1367
1422
|
}
|
|
1368
1423
|
if (mode?.startsWith("item:")) return [clips[parseInt(mode.slice(5), 10)] ?? clips[0]];
|
|
1369
|
-
if (mode === "all") return
|
|
1424
|
+
if (mode === "all") return chunkKSHAAPQF_cjs.selectListItems(clips, data);
|
|
1370
1425
|
if (hop.source === "edit-plan") return keptClips(clips).slice(0, 1);
|
|
1371
1426
|
return clips.length === 1 ? clips : [];
|
|
1372
1427
|
}
|
|
@@ -1376,7 +1431,7 @@ function renderPlanValue(plan, row, hops = []) {
|
|
|
1376
1431
|
for (const [i, hop] of hops.entries()) {
|
|
1377
1432
|
if (clips.length === 0) return void 0;
|
|
1378
1433
|
if (hop.each) {
|
|
1379
|
-
clips =
|
|
1434
|
+
clips = chunkKSHAAPQF_cjs.selectListItems(clips, hop.edge.data);
|
|
1380
1435
|
if (i < hops.length - 1) clips = keptClips(clips);
|
|
1381
1436
|
} else {
|
|
1382
1437
|
clips = singlePick(clips, hop);
|
|
@@ -1407,7 +1462,7 @@ function renderLoneRow(renderId, nodes, edges, batchOf) {
|
|
|
1407
1462
|
const path = renderPlanPath(renderId, nodes, edges);
|
|
1408
1463
|
if (!path || path.hops.length < 2) return void 0;
|
|
1409
1464
|
const last = path.hops[path.hops.length - 1];
|
|
1410
|
-
if (!last.each || !
|
|
1465
|
+
if (!last.each || !chunkKSHAAPQF_cjs.isDefaultSelectorConfig(last.edge.data)) return void 0;
|
|
1411
1466
|
const passId = path.hops[path.hops.length - 2].edge.target;
|
|
1412
1467
|
const passNode = nodes.find((n) => n.id === passId);
|
|
1413
1468
|
const batch = passNode ? batchOf(passNode) : void 0;
|
|
@@ -1619,8 +1674,8 @@ var IDENTITY_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([
|
|
|
1619
1674
|
"creature",
|
|
1620
1675
|
"location"
|
|
1621
1676
|
]);
|
|
1622
|
-
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER =
|
|
1623
|
-
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...
|
|
1677
|
+
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER = chunkJYU5EIRM_cjs.VIDEO_PRODUCER_TYPES;
|
|
1678
|
+
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...chunkJYU5EIRM_cjs.AUDIO_PRODUCER_TYPES, "youtube-video"]);
|
|
1624
1679
|
var DUAL_MODE_REVOICE_TARGETS = /* @__PURE__ */ new Set(["voice-changer", "voice-changer-pro", "dubbing"]);
|
|
1625
1680
|
function classifyLegacyTargetHandle(targetType, handle, sourceType, sentHandle = handle) {
|
|
1626
1681
|
if (!targetType) return handle;
|
|
@@ -1860,11 +1915,13 @@ exports.siteCapturePageUrl = siteCapturePageUrl;
|
|
|
1860
1915
|
exports.siteCaptureStillUrls = siteCaptureStillUrls;
|
|
1861
1916
|
exports.siteCaptureStills = siteCaptureStills;
|
|
1862
1917
|
exports.snapToModelDuration = snapToModelDuration;
|
|
1918
|
+
exports.transcribeNodeReturnsWords = transcribeNodeReturnsWords;
|
|
1863
1919
|
exports.transcribeTargetLanguageOf = transcribeTargetLanguageOf;
|
|
1864
1920
|
exports.transcribeTranslationRefusal = transcribeTranslationRefusal;
|
|
1865
1921
|
exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
|
|
1866
1922
|
exports.videoOverlayPassThrough = videoOverlayPassThrough;
|
|
1923
|
+
exports.withListedReferenceTaskTypes = withListedReferenceTaskTypes;
|
|
1867
1924
|
exports.withRunOverrides = withRunOverrides;
|
|
1868
1925
|
exports.withWiredSettings = withWiredSettings;
|
|
1869
|
-
//# sourceMappingURL=chunk-
|
|
1870
|
-
//# sourceMappingURL=chunk-
|
|
1926
|
+
//# sourceMappingURL=chunk-MIT2USTS.cjs.map
|
|
1927
|
+
//# sourceMappingURL=chunk-MIT2USTS.cjs.map
|