@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,1073 @@
1
+ 'use strict';
2
+
3
+ // src/llm-models.ts
4
+ var LLM_REASONING_EFFORTS = ["none", "low", "medium", "high", "xhigh", "max"];
5
+ var EFFORT_TIER_BUMP = /* @__PURE__ */ new Set(["xhigh", "max"]);
6
+ var EFFORT_RANK = { none: 0, low: 1, medium: 2, high: 3, xhigh: 4, max: 5 };
7
+ var REASONING_OUTPUT_FLOOR = 32768;
8
+ function reasoningOutputFloor(model) {
9
+ return model.reasoningOutputFloor ?? REASONING_OUTPUT_FLOOR;
10
+ }
11
+ var LLM_MODELS = [
12
+ {
13
+ id: "gemini-3-flash",
14
+ displayName: "Gemini 3 Flash",
15
+ desc: "Fast and cheap, good for simple tasks",
16
+ tier: "economy",
17
+ kieFormat: "chat-completions",
18
+ kieSlugOrModel: "gemini-3-flash",
19
+ vendor: "google",
20
+ structuredOutputMode: "kie-response-format",
21
+ supportsImages: true,
22
+ maxOutputTokens: 8192,
23
+ // KIE-first: no `preferDirect` — direct is the reliability fallback only.
24
+ // (Per-lane rates are deliberately NOT in this published package; see
25
+ // backend/src/lib/pricing/llm-cost.ts.)
26
+ directGeminiModel: "gemini-3-flash-preview",
27
+ // No `reasoningEfforts` at all on the KIE lane, but the vendor API accepts
28
+ // the full minimal→high ladder (`none` maps to Google's `minimal`).
29
+ directReasoningEfforts: ["none", "low", "medium", "high"],
30
+ // Reasons with no thinking param sent — Google's Gemini 3 default (dynamic
31
+ // thinking; `minimal` is its floor, never off), measured on 3.6 in #1588.
32
+ // Floored at the KIE-safe 8192, the same intersection as `maxOutputTokens`.
33
+ thinkingDefaultOn: true,
34
+ reasoningOutputFloor: 8192
35
+ },
36
+ {
37
+ id: "gemini-3.6-flash",
38
+ displayName: "Gemini 3.6 Flash",
39
+ // Demoted 2026-09-06 alongside 3.7: superlatives belong to the CURRENT top
40
+ // model of a family only, and 3.8 now holds that slot.
41
+ desc: "Fast Gemini, sharper reasoning",
42
+ tier: "economy",
43
+ kieFormat: "chat-completions",
44
+ // KIE serves Gemini 3.6 Flash on the OpenAI-compatible dialect under this
45
+ // slug (docs.kie.ai/market/gemini/gemini-3-6-flash-openai.md) — same
46
+ // chat-completions path shape as gemini-3-flash, different slug prefix.
47
+ kieSlugOrModel: "gemini-3-6-flash-openai",
48
+ vendor: "google",
49
+ structuredOutputMode: "kie-response-format",
50
+ supportsImages: true,
51
+ maxOutputTokens: 8192,
52
+ // KIE's 3.6 endpoint accepts `reasoning_effort: low | high` (thinking
53
+ // level) — exactly the chat-completions wire mapping deriveParams sends.
54
+ // Google's own API additionally accepts `minimal` and `medium` on this
55
+ // model; the set stays at the KIE-safe intersection because ONE field
56
+ // feeds both lanes and this model is KIE-first. Widen it only if/when
57
+ // `preferDirect` is set here.
58
+ reasoningEfforts: ["low", "high"],
59
+ // Google's own API additionally accepts `minimal` and `medium` here —
60
+ // live-verified 2026-07-28. Advanced mode unlocks them.
61
+ directReasoningEfforts: ["none", "low", "medium", "high"],
62
+ // KIE-first: this model backs 5 of the LLM_FEATURE_DEFAULTS plus the
63
+ // video-analysis fast tier, so it carries the highest call volume of any
64
+ // Gemini entry — the lane with the lower unit cost wins by default and
65
+ // direct is the reliability fallback only.
66
+ directGeminiModel: "gemini-3.6-flash",
67
+ // Reasons with NO thinking param sent — measured, issue #1588: a Generate
68
+ // Text node capped at 1,100 tokens fell back to the direct lane (KIE 500),
69
+ // spent ~1,060 of them reasoning, and returned 120 characters cut mid-URL.
70
+ // On the same input the KIE runs used ~500 output tokens in all, so only
71
+ // the fallback runs broke — every other run of a 5-minute schedule.
72
+ // Floored at 8192, NOT the default 32768: the floor rides the KIE endpoint
73
+ // too, and 8192 is all it is known to take (see `maxOutputTokens`).
74
+ thinkingDefaultOn: true,
75
+ reasoningOutputFloor: 8192
76
+ },
77
+ {
78
+ id: "gemini-3.7-flash",
79
+ displayName: "Gemini 3.7 Flash",
80
+ // Demoted 2026-09-06 when 3.8 registered below: superlatives belong to the
81
+ // CURRENT top model of a family only (same rule the Opus entries follow) —
82
+ // `desc` renders in every picker, so leaving "Newest" on the older flash
83
+ // steers the A/B's traffic backwards.
84
+ desc: "Fast Gemini, agentic-tuned",
85
+ tier: "economy",
86
+ kieFormat: "chat-completions",
87
+ // KIE serves it on the OpenAI-compatible dialect under this slug
88
+ // (docs.kie.ai/market/gemini/gemini-3-7-flash-openai.md) — same
89
+ // chat-completions path shape as gemini-3.6-flash.
90
+ kieSlugOrModel: "gemini-3-7-flash-openai",
91
+ vendor: "google",
92
+ structuredOutputMode: "kie-response-format",
93
+ supportsImages: true,
94
+ // Google's own cap is 65,536, but the field feeds BOTH lanes and the KIE
95
+ // flash endpoints cap at 8192 (the measured 3.6 posture) — stay at the
96
+ // KIE-safe intersection, same reasoning as `reasoningEfforts` below.
97
+ maxOutputTokens: 8192,
98
+ // KIE's 3.7 endpoint enumerates reasoning_effort low | high (verified
99
+ // against its OpenAPI spec 2026-08-18), identical to 3.6.
100
+ reasoningEfforts: ["low", "high"],
101
+ // Assumed parity with 3.6 pending a live probe on the direct lane.
102
+ directReasoningEfforts: ["none", "low", "medium", "high"],
103
+ directGeminiModel: "gemini-3.7-flash",
104
+ // Gemini 3 default: reasons with no thinking param sent (measured on 3.6,
105
+ // #1588). KIE-safe floor, same intersection as `maxOutputTokens`.
106
+ thinkingDefaultOn: true,
107
+ reasoningOutputFloor: 8192
108
+ },
109
+ {
110
+ id: "gemini-3.8-flash",
111
+ displayName: "Gemini 3.8 Flash",
112
+ // Inherits "Newest" from 3.7 (demoted above). Deliberately does NOT name
113
+ // agentic video: that capability exists only on the direct Google lane
114
+ // (Interactions API, not wired here) and the modality caps below withhold
115
+ // video — a picker desc must not promise a lever this entry cannot expose.
116
+ desc: "Newest fast Gemini, agentic-tuned",
117
+ tier: "economy",
118
+ kieFormat: "chat-completions",
119
+ // KIE serves it on the OpenAI-compatible dialect under this slug
120
+ // (docs.kie.ai/market/gemini/gemini-3-8-flash-openai.md) — identical
121
+ // chat-completions path shape to gemini-3.7-flash / gemini-3.6-flash,
122
+ // different slug prefix.
123
+ kieSlugOrModel: "gemini-3-8-flash-openai",
124
+ vendor: "google",
125
+ // Live-verified 2026-09-06 on the KIE lane: `response_format: json_schema`
126
+ // is ENFORCED (the reply came back exact-schema valid, credits_consumed
127
+ // present) — not merely accepted-and-ignored.
128
+ structuredOutputMode: "kie-response-format",
129
+ supportsImages: true,
130
+ // 16384 here, NOT the 8192 its 3.6 / 3.7 siblings sit at. Those two stay at
131
+ // the KIE-safe intersection because nobody measured their endpoints past
132
+ // it; 3.8's WAS measured — live-verified 2026-09-06, `max_tokens: 20000`
133
+ // was honored for 14,892 completion tokens with finish_reason "stop" (no
134
+ // truncation), so the KIE lane is not the binding constraint. 16384 keeps
135
+ // it level with the rest of the registry's ceiling rather than at the cap.
136
+ maxOutputTokens: 16384,
137
+ // KIE's 3.8 endpoint enumerates reasoning_effort low | high (its doc enum),
138
+ // and usage carries completion_tokens_details.reasoning_tokens — same
139
+ // KIE-safe intersection as 3.6 / 3.7, because ONE field feeds both lanes
140
+ // and this model is KIE-first.
141
+ reasoningEfforts: ["low", "high"],
142
+ // Google's own API accepts the full minimal→high ladder here (`none` maps
143
+ // to `minimal`), same as 3.7. Advanced mode is what unlocks it.
144
+ directReasoningEfforts: ["none", "low", "medium", "high"],
145
+ // KIE-first (no `preferDirect`) — 3.7's posture exactly: the cheap lane
146
+ // serves the A/B, direct is Advanced mode + the reliability fallback.
147
+ directGeminiModel: "gemini-3.8-flash",
148
+ // Gemini 3 default: reasons with no thinking param sent (measured on 3.6,
149
+ // #1588). Floored at its own 16384, inside the 20000 its KIE endpoint was
150
+ // measured to honour.
151
+ thinkingDefaultOn: true,
152
+ reasoningOutputFloor: 16384
153
+ },
154
+ {
155
+ id: "claude-haiku-4.5",
156
+ displayName: "Claude Haiku 4.5",
157
+ // Demoted 2026-10-10 when claude-haiku-5.5 registered.
158
+ desc: "Previous Haiku, fast economy",
159
+ tier: "economy",
160
+ kieFormat: "messages",
161
+ kieSlugOrModel: "claude-haiku-4-5",
162
+ vendor: "anthropic",
163
+ structuredOutputMode: "anthropic-tool",
164
+ supportsImages: true,
165
+ maxOutputTokens: 8192,
166
+ directFallbackModel: "claude-haiku-4-5-20251001",
167
+ // KIE-first since 2026-10-08 (a call is priced on the lane it runs on);
168
+ // KIE served it plain and with a tool on its streaming wire that day.
169
+ preferKie: true
170
+ },
171
+ {
172
+ id: "claude-haiku-5.5",
173
+ displayName: "Claude Haiku 5.5",
174
+ desc: "Latest Haiku, fast and low-cost with reasoning",
175
+ tier: "economy",
176
+ kieFormat: "messages",
177
+ // KIE plain id on the Claude-native messages dialect
178
+ // (docs.kie.ai/market/claude/claude-haiku-5-5.md). Live-probed 2026-10-10
179
+ // on the streaming wire: plain, system prompt, base64 image, a forced tool
180
+ // and an auto + strict tool (both came back as a real tool_use block), and
181
+ // `max_tokens: 32768` were all served.
182
+ kieSlugOrModel: "claude-haiku-5-5",
183
+ vendor: "anthropic",
184
+ structuredOutputMode: "anthropic-tool",
185
+ // NO `supportsForcedToolChoice: false`, unlike Sonnet 5.5 / Opus 5.5: this
186
+ // model ACCEPTS a forced tool_choice (probed on Anthropic's API 2026-10-10).
187
+ // A forced call skips thinking (same usage with and without an effort), and
188
+ // an effort-bearing structured call is already sent the auto choice.
189
+ //
190
+ // A thinking block is valid only while everything before it is unchanged
191
+ // (vendor docs: the same history check the other 5.5 models run).
192
+ conversationBoundThinking: true,
193
+ supportsImages: true,
194
+ maxOutputTokens: 16384,
195
+ directFallbackModel: "claude-haiku-5-5",
196
+ // The first Haiku with effort levels. The vendor default is `medium`, where
197
+ // most of the family defaults to `high`.
198
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
199
+ // KIE ignores effort on this slug too — measured 2026-10-10 on a
200
+ // reasoning-heavy prompt: none / low / max / KIE's own `thinkingFlag` gave
201
+ // 2,076 / 1,886 / 2,223 / 1,927 output tokens and no thinking block, while
202
+ // Anthropic's API gave 2,059 at low and 28,097 at max. An effort call runs
203
+ // direct and bills as Advanced.
204
+ effortRequiresDirect: true,
205
+ // Anthropic 400s a non-default sampling value ("`temperature` is deprecated
206
+ // for this model", probed 2026-10-10); KIE's proxy accepted temperature: 0.2.
207
+ supportsTemperature: false,
208
+ preferKie: true,
209
+ // Adaptive thinking runs when no thinking param is sent (vendor default),
210
+ // on BOTH lanes: a no-effort KIE call spent ~2,000 output tokens on a
211
+ // ~350-token answer and returned no thinking block.
212
+ thinkingDefaultOn: true
213
+ },
214
+ {
215
+ id: "claude-sonnet-4.6",
216
+ displayName: "Claude Sonnet 4.6",
217
+ desc: "Balanced quality and speed",
218
+ tier: "standard",
219
+ kieFormat: "messages",
220
+ kieSlugOrModel: "claude-sonnet-4-6",
221
+ vendor: "anthropic",
222
+ structuredOutputMode: "anthropic-tool",
223
+ supportsImages: true,
224
+ maxOutputTokens: 16384,
225
+ directFallbackModel: "claude-sonnet-4-6",
226
+ // KIE-first since 2026-10-08 (a call is priced on the lane it runs on);
227
+ // KIE served it plain and with a tool on its streaming wire that day.
228
+ preferKie: true,
229
+ reasoningEfforts: ["low", "medium", "high", "max"],
230
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
231
+ effortRequiresDirect: true
232
+ },
233
+ {
234
+ id: "gpt-5.2",
235
+ displayName: "GPT-5.2",
236
+ desc: "Strong general purpose",
237
+ tier: "standard",
238
+ kieFormat: "chat-completions",
239
+ kieSlugOrModel: "gpt-5-2",
240
+ vendor: "openai",
241
+ supportsImages: true,
242
+ maxOutputTokens: 16384
243
+ },
244
+ {
245
+ id: "gemini-3.1-pro",
246
+ displayName: "Gemini 3.1 Pro",
247
+ desc: "Advanced reasoning, large context",
248
+ tier: "premium",
249
+ kieFormat: "chat-completions",
250
+ kieSlugOrModel: "gemini-3.1-pro",
251
+ vendor: "google",
252
+ structuredOutputMode: "kie-response-format",
253
+ supportsImages: true,
254
+ maxOutputTokens: 16384,
255
+ directGeminiModel: "gemini-3.1-pro-preview",
256
+ // Google documents low/medium/high for 3.1 Pro — no `minimal` tier, so
257
+ // this ladder is deliberately shorter than the flash models'.
258
+ directReasoningEfforts: ["low", "medium", "high"],
259
+ // NO `reasoningEfforts` (the proxied ladder) ON PURPOSE, not an omission.
260
+ // That endpoint accepts `reasoning_effort: low | high` and already DEFAULTS
261
+ // to "high", so leaving it unset gets its deepest setting and a ladder here
262
+ // would unlock nothing. The two lanes are NOT equivalent at their maxima:
263
+ // verified 2026-07-29 on identical input, the proxy's ceiling produces
264
+ // roughly a quarter of the reasoning tokens that the direct lane's
265
+ // `thinkingLevel: HIGH` does, and it does not expose Google's deeper tiers
266
+ // at all. That difference is visible in fine-detail reading (small on-screen
267
+ // text such as a name badge), which is exactly what video-analysis casts
268
+ // identities from — so adding an entry here would silently move analysis to
269
+ // the shallower lane. Don't. Full comparison lives with the analysis engine.
270
+ // KIE-first since 2026-10-08 (decided: a call is priced on the lane it runs
271
+ // on, so the base premium price buys the KIE lane; the direct lane is
272
+ // Advanced mode, billed `premium-direct`). It was the one direct-first
273
+ // Gemini before. What the direct lane buys, now behind Advanced: real
274
+ // `thinkingLevel` control, native media ingestion, and a `responseJsonSchema`
275
+ // that honours `additionalProperties` (KIE's `response_format` silently DROPS
276
+ // record/map-shaped fields — see the z.record rule in backend/CLAUDE.md).
277
+ // Video-analysis is unaffected: it pins `requireLane: "direct"` itself.
278
+ // Reasons with no thinking param sent on both lanes — the proxied endpoint
279
+ // DEFAULTS to "high" (above), and the direct lane reasons harder still.
280
+ // Floored at its own 16384: its KIE fallback is not known to take more.
281
+ thinkingDefaultOn: true,
282
+ reasoningOutputFloor: 16384
283
+ },
284
+ {
285
+ id: "claude-opus-4.7",
286
+ displayName: "Claude Opus 4.7",
287
+ // Superlatives belong to the CURRENT top model only — `desc` renders in every
288
+ // model picker, so leaving "highest quality" on an older Opus steers
289
+ // quality-critical work backwards (all three Opus entries bill premium, so
290
+ // the mis-steer is invisible on the invoice).
291
+ desc: "Older Opus, complex tasks",
292
+ tier: "premium",
293
+ kieFormat: "messages",
294
+ kieSlugOrModel: "claude-opus-4-7",
295
+ vendor: "anthropic",
296
+ structuredOutputMode: "anthropic-tool",
297
+ supportsImages: true,
298
+ maxOutputTokens: 16384,
299
+ directFallbackModel: "claude-opus-4-7",
300
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
301
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
302
+ effortRequiresDirect: true,
303
+ supportsTemperature: false,
304
+ preferKie: true
305
+ },
306
+ {
307
+ id: "gpt-5.4",
308
+ displayName: "GPT-5.4",
309
+ // Demoted 2026-09-06: two GPT generations have shipped above it, so
310
+ // "Latest" steered the picker at the oldest premium GPT in the registry.
311
+ desc: "Older GPT, premium quality",
312
+ tier: "premium",
313
+ kieFormat: "responses",
314
+ kieSlugOrModel: "gpt-5-4",
315
+ vendor: "openai",
316
+ structuredOutputMode: "responses-json-schema",
317
+ supportsImages: true,
318
+ maxOutputTokens: 16384,
319
+ reasoningEfforts: ["low", "medium", "high"]
320
+ },
321
+ {
322
+ id: "gpt-5.5",
323
+ displayName: "GPT-5.5",
324
+ desc: "Previous flagship GPT, deep reasoning",
325
+ tier: "premium",
326
+ kieFormat: "responses",
327
+ kieSlugOrModel: "gpt-5-5",
328
+ vendor: "openai",
329
+ structuredOutputMode: "responses-json-schema",
330
+ supportsImages: true,
331
+ maxOutputTokens: 16384,
332
+ reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
333
+ supportsTemperature: false
334
+ },
335
+ {
336
+ id: "gpt-5.6-luna",
337
+ displayName: "GPT-5.6 Luna",
338
+ desc: "Fastest GPT-5.6, high-volume workloads",
339
+ tier: "economy",
340
+ kieFormat: "responses",
341
+ kieSlugOrModel: "gpt-5-6-luna",
342
+ vendor: "openai",
343
+ structuredOutputMode: "responses-json-schema",
344
+ supportsImages: true,
345
+ maxOutputTokens: 16384,
346
+ reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
347
+ supportsTemperature: false
348
+ },
349
+ {
350
+ id: "gpt-5.6-terra",
351
+ displayName: "GPT-5.6 Terra",
352
+ desc: "Balanced GPT-5.6 for production work",
353
+ tier: "standard",
354
+ kieFormat: "responses",
355
+ kieSlugOrModel: "gpt-5-6-terra",
356
+ vendor: "openai",
357
+ structuredOutputMode: "responses-json-schema",
358
+ supportsImages: true,
359
+ maxOutputTokens: 16384,
360
+ reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
361
+ supportsTemperature: false
362
+ },
363
+ {
364
+ id: "gpt-5.6-sol",
365
+ displayName: "GPT-5.6 Sol",
366
+ // Demoted 2026-09-06 when gpt-6-astra registered below — "Flagship /
367
+ // deepest" is the current top GPT's copy only. Worded to stay distinct
368
+ // from gpt-5.5's "Previous flagship GPT, deep reasoning": all three read
369
+ // premium on the invoice, so a stale superlative mis-steers silently.
370
+ desc: "Previous flagship GPT-5.6, deep reasoning",
371
+ tier: "premium",
372
+ kieFormat: "responses",
373
+ kieSlugOrModel: "gpt-5-6-sol",
374
+ vendor: "openai",
375
+ structuredOutputMode: "responses-json-schema",
376
+ supportsImages: true,
377
+ maxOutputTokens: 16384,
378
+ reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
379
+ supportsTemperature: false,
380
+ // SERVED COLLAPSED, on the astra precedent (2026-09-17). The 2026-07-14
381
+ // verification that KIE's non-stream responses endpoint serves the GPT-5.6
382
+ // family reliably no longer holds: a live call — a recast continuity
383
+ // review, ~3k tokens, `reasoning.effort: high`, `text.format: json_schema`
384
+ // — came back `500 {"error":{"type":"server_error"}}` / "Server exception,
385
+ // please try again later". Same endpoint family, same dialect and the same
386
+ // signature astra was measured on (12 calls: non-stream 2/6, streaming
387
+ // 5/6; a schema-less non-stream call 500'd too, so the lane is the trigger
388
+ // and not the schema). ONE sighting here rather than a fresh 12-call probe
389
+ // — the precedent is strong and the flag is cheap to reverse.
390
+ //
391
+ // THE COST: SSE does not reliably carry `credits_consumed`, so this model's
392
+ // provider cost becomes the rate-table estimate instead of the billed
393
+ // figure. That is the price of a lane that answers, and it is the same
394
+ // trade astra already makes.
395
+ kieCollapseStream: true
396
+ },
397
+ {
398
+ id: "gpt-6-astra",
399
+ displayName: "GPT-6 Astra",
400
+ desc: "Flagship GPT-6, deepest reasoning",
401
+ tier: "premium",
402
+ kieFormat: "responses",
403
+ // KIE serves GPT-6 on the responses dialect under the OpenAI family path —
404
+ // codex/v1/responses, which llm-client DERIVES from `vendor` (the same
405
+ // derivation that keeps Grok on grok/v1/responses). So this field is the
406
+ // body `model` only, not a path segment. Live-verified 2026-09-06 on the
407
+ // streaming path (array `input`, SSE deltas), which is the ONLY path we
408
+ // serve it on — see `kieCollapseStream` below. The non-stream reply does
409
+ // carry `credits_consumed` (and cached_tokens/cache_write_tokens in usage)
410
+ // on the ~1 call in 3 that returns one, but we no longer take that reply,
411
+ // so provider cost here is the rate-table estimate.
412
+ // KIE's codex/v1/responses injects its own Codex-agent `instructions`
413
+ // prompt ABOVE the caller's `developer` message — observed in the
414
+ // 2026-07-14 live probe of that endpoint, and unchanged for GPT-6. Budget
415
+ // for it when a developer message has to dominate.
416
+ kieSlugOrModel: "gpt-6-astra",
417
+ vendor: "openai",
418
+ // Live-verified 2026-09-06: `text.format: json_schema` is passed through
419
+ // and ENFORCED — the server echoed `strict: true` and returned
420
+ // schema-valid JSON.
421
+ structuredOutputMode: "responses-json-schema",
422
+ // text + image + file inputs per KIE's doc. No video/audio — see the
423
+ // image-only LLM_MODALITY_CAPS row below.
424
+ supportsImages: true,
425
+ maxOutputTokens: 16384,
426
+ // KIE's documented enum for this endpoint. No `none` on purpose: the
427
+ // endpoint reasons unconditionally (see thinkingDefaultOn below), so a
428
+ // "none" level would be a lie the wire silently overrides.
429
+ reasoningEfforts: ["low", "medium", "high", "xhigh"],
430
+ // Live-probed 2026-09-06: `temperature: 0.2` was sent and the request echo
431
+ // stayed at 1.0 — silently IGNORED, so never send it. Same treatment as the
432
+ // GPT-5.6 family and grok-4.6.
433
+ supportsTemperature: false,
434
+ // With NO reasoning param sent, the server echoed effort "medium" — it
435
+ // reasons by default (2026-09-06), so reasoning tokens share `max_tokens`
436
+ // on EVERY call, not just effort-bearing ones. Consumers must floor output
437
+ // headroom off this flag or a premium answer truncates into a paid-for
438
+ // empty reply.
439
+ thinkingDefaultOn: true,
440
+ // Measured 2026-09-06, 12 identical requests (developer + user message,
441
+ // reasoning.effort low, text.format json_schema): `stream: false`
442
+ // succeeded 2/6 in 4–5 s and 500'd 4/6 with
443
+ // {"error":{"type":"server_error"}} after 34, 34, 35 and 64 s, while the
444
+ // same body with `stream: true` succeeded 5/6 in the same 4–5 s. An
445
+ // earlier non-stream probe timed out at 90 s with 0 bytes, and a
446
+ // non-stream call WITHOUT a schema 500'd after 65 s — the schema is not
447
+ // the trigger, the non-stream lane is. The very same endpoint serves
448
+ // gpt-5.4/5.5/5.6 non-stream reliably (live-verified 2026-07-14), which is
449
+ // why this is per-model and not a lane-wide flag.
450
+ kieCollapseStream: true
451
+ },
452
+ // ── GPT-6 Luna / Sol / 6.1 Sol ────────────────────────────────────────────
453
+ // Same KIE endpoint and dialect as gpt-6-astra (codex/v1/responses; the doc
454
+ // pages differ only in the model name). Live-probed 2026-10-08, per model:
455
+ // `text.format` json_schema ENFORCED (echo `strict: true`, schema-valid
456
+ // reply), `temperature: 0.2` echoed back as 1 → silently ignored, no
457
+ // reasoning param → echo "medium" (reasons by default), and data-URI vision.
458
+ // Unlike astra, the NON-stream lane served them reliably — luna 10/10 and sol
459
+ // 10/10, 6.1 sol 8/8 at levels other than `none` (incl. 4 long structured
460
+ // calls each, 500–1,500 output tokens) — so none of them is collapsed:
461
+ // `credits_consumed` stays the real provider charge.
462
+ // Their ladder is WIDER than astra's doc-enum one: `none` and `max` were each
463
+ // sent and echoed back by the endpoint (6.1 sol excepted below).
464
+ {
465
+ id: "gpt-6-luna",
466
+ displayName: "GPT-6 Luna",
467
+ desc: "Fastest GPT-6, high-volume workloads",
468
+ tier: "economy",
469
+ kieFormat: "responses",
470
+ kieSlugOrModel: "gpt-6-luna",
471
+ vendor: "openai",
472
+ structuredOutputMode: "responses-json-schema",
473
+ supportsImages: true,
474
+ maxOutputTokens: 16384,
475
+ reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
476
+ supportsTemperature: false,
477
+ thinkingDefaultOn: true
478
+ },
479
+ {
480
+ id: "gpt-6-sol",
481
+ displayName: "GPT-6 Sol",
482
+ desc: "Strong GPT-6, deep reasoning at lower cost",
483
+ // Premium by decision (2026-10-08), not by unit cost — "Sol" is the
484
+ // deep-reasoning rung of the family, and gpt-5.6-sol bills premium too.
485
+ tier: "premium",
486
+ kieFormat: "responses",
487
+ kieSlugOrModel: "gpt-6-sol",
488
+ vendor: "openai",
489
+ structuredOutputMode: "responses-json-schema",
490
+ supportsImages: true,
491
+ maxOutputTokens: 16384,
492
+ reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
493
+ supportsTemperature: false,
494
+ thinkingDefaultOn: true
495
+ },
496
+ {
497
+ id: "gpt-6.1-sol",
498
+ displayName: "GPT-6.1 Sol",
499
+ // Measured slow: 30–76 s for 500–1,100 output tokens (2026-10-08), roughly
500
+ // twice gpt-6-sol on the same request — say so where the picker shows it.
501
+ desc: "Newest GPT-6 Sol, thorough but slower",
502
+ tier: "premium",
503
+ kieFormat: "responses",
504
+ kieSlugOrModel: "gpt-6-1-sol",
505
+ vendor: "openai",
506
+ structuredOutputMode: "responses-json-schema",
507
+ supportsImages: true,
508
+ maxOutputTokens: 16384,
509
+ // NO `none`: every probe at `reasoning.effort: none` failed (502, a 120 s
510
+ // timeout, 502, 429 — 0/4, 2026-10-08) while every other level answered,
511
+ // and the same request at `none` succeeded on luna and sol. Clamping maps a
512
+ // `none` request to nothing sent (Auto) rather than to a level that fails.
513
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
514
+ supportsTemperature: false,
515
+ thinkingDefaultOn: true
516
+ },
517
+ {
518
+ id: "grok-4.6",
519
+ displayName: "Grok 4.6",
520
+ // Demoted 2026-10-08 when grok-4.7 registered — the flagship copy moved up.
521
+ desc: "Previous Grok, strong reasoning",
522
+ tier: "standard",
523
+ kieFormat: "responses",
524
+ // KIE serves Grok on the responses dialect under its own family path —
525
+ // grok/v1/responses, NOT codex/v1/responses (llm-client derives the path
526
+ // from `vendor`). Live-verified end-to-end 2026-08-18: array `input`,
527
+ // `developer` system role, `input_image` URL vision, `text.format`
528
+ // json_schema enforcement, SSE `response.output_text.delta` stream, and
529
+ // `credits_consumed` actual-cost capture. (grok-4.5 was deferred 2026-07-13
530
+ // because none of this was live; 4.6 is its activation.)
531
+ kieSlugOrModel: "grok-4-6",
532
+ vendor: "xai",
533
+ structuredOutputMode: "responses-json-schema",
534
+ supportsImages: true,
535
+ maxOutputTokens: 16384,
536
+ // KIE's documented enum, each level live-verified (echoed back) 2026-08-18.
537
+ // No `none`: the endpoint reasons unconditionally (see thinkingDefaultOn).
538
+ reasoningEfforts: ["low", "medium", "high", "xhigh"],
539
+ // Live-probed 2026-08-18: `temperature` is silently IGNORED (request echo
540
+ // stays at the 0.7 default), so never send it — same treatment as GPT-5.5+.
541
+ supportsTemperature: false,
542
+ // Reasons with NO reasoning param sent (effort defaults to "low" server-side
543
+ // — a trivial probe spent 169 of 170 output tokens on reasoning), so every
544
+ // call needs output headroom, not just xhigh.
545
+ thinkingDefaultOn: true
546
+ },
547
+ {
548
+ id: "grok-4.7",
549
+ displayName: "Grok 4.7",
550
+ desc: "xAI flagship, strong reasoning",
551
+ tier: "standard",
552
+ kieFormat: "responses",
553
+ // Same grok/v1/responses family path and wire as grok-4.6 (the KIE doc
554
+ // pages differ only in the model name). Live-probed 2026-10-08: non-stream
555
+ // 6/6, `text.format` json_schema enforced, data-URI vision, SSE deltas.
556
+ kieSlugOrModel: "grok-4-7",
557
+ vendor: "xai",
558
+ structuredOutputMode: "responses-json-schema",
559
+ supportsImages: true,
560
+ maxOutputTokens: 16384,
561
+ // 4.6's ladder. `none` is NOT honoured: the endpoint echoed it back as
562
+ // "minimal" and still reasoned (33 of 35 output tokens), so offering it
563
+ // would promise a lever the wire overrides.
564
+ reasoningEfforts: ["low", "medium", "high", "xhigh"],
565
+ // `temperature: 0.2` → echo stayed at the 0.7 default: ignored.
566
+ supportsTemperature: false,
567
+ // "Capital of France" with no reasoning param spent 310 of 311 output
568
+ // tokens reasoning.
569
+ thinkingDefaultOn: true
570
+ },
571
+ {
572
+ id: "claude-sonnet-5",
573
+ displayName: "Claude Sonnet 5",
574
+ // Demoted 2026-10-08 when claude-sonnet-5.5 registered.
575
+ desc: "Previous Sonnet, near-Opus quality",
576
+ tier: "standard",
577
+ kieFormat: "messages",
578
+ kieSlugOrModel: "claude-sonnet-5",
579
+ vendor: "anthropic",
580
+ structuredOutputMode: "anthropic-tool",
581
+ supportsImages: true,
582
+ maxOutputTokens: 16384,
583
+ directFallbackModel: "claude-sonnet-5",
584
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
585
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
586
+ effortRequiresDirect: true,
587
+ supportsTemperature: false,
588
+ preferKie: true
589
+ },
590
+ {
591
+ id: "claude-sonnet-5.5",
592
+ displayName: "Claude Sonnet 5.5",
593
+ desc: "Latest Sonnet, near-Opus quality at Sonnet cost",
594
+ tier: "standard",
595
+ kieFormat: "messages",
596
+ // KIE serves it on the Claude-native messages dialect under its plain id
597
+ // (docs.kie.ai/market/claude/claude-sonnet-5-5.md — the page is
598
+ // claude-opus-5's with the model name swapped). Live-probed 2026-10-08 on
599
+ // the streaming wire: plain, effort, and forced/auto+strict tool calls all
600
+ // answered.
601
+ kieSlugOrModel: "claude-sonnet-5-5",
602
+ vendor: "anthropic",
603
+ structuredOutputMode: "anthropic-tool",
604
+ // Anthropic 400s a forced tool_choice on this model. KIE's proxy happened
605
+ // to accept one in the probe, but the direct lane is where every
606
+ // effort-bearing and every streamed structured call goes.
607
+ supportsForcedToolChoice: false,
608
+ conversationBoundThinking: true,
609
+ supportsImages: true,
610
+ maxOutputTokens: 16384,
611
+ directFallbackModel: "claude-sonnet-5-5",
612
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
613
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
614
+ effortRequiresDirect: true,
615
+ // Anthropic rejects non-default sampling values on this model (KIE's proxy
616
+ // accepted temperature: 0.2 in the probe; the direct lane is the contract).
617
+ supportsTemperature: false,
618
+ preferKie: true,
619
+ // Adaptive thinking runs when no thinking param is sent (vendor default).
620
+ thinkingDefaultOn: true
621
+ },
622
+ {
623
+ id: "claude-opus-4.8",
624
+ displayName: "Claude Opus 4.8",
625
+ desc: "Previous-gen Opus, long-horizon work",
626
+ tier: "premium",
627
+ kieFormat: "messages",
628
+ kieSlugOrModel: "claude-opus-4-8",
629
+ vendor: "anthropic",
630
+ structuredOutputMode: "anthropic-tool",
631
+ supportsImages: true,
632
+ maxOutputTokens: 16384,
633
+ directFallbackModel: "claude-opus-4-8",
634
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
635
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
636
+ effortRequiresDirect: true,
637
+ supportsTemperature: false,
638
+ preferKie: true
639
+ },
640
+ {
641
+ id: "claude-opus-5",
642
+ displayName: "Claude Opus 5",
643
+ // Demoted 2026-10-08 when claude-opus-5.5 registered.
644
+ desc: "Previous Opus, deep agentic reasoning",
645
+ tier: "premium",
646
+ kieFormat: "messages",
647
+ // KIE serves Opus 5 on the Claude-native messages dialect under the plain
648
+ // id (docs.kie.ai/market/claude/claude-opus-5.md) — same path shape as
649
+ // claude-opus-4-8 / claude-fable-5.
650
+ kieSlugOrModel: "claude-opus-5",
651
+ vendor: "anthropic",
652
+ structuredOutputMode: "anthropic-tool",
653
+ supportsImages: true,
654
+ maxOutputTokens: 16384,
655
+ directFallbackModel: "claude-opus-5",
656
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
657
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
658
+ effortRequiresDirect: true,
659
+ supportsTemperature: false,
660
+ preferKie: true,
661
+ // Opus 5 reasons with NO thinking param sent (vendor default flipped from
662
+ // Opus 4.8/4.7) — so every call needs output headroom, not just xhigh/max.
663
+ thinkingDefaultOn: true
664
+ },
665
+ {
666
+ id: "claude-opus-5.5",
667
+ displayName: "Claude Opus 5.5",
668
+ // Positioned as Fable-class (decided 2026-10-08: offered wherever Fable is).
669
+ desc: "Latest Opus, frontier-class reasoning",
670
+ tier: "premium",
671
+ kieFormat: "messages",
672
+ // KIE plain id on the messages dialect (docs.kie.ai/market/claude/
673
+ // claude-opus-5-5 — claude-opus-5's page with the name swapped).
674
+ // Live-probed 2026-10-08 on the streaming wire (plain + effort); the KIE
675
+ // Claude lane was erroring for claude-opus-5 too during the tool probes.
676
+ kieSlugOrModel: "claude-opus-5-5",
677
+ vendor: "anthropic",
678
+ structuredOutputMode: "anthropic-tool",
679
+ // Forced tool_choice is a 400 on this model (vendor docs) — see the field.
680
+ supportsForcedToolChoice: false,
681
+ conversationBoundThinking: true,
682
+ supportsImages: true,
683
+ maxOutputTokens: 16384,
684
+ directFallbackModel: "claude-opus-5-5",
685
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
686
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
687
+ effortRequiresDirect: true,
688
+ supportsTemperature: false,
689
+ preferKie: true,
690
+ // Thinking cannot be turned off on this model at all (`disabled` is a 400
691
+ // at every effort); with no effort sent it runs adaptive at the vendor's
692
+ // `medium` default. Nothing on our wire sends `disabled`.
693
+ thinkingDefaultOn: true
694
+ },
695
+ {
696
+ id: "claude-fable-5",
697
+ displayName: "Claude Fable 5",
698
+ desc: "Frontier Claude above Opus, hardest problems",
699
+ tier: "premium",
700
+ kieFormat: "messages",
701
+ kieSlugOrModel: "claude-fable-5",
702
+ vendor: "anthropic",
703
+ structuredOutputMode: "anthropic-tool",
704
+ supportsImages: true,
705
+ maxOutputTokens: 16384,
706
+ directFallbackModel: "claude-fable-5",
707
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
708
+ // KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
709
+ effortRequiresDirect: true,
710
+ supportsTemperature: false,
711
+ preferKie: true,
712
+ // Thinking is always on (vendor docs: `disabled` is not supported), so it
713
+ // shares the output cap on every call.
714
+ thinkingDefaultOn: true
715
+ },
716
+ // ── Moonshot / DeepSeek ───────────────────────────────────────────────────
717
+ // Both on KIE's THIRD responses family path, openai/v1/responses (llm-client
718
+ // derives it from `vendor`). KIE labels both pages "Chat only — not adapted
719
+ // for agent use": fine for single (structured) completions, so neither may
720
+ // back a tool-loop feature.
721
+ {
722
+ id: "kimi-k3",
723
+ displayName: "Kimi K3",
724
+ desc: "Moonshot flagship, 1M context, careful reasoning",
725
+ tier: "premium",
726
+ kieFormat: "responses",
727
+ kieSlugOrModel: "kimi-k3",
728
+ vendor: "moonshot",
729
+ // Live-probed 2026-10-08: `text.format` json_schema is ENFORCED — asked to
730
+ // answer "no json here" in plain prose, it returned schema-shaped JSON.
731
+ structuredOutputMode: "responses-json-schema",
732
+ supportsImages: true,
733
+ maxOutputTokens: 16384,
734
+ // KIE's documented enum. The endpoint accepted xhigh/none without error but
735
+ // never echoes an effort back, so nothing beyond the doc is verifiable.
736
+ reasoningEfforts: ["low", "medium", "high"],
737
+ // The doc lists no `temperature` field at all.
738
+ supportsTemperature: false,
739
+ // "Reasons by default" per KIE's doc (its usage reports no reasoning-token
740
+ // split, so this is the doc's word, not a measurement).
741
+ thinkingDefaultOn: true
742
+ },
743
+ {
744
+ id: "deepseek-v4.1-flash",
745
+ displayName: "DeepSeek V4.1 Flash",
746
+ desc: "Very cheap and fast, solid reasoning",
747
+ tier: "economy",
748
+ kieFormat: "responses",
749
+ kieSlugOrModel: "deepseek-v4-1-flash",
750
+ vendor: "deepseek",
751
+ // Live-probed 2026-10-08: json_schema echoed `strict: true` and enforced.
752
+ structuredOutputMode: "responses-json-schema",
753
+ supportsImages: true,
754
+ // ADVISORY ONLY: KIE documents `max_output_tokens` as "not supported … no
755
+ // effect" on this model (a probe sending it was accepted and ignored), so
756
+ // neither this cap nor the reasoning floor binds its output length, and the
757
+ // `incomplete` cap-stop signal cannot fire from our own cap.
758
+ maxOutputTokens: 16384,
759
+ // The endpoint takes none/minimal/low/medium/high/xhigh/max; each of none,
760
+ // low and xhigh was echoed back. `minimal` is not in our ladder.
761
+ reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
762
+ // Documented "not supported … no effect".
763
+ supportsTemperature: false,
764
+ thinkingDefaultOn: true
765
+ }
766
+ ];
767
+ var LLM_MODEL_IDS = LLM_MODELS.map((m) => m.id);
768
+ var STRUCTURED_VISION_MODELS = LLM_MODELS.filter(
769
+ (m) => m.supportsImages && m.structuredOutputMode != null
770
+ );
771
+ var LLM_VENDOR_ORDER = ["anthropic", "deepseek", "google", "moonshot", "openai", "xai"];
772
+ var LLM_VENDOR_LABELS = {
773
+ anthropic: "Anthropic",
774
+ deepseek: "DeepSeek",
775
+ google: "Google",
776
+ moonshot: "Moonshot AI",
777
+ openai: "OpenAI",
778
+ xai: "xAI"
779
+ };
780
+ var TIER_RANK = { economy: 0, standard: 1, premium: 2 };
781
+ function groupLlmModelsByVendor(models = LLM_MODELS) {
782
+ const groups = [];
783
+ for (const vendor of LLM_VENDOR_ORDER) {
784
+ const members = models.filter((m) => m.vendor === vendor).sort((a, b) => TIER_RANK[a.tier] - TIER_RANK[b.tier]);
785
+ if (members.length > 0) groups.push({ vendor, label: LLM_VENDOR_LABELS[vendor], models: members });
786
+ }
787
+ return groups;
788
+ }
789
+ function orderedLlmModels(models = LLM_MODELS) {
790
+ return groupLlmModelsByVendor(models).flatMap((g) => g.models);
791
+ }
792
+ function motionGraphicsFeature(engine) {
793
+ return engine === "lottie" ? "motion-graphics-lottie" : "motion-graphics";
794
+ }
795
+ var LLM_FEATURE_DEFAULTS = {
796
+ "ai-writer": "claude-sonnet-4.6",
797
+ "llm-chat": "gemini-3.6-flash",
798
+ "prompt-helper": "gemini-3.6-flash",
799
+ "scene-graph-ai": "claude-sonnet-4.6",
800
+ "after-effects": "claude-sonnet-4.6",
801
+ "motion-graphics": "claude-sonnet-4.6",
802
+ "motion-graphics-lottie": "claude-sonnet-4.6",
803
+ "lottie-overlay": "claude-sonnet-4.6",
804
+ "3d-title": "claude-sonnet-4.6",
805
+ "3d-scene": "claude-sonnet-4.6",
806
+ "image-to-text": "claude-sonnet-4.6",
807
+ // Economy on purpose: the analysis reads ONE frame + the copy per ad and
808
+ // runs once per returned ad — volume, not depth. Must stay an image-capable
809
+ // structured-output model (STRUCTURED_VISION_MODELS); a registry test pins it.
810
+ "meta-ads-analysis": "gemini-3.6-flash",
811
+ // Moved from claude-opus-5 on 2026-10-08 (decided: Opus 5.5 takes the Opus 5
812
+ // defaults). Still an image-capable structured model — a registry test pins it.
813
+ "describe-to-picker": "claude-opus-5.5",
814
+ "qa-check": "gemini-3.6-flash",
815
+ "generate-script": "gemini-3.6-flash",
816
+ "translate": "gemini-3.6-flash",
817
+ "image-critic": "claude-sonnet-4.6",
818
+ "pick-best-llm": "claude-sonnet-4.6",
819
+ "workflow-copilot": "claude-sonnet-5",
820
+ // Both economy on purpose — measured: ten ideas in Hebrew took ~1 min here
821
+ // and ~3.5 min (two calls) on claude-sonnet-4.6. The private plugin keeps
822
+ // the same two defaults for API callers that omit the model.
823
+ "content-recipe": "gemini-3.6-flash",
824
+ "content-ideas": "gemini-3.6-flash"
825
+ };
826
+ var LLM_FEATURE_DEFAULT_EFFORTS = {
827
+ // Decided 2026-10-09 from the picker bake-off v2: Opus 5.5 at `high` read
828
+ // 4/4 portraits with the most attributes per image, ~9 s a read. Its effort
829
+ // only takes effect on Anthropic's own API (`effortRequiresDirect`), so the
830
+ // default analysis runs direct — and bills as such (`llmServesDirect`).
831
+ "describe-to-picker": "high"
832
+ };
833
+ function defaultReasoningEffort(feature, modelId) {
834
+ const effort = LLM_FEATURE_DEFAULT_EFFORTS[feature];
835
+ if (!effort) return void 0;
836
+ if (!modelId) return effort;
837
+ return getLlmModel(modelId)?.id === LLM_FEATURE_DEFAULTS[feature] ? effort : void 0;
838
+ }
839
+ var LLM_MODALITY_CAPS = {
840
+ "gemini-3-flash": { image: true, video: true, audio: true },
841
+ "gemini-3.6-flash": { image: true, video: true, audio: true },
842
+ // gemini-3.7-flash is IMAGE-ONLY by DECISION, not omission: full video+audio
843
+ // caps would auto-enroll it in VIDEO_ANALYSIS_LLM_MODELS (derived below) and
844
+ // force a video-analysis tier + pricing decision that is deliberately
845
+ // deferred while the smart-family A/B routes this model internally (#747).
846
+ // Flip these two flags ONLY together with that VA-side decision.
847
+ "gemini-3.7-flash": { image: true, video: false, audio: false },
848
+ // gemini-3.8-flash is IMAGE-ONLY by DECISION, not omission — 3.7's rationale
849
+ // exactly: full video+audio caps would auto-enroll it in
850
+ // VIDEO_ANALYSIS_LLM_MODELS (derived below) and force a video-analysis tier +
851
+ // pricing decision that stays deferred until the 3.8-vs-3.7 analysis A/B
852
+ // concludes. Google's own 3.8 lane DOES understand video (agentic video, via
853
+ // the Interactions API we don't wire) — which is precisely why withholding it
854
+ // has to be a decision rather than a gap. Flip these two flags ONLY together
855
+ // with that VA-side decision.
856
+ "gemini-3.8-flash": { image: true, video: false, audio: false },
857
+ "gemini-3.1-pro": { image: true, video: true, audio: true },
858
+ "claude-haiku-4.5": { image: true, video: false, audio: false },
859
+ "claude-haiku-5.5": { image: true, video: false, audio: false },
860
+ "claude-sonnet-4.6": { image: true, video: false, audio: false },
861
+ "claude-opus-4.7": { image: true, video: false, audio: false },
862
+ "gpt-5.2": { image: true, video: false, audio: false },
863
+ "gpt-5.4": { image: true, video: false, audio: false },
864
+ "gpt-5.5": { image: true, video: false, audio: false },
865
+ "gpt-5.6-luna": { image: true, video: false, audio: false },
866
+ "gpt-5.6-terra": { image: true, video: false, audio: false },
867
+ "gpt-5.6-sol": { image: true, video: false, audio: false },
868
+ // KIE's GPT-6 doc lists text + image + file inputs only — no video, no audio.
869
+ "gpt-6-astra": { image: true, video: false, audio: false },
870
+ // Same KIE doc as astra: text + image + file inputs only.
871
+ "gpt-6-luna": { image: true, video: false, audio: false },
872
+ "gpt-6-sol": { image: true, video: false, audio: false },
873
+ "gpt-6.1-sol": { image: true, video: false, audio: false },
874
+ "grok-4.6": { image: true, video: false, audio: false },
875
+ "grok-4.7": { image: true, video: false, audio: false },
876
+ "claude-sonnet-5": { image: true, video: false, audio: false },
877
+ "claude-sonnet-5.5": { image: true, video: false, audio: false },
878
+ "claude-opus-4.8": { image: true, video: false, audio: false },
879
+ "claude-opus-5": { image: true, video: false, audio: false },
880
+ "claude-opus-5.5": { image: true, video: false, audio: false },
881
+ "claude-fable-5": { image: true, video: false, audio: false },
882
+ // KIE documents text + image input only for both.
883
+ "kimi-k3": { image: true, video: false, audio: false },
884
+ "deepseek-v4.1-flash": { image: true, video: false, audio: false }
885
+ };
886
+ function getLlmModalityCaps(modelId) {
887
+ if (!modelId) return { image: true, video: false, audio: false };
888
+ return LLM_MODALITY_CAPS[modelId] ?? { image: true, video: false, audio: false };
889
+ }
890
+ function dashAliasToCanonical(id) {
891
+ return id.replace(/-(\d+)-(\d+)$/, "-$1.$2");
892
+ }
893
+ function getLlmModel(id) {
894
+ const exact = LLM_MODELS.find((m) => m.id === id);
895
+ if (exact) return exact;
896
+ const canonical = dashAliasToCanonical(id);
897
+ if (canonical !== id) {
898
+ const aliased = LLM_MODELS.find((m) => m.id === canonical);
899
+ if (aliased) return aliased;
900
+ }
901
+ return LLM_MODELS.find(
902
+ (m) => m.kieSlugOrModel === id || m.directFallbackModel === id || m.directGeminiModel === id
903
+ );
904
+ }
905
+ function getLlmTier(id) {
906
+ return getLlmModel(id)?.tier ?? "standard";
907
+ }
908
+ function availableReasoningEfforts(modelId, advanced = false) {
909
+ const model = getLlmModel(modelId ?? "");
910
+ if (!model) return [];
911
+ if (advanced && supportsAdvancedMode(modelId)) {
912
+ return model.directReasoningEfforts ?? model.reasoningEfforts ?? [];
913
+ }
914
+ return model.reasoningEfforts ?? [];
915
+ }
916
+ function effectiveReasoningEffort(modelId, requested, advanced = false) {
917
+ if (!requested || !(requested in EFFORT_RANK)) return void 0;
918
+ const levels = availableReasoningEfforts(modelId, advanced);
919
+ if (!levels || levels.length === 0) return void 0;
920
+ const req = requested;
921
+ let best;
922
+ for (const l of levels) {
923
+ if (EFFORT_RANK[l] <= EFFORT_RANK[req] && (best === void 0 || EFFORT_RANK[l] > EFFORT_RANK[best])) best = l;
924
+ }
925
+ return best;
926
+ }
927
+ var LLM_ROUTE_DEFAULTS = {
928
+ "llm-chat": { temperature: 0.7, maxTokens: 8192 },
929
+ "ai-writer": { temperature: 0.7, maxTokens: 8192 },
930
+ "prompt-helper": { temperature: 0.7, maxTokens: 8192, structuredOutput: true },
931
+ "generate-script": { maxTokens: 16384, structuredOutput: true },
932
+ "qa-check": { maxTokens: 1024, structuredOutput: true },
933
+ "image-critic": { maxTokens: 1024, structuredOutput: true },
934
+ "image-to-text": { maxTokens: 1024 },
935
+ "describe-to-picker": { structuredOutput: true },
936
+ "scene-graph-ai": { temperature: 0.3, maxTokens: 4096, structuredOutput: true },
937
+ "after-effects": { temperature: 0.3, maxTokens: 2048, structuredOutput: true },
938
+ "lottie-overlay": { temperature: 0.3, maxTokens: 2048, structuredOutput: true },
939
+ "motion-graphics": { temperature: 0.3, maxTokens: 2048, structuredOutput: true },
940
+ "motion-graphics-lottie": { temperature: 0.3, maxTokens: 8192, structuredOutput: true },
941
+ "3d-title": { temperature: 0.4, maxTokens: 3072, structuredOutput: true },
942
+ // A 100-object plan with keyframe tracks is the biggest structured payload
943
+ // any composer feature emits — 3072 (3d-title's cap) truncates it mid-array.
944
+ "3d-scene": { temperature: 0.3, maxTokens: 8192, structuredOutput: true }
945
+ };
946
+ function llmRouteDefaults(feature) {
947
+ return feature && LLM_ROUTE_DEFAULTS[feature] || {};
948
+ }
949
+ function bumpTier(tier) {
950
+ if (tier === "economy") return "standard";
951
+ if (tier === "standard") return "premium";
952
+ return tier;
953
+ }
954
+ function supportsAdvancedMode(modelId) {
955
+ const model = modelId ? getLlmModel(modelId) : void 0;
956
+ return Boolean(model?.directGeminiModel || model?.directFallbackModel);
957
+ }
958
+ var ADVANCED_MODE_UNAVAILABLE_REASON = "Advanced mode is available on Gemini and Claude models \u2014 switch the model to enable it.";
959
+ function llmServesDirect(modelId, reasoningEffort, advancedMode) {
960
+ if (!supportsAdvancedMode(modelId)) return false;
961
+ if (advancedMode) return true;
962
+ return Boolean(
963
+ getLlmModel(modelId)?.effortRequiresDirect && effectiveReasoningEffort(modelId, reasoningEffort) !== void 0
964
+ );
965
+ }
966
+ var LLM_CREDIT_RUNGS = ["economy", "standard", "premium", "premium-direct"];
967
+ function llmCreditIdForRung(feature, rung) {
968
+ return rung === "standard" ? feature : `${feature}:${rung}`;
969
+ }
970
+ function llmTierCreditIds(feature) {
971
+ return LLM_CREDIT_RUNGS.map((rung) => llmCreditIdForRung(feature, rung));
972
+ }
973
+ function buildLlmCreditIdentifier(feature, modelId, reasoningEffort, advancedMode) {
974
+ if (!modelId) return feature;
975
+ let tier = getLlmTier(modelId);
976
+ const eff = effectiveReasoningEffort(modelId, reasoningEffort);
977
+ if (eff !== void 0 && EFFORT_TIER_BUMP.has(eff)) tier = bumpTier(tier);
978
+ const rung = llmServesDirect(modelId, reasoningEffort, advancedMode) ? bumpToDirectRung(tier) : tier;
979
+ return llmCreditIdForRung(feature, rung);
980
+ }
981
+ function bumpToDirectRung(tier) {
982
+ return tier === "premium" ? "premium-direct" : bumpTier(tier);
983
+ }
984
+ function resolveLlmCreditId(feature, body) {
985
+ const b = body;
986
+ return buildLlmCreditIdentifier(
987
+ feature,
988
+ b?.llmModel,
989
+ b?.reasoningEffort,
990
+ b?.advancedMode === true
991
+ );
992
+ }
993
+ var VIDEO_ANALYSIS_LLM_MODELS = LLM_MODELS.filter((m) => getLlmModalityCaps(m.id).video && getLlmModalityCaps(m.id).audio).map((m) => m.id);
994
+ var VIDEO_ANALYSIS_TIERS = { fast: "gemini-3-flash", pro: "gemini-3.1-pro" };
995
+ var VIDEO_ANALYSIS_LEGACY_MODELS = {
996
+ // Backed the fast tier from 2026-07 until 2026-07-29, when the economy tiers
997
+ // moved to the cheaper lane and the older, cheaper flash. It is now the engine
998
+ // behind the `smart` tier — but `smart` is a SENTINEL that never exposes a model
999
+ // id, so as far as this map is concerned it no longer backs a selectable tier and
1000
+ // belongs here: stored raw `llmModel` values keep resolving and keep pricing
1001
+ // under their own credit family.
1002
+ "gemini-3.6-flash": "fast"
1003
+ };
1004
+ var VIDEO_ANALYSIS_MIXED_TIERS = ["mixed", "mixed-fast", "smart"];
1005
+ var VIDEO_ANALYSIS_TIER_ORDER = ["smart", "pro", "fast", "mixed", "mixed-fast"];
1006
+ var DEFAULT_VIDEO_ANALYSIS_TIER = "pro";
1007
+ var DEFAULT_VIDEO_ANALYSIS_MODEL = VIDEO_ANALYSIS_TIERS[DEFAULT_VIDEO_ANALYSIS_TIER];
1008
+ var VIDEO_ANALYSIS_TIER_LABELS = {
1009
+ smart: "Smart",
1010
+ fast: "Fast",
1011
+ pro: "Pro",
1012
+ mixed: "Mixed",
1013
+ "mixed-fast": "Mixed (consistent)"
1014
+ };
1015
+ function isVideoAnalysisTier(v) {
1016
+ return VIDEO_ANALYSIS_TIER_ORDER.includes(v);
1017
+ }
1018
+ function isVideoAnalysisMixedTier(v) {
1019
+ return VIDEO_ANALYSIS_MIXED_TIERS.includes(v);
1020
+ }
1021
+ function resolveVideoAnalysisModel(input) {
1022
+ if (input && isVideoAnalysisMixedTier(input)) return input;
1023
+ if (input && Object.prototype.hasOwnProperty.call(VIDEO_ANALYSIS_TIERS, input)) {
1024
+ return VIDEO_ANALYSIS_TIERS[input];
1025
+ }
1026
+ if (input && VIDEO_ANALYSIS_LLM_MODELS.includes(input)) return input;
1027
+ return DEFAULT_VIDEO_ANALYSIS_MODEL;
1028
+ }
1029
+
1030
+ exports.ADVANCED_MODE_UNAVAILABLE_REASON = ADVANCED_MODE_UNAVAILABLE_REASON;
1031
+ exports.DEFAULT_VIDEO_ANALYSIS_MODEL = DEFAULT_VIDEO_ANALYSIS_MODEL;
1032
+ exports.DEFAULT_VIDEO_ANALYSIS_TIER = DEFAULT_VIDEO_ANALYSIS_TIER;
1033
+ exports.EFFORT_TIER_BUMP = EFFORT_TIER_BUMP;
1034
+ exports.LLM_CREDIT_RUNGS = LLM_CREDIT_RUNGS;
1035
+ exports.LLM_FEATURE_DEFAULTS = LLM_FEATURE_DEFAULTS;
1036
+ exports.LLM_FEATURE_DEFAULT_EFFORTS = LLM_FEATURE_DEFAULT_EFFORTS;
1037
+ exports.LLM_MODALITY_CAPS = LLM_MODALITY_CAPS;
1038
+ exports.LLM_MODELS = LLM_MODELS;
1039
+ exports.LLM_MODEL_IDS = LLM_MODEL_IDS;
1040
+ exports.LLM_REASONING_EFFORTS = LLM_REASONING_EFFORTS;
1041
+ exports.LLM_ROUTE_DEFAULTS = LLM_ROUTE_DEFAULTS;
1042
+ exports.LLM_VENDOR_LABELS = LLM_VENDOR_LABELS;
1043
+ exports.LLM_VENDOR_ORDER = LLM_VENDOR_ORDER;
1044
+ exports.REASONING_OUTPUT_FLOOR = REASONING_OUTPUT_FLOOR;
1045
+ exports.STRUCTURED_VISION_MODELS = STRUCTURED_VISION_MODELS;
1046
+ exports.VIDEO_ANALYSIS_LEGACY_MODELS = VIDEO_ANALYSIS_LEGACY_MODELS;
1047
+ exports.VIDEO_ANALYSIS_LLM_MODELS = VIDEO_ANALYSIS_LLM_MODELS;
1048
+ exports.VIDEO_ANALYSIS_MIXED_TIERS = VIDEO_ANALYSIS_MIXED_TIERS;
1049
+ exports.VIDEO_ANALYSIS_TIERS = VIDEO_ANALYSIS_TIERS;
1050
+ exports.VIDEO_ANALYSIS_TIER_LABELS = VIDEO_ANALYSIS_TIER_LABELS;
1051
+ exports.VIDEO_ANALYSIS_TIER_ORDER = VIDEO_ANALYSIS_TIER_ORDER;
1052
+ exports.availableReasoningEfforts = availableReasoningEfforts;
1053
+ exports.buildLlmCreditIdentifier = buildLlmCreditIdentifier;
1054
+ exports.defaultReasoningEffort = defaultReasoningEffort;
1055
+ exports.effectiveReasoningEffort = effectiveReasoningEffort;
1056
+ exports.getLlmModalityCaps = getLlmModalityCaps;
1057
+ exports.getLlmModel = getLlmModel;
1058
+ exports.getLlmTier = getLlmTier;
1059
+ exports.groupLlmModelsByVendor = groupLlmModelsByVendor;
1060
+ exports.isVideoAnalysisMixedTier = isVideoAnalysisMixedTier;
1061
+ exports.isVideoAnalysisTier = isVideoAnalysisTier;
1062
+ exports.llmCreditIdForRung = llmCreditIdForRung;
1063
+ exports.llmRouteDefaults = llmRouteDefaults;
1064
+ exports.llmServesDirect = llmServesDirect;
1065
+ exports.llmTierCreditIds = llmTierCreditIds;
1066
+ exports.motionGraphicsFeature = motionGraphicsFeature;
1067
+ exports.orderedLlmModels = orderedLlmModels;
1068
+ exports.reasoningOutputFloor = reasoningOutputFloor;
1069
+ exports.resolveLlmCreditId = resolveLlmCreditId;
1070
+ exports.resolveVideoAnalysisModel = resolveVideoAnalysisModel;
1071
+ exports.supportsAdvancedMode = supportsAdvancedMode;
1072
+ //# sourceMappingURL=chunk-ZRL2UFTH.cjs.map
1073
+ //# sourceMappingURL=chunk-ZRL2UFTH.cjs.map