@nodaro/shared 3.30.0 → 3.32.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 (388) hide show
  1. package/README.md +17 -0
  2. package/dist/chunk-2NIQO2J3.cjs +54 -0
  3. package/dist/chunk-2NIQO2J3.cjs.map +1 -0
  4. package/dist/chunk-2OJIVO7R.cjs +32 -0
  5. package/dist/chunk-2OJIVO7R.cjs.map +1 -0
  6. package/dist/chunk-2RF4Z7KG.cjs +803 -0
  7. package/dist/chunk-2RF4Z7KG.cjs.map +1 -0
  8. package/dist/chunk-3CUFITU7.js +1905 -0
  9. package/dist/chunk-3CUFITU7.js.map +1 -0
  10. package/dist/chunk-3RYKIUAE.js +86 -0
  11. package/dist/chunk-3RYKIUAE.js.map +1 -0
  12. package/dist/chunk-44I73CQS.cjs +194 -0
  13. package/dist/chunk-44I73CQS.cjs.map +1 -0
  14. package/dist/chunk-5AUSSJIM.cjs +3372 -0
  15. package/dist/chunk-5AUSSJIM.cjs.map +1 -0
  16. package/dist/chunk-5PC6JBGJ.cjs +1419 -0
  17. package/dist/chunk-5PC6JBGJ.cjs.map +1 -0
  18. package/dist/chunk-5RU2HCW2.js +30 -0
  19. package/dist/chunk-5RU2HCW2.js.map +1 -0
  20. package/dist/chunk-5THUHJ3E.js +46 -0
  21. package/dist/chunk-5THUHJ3E.js.map +1 -0
  22. package/dist/chunk-5U7VLG43.js +141 -0
  23. package/dist/chunk-5U7VLG43.js.map +1 -0
  24. package/dist/chunk-6DAWSVX2.cjs +103 -0
  25. package/dist/chunk-6DAWSVX2.cjs.map +1 -0
  26. package/dist/chunk-6DKDOWBL.js +1567 -0
  27. package/dist/chunk-6DKDOWBL.js.map +1 -0
  28. package/dist/chunk-6IJOPRZP.cjs +197 -0
  29. package/dist/chunk-6IJOPRZP.cjs.map +1 -0
  30. package/dist/chunk-7G7G42KS.js +86 -0
  31. package/dist/chunk-7G7G42KS.js.map +1 -0
  32. package/dist/chunk-AINCI23X.js +2171 -0
  33. package/dist/chunk-AINCI23X.js.map +1 -0
  34. package/dist/chunk-AROWPFO2.js +773 -0
  35. package/dist/chunk-AROWPFO2.js.map +1 -0
  36. package/dist/chunk-AVQK77G6.cjs +2000 -0
  37. package/dist/chunk-AVQK77G6.cjs.map +1 -0
  38. package/dist/chunk-C57NEO3X.js +3327 -0
  39. package/dist/chunk-C57NEO3X.js.map +1 -0
  40. package/dist/chunk-CK3GK34R.js +1381 -0
  41. package/dist/chunk-CK3GK34R.js.map +1 -0
  42. package/dist/chunk-E2TGXG6X.cjs +1770 -0
  43. package/dist/chunk-E2TGXG6X.cjs.map +1 -0
  44. package/dist/chunk-EK362Q45.cjs +38 -0
  45. package/dist/chunk-EK362Q45.cjs.map +1 -0
  46. package/dist/chunk-FBV5DF6D.js +95 -0
  47. package/dist/chunk-FBV5DF6D.js.map +1 -0
  48. package/dist/chunk-FG4E7MTG.cjs +4 -0
  49. package/dist/chunk-FG4E7MTG.cjs.map +1 -0
  50. package/dist/chunk-G6IIVKMO.js +26 -0
  51. package/dist/chunk-G6IIVKMO.js.map +1 -0
  52. package/dist/chunk-HGC5JNVA.cjs +1503 -0
  53. package/dist/chunk-HGC5JNVA.cjs.map +1 -0
  54. package/dist/chunk-HSHCCBIV.js +255 -0
  55. package/dist/chunk-HSHCCBIV.js.map +1 -0
  56. package/dist/chunk-IEBZHTPE.js +254 -0
  57. package/dist/chunk-IEBZHTPE.js.map +1 -0
  58. package/dist/chunk-ISJDAFKS.js +1604 -0
  59. package/dist/chunk-ISJDAFKS.js.map +1 -0
  60. package/dist/chunk-J6KHW2E5.cjs +1963 -0
  61. package/dist/chunk-J6KHW2E5.cjs.map +1 -0
  62. package/dist/chunk-J7BMO73N.cjs +114 -0
  63. package/dist/chunk-J7BMO73N.cjs.map +1 -0
  64. package/dist/chunk-JL4C5VJ7.cjs +488 -0
  65. package/dist/chunk-JL4C5VJ7.cjs.map +1 -0
  66. package/dist/chunk-JSGIEF6Z.cjs +1087 -0
  67. package/dist/chunk-JSGIEF6Z.cjs.map +1 -0
  68. package/dist/chunk-JSNV5O2F.cjs +34 -0
  69. package/dist/chunk-JSNV5O2F.cjs.map +1 -0
  70. package/dist/chunk-JWA5SGCS.js +203 -0
  71. package/dist/chunk-JWA5SGCS.js.map +1 -0
  72. package/dist/chunk-JX5YZ4DH.cjs +430 -0
  73. package/dist/chunk-JX5YZ4DH.cjs.map +1 -0
  74. package/dist/chunk-KHCBJ7KD.js +42 -0
  75. package/dist/chunk-KHCBJ7KD.js.map +1 -0
  76. package/dist/chunk-KU6S7IYV.cjs +210 -0
  77. package/dist/chunk-KU6S7IYV.cjs.map +1 -0
  78. package/dist/chunk-LKAIXWK3.js +181 -0
  79. package/dist/chunk-LKAIXWK3.js.map +1 -0
  80. package/dist/chunk-LPW3XNC2.js +471 -0
  81. package/dist/chunk-LPW3XNC2.js.map +1 -0
  82. package/dist/chunk-M36G6SRP.js +447 -0
  83. package/dist/chunk-M36G6SRP.js.map +1 -0
  84. package/dist/chunk-MRXGWL42.cjs +4 -0
  85. package/dist/chunk-MRXGWL42.cjs.map +1 -0
  86. package/dist/chunk-NB72XWXQ.cjs +54 -0
  87. package/dist/chunk-NB72XWXQ.cjs.map +1 -0
  88. package/dist/chunk-NEJ2PV4C.cjs +211 -0
  89. package/dist/chunk-NEJ2PV4C.cjs.map +1 -0
  90. package/dist/chunk-NT6IJH4L.cjs +273 -0
  91. package/dist/chunk-NT6IJH4L.cjs.map +1 -0
  92. package/dist/chunk-O5MP52U2.cjs +526 -0
  93. package/dist/chunk-O5MP52U2.cjs.map +1 -0
  94. package/dist/chunk-O7PUQLJ3.cjs +818 -0
  95. package/dist/chunk-O7PUQLJ3.cjs.map +1 -0
  96. package/dist/chunk-PQHS255G.js +1369 -0
  97. package/dist/chunk-PQHS255G.js.map +1 -0
  98. package/dist/chunk-PRYE7AZQ.cjs +1227 -0
  99. package/dist/chunk-PRYE7AZQ.cjs.map +1 -0
  100. package/dist/chunk-Q4CDQ2KO.js +21 -0
  101. package/dist/chunk-Q4CDQ2KO.js.map +1 -0
  102. package/dist/chunk-QELDJGDK.cjs +1714 -0
  103. package/dist/chunk-QELDJGDK.cjs.map +1 -0
  104. package/dist/chunk-QJRP44ZO.js +769 -0
  105. package/dist/chunk-QJRP44ZO.js.map +1 -0
  106. package/dist/chunk-QNGNOU4Z.js +29 -0
  107. package/dist/chunk-QNGNOU4Z.js.map +1 -0
  108. package/dist/chunk-RJL7RCEM.cjs +159 -0
  109. package/dist/chunk-RJL7RCEM.cjs.map +1 -0
  110. package/dist/chunk-RN3RMBJZ.js +1164 -0
  111. package/dist/chunk-RN3RMBJZ.js.map +1 -0
  112. package/dist/chunk-S5DMKUWK.cjs +1273 -0
  113. package/dist/chunk-S5DMKUWK.cjs.map +1 -0
  114. package/dist/chunk-SES6GDBQ.cjs +624 -0
  115. package/dist/chunk-SES6GDBQ.cjs.map +1 -0
  116. package/dist/chunk-TNPDV7I4.cjs +2346 -0
  117. package/dist/chunk-TNPDV7I4.cjs.map +1 -0
  118. package/dist/chunk-TZBIY5C3.js +187 -0
  119. package/dist/chunk-TZBIY5C3.js.map +1 -0
  120. package/dist/chunk-TZE673G6.js +3 -0
  121. package/dist/chunk-TZE673G6.js.map +1 -0
  122. package/dist/chunk-ULXI7A6Q.cjs +1047 -0
  123. package/dist/chunk-ULXI7A6Q.cjs.map +1 -0
  124. package/dist/chunk-VIWSWVAW.js +1782 -0
  125. package/dist/chunk-VIWSWVAW.js.map +1 -0
  126. package/dist/chunk-VWGNPMJZ.cjs +19 -0
  127. package/dist/chunk-VWGNPMJZ.cjs.map +1 -0
  128. package/dist/chunk-WDIBOWAA.js +1054 -0
  129. package/dist/chunk-WDIBOWAA.js.map +1 -0
  130. package/dist/chunk-WNG7HRVA.cjs +25 -0
  131. package/dist/chunk-WNG7HRVA.cjs.map +1 -0
  132. package/dist/chunk-WNVQ3SMB.cjs +96 -0
  133. package/dist/chunk-WNVQ3SMB.cjs.map +1 -0
  134. package/dist/chunk-WRSWH7US.cjs +285 -0
  135. package/dist/chunk-WRSWH7US.cjs.map +1 -0
  136. package/dist/chunk-XAMC4S53.js +17 -0
  137. package/dist/chunk-XAMC4S53.js.map +1 -0
  138. package/dist/chunk-XNISPHTZ.js +1039 -0
  139. package/dist/chunk-XNISPHTZ.js.map +1 -0
  140. package/dist/chunk-Y2PM3FFL.js +3 -0
  141. package/dist/chunk-Y2PM3FFL.js.map +1 -0
  142. package/dist/chunk-YBPBK5KI.js +1030 -0
  143. package/dist/chunk-YBPBK5KI.js.map +1 -0
  144. package/dist/chunk-YHRG7UOC.js +31 -0
  145. package/dist/chunk-YHRG7UOC.js.map +1 -0
  146. package/dist/chunk-YWNYGYI7.cjs +31 -0
  147. package/dist/chunk-YWNYGYI7.cjs.map +1 -0
  148. package/dist/chunk-YYV35XOS.js +122 -0
  149. package/dist/chunk-YYV35XOS.js.map +1 -0
  150. package/dist/chunk-Z2OL5AJD.cjs +133 -0
  151. package/dist/chunk-Z2OL5AJD.cjs.map +1 -0
  152. package/dist/chunk-Z4AZW6FY.js +920 -0
  153. package/dist/chunk-Z4AZW6FY.js.map +1 -0
  154. package/dist/chunk-ZDFHA2EC.js +572 -0
  155. package/dist/chunk-ZDFHA2EC.js.map +1 -0
  156. package/dist/chunk-ZNZDQAXN.js +175 -0
  157. package/dist/chunk-ZNZDQAXN.js.map +1 -0
  158. package/dist/chunk-ZRL2UFTH.cjs +1073 -0
  159. package/dist/chunk-ZRL2UFTH.cjs.map +1 -0
  160. package/dist/chunk-ZT77RY6R.js +404 -0
  161. package/dist/chunk-ZT77RY6R.js.map +1 -0
  162. package/dist/entries/apps.cjs +155 -0
  163. package/dist/entries/apps.cjs.map +1 -0
  164. package/dist/entries/apps.d.cts +283 -0
  165. package/dist/entries/apps.d.ts +283 -0
  166. package/dist/entries/apps.js +10 -0
  167. package/dist/entries/apps.js.map +1 -0
  168. package/dist/entries/captions.cjs +124 -0
  169. package/dist/entries/captions.cjs.map +1 -0
  170. package/dist/entries/captions.d.cts +354 -0
  171. package/dist/entries/captions.d.ts +354 -0
  172. package/dist/entries/captions.js +3 -0
  173. package/dist/entries/captions.js.map +1 -0
  174. package/dist/entries/catalogs.cjs +165 -0
  175. package/dist/entries/catalogs.cjs.map +1 -0
  176. package/dist/entries/catalogs.d.cts +385 -0
  177. package/dist/entries/catalogs.d.ts +385 -0
  178. package/dist/entries/catalogs.js +4 -0
  179. package/dist/entries/catalogs.js.map +1 -0
  180. package/dist/entries/credits.cjs +592 -0
  181. package/dist/entries/credits.cjs.map +1 -0
  182. package/dist/entries/credits.d.cts +1429 -0
  183. package/dist/entries/credits.d.ts +1429 -0
  184. package/dist/entries/credits.js +11 -0
  185. package/dist/entries/credits.js.map +1 -0
  186. package/dist/entries/edl.cjs +409 -0
  187. package/dist/entries/edl.cjs.map +1 -0
  188. package/dist/entries/edl.d.cts +1199 -0
  189. package/dist/entries/edl.d.ts +1199 -0
  190. package/dist/entries/edl.js +4 -0
  191. package/dist/entries/edl.js.map +1 -0
  192. package/dist/entries/entities.cjs +530 -0
  193. package/dist/entries/entities.cjs.map +1 -0
  194. package/dist/entries/entities.d.cts +1371 -0
  195. package/dist/entries/entities.d.ts +1371 -0
  196. package/dist/entries/entities.js +5 -0
  197. package/dist/entries/entities.js.map +1 -0
  198. package/dist/entries/i18n.cjs +48 -0
  199. package/dist/entries/i18n.cjs.map +1 -0
  200. package/dist/entries/i18n.d.cts +69 -0
  201. package/dist/entries/i18n.d.ts +69 -0
  202. package/dist/entries/i18n.js +3 -0
  203. package/dist/entries/i18n.js.map +1 -0
  204. package/dist/entries/llm-models.cjs +177 -0
  205. package/dist/entries/llm-models.cjs.map +1 -0
  206. package/dist/entries/llm-models.d.cts +435 -0
  207. package/dist/entries/llm-models.d.ts +435 -0
  208. package/dist/entries/llm-models.js +4 -0
  209. package/dist/entries/llm-models.js.map +1 -0
  210. package/dist/entries/media.cjs +335 -0
  211. package/dist/entries/media.cjs.map +1 -0
  212. package/dist/entries/media.d.cts +518 -0
  213. package/dist/entries/media.d.ts +518 -0
  214. package/dist/entries/media.js +6 -0
  215. package/dist/entries/media.js.map +1 -0
  216. package/dist/entries/model-catalog.cjs +247 -0
  217. package/dist/entries/model-catalog.cjs.map +1 -0
  218. package/dist/entries/model-catalog.d.cts +202 -0
  219. package/dist/entries/model-catalog.d.ts +202 -0
  220. package/dist/entries/model-catalog.js +6 -0
  221. package/dist/entries/model-catalog.js.map +1 -0
  222. package/dist/entries/models.cjs +833 -0
  223. package/dist/entries/models.cjs.map +1 -0
  224. package/dist/entries/models.d.cts +287 -0
  225. package/dist/entries/models.d.ts +287 -0
  226. package/dist/entries/models.js +8 -0
  227. package/dist/entries/models.js.map +1 -0
  228. package/dist/entries/nodes.cjs +789 -0
  229. package/dist/entries/nodes.cjs.map +1 -0
  230. package/dist/entries/nodes.d.cts +1600 -0
  231. package/dist/entries/nodes.d.ts +1600 -0
  232. package/dist/entries/nodes.js +16 -0
  233. package/dist/entries/nodes.js.map +1 -0
  234. package/dist/entries/organizations.cjs +80 -0
  235. package/dist/entries/organizations.cjs.map +1 -0
  236. package/dist/entries/organizations.d.cts +466 -0
  237. package/dist/entries/organizations.d.ts +466 -0
  238. package/dist/entries/organizations.js +3 -0
  239. package/dist/entries/organizations.js.map +1 -0
  240. package/dist/entries/pipeline.cjs +594 -0
  241. package/dist/entries/pipeline.cjs.map +1 -0
  242. package/dist/entries/pipeline.d.cts +2617 -0
  243. package/dist/entries/pipeline.d.ts +2617 -0
  244. package/dist/entries/pipeline.js +5 -0
  245. package/dist/entries/pipeline.js.map +1 -0
  246. package/dist/entries/scene3d.cjs +704 -0
  247. package/dist/entries/scene3d.cjs.map +1 -0
  248. package/dist/entries/scene3d.d.cts +4284 -0
  249. package/dist/entries/scene3d.d.ts +4284 -0
  250. package/dist/entries/scene3d.js +3 -0
  251. package/dist/entries/scene3d.js.map +1 -0
  252. package/dist/entries/social.cjs +714 -0
  253. package/dist/entries/social.cjs.map +1 -0
  254. package/dist/entries/social.d.cts +1366 -0
  255. package/dist/entries/social.d.ts +1366 -0
  256. package/dist/entries/social.js +5 -0
  257. package/dist/entries/social.js.map +1 -0
  258. package/dist/entries/types.cjs +13 -0
  259. package/dist/entries/types.cjs.map +1 -0
  260. package/dist/entries/types.d.cts +162 -0
  261. package/dist/entries/types.d.ts +162 -0
  262. package/dist/entries/types.js +4 -0
  263. package/dist/entries/types.js.map +1 -0
  264. package/dist/entries/ugc.cjs +279 -0
  265. package/dist/entries/ugc.cjs.map +1 -0
  266. package/dist/entries/ugc.d.cts +575 -0
  267. package/dist/entries/ugc.d.ts +575 -0
  268. package/dist/entries/ugc.js +6 -0
  269. package/dist/entries/ugc.js.map +1 -0
  270. package/dist/entries/video.cjs +549 -0
  271. package/dist/entries/video.cjs.map +1 -0
  272. package/dist/entries/video.d.cts +1791 -0
  273. package/dist/entries/video.d.ts +1791 -0
  274. package/dist/entries/video.js +8 -0
  275. package/dist/entries/video.js.map +1 -0
  276. package/dist/entries/workflow.cjs +574 -0
  277. package/dist/entries/workflow.cjs.map +1 -0
  278. package/dist/entries/workflow.d.cts +1733 -0
  279. package/dist/entries/workflow.d.ts +1733 -0
  280. package/dist/entries/workflow.js +5 -0
  281. package/dist/entries/workflow.js.map +1 -0
  282. package/dist/fan-out-meta-Bu6VyXcZ.d.cts +19 -0
  283. package/dist/fan-out-meta-Bu6VyXcZ.d.ts +19 -0
  284. package/dist/gemini-omni-voices-zeRXxSbZ.d.cts +174 -0
  285. package/dist/gemini-omni-voices-zeRXxSbZ.d.ts +174 -0
  286. package/dist/image-overlay-layers-CyBfRhxJ.d.cts +208 -0
  287. package/dist/image-overlay-layers-CyBfRhxJ.d.ts +208 -0
  288. package/dist/index.cjs +7731 -26444
  289. package/dist/index.cjs.map +1 -1
  290. package/dist/index.d.cts +32 -23733
  291. package/dist/index.d.ts +32 -23733
  292. package/dist/index.js +40 -24641
  293. package/dist/index.js.map +1 -1
  294. package/dist/model-catalog-flJYaa-g.d.cts +561 -0
  295. package/dist/model-catalog-flJYaa-g.d.ts +561 -0
  296. package/dist/presentation-types-0ENOCjoj.d.cts +61 -0
  297. package/dist/presentation-types-0ENOCjoj.d.ts +61 -0
  298. package/dist/presentation-utils-BIqiCzSA.d.cts +90 -0
  299. package/dist/presentation-utils-BdiObtwq.d.ts +90 -0
  300. package/dist/scene-node-types-DjenYFLO.d.cts +1949 -0
  301. package/dist/scene-node-types-DjenYFLO.d.ts +1949 -0
  302. package/dist/supported-fonts-CRoF1gOy.d.cts +16 -0
  303. package/dist/supported-fonts-CRoF1gOy.d.ts +16 -0
  304. package/dist/types-BRlFPEru.d.cts +511 -0
  305. package/dist/types-BRlFPEru.d.ts +511 -0
  306. package/dist/types-DffyGSy5.d.cts +67 -0
  307. package/dist/types-DffyGSy5.d.ts +67 -0
  308. package/package.json +102 -1
  309. package/src/__tests__/add-captions-plan.test.ts +6 -2
  310. package/src/__tests__/caption-edge-dash.test.ts +23 -0
  311. package/src/__tests__/entity-image-handle.test.ts +61 -1
  312. package/src/__tests__/fixtures/root-exports.baseline.json +4625 -0
  313. package/src/__tests__/input-field-extra-keys.test.ts +1 -0
  314. package/src/__tests__/json-kinds.test.ts +10 -0
  315. package/src/__tests__/model-seed-capability.test.ts +34 -0
  316. package/src/__tests__/no-internal-imports.test.ts +1 -1
  317. package/src/__tests__/node-aspect-ratio.test.ts +25 -0
  318. package/src/__tests__/node-preset-extract.test.ts +8 -0
  319. package/src/__tests__/node-run-routes.test.ts +63 -0
  320. package/src/__tests__/node-runtime-keys.test.ts +70 -0
  321. package/src/__tests__/package-entries.test.ts +50 -0
  322. package/src/__tests__/pitch-tempo-pricing.test.ts +21 -0
  323. package/src/__tests__/presentation-utils.test.ts +14 -0
  324. package/src/__tests__/preview-gate-use-case.test.ts +151 -0
  325. package/src/__tests__/producer-types.test.ts +15 -0
  326. package/src/__tests__/run-continuation.test.ts +7 -1
  327. package/src/__tests__/seedance-draft.test.ts +74 -0
  328. package/src/__tests__/site-capture-node.test.ts +58 -0
  329. package/src/__tests__/ugc-clip-saved-list.test.ts +19 -0
  330. package/src/__tests__/ugc-lane-wires.test.ts +228 -0
  331. package/src/__tests__/ugc-node-wires.test.ts +606 -0
  332. package/src/__tests__/ugc-run-state.test.ts +85 -7
  333. package/src/__tests__/video-analysis-catalog-sync.test.ts +1 -1
  334. package/src/__tests__/video-analysis-pricing.test.ts +6 -6
  335. package/src/__tests__/voice-changer-pro-quote.test.ts +79 -0
  336. package/src/__tests__/workflow-export-strip.test.ts +14 -0
  337. package/src/add-captions-plan.ts +9 -3
  338. package/src/caption-edge-dash.ts +33 -0
  339. package/src/credit-estimators/index.ts +22 -1
  340. package/src/credit-estimators/pitch-tempo.ts +15 -1
  341. package/src/credit-estimators/speech.ts +72 -4
  342. package/src/credit-estimators/unit-quote.ts +52 -0
  343. package/src/credit-estimators/video-sfx.ts +15 -0
  344. package/src/credit-estimators/voice-changer-pro-quote.ts +138 -0
  345. package/src/entity-image-handle.ts +50 -1
  346. package/src/entries/apps.ts +63 -0
  347. package/src/entries/captions.ts +34 -0
  348. package/src/entries/catalogs.ts +65 -0
  349. package/src/entries/credits.ts +104 -0
  350. package/src/entries/edl.ts +42 -0
  351. package/src/entries/entities.ts +144 -0
  352. package/src/entries/i18n.ts +31 -0
  353. package/src/entries/llm-models.ts +63 -0
  354. package/src/entries/media.ts +36 -0
  355. package/src/entries/model-catalog.ts +89 -0
  356. package/src/entries/models.ts +266 -0
  357. package/src/entries/nodes.ts +245 -0
  358. package/src/entries/organizations.ts +9 -0
  359. package/src/entries/pipeline.ts +43 -0
  360. package/src/entries/scene3d.ts +27 -0
  361. package/src/entries/social.ts +297 -0
  362. package/src/entries/types.ts +26 -0
  363. package/src/entries/ugc.ts +14 -0
  364. package/src/entries/video.ts +59 -0
  365. package/src/entries/workflow.ts +172 -0
  366. package/src/fan-out-rows.ts +2 -0
  367. package/src/index.ts +25 -1838
  368. package/src/json-kinds.ts +13 -0
  369. package/src/model-catalog.ts +97 -36
  370. package/src/model-constants.ts +3 -0
  371. package/src/node-mappable-fields.ts +1 -0
  372. package/src/node-preset-export.ts +2 -2
  373. package/src/node-preset-extract.ts +6 -4
  374. package/src/node-run-routes.ts +78 -0
  375. package/src/node-runtime-keys.ts +50 -1
  376. package/src/normalize-node-params.ts +30 -0
  377. package/src/presentation-utils.ts +8 -0
  378. package/src/preview-gate.ts +92 -14
  379. package/src/producer-types.ts +26 -2
  380. package/src/run-continuation.ts +21 -0
  381. package/src/seedance-draft.ts +64 -0
  382. package/src/site-capture-node.ts +82 -0
  383. package/src/social-post.ts +13 -0
  384. package/src/ugc-lane-wires.ts +246 -0
  385. package/src/ugc-node-wires.ts +653 -0
  386. package/src/ugc-run-state.ts +65 -8
  387. package/src/video-analysis-pricing.ts +31 -29
  388. package/src/workflow-export.ts +3 -1
