@nodaro/shared 3.50.0 → 3.52.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.
Files changed (175) hide show
  1. package/dist/{chunk-XQBBBQZH.cjs → chunk-25OWMP6B.cjs} +47 -47
  2. package/dist/{chunk-XQBBBQZH.cjs.map → chunk-25OWMP6B.cjs.map} +1 -1
  3. package/dist/{chunk-T4EBNTKT.js → chunk-2LNQ2MDO.js} +3 -3
  4. package/dist/{chunk-T4EBNTKT.js.map → chunk-2LNQ2MDO.js.map} +1 -1
  5. package/dist/{chunk-HPT244UT.cjs → chunk-34EXMNOX.cjs} +9 -7
  6. package/dist/chunk-34EXMNOX.cjs.map +1 -0
  7. package/dist/{chunk-7VDPBFER.cjs → chunk-3M4BNKFJ.cjs} +32 -2
  8. package/dist/chunk-3M4BNKFJ.cjs.map +1 -0
  9. package/dist/{chunk-D33YBZ3B.cjs → chunk-5M43XMRB.cjs} +8 -8
  10. package/dist/{chunk-D33YBZ3B.cjs.map → chunk-5M43XMRB.cjs.map} +1 -1
  11. package/dist/{chunk-QZANEGZ3.cjs → chunk-66GADQRV.cjs} +21 -21
  12. package/dist/{chunk-QZANEGZ3.cjs.map → chunk-66GADQRV.cjs.map} +1 -1
  13. package/dist/{chunk-KOVIMPZS.js → chunk-6CVY3345.js} +3 -3
  14. package/dist/{chunk-KOVIMPZS.js.map → chunk-6CVY3345.js.map} +1 -1
  15. package/dist/{chunk-DZOCFLMK.js → chunk-6LCZPDIF.js} +3 -3
  16. package/dist/{chunk-DZOCFLMK.js.map → chunk-6LCZPDIF.js.map} +1 -1
  17. package/dist/{chunk-QLCSS6DK.js → chunk-7FCTCWHD.js} +3 -3
  18. package/dist/{chunk-QLCSS6DK.js.map → chunk-7FCTCWHD.js.map} +1 -1
  19. package/dist/{chunk-BQSXEU3O.cjs → chunk-7HWXJIQ6.cjs} +4 -4
  20. package/dist/{chunk-BQSXEU3O.cjs.map → chunk-7HWXJIQ6.cjs.map} +1 -1
  21. package/dist/{chunk-2JUNYRMS.cjs → chunk-7YFQKR5C.cjs} +21 -21
  22. package/dist/{chunk-2JUNYRMS.cjs.map → chunk-7YFQKR5C.cjs.map} +1 -1
  23. package/dist/{chunk-ML7Q2LTB.js → chunk-A24LLEXS.js} +9 -6
  24. package/dist/chunk-A24LLEXS.js.map +1 -0
  25. package/dist/{chunk-6TL7JMVF.js → chunk-AJFQ5242.js} +5 -5
  26. package/dist/{chunk-6TL7JMVF.js.map → chunk-AJFQ5242.js.map} +1 -1
  27. package/dist/{chunk-AENQLVQH.js → chunk-AJPV3RZJ.js} +5 -5
  28. package/dist/{chunk-AENQLVQH.js.map → chunk-AJPV3RZJ.js.map} +1 -1
  29. package/dist/{chunk-NEJ2PV4C.cjs → chunk-ANMCMSGR.cjs} +6 -3
  30. package/dist/chunk-ANMCMSGR.cjs.map +1 -0
  31. package/dist/{chunk-U6BDA2CX.cjs → chunk-AVUW7XKP.cjs} +16 -16
  32. package/dist/{chunk-U6BDA2CX.cjs.map → chunk-AVUW7XKP.cjs.map} +1 -1
  33. package/dist/{chunk-HCZYIYKK.js → chunk-BG5272F5.js} +4 -4
  34. package/dist/{chunk-HCZYIYKK.js.map → chunk-BG5272F5.js.map} +1 -1
  35. package/dist/{chunk-NU6UR5RI.cjs → chunk-CSPELPDB.cjs} +8 -8
  36. package/dist/{chunk-NU6UR5RI.cjs.map → chunk-CSPELPDB.cjs.map} +1 -1
  37. package/dist/{chunk-P4QT7JGD.cjs → chunk-FBLMWA2R.cjs} +13 -13
  38. package/dist/{chunk-P4QT7JGD.cjs.map → chunk-FBLMWA2R.cjs.map} +1 -1
  39. package/dist/{chunk-X62EMX7Y.js → chunk-FIROF3TM.js} +5 -5
  40. package/dist/{chunk-X62EMX7Y.js.map → chunk-FIROF3TM.js.map} +1 -1
  41. package/dist/{chunk-27LQR7DO.js → chunk-FRXVOYL2.js} +6 -4
  42. package/dist/chunk-FRXVOYL2.js.map +1 -0
  43. package/dist/{chunk-2BHOAYZW.js → chunk-FVII3KHN.js} +32 -2
  44. package/dist/chunk-FVII3KHN.js.map +1 -0
  45. package/dist/{chunk-VCHWYREY.js → chunk-GL5Z3CC4.js} +3 -3
  46. package/dist/{chunk-VCHWYREY.js.map → chunk-GL5Z3CC4.js.map} +1 -1
  47. package/dist/chunk-H7HKLN2W.cjs +27 -0
  48. package/dist/{chunk-QIXL2ZLX.cjs.map → chunk-H7HKLN2W.cjs.map} +1 -1
  49. package/dist/{chunk-WPT5ZTA2.js → chunk-HZL7QMXK.js} +17 -4
  50. package/dist/chunk-HZL7QMXK.js.map +1 -0
  51. package/dist/{chunk-TZBIY5C3.js → chunk-IB5B3EBD.js} +6 -3
  52. package/dist/chunk-IB5B3EBD.js.map +1 -0
  53. package/dist/{chunk-DDTA6X2S.cjs → chunk-IJ6XNHSD.cjs} +10 -10
  54. package/dist/{chunk-DDTA6X2S.cjs.map → chunk-IJ6XNHSD.cjs.map} +1 -1
  55. package/dist/{chunk-NGT2FYP2.cjs → chunk-J3HPEKGJ.cjs} +9 -6
  56. package/dist/chunk-J3HPEKGJ.cjs.map +1 -0
  57. package/dist/{chunk-HSJU5KNR.cjs → chunk-J4CVGAAV.cjs} +17 -4
  58. package/dist/chunk-J4CVGAAV.cjs.map +1 -0
  59. package/dist/{chunk-FV43YJ5I.js → chunk-JAD2SBD4.js} +4 -4
  60. package/dist/{chunk-FV43YJ5I.js.map → chunk-JAD2SBD4.js.map} +1 -1
  61. package/dist/{chunk-WAUWKYLF.js → chunk-JAGYUDOK.js} +3 -3
  62. package/dist/{chunk-WAUWKYLF.js.map → chunk-JAGYUDOK.js.map} +1 -1
  63. package/dist/{chunk-77R3HYOE.js → chunk-JZJRD7RG.js} +6 -6
  64. package/dist/{chunk-77R3HYOE.js.map → chunk-JZJRD7RG.js.map} +1 -1
  65. package/dist/{chunk-MFM7XRFO.js → chunk-KWC53X5Q.js} +5 -4
  66. package/dist/chunk-KWC53X5Q.js.map +1 -0
  67. package/dist/{chunk-UDYFWB7D.cjs → chunk-MI63SSCJ.cjs} +4 -4
  68. package/dist/{chunk-UDYFWB7D.cjs.map → chunk-MI63SSCJ.cjs.map} +1 -1
  69. package/dist/{chunk-TA5MZZKE.cjs → chunk-MI6CZQCG.cjs} +45 -45
  70. package/dist/{chunk-TA5MZZKE.cjs.map → chunk-MI6CZQCG.cjs.map} +1 -1
  71. package/dist/{chunk-HLPRXII4.cjs → chunk-N2KMFVHU.cjs} +5 -3
  72. package/dist/chunk-N2KMFVHU.cjs.map +1 -0
  73. package/dist/{chunk-HNBJP2IR.js → chunk-OWVWV4T2.js} +3 -3
  74. package/dist/{chunk-HNBJP2IR.js.map → chunk-OWVWV4T2.js.map} +1 -1
  75. package/dist/{chunk-TMXFL6RC.cjs → chunk-QBXC3AXS.cjs} +12 -12
  76. package/dist/{chunk-TMXFL6RC.cjs.map → chunk-QBXC3AXS.cjs.map} +1 -1
  77. package/dist/{chunk-FEPSSBD5.cjs → chunk-SRLWSI6Q.cjs} +5 -5
  78. package/dist/{chunk-FEPSSBD5.cjs.map → chunk-SRLWSI6Q.cjs.map} +1 -1
  79. package/dist/{chunk-GIU37YMD.js → chunk-TRZMLQSL.js} +3 -3
  80. package/dist/{chunk-GIU37YMD.js.map → chunk-TRZMLQSL.js.map} +1 -1
  81. package/dist/{chunk-PSAWDKO3.cjs → chunk-TWF2OSH4.cjs} +4 -4
  82. package/dist/{chunk-PSAWDKO3.cjs.map → chunk-TWF2OSH4.cjs.map} +1 -1
  83. package/dist/{chunk-6GTTATPR.cjs → chunk-VLNOQJDO.cjs} +6 -6
  84. package/dist/{chunk-6GTTATPR.cjs.map → chunk-VLNOQJDO.cjs.map} +1 -1
  85. package/dist/{chunk-DPUIJHM7.cjs → chunk-VNHX6TQT.cjs} +5 -5
  86. package/dist/{chunk-DPUIJHM7.cjs.map → chunk-VNHX6TQT.cjs.map} +1 -1
  87. package/dist/{chunk-JGCGLHZL.js → chunk-VSNQLSME.js} +3 -3
  88. package/dist/{chunk-JGCGLHZL.js.map → chunk-VSNQLSME.js.map} +1 -1
  89. package/dist/{chunk-26L7NHK4.js → chunk-WBPJNXYN.js} +4 -4
  90. package/dist/{chunk-26L7NHK4.js.map → chunk-WBPJNXYN.js.map} +1 -1
  91. package/dist/{chunk-S5CRPOYD.cjs → chunk-XRXPWW7P.cjs} +52 -52
  92. package/dist/chunk-XRXPWW7P.cjs.map +1 -0
  93. package/dist/{chunk-QBRTPVT6.js → chunk-YOH5AUYL.js} +10 -10
  94. package/dist/chunk-YOH5AUYL.js.map +1 -0
  95. package/dist/{chunk-BLZBDPZJ.js → chunk-ZES6EZC4.js} +3 -3
  96. package/dist/{chunk-BLZBDPZJ.js.map → chunk-ZES6EZC4.js.map} +1 -1
  97. package/dist/entries/apps.cjs +43 -43
  98. package/dist/entries/apps.d.cts +1 -1
  99. package/dist/entries/apps.d.ts +1 -1
  100. package/dist/entries/apps.js +8 -8
  101. package/dist/entries/credits.cjs +151 -151
  102. package/dist/entries/credits.d.cts +1 -1
  103. package/dist/entries/credits.d.ts +1 -1
  104. package/dist/entries/credits.js +8 -8
  105. package/dist/entries/llm-models.cjs +57 -57
  106. package/dist/entries/llm-models.d.cts +7 -0
  107. package/dist/entries/llm-models.d.ts +7 -0
  108. package/dist/entries/llm-models.js +2 -2
  109. package/dist/entries/media.cjs +59 -55
  110. package/dist/entries/media.d.cts +42 -6
  111. package/dist/entries/media.d.ts +42 -6
  112. package/dist/entries/media.js +1 -1
  113. package/dist/entries/model-catalog.cjs +66 -66
  114. package/dist/entries/model-catalog.d.cts +2 -2
  115. package/dist/entries/model-catalog.d.ts +2 -2
  116. package/dist/entries/model-catalog.js +4 -4
  117. package/dist/entries/models.cjs +277 -277
  118. package/dist/entries/models.d.cts +1 -1
  119. package/dist/entries/models.d.ts +1 -1
  120. package/dist/entries/models.js +5 -5
  121. package/dist/entries/nodes.cjs +208 -208
  122. package/dist/entries/nodes.d.cts +9 -6
  123. package/dist/entries/nodes.d.ts +9 -6
  124. package/dist/entries/nodes.js +10 -10
  125. package/dist/entries/pipeline.cjs +149 -149
  126. package/dist/entries/pipeline.js +3 -3
  127. package/dist/entries/social.cjs +177 -177
  128. package/dist/entries/social.js +2 -2
  129. package/dist/entries/ugc.cjs +71 -71
  130. package/dist/entries/ugc.js +4 -4
  131. package/dist/entries/video.cjs +141 -141
  132. package/dist/entries/video.d.cts +1 -1
  133. package/dist/entries/video.d.ts +1 -1
  134. package/dist/entries/video.js +5 -5
  135. package/dist/entries/workflow.cjs +146 -146
  136. package/dist/entries/workflow.d.cts +13 -0
  137. package/dist/entries/workflow.d.ts +13 -0
  138. package/dist/entries/workflow.js +2 -2
  139. package/dist/index.cjs +1515 -1511
  140. package/dist/index.d.cts +2 -2
  141. package/dist/index.d.ts +2 -2
  142. package/dist/index.js +24 -24
  143. package/dist/{model-catalog-Ciqsc0ha.d.ts → model-catalog-Dm2UiwUe.d.cts} +4 -3
  144. package/dist/{model-catalog-Ciqsc0ha.d.cts → model-catalog-Dm2UiwUe.d.ts} +4 -3
  145. package/package.json +1 -1
  146. package/src/__tests__/llm-models.test.ts +18 -0
  147. package/src/__tests__/model-makers.test.ts +10 -0
  148. package/src/__tests__/model-tree.test.ts +5 -4
  149. package/src/__tests__/node-runtime-keys.test.ts +11 -0
  150. package/src/__tests__/preview-gate-use-case.test.ts +6 -0
  151. package/src/__tests__/template-categories.test.ts +9 -3
  152. package/src/__tests__/video-face-mesh.test.ts +7 -0
  153. package/src/llm-models.ts +37 -0
  154. package/src/model-catalog.ts +11 -7
  155. package/src/node-execution-state.ts +13 -0
  156. package/src/node-runtime-keys.ts +13 -0
  157. package/src/preview-gate.ts +7 -4
  158. package/src/template-categories.ts +2 -0
  159. package/src/video-face-mesh.ts +43 -5
  160. package/src/video-link.ts +3 -0
  161. package/dist/chunk-27LQR7DO.js.map +0 -1
  162. package/dist/chunk-2BHOAYZW.js.map +0 -1
  163. package/dist/chunk-7VDPBFER.cjs.map +0 -1
  164. package/dist/chunk-HLPRXII4.cjs.map +0 -1
  165. package/dist/chunk-HPT244UT.cjs.map +0 -1
  166. package/dist/chunk-HSJU5KNR.cjs.map +0 -1
  167. package/dist/chunk-MFM7XRFO.js.map +0 -1
  168. package/dist/chunk-ML7Q2LTB.js.map +0 -1
  169. package/dist/chunk-NEJ2PV4C.cjs.map +0 -1
  170. package/dist/chunk-NGT2FYP2.cjs.map +0 -1
  171. package/dist/chunk-QBRTPVT6.js.map +0 -1
  172. package/dist/chunk-QIXL2ZLX.cjs +0 -27
  173. package/dist/chunk-S5CRPOYD.cjs.map +0 -1
  174. package/dist/chunk-TZBIY5C3.js.map +0 -1
  175. package/dist/chunk-WPT5ZTA2.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7VDPBFER_cjs = require('./chunk-7VDPBFER.cjs');
