@nodaro/shared 3.31.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 (372) 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 -27084
  289. package/dist/index.cjs.map +1 -1
  290. package/dist/index.d.cts +32 -24198
  291. package/dist/index.d.ts +32 -24198
  292. package/dist/index.js +40 -25220
  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__/fixtures/root-exports.baseline.json +4625 -0
  312. package/src/__tests__/input-field-extra-keys.test.ts +1 -0
  313. package/src/__tests__/no-internal-imports.test.ts +1 -1
  314. package/src/__tests__/node-aspect-ratio.test.ts +25 -0
  315. package/src/__tests__/node-runtime-keys.test.ts +9 -0
  316. package/src/__tests__/package-entries.test.ts +50 -0
  317. package/src/__tests__/pitch-tempo-pricing.test.ts +21 -0
  318. package/src/__tests__/preview-gate-use-case.test.ts +151 -0
  319. package/src/__tests__/run-continuation.test.ts +7 -1
  320. package/src/__tests__/site-capture-node.test.ts +58 -0
  321. package/src/__tests__/ugc-lane-wires.test.ts +228 -0
  322. package/src/__tests__/ugc-node-wires.test.ts +9 -3
  323. package/src/__tests__/ugc-run-state.test.ts +5 -4
  324. package/src/__tests__/video-analysis-catalog-sync.test.ts +1 -1
  325. package/src/__tests__/video-analysis-pricing.test.ts +6 -6
  326. package/src/__tests__/voice-changer-pro-quote.test.ts +79 -0
  327. package/src/add-captions-plan.ts +9 -3
  328. package/src/caption-edge-dash.ts +33 -0
  329. package/src/credit-estimators/index.ts +22 -1
  330. package/src/credit-estimators/pitch-tempo.ts +15 -1
  331. package/src/credit-estimators/speech.ts +72 -4
  332. package/src/credit-estimators/unit-quote.ts +52 -0
  333. package/src/credit-estimators/video-sfx.ts +15 -0
  334. package/src/credit-estimators/voice-changer-pro-quote.ts +138 -0
  335. package/src/entity-image-handle.ts +2 -0
  336. package/src/entries/apps.ts +63 -0
  337. package/src/entries/captions.ts +34 -0
  338. package/src/entries/catalogs.ts +65 -0
  339. package/src/entries/credits.ts +104 -0
  340. package/src/entries/edl.ts +42 -0
  341. package/src/entries/entities.ts +144 -0
  342. package/src/entries/i18n.ts +31 -0
  343. package/src/entries/llm-models.ts +63 -0
  344. package/src/entries/media.ts +36 -0
  345. package/src/entries/model-catalog.ts +89 -0
  346. package/src/entries/models.ts +266 -0
  347. package/src/entries/nodes.ts +245 -0
  348. package/src/entries/organizations.ts +9 -0
  349. package/src/entries/pipeline.ts +43 -0
  350. package/src/entries/scene3d.ts +27 -0
  351. package/src/entries/social.ts +297 -0
  352. package/src/entries/types.ts +26 -0
  353. package/src/entries/ugc.ts +14 -0
  354. package/src/entries/video.ts +59 -0
  355. package/src/entries/workflow.ts +172 -0
  356. package/src/fan-out-rows.ts +2 -0
  357. package/src/index.ts +25 -1845
  358. package/src/json-kinds.ts +4 -0
  359. package/src/model-catalog.ts +36 -34
  360. package/src/node-mappable-fields.ts +1 -0
  361. package/src/node-run-routes.ts +2 -0
  362. package/src/node-runtime-keys.ts +8 -0
  363. package/src/normalize-node-params.ts +30 -0
  364. package/src/presentation-utils.ts +5 -0
  365. package/src/preview-gate.ts +92 -14
  366. package/src/producer-types.ts +16 -2
  367. package/src/run-continuation.ts +21 -0
  368. package/src/site-capture-node.ts +82 -0
  369. package/src/ugc-lane-wires.ts +246 -0
  370. package/src/ugc-node-wires.ts +37 -7
  371. package/src/ugc-run-state.ts +5 -3
  372. package/src/video-analysis-pricing.ts +31 -29
