@nodaro/shared 3.62.0 → 3.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-6CSXMWL4.cjs → chunk-2PU3AGGS.cjs} +27 -4
- package/dist/chunk-2PU3AGGS.cjs.map +1 -0
- package/dist/{chunk-CC4V2B7S.js → chunk-34QLPTSA.js} +3 -3
- package/dist/{chunk-CC4V2B7S.js.map → chunk-34QLPTSA.js.map} +1 -1
- package/dist/{chunk-G4U3HW6W.js → chunk-3K24DWOH.js} +3 -3
- package/dist/{chunk-G4U3HW6W.js.map → chunk-3K24DWOH.js.map} +1 -1
- package/dist/{chunk-GSFB537T.js → chunk-4DVWXEB6.js} +23 -4
- package/dist/chunk-4DVWXEB6.js.map +1 -0
- package/dist/{chunk-ZES6EZC4.js → chunk-4MMZD63H.js} +3 -3
- package/dist/{chunk-ZES6EZC4.js.map → chunk-4MMZD63H.js.map} +1 -1
- package/dist/{chunk-N7OUQK7E.cjs → chunk-63H4C56Q.cjs} +8 -8
- package/dist/{chunk-N7OUQK7E.cjs.map → chunk-63H4C56Q.cjs.map} +1 -1
- package/dist/{chunk-2D5LQFV4.cjs → chunk-6BZC2ZHC.cjs} +9 -9
- package/dist/{chunk-2D5LQFV4.cjs.map → chunk-6BZC2ZHC.cjs.map} +1 -1
- package/dist/{chunk-3OYO3XCC.js → chunk-6M563QE6.js} +71 -9
- package/dist/chunk-6M563QE6.js.map +1 -0
- package/dist/{chunk-IDTKF5EX.cjs → chunk-6TGB7ECA.cjs} +7 -7
- package/dist/{chunk-IDTKF5EX.cjs.map → chunk-6TGB7ECA.cjs.map} +1 -1
- package/dist/{chunk-2HZGDZZN.cjs → chunk-6XUG4L7X.cjs} +6 -6
- package/dist/{chunk-2HZGDZZN.cjs.map → chunk-6XUG4L7X.cjs.map} +1 -1
- package/dist/{chunk-CIPPPT7E.cjs → chunk-77WU3V3J.cjs} +6 -6
- package/dist/{chunk-CIPPPT7E.cjs.map → chunk-77WU3V3J.cjs.map} +1 -1
- package/dist/{chunk-C7POAYFE.js → chunk-AE3AAJ4O.js} +3 -3
- package/dist/{chunk-C7POAYFE.js.map → chunk-AE3AAJ4O.js.map} +1 -1
- package/dist/{chunk-NGKKNSK6.js → chunk-BMJVKYVB.js} +36 -15
- package/dist/chunk-BMJVKYVB.js.map +1 -0
- package/dist/{chunk-YCXRSWCQ.js → chunk-CZ5IQB3L.js} +3 -3
- package/dist/{chunk-YCXRSWCQ.js.map → chunk-CZ5IQB3L.js.map} +1 -1
- package/dist/{chunk-E2HZTGYX.js → chunk-EPXGG27L.js} +7 -7
- package/dist/chunk-EPXGG27L.js.map +1 -0
- package/dist/{chunk-3M4BNKFJ.cjs → chunk-F6WGGYQW.cjs} +167 -3
- package/dist/chunk-F6WGGYQW.cjs.map +1 -0
- package/dist/{chunk-7FCTCWHD.js → chunk-FXGNRYQQ.js} +3 -3
- package/dist/{chunk-7FCTCWHD.js.map → chunk-FXGNRYQQ.js.map} +1 -1
- package/dist/{chunk-QWYFHQYK.cjs → chunk-GMBDLNLD.cjs} +86 -62
- package/dist/chunk-GMBDLNLD.cjs.map +1 -0
- package/dist/{chunk-KJSRPHJ2.cjs → chunk-GSKLPI3J.cjs} +100 -46
- package/dist/chunk-GSKLPI3J.cjs.map +1 -0
- package/dist/{chunk-S5TMRJMX.js → chunk-HBXF6RUU.js} +4 -4
- package/dist/{chunk-S5TMRJMX.js.map → chunk-HBXF6RUU.js.map} +1 -1
- package/dist/{chunk-S24ZBUB4.js → chunk-HWQ2SYNA.js} +6 -32
- package/dist/chunk-HWQ2SYNA.js.map +1 -0
- package/dist/{chunk-JJNNM23P.js → chunk-IY3Y462W.js} +3 -3
- package/dist/{chunk-JJNNM23P.js.map → chunk-IY3Y462W.js.map} +1 -1
- package/dist/{chunk-JZGZ26YB.js → chunk-KCZHQH2O.js} +4 -4
- package/dist/{chunk-JZGZ26YB.js.map → chunk-KCZHQH2O.js.map} +1 -1
- package/dist/{chunk-FVII3KHN.js → chunk-KMGCHV6O.js} +163 -4
- package/dist/chunk-KMGCHV6O.js.map +1 -0
- package/dist/{chunk-4ZEFP2FQ.cjs → chunk-L2TVY6XN.cjs} +4 -4
- package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-L2TVY6XN.cjs.map} +1 -1
- package/dist/{chunk-TRVWMKNE.cjs → chunk-LH72PQO2.cjs} +204 -52
- package/dist/chunk-LH72PQO2.cjs.map +1 -0
- package/dist/{chunk-HRY7KGAE.cjs → chunk-LMAQUR55.cjs} +6 -6
- package/dist/{chunk-HRY7KGAE.cjs.map → chunk-LMAQUR55.cjs.map} +1 -1
- package/dist/{chunk-MYJQELFN.cjs → chunk-M5OCFGHF.cjs} +254 -7
- package/dist/chunk-M5OCFGHF.cjs.map +1 -0
- package/dist/{chunk-I2RQB7VG.js → chunk-MD4XHED4.js} +3 -3
- package/dist/{chunk-I2RQB7VG.js.map → chunk-MD4XHED4.js.map} +1 -1
- package/dist/{chunk-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
- package/dist/chunk-NIAFR5EE.js.map +1 -0
- package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
- package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
- package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
- package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
- package/dist/{chunk-UDDVDQMF.js → chunk-OV3JTKBY.js} +166 -25
- package/dist/chunk-OV3JTKBY.js.map +1 -0
- package/dist/{chunk-5YYN5X57.js → chunk-PSKZKLDG.js} +252 -8
- package/dist/chunk-PSKZKLDG.js.map +1 -0
- package/dist/{chunk-IWWVPR3W.cjs → chunk-TM5JYSJF.cjs} +95 -19
- package/dist/chunk-TM5JYSJF.cjs.map +1 -0
- package/dist/{chunk-G3KVK7OU.cjs → chunk-V5EEQR2U.cjs} +21 -21
- package/dist/{chunk-G3KVK7OU.cjs.map → chunk-V5EEQR2U.cjs.map} +1 -1
- package/dist/{chunk-AOJ6B7K4.cjs → chunk-WZVIBAKN.cjs} +12 -12
- package/dist/chunk-WZVIBAKN.cjs.map +1 -0
- package/dist/{chunk-5M43XMRB.cjs → chunk-X5BAFW3Q.cjs} +8 -8
- package/dist/{chunk-5M43XMRB.cjs.map → chunk-X5BAFW3Q.cjs.map} +1 -1
- package/dist/{chunk-SYWR5G3T.js → chunk-XBTYGQ6Z.js} +51 -7
- package/dist/chunk-XBTYGQ6Z.js.map +1 -0
- package/dist/{chunk-AFYTX4AI.cjs → chunk-XGGZWA4A.cjs} +107 -50
- package/dist/chunk-XGGZWA4A.cjs.map +1 -0
- package/dist/{chunk-VACPZPUA.cjs → chunk-XGVJGNZW.cjs} +5 -5
- package/dist/{chunk-VACPZPUA.cjs.map → chunk-XGVJGNZW.cjs.map} +1 -1
- package/dist/{chunk-2W745U4A.cjs → chunk-Y35JQPT6.cjs} +42 -70
- package/dist/chunk-Y35JQPT6.cjs.map +1 -0
- package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
- package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
- package/dist/{chunk-PTD6EDUU.js → chunk-YUER7TJG.js} +3 -3
- package/dist/{chunk-PTD6EDUU.js.map → chunk-YUER7TJG.js.map} +1 -1
- package/dist/{chunk-Y6X7UJSD.js → chunk-YX6TFX7H.js} +66 -14
- package/dist/chunk-YX6TFX7H.js.map +1 -0
- package/dist/{chunk-TWF2OSH4.cjs → chunk-ZPE2ZTJ4.cjs} +4 -4
- package/dist/{chunk-TWF2OSH4.cjs.map → chunk-ZPE2ZTJ4.cjs.map} +1 -1
- package/dist/entries/apps.cjs +42 -42
- package/dist/entries/apps.js +7 -7
- package/dist/entries/credits.cjs +237 -169
- package/dist/entries/credits.d.cts +163 -16
- package/dist/entries/credits.d.ts +163 -16
- package/dist/entries/credits.js +10 -10
- package/dist/entries/llm-models.cjs +77 -57
- package/dist/entries/llm-models.d.cts +85 -6
- package/dist/entries/llm-models.d.ts +85 -6
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +63 -63
- package/dist/entries/media.d.cts +8 -0
- package/dist/entries/media.d.ts +8 -0
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +121 -105
- package/dist/entries/model-catalog.d.cts +48 -18
- package/dist/entries/model-catalog.d.ts +48 -18
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +418 -322
- package/dist/entries/models.d.cts +71 -5
- package/dist/entries/models.d.ts +71 -5
- package/dist/entries/models.js +5 -5
- package/dist/entries/nodes.cjs +216 -208
- package/dist/entries/nodes.d.cts +22 -6
- package/dist/entries/nodes.d.ts +22 -6
- package/dist/entries/nodes.js +8 -8
- package/dist/entries/pipeline.cjs +152 -152
- package/dist/entries/pipeline.d.cts +3 -3
- package/dist/entries/pipeline.d.ts +3 -3
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/runtime-config.cjs +29 -29
- package/dist/entries/runtime-config.d.cts +10 -7
- package/dist/entries/runtime-config.d.ts +10 -7
- package/dist/entries/runtime-config.js +1 -1
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/types.d.cts +8 -0
- package/dist/entries/types.d.ts +8 -0
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +154 -150
- package/dist/entries/video.d.cts +11 -2
- package/dist/entries/video.d.ts +11 -2
- package/dist/entries/video.js +6 -6
- package/dist/entries/workflow.d.cts +1 -1
- package/dist/entries/workflow.d.ts +1 -1
- package/dist/index.cjs +1727 -1515
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +23 -23
- package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-C_Eo35tL.d.cts} +30 -0
- package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-C_Eo35tL.d.ts} +30 -0
- package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-Bg4ccSQb.d.ts} +138 -25
- package/dist/{model-constants-B88p6XR0.d.ts → model-constants-DWcxOmaY.d.cts} +138 -25
- package/package.json +1 -1
- package/src/__tests__/credit-identifiers.test.ts +29 -0
- package/src/__tests__/extend-providers.test.ts +106 -26
- package/src/__tests__/gvp-supported-providers.test.ts +27 -2
- package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
- package/src/__tests__/lip-sync-levers.test.ts +31 -0
- package/src/__tests__/llm-models.test.ts +132 -3
- package/src/__tests__/llm-price-key.test.ts +152 -1
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
- package/src/__tests__/normalize-node-params.test.ts +25 -0
- package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
- package/src/__tests__/prompt-length-limits.test.ts +4 -0
- package/src/__tests__/seedance-task-type.test.ts +13 -3
- package/src/__tests__/transcribe-capabilities.test.ts +39 -2
- package/src/__tests__/transcribe-preflight.test.ts +50 -1
- package/src/__tests__/video-audio-capability.test.ts +35 -6
- package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
- package/src/__tests__/video-upscale-params.test.ts +62 -0
- package/src/catalog-projection.ts +8 -0
- package/src/credit-estimators/index.ts +10 -0
- package/src/credit-estimators/nemotron-transcribe.ts +87 -0
- package/src/credit-identifiers.ts +109 -35
- package/src/entries/credits.ts +12 -1
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/model-catalog.ts +9 -0
- package/src/entries/models.ts +35 -0
- package/src/entries/nodes.ts +2 -0
- package/src/entries/video.ts +1 -1
- package/src/freecut-protocol.ts +8 -0
- package/src/lip-sync-levers.ts +56 -0
- package/src/lip-sync-pricing.ts +91 -1
- package/src/llm-models.ts +249 -4
- package/src/model-catalog.ts +250 -4
- package/src/model-constants.ts +277 -30
- package/src/model-tree.ts +2 -1
- package/src/nodaro-video-upscale.ts +48 -0
- package/src/node-default-mappings.ts +3 -0
- package/src/normalize-node-params.ts +49 -1
- package/src/runtime-config/contract.ts +10 -7
- package/src/seedance-draft.ts +2 -1
- package/src/transcribe-preflight.ts +58 -7
- package/src/video-duration.ts +9 -0
- package/src/video-ui-defaults.ts +5 -3
- package/src/video-upscale-params.ts +67 -0
- package/dist/chunk-2W745U4A.cjs.map +0 -1
- package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
- package/dist/chunk-3OYO3XCC.js.map +0 -1
- package/dist/chunk-5YYN5X57.js.map +0 -1
- package/dist/chunk-6CSXMWL4.cjs.map +0 -1
- package/dist/chunk-6G7NN4S4.js.map +0 -1
- package/dist/chunk-AFYTX4AI.cjs.map +0 -1
- package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
- package/dist/chunk-E2HZTGYX.js.map +0 -1
- package/dist/chunk-FVII3KHN.js.map +0 -1
- package/dist/chunk-GSFB537T.js.map +0 -1
- package/dist/chunk-IWWVPR3W.cjs.map +0 -1
- package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
- package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
- package/dist/chunk-MYJQELFN.cjs.map +0 -1
- package/dist/chunk-NGKKNSK6.js.map +0 -1
- package/dist/chunk-QWYFHQYK.cjs.map +0 -1
- package/dist/chunk-S24ZBUB4.js.map +0 -1
- package/dist/chunk-SYWR5G3T.js.map +0 -1
- package/dist/chunk-TRVWMKNE.cjs.map +0 -1
- package/dist/chunk-UDDVDQMF.js.map +0 -1
- package/dist/chunk-Y6X7UJSD.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UGC_PRIMARY_HANDLE } from './chunk-
|
|
1
|
+
import { UGC_PRIMARY_HANDLE } from './chunk-MD4XHED4.js';
|
|
2
2
|
import { composeUnitSet, unitProducers, composeUnitRecord, unitFanOutEach, unitListPips } from './chunk-KL6GAYTT.js';
|
|
3
|
-
import { isSeedance2Provider, isMinimaxH3Provider, isWan3Provider, isKling4RunnerProvider, isViduQ4Provider, isGeminiOmniPerSecondProvider, PRICING_DEFAULT_RESOLUTION, isGeminiOmniProvider } from './chunk-
|
|
4
|
-
import { MODEL_CATALOG } from './chunk-
|
|
3
|
+
import { isSeedance2Provider, isMinimaxH3Provider, isWan3Provider, isKling4RunnerProvider, isViduQ4Provider, isGeminiOmniPerSecondProvider, isPixverseV6MaxProvider, PRICING_DEFAULT_RESOLUTION, isGeminiOmniProvider } from './chunk-OV3JTKBY.js';
|
|
4
|
+
import { MODEL_CATALOG } from './chunk-PSKZKLDG.js';
|
|
5
5
|
|
|
6
6
|
// src/producer-types.ts
|
|
7
7
|
var VIDEO_PRODUCER_TYPES = composeUnitSet("VIDEO_PRODUCER_TYPES", [
|
|
@@ -316,16 +316,16 @@ function uiAspectRatioFill(provider) {
|
|
|
316
316
|
return void 0;
|
|
317
317
|
}
|
|
318
318
|
function uiResolutionFill(provider) {
|
|
319
|
-
if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4RunnerProvider(provider) || isGeminiOmniPerSecondProvider(provider)) return PRICING_DEFAULT_RESOLUTION[provider];
|
|
319
|
+
if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4RunnerProvider(provider) || isGeminiOmniPerSecondProvider(provider) || isPixverseV6MaxProvider(provider)) return PRICING_DEFAULT_RESOLUTION[provider];
|
|
320
320
|
if (isSeedance2Provider(provider)) return MODEL_CATALOG[provider]?.resolutions?.[0];
|
|
321
321
|
return void 0;
|
|
322
322
|
}
|
|
323
323
|
function uiDurationFill(provider) {
|
|
324
|
-
if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4RunnerProvider(provider)) return 5;
|
|
324
|
+
if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4RunnerProvider(provider) || isPixverseV6MaxProvider(provider)) return 5;
|
|
325
325
|
if (isGeminiOmniProvider(provider)) return 8;
|
|
326
326
|
return void 0;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
export { AUDIO_PRODUCER_TYPES, DYNAMIC_PRODUCER_TYPES, FAN_IN_TARGETS, FAN_OUT_ALL_OR_NOTHING_TYPES, FAN_OUT_EACH_HANDLES, FAN_OUT_EACH_TYPES, IMAGE_PRODUCER_TYPES, LIST_OUTPUT_HANDLES, OWN_LIST_NODE_TYPES, VIDEO_PRODUCER_TYPES, defaultEdgeOutputMode, isFanInEdge, isFanInNodeType, isListOutputHandle, listResultsServeHandle, ownsItsList, uiAspectRatioFill, uiDurationFill, uiResolutionFill };
|
|
330
|
-
//# sourceMappingURL=chunk-
|
|
331
|
-
//# sourceMappingURL=chunk-
|
|
330
|
+
//# sourceMappingURL=chunk-EPXGG27L.js.map
|
|
331
|
+
//# sourceMappingURL=chunk-EPXGG27L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/producer-types.ts","../src/video-ui-defaults.ts"],"names":[],"mappings":";;;;;;AA2BO,IAAM,oBAAA,GAA4C,eAAe,sBAAA,EAAwB;AAAA,EAC9F,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,SAAA;AAAA;AAAA,EACA,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,gBAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,oBAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,eAAA;AAAA,EACA,gBAAA;AAAA,EACA,UAAA;AAAA,EACA,iBAAA;AAAA,EACA,iBAAA;AAAA,EACA,eAAA;AAAA,EACA,aAAA;AAAA,EACA,cAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,WAAA;AAAA;AAAA;AAAA,EAGA,cAAA;AAAA,EACA,cAAA;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA;AAAA,EACA,kBAAA;AAAA,EACA,mBAAA;AAAA,EACA,cAAA;AAAA,EACA,cAAA;AAAA,EACA,qBAAA;AAAA,EACA,YAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AAAA,EACA,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CAAoB,QAAQ,CAAA,IAAK,cAAA,CAAe,QAAQ,CAAA,EAAG,OAAO,UAAA;AAKvG,EAAA,IAAI,sBAAA,CAAuB,QAAQ,CAAA,EAAG,OAAO,MAAA;AAC7C,EAAA,OAAO,MAAA;AACT;AAIO,SAAS,iBAAiB,QAAA,EAAsC;AACrE,EAAA,IAAI,eAAe,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,KAAK,sBAAA,CAAuB,QAAQ,CAAA,IAAK,6BAAA,CAA8B,QAAQ,CAAA,IAAK,uBAAA,CAAwB,QAAQ,CAAA,EAAG,OAAO,2BAA2B,QAAQ,CAAA;AAC1N,EAAA,IAAI,mBAAA,CAAoB,QAAQ,CAAA,EAAG,OAAO,cAAc,QAAQ,CAAA,EAAG,cAAc,CAAC,CAAA;AAClF,EAAA,OAAO,MAAA;AACT;AAWO,SAAS,eAAe,QAAA,EAAsC;AACnE,EAAA,IAAI,cAAA,CAAe,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,IAAK,sBAAA,CAAuB,QAAQ,CAAA,IAAK,uBAAA,CAAwB,QAAQ,CAAA,EAAG,OAAO,CAAA;AAC5I,EAAA,IAAI,oBAAA,CAAqB,QAAQ,CAAA,EAAG,OAAO,CAAA;AAC3C,EAAA,OAAO,MAAA;AACT","file":"chunk-EPXGG27L.js","sourcesContent":["/**\n * Producer-type sets — single source of truth for the node types whose\n * primary output is a video URL, audio URL, etc.\n *\n * Consumed by:\n * - backend/src/services/workflow-engine/execution-graph.ts (orchestrator\n * dispatch + asset-type tagging in payload-builder, output-extractor,\n * inline-executor — re-exported there as VIDEO_SOURCE_TYPES /\n * AUDIO_SOURCE_TYPES for backwards compatibility).\n * - frontend/src/lib/generate-video-handles.ts (handle connection\n * validation on the Generate Video node).\n *\n * Lifting these here ensures the frontend handle validator can never reject\n * a connection from a node type that the backend would happily route at\n * execution time (the prior drift bug, see issue 1 of the Task 4.1 review).\n */\nimport { UGC_PRIMARY_HANDLE } from \"./ugc-node-wires.js\"\nimport { composeUnitRecord, composeUnitSet, unitFanOutEach, unitListPips, unitProducers } from \"./unit-contract-compose.js\"\n\n// Each producer set below is its hand-written members ∪ the node units\n// (tools/units/README.md) of that producer kind, from their generated contract\n// rows, in that order — a type in both throws at load (composeUnitSet).\n\n/**\n * Source node types whose primary output is a video URL.\n * Mirrors the backend execution-graph VIDEO_SOURCE_TYPES verbatim.\n */\nexport const VIDEO_PRODUCER_TYPES: ReadonlySet<string> = composeUnitSet(\"VIDEO_PRODUCER_TYPES\", [\n \"image-to-video\",\n \"video-to-video\",\n \"switchx\", // Beeble SwitchX relight/composite\n \"text-to-video\",\n // Unified video node — emits videoUrl identically to i2v/t2v (its payload-builder\n // case dispatches dynamically to \"image-to-video\" or \"text-to-video\" jobName based\n // on whether a start frame is wired). Without this, getPrimaryOutput would fall\n // through to the imageUrl/videoUrl/audioUrl/text default and downstream consumers\n // could silently misroute the output.\n \"generate-video\",\n // Generate Video Pro — Seedance-2-family multi-segment stitch variant of\n // generate-video (same \"emits videoUrl\" contract; a trimmed provider +\n // handle set). Must mirror generate-video here or its output can't connect\n // downstream (the recurring \"cannot connect the outputs\" bug class).\n \"generate-video-pro\",\n // Edit Video Pro — Seedance-2-family span-replace sibling of generate-\n // video-pro (same \"emits videoUrl\" contract; source video + prompt in,\n // ONE video out). Must mirror generate-video-pro here or its output can't\n // connect downstream (the recurring \"cannot connect the outputs\" bug class).\n \"edit-video-pro\",\n \"upload-video\",\n \"youtube-video\",\n \"combine-videos\",\n \"lip-sync\",\n \"speech-to-video\",\n \"motion-transfer\",\n \"video-upscale\",\n \"video-depth\",\n \"extend-video\",\n // face-swap output is video (writes generatedVideoUrl, per-result `url`).\n // Frontend execution-graph already includes it in VIDEO_SOURCE_TYPES; this\n // entry brings the shared set in line so canvas typed-handle validation\n // doesn't reject face-swap → video-consumer edges that the orchestrator\n // would happily route at runtime.\n \"face-swap\",\n // Speaker View (C3.2): an EDL rendered with its speakers framed — one VIDEO\n // out (no audio-only render). Registered in RENDER_NODE_TYPES as well.\n \"speaker-view\",\n \"video-retake\",\n // video-sfx: adds an SFX track to a video → emits a video URL. Belongs here so\n // canvas handle validation accepts video-sfx → video-consumer edges and the\n // backend routes its output as video (it was previously relying on a fallback).\n \"video-sfx\",\n \"suno-music-video\",\n \"merge-video-audio\",\n \"add-captions\",\n \"resize-video\",\n \"social-media-format\",\n \"trim-video\",\n \"render-video\",\n \"speed-ramp\",\n \"loop-video\",\n \"fade-video\",\n // Video Mask emits its mask as a video; Mask Composite its composite.\n \"video-mask\",\n \"mask-composite\",\n \"transcode-video\",\n \"manual-edit\",\n // AI Avatar (HeyGen): avatar + voice/audio → video.\n \"ai-avatar\",\n // Cinematic Avatar (HeyGen cinematic_avatar): prompt + 1–3 avatar looks → video.\n \"cinematic-avatar\",\n // Assemble Narrated Video: fits N (clip, voice) blocks into one MP4 → video.\n \"assemble-narrated-video\",\n // Still to Video: one still image + one audio track → MP4 (local FFmpeg,\n // no provider). Emits generatedVideoUrl like every other ffmpeg video node.\n \"still-to-video\",\n // Slideshow: 2-100 stills + one optional audio track → MP4 (local FFmpeg,\n // no provider). Same contract; images arrive via the image-collage lane.\n \"slideshow\",\n // 3D Render Pro: authors a scene AND exports it in one operation, settling\n // with the standard `videoUrl` field. It is a video producer as much as it\n // is a composition producer — omitting it here is the \"cannot connect the\n // outputs\" bug, and its `composition` handle is typed separately.\n \"pro-3d-render\",\n // Video Overlay: timed image layers over a video in one local FFmpeg pass\n // (the base audio copied) — emits a video URL on `video-out`.\n \"video-overlay\",\n // UGC Clip: renders one clip of a UGC video from its ticket — emits a video\n // URL on `video-out` (one per fan-out iteration).\n \"ugc-clip\",\n // UGC Finish: the video's clips, finished, as one ordered list — a registered producer, so a\n // Bundle edge into Combine Videos routes each one as a video, in order.\n \"ugc-finish-clips\",\n], unitProducers(\"video\"))\n\n/**\n * Source node types whose output media-type cannot be classified\n * statically — iterators, dynamic dispatchers, sub-workflow wrappers.\n * The orchestrator decides their actual output type at execution time\n * based on what's wired upstream (loop iterates upstream column type;\n * sub-workflow emits its leaf node's type; adjust-volume passes through\n * video or audio based on its `lastInputType` runtime field;\n * voice-changer emits audio in audio mode, video+audio in video mode).\n *\n * Typed-handle validators (frontend/src/lib/{generate-image,generate-\n * video,ffmpeg}-handles.ts) must include these as acceptors on EVERY\n * media-typed input handle — otherwise the canvas validator hard-\n * rejects edges that the orchestrator would happily route at runtime.\n *\n * Lifted here from `frontend/src/lib/ffmpeg-handles.ts` (where the\n * escape hatch was first added) so the same set drives ALL handle\n * validators uniformly. Adding a new dynamic-output node type means\n * one edit here instead of N across sibling validator files.\n *\n * Intentionally OMITTED:\n * - `webhook-trigger` / `schedule-trigger` — their outputs are\n * user-defined JSON shapes, not media URLs. Accepting them as\n * media producers creates false-positive drops at the canvas\n * that fail at execution. Users wanting trigger → media flows\n * should wire through an upload node.\n */\nexport const DYNAMIC_PRODUCER_TYPES: ReadonlySet<string> = composeUnitSet(\"DYNAMIC_PRODUCER_TYPES\", [\n \"list\",\n \"sub-workflow\",\n \"adjust-volume\",\n // Pitch & Tempo: audio in → audio out, video in → video out (picture\n // copied). Dual-mode like adjust-volume; stays in AUDIO_PRODUCER_TYPES as\n // its default.\n \"pitch-tempo\",\n // Dual-mode: audio in → audio out; video in → video out (+ revoiced audio).\n // Listed here so canvas validators accept its output on BOTH audio and video\n // input handles (it also stays in AUDIO_PRODUCER_TYPES as its default).\n \"voice-changer\",\n // voice-changer-pro (renamed from voice-recast in #3581) is a behavioral\n // twin of voice-changer — identical dual-mode output. Must mirror it in\n // EVERY producer set or its outputs can't connect (was the \"cannot connect\n // the outputs of voice-changer-pro\" bug). Guarded by producer-types.test.ts.\n \"voice-changer-pro\",\n // Dubbing joined the dual-mode family with the full-surface upgrade:\n // audio in → dubbed audio; video in (or a video sourceUrl) → dubbed VIDEO\n // (+ audio sidecar). Same wiring contract as voice-changer; stays in\n // AUDIO_PRODUCER_TYPES as its default. Explicitly asserted in\n // producer-types.test.ts (the suite does not fail on omission).\n \"dubbing\",\n \"reduce\",\n // Dual-output time chunker (UI label \"Split into Chunks\"; type id stays\n // \"split-media\"): video in → video chunks, audio in → audio chunks — two\n // independent lanes on two output handles. Like voice-changer, the canvas\n // validator only sees the source NODE type, not which handle a wire leaves,\n // so it lives here to be accepted on BOTH audio and video input handles. The\n // backend routes the correct lane by sourceHandle in getPrimaryOutput\n // (output-extractor.ts); the frontend does so in extractNodeOutput.\n \"split-media\",\n // apply-edl renders an EDL into ONE media output whose type is decided at\n // run time by the node's `output` setting (video OR audio) — so its static\n // medium is genuinely unknown and it belongs here, letting canvas validators\n // accept its default media handle on BOTH audio and video input handles. It\n // ALSO emits a fixed `json` handle (the remapped Transcript); that half lives\n // in JSON_PRODUCER_TYPES (frontend/src/lib/data-handles.ts). The FIRST node\n // with both a dynamic media handle and a fixed json handle. Because\n // getOutputType (presentation-utils.ts) deliberately returns \"data\" for\n // DYNAMIC members, apply-edl is ALSO added to the literal VIDEO_OUTPUT_TYPES\n // there so a published app renders the cut as video, mirroring the\n // voice-changer/dubbing precedent. Asserted in producer-types.test.ts (the\n // suite does not fail on omission).\n \"apply-edl\",\n], unitProducers(\"dynamic\"))\n\n/**\n * Source node types whose primary output is an audio URL.\n * Mirrors the backend execution-graph AUDIO_SOURCE_TYPES verbatim.\n */\nexport const AUDIO_PRODUCER_TYPES: ReadonlySet<string> = composeUnitSet(\"AUDIO_PRODUCER_TYPES\", [\n \"text-to-speech\",\n \"text-to-audio\",\n \"generate-music\",\n \"upload-audio\",\n \"suno-generate\",\n \"suno-cover\",\n \"suno-extend\",\n \"suno-separate\",\n \"audio-separation\",\n \"suno-mashup\",\n \"suno-replace-section\",\n \"suno-add-instrumental\",\n \"suno-add-vocals\",\n \"suno-convert-wav\",\n \"suno-upload-extend\",\n \"trim-audio\",\n \"mix-audio\",\n \"combine-audio\",\n \"adjust-volume\",\n \"audio-fx\",\n \"pitch-tempo\",\n \"reference-audio\",\n \"audio-isolation\",\n \"text-to-dialogue\",\n \"voice-changer\",\n // Twin of voice-changer (see DYNAMIC_PRODUCER_TYPES note). Audio is its\n // default output mode; video mode is handled via DYNAMIC membership.\n \"voice-changer-pro\",\n \"dubbing\",\n \"voice-remix\",\n \"voice-design\",\n // Extract Audio: demuxes a video's audio track to a standalone MP3.\n \"extract-audio\",\n], unitProducers(\"audio\"))\n\n/**\n * Source node types whose output is an IMAGE URL — what feeds a References\n * input. ONE set for the canvas validators (`frontend/src/lib/\n * generate-image-handles.ts` re-exports it), the backend's Generate Image\n * handle migration and the MCP edge normalizer (`llm-chat`'s legacy `in`):\n * they used to keep separate copies, and the backend's lagged by eight types.\n */\nexport const IMAGE_PRODUCER_TYPES: ReadonlySet<string> = composeUnitSet(\"IMAGE_PRODUCER_TYPES\", [\n \"upload-image\", \"generate-image\", \"edit-image\", \"image-to-image\", \"modify-image\", \"upscale-image\", \"remove-background\",\n // extract-frame produces a single still image extracted from a video source.\n \"extract-frame\",\n // generate-mask emits the source image AND a mask PNG; its `image` source\n // pip is the passthrough (the same image as the input).\n \"generate-mask\",\n // paint-mask emits the hand-painted mask PNG (a plain image at runtime).\n // Membership is what makes mask targets accept it — mask is an advisory\n // color, not a gated type.\n \"paint-mask\",\n // reference-sheet's `sheet` is one composited image and `panels` carries\n // clean reference images; both resolve to image URLs at runtime.\n \"reference-sheet\",\n // reference-board's `image` pip emits a real generated board image.\n \"reference-board\",\n // image-collage composites N images → ONE image.\n \"image-collage\",\n // image-overlay places layers on a base → ONE image.\n \"image-overlay\",\n // 3D Render Pro's `stills` handle carries one PNG per shot of the exported\n // composition (spread into referenceImageUrls like reference-sheet\n // `panels`). A validator sees only the source NODE type, so this also makes\n // its `video` pip droppable on an image input — the handle-blind trade\n // reference-sheet and split-media already make; the input resolvers route\n // by handle, so only `stills` becomes an image at runtime. Deliberately NOT\n // in IMAGE_SOURCE_TYPES on either engine: that set types the node's PRIMARY\n // asset, and 3D Render Pro's is the MP4.\n \"pro-3d-render\",\n], unitProducers(\"image\"))\n\n/**\n * Source node types whose primary output is a LIST that, by default, fans out\n * one downstream execution per element when an edge leaves them WITHOUT an\n * explicit `outputMode` (all other edges default to \"last\"). `selector` is\n * included because its picked/rest channels are lists too.\n *\n * Single source of truth for the fan-out \"each\" default, consumed by:\n * - backend/src/services/workflow-engine/input-resolver.ts (DEFAULT_EACH_TYPES)\n * - frontend/src/components/editor/workflow-editor/types.ts (FAN_OUT_EACH_TYPES)\n * - frontend/src/components/editor/workflow-editor/node-input-resolver.ts\n *\n * These three previously kept independent copies; the backend copy drifted\n * (missing the four list-transform types), so server-side workflow runs\n * silently dropped all-but-the-first item for filter-list / deduplicate /\n * merge-lists / sort-list sources while the canvas fanned out N ways. Lifting\n * the set here makes that drift impossible.\n */\nexport const FAN_OUT_EACH_TYPES: ReadonlySet<string> = new Set([\n \"list\",\n \"split-text\",\n \"filter-list\",\n \"deduplicate\",\n \"merge-lists\",\n \"sort-list\",\n \"selector\",\n // edit-plan `clips` mode emits a bare `Edl[]` on `data.generatedJson`, so an\n // edge leaving it defaults to \"each\" — one downstream execution (typically an\n // apply-edl render) per clip. The `tighten`/`chapters` modes emit an OBJECT,\n // for which the list extractors return undefined, so an \"each\" edge falls back\n // to the scalar `edl` value (no fan-out) — the same graceful degradation\n // web-scrape relies on. See `unwrapEditPlanOutput` in `edit-plan-contract.ts`.\n \"edit-plan\",\n // Content Ideas emits one creative brief per idea on `listResults`, so an\n // edge leaving it defaults to \"each\" — the node after it (typically\n // Generate Script) runs once per idea, on the server too.\n \"content-ideas\",\n])\n\n/**\n * Per-HANDLE \"each\" defaults, for a node whose outputs differ in kind: on the\n * `each` handles an edge without an explicit `outputMode` defaults to \"each\",\n * on its other handles to \"last\". `primary` is the handle an edge with no\n * `sourceHandle` reads (agent-written workflow JSON often omits it).\n *\n * The list an \"each\" edge reads is the node's per-iteration results\n * (`listResults`) — it exists only when the node itself ran once per item, so\n * after a single run the edge degrades to the single value, exactly like a\n * `FAN_OUT_EACH_TYPES` member with one item.\n *\n * Its hand-written rows ∪ the node units' rows (`contract.fanOutEach`,\n * generated/unit-contracts.ts); a type in both refuses to load.\n */\nexport const FAN_OUT_EACH_HANDLES: Readonly<Record<string, { readonly each: readonly string[]; readonly primary: string }>> = composeUnitRecord(\"FAN_OUT_EACH_HANDLES\", {\n // Camera Switch run once per clip (Edit Plan in clips mode): each clip's\n // switched EDL is its own Apply EDL render. Its transcript is the same for\n // every clip (the master clock, renamed), so that handle stays one value\n // (decided 2026-10-04).\n \"camera-switch\": { each: [\"edl\"], primary: \"edl\" },\n // UGC Clips: one ticket per clip on `clips` (each); `plan-out` and\n // `transcript` carry one value. Not a FAN_OUT_EACH_TYPES member — every\n // handle of such a member would fan out. Its one run writes the tickets as\n // its list (`listResults`, the editor's `__listResults`). The pip an edge\n // with no handle reads is the UGC wires' own (UGC_PRIMARY_HANDLE).\n \"ugc-clips\": { each: [\"clips\"], primary: UGC_PRIMARY_HANDLE[\"ugc-clips\"]! },\n // A node unit declares its row in unit.json (contract.fanOutEach); it is added after these.\n}, unitFanOutEach())\n\n/**\n * Fan-out nodes whose iterations must ALL succeed: one failed item fails the\n * node (today's rule tolerates a partial list). UGC Clip — a missing clip\n * silently drops a beat from the script (spec R17). Already-started items\n * finish and settle; their jobs are reused on the next run.\n */\nexport const FAN_OUT_ALL_OR_NOTHING_TYPES: ReadonlySet<string> = new Set([\"ugc-clip\"])\n\n/**\n * Nodes whose saved list is the list their last run PRODUCED — `__listResults`\n * (Extract Field's JSON value on `generatedJson`) — and never a history in\n * `generatedResults`: Extract Field, JSON Process and Site Capture. No run of the first two writes\n * one; earlier builds' server runs did (the run's text, the links of a list of\n * links), and both engines' list readers leave it out for these two (decided\n * 2026-10-05). Single source of truth for the backend engine and the editor.\n */\nexport const OWN_LIST_NODE_TYPES: ReadonlySet<string> = new Set([\n \"extract-field\",\n \"json-process\",\n // Site Capture: its stills, in page order — the last capture's, never every capture's (site-capture-node.ts).\n \"site-capture\",\n])\n\n/** Whether a node's saved list is its own `__listResults`, never a history. */\nexport function ownsItsList(nodeType: string | null | undefined): boolean {\n return typeof nodeType === \"string\" && OWN_LIST_NODE_TYPES.has(nodeType)\n}\n\n/**\n * The output pips that carry the LIST one run produced — several files on one\n * pip (a node unit's `handles.outputs[].list`: each layer of a split image). An\n * edge leaving one runs the next node once per item by default (\"each\"); a\n * Bundle hands the whole list to a node that takes several. Unlike\n * FAN_OUT_EACH_HANDLES, the list is what ONE run made on that pip, never the\n * node's per-iteration results. An edge naming no pip reads the node's primary\n * output, which is never a list pip (tools/units/json-output-rules.mjs).\n * Node units only (generated/unit-contracts.ts UNIT_LIST_PIPS).\n */\nexport const LIST_OUTPUT_HANDLES: Readonly<Record<string, readonly string[]>> = composeUnitRecord(\"LIST_OUTPUT_HANDLES\", {}, unitListPips())\n\n/** Whether an edge leaving `sourceHandle` of a `sourceType` node carries a list one run produced (LIST_OUTPUT_HANDLES). */\nexport function isListOutputHandle(\n sourceType: string | null | undefined,\n sourceHandle: string | null | undefined,\n): boolean {\n if (typeof sourceType !== \"string\" || typeof sourceHandle !== \"string\" || !Object.hasOwn(LIST_OUTPUT_HANDLES, sourceType)) return false\n return LIST_OUTPUT_HANDLES[sourceType]!.includes(sourceHandle)\n}\n\n/** The `outputMode` an edge has when none is set on it — the ONE rule both\n * engines, the credit estimate and the editor read. */\nexport function defaultEdgeOutputMode(\n sourceType: string | null | undefined,\n sourceHandle: string | null | undefined,\n): \"each\" | \"last\" {\n if (typeof sourceType !== \"string\") return \"last\"\n if (FAN_OUT_EACH_TYPES.has(sourceType)) return \"each\"\n if (isListOutputHandle(sourceType, sourceHandle)) return \"each\"\n const entry = FAN_OUT_EACH_HANDLES[sourceType]\n if (!entry) return \"last\"\n return entry.each.includes(sourceHandle || entry.primary) ? \"each\" : \"last\"\n}\n\n/** Whether an edge from `sourceHandle` reads the node's per-iteration results\n * (`listResults` — each iteration's PRIMARY output). False on the other\n * handles of a `FAN_OUT_EACH_HANDLES` node: Camera Switch's transcript is one\n * value, never the list of switched EDLs, whatever mode its edge is set to. */\nexport function listResultsServeHandle(\n sourceType: string | null | undefined,\n sourceHandle: string | null | undefined,\n): boolean {\n const entry = typeof sourceType === \"string\" ? FAN_OUT_EACH_HANDLES[sourceType] : undefined\n return !entry || entry.each.includes(sourceHandle || entry.primary)\n}\n\n/**\n * FAN-IN targets: nodes that FOLD everything wired into them into ONE run,\n * instead of running once per upstream item. Keyed by node type; the value\n * names the target handles that fold (`\"*\"` = every handle). An edge into any\n * other handle of such a node is routed normally — Content Ideas folds its\n * recipes but reads its brand from a `field-brand` wire like any field.\n *\n * Single source of truth for both engines' input resolvers (the backend and\n * the editor each used to keep a private `new Set([\"reduce\"])`). A fan-in\n * node is never itself fanned out by an upstream list.\n */\nexport const FAN_IN_TARGETS: Readonly<Record<string, \"*\" | readonly string[]>> = {\n // Choose Best — every wire is a candidate.\n reduce: \"*\",\n // Content Ideas — one or more recipes, from several Content Recipe nodes\n // and/or one that ran once per post.\n \"content-ideas\": [\"recipes\"],\n // Telegram Reply — one message per run, whatever is wired into its text\n // input: a list (or a writer that ran once per item) arrives as one\n // message, never as a burst of sends to the owner's chat.\n \"telegram-account-send\": [\"in\"],\n // The list operators — they READ the whole list wired into them (their\n // executors collect every upstream item themselves) and emit a list. Run\n // once per item by an \"each\" wire (a Split Text, a List, a node that ran per\n // item), every iteration saw the same whole list and answered with its\n // first match: a Filter List fed 11 stories handed 11 copies of story one\n // downstream, and every paid stage after it ran 11 times on it\n // (2026-10-06). A list operator is never fanned out, on any wire.\n \"filter-list\": \"*\",\n deduplicate: \"*\",\n \"merge-lists\": \"*\",\n \"sort-list\": \"*\",\n selector: \"*\",\n // Speaker Frames on a clip pack (P3-24 (a), decided 2026-10-06): ONE run over\n // the union of the clips' spans — the pack's EDLs fold onto its `edl` wire\n // instead of running one detection job (and one minimum charge) per clip.\n \"speaker-frames\": [\"edl\"],\n // UGC Finish: ONE run over every clip of the video, in clip order — the finish plans its\n // cut and its sound over all of them at once, so it is never run once per clip.\n \"ugc-finish-clips\": [\"clips\"],\n}\n\nexport function isFanInNodeType(nodeType: string | undefined | null): boolean {\n return typeof nodeType === \"string\" && Object.prototype.hasOwnProperty.call(FAN_IN_TARGETS, nodeType)\n}\n\n/** True when an edge into `targetHandle` of a `targetType` node is folded.\n * An edge with NO target handle (workflow JSON written by an agent often\n * omits it) lands on the node's primary input, which is the folding one. */\nexport function isFanInEdge(targetType: string | undefined | null, targetHandle: string | null | undefined): boolean {\n if (!isFanInNodeType(targetType)) return false\n const spec = FAN_IN_TARGETS[targetType as string]!\n if (spec === \"*\") return true\n return targetHandle == null || targetHandle === \"\" || spec.includes(targetHandle)\n}\n","/**\n * UI-default fills for the unified video nodes — the ONE source of truth shared\n * by the backend DAG payload builder, the config-panel fail-safe snaps and the\n * node's hover/run strip.\n *\n * Several config panels RENDER a default without persisting it to node data, so\n * an untouched node submits `aspectRatio` / `resolution` undefined and the\n * enqueued job row (and the /v1/jobs echo) then disagrees with what actually\n * renders. Worse, the panels' generic snap writes `resolutions[0]` for a stale\n * value, which is the CHEAPEST tier under the repo's ascending-resolution\n * convention — not necessarily the tier the model renders and bills.\n *\n * These helpers were local to `backend/src/services/workflow-engine/payload-builder.ts`\n * until the Wan 3.0 launch gave the platform its first provider whose declared\n * billing default differs from `resolutions[0]`; three surfaces then had to\n * agree, so they live here.\n *\n * The resolution fill is per-family ON PURPOSE. Wan 3.0 (and Vidu Q4, whose\n * ascending list starts at 540p) reads its DECLARED\n * billing default (PRICING_DEFAULT_RESOLUTION = 720p) because its catalog list\n * is ascending, so an index-0 fill would write 480p — a tier both `runWan3`\n * (which renders 720P) and the credit identifier (which bills the 720p row)\n * disagree with. The Seedance family keeps its historical first-catalog-tier\n * fill, deliberately: switching it to PRICING_DEFAULT_RESOLUTION would reprice\n * live seedance-2-5 runs, whose declared default (720p) differs from the 480p\n * this has always filled. That 480p-fill vs 720p-billing-default divergence on\n * seedance-2-5 is a KNOWN pre-existing gap, out of scope here — do not \"align\"\n * the branches without repricing it deliberately.\n */\n\nimport {\n PRICING_DEFAULT_RESOLUTION,\n isSeedance2Provider,\n isMinimaxH3Provider,\n isWan3Provider,\n isViduQ4Provider,\n isKling4RunnerProvider,\n isGeminiOmniProvider,\n isGeminiOmniPerSecondProvider,\n isPixverseV6MaxProvider,\n} from \"./model-constants.js\"\nimport { MODEL_CATALOG } from \"./model-catalog.js\"\n\n/** `adaptive` is the aspect default for Seedance 2, MiniMax H3 and Wan 3.0. */\nexport function uiAspectRatioFill(provider: string): string | undefined {\n if (isSeedance2Provider(provider) || isMinimaxH3Provider(provider) || isWan3Provider(provider)) return \"adaptive\"\n // Kling 4.0 (and Flash): `auto` follows the materials (frames / references)\n // and renders 16:9 with none — KIE's own default when the field is omitted.\n // Flash's keyframe endpoint has no `auto`, but it runs only with a start\n // frame, where the ratio is never sent (the clip follows the frame).\n if (isKling4RunnerProvider(provider)) return \"auto\"\n return undefined\n}\n\n/** See the file docstring — per-family on purpose; never a generic\n * PRICING_DEFAULT_RESOLUTION read (that would reprice seedance-2-5). */\nexport function uiResolutionFill(provider: string): string | undefined {\n if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4RunnerProvider(provider) || isGeminiOmniPerSecondProvider(provider) || isPixverseV6MaxProvider(provider)) return PRICING_DEFAULT_RESOLUTION[provider]\n if (isSeedance2Provider(provider)) return MODEL_CATALOG[provider]?.resolutions?.[0]\n return undefined\n}\n\n/**\n * Duration the node RENDERS and BILLS when `data.duration` is unset, for the\n * families whose credit identifier declares a duration fallback that is NOT\n * `durations[0]`. Wan 3.0's bare identifier is the 5s tier while its ladder\n * starts at 2s; Vidu Q4's is the 5s tier while its ladder starts at 3s;\n * PixVerse V6 Max's is the 5s tier while its ladder starts at 1s; the\n * Gemini Omni family's is the 8s tier while its ladder starts at 4s. Everyone else falls back to the first listed duration, so this returns\n * undefined and the caller keeps `durations[0]`.\n */\nexport function uiDurationFill(provider: string): number | undefined {\n if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4RunnerProvider(provider) || isPixverseV6MaxProvider(provider)) return 5\n if (isGeminiOmniProvider(provider)) return 8\n return undefined\n}\n"]}
|
|
@@ -344,6 +344,54 @@ var LLM_MODELS = [
|
|
|
344
344
|
// ended early (one declined the task, one stopped on RECITATION).
|
|
345
345
|
thinkingDefaultOn: true
|
|
346
346
|
},
|
|
347
|
+
{
|
|
348
|
+
id: "gemini-4-carbon",
|
|
349
|
+
displayName: "Gemini 4 Carbon",
|
|
350
|
+
series: "Gemini",
|
|
351
|
+
desc: "Deepest-reasoning Gemini, 1M context",
|
|
352
|
+
tier: "premium",
|
|
353
|
+
kieFormat: "chat-completions",
|
|
354
|
+
// KIE serves it on the OpenAI-compatible dialect under this slug
|
|
355
|
+
// (docs.kie.ai/market/gemini/gemini-4-carbon-openai — Argon's page with the
|
|
356
|
+
// name swapped). Unlike Argon's, this lane passed its probe (2026-11-12):
|
|
357
|
+
// every call answered, images read, a stream ended cleanly, no empty 200,
|
|
358
|
+
// no negative counts, no code-execution fences. KIE flags it "Chat only",
|
|
359
|
+
// like Argon: it may not back a tool-loop feature (none does today).
|
|
360
|
+
kieSlugOrModel: "gemini-4-carbon-openai",
|
|
361
|
+
vendor: "google",
|
|
362
|
+
// NO trusted `structuredOutputMode` (decided 2026-11-12): KIE did NOT
|
|
363
|
+
// enforce a `response_format` json_schema — both probe calls came back as
|
|
364
|
+
// JSON holding an off-enum value in the enum field ("cheerful and
|
|
365
|
+
// energized" for happy | sad). So it is not a STRUCTURED_VISION_MODELS
|
|
366
|
+
// member (not offered by describe-to-picker), and every answer is parsed,
|
|
367
|
+
// validated and re-asked by `llmCompleteStructured`.
|
|
368
|
+
// The schema still goes on the wire, as a hint (`structuredOutputHint`): as
|
|
369
|
+
// `response_format` on KIE (the probe's replies followed its shape, only the
|
|
370
|
+
// enum slipped) and as `responseJsonSchema` on the direct Google lane,
|
|
371
|
+
// which enforced it in the probe — on every attempt, the re-ask included.
|
|
372
|
+
structuredOutputHint: "kie-response-format",
|
|
373
|
+
supportsImages: true,
|
|
374
|
+
// The registry's usual 16384, as Argon. Every call is floored to the
|
|
375
|
+
// default 32768 (`thinkingDefaultOn`, below): Google lists an output cap of
|
|
376
|
+
// 32,768 (models.list) and accepted maxOutputTokens 65536; KIE's doc
|
|
377
|
+
// states up to 65,536 tokens, thinking included.
|
|
378
|
+
maxOutputTokens: 16384,
|
|
379
|
+
// KIE first, Google as the reliability fallback (and Advanced mode) — no
|
|
380
|
+
// `preferDirect`, no `directOnly`. Google serves `models/gemini-4-carbon`
|
|
381
|
+
// beside Argon (models.list, 2026-11-12).
|
|
382
|
+
directGeminiModel: "gemini-4-carbon",
|
|
383
|
+
// KIE's documented `reasoning_effort` enum, and the direct lane's ladder
|
|
384
|
+
// too: Google 400s thinkingLevel MINIMAL on this model ("not supported")
|
|
385
|
+
// and answers LOW / MEDIUM / HIGH (probed 2026-11-12) — Argon's shape. So
|
|
386
|
+
// no `none` (it maps to MINIMAL in the direct client) and no
|
|
387
|
+
// `directReasoningEfforts`: a `none` request clamps to Auto on both lanes.
|
|
388
|
+
reasoningEfforts: ["low", "medium", "high"],
|
|
389
|
+
// Reasons with no thinking param sent on both lanes: KIE's `total_tokens`
|
|
390
|
+
// ran well past prompt + completion on every no-effort call (its dialect
|
|
391
|
+
// reports no reasoning split), and Google's no-level call reported thought
|
|
392
|
+
// tokens. No `reasoningOutputFloor`: both lanes take the default 32768.
|
|
393
|
+
thinkingDefaultOn: true
|
|
394
|
+
},
|
|
347
395
|
{
|
|
348
396
|
id: "claude-opus-4.7",
|
|
349
397
|
displayName: "Claude Opus 4.7",
|
|
@@ -587,6 +635,43 @@ var LLM_MODELS = [
|
|
|
587
635
|
supportsTemperature: false,
|
|
588
636
|
thinkingDefaultOn: true
|
|
589
637
|
},
|
|
638
|
+
{
|
|
639
|
+
id: "gpt-6.1-terra",
|
|
640
|
+
displayName: "GPT-6.1 Terra",
|
|
641
|
+
series: "GPT",
|
|
642
|
+
desc: "Fast, efficient GPT-6.1, sharp visual reasoning",
|
|
643
|
+
tier: "standard",
|
|
644
|
+
kieFormat: "responses",
|
|
645
|
+
// The GPT-6 wire (codex/v1/responses, derived from `vendor`); KIE's doc is
|
|
646
|
+
// 6.1 Sol's page with the name swapped and `none` added to the effort enum.
|
|
647
|
+
// Live-probed 2026-11-12: non-stream 16/16, `text.format` json_schema
|
|
648
|
+
// ENFORCED (asked for prose, it returned schema JSON with the enum
|
|
649
|
+
// honoured), data-URI vision, SSE deltas. Unlike luna / sol / 6.1 sol it
|
|
650
|
+
// reports REAL top-level `usage.input_tokens` — see `kieInputUntrusted` in
|
|
651
|
+
// backend/src/lib/llm/kie-cost.ts.
|
|
652
|
+
//
|
|
653
|
+
// KIE's endpoint adds its own instructions to every call and counts them as
|
|
654
|
+
// input. The hold and the estimate count them too
|
|
655
|
+
// (backend/src/lib/pricing/llm-cost.ts, `llmLaneAddedInputTokens`). They
|
|
656
|
+
// were several times larger with an effort sent on the morning of
|
|
657
|
+
// 2026-11-12 and the same size either way by that afternoon, so its price
|
|
658
|
+
// does not depend on the effort: not `effortPriced` (re-measure if KIE's
|
|
659
|
+
// reported input jumps again).
|
|
660
|
+
kieSlugOrModel: "gpt-6-1-terra",
|
|
661
|
+
vendor: "openai",
|
|
662
|
+
structuredOutputMode: "responses-json-schema",
|
|
663
|
+
supportsImages: true,
|
|
664
|
+
maxOutputTokens: 16384,
|
|
665
|
+
// NO `none` (decided 2026-11-12): KIE answers it, but a `none` sent on the
|
|
666
|
+
// wire is answered as an effort (it echoed `medium`) while reasoning no
|
|
667
|
+
// more than Auto. Clamping maps a `none` request to nothing sent (Auto).
|
|
668
|
+
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
669
|
+
// Same doc as 6.1 Sol: no temperature lever.
|
|
670
|
+
supportsTemperature: false
|
|
671
|
+
// NO `thinkingDefaultOn`: with no effort sent (and at low / medium / high)
|
|
672
|
+
// the probe reported 0 reasoning tokens; only xhigh (8) and max (27)
|
|
673
|
+
// reasoned, and those already floor the cap (`raiseToReasoningFloor`).
|
|
674
|
+
},
|
|
590
675
|
{
|
|
591
676
|
id: "grok-4.6",
|
|
592
677
|
displayName: "Grok 4.6",
|
|
@@ -816,12 +901,49 @@ var LLM_MODELS = [
|
|
|
816
901
|
// KIE's documented enum. The endpoint accepted xhigh/none without error but
|
|
817
902
|
// never echoes an effort back, so nothing beyond the doc is verifiable.
|
|
818
903
|
reasoningEfforts: ["low", "medium", "high"],
|
|
904
|
+
// Decided 2026-11-12: a request below `low` (`none`) is sent as `low`,
|
|
905
|
+
// never as nothing — KIE runs Kimi at its highest level when no effort is
|
|
906
|
+
// sent (K3.1 Pro's no-effort replies echoed `max`). Auto still sends nothing.
|
|
907
|
+
effortBelowLowestSendsLowest: true,
|
|
819
908
|
// The doc lists no `temperature` field at all.
|
|
820
909
|
supportsTemperature: false,
|
|
821
910
|
// "Reasons by default" per KIE's doc (its usage reports no reasoning-token
|
|
822
911
|
// split, so this is the doc's word, not a measurement).
|
|
823
912
|
thinkingDefaultOn: true
|
|
824
913
|
},
|
|
914
|
+
{
|
|
915
|
+
id: "kimi-k3.1-pro",
|
|
916
|
+
displayName: "Kimi K3.1 Pro",
|
|
917
|
+
series: "Kimi",
|
|
918
|
+
desc: "Kimi tuned for coding and research, 1M context",
|
|
919
|
+
tier: "premium",
|
|
920
|
+
kieFormat: "responses",
|
|
921
|
+
// Same openai/v1/responses family path and wire as kimi-k3 (KIE's doc is
|
|
922
|
+
// K3's page with the name and the effort enum changed). Live-probed
|
|
923
|
+
// 2026-11-12: non-stream 9/9, `text.format` json_schema ENFORCED (asked for
|
|
924
|
+
// prose, it returned schema JSON with the enum honoured), data-URI vision,
|
|
925
|
+
// real `usage.input_tokens` and `credits_consumed`. Its stream sends
|
|
926
|
+
// `response.reasoning_text.delta` frames apart from the
|
|
927
|
+
// `response.output_text.delta` ones, and only the latter are the answer.
|
|
928
|
+
kieSlugOrModel: "kimi-k3-1-pro",
|
|
929
|
+
vendor: "moonshot",
|
|
930
|
+
structuredOutputMode: "responses-json-schema",
|
|
931
|
+
supportsImages: true,
|
|
932
|
+
maxOutputTokens: 16384,
|
|
933
|
+
// KIE's documented enum (K3's was low / medium / high). Each level was
|
|
934
|
+
// echoed back. An off-enum `medium` answered too (echoed as `high`), so it
|
|
935
|
+
// is not offered: a `medium` request clamps down to `low`.
|
|
936
|
+
reasoningEfforts: ["low", "high", "max"],
|
|
937
|
+
// Decided 2026-11-12: a request below `low` (`none`) is sent as `low`,
|
|
938
|
+
// never as nothing — with no effort sent KIE runs it at `max` (the probe's
|
|
939
|
+
// no-effort replies echoed `max`). Auto still sends nothing.
|
|
940
|
+
effortBelowLowestSendsLowest: true,
|
|
941
|
+
// The doc lists no `temperature` field at all, as K3's.
|
|
942
|
+
supportsTemperature: false,
|
|
943
|
+
// Measured: every probe call reported reasoning tokens (20 to 163), the
|
|
944
|
+
// no-effort ones included (they echoed effort `max`).
|
|
945
|
+
thinkingDefaultOn: true
|
|
946
|
+
},
|
|
825
947
|
{
|
|
826
948
|
id: "deepseek-v4.1-flash",
|
|
827
949
|
displayName: "DeepSeek V4.1 Flash",
|
|
@@ -858,6 +980,14 @@ function pickableLlmModels(currentId) {
|
|
|
858
980
|
var STRUCTURED_VISION_MODELS = LLM_MODELS.filter(
|
|
859
981
|
(m) => m.supportsImages && m.structuredOutputMode != null
|
|
860
982
|
);
|
|
983
|
+
function structuredWireMode(model) {
|
|
984
|
+
return model.structuredOutputMode ?? model.structuredOutputHint;
|
|
985
|
+
}
|
|
986
|
+
function llmSendsSchema(modelId, feature) {
|
|
987
|
+
const id = modelId || (feature ? LLM_FEATURE_DEFAULTS[feature] : void 0);
|
|
988
|
+
const model = id ? getLlmModel(id) : void 0;
|
|
989
|
+
return !model || structuredWireMode(model) !== void 0;
|
|
990
|
+
}
|
|
861
991
|
var DESCRIBE_TO_PICKER_WITHHELD_MODELS = /* @__PURE__ */ new Set();
|
|
862
992
|
var LLM_STRUCTURED_WITHHELD_MODELS = DESCRIBE_TO_PICKER_WITHHELD_MODELS;
|
|
863
993
|
var DESCRIBE_TO_PICKER_MODELS = STRUCTURED_VISION_MODELS.filter(
|
|
@@ -972,6 +1102,12 @@ var LLM_MODALITY_CAPS = {
|
|
|
972
1102
|
// video-analysis tier + pricing decision. That waits on a Video Analysis
|
|
973
1103
|
// bake-off; flip these two flags ONLY together with its outcome.
|
|
974
1104
|
"gemini-4-argon": { image: true, video: false, audio: false },
|
|
1105
|
+
// gemini-4-carbon is IMAGE-ONLY for now, by decision (2026-11-12): the model
|
|
1106
|
+
// reads video and audio, but full caps would auto-enroll it in
|
|
1107
|
+
// VIDEO_ANALYSIS_LLM_MODELS (derived below). Its video + audio input comes in
|
|
1108
|
+
// a follow-up change that also decides its Video Analysis enrolment; flip
|
|
1109
|
+
// these two flags ONLY together with that.
|
|
1110
|
+
"gemini-4-carbon": { image: true, video: false, audio: false },
|
|
975
1111
|
"claude-haiku-4.5": { image: true, video: false, audio: false },
|
|
976
1112
|
"claude-haiku-5.5": { image: true, video: false, audio: false },
|
|
977
1113
|
"claude-sonnet-4.6": { image: true, video: false, audio: false },
|
|
@@ -988,6 +1124,8 @@ var LLM_MODALITY_CAPS = {
|
|
|
988
1124
|
"gpt-6-luna": { image: true, video: false, audio: false },
|
|
989
1125
|
"gpt-6-sol": { image: true, video: false, audio: false },
|
|
990
1126
|
"gpt-6.1-sol": { image: true, video: false, audio: false },
|
|
1127
|
+
// KIE's doc also takes files (PDFs, documents); that input is not wired here.
|
|
1128
|
+
"gpt-6.1-terra": { image: true, video: false, audio: false },
|
|
991
1129
|
"grok-4.6": { image: true, video: false, audio: false },
|
|
992
1130
|
"grok-4.7": { image: true, video: false, audio: false },
|
|
993
1131
|
"claude-sonnet-5": { image: true, video: false, audio: false },
|
|
@@ -998,6 +1136,7 @@ var LLM_MODALITY_CAPS = {
|
|
|
998
1136
|
"claude-fable-5": { image: true, video: false, audio: false },
|
|
999
1137
|
// KIE documents text + image input only for both.
|
|
1000
1138
|
"kimi-k3": { image: true, video: false, audio: false },
|
|
1139
|
+
"kimi-k3.1-pro": { image: true, video: false, audio: false },
|
|
1001
1140
|
"deepseek-v4.1-flash": { image: true, video: false, audio: false }
|
|
1002
1141
|
};
|
|
1003
1142
|
function getLlmModalityCaps(modelId) {
|
|
@@ -1044,6 +1183,7 @@ function effectiveReasoningEffort(modelId, requested, advanced = false) {
|
|
|
1044
1183
|
for (const l of levels) {
|
|
1045
1184
|
if (EFFORT_RANK[l] <= EFFORT_RANK[req] && (best === void 0 || EFFORT_RANK[l] > EFFORT_RANK[best])) best = l;
|
|
1046
1185
|
}
|
|
1186
|
+
if (best === void 0 && getLlmModel(modelId ?? "")?.effortBelowLowestSendsLowest) return levels[0];
|
|
1047
1187
|
return best;
|
|
1048
1188
|
}
|
|
1049
1189
|
var LLM_ROUTE_DEFAULTS = {
|
|
@@ -1088,7 +1228,26 @@ function llmServesDirect(modelId, reasoningEffort, advancedMode) {
|
|
|
1088
1228
|
function llmPriceKey(feature, modelId, reasoningEffort, advancedMode) {
|
|
1089
1229
|
if (!modelId) throw new TypeError(`llmPriceKey: modelId must be a resolved model id (feature "${feature}")`);
|
|
1090
1230
|
const effort = reasoningEffort ?? defaultReasoningEffort(llmDefaultsFeature(feature), modelId);
|
|
1091
|
-
|
|
1231
|
+
if (llmServesDirect(modelId, effort, advancedMode)) return `${feature}:${modelId}${LLM_PRICE_KEY_DIRECT}`;
|
|
1232
|
+
const sent = getLlmModel(modelId)?.effortPriced ? effectiveReasoningEffort(modelId, effort) : void 0;
|
|
1233
|
+
return sent ? `${feature}:${modelId}${LLM_PRICE_KEY_EFFORT}${sent}` : `${feature}:${modelId}`;
|
|
1234
|
+
}
|
|
1235
|
+
var LLM_PRICE_KEY_DIRECT = ":direct";
|
|
1236
|
+
var LLM_PRICE_KEY_EFFORT = ":effort-";
|
|
1237
|
+
var REGISTRY_MODEL_IDS = new Set(LLM_MODEL_IDS);
|
|
1238
|
+
function parseLlmPriceKeyModel(tail) {
|
|
1239
|
+
if (REGISTRY_MODEL_IDS.has(tail)) return { modelId: tail };
|
|
1240
|
+
if (tail.endsWith(LLM_PRICE_KEY_DIRECT)) {
|
|
1241
|
+
const modelId2 = tail.slice(0, -LLM_PRICE_KEY_DIRECT.length);
|
|
1242
|
+
return REGISTRY_MODEL_IDS.has(modelId2) ? { modelId: modelId2, lane: "direct" } : null;
|
|
1243
|
+
}
|
|
1244
|
+
const at = tail.lastIndexOf(LLM_PRICE_KEY_EFFORT);
|
|
1245
|
+
if (at <= 0) return null;
|
|
1246
|
+
const modelId = tail.slice(0, at);
|
|
1247
|
+
const level = tail.slice(at + LLM_PRICE_KEY_EFFORT.length);
|
|
1248
|
+
const model = REGISTRY_MODEL_IDS.has(modelId) ? getLlmModel(modelId) : void 0;
|
|
1249
|
+
if (!model?.effortPriced || !availableReasoningEfforts(modelId).includes(level)) return null;
|
|
1250
|
+
return { modelId, reasoningEffort: level };
|
|
1092
1251
|
}
|
|
1093
1252
|
var LLM_CREDIT_RUNGS = ["economy", "standard", "premium", "premium-direct"];
|
|
1094
1253
|
function llmCreditIdForRung(feature, rung) {
|
|
@@ -1170,6 +1329,8 @@ exports.LLM_FEATURE_DEFAULT_EFFORTS = LLM_FEATURE_DEFAULT_EFFORTS;
|
|
|
1170
1329
|
exports.LLM_MODALITY_CAPS = LLM_MODALITY_CAPS;
|
|
1171
1330
|
exports.LLM_MODELS = LLM_MODELS;
|
|
1172
1331
|
exports.LLM_MODEL_IDS = LLM_MODEL_IDS;
|
|
1332
|
+
exports.LLM_PRICE_KEY_DIRECT = LLM_PRICE_KEY_DIRECT;
|
|
1333
|
+
exports.LLM_PRICE_KEY_EFFORT = LLM_PRICE_KEY_EFFORT;
|
|
1173
1334
|
exports.LLM_REASONING_EFFORTS = LLM_REASONING_EFFORTS;
|
|
1174
1335
|
exports.LLM_ROUTE_DEFAULTS = LLM_ROUTE_DEFAULTS;
|
|
1175
1336
|
exports.LLM_STRUCTURED_WITHHELD_MODELS = LLM_STRUCTURED_WITHHELD_MODELS;
|
|
@@ -1200,14 +1361,17 @@ exports.llmCreditRung = llmCreditRung;
|
|
|
1200
1361
|
exports.llmDefaultsFeature = llmDefaultsFeature;
|
|
1201
1362
|
exports.llmPriceKey = llmPriceKey;
|
|
1202
1363
|
exports.llmRouteDefaults = llmRouteDefaults;
|
|
1364
|
+
exports.llmSendsSchema = llmSendsSchema;
|
|
1203
1365
|
exports.llmServesDirect = llmServesDirect;
|
|
1204
1366
|
exports.llmTierCreditIds = llmTierCreditIds;
|
|
1205
1367
|
exports.motionGraphicsFeature = motionGraphicsFeature;
|
|
1206
1368
|
exports.orderedLlmModels = orderedLlmModels;
|
|
1369
|
+
exports.parseLlmPriceKeyModel = parseLlmPriceKeyModel;
|
|
1207
1370
|
exports.pickableLlmModels = pickableLlmModels;
|
|
1208
1371
|
exports.reasoningOutputFloor = reasoningOutputFloor;
|
|
1209
1372
|
exports.resolveLlmCreditId = resolveLlmCreditId;
|
|
1210
1373
|
exports.resolveVideoAnalysisModel = resolveVideoAnalysisModel;
|
|
1374
|
+
exports.structuredWireMode = structuredWireMode;
|
|
1211
1375
|
exports.supportsAdvancedMode = supportsAdvancedMode;
|
|
1212
|
-
//# sourceMappingURL=chunk-
|
|
1213
|
-
//# sourceMappingURL=chunk-
|
|
1376
|
+
//# sourceMappingURL=chunk-F6WGGYQW.cjs.map
|
|
1377
|
+
//# sourceMappingURL=chunk-F6WGGYQW.cjs.map
|