@nodaro/shared 3.68.0 → 3.69.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-T4GIHHXY.cjs → chunk-25C2E2GI.cjs} +6 -6
- package/dist/{chunk-T4GIHHXY.cjs.map → chunk-25C2E2GI.cjs.map} +1 -1
- package/dist/{chunk-OXTF4Y3P.cjs → chunk-3AB3YIFM.cjs} +6 -6
- package/dist/{chunk-OXTF4Y3P.cjs.map → chunk-3AB3YIFM.cjs.map} +1 -1
- package/dist/{chunk-BCY3A62O.cjs → chunk-3OHRFSQL.cjs} +51 -49
- package/dist/{chunk-BCY3A62O.cjs.map → chunk-3OHRFSQL.cjs.map} +1 -1
- package/dist/{chunk-GNLA5NTT.cjs → chunk-4IMEJQVQ.cjs} +4 -4
- package/dist/{chunk-GNLA5NTT.cjs.map → chunk-4IMEJQVQ.cjs.map} +1 -1
- package/dist/{chunk-4XR66IWF.cjs → chunk-54E2JO4E.cjs} +51 -22
- package/dist/chunk-54E2JO4E.cjs.map +1 -0
- package/dist/{chunk-HTDKEYMY.cjs → chunk-5EQRIUGI.cjs} +139 -91
- package/dist/chunk-5EQRIUGI.cjs.map +1 -0
- package/dist/{chunk-AT53ZQUC.js → chunk-5WHU7CYE.js} +3 -3
- package/dist/{chunk-AT53ZQUC.js.map → chunk-5WHU7CYE.js.map} +1 -1
- package/dist/{chunk-BNR5FKL5.js → chunk-5ZCZL73I.js} +3 -3
- package/dist/{chunk-BNR5FKL5.js.map → chunk-5ZCZL73I.js.map} +1 -1
- package/dist/{chunk-WZG6GZIL.cjs → chunk-6QJHSN6J.cjs} +4 -4
- package/dist/{chunk-WZG6GZIL.cjs.map → chunk-6QJHSN6J.cjs.map} +1 -1
- package/dist/{chunk-OFQ6CU6S.js → chunk-7EQJIGVT.js} +3 -3
- package/dist/{chunk-OFQ6CU6S.js.map → chunk-7EQJIGVT.js.map} +1 -1
- package/dist/{chunk-XEPKONJC.js → chunk-7OSUEYZ4.js} +3 -3
- package/dist/{chunk-XEPKONJC.js.map → chunk-7OSUEYZ4.js.map} +1 -1
- package/dist/{chunk-3L7GMQ4M.cjs → chunk-7PC2YHBN.cjs} +54 -49
- package/dist/chunk-7PC2YHBN.cjs.map +1 -0
- package/dist/{chunk-BMDOPJBP.cjs → chunk-AGIG5HUU.cjs} +17 -17
- package/dist/{chunk-BMDOPJBP.cjs.map → chunk-AGIG5HUU.cjs.map} +1 -1
- package/dist/{chunk-5LWYX4GV.js → chunk-AH6OQXLW.js} +3 -3
- package/dist/{chunk-5LWYX4GV.js.map → chunk-AH6OQXLW.js.map} +1 -1
- package/dist/{chunk-BHL7TAQO.js → chunk-BDW25A7Y.js} +32 -9
- package/dist/chunk-BDW25A7Y.js.map +1 -0
- package/dist/{chunk-5J2LIQYU.js → chunk-DE55SA2X.js} +5 -5
- package/dist/{chunk-5J2LIQYU.js.map → chunk-DE55SA2X.js.map} +1 -1
- package/dist/{chunk-VBP4DH37.js → chunk-DNWFFVC6.js} +130 -15
- package/dist/chunk-DNWFFVC6.js.map +1 -0
- package/dist/{chunk-MVXZP6VB.js → chunk-FUYBUT65.js} +97 -2
- package/dist/chunk-FUYBUT65.js.map +1 -0
- package/dist/{chunk-SW5ZD7BO.js → chunk-G6AOKNAY.js} +3 -3
- package/dist/{chunk-SW5ZD7BO.js.map → chunk-G6AOKNAY.js.map} +1 -1
- package/dist/{chunk-EFYWV2V5.cjs → chunk-I6TBKTW3.cjs} +61 -61
- package/dist/{chunk-EFYWV2V5.cjs.map → chunk-I6TBKTW3.cjs.map} +1 -1
- package/dist/{chunk-3YWZ5SOZ.js → chunk-KLEKJUQI.js} +5 -5
- package/dist/{chunk-3YWZ5SOZ.js.map → chunk-KLEKJUQI.js.map} +1 -1
- package/dist/{chunk-OXBU5AGH.js → chunk-LSX2OFNB.js} +3 -3
- package/dist/{chunk-OXBU5AGH.js.map → chunk-LSX2OFNB.js.map} +1 -1
- package/dist/{chunk-66QSUUB4.cjs → chunk-LY6IR5LL.cjs} +12 -12
- package/dist/{chunk-66QSUUB4.cjs.map → chunk-LY6IR5LL.cjs.map} +1 -1
- package/dist/{chunk-5GG4CG4Y.js → chunk-LZPG4XHT.js} +3 -3
- package/dist/{chunk-5GG4CG4Y.js.map → chunk-LZPG4XHT.js.map} +1 -1
- package/dist/{chunk-PGDR7CO3.cjs → chunk-MGSGLRHZ.cjs} +8 -8
- package/dist/{chunk-PGDR7CO3.cjs.map → chunk-MGSGLRHZ.cjs.map} +1 -1
- package/dist/{chunk-Z77M7Q2R.js → chunk-ML55U7WM.js} +3 -3
- package/dist/{chunk-Z77M7Q2R.js.map → chunk-ML55U7WM.js.map} +1 -1
- package/dist/{chunk-IWUW3YPM.cjs → chunk-NTCSXKZ3.cjs} +5 -5
- package/dist/{chunk-IWUW3YPM.cjs.map → chunk-NTCSXKZ3.cjs.map} +1 -1
- package/dist/{chunk-SCDE676D.js → chunk-OEOOXL3F.js} +65 -23
- package/dist/chunk-OEOOXL3F.js.map +1 -0
- package/dist/{chunk-GF7ZA26H.js → chunk-OOUJZR4K.js} +4 -4
- package/dist/{chunk-GF7ZA26H.js.map → chunk-OOUJZR4K.js.map} +1 -1
- package/dist/{chunk-5IZHECUP.js → chunk-OZA4DE23.js} +3 -3
- package/dist/{chunk-5IZHECUP.js.map → chunk-OZA4DE23.js.map} +1 -1
- package/dist/{chunk-XNJDAW3M.js → chunk-PHQVAPSD.js} +7 -5
- package/dist/{chunk-XNJDAW3M.js.map → chunk-PHQVAPSD.js.map} +1 -1
- package/dist/{chunk-5NVGKXJV.cjs → chunk-PLANUXQL.cjs} +89 -3
- package/dist/chunk-PLANUXQL.cjs.map +1 -0
- package/dist/{chunk-PJAJCFLP.cjs → chunk-QNPYYSLT.cjs} +168 -44
- package/dist/chunk-QNPYYSLT.cjs.map +1 -0
- package/dist/{chunk-G2G7XGFU.cjs → chunk-RURPG6IS.cjs} +7 -7
- package/dist/{chunk-G2G7XGFU.cjs.map → chunk-RURPG6IS.cjs.map} +1 -1
- package/dist/{chunk-PAUWEWTY.js → chunk-TDU45K6Z.js} +12 -7
- package/dist/chunk-TDU45K6Z.js.map +1 -0
- package/dist/{chunk-X2YHKP4D.cjs → chunk-TWUFC32F.cjs} +8 -8
- package/dist/{chunk-X2YHKP4D.cjs.map → chunk-TWUFC32F.cjs.map} +1 -1
- package/dist/{chunk-F6XIH3TZ.cjs → chunk-UJREE6EQ.cjs} +9 -9
- package/dist/{chunk-F6XIH3TZ.cjs.map → chunk-UJREE6EQ.cjs.map} +1 -1
- package/dist/{chunk-37ZSFS6A.cjs → chunk-WML66SUV.cjs} +9 -9
- package/dist/{chunk-37ZSFS6A.cjs.map → chunk-WML66SUV.cjs.map} +1 -1
- package/dist/{chunk-M5QY464F.cjs → chunk-XZYZYWKG.cjs} +21 -21
- package/dist/{chunk-M5QY464F.cjs.map → chunk-XZYZYWKG.cjs.map} +1 -1
- package/dist/{chunk-3QJ3UR5Z.js → chunk-YT4ZTJVC.js} +9 -9
- package/dist/{chunk-3QJ3UR5Z.js.map → chunk-YT4ZTJVC.js.map} +1 -1
- package/dist/{chunk-V6OXSXIX.js → chunk-YVQFYW2U.js} +86 -4
- package/dist/chunk-YVQFYW2U.js.map +1 -0
- package/dist/{chunk-E62W5I6A.cjs → chunk-ZWEVRMFN.cjs} +97 -2
- package/dist/chunk-ZWEVRMFN.cjs.map +1 -0
- package/dist/entries/apps.cjs +42 -42
- package/dist/entries/apps.js +7 -7
- package/dist/entries/credits.cjs +273 -225
- package/dist/entries/credits.d.cts +152 -66
- package/dist/entries/credits.d.ts +152 -66
- package/dist/entries/credits.js +10 -10
- package/dist/entries/llm-models.cjs +84 -68
- package/dist/entries/llm-models.d.cts +36 -3
- package/dist/entries/llm-models.d.ts +36 -3
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/model-catalog.cjs +133 -133
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +431 -395
- package/dist/entries/models.d.cts +2 -2
- package/dist/entries/models.d.ts +2 -2
- package/dist/entries/models.js +6 -6
- package/dist/entries/nodes.cjs +212 -212
- package/dist/entries/nodes.js +8 -8
- package/dist/entries/pipeline.cjs +153 -153
- package/dist/entries/pipeline.d.cts +1 -1
- package/dist/entries/pipeline.d.ts +1 -1
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +152 -152
- package/dist/entries/video.d.cts +2 -1
- package/dist/entries/video.d.ts +2 -1
- package/dist/entries/video.js +6 -6
- package/dist/index.cjs +1697 -1597
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +21 -21
- package/dist/{model-constants-DZ3tPGFO.d.ts → model-constants-B5DNHIP8.d.ts} +156 -12
- package/dist/{model-constants-BstsUup6.d.cts → model-constants-CQr_d3Kw.d.cts} +156 -12
- package/package.json +1 -1
- package/src/__tests__/extend-providers.test.ts +43 -6
- package/src/__tests__/fixtures/measured-input-quote-parity.json +537 -1
- package/src/__tests__/fixtures/planned-length-quote-parity.json +46 -1
- package/src/__tests__/fixtures/probed-node-quote-parity.json +132 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +112 -1
- package/src/__tests__/gemini-omni-extend.test.ts +110 -0
- package/src/__tests__/gvp-supported-providers.test.ts +3 -0
- package/src/__tests__/llm-models.test.ts +116 -2
- package/src/__tests__/llm-price-key.test.ts +2 -0
- package/src/__tests__/seedance-2-5-flash-catalog.test.ts +194 -0
- package/src/__tests__/video-character-refs.test.ts +48 -0
- package/src/credit-identifiers.ts +51 -32
- package/src/entries/credits.ts +17 -0
- package/src/entries/llm-models.ts +4 -0
- package/src/entries/models.ts +11 -0
- package/src/gemini-omni-extend-quote.ts +76 -0
- package/src/lip-sync-pricing.ts +1 -1
- package/src/llm-models.ts +117 -2
- package/src/model-catalog.ts +95 -0
- package/src/model-constants.ts +274 -11
- package/src/node-default-mappings.ts +2 -0
- package/src/seedance-extend-rate.ts +83 -20
- package/src/seedance-lip-sync.ts +68 -0
- package/src/video-character-refs.ts +26 -6
- package/dist/chunk-3L7GMQ4M.cjs.map +0 -1
- package/dist/chunk-4XR66IWF.cjs.map +0 -1
- package/dist/chunk-5NVGKXJV.cjs.map +0 -1
- package/dist/chunk-BHL7TAQO.js.map +0 -1
- package/dist/chunk-E62W5I6A.cjs.map +0 -1
- package/dist/chunk-HTDKEYMY.cjs.map +0 -1
- package/dist/chunk-MVXZP6VB.js.map +0 -1
- package/dist/chunk-PAUWEWTY.js.map +0 -1
- package/dist/chunk-PJAJCFLP.cjs.map +0 -1
- package/dist/chunk-SCDE676D.js.map +0 -1
- package/dist/chunk-V6OXSXIX.js.map +0 -1
- package/dist/chunk-VBP4DH37.js.map +0 -1
|
@@ -1 +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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jaO,SAAS,kBAAkB,QAAA,EAAsC;AACtE,EAAA,IAAI,mBAAA,CAAoB,QAAQ,CAAA,IAAK,mBAAA,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-5J2LIQYU.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"]}
|
|
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,YAAA;AAAA,EACA,YAAA;AAAA;AAAA,EAEA,YAAA;AAAA,EACA,gBAAA;AAAA,EACA,iBAAA;AAAA,EACA,aAAA;AAAA;AAAA,EAEA,WAAA;AAAA;AAAA,EAEA,kBAAA;AAAA;AAAA,EAEA,yBAAA;AAAA;AAAA;AAAA,EAGA,gBAAA;AAAA;AAAA;AAAA,EAGA,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AA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uB,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-DE55SA2X.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"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MODEL_CATALOG, VIDEO_DURATION_AUTO, isAutoVideoDuration, isVideoAutoAspectToken, videoAutoAspectRunsAt } from './chunk-
|
|
1
|
+
import { MODEL_CATALOG, VIDEO_DURATION_AUTO, isAutoVideoDuration, isVideoAutoAspectToken, videoAutoAspectRunsAt } from './chunk-FUYBUT65.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/seedance-task-type.ts
|
|
@@ -163,10 +163,18 @@ var MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER = {
|
|
|
163
163
|
"seedance-2-fast": 2e4,
|
|
164
164
|
"seedance-2-mini": 2e4,
|
|
165
165
|
"seedance-2-5-extend": 2e4,
|
|
166
|
+
// Seedance 2.5 Flash Extend: the sibling extend's ceiling, under Flash's own
|
|
167
|
+
// 20480 with room for the recipe's wrapper and the reference directives.
|
|
168
|
+
"seedance-2-5-flash-extend": 2e4,
|
|
166
169
|
"seedance-2-0-extend": 2e4,
|
|
170
|
+
// Gemini Omni Flash 1.2 Extend (fal) — 20000 chars, the endpoint's own cap;
|
|
171
|
+
// its prompt is sent as written, so the whole cap is the user's.
|
|
172
|
+
"gemini-omni-flash-1-2-extend": 2e4,
|
|
167
173
|
// Seedance 2.5 raises the prompt ceiling to 30000
|
|
168
174
|
// (docs.kie.ai/market/bytedance/seedance-2-5).
|
|
169
175
|
"seedance-2-5": 3e4,
|
|
176
|
+
// Seedance 2.5 Flash — 20480 chars (docs.kie.ai/market/bytedance/seedance-2-5-flash).
|
|
177
|
+
"seedance-2-5-flash": 20480,
|
|
170
178
|
"gemini-omni-video": 2e4,
|
|
171
179
|
// Gemini Omni Flash 1.1 — same 20000-char prompt surface as the pro sibling
|
|
172
180
|
// (docs.kie.ai/market/google/gemini-omni-flash-1-1).
|
|
@@ -674,6 +682,7 @@ var IMAGE_TO_VIDEO_PROVIDERS = [
|
|
|
674
682
|
"seedance-2-fast",
|
|
675
683
|
"seedance-2-mini",
|
|
676
684
|
"seedance-2-5",
|
|
685
|
+
"seedance-2-5-flash",
|
|
677
686
|
"minimax-h3",
|
|
678
687
|
"hailuo-2.3-pro",
|
|
679
688
|
"hailuo-2.3",
|
|
@@ -736,6 +745,7 @@ var TEXT_TO_VIDEO_PROVIDERS = [
|
|
|
736
745
|
"seedance-2-fast",
|
|
737
746
|
"seedance-2-mini",
|
|
738
747
|
"seedance-2-5",
|
|
748
|
+
"seedance-2-5-flash",
|
|
739
749
|
"minimax-h3",
|
|
740
750
|
"wan",
|
|
741
751
|
"hailuo-standard",
|
|
@@ -861,7 +871,7 @@ var VIDEO_TO_VIDEO_PROVIDERS = [
|
|
|
861
871
|
"runway-aleph",
|
|
862
872
|
"happyhorse-edit"
|
|
863
873
|
];
|
|
864
|
-
var SEEDANCE_VIDEO_EDIT_PROVIDERS = ["seedance-2-5"];
|
|
874
|
+
var SEEDANCE_VIDEO_EDIT_PROVIDERS = ["seedance-2-5", "seedance-2-5-flash"];
|
|
865
875
|
function isSeedanceVideoEditProvider(provider) {
|
|
866
876
|
return !!provider && SEEDANCE_VIDEO_EDIT_PROVIDERS.includes(provider);
|
|
867
877
|
}
|
|
@@ -891,12 +901,20 @@ var EXTEND_VIDEO_PROVIDERS = [
|
|
|
891
901
|
// Seedance extends ANY video, one provider per model: Seedance 2.5 (4–30 s
|
|
892
902
|
// added) and Seedance 2.0 (4–15 s), each priced on its own rows
|
|
893
903
|
// (`tailExtendCreditId`). The earlier single id `seedance-2-extend` is
|
|
894
|
-
// retired (RETIRED_VIDEO_PROVIDERS) and runs as Seedance 2.5.
|
|
904
|
+
// retired (RETIRED_VIDEO_PROVIDERS) and runs as Seedance 2.5. Seedance 2.5
|
|
905
|
+
// Flash extends the same way as Seedance 2.5 (4–30 s added, 480p / 720p),
|
|
906
|
+
// generated on Seedance 2.5 Flash and priced on its own rows.
|
|
895
907
|
"seedance-2-5-extend",
|
|
908
|
+
"seedance-2-5-flash-extend",
|
|
896
909
|
"seedance-2-0-extend",
|
|
897
910
|
// Kling 4 extends ANY video the same way (3–30 s added, 720p / 1080p, its
|
|
898
911
|
// sound always on), generated on Kling 4.0 and priced on its own rows.
|
|
899
912
|
"kling-4-extend",
|
|
913
|
+
// Gemini Omni Flash 1.2 extends ANY 16:9 or 9:16 video from its tail (3–10 s
|
|
914
|
+
// added, 360p–4K), generated on fal: the source's last 10 s go in and come
|
|
915
|
+
// back with the new seconds joined on, of which only the new ones are kept.
|
|
916
|
+
// Priced on its own rows, per second sent and added.
|
|
917
|
+
"gemini-omni-flash-1-2-extend",
|
|
900
918
|
// PixVerse V6 extends ANY video natively (1–15 s added, 360p–1080p, a sound
|
|
901
919
|
// switch): the whole source goes in and comes back with the new seconds
|
|
902
920
|
// joined on, of which only the new ones are kept. Priced on its own rows.
|
|
@@ -906,11 +924,11 @@ var EXTEND_VIDEO_PROVIDERS = [
|
|
|
906
924
|
// added at the source's resolution, delivered as Grok returns it.
|
|
907
925
|
"grok-extend"
|
|
908
926
|
];
|
|
909
|
-
var SEEDANCE_EXTEND_PROVIDERS = ["seedance-2-5-extend", "seedance-2-0-extend"];
|
|
927
|
+
var SEEDANCE_EXTEND_PROVIDERS = ["seedance-2-5-extend", "seedance-2-5-flash-extend", "seedance-2-0-extend"];
|
|
910
928
|
function isSeedanceExtendProvider(p) {
|
|
911
929
|
return typeof p === "string" && SEEDANCE_EXTEND_PROVIDERS.includes(p);
|
|
912
930
|
}
|
|
913
|
-
var TAIL_EXTEND_PROVIDERS = [...SEEDANCE_EXTEND_PROVIDERS, "kling-4-extend"];
|
|
931
|
+
var TAIL_EXTEND_PROVIDERS = [...SEEDANCE_EXTEND_PROVIDERS, "kling-4-extend", "gemini-omni-flash-1-2-extend"];
|
|
914
932
|
function isTailExtendProvider(p) {
|
|
915
933
|
return typeof p === "string" && TAIL_EXTEND_PROVIDERS.includes(p);
|
|
916
934
|
}
|
|
@@ -932,6 +950,7 @@ var GROK_EXTEND_SOURCE_MODELS = ["grok", "grok-i2v"];
|
|
|
932
950
|
function isGrokExtendSourceModel(p) {
|
|
933
951
|
return typeof p === "string" && GROK_EXTEND_SOURCE_MODELS.includes(p);
|
|
934
952
|
}
|
|
953
|
+
var GROK_EXTEND_SOURCE_NODE_TYPES = /* @__PURE__ */ new Set(["generate-video", "text-to-video", "image-to-video"]);
|
|
935
954
|
var LIP_SYNC_PROVIDERS = [
|
|
936
955
|
"kling-avatar",
|
|
937
956
|
"kling-avatar-pro",
|
|
@@ -972,6 +991,7 @@ var LIP_SYNC_PROVIDERS = [
|
|
|
972
991
|
"seedance-2-fast",
|
|
973
992
|
"seedance-2-mini",
|
|
974
993
|
"seedance-2-5",
|
|
994
|
+
"seedance-2-5-flash",
|
|
975
995
|
// MiniMax Hailuo 3 — same multimodal audio-driven mechanism (r2v
|
|
976
996
|
// reference_audio_urls paired with an image ref); rides the same
|
|
977
997
|
// reference-audio lip-sync surface as the Seedance 2 family.
|
|
@@ -994,6 +1014,7 @@ var SEEDANCE_LIP_SYNC_PROVIDERS = /* @__PURE__ */ new Set([
|
|
|
994
1014
|
"seedance-2-fast",
|
|
995
1015
|
"seedance-2-mini",
|
|
996
1016
|
"seedance-2-5",
|
|
1017
|
+
"seedance-2-5-flash",
|
|
997
1018
|
"minimax-h3"
|
|
998
1019
|
]);
|
|
999
1020
|
var REPLICATE_LIP_SYNC_PROVIDERS = /* @__PURE__ */ new Set([
|
|
@@ -1291,6 +1312,7 @@ var DURATION_PRICED_PROVIDERS = /* @__PURE__ */ new Set([
|
|
|
1291
1312
|
"seedance-2-fast",
|
|
1292
1313
|
"seedance-2-mini",
|
|
1293
1314
|
"seedance-2-5",
|
|
1315
|
+
"seedance-2-5-flash",
|
|
1294
1316
|
"minimax-h3",
|
|
1295
1317
|
"grok-imagine-video-1.5",
|
|
1296
1318
|
"happyhorse",
|
|
@@ -1329,11 +1351,22 @@ var SEEDANCE_2_PROVIDERS = /* @__PURE__ */ new Set([
|
|
|
1329
1351
|
// per-second resolution × video-ref pricing), so it belongs here. Where it
|
|
1330
1352
|
// DIFFERS (30s ceiling, no 1080p/4K, wider ref caps) the difference is
|
|
1331
1353
|
// carried by the per-provider maps, never by branching on this set.
|
|
1332
|
-
"seedance-2-5"
|
|
1354
|
+
"seedance-2-5",
|
|
1355
|
+
// Seedance 2.5 Flash — the fast tier of 2.5, same capability surface. Its
|
|
1356
|
+
// own facts (480p/720p, 10/5/5 references, WAV/MP3 reference audio, no
|
|
1357
|
+
// draft) live in the per-provider maps, as 2.5's do.
|
|
1358
|
+
"seedance-2-5-flash"
|
|
1333
1359
|
]);
|
|
1334
1360
|
function isSeedance2Provider(provider) {
|
|
1335
1361
|
return !!provider && SEEDANCE_2_PROVIDERS.has(provider);
|
|
1336
1362
|
}
|
|
1363
|
+
var EDIT_VIDEO_PRO_HELD_BACK_PROVIDERS = /* @__PURE__ */ new Set(["seedance-2-5-flash"]);
|
|
1364
|
+
function isEditVideoProProvider(provider) {
|
|
1365
|
+
return isSeedance2Provider(provider) && !EDIT_VIDEO_PRO_HELD_BACK_PROVIDERS.has(provider);
|
|
1366
|
+
}
|
|
1367
|
+
function editVideoProProviderRefusal(provider) {
|
|
1368
|
+
return provider !== void 0 && EDIT_VIDEO_PRO_HELD_BACK_PROVIDERS.has(provider) ? `${provider} is not offered on Edit Video Pro. Pick another Edit Video Pro model.` : void 0;
|
|
1369
|
+
}
|
|
1337
1370
|
var MINIMAX_H3_PROVIDERS = /* @__PURE__ */ new Set([
|
|
1338
1371
|
"minimax-h3"
|
|
1339
1372
|
]);
|
|
@@ -1570,6 +1603,11 @@ var SEEDANCE_2_5_REF_LIMITS = {
|
|
|
1570
1603
|
videos: 10,
|
|
1571
1604
|
audio: 10
|
|
1572
1605
|
};
|
|
1606
|
+
var SEEDANCE_2_5_FLASH_REF_LIMITS = {
|
|
1607
|
+
images: 10,
|
|
1608
|
+
videos: 5,
|
|
1609
|
+
audio: 5
|
|
1610
|
+
};
|
|
1573
1611
|
var SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC = 1.8;
|
|
1574
1612
|
var SEEDANCE_2_CONTINUATION_REF_SEC = 2;
|
|
1575
1613
|
var SEEDANCE_2_EXTEND_STITCH = {
|
|
@@ -1592,6 +1630,9 @@ var SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER = {
|
|
|
1592
1630
|
// Seedance 2.5 — documented hard limit: each reference audio 2-30s, ≤15 MB
|
|
1593
1631
|
// per file (docs.kie.ai/market/bytedance/seedance-2-5).
|
|
1594
1632
|
"seedance-2-5": 30,
|
|
1633
|
+
// Seedance 2.5 Flash — the same documented 2-30s per clip, ≤15 MB
|
|
1634
|
+
// (docs.kie.ai/market/bytedance/seedance-2-5-flash).
|
|
1635
|
+
"seedance-2-5-flash": 30,
|
|
1595
1636
|
// MiniMax Hailuo 3 — documented hard limit: each reference audio segment
|
|
1596
1637
|
// 2-15s, ≤15s total (docs.kie.ai/market/minimax-h3/reference-to-video).
|
|
1597
1638
|
"minimax-h3": 15,
|
|
@@ -1613,19 +1654,29 @@ function findSeedance2AudioOverLimit(provider, durationsSec) {
|
|
|
1613
1654
|
return null;
|
|
1614
1655
|
}
|
|
1615
1656
|
var VIDEO_REF_AUDIO_RULES = {
|
|
1616
|
-
"vidu-q4": { formats: ["mp3"], minSec: 3, maxSec: 12 }
|
|
1657
|
+
"vidu-q4": { formats: ["mp3"], minSec: 3, maxSec: 12 },
|
|
1658
|
+
// Seedance 2.5 Flash: "Format: wav, mp3", each clip 2-30 seconds, "total
|
|
1659
|
+
// duration of reference audio must not exceed 30 seconds"
|
|
1660
|
+
// (docs.kie.ai/market/bytedance/seedance-2-5-flash). A clip in another format
|
|
1661
|
+
// is converted to MP3 before it is sent (decided 2026-11-16); its length is
|
|
1662
|
+
// still refused before anything is held. Seedance 2.5 itself also takes AAC
|
|
1663
|
+
// and OGG, so it has no row here.
|
|
1664
|
+
"seedance-2-5-flash": { formats: ["wav", "mp3"], convertsTo: "mp3", minSec: 2, maxSec: 30, maxTotalSec: 30 }
|
|
1617
1665
|
};
|
|
1618
|
-
function checkRefAudioRules(provider, probes) {
|
|
1666
|
+
function checkRefAudioRules(provider, probes, opts = {}) {
|
|
1619
1667
|
const rule = provider ? VIDEO_REF_AUDIO_RULES[provider] : void 0;
|
|
1620
1668
|
if (!rule) return { ok: true };
|
|
1669
|
+
const converts = !!rule.convertsTo && opts.canConvert !== false;
|
|
1670
|
+
let totalSec = 0;
|
|
1621
1671
|
for (const [i, p] of probes.entries()) {
|
|
1622
1672
|
const n = i + 1;
|
|
1623
|
-
if (rule.formats && p.formatNames && p.formatNames.length > 0 && !p.formatNames.some((f) => rule.formats.includes(f))) {
|
|
1673
|
+
if (rule.formats && !converts && p.formatNames && p.formatNames.length > 0 && !p.formatNames.some((f) => rule.formats.includes(f))) {
|
|
1624
1674
|
const want = rule.formats.map((f) => f.toUpperCase()).join(" or ");
|
|
1625
1675
|
return { ok: false, code: "audio_format_unsupported", message: `Reference audio ${n} must be ${want} for this model. Convert the clip to ${want} and try again.` };
|
|
1626
1676
|
}
|
|
1627
1677
|
const d = p.durationSec;
|
|
1628
1678
|
if (d === void 0 || !Number.isFinite(d) || d <= 0) continue;
|
|
1679
|
+
totalSec += d;
|
|
1629
1680
|
if (rule.minSec !== void 0 && d < rule.minSec) {
|
|
1630
1681
|
return { ok: false, code: "audio_too_short", message: `Reference audio ${n} is too short for this model: ${d.toFixed(1)}s is under the ${rule.minSec}s minimum.` };
|
|
1631
1682
|
}
|
|
@@ -1633,6 +1684,9 @@ function checkRefAudioRules(provider, probes) {
|
|
|
1633
1684
|
return { ok: false, code: "audio_too_long", message: `Reference audio ${n} is too long for this model: ${d.toFixed(1)}s exceeds the ${rule.maxSec}s limit. Please use a shorter audio clip.` };
|
|
1634
1685
|
}
|
|
1635
1686
|
}
|
|
1687
|
+
if (rule.maxTotalSec !== void 0 && totalSec > rule.maxTotalSec) {
|
|
1688
|
+
return { ok: false, code: "audio_total_too_long", message: `The reference audio is too long for this model: ${totalSec.toFixed(1)}s together exceeds the ${rule.maxTotalSec}s limit. Use fewer or shorter clips.` };
|
|
1689
|
+
}
|
|
1636
1690
|
return { ok: true };
|
|
1637
1691
|
}
|
|
1638
1692
|
var VIDEO_REF_LIMITS_BY_PROVIDER = {
|
|
@@ -1642,6 +1696,8 @@ var VIDEO_REF_LIMITS_BY_PROVIDER = {
|
|
|
1642
1696
|
"seedance-2-mini": { ...SEEDANCE_2_REF_LIMITS },
|
|
1643
1697
|
// Seedance 2.5 — wider caps than the 2.0 family (30 / 10 / 10).
|
|
1644
1698
|
"seedance-2-5": { ...SEEDANCE_2_5_REF_LIMITS },
|
|
1699
|
+
// Seedance 2.5 Flash — lower caps than 2.5 (10 / 5 / 5).
|
|
1700
|
+
"seedance-2-5-flash": { ...SEEDANCE_2_5_FLASH_REF_LIMITS, requestRefusesOverLimit: true },
|
|
1645
1701
|
// MiniMax Hailuo 3 — identical multimodal caps (9 images / 3 videos / 3
|
|
1646
1702
|
// audio per docs.kie.ai/market/minimax-h3/reference-to-video). Note: KIE
|
|
1647
1703
|
// bills input images beyond the first 5 (11 KIE cr each) — see the
|
|
@@ -1670,8 +1726,11 @@ var VIDEO_REF_LIMITS_BY_PROVIDER = {
|
|
|
1670
1726
|
"gemini-omni-flash": { images: 7, videos: 1, characters: 3, voices: 3 },
|
|
1671
1727
|
// Gemini Omni Flash 1.2 — up to 6 images, one source video, and images +
|
|
1672
1728
|
// 2 for a video ≤ 7, so 5 images beside a video (the request builder holds
|
|
1673
|
-
// that).
|
|
1674
|
-
"
|
|
1729
|
+
// that). `character_ids` max 2, OUTSIDE that image quota (its schema:
|
|
1730
|
+
// "Character images do not count toward the reference-image quota"), never
|
|
1731
|
+
// beside a first/last frame (decided 2026-11-17). No `audio_ids` in its task
|
|
1732
|
+
// schema: no voices.
|
|
1733
|
+
"gemini-omni-flash-1-2": { images: 6, videos: 1, characters: 2, charactersOutsideImageBudget: true, characterIdScope: "gemini-omni-flash-1-2" },
|
|
1675
1734
|
"kling-3-omni": { images: 7 },
|
|
1676
1735
|
// catalog/docs: "end frame + up to 7 reference images"
|
|
1677
1736
|
// Kling 4.0 Reference — 10 images, 5 videos, 7 subjects (`characters`,
|
|
@@ -1722,8 +1781,38 @@ var VIDEO_REF_LIMITS_BY_PROVIDER = {
|
|
|
1722
1781
|
// in-between frames were wired). Add only with a verified provider path + the
|
|
1723
1782
|
// catalog `reference-image` feature.
|
|
1724
1783
|
};
|
|
1784
|
+
function videoReferencesOverLimitProblem(provider, counts) {
|
|
1785
|
+
const row = provider ? VIDEO_REF_LIMITS_BY_PROVIDER[provider] : void 0;
|
|
1786
|
+
if (!row?.requestRefusesOverLimit) return void 0;
|
|
1787
|
+
const anyReference = counts.images + counts.videos + counts.audio > 0;
|
|
1788
|
+
const images = counts.images + (anyReference ? counts.frames ?? 0 : 0);
|
|
1789
|
+
const checks = [
|
|
1790
|
+
[images, row.images, anyReference && (counts.frames ?? 0) > 0 ? "images (a start or end frame counts as one)" : "images"],
|
|
1791
|
+
[counts.videos, row.videos, "videos"],
|
|
1792
|
+
[counts.audio, row.audio, "audio clips"]
|
|
1793
|
+
];
|
|
1794
|
+
for (const [n, cap, noun] of checks) {
|
|
1795
|
+
if (cap !== void 0 && n > cap) {
|
|
1796
|
+
return `${provider} takes at most ${cap} reference ${noun}; this request sends ${n}. Remove ${n - cap}.`;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
return void 0;
|
|
1800
|
+
}
|
|
1801
|
+
function trimVideoReferencesToLimits(provider, refs) {
|
|
1802
|
+
const row = provider ? VIDEO_REF_LIMITS_BY_PROVIDER[provider] : void 0;
|
|
1803
|
+
const copy = (l) => l ? [...l] : void 0;
|
|
1804
|
+
if (!row?.requestRefusesOverLimit) return { images: copy(refs.images), videos: copy(refs.videos), audio: copy(refs.audio) };
|
|
1805
|
+
const blank = (x) => typeof x === "string" && x.trim().length === 0;
|
|
1806
|
+
const clean = (l, dedupe = false) => l ? l.filter((x, i) => !blank(x) && (!dedupe || l.indexOf(x) === i)) : void 0;
|
|
1807
|
+
const cut = (l, cap) => l && cap !== void 0 ? l.slice(0, Math.max(0, cap)) : l;
|
|
1808
|
+
const imageCap = row.images === void 0 ? void 0 : row.images - (refs.frames ?? 0);
|
|
1809
|
+
return { images: cut(clean(refs.images, true), imageCap), videos: cut(clean(refs.videos), row.videos), audio: cut(clean(refs.audio), row.audio) };
|
|
1810
|
+
}
|
|
1725
1811
|
var VIDEO_REF_VIDEO_DURATION_LIMITS = {
|
|
1726
1812
|
"seedance-2-5": { minSec: 2, maxSec: 30, maxTotalSec: 30 },
|
|
1813
|
+
// Seedance 2.5 Flash — the same documented bounds: each clip 2-30s, the
|
|
1814
|
+
// reference videos ≤30s together (docs.kie.ai/market/bytedance/seedance-2-5-flash).
|
|
1815
|
+
"seedance-2-5-flash": { minSec: 2, maxSec: 30, maxTotalSec: 30 },
|
|
1727
1816
|
// MiniMax Hailuo 3 — the provider states the per-clip bound in its own reject
|
|
1728
1817
|
// text: "content[1].video_url: invalid param: video duration 52838 ms,
|
|
1729
1818
|
// expected [2000, 15000] ms" (app-reports P4, 2 rows, the same clip retried).
|
|
@@ -1746,6 +1835,20 @@ var VIDEO_REF_VIDEO_DURATION_LIMITS = {
|
|
|
1746
1835
|
// A 2 s floor per clip makes the combined floor hold too.
|
|
1747
1836
|
"kling-4-flash": { minSec: 2, maxSec: 20, maxTotalSec: 20 }
|
|
1748
1837
|
};
|
|
1838
|
+
var VIDEO_REF_VIDEO_PICTURE_LIMITS = {
|
|
1839
|
+
"seedance-2-5-flash": { minPixels: 409600, maxPixels: 927408, minAspect: 0.4, maxAspect: 2.5, minFps: 24, maxFps: 60 }
|
|
1840
|
+
};
|
|
1841
|
+
function aspectText(ratio) {
|
|
1842
|
+
const n = (v) => String(Math.round(v * 100) / 100);
|
|
1843
|
+
return ratio >= 1 ? `${n(ratio)}:1` : `1:${n(1 / ratio)}`;
|
|
1844
|
+
}
|
|
1845
|
+
function refVideoAspectProblem(provider, width, height) {
|
|
1846
|
+
const limit = VIDEO_REF_VIDEO_PICTURE_LIMITS[provider];
|
|
1847
|
+
if (!limit || !width || !height || !(width > 0) || !(height > 0)) return void 0;
|
|
1848
|
+
const ratio = width / height;
|
|
1849
|
+
if (ratio >= limit.minAspect && ratio <= limit.maxAspect) return void 0;
|
|
1850
|
+
return `This model takes a reference video from ${aspectText(limit.minAspect)} to ${aspectText(limit.maxAspect)} (width to height) \u2014 one is ${width}\xD7${height} (${aspectText(ratio)}). Crop it to a less extreme shape and run again.`;
|
|
1851
|
+
}
|
|
1749
1852
|
var VIDEO_CHARACTER_CLIP_DURATION_LIMITS = {
|
|
1750
1853
|
"kling-4": { minSec: 3, maxSec: 8 },
|
|
1751
1854
|
"kling-4-flash": { minSec: 3, maxSec: 8 }
|
|
@@ -1846,6 +1949,7 @@ var NATIVE_ADAPTIVE_ASPECT = {
|
|
|
1846
1949
|
"seedance-2-fast": "adaptive",
|
|
1847
1950
|
"seedance-2-mini": "adaptive",
|
|
1848
1951
|
"seedance-2-5": "adaptive",
|
|
1952
|
+
"seedance-2-5-flash": "adaptive",
|
|
1849
1953
|
// Wan 3.0 family: `adaptive` is the enum DEFAULT and KIE documents it as
|
|
1850
1954
|
// "automatically selects the ratio based on the input media and intent"
|
|
1851
1955
|
// (docs.kie.ai/market/wan/3-0-video) — i.e. match-the-input, not merely
|
|
@@ -1855,7 +1959,11 @@ var NATIVE_ADAPTIVE_ASPECT = {
|
|
|
1855
1959
|
"wan-3-prime": "adaptive"
|
|
1856
1960
|
};
|
|
1857
1961
|
var FRAME_MODE_ADAPTIVE_ONLY_ASPECT = /* @__PURE__ */ new Set([
|
|
1858
|
-
"seedance-2-5"
|
|
1962
|
+
"seedance-2-5",
|
|
1963
|
+
// Seedance 2.5 Flash — DOCUMENTED on its own schema: "First-frame and
|
|
1964
|
+
// first-and-last-frame requests only support `adaptive`"
|
|
1965
|
+
// (docs.kie.ai/market/bytedance/seedance-2-5-flash).
|
|
1966
|
+
"seedance-2-5-flash"
|
|
1859
1967
|
]);
|
|
1860
1968
|
var VIDEO_PROVIDERS_REQUIRING_IMAGE = new Set(
|
|
1861
1969
|
Object.values(MODEL_CATALOG).filter(
|
|
@@ -1948,6 +2056,8 @@ var VIDEO_AUDIO_CAPABILITY = {
|
|
|
1948
2056
|
// on KIE and is cost-affecting only through the -ref/no-ref rate split,
|
|
1949
2057
|
// which the resolution+ref composite already carries (no `:audio` suffix).
|
|
1950
2058
|
"seedance-2-5": { mode: "audio_driven", field: "generateAudio", defaultOn: true },
|
|
2059
|
+
// Seedance 2.5 Flash — the same lever, default TRUE on KIE.
|
|
2060
|
+
"seedance-2-5-flash": { mode: "audio_driven", field: "generateAudio", defaultOn: true },
|
|
1951
2061
|
// MiniMax Hailuo 3 — multimodal; lip-syncs to reference audio (r2v). The
|
|
1952
2062
|
// KIE API exposes NO audio on/off parameter (audio is always produced), so
|
|
1953
2063
|
// there is no toggle field — alwaysOn, like VEO.
|
|
@@ -2075,6 +2185,7 @@ var VIDEO_VARIABLE_PRICING = {
|
|
|
2075
2185
|
"seedance-2-fast": "duration+resolution+ref",
|
|
2076
2186
|
"seedance-2-mini": "duration+resolution+ref",
|
|
2077
2187
|
"seedance-2-5": "duration+resolution+ref",
|
|
2188
|
+
"seedance-2-5-flash": "duration+resolution+ref",
|
|
2078
2189
|
// MiniMax Hailuo 3 — per-second rate at two resolution tiers (2K default /
|
|
2079
2190
|
// 768P). Duration + resolution form the composite (bare = 2K, ":768p"
|
|
2080
2191
|
// appended for the cheaper tier); ref-video input seconds + extra input
|
|
@@ -2205,6 +2316,8 @@ function maxVideoDurationSec(provider) {
|
|
|
2205
2316
|
var PRICING_DEFAULT_RESOLUTION = {
|
|
2206
2317
|
// KIE renders 720p when `resolution` is omitted (kie/models.ts extraParams).
|
|
2207
2318
|
"seedance-2-5": "720p",
|
|
2319
|
+
// Seedance 2.5 Flash — KIE's documented default is 720p too (kie/models.ts extraParams).
|
|
2320
|
+
"seedance-2-5-flash": "720p",
|
|
2208
2321
|
// Wan 3.0 family — KIE's OWN default is 1080P, but the provider layer pins
|
|
2209
2322
|
// 720P (normalizeWan3Resolution / WAN_3_DEFAULT_RESOLUTION) so the rendered
|
|
2210
2323
|
// tier equals the tier the bare identifier bills. This declaration is what
|
|
@@ -2343,6 +2456,8 @@ var VIDEO_DURATION_TIERS = {
|
|
|
2343
2456
|
{ maxSeconds: 15, suffix: "15s" }
|
|
2344
2457
|
],
|
|
2345
2458
|
"seedance-2-5": SEEDANCE_2_5_DURATION_TIERS,
|
|
2459
|
+
// Seedance 2.5 Flash — the same 4-30s, one tier per second.
|
|
2460
|
+
"seedance-2-5-flash": SEEDANCE_2_5_DURATION_TIERS,
|
|
2346
2461
|
"wan-3": WAN_3_DURATION_TIERS,
|
|
2347
2462
|
"wan-3-prime": WAN_3_DURATION_TIERS,
|
|
2348
2463
|
"vidu-q4": VIDU_Q4_DURATION_TIERS,
|
|
@@ -2598,6 +2713,6 @@ function applyDefaultVideoSelection(input) {
|
|
|
2598
2713
|
};
|
|
2599
2714
|
}
|
|
2600
2715
|
|
|
2601
|
-
export { AI_WRITER_PROVIDERS, ASPECT_RATIO_DIMENSIONS, AUDIO_ADDON_PROVIDERS, CAPTION_TRANSCRIBE_LANES, CHARACTER_MOTION_PROVIDERS, COMPOSER_PLAN_FIELDS, COMPOSER_PLAN_MAP, CREDIT_BASE_USD, DEFAULT_DIALOGUE_PROVIDER, DEFAULT_MUSIC_PROVIDER, DEFAULT_REF_IMAGE_MAX, DEFAULT_REQUEST_IMAGE_LIMIT, DEFAULT_SUNO_MODEL, DEFAULT_TEXT_TO_AUDIO_PROVIDER, DEFAULT_TRANSCRIBE_NODE_PROVIDER, DEFAULT_TRANSCRIBE_PROVIDER, DEFAULT_TTS_OUTPUT_FORMAT, DEFAULT_TTS_PROVIDER, DEFAULT_VIDEO_DURATION_SEC, DEFAULT_VIDEO_PROVIDER, DEFAULT_VIDEO_TO_VIDEO_PROVIDER, DEFAULT_VOICE_DESIGN_MODEL, DIALOGUE_PROVIDERS, DURATION_PRICED_PROVIDERS, EXTEND_VIDEO_PROVIDERS, FACE_SWAP_PROVIDERS, FAL_LIP_SYNC_PROVIDERS, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS, FRAME_MODE_ADAPTIVE_ONLY_ASPECT, GEMINI_OMNI_12_MAX_SOURCE_SEC, GEMINI_OMNI_PER_SECOND_PROVIDERS, GEMINI_OMNI_PROVIDERS, GROK_EXTEND_PROVIDER, GROK_EXTEND_SOURCE_MODELS, GROK_VIDEO_15_DEFAULT_RESOLUTION, GROK_VIDEO_15_MAX_MIDDLE_FRAMES, GROK_VIDEO_15_PROVIDER, GUIDANCE_SCALE_SUPPORT, GVP_ANCHOR_CHOICES, GVP_DEFAULT_PROVIDER, GVP_END_FRAME_PROVIDERS, GVP_EXTEND_PROVIDERS, GVP_SUPPORTED_PROVIDERS, HIGH_QUALITY_PROVIDERS, I2I_MASK_SUPPORT, I2I_STRENGTH_SUPPORT, IDEOGRAM_PROVIDERS, IMAGE_ASPECT_RATIO_VALUES, IMAGE_BACKGROUND_VALUES, IMAGE_EDIT_PROVIDERS, IMAGE_EDIT_TARGET_RESOLUTION_VALUES, IMAGE_GEN_PROVIDERS, IMAGE_I2I_PROVIDERS, IMAGE_K_RESOLUTION_VALUES, IMAGE_MASK_MODE, IMAGE_OUTPUT_FORMAT_EXT, IMAGE_OUTPUT_FORMAT_MIME, IMAGE_OUTPUT_FORMAT_VALUES, IMAGE_PROMPT_MAX, IMAGE_QUALITY_VALUES, IMAGE_RENDERING_SPEED_VALUES, IMAGE_RESOLUTION_VALUES, IMAGE_SVG_LEVEL_VALUES, IMAGE_TO_VIDEO_PROVIDERS, KLING_4_DEFAULT_RESOLUTION, KLING_4_FLASH_PROVIDER, KLING_4_FLASH_RESOLUTION, KLING_4_MAX_MIDDLE_FRAMES, KLING_4_PROVIDERS, LEGACY_VIDEO_NODE_DEFAULT_PROVIDER, LIP_SYNC_PROVIDERS, LLM_STRUCTURED_SYSTEM_MAX, LLM_TEXT_INPUT_MAX, LOCATION_ATMOSPHERE_PROVIDERS, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER, MAX_REQUEST_IMAGE_LIMIT, MAX_TTS_CHARS_BY_PROVIDER, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER, MINIMAX_H3_DEFAULT_RESOLUTION, MINIMAX_H3_PROVIDERS, MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER, MODELS_WITH_REFERENCE_IMAGE_SUPPORT, MODE_ADDON_PROVIDERS, MODIFY_IMAGE_PROVIDERS, MOTION_DURATION_TIERS, MOTION_TRANSFER_PROVIDERS, MUSIC_CREDIT_ID, MUSIC_PROVIDERS, MUSIC_PROVIDER_LABELS, NATIVE_ADAPTIVE_ASPECT, NATIVE_NEGATIVE_PROMPT_MODELS, NATIVE_NEGATIVE_VIDEO_PROVIDERS, NEGATIVE_PROMPT_MAX, OBJECT_MOTION_PROVIDERS, PIXVERSE_V6_EXTEND_PROVIDER, PIXVERSE_V6_MAX_DEFAULT_QUALITY, PIXVERSE_V6_MAX_PROVIDER, PRICING_DEFAULT_DURATION_SEC, PRICING_DEFAULT_RESOLUTION, PROMPT_HARD_CEILING, QA_CHECK_PROVIDERS, REF_IMAGE_MAX_LIMITS, RENDERING_SPEED_SUPPORT, REPLICATE_LIP_SYNC_PROVIDERS, RESOLUTION_2K_4K_TIERED_PROVIDERS, RESOLUTION_DURATION_PRICING, RESOLUTION_VIDEO_REF_PRICING, RETIRED_LIP_SYNC_PROVIDERS, RETIRED_VIDEO_PROVIDERS, SCRIPT_PROVIDERS, SEEDANCE_2_5_REF_LIMITS, SEEDANCE_2_CONTINUATION_REF_SEC, SEEDANCE_2_EXTEND_STITCH, SEEDANCE_2_PROVIDERS, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC, SEEDANCE_2_REF_LIMITS, SEEDANCE_EDIT_REF_VIDEO_SEC, SEEDANCE_LIP_SYNC_PROVIDERS, SEEDANCE_REFERENCE_TASK_TYPES, SEEDANCE_VIDEO_EDIT_PROVIDERS, SEEDANCE_VIDEO_EDIT_SHAPE, SEEDANCE_VIDEO_EDIT_TASK_TYPE, SEED_SUPPORT, SUNO_ACTIVE_MODELS, SUNO_ADD_TRACK_MODELS, SUNO_DURATION_MODELS, SUNO_HARD_CEILING, SUNO_LEGACY_MODELS, SUNO_MODELS, SUNO_TEXT_MAX, SUNO_TITLE_MAX, SceneInputModeSchema, T2I_TO_I2I_VARIANT, TASK_CHAINED_EDIT_PROVIDERS, TASK_CHAINED_EDIT_PROVIDER_IDS, TEXT_TO_AUDIO_PROVIDERS, TEXT_TO_VIDEO_PROVIDERS, TRANSCRIBE_LANES, TRANSCRIBE_PROVIDERS, TRANSCRIBE_PROVIDER_CAPABILITIES, TRANSCRIBE_TARGET_LANGUAGES, TTS_OUTPUT_FORMATS, TTS_OUTPUT_FORMAT_FILES, TTS_PROVIDERS, TTS_TEXT_MAX, TWO_K_RESOLUTION_PROVIDERS, UPSCALE_IMAGE_PROVIDERS, VARIABLE_PRICING_MODELS, VEO_PROVIDERS, VEO_RESOLUTION_TIERED_PROVIDERS, VIDEO_AUDIO_CAPABILITY, VIDEO_CHARACTER_CLIP_DURATION_LIMITS, VIDEO_DURATION_TIERS, VIDEO_GEN_COLLAPSED_T2V_IDS, VIDEO_GEN_PROVIDERS, VIDEO_INPUT_LIP_SYNC_PROVIDERS, VIDEO_MODEL_CAPS, VIDEO_MODE_ALIASES, VIDEO_PROMPT_MAX, VIDEO_PROVIDERS_REQUIRING_IMAGE, VIDEO_PROVIDERS_WITHOUT_DISPATCH, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL, VIDEO_REF_AUDIO_RULES, VIDEO_REF_LIMITS_BY_PROVIDER, VIDEO_REF_RATE_PROVIDERS, VIDEO_REF_VIDEO_DURATION_LIMITS, VIDEO_START_FRAME_ONLY_CODE, VIDEO_TO_VIDEO_NODE_PROVIDERS, VIDEO_TO_VIDEO_PROVIDERS, VIDEO_UPSCALE_PROVIDERS, VIDEO_VARIABLE_PRICING, VIDU_Q4_DEFAULT_RESOLUTION, VIDU_Q4_PROVIDERS, VOICE_DESIGN_MODELS, WAN_3_DEFAULT_RESOLUTION, WAN_3_PROVIDERS, applyDefaultVideoSelection, applyVideoAudioToggle, applyVideoNegativePrompt, billsReferenceVideoSeconds, canonicalVideoProvider, checkCharacterClipDurations, checkRefAudioRules, checkRefVideoDurations, defaultVideoAspectRatio, extendHasSoundSwitch, findSeedance2AudioOverLimit, getMaxImagePromptChars, getMaxNegativePromptChars, getMaxSunoPromptChars, getMaxSunoStyleChars, getMaxTtsChars, getMaxVideoPromptChars, getMinImagePromptChars, getVideoAudioCapability, grokVideo15MiddleFrameSlots, hasContiguousSegmentDurations, hasOwnRequestImageLimit, imageReferenceLimit, isCatalogExtendProvider, isGeminiOmniPerSecondProvider, isGeminiOmniProvider, isGrokExtendProvider, isGrokExtendSourceModel, isGrokVideo15Provider, isGvpSupportedProvider, isKling4FlashProvider, isKling4Provider, isKling4RunnerProvider, isLegacySunoModel, isMinimaxH3Provider, isPixverseExtendProvider, isPixverseV6MaxProvider, isSeedance2Provider, isSeedanceExtendProvider, isSeedanceVideoEditProvider, isTailExtendProvider, isVeoProvider, isViduQ4Provider, isWan3Provider, kling4KeyframeFrameCap, listedSeedanceTaskType, maxSegmentSecFor, maxSegmentsFor, maxVideoDurationSec, minSegmentSecFor, modelsForInputMode, normalizeGrokVideo15Resolution, normalizeKling4Resolution, normalizeMinimaxH3Resolution, normalizePixverseV6MaxQuality, normalizeViduQ4Resolution, normalizeWan3Resolution, preferredInputModeForModel, pricedOutputDurationSec, refusesImagesOverLimit, refusesImagesOverLimitOn, requestImageLimit, resolveGvpAnchorWire, resolveMusicProvider, resolveSeedanceTaskType, resolveVideoModeForInputs, resolveVideoProviderForMode, retiredLipSyncProviderMessage, retiredLipSyncProviderName, seedance2AudioLimitSec, seedanceTaskTypeFitsMedia, segmentDurationsFor, snapToNearestDuration, sunoModelHonoursDuration, supportsAutoVideoDuration, supportsEndAnchor, supportsExtendRender, supportsReferenceTaskType, transcribeLaneSupportsTranslation, transcribeLaneSupportsWordTimestamps, transcribeProvidersWithTranslation, transcribeProvidersWithWordTimestamps, videoAudioIntent, videoAudioPricedOn, videoDefaultDurationSec, videoKeyframesMiddleCap, videoModelCanSpeakDialogue, videoModelSupportsAudio, videoNegativeSuffix, videoProviderAppendsFrames, videoProviderFoldsLoneEndFrame, videoProviderRefModeFrameSeats, videoProviderReferenceSyntax, videoProviderRefsReplaceStartFrame, videoProviderRequiresImage, videoProviderRunsFromReferences, videoProviderTakesLoneEndFrame, videoSourceTrimMaxSec, videoStartFrameOnlyMessage, videoStartFrameOnlyProblem, videoStartFrameOnlyResolution };
|
|
2602
|
-
//# sourceMappingURL=chunk-
|
|
2603
|
-
//# sourceMappingURL=chunk-
|
|
2716
|
+
export { AI_WRITER_PROVIDERS, ASPECT_RATIO_DIMENSIONS, AUDIO_ADDON_PROVIDERS, CAPTION_TRANSCRIBE_LANES, CHARACTER_MOTION_PROVIDERS, COMPOSER_PLAN_FIELDS, COMPOSER_PLAN_MAP, CREDIT_BASE_USD, DEFAULT_DIALOGUE_PROVIDER, DEFAULT_MUSIC_PROVIDER, DEFAULT_REF_IMAGE_MAX, DEFAULT_REQUEST_IMAGE_LIMIT, DEFAULT_SUNO_MODEL, DEFAULT_TEXT_TO_AUDIO_PROVIDER, DEFAULT_TRANSCRIBE_NODE_PROVIDER, DEFAULT_TRANSCRIBE_PROVIDER, DEFAULT_TTS_OUTPUT_FORMAT, DEFAULT_TTS_PROVIDER, DEFAULT_VIDEO_DURATION_SEC, DEFAULT_VIDEO_PROVIDER, DEFAULT_VIDEO_TO_VIDEO_PROVIDER, DEFAULT_VOICE_DESIGN_MODEL, DIALOGUE_PROVIDERS, DURATION_PRICED_PROVIDERS, EDIT_VIDEO_PRO_HELD_BACK_PROVIDERS, EXTEND_VIDEO_PROVIDERS, FACE_SWAP_PROVIDERS, FAL_LIP_SYNC_PROVIDERS, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS, FRAME_MODE_ADAPTIVE_ONLY_ASPECT, GEMINI_OMNI_12_MAX_SOURCE_SEC, GEMINI_OMNI_PER_SECOND_PROVIDERS, GEMINI_OMNI_PROVIDERS, GROK_EXTEND_PROVIDER, GROK_EXTEND_SOURCE_MODELS, GROK_EXTEND_SOURCE_NODE_TYPES, GROK_VIDEO_15_DEFAULT_RESOLUTION, GROK_VIDEO_15_MAX_MIDDLE_FRAMES, GROK_VIDEO_15_PROVIDER, GUIDANCE_SCALE_SUPPORT, GVP_ANCHOR_CHOICES, GVP_DEFAULT_PROVIDER, GVP_END_FRAME_PROVIDERS, GVP_EXTEND_PROVIDERS, GVP_SUPPORTED_PROVIDERS, HIGH_QUALITY_PROVIDERS, I2I_MASK_SUPPORT, I2I_STRENGTH_SUPPORT, IDEOGRAM_PROVIDERS, IMAGE_ASPECT_RATIO_VALUES, IMAGE_BACKGROUND_VALUES, IMAGE_EDIT_PROVIDERS, IMAGE_EDIT_TARGET_RESOLUTION_VALUES, IMAGE_GEN_PROVIDERS, IMAGE_I2I_PROVIDERS, IMAGE_K_RESOLUTION_VALUES, IMAGE_MASK_MODE, IMAGE_OUTPUT_FORMAT_EXT, IMAGE_OUTPUT_FORMAT_MIME, IMAGE_OUTPUT_FORMAT_VALUES, IMAGE_PROMPT_MAX, IMAGE_QUALITY_VALUES, IMAGE_RENDERING_SPEED_VALUES, IMAGE_RESOLUTION_VALUES, IMAGE_SVG_LEVEL_VALUES, IMAGE_TO_VIDEO_PROVIDERS, KLING_4_DEFAULT_RESOLUTION, KLING_4_FLASH_PROVIDER, KLING_4_FLASH_RESOLUTION, KLING_4_MAX_MIDDLE_FRAMES, KLING_4_PROVIDERS, LEGACY_VIDEO_NODE_DEFAULT_PROVIDER, LIP_SYNC_PROVIDERS, LLM_STRUCTURED_SYSTEM_MAX, LLM_TEXT_INPUT_MAX, LOCATION_ATMOSPHERE_PROVIDERS, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER, MAX_REQUEST_IMAGE_LIMIT, MAX_TTS_CHARS_BY_PROVIDER, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER, MINIMAX_H3_DEFAULT_RESOLUTION, MINIMAX_H3_PROVIDERS, MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER, MODELS_WITH_REFERENCE_IMAGE_SUPPORT, MODE_ADDON_PROVIDERS, MODIFY_IMAGE_PROVIDERS, MOTION_DURATION_TIERS, MOTION_TRANSFER_PROVIDERS, MUSIC_CREDIT_ID, MUSIC_PROVIDERS, MUSIC_PROVIDER_LABELS, NATIVE_ADAPTIVE_ASPECT, NATIVE_NEGATIVE_PROMPT_MODELS, NATIVE_NEGATIVE_VIDEO_PROVIDERS, NEGATIVE_PROMPT_MAX, OBJECT_MOTION_PROVIDERS, PIXVERSE_V6_EXTEND_PROVIDER, PIXVERSE_V6_MAX_DEFAULT_QUALITY, PIXVERSE_V6_MAX_PROVIDER, PRICING_DEFAULT_DURATION_SEC, PRICING_DEFAULT_RESOLUTION, PROMPT_HARD_CEILING, QA_CHECK_PROVIDERS, REF_IMAGE_MAX_LIMITS, RENDERING_SPEED_SUPPORT, REPLICATE_LIP_SYNC_PROVIDERS, RESOLUTION_2K_4K_TIERED_PROVIDERS, RESOLUTION_DURATION_PRICING, RESOLUTION_VIDEO_REF_PRICING, RETIRED_LIP_SYNC_PROVIDERS, RETIRED_VIDEO_PROVIDERS, SCRIPT_PROVIDERS, SEEDANCE_2_5_FLASH_REF_LIMITS, SEEDANCE_2_5_REF_LIMITS, SEEDANCE_2_CONTINUATION_REF_SEC, SEEDANCE_2_EXTEND_STITCH, SEEDANCE_2_PROVIDERS, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC, SEEDANCE_2_REF_LIMITS, SEEDANCE_EDIT_REF_VIDEO_SEC, SEEDANCE_LIP_SYNC_PROVIDERS, SEEDANCE_REFERENCE_TASK_TYPES, SEEDANCE_VIDEO_EDIT_PROVIDERS, SEEDANCE_VIDEO_EDIT_SHAPE, SEEDANCE_VIDEO_EDIT_TASK_TYPE, SEED_SUPPORT, SUNO_ACTIVE_MODELS, SUNO_ADD_TRACK_MODELS, SUNO_DURATION_MODELS, SUNO_HARD_CEILING, SUNO_LEGACY_MODELS, SUNO_MODELS, SUNO_TEXT_MAX, SUNO_TITLE_MAX, SceneInputModeSchema, T2I_TO_I2I_VARIANT, TASK_CHAINED_EDIT_PROVIDERS, TASK_CHAINED_EDIT_PROVIDER_IDS, TEXT_TO_AUDIO_PROVIDERS, TEXT_TO_VIDEO_PROVIDERS, TRANSCRIBE_LANES, TRANSCRIBE_PROVIDERS, TRANSCRIBE_PROVIDER_CAPABILITIES, TRANSCRIBE_TARGET_LANGUAGES, TTS_OUTPUT_FORMATS, TTS_OUTPUT_FORMAT_FILES, TTS_PROVIDERS, TTS_TEXT_MAX, TWO_K_RESOLUTION_PROVIDERS, UPSCALE_IMAGE_PROVIDERS, VARIABLE_PRICING_MODELS, VEO_PROVIDERS, VEO_RESOLUTION_TIERED_PROVIDERS, VIDEO_AUDIO_CAPABILITY, VIDEO_CHARACTER_CLIP_DURATION_LIMITS, VIDEO_DURATION_TIERS, VIDEO_GEN_COLLAPSED_T2V_IDS, VIDEO_GEN_PROVIDERS, VIDEO_INPUT_LIP_SYNC_PROVIDERS, VIDEO_MODEL_CAPS, VIDEO_MODE_ALIASES, VIDEO_PROMPT_MAX, VIDEO_PROVIDERS_REQUIRING_IMAGE, VIDEO_PROVIDERS_WITHOUT_DISPATCH, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL, VIDEO_REF_AUDIO_RULES, VIDEO_REF_LIMITS_BY_PROVIDER, VIDEO_REF_RATE_PROVIDERS, VIDEO_REF_VIDEO_DURATION_LIMITS, VIDEO_REF_VIDEO_PICTURE_LIMITS, VIDEO_START_FRAME_ONLY_CODE, VIDEO_TO_VIDEO_NODE_PROVIDERS, VIDEO_TO_VIDEO_PROVIDERS, VIDEO_UPSCALE_PROVIDERS, VIDEO_VARIABLE_PRICING, VIDU_Q4_DEFAULT_RESOLUTION, VIDU_Q4_PROVIDERS, VOICE_DESIGN_MODELS, WAN_3_DEFAULT_RESOLUTION, WAN_3_PROVIDERS, applyDefaultVideoSelection, applyVideoAudioToggle, applyVideoNegativePrompt, billsReferenceVideoSeconds, canonicalVideoProvider, checkCharacterClipDurations, checkRefAudioRules, checkRefVideoDurations, defaultVideoAspectRatio, editVideoProProviderRefusal, extendHasSoundSwitch, findSeedance2AudioOverLimit, getMaxImagePromptChars, getMaxNegativePromptChars, getMaxSunoPromptChars, getMaxSunoStyleChars, getMaxTtsChars, getMaxVideoPromptChars, getMinImagePromptChars, getVideoAudioCapability, grokVideo15MiddleFrameSlots, hasContiguousSegmentDurations, hasOwnRequestImageLimit, imageReferenceLimit, isCatalogExtendProvider, isEditVideoProProvider, isGeminiOmniPerSecondProvider, isGeminiOmniProvider, isGrokExtendProvider, isGrokExtendSourceModel, isGrokVideo15Provider, isGvpSupportedProvider, isKling4FlashProvider, isKling4Provider, isKling4RunnerProvider, isLegacySunoModel, isMinimaxH3Provider, isPixverseExtendProvider, isPixverseV6MaxProvider, isSeedance2Provider, isSeedanceExtendProvider, isSeedanceVideoEditProvider, isTailExtendProvider, isVeoProvider, isViduQ4Provider, isWan3Provider, kling4KeyframeFrameCap, listedSeedanceTaskType, maxSegmentSecFor, maxSegmentsFor, maxVideoDurationSec, minSegmentSecFor, modelsForInputMode, normalizeGrokVideo15Resolution, normalizeKling4Resolution, normalizeMinimaxH3Resolution, normalizePixverseV6MaxQuality, normalizeViduQ4Resolution, normalizeWan3Resolution, preferredInputModeForModel, pricedOutputDurationSec, refVideoAspectProblem, refusesImagesOverLimit, refusesImagesOverLimitOn, requestImageLimit, resolveGvpAnchorWire, resolveMusicProvider, resolveSeedanceTaskType, resolveVideoModeForInputs, resolveVideoProviderForMode, retiredLipSyncProviderMessage, retiredLipSyncProviderName, seedance2AudioLimitSec, seedanceTaskTypeFitsMedia, segmentDurationsFor, snapToNearestDuration, sunoModelHonoursDuration, supportsAutoVideoDuration, supportsEndAnchor, supportsExtendRender, supportsReferenceTaskType, transcribeLaneSupportsTranslation, transcribeLaneSupportsWordTimestamps, transcribeProvidersWithTranslation, transcribeProvidersWithWordTimestamps, trimVideoReferencesToLimits, videoAudioIntent, videoAudioPricedOn, videoDefaultDurationSec, videoKeyframesMiddleCap, videoModelCanSpeakDialogue, videoModelSupportsAudio, videoNegativeSuffix, videoProviderAppendsFrames, videoProviderFoldsLoneEndFrame, videoProviderRefModeFrameSeats, videoProviderReferenceSyntax, videoProviderRefsReplaceStartFrame, videoProviderRequiresImage, videoProviderRunsFromReferences, videoProviderTakesLoneEndFrame, videoReferencesOverLimitProblem, videoSourceTrimMaxSec, videoStartFrameOnlyMessage, videoStartFrameOnlyProblem, videoStartFrameOnlyResolution };
|
|
2717
|
+
//# sourceMappingURL=chunk-DNWFFVC6.js.map
|
|
2718
|
+
//# sourceMappingURL=chunk-DNWFFVC6.js.map
|