@@ -0,0 +1,354 @@
1
+ import { a as SupportedFontName } from '../supported-fonts-CRoF1gOy.cjs';
2
+ export { S as SUPPORTED_FONT_NAMES } from '../supported-fonts-CRoF1gOy.cjs';
3
+ import { z } from 'zod';
4
+
5
+ /**
6
+ * Caption styles for the add-captions node. Static path uses FFmpeg drawtext;
7
+ * kinetic styles render via Remotion (BurnCaptions composition).
8
+ *
9
+ * Single source of truth — imported by:
10
+ * - backend route Zod (add-captions.ts)
11
+ * - backend worker handler (ffmpeg.ts)
12
+ * - backend MCP tool (verbs-video.ts)
13
+ * - backend plan schema (plan-schemas.ts)
14
+ * - frontend node config + cost helper
15
+ * - packages/remotion overlay dispatcher
16
+ */
17
+ declare const STATIC_CAPTION_STYLES: readonly ["subtitle"];
18
+ declare const KINETIC_CAPTION_STYLES: readonly ["word-highlight", "karaoke", "tiktok-words", "word-pop", "bouncy"];
19
+ declare const ALL_CAPTION_STYLES: readonly ["subtitle", "word-highlight", "karaoke", "tiktok-words", "word-pop", "bouncy"];
20
+ type StaticCaptionStyle = (typeof STATIC_CAPTION_STYLES)[number];
21
+ type KineticCaptionStyle = (typeof KINETIC_CAPTION_STYLES)[number];
22
+ type CaptionStyle = (typeof ALL_CAPTION_STYLES)[number];
23
+ declare function isKineticCaptionStyle(style: string | undefined | null): style is KineticCaptionStyle;
24
+ declare const CAPTION_LOOK_IDS: readonly ["outline", "clean"];
25
+ type CaptionLookId = (typeof CAPTION_LOOK_IDS)[number];
26
+ /** What an unset `look` means on a KINETIC style. ONE-LINE FLIP: set to "clean"
27
+ * to make an unset caption render as the pre-look-system lever set (face pinned)
28
+ * instead. */
29
+ declare const DEFAULT_CAPTION_LOOK: CaptionLookId;
30
+ /** What an unset `look` means on the static `subtitle` style: the plain read —
31
+ * a pinned neutral sans, no outline, no casing. A subtitle must never be left
32
+ * with NO face: the Remotion render would fall back to headless Chrome's default
33
+ * SERIF, so adding e.g. a stroke to a subtitle would silently flip its font away
34
+ * from the sans the plain FFmpeg subtitle draws. */
35
+ declare const DEFAULT_SUBTITLE_LOOK: CaptionLookId;
36
+ /**
37
+ * The lever field names that are MEANINGLESS on a `subtitle` render and so are
38
+ * rejected on it: `highlightColor` (subtitle has no per-word spoken cursor to
39
+ * colour) and `animate` (subtitle has no motion to switch off). The STYLING
40
+ * levers (look/fontFamily/fontWeight/strokeColor/strokeWidth/uppercase/positionY)
41
+ * are NOT here any more — a `subtitle` carrying any of them now routes to the
42
+ * Remotion renderer (see `captionRoutesToRemotion`), which applies them exactly
43
+ * as it does for the kinetic styles. Single source of truth for the route's
44
+ * reject-on-subtitle guard and the frontend's "don't send a stale lever" strip.
45
+ * `color`/`backgroundColor` are deliberately absent — FFmpeg subtitle honours
46
+ * those too.
47
+ */
48
+ declare const KINETIC_ONLY_CAPTION_LEVER_KEYS: readonly ["highlightColor", "animate"];
49
+ type KineticOnlyCaptionLeverKey = (typeof KINETIC_ONLY_CAPTION_LEVER_KEYS)[number];
50
+ /**
51
+ * Does an add-captions request need the Remotion renderer, vs the cheap static
52
+ * FFmpeg drawtext path? A caption routes to Remotion when it needs anything the
53
+ * one-fixed-string drawtext pass cannot do:
54
+ * - per-segment treatments (`segments`),
55
+ * - a kinetic style,
56
+ * - any STYLING lever (look/font/weight/stroke/uppercase/position_y/
57
+ * max_words_per_line) — FFmpeg drawtext can't apply a webfont face, weight,
58
+ * outline, casing, a free vertical position, or line grouping,
59
+ * - TIMED captions (a wired `transcript` or an explicit `captions[]` array),
60
+ * - auto-transcription, i.e. no `text` to burn as one static block.
61
+ * Plain-`text` `subtitle` with no lever stays on FFmpeg (unchanged, cheap).
62
+ *
63
+ * SINGLE SOURCE for BOTH the worker dispatch (handleAddCaptions) AND the credit
64
+ * id (buildAddCaptionsCreditId) so the renderer and the price never drift: a
65
+ * Remotion render bills as `add-captions:kinetic`, a plain drawtext burn as
66
+ * `add-captions`.
67
+ */
68
+ declare function captionRoutesToRemotion(input: {
69
+ style?: string | null;
70
+ text?: string | null;
71
+ segments?: readonly unknown[] | null;
72
+ transcript?: unknown;
73
+ captions?: readonly unknown[] | null;
74
+ look?: unknown;
75
+ fontFamily?: unknown;
76
+ fontWeight?: unknown;
77
+ strokeColor?: unknown;
78
+ strokeWidth?: unknown;
79
+ uppercase?: unknown;
80
+ positionY?: unknown;
81
+ maxWordsPerLine?: unknown;
82
+ }): boolean;
83
+ /**
84
+ * `maxWordsPerLine` — caps how many words a caption LINE (or tiktok-words page)
85
+ * may hold, on top of the frame-width budget, sentence ends and pauses that
86
+ * already close a line. 1–2 gives the punchy CapCut read; unset = fit the width.
87
+ * Applies to every line/page-grouped render (word-highlight, karaoke, bouncy,
88
+ * tiktok-words, and a Remotion-rendered subtitle); inert on word-pop (always one
89
+ * word). Bounds single-sourced here for the route Zod, the plan schema, the MCP
90
+ * schema, the CLI and the canvas panel.
91
+ */
92
+ declare const CAPTION_MAX_WORDS_PER_LINE_MIN = 1;
93
+ declare const CAPTION_MAX_WORDS_PER_LINE_MAX = 20;
94
+ /**
95
+ * Numeric caption levers and their wire bounds — the SAME limits the route Zod
96
+ * and the render-plan schema enforce. Single-sourced so the coercion below and
97
+ * those schemas cannot disagree (a guard test pins the route to these).
98
+ */
99
+ declare const CAPTION_LEVER_BOUNDS: {
100
+ readonly fontSize: {
101
+ readonly min: 12;
102
+ readonly max: 200;
103
+ };
104
+ readonly strokeWidth: {
105
+ readonly min: 0;
106
+ readonly max: 40;
107
+ };
108
+ readonly positionY: {
109
+ readonly min: 0;
110
+ readonly max: 100;
111
+ };
112
+ readonly fontWeight: {
113
+ readonly min: 100;
114
+ readonly max: 900;
115
+ };
116
+ readonly maxWordsPerLine: {
117
+ readonly min: 1;
118
+ readonly max: 20;
119
+ };
120
+ };
121
+ /**
122
+ * COERCE, never reject: bring the numeric caption levers of node data that
123
+ * never passed a Zod (a workflow written by an agent, an import, a template, a
124
+ * FieldMapping) into the range the render plan accepts. Without this an
125
+ * out-of-range value only surfaces when the plan schema throws — mid-run, after
126
+ * credits are reserved. A `null` / non-finite / non-numeric value is DROPPED (the
127
+ * render default applies); an out-of-range one is clamped; `fontWeight` snaps to the
128
+ * nearest 100 and `maxWordsPerLine` to a whole number. Pure; returns a copy and
129
+ * leaves every other field untouched. Applied by payload-builder to the node's
130
+ * top level and to each `segments[]` entry.
131
+ */
132
+ declare function normalizeCaptionNumericLevers<T extends Record<string, unknown>>(input: T): T;
133
+ /** The concrete levers a look (and any explicit override) resolves to. */
134
+ interface CaptionLookLevers {
135
+ fontFamily?: SupportedFontName;
136
+ fontWeight?: number;
137
+ color?: string;
138
+ backgroundColor?: string;
139
+ strokeColor?: string;
140
+ strokeWidth?: number;
141
+ highlightColor?: string;
142
+ uppercase?: boolean;
143
+ }
144
+ /** Outline width = 10% of font size (min 2px). `paint-order: stroke fill` puts
145
+ * half the stroke OUTSIDE the glyph, so the visible rim is ~5% of font size. */
146
+ declare function autoStrokeWidth(fontSize: number): number;
147
+ /** Each look is a function of font size (so the outline tracks the text size). */
148
+ declare const CAPTION_LOOKS: Record<CaptionLookId, (fontSize: number) => CaptionLookLevers>;
149
+ /**
150
+ * Resolve a look + explicit overrides into concrete levers. An explicit lever
151
+ * always wins over the look; `strokeWidth: 0` explicitly means "no outline".
152
+ * The plan then carries concrete levers only — nothing to resolve at render.
153
+ */
154
+ declare function resolveCaptionLook(look: CaptionLookId | undefined, explicit: CaptionLookLevers, fontSize: number): CaptionLookLevers;
155
+ /**
156
+ * Resolve the concrete render levers for a caption, applying the DEFAULT look the
157
+ * way each STYLE expects: an unset `look` means `outline` on a kinetic style (the
158
+ * TikTok/CapCut read) and `clean` on the static `subtitle` (the plain read — a
159
+ * pinned neutral sans, no outline, no casing). So a subtitle that routes to
160
+ * Remotion never inherits the outline house-style unless asked, AND is never left
161
+ * with no face at all (which renders as headless Chrome's default serif). A named
162
+ * look always wins; explicit levers override either. SINGLE SOURCE for the worker
163
+ * top-level levers, the per-segment resolver, and the frontend config/preview
164
+ * mirror, so the per-style default can't drift between them.
165
+ */
166
+ declare function resolveCaptionLevers(style: string | undefined | null, look: CaptionLookId | undefined, explicit: CaptionLookLevers, fontSize: number): CaptionLookLevers;
167
+
168
+ interface CaptionWordTiming {
169
+ readonly text: string;
170
+ readonly startMs: number;
171
+ readonly endMs: number;
172
+ }
173
+ /**
174
+ * A caption plan: the opening line, where it ends, and the timed words that
175
+ * follow it. Times and words only — no styling travels on a plan; whoever
176
+ * renders it applies the look. Times are milliseconds from the video's start.
177
+ */
178
+ /** The opening line and the body's words, timed. No styling. */
179
+ interface CaptionPlan {
180
+ readonly v: 1;
181
+ /** The opening line as written; sent as is, never trimmed. */
182
+ readonly hookText: string;
183
+ /** Where the opening line ends; the body starts here. */
184
+ readonly hookEndMs: number;
185
+ /** Where the body captions end, any tail included (the producer decides it). */
186
+ readonly bodyEndMs: number;
187
+ /** The body's words, in milliseconds. */
188
+ readonly captions: readonly CaptionWordTiming[];
189
+ /** When known, the opening line and the body are clamped to it. */
190
+ readonly videoDurationMs?: number;
191
+ /** Primary language tag: "en", "he", … */
192
+ readonly language?: string;
193
+ }
194
+ /**
195
+ * A wired caption plan (object or JSON string) → the plan, or the first problem
196
+ * named as "Caption plan: <issue>." Only the CaptionPlan fields are kept.
197
+ */
198
+ declare function parseCaptionPlan(raw: unknown): {
199
+ plan: CaptionPlan;
200
+ } | {
201
+ error: string;
202
+ };
203
+
204
+ /**
205
+ * The add-captions SEGMENT contract — one definition for the route's Zod, the
206
+ * provider's overlap check and both workflow engines' pre-reservation check of a
207
+ * caption plan's segments (a DAG payload never passes the route's validation).
208
+ * Moved here from backend/src/routes/add-captions.ts so the copies can never differ.
209
+ */
210
+ /** Caption font weight: 100..900 on the 100 grid. */
211
+ declare const captionFontWeightSchema: z.ZodNumber;
212
+ /** A text caption source must carry a visible glyph (whitespace synthesises to zero words). */
213
+ declare const nonBlankCaptionText: z.ZodString;
214
+ /** One word-timed caption entry. */
215
+ declare const captionInputSchema: z.ZodObject<{
216
+ text: z.ZodString;
217
+ startMs: z.ZodNumber;
218
+ endMs: z.ZodNumber;
219
+ timestampMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
220
+ confidence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
221
+ }, z.core.$strip>;
222
+ /**
223
+ * One caption SEGMENT: a time range, optional levers (each inherits the top-level
224
+ * value when omitted) and optional own words (`text` or `captions[]`; falls back
225
+ * to the shared transcript filtered to the range). A segmented render is entirely
226
+ * Remotion, so any `style` (incl. subtitle) and any look lever is valid on a segment.
227
+ */
228
+ declare const captionSegmentInputSchema: z.ZodObject<{
229
+ startMs: z.ZodNumber;
230
+ endMs: z.ZodNumber;
231
+ style: z.ZodOptional<z.ZodEnum<{
232
+ subtitle: "subtitle";
233
+ "word-highlight": "word-highlight";
234
+ karaoke: "karaoke";
235
+ "tiktok-words": "tiktok-words";
236
+ "word-pop": "word-pop";
237
+ bouncy: "bouncy";
238
+ }>>;
239
+ position: z.ZodOptional<z.ZodEnum<{
240
+ top: "top";
241
+ center: "center";
242
+ bottom: "bottom";
243
+ }>>;
244
+ fontSize: z.ZodOptional<z.ZodNumber>;
245
+ color: z.ZodOptional<z.ZodString>;
246
+ backgroundColor: z.ZodOptional<z.ZodString>;
247
+ look: z.ZodOptional<z.ZodEnum<{
248
+ clean: "clean";
249
+ outline: "outline";
250
+ }>>;
251
+ fontFamily: z.ZodOptional<z.ZodEnum<{
252
+ Inter: "Inter";
253
+ Roboto: "Roboto";
254
+ "Open Sans": "Open Sans";
255
+ Montserrat: "Montserrat";
256
+ Poppins: "Poppins";
257
+ Raleway: "Raleway";
258
+ Nunito: "Nunito";
259
+ Lato: "Lato";
260
+ "Playfair Display": "Playfair Display";
261
+ Merriweather: "Merriweather";
262
+ Lora: "Lora";
263
+ "EB Garamond": "EB Garamond";
264
+ "Bebas Neue": "Bebas Neue";
265
+ Oswald: "Oswald";
266
+ Anton: "Anton";
267
+ "Dancing Script": "Dancing Script";
268
+ Pacifico: "Pacifico";
269
+ Caveat: "Caveat";
270
+ "Roboto Mono": "Roboto Mono";
271
+ "Fira Code": "Fira Code";
272
+ Rubik: "Rubik";
273
+ Heebo: "Heebo";
274
+ Cairo: "Cairo";
275
+ Tajawal: "Tajawal";
276
+ }>>;
277
+ fontWeight: z.ZodOptional<z.ZodNumber>;
278
+ strokeColor: z.ZodOptional<z.ZodString>;
279
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
280
+ highlightColor: z.ZodOptional<z.ZodString>;
281
+ uppercase: z.ZodOptional<z.ZodBoolean>;
282
+ positionY: z.ZodOptional<z.ZodNumber>;
283
+ animate: z.ZodOptional<z.ZodBoolean>;
284
+ maxWordsPerLine: z.ZodOptional<z.ZodNumber>;
285
+ text: z.ZodOptional<z.ZodString>;
286
+ captions: z.ZodOptional<z.ZodArray<z.ZodObject<{
287
+ text: z.ZodString;
288
+ startMs: z.ZodNumber;
289
+ endMs: z.ZodNumber;
290
+ timestampMs: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
291
+ confidence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
292
+ }, z.core.$strip>>>;
293
+ }, z.core.$strip>;
294
+ type CaptionSegmentInput = z.infer<typeof captionSegmentInputSchema>;
295
+ /** Every field a segment may carry, in schema order. */
296
+ declare const CAPTION_SEGMENT_SCHEMA_KEYS: readonly string[];
297
+ /**
298
+ * Segments must be sorted and non-overlapping. Returns the first offending pair
299
+ * as the route's 400 text; null when none overlap (abutting is fine).
300
+ * `startMs < endMs` per segment is enforced by the schema; this is the cross-segment rule.
301
+ */
302
+ declare function findSegmentOverlap(segments: readonly {
303
+ startMs: number;
304
+ endMs: number;
305
+ }[]): string | null;
306
+
307
+ /**
308
+ * A caption line never starts or ends on a lone dash.
309
+ *
310
+ * A speech engine times a dash written between two spaces ("Nodaro — every model")
311
+ * as a token of its own, and forced alignment keeps it. Inside a line the dash
312
+ * reads as written; at a line's edge — the line breaks right after it, or the
313
+ * next line opens with it — it reads as a stray mark. The display drops such a
314
+ * token from the edge of the line it lands on; the words keep their own timings.
315
+ *
316
+ * One rule for every place that breaks captions into lines: the render's line
317
+ * grouping (word-timed captions) and the wrap of a static text block.
318
+ */
319
+ /** True when the token, trimmed, is nothing but dash characters ("—", "–", "-"). A hyphenated word ("ה-AI", "re-run") is not. */
320
+ declare function isBareDashToken(text: string): boolean;
321
+ /**
322
+ * The items with every lone-dash token at either end removed (a copy; the input
323
+ * is never mutated). A line holding nothing but dashes comes back empty — the
324
+ * caller drops it rather than show it.
325
+ */
326
+ declare function trimEdgeDashTokens<T>(items: readonly T[], textOf: (item: T) => string): T[];
327
+
328
+ /** The styling half, injected so this package never imports @nodaro/prompts (each engine passes hookPlateCaptionSegments). */
329
+ interface CaptionPlanStyler {
330
+ readonly segmentsFor: (plan: CaptionPlan, opts?: {
331
+ bodyLevers?: Readonly<Record<string, unknown>>;
332
+ }) => {
333
+ segments: Record<string, unknown>[];
334
+ dropped: readonly string[];
335
+ };
336
+ readonly leverKeys: readonly string[];
337
+ }
338
+ /** The node's own caption levers (set, non-null) — the body's style. Undefined when it sets none (the helper then applies Body Captions). */
339
+ declare function captionPlanBodyLevers(nodeData: Readonly<Record<string, unknown>>, leverKeys: readonly string[]): Record<string, unknown> | undefined;
340
+ /**
341
+ * A wired caption plan → the timed segments of ONE add-captions request, checked
342
+ * with the route's own segment schema and overlap rule (a DAG payload never
343
+ * passes the route, so both engines check here, before any reservation). The
344
+ * plate is always Hook Plate plus the plan's language levers; the body is the
345
+ * node's own style (the helper's rules, SP7 §4.6.3). `segments: []` = no
346
+ * captions — the caller passes the video through.
347
+ */
348
+ declare function styleCaptionPlan(raw: unknown, nodeData: Readonly<Record<string, unknown>>, styler: CaptionPlanStyler): {
349
+ segments: Record<string, unknown>[];
350
+ } | {
351
+ error: string;
352
+ };
353
+
354
+ export { ALL_CAPTION_STYLES, CAPTION_LEVER_BOUNDS, CAPTION_LOOKS, CAPTION_LOOK_IDS, CAPTION_MAX_WORDS_PER_LINE_MAX, CAPTION_MAX_WORDS_PER_LINE_MIN, CAPTION_SEGMENT_SCHEMA_KEYS, type CaptionLookId, type CaptionLookLevers, type CaptionPlan, type CaptionPlanStyler, type CaptionSegmentInput, type CaptionStyle, type CaptionWordTiming, DEFAULT_CAPTION_LOOK, DEFAULT_SUBTITLE_LOOK, KINETIC_CAPTION_STYLES, KINETIC_ONLY_CAPTION_LEVER_KEYS, type KineticCaptionStyle, type KineticOnlyCaptionLeverKey, STATIC_CAPTION_STYLES, type StaticCaptionStyle, SupportedFontName, autoStrokeWidth, captionFontWeightSchema, captionInputSchema, captionPlanBodyLevers, captionRoutesToRemotion, captionSegmentInputSchema, findSegmentOverlap, isBareDashToken, isKineticCaptionStyle, nonBlankCaptionText, normalizeCaptionNumericLevers, parseCaptionPlan, resolveCaptionLevers, resolveCaptionLook, styleCaptionPlan, trimEdgeDashTokens };