@@ -0,0 +1,247 @@
1
+ 'use strict';
2
+
3
+ var chunkVWGNPMJZ_cjs = require('../chunk-VWGNPMJZ.cjs');
4
+ var chunkJSNV5O2F_cjs = require('../chunk-JSNV5O2F.cjs');
5
+ var chunkNB72XWXQ_cjs = require('../chunk-NB72XWXQ.cjs');
6
+ var chunk5AUSSJIM_cjs = require('../chunk-5AUSSJIM.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "safetyRetryPolicy", {
11
+ enumerable: true,
12
+ get: function () { return chunkVWGNPMJZ_cjs.safetyRetryPolicy; }
13
+ });
14
+ Object.defineProperty(exports, "IMAGE_MODEL_RATIO_FALLBACKS", {
15
+ enumerable: true,
16
+ get: function () { return chunkJSNV5O2F_cjs.IMAGE_MODEL_RATIO_FALLBACKS; }
17
+ });
18
+ Object.defineProperty(exports, "IMAGE_MODEL_ROLE_DEFAULTS", {
19
+ enumerable: true,
20
+ get: function () { return chunkJSNV5O2F_cjs.IMAGE_MODEL_ROLE_DEFAULTS; }
21
+ });
22
+ Object.defineProperty(exports, "defaultImageModel", {
23
+ enumerable: true,
24
+ get: function () { return chunkJSNV5O2F_cjs.defaultImageModel; }
25
+ });
26
+ Object.defineProperty(exports, "imageModelDrawsRatio", {
27
+ enumerable: true,
28
+ get: function () { return chunkJSNV5O2F_cjs.imageModelDrawsRatio; }
29
+ });
30
+ Object.defineProperty(exports, "TTS_FALLBACK_PROVIDER", {
31
+ enumerable: true,
32
+ get: function () { return chunkNB72XWXQ_cjs.TTS_FALLBACK_PROVIDER; }
33
+ });
34
+ Object.defineProperty(exports, "TTS_PROVIDER_ALIASES", {
35
+ enumerable: true,
36
+ get: function () { return chunkNB72XWXQ_cjs.TTS_PROVIDER_ALIASES; }
37
+ });
38
+ Object.defineProperty(exports, "canonicalTtsProvider", {
39
+ enumerable: true,
40
+ get: function () { return chunkNB72XWXQ_cjs.canonicalTtsProvider; }
41
+ });
42
+ Object.defineProperty(exports, "getTtsCapabilities", {
43
+ enumerable: true,
44
+ get: function () { return chunkNB72XWXQ_cjs.getTtsCapabilities; }
45
+ });
46
+ Object.defineProperty(exports, "ttsHasLever", {
47
+ enumerable: true,
48
+ get: function () { return chunkNB72XWXQ_cjs.ttsHasLever; }
49
+ });
50
+ Object.defineProperty(exports, "ttsLanguageCodes", {
51
+ enumerable: true,
52
+ get: function () { return chunkNB72XWXQ_cjs.ttsLanguageCodes; }
53
+ });
54
+ Object.defineProperty(exports, "ttsSupportsAudioTags", {
55
+ enumerable: true,
56
+ get: function () { return chunkNB72XWXQ_cjs.ttsSupportsAudioTags; }
57
+ });
58
+ Object.defineProperty(exports, "ttsSupportsSsmlBreaks", {
59
+ enumerable: true,
60
+ get: function () { return chunkNB72XWXQ_cjs.ttsSupportsSsmlBreaks; }
61
+ });
62
+ Object.defineProperty(exports, "ttsSupportsStitching", {
63
+ enumerable: true,
64
+ get: function () { return chunkNB72XWXQ_cjs.ttsSupportsStitching; }
65
+ });
66
+ Object.defineProperty(exports, "ttsSupportsTimestamps", {
67
+ enumerable: true,
68
+ get: function () { return chunkNB72XWXQ_cjs.ttsSupportsTimestamps; }
69
+ });
70
+ Object.defineProperty(exports, "FLUX2_RES_MP", {
71
+ enumerable: true,
72
+ get: function () { return chunk5AUSSJIM_cjs.FLUX2_RES_MP; }
73
+ });
74
+ Object.defineProperty(exports, "MODEL_CATALOG", {
75
+ enumerable: true,
76
+ get: function () { return chunk5AUSSJIM_cjs.MODEL_CATALOG; }
77
+ });
78
+ Object.defineProperty(exports, "MODEL_KINDS", {
79
+ enumerable: true,
80
+ get: function () { return chunk5AUSSJIM_cjs.MODEL_KINDS; }
81
+ });
82
+ Object.defineProperty(exports, "MODEL_RECOMMENDATIONS", {
83
+ enumerable: true,
84
+ get: function () { return chunk5AUSSJIM_cjs.MODEL_RECOMMENDATIONS; }
85
+ });
86
+ Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_MAX_SEC", {
87
+ enumerable: true,
88
+ get: function () { return chunk5AUSSJIM_cjs.SEEDANCE_DRAFT_FINALIZE_MAX_SEC; }
89
+ });
90
+ Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_MIN_SEC", {
91
+ enumerable: true,
92
+ get: function () { return chunk5AUSSJIM_cjs.SEEDANCE_DRAFT_FINALIZE_MIN_SEC; }
93
+ });
94
+ Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_PROVIDER", {
95
+ enumerable: true,
96
+ get: function () { return chunk5AUSSJIM_cjs.SEEDANCE_DRAFT_FINALIZE_PROVIDER; }
97
+ });
98
+ Object.defineProperty(exports, "SEEDANCE_DRAFT_FINALIZE_RESOLUTION", {
99
+ enumerable: true,
100
+ get: function () { return chunk5AUSSJIM_cjs.SEEDANCE_DRAFT_FINALIZE_RESOLUTION; }
101
+ });
102
+ Object.defineProperty(exports, "SEEDANCE_DRAFT_MODELS", {
103
+ enumerable: true,
104
+ get: function () { return chunk5AUSSJIM_cjs.SEEDANCE_DRAFT_MODELS; }
105
+ });
106
+ Object.defineProperty(exports, "SEEDANCE_DRAFT_RESOLUTION", {
107
+ enumerable: true,
108
+ get: function () { return chunk5AUSSJIM_cjs.SEEDANCE_DRAFT_RESOLUTION; }
109
+ });
110
+ Object.defineProperty(exports, "SPEECH_UNIT_PRICE_NOTE", {
111
+ enumerable: true,
112
+ get: function () { return chunk5AUSSJIM_cjs.SPEECH_UNIT_PRICE_NOTE; }
113
+ });
114
+ Object.defineProperty(exports, "VIDEO_DURATION_AUTO", {
115
+ enumerable: true,
116
+ get: function () { return chunk5AUSSJIM_cjs.VIDEO_DURATION_AUTO; }
117
+ });
118
+ Object.defineProperty(exports, "aspectRatioOptionsByKind", {
119
+ enumerable: true,
120
+ get: function () { return chunk5AUSSJIM_cjs.aspectRatioOptionsByKind; }
121
+ });
122
+ Object.defineProperty(exports, "autoAspectNeedsSourceImage", {
123
+ enumerable: true,
124
+ get: function () { return chunk5AUSSJIM_cjs.autoAspectNeedsSourceImage; }
125
+ });
126
+ Object.defineProperty(exports, "buildModelMenu", {
127
+ enumerable: true,
128
+ get: function () { return chunk5AUSSJIM_cjs.buildModelMenu; }
129
+ });
130
+ Object.defineProperty(exports, "creditRangesAll", {
131
+ enumerable: true,
132
+ get: function () { return chunk5AUSSJIM_cjs.creditRangesAll; }
133
+ });
134
+ Object.defineProperty(exports, "defaultResolutionFor", {
135
+ enumerable: true,
136
+ get: function () { return chunk5AUSSJIM_cjs.defaultResolutionFor; }
137
+ });
138
+ Object.defineProperty(exports, "durationsByMode", {
139
+ enumerable: true,
140
+ get: function () { return chunk5AUSSJIM_cjs.durationsByMode; }
141
+ });
142
+ Object.defineProperty(exports, "fitAspectRatioToModel", {
143
+ enumerable: true,
144
+ get: function () { return chunk5AUSSJIM_cjs.fitAspectRatioToModel; }
145
+ });
146
+ Object.defineProperty(exports, "getAspectRatioOptions", {
147
+ enumerable: true,
148
+ get: function () { return chunk5AUSSJIM_cjs.getAspectRatioOptions; }
149
+ });
150
+ Object.defineProperty(exports, "getCreditRange", {
151
+ enumerable: true,
152
+ get: function () { return chunk5AUSSJIM_cjs.getCreditRange; }
153
+ });
154
+ Object.defineProperty(exports, "getDurationsForModel", {
155
+ enumerable: true,
156
+ get: function () { return chunk5AUSSJIM_cjs.getDurationsForModel; }
157
+ });
158
+ Object.defineProperty(exports, "getModel", {
159
+ enumerable: true,
160
+ get: function () { return chunk5AUSSJIM_cjs.getModel; }
161
+ });
162
+ Object.defineProperty(exports, "getQualityOptions", {
163
+ enumerable: true,
164
+ get: function () { return chunk5AUSSJIM_cjs.getQualityOptions; }
165
+ });
166
+ Object.defineProperty(exports, "getResolutionOptions", {
167
+ enumerable: true,
168
+ get: function () { return chunk5AUSSJIM_cjs.getResolutionOptions; }
169
+ });
170
+ Object.defineProperty(exports, "groupByFamily", {
171
+ enumerable: true,
172
+ get: function () { return chunk5AUSSJIM_cjs.groupByFamily; }
173
+ });
174
+ Object.defineProperty(exports, "groupByKindAndFamily", {
175
+ enumerable: true,
176
+ get: function () { return chunk5AUSSJIM_cjs.groupByKindAndFamily; }
177
+ });
178
+ Object.defineProperty(exports, "hasFeature", {
179
+ enumerable: true,
180
+ get: function () { return chunk5AUSSJIM_cjs.hasFeature; }
181
+ });
182
+ Object.defineProperty(exports, "isAutoAspectToken", {
183
+ enumerable: true,
184
+ get: function () { return chunk5AUSSJIM_cjs.isAutoAspectToken; }
185
+ });
186
+ Object.defineProperty(exports, "isAutoVideoDuration", {
187
+ enumerable: true,
188
+ get: function () { return chunk5AUSSJIM_cjs.isAutoVideoDuration; }
189
+ });
190
+ Object.defineProperty(exports, "isFlux2Model", {
191
+ enumerable: true,
192
+ get: function () { return chunk5AUSSJIM_cjs.isFlux2Model; }
193
+ });
194
+ Object.defineProperty(exports, "isSeedanceDraftCapable", {
195
+ enumerable: true,
196
+ get: function () { return chunk5AUSSJIM_cjs.isSeedanceDraftCapable; }
197
+ });
198
+ Object.defineProperty(exports, "listModels", {
199
+ enumerable: true,
200
+ get: function () { return chunk5AUSSJIM_cjs.listModels; }
201
+ });
202
+ Object.defineProperty(exports, "modelIdsByKindMode", {
203
+ enumerable: true,
204
+ get: function () { return chunk5AUSSJIM_cjs.modelIdsByKindMode; }
205
+ });
206
+ Object.defineProperty(exports, "modelTakesSeed", {
207
+ enumerable: true,
208
+ get: function () { return chunk5AUSSJIM_cjs.modelTakesSeed; }
209
+ });
210
+ Object.defineProperty(exports, "modelsWithFeature", {
211
+ enumerable: true,
212
+ get: function () { return chunk5AUSSJIM_cjs.modelsWithFeature; }
213
+ });
214
+ Object.defineProperty(exports, "nearestCatalogAspectRatio", {
215
+ enumerable: true,
216
+ get: function () { return chunk5AUSSJIM_cjs.nearestCatalogAspectRatio; }
217
+ });
218
+ Object.defineProperty(exports, "normalizeModelInput", {
219
+ enumerable: true,
220
+ get: function () { return chunk5AUSSJIM_cjs.normalizeModelInput; }
221
+ });
222
+ Object.defineProperty(exports, "normalizeVideoRequestParams", {
223
+ enumerable: true,
224
+ get: function () { return chunk5AUSSJIM_cjs.normalizeVideoRequestParams; }
225
+ });
226
+ Object.defineProperty(exports, "qualityOptionsByKind", {
227
+ enumerable: true,
228
+ get: function () { return chunk5AUSSJIM_cjs.qualityOptionsByKind; }
229
+ });
230
+ Object.defineProperty(exports, "resolutionOptionsByKind", {
231
+ enumerable: true,
232
+ get: function () { return chunk5AUSSJIM_cjs.resolutionOptionsByKind; }
233
+ });
234
+ Object.defineProperty(exports, "seedanceDraftFinalizeBillableSec", {
235
+ enumerable: true,
236
+ get: function () { return chunk5AUSSJIM_cjs.seedanceDraftFinalizeBillableSec; }
237
+ });
238
+ Object.defineProperty(exports, "seedanceDraftFinalizeCreditId", {
239
+ enumerable: true,
240
+ get: function () { return chunk5AUSSJIM_cjs.seedanceDraftFinalizeCreditId; }
241
+ });
242
+ Object.defineProperty(exports, "validateModelInput", {
243
+ enumerable: true,
244
+ get: function () { return chunk5AUSSJIM_cjs.validateModelInput; }
245
+ });
246
+ //# sourceMappingURL=model-catalog.cjs.map
247
+ //# sourceMappingURL=model-catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"model-catalog.cjs"}
@@ -0,0 +1,202 @@
1
+ import { T as TtsCapabilities, m as TtsSettingLever } from '../model-catalog-flJYaa-g.cjs';
2
+ export { L as LabeledOption, M as MODEL_CATALOG, a as MODEL_KINDS, b as MODEL_RECOMMENDATIONS, c as ModelCatalogEntry, d as ModelInputAdjustment, e as ModelInputContext, f as ModelKind, g as ModelMenuOption, h as ModelMode, i as ModelRecommendation, j as ModelValidationIssue, N as NormalizedModelInput, k as NormalizedVideoRequest, P as PriceVariant, S as SPEECH_UNIT_PRICE_NOTE, l as SourceImageSize, V as ValidationField, n as aspectRatioOptionsByKind, o as autoAspectNeedsSourceImage, p as buildModelMenu, q as creditRangesAll, r as defaultResolutionFor, s as durationsByMode, t as fitAspectRatioToModel, u as getAspectRatioOptions, v as getCreditRange, w as getDurationsForModel, x as getModel, y as getQualityOptions, z as getResolutionOptions, A as groupByFamily, B as groupByKindAndFamily, C as hasFeature, D as isAutoAspectToken, E as listModels, F as modelIdsByKindMode, G as modelTakesSeed, H as modelsWithFeature, I as nearestCatalogAspectRatio, J as normalizeModelInput, K as normalizeVideoRequestParams, O as qualityOptionsByKind, Q as resolutionOptionsByKind, R as validateModelInput } from '../model-catalog-flJYaa-g.cjs';
3
+
4
+ /**
5
+ * Seedance 2.5 Draft mode — the single source of truth for which models offer a
6
+ * draft, what a draft renders at, and how its 1080p finalize is priced.
7
+ *
8
+ * A DRAFT is an ordinary Seedance 2.5 run with the provider's draft flag set: it
9
+ * renders at 480p only and costs exactly what a normal 480p run of the same
10
+ * shape costs. The FINALIZE ("Seedance 2.5 HD (from draft)", a Video Upscale
11
+ * provider) re-renders that same take — same seed, prompt, references and
12
+ * timing — at 1080p, frame for frame, at the draft's own length. Nothing
13
+ * creative is re-sent: the finalize names the draft's provider task and nothing
14
+ * else.
15
+ *
16
+ * Every surface (generation routes, the workflow engine, MCP, the editor's
17
+ * toggle) gates on {@link isSeedanceDraftCapable}; never hand-list the model.
18
+ */
19
+ /** Models that accept the draft flag. */
20
+ declare const SEEDANCE_DRAFT_MODELS: readonly ["seedance-2-5"];
21
+ type SeedanceDraftModel = typeof SEEDANCE_DRAFT_MODELS[number];
22
+ declare function isSeedanceDraftCapable(provider: string | undefined): provider is SeedanceDraftModel;
23
+ /** The only resolution a draft renders at. Any other value is coerced to it. */
24
+ declare const SEEDANCE_DRAFT_RESOLUTION = "480p";
25
+ /** The Video Upscale provider that finalizes a draft. */
26
+ declare const SEEDANCE_DRAFT_FINALIZE_PROVIDER = "seedance-2-5-hd";
27
+ /** The only resolution a finalize renders at. */
28
+ declare const SEEDANCE_DRAFT_FINALIZE_RESOLUTION = "1080p";
29
+ /** Shortest / longest output the finalize price ladder is seeded for. */
30
+ declare const SEEDANCE_DRAFT_FINALIZE_MIN_SEC = 4;
31
+ declare const SEEDANCE_DRAFT_FINALIZE_MAX_SEC = 30;
32
+ /**
33
+ * Whole seconds the finalize bills for a measured draft length.
34
+ *
35
+ * A container reports a hair over the nominal length (4.04 s for a 4 s clip), so
36
+ * the seconds round UP only past a quarter second — the same rule the Seedance
37
+ * auto-duration settlement uses — and land on the seeded ladder (4–30 s).
38
+ */
39
+ declare function seedanceDraftFinalizeBillableSec(measuredSec: number): number;
40
+ /**
41
+ * The credit identifier a finalize reserves under.
42
+ *
43
+ * Same encoding as the Seedance 2.5 generation ladder: one row per OUTPUT second
44
+ * (`seedance-2-5-hd:{N}s`), and a `-ref` twin for a draft that had a reference
45
+ * VIDEO. As on the generation lane, the `-ref` row encodes the per-second rate
46
+ * only; a reference run bills `rate × (input + output)` seconds, which the
47
+ * reservation computes from the 8 s `-ref` row (see the backend's
48
+ * `seedanceDraftFinalizeRefBaseCredits`). Reference IMAGES do not change the
49
+ * rate — only a reference video does.
50
+ */
51
+ declare function seedanceDraftFinalizeCreditId(durationSec: number, hasRefVideo: boolean): string;
52
+
53
+ /**
54
+ * Model-id enum + UI resolution options for Replicate Flux 2 image models.
55
+ *
56
+ * The provider-$ rate table and the cost/credit FORMULAS derived from it live
57
+ * in `backend/src/lib/pricing/flux2-cost.ts` (core, not ee/ — the Replicate
58
+ * provider integration needs them regardless of edition). They were moved
59
+ * out of this package (published Apache-2.0 on npm — an irrevocable grant)
60
+ * per the 2026-07-06 public-flip IP audit, S5.
61
+ */
62
+ type Flux2Model = "flux-2-klein" | "flux-2-pro" | "flux-2-max";
63
+ /** Megapixel tiers offered in the UI (strings; the value space for data.resolution). */
64
+ declare const FLUX2_RES_MP: readonly ["0.5", "1", "2", "4"];
65
+ declare function isFlux2Model(m: string): m is Flux2Model;
66
+
67
+ /**
68
+ * Capability lookups for the text-to-speech lane.
69
+ *
70
+ * Every "does this model do X" decision on that lane reads the model's `tts`
71
+ * sheet in `MODEL_CATALOG` through these helpers — tag stripping, which voice
72
+ * settings are sent and shown, the language picker, whether neighbouring text
73
+ * is sent. Declare the sheet honestly
74
+ * on the catalog entry and a new model is covered everywhere; do not compare a
75
+ * provider id by hand.
76
+ *
77
+ * "The text-to-speech lane" means the models that list the `tts` mode. The
78
+ * dialogue models carry a sheet too, read by `dialogue-capabilities.ts`; a
79
+ * text-to-speech request that names one runs as the fallback model, so these
80
+ * helpers answer for the fallback there.
81
+ */
82
+
83
+ /** Legacy provider ids that are another model under an old name. They have no catalog entry of their own. */
84
+ declare const TTS_PROVIDER_ALIASES: Readonly<Record<string, string>>;
85
+ /** The model a request runs on when its provider id is missing or unknown. */
86
+ declare const TTS_FALLBACK_PROVIDER = "elevenlabs-turbo";
87
+ /**
88
+ * Resolve a legacy alias to the catalog id it runs as. Any other id passes
89
+ * through unchanged. Own properties only: an id that happens to be the name of
90
+ * an inherited object member (`constructor`, `__proto__`, `toString`) is an
91
+ * unknown id like any other, never a function.
92
+ */
93
+ declare function canonicalTtsProvider(provider: string): string;
94
+ /**
95
+ * The capability sheet a text-to-speech request will actually run under: a
96
+ * missing or unknown provider id runs as {@link TTS_FALLBACK_PROVIDER}, so it
97
+ * gets that sheet — including its `maxChars` (turbo's 40,000), where
98
+ * `getMaxTtsChars` keeps answering its 5,000 default for such ids.
99
+ */
100
+ declare function getTtsCapabilities(provider: string | undefined): TtsCapabilities;
101
+ /** The model performs inline `[audio tags]`. false ⇒ strip them before sending. */
102
+ declare function ttsSupportsAudioTags(provider: string | undefined): boolean;
103
+ /** The model honours SSML `<break time="…"/>` tags. */
104
+ declare function ttsSupportsSsmlBreaks(provider: string | undefined): boolean;
105
+ /**
106
+ * The model conditions on neighbouring text (`previous_text` / `next_text`).
107
+ * false ⇒ the provider funnel never puts the fields on the wire, whatever the
108
+ * request carries — the model would reject them.
109
+ */
110
+ declare function ttsSupportsStitching(provider: string | undefined): boolean;
111
+ /** The model honours this voice-setting lever. */
112
+ declare function ttsHasLever(provider: string | undefined, lever: TtsSettingLever): boolean;
113
+ /** The model answers `/v1/text-to-speech/{voice}/with-timestamps` (character timings). */
114
+ declare function ttsSupportsTimestamps(provider: string | undefined): boolean;
115
+ /** Language codes offered for the model, in catalog order. */
116
+ declare function ttsLanguageCodes(provider: string | undefined): readonly string[];
117
+
118
+ /**
119
+ * Retry/fallback behavior derived from a catalog entry's `safetyFilter`
120
+ * flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).
121
+ */
122
+ interface SafetyRetryPolicy {
123
+ /** 2 when the model declares `safetyFilter.stochastic`, else 1. */
124
+ maxAttempts: 1 | 2;
125
+ /**
126
+ * Catalog model id to offer when the retry also blocks. Only present
127
+ * when the entry declares one AND it resolves to a real catalog entry.
128
+ */
129
+ fallback?: string;
130
+ }
131
+ /**
132
+ * The provider's safety filter is known to be non-deterministic on some
133
+ * catalog models — a benign prompt can trip it once and pass on an
134
+ * identical retry. For those models the platform retries a blocked
135
+ * request once (`maxAttempts: 2`) before giving up; `fallback` names the
136
+ * catalog model to offer the user when the retry also blocks.
137
+ *
138
+ * Every model not flagged this way — including an unrecognized id —
139
+ * gets a single attempt and no fallback.
140
+ */
141
+ declare function safetyRetryPolicy(modelId: string): SafetyRetryPolicy;
142
+
143
+ /**
144
+ * The platform's answer to "which image model, when the caller names none".
145
+ *
146
+ * One table by ROLE, so every surface that picks for the user (node defaults,
147
+ * route and workflow fallbacks, MCP tools, studios, pipelines) reads the same
148
+ * model instead of keeping its own literal. Before this table those literals
149
+ * had drifted apart: the Generate Image node started on Nano Banana Pro, the
150
+ * routes fell back to the original Nano Banana, and MCP used Nano Banana 2.1.
151
+ *
152
+ * Decided on 2026-10-08 from a blind five-model comparison, quality
153
+ * first and price second:
154
+ * - characters, general text-to-image and video anchors on GPT Image 2;
155
+ * - edits on GPT Image 2.5 Flare.
156
+ * With reference images attached, GPT Image 2 runs as its i2i sibling (the
157
+ * provider swaps it), so `character` covers identity-from-reference too.
158
+ *
159
+ * Nano Banana Pro is no longer a default. It remains a FALLBACK only: last in
160
+ * the ratio chain below (it is the one model here that draws 4:5 and 5:4), the
161
+ * GPT-family safety-block retry, and the swimwear dressing model.
162
+ */
163
+ declare const IMAGE_MODEL_ROLE_DEFAULTS: {
164
+ readonly character: "gpt-image-2";
165
+ readonly general: "gpt-image-2";
166
+ readonly anchor: "gpt-image-2";
167
+ readonly edit: "gpt-image-2-5-flare-i2i";
168
+ };
169
+ type ImageModelRole = keyof typeof IMAGE_MODEL_ROLE_DEFAULTS;
170
+ /**
171
+ * Where a role's model goes when it cannot draw the requested aspect ratio.
172
+ * GPT Image 2 draws only auto / 1:1 / 16:9 / 9:16 / 4:3 / 3:4, so 21:9, 3:2,
173
+ * 2:3 and the other wide or in-between ratios move to GPT Image 2.5 Sunburst,
174
+ * and 4:5 / 5:4 (which neither GPT generation draws) to Nano Banana Pro.
175
+ */
176
+ declare const IMAGE_MODEL_RATIO_FALLBACKS: Readonly<Record<ImageModelRole, readonly string[]>>;
177
+ /** True when the model's catalog entry lists the ratio (or no ratio was asked for). */
178
+ declare function imageModelDrawsRatio(modelId: string, aspectRatio?: string | null): boolean;
179
+ /**
180
+ * The default image model for a role at the requested aspect ratio: the role's
181
+ * model when it draws the ratio, else the first fallback that does, else the
182
+ * role's model (whose own ratio normalization then snaps the ratio). Read from
183
+ * the catalog, so widening a model's documented ratios moves this with it.
184
+ */
185
+ declare function defaultImageModel(role: ImageModelRole, aspectRatio?: string | null): string;
186
+
187
+ /**
188
+ * "Auto" video duration — the model decides the clip length. The wire value is
189
+ * KIE's own (`duration: -1`): on a video EDIT the output takes the source
190
+ * clip's length, on any other run the model picks within its valid range.
191
+ * Stored in the ordinary numeric `duration` field (node data, routes, presets,
192
+ * MCP) so every surface that can carry a duration can carry Auto. Which models
193
+ * accept it is a catalog capability (`MODEL_CATALOG[id].autoDuration`), read
194
+ * through `supportsAutoVideoDuration`.
195
+ *
196
+ * Import-free on purpose: the catalog and the constants module both need it,
197
+ * and they already depend on each other.
198
+ */
199
+ declare const VIDEO_DURATION_AUTO = -1;
200
+ declare function isAutoVideoDuration(duration: unknown): boolean;
201
+
202
+ export { FLUX2_RES_MP, type Flux2Model, IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, type ImageModelRole, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, type SafetyRetryPolicy, type SeedanceDraftModel, TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, TtsCapabilities, TtsSettingLever, VIDEO_DURATION_AUTO, canonicalTtsProvider, defaultImageModel, getTtsCapabilities, imageModelDrawsRatio, isAutoVideoDuration, isFlux2Model, isSeedanceDraftCapable, safetyRetryPolicy, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps };
@@ -0,0 +1,202 @@
1
+ import { T as TtsCapabilities, m as TtsSettingLever } from '../model-catalog-flJYaa-g.js';
2
+ export { L as LabeledOption, M as MODEL_CATALOG, a as MODEL_KINDS, b as MODEL_RECOMMENDATIONS, c as ModelCatalogEntry, d as ModelInputAdjustment, e as ModelInputContext, f as ModelKind, g as ModelMenuOption, h as ModelMode, i as ModelRecommendation, j as ModelValidationIssue, N as NormalizedModelInput, k as NormalizedVideoRequest, P as PriceVariant, S as SPEECH_UNIT_PRICE_NOTE, l as SourceImageSize, V as ValidationField, n as aspectRatioOptionsByKind, o as autoAspectNeedsSourceImage, p as buildModelMenu, q as creditRangesAll, r as defaultResolutionFor, s as durationsByMode, t as fitAspectRatioToModel, u as getAspectRatioOptions, v as getCreditRange, w as getDurationsForModel, x as getModel, y as getQualityOptions, z as getResolutionOptions, A as groupByFamily, B as groupByKindAndFamily, C as hasFeature, D as isAutoAspectToken, E as listModels, F as modelIdsByKindMode, G as modelTakesSeed, H as modelsWithFeature, I as nearestCatalogAspectRatio, J as normalizeModelInput, K as normalizeVideoRequestParams, O as qualityOptionsByKind, Q as resolutionOptionsByKind, R as validateModelInput } from '../model-catalog-flJYaa-g.js';
3
+
4
+ /**
5
+ * Seedance 2.5 Draft mode — the single source of truth for which models offer a
6
+ * draft, what a draft renders at, and how its 1080p finalize is priced.
7
+ *
8
+ * A DRAFT is an ordinary Seedance 2.5 run with the provider's draft flag set: it
9
+ * renders at 480p only and costs exactly what a normal 480p run of the same
10
+ * shape costs. The FINALIZE ("Seedance 2.5 HD (from draft)", a Video Upscale
11
+ * provider) re-renders that same take — same seed, prompt, references and
12
+ * timing — at 1080p, frame for frame, at the draft's own length. Nothing
13
+ * creative is re-sent: the finalize names the draft's provider task and nothing
14
+ * else.
15
+ *
16
+ * Every surface (generation routes, the workflow engine, MCP, the editor's
17
+ * toggle) gates on {@link isSeedanceDraftCapable}; never hand-list the model.
18
+ */
19
+ /** Models that accept the draft flag. */
20
+ declare const SEEDANCE_DRAFT_MODELS: readonly ["seedance-2-5"];
21
+ type SeedanceDraftModel = typeof SEEDANCE_DRAFT_MODELS[number];
22
+ declare function isSeedanceDraftCapable(provider: string | undefined): provider is SeedanceDraftModel;
23
+ /** The only resolution a draft renders at. Any other value is coerced to it. */
24
+ declare const SEEDANCE_DRAFT_RESOLUTION = "480p";
25
+ /** The Video Upscale provider that finalizes a draft. */
26
+ declare const SEEDANCE_DRAFT_FINALIZE_PROVIDER = "seedance-2-5-hd";
27
+ /** The only resolution a finalize renders at. */
28
+ declare const SEEDANCE_DRAFT_FINALIZE_RESOLUTION = "1080p";
29
+ /** Shortest / longest output the finalize price ladder is seeded for. */
30
+ declare const SEEDANCE_DRAFT_FINALIZE_MIN_SEC = 4;
31
+ declare const SEEDANCE_DRAFT_FINALIZE_MAX_SEC = 30;
32
+ /**
33
+ * Whole seconds the finalize bills for a measured draft length.
34
+ *
35
+ * A container reports a hair over the nominal length (4.04 s for a 4 s clip), so
36
+ * the seconds round UP only past a quarter second — the same rule the Seedance
37
+ * auto-duration settlement uses — and land on the seeded ladder (4–30 s).
38
+ */
39
+ declare function seedanceDraftFinalizeBillableSec(measuredSec: number): number;
40
+ /**
41
+ * The credit identifier a finalize reserves under.
42
+ *
43
+ * Same encoding as the Seedance 2.5 generation ladder: one row per OUTPUT second
44
+ * (`seedance-2-5-hd:{N}s`), and a `-ref` twin for a draft that had a reference
45
+ * VIDEO. As on the generation lane, the `-ref` row encodes the per-second rate
46
+ * only; a reference run bills `rate × (input + output)` seconds, which the
47
+ * reservation computes from the 8 s `-ref` row (see the backend's
48
+ * `seedanceDraftFinalizeRefBaseCredits`). Reference IMAGES do not change the
49
+ * rate — only a reference video does.
50
+ */
51
+ declare function seedanceDraftFinalizeCreditId(durationSec: number, hasRefVideo: boolean): string;
52
+
53
+ /**
54
+ * Model-id enum + UI resolution options for Replicate Flux 2 image models.
55
+ *
56
+ * The provider-$ rate table and the cost/credit FORMULAS derived from it live
57
+ * in `backend/src/lib/pricing/flux2-cost.ts` (core, not ee/ — the Replicate
58
+ * provider integration needs them regardless of edition). They were moved
59
+ * out of this package (published Apache-2.0 on npm — an irrevocable grant)
60
+ * per the 2026-07-06 public-flip IP audit, S5.
61
+ */
62
+ type Flux2Model = "flux-2-klein" | "flux-2-pro" | "flux-2-max";
63
+ /** Megapixel tiers offered in the UI (strings; the value space for data.resolution). */
64
+ declare const FLUX2_RES_MP: readonly ["0.5", "1", "2", "4"];
65
+ declare function isFlux2Model(m: string): m is Flux2Model;
66
+
67
+ /**
68
+ * Capability lookups for the text-to-speech lane.
69
+ *
70
+ * Every "does this model do X" decision on that lane reads the model's `tts`
71
+ * sheet in `MODEL_CATALOG` through these helpers — tag stripping, which voice
72
+ * settings are sent and shown, the language picker, whether neighbouring text
73
+ * is sent. Declare the sheet honestly
74
+ * on the catalog entry and a new model is covered everywhere; do not compare a
75
+ * provider id by hand.
76
+ *
77
+ * "The text-to-speech lane" means the models that list the `tts` mode. The
78
+ * dialogue models carry a sheet too, read by `dialogue-capabilities.ts`; a
79
+ * text-to-speech request that names one runs as the fallback model, so these
80
+ * helpers answer for the fallback there.
81
+ */
82
+
83
+ /** Legacy provider ids that are another model under an old name. They have no catalog entry of their own. */
84
+ declare const TTS_PROVIDER_ALIASES: Readonly<Record<string, string>>;
85
+ /** The model a request runs on when its provider id is missing or unknown. */
86
+ declare const TTS_FALLBACK_PROVIDER = "elevenlabs-turbo";
87
+ /**
88
+ * Resolve a legacy alias to the catalog id it runs as. Any other id passes
89
+ * through unchanged. Own properties only: an id that happens to be the name of
90
+ * an inherited object member (`constructor`, `__proto__`, `toString`) is an
91
+ * unknown id like any other, never a function.
92
+ */
93
+ declare function canonicalTtsProvider(provider: string): string;
94
+ /**
95
+ * The capability sheet a text-to-speech request will actually run under: a
96
+ * missing or unknown provider id runs as {@link TTS_FALLBACK_PROVIDER}, so it
97
+ * gets that sheet — including its `maxChars` (turbo's 40,000), where
98
+ * `getMaxTtsChars` keeps answering its 5,000 default for such ids.
99
+ */
100
+ declare function getTtsCapabilities(provider: string | undefined): TtsCapabilities;
101
+ /** The model performs inline `[audio tags]`. false ⇒ strip them before sending. */
102
+ declare function ttsSupportsAudioTags(provider: string | undefined): boolean;
103
+ /** The model honours SSML `<break time="…"/>` tags. */
104
+ declare function ttsSupportsSsmlBreaks(provider: string | undefined): boolean;
105
+ /**
106
+ * The model conditions on neighbouring text (`previous_text` / `next_text`).
107
+ * false ⇒ the provider funnel never puts the fields on the wire, whatever the
108
+ * request carries — the model would reject them.
109
+ */
110
+ declare function ttsSupportsStitching(provider: string | undefined): boolean;
111
+ /** The model honours this voice-setting lever. */
112
+ declare function ttsHasLever(provider: string | undefined, lever: TtsSettingLever): boolean;
113
+ /** The model answers `/v1/text-to-speech/{voice}/with-timestamps` (character timings). */
114
+ declare function ttsSupportsTimestamps(provider: string | undefined): boolean;
115
+ /** Language codes offered for the model, in catalog order. */
116
+ declare function ttsLanguageCodes(provider: string | undefined): readonly string[];
117
+
118
+ /**
119
+ * Retry/fallback behavior derived from a catalog entry's `safetyFilter`
120
+ * flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).
121
+ */
122
+ interface SafetyRetryPolicy {
123
+ /** 2 when the model declares `safetyFilter.stochastic`, else 1. */
124
+ maxAttempts: 1 | 2;
125
+ /**
126
+ * Catalog model id to offer when the retry also blocks. Only present
127
+ * when the entry declares one AND it resolves to a real catalog entry.
128
+ */
129
+ fallback?: string;
130
+ }
131
+ /**
132
+ * The provider's safety filter is known to be non-deterministic on some
133
+ * catalog models — a benign prompt can trip it once and pass on an
134
+ * identical retry. For those models the platform retries a blocked
135
+ * request once (`maxAttempts: 2`) before giving up; `fallback` names the
136
+ * catalog model to offer the user when the retry also blocks.
137
+ *
138
+ * Every model not flagged this way — including an unrecognized id —
139
+ * gets a single attempt and no fallback.
140
+ */
141
+ declare function safetyRetryPolicy(modelId: string): SafetyRetryPolicy;
142
+
143
+ /**
144
+ * The platform's answer to "which image model, when the caller names none".
145
+ *
146
+ * One table by ROLE, so every surface that picks for the user (node defaults,
147
+ * route and workflow fallbacks, MCP tools, studios, pipelines) reads the same
148
+ * model instead of keeping its own literal. Before this table those literals
149
+ * had drifted apart: the Generate Image node started on Nano Banana Pro, the
150
+ * routes fell back to the original Nano Banana, and MCP used Nano Banana 2.1.
151
+ *
152
+ * Decided on 2026-10-08 from a blind five-model comparison, quality
153
+ * first and price second:
154
+ * - characters, general text-to-image and video anchors on GPT Image 2;
155
+ * - edits on GPT Image 2.5 Flare.
156
+ * With reference images attached, GPT Image 2 runs as its i2i sibling (the
157
+ * provider swaps it), so `character` covers identity-from-reference too.
158
+ *
159
+ * Nano Banana Pro is no longer a default. It remains a FALLBACK only: last in
160
+ * the ratio chain below (it is the one model here that draws 4:5 and 5:4), the
161
+ * GPT-family safety-block retry, and the swimwear dressing model.
162
+ */
163
+ declare const IMAGE_MODEL_ROLE_DEFAULTS: {
164
+ readonly character: "gpt-image-2";
165
+ readonly general: "gpt-image-2";
166
+ readonly anchor: "gpt-image-2";
167
+ readonly edit: "gpt-image-2-5-flare-i2i";
168
+ };
169
+ type ImageModelRole = keyof typeof IMAGE_MODEL_ROLE_DEFAULTS;
170
+ /**
171
+ * Where a role's model goes when it cannot draw the requested aspect ratio.
172
+ * GPT Image 2 draws only auto / 1:1 / 16:9 / 9:16 / 4:3 / 3:4, so 21:9, 3:2,
173
+ * 2:3 and the other wide or in-between ratios move to GPT Image 2.5 Sunburst,
174
+ * and 4:5 / 5:4 (which neither GPT generation draws) to Nano Banana Pro.
175
+ */
176
+ declare const IMAGE_MODEL_RATIO_FALLBACKS: Readonly<Record<ImageModelRole, readonly string[]>>;
177
+ /** True when the model's catalog entry lists the ratio (or no ratio was asked for). */
178
+ declare function imageModelDrawsRatio(modelId: string, aspectRatio?: string | null): boolean;
179
+ /**
180
+ * The default image model for a role at the requested aspect ratio: the role's
181
+ * model when it draws the ratio, else the first fallback that does, else the
182
+ * role's model (whose own ratio normalization then snaps the ratio). Read from
183
+ * the catalog, so widening a model's documented ratios moves this with it.
184
+ */
185
+ declare function defaultImageModel(role: ImageModelRole, aspectRatio?: string | null): string;
186
+
187
+ /**
188
+ * "Auto" video duration — the model decides the clip length. The wire value is
189
+ * KIE's own (`duration: -1`): on a video EDIT the output takes the source
190
+ * clip's length, on any other run the model picks within its valid range.
191
+ * Stored in the ordinary numeric `duration` field (node data, routes, presets,
192
+ * MCP) so every surface that can carry a duration can carry Auto. Which models
193
+ * accept it is a catalog capability (`MODEL_CATALOG[id].autoDuration`), read
194
+ * through `supportsAutoVideoDuration`.
195
+ *
196
+ * Import-free on purpose: the catalog and the constants module both need it,
197
+ * and they already depend on each other.
198
+ */
199
+ declare const VIDEO_DURATION_AUTO = -1;
200
+ declare function isAutoVideoDuration(duration: unknown): boolean;
201
+
202
+ export { FLUX2_RES_MP, type Flux2Model, IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, type ImageModelRole, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, type SafetyRetryPolicy, type SeedanceDraftModel, TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, TtsCapabilities, TtsSettingLever, VIDEO_DURATION_AUTO, canonicalTtsProvider, defaultImageModel, getTtsCapabilities, imageModelDrawsRatio, isAutoVideoDuration, isFlux2Model, isSeedanceDraftCapable, safetyRetryPolicy, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps };
@@ -0,0 +1,6 @@
1
+ export { safetyRetryPolicy } from '../chunk-XAMC4S53.js';
2
+ export { IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, defaultImageModel, imageModelDrawsRatio } from '../chunk-QNGNOU4Z.js';
3
+ export { TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, canonicalTtsProvider, getTtsCapabilities, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps } from '../chunk-KHCBJ7KD.js';
4
+ export { FLUX2_RES_MP, MODEL_CATALOG, MODEL_KINDS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SPEECH_UNIT_PRICE_NOTE, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isSeedanceDraftCapable, listModels, modelIdsByKindMode, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, qualityOptionsByKind, resolutionOptionsByKind, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, validateModelInput } from '../chunk-C57NEO3X.js';
5
+ //# sourceMappingURL=model-catalog.js.map
6
+ //# sourceMappingURL=model-catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"model-catalog.js"}