@nodaro/shared 3.31.0 → 3.33.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/README.md +17 -0
- package/dist/chunk-23FJQTEA.js +1604 -0
- package/dist/chunk-23FJQTEA.js.map +1 -0
- package/dist/chunk-2NIQO2J3.cjs +54 -0
- package/dist/chunk-2NIQO2J3.cjs.map +1 -0
- package/dist/chunk-2NQLSLSN.cjs +19 -0
- package/dist/chunk-2NQLSLSN.cjs.map +1 -0
- package/dist/chunk-2OJIVO7R.cjs +32 -0
- package/dist/chunk-2OJIVO7R.cjs.map +1 -0
- package/dist/chunk-2RF4Z7KG.cjs +803 -0
- package/dist/chunk-2RF4Z7KG.cjs.map +1 -0
- package/dist/chunk-3RYKIUAE.js +86 -0
- package/dist/chunk-3RYKIUAE.js.map +1 -0
- package/dist/chunk-44I73CQS.cjs +194 -0
- package/dist/chunk-44I73CQS.cjs.map +1 -0
- package/dist/chunk-5PC6JBGJ.cjs +1419 -0
- package/dist/chunk-5PC6JBGJ.cjs.map +1 -0
- package/dist/chunk-5RU2HCW2.js +30 -0
- package/dist/chunk-5RU2HCW2.js.map +1 -0
- package/dist/chunk-5RYLK3MQ.js +267 -0
- package/dist/chunk-5RYLK3MQ.js.map +1 -0
- package/dist/chunk-5THUHJ3E.js +46 -0
- package/dist/chunk-5THUHJ3E.js.map +1 -0
- package/dist/chunk-6DAWSVX2.cjs +103 -0
- package/dist/chunk-6DAWSVX2.cjs.map +1 -0
- package/dist/chunk-6WZ2VN7V.js +920 -0
- package/dist/chunk-6WZ2VN7V.js.map +1 -0
- package/dist/chunk-7G7G42KS.js +86 -0
- package/dist/chunk-7G7G42KS.js.map +1 -0
- package/dist/chunk-7Z5LUTGU.js +1567 -0
- package/dist/chunk-7Z5LUTGU.js.map +1 -0
- package/dist/chunk-AINCI23X.js +2171 -0
- package/dist/chunk-AINCI23X.js.map +1 -0
- package/dist/chunk-BG5D5CZ6.js +1922 -0
- package/dist/chunk-BG5D5CZ6.js.map +1 -0
- package/dist/chunk-CK3GK34R.js +1381 -0
- package/dist/chunk-CK3GK34R.js.map +1 -0
- package/dist/chunk-CUH22J4D.js +17 -0
- package/dist/chunk-CUH22J4D.js.map +1 -0
- package/dist/chunk-D26ENTN2.cjs +1770 -0
- package/dist/chunk-D26ENTN2.cjs.map +1 -0
- package/dist/chunk-D6GNRSCV.cjs +2017 -0
- package/dist/chunk-D6GNRSCV.cjs.map +1 -0
- package/dist/chunk-FBV5DF6D.js +95 -0
- package/dist/chunk-FBV5DF6D.js.map +1 -0
- package/dist/chunk-FG4E7MTG.cjs +4 -0
- package/dist/chunk-FG4E7MTG.cjs.map +1 -0
- package/dist/chunk-FT5CF6IA.js +42 -0
- package/dist/chunk-FT5CF6IA.js.map +1 -0
- package/dist/chunk-G6IIVKMO.js +26 -0
- package/dist/chunk-G6IIVKMO.js.map +1 -0
- package/dist/chunk-HC7VKIV5.cjs +430 -0
- package/dist/chunk-HC7VKIV5.cjs.map +1 -0
- package/dist/chunk-HGC5JNVA.cjs +1503 -0
- package/dist/chunk-HGC5JNVA.cjs.map +1 -0
- package/dist/chunk-HKFMXNVQ.cjs +1273 -0
- package/dist/chunk-HKFMXNVQ.cjs.map +1 -0
- package/dist/chunk-HRXEZ3SX.cjs +526 -0
- package/dist/chunk-HRXEZ3SX.cjs.map +1 -0
- package/dist/chunk-HSHCCBIV.js +255 -0
- package/dist/chunk-HSHCCBIV.js.map +1 -0
- package/dist/chunk-HUR6ZJ7S.cjs +159 -0
- package/dist/chunk-HUR6ZJ7S.cjs.map +1 -0
- package/dist/chunk-J7BMO73N.cjs +114 -0
- package/dist/chunk-J7BMO73N.cjs.map +1 -0
- package/dist/chunk-JFS3NWZ5.cjs +1714 -0
- package/dist/chunk-JFS3NWZ5.cjs.map +1 -0
- package/dist/chunk-JL4C5VJ7.cjs +488 -0
- package/dist/chunk-JL4C5VJ7.cjs.map +1 -0
- package/dist/chunk-JSGIEF6Z.cjs +1087 -0
- package/dist/chunk-JSGIEF6Z.cjs.map +1 -0
- package/dist/chunk-JWA5SGCS.js +203 -0
- package/dist/chunk-JWA5SGCS.js.map +1 -0
- package/dist/chunk-K3LLGRK7.cjs +3545 -0
- package/dist/chunk-K3LLGRK7.cjs.map +1 -0
- package/dist/chunk-KU6S7IYV.cjs +210 -0
- package/dist/chunk-KU6S7IYV.cjs.map +1 -0
- package/dist/chunk-M36G6SRP.js +447 -0
- package/dist/chunk-M36G6SRP.js.map +1 -0
- package/dist/chunk-M7GQBRZU.cjs +1963 -0
- package/dist/chunk-M7GQBRZU.cjs.map +1 -0
- package/dist/chunk-MRXGWL42.cjs +4 -0
- package/dist/chunk-MRXGWL42.cjs.map +1 -0
- package/dist/chunk-NEJ2PV4C.cjs +211 -0
- package/dist/chunk-NEJ2PV4C.cjs.map +1 -0
- package/dist/chunk-OTATNBMD.js +141 -0
- package/dist/chunk-OTATNBMD.js.map +1 -0
- package/dist/chunk-OZSACQ2V.js +471 -0
- package/dist/chunk-OZSACQ2V.js.map +1 -0
- package/dist/chunk-PHZ23DP3.js +1782 -0
- package/dist/chunk-PHZ23DP3.js.map +1 -0
- package/dist/chunk-PQHS255G.js +1369 -0
- package/dist/chunk-PQHS255G.js.map +1 -0
- package/dist/chunk-PRYE7AZQ.cjs +1227 -0
- package/dist/chunk-PRYE7AZQ.cjs.map +1 -0
- package/dist/chunk-PVJBAPYJ.js +404 -0
- package/dist/chunk-PVJBAPYJ.js.map +1 -0
- package/dist/chunk-PXFQVLBX.js +776 -0
- package/dist/chunk-PXFQVLBX.js.map +1 -0
- package/dist/chunk-QA3MVQ32.js +21 -0
- package/dist/chunk-QA3MVQ32.js.map +1 -0
- package/dist/chunk-QJRP44ZO.js +769 -0
- package/dist/chunk-QJRP44ZO.js.map +1 -0
- package/dist/chunk-SAW5OK36.cjs +54 -0
- package/dist/chunk-SAW5OK36.cjs.map +1 -0
- package/dist/chunk-SES6GDBQ.cjs +624 -0
- package/dist/chunk-SES6GDBQ.cjs.map +1 -0
- package/dist/chunk-SFW3UB2P.js +31 -0
- package/dist/chunk-SFW3UB2P.js.map +1 -0
- package/dist/chunk-TNPDV7I4.cjs +2346 -0
- package/dist/chunk-TNPDV7I4.cjs.map +1 -0
- package/dist/chunk-TU33KYKW.cjs +25 -0
- package/dist/chunk-TU33KYKW.cjs.map +1 -0
- package/dist/chunk-TZBIY5C3.js +187 -0
- package/dist/chunk-TZBIY5C3.js.map +1 -0
- package/dist/chunk-TZE673G6.js +3 -0
- package/dist/chunk-TZE673G6.js.map +1 -0
- package/dist/chunk-UCFWI6D4.js +29 -0
- package/dist/chunk-UCFWI6D4.js.map +1 -0
- package/dist/chunk-UTQSSKSG.js +1164 -0
- package/dist/chunk-UTQSSKSG.js.map +1 -0
- package/dist/chunk-VA42637J.cjs +287 -0
- package/dist/chunk-VA42637J.cjs.map +1 -0
- package/dist/chunk-VNQRI2RO.cjs +1047 -0
- package/dist/chunk-VNQRI2RO.cjs.map +1 -0
- package/dist/chunk-VXPLKQWY.cjs +821 -0
- package/dist/chunk-VXPLKQWY.cjs.map +1 -0
- package/dist/chunk-WD6HJRBG.cjs +197 -0
- package/dist/chunk-WD6HJRBG.cjs.map +1 -0
- package/dist/chunk-WDIBOWAA.js +1054 -0
- package/dist/chunk-WDIBOWAA.js.map +1 -0
- package/dist/chunk-WKOIGLQX.cjs +38 -0
- package/dist/chunk-WKOIGLQX.cjs.map +1 -0
- package/dist/chunk-WNVQ3SMB.cjs +96 -0
- package/dist/chunk-WNVQ3SMB.cjs.map +1 -0
- package/dist/chunk-WRSWH7US.cjs +285 -0
- package/dist/chunk-WRSWH7US.cjs.map +1 -0
- package/dist/chunk-XGFTL5XY.js +181 -0
- package/dist/chunk-XGFTL5XY.js.map +1 -0
- package/dist/chunk-XNISPHTZ.js +1039 -0
- package/dist/chunk-XNISPHTZ.js.map +1 -0
- package/dist/chunk-Y2PM3FFL.js +3 -0
- package/dist/chunk-Y2PM3FFL.js.map +1 -0
- package/dist/chunk-YBPBK5KI.js +1030 -0
- package/dist/chunk-YBPBK5KI.js.map +1 -0
- package/dist/chunk-YWNYGYI7.cjs +31 -0
- package/dist/chunk-YWNYGYI7.cjs.map +1 -0
- package/dist/chunk-YYV35XOS.js +122 -0
- package/dist/chunk-YYV35XOS.js.map +1 -0
- package/dist/chunk-Z2OL5AJD.cjs +133 -0
- package/dist/chunk-Z2OL5AJD.cjs.map +1 -0
- package/dist/chunk-ZDFHA2EC.js +572 -0
- package/dist/chunk-ZDFHA2EC.js.map +1 -0
- package/dist/chunk-ZL7UM6PU.cjs +34 -0
- package/dist/chunk-ZL7UM6PU.cjs.map +1 -0
- package/dist/chunk-ZNZDQAXN.js +175 -0
- package/dist/chunk-ZNZDQAXN.js.map +1 -0
- package/dist/chunk-ZO5PBBFX.js +3497 -0
- package/dist/chunk-ZO5PBBFX.js.map +1 -0
- package/dist/chunk-ZRL2UFTH.cjs +1073 -0
- package/dist/chunk-ZRL2UFTH.cjs.map +1 -0
- package/dist/entries/apps.cjs +155 -0
- package/dist/entries/apps.cjs.map +1 -0
- package/dist/entries/apps.d.cts +292 -0
- package/dist/entries/apps.d.ts +292 -0
- package/dist/entries/apps.js +10 -0
- package/dist/entries/apps.js.map +1 -0
- package/dist/entries/captions.cjs +124 -0
- package/dist/entries/captions.cjs.map +1 -0
- package/dist/entries/captions.d.cts +354 -0
- package/dist/entries/captions.d.ts +354 -0
- package/dist/entries/captions.js +3 -0
- package/dist/entries/captions.js.map +1 -0
- package/dist/entries/catalogs.cjs +165 -0
- package/dist/entries/catalogs.cjs.map +1 -0
- package/dist/entries/catalogs.d.cts +385 -0
- package/dist/entries/catalogs.d.ts +385 -0
- package/dist/entries/catalogs.js +4 -0
- package/dist/entries/catalogs.js.map +1 -0
- package/dist/entries/credits.cjs +596 -0
- package/dist/entries/credits.cjs.map +1 -0
- package/dist/entries/credits.d.cts +1460 -0
- package/dist/entries/credits.d.ts +1460 -0
- package/dist/entries/credits.js +11 -0
- package/dist/entries/credits.js.map +1 -0
- package/dist/entries/edl.cjs +409 -0
- package/dist/entries/edl.cjs.map +1 -0
- package/dist/entries/edl.d.cts +1199 -0
- package/dist/entries/edl.d.ts +1199 -0
- package/dist/entries/edl.js +4 -0
- package/dist/entries/edl.js.map +1 -0
- package/dist/entries/entities.cjs +530 -0
- package/dist/entries/entities.cjs.map +1 -0
- package/dist/entries/entities.d.cts +1371 -0
- package/dist/entries/entities.d.ts +1371 -0
- package/dist/entries/entities.js +5 -0
- package/dist/entries/entities.js.map +1 -0
- package/dist/entries/i18n.cjs +48 -0
- package/dist/entries/i18n.cjs.map +1 -0
- package/dist/entries/i18n.d.cts +69 -0
- package/dist/entries/i18n.d.ts +69 -0
- package/dist/entries/i18n.js +3 -0
- package/dist/entries/i18n.js.map +1 -0
- package/dist/entries/llm-models.cjs +177 -0
- package/dist/entries/llm-models.cjs.map +1 -0
- package/dist/entries/llm-models.d.cts +435 -0
- package/dist/entries/llm-models.d.ts +435 -0
- package/dist/entries/llm-models.js +4 -0
- package/dist/entries/llm-models.js.map +1 -0
- package/dist/entries/media.cjs +335 -0
- package/dist/entries/media.cjs.map +1 -0
- package/dist/entries/media.d.cts +518 -0
- package/dist/entries/media.d.ts +518 -0
- package/dist/entries/media.js +6 -0
- package/dist/entries/media.js.map +1 -0
- package/dist/entries/model-catalog.cjs +259 -0
- package/dist/entries/model-catalog.cjs.map +1 -0
- package/dist/entries/model-catalog.d.cts +202 -0
- package/dist/entries/model-catalog.d.ts +202 -0
- package/dist/entries/model-catalog.js +6 -0
- package/dist/entries/model-catalog.js.map +1 -0
- package/dist/entries/models.cjs +833 -0
- package/dist/entries/models.cjs.map +1 -0
- package/dist/entries/models.d.cts +287 -0
- package/dist/entries/models.d.ts +287 -0
- package/dist/entries/models.js +8 -0
- package/dist/entries/models.js.map +1 -0
- package/dist/entries/nodes.cjs +789 -0
- package/dist/entries/nodes.cjs.map +1 -0
- package/dist/entries/nodes.d.cts +1600 -0
- package/dist/entries/nodes.d.ts +1600 -0
- package/dist/entries/nodes.js +16 -0
- package/dist/entries/nodes.js.map +1 -0
- package/dist/entries/organizations.cjs +80 -0
- package/dist/entries/organizations.cjs.map +1 -0
- package/dist/entries/organizations.d.cts +466 -0
- package/dist/entries/organizations.d.ts +466 -0
- package/dist/entries/organizations.js +3 -0
- package/dist/entries/organizations.js.map +1 -0
- package/dist/entries/pipeline.cjs +594 -0
- package/dist/entries/pipeline.cjs.map +1 -0
- package/dist/entries/pipeline.d.cts +2617 -0
- package/dist/entries/pipeline.d.ts +2617 -0
- package/dist/entries/pipeline.js +5 -0
- package/dist/entries/pipeline.js.map +1 -0
- package/dist/entries/scene3d.cjs +704 -0
- package/dist/entries/scene3d.cjs.map +1 -0
- package/dist/entries/scene3d.d.cts +4284 -0
- package/dist/entries/scene3d.d.ts +4284 -0
- package/dist/entries/scene3d.js +3 -0
- package/dist/entries/scene3d.js.map +1 -0
- package/dist/entries/social.cjs +714 -0
- package/dist/entries/social.cjs.map +1 -0
- package/dist/entries/social.d.cts +1366 -0
- package/dist/entries/social.d.ts +1366 -0
- package/dist/entries/social.js +5 -0
- package/dist/entries/social.js.map +1 -0
- package/dist/entries/types.cjs +13 -0
- package/dist/entries/types.cjs.map +1 -0
- package/dist/entries/types.d.cts +162 -0
- package/dist/entries/types.d.ts +162 -0
- package/dist/entries/types.js +4 -0
- package/dist/entries/types.js.map +1 -0
- package/dist/entries/ugc.cjs +279 -0
- package/dist/entries/ugc.cjs.map +1 -0
- package/dist/entries/ugc.d.cts +575 -0
- package/dist/entries/ugc.d.ts +575 -0
- package/dist/entries/ugc.js +6 -0
- package/dist/entries/ugc.js.map +1 -0
- package/dist/entries/video.cjs +549 -0
- package/dist/entries/video.cjs.map +1 -0
- package/dist/entries/video.d.cts +1791 -0
- package/dist/entries/video.d.ts +1791 -0
- package/dist/entries/video.js +8 -0
- package/dist/entries/video.js.map +1 -0
- package/dist/entries/workflow.cjs +574 -0
- package/dist/entries/workflow.cjs.map +1 -0
- package/dist/entries/workflow.d.cts +1743 -0
- package/dist/entries/workflow.d.ts +1743 -0
- package/dist/entries/workflow.js +5 -0
- package/dist/entries/workflow.js.map +1 -0
- package/dist/fan-out-meta-Bu6VyXcZ.d.cts +19 -0
- package/dist/fan-out-meta-Bu6VyXcZ.d.ts +19 -0
- package/dist/gemini-omni-voices-zeRXxSbZ.d.cts +174 -0
- package/dist/gemini-omni-voices-zeRXxSbZ.d.ts +174 -0
- package/dist/image-overlay-layers-CyBfRhxJ.d.cts +208 -0
- package/dist/image-overlay-layers-CyBfRhxJ.d.ts +208 -0
- package/dist/index.cjs +7747 -27084
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -24198
- package/dist/index.d.ts +32 -24198
- package/dist/index.js +40 -25220
- package/dist/index.js.map +1 -1
- package/dist/model-catalog-V-ZNzRSd.d.cts +651 -0
- package/dist/model-catalog-V-ZNzRSd.d.ts +651 -0
- package/dist/presentation-types-0ENOCjoj.d.cts +61 -0
- package/dist/presentation-types-0ENOCjoj.d.ts +61 -0
- package/dist/presentation-utils-D0kxsWf9.d.cts +92 -0
- package/dist/presentation-utils-pZwlEAzo.d.ts +92 -0
- package/dist/scene-node-types-C3kl_zyK.d.cts +1949 -0
- package/dist/scene-node-types-C3kl_zyK.d.ts +1949 -0
- package/dist/supported-fonts-CRoF1gOy.d.cts +16 -0
- package/dist/supported-fonts-CRoF1gOy.d.ts +16 -0
- package/dist/types-BRlFPEru.d.cts +511 -0
- package/dist/types-BRlFPEru.d.ts +511 -0
- package/dist/types-DffyGSy5.d.cts +67 -0
- package/dist/types-DffyGSy5.d.ts +67 -0
- package/package.json +102 -1
- package/src/__tests__/add-captions-plan.test.ts +6 -2
- package/src/__tests__/caption-edge-dash.test.ts +23 -0
- package/src/__tests__/fixtures/root-exports.baseline.json +4625 -0
- package/src/__tests__/input-field-extra-keys.test.ts +1 -0
- package/src/__tests__/model-makers.test.ts +76 -0
- package/src/__tests__/no-internal-imports.test.ts +1 -1
- package/src/__tests__/node-aspect-ratio.test.ts +25 -0
- package/src/__tests__/node-runtime-keys.test.ts +9 -0
- package/src/__tests__/package-entries.test.ts +50 -0
- package/src/__tests__/pitch-tempo-pricing.test.ts +21 -0
- package/src/__tests__/presentation-utils.test.ts +15 -0
- package/src/__tests__/preview-gate-use-case.test.ts +151 -0
- package/src/__tests__/private-host.test.ts +53 -0
- package/src/__tests__/run-continuation.test.ts +7 -1
- package/src/__tests__/site-capture-node.test.ts +58 -0
- package/src/__tests__/ugc-lane-wires.test.ts +228 -0
- package/src/__tests__/ugc-node-wires.test.ts +9 -3
- package/src/__tests__/ugc-run-state.test.ts +5 -4
- package/src/__tests__/video-analysis-catalog-sync.test.ts +1 -1
- package/src/__tests__/video-analysis-pricing.test.ts +6 -6
- package/src/__tests__/voice-changer-pro-quote.test.ts +79 -0
- package/src/add-captions-plan.ts +9 -3
- package/src/caption-edge-dash.ts +33 -0
- package/src/component-types.ts +9 -0
- package/src/credit-estimators/index.ts +22 -1
- package/src/credit-estimators/pitch-tempo.ts +15 -1
- package/src/credit-estimators/speech.ts +72 -4
- package/src/credit-estimators/unit-quote.ts +52 -0
- package/src/credit-estimators/video-sfx.ts +15 -0
- package/src/credit-estimators/voice-changer-pro-quote.ts +138 -0
- package/src/credit-identifiers.ts +62 -17
- package/src/entity-image-handle.ts +2 -0
- package/src/entries/apps.ts +63 -0
- package/src/entries/captions.ts +34 -0
- package/src/entries/catalogs.ts +65 -0
- package/src/entries/credits.ts +105 -0
- package/src/entries/edl.ts +42 -0
- package/src/entries/entities.ts +144 -0
- package/src/entries/i18n.ts +31 -0
- package/src/entries/llm-models.ts +63 -0
- package/src/entries/media.ts +36 -0
- package/src/entries/model-catalog.ts +95 -0
- package/src/entries/models.ts +266 -0
- package/src/entries/nodes.ts +245 -0
- package/src/entries/organizations.ts +9 -0
- package/src/entries/pipeline.ts +43 -0
- package/src/entries/scene3d.ts +27 -0
- package/src/entries/social.ts +297 -0
- package/src/entries/types.ts +26 -0
- package/src/entries/ugc.ts +14 -0
- package/src/entries/video.ts +59 -0
- package/src/entries/workflow.ts +172 -0
- package/src/fan-out-rows.ts +2 -0
- package/src/index.ts +25 -1845
- package/src/json-kinds.ts +4 -0
- package/src/model-catalog.ts +243 -34
- package/src/node-mappable-fields.ts +1 -0
- package/src/node-run-routes.ts +2 -0
- package/src/node-runtime-keys.ts +8 -0
- package/src/normalize-node-params.ts +30 -0
- package/src/presentation-utils.ts +12 -0
- package/src/preview-gate.ts +92 -14
- package/src/private-host.ts +89 -59
- package/src/producer-types.ts +16 -2
- package/src/run-continuation.ts +21 -0
- package/src/site-capture-node.ts +82 -0
- package/src/ugc-lane-wires.ts +246 -0
- package/src/ugc-node-wires.ts +37 -7
- package/src/ugc-run-state.ts +5 -3
- package/src/video-analysis-pricing.ts +31 -29
|
@@ -0,0 +1,1770 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkJSGIEF6Z_cjs = require('./chunk-JSGIEF6Z.cjs');
|
|
4
|
+
var chunkYWNYGYI7_cjs = require('./chunk-YWNYGYI7.cjs');
|
|
5
|
+
var chunkZL7UM6PU_cjs = require('./chunk-ZL7UM6PU.cjs');
|
|
6
|
+
var chunkVXPLKQWY_cjs = require('./chunk-VXPLKQWY.cjs');
|
|
7
|
+
var chunkHRXEZ3SX_cjs = require('./chunk-HRXEZ3SX.cjs');
|
|
8
|
+
var chunkKU6S7IYV_cjs = require('./chunk-KU6S7IYV.cjs');
|
|
9
|
+
var chunkVA42637J_cjs = require('./chunk-VA42637J.cjs');
|
|
10
|
+
var chunkM7GQBRZU_cjs = require('./chunk-M7GQBRZU.cjs');
|
|
11
|
+
var chunkK3LLGRK7_cjs = require('./chunk-K3LLGRK7.cjs');
|
|
12
|
+
var chunk5PC6JBGJ_cjs = require('./chunk-5PC6JBGJ.cjs');
|
|
13
|
+
var chunkWNVQ3SMB_cjs = require('./chunk-WNVQ3SMB.cjs');
|
|
14
|
+
var zod = require('zod');
|
|
15
|
+
|
|
16
|
+
// src/node-run-routes.ts
|
|
17
|
+
var SOCIAL_PUBLISH_ROUTE = "/v1/social/publish";
|
|
18
|
+
var NODE_RUN_ROUTES = Object.freeze({
|
|
19
|
+
"generate-3d-scene": "/v1/3d-scene/generate",
|
|
20
|
+
"edit-3d-scene": "/v1/3d-scene/edit",
|
|
21
|
+
"ai-writer": "/v1/ai-writer/generate",
|
|
22
|
+
"llm-chat": "/v1/llm-chat/generate",
|
|
23
|
+
"video-composer": "/v1/scene-graph/generate",
|
|
24
|
+
"after-effects": "/v1/after-effects/generate",
|
|
25
|
+
"lottie-overlay": "/v1/lottie-overlay/generate",
|
|
26
|
+
"3d-title": "/v1/3d-title/generate",
|
|
27
|
+
"motion-graphics": "/v1/motion-graphics/generate",
|
|
28
|
+
"image-to-text": "/v1/image-to-text/describe",
|
|
29
|
+
"telegram-channel-feed": "/v1/telegram-channel/fetch",
|
|
30
|
+
"suno-generate": "/v1/suno/generate",
|
|
31
|
+
"suno-cover": "/v1/suno/cover",
|
|
32
|
+
"suno-extend": "/v1/suno/extend",
|
|
33
|
+
"suno-lyrics": "/v1/suno/lyrics",
|
|
34
|
+
"suno-separate": "/v1/suno/separate",
|
|
35
|
+
"suno-music-video": "/v1/suno/music-video",
|
|
36
|
+
"suno-mashup": "/v1/suno/mashup",
|
|
37
|
+
"suno-replace-section": "/v1/suno/replace-section",
|
|
38
|
+
"suno-style-boost": "/v1/suno/style-boost",
|
|
39
|
+
"suno-add-instrumental": "/v1/suno/add-instrumental",
|
|
40
|
+
"suno-add-vocals": "/v1/suno/add-vocals",
|
|
41
|
+
"suno-convert-wav": "/v1/suno/convert-wav",
|
|
42
|
+
"suno-upload-extend": "/v1/suno/upload-extend",
|
|
43
|
+
"suno-voice": "/v1/suno/voice/generate",
|
|
44
|
+
// The UGC nodes' routes, served by the Nodaro Cloud plugin.
|
|
45
|
+
"ugc-creator": "/v1/ugc/creator",
|
|
46
|
+
"ugc-script": "/v1/ugc/script",
|
|
47
|
+
"ugc-clips": "/v1/ugc/clips",
|
|
48
|
+
"ugc-clip": "/v1/ugc/clip",
|
|
49
|
+
"ugc-cards": "/v1/ugc/cards",
|
|
50
|
+
// UGC Finish: the finish job over a speech-first video's clips (an English video passes through with no call).
|
|
51
|
+
"ugc-finish-clips": "/v1/ugc/finish",
|
|
52
|
+
// Every social post node publishes through the one route; the body's
|
|
53
|
+
// `platform` says where (SOCIAL_POST_NODE_PLATFORM).
|
|
54
|
+
...Object.fromEntries([...chunkYWNYGYI7_cjs.SOCIAL_POST_NODE_TYPES].map((type) => [type, SOCIAL_PUBLISH_ROUTE]))
|
|
55
|
+
});
|
|
56
|
+
var NODE_TYPES_WITHOUT_RUN_ROUTE = Object.freeze({
|
|
57
|
+
"modify-image": 'run "image-to-image" instead (or "edit-image" for the nano-banana-edit provider)',
|
|
58
|
+
"upscale-image": 'run "edit-image" with an upscale provider instead (e.g. provider "recraft-upscale")',
|
|
59
|
+
"remove-background": 'run "edit-image" with provider "recraft-remove-bg" instead',
|
|
60
|
+
"image-to-video": 'run "generate-video" with a start frame instead',
|
|
61
|
+
composite: "it runs only as part of a workflow (client.workflows.run)",
|
|
62
|
+
"manual-edit": "it opens the in-browser editor and runs only inside a workflow",
|
|
63
|
+
"paint-mask": "it is painted in the editor and never runs; use its mask output inside a workflow",
|
|
64
|
+
scene: "it is run by the pipeline orchestrator (client.pipelines)",
|
|
65
|
+
"generative-pipeline": "it is run by the pipeline orchestrator (client.pipelines)"
|
|
66
|
+
});
|
|
67
|
+
function nodeRunRoute(type) {
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(NODE_TYPES_WITHOUT_RUN_ROUTE, type)) return null;
|
|
69
|
+
if (Object.prototype.hasOwnProperty.call(NODE_RUN_ROUTES, type)) return NODE_RUN_ROUTES[type];
|
|
70
|
+
return `/v1/${encodeURIComponent(type)}`;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// src/settings-input.ts
|
|
74
|
+
var SETTINGS_INPUT_HANDLE = "settings";
|
|
75
|
+
var SETTINGS_SOURCE_FIELDS = {
|
|
76
|
+
"aspect-ratio": "aspectRatio",
|
|
77
|
+
duration: "duration",
|
|
78
|
+
provider: "provider"
|
|
79
|
+
};
|
|
80
|
+
var SETTINGS_HINT_SOURCES = ["motion"];
|
|
81
|
+
var SETTINGS_SOURCE_TYPES = [
|
|
82
|
+
...Object.keys(SETTINGS_SOURCE_FIELDS),
|
|
83
|
+
...SETTINGS_HINT_SOURCES
|
|
84
|
+
];
|
|
85
|
+
function fieldOf(sourceType) {
|
|
86
|
+
return Object.prototype.hasOwnProperty.call(SETTINGS_SOURCE_FIELDS, sourceType) ? SETTINGS_SOURCE_FIELDS[sourceType] : void 0;
|
|
87
|
+
}
|
|
88
|
+
var VIDEO_SETTINGS = ["aspect-ratio", "duration", "provider", "motion"];
|
|
89
|
+
var SETTINGS_CONSUMERS = {
|
|
90
|
+
"generate-video": {
|
|
91
|
+
accepts: VIDEO_SETTINGS,
|
|
92
|
+
models: chunkM7GQBRZU_cjs.VIDEO_GEN_PROVIDERS,
|
|
93
|
+
defaultModel: chunkM7GQBRZU_cjs.DEFAULT_VIDEO_PROVIDER,
|
|
94
|
+
duration: "model"
|
|
95
|
+
},
|
|
96
|
+
// Generate Video Pro has Generate Video's handles by construction
|
|
97
|
+
// (generate-video-pro-handles.ts re-exports them), so it takes the same
|
|
98
|
+
// settings; its own models and its own duration rule.
|
|
99
|
+
"generate-video-pro": {
|
|
100
|
+
accepts: VIDEO_SETTINGS,
|
|
101
|
+
models: chunkM7GQBRZU_cjs.GVP_SUPPORTED_PROVIDERS,
|
|
102
|
+
defaultModel: chunkM7GQBRZU_cjs.GVP_DEFAULT_PROVIDER,
|
|
103
|
+
duration: "total"
|
|
104
|
+
},
|
|
105
|
+
// A still image has no length, so no Duration.
|
|
106
|
+
"generate-image": {
|
|
107
|
+
accepts: ["aspect-ratio", "provider"],
|
|
108
|
+
models: chunkM7GQBRZU_cjs.IMAGE_GEN_PROVIDERS,
|
|
109
|
+
// The node's own default (NODE_DEFINITIONS) — only used to fit a wired
|
|
110
|
+
// ratio when the node names no model.
|
|
111
|
+
defaultModel: chunkZL7UM6PU_cjs.IMAGE_MODEL_ROLE_DEFAULTS.general,
|
|
112
|
+
modelList: "providers"
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var SETTINGS_INPUT_CONSUMERS = Object.fromEntries(
|
|
116
|
+
Object.entries(SETTINGS_CONSUMERS).map(([type, consumer]) => [type, consumer.accepts])
|
|
117
|
+
);
|
|
118
|
+
function isSettingsSourceType(type) {
|
|
119
|
+
return typeof type === "string" && SETTINGS_SOURCE_TYPES.includes(type);
|
|
120
|
+
}
|
|
121
|
+
function isSettingsHintSource(type) {
|
|
122
|
+
return typeof type === "string" && SETTINGS_HINT_SOURCES.includes(type);
|
|
123
|
+
}
|
|
124
|
+
function settingsInputAccepts(consumerType, sourceType) {
|
|
125
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).some((t) => t === sourceType);
|
|
126
|
+
}
|
|
127
|
+
function settingsInputFields(consumerType) {
|
|
128
|
+
return (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).flatMap((t) => {
|
|
129
|
+
const field = fieldOf(t);
|
|
130
|
+
return field ? [field] : [];
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function settingsProviderModels(consumerType) {
|
|
134
|
+
return SETTINGS_CONSUMERS[consumerType]?.models ?? [];
|
|
135
|
+
}
|
|
136
|
+
function settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) {
|
|
137
|
+
if (!settingsInputAccepts(consumerType, sourceType)) return void 0;
|
|
138
|
+
let found;
|
|
139
|
+
for (const edge of edges) {
|
|
140
|
+
if (edge.target !== consumerId || edge.targetHandle !== SETTINGS_INPUT_HANDLE) continue;
|
|
141
|
+
if (typeOf(edge.source) === sourceType) found = edge.source;
|
|
142
|
+
}
|
|
143
|
+
return found;
|
|
144
|
+
}
|
|
145
|
+
function settingsSourceForField(consumerId, consumerType, field, edges, typeOf) {
|
|
146
|
+
const sourceType = (SETTINGS_INPUT_CONSUMERS[consumerType] ?? []).find((t) => fieldOf(t) === field);
|
|
147
|
+
return sourceType ? settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf) : void 0;
|
|
148
|
+
}
|
|
149
|
+
function isSettingsHintEdge(edge, consumerType, edges, typeOf) {
|
|
150
|
+
if (edge.targetHandle !== SETTINGS_INPUT_HANDLE) return false;
|
|
151
|
+
const sourceType = typeOf(edge.source);
|
|
152
|
+
if (!isSettingsHintSource(sourceType)) return false;
|
|
153
|
+
return settingsSourceForType(edge.target, consumerType, sourceType, edges, typeOf) === edge.source;
|
|
154
|
+
}
|
|
155
|
+
function connectedSettingsSources(consumerId, consumerType, edges, typeOf) {
|
|
156
|
+
const out = [];
|
|
157
|
+
for (const sourceType of SETTINGS_INPUT_CONSUMERS[consumerType] ?? []) {
|
|
158
|
+
const sourceId = settingsSourceForType(consumerId, consumerType, sourceType, edges, typeOf);
|
|
159
|
+
if (!sourceId) continue;
|
|
160
|
+
const field = fieldOf(sourceType);
|
|
161
|
+
out.push(field ? { sourceType, field, sourceId } : { sourceType, sourceId });
|
|
162
|
+
}
|
|
163
|
+
return out;
|
|
164
|
+
}
|
|
165
|
+
function snapToModelDuration(model, seconds) {
|
|
166
|
+
const durations = chunkK3LLGRK7_cjs.MODEL_CATALOG[model]?.durations;
|
|
167
|
+
if (!durations || durations.length === 0 || chunkK3LLGRK7_cjs.isAutoVideoDuration(seconds)) return seconds;
|
|
168
|
+
let best = durations[0];
|
|
169
|
+
for (const d of durations) {
|
|
170
|
+
const closer = Math.abs(d - seconds) < Math.abs(best - seconds);
|
|
171
|
+
const tieShorter = Math.abs(d - seconds) === Math.abs(best - seconds) && d < best;
|
|
172
|
+
if (closer || tieShorter) best = d;
|
|
173
|
+
}
|
|
174
|
+
return best;
|
|
175
|
+
}
|
|
176
|
+
function applySettingsInput(consumerType, consumerId, data, edges, typeOf) {
|
|
177
|
+
const consumer = SETTINGS_CONSUMERS[consumerType];
|
|
178
|
+
const connected = connectedSettingsSources(consumerId, consumerType, edges, typeOf);
|
|
179
|
+
if (!consumer || connected.length === 0) return { data: { ...data } };
|
|
180
|
+
let next = { ...data };
|
|
181
|
+
const providerSource = connected.find((c) => c.sourceType === "provider");
|
|
182
|
+
if (providerSource) {
|
|
183
|
+
const value = typeof next.provider === "string" ? next.provider : "";
|
|
184
|
+
if (!consumer.models.includes(value)) {
|
|
185
|
+
return { data: next, problem: { kind: "provider-not-accepted", sourceId: providerSource.sourceId, value } };
|
|
186
|
+
}
|
|
187
|
+
if (consumer.modelList) next = { ...next, [consumer.modelList]: [value] };
|
|
188
|
+
}
|
|
189
|
+
const model = typeof next.provider === "string" && next.provider || consumer.defaultModel;
|
|
190
|
+
if (consumer.duration === "model" && connected.some((c) => c.sourceType === "duration")) {
|
|
191
|
+
const raw = next.duration;
|
|
192
|
+
const seconds = typeof raw === "number" ? raw : typeof raw === "string" ? Number.parseInt(raw, 10) : Number.NaN;
|
|
193
|
+
if (Number.isFinite(seconds)) next = { ...next, duration: snapToModelDuration(model, seconds) };
|
|
194
|
+
}
|
|
195
|
+
if (connected.some((c) => c.sourceType === "aspect-ratio") && typeof next.aspectRatio === "string") {
|
|
196
|
+
next = { ...next, aspectRatio: chunkK3LLGRK7_cjs.fitAspectRatioToModel(model, next.aspectRatio) };
|
|
197
|
+
}
|
|
198
|
+
return { data: next };
|
|
199
|
+
}
|
|
200
|
+
function resolveWiredSettings(consumerId, consumerType, data, nodes, edges) {
|
|
201
|
+
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
202
|
+
const typeOf = (id) => byId.get(id)?.type;
|
|
203
|
+
const wired = connectedSettingsSources(consumerId, consumerType, edges, typeOf).map((c) => ({
|
|
204
|
+
...c,
|
|
205
|
+
value: chunkKU6S7IYV_cjs.getParameterValue(byId.get(c.sourceId)?.data ?? {}, c.sourceType)
|
|
206
|
+
}));
|
|
207
|
+
if (wired.length === 0) return { data: { ...data }, wired };
|
|
208
|
+
let next = { ...data };
|
|
209
|
+
for (const w of wired) {
|
|
210
|
+
if (w.field && w.value != null) next = { ...next, [w.field]: w.value };
|
|
211
|
+
}
|
|
212
|
+
const applied = applySettingsInput(consumerType, consumerId, next, edges, typeOf);
|
|
213
|
+
return applied.problem ? { data: applied.data, wired, problem: applied.problem } : { data: applied.data, wired };
|
|
214
|
+
}
|
|
215
|
+
function withWiredSettings(node, nodes, edges) {
|
|
216
|
+
const type = node.type ?? "";
|
|
217
|
+
if (!nodes || !edges || !node.id || !SETTINGS_CONSUMERS[type]) return node;
|
|
218
|
+
const graphNodes = nodes.flatMap((n) => n.id ? [{ id: n.id, type: n.type, data: n.data }] : []);
|
|
219
|
+
const graphEdges = edges.map((e) => ({ source: e.source ?? "", target: e.target, targetHandle: e.targetHandle }));
|
|
220
|
+
const { data } = resolveWiredSettings(node.id, type, node.data ?? {}, graphNodes, graphEdges);
|
|
221
|
+
return { ...node, data };
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// src/node-mappable-fields.ts
|
|
225
|
+
var NODE_MAPPABLE_FIELDS = {
|
|
226
|
+
// + the fields its Settings input sets (settings-input.ts).
|
|
227
|
+
"generate-image": ["prompt", "style", "negativePrompt", ...settingsInputFields("generate-image")],
|
|
228
|
+
"edit-image": ["prompt", "style", "negativePrompt"],
|
|
229
|
+
"image-to-image": ["prompt", "style", "negativePrompt"],
|
|
230
|
+
"modify-image": ["prompt", "style", "negativePrompt"],
|
|
231
|
+
"text-to-video": ["prompt", "negativePrompt"],
|
|
232
|
+
"image-to-video": ["prompt"],
|
|
233
|
+
// Unified t2v/i2v node — replaced the two deprecated keys above (kept only
|
|
234
|
+
// for back-compat with un-migrated workflow JSON). Mirrors text-to-video so
|
|
235
|
+
// fieldMappings/{} injection AND missing-ref detection work on the live node.
|
|
236
|
+
// + the fields its Settings input sets (settings-input.ts): a Generation
|
|
237
|
+
// Settings node wired there overrides the node's own aspect ratio, duration
|
|
238
|
+
// and model at run time, through the same resolver as a field mapping.
|
|
239
|
+
"generate-video": ["prompt", "negativePrompt", ...settingsInputFields("generate-video")],
|
|
240
|
+
// Trimmed multi-segment stitch variant of generate-video — prompt only, no
|
|
241
|
+
// negativePrompt field on the node; + the fields its Settings input sets.
|
|
242
|
+
"generate-video-pro": ["prompt", ...settingsInputFields("generate-video-pro")],
|
|
243
|
+
// Span-replace sibling of generate-video-pro — prompt only, no
|
|
244
|
+
// negativePrompt field on the node.
|
|
245
|
+
"edit-video-pro": ["prompt"],
|
|
246
|
+
// The subject to track — a {Label} reference or a mapping writes it.
|
|
247
|
+
"video-mask": ["prompt"],
|
|
248
|
+
"video-analysis": ["analysisFocus", "youtubeUrl"],
|
|
249
|
+
"video-to-video": ["prompt"],
|
|
250
|
+
// + the two neighbour-text fields (continuity across clips): a wired Text node can feed
|
|
251
|
+
// what is spoken before / after this clip, and {} injection works in them as in directText.
|
|
252
|
+
"text-to-speech": ["directText", "previousText", "nextText"],
|
|
253
|
+
// Save to Collection: the record's own fields, each mappable from an upstream
|
|
254
|
+
// node or a {Ref}; the link field is `link` (node-data keys ending in url are
|
|
255
|
+
// locked by the Copilot's deny-list).
|
|
256
|
+
"collection-write": ["title", "text", "link", "dedupeKey"],
|
|
257
|
+
"lip-sync": ["prompt"],
|
|
258
|
+
"generate-music": ["prompt", "lyrics", "genre", "mood"],
|
|
259
|
+
"text-to-audio": ["prompt"],
|
|
260
|
+
"suno-generate": ["prompt", "lyrics", "style", "title", "negativeStyle"],
|
|
261
|
+
"suno-cover": ["prompt", "lyrics", "style", "title", "negativeStyle"],
|
|
262
|
+
"suno-extend": ["prompt", "style", "title"],
|
|
263
|
+
"suno-lyrics": ["prompt"],
|
|
264
|
+
"suno-replace-section": ["prompt", "tags", "title", "fullLyrics", "negativeTags"],
|
|
265
|
+
"suno-style-boost": ["content"],
|
|
266
|
+
"suno-upload-extend": ["prompt", "style", "title"],
|
|
267
|
+
"suno-mashup": ["style", "title", "negativeStyle"],
|
|
268
|
+
"voice-remix": ["voiceDescription", "text"],
|
|
269
|
+
"voice-design": ["voiceDescription", "text"],
|
|
270
|
+
"forced-alignment": ["transcript"],
|
|
271
|
+
"ai-writer": ["systemPrompt", "userInput"],
|
|
272
|
+
"llm-chat": ["systemPrompt", "userInput"],
|
|
273
|
+
"video-composer": ["compositionPrompt"],
|
|
274
|
+
"after-effects": ["effectPrompt"],
|
|
275
|
+
"lottie-overlay": ["overlayPrompt"],
|
|
276
|
+
"3d-title": ["titlePrompt"],
|
|
277
|
+
"generate-3d-scene": ["scenePrompt"],
|
|
278
|
+
"edit-3d-scene": ["editPrompt"],
|
|
279
|
+
"pro-3d-render": ["scenePrompt"],
|
|
280
|
+
"motion-graphics": ["motionPrompt"],
|
|
281
|
+
// Every field the panel offers a source for. Numbers arrive as text from a
|
|
282
|
+
// Scene Count / Duration node; readScriptSettings coerces them on both engines.
|
|
283
|
+
"generate-script": ["styleGuide", "tone", "sceneCount", "targetLength"],
|
|
284
|
+
"speech-to-video": ["prompt", "negativePrompt"],
|
|
285
|
+
"extend-video": ["prompt"],
|
|
286
|
+
"motion-transfer": ["prompt"],
|
|
287
|
+
"cinematic-avatar": ["prompt"],
|
|
288
|
+
"image-to-text": ["customPrompt"],
|
|
289
|
+
"instagram-post": ["caption", "title"],
|
|
290
|
+
"tiktok-post": ["caption", "title"],
|
|
291
|
+
"youtube-upload": ["caption", "title"],
|
|
292
|
+
"linkedin-post": ["caption", "title"],
|
|
293
|
+
"x-post": ["caption", "title"],
|
|
294
|
+
"facebook-post": ["caption", "title"],
|
|
295
|
+
"telegram-post": ["caption", "title"],
|
|
296
|
+
"save-to-storage": ["filename"],
|
|
297
|
+
"webhook-output": ["url"],
|
|
298
|
+
"character": ["characterName", "description", "baseOutfit"],
|
|
299
|
+
"face": ["faceName", "description"],
|
|
300
|
+
"object": ["objectName", "description"],
|
|
301
|
+
"creature": ["creatureName", "description"],
|
|
302
|
+
"location": ["locationName", "description"],
|
|
303
|
+
"web-scrape": ["query", "url", "target"],
|
|
304
|
+
"site-capture": ["url"],
|
|
305
|
+
"meta-ads-scrape": ["query", "pageUrls"],
|
|
306
|
+
"instagram-scrape": ["targets"],
|
|
307
|
+
// Content Recipe's material arrives on its `in` wire and the post link on
|
|
308
|
+
// its `link` wire (a Video URL node's page link) — only the focus is a field.
|
|
309
|
+
"content-recipe": ["focus"],
|
|
310
|
+
// Content Ideas folds its recipes on the `recipes` wire (FAN_IN_TARGETS);
|
|
311
|
+
// the brand profile and the language are fields a Text node can feed.
|
|
312
|
+
"content-ideas": ["brand", "language"],
|
|
313
|
+
// Social Search: the keyword or account a Text node (or a List item) feeds.
|
|
314
|
+
"social-search": ["query"]
|
|
315
|
+
};
|
|
316
|
+
var SUNO_FIELD_HANDLE_FIELDS = ["style", "lyrics", "title", "negativeStyle"];
|
|
317
|
+
function fieldKeyFromHandle(handleId) {
|
|
318
|
+
return handleId.startsWith("field-") ? handleId.slice("field-".length) : null;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// src/script-settings.ts
|
|
322
|
+
var SCRIPT_SCENE_COUNT_RANGE = { min: 1, max: 20 };
|
|
323
|
+
var SCRIPT_TARGET_DURATION_RANGE = { min: 5, max: 600 };
|
|
324
|
+
var SCRIPT_SCENE_COUNT_DEFAULT = 5;
|
|
325
|
+
var SCRIPT_TARGET_DURATION_DEFAULT = 60;
|
|
326
|
+
var SCRIPT_TONE_MAX_LENGTH = 200;
|
|
327
|
+
var SCRIPT_STYLE_GUIDE_MAX_LENGTH = chunkM7GQBRZU_cjs.LLM_TEXT_INPUT_MAX;
|
|
328
|
+
function clampInt(value, range) {
|
|
329
|
+
const n = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
|
|
330
|
+
if (!Number.isFinite(n)) return void 0;
|
|
331
|
+
return Math.min(range.max, Math.max(range.min, Math.round(n)));
|
|
332
|
+
}
|
|
333
|
+
function clampText(value, max) {
|
|
334
|
+
if (typeof value !== "string") return void 0;
|
|
335
|
+
const text = value.trim();
|
|
336
|
+
return text.length > 0 ? text.slice(0, max) : void 0;
|
|
337
|
+
}
|
|
338
|
+
function readScriptSettings(data, refMap) {
|
|
339
|
+
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? chunkJSGIEF6Z_cjs.resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
|
|
340
|
+
return {
|
|
341
|
+
sceneCount: clampInt(data.sceneCount, SCRIPT_SCENE_COUNT_RANGE),
|
|
342
|
+
// The panel's own fields (the ones a mapping writes) come first. `style` is
|
|
343
|
+
// an older key for the tone, and `targetDuration` is the route's name for
|
|
344
|
+
// the length, which workflow JSON written by an agent can carry.
|
|
345
|
+
tone: clampText(data.tone ?? data.style, SCRIPT_TONE_MAX_LENGTH),
|
|
346
|
+
targetDuration: clampInt(data.targetLength ?? data.targetDuration, SCRIPT_TARGET_DURATION_RANGE),
|
|
347
|
+
styleGuide: clampText(styleGuide, SCRIPT_STYLE_GUIDE_MAX_LENGTH)
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// src/json-kinds.ts
|
|
352
|
+
var JSON_OUTPUT_KINDS = Object.freeze({
|
|
353
|
+
// Edit Plan: the plan on `edl` — a Tighten EDL, a clip set (`Edl[]`) or a chapter list.
|
|
354
|
+
"edit-plan": { primary: "edl", pips: { edl: "edl" } },
|
|
355
|
+
// Transcribe: its json is the normalized Transcript (its `text` pip is plain text, no kind).
|
|
356
|
+
transcribe: { primary: "json", pips: { json: "transcript" } },
|
|
357
|
+
// Camera Switch: the switched edit and the renamed (still a Transcript) transcript.
|
|
358
|
+
"camera-switch": { primary: "edl", pips: { edl: "edl", transcript: "transcript" } },
|
|
359
|
+
// Speaker Frames: the stored track file's descriptor (P3-22) — neither a
|
|
360
|
+
// Transcript nor an EDL, read by Speaker View's `tracks` input (P3.9).
|
|
361
|
+
"speaker-frames": { primary: "tracks", pips: { tracks: "other" } },
|
|
362
|
+
// Text to Dialogue: the Transcript built from the model's own word timings (its default read is the audio).
|
|
363
|
+
"text-to-dialogue": { pips: { json: "transcript" } },
|
|
364
|
+
// Tighten Episode: its json is the plan's EDL (dropped[] included); its default read is the media.
|
|
365
|
+
"tighten-episode": { pips: { json: "edl" } },
|
|
366
|
+
// ── JSON that is neither a Transcript nor an EDL (decided 2026-10-08) ──
|
|
367
|
+
// Forced Alignment: `{ alignment: [{ word, start, end }] }` in seconds — a word list, not a Transcript.
|
|
368
|
+
"forced-alignment": { primary: "data", pips: { data: "other" } },
|
|
369
|
+
// Video Analysis / Video Audit: the canonical analysis result (an audit IS an analysis).
|
|
370
|
+
"video-analysis": { primary: "json", pips: { json: "other" } },
|
|
371
|
+
"video-audit": { primary: "json", pips: { json: "other" } },
|
|
372
|
+
// Silence Detect: `{ version, ranges, durationMs }`. Audio Sync: `{ version, reference, offsets, notes }`.
|
|
373
|
+
"silence-detect": { primary: "json", pips: { json: "other" } },
|
|
374
|
+
"audio-sync": { primary: "json", pips: { json: "other" } },
|
|
375
|
+
// Scrapers and searches: the scraped page / ad array / post list.
|
|
376
|
+
"web-scrape": { primary: "json", pips: { json: "other" } },
|
|
377
|
+
"meta-ads-scrape": { primary: "json", pips: { json: "other" } },
|
|
378
|
+
"instagram-scrape": { primary: "json", pips: { json: "other" } },
|
|
379
|
+
"social-search": { primary: "json", pips: { json: "other" } },
|
|
380
|
+
// Site Capture: the capture's output (title, sections, stills, page facts). Its stills are its `image` pip.
|
|
381
|
+
"site-capture": { pips: { json: "other" } },
|
|
382
|
+
"telegram-channel-feed": { primary: "json", pips: { json: "other" } },
|
|
383
|
+
// Content Recipe: the recipe's structured result.
|
|
384
|
+
"content-recipe": { primary: "json", pips: { json: "other" } },
|
|
385
|
+
// Collections and libraries: the stored rows, whatever the user keeps in them.
|
|
386
|
+
"collection-read": { primary: "json", pips: { json: "other" } },
|
|
387
|
+
"collection-write": { primary: "json", pips: { json: "other" } },
|
|
388
|
+
"inspiration-read": { primary: "json", pips: { json: "other" } },
|
|
389
|
+
"competitor-read": { primary: "json", pips: { json: "other" } },
|
|
390
|
+
// Describe to Picker: the picker values read off an image.
|
|
391
|
+
"describe-to-picker": { primary: "picker-json", pips: { "picker-json": "other" } },
|
|
392
|
+
// The UGC video nodes: their own versioned JSON (a creator record, a plan, the
|
|
393
|
+
// clip tickets, the sized plan), and UGC Cards' layer plan and caption plan.
|
|
394
|
+
// Their text pips (category, transcript, report) are not JSON pips. The pip an
|
|
395
|
+
// edge with no `sourceHandle` reads is the UGC wires' own (UGC_PRIMARY_HANDLE).
|
|
396
|
+
"ugc-creator": { primary: chunkHRXEZ3SX_cjs.UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
|
|
397
|
+
"ugc-script": { primary: chunkHRXEZ3SX_cjs.UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
|
|
398
|
+
"ugc-clips": { primary: chunkHRXEZ3SX_cjs.UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
|
|
399
|
+
"ugc-cards": { primary: chunkHRXEZ3SX_cjs.UGC_PRIMARY_HANDLE["ugc-cards"], pips: { layerPlan: "other", captionPlan: "other" } }
|
|
400
|
+
});
|
|
401
|
+
var JSON_INPUT_KINDS = Object.freeze({
|
|
402
|
+
transcript: "transcript",
|
|
403
|
+
edl: "edl"
|
|
404
|
+
});
|
|
405
|
+
var own = (table, key) => Object.hasOwn(table, key) ? table[key] : void 0;
|
|
406
|
+
function declaredJsonOutput(nodeType, sourceHandle, renders = chunkVXPLKQWY_cjs.RENDER_NODE_TYPES) {
|
|
407
|
+
if (typeof nodeType !== "string") return void 0;
|
|
408
|
+
const render = own(renders, nodeType);
|
|
409
|
+
if (render) {
|
|
410
|
+
const pip2 = sourceHandle ?? chunkVXPLKQWY_cjs.RENDER_JSON_HANDLE;
|
|
411
|
+
if (pip2 === chunkVXPLKQWY_cjs.RENDER_JSON_HANDLE) return render.jsonKind;
|
|
412
|
+
return pip2 === render.transcriptOutput.handle ? "transcript" : void 0;
|
|
413
|
+
}
|
|
414
|
+
const outputs = own(JSON_OUTPUT_KINDS, nodeType);
|
|
415
|
+
if (!outputs) return void 0;
|
|
416
|
+
const pip = sourceHandle ?? outputs.primary;
|
|
417
|
+
return typeof pip === "string" ? own(outputs.pips, pip) : void 0;
|
|
418
|
+
}
|
|
419
|
+
function declaredJsonOutputRows() {
|
|
420
|
+
return Object.entries(JSON_OUTPUT_KINDS).flatMap(
|
|
421
|
+
([type, o]) => Object.entries(o.pips).map(([pip, kind]) => [type, pip, kind])
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
function jsonOutputKind(nodeType, sourceHandle, renders = chunkVXPLKQWY_cjs.RENDER_NODE_TYPES) {
|
|
425
|
+
const declared = declaredJsonOutput(nodeType, sourceHandle, renders);
|
|
426
|
+
return declared === "other" ? void 0 : declared;
|
|
427
|
+
}
|
|
428
|
+
function jsonInputKind(_nodeType, targetHandle) {
|
|
429
|
+
return typeof targetHandle === "string" ? own(JSON_INPUT_KINDS, targetHandle) : void 0;
|
|
430
|
+
}
|
|
431
|
+
function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders = chunkVXPLKQWY_cjs.RENDER_NODE_TYPES) {
|
|
432
|
+
const input = jsonInputKind(targetType, targetHandle);
|
|
433
|
+
if (!input) return null;
|
|
434
|
+
const output = jsonOutputKind(sourceType, sourceHandle, renders);
|
|
435
|
+
return output && output !== input ? { output, input } : null;
|
|
436
|
+
}
|
|
437
|
+
function jsonKindMismatchMessage(mismatch, labels = {}) {
|
|
438
|
+
const source = labels.sourceLabel ?? "This output";
|
|
439
|
+
const target = labels.targetLabel ?? "this node";
|
|
440
|
+
if (mismatch.output === "transcript") {
|
|
441
|
+
return `${source} outputs a transcript, not an edit list (EDL), so it cannot feed the EDL input of ${target}. Wire an Edit Plan's or Camera Switch's edl there instead.`;
|
|
442
|
+
}
|
|
443
|
+
return `${source} outputs an edit list (EDL), not a transcript, so it cannot feed the Transcript input of ${target}. Wire a Transcribe node's json (or Apply EDL's or Camera Switch's transcript) there instead.`;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// src/preview-gate.ts
|
|
447
|
+
var PREVIEW_RENDER_NODE_TYPES = new Set(chunkVXPLKQWY_cjs.RENDER_NODE_TYPE_IDS);
|
|
448
|
+
var REVIEW_HOLDING_USE_CASE_TYPES = /* @__PURE__ */ new Set(["tighten-episode"]);
|
|
449
|
+
function isPreviewHoldingType(type) {
|
|
450
|
+
return PREVIEW_RENDER_NODE_TYPES.has(type ?? "") || REVIEW_HOLDING_USE_CASE_TYPES.has(type ?? "");
|
|
451
|
+
}
|
|
452
|
+
var PREVIEW_REVIEW_REQUIRED = "preview_review_required";
|
|
453
|
+
var PREVIEW_RENDER_NESTED = "preview_render_nested";
|
|
454
|
+
var PREVIEW_REVIEW_REQUIRED_REVIEW_ON = "preview_review_required_review_on";
|
|
455
|
+
var PREVIEW_REVIEW_REQUIRED_MIXED = "preview_review_required_mixed";
|
|
456
|
+
var PREVIEW_RENDER_NESTED_REVIEW_ON = "preview_render_nested_review_on";
|
|
457
|
+
var PREVIEW_RENDER_NESTED_MIXED = "preview_render_nested_mixed";
|
|
458
|
+
var PREVIEW_REFUSAL_CODES = /* @__PURE__ */ new Set([
|
|
459
|
+
PREVIEW_REVIEW_REQUIRED,
|
|
460
|
+
PREVIEW_REVIEW_REQUIRED_REVIEW_ON,
|
|
461
|
+
PREVIEW_REVIEW_REQUIRED_MIXED,
|
|
462
|
+
PREVIEW_RENDER_NESTED,
|
|
463
|
+
PREVIEW_RENDER_NESTED_REVIEW_ON,
|
|
464
|
+
PREVIEW_RENDER_NESTED_MIXED
|
|
465
|
+
]);
|
|
466
|
+
function isPreviewRefusalCode(code) {
|
|
467
|
+
return typeof code === "string" && PREVIEW_REFUSAL_CODES.has(code);
|
|
468
|
+
}
|
|
469
|
+
var NO_SAVED_RENDER_STAMPS = {
|
|
470
|
+
output: () => void 0,
|
|
471
|
+
batch: () => void 0
|
|
472
|
+
};
|
|
473
|
+
var SAVED_RENDER_STAMPS = NO_SAVED_RENDER_STAMPS;
|
|
474
|
+
var dataOf = (n) => n.data && typeof n.data === "object" ? n.data : {};
|
|
475
|
+
var isPreviewStamp = (stamp) => stamp?.quality === "proxy";
|
|
476
|
+
function rendersAsPreview(node) {
|
|
477
|
+
const data = dataOf(node);
|
|
478
|
+
if (REVIEW_HOLDING_USE_CASE_TYPES.has(node.type ?? "")) {
|
|
479
|
+
const cont = data.useCaseContinue;
|
|
480
|
+
const rendersFinal = cont?.mode === "render-final" && typeof cont.jobId === "string";
|
|
481
|
+
return data.reviewBeforeRender === true && !rendersFinal;
|
|
482
|
+
}
|
|
483
|
+
return PREVIEW_RENDER_NODE_TYPES.has(node.type ?? "") && data.quality === "proxy";
|
|
484
|
+
}
|
|
485
|
+
var TELEPORT_TYPES = /* @__PURE__ */ new Set(["teleport-send", "teleport-receive"]);
|
|
486
|
+
var isTeleport = (n) => TELEPORT_TYPES.has(n?.type ?? "");
|
|
487
|
+
var outputModeOf = (edge) => {
|
|
488
|
+
const mode = edge.data && typeof edge.data === "object" ? edge.data.outputMode : void 0;
|
|
489
|
+
return typeof mode === "string" ? mode : void 0;
|
|
490
|
+
};
|
|
491
|
+
function readsEach(render, consumerEdge, renderHandle) {
|
|
492
|
+
return (outputModeOf(consumerEdge) ?? chunkVXPLKQWY_cjs.defaultEdgeOutputMode(render.type, renderHandle)) === "each";
|
|
493
|
+
}
|
|
494
|
+
function savedPreviewConsumers(render, children, nodeById, edges, reader) {
|
|
495
|
+
const data = dataOf(render);
|
|
496
|
+
const scalarIsPreview = isPreviewStamp(reader.output(data));
|
|
497
|
+
const batch = reader.batch(data);
|
|
498
|
+
const eachIsPreview = batch ? batch.some(isPreviewStamp) : scalarIsPreview;
|
|
499
|
+
const out = /* @__PURE__ */ new Set();
|
|
500
|
+
const visited = /* @__PURE__ */ new Set([render.id]);
|
|
501
|
+
const walk = (from, renderHandle, isRender) => {
|
|
502
|
+
const wires = edges.filter((e) => e.source === from);
|
|
503
|
+
for (const child of children.get(from) ?? []) {
|
|
504
|
+
const wiresToChild = wires.filter((e) => e.target === child);
|
|
505
|
+
if (isTeleport(nodeById.get(child))) {
|
|
506
|
+
if (visited.has(child)) continue;
|
|
507
|
+
visited.add(child);
|
|
508
|
+
if (isRender && wiresToChild.length > 0) for (const w of wiresToChild) walk(child, w.sourceHandle, false);
|
|
509
|
+
else walk(child, renderHandle, false);
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
const preview = wiresToChild.length === 0 ? scalarIsPreview : wiresToChild.some(
|
|
513
|
+
(e) => readsEach(render, e, isRender ? e.sourceHandle : renderHandle) ? eachIsPreview : scalarIsPreview
|
|
514
|
+
);
|
|
515
|
+
if (preview) out.add(child);
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
walk(render.id, void 0, true);
|
|
519
|
+
return [...out];
|
|
520
|
+
}
|
|
521
|
+
function previewStops(nodes, edges, run = {}) {
|
|
522
|
+
const nodeById = new Map(nodes.map((n) => [n.id, n]));
|
|
523
|
+
const executes = run.executes ?? ((id) => {
|
|
524
|
+
const n = nodeById.get(id);
|
|
525
|
+
return !!n && dataOf(n).skipped !== true;
|
|
526
|
+
});
|
|
527
|
+
const reader = run.savedRenders ?? SAVED_RENDER_STAMPS;
|
|
528
|
+
const { children } = chunkJSGIEF6Z_cjs.buildFeedMaps(nodes, edges);
|
|
529
|
+
const previewRenderIds = [];
|
|
530
|
+
const savedPreviewRenderIds = [];
|
|
531
|
+
const seeds = [];
|
|
532
|
+
for (const n of nodes) {
|
|
533
|
+
if (!isPreviewHoldingType(n.type)) continue;
|
|
534
|
+
const kids = children.get(n.id) ?? [];
|
|
535
|
+
if (executes(n.id)) {
|
|
536
|
+
if (!rendersAsPreview(n)) continue;
|
|
537
|
+
previewRenderIds.push(n.id);
|
|
538
|
+
seeds.push(...kids);
|
|
539
|
+
} else {
|
|
540
|
+
const consumers = savedPreviewConsumers(n, children, nodeById, edges, reader);
|
|
541
|
+
if (consumers.length === 0) continue;
|
|
542
|
+
savedPreviewRenderIds.push(n.id);
|
|
543
|
+
seeds.push(...consumers);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
const gated = /* @__PURE__ */ new Set();
|
|
547
|
+
const queue = [...seeds];
|
|
548
|
+
while (queue.length > 0) {
|
|
549
|
+
const id = queue.shift();
|
|
550
|
+
if (gated.has(id)) continue;
|
|
551
|
+
gated.add(id);
|
|
552
|
+
for (const next of children.get(id) ?? []) if (!gated.has(next)) queue.push(next);
|
|
553
|
+
}
|
|
554
|
+
return { previewRenderIds, savedPreviewRenderIds, gatedNodeIds: gated };
|
|
555
|
+
}
|
|
556
|
+
function previewGatedNodeIds(nodes, edges, run) {
|
|
557
|
+
return new Set(previewStops(nodes, edges, run).gatedNodeIds);
|
|
558
|
+
}
|
|
559
|
+
function holdsPreviewRender(nodes, edges, run) {
|
|
560
|
+
const stops = previewStops(nodes, edges, run);
|
|
561
|
+
return stops.previewRenderIds.length > 0 || stops.savedPreviewRenderIds.length > 0;
|
|
562
|
+
}
|
|
563
|
+
var RUN_OVERRIDE_CLEARED_FIELDS = [
|
|
564
|
+
"generatedResults",
|
|
565
|
+
"activeResultIndex",
|
|
566
|
+
"generatedImageUrl",
|
|
567
|
+
"generatedVideoUrl",
|
|
568
|
+
"generatedAudioUrl",
|
|
569
|
+
"generatedText"
|
|
570
|
+
];
|
|
571
|
+
var RUN_ONLY_NODE_FIELDS = ["useCaseContinue"];
|
|
572
|
+
function withoutRunOnlyFields(data) {
|
|
573
|
+
if (!RUN_ONLY_NODE_FIELDS.some((key) => key in data)) return data;
|
|
574
|
+
const kept = { ...data };
|
|
575
|
+
for (const key of RUN_ONLY_NODE_FIELDS) delete kept[key];
|
|
576
|
+
return kept;
|
|
577
|
+
}
|
|
578
|
+
function withRunOverrides(nodes, overrides) {
|
|
579
|
+
return nodes.map((n) => {
|
|
580
|
+
const saved = dataOf(n);
|
|
581
|
+
const data = withoutRunOnlyFields(saved);
|
|
582
|
+
const fields = overrides?.[n.id];
|
|
583
|
+
if (!fields) return data === saved ? n : { ...n, data };
|
|
584
|
+
const merged = chunkVXPLKQWY_cjs.mergeNodeInputOverrides(n.type ?? void 0, { ...data }, { ...fields });
|
|
585
|
+
for (const key of RUN_OVERRIDE_CLEARED_FIELDS) delete merged[key];
|
|
586
|
+
return { ...n, data: merged };
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// src/run-continuation.ts
|
|
591
|
+
var CONTINUATION_NOT_FOUND = "continuation_not_found";
|
|
592
|
+
var CONTINUATION_WORKFLOW_MISMATCH = "continuation_workflow_mismatch";
|
|
593
|
+
var CONTINUATION_VERSION_MISMATCH = "continuation_version_mismatch";
|
|
594
|
+
var CONTINUATION_NOT_COMPLETED = "continuation_not_completed";
|
|
595
|
+
var CONTINUATION_SUBSET_REQUIRED = "continuation_subset_required";
|
|
596
|
+
var CONTINUATION_NOT_FAILED = "continuation_not_failed";
|
|
597
|
+
var CONTINUATION_SUPERSEDED = "continuation_superseded";
|
|
598
|
+
var CONTINUATION_SETTLING = "continuation_settling";
|
|
599
|
+
var RENDER_FINAL_ALREADY_RENDERED = "render_final_already_rendered";
|
|
600
|
+
var RENDER_FINAL_ALREADY_RENDERED_MESSAGE = "Already rendered with this edit.";
|
|
601
|
+
var RUN_CONTINUATION_CODES = [
|
|
602
|
+
CONTINUATION_NOT_FOUND,
|
|
603
|
+
CONTINUATION_WORKFLOW_MISMATCH,
|
|
604
|
+
CONTINUATION_VERSION_MISMATCH,
|
|
605
|
+
CONTINUATION_NOT_COMPLETED,
|
|
606
|
+
CONTINUATION_SUBSET_REQUIRED,
|
|
607
|
+
CONTINUATION_NOT_FAILED,
|
|
608
|
+
CONTINUATION_SUPERSEDED
|
|
609
|
+
];
|
|
610
|
+
|
|
611
|
+
// src/render-final.ts
|
|
612
|
+
var RENDER_FINAL_NODE_NOT_FOUND = "render_final_node_not_found";
|
|
613
|
+
var RENDER_FINAL_NOT_A_RENDER = "render_final_not_a_render";
|
|
614
|
+
var RENDER_FINAL_CODES = [RENDER_FINAL_NODE_NOT_FOUND, RENDER_FINAL_NOT_A_RENDER];
|
|
615
|
+
|
|
616
|
+
// src/lone-media-url.ts
|
|
617
|
+
var IMAGE_FILE_RE = /\.(png|jpe?g|gif|webp)$/i;
|
|
618
|
+
var VIDEO_FILE_RE = /\.(mp4|mov|webm|m4v)$/i;
|
|
619
|
+
function loneMediaUrlKind(value) {
|
|
620
|
+
const s = value.trim();
|
|
621
|
+
if (s.length === 0 || /[\s,]/.test(s) || !/^https?:\/\//i.test(s)) return null;
|
|
622
|
+
let pathname;
|
|
623
|
+
try {
|
|
624
|
+
pathname = new URL(s).pathname;
|
|
625
|
+
} catch {
|
|
626
|
+
return null;
|
|
627
|
+
}
|
|
628
|
+
if (IMAGE_FILE_RE.test(pathname)) return "image";
|
|
629
|
+
if (VIDEO_FILE_RE.test(pathname)) return "video";
|
|
630
|
+
return null;
|
|
631
|
+
}
|
|
632
|
+
var MESSAGE_TRIGGER_TYPES = /* @__PURE__ */ new Set(["telegram-trigger", "telegram-account-trigger"]);
|
|
633
|
+
function isLoneMediaLinkSource(nodeType) {
|
|
634
|
+
if (!nodeType) return false;
|
|
635
|
+
if (chunkVXPLKQWY_cjs.IMAGE_PRODUCER_TYPES.has(nodeType) || chunkVXPLKQWY_cjs.VIDEO_PRODUCER_TYPES.has(nodeType) || chunkVXPLKQWY_cjs.AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
|
|
636
|
+
if (chunkVXPLKQWY_cjs.DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
|
|
637
|
+
if (chunkWNVQ3SMB_cjs.ENTITY_NODE_KINDS.includes(nodeType) || nodeType === "face") return false;
|
|
638
|
+
return true;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
// src/collections.ts
|
|
642
|
+
var COLLECTION_NAME_MAX = 80;
|
|
643
|
+
var COLLECTION_DESCRIPTION_MAX = 500;
|
|
644
|
+
var COLLECTION_RECORD_TITLE_MAX = 500;
|
|
645
|
+
var COLLECTION_RECORD_TEXT_MAX = 2e4;
|
|
646
|
+
var COLLECTION_RECORD_URL_MAX = 2e3;
|
|
647
|
+
var COLLECTION_RECORD_MEDIA_MAX = 20;
|
|
648
|
+
var COLLECTION_RECORD_FIELDS_MAX = 50;
|
|
649
|
+
var COLLECTION_RECORD_FIELDS_BYTES_MAX = 16 * 1024;
|
|
650
|
+
var COLLECTION_DEDUPE_KEY_MAX = 300;
|
|
651
|
+
var COLLECTION_IDEMPOTENCY_KEY_MAX = 200;
|
|
652
|
+
var COLLECTIONS_PAGE_MAX = 100;
|
|
653
|
+
var COLLECTIONS_PAGE_DEFAULT = 50;
|
|
654
|
+
var COLLECTION_HEADLINE_MAX = 120;
|
|
655
|
+
var COLLECTION_MEDIA_TYPES = ["image", "video", "audio", "link"];
|
|
656
|
+
var COLLECTION_TIER_CAPS = {
|
|
657
|
+
free: { collections: 3, records: 500 },
|
|
658
|
+
payg: { collections: 10, records: 5e3 },
|
|
659
|
+
basic: { collections: 10, records: 5e3 },
|
|
660
|
+
standard: { collections: 30, records: 2e4 },
|
|
661
|
+
pro: { collections: 100, records: 1e5 },
|
|
662
|
+
business: { collections: 300, records: 25e4 },
|
|
663
|
+
enterprise: { collections: 300, records: 25e4 }
|
|
664
|
+
};
|
|
665
|
+
function collectionCapsForTier(tier) {
|
|
666
|
+
return tier ? COLLECTION_TIER_CAPS[tier] : void 0;
|
|
667
|
+
}
|
|
668
|
+
var COLLECTION_USAGES = ["all", "unused", "used"];
|
|
669
|
+
var COLLECTION_RECORD_STATUSES = ["active", "trash"];
|
|
670
|
+
var COLLECTION_BULK_MAX = 100;
|
|
671
|
+
var COLLECTION_BULK_ACTIONS = ["trash", "restore", "delete"];
|
|
672
|
+
var COLLECTION_RECORDS_OFFSET_MAX = 1e6;
|
|
673
|
+
var COLLECTION_DIGEST_SEPARATOR = "\n\n---\n\n";
|
|
674
|
+
var COLLECTION_READ_WINDOW_HOURS_MAX = 720;
|
|
675
|
+
var COLLECTION_READ_LIMIT_MAX = 200;
|
|
676
|
+
function collectionReadSince(amount, unit, now = Date.now()) {
|
|
677
|
+
const hours = Math.min(COLLECTION_READ_WINDOW_HOURS_MAX, Math.max(1, Math.floor(Number.isFinite(amount) ? amount : 24)) * (unit === "days" ? 24 : 1));
|
|
678
|
+
return new Date(now - hours * 36e5).toISOString();
|
|
679
|
+
}
|
|
680
|
+
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
681
|
+
var str = (v) => typeof v === "string" && v.trim().length > 0 ? v : void 0;
|
|
682
|
+
var isScalar = (v) => typeof v === "string" || typeof v === "number" && Number.isFinite(v) || typeof v === "boolean";
|
|
683
|
+
function isCollectionUrl(v) {
|
|
684
|
+
return typeof v === "string" && /^https?:\/\/\S+$/i.test(v) && v.length <= COLLECTION_RECORD_URL_MAX;
|
|
685
|
+
}
|
|
686
|
+
var isHttpUrl = isCollectionUrl;
|
|
687
|
+
function clampChars(text, max) {
|
|
688
|
+
if (text.length <= max) return text;
|
|
689
|
+
const points = Array.from(text);
|
|
690
|
+
return points.length <= max ? text : points.slice(0, max).join("");
|
|
691
|
+
}
|
|
692
|
+
function fitCollectionField(key, value) {
|
|
693
|
+
switch (key) {
|
|
694
|
+
case "title":
|
|
695
|
+
return clampChars(value, COLLECTION_RECORD_TITLE_MAX);
|
|
696
|
+
case "text":
|
|
697
|
+
return clampChars(value, COLLECTION_RECORD_TEXT_MAX);
|
|
698
|
+
case "dedupeKey":
|
|
699
|
+
return clampChars(value, COLLECTION_DEDUPE_KEY_MAX);
|
|
700
|
+
case "link":
|
|
701
|
+
return value.length <= COLLECTION_RECORD_URL_MAX ? value : void 0;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
function normalizeDedupeKey(raw) {
|
|
705
|
+
if (typeof raw === "number" && Number.isFinite(raw)) raw = String(raw);
|
|
706
|
+
if (typeof raw !== "string") return null;
|
|
707
|
+
const compact = raw.trim().replace(/\s+/g, " ");
|
|
708
|
+
const key = clampChars(looksLikeLink(compact) ? canonicalUrl(compact) : compact.toLowerCase(), COLLECTION_DEDUPE_KEY_MAX).trim();
|
|
709
|
+
return key.length > 0 ? key : null;
|
|
710
|
+
}
|
|
711
|
+
var looksLikeLink = (s) => isCollectionUrl(s);
|
|
712
|
+
var COLLECTION_EVICT_MAX_PER_WRITE = 100;
|
|
713
|
+
function canonicalUrl(url) {
|
|
714
|
+
try {
|
|
715
|
+
return new URL(url).href;
|
|
716
|
+
} catch {
|
|
717
|
+
return url;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function isCollectionMedia(v) {
|
|
721
|
+
return isRecord(v) && COLLECTION_MEDIA_TYPES.includes(v.type) && isHttpUrl(v.url) && (v.posterUrl === void 0 || v.posterUrl === null || isHttpUrl(v.posterUrl));
|
|
722
|
+
}
|
|
723
|
+
function normalizeCollectionMedia(value) {
|
|
724
|
+
if (!Array.isArray(value)) return [];
|
|
725
|
+
const seen = /* @__PURE__ */ new Set();
|
|
726
|
+
const out = [];
|
|
727
|
+
for (const item of value) {
|
|
728
|
+
if (out.length >= COLLECTION_RECORD_MEDIA_MAX) break;
|
|
729
|
+
if (!isCollectionMedia(item) || seen.has(item.url)) continue;
|
|
730
|
+
seen.add(item.url);
|
|
731
|
+
out.push({ type: item.type, url: item.url, ...item.posterUrl ? { posterUrl: item.posterUrl } : {} });
|
|
732
|
+
}
|
|
733
|
+
return out;
|
|
734
|
+
}
|
|
735
|
+
function normalizeCollectionFields(value) {
|
|
736
|
+
if (!isRecord(value)) return {};
|
|
737
|
+
const out = {};
|
|
738
|
+
let bytes = 2;
|
|
739
|
+
let count = 0;
|
|
740
|
+
for (const [key, v] of Object.entries(value)) {
|
|
741
|
+
if (count >= COLLECTION_RECORD_FIELDS_MAX) break;
|
|
742
|
+
if (!isScalar(v) || key.length === 0 || key.length > 100) continue;
|
|
743
|
+
const entry = JSON.stringify(key) + ":" + JSON.stringify(v) + ",";
|
|
744
|
+
if (bytes + entry.length > COLLECTION_RECORD_FIELDS_BYTES_MAX) break;
|
|
745
|
+
out[key] = v;
|
|
746
|
+
bytes += entry.length;
|
|
747
|
+
count += 1;
|
|
748
|
+
}
|
|
749
|
+
return out;
|
|
750
|
+
}
|
|
751
|
+
function collectionRecordHeadline(record) {
|
|
752
|
+
const title = (typeof record.title === "string" ? record.title : "").trim();
|
|
753
|
+
if (title) return clampChars(title, COLLECTION_HEADLINE_MAX);
|
|
754
|
+
const line = (typeof record.text === "string" ? record.text : "").split(/\r?\n/).map((l) => l.trim()).find((l) => l.length > 0);
|
|
755
|
+
if (line) return line.length > COLLECTION_HEADLINE_MAX ? `${clampChars(line, COLLECTION_HEADLINE_MAX - 1)}\u2026` : line;
|
|
756
|
+
return typeof record.url === "string" ? record.url : "";
|
|
757
|
+
}
|
|
758
|
+
function collectionRecordsDigest(records, format = "headlines") {
|
|
759
|
+
const rows = records.filter((r) => typeof r === "object" && r !== null);
|
|
760
|
+
const str3 = (v) => typeof v === "string" ? v : "";
|
|
761
|
+
if (format === "full") {
|
|
762
|
+
return rows.map((r) => {
|
|
763
|
+
const head = collectionRecordHeadline(r);
|
|
764
|
+
const body = str3(r.text).trim();
|
|
765
|
+
const lines = [head ? `### ${head}` : "", body && body !== head ? body : "", str3(r.url)].filter((l) => l.length > 0);
|
|
766
|
+
return lines.join("\n");
|
|
767
|
+
}).filter((block) => block.length > 0).join(COLLECTION_DIGEST_SEPARATOR);
|
|
768
|
+
}
|
|
769
|
+
return rows.map((r) => {
|
|
770
|
+
const parts = [collectionRecordHeadline(r)];
|
|
771
|
+
const created = str3(r.createdAt);
|
|
772
|
+
if (created) parts.push(created.slice(0, 10));
|
|
773
|
+
const url = str3(r.url);
|
|
774
|
+
if (url && url !== parts[0]) parts.push(url);
|
|
775
|
+
return `- ${parts.filter((p) => p.length > 0).join(" \xB7 ")}`;
|
|
776
|
+
}).join("\n");
|
|
777
|
+
}
|
|
778
|
+
var TITLE_KEYS = ["title", "headline", "name", "subject"];
|
|
779
|
+
var TEXT_KEYS = ["text", "body", "caption", "description", "content", "summary", "dek"];
|
|
780
|
+
var URL_KEYS = ["url", "postUrl", "link", "href", "permalink"];
|
|
781
|
+
var DEDUPE_KEYS = ["slug", "postId", "externalId", "id"];
|
|
782
|
+
var isDedupeValue = (key, v) => key === "id" ? typeof v === "string" && v.trim().length > 0 && !/^\d+$/.test(v.trim()) : typeof v === "string" && v.trim().length > 0 || typeof v === "number" && Number.isFinite(v);
|
|
783
|
+
var IMAGE_KEYS = ["imageUrl", "thumbnailUrl", "image", "thumbnail"];
|
|
784
|
+
var VIDEO_KEYS = ["videoUrl", "video"];
|
|
785
|
+
var AUDIO_KEYS = ["audioUrl", "audio"];
|
|
786
|
+
var MEDIA_SHAPED_KEYS = /* @__PURE__ */ new Set(["media", ...IMAGE_KEYS, ...VIDEO_KEYS, ...AUDIO_KEYS]);
|
|
787
|
+
function firstString(item, keys) {
|
|
788
|
+
for (const key of keys) {
|
|
789
|
+
const v = str(item[key]);
|
|
790
|
+
if (v !== void 0) return v;
|
|
791
|
+
}
|
|
792
|
+
return void 0;
|
|
793
|
+
}
|
|
794
|
+
function firstUrl(item, keys) {
|
|
795
|
+
for (const key of keys) {
|
|
796
|
+
const v = item[key];
|
|
797
|
+
if (typeof v === "string" && isHttpUrl(v.trim())) return v.trim();
|
|
798
|
+
}
|
|
799
|
+
return null;
|
|
800
|
+
}
|
|
801
|
+
function mediaFromItem(item) {
|
|
802
|
+
const seen = /* @__PURE__ */ new Set();
|
|
803
|
+
const out = [];
|
|
804
|
+
const push = (m) => {
|
|
805
|
+
if (out.length >= COLLECTION_RECORD_MEDIA_MAX) return false;
|
|
806
|
+
if (!seen.has(m.url)) {
|
|
807
|
+
seen.add(m.url);
|
|
808
|
+
out.push(m);
|
|
809
|
+
}
|
|
810
|
+
return true;
|
|
811
|
+
};
|
|
812
|
+
if (Array.isArray(item.media)) {
|
|
813
|
+
for (const entry of item.media) {
|
|
814
|
+
if (out.length >= COLLECTION_RECORD_MEDIA_MAX) break;
|
|
815
|
+
if (!isRecord(entry)) continue;
|
|
816
|
+
const type = entry.type === "photo" ? "image" : entry.type;
|
|
817
|
+
const poster = isHttpUrl(entry.posterUrl) ? entry.posterUrl : void 0;
|
|
818
|
+
if (type === "video" && !isHttpUrl(entry.url) && poster) {
|
|
819
|
+
push({ type: "image", url: poster });
|
|
820
|
+
continue;
|
|
821
|
+
}
|
|
822
|
+
if (isCollectionMedia({ ...entry, type })) push({ type, url: entry.url, ...poster ? { posterUrl: poster } : {} });
|
|
823
|
+
}
|
|
824
|
+
} else if (isRecord(item.media)) {
|
|
825
|
+
const m = item.media;
|
|
826
|
+
if (isHttpUrl(m.videoUrl)) push({ type: "video", url: m.videoUrl, ...isHttpUrl(m.thumbnailUrl) ? { posterUrl: m.thumbnailUrl } : {} });
|
|
827
|
+
else if (isHttpUrl(m.thumbnailUrl)) push({ type: "image", url: m.thumbnailUrl });
|
|
828
|
+
}
|
|
829
|
+
for (const key of IMAGE_KEYS) if (isHttpUrl(item[key]) && !push({ type: "image", url: item[key] })) break;
|
|
830
|
+
for (const key of VIDEO_KEYS) if (isHttpUrl(item[key]) && !push({ type: "video", url: item[key] })) break;
|
|
831
|
+
for (const key of AUDIO_KEYS) if (isHttpUrl(item[key]) && !push({ type: "audio", url: item[key] })) break;
|
|
832
|
+
if (isHttpUrl(item.mediaUrl)) push({ type: mediaKindOf(item.mediaKind, item.mediaUrl), url: item.mediaUrl });
|
|
833
|
+
return out;
|
|
834
|
+
}
|
|
835
|
+
function mediaKindOf(kind, url) {
|
|
836
|
+
if (kind === "photo" || kind === "image") return "image";
|
|
837
|
+
if (kind === "video" || kind === "audio") return kind;
|
|
838
|
+
return loneMediaUrlKind(url) ?? "link";
|
|
839
|
+
}
|
|
840
|
+
function ingestRecordFromJson(item) {
|
|
841
|
+
if (!isRecord(item)) {
|
|
842
|
+
const text2 = typeof item === "string" ? item : item === void 0 || item === null ? "" : JSON.stringify(item);
|
|
843
|
+
return { title: "", text: clampChars(text2, COLLECTION_RECORD_TEXT_MAX), url: null, media: [], fields: {}, dedupeKey: null };
|
|
844
|
+
}
|
|
845
|
+
const title = clampChars((firstString(item, TITLE_KEYS) ?? "").trim(), COLLECTION_RECORD_TITLE_MAX);
|
|
846
|
+
const text = clampChars(firstString(item, TEXT_KEYS) ?? "", COLLECTION_RECORD_TEXT_MAX);
|
|
847
|
+
const url = firstUrl(item, URL_KEYS);
|
|
848
|
+
const media = mediaFromItem(item);
|
|
849
|
+
const taken = /* @__PURE__ */ new Set([...TITLE_KEYS, ...TEXT_KEYS, ...URL_KEYS, ...MEDIA_SHAPED_KEYS]);
|
|
850
|
+
const fields = {};
|
|
851
|
+
let kept = 0;
|
|
852
|
+
for (const [key, v] of Object.entries(item)) {
|
|
853
|
+
if (kept >= COLLECTION_RECORD_FIELDS_MAX) break;
|
|
854
|
+
if (taken.has(key)) continue;
|
|
855
|
+
if (isScalar(v)) fields[key] = v;
|
|
856
|
+
else if (isRecord(v) && typeof v.name === "string" && v.name.trim()) fields[key] = v.name;
|
|
857
|
+
else continue;
|
|
858
|
+
kept += 1;
|
|
859
|
+
}
|
|
860
|
+
const dedupeSource = url ?? DEDUPE_KEYS.filter((k) => isDedupeValue(k, item[k])).map((k) => item[k])[0];
|
|
861
|
+
return {
|
|
862
|
+
title,
|
|
863
|
+
text,
|
|
864
|
+
url,
|
|
865
|
+
media,
|
|
866
|
+
fields: normalizeCollectionFields(fields),
|
|
867
|
+
dedupeKey: normalizeDedupeKey(dedupeSource)
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// src/node-pass-through.ts
|
|
872
|
+
var present = (u) => typeof u === "string" && u.length > 0;
|
|
873
|
+
function combineVideosPassThrough(videoUrls) {
|
|
874
|
+
const urls = videoUrls.filter(present);
|
|
875
|
+
return urls.length === 1 ? { videoUrl: urls[0], warning: "single_input" } : null;
|
|
876
|
+
}
|
|
877
|
+
function videoOverlayPassThrough(input) {
|
|
878
|
+
if (!input.planWired || input.layerCount > 0 || !present(input.videoUrl)) return null;
|
|
879
|
+
return { videoUrl: input.videoUrl, warning: "no_layers" };
|
|
880
|
+
}
|
|
881
|
+
function captionPlanPassThrough(input) {
|
|
882
|
+
if (!input.planWired || input.segmentCount > 0 || !present(input.videoUrl)) return null;
|
|
883
|
+
return { videoUrl: input.videoUrl, warning: "no_captions" };
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
// src/transcribe-preflight.ts
|
|
887
|
+
function transcribeWordTimestampsRefusal(provider) {
|
|
888
|
+
const lane = provider || chunkM7GQBRZU_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
889
|
+
if (chunkM7GQBRZU_cjs.transcribeLaneSupportsWordTimestamps(lane)) return null;
|
|
890
|
+
return `the "${lane}" engine does not return word timings \u2014 pick ${chunkM7GQBRZU_cjs.transcribeProvidersWithWordTimestamps().join(" or ")}`;
|
|
891
|
+
}
|
|
892
|
+
var TRANSCRIBE_JSON_OUT = "json";
|
|
893
|
+
var TRANSCRIPT_IN = "transcript";
|
|
894
|
+
function findWordlessTranscriptFeeds(nodes, edges) {
|
|
895
|
+
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
896
|
+
const isSkipped = (n) => !n || n.data?.skipped === true;
|
|
897
|
+
const out = [];
|
|
898
|
+
for (const node of nodes) {
|
|
899
|
+
if (node.type !== "transcribe" || isSkipped(node)) continue;
|
|
900
|
+
const provider = typeof node.data?.provider === "string" && node.data.provider || chunkM7GQBRZU_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
901
|
+
const refusal = transcribeWordTimestampsRefusal(provider);
|
|
902
|
+
if (!refusal) continue;
|
|
903
|
+
const seen = /* @__PURE__ */ new Set();
|
|
904
|
+
const frontier = [{ id: node.id, outHandle: TRANSCRIBE_JSON_OUT }];
|
|
905
|
+
while (frontier.length > 0) {
|
|
906
|
+
const { id, outHandle } = frontier.pop();
|
|
907
|
+
for (const e of edges) {
|
|
908
|
+
if (e.source !== id || (e.sourceHandle ?? null) !== outHandle || e.targetHandle !== TRANSCRIPT_IN) continue;
|
|
909
|
+
const target = byId.get(e.target);
|
|
910
|
+
if (isSkipped(target)) continue;
|
|
911
|
+
if (target.type === "add-captions") {
|
|
912
|
+
out.push({
|
|
913
|
+
transcribeNodeId: node.id,
|
|
914
|
+
consumerNodeId: target.id,
|
|
915
|
+
provider,
|
|
916
|
+
message: `Captions need word timings, but ${refusal}.`
|
|
917
|
+
});
|
|
918
|
+
} else if (!seen.has(target.id)) {
|
|
919
|
+
const remapped = chunkVXPLKQWY_cjs.renderTranscriptOutputOf(target.type);
|
|
920
|
+
if (remapped) {
|
|
921
|
+
seen.add(target.id);
|
|
922
|
+
frontier.push({ id: target.id, outHandle: remapped.handle });
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
return out;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
// src/normalize-node-params.ts
|
|
932
|
+
var MODEL_PARAM_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
933
|
+
"generate-image",
|
|
934
|
+
"image-to-image",
|
|
935
|
+
"modify-image",
|
|
936
|
+
"edit-image"
|
|
937
|
+
]);
|
|
938
|
+
var SOURCE_IMAGE_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
939
|
+
"image-to-image",
|
|
940
|
+
"modify-image",
|
|
941
|
+
"edit-image"
|
|
942
|
+
]);
|
|
943
|
+
var AUTO_ASPECT_AT_RUN_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
944
|
+
...SOURCE_IMAGE_NODE_TYPES,
|
|
945
|
+
"generate-image"
|
|
946
|
+
]);
|
|
947
|
+
var PHOTO_AUTO_ASPECT_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
948
|
+
"generate-image",
|
|
949
|
+
"modify-image"
|
|
950
|
+
]);
|
|
951
|
+
function nodeAspectRatio(nodeType, aspectRatio) {
|
|
952
|
+
if (typeof aspectRatio === "string" && aspectRatio.trim() !== "") return aspectRatio;
|
|
953
|
+
return nodeType !== void 0 && PHOTO_AUTO_ASPECT_NODE_TYPES.has(nodeType) ? "auto" : void 0;
|
|
954
|
+
}
|
|
955
|
+
function normalizeNodeModelParams(nodes) {
|
|
956
|
+
const adjustments = [];
|
|
957
|
+
const out = nodes.map((node) => {
|
|
958
|
+
const type = typeof node.type === "string" ? node.type : "";
|
|
959
|
+
if (!MODEL_PARAM_NODE_TYPES.has(type)) return node;
|
|
960
|
+
const data = node.data;
|
|
961
|
+
if (!data || typeof data !== "object" || Array.isArray(data)) return node;
|
|
962
|
+
const d = data;
|
|
963
|
+
const multi = Array.isArray(d.providers) ? d.providers : [];
|
|
964
|
+
if (multi.length > 1) return node;
|
|
965
|
+
const provider = typeof d.provider === "string" ? d.provider : typeof multi[0] === "string" ? multi[0] : void 0;
|
|
966
|
+
if (!provider) return node;
|
|
967
|
+
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? chunkVA42637J_cjs.imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : chunkK3LLGRK7_cjs.autoAspectNeedsSourceImage(provider, d.aspectRatio));
|
|
968
|
+
const normalized = chunkK3LLGRK7_cjs.normalizeModelInput(provider, {
|
|
969
|
+
aspectRatio: !deferAuto && typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
|
|
970
|
+
resolution: typeof d.resolution === "string" ? d.resolution : void 0,
|
|
971
|
+
quality: typeof d.quality === "string" ? d.quality : void 0
|
|
972
|
+
});
|
|
973
|
+
const respell = deferAuto && d.aspectRatio !== "auto";
|
|
974
|
+
if (normalized.adjustments.length === 0 && !respell) return node;
|
|
975
|
+
const nodeId = typeof node.id === "string" ? node.id : "(unknown node)";
|
|
976
|
+
for (const adj of normalized.adjustments) {
|
|
977
|
+
adjustments.push({ ...adj, nodeId, provider });
|
|
978
|
+
}
|
|
979
|
+
return {
|
|
980
|
+
...node,
|
|
981
|
+
data: {
|
|
982
|
+
...d,
|
|
983
|
+
aspectRatio: deferAuto ? "auto" : normalized.aspectRatio,
|
|
984
|
+
resolution: normalized.resolution,
|
|
985
|
+
quality: normalized.quality
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
});
|
|
989
|
+
return { nodes: out, adjustments };
|
|
990
|
+
}
|
|
991
|
+
function describeNodeAdjustments(adjustments) {
|
|
992
|
+
return adjustments.map(
|
|
993
|
+
(a) => `${a.nodeId} (${a.provider}): ${a.field} "${a.from}" \u2192 ${a.to === void 0 ? "removed" : `"${a.to}"`} \u2014 ${a.reason}`
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
// src/prompt-affixes.ts
|
|
998
|
+
var PROMPT_PREFIX_KEY = "promptPrefix";
|
|
999
|
+
var PROMPT_SUFFIX_KEY = "promptSuffix";
|
|
1000
|
+
function nonBlank(v) {
|
|
1001
|
+
return typeof v === "string" && v.trim().length > 0 ? v : void 0;
|
|
1002
|
+
}
|
|
1003
|
+
function readPromptAffixes(data) {
|
|
1004
|
+
const prefix = nonBlank(data[PROMPT_PREFIX_KEY]);
|
|
1005
|
+
const suffix = nonBlank(data[PROMPT_SUFFIX_KEY]);
|
|
1006
|
+
return {
|
|
1007
|
+
...prefix !== void 0 ? { prefix } : {},
|
|
1008
|
+
...suffix !== void 0 ? { suffix } : {}
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
// src/node-preset-extract.ts
|
|
1013
|
+
var PRESET_APPLY_CLEAR_KEYS = [
|
|
1014
|
+
...chunkM7GQBRZU_cjs.COMPOSER_PLAN_FIELDS,
|
|
1015
|
+
"lottieUrl",
|
|
1016
|
+
// Scene revision history contains old plans and their reference/prompt context.
|
|
1017
|
+
// Preserve it in workflows, never capture or resurrect it through a preset.
|
|
1018
|
+
"sceneHistory",
|
|
1019
|
+
"scenePendingPlan",
|
|
1020
|
+
"sceneJobBaseRevisionId",
|
|
1021
|
+
"expectedRevisionId",
|
|
1022
|
+
"changeSummary",
|
|
1023
|
+
"selectedObjectIds",
|
|
1024
|
+
"lockedObjectIds",
|
|
1025
|
+
"referenceObjectIds",
|
|
1026
|
+
"referenceRoles"
|
|
1027
|
+
];
|
|
1028
|
+
var PROMPT_CONTENT_KEYS = ["prompt", "scenePrompt", "editPrompt", PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY];
|
|
1029
|
+
function presetApplyClearKeys(presetData, nodeType) {
|
|
1030
|
+
const ownsPromptContent = PROMPT_CONTENT_KEYS.some((k) => presetData[k] !== void 0);
|
|
1031
|
+
const base = ownsPromptContent ? [...PRESET_APPLY_CLEAR_KEYS, PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY] : PRESET_APPLY_CLEAR_KEYS;
|
|
1032
|
+
const levers = presetLeverClearKeys(presetData, nodeType);
|
|
1033
|
+
return levers.length > 0 ? [...base, ...levers] : base;
|
|
1034
|
+
}
|
|
1035
|
+
var PRESET_LEVER_GROUPS = {
|
|
1036
|
+
"add-captions": [
|
|
1037
|
+
"look",
|
|
1038
|
+
"fontFamily",
|
|
1039
|
+
"fontWeight",
|
|
1040
|
+
"strokeColor",
|
|
1041
|
+
"strokeWidth",
|
|
1042
|
+
"highlightColor",
|
|
1043
|
+
"uppercase",
|
|
1044
|
+
"positionY",
|
|
1045
|
+
"animate",
|
|
1046
|
+
"maxWordsPerLine",
|
|
1047
|
+
"backgroundColor"
|
|
1048
|
+
]
|
|
1049
|
+
};
|
|
1050
|
+
function presetLeverClearKeys(presetData, nodeType) {
|
|
1051
|
+
if (!nodeType || !Object.hasOwn(PRESET_LEVER_GROUPS, nodeType)) return [];
|
|
1052
|
+
if (!Object.values(presetData).some((v) => v !== void 0)) return [];
|
|
1053
|
+
return PRESET_LEVER_GROUPS[nodeType].filter((k) => presetData[k] === void 0);
|
|
1054
|
+
}
|
|
1055
|
+
var PRESET_EXCLUDED_KEYS = /* @__PURE__ */ new Set([
|
|
1056
|
+
"label",
|
|
1057
|
+
"fieldMappings",
|
|
1058
|
+
"__activePresetId",
|
|
1059
|
+
"__promptFinalView",
|
|
1060
|
+
"referenceImageOrder",
|
|
1061
|
+
"referenceOrder",
|
|
1062
|
+
"connectedMediaOrder",
|
|
1063
|
+
"connectedRefImageOrder",
|
|
1064
|
+
"characterDefinitionIds",
|
|
1065
|
+
"suppressedCanonicalCharacterIds",
|
|
1066
|
+
"suppressedCanonicalLocationIds",
|
|
1067
|
+
"identityMeta",
|
|
1068
|
+
"extraRefs",
|
|
1069
|
+
// structural identifiers
|
|
1070
|
+
"routes",
|
|
1071
|
+
"routeId",
|
|
1072
|
+
"routeIds",
|
|
1073
|
+
"ports",
|
|
1074
|
+
"inputPorts",
|
|
1075
|
+
"outputPorts",
|
|
1076
|
+
"channel",
|
|
1077
|
+
"channelColor",
|
|
1078
|
+
// generated composer-plan state (derived from COMPOSER_PLAN_MAP + lottieUrl)
|
|
1079
|
+
...PRESET_APPLY_CLEAR_KEYS
|
|
1080
|
+
]);
|
|
1081
|
+
function extractPresetData(data, nodeType) {
|
|
1082
|
+
const out = {};
|
|
1083
|
+
for (const key of Object.keys(data)) {
|
|
1084
|
+
if (chunkJSGIEF6Z_cjs.isExecutionDataKey(key, nodeType)) continue;
|
|
1085
|
+
if (PRESET_EXCLUDED_KEYS.has(key)) continue;
|
|
1086
|
+
out[key] = data[key];
|
|
1087
|
+
}
|
|
1088
|
+
return out;
|
|
1089
|
+
}
|
|
1090
|
+
function deepEqual(a, b) {
|
|
1091
|
+
if (a === b) return true;
|
|
1092
|
+
if (typeof a !== typeof b) return false;
|
|
1093
|
+
if (a === null || b === null) return a === b;
|
|
1094
|
+
if (Array.isArray(a) || Array.isArray(b)) {
|
|
1095
|
+
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
|
|
1096
|
+
return a.every((v, i) => deepEqual(v, b[i]));
|
|
1097
|
+
}
|
|
1098
|
+
if (typeof a === "object" && typeof b === "object") {
|
|
1099
|
+
const ka = Object.keys(a);
|
|
1100
|
+
const kb = Object.keys(b);
|
|
1101
|
+
if (ka.length !== kb.length) return false;
|
|
1102
|
+
return ka.every(
|
|
1103
|
+
(k) => deepEqual(a[k], b[k])
|
|
1104
|
+
);
|
|
1105
|
+
}
|
|
1106
|
+
return false;
|
|
1107
|
+
}
|
|
1108
|
+
function presetDataMatches(nodeData, presetData) {
|
|
1109
|
+
for (const key of Object.keys(presetData)) {
|
|
1110
|
+
if (!deepEqual(nodeData[key], presetData[key])) return false;
|
|
1111
|
+
}
|
|
1112
|
+
return true;
|
|
1113
|
+
}
|
|
1114
|
+
var NODE_PRESET_EXPORT_KIND = "nodaro.node-presets";
|
|
1115
|
+
var exportedPresetSchema = zod.z.object({
|
|
1116
|
+
nodeType: zod.z.string().min(1).max(120),
|
|
1117
|
+
name: zod.z.string().min(1).max(120),
|
|
1118
|
+
description: zod.z.string().max(500).optional(),
|
|
1119
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown())
|
|
1120
|
+
});
|
|
1121
|
+
var envelopeSchema = zod.z.object({
|
|
1122
|
+
kind: zod.z.literal(NODE_PRESET_EXPORT_KIND),
|
|
1123
|
+
version: zod.z.literal(1),
|
|
1124
|
+
exportedAt: zod.z.string().optional().default(""),
|
|
1125
|
+
presets: zod.z.array(exportedPresetSchema).max(500)
|
|
1126
|
+
});
|
|
1127
|
+
function buildNodePresetExport(presets, exportedAtIso) {
|
|
1128
|
+
return {
|
|
1129
|
+
kind: NODE_PRESET_EXPORT_KIND,
|
|
1130
|
+
version: 1,
|
|
1131
|
+
exportedAt: exportedAtIso,
|
|
1132
|
+
presets: presets.map((p) => ({ ...p, data: extractPresetData(p.data, p.nodeType) }))
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1135
|
+
function parseNodePresetExport(input) {
|
|
1136
|
+
const parsed = envelopeSchema.parse(input);
|
|
1137
|
+
return {
|
|
1138
|
+
...parsed,
|
|
1139
|
+
presets: parsed.presets.map((p) => ({ ...p, data: extractPresetData(p.data, p.nodeType) }))
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
// src/render-output.ts
|
|
1144
|
+
var MEDIUM_FIELD = {
|
|
1145
|
+
video: "generatedVideoUrl",
|
|
1146
|
+
audio: "generatedAudioUrl"
|
|
1147
|
+
};
|
|
1148
|
+
var str2 = (v) => typeof v === "string" && v.length > 0 ? v : void 0;
|
|
1149
|
+
var BASIS = /^[0-9a-f]{16}$/;
|
|
1150
|
+
var basisOf = (v) => typeof v === "string" && BASIS.test(v) ? v : void 0;
|
|
1151
|
+
function renderResultStamp(output) {
|
|
1152
|
+
const o = output && typeof output === "object" ? output : {};
|
|
1153
|
+
const quality = o.quality === "proxy" || o.quality === "final" ? o.quality : void 0;
|
|
1154
|
+
const clipKey = str2(o.clipKey);
|
|
1155
|
+
const planBasis = basisOf(o.planBasis);
|
|
1156
|
+
const renderBasis = basisOf(o.renderBasis);
|
|
1157
|
+
return {
|
|
1158
|
+
...quality ? { quality } : {},
|
|
1159
|
+
...clipKey ? { clipKey } : {},
|
|
1160
|
+
...planBasis ? { planBasis } : {},
|
|
1161
|
+
...renderBasis ? { renderBasis } : {}
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
function mediumOf(data) {
|
|
1165
|
+
return data.output === "audio" ? "audio" : "video";
|
|
1166
|
+
}
|
|
1167
|
+
function resultsOf(data) {
|
|
1168
|
+
return Array.isArray(data.generatedResults) ? data.generatedResults : [];
|
|
1169
|
+
}
|
|
1170
|
+
function itemOf(url, medium, entry) {
|
|
1171
|
+
const jobId = str2(entry?.jobId);
|
|
1172
|
+
const thumbnailUrl = str2(entry?.thumbnailUrl);
|
|
1173
|
+
return {
|
|
1174
|
+
url,
|
|
1175
|
+
medium,
|
|
1176
|
+
...jobId ? { jobId } : {},
|
|
1177
|
+
...thumbnailUrl ? { thumbnailUrl } : {},
|
|
1178
|
+
...entry ? renderResultStamp(entry) : {}
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
function savedRenderOutput(data) {
|
|
1182
|
+
const medium = mediumOf(data);
|
|
1183
|
+
const results = resultsOf(data);
|
|
1184
|
+
const index = typeof data.activeResultIndex === "number" ? data.activeResultIndex : 0;
|
|
1185
|
+
const selected = results[index] ?? results[0];
|
|
1186
|
+
const selectedUrl = str2(selected?.url);
|
|
1187
|
+
if (selectedUrl) return itemOf(selectedUrl, medium, selected);
|
|
1188
|
+
const own2 = str2(data[MEDIUM_FIELD[medium]]);
|
|
1189
|
+
if (own2) return { url: own2, medium };
|
|
1190
|
+
const other = medium === "video" ? "audio" : "video";
|
|
1191
|
+
const otherUrl = str2(data[MEDIUM_FIELD[other]]);
|
|
1192
|
+
return otherUrl ? { url: otherUrl, medium: other } : void 0;
|
|
1193
|
+
}
|
|
1194
|
+
function savedRenderBatch(data) {
|
|
1195
|
+
const batch = data.__listResults;
|
|
1196
|
+
if (!Array.isArray(batch) || batch.length === 0) return void 0;
|
|
1197
|
+
const medium = mediumOf(data);
|
|
1198
|
+
const byUrl = /* @__PURE__ */ new Map();
|
|
1199
|
+
for (const entry of resultsOf(data)) {
|
|
1200
|
+
const url = str2(entry.url);
|
|
1201
|
+
if (url && !byUrl.has(url)) byUrl.set(url, entry);
|
|
1202
|
+
}
|
|
1203
|
+
return batch.map((row) => {
|
|
1204
|
+
const url = str2(row);
|
|
1205
|
+
return url ? itemOf(url, medium, byUrl.get(url)) : null;
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
function savedRenderBatchUrls(data) {
|
|
1209
|
+
const batch = savedRenderBatch(data);
|
|
1210
|
+
return batch ? batch.map((item) => item?.url ?? "") : void 0;
|
|
1211
|
+
}
|
|
1212
|
+
function edlSpanKey(edl) {
|
|
1213
|
+
if (!edl || typeof edl !== "object" || Array.isArray(edl)) return void 0;
|
|
1214
|
+
let segments;
|
|
1215
|
+
try {
|
|
1216
|
+
segments = chunk5PC6JBGJ_cjs.normalizeEdl(edl).segments;
|
|
1217
|
+
} catch {
|
|
1218
|
+
return void 0;
|
|
1219
|
+
}
|
|
1220
|
+
if (segments.length === 0) return void 0;
|
|
1221
|
+
let min = Infinity;
|
|
1222
|
+
let max = -Infinity;
|
|
1223
|
+
for (const s of segments) {
|
|
1224
|
+
if (s.inMs < min) min = s.inMs;
|
|
1225
|
+
if (s.outMs > max) max = s.outMs;
|
|
1226
|
+
}
|
|
1227
|
+
return Number.isFinite(min) && Number.isFinite(max) ? `${min}-${max}` : void 0;
|
|
1228
|
+
}
|
|
1229
|
+
function planClipKeyAt(plan, row) {
|
|
1230
|
+
if (!Array.isArray(plan)) return void 0;
|
|
1231
|
+
let clip = plan[row];
|
|
1232
|
+
if (typeof clip === "string") {
|
|
1233
|
+
if (!clip.trim()) return void 0;
|
|
1234
|
+
try {
|
|
1235
|
+
clip = JSON.parse(clip);
|
|
1236
|
+
} catch {
|
|
1237
|
+
return void 0;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
return edlSpanKey(clip);
|
|
1241
|
+
}
|
|
1242
|
+
var TELEPORT_TYPES2 = /* @__PURE__ */ new Set(["teleport-send", "teleport-receive"]);
|
|
1243
|
+
var EDL_PASS_THROUGH_TYPES = /* @__PURE__ */ new Set(["camera-switch"]);
|
|
1244
|
+
function outputModeOf2(data) {
|
|
1245
|
+
const mode = data && typeof data === "object" ? data.outputMode : void 0;
|
|
1246
|
+
return typeof mode === "string" ? mode : void 0;
|
|
1247
|
+
}
|
|
1248
|
+
function renderPlanPath(renderId, nodes, edges) {
|
|
1249
|
+
const byId = new Map(nodes.map((n) => [n.id, n]));
|
|
1250
|
+
const lastEdlInto = (id) => edges.filter((e) => e.target === id && e.targetHandle === "edl").at(-1);
|
|
1251
|
+
const teleportInput = (id) => edges.find((e) => e.target === id);
|
|
1252
|
+
const visited = /* @__PURE__ */ new Set();
|
|
1253
|
+
const hops = [];
|
|
1254
|
+
let consumer = lastEdlInto(renderId);
|
|
1255
|
+
let edge = consumer;
|
|
1256
|
+
while (edge && consumer) {
|
|
1257
|
+
const node = byId.get(edge.source);
|
|
1258
|
+
if (!node || visited.has(node.id)) return void 0;
|
|
1259
|
+
visited.add(node.id);
|
|
1260
|
+
if (TELEPORT_TYPES2.has(node.type ?? "")) {
|
|
1261
|
+
edge = teleportInput(node.id);
|
|
1262
|
+
continue;
|
|
1263
|
+
}
|
|
1264
|
+
const mode = outputModeOf2(consumer.data) ?? chunkVXPLKQWY_cjs.defaultEdgeOutputMode(node.type, edge.sourceHandle);
|
|
1265
|
+
hops.unshift({ edge: consumer, each: mode === "each", ...node.type ? { source: node.type } : {} });
|
|
1266
|
+
if (node.type === "edit-plan") return { planId: node.id, hops };
|
|
1267
|
+
if (!EDL_PASS_THROUGH_TYPES.has(node.type ?? "")) return void 0;
|
|
1268
|
+
consumer = lastEdlInto(node.id);
|
|
1269
|
+
edge = consumer;
|
|
1270
|
+
}
|
|
1271
|
+
return void 0;
|
|
1272
|
+
}
|
|
1273
|
+
function passThroughRan(path, ranIds) {
|
|
1274
|
+
return path.hops.slice(0, -1).every((hop) => ranIds.has(hop.edge.target));
|
|
1275
|
+
}
|
|
1276
|
+
function renderPlanNodeId(renderId, nodes, edges) {
|
|
1277
|
+
return renderPlanPath(renderId, nodes, edges)?.planId;
|
|
1278
|
+
}
|
|
1279
|
+
var isHole = (clip) => clip == null || typeof clip === "string" && !clip.trim();
|
|
1280
|
+
var keptClips = (clips) => clips.filter((clip) => !isHole(clip));
|
|
1281
|
+
function singlePick(clips, hop) {
|
|
1282
|
+
const data = hop.edge.data;
|
|
1283
|
+
const mode = outputModeOf2(hop.edge.data);
|
|
1284
|
+
if (mode === "item") {
|
|
1285
|
+
const expr = typeof data?.itemIndex === "string" ? data.itemIndex : "1";
|
|
1286
|
+
return [clips[chunkJSGIEF6Z_cjs.resolveIndex(expr, clips.length)] ?? clips[0]];
|
|
1287
|
+
}
|
|
1288
|
+
if (mode?.startsWith("item:")) return [clips[parseInt(mode.slice(5), 10)] ?? clips[0]];
|
|
1289
|
+
if (mode === "all") return chunkJSGIEF6Z_cjs.selectListItems(clips, data);
|
|
1290
|
+
if (hop.source === "edit-plan") return keptClips(clips).slice(0, 1);
|
|
1291
|
+
return clips.length === 1 ? clips : [];
|
|
1292
|
+
}
|
|
1293
|
+
function renderPlanValue(plan, row, hops = []) {
|
|
1294
|
+
if (!Array.isArray(plan)) return plan === null || typeof plan !== "object" ? void 0 : plan;
|
|
1295
|
+
let clips = plan;
|
|
1296
|
+
for (const [i, hop] of hops.entries()) {
|
|
1297
|
+
if (clips.length === 0) return void 0;
|
|
1298
|
+
if (hop.each) {
|
|
1299
|
+
clips = chunkJSGIEF6Z_cjs.selectListItems(clips, hop.edge.data);
|
|
1300
|
+
if (i < hops.length - 1) clips = keptClips(clips);
|
|
1301
|
+
} else {
|
|
1302
|
+
clips = singlePick(clips, hop);
|
|
1303
|
+
if (clips.length !== 1) return void 0;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
if (clips.length === 0) return void 0;
|
|
1307
|
+
const rowed = row !== void 0 && (hops.at(-1)?.each ?? true);
|
|
1308
|
+
if (rowed) {
|
|
1309
|
+
const clip = clips[row % clips.length];
|
|
1310
|
+
return isHole(clip) ? void 0 : clip;
|
|
1311
|
+
}
|
|
1312
|
+
const kept = keptClips(clips);
|
|
1313
|
+
return kept.length === 1 ? kept[0] : void 0;
|
|
1314
|
+
}
|
|
1315
|
+
function renderClipKey(plan, row, hops = []) {
|
|
1316
|
+
if (!Array.isArray(plan)) return void 0;
|
|
1317
|
+
const clip = renderPlanValue(plan, row, hops);
|
|
1318
|
+
return clip === void 0 ? void 0 : planClipKeyAt([clip], 0);
|
|
1319
|
+
}
|
|
1320
|
+
function renderPlanClipKey(renderId, nodes, edges, planClips, row) {
|
|
1321
|
+
const path = renderPlanPath(renderId, nodes, edges);
|
|
1322
|
+
const planNode = path ? nodes.find((n) => n.id === path.planId) : void 0;
|
|
1323
|
+
if (!path || !planNode) return void 0;
|
|
1324
|
+
return renderClipKey(planClips(planNode), row, path.hops);
|
|
1325
|
+
}
|
|
1326
|
+
function renderPlanRowClipKeys(renderId, nodes, edges, planClips, rows, ranIds) {
|
|
1327
|
+
const path = renderPlanPath(renderId, nodes, edges);
|
|
1328
|
+
const planNode = path ? nodes.find((n) => n.id === path.planId) : void 0;
|
|
1329
|
+
if (!path || !planNode || !passThroughRan(path, ranIds)) return rows.map(() => void 0);
|
|
1330
|
+
const plan = planClips(planNode);
|
|
1331
|
+
return rows.map((row) => renderClipKey(plan, row, path.hops));
|
|
1332
|
+
}
|
|
1333
|
+
function renderRunQuality(data) {
|
|
1334
|
+
return data?.quality === "proxy" ? "proxy" : "final";
|
|
1335
|
+
}
|
|
1336
|
+
function renderSentRowStamps(quality, clipKeys) {
|
|
1337
|
+
return clipKeys.map((clipKey) => ({ quality, ...clipKey ? { clipKey } : {} }));
|
|
1338
|
+
}
|
|
1339
|
+
var readBasisByValue = /* @__PURE__ */ new WeakMap();
|
|
1340
|
+
var isPlainObject = (v) => !!v && typeof v === "object" && !Array.isArray(v);
|
|
1341
|
+
function renderReadBasis(value) {
|
|
1342
|
+
let v = value;
|
|
1343
|
+
if (typeof v === "string") {
|
|
1344
|
+
if (!v.trim()) return void 0;
|
|
1345
|
+
try {
|
|
1346
|
+
v = JSON.parse(v);
|
|
1347
|
+
} catch {
|
|
1348
|
+
return void 0;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
if (!isPlainObject(v)) return void 0;
|
|
1352
|
+
const cached = readBasisByValue.get(v);
|
|
1353
|
+
if (cached !== void 0) return cached;
|
|
1354
|
+
const { meta: _meta, ...rest } = v;
|
|
1355
|
+
const basis = chunk5PC6JBGJ_cjs.editPlanBasis(rest);
|
|
1356
|
+
readBasisByValue.set(v, basis);
|
|
1357
|
+
return basis;
|
|
1358
|
+
}
|
|
1359
|
+
function renderSettingsBasis(settings, sources = []) {
|
|
1360
|
+
const raw = settings.crossfadeMs;
|
|
1361
|
+
const crossfadeMs = typeof raw === "number" && Number.isFinite(raw) ? Math.max(0, Math.round(raw)) : 0;
|
|
1362
|
+
return chunk5PC6JBGJ_cjs.editPlanBasis({
|
|
1363
|
+
crossfadeMs,
|
|
1364
|
+
output: settings.output === "audio" ? "audio" : "video",
|
|
1365
|
+
sources: sources.map((url) => typeof url === "string" ? url : "")
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
function renderPlanBasis(renderId, nodes, edges, planOutput, row, ranIds) {
|
|
1369
|
+
const path = renderPlanPath(renderId, nodes, edges);
|
|
1370
|
+
const planNode = path ? nodes.find((n) => n.id === path.planId) : void 0;
|
|
1371
|
+
if (!path || !planNode) return void 0;
|
|
1372
|
+
if (!passThroughRan(path, ranIds)) return void 0;
|
|
1373
|
+
return renderReadBasis(renderPlanValue(planOutput(planNode), row, path.hops));
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
// src/handle-aliases.ts
|
|
1377
|
+
var LEGACY_SOURCE_HANDLE_ALIASES = {
|
|
1378
|
+
// Batch 1
|
|
1379
|
+
"generate-music": { "audio-out": "audio" },
|
|
1380
|
+
// Batch 2 — Suno output id normalization
|
|
1381
|
+
"suno-add-instrumental": { "audio-out": "audio" },
|
|
1382
|
+
"suno-add-vocals": { "audio-out": "audio" },
|
|
1383
|
+
"suno-convert-wav": { "audio-out": "audio" },
|
|
1384
|
+
"suno-mashup": { "audio-out": "audio" },
|
|
1385
|
+
"suno-replace-section": { "audio-out": "audio" },
|
|
1386
|
+
"suno-upload-extend": { "audio-out": "audio" },
|
|
1387
|
+
"suno-music-video": { "video-out": "video" },
|
|
1388
|
+
"suno-style-boost": { "text-out": "text" },
|
|
1389
|
+
"suno-separate": { "vocal-out": "vocals", "instrumental-out": "instrumental" },
|
|
1390
|
+
// Batch 4 — Processing output id normalization (non-ffmpeg ones only)
|
|
1391
|
+
"split-text": { out: "text" },
|
|
1392
|
+
// split-media produces dual-typed outputs; map each leg of the legacy
|
|
1393
|
+
// `*-out` pair to the new single-word form.
|
|
1394
|
+
"split-media": { "audio-out": "audio", "video-out": "video" },
|
|
1395
|
+
// Phase 20 — Image-producer output id normalization. Pre-migration these
|
|
1396
|
+
// nodes shipped a single generic `out` source handle; after the typed-handle
|
|
1397
|
+
// migration their source pip is the canonical type name.
|
|
1398
|
+
"edit-image": { out: "image" },
|
|
1399
|
+
"modify-image": { out: "image" },
|
|
1400
|
+
"image-to-image": { out: "image" },
|
|
1401
|
+
"upscale-image": { out: "image" },
|
|
1402
|
+
"remove-background": { out: "image" },
|
|
1403
|
+
"face-swap": { out: "video" },
|
|
1404
|
+
// Phase 21 — Video-producer output id normalization.
|
|
1405
|
+
"motion-transfer": { out: "video" },
|
|
1406
|
+
// Phase 22 — Upload/source-node output id normalization.
|
|
1407
|
+
"reference-audio": { "audio-out": "audio" },
|
|
1408
|
+
// Phase 24c — Compositing-stragglers output id normalization.
|
|
1409
|
+
"speed-ramp": { "video-out": "video" },
|
|
1410
|
+
"fade-video": { "video-out": "video" },
|
|
1411
|
+
"transcode-video": { "video-out": "video" },
|
|
1412
|
+
"manual-edit": { "video-out": "video" },
|
|
1413
|
+
"social-media-format": { "media-out": "media", "text-out": "text" },
|
|
1414
|
+
// Telegram Channel Feed: the pip was `out` until it took the platform's
|
|
1415
|
+
// text id (`text`), which its definition and docs always named.
|
|
1416
|
+
"telegram-channel-feed": { out: "text" },
|
|
1417
|
+
// Telegram Trigger: the docs once named six outputs; the component renders
|
|
1418
|
+
// one, `out`, and media rides it by kind on both engines.
|
|
1419
|
+
"telegram-trigger": { text: "out", imageUrl: "out", videoUrl: "out", audioUrl: "out" },
|
|
1420
|
+
// #1877 — the definitions now declare the pips these components render. The
|
|
1421
|
+
// id they used to declare (what MCP clients and the docs were told) moves
|
|
1422
|
+
// onto the pip that draws, so an edge written with it still connects.
|
|
1423
|
+
"add-captions": { video: "video-out" },
|
|
1424
|
+
"adjust-volume": { audio: "audio-out" },
|
|
1425
|
+
"audio-fx": { audio: "audio-out" },
|
|
1426
|
+
"combine-audio": { audio: "audio-out" },
|
|
1427
|
+
"loop-video": { video: "video-out" },
|
|
1428
|
+
"merge-video-audio": { video: "video-out" },
|
|
1429
|
+
"mix-audio": { audio: "audio-out" },
|
|
1430
|
+
"resize-video": { video: "video-out" },
|
|
1431
|
+
"trim-video": { video: "video-out" },
|
|
1432
|
+
"save-to-storage": { asset: "out" }
|
|
1433
|
+
// (audio-separation's old `audio` is NOT aliased: it could mean any of the
|
|
1434
|
+
// seven stems, and a stem is never guessed.)
|
|
1435
|
+
};
|
|
1436
|
+
var LEGACY_TARGET_HANDLE_ALIASES = {
|
|
1437
|
+
// Batch 1
|
|
1438
|
+
"text-to-speech": { in: "prompt" },
|
|
1439
|
+
"text-to-audio": { in: "prompt" },
|
|
1440
|
+
"generate-music": { in: "prompt" },
|
|
1441
|
+
"audio-isolation": { in: "audio" },
|
|
1442
|
+
"text-to-dialogue": { in: "prompt" },
|
|
1443
|
+
"voice-changer": { in: "audio" },
|
|
1444
|
+
dubbing: { in: "audio" },
|
|
1445
|
+
// voice-remix / voice-design keep the legacy `audio-style` target id intact
|
|
1446
|
+
// — that name is hard-coded in the runtime hint composers. Only `in` moves.
|
|
1447
|
+
"voice-remix": { in: "audio" },
|
|
1448
|
+
"voice-design": { in: "prompt" },
|
|
1449
|
+
"forced-alignment": { in: "audio" },
|
|
1450
|
+
// Batch 2 — Suno target id normalization
|
|
1451
|
+
"suno-generate": { in: "prompt" },
|
|
1452
|
+
"suno-lyrics": { in: "prompt" },
|
|
1453
|
+
"suno-style-boost": { text: "prompt" },
|
|
1454
|
+
// Batch 3 — Script & Text target id normalization
|
|
1455
|
+
"generate-script": { in: "prompt" },
|
|
1456
|
+
transcribe: { in: "audio" },
|
|
1457
|
+
// Batch 4 — Processing target id normalization (non-ffmpeg only)
|
|
1458
|
+
"combine-text": { in: "text" },
|
|
1459
|
+
"split-text": { in: "text" },
|
|
1460
|
+
"split-media": { "video-in": "video", "audio-in": "audio" },
|
|
1461
|
+
// Phase 20 — Image-producer target id normalization.
|
|
1462
|
+
"face-swap": { in: "video" },
|
|
1463
|
+
// Phase 21 — Video-producer target id normalization.
|
|
1464
|
+
"video-to-video": { in: "video" },
|
|
1465
|
+
"video-upscale": { in: "video" },
|
|
1466
|
+
"extend-video": { in: "video" },
|
|
1467
|
+
"motion-transfer": { in: "video" },
|
|
1468
|
+
"lip-sync": { videoIn: "video" },
|
|
1469
|
+
// Phase 24c — Compositing-stragglers target id normalization.
|
|
1470
|
+
"after-effects": { in: "video" },
|
|
1471
|
+
"motion-graphics": { in: "video" },
|
|
1472
|
+
"lottie-overlay": { in: "video" },
|
|
1473
|
+
// video-composer renders ONE target pip, `in` ("Media"). An earlier table
|
|
1474
|
+
// sent saved edges to a `video` pip the node never had; this heals those.
|
|
1475
|
+
"video-composer": { video: "in" },
|
|
1476
|
+
"render-video": { in: "composition" },
|
|
1477
|
+
"speed-ramp": { in: "video" },
|
|
1478
|
+
"fade-video": { in: "video" },
|
|
1479
|
+
"transcode-video": { in: "video" },
|
|
1480
|
+
// (manual-edit keeps `in` as a multi-asset target.)
|
|
1481
|
+
"social-media-format": { "media-in": "media", "text-in": "text" }
|
|
1482
|
+
};
|
|
1483
|
+
var DYNAMIC_HANDLE_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
1484
|
+
"list",
|
|
1485
|
+
"loop",
|
|
1486
|
+
"group",
|
|
1487
|
+
"collect",
|
|
1488
|
+
"router",
|
|
1489
|
+
"component",
|
|
1490
|
+
"sub-workflow",
|
|
1491
|
+
"sub-workflow-input",
|
|
1492
|
+
"sub-workflow-output",
|
|
1493
|
+
"selector",
|
|
1494
|
+
// Payload parameters become handles.
|
|
1495
|
+
"webhook-trigger",
|
|
1496
|
+
// One `variant:<id>` handle per layer.
|
|
1497
|
+
"image-overlay"
|
|
1498
|
+
]);
|
|
1499
|
+
function canonicalSourceHandle(nodeType, handle) {
|
|
1500
|
+
return nodeType && LEGACY_SOURCE_HANDLE_ALIASES[nodeType]?.[handle] || handle;
|
|
1501
|
+
}
|
|
1502
|
+
function canonicalTargetHandle(nodeType, handle) {
|
|
1503
|
+
return nodeType && LEGACY_TARGET_HANDLE_ALIASES[nodeType]?.[handle] || handle;
|
|
1504
|
+
}
|
|
1505
|
+
var SUNO_IN_CLASSIFIER_TARGETS = /* @__PURE__ */ new Set([
|
|
1506
|
+
"suno-cover",
|
|
1507
|
+
"suno-extend",
|
|
1508
|
+
"suno-replace-section",
|
|
1509
|
+
"suno-upload-extend"
|
|
1510
|
+
]);
|
|
1511
|
+
var SUNO_VOICE_CAPABLE_TARGETS = /* @__PURE__ */ new Set(["suno-generate", "suno-cover", "suno-extend"]);
|
|
1512
|
+
var IMAGE_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([
|
|
1513
|
+
"generate-image",
|
|
1514
|
+
"upload-image",
|
|
1515
|
+
"edit-image",
|
|
1516
|
+
"image-to-image",
|
|
1517
|
+
"modify-image",
|
|
1518
|
+
"upscale-image",
|
|
1519
|
+
"remove-background",
|
|
1520
|
+
"generate-mask",
|
|
1521
|
+
"scene"
|
|
1522
|
+
]);
|
|
1523
|
+
var IDENTITY_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([
|
|
1524
|
+
"character",
|
|
1525
|
+
"face",
|
|
1526
|
+
"object",
|
|
1527
|
+
"creature",
|
|
1528
|
+
"location"
|
|
1529
|
+
]);
|
|
1530
|
+
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER = chunkVXPLKQWY_cjs.VIDEO_PRODUCER_TYPES;
|
|
1531
|
+
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...chunkVXPLKQWY_cjs.AUDIO_PRODUCER_TYPES, "youtube-video"]);
|
|
1532
|
+
var DUAL_MODE_REVOICE_TARGETS = /* @__PURE__ */ new Set(["voice-changer", "voice-changer-pro", "dubbing"]);
|
|
1533
|
+
function classifyLegacyTargetHandle(targetType, handle, sourceType, sentHandle = handle) {
|
|
1534
|
+
if (!targetType) return handle;
|
|
1535
|
+
const source = sourceType ?? "";
|
|
1536
|
+
if (source === "suno-voice" && SUNO_VOICE_CAPABLE_TARGETS.has(targetType) && (handle === "in" || handle === "prompt" || handle == null)) {
|
|
1537
|
+
return "voice";
|
|
1538
|
+
}
|
|
1539
|
+
if (SUNO_IN_CLASSIFIER_TARGETS.has(targetType) && (handle === "in" || handle == null)) {
|
|
1540
|
+
return AUDIO_SOURCE_TYPES_FOR_CLASSIFIER.has(source) ? "audio" : "prompt";
|
|
1541
|
+
}
|
|
1542
|
+
if (targetType === "motion-transfer" && handle === "video") {
|
|
1543
|
+
if (IDENTITY_TYPES_FOR_CLASSIFIER.has(source)) return "assets";
|
|
1544
|
+
if (IMAGE_SOURCE_TYPES_FOR_CLASSIFIER.has(source)) return "image";
|
|
1545
|
+
if (!VIDEO_SOURCE_TYPES_FOR_CLASSIFIER.has(source)) return "prompt";
|
|
1546
|
+
return handle;
|
|
1547
|
+
}
|
|
1548
|
+
if ((targetType === "video-to-video" || targetType === "extend-video") && handle === "video" && !VIDEO_SOURCE_TYPES_FOR_CLASSIFIER.has(source)) {
|
|
1549
|
+
return "prompt";
|
|
1550
|
+
}
|
|
1551
|
+
if (DUAL_MODE_REVOICE_TARGETS.has(targetType) && (sentHandle === "in" || sentHandle == null)) {
|
|
1552
|
+
return VIDEO_SOURCE_TYPES_FOR_CLASSIFIER.has(source) ? "video" : "audio";
|
|
1553
|
+
}
|
|
1554
|
+
return handle;
|
|
1555
|
+
}
|
|
1556
|
+
var RENDERED_OUTPUT_HANDLES = {};
|
|
1557
|
+
function renderedSourceHandle(nodeType, handle, declaredOutputs) {
|
|
1558
|
+
if (!nodeType || !handle) return null;
|
|
1559
|
+
const rendered = RENDERED_OUTPUT_HANDLES[nodeType];
|
|
1560
|
+
if (!rendered || rendered.includes(handle) || !declaredOutputs?.includes(handle)) return null;
|
|
1561
|
+
if (rendered.includes(`${handle}-out`)) return `${handle}-out`;
|
|
1562
|
+
return rendered.length === 1 ? rendered[0] : null;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
// src/site-capture-node.ts
|
|
1566
|
+
var SITE_CAPTURE_NODE_TYPE = "site-capture";
|
|
1567
|
+
var SITE_CAPTURE_STILLS = { min: 3, max: 8, default: 8 };
|
|
1568
|
+
function siteCaptureMaxStills(value) {
|
|
1569
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return SITE_CAPTURE_STILLS.default;
|
|
1570
|
+
return Math.min(SITE_CAPTURE_STILLS.max, Math.max(SITE_CAPTURE_STILLS.min, Math.round(value)));
|
|
1571
|
+
}
|
|
1572
|
+
function siteCapturePageUrl(typed, upstream) {
|
|
1573
|
+
const own2 = typeof typed === "string" ? typed.trim() : "";
|
|
1574
|
+
if (own2.length > 0) return own2;
|
|
1575
|
+
const text = typeof upstream === "string" ? upstream.trim() : "";
|
|
1576
|
+
if (text.length === 0) return "";
|
|
1577
|
+
const link = text.match(/https?:\/\/[^\s<>"'`]+/i);
|
|
1578
|
+
if (link) return link[0].replace(/[),.;:!?]+$/, "");
|
|
1579
|
+
return text.split(/\s+/)[0] ?? "";
|
|
1580
|
+
}
|
|
1581
|
+
function siteCaptureStills(output) {
|
|
1582
|
+
if (!output || typeof output !== "object" || Array.isArray(output)) return [];
|
|
1583
|
+
const raw = output.stills;
|
|
1584
|
+
if (!Array.isArray(raw)) return [];
|
|
1585
|
+
return raw.filter((s) => !!s && typeof s === "object" && typeof s.url === "string" && s.url.length > 0).map((s, i) => ({
|
|
1586
|
+
url: s.url,
|
|
1587
|
+
index: typeof s.index === "number" ? s.index : i,
|
|
1588
|
+
label: typeof s.label === "string" ? s.label : "",
|
|
1589
|
+
category: typeof s.category === "string" ? s.category : "other"
|
|
1590
|
+
})).sort((a, b) => a.index - b.index);
|
|
1591
|
+
}
|
|
1592
|
+
function siteCaptureStillUrls(output) {
|
|
1593
|
+
return siteCaptureStills(output).map((s) => s.url);
|
|
1594
|
+
}
|
|
1595
|
+
function siteCaptureNodeOutputs(output) {
|
|
1596
|
+
if (!output || typeof output !== "object" || Array.isArray(output)) return {};
|
|
1597
|
+
const urls = siteCaptureStillUrls(output);
|
|
1598
|
+
return {
|
|
1599
|
+
json: output,
|
|
1600
|
+
...urls.length > 0 ? { imageUrl: urls[0], listResults: urls } : {}
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
exports.AUTO_ASPECT_AT_RUN_NODE_TYPES = AUTO_ASPECT_AT_RUN_NODE_TYPES;
|
|
1605
|
+
exports.COLLECTIONS_PAGE_DEFAULT = COLLECTIONS_PAGE_DEFAULT;
|
|
1606
|
+
exports.COLLECTIONS_PAGE_MAX = COLLECTIONS_PAGE_MAX;
|
|
1607
|
+
exports.COLLECTION_BULK_ACTIONS = COLLECTION_BULK_ACTIONS;
|
|
1608
|
+
exports.COLLECTION_BULK_MAX = COLLECTION_BULK_MAX;
|
|
1609
|
+
exports.COLLECTION_DEDUPE_KEY_MAX = COLLECTION_DEDUPE_KEY_MAX;
|
|
1610
|
+
exports.COLLECTION_DESCRIPTION_MAX = COLLECTION_DESCRIPTION_MAX;
|
|
1611
|
+
exports.COLLECTION_DIGEST_SEPARATOR = COLLECTION_DIGEST_SEPARATOR;
|
|
1612
|
+
exports.COLLECTION_EVICT_MAX_PER_WRITE = COLLECTION_EVICT_MAX_PER_WRITE;
|
|
1613
|
+
exports.COLLECTION_HEADLINE_MAX = COLLECTION_HEADLINE_MAX;
|
|
1614
|
+
exports.COLLECTION_IDEMPOTENCY_KEY_MAX = COLLECTION_IDEMPOTENCY_KEY_MAX;
|
|
1615
|
+
exports.COLLECTION_MEDIA_TYPES = COLLECTION_MEDIA_TYPES;
|
|
1616
|
+
exports.COLLECTION_NAME_MAX = COLLECTION_NAME_MAX;
|
|
1617
|
+
exports.COLLECTION_READ_LIMIT_MAX = COLLECTION_READ_LIMIT_MAX;
|
|
1618
|
+
exports.COLLECTION_READ_WINDOW_HOURS_MAX = COLLECTION_READ_WINDOW_HOURS_MAX;
|
|
1619
|
+
exports.COLLECTION_RECORDS_OFFSET_MAX = COLLECTION_RECORDS_OFFSET_MAX;
|
|
1620
|
+
exports.COLLECTION_RECORD_FIELDS_BYTES_MAX = COLLECTION_RECORD_FIELDS_BYTES_MAX;
|
|
1621
|
+
exports.COLLECTION_RECORD_FIELDS_MAX = COLLECTION_RECORD_FIELDS_MAX;
|
|
1622
|
+
exports.COLLECTION_RECORD_MEDIA_MAX = COLLECTION_RECORD_MEDIA_MAX;
|
|
1623
|
+
exports.COLLECTION_RECORD_STATUSES = COLLECTION_RECORD_STATUSES;
|
|
1624
|
+
exports.COLLECTION_RECORD_TEXT_MAX = COLLECTION_RECORD_TEXT_MAX;
|
|
1625
|
+
exports.COLLECTION_RECORD_TITLE_MAX = COLLECTION_RECORD_TITLE_MAX;
|
|
1626
|
+
exports.COLLECTION_RECORD_URL_MAX = COLLECTION_RECORD_URL_MAX;
|
|
1627
|
+
exports.COLLECTION_TIER_CAPS = COLLECTION_TIER_CAPS;
|
|
1628
|
+
exports.COLLECTION_USAGES = COLLECTION_USAGES;
|
|
1629
|
+
exports.CONTINUATION_NOT_COMPLETED = CONTINUATION_NOT_COMPLETED;
|
|
1630
|
+
exports.CONTINUATION_NOT_FAILED = CONTINUATION_NOT_FAILED;
|
|
1631
|
+
exports.CONTINUATION_NOT_FOUND = CONTINUATION_NOT_FOUND;
|
|
1632
|
+
exports.CONTINUATION_SETTLING = CONTINUATION_SETTLING;
|
|
1633
|
+
exports.CONTINUATION_SUBSET_REQUIRED = CONTINUATION_SUBSET_REQUIRED;
|
|
1634
|
+
exports.CONTINUATION_SUPERSEDED = CONTINUATION_SUPERSEDED;
|
|
1635
|
+
exports.CONTINUATION_VERSION_MISMATCH = CONTINUATION_VERSION_MISMATCH;
|
|
1636
|
+
exports.CONTINUATION_WORKFLOW_MISMATCH = CONTINUATION_WORKFLOW_MISMATCH;
|
|
1637
|
+
exports.DYNAMIC_HANDLE_NODE_TYPES = DYNAMIC_HANDLE_NODE_TYPES;
|
|
1638
|
+
exports.LEGACY_SOURCE_HANDLE_ALIASES = LEGACY_SOURCE_HANDLE_ALIASES;
|
|
1639
|
+
exports.LEGACY_TARGET_HANDLE_ALIASES = LEGACY_TARGET_HANDLE_ALIASES;
|
|
1640
|
+
exports.MODEL_PARAM_NODE_TYPES = MODEL_PARAM_NODE_TYPES;
|
|
1641
|
+
exports.NODE_MAPPABLE_FIELDS = NODE_MAPPABLE_FIELDS;
|
|
1642
|
+
exports.NODE_PRESET_EXPORT_KIND = NODE_PRESET_EXPORT_KIND;
|
|
1643
|
+
exports.NODE_RUN_ROUTES = NODE_RUN_ROUTES;
|
|
1644
|
+
exports.NODE_TYPES_WITHOUT_RUN_ROUTE = NODE_TYPES_WITHOUT_RUN_ROUTE;
|
|
1645
|
+
exports.NO_SAVED_RENDER_STAMPS = NO_SAVED_RENDER_STAMPS;
|
|
1646
|
+
exports.PHOTO_AUTO_ASPECT_NODE_TYPES = PHOTO_AUTO_ASPECT_NODE_TYPES;
|
|
1647
|
+
exports.PRESET_APPLY_CLEAR_KEYS = PRESET_APPLY_CLEAR_KEYS;
|
|
1648
|
+
exports.PRESET_EXCLUDED_KEYS = PRESET_EXCLUDED_KEYS;
|
|
1649
|
+
exports.PRESET_LEVER_GROUPS = PRESET_LEVER_GROUPS;
|
|
1650
|
+
exports.PREVIEW_RENDER_NESTED = PREVIEW_RENDER_NESTED;
|
|
1651
|
+
exports.PREVIEW_RENDER_NESTED_MIXED = PREVIEW_RENDER_NESTED_MIXED;
|
|
1652
|
+
exports.PREVIEW_RENDER_NESTED_REVIEW_ON = PREVIEW_RENDER_NESTED_REVIEW_ON;
|
|
1653
|
+
exports.PREVIEW_RENDER_NODE_TYPES = PREVIEW_RENDER_NODE_TYPES;
|
|
1654
|
+
exports.PREVIEW_REVIEW_REQUIRED = PREVIEW_REVIEW_REQUIRED;
|
|
1655
|
+
exports.PREVIEW_REVIEW_REQUIRED_MIXED = PREVIEW_REVIEW_REQUIRED_MIXED;
|
|
1656
|
+
exports.PREVIEW_REVIEW_REQUIRED_REVIEW_ON = PREVIEW_REVIEW_REQUIRED_REVIEW_ON;
|
|
1657
|
+
exports.PROMPT_PREFIX_KEY = PROMPT_PREFIX_KEY;
|
|
1658
|
+
exports.PROMPT_SUFFIX_KEY = PROMPT_SUFFIX_KEY;
|
|
1659
|
+
exports.RENDERED_OUTPUT_HANDLES = RENDERED_OUTPUT_HANDLES;
|
|
1660
|
+
exports.RENDER_FINAL_ALREADY_RENDERED = RENDER_FINAL_ALREADY_RENDERED;
|
|
1661
|
+
exports.RENDER_FINAL_ALREADY_RENDERED_MESSAGE = RENDER_FINAL_ALREADY_RENDERED_MESSAGE;
|
|
1662
|
+
exports.RENDER_FINAL_CODES = RENDER_FINAL_CODES;
|
|
1663
|
+
exports.RENDER_FINAL_NODE_NOT_FOUND = RENDER_FINAL_NODE_NOT_FOUND;
|
|
1664
|
+
exports.RENDER_FINAL_NOT_A_RENDER = RENDER_FINAL_NOT_A_RENDER;
|
|
1665
|
+
exports.REVIEW_HOLDING_USE_CASE_TYPES = REVIEW_HOLDING_USE_CASE_TYPES;
|
|
1666
|
+
exports.RUN_CONTINUATION_CODES = RUN_CONTINUATION_CODES;
|
|
1667
|
+
exports.RUN_ONLY_NODE_FIELDS = RUN_ONLY_NODE_FIELDS;
|
|
1668
|
+
exports.RUN_OVERRIDE_CLEARED_FIELDS = RUN_OVERRIDE_CLEARED_FIELDS;
|
|
1669
|
+
exports.SAVED_RENDER_STAMPS = SAVED_RENDER_STAMPS;
|
|
1670
|
+
exports.SCRIPT_SCENE_COUNT_DEFAULT = SCRIPT_SCENE_COUNT_DEFAULT;
|
|
1671
|
+
exports.SCRIPT_SCENE_COUNT_RANGE = SCRIPT_SCENE_COUNT_RANGE;
|
|
1672
|
+
exports.SCRIPT_STYLE_GUIDE_MAX_LENGTH = SCRIPT_STYLE_GUIDE_MAX_LENGTH;
|
|
1673
|
+
exports.SCRIPT_TARGET_DURATION_DEFAULT = SCRIPT_TARGET_DURATION_DEFAULT;
|
|
1674
|
+
exports.SCRIPT_TARGET_DURATION_RANGE = SCRIPT_TARGET_DURATION_RANGE;
|
|
1675
|
+
exports.SCRIPT_TONE_MAX_LENGTH = SCRIPT_TONE_MAX_LENGTH;
|
|
1676
|
+
exports.SETTINGS_HINT_SOURCES = SETTINGS_HINT_SOURCES;
|
|
1677
|
+
exports.SETTINGS_INPUT_CONSUMERS = SETTINGS_INPUT_CONSUMERS;
|
|
1678
|
+
exports.SETTINGS_INPUT_HANDLE = SETTINGS_INPUT_HANDLE;
|
|
1679
|
+
exports.SETTINGS_SOURCE_FIELDS = SETTINGS_SOURCE_FIELDS;
|
|
1680
|
+
exports.SETTINGS_SOURCE_TYPES = SETTINGS_SOURCE_TYPES;
|
|
1681
|
+
exports.SITE_CAPTURE_NODE_TYPE = SITE_CAPTURE_NODE_TYPE;
|
|
1682
|
+
exports.SITE_CAPTURE_STILLS = SITE_CAPTURE_STILLS;
|
|
1683
|
+
exports.SOURCE_IMAGE_NODE_TYPES = SOURCE_IMAGE_NODE_TYPES;
|
|
1684
|
+
exports.SUNO_FIELD_HANDLE_FIELDS = SUNO_FIELD_HANDLE_FIELDS;
|
|
1685
|
+
exports.applySettingsInput = applySettingsInput;
|
|
1686
|
+
exports.buildNodePresetExport = buildNodePresetExport;
|
|
1687
|
+
exports.canonicalSourceHandle = canonicalSourceHandle;
|
|
1688
|
+
exports.canonicalTargetHandle = canonicalTargetHandle;
|
|
1689
|
+
exports.captionPlanPassThrough = captionPlanPassThrough;
|
|
1690
|
+
exports.clampChars = clampChars;
|
|
1691
|
+
exports.classifyLegacyTargetHandle = classifyLegacyTargetHandle;
|
|
1692
|
+
exports.collectionCapsForTier = collectionCapsForTier;
|
|
1693
|
+
exports.collectionReadSince = collectionReadSince;
|
|
1694
|
+
exports.collectionRecordHeadline = collectionRecordHeadline;
|
|
1695
|
+
exports.collectionRecordsDigest = collectionRecordsDigest;
|
|
1696
|
+
exports.combineVideosPassThrough = combineVideosPassThrough;
|
|
1697
|
+
exports.connectedSettingsSources = connectedSettingsSources;
|
|
1698
|
+
exports.declaredJsonOutput = declaredJsonOutput;
|
|
1699
|
+
exports.declaredJsonOutputRows = declaredJsonOutputRows;
|
|
1700
|
+
exports.describeNodeAdjustments = describeNodeAdjustments;
|
|
1701
|
+
exports.edlSpanKey = edlSpanKey;
|
|
1702
|
+
exports.extractPresetData = extractPresetData;
|
|
1703
|
+
exports.fieldKeyFromHandle = fieldKeyFromHandle;
|
|
1704
|
+
exports.findWordlessTranscriptFeeds = findWordlessTranscriptFeeds;
|
|
1705
|
+
exports.fitCollectionField = fitCollectionField;
|
|
1706
|
+
exports.holdsPreviewRender = holdsPreviewRender;
|
|
1707
|
+
exports.ingestRecordFromJson = ingestRecordFromJson;
|
|
1708
|
+
exports.isCollectionMedia = isCollectionMedia;
|
|
1709
|
+
exports.isCollectionUrl = isCollectionUrl;
|
|
1710
|
+
exports.isLoneMediaLinkSource = isLoneMediaLinkSource;
|
|
1711
|
+
exports.isPreviewHoldingType = isPreviewHoldingType;
|
|
1712
|
+
exports.isPreviewRefusalCode = isPreviewRefusalCode;
|
|
1713
|
+
exports.isSettingsHintEdge = isSettingsHintEdge;
|
|
1714
|
+
exports.isSettingsHintSource = isSettingsHintSource;
|
|
1715
|
+
exports.isSettingsSourceType = isSettingsSourceType;
|
|
1716
|
+
exports.jsonInputKind = jsonInputKind;
|
|
1717
|
+
exports.jsonKindMismatch = jsonKindMismatch;
|
|
1718
|
+
exports.jsonKindMismatchMessage = jsonKindMismatchMessage;
|
|
1719
|
+
exports.jsonOutputKind = jsonOutputKind;
|
|
1720
|
+
exports.loneMediaUrlKind = loneMediaUrlKind;
|
|
1721
|
+
exports.nodeAspectRatio = nodeAspectRatio;
|
|
1722
|
+
exports.nodeRunRoute = nodeRunRoute;
|
|
1723
|
+
exports.normalizeCollectionFields = normalizeCollectionFields;
|
|
1724
|
+
exports.normalizeCollectionMedia = normalizeCollectionMedia;
|
|
1725
|
+
exports.normalizeDedupeKey = normalizeDedupeKey;
|
|
1726
|
+
exports.normalizeNodeModelParams = normalizeNodeModelParams;
|
|
1727
|
+
exports.parseNodePresetExport = parseNodePresetExport;
|
|
1728
|
+
exports.planClipKeyAt = planClipKeyAt;
|
|
1729
|
+
exports.presetApplyClearKeys = presetApplyClearKeys;
|
|
1730
|
+
exports.presetDataMatches = presetDataMatches;
|
|
1731
|
+
exports.presetLeverClearKeys = presetLeverClearKeys;
|
|
1732
|
+
exports.previewGatedNodeIds = previewGatedNodeIds;
|
|
1733
|
+
exports.previewStops = previewStops;
|
|
1734
|
+
exports.readPromptAffixes = readPromptAffixes;
|
|
1735
|
+
exports.readScriptSettings = readScriptSettings;
|
|
1736
|
+
exports.renderClipKey = renderClipKey;
|
|
1737
|
+
exports.renderPlanBasis = renderPlanBasis;
|
|
1738
|
+
exports.renderPlanClipKey = renderPlanClipKey;
|
|
1739
|
+
exports.renderPlanNodeId = renderPlanNodeId;
|
|
1740
|
+
exports.renderPlanPath = renderPlanPath;
|
|
1741
|
+
exports.renderPlanRowClipKeys = renderPlanRowClipKeys;
|
|
1742
|
+
exports.renderPlanValue = renderPlanValue;
|
|
1743
|
+
exports.renderReadBasis = renderReadBasis;
|
|
1744
|
+
exports.renderResultStamp = renderResultStamp;
|
|
1745
|
+
exports.renderRunQuality = renderRunQuality;
|
|
1746
|
+
exports.renderSentRowStamps = renderSentRowStamps;
|
|
1747
|
+
exports.renderSettingsBasis = renderSettingsBasis;
|
|
1748
|
+
exports.renderedSourceHandle = renderedSourceHandle;
|
|
1749
|
+
exports.rendersAsPreview = rendersAsPreview;
|
|
1750
|
+
exports.resolveWiredSettings = resolveWiredSettings;
|
|
1751
|
+
exports.savedRenderBatch = savedRenderBatch;
|
|
1752
|
+
exports.savedRenderBatchUrls = savedRenderBatchUrls;
|
|
1753
|
+
exports.savedRenderOutput = savedRenderOutput;
|
|
1754
|
+
exports.settingsInputAccepts = settingsInputAccepts;
|
|
1755
|
+
exports.settingsInputFields = settingsInputFields;
|
|
1756
|
+
exports.settingsProviderModels = settingsProviderModels;
|
|
1757
|
+
exports.settingsSourceForField = settingsSourceForField;
|
|
1758
|
+
exports.settingsSourceForType = settingsSourceForType;
|
|
1759
|
+
exports.siteCaptureMaxStills = siteCaptureMaxStills;
|
|
1760
|
+
exports.siteCaptureNodeOutputs = siteCaptureNodeOutputs;
|
|
1761
|
+
exports.siteCapturePageUrl = siteCapturePageUrl;
|
|
1762
|
+
exports.siteCaptureStillUrls = siteCaptureStillUrls;
|
|
1763
|
+
exports.siteCaptureStills = siteCaptureStills;
|
|
1764
|
+
exports.snapToModelDuration = snapToModelDuration;
|
|
1765
|
+
exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
|
|
1766
|
+
exports.videoOverlayPassThrough = videoOverlayPassThrough;
|
|
1767
|
+
exports.withRunOverrides = withRunOverrides;
|
|
1768
|
+
exports.withWiredSettings = withWiredSettings;
|
|
1769
|
+
//# sourceMappingURL=chunk-D26ENTN2.cjs.map
|
|
1770
|
+
//# sourceMappingURL=chunk-D26ENTN2.cjs.map
|