@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
package/src/json-kinds.ts CHANGED
@@ -28,6 +28,7 @@
28
28
  * expects a Transcript, an `edl` pip an EDL.
29
29
  */
30
30
  import { RENDER_JSON_HANDLE, RENDER_NODE_TYPES, type RenderNodeDescriptor } from "./render-nodes.js"
31
+ import { UGC_PRIMARY_HANDLE } from "./ugc-node-wires.js"
31
32
 
32
33
  /** The two JSON shapes the platform's handle vocabulary tells apart. */
33
34
  export type JsonKind = "transcript" | "edl"
@@ -58,6 +59,8 @@ const JSON_OUTPUT_KINDS: Readonly<Record<string, JsonOutputs>> = Object.freeze({
58
59
  "speaker-frames": { primary: "tracks", pips: { tracks: "other" } },
59
60
  // Text to Dialogue: the Transcript built from the model's own word timings (its default read is the audio).
60
61
  "text-to-dialogue": { pips: { json: "transcript" } },
62
+ // Tighten Episode: its json is the plan's EDL (dropped[] included); its default read is the media.
63
+ "tighten-episode": { pips: { json: "edl" } },
61
64
 
62
65
  // ── JSON that is neither a Transcript nor an EDL (decided 2026-10-08) ──
63
66
  // Forced Alignment: `{ alignment: [{ word, start, end }] }` in seconds — a word list, not a Transcript.
@@ -73,6 +76,8 @@ const JSON_OUTPUT_KINDS: Readonly<Record<string, JsonOutputs>> = Object.freeze({
73
76
  "meta-ads-scrape": { primary: "json", pips: { json: "other" } },
74
77
  "instagram-scrape": { primary: "json", pips: { json: "other" } },
75
78
  "social-search": { primary: "json", pips: { json: "other" } },
79
+ // Site Capture: the capture's output (title, sections, stills, page facts). Its stills are its `image` pip.
80
+ "site-capture": { pips: { json: "other" } },
76
81
  "telegram-channel-feed": { primary: "json", pips: { json: "other" } },
77
82
  // Content Recipe: the recipe's structured result.
78
83
  "content-recipe": { primary: "json", pips: { json: "other" } },
@@ -83,6 +88,14 @@ const JSON_OUTPUT_KINDS: Readonly<Record<string, JsonOutputs>> = Object.freeze({
83
88
  "competitor-read": { primary: "json", pips: { json: "other" } },
84
89
  // Describe to Picker: the picker values read off an image.
85
90
  "describe-to-picker": { primary: "picker-json", pips: { "picker-json": "other" } },
91
+ // The UGC video nodes: their own versioned JSON (a creator record, a plan, the
92
+ // clip tickets, the sized plan), and UGC Cards' layer plan and caption plan.
93
+ // Their text pips (category, transcript, report) are not JSON pips. The pip an
94
+ // edge with no `sourceHandle` reads is the UGC wires' own (UGC_PRIMARY_HANDLE).
95
+ "ugc-creator": { primary: UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
96
+ "ugc-script": { primary: UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
97
+ "ugc-clips": { primary: UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
98
+ "ugc-cards": { primary: UGC_PRIMARY_HANDLE["ugc-cards"], pips: { layerPlan: "other", captionPlan: "other" } },
86
99
  })
87
100
 
88
101
  /** The input pips whose kind is fixed by the handle vocabulary. */
@@ -28,6 +28,7 @@
28
28
  * `docs/choosing-models.md` guide. CI (`gen:skills:check`) fails on drift.
29
29
  */
30
30
 
31
+ import { isSeedanceDraftCapable, SEEDANCE_DRAFT_RESOLUTION } from "./seedance-draft.js"
31
32
  import { isFlux2Model } from "./flux2-pricing.js"
32
33
  import { isAutoVideoDuration } from "./video-duration-auto.js"
33
34
 
@@ -86,13 +87,15 @@ export interface PriceVariant {
86
87
  /**
87
88
  * The note on every speech model's `<model>:per-100-chars` pricing row. The
88
89
  * row is a rate: one started 100 characters of the text sent, at least 8 units
89
- * per request (`credit-estimators/speech.ts`). An instance serves the row only
90
- * while it prices speech by length; a client that does not see it quotes the
91
- * flat row. (The ids are literals on the entries — this file cannot import
90
+ * per request (`credit-estimators/speech.ts`). A request's total is rounded
91
+ * once, so its units × the listed figure is an upper bound of what it costs;
92
+ * the exact price of N units is the `<model>:per-100-chars:<N>u` id. An
93
+ * instance serves the row only while it prices speech by length; a client that
94
+ * does not see it quotes the flat row. (The ids are literals on the entries — this file cannot import
92
95
  * the speech estimator without a cycle through tts-capabilities.ts; the
93
96
  * pricing-coverage tests pin each literal to `speechUnitCreditId(id)`.)
94
97
  */
95
- export const SPEECH_UNIT_PRICE_NOTE = "per started 100 characters, at least 8 units — where length pricing is on"
98
+ export const SPEECH_UNIT_PRICE_NOTE = "per started 100 characters, at least 8 units — where length pricing is on; a request costs at most its units × this"
96
99
 
97
100
  /** A voice-setting lever a speech model honours. */
98
101
  export type TtsSettingLever = "stability" | "similarity" | "style" | "speed" | "speakerBoost"
@@ -237,6 +240,15 @@ export interface ModelCatalogEntry {
237
240
  * the longest clip and settled on the delivered one.
238
241
  */
239
242
  autoDuration?: boolean
243
+ /**
244
+ * The model takes NO seed: its provider schema has none, so a seed the
245
+ * request carries is dropped before the provider call and repeat runs vary.
246
+ * Absent means a seed is forwarded as usual. Read through
247
+ * {@link modelTakesSeed} — the editor hides its Seed field off it and clears
248
+ * a stale `data.seed` when the provider switches. Pinned to the KIE configs'
249
+ * `omitSeed` in both directions by `seed-capability-parity.test.ts`.
250
+ */
251
+ noSeed?: boolean
240
252
  pricing: readonly PriceVariant[]
241
253
  /** Editorial highlight — "best in tier". Surfaces in MCP output as a ⭐. */
242
254
  featured?: boolean
@@ -1776,6 +1788,8 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
1776
1788
  defaultDuration: 8,
1777
1789
  autoDuration: true,
1778
1790
  resolutions: ["480p", "720p", "1080p"],
1791
+ // KIE refuses a seed on Seedance 2.5 (422) — the provider config omits it.
1792
+ noSeed: true,
1779
1793
  pricing: [
1780
1794
  { identifier: "seedance-2-5", credits: 1260, note: "default 8s 720p — see :Ns:res variants for exact" },
1781
1795
  { identifier: "seedance-2-5:8s:480p", credits: 560, note: "8s 480p" },
@@ -2093,6 +2107,7 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2093
2107
  durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
2094
2108
  defaultDuration: 5,
2095
2109
  resolutions: ["720p", "1080p"],
2110
+ noSeed: true, // HappyHorse 1.1 dropped `seed` from its schema
2096
2111
  pricing: [
2097
2112
  { identifier: "happyhorse", credits: 282, note: "5s 720p default — per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" },
2098
2113
  ],
@@ -2109,6 +2124,7 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2109
2124
  durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
2110
2125
  defaultDuration: 5,
2111
2126
  resolutions: ["720p", "1080p"],
2127
+ noSeed: true, // HappyHorse 1.1 dropped `seed` from its schema
2112
2128
  pricing: [
2113
2129
  { identifier: "happyhorse-i2v", credits: 282, note: "5s 720p default — per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" },
2114
2130
  ],
@@ -2127,6 +2143,7 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2127
2143
  defaultDuration: 5,
2128
2144
  resolutions: ["720p", "1080p"],
2129
2145
  features: ["reference-image"],
2146
+ noSeed: true, // HappyHorse 1.1 dropped `seed` from its schema
2130
2147
  pricing: [
2131
2148
  { identifier: "happyhorse-ref2v", credits: 282, note: "5s 720p default — per-second: ~5.7 cr/s @720p, ~7.3 cr/s @1080p" },
2132
2149
  ],
@@ -2292,6 +2309,27 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2292
2309
  useCases: ["upscale", "high-res"],
2293
2310
  pricing: [{ identifier: "veo-4k", credits: 380 }],
2294
2311
  },
2312
+ // Seedance 2.5 Draft finalize (seedance-draft.ts): re-renders a Seedance 2.5
2313
+ // DRAFT as the same take at 1080p. Priced per output second of the draft; a
2314
+ // draft made with a reference VIDEO bills its `-ref` rate on input + output
2315
+ // seconds. Only works on a completed Seedance 2.5 draft.
2316
+ "seedance-2-5-hd": {
2317
+ id: "seedance-2-5-hd",
2318
+ kind: "video",
2319
+ modes: ["video-upscale"] as const,
2320
+ family: "Bytedance",
2321
+ label: "Seedance 2.5 HD (from draft)",
2322
+ series: "Seedance",
2323
+ description: "Finalize a Seedance 2.5 draft: the same take, frame for frame, re-rendered at 1080p.",
2324
+ useCases: ["upscale", "high-res"],
2325
+ pricing: [
2326
+ { identifier: "seedance-2-5-hd", credits: 3160, note: "default 8s — see :Ns variants for exact" },
2327
+ { identifier: "seedance-2-5-hd:4s", credits: 1580, note: "4s draft" },
2328
+ { identifier: "seedance-2-5-hd:8s", credits: 3160, note: "8s draft" },
2329
+ { identifier: "seedance-2-5-hd:30s", credits: 11850, note: "30s draft (max)" },
2330
+ { identifier: "seedance-2-5-hd:8s-ref", credits: 1900, note: "per-second rate of a draft made with a reference video; billed on input + output seconds" },
2331
+ ],
2332
+ },
2295
2333
  "topaz-video": {
2296
2334
  id: "topaz-video",
2297
2335
  kind: "video",
@@ -2504,11 +2542,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2504
2542
  description: "Analyze a video into a structured shot list (scenes, camera, audio) — fast, economy tier. Billed per duration bucket.",
2505
2543
  useCases: ["video-analysis", "shot-list", "fast"],
2506
2544
  pricing: [
2507
- { identifier: "video-analysis:gemini-3-flash", credits: 849, note: "10-min ceiling (no duration given)" },
2545
+ { identifier: "video-analysis:gemini-3-flash", credits: 848, note: "10-min ceiling (no duration given)" },
2508
2546
  { identifier: "video-analysis:gemini-3-flash:60s", credits: 181 },
2509
- { identifier: "video-analysis:gemini-3-flash:180s", credits: 186 },
2510
- { identifier: "video-analysis:gemini-3-flash:360s", credits: 516 },
2511
- { identifier: "video-analysis:gemini-3-flash:600s", credits: 849, note: "10-min ceiling" },
2547
+ { identifier: "video-analysis:gemini-3-flash:180s", credits: 185 },
2548
+ { identifier: "video-analysis:gemini-3-flash:360s", credits: 515 },
2549
+ { identifier: "video-analysis:gemini-3-flash:600s", credits: 848, note: "10-min ceiling" },
2512
2550
  ],
2513
2551
  },
2514
2552
  "gemini-3.6-flash-video-analysis": {
@@ -2521,11 +2559,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2521
2559
  description: "Legacy fast-tier analysis model (backed the fast tier from 2026-07 until 2026-07-29). Kept so stored raw-model configs keep running and keep pricing under their own identifier; new fast-tier runs use the current fast model.",
2522
2560
  useCases: ["video-analysis", "shot-list", "fast"],
2523
2561
  pricing: [
2524
- { identifier: "video-analysis:gemini-3.6-flash", credits: 995, note: "10-min ceiling (no duration given)" },
2525
- { identifier: "video-analysis:gemini-3.6-flash:60s", credits: 205 },
2562
+ { identifier: "video-analysis:gemini-3.6-flash", credits: 992, note: "10-min ceiling (no duration given)" },
2563
+ { identifier: "video-analysis:gemini-3.6-flash:60s", credits: 204 },
2526
2564
  { identifier: "video-analysis:gemini-3.6-flash:180s", credits: 219 },
2527
- { identifier: "video-analysis:gemini-3.6-flash:360s", credits: 603 },
2528
- { identifier: "video-analysis:gemini-3.6-flash:600s", credits: 995, note: "10-min ceiling" },
2565
+ { identifier: "video-analysis:gemini-3.6-flash:360s", credits: 602 },
2566
+ { identifier: "video-analysis:gemini-3.6-flash:600s", credits: 992, note: "10-min ceiling" },
2529
2567
  ],
2530
2568
  },
2531
2569
  "gemini-3.1-pro-video-analysis": {
@@ -2538,11 +2576,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2538
2576
  description: "Analyze a video into a structured shot list (scenes, camera, audio) — higher-fidelity, default tier. Billed per duration bucket.",
2539
2577
  useCases: ["video-analysis", "shot-list", "cinematic"],
2540
2578
  pricing: [
2541
- { identifier: "video-analysis:gemini-3.1-pro", credits: 1059, note: "10-min ceiling (no duration given)" },
2542
- { identifier: "video-analysis:gemini-3.1-pro:60s", credits: 217 },
2543
- { identifier: "video-analysis:gemini-3.1-pro:180s", credits: 233 },
2544
- { identifier: "video-analysis:gemini-3.1-pro:360s", credits: 642 },
2545
- { identifier: "video-analysis:gemini-3.1-pro:600s", credits: 1059, note: "10-min ceiling" },
2579
+ { identifier: "video-analysis:gemini-3.1-pro", credits: 1056, note: "10-min ceiling (no duration given)" },
2580
+ { identifier: "video-analysis:gemini-3.1-pro:60s", credits: 216 },
2581
+ { identifier: "video-analysis:gemini-3.1-pro:180s", credits: 232 },
2582
+ { identifier: "video-analysis:gemini-3.1-pro:360s", credits: 640 },
2583
+ { identifier: "video-analysis:gemini-3.1-pro:600s", credits: 1056, note: "10-min ceiling" },
2546
2584
  ],
2547
2585
  },
2548
2586
  // Both mixed tiers are variants of the same advanced multi-engine analysis
@@ -2558,11 +2596,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2558
2596
  description: "Our most advanced analysis tier — multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
2559
2597
  useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
2560
2598
  pricing: [
2561
- { identifier: "video-analysis:mixed", credits: 1181, note: "10-min ceiling (no duration given)" },
2599
+ { identifier: "video-analysis:mixed", credits: 1177, note: "10-min ceiling (no duration given)" },
2562
2600
  { identifier: "video-analysis:mixed:60s", credits: 270 },
2563
- { identifier: "video-analysis:mixed:180s", credits: 292 },
2564
- { identifier: "video-analysis:mixed:360s", credits: 731 },
2565
- { identifier: "video-analysis:mixed:600s", credits: 1181, note: "10-min ceiling" },
2601
+ { identifier: "video-analysis:mixed:180s", credits: 291 },
2602
+ { identifier: "video-analysis:mixed:360s", credits: 729 },
2603
+ { identifier: "video-analysis:mixed:600s", credits: 1177, note: "10-min ceiling" },
2566
2604
  ],
2567
2605
  },
2568
2606
  // SMART — the accuracy tier. Since the 2026-08-03 hybrid re-plan it is a
@@ -2580,11 +2618,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2580
2618
  description: "Highest-accuracy analysis — a hybrid pass that blends a native skeleton read with several donor analysis rolls, then always refines the merged result to find shot boundaries and identify the cast by appearance. Best choice when the shot list will drive regeneration. Billed per duration bucket.",
2581
2619
  useCases: ["video-analysis", "shot-list", "premium", "most-accurate"],
2582
2620
  pricing: [
2583
- { identifier: "video-analysis:smart", credits: 2081, note: "10-min ceiling (no duration given)" },
2584
- { identifier: "video-analysis:smart:60s", credits: 414 },
2585
- { identifier: "video-analysis:smart:180s", credits: 504 },
2586
- { identifier: "video-analysis:smart:360s", credits: 1270 },
2587
- { identifier: "video-analysis:smart:600s", credits: 2081, note: "10-min ceiling" },
2621
+ { identifier: "video-analysis:smart", credits: 2076, note: "10-min ceiling (no duration given)" },
2622
+ { identifier: "video-analysis:smart:60s", credits: 413 },
2623
+ { identifier: "video-analysis:smart:180s", credits: 503 },
2624
+ { identifier: "video-analysis:smart:360s", credits: 1267 },
2625
+ { identifier: "video-analysis:smart:600s", credits: 2076, note: "10-min ceiling" },
2588
2626
  ],
2589
2627
  },
2590
2628
  // ── AI Audit (`video-audit`) ── a SEPARATE node from video-analysis (own
@@ -2608,11 +2646,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2608
2646
  description: "Re-watches a clip against a wired analysis, applies video-verified corrections under guards, and returns a disclosed report of what changed. Billed per duration bucket.",
2609
2647
  useCases: ["video-audit", "qa", "shot-list", "verification"],
2610
2648
  pricing: [
2611
- { identifier: "video-audit", credits: 1075, note: "10-min ceiling (no duration given)" },
2649
+ { identifier: "video-audit", credits: 1073, note: "10-min ceiling (no duration given)" },
2612
2650
  { identifier: "video-audit:60s", credits: 215 },
2613
- { identifier: "video-audit:180s", credits: 291 },
2614
- { identifier: "video-audit:360s", credits: 664 },
2615
- { identifier: "video-audit:600s", credits: 1075, note: "10-min ceiling" },
2651
+ { identifier: "video-audit:180s", credits: 290 },
2652
+ { identifier: "video-audit:360s", credits: 663 },
2653
+ { identifier: "video-audit:600s", credits: 1073, note: "10-min ceiling" },
2616
2654
  ],
2617
2655
  },
2618
2656
  "video-audit-auto": {
@@ -2624,11 +2662,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
2624
2662
  description: "Same video-verified audit as AI Audit, but auto-runs a fast analysis first when none is wired in, then applies corrections under guards and returns a disclosed report. Billed per duration bucket.",
2625
2663
  useCases: ["video-audit", "qa", "shot-list", "verification", "auto-analysis"],
2626
2664
  pricing: [
2627
- { identifier: "video-audit:auto", credits: 1924, note: "10-min ceiling (no duration given)" },
2665
+ { identifier: "video-audit:auto", credits: 1921, note: "10-min ceiling (no duration given)" },
2628
2666
  { identifier: "video-audit:auto:60s", credits: 396 },
2629
- { identifier: "video-audit:auto:180s", credits: 477 },
2630
- { identifier: "video-audit:auto:360s", credits: 1180 },
2631
- { identifier: "video-audit:auto:600s", credits: 1924, note: "10-min ceiling" },
2667
+ { identifier: "video-audit:auto:180s", credits: 475 },
2668
+ { identifier: "video-audit:auto:360s", credits: 1178 },
2669
+ { identifier: "video-audit:auto:600s", credits: 1921, note: "10-min ceiling" },
2632
2670
  ],
2633
2671
  },
2634
2672
  }
@@ -3685,7 +3723,7 @@ export interface NormalizedVideoRequest {
3685
3723
  */
3686
3724
  export function normalizeVideoRequestParams(
3687
3725
  modelId: string,
3688
- input: { aspectRatio?: string; resolution?: string },
3726
+ input: { aspectRatio?: string; resolution?: string; draft?: boolean },
3689
3727
  ): NormalizedVideoRequest {
3690
3728
  const m = MODEL_CATALOG[modelId]
3691
3729
  // Seeded from the COERCED tokens, never the raw input: this function's own
@@ -3694,8 +3732,21 @@ export function normalizeVideoRequestParams(
3694
3732
  // `1080` or `[]` verbatim would break that promise at exactly the sites that
3695
3733
  // must agree on one value.
3696
3734
  const aspect = readOptionToken(input.aspectRatio)
3697
- const res = readOptionToken(input.resolution)
3735
+ const requestedRes = readOptionToken(input.resolution)
3736
+ // Seedance Draft renders at 480p only (the provider rejects anything else),
3737
+ // so a draft is PRICED and SENT at 480p whatever resolution came with it — an
3738
+ // agent, an import or a FieldMapping can pair `draft` with 720p, and the
3739
+ // reservation must not follow the stale value. An omitted resolution is a
3740
+ // fill, not a correction, so it reports nothing.
3741
+ const draft = input.draft === true && isSeedanceDraftCapable(modelId)
3742
+ const res = draft ? SEEDANCE_DRAFT_RESOLUTION : requestedRes
3698
3743
  const out: NormalizedVideoRequest = { aspectRatio: aspect, resolution: res, adjustments: [] }
3744
+ if (draft && requestedRes !== undefined && requestedRes.toLowerCase() !== SEEDANCE_DRAFT_RESOLUTION) {
3745
+ out.adjustments.push({
3746
+ field: "resolution", from: requestedRes, to: SEEDANCE_DRAFT_RESOLUTION,
3747
+ reason: `A Seedance draft renders at ${SEEDANCE_DRAFT_RESOLUTION} only — using "${SEEDANCE_DRAFT_RESOLUTION}" instead of "${requestedRes}". Finalize the draft to get the same take at 1080p.`,
3748
+ })
3749
+ }
3699
3750
  if (!m) return out
3700
3751
 
3701
3752
  if (m.aspectRatios?.length && aspect && !PASSTHROUGH_ASPECT_TOKENS.has(aspect.toLowerCase())) {
@@ -3829,6 +3880,16 @@ export function hasFeature(modelId: string, feature: string): boolean {
3829
3880
  return MODEL_CATALOG[modelId]?.features?.includes(feature) ?? false
3830
3881
  }
3831
3882
 
3883
+ /**
3884
+ * Whether a seed on this model does anything — false only for a catalog entry
3885
+ * that declares `noSeed`. An unknown or missing id answers true, so a surface
3886
+ * never hides a Seed field for a model it knows nothing about.
3887
+ */
3888
+ export function modelTakesSeed(modelId: string | undefined): boolean {
3889
+ if (!modelId) return true
3890
+ return MODEL_CATALOG[modelId]?.noSeed !== true
3891
+ }
3892
+
3832
3893
  /**
3833
3894
  * All ids in the catalog whose `features` includes the given flag. Used by
3834
3895
  * frontend to build PROVIDERS_WITH_END_FRAME / PROVIDERS_WITH_REFERENCES
@@ -1107,6 +1107,9 @@ export const VIDEO_UPSCALE_PROVIDERS = [
1107
1107
  "topaz",
1108
1108
  "veo-1080p",
1109
1109
  "veo-4k",
1110
+ // Seedance 2.5 Draft finalize: re-renders a Seedance 2.5 DRAFT (by its task
1111
+ // id) as the same take at 1080p. See seedance-draft.ts.
1112
+ "seedance-2-5-hd",
1110
1113
  ] as const
1111
1114
  export type VideoUpscaleProvider = typeof VIDEO_UPSCALE_PROVIDERS[number]
1112
1115
 
@@ -85,6 +85,7 @@ export const NODE_MAPPABLE_FIELDS: Readonly<Record<string, readonly string[]>> =
85
85
  "creature": ["creatureName", "description"],
86
86
  "location": ["locationName", "description"],
87
87
  "web-scrape": ["query", "url", "target"],
88
+ "site-capture": ["url"],
88
89
  "meta-ads-scrape": ["query", "pageUrls"],
89
90
  "instagram-scrape": ["targets"],
90
91
  // Content Recipe's material arrives on its `in` wire and the post link on
@@ -39,7 +39,7 @@ export function buildNodePresetExport(
39
39
  kind: NODE_PRESET_EXPORT_KIND,
40
40
  version: 1,
41
41
  exportedAt: exportedAtIso,
42
- presets: presets.map((p) => ({ ...p, data: extractPresetData(p.data) })),
42
+ presets: presets.map((p) => ({ ...p, data: extractPresetData(p.data, p.nodeType) })),
43
43
  }
44
44
  }
45
45
 
@@ -51,6 +51,6 @@ export function parseNodePresetExport(input: unknown): NodePresetExport {
51
51
  const parsed = envelopeSchema.parse(input)
52
52
  return {
53
53
  ...parsed,
54
- presets: parsed.presets.map((p) => ({ ...p, data: extractPresetData(p.data) })),
54
+ presets: parsed.presets.map((p) => ({ ...p, data: extractPresetData(p.data, p.nodeType) })),
55
55
  }
56
56
  }
@@ -1,4 +1,4 @@
1
- import { EXECUTION_DATA_KEYS } from "./node-runtime-keys.js"
1
+ import { isExecutionDataKey } from "./node-runtime-keys.js"
2
2
  import { COMPOSER_PLAN_FIELDS } from "./model-constants.js"
3
3
  import { PROMPT_PREFIX_KEY, PROMPT_SUFFIX_KEY } from "./prompt-affixes.js"
4
4
 
@@ -172,15 +172,17 @@ export const PRESET_EXCLUDED_KEYS: ReadonlySet<string> = new Set([
172
172
 
173
173
  /**
174
174
  * Capture a node's reusable configuration from its `data`: a shallow copy minus runtime/result
175
- * state (EXECUTION_DATA_KEYS) and graph/identity fields (PRESET_EXCLUDED_KEYS). Pure; never mutates
176
- * the input. Node-type-agnostic — the node type is stored alongside the result by the caller.
175
+ * state (`isExecutionDataKey`: the global keys, plus the node type's own when `nodeType` is given)
176
+ * and graph/identity fields (PRESET_EXCLUDED_KEYS). Pure; never mutates the input. The node type is
177
+ * stored alongside the result by the caller.
177
178
  */
178
179
  export function extractPresetData(
179
180
  data: Readonly<Record<string, unknown>>,
181
+ nodeType?: string,
180
182
  ): Record<string, unknown> {
181
183
  const out: Record<string, unknown> = {}
182
184
  for (const key of Object.keys(data)) {
183
- if (EXECUTION_DATA_KEYS.has(key)) continue
185
+ if (isExecutionDataKey(key, nodeType)) continue
184
186
  if (PRESET_EXCLUDED_KEYS.has(key)) continue
185
187
  out[key] = data[key]
186
188
  }
@@ -0,0 +1,78 @@
1
+ /**
2
+ * The REST route that runs one node type on its own: `POST /v1/<type>` by
3
+ * convention, or the route listed here.
4
+ *
5
+ * Part of the public API contract: `@nodaro/sdk`'s `nodes.run(type)` posts to
6
+ * the route this resolves, and the platform's workflow engine calls the same
7
+ * routes for the node types it runs over HTTP, so the two cannot disagree.
8
+ */
9
+ import { SOCIAL_POST_NODE_TYPES } from "./social-post.js"
10
+
11
+ const SOCIAL_PUBLISH_ROUTE = "/v1/social/publish"
12
+
13
+ /** Node types whose run route is NOT `POST /v1/<type>`. */
14
+ export const NODE_RUN_ROUTES: Readonly<Record<string, string>> = Object.freeze({
15
+ "generate-3d-scene": "/v1/3d-scene/generate",
16
+ "edit-3d-scene": "/v1/3d-scene/edit",
17
+ "ai-writer": "/v1/ai-writer/generate",
18
+ "llm-chat": "/v1/llm-chat/generate",
19
+ "video-composer": "/v1/scene-graph/generate",
20
+ "after-effects": "/v1/after-effects/generate",
21
+ "lottie-overlay": "/v1/lottie-overlay/generate",
22
+ "3d-title": "/v1/3d-title/generate",
23
+ "motion-graphics": "/v1/motion-graphics/generate",
24
+ "image-to-text": "/v1/image-to-text/describe",
25
+ "telegram-channel-feed": "/v1/telegram-channel/fetch",
26
+ "suno-generate": "/v1/suno/generate",
27
+ "suno-cover": "/v1/suno/cover",
28
+ "suno-extend": "/v1/suno/extend",
29
+ "suno-lyrics": "/v1/suno/lyrics",
30
+ "suno-separate": "/v1/suno/separate",
31
+ "suno-music-video": "/v1/suno/music-video",
32
+ "suno-mashup": "/v1/suno/mashup",
33
+ "suno-replace-section": "/v1/suno/replace-section",
34
+ "suno-style-boost": "/v1/suno/style-boost",
35
+ "suno-add-instrumental": "/v1/suno/add-instrumental",
36
+ "suno-add-vocals": "/v1/suno/add-vocals",
37
+ "suno-convert-wav": "/v1/suno/convert-wav",
38
+ "suno-upload-extend": "/v1/suno/upload-extend",
39
+ "suno-voice": "/v1/suno/voice/generate",
40
+ // The UGC nodes' routes, served by the Nodaro Cloud plugin.
41
+ "ugc-creator": "/v1/ugc/creator",
42
+ "ugc-script": "/v1/ugc/script",
43
+ "ugc-clips": "/v1/ugc/clips",
44
+ "ugc-clip": "/v1/ugc/clip",
45
+ "ugc-cards": "/v1/ugc/cards",
46
+ // UGC Finish: the finish job over a speech-first video's clips (an English video passes through with no call).
47
+ "ugc-finish-clips": "/v1/ugc/finish",
48
+ // Every social post node publishes through the one route; the body's
49
+ // `platform` says where (SOCIAL_POST_NODE_PLATFORM).
50
+ ...Object.fromEntries([...SOCIAL_POST_NODE_TYPES].map((type) => [type, SOCIAL_PUBLISH_ROUTE])),
51
+ })
52
+
53
+ /**
54
+ * Node types with no route that runs them on their own, each with what to run
55
+ * instead. They run inside the editor or a workflow, or through a sibling
56
+ * route that takes a differently shaped body.
57
+ */
58
+ export const NODE_TYPES_WITHOUT_RUN_ROUTE: Readonly<Record<string, string>> = Object.freeze({
59
+ "modify-image": 'run "image-to-image" instead (or "edit-image" for the nano-banana-edit provider)',
60
+ "upscale-image": 'run "edit-image" with an upscale provider instead (e.g. provider "recraft-upscale")',
61
+ "remove-background": 'run "edit-image" with provider "recraft-remove-bg" instead',
62
+ "image-to-video": 'run "generate-video" with a start frame instead',
63
+ composite: "it runs only as part of a workflow (client.workflows.run)",
64
+ "manual-edit": "it opens the in-browser editor and runs only inside a workflow",
65
+ "paint-mask": "it is painted in the editor and never runs; use its mask output inside a workflow",
66
+ scene: "it is run by the pipeline orchestrator (client.pipelines)",
67
+ "generative-pipeline": "it is run by the pipeline orchestrator (client.pipelines)",
68
+ })
69
+
70
+ /**
71
+ * The route that runs `type` on its own, or null when it has none (see
72
+ * {@link NODE_TYPES_WITHOUT_RUN_ROUTE} for what to run instead).
73
+ */
74
+ export function nodeRunRoute(type: string): string | null {
75
+ if (Object.prototype.hasOwnProperty.call(NODE_TYPES_WITHOUT_RUN_ROUTE, type)) return null
76
+ if (Object.prototype.hasOwnProperty.call(NODE_RUN_ROUTES, type)) return NODE_RUN_ROUTES[type]!
77
+ return `/v1/${encodeURIComponent(type)}`
78
+ }
@@ -9,7 +9,9 @@
9
9
  * - the node-preset extractor (presets must never capture runtime state)
10
10
  * - the backend defensive strip on preset writes
11
11
  *
12
- * When adding a new runtime/result field to a node's data, add its key here.
12
+ * When adding a new runtime/result field to a node's data, add its key here — or, when it is a
13
+ * generic name only one node type writes as a result, to that type's row of
14
+ * NODE_TYPE_EXECUTION_DATA_KEYS (read through `isExecutionDataKey` / `executionDataKeysOf`).
13
15
  */
14
16
  export const EXECUTION_DATA_KEYS: ReadonlySet<string> = new Set([
15
17
  "executionStatus",
@@ -150,8 +152,53 @@ export const EXECUTION_DATA_KEYS: ReadonlySet<string> = new Set([
150
152
  "resultsRunEndedAt",
151
153
  // A trigger's last run values (also in TRANSIENT_RUNTIME_KEYS: never saved).
152
154
  "__triggerData",
155
+ // A fan-out's notes rows, every fan-out's (row-aligned with __listResults):
156
+ // a row's warnings and length. A RESULT: persisted.
157
+ "__listResultMeta",
158
+ // A use-case node's continuation of one of its runs (Tighten Episode): set
159
+ // for ONE run only, as that run's input override (an app's or the editor's
160
+ // Render final, the canvas Continue's run option). Never saved — also in
161
+ // TRANSIENT_RUNTIME_KEYS — so a saved one can never turn a later plain run
162
+ // into a continuation of an old run.
163
+ "useCaseContinue",
153
164
  ])
154
165
 
166
+ /**
167
+ * Run results a node type writes under a GENERIC name — `quote`, `durationSec`,
168
+ * `candidates` — that are execution data on THAT type only. Another node may
169
+ * keep a setting under the same name; filing these globally would misfile it
170
+ * (out of undo, presets, templates and the copilot's view). Same lifecycle as
171
+ * the global results: persisted, and a run writing them is never an undo step.
172
+ *
173
+ * UGC video (Nodaro Cloud): the outputs a node hands on (`ugcOutputs`), UGC
174
+ * Creator's options of a draw and their note, UGC Clips' quote, and UGC Clip's
175
+ * warnings, length and Re-render marks (`rerenderPending`: the clips pressed for
176
+ * Re-render that no run has rendered yet — run bookkeeping; the press itself,
177
+ * `rerender`, is a choice).
178
+ */
179
+ export const NODE_TYPE_EXECUTION_DATA_KEYS: Readonly<Record<string, readonly string[]>> = {
180
+ "ugc-creator": ["ugcOutputs", "candidates", "optionFailed"],
181
+ "ugc-script": ["ugcOutputs"],
182
+ "ugc-clips": ["ugcOutputs", "quote"],
183
+ "ugc-clip": ["ugcOutputs", "clipWarnings", "durationSec", "rerenderPending"],
184
+ "ugc-cards": ["ugcOutputs"],
185
+ }
186
+
187
+ /** Is `key` execution data (run state or a run's result) on a node of `type`: global, or that type's own? */
188
+ export function isExecutionDataKey(key: string, type: string | null | undefined): boolean {
189
+ if (EXECUTION_DATA_KEYS.has(key)) return true
190
+ return typeof type === "string" && Object.hasOwn(NODE_TYPE_EXECUTION_DATA_KEYS, type) && NODE_TYPE_EXECUTION_DATA_KEYS[type]!.includes(key)
191
+ }
192
+
193
+ const EXECUTION_DATA_KEYS_BY_TYPE = new Map<string, ReadonlySet<string>>(
194
+ Object.entries(NODE_TYPE_EXECUTION_DATA_KEYS).map(([type, keys]) => [type, new Set([...EXECUTION_DATA_KEYS, ...keys])]),
195
+ )
196
+
197
+ /** Every execution-data key on a node of `type`, as one set: the global ones, plus the type's own. */
198
+ export function executionDataKeysOf(type: string | null | undefined): ReadonlySet<string> {
199
+ return (typeof type === "string" ? EXECUTION_DATA_KEYS_BY_TYPE.get(type) : undefined) ?? EXECUTION_DATA_KEYS
200
+ }
201
+
155
202
  /**
156
203
  * The PURE RUN-STATE subset of EXECUTION_DATA_KEYS: per-tick values (status
157
204
  * flips, job ids, progress counters, fan-out bookkeeping) that must NEITHER
@@ -195,6 +242,8 @@ export const TRANSIENT_RUNTIME_KEYS: ReadonlySet<string> = new Set([
195
242
  // body, a Telegram message and its post). Never saved: the workflow is not
196
243
  // where a message's content is kept — runs are, under their retention.
197
244
  "__triggerData",
245
+ // A use-case node's continuation: one run's override, never config (above).
246
+ "useCaseContinue",
198
247
  ])
199
248
 
200
249
  /**
@@ -74,6 +74,36 @@ export const AUTO_ASPECT_AT_RUN_NODE_TYPES: ReadonlySet<string> = new Set([
74
74
  "generate-image",
75
75
  ])
76
76
 
77
+ /**
78
+ * The image nodes whose aspect-ratio dropdown leads with the photo "Auto" tile
79
+ * (Generate Image and Modify Image: `withPhotoAuto` in the editor). On these an
80
+ * UNSET ratio IS Auto — the dropdown shows Auto for it, and both engines send
81
+ * "auto" for it — so what the editor shows is what the run asks for.
82
+ *
83
+ * It used to send nothing, which handed the ratio to the provider's own
84
+ * default (16:9 on nearly every model) while the panel displayed "Auto" or the
85
+ * model's first listed ratio: a 3:4 photo through Modify Image came back 16:9
86
+ * (#2009). "auto" then resolves exactly as a chosen Auto does — natively on a
87
+ * model that lists it, else to the model's ratio nearest the photo, else (no
88
+ * photo) the model's first listed ratio.
89
+ */
90
+ export const PHOTO_AUTO_ASPECT_NODE_TYPES: ReadonlySet<string> = new Set([
91
+ "generate-image",
92
+ "modify-image",
93
+ ])
94
+
95
+ /**
96
+ * The aspect ratio a node asks for: its stored value, or "auto" when it is
97
+ * unset on a photo-Auto node (`PHOTO_AUTO_ASPECT_NODE_TYPES`). Every other node
98
+ * type gets its value back unchanged (undefined stays undefined).
99
+ */
100
+ export function nodeAspectRatio(nodeType: "generate-image" | "modify-image", aspectRatio: unknown): string
101
+ export function nodeAspectRatio(nodeType: string | undefined, aspectRatio: unknown): string | undefined
102
+ export function nodeAspectRatio(nodeType: string | undefined, aspectRatio: unknown): string | undefined {
103
+ if (typeof aspectRatio === "string" && aspectRatio.trim() !== "") return aspectRatio
104
+ return nodeType !== undefined && PHOTO_AUTO_ASPECT_NODE_TYPES.has(nodeType) ? "auto" : undefined
105
+ }
106
+
77
107
  export interface NodeParamAdjustment extends ModelInputAdjustment {
78
108
  nodeId: string
79
109
  provider: string
@@ -158,6 +158,9 @@ const VIDEO_OUTPUT_TYPES = new Set([
158
158
  // audio-only cut still plays in a video element). Asserted in
159
159
  // producer-types.test.ts.
160
160
  ...RENDER_NODE_TYPE_IDS,
161
+ // Tighten Episode: a published app shows the episode as media, never as data
162
+ // (it is not a render, so RENDER_NODE_TYPE_IDS does not bring it).
163
+ "tighten-episode",
161
164
  ])
162
165
 
163
166
  const AUDIO_OUTPUT_TYPES = new Set([
@@ -172,6 +175,9 @@ const AUDIO_OUTPUT_TYPES = new Set([
172
175
  const TEXT_OUTPUT_TYPES = new Set([
173
176
  "generate-script", "ai-writer", "llm-chat", "transcribe", "image-to-text", "qa-check",
174
177
  "text-prompt",
178
+ // UGC Cards' output card is its Notes: a run hands it on as the node's text
179
+ // (`output.text`, `generatedText` on the canvas).
180
+ "ugc-cards",
175
181
  ])
176
182
 
177
183
  // ---------------------------------------------------------------------------
@@ -412,6 +418,8 @@ export const INPUT_FIELD_MAP: Record<string, InputFieldSchema> = {
412
418
  */
413
419
  export const INPUT_FIELD_EXTRA_KEYS: Readonly<Record<string, readonly InputFieldSchema[]>> = {
414
420
  "ugc-creator": [{ key: "gender", type: "select" }, { key: "photoUrl", type: "image-url" }],
421
+ // The script's language: changes together with UGC_OVERRIDABLE_FIELDS["ugc-script"] and UgcScriptData.language.
422
+ "ugc-script": [{ key: "language", type: "select" }],
415
423
  }
416
424
 
417
425
  /** The extra override fields of a node type (none for most types). */