@nodaro/shared 3.62.0 → 3.64.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-C7POAYFE.js → chunk-36VWLB4J.js} +3 -3
- package/dist/{chunk-C7POAYFE.js.map → chunk-36VWLB4J.js.map} +1 -1
- package/dist/{chunk-S24ZBUB4.js → chunk-3AYM47GW.js} +6 -32
- package/dist/chunk-3AYM47GW.js.map +1 -0
- package/dist/{chunk-YCXRSWCQ.js → chunk-3KTWYYCN.js} +8 -5
- package/dist/chunk-3KTWYYCN.js.map +1 -0
- package/dist/{chunk-ZES6EZC4.js → chunk-4IUE2JB7.js} +3 -3
- package/dist/{chunk-ZES6EZC4.js.map → chunk-4IUE2JB7.js.map} +1 -1
- package/dist/{chunk-MYJQELFN.cjs → chunk-5OBTGNUQ.cjs} +547 -29
- package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
- package/dist/{chunk-TWF2OSH4.cjs → chunk-67CMMTLN.cjs} +4 -4
- package/dist/{chunk-TWF2OSH4.cjs.map → chunk-67CMMTLN.cjs.map} +1 -1
- package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
- package/dist/chunk-6BRWPJPP.cjs.map +1 -0
- package/dist/{chunk-S5TMRJMX.js → chunk-6YIV37V7.js} +4 -4
- package/dist/{chunk-S5TMRJMX.js.map → chunk-6YIV37V7.js.map} +1 -1
- package/dist/{chunk-3M4BNKFJ.cjs → chunk-7AJGUI7L.cjs} +202 -16
- package/dist/chunk-7AJGUI7L.cjs.map +1 -0
- package/dist/{chunk-JZGZ26YB.js → chunk-7KQ6W5DS.js} +4 -4
- package/dist/{chunk-JZGZ26YB.js.map → chunk-7KQ6W5DS.js.map} +1 -1
- package/dist/{chunk-IWWVPR3W.cjs → chunk-ACZZHHFZ.cjs} +149 -34
- package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
- package/dist/{chunk-2W745U4A.cjs → chunk-AZNZ5WNZ.cjs} +42 -70
- package/dist/chunk-AZNZ5WNZ.cjs.map +1 -0
- package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
- package/dist/chunk-BQYCZLMF.js.map +1 -0
- package/dist/chunk-CHS2SIP6.cjs +504 -0
- package/dist/chunk-CHS2SIP6.cjs.map +1 -0
- package/dist/{chunk-CIPPPT7E.cjs → chunk-CHTZZRAL.cjs} +6 -6
- package/dist/{chunk-CIPPPT7E.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
- package/dist/{chunk-AOJ6B7K4.cjs → chunk-D4KWNDPH.cjs} +12 -12
- package/dist/chunk-D4KWNDPH.cjs.map +1 -0
- package/dist/{chunk-5YYN5X57.js → chunk-DZ4IOP3Q.js} +536 -30
- package/dist/chunk-DZ4IOP3Q.js.map +1 -0
- package/dist/{chunk-VACPZPUA.cjs → chunk-EXEVT6D2.cjs} +15 -5
- package/dist/chunk-EXEVT6D2.cjs.map +1 -0
- package/dist/{chunk-5M43XMRB.cjs → chunk-FHGRKQVZ.cjs} +8 -8
- package/dist/{chunk-5M43XMRB.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
- package/dist/{chunk-KJSRPHJ2.cjs → chunk-GTWUS6MQ.cjs} +165 -54
- package/dist/chunk-GTWUS6MQ.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-G3KVK7OU.cjs → chunk-HDPJNNMF.cjs} +21 -21
- package/dist/{chunk-G3KVK7OU.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
- package/dist/{chunk-3OYO3XCC.js → chunk-IYSOVS7O.js} +118 -24
- package/dist/chunk-IYSOVS7O.js.map +1 -0
- package/dist/{chunk-AFYTX4AI.cjs → chunk-J6B7J73J.cjs} +110 -50
- package/dist/chunk-J6B7J73J.cjs.map +1 -0
- package/dist/{chunk-I2RQB7VG.js → chunk-KB2SQAR3.js} +3 -3
- package/dist/{chunk-I2RQB7VG.js.map → chunk-KB2SQAR3.js.map} +1 -1
- package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
- package/dist/chunk-KSHAAPQF.cjs.map +1 -0
- 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-IDTKF5EX.cjs → chunk-O4RPXBDZ.cjs} +12 -8
- package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
- 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-PTD6EDUU.js → chunk-OBOOHG3N.js} +13 -4
- package/dist/chunk-OBOOHG3N.js.map +1 -0
- package/dist/{chunk-2D5LQFV4.cjs → chunk-OOZW2MM6.cjs} +9 -9
- package/dist/{chunk-2D5LQFV4.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
- 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-G4U3HW6W.js → chunk-PJJAZQVZ.js} +3 -3
- package/dist/{chunk-G4U3HW6W.js.map → chunk-PJJAZQVZ.js.map} +1 -1
- package/dist/{chunk-E2HZTGYX.js → chunk-Q2Y4JHF7.js} +7 -7
- package/dist/chunk-Q2Y4JHF7.js.map +1 -0
- package/dist/{chunk-FVII3KHN.js → chunk-QYU7J5EQ.js} +198 -17
- package/dist/chunk-QYU7J5EQ.js.map +1 -0
- package/dist/{chunk-JJNNM23P.js → chunk-S3UGLZSF.js} +3 -3
- package/dist/{chunk-JJNNM23P.js.map → chunk-S3UGLZSF.js.map} +1 -1
- package/dist/{chunk-CC4V2B7S.js → chunk-SHH2T4CR.js} +3 -3
- package/dist/{chunk-CC4V2B7S.js.map → chunk-SHH2T4CR.js.map} +1 -1
- package/dist/{chunk-4ZEFP2FQ.cjs → chunk-SPAHI7DY.cjs} +4 -4
- package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
- package/dist/{chunk-Y6X7UJSD.js → chunk-SXHHLZ22.js} +122 -15
- package/dist/chunk-SXHHLZ22.js.map +1 -0
- package/dist/{chunk-HRY7KGAE.cjs → chunk-T2OVDF2M.cjs} +6 -6
- package/dist/{chunk-HRY7KGAE.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
- 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-NGKKNSK6.js → chunk-TPQJKS7D.js} +139 -16
- package/dist/chunk-TPQJKS7D.js.map +1 -0
- package/dist/{chunk-N7OUQK7E.cjs → chunk-TQW3R44P.cjs} +8 -8
- package/dist/{chunk-N7OUQK7E.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
- package/dist/{chunk-GSFB537T.js → chunk-TTGZ2L3O.js} +23 -4
- package/dist/chunk-TTGZ2L3O.js.map +1 -0
- package/dist/{chunk-SYWR5G3T.js → chunk-VPTA4Z7G.js} +54 -7
- package/dist/chunk-VPTA4Z7G.js.map +1 -0
- package/dist/{chunk-2HZGDZZN.cjs → chunk-VZ6TE23U.cjs} +6 -6
- package/dist/{chunk-2HZGDZZN.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
- package/dist/{chunk-TRVWMKNE.cjs → chunk-W6VJAUGM.cjs} +285 -64
- package/dist/chunk-W6VJAUGM.cjs.map +1 -0
- package/dist/{chunk-UDDVDQMF.js → chunk-W7KHHNZR.js} +235 -37
- package/dist/chunk-W7KHHNZR.js.map +1 -0
- package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
- package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
- package/dist/{chunk-6CSXMWL4.cjs → chunk-YQV53HRR.cjs} +27 -4
- package/dist/chunk-YQV53HRR.cjs.map +1 -0
- package/dist/{chunk-7FCTCWHD.js → chunk-ZI3QDUHO.js} +3 -3
- package/dist/{chunk-7FCTCWHD.js.map → chunk-ZI3QDUHO.js.map} +1 -1
- 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 +47 -1
- package/dist/entries/captions.d.ts +47 -1
- package/dist/entries/captions.js +1 -1
- package/dist/entries/credits.cjs +354 -174
- package/dist/entries/credits.d.cts +378 -27
- package/dist/entries/credits.d.ts +378 -27
- package/dist/entries/credits.js +11 -11
- package/dist/entries/llm-models.cjs +77 -57
- package/dist/entries/llm-models.d.cts +108 -7
- package/dist/entries/llm-models.d.ts +108 -7
- 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 +161 -105
- package/dist/entries/model-catalog.d.cts +109 -22
- package/dist/entries/model-catalog.d.ts +109 -22
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +466 -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 +226 -209
- package/dist/entries/nodes.d.cts +66 -7
- package/dist/entries/nodes.d.ts +66 -7
- 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/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.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 +2136 -1704
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +27 -27
- package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-Cf9fkEUp.d.cts} +45 -2
- package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-Cf9fkEUp.d.ts} +45 -2
- package/dist/{model-constants-B88p6XR0.d.ts → model-constants-BxjiWVQ9.d.ts} +215 -32
- package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-C_Nyft_i.d.cts} +215 -32
- package/package.json +1 -1
- package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
- package/src/__tests__/credit-identifiers.test.ts +29 -0
- package/src/__tests__/extend-providers.test.ts +359 -39
- 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__/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 +139 -12
- package/src/__tests__/llm-price-key.test.ts +164 -1
- package/src/__tests__/model-makers.test.ts +3 -0
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
- package/src/__tests__/node-runtime-keys.test.ts +7 -0
- package/src/__tests__/normalize-node-params.test.ts +172 -1
- package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
- package/src/__tests__/prompt-length-limits.test.ts +4 -0
- 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__/seedance-task-type.test.ts +13 -3
- package/src/__tests__/sequence-execution.test.ts +22 -1
- package/src/__tests__/suno-credit-type.test.ts +21 -2
- package/src/__tests__/transcribe-capabilities.test.ts +41 -2
- package/src/__tests__/transcribe-preflight.test.ts +50 -1
- package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
- package/src/__tests__/video-analysis-pricing.test.ts +10 -9
- 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/caption-styles.ts +62 -0
- package/src/catalog-projection.ts +8 -0
- package/src/credit-estimators/add-captions-nemotron.ts +73 -0
- package/src/credit-estimators/index.ts +20 -0
- package/src/credit-estimators/nemotron-transcribe.ts +87 -0
- package/src/credit-identifiers.ts +351 -41
- package/src/entries/captions.ts +2 -0
- package/src/entries/credits.ts +37 -2
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/model-catalog.ts +22 -0
- package/src/entries/models.ts +50 -0
- package/src/entries/nodes.ts +4 -0
- package/src/entries/pipeline.ts +1 -1
- package/src/entries/video.ts +1 -1
- package/src/flux-3-klein.ts +69 -0
- package/src/freecut-protocol.ts +8 -0
- package/src/input-image-pricing.ts +23 -6
- package/src/lip-sync-levers.ts +56 -0
- package/src/lip-sync-pricing.ts +91 -1
- package/src/llm-models.ts +305 -16
- package/src/model-catalog.ts +529 -28
- package/src/model-constants.ts +417 -41
- package/src/model-tree.ts +2 -1
- package/src/nodaro-video-upscale.ts +48 -0
- package/src/node-default-mappings.ts +6 -0
- package/src/node-runtime-keys.ts +3 -0
- package/src/normalize-node-params.ts +172 -3
- package/src/runtime-config/contract.ts +10 -7
- package/src/seedance-draft.ts +2 -1
- package/src/seedance-extend-rate.ts +116 -0
- package/src/sequence-execution.ts +24 -0
- package/src/transcribe-preflight.ts +81 -7
- package/src/video-analysis-pricing.ts +28 -15
- 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-BLJUCPMV.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-HSHCCBIV.js.map +0 -1
- package/dist/chunk-IDTKF5EX.cjs.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-PTD6EDUU.js.map +0 -1
- package/dist/chunk-Q6IES3U2.js.map +0 -1
- package/dist/chunk-QWYFHQYK.cjs +0 -357
- 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-VACPZPUA.cjs.map +0 -1
- package/dist/chunk-WRSWH7US.cjs.map +0 -1
- package/dist/chunk-Y6X7UJSD.js.map +0 -1
- package/dist/chunk-YCXRSWCQ.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 chunkYQV53HRR_cjs = require('./chunk-YQV53HRR.cjs');
|
|
6
|
+
var chunkOOZW2MM6_cjs = require('./chunk-OOZW2MM6.cjs');
|
|
7
7
|
var chunkKU6S7IYV_cjs = require('./chunk-KU6S7IYV.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var chunkCHS2SIP6_cjs = require('./chunk-CHS2SIP6.cjs');
|
|
9
|
+
var chunkD4KWNDPH_cjs = require('./chunk-D4KWNDPH.cjs');
|
|
10
|
+
var chunkSPAHI7DY_cjs = require('./chunk-SPAHI7DY.cjs');
|
|
11
11
|
var chunkV24EPI5N_cjs = require('./chunk-V24EPI5N.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var chunkW6VJAUGM_cjs = require('./chunk-W6VJAUGM.cjs');
|
|
13
|
+
var chunk5OBTGNUQ_cjs = require('./chunk-5OBTGNUQ.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: chunkW6VJAUGM_cjs.VIDEO_GEN_PROVIDERS,
|
|
95
|
+
defaultModel: chunkW6VJAUGM_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: chunkW6VJAUGM_cjs.GVP_SUPPORTED_PROVIDERS,
|
|
104
|
+
defaultModel: chunkW6VJAUGM_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: chunkW6VJAUGM_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: chunkYQV53HRR_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 = chunk5OBTGNUQ_cjs.MODEL_CATALOG[model]?.durations;
|
|
169
|
+
if (!durations || durations.length === 0 || chunk5OBTGNUQ_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: chunk5OBTGNUQ_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 = chunkW6VJAUGM_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: chunkSPAHI7DY_cjs.UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
|
|
397
|
+
"ugc-script": { primary: chunkSPAHI7DY_cjs.UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
|
|
398
|
+
"ugc-clips": { primary: chunkSPAHI7DY_cjs.UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
|
|
399
|
+
"ugc-cards": { primary: chunkSPAHI7DY_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 = chunkOOZW2MM6_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 ?? chunkOOZW2MM6_cjs.RENDER_JSON_HANDLE;
|
|
420
|
+
if (pip2 === chunkOOZW2MM6_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 = chunkOOZW2MM6_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 = chunkOOZW2MM6_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(chunkOOZW2MM6_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) ?? chunkD4KWNDPH_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 = chunkOOZW2MM6_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 (chunkD4KWNDPH_cjs.IMAGE_PRODUCER_TYPES.has(nodeType) || chunkD4KWNDPH_cjs.VIDEO_PRODUCER_TYPES.has(nodeType) || chunkD4KWNDPH_cjs.AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
|
|
658
|
+
if (chunkD4KWNDPH_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,40 @@ 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 || chunkW6VJAUGM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
914
|
+
if (!chunkW6VJAUGM_cjs.transcribeLaneSupportsWordTimestamps(lane)) {
|
|
915
|
+
return `the "${lane}" engine does not return word timings \u2014 pick ${chunkW6VJAUGM_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 || chunkW6VJAUGM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
926
|
+
if (!chunkW6VJAUGM_cjs.transcribeLaneSupportsTranslation(lane)) {
|
|
927
|
+
return `the "${lane}" engine does not translate \u2014 pick ${chunkW6VJAUGM_cjs.transcribeProvidersWithTranslation().join(" or ")} to translate, or clear the target language`;
|
|
928
|
+
}
|
|
929
|
+
if (!chunkW6VJAUGM_cjs.TRANSCRIBE_TARGET_LANGUAGES.includes(target)) {
|
|
930
|
+
return `"${target}" is not a language the "${lane}" engine translates into \u2014 pick one of ${chunkW6VJAUGM_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;
|
|
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 || chunkW6VJAUGM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
940
|
+
if (transcribeTargetLanguageOf(data?.targetLanguage) !== void 0) return false;
|
|
941
|
+
if (!chunkW6VJAUGM_cjs.transcribeLaneSupportsWordTimestamps(provider)) return false;
|
|
942
|
+
return ALWAYS_WORD_LEVEL_LANES.has(provider) || data?.wordTimestamps === true || jsonWired;
|
|
913
943
|
}
|
|
914
944
|
var TRANSCRIBE_JSON_OUT = "json";
|
|
915
945
|
var TRANSCRIPT_IN = "transcript";
|
|
@@ -919,8 +949,8 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
919
949
|
const out = [];
|
|
920
950
|
for (const node of nodes) {
|
|
921
951
|
if (node.type !== "transcribe" || isSkipped(node)) continue;
|
|
922
|
-
const provider = typeof node.data?.provider === "string" && node.data.provider ||
|
|
923
|
-
const refusal = transcribeWordTimestampsRefusal(provider);
|
|
952
|
+
const provider = typeof node.data?.provider === "string" && node.data.provider || chunkW6VJAUGM_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
953
|
+
const refusal = transcribeWordTimestampsRefusal(provider, node.data?.targetLanguage);
|
|
924
954
|
if (!refusal) continue;
|
|
925
955
|
const seen = /* @__PURE__ */ new Set();
|
|
926
956
|
const frontier = [{ id: node.id, outHandle: TRANSCRIBE_JSON_OUT }];
|
|
@@ -938,7 +968,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
938
968
|
message: `Captions need word timings, but ${refusal}.`
|
|
939
969
|
});
|
|
940
970
|
} else if (!seen.has(target.id)) {
|
|
941
|
-
const remapped =
|
|
971
|
+
const remapped = chunkOOZW2MM6_cjs.renderTranscriptOutputOf(target.type);
|
|
942
972
|
if (remapped) {
|
|
943
973
|
seen.add(target.id);
|
|
944
974
|
frontier.push({ id: target.id, outHandle: remapped.handle });
|
|
@@ -978,6 +1008,9 @@ function normalizeNodeModelParams(nodes) {
|
|
|
978
1008
|
const adjustments = [];
|
|
979
1009
|
const out = nodes.map((node) => {
|
|
980
1010
|
const type = typeof node.type === "string" ? node.type : "";
|
|
1011
|
+
if (type === "video-upscale") return normalizeVideoUpscaleNode(node, adjustments);
|
|
1012
|
+
if (type === "motion-transfer") return normalizeMotionTransferNode(node, adjustments);
|
|
1013
|
+
if (REFERENCE_TASK_TYPE_NODE_MODES.has(type)) return withListedReferenceTaskTypes([node], adjustments)[0];
|
|
981
1014
|
if (!MODEL_PARAM_NODE_TYPES.has(type)) return node;
|
|
982
1015
|
const data = node.data;
|
|
983
1016
|
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
@@ -986,8 +1019,8 @@ function normalizeNodeModelParams(nodes) {
|
|
|
986
1019
|
if (multi.length > 1) return node;
|
|
987
1020
|
const provider = typeof d.provider === "string" ? d.provider : typeof multi[0] === "string" ? multi[0] : void 0;
|
|
988
1021
|
if (!provider) return node;
|
|
989
|
-
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ?
|
|
990
|
-
const normalized =
|
|
1022
|
+
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? chunkCHS2SIP6_cjs.imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : chunk5OBTGNUQ_cjs.autoAspectNeedsSourceImage(provider, d.aspectRatio));
|
|
1023
|
+
const normalized = chunk5OBTGNUQ_cjs.normalizeModelInput(provider, {
|
|
991
1024
|
aspectRatio: !deferAuto && typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
|
|
992
1025
|
resolution: typeof d.resolution === "string" ? d.resolution : void 0,
|
|
993
1026
|
quality: typeof d.quality === "string" ? d.quality : void 0
|
|
@@ -1010,6 +1043,80 @@ function normalizeNodeModelParams(nodes) {
|
|
|
1010
1043
|
});
|
|
1011
1044
|
return { nodes: out, adjustments };
|
|
1012
1045
|
}
|
|
1046
|
+
function normalizeVideoUpscaleNode(node, adjustments) {
|
|
1047
|
+
const data = node.data;
|
|
1048
|
+
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
1049
|
+
const d = data;
|
|
1050
|
+
if (typeof d.targetResolution !== "string" || d.targetResolution === "") return node;
|
|
1051
|
+
const provider = typeof d.provider === "string" && d.provider !== "" ? d.provider : "topaz";
|
|
1052
|
+
if (chunkYQV53HRR_cjs.videoUpscaleResolutionsFor(provider).length === 0) return node;
|
|
1053
|
+
const asked = d.targetResolution.trim().toLowerCase();
|
|
1054
|
+
if (!chunkYQV53HRR_cjs.VIDEO_UPSCALE_RESOLUTIONS.includes(asked)) return node;
|
|
1055
|
+
const normalized = chunkYQV53HRR_cjs.normalizeVideoUpscaleResolution(provider, d.targetResolution);
|
|
1056
|
+
if (normalized.targetResolution === d.targetResolution) return node;
|
|
1057
|
+
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
1058
|
+
if (normalized.adjustment) adjustments.push({ ...normalized.adjustment, nodeId, provider });
|
|
1059
|
+
return { ...node, data: { ...d, targetResolution: normalized.targetResolution } };
|
|
1060
|
+
}
|
|
1061
|
+
function normalizeMotionTransferNode(node, adjustments) {
|
|
1062
|
+
const data = node.data;
|
|
1063
|
+
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
1064
|
+
const d = data;
|
|
1065
|
+
if (typeof d.resolution !== "string" || d.resolution === "") return node;
|
|
1066
|
+
const provider = typeof d.provider === "string" && d.provider !== "" ? d.provider : "kling";
|
|
1067
|
+
const sized = chunkCHS2SIP6_cjs.motionTransferResolution(provider, d.resolution);
|
|
1068
|
+
if (sized.resolution === d.resolution) return node;
|
|
1069
|
+
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
1070
|
+
for (const adj of sized.adjustments) adjustments.push({ ...adj, nodeId, provider });
|
|
1071
|
+
return { ...node, data: { ...d, resolution: sized.resolution } };
|
|
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 [chunkW6VJAUGM_cjs.applyDefaultVideoSelection({ provider: named }).provider];
|
|
1085
|
+
return [named ?? (type === "video-to-video" ? chunkW6VJAUGM_cjs.DEFAULT_VIDEO_TO_VIDEO_PROVIDER : chunkW6VJAUGM_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) => chunkW6VJAUGM_cjs.resolveVideoProviderForMode(m, mode))]);
|
|
1096
|
+
if (sentTo.some((m) => chunkW6VJAUGM_cjs.listedSeedanceTaskType(m, value) !== void 0)) return node;
|
|
1097
|
+
const listedAnywhere = Object.values(chunk5OBTGNUQ_cjs.MODEL_CATALOG).some((m) => m.referenceTaskTypes?.some((t) => t === value));
|
|
1098
|
+
const label = chunk5OBTGNUQ_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
|
+
}
|
|
1013
1120
|
function describeNodeAdjustments(adjustments) {
|
|
1014
1121
|
return adjustments.map(
|
|
1015
1122
|
(a) => `${a.nodeId} (${a.provider}): ${a.field} "${a.from}" \u2192 ${a.to === void 0 ? "removed" : `"${a.to}"`} \u2014 ${a.reason}`
|
|
@@ -1033,7 +1140,7 @@ function readPromptAffixes(data) {
|
|
|
1033
1140
|
|
|
1034
1141
|
// src/node-preset-extract.ts
|
|
1035
1142
|
var PRESET_APPLY_CLEAR_KEYS = [
|
|
1036
|
-
...
|
|
1143
|
+
...chunkW6VJAUGM_cjs.COMPOSER_PLAN_FIELDS,
|
|
1037
1144
|
"lottieUrl",
|
|
1038
1145
|
// Scene revision history contains old plans and their reference/prompt context.
|
|
1039
1146
|
// Preserve it in workflows, never capture or resurrect it through a preset.
|
|
@@ -1109,7 +1216,7 @@ var PRESET_EXCLUDED_KEYS = /* @__PURE__ */ new Set([
|
|
|
1109
1216
|
function extractPresetData(data, nodeType) {
|
|
1110
1217
|
const out = {};
|
|
1111
1218
|
for (const key of Object.keys(data)) {
|
|
1112
|
-
if (
|
|
1219
|
+
if (chunkKSHAAPQF_cjs.isExecutionDataKey(key, nodeType)) continue;
|
|
1113
1220
|
if (PRESET_EXCLUDED_KEYS.has(key)) continue;
|
|
1114
1221
|
out[key] = data[key];
|
|
1115
1222
|
}
|
|
@@ -1289,7 +1396,7 @@ function renderPlanPath(renderId, nodes, edges) {
|
|
|
1289
1396
|
edge = teleportInput(node.id);
|
|
1290
1397
|
continue;
|
|
1291
1398
|
}
|
|
1292
|
-
const mode = outputModeOf2(consumer.data) ??
|
|
1399
|
+
const mode = outputModeOf2(consumer.data) ?? chunkD4KWNDPH_cjs.defaultEdgeOutputMode(node.type, edge.sourceHandle);
|
|
1293
1400
|
hops.unshift({ edge: consumer, each: mode === "each", ...node.type ? { source: node.type } : {} });
|
|
1294
1401
|
if (node.type === "edit-plan") return { planId: node.id, hops };
|
|
1295
1402
|
if (!EDL_PASS_THROUGH_TYPES.has(node.type ?? "")) return void 0;
|
|
@@ -1311,10 +1418,10 @@ function singlePick(clips, hop) {
|
|
|
1311
1418
|
const mode = outputModeOf2(hop.edge.data);
|
|
1312
1419
|
if (mode === "item") {
|
|
1313
1420
|
const expr = typeof data?.itemIndex === "string" ? data.itemIndex : "1";
|
|
1314
|
-
return [clips[
|
|
1421
|
+
return [clips[chunkKSHAAPQF_cjs.resolveIndex(expr, clips.length)] ?? clips[0]];
|
|
1315
1422
|
}
|
|
1316
1423
|
if (mode?.startsWith("item:")) return [clips[parseInt(mode.slice(5), 10)] ?? clips[0]];
|
|
1317
|
-
if (mode === "all") return
|
|
1424
|
+
if (mode === "all") return chunkKSHAAPQF_cjs.selectListItems(clips, data);
|
|
1318
1425
|
if (hop.source === "edit-plan") return keptClips(clips).slice(0, 1);
|
|
1319
1426
|
return clips.length === 1 ? clips : [];
|
|
1320
1427
|
}
|
|
@@ -1324,7 +1431,7 @@ function renderPlanValue(plan, row, hops = []) {
|
|
|
1324
1431
|
for (const [i, hop] of hops.entries()) {
|
|
1325
1432
|
if (clips.length === 0) return void 0;
|
|
1326
1433
|
if (hop.each) {
|
|
1327
|
-
clips =
|
|
1434
|
+
clips = chunkKSHAAPQF_cjs.selectListItems(clips, hop.edge.data);
|
|
1328
1435
|
if (i < hops.length - 1) clips = keptClips(clips);
|
|
1329
1436
|
} else {
|
|
1330
1437
|
clips = singlePick(clips, hop);
|
|
@@ -1355,7 +1462,7 @@ function renderLoneRow(renderId, nodes, edges, batchOf) {
|
|
|
1355
1462
|
const path = renderPlanPath(renderId, nodes, edges);
|
|
1356
1463
|
if (!path || path.hops.length < 2) return void 0;
|
|
1357
1464
|
const last = path.hops[path.hops.length - 1];
|
|
1358
|
-
if (!last.each || !
|
|
1465
|
+
if (!last.each || !chunkKSHAAPQF_cjs.isDefaultSelectorConfig(last.edge.data)) return void 0;
|
|
1359
1466
|
const passId = path.hops[path.hops.length - 2].edge.target;
|
|
1360
1467
|
const passNode = nodes.find((n) => n.id === passId);
|
|
1361
1468
|
const batch = passNode ? batchOf(passNode) : void 0;
|
|
@@ -1567,8 +1674,8 @@ var IDENTITY_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([
|
|
|
1567
1674
|
"creature",
|
|
1568
1675
|
"location"
|
|
1569
1676
|
]);
|
|
1570
|
-
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER =
|
|
1571
|
-
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...
|
|
1677
|
+
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER = chunkD4KWNDPH_cjs.VIDEO_PRODUCER_TYPES;
|
|
1678
|
+
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...chunkD4KWNDPH_cjs.AUDIO_PRODUCER_TYPES, "youtube-video"]);
|
|
1572
1679
|
var DUAL_MODE_REVOICE_TARGETS = /* @__PURE__ */ new Set(["voice-changer", "voice-changer-pro", "dubbing"]);
|
|
1573
1680
|
function classifyLegacyTargetHandle(targetType, handle, sourceType, sentHandle = handle) {
|
|
1574
1681
|
if (!targetType) return handle;
|
|
@@ -1808,9 +1915,13 @@ exports.siteCapturePageUrl = siteCapturePageUrl;
|
|
|
1808
1915
|
exports.siteCaptureStillUrls = siteCaptureStillUrls;
|
|
1809
1916
|
exports.siteCaptureStills = siteCaptureStills;
|
|
1810
1917
|
exports.snapToModelDuration = snapToModelDuration;
|
|
1918
|
+
exports.transcribeNodeReturnsWords = transcribeNodeReturnsWords;
|
|
1919
|
+
exports.transcribeTargetLanguageOf = transcribeTargetLanguageOf;
|
|
1920
|
+
exports.transcribeTranslationRefusal = transcribeTranslationRefusal;
|
|
1811
1921
|
exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
|
|
1812
1922
|
exports.videoOverlayPassThrough = videoOverlayPassThrough;
|
|
1923
|
+
exports.withListedReferenceTaskTypes = withListedReferenceTaskTypes;
|
|
1813
1924
|
exports.withRunOverrides = withRunOverrides;
|
|
1814
1925
|
exports.withWiredSettings = withWiredSettings;
|
|
1815
|
-
//# sourceMappingURL=chunk-
|
|
1816
|
-
//# sourceMappingURL=chunk-
|
|
1926
|
+
//# sourceMappingURL=chunk-GTWUS6MQ.cjs.map
|
|
1927
|
+
//# sourceMappingURL=chunk-GTWUS6MQ.cjs.map
|