3
+ var chunk3M4BNKFJ_cjs = require('./chunk-3M4BNKFJ.cjs');
4
4
 
5
5
  // src/script-model.ts
6
6
  var SCRIPT_LEGACY_PROVIDER_MODELS = {
@@ -10,10 +10,10 @@ var SCRIPT_LEGACY_PROVIDER_MODELS = {
10
10
  };
11
11
  function resolveScriptModelId(provider, llmModel) {
12
12
  const legacy = provider && Object.hasOwn(SCRIPT_LEGACY_PROVIDER_MODELS, provider) ? SCRIPT_LEGACY_PROVIDER_MODELS[provider] : void 0;
13
- return llmModel || legacy || chunk7VDPBFER_cjs.LLM_FEATURE_DEFAULTS["generate-script"];
13
+ return llmModel || legacy || chunk3M4BNKFJ_cjs.LLM_FEATURE_DEFAULTS["generate-script"];
14
14
  }
15
15
 
16
16
  exports.SCRIPT_LEGACY_PROVIDER_MODELS = SCRIPT_LEGACY_PROVIDER_MODELS;
17
17
  exports.resolveScriptModelId = resolveScriptModelId;
18
- //# sourceMappingURL=chunk-PSAWDKO3.cjs.map
19
- //# sourceMappingURL=chunk-PSAWDKO3.cjs.map
18
+ //# sourceMappingURL=chunk-TWF2OSH4.cjs.map
19
+ //# sourceMappingURL=chunk-TWF2OSH4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/script-model.ts"],"names":["LLM_FEATURE_DEFAULTS"],"mappings":";;;;;AAWO,IAAM,6BAAA,GAA0E;AAAA,EACrF,MAAA,EAAQ,kBAAA;AAAA,EACR,MAAA,EAAQ,mBAAA;AAAA,EACR,GAAA,EAAK;AACP;AAEO,SAAS,oBAAA,CAAqB,UAAmB,QAAA,EAA2B;AACjF,EAAA,MAAM,MAAA,GAAS,YAAY,MAAA,CAAO,MAAA,CAAO,+BAA+B,QAAQ,CAAA,GAAI,6BAAA,CAA8B,QAA0B,CAAA,GAAI,MAAA;AAChJ,EAAA,OAAO,QAAA,IAAY,MAAA,IAAUA,sCAAA,CAAqB,iBAAiB,CAAA;AACrE","file":"chunk-PSAWDKO3.cjs","sourcesContent":["/**\n * The model a Generate Script call runs on, in one place: an explicit\n * `llmModel`, else a legacy script `provider` alias (nodes saved before the\n * per-model picker), else the feature's default. The route validates against\n * it, the worker runs it, and the server's estimate and the editor's price it —\n * one rule, so none of them can name a different model.\n */\nimport { LLM_FEATURE_DEFAULTS } from \"./llm-models.js\"\nimport type { ScriptProvider } from \"./model-constants.js\"\n\n/** Legacy provider names → the LLM model ids they ran. */\nexport const SCRIPT_LEGACY_PROVIDER_MODELS: Readonly<Record<ScriptProvider, string>> = {\n gemini: \"gemini-3.6-flash\",\n claude: \"claude-sonnet-4.6\",\n gpt: \"gpt-5.2\",\n}\n\nexport function resolveScriptModelId(provider?: string, llmModel?: string): string {\n const legacy = provider && Object.hasOwn(SCRIPT_LEGACY_PROVIDER_MODELS, provider) ? SCRIPT_LEGACY_PROVIDER_MODELS[provider as ScriptProvider] : undefined\n return llmModel || legacy || LLM_FEATURE_DEFAULTS[\"generate-script\"]\n}\n"]}
1
+ {"version":3,"sources":["../src/script-model.ts"],"names":["LLM_FEATURE_DEFAULTS"],"mappings":";;;;;AAWO,IAAM,6BAAA,GAA0E;AAAA,EACrF,MAAA,EAAQ,kBAAA;AAAA,EACR,MAAA,EAAQ,mBAAA;AAAA,EACR,GAAA,EAAK;AACP;AAEO,SAAS,oBAAA,CAAqB,UAAmB,QAAA,EAA2B;AACjF,EAAA,MAAM,MAAA,GAAS,YAAY,MAAA,CAAO,MAAA,CAAO,+BAA+B,QAAQ,CAAA,GAAI,6BAAA,CAA8B,QAA0B,CAAA,GAAI,MAAA;AAChJ,EAAA,OAAO,QAAA,IAAY,MAAA,IAAUA,sCAAA,CAAqB,iBAAiB,CAAA;AACrE","file":"chunk-TWF2OSH4.cjs","sourcesContent":["/**\n * The model a Generate Script call runs on, in one place: an explicit\n * `llmModel`, else a legacy script `provider` alias (nodes saved before the\n * per-model picker), else the feature's default. The route validates against\n * it, the worker runs it, and the server's estimate and the editor's price it —\n * one rule, so none of them can name a different model.\n */\nimport { LLM_FEATURE_DEFAULTS } from \"./llm-models.js\"\nimport type { ScriptProvider } from \"./model-constants.js\"\n\n/** Legacy provider names → the LLM model ids they ran. */\nexport const SCRIPT_LEGACY_PROVIDER_MODELS: Readonly<Record<ScriptProvider, string>> = {\n gemini: \"gemini-3.6-flash\",\n claude: \"claude-sonnet-4.6\",\n gpt: \"gpt-5.2\",\n}\n\nexport function resolveScriptModelId(provider?: string, llmModel?: string): string {\n const legacy = provider && Object.hasOwn(SCRIPT_LEGACY_PROVIDER_MODELS, provider) ? SCRIPT_LEGACY_PROVIDER_MODELS[provider as ScriptProvider] : undefined\n return llmModel || legacy || LLM_FEATURE_DEFAULTS[\"generate-script\"]\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNGT2FYP2_cjs = require('./chunk-NGT2FYP2.cjs');
3
+ var chunkJ3HPEKGJ_cjs = require('./chunk-J3HPEKGJ.cjs');
4
4
 
5
5
  // src/tts-capabilities.ts
6
6
  var TTS_PROVIDER_ALIASES = {
@@ -13,12 +13,12 @@ function canonicalTtsProvider(provider) {
13
13
  function findTtsCapabilities(provider) {
14
14
  if (typeof provider !== "string" || !provider) return void 0;
15
15
  const id = canonicalTtsProvider(provider);
16
- if (!Object.hasOwn(chunkNGT2FYP2_cjs.MODEL_CATALOG, id)) return void 0;
17
- const entry = chunkNGT2FYP2_cjs.MODEL_CATALOG[id];
16
+ if (!Object.hasOwn(chunkJ3HPEKGJ_cjs.MODEL_CATALOG, id)) return void 0;
17
+ const entry = chunkJ3HPEKGJ_cjs.MODEL_CATALOG[id];
18
18
  return entry.modes.includes("tts") ? entry.tts : void 0;
19
19
  }
20
20
  function getTtsCapabilities(provider) {
21
- return findTtsCapabilities(provider) ?? chunkNGT2FYP2_cjs.MODEL_CATALOG[TTS_FALLBACK_PROVIDER].tts;
21
+ return findTtsCapabilities(provider) ?? chunkJ3HPEKGJ_cjs.MODEL_CATALOG[TTS_FALLBACK_PROVIDER].tts;
22
22
  }
23
23
  function ttsSupportsAudioTags(provider) {
24
24
  return getTtsCapabilities(provider).audioTags;
@@ -50,5 +50,5 @@ exports.ttsSupportsAudioTags = ttsSupportsAudioTags;
50
50
  exports.ttsSupportsSsmlBreaks = ttsSupportsSsmlBreaks;
51
51
  exports.ttsSupportsStitching = ttsSupportsStitching;
52
52
  exports.ttsSupportsTimestamps = ttsSupportsTimestamps;
53
- //# sourceMappingURL=chunk-6GTTATPR.cjs.map
54
- //# sourceMappingURL=chunk-6GTTATPR.cjs.map
53
+ //# sourceMappingURL=chunk-VLNOQJDO.cjs.map
54
+ //# sourceMappingURL=chunk-VLNOQJDO.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/tts-capabilities.ts"],"names":["MODEL_CATALOG"],"mappings":";;;;;AAkBO,IAAM,oBAAA,GAAyD;AAAA,EACpE,UAAA,EAAY;AACd;AAGO,IAAM,qBAAA,GAAwB;AAQ9B,SAAS,qBAAqB,QAAA,EAA0B;AAC7D,EAAA,OAAO,OAAO,QAAA,KAAa,QAAA,IAAY,MAAA,CAAO,MAAA,CAAO,sBAAsB,QAAQ,CAAA,GAAI,oBAAA,CAAqB,QAAQ,CAAA,GAAK,QAAA;AAC3H;AAGO,SAAS,oBAAoB,QAAA,EAA2D;AAG7F,EAAA,IAAI,OAAO,QAAA,KAAa,QAAA,IAAY,CAAC,UAAU,OAAO,MAAA;AACtD,EAAA,MAAM,EAAA,GAAK,qBAAqB,QAAQ,CAAA;AACxC,EAAA,IAAI,CAAC,MAAA,CAAO,MAAA,CAAOA,+BAAA,EAAe,EAAE,GAAG,OAAO,MAAA;AAC9C,EAAA,MAAM,KAAA,GAAQA,gCAAc,EAAE,CAAA;AAC9B,EAAA,OAAO,MAAM,KAAA,CAAM,QAAA,CAAS,KAAK,CAAA,GAAI,MAAM,GAAA,GAAM,MAAA;AACnD;AAQO,SAAS,mBAAmB,QAAA,EAA+C;AAChF,EAAA,OAAO,mBAAA,CAAoB,QAAQ,CAAA,IAAKA,+BAAA,CAAc,qBAAqB,CAAA,CAAG,GAAA;AAChF;AAGO,SAAS,qBAAqB,QAAA,EAAuC;AAC1E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,SAAA;AACtC;AAGO,SAAS,sBAAsB,QAAA,EAAuC;AAC3E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,UAAA;AACtC;AAOO,SAAS,qBAAqB,QAAA,EAAuC;AAC1E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,SAAA;AACtC;AAGO,SAAS,WAAA,CAAY,UAA8B,KAAA,EAAiC;AACzF,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,MAAA,CAAO,SAAS,KAAK,CAAA;AAC3D;AAGO,SAAS,sBAAsB,QAAA,EAAuC;AAC3E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,UAAA;AACtC;AAGO,SAAS,iBAAiB,QAAA,EAAiD;AAChF,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,SAAA;AACtC","file":"chunk-6GTTATPR.cjs","sourcesContent":["/**\n * Capability lookups for the text-to-speech lane.\n *\n * Every \"does this model do X\" decision on that lane reads the model's `tts`\n * sheet in `MODEL_CATALOG` through these helpers — tag stripping, which voice\n * settings are sent and shown, the language picker, whether neighbouring text\n * is sent. Declare the sheet honestly\n * on the catalog entry and a new model is covered everywhere; do not compare a\n * provider id by hand.\n *\n * \"The text-to-speech lane\" means the models that list the `tts` mode. The\n * dialogue models carry a sheet too, read by `dialogue-capabilities.ts`; a\n * text-to-speech request that names one runs as the fallback model, so these\n * helpers answer for the fallback there.\n */\nimport { MODEL_CATALOG, type TtsCapabilities, type TtsSettingLever } from \"./model-catalog.js\"\n\n/** Legacy provider ids that are another model under an old name. They have no catalog entry of their own. */\nexport const TTS_PROVIDER_ALIASES: Readonly<Record<string, string>> = {\n elevenlabs: \"elevenlabs-turbo\",\n}\n\n/** The model a request runs on when its provider id is missing or unknown. */\nexport const TTS_FALLBACK_PROVIDER = \"elevenlabs-turbo\"\n\n/**\n * Resolve a legacy alias to the catalog id it runs as. Any other id passes\n * through unchanged. Own properties only: an id that happens to be the name of\n * an inherited object member (`constructor`, `__proto__`, `toString`) is an\n * unknown id like any other, never a function.\n */\nexport function canonicalTtsProvider(provider: string): string {\n return typeof provider === \"string\" && Object.hasOwn(TTS_PROVIDER_ALIASES, provider) ? TTS_PROVIDER_ALIASES[provider]! : provider\n}\n\n/** The capability sheet of a text-to-speech model, or `undefined` when the id is not one. */\nexport function findTtsCapabilities(provider: string | undefined): TtsCapabilities | undefined {\n // `typeof`: node data can be written straight into workflow JSON, so the \"string\" is not guaranteed — and\n // `Object.hasOwn` would coerce an array like [\"elevenlabs-v3\"] into that model's id. A non-string is an unknown id.\n if (typeof provider !== \"string\" || !provider) return undefined\n const id = canonicalTtsProvider(provider)\n if (!Object.hasOwn(MODEL_CATALOG, id)) return undefined\n const entry = MODEL_CATALOG[id]!\n return entry.modes.includes(\"tts\") ? entry.tts : undefined\n}\n\n/**\n * The capability sheet a text-to-speech request will actually run under: a\n * missing or unknown provider id runs as {@link TTS_FALLBACK_PROVIDER}, so it\n * gets that sheet — including its `maxChars` (turbo's 40,000), where\n * `getMaxTtsChars` keeps answering its 5,000 default for such ids.\n */\nexport function getTtsCapabilities(provider: string | undefined): TtsCapabilities {\n return findTtsCapabilities(provider) ?? MODEL_CATALOG[TTS_FALLBACK_PROVIDER]!.tts!\n}\n\n/** The model performs inline `[audio tags]`. false ⇒ strip them before sending. */\nexport function ttsSupportsAudioTags(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).audioTags\n}\n\n/** The model honours SSML `<break time=\"…\"/>` tags. */\nexport function ttsSupportsSsmlBreaks(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).ssmlBreaks\n}\n\n/**\n * The model conditions on neighbouring text (`previous_text` / `next_text`).\n * false ⇒ the provider funnel never puts the fields on the wire, whatever the\n * request carries — the model would reject them.\n */\nexport function ttsSupportsStitching(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).stitching\n}\n\n/** The model honours this voice-setting lever. */\nexport function ttsHasLever(provider: string | undefined, lever: TtsSettingLever): boolean {\n return getTtsCapabilities(provider).levers.includes(lever)\n}\n\n/** The model answers `/v1/text-to-speech/{voice}/with-timestamps` (character timings). */\nexport function ttsSupportsTimestamps(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).timestamps\n}\n\n/** Language codes offered for the model, in catalog order. */\nexport function ttsLanguageCodes(provider: string | undefined): readonly string[] {\n return getTtsCapabilities(provider).languages\n}\n"]}
1
+ {"version":3,"sources":["../src/tts-capabilities.ts"],"names":["MODEL_CATALOG"],"mappings":";;;;;AAkBO,IAAM,oBAAA,GAAyD;AAAA,EACpE,UAAA,EAAY;AACd;AAGO,IAAM,qBAAA,GAAwB;AAQ9B,SAAS,qBAAqB,QAAA,EAA0B;AAC7D,EAAA,OAAO,OAAO,QAAA,KAAa,QAAA,IAAY,MAAA,CAAO,MAAA,CAAO,sBAAsB,QAAQ,CAAA,GAAI,oBAAA,CAAqB,QAAQ,CAAA,GAAK,QAAA;AAC3H;AAGO,SAAS,oBAAoB,QAAA,EAA2D;AAG7F,EAAA,IAAI,OAAO,QAAA,KAAa,QAAA,IAAY,CAAC,UAAU,OAAO,MAAA;AACtD,EAAA,MAAM,EAAA,GAAK,qBAAqB,QAAQ,CAAA;AACxC,EAAA,IAAI,CAAC,MAAA,CAAO,MAAA,CAAOA,+BAAA,EAAe,EAAE,GAAG,OAAO,MAAA;AAC9C,EAAA,MAAM,KAAA,GAAQA,gCAAc,EAAE,CAAA;AAC9B,EAAA,OAAO,MAAM,KAAA,CAAM,QAAA,CAAS,KAAK,CAAA,GAAI,MAAM,GAAA,GAAM,MAAA;AACnD;AAQO,SAAS,mBAAmB,QAAA,EAA+C;AAChF,EAAA,OAAO,mBAAA,CAAoB,QAAQ,CAAA,IAAKA,+BAAA,CAAc,qBAAqB,CAAA,CAAG,GAAA;AAChF;AAGO,SAAS,qBAAqB,QAAA,EAAuC;AAC1E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,SAAA;AACtC;AAGO,SAAS,sBAAsB,QAAA,EAAuC;AAC3E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,UAAA;AACtC;AAOO,SAAS,qBAAqB,QAAA,EAAuC;AAC1E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,SAAA;AACtC;AAGO,SAAS,WAAA,CAAY,UAA8B,KAAA,EAAiC;AACzF,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,MAAA,CAAO,SAAS,KAAK,CAAA;AAC3D;AAGO,SAAS,sBAAsB,QAAA,EAAuC;AAC3E,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,UAAA;AACtC;AAGO,SAAS,iBAAiB,QAAA,EAAiD;AAChF,EAAA,OAAO,kBAAA,CAAmB,QAAQ,CAAA,CAAE,SAAA;AACtC","file":"chunk-VLNOQJDO.cjs","sourcesContent":["/**\n * Capability lookups for the text-to-speech lane.\n *\n * Every \"does this model do X\" decision on that lane reads the model's `tts`\n * sheet in `MODEL_CATALOG` through these helpers — tag stripping, which voice\n * settings are sent and shown, the language picker, whether neighbouring text\n * is sent. Declare the sheet honestly\n * on the catalog entry and a new model is covered everywhere; do not compare a\n * provider id by hand.\n *\n * \"The text-to-speech lane\" means the models that list the `tts` mode. The\n * dialogue models carry a sheet too, read by `dialogue-capabilities.ts`; a\n * text-to-speech request that names one runs as the fallback model, so these\n * helpers answer for the fallback there.\n */\nimport { MODEL_CATALOG, type TtsCapabilities, type TtsSettingLever } from \"./model-catalog.js\"\n\n/** Legacy provider ids that are another model under an old name. They have no catalog entry of their own. */\nexport const TTS_PROVIDER_ALIASES: Readonly<Record<string, string>> = {\n elevenlabs: \"elevenlabs-turbo\",\n}\n\n/** The model a request runs on when its provider id is missing or unknown. */\nexport const TTS_FALLBACK_PROVIDER = \"elevenlabs-turbo\"\n\n/**\n * Resolve a legacy alias to the catalog id it runs as. Any other id passes\n * through unchanged. Own properties only: an id that happens to be the name of\n * an inherited object member (`constructor`, `__proto__`, `toString`) is an\n * unknown id like any other, never a function.\n */\nexport function canonicalTtsProvider(provider: string): string {\n return typeof provider === \"string\" && Object.hasOwn(TTS_PROVIDER_ALIASES, provider) ? TTS_PROVIDER_ALIASES[provider]! : provider\n}\n\n/** The capability sheet of a text-to-speech model, or `undefined` when the id is not one. */\nexport function findTtsCapabilities(provider: string | undefined): TtsCapabilities | undefined {\n // `typeof`: node data can be written straight into workflow JSON, so the \"string\" is not guaranteed — and\n // `Object.hasOwn` would coerce an array like [\"elevenlabs-v3\"] into that model's id. A non-string is an unknown id.\n if (typeof provider !== \"string\" || !provider) return undefined\n const id = canonicalTtsProvider(provider)\n if (!Object.hasOwn(MODEL_CATALOG, id)) return undefined\n const entry = MODEL_CATALOG[id]!\n return entry.modes.includes(\"tts\") ? entry.tts : undefined\n}\n\n/**\n * The capability sheet a text-to-speech request will actually run under: a\n * missing or unknown provider id runs as {@link TTS_FALLBACK_PROVIDER}, so it\n * gets that sheet — including its `maxChars` (turbo's 40,000), where\n * `getMaxTtsChars` keeps answering its 5,000 default for such ids.\n */\nexport function getTtsCapabilities(provider: string | undefined): TtsCapabilities {\n return findTtsCapabilities(provider) ?? MODEL_CATALOG[TTS_FALLBACK_PROVIDER]!.tts!\n}\n\n/** The model performs inline `[audio tags]`. false ⇒ strip them before sending. */\nexport function ttsSupportsAudioTags(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).audioTags\n}\n\n/** The model honours SSML `<break time=\"…\"/>` tags. */\nexport function ttsSupportsSsmlBreaks(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).ssmlBreaks\n}\n\n/**\n * The model conditions on neighbouring text (`previous_text` / `next_text`).\n * false ⇒ the provider funnel never puts the fields on the wire, whatever the\n * request carries — the model would reject them.\n */\nexport function ttsSupportsStitching(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).stitching\n}\n\n/** The model honours this voice-setting lever. */\nexport function ttsHasLever(provider: string | undefined, lever: TtsSettingLever): boolean {\n return getTtsCapabilities(provider).levers.includes(lever)\n}\n\n/** The model answers `/v1/text-to-speech/{voice}/with-timestamps` (character timings). */\nexport function ttsSupportsTimestamps(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).timestamps\n}\n\n/** Language codes offered for the model, in catalog order. */\nexport function ttsLanguageCodes(provider: string | undefined): readonly string[] {\n return getTtsCapabilities(provider).languages\n}\n"]}
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkNGT2FYP2_cjs = require('./chunk-NGT2FYP2.cjs');
3
+ var chunkJ3HPEKGJ_cjs = require('./chunk-J3HPEKGJ.cjs');
4
4
 
5
5
  // src/safety-retry-policy.ts
6
6
  function safetyRetryPolicy(modelId) {
7
- const entry = chunkNGT2FYP2_cjs.getModel(modelId);
7
+ const entry = chunkJ3HPEKGJ_cjs.getModel(modelId);
8
8
  const safetyFilter = entry?.safetyFilter;
9
9
  if (!safetyFilter?.stochastic) return { maxAttempts: 1 };
10
10
  const fallback = safetyFilter.fallback;
11
- if (fallback && chunkNGT2FYP2_cjs.getModel(fallback)) {
11
+ if (fallback && chunkJ3HPEKGJ_cjs.getModel(fallback)) {
12
12
  return { maxAttempts: 2, fallback };
13
13
  }
14
14
  return { maxAttempts: 2 };
15
15
  }
16
16
 
17
17
  exports.safetyRetryPolicy = safetyRetryPolicy;
18
- //# sourceMappingURL=chunk-DPUIJHM7.cjs.map
19
- //# sourceMappingURL=chunk-DPUIJHM7.cjs.map
18
+ //# sourceMappingURL=chunk-VNHX6TQT.cjs.map
19
+ //# sourceMappingURL=chunk-VNHX6TQT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/safety-retry-policy.ts"],"names":["getModel"],"mappings":";;;;;AA0BO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,KAAA,GAAQA,2BAAS,OAAO,CAAA;AAC9B,EAAA,MAAM,eAAe,KAAA,EAAO,YAAA;AAC5B,EAAA,IAAI,CAAC,YAAA,EAAc,UAAA,EAAY,OAAO,EAAE,aAAa,CAAA,EAAE;AAEvD,EAAA,MAAM,WAAW,YAAA,CAAa,QAAA;AAC9B,EAAA,IAAI,QAAA,IAAYA,0BAAA,CAAS,QAAQ,CAAA,EAAG;AAClC,IAAA,OAAO,EAAE,WAAA,EAAa,CAAA,EAAG,QAAA,EAAS;AAAA,EACpC;AACA,EAAA,OAAO,EAAE,aAAa,CAAA,EAAE;AAC1B","file":"chunk-DPUIJHM7.cjs","sourcesContent":["import { getModel } from \"./model-catalog.js\"\n\n/**\n * Retry/fallback behavior derived from a catalog entry's `safetyFilter`\n * flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).\n */\nexport interface SafetyRetryPolicy {\n /** 2 when the model declares `safetyFilter.stochastic`, else 1. */\n maxAttempts: 1 | 2\n /**\n * Catalog model id to offer when the retry also blocks. Only present\n * when the entry declares one AND it resolves to a real catalog entry.\n */\n fallback?: string\n}\n\n/**\n * The provider's safety filter is known to be non-deterministic on some\n * catalog models — a benign prompt can trip it once and pass on an\n * identical retry. For those models the platform retries a blocked\n * request once (`maxAttempts: 2`) before giving up; `fallback` names the\n * catalog model to offer the user when the retry also blocks.\n *\n * Every model not flagged this way — including an unrecognized id —\n * gets a single attempt and no fallback.\n */\nexport function safetyRetryPolicy(modelId: string): SafetyRetryPolicy {\n const entry = getModel(modelId)\n const safetyFilter = entry?.safetyFilter\n if (!safetyFilter?.stochastic) return { maxAttempts: 1 }\n\n const fallback = safetyFilter.fallback\n if (fallback && getModel(fallback)) {\n return { maxAttempts: 2, fallback }\n }\n return { maxAttempts: 2 }\n}\n"]}
1
+ {"version":3,"sources":["../src/safety-retry-policy.ts"],"names":["getModel"],"mappings":";;;;;AA0BO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,KAAA,GAAQA,2BAAS,OAAO,CAAA;AAC9B,EAAA,MAAM,eAAe,KAAA,EAAO,YAAA;AAC5B,EAAA,IAAI,CAAC,YAAA,EAAc,UAAA,EAAY,OAAO,EAAE,aAAa,CAAA,EAAE;AAEvD,EAAA,MAAM,WAAW,YAAA,CAAa,QAAA;AAC9B,EAAA,IAAI,QAAA,IAAYA,0BAAA,CAAS,QAAQ,CAAA,EAAG;AAClC,IAAA,OAAO,EAAE,WAAA,EAAa,CAAA,EAAG,QAAA,EAAS;AAAA,EACpC;AACA,EAAA,OAAO,EAAE,aAAa,CAAA,EAAE;AAC1B","file":"chunk-VNHX6TQT.cjs","sourcesContent":["import { getModel } from \"./model-catalog.js\"\n\n/**\n * Retry/fallback behavior derived from a catalog entry's `safetyFilter`\n * flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).\n */\nexport interface SafetyRetryPolicy {\n /** 2 when the model declares `safetyFilter.stochastic`, else 1. */\n maxAttempts: 1 | 2\n /**\n * Catalog model id to offer when the retry also blocks. Only present\n * when the entry declares one AND it resolves to a real catalog entry.\n */\n fallback?: string\n}\n\n/**\n * The provider's safety filter is known to be non-deterministic on some\n * catalog models — a benign prompt can trip it once and pass on an\n * identical retry. For those models the platform retries a blocked\n * request once (`maxAttempts: 2`) before giving up; `fallback` names the\n * catalog model to offer the user when the retry also blocks.\n *\n * Every model not flagged this way — including an unrecognized id —\n * gets a single attempt and no fallback.\n */\nexport function safetyRetryPolicy(modelId: string): SafetyRetryPolicy {\n const entry = getModel(modelId)\n const safetyFilter = entry?.safetyFilter\n if (!safetyFilter?.stochastic) return { maxAttempts: 1 }\n\n const fallback = safetyFilter.fallback\n if (fallback && getModel(fallback)) {\n return { maxAttempts: 2, fallback }\n }\n return { maxAttempts: 2 }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { getModel } from './chunk-ML7Q2LTB.js';
1
+ import { getModel } from './chunk-A24LLEXS.js';
2
2
 
3
3
  // src/safety-retry-policy.ts
4
4
  function safetyRetryPolicy(modelId) {
@@ -13,5 +13,5 @@ function safetyRetryPolicy(modelId) {
13
13
  }
14
14
 
15
15
  export { safetyRetryPolicy };
16
- //# sourceMappingURL=chunk-JGCGLHZL.js.map
17
- //# sourceMappingURL=chunk-JGCGLHZL.js.map
16
+ //# sourceMappingURL=chunk-VSNQLSME.js.map
17
+ //# sourceMappingURL=chunk-VSNQLSME.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/safety-retry-policy.ts"],"names":[],"mappings":";;;AA0BO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,KAAA,GAAQ,SAAS,OAAO,CAAA;AAC9B,EAAA,MAAM,eAAe,KAAA,EAAO,YAAA;AAC5B,EAAA,IAAI,CAAC,YAAA,EAAc,UAAA,EAAY,OAAO,EAAE,aAAa,CAAA,EAAE;AAEvD,EAAA,MAAM,WAAW,YAAA,CAAa,QAAA;AAC9B,EAAA,IAAI,QAAA,IAAY,QAAA,CAAS,QAAQ,CAAA,EAAG;AAClC,IAAA,OAAO,EAAE,WAAA,EAAa,CAAA,EAAG,QAAA,EAAS;AAAA,EACpC;AACA,EAAA,OAAO,EAAE,aAAa,CAAA,EAAE;AAC1B","file":"chunk-JGCGLHZL.js","sourcesContent":["import { getModel } from \"./model-catalog.js\"\n\n/**\n * Retry/fallback behavior derived from a catalog entry's `safetyFilter`\n * flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).\n */\nexport interface SafetyRetryPolicy {\n /** 2 when the model declares `safetyFilter.stochastic`, else 1. */\n maxAttempts: 1 | 2\n /**\n * Catalog model id to offer when the retry also blocks. Only present\n * when the entry declares one AND it resolves to a real catalog entry.\n */\n fallback?: string\n}\n\n/**\n * The provider's safety filter is known to be non-deterministic on some\n * catalog models — a benign prompt can trip it once and pass on an\n * identical retry. For those models the platform retries a blocked\n * request once (`maxAttempts: 2`) before giving up; `fallback` names the\n * catalog model to offer the user when the retry also blocks.\n *\n * Every model not flagged this way — including an unrecognized id —\n * gets a single attempt and no fallback.\n */\nexport function safetyRetryPolicy(modelId: string): SafetyRetryPolicy {\n const entry = getModel(modelId)\n const safetyFilter = entry?.safetyFilter\n if (!safetyFilter?.stochastic) return { maxAttempts: 1 }\n\n const fallback = safetyFilter.fallback\n if (fallback && getModel(fallback)) {\n return { maxAttempts: 2, fallback }\n }\n return { maxAttempts: 2 }\n}\n"]}
1
+ {"version":3,"sources":["../src/safety-retry-policy.ts"],"names":[],"mappings":";;;AA0BO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,KAAA,GAAQ,SAAS,OAAO,CAAA;AAC9B,EAAA,MAAM,eAAe,KAAA,EAAO,YAAA;AAC5B,EAAA,IAAI,CAAC,YAAA,EAAc,UAAA,EAAY,OAAO,EAAE,aAAa,CAAA,EAAE;AAEvD,EAAA,MAAM,WAAW,YAAA,CAAa,QAAA;AAC9B,EAAA,IAAI,QAAA,IAAY,QAAA,CAAS,QAAQ,CAAA,EAAG;AAClC,IAAA,OAAO,EAAE,WAAA,EAAa,CAAA,EAAG,QAAA,EAAS;AAAA,EACpC;AACA,EAAA,OAAO,EAAE,aAAa,CAAA,EAAE;AAC1B","file":"chunk-VSNQLSME.js","sourcesContent":["import { getModel } from \"./model-catalog.js\"\n\n/**\n * Retry/fallback behavior derived from a catalog entry's `safetyFilter`\n * flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).\n */\nexport interface SafetyRetryPolicy {\n /** 2 when the model declares `safetyFilter.stochastic`, else 1. */\n maxAttempts: 1 | 2\n /**\n * Catalog model id to offer when the retry also blocks. Only present\n * when the entry declares one AND it resolves to a real catalog entry.\n */\n fallback?: string\n}\n\n/**\n * The provider's safety filter is known to be non-deterministic on some\n * catalog models — a benign prompt can trip it once and pass on an\n * identical retry. For those models the platform retries a blocked\n * request once (`maxAttempts: 2`) before giving up; `fallback` names the\n * catalog model to offer the user when the retry also blocks.\n *\n * Every model not flagged this way — including an unrecognized id —\n * gets a single attempt and no fallback.\n */\nexport function safetyRetryPolicy(modelId: string): SafetyRetryPolicy {\n const entry = getModel(modelId)\n const safetyFilter = entry?.safetyFilter\n if (!safetyFilter?.stochastic) return { maxAttempts: 1 }\n\n const fallback = safetyFilter.fallback\n if (fallback && getModel(fallback)) {\n return { maxAttempts: 2, fallback }\n }\n return { maxAttempts: 2 }\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { isSeedance2Provider, isMinimaxH3Provider, isWan3Provider, isKling4Provider, isViduQ4Provider, PRICING_DEFAULT_RESOLUTION, isGeminiOmniProvider } from './chunk-GIU37YMD.js';
2
- import { MODEL_CATALOG } from './chunk-ML7Q2LTB.js';
1
+ import { isSeedance2Provider, isMinimaxH3Provider, isWan3Provider, isKling4Provider, isViduQ4Provider, PRICING_DEFAULT_RESOLUTION, isGeminiOmniProvider } from './chunk-TRZMLQSL.js';
2
+ import { MODEL_CATALOG } from './chunk-A24LLEXS.js';
3
3
 
4
4
  // src/video-ui-defaults.ts
5
5
  function uiAspectRatioFill(provider) {
@@ -19,5 +19,5 @@ function uiDurationFill(provider) {
19
19
  }
20
20
 
21
21
  export { uiAspectRatioFill, uiDurationFill, uiResolutionFill };
22
- //# sourceMappingURL=chunk-26L7NHK4.js.map
23
- //# sourceMappingURL=chunk-26L7NHK4.js.map
22
+ //# sourceMappingURL=chunk-WBPJNXYN.js.map
23
+ //# sourceMappingURL=chunk-WBPJNXYN.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/video-ui-defaults.ts"],"names":[],"mappings":";;;;AA0CO,SAAS,kBAAkB,QAAA,EAAsC;AACtE,EAAA,IAAI,mBAAA,CAAoB,QAAQ,CAAA,IAAK,mBAAA,CAAoB,QAAQ,CAAA,IAAK,cAAA,CAAe,QAAQ,CAAA,EAAG,OAAO,UAAA;AAGvG,EAAA,IAAI,gBAAA,CAAiB,QAAQ,CAAA,EAAG,OAAO,MAAA;AACvC,EAAA,OAAO,MAAA;AACT;AAIO,SAAS,iBAAiB,QAAA,EAAsC;AACrE,EAAA,IAAI,cAAA,CAAe,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,EAAG,OAAO,0BAAA,CAA2B,QAAQ,CAAA;AACpI,EAAA,IAAI,mBAAA,CAAoB,QAAQ,CAAA,EAAG,OAAO,cAAc,QAAQ,CAAA,EAAG,cAAc,CAAC,CAAA;AAClF,EAAA,OAAO,MAAA;AACT;AAUO,SAAS,eAAe,QAAA,EAAsC;AACnE,EAAA,IAAI,cAAA,CAAe,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,EAAG,OAAO,CAAA;AACjG,EAAA,IAAI,oBAAA,CAAqB,QAAQ,CAAA,EAAG,OAAO,CAAA;AAC3C,EAAA,OAAO,MAAA;AACT","file":"chunk-26L7NHK4.js","sourcesContent":["/**\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 isKling4Provider,\n isGeminiOmniProvider,\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: `auto` follows the materials (frames / references) and renders\n // 16:9 with none — KIE's own default when the field is omitted.\n if (isKling4Provider(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) || isKling4Provider(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; 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) || isKling4Provider(provider)) return 5\n if (isGeminiOmniProvider(provider)) return 8\n return undefined\n}\n"]}
1
+ {"version":3,"sources":["../src/video-ui-defaults.ts"],"names":[],"mappings":";;;;AA0CO,SAAS,kBAAkB,QAAA,EAAsC;AACtE,EAAA,IAAI,mBAAA,CAAoB,QAAQ,CAAA,IAAK,mBAAA,CAAoB,QAAQ,CAAA,IAAK,cAAA,CAAe,QAAQ,CAAA,EAAG,OAAO,UAAA;AAGvG,EAAA,IAAI,gBAAA,CAAiB,QAAQ,CAAA,EAAG,OAAO,MAAA;AACvC,EAAA,OAAO,MAAA;AACT;AAIO,SAAS,iBAAiB,QAAA,EAAsC;AACrE,EAAA,IAAI,cAAA,CAAe,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,EAAG,OAAO,0BAAA,CAA2B,QAAQ,CAAA;AACpI,EAAA,IAAI,mBAAA,CAAoB,QAAQ,CAAA,EAAG,OAAO,cAAc,QAAQ,CAAA,EAAG,cAAc,CAAC,CAAA;AAClF,EAAA,OAAO,MAAA;AACT;AAUO,SAAS,eAAe,QAAA,EAAsC;AACnE,EAAA,IAAI,cAAA,CAAe,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,IAAK,gBAAA,CAAiB,QAAQ,CAAA,EAAG,OAAO,CAAA;AACjG,EAAA,IAAI,oBAAA,CAAqB,QAAQ,CAAA,EAAG,OAAO,CAAA;AAC3C,EAAA,OAAO,MAAA;AACT","file":"chunk-WBPJNXYN.js","sourcesContent":["/**\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 isKling4Provider,\n isGeminiOmniProvider,\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: `auto` follows the materials (frames / references) and renders\n // 16:9 with none — KIE's own default when the field is omitted.\n if (isKling4Provider(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) || isKling4Provider(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; 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) || isKling4Provider(provider)) return 5\n if (isGeminiOmniProvider(provider)) return 8\n return undefined\n}\n"]}
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkHSJU5KNR_cjs = require('./chunk-HSJU5KNR.cjs');
3
+ var chunkJ4CVGAAV_cjs = require('./chunk-J4CVGAAV.cjs');
4
4
  var chunkYWNYGYI7_cjs = require('./chunk-YWNYGYI7.cjs');
5
- var chunkUDYFWB7D_cjs = require('./chunk-UDYFWB7D.cjs');
6
- var chunkDDTA6X2S_cjs = require('./chunk-DDTA6X2S.cjs');
7
- var chunkBQSXEU3O_cjs = require('./chunk-BQSXEU3O.cjs');
5
+ var chunkMI63SSCJ_cjs = require('./chunk-MI63SSCJ.cjs');
6
+ var chunkIJ6XNHSD_cjs = require('./chunk-IJ6XNHSD.cjs');
7
+ var chunk7HWXJIQ6_cjs = require('./chunk-7HWXJIQ6.cjs');
8
8
  var chunk5PCI6M44_cjs = require('./chunk-5PCI6M44.cjs');
9
9
  var chunkKU6S7IYV_cjs = require('./chunk-KU6S7IYV.cjs');
10
- var chunkTA5MZZKE_cjs = require('./chunk-TA5MZZKE.cjs');
11
- var chunk2JUNYRMS_cjs = require('./chunk-2JUNYRMS.cjs');
12
- var chunkNGT2FYP2_cjs = require('./chunk-NGT2FYP2.cjs');
10
+ var chunkMI6CZQCG_cjs = require('./chunk-MI6CZQCG.cjs');
11
+ var chunk7YFQKR5C_cjs = require('./chunk-7YFQKR5C.cjs');
12
+ var chunkJ3HPEKGJ_cjs = require('./chunk-J3HPEKGJ.cjs');
13
13
  var chunkR2VF5NQG_cjs = require('./chunk-R2VF5NQG.cjs');
14
14
  var chunkWNVQ3SMB_cjs = require('./chunk-WNVQ3SMB.cjs');
15
15
  var zod = require('zod');
@@ -90,8 +90,8 @@ var VIDEO_SETTINGS = ["aspect-ratio", "duration", "provider", "motion"];
90
90
  var SETTINGS_CONSUMERS = {
91
91
  "generate-video": {
92
92
  accepts: VIDEO_SETTINGS,
93
- models: chunk2JUNYRMS_cjs.VIDEO_GEN_PROVIDERS,
94
- defaultModel: chunk2JUNYRMS_cjs.DEFAULT_VIDEO_PROVIDER,
93
+ models: chunk7YFQKR5C_cjs.VIDEO_GEN_PROVIDERS,
94
+ defaultModel: chunk7YFQKR5C_cjs.DEFAULT_VIDEO_PROVIDER,
95
95
  duration: "model"
96
96
  },
97
97
  // Generate Video Pro has Generate Video's handles by construction
@@ -99,17 +99,17 @@ var SETTINGS_CONSUMERS = {
99
99
  // settings; its own models and its own duration rule.
100
100
  "generate-video-pro": {
101
101
  accepts: VIDEO_SETTINGS,
102
- models: chunk2JUNYRMS_cjs.GVP_SUPPORTED_PROVIDERS,
103
- defaultModel: chunk2JUNYRMS_cjs.GVP_DEFAULT_PROVIDER,
102
+ models: chunk7YFQKR5C_cjs.GVP_SUPPORTED_PROVIDERS,
103
+ defaultModel: chunk7YFQKR5C_cjs.GVP_DEFAULT_PROVIDER,
104
104
  duration: "total"
105
105
  },
106
106
  // A still image has no length, so no Duration.
107
107
  "generate-image": {
108
108
  accepts: ["aspect-ratio", "provider"],
109
- models: chunk2JUNYRMS_cjs.IMAGE_GEN_PROVIDERS,
109
+ models: chunk7YFQKR5C_cjs.IMAGE_GEN_PROVIDERS,
110
110
  // The node's own default (NODE_DEFINITIONS) — only used to fit a wired
111
111
  // ratio when the node names no model.
112
- defaultModel: chunkUDYFWB7D_cjs.IMAGE_MODEL_ROLE_DEFAULTS.general,
112
+ defaultModel: chunkMI63SSCJ_cjs.IMAGE_MODEL_ROLE_DEFAULTS.general,
113
113
  modelList: "providers"
114
114
  }
115
115
  };
@@ -164,8 +164,8 @@ function connectedSettingsSources(consumerId, consumerType, edges, typeOf) {
164
164
  return out;
165
165
  }
166
166
  function snapToModelDuration(model, seconds) {
167
- const durations = chunkNGT2FYP2_cjs.MODEL_CATALOG[model]?.durations;
168
- if (!durations || durations.length === 0 || chunkNGT2FYP2_cjs.isAutoVideoDuration(seconds)) return seconds;
167
+ const durations = chunkJ3HPEKGJ_cjs.MODEL_CATALOG[model]?.durations;
168
+ if (!durations || durations.length === 0 || chunkJ3HPEKGJ_cjs.isAutoVideoDuration(seconds)) return seconds;
169
169
  let best = durations[0];
170
170
  for (const d of durations) {
171
171
  const closer = Math.abs(d - seconds) < Math.abs(best - seconds);
@@ -194,7 +194,7 @@ function applySettingsInput(consumerType, consumerId, data, edges, typeOf) {
194
194
  if (Number.isFinite(seconds)) next = { ...next, duration: snapToModelDuration(model, seconds) };
195
195
  }
196
196
  if (connected.some((c) => c.sourceType === "aspect-ratio") && typeof next.aspectRatio === "string") {
197
- next = { ...next, aspectRatio: chunkNGT2FYP2_cjs.fitAspectRatioToModel(model, next.aspectRatio) };
197
+ next = { ...next, aspectRatio: chunkJ3HPEKGJ_cjs.fitAspectRatioToModel(model, next.aspectRatio) };
198
198
  }
199
199
  return { data: next };
200
200
  }
@@ -325,7 +325,7 @@ var SCRIPT_TARGET_DURATION_RANGE = { min: 5, max: 600 };
325
325
  var SCRIPT_SCENE_COUNT_DEFAULT = 5;
326
326
  var SCRIPT_TARGET_DURATION_DEFAULT = 60;
327
327
  var SCRIPT_TONE_MAX_LENGTH = 200;
328
- var SCRIPT_STYLE_GUIDE_MAX_LENGTH = chunk2JUNYRMS_cjs.LLM_TEXT_INPUT_MAX;
328
+ var SCRIPT_STYLE_GUIDE_MAX_LENGTH = chunk7YFQKR5C_cjs.LLM_TEXT_INPUT_MAX;
329
329
  function clampInt(value, range) {
330
330
  const n = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
331
331
  if (!Number.isFinite(n)) return void 0;
@@ -337,7 +337,7 @@ function clampText(value, max) {
337
337
  return text.length > 0 ? text.slice(0, max) : void 0;
338
338
  }
339
339
  function readScriptSettings(data, refMap) {
340
- const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? chunkHSJU5KNR_cjs.resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
340
+ const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? chunkJ4CVGAAV_cjs.resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
341
341
  return {
342
342
  sceneCount: clampInt(data.sceneCount, SCRIPT_SCENE_COUNT_RANGE),
343
343
  // The panel's own fields (the ones a mapping writes) come first. `style` is
@@ -392,10 +392,10 @@ var LEGACY_JSON_OUTPUT_KINDS = Object.freeze({
392
392
  // clip tickets, the sized plan), and UGC Cards' layer plan and caption plan.
393
393
  // Their text pips (category, transcript, report) are not JSON pips. The pip an
394
394
  // edge with no `sourceHandle` reads is the UGC wires' own (UGC_PRIMARY_HANDLE).
395
- "ugc-creator": { primary: chunkBQSXEU3O_cjs.UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
396
- "ugc-script": { primary: chunkBQSXEU3O_cjs.UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
397
- "ugc-clips": { primary: chunkBQSXEU3O_cjs.UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
398
- "ugc-cards": { primary: chunkBQSXEU3O_cjs.UGC_PRIMARY_HANDLE["ugc-cards"], pips: { layerPlan: "other", captionPlan: "other" } }
395
+ "ugc-creator": { primary: chunk7HWXJIQ6_cjs.UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
396
+ "ugc-script": { primary: chunk7HWXJIQ6_cjs.UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
397
+ "ugc-clips": { primary: chunk7HWXJIQ6_cjs.UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
398
+ "ugc-cards": { primary: chunk7HWXJIQ6_cjs.UGC_PRIMARY_HANDLE["ugc-cards"], pips: { layerPlan: "other", captionPlan: "other" } }
399
399
  });
400
400
  var JSON_OUTPUT_KINDS = Object.freeze(composeJsonOutputs(LEGACY_JSON_OUTPUT_KINDS, chunk5PCI6M44_cjs.unitJsonPips()));
401
401
  function composeJsonOutputs(legacy, rows) {
@@ -411,12 +411,12 @@ var JSON_INPUT_KINDS = Object.freeze({
411
411
  edl: "edl"
412
412
  });
413
413
  var own = (table, key) => Object.hasOwn(table, key) ? table[key] : void 0;
414
- function declaredJsonOutput(nodeType, sourceHandle, renders = chunkDDTA6X2S_cjs.RENDER_NODE_TYPES) {
414
+ function declaredJsonOutput(nodeType, sourceHandle, renders = chunkIJ6XNHSD_cjs.RENDER_NODE_TYPES) {
415
415
  if (typeof nodeType !== "string") return void 0;
416
416
  const render = own(renders, nodeType);
417
417
  if (render) {
418
- const pip2 = sourceHandle ?? chunkDDTA6X2S_cjs.RENDER_JSON_HANDLE;
419
- if (pip2 === chunkDDTA6X2S_cjs.RENDER_JSON_HANDLE) return render.jsonKind;
418
+ const pip2 = sourceHandle ?? chunkIJ6XNHSD_cjs.RENDER_JSON_HANDLE;
419
+ if (pip2 === chunkIJ6XNHSD_cjs.RENDER_JSON_HANDLE) return render.jsonKind;
420
420
  return pip2 === render.transcriptOutput.handle ? "transcript" : void 0;
421
421
  }
422
422
  const outputs = own(JSON_OUTPUT_KINDS, nodeType);
@@ -429,14 +429,14 @@ function declaredJsonOutputRows() {
429
429
  ([type, o]) => Object.entries(o.pips).map(([pip, kind]) => [type, pip, kind])
430
430
  );
431
431
  }
432
- function jsonOutputKind(nodeType, sourceHandle, renders = chunkDDTA6X2S_cjs.RENDER_NODE_TYPES) {
432
+ function jsonOutputKind(nodeType, sourceHandle, renders = chunkIJ6XNHSD_cjs.RENDER_NODE_TYPES) {
433
433
  const declared = declaredJsonOutput(nodeType, sourceHandle, renders);
434
434
  return declared === "other" ? void 0 : declared;
435
435
  }
436
436
  function jsonInputKind(_nodeType, targetHandle) {
437
437
  return typeof targetHandle === "string" ? own(JSON_INPUT_KINDS, targetHandle) : void 0;
438
438
  }
439
- function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders = chunkDDTA6X2S_cjs.RENDER_NODE_TYPES) {
439
+ function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders = chunkIJ6XNHSD_cjs.RENDER_NODE_TYPES) {
440
440
  const input = jsonInputKind(targetType, targetHandle);
441
441
  if (!input) return null;
442
442
  const output = jsonOutputKind(sourceType, sourceHandle, renders);
@@ -452,7 +452,7 @@ function jsonKindMismatchMessage(mismatch, labels = {}) {
452
452
  }
453
453
 
454
454
  // src/preview-gate.ts
455
- var PREVIEW_RENDER_NODE_TYPES = new Set(chunkDDTA6X2S_cjs.RENDER_NODE_TYPE_IDS);
455
+ var PREVIEW_RENDER_NODE_TYPES = new Set(chunkIJ6XNHSD_cjs.RENDER_NODE_TYPE_IDS);
456
456
  var REVIEW_HOLDING_USE_CASE_TYPES = new Set(chunk5PCI6M44_cjs.unitReviewHolds());
457
457
  function isPreviewHoldingType(type) {
458
458
  return PREVIEW_RENDER_NODE_TYPES.has(type ?? "") || REVIEW_HOLDING_USE_CASE_TYPES.has(type ?? "");
@@ -497,7 +497,7 @@ var outputModeOf = (edge) => {
497
497
  return typeof mode === "string" ? mode : void 0;
498
498
  };
499
499
  function readsEach(render, consumerEdge, renderHandle) {
500
- return (outputModeOf(consumerEdge) ?? chunkDDTA6X2S_cjs.defaultEdgeOutputMode(render.type, renderHandle)) === "each";
500
+ return (outputModeOf(consumerEdge) ?? chunkIJ6XNHSD_cjs.defaultEdgeOutputMode(render.type, renderHandle)) === "each";
501
501
  }
502
502
  function savedPreviewConsumers(render, children, nodeById, edges, reader) {
503
503
  const data = dataOf(render);
@@ -533,7 +533,7 @@ function previewStops(nodes, edges, run = {}) {
533
533
  return !!n && dataOf(n).skipped !== true;
534
534
  });
535
535
  const reader = run.savedRenders ?? SAVED_RENDER_STAMPS;
536
- const { children } = chunkHSJU5KNR_cjs.buildFeedMaps(nodes, edges);
536
+ const { children } = chunkJ4CVGAAV_cjs.buildFeedMaps(nodes, edges);
537
537
  const previewRenderIds = [];
538
538
  const savedPreviewRenderIds = [];
539
539
  const seeds = [];
@@ -576,7 +576,7 @@ var RUN_OVERRIDE_CLEARED_FIELDS = [
576
576
  "generatedAudioUrl",
577
577
  "generatedText"
578
578
  ];
579
- var RUN_ONLY_NODE_FIELDS = ["useCaseContinue"];
579
+ var RUN_ONLY_NODE_FIELDS = ["useCaseContinue", "rightsConfirmationId"];
580
580
  function withoutRunOnlyFields(data) {
581
581
  if (!RUN_ONLY_NODE_FIELDS.some((key) => key in data)) return data;
582
582
  const kept = { ...data };
@@ -589,7 +589,7 @@ function withRunOverrides(nodes, overrides) {
589
589
  const data = withoutRunOnlyFields(saved);
590
590
  const fields = overrides?.[n.id];
591
591
  if (!fields) return data === saved ? n : { ...n, data };
592
- const merged = chunkDDTA6X2S_cjs.mergeNodeInputOverrides(n.type ?? void 0, { ...data }, { ...fields });
592
+ const merged = chunkIJ6XNHSD_cjs.mergeNodeInputOverrides(n.type ?? void 0, { ...data }, { ...fields });
593
593
  for (const key of RUN_OVERRIDE_CLEARED_FIELDS) delete merged[key];
594
594
  return { ...n, data: merged };
595
595
  });
@@ -653,8 +653,8 @@ function loneMediaUrlKind(value) {
653
653
  var MESSAGE_TRIGGER_TYPES = /* @__PURE__ */ new Set(["telegram-trigger", "telegram-account-trigger"]);
654
654
  function isLoneMediaLinkSource(nodeType) {
655
655
  if (!nodeType) return false;
656
- if (chunkDDTA6X2S_cjs.IMAGE_PRODUCER_TYPES.has(nodeType) || chunkDDTA6X2S_cjs.VIDEO_PRODUCER_TYPES.has(nodeType) || chunkDDTA6X2S_cjs.AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
657
- if (chunkDDTA6X2S_cjs.DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
656
+ if (chunkIJ6XNHSD_cjs.IMAGE_PRODUCER_TYPES.has(nodeType) || chunkIJ6XNHSD_cjs.VIDEO_PRODUCER_TYPES.has(nodeType) || chunkIJ6XNHSD_cjs.AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
657
+ if (chunkIJ6XNHSD_cjs.DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
658
658
  if (chunkWNVQ3SMB_cjs.ENTITY_NODE_KINDS.includes(nodeType) || nodeType === "face") return false;
659
659
  return true;
660
660
  }
@@ -906,9 +906,9 @@ function captionPlanPassThrough(input) {
906
906
 
907
907
  // src/transcribe-preflight.ts
908
908
  function transcribeWordTimestampsRefusal(provider) {
909
- const lane = provider || chunk2JUNYRMS_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
910
- if (chunk2JUNYRMS_cjs.transcribeLaneSupportsWordTimestamps(lane)) return null;
911
- return `the "${lane}" engine does not return word timings \u2014 pick ${chunk2JUNYRMS_cjs.transcribeProvidersWithWordTimestamps().join(" or ")}`;
909
+ const lane = provider || chunk7YFQKR5C_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
910
+ if (chunk7YFQKR5C_cjs.transcribeLaneSupportsWordTimestamps(lane)) return null;
911
+ return `the "${lane}" engine does not return word timings \u2014 pick ${chunk7YFQKR5C_cjs.transcribeProvidersWithWordTimestamps().join(" or ")}`;
912
912
  }
913
913
  var TRANSCRIBE_JSON_OUT = "json";
914
914
  var TRANSCRIPT_IN = "transcript";
@@ -918,7 +918,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
918
918
  const out = [];
919
919
  for (const node of nodes) {
920
920
  if (node.type !== "transcribe" || isSkipped(node)) continue;
921
- const provider = typeof node.data?.provider === "string" && node.data.provider || chunk2JUNYRMS_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
921
+ const provider = typeof node.data?.provider === "string" && node.data.provider || chunk7YFQKR5C_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
922
922
  const refusal = transcribeWordTimestampsRefusal(provider);
923
923
  if (!refusal) continue;
924
924
  const seen = /* @__PURE__ */ new Set();
@@ -937,7 +937,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
937
937
  message: `Captions need word timings, but ${refusal}.`
938
938
  });
939
939
  } else if (!seen.has(target.id)) {
940
- const remapped = chunkDDTA6X2S_cjs.renderTranscriptOutputOf(target.type);
940
+ const remapped = chunkIJ6XNHSD_cjs.renderTranscriptOutputOf(target.type);
941
941
  if (remapped) {
942
942
  seen.add(target.id);
943
943
  frontier.push({ id: target.id, outHandle: remapped.handle });
@@ -985,8 +985,8 @@ function normalizeNodeModelParams(nodes) {
985
985
  if (multi.length > 1) return node;
986
986
  const provider = typeof d.provider === "string" ? d.provider : typeof multi[0] === "string" ? multi[0] : void 0;
987
987
  if (!provider) return node;
988
- const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? chunkTA5MZZKE_cjs.imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : chunkNGT2FYP2_cjs.autoAspectNeedsSourceImage(provider, d.aspectRatio));
989
- const normalized = chunkNGT2FYP2_cjs.normalizeModelInput(provider, {
988
+ const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? chunkMI6CZQCG_cjs.imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : chunkJ3HPEKGJ_cjs.autoAspectNeedsSourceImage(provider, d.aspectRatio));
989
+ const normalized = chunkJ3HPEKGJ_cjs.normalizeModelInput(provider, {
990
990
  aspectRatio: !deferAuto && typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
991
991
  resolution: typeof d.resolution === "string" ? d.resolution : void 0,
992
992
  quality: typeof d.quality === "string" ? d.quality : void 0
@@ -1032,7 +1032,7 @@ function readPromptAffixes(data) {
1032
1032
 
1033
1033
  // src/node-preset-extract.ts
1034
1034
  var PRESET_APPLY_CLEAR_KEYS = [
1035
- ...chunk2JUNYRMS_cjs.COMPOSER_PLAN_FIELDS,
1035
+ ...chunk7YFQKR5C_cjs.COMPOSER_PLAN_FIELDS,
1036
1036
  "lottieUrl",
1037
1037
  // Scene revision history contains old plans and their reference/prompt context.
1038
1038
  // Preserve it in workflows, never capture or resurrect it through a preset.
@@ -1108,7 +1108,7 @@ var PRESET_EXCLUDED_KEYS = /* @__PURE__ */ new Set([
1108
1108
  function extractPresetData(data, nodeType) {
1109
1109
  const out = {};
1110
1110
  for (const key of Object.keys(data)) {
1111
- if (chunkHSJU5KNR_cjs.isExecutionDataKey(key, nodeType)) continue;
1111
+ if (chunkJ4CVGAAV_cjs.isExecutionDataKey(key, nodeType)) continue;
1112
1112
  if (PRESET_EXCLUDED_KEYS.has(key)) continue;
1113
1113
  out[key] = data[key];
1114
1114
  }
@@ -1288,7 +1288,7 @@ function renderPlanPath(renderId, nodes, edges) {
1288
1288
  edge = teleportInput(node.id);
1289
1289
  continue;
1290
1290
  }
1291
- const mode = outputModeOf2(consumer.data) ?? chunkDDTA6X2S_cjs.defaultEdgeOutputMode(node.type, edge.sourceHandle);
1291
+ const mode = outputModeOf2(consumer.data) ?? chunkIJ6XNHSD_cjs.defaultEdgeOutputMode(node.type, edge.sourceHandle);
1292
1292
  hops.unshift({ edge: consumer, each: mode === "each", ...node.type ? { source: node.type } : {} });
1293
1293
  if (node.type === "edit-plan") return { planId: node.id, hops };
1294
1294
  if (!EDL_PASS_THROUGH_TYPES.has(node.type ?? "")) return void 0;
@@ -1310,10 +1310,10 @@ function singlePick(clips, hop) {
1310
1310
  const mode = outputModeOf2(hop.edge.data);
1311
1311
  if (mode === "item") {
1312
1312
  const expr = typeof data?.itemIndex === "string" ? data.itemIndex : "1";
1313
- return [clips[chunkHSJU5KNR_cjs.resolveIndex(expr, clips.length)] ?? clips[0]];
1313
+ return [clips[chunkJ4CVGAAV_cjs.resolveIndex(expr, clips.length)] ?? clips[0]];
1314
1314
  }
1315
1315
  if (mode?.startsWith("item:")) return [clips[parseInt(mode.slice(5), 10)] ?? clips[0]];
1316
- if (mode === "all") return chunkHSJU5KNR_cjs.selectListItems(clips, data);
1316
+ if (mode === "all") return chunkJ4CVGAAV_cjs.selectListItems(clips, data);
1317
1317
  if (hop.source === "edit-plan") return keptClips(clips).slice(0, 1);
1318
1318
  return clips.length === 1 ? clips : [];
1319
1319
  }
@@ -1323,7 +1323,7 @@ function renderPlanValue(plan, row, hops = []) {
1323
1323
  for (const [i, hop] of hops.entries()) {
1324
1324
  if (clips.length === 0) return void 0;
1325
1325
  if (hop.each) {
1326
- clips = chunkHSJU5KNR_cjs.selectListItems(clips, hop.edge.data);
1326
+ clips = chunkJ4CVGAAV_cjs.selectListItems(clips, hop.edge.data);
1327
1327
  if (i < hops.length - 1) clips = keptClips(clips);
1328
1328
  } else {
1329
1329
  clips = singlePick(clips, hop);
@@ -1354,7 +1354,7 @@ function renderLoneRow(renderId, nodes, edges, batchOf) {
1354
1354
  const path = renderPlanPath(renderId, nodes, edges);
1355
1355
  if (!path || path.hops.length < 2) return void 0;
1356
1356
  const last = path.hops[path.hops.length - 1];
1357
- if (!last.each || !chunkHSJU5KNR_cjs.isDefaultSelectorConfig(last.edge.data)) return void 0;
1357
+ if (!last.each || !chunkJ4CVGAAV_cjs.isDefaultSelectorConfig(last.edge.data)) return void 0;
1358
1358
  const passId = path.hops[path.hops.length - 2].edge.target;
1359
1359
  const passNode = nodes.find((n) => n.id === passId);
1360
1360
  const batch = passNode ? batchOf(passNode) : void 0;
@@ -1566,8 +1566,8 @@ var IDENTITY_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([
1566
1566
  "creature",
1567
1567
  "location"
1568
1568
  ]);
1569
- var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER = chunkDDTA6X2S_cjs.VIDEO_PRODUCER_TYPES;
1570
- var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...chunkDDTA6X2S_cjs.AUDIO_PRODUCER_TYPES, "youtube-video"]);
1569
+ var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER = chunkIJ6XNHSD_cjs.VIDEO_PRODUCER_TYPES;
1570
+ var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...chunkIJ6XNHSD_cjs.AUDIO_PRODUCER_TYPES, "youtube-video"]);
1571
1571
  var DUAL_MODE_REVOICE_TARGETS = /* @__PURE__ */ new Set(["voice-changer", "voice-changer-pro", "dubbing"]);
1572
1572
  function classifyLegacyTargetHandle(targetType, handle, sourceType, sentHandle = handle) {
1573
1573
  if (!targetType) return handle;
@@ -1811,5 +1811,5 @@ exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
1811
1811
  exports.videoOverlayPassThrough = videoOverlayPassThrough;
1812
1812
  exports.withRunOverrides = withRunOverrides;
1813
1813
  exports.withWiredSettings = withWiredSettings;
1814
- //# sourceMappingURL=chunk-S5CRPOYD.cjs.map
1815
- //# sourceMappingURL=chunk-S5CRPOYD.cjs.map
1814
+ //# sourceMappingURL=chunk-XRXPWW7P.cjs.map
1815
+ //# sourceMappingURL=chunk-XRXPWW7P.cjs.map