@nodaro/shared 3.62.0 → 3.64.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 (264) hide show
  1. package/dist/{chunk-C7POAYFE.js → chunk-36VWLB4J.js} +3 -3
  2. package/dist/{chunk-C7POAYFE.js.map → chunk-36VWLB4J.js.map} +1 -1
  3. package/dist/{chunk-S24ZBUB4.js → chunk-3AYM47GW.js} +6 -32
  4. package/dist/chunk-3AYM47GW.js.map +1 -0
  5. package/dist/{chunk-YCXRSWCQ.js → chunk-3KTWYYCN.js} +8 -5
  6. package/dist/chunk-3KTWYYCN.js.map +1 -0
  7. package/dist/{chunk-ZES6EZC4.js → chunk-4IUE2JB7.js} +3 -3
  8. package/dist/{chunk-ZES6EZC4.js.map → chunk-4IUE2JB7.js.map} +1 -1
  9. package/dist/{chunk-MYJQELFN.cjs → chunk-5OBTGNUQ.cjs} +547 -29
  10. package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
  11. package/dist/{chunk-TWF2OSH4.cjs → chunk-67CMMTLN.cjs} +4 -4
  12. package/dist/{chunk-TWF2OSH4.cjs.map → chunk-67CMMTLN.cjs.map} +1 -1
  13. package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
  14. package/dist/chunk-6BRWPJPP.cjs.map +1 -0
  15. package/dist/{chunk-S5TMRJMX.js → chunk-6YIV37V7.js} +4 -4
  16. package/dist/{chunk-S5TMRJMX.js.map → chunk-6YIV37V7.js.map} +1 -1
  17. package/dist/{chunk-3M4BNKFJ.cjs → chunk-7AJGUI7L.cjs} +202 -16
  18. package/dist/chunk-7AJGUI7L.cjs.map +1 -0
  19. package/dist/{chunk-JZGZ26YB.js → chunk-7KQ6W5DS.js} +4 -4
  20. package/dist/{chunk-JZGZ26YB.js.map → chunk-7KQ6W5DS.js.map} +1 -1
  21. package/dist/{chunk-IWWVPR3W.cjs → chunk-ACZZHHFZ.cjs} +149 -34
  22. package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
  23. package/dist/{chunk-2W745U4A.cjs → chunk-AZNZ5WNZ.cjs} +42 -70
  24. package/dist/chunk-AZNZ5WNZ.cjs.map +1 -0
  25. package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
  26. package/dist/chunk-BQYCZLMF.js.map +1 -0
  27. package/dist/chunk-CHS2SIP6.cjs +504 -0
  28. package/dist/chunk-CHS2SIP6.cjs.map +1 -0
  29. package/dist/{chunk-CIPPPT7E.cjs → chunk-CHTZZRAL.cjs} +6 -6
  30. package/dist/{chunk-CIPPPT7E.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
  31. package/dist/{chunk-AOJ6B7K4.cjs → chunk-D4KWNDPH.cjs} +12 -12
  32. package/dist/chunk-D4KWNDPH.cjs.map +1 -0
  33. package/dist/{chunk-5YYN5X57.js → chunk-DZ4IOP3Q.js} +536 -30
  34. package/dist/chunk-DZ4IOP3Q.js.map +1 -0
  35. package/dist/{chunk-VACPZPUA.cjs → chunk-EXEVT6D2.cjs} +15 -5
  36. package/dist/chunk-EXEVT6D2.cjs.map +1 -0
  37. package/dist/{chunk-5M43XMRB.cjs → chunk-FHGRKQVZ.cjs} +8 -8
  38. package/dist/{chunk-5M43XMRB.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
  39. package/dist/{chunk-KJSRPHJ2.cjs → chunk-GTWUS6MQ.cjs} +165 -54
  40. package/dist/chunk-GTWUS6MQ.cjs.map +1 -0
  41. package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
  42. package/dist/chunk-H5KHWTAE.js.map +1 -0
  43. package/dist/{chunk-G3KVK7OU.cjs → chunk-HDPJNNMF.cjs} +21 -21
  44. package/dist/{chunk-G3KVK7OU.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
  45. package/dist/{chunk-3OYO3XCC.js → chunk-IYSOVS7O.js} +118 -24
  46. package/dist/chunk-IYSOVS7O.js.map +1 -0
  47. package/dist/{chunk-AFYTX4AI.cjs → chunk-J6B7J73J.cjs} +110 -50
  48. package/dist/chunk-J6B7J73J.cjs.map +1 -0
  49. package/dist/{chunk-I2RQB7VG.js → chunk-KB2SQAR3.js} +3 -3
  50. package/dist/{chunk-I2RQB7VG.js.map → chunk-KB2SQAR3.js.map} +1 -1
  51. package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
  52. package/dist/chunk-KSHAAPQF.cjs.map +1 -0
  53. package/dist/{chunk-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
  54. package/dist/chunk-NIAFR5EE.js.map +1 -0
  55. package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
  56. package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
  57. package/dist/{chunk-IDTKF5EX.cjs → chunk-O4RPXBDZ.cjs} +12 -8
  58. package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
  59. package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
  60. package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
  61. package/dist/{chunk-PTD6EDUU.js → chunk-OBOOHG3N.js} +13 -4
  62. package/dist/chunk-OBOOHG3N.js.map +1 -0
  63. package/dist/{chunk-2D5LQFV4.cjs → chunk-OOZW2MM6.cjs} +9 -9
  64. package/dist/{chunk-2D5LQFV4.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
  65. package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
  66. package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
  67. package/dist/{chunk-G4U3HW6W.js → chunk-PJJAZQVZ.js} +3 -3
  68. package/dist/{chunk-G4U3HW6W.js.map → chunk-PJJAZQVZ.js.map} +1 -1
  69. package/dist/{chunk-E2HZTGYX.js → chunk-Q2Y4JHF7.js} +7 -7
  70. package/dist/chunk-Q2Y4JHF7.js.map +1 -0
  71. package/dist/{chunk-FVII3KHN.js → chunk-QYU7J5EQ.js} +198 -17
  72. package/dist/chunk-QYU7J5EQ.js.map +1 -0
  73. package/dist/{chunk-JJNNM23P.js → chunk-S3UGLZSF.js} +3 -3
  74. package/dist/{chunk-JJNNM23P.js.map → chunk-S3UGLZSF.js.map} +1 -1
  75. package/dist/{chunk-CC4V2B7S.js → chunk-SHH2T4CR.js} +3 -3
  76. package/dist/{chunk-CC4V2B7S.js.map → chunk-SHH2T4CR.js.map} +1 -1
  77. package/dist/{chunk-4ZEFP2FQ.cjs → chunk-SPAHI7DY.cjs} +4 -4
  78. package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
  79. package/dist/{chunk-Y6X7UJSD.js → chunk-SXHHLZ22.js} +122 -15
  80. package/dist/chunk-SXHHLZ22.js.map +1 -0
  81. package/dist/{chunk-HRY7KGAE.cjs → chunk-T2OVDF2M.cjs} +6 -6
  82. package/dist/{chunk-HRY7KGAE.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
  83. package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
  84. package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
  85. package/dist/{chunk-NGKKNSK6.js → chunk-TPQJKS7D.js} +139 -16
  86. package/dist/chunk-TPQJKS7D.js.map +1 -0
  87. package/dist/{chunk-N7OUQK7E.cjs → chunk-TQW3R44P.cjs} +8 -8
  88. package/dist/{chunk-N7OUQK7E.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
  89. package/dist/{chunk-GSFB537T.js → chunk-TTGZ2L3O.js} +23 -4
  90. package/dist/chunk-TTGZ2L3O.js.map +1 -0
  91. package/dist/{chunk-SYWR5G3T.js → chunk-VPTA4Z7G.js} +54 -7
  92. package/dist/chunk-VPTA4Z7G.js.map +1 -0
  93. package/dist/{chunk-2HZGDZZN.cjs → chunk-VZ6TE23U.cjs} +6 -6
  94. package/dist/{chunk-2HZGDZZN.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
  95. package/dist/{chunk-TRVWMKNE.cjs → chunk-W6VJAUGM.cjs} +285 -64
  96. package/dist/chunk-W6VJAUGM.cjs.map +1 -0
  97. package/dist/{chunk-UDDVDQMF.js → chunk-W7KHHNZR.js} +235 -37
  98. package/dist/chunk-W7KHHNZR.js.map +1 -0
  99. package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
  100. package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
  101. package/dist/{chunk-6CSXMWL4.cjs → chunk-YQV53HRR.cjs} +27 -4
  102. package/dist/chunk-YQV53HRR.cjs.map +1 -0
  103. package/dist/{chunk-7FCTCWHD.js → chunk-ZI3QDUHO.js} +3 -3
  104. package/dist/{chunk-7FCTCWHD.js.map → chunk-ZI3QDUHO.js.map} +1 -1
  105. package/dist/entries/apps.cjs +43 -42
  106. package/dist/entries/apps.js +8 -7
  107. package/dist/entries/captions.cjs +38 -30
  108. package/dist/entries/captions.d.cts +47 -1
  109. package/dist/entries/captions.d.ts +47 -1
  110. package/dist/entries/captions.js +1 -1
  111. package/dist/entries/credits.cjs +354 -174
  112. package/dist/entries/credits.d.cts +378 -27
  113. package/dist/entries/credits.d.ts +378 -27
  114. package/dist/entries/credits.js +11 -11
  115. package/dist/entries/llm-models.cjs +77 -57
  116. package/dist/entries/llm-models.d.cts +108 -7
  117. package/dist/entries/llm-models.d.ts +108 -7
  118. package/dist/entries/llm-models.js +2 -2
  119. package/dist/entries/media.cjs +63 -63
  120. package/dist/entries/media.d.cts +8 -0
  121. package/dist/entries/media.d.ts +8 -0
  122. package/dist/entries/media.js +1 -1
  123. package/dist/entries/model-catalog.cjs +161 -105
  124. package/dist/entries/model-catalog.d.cts +109 -22
  125. package/dist/entries/model-catalog.d.ts +109 -22
  126. package/dist/entries/model-catalog.js +4 -4
  127. package/dist/entries/models.cjs +466 -322
  128. package/dist/entries/models.d.cts +71 -5
  129. package/dist/entries/models.d.ts +71 -5
  130. package/dist/entries/models.js +5 -5
  131. package/dist/entries/nodes.cjs +226 -209
  132. package/dist/entries/nodes.d.cts +66 -7
  133. package/dist/entries/nodes.d.ts +66 -7
  134. package/dist/entries/nodes.js +10 -9
  135. package/dist/entries/pipeline.cjs +156 -152
  136. package/dist/entries/pipeline.d.cts +14 -4
  137. package/dist/entries/pipeline.d.ts +14 -4
  138. package/dist/entries/pipeline.js +3 -3
  139. package/dist/entries/runtime-config.cjs +29 -29
  140. package/dist/entries/runtime-config.d.cts +10 -7
  141. package/dist/entries/runtime-config.d.ts +10 -7
  142. package/dist/entries/runtime-config.js +1 -1
  143. package/dist/entries/social.cjs +177 -177
  144. package/dist/entries/social.js +2 -2
  145. package/dist/entries/types.d.cts +8 -0
  146. package/dist/entries/types.d.ts +8 -0
  147. package/dist/entries/ugc.cjs +71 -71
  148. package/dist/entries/ugc.js +4 -4
  149. package/dist/entries/video.cjs +154 -150
  150. package/dist/entries/video.d.cts +11 -2
  151. package/dist/entries/video.d.ts +11 -2
  152. package/dist/entries/video.js +6 -6
  153. package/dist/entries/workflow.cjs +150 -150
  154. package/dist/entries/workflow.d.cts +1 -1
  155. package/dist/entries/workflow.d.ts +1 -1
  156. package/dist/entries/workflow.js +2 -2
  157. package/dist/index.cjs +2136 -1704
  158. package/dist/index.d.cts +10 -10
  159. package/dist/index.d.ts +10 -10
  160. package/dist/index.js +27 -27
  161. package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-Cf9fkEUp.d.cts} +45 -2
  162. package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-Cf9fkEUp.d.ts} +45 -2
  163. package/dist/{model-constants-B88p6XR0.d.ts → model-constants-BxjiWVQ9.d.ts} +215 -32
  164. package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-C_Nyft_i.d.cts} +215 -32
  165. package/package.json +1 -1
  166. package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
  167. package/src/__tests__/credit-identifiers.test.ts +29 -0
  168. package/src/__tests__/extend-providers.test.ts +359 -39
  169. package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
  170. package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
  171. package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
  172. package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
  173. package/src/__tests__/flux-3-klein.test.ts +203 -0
  174. package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
  175. package/src/__tests__/gvp-supported-providers.test.ts +27 -2
  176. package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
  177. package/src/__tests__/lip-sync-levers.test.ts +31 -0
  178. package/src/__tests__/llm-models.test.ts +139 -12
  179. package/src/__tests__/llm-price-key.test.ts +164 -1
  180. package/src/__tests__/model-makers.test.ts +3 -0
  181. package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
  182. package/src/__tests__/node-runtime-keys.test.ts +7 -0
  183. package/src/__tests__/normalize-node-params.test.ts +172 -1
  184. package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
  185. package/src/__tests__/prompt-length-limits.test.ts +4 -0
  186. package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
  187. package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
  188. package/src/__tests__/seedance-task-type.test.ts +13 -3
  189. package/src/__tests__/sequence-execution.test.ts +22 -1
  190. package/src/__tests__/suno-credit-type.test.ts +21 -2
  191. package/src/__tests__/transcribe-capabilities.test.ts +41 -2
  192. package/src/__tests__/transcribe-preflight.test.ts +50 -1
  193. package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
  194. package/src/__tests__/video-analysis-pricing.test.ts +10 -9
  195. package/src/__tests__/video-audio-capability.test.ts +35 -6
  196. package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
  197. package/src/__tests__/video-upscale-params.test.ts +62 -0
  198. package/src/caption-styles.ts +62 -0
  199. package/src/catalog-projection.ts +8 -0
  200. package/src/credit-estimators/add-captions-nemotron.ts +73 -0
  201. package/src/credit-estimators/index.ts +20 -0
  202. package/src/credit-estimators/nemotron-transcribe.ts +87 -0
  203. package/src/credit-identifiers.ts +351 -41
  204. package/src/entries/captions.ts +2 -0
  205. package/src/entries/credits.ts +37 -2
  206. package/src/entries/llm-models.ts +6 -0
  207. package/src/entries/model-catalog.ts +22 -0
  208. package/src/entries/models.ts +50 -0
  209. package/src/entries/nodes.ts +4 -0
  210. package/src/entries/pipeline.ts +1 -1
  211. package/src/entries/video.ts +1 -1
  212. package/src/flux-3-klein.ts +69 -0
  213. package/src/freecut-protocol.ts +8 -0
  214. package/src/input-image-pricing.ts +23 -6
  215. package/src/lip-sync-levers.ts +56 -0
  216. package/src/lip-sync-pricing.ts +91 -1
  217. package/src/llm-models.ts +305 -16
  218. package/src/model-catalog.ts +529 -28
  219. package/src/model-constants.ts +417 -41
  220. package/src/model-tree.ts +2 -1
  221. package/src/nodaro-video-upscale.ts +48 -0
  222. package/src/node-default-mappings.ts +6 -0
  223. package/src/node-runtime-keys.ts +3 -0
  224. package/src/normalize-node-params.ts +172 -3
  225. package/src/runtime-config/contract.ts +10 -7
  226. package/src/seedance-draft.ts +2 -1
  227. package/src/seedance-extend-rate.ts +116 -0
  228. package/src/sequence-execution.ts +24 -0
  229. package/src/transcribe-preflight.ts +81 -7
  230. package/src/video-analysis-pricing.ts +28 -15
  231. package/src/video-duration.ts +9 -0
  232. package/src/video-ui-defaults.ts +5 -3
  233. package/src/video-upscale-params.ts +67 -0
  234. package/dist/chunk-2W745U4A.cjs.map +0 -1
  235. package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
  236. package/dist/chunk-3OYO3XCC.js.map +0 -1
  237. package/dist/chunk-5YYN5X57.js.map +0 -1
  238. package/dist/chunk-6CSXMWL4.cjs.map +0 -1
  239. package/dist/chunk-6G7NN4S4.js.map +0 -1
  240. package/dist/chunk-AFYTX4AI.cjs.map +0 -1
  241. package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
  242. package/dist/chunk-BLJUCPMV.cjs.map +0 -1
  243. package/dist/chunk-E2HZTGYX.js.map +0 -1
  244. package/dist/chunk-FVII3KHN.js.map +0 -1
  245. package/dist/chunk-GSFB537T.js.map +0 -1
  246. package/dist/chunk-HSHCCBIV.js.map +0 -1
  247. package/dist/chunk-IDTKF5EX.cjs.map +0 -1
  248. package/dist/chunk-IWWVPR3W.cjs.map +0 -1
  249. package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
  250. package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
  251. package/dist/chunk-MYJQELFN.cjs.map +0 -1
  252. package/dist/chunk-NGKKNSK6.js.map +0 -1
  253. package/dist/chunk-PTD6EDUU.js.map +0 -1
  254. package/dist/chunk-Q6IES3U2.js.map +0 -1
  255. package/dist/chunk-QWYFHQYK.cjs +0 -357
  256. package/dist/chunk-QWYFHQYK.cjs.map +0 -1
  257. package/dist/chunk-S24ZBUB4.js.map +0 -1
  258. package/dist/chunk-SYWR5G3T.js.map +0 -1
  259. package/dist/chunk-TRVWMKNE.cjs.map +0 -1
  260. package/dist/chunk-UDDVDQMF.js.map +0 -1
  261. package/dist/chunk-VACPZPUA.cjs.map +0 -1
  262. package/dist/chunk-WRSWH7US.cjs.map +0 -1
  263. package/dist/chunk-Y6X7UJSD.js.map +0 -1
  264. package/dist/chunk-YCXRSWCQ.js.map +0 -1
@@ -95,6 +95,9 @@ var LLM_MODELS = [
95
95
  retired: true,
96
96
  vendor: "google",
97
97
  structuredOutputMode: "kie-response-format",
98
+ // The KIE endpoint is 3.8's, so it takes 3.8's rule: no `response_format`
99
+ // there, the schema in the prompt (see gemini-3.8-flash below).
100
+ kieSchemaInPrompt: true,
98
101
  supportsImages: true,
99
102
  // Google's own cap is 65,536, but the field feeds BOTH lanes and the KIE
100
103
  // flash endpoints cap at 8192 (the measured 3.6 posture) — stay at the
@@ -117,8 +120,9 @@ var LLM_MODELS = [
117
120
  series: "Gemini",
118
121
  // Inherits "Newest" from 3.7 (demoted above). Deliberately does NOT name
119
122
  // agentic video: that capability exists only on the direct Google lane
120
- // (Interactions API, not wired here) and the modality caps below withhold
121
- // video — a picker desc must not promise a lever this entry cannot expose.
123
+ // (Interactions API, not wired here). Plain video + audio input is wired
124
+ // (LLM_MODALITY_CAPS below) — a picker desc must not promise a lever this
125
+ // entry cannot expose.
122
126
  desc: "Newest fast Gemini, agentic-tuned",
123
127
  tier: "economy",
124
128
  kieFormat: "chat-completions",
@@ -132,6 +136,16 @@ var LLM_MODELS = [
132
136
  // is ENFORCED (the reply came back exact-schema valid, credits_consumed
133
137
  // present) — not merely accepted-and-ignored.
134
138
  structuredOutputMode: "kie-response-format",
139
+ // Since 2026-11-13 the KIE endpoint answers ANY request carrying
140
+ // `response_format` (json_schema strict or not, json_object; any effort or
141
+ // none; with or without media) with HTTP 200 and an in-band
142
+ // `{"code":500}` after ~34 s, while the same request without it answers;
143
+ // 3.6 Flash, 3.1 Pro and Carbon take the same body. So the KIE lane sends
144
+ // the schema in the prompt (measured: a real Video Analysis roll, video
145
+ // included, answered schema-valid that way). The direct lane keeps its
146
+ // enforced `responseJsonSchema` (asked once when a call's KIE answers never
147
+ // validate), and the trust this mode carries stays.
148
+ kieSchemaInPrompt: true,
135
149
  supportsImages: true,
136
150
  // 16384 here, NOT the 8192 its 3.6 / 3.7 siblings sit at. Those two stay at
137
151
  // the KIE-safe intersection because nobody measured their endpoints past
@@ -342,6 +356,54 @@ var LLM_MODELS = [
342
356
  // ended early (one declined the task, one stopped on RECITATION).
343
357
  thinkingDefaultOn: true
344
358
  },
359
+ {
360
+ id: "gemini-4-carbon",
361
+ displayName: "Gemini 4 Carbon",
362
+ series: "Gemini",
363
+ desc: "Deepest-reasoning Gemini, 1M context",
364
+ tier: "premium",
365
+ kieFormat: "chat-completions",
366
+ // KIE serves it on the OpenAI-compatible dialect under this slug
367
+ // (docs.kie.ai/market/gemini/gemini-4-carbon-openai — Argon's page with the
368
+ // name swapped). Unlike Argon's, this lane passed its probe (2026-11-12):
369
+ // every call answered, images read, a stream ended cleanly, no empty 200,
370
+ // no negative counts, no code-execution fences. KIE flags it "Chat only",
371
+ // like Argon: it may not back a tool-loop feature (none does today).
372
+ kieSlugOrModel: "gemini-4-carbon-openai",
373
+ vendor: "google",
374
+ // NO trusted `structuredOutputMode` (decided 2026-11-12): KIE did NOT
375
+ // enforce a `response_format` json_schema — both probe calls came back as
376
+ // JSON holding an off-enum value in the enum field ("cheerful and
377
+ // energized" for happy | sad). So it is not a STRUCTURED_VISION_MODELS
378
+ // member (not offered by describe-to-picker), and every answer is parsed,
379
+ // validated and re-asked by `llmCompleteStructured`.
380
+ // The schema still goes on the wire, as a hint (`structuredOutputHint`): as
381
+ // `response_format` on KIE (the probe's replies followed its shape, only the
382
+ // enum slipped) and as `responseJsonSchema` on the direct Google lane,
383
+ // which enforced it in the probe — on every attempt, the re-ask included.
384
+ structuredOutputHint: "kie-response-format",
385
+ supportsImages: true,
386
+ // The registry's usual 16384, as Argon. Every call is floored to the
387
+ // default 32768 (`thinkingDefaultOn`, below): Google lists an output cap of
388
+ // 32,768 (models.list) and accepted maxOutputTokens 65536; KIE's doc
389
+ // states up to 65,536 tokens, thinking included.
390
+ maxOutputTokens: 16384,
391
+ // KIE first, Google as the reliability fallback (and Advanced mode) — no
392
+ // `preferDirect`, no `directOnly`. Google serves `models/gemini-4-carbon`
393
+ // beside Argon (models.list, 2026-11-12).
394
+ directGeminiModel: "gemini-4-carbon",
395
+ // KIE's documented `reasoning_effort` enum, and the direct lane's ladder
396
+ // too: Google 400s thinkingLevel MINIMAL on this model ("not supported")
397
+ // and answers LOW / MEDIUM / HIGH (probed 2026-11-12) — Argon's shape. So
398
+ // no `none` (it maps to MINIMAL in the direct client) and no
399
+ // `directReasoningEfforts`: a `none` request clamps to Auto on both lanes.
400
+ reasoningEfforts: ["low", "medium", "high"],
401
+ // Reasons with no thinking param sent on both lanes: KIE's `total_tokens`
402
+ // ran well past prompt + completion on every no-effort call (its dialect
403
+ // reports no reasoning split), and Google's no-level call reported thought
404
+ // tokens. No `reasoningOutputFloor`: both lanes take the default 32768.
405
+ thinkingDefaultOn: true
406
+ },
345
407
  {
346
408
  id: "claude-opus-4.7",
347
409
  displayName: "Claude Opus 4.7",
@@ -585,6 +647,43 @@ var LLM_MODELS = [
585
647
  supportsTemperature: false,
586
648
  thinkingDefaultOn: true
587
649
  },
650
+ {
651
+ id: "gpt-6.1-terra",
652
+ displayName: "GPT-6.1 Terra",
653
+ series: "GPT",
654
+ desc: "Fast, efficient GPT-6.1, sharp visual reasoning",
655
+ tier: "standard",
656
+ kieFormat: "responses",
657
+ // The GPT-6 wire (codex/v1/responses, derived from `vendor`); KIE's doc is
658
+ // 6.1 Sol's page with the name swapped and `none` added to the effort enum.
659
+ // Live-probed 2026-11-12: non-stream 16/16, `text.format` json_schema
660
+ // ENFORCED (asked for prose, it returned schema JSON with the enum
661
+ // honoured), data-URI vision, SSE deltas. Unlike luna / sol / 6.1 sol it
662
+ // reports REAL top-level `usage.input_tokens` — see `kieInputUntrusted` in
663
+ // backend/src/lib/llm/kie-cost.ts.
664
+ //
665
+ // KIE's endpoint adds its own instructions to every call and counts them as
666
+ // input. The hold and the estimate count them too
667
+ // (backend/src/lib/pricing/llm-cost.ts, `llmLaneAddedInputTokens`). They
668
+ // were several times larger with an effort sent on the morning of
669
+ // 2026-11-12 and the same size either way by that afternoon, so its price
670
+ // does not depend on the effort: not `effortPriced` (re-measure if KIE's
671
+ // reported input jumps again).
672
+ kieSlugOrModel: "gpt-6-1-terra",
673
+ vendor: "openai",
674
+ structuredOutputMode: "responses-json-schema",
675
+ supportsImages: true,
676
+ maxOutputTokens: 16384,
677
+ // NO `none` (decided 2026-11-12): KIE answers it, but a `none` sent on the
678
+ // wire is answered as an effort (it echoed `medium`) while reasoning no
679
+ // more than Auto. Clamping maps a `none` request to nothing sent (Auto).
680
+ reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
681
+ // Same doc as 6.1 Sol: no temperature lever.
682
+ supportsTemperature: false
683
+ // NO `thinkingDefaultOn`: with no effort sent (and at low / medium / high)
684
+ // the probe reported 0 reasoning tokens; only xhigh (8) and max (27)
685
+ // reasoned, and those already floor the cap (`raiseToReasoningFloor`).
686
+ },
588
687
  {
589
688
  id: "grok-4.6",
590
689
  displayName: "Grok 4.6",
@@ -814,12 +913,49 @@ var LLM_MODELS = [
814
913
  // KIE's documented enum. The endpoint accepted xhigh/none without error but
815
914
  // never echoes an effort back, so nothing beyond the doc is verifiable.
816
915
  reasoningEfforts: ["low", "medium", "high"],
916
+ // Decided 2026-11-12: a request below `low` (`none`) is sent as `low`,
917
+ // never as nothing — KIE runs Kimi at its highest level when no effort is
918
+ // sent (K3.1 Pro's no-effort replies echoed `max`). Auto still sends nothing.
919
+ effortBelowLowestSendsLowest: true,
817
920
  // The doc lists no `temperature` field at all.
818
921
  supportsTemperature: false,
819
922
  // "Reasons by default" per KIE's doc (its usage reports no reasoning-token
820
923
  // split, so this is the doc's word, not a measurement).
821
924
  thinkingDefaultOn: true
822
925
  },
926
+ {
927
+ id: "kimi-k3.1-pro",
928
+ displayName: "Kimi K3.1 Pro",
929
+ series: "Kimi",
930
+ desc: "Kimi tuned for coding and research, 1M context",
931
+ tier: "premium",
932
+ kieFormat: "responses",
933
+ // Same openai/v1/responses family path and wire as kimi-k3 (KIE's doc is
934
+ // K3's page with the name and the effort enum changed). Live-probed
935
+ // 2026-11-12: non-stream 9/9, `text.format` json_schema ENFORCED (asked for
936
+ // prose, it returned schema JSON with the enum honoured), data-URI vision,
937
+ // real `usage.input_tokens` and `credits_consumed`. Its stream sends
938
+ // `response.reasoning_text.delta` frames apart from the
939
+ // `response.output_text.delta` ones, and only the latter are the answer.
940
+ kieSlugOrModel: "kimi-k3-1-pro",
941
+ vendor: "moonshot",
942
+ structuredOutputMode: "responses-json-schema",
943
+ supportsImages: true,
944
+ maxOutputTokens: 16384,
945
+ // KIE's documented enum (K3's was low / medium / high). Each level was
946
+ // echoed back. An off-enum `medium` answered too (echoed as `high`), so it
947
+ // is not offered: a `medium` request clamps down to `low`.
948
+ reasoningEfforts: ["low", "high", "max"],
949
+ // Decided 2026-11-12: a request below `low` (`none`) is sent as `low`,
950
+ // never as nothing — with no effort sent KIE runs it at `max` (the probe's
951
+ // no-effort replies echoed `max`). Auto still sends nothing.
952
+ effortBelowLowestSendsLowest: true,
953
+ // The doc lists no `temperature` field at all, as K3's.
954
+ supportsTemperature: false,
955
+ // Measured: every probe call reported reasoning tokens (20 to 163), the
956
+ // no-effort ones included (they echoed effort `max`).
957
+ thinkingDefaultOn: true
958
+ },
823
959
  {
824
960
  id: "deepseek-v4.1-flash",
825
961
  displayName: "DeepSeek V4.1 Flash",
@@ -856,6 +992,14 @@ function pickableLlmModels(currentId) {
856
992
  var STRUCTURED_VISION_MODELS = LLM_MODELS.filter(
857
993
  (m) => m.supportsImages && m.structuredOutputMode != null
858
994
  );
995
+ function structuredWireMode(model) {
996
+ return model.structuredOutputMode ?? model.structuredOutputHint;
997
+ }
998
+ function llmSendsSchema(modelId, feature) {
999
+ const id = modelId || (feature ? LLM_FEATURE_DEFAULTS[feature] : void 0);
1000
+ const model = id ? getLlmModel(id) : void 0;
1001
+ return !model || structuredWireMode(model) !== void 0;
1002
+ }
859
1003
  var DESCRIBE_TO_PICKER_WITHHELD_MODELS = /* @__PURE__ */ new Set();
860
1004
  var LLM_STRUCTURED_WITHHELD_MODELS = DESCRIBE_TO_PICKER_WITHHELD_MODELS;
861
1005
  var DESCRIBE_TO_PICKER_MODELS = STRUCTURED_VISION_MODELS.filter(
@@ -946,6 +1090,10 @@ function defaultReasoningEffort(feature, modelId) {
946
1090
  return getLlmModel(effective)?.id === recipe.model ? recipe.effort : void 0;
947
1091
  }
948
1092
  var LLM_MODALITY_CAPS = {
1093
+ // Keeps full caps after KIE dropped its channel (2026-11-13): it stays a
1094
+ // VIDEO_ANALYSIS_LLM_MODELS member as the legacy `fast` backing (below), so a
1095
+ // stored raw `llmModel: "gemini-3-flash"` still resolves and prices under its
1096
+ // own credit family.
949
1097
  "gemini-3-flash": { image: true, video: true, audio: true },
950
1098
  "gemini-3.6-flash": { image: true, video: true, audio: true },
951
1099
  // gemini-3.7-flash is IMAGE-ONLY by DECISION, not omission: full video+audio
@@ -954,15 +1102,13 @@ var LLM_MODALITY_CAPS = {
954
1102
  // deferred while the smart-family A/B routes this model internally (#747).
955
1103
  // Flip these two flags ONLY together with that VA-side decision.
956
1104
  "gemini-3.7-flash": { image: true, video: false, audio: false },
957
- // gemini-3.8-flash is IMAGE-ONLY by DECISION, not omission — 3.7's rationale
958
- // exactly: full video+audio caps would auto-enroll it in
959
- // VIDEO_ANALYSIS_LLM_MODELS (derived below) and force a video-analysis tier +
960
- // pricing decision that stays deferred until the 3.8-vs-3.7 analysis A/B
961
- // concludes. Google's own 3.8 lane DOES understand video (agentic video, via
962
- // the Interactions API we don't wire) — which is precisely why withholding it
963
- // has to be a decision rather than a gap. Flip these two flags ONLY together
964
- // with that VA-side decision.
965
- "gemini-3.8-flash": { image: true, video: false, audio: false },
1105
+ // gemini-3.8-flash takes video + audio (decided 2026-11-13): it backs the
1106
+ // video-analysis `fast` tier (VIDEO_ANALYSIS_TIERS below) since KIE dropped
1107
+ // gemini-3-flash's channel, which is what enrols it in
1108
+ // VIDEO_ANALYSIS_LLM_MODELS. Its KIE lane reads a video URL sent as an
1109
+ // `image_url` part, the same channel gemini-3-flash used (live-verified
1110
+ // 2026-11-13 with the analysis request: prompt tokens include the clip).
1111
+ "gemini-3.8-flash": { image: true, video: true, audio: true },
966
1112
  "gemini-3.1-pro": { image: true, video: true, audio: true },
967
1113
  // gemini-4-argon is IMAGE-ONLY by DECISION, not omission (decided 2026-10-17):
968
1114
  // the model DOES read video and audio, but full caps would
@@ -970,6 +1116,12 @@ var LLM_MODALITY_CAPS = {
970
1116
  // video-analysis tier + pricing decision. That waits on a Video Analysis
971
1117
  // bake-off; flip these two flags ONLY together with its outcome.
972
1118
  "gemini-4-argon": { image: true, video: false, audio: false },
1119
+ // gemini-4-carbon is IMAGE-ONLY for now, by decision (2026-11-12): the model
1120
+ // reads video and audio, but full caps would auto-enroll it in
1121
+ // VIDEO_ANALYSIS_LLM_MODELS (derived below). Its video + audio input comes in
1122
+ // a follow-up change that also decides its Video Analysis enrolment; flip
1123
+ // these two flags ONLY together with that.
1124
+ "gemini-4-carbon": { image: true, video: false, audio: false },
973
1125
  "claude-haiku-4.5": { image: true, video: false, audio: false },
974
1126
  "claude-haiku-5.5": { image: true, video: false, audio: false },
975
1127
  "claude-sonnet-4.6": { image: true, video: false, audio: false },
@@ -986,6 +1138,8 @@ var LLM_MODALITY_CAPS = {
986
1138
  "gpt-6-luna": { image: true, video: false, audio: false },
987
1139
  "gpt-6-sol": { image: true, video: false, audio: false },
988
1140
  "gpt-6.1-sol": { image: true, video: false, audio: false },
1141
+ // KIE's doc also takes files (PDFs, documents); that input is not wired here.
1142
+ "gpt-6.1-terra": { image: true, video: false, audio: false },
989
1143
  "grok-4.6": { image: true, video: false, audio: false },
990
1144
  "grok-4.7": { image: true, video: false, audio: false },
991
1145
  "claude-sonnet-5": { image: true, video: false, audio: false },
@@ -996,6 +1150,7 @@ var LLM_MODALITY_CAPS = {
996
1150
  "claude-fable-5": { image: true, video: false, audio: false },
997
1151
  // KIE documents text + image input only for both.
998
1152
  "kimi-k3": { image: true, video: false, audio: false },
1153
+ "kimi-k3.1-pro": { image: true, video: false, audio: false },
999
1154
  "deepseek-v4.1-flash": { image: true, video: false, audio: false }
1000
1155
  };
1001
1156
  function getLlmModalityCaps(modelId) {
@@ -1042,6 +1197,7 @@ function effectiveReasoningEffort(modelId, requested, advanced = false) {
1042
1197
  for (const l of levels) {
1043
1198
  if (EFFORT_RANK[l] <= EFFORT_RANK[req] && (best === void 0 || EFFORT_RANK[l] > EFFORT_RANK[best])) best = l;
1044
1199
  }
1200
+ if (best === void 0 && getLlmModel(modelId ?? "")?.effortBelowLowestSendsLowest) return levels[0];
1045
1201
  return best;
1046
1202
  }
1047
1203
  var LLM_ROUTE_DEFAULTS = {
@@ -1086,7 +1242,26 @@ function llmServesDirect(modelId, reasoningEffort, advancedMode) {
1086
1242
  function llmPriceKey(feature, modelId, reasoningEffort, advancedMode) {
1087
1243
  if (!modelId) throw new TypeError(`llmPriceKey: modelId must be a resolved model id (feature "${feature}")`);
1088
1244
  const effort = reasoningEffort ?? defaultReasoningEffort(llmDefaultsFeature(feature), modelId);
1089
- return llmServesDirect(modelId, effort, advancedMode) ? `${feature}:${modelId}:direct` : `${feature}:${modelId}`;
1245
+ if (llmServesDirect(modelId, effort, advancedMode)) return `${feature}:${modelId}${LLM_PRICE_KEY_DIRECT}`;
1246
+ const sent = getLlmModel(modelId)?.effortPriced ? effectiveReasoningEffort(modelId, effort) : void 0;
1247
+ return sent ? `${feature}:${modelId}${LLM_PRICE_KEY_EFFORT}${sent}` : `${feature}:${modelId}`;
1248
+ }
1249
+ var LLM_PRICE_KEY_DIRECT = ":direct";
1250
+ var LLM_PRICE_KEY_EFFORT = ":effort-";
1251
+ var REGISTRY_MODEL_IDS = new Set(LLM_MODEL_IDS);
1252
+ function parseLlmPriceKeyModel(tail) {
1253
+ if (REGISTRY_MODEL_IDS.has(tail)) return { modelId: tail };
1254
+ if (tail.endsWith(LLM_PRICE_KEY_DIRECT)) {
1255
+ const modelId2 = tail.slice(0, -LLM_PRICE_KEY_DIRECT.length);
1256
+ return REGISTRY_MODEL_IDS.has(modelId2) ? { modelId: modelId2, lane: "direct" } : null;
1257
+ }
1258
+ const at = tail.lastIndexOf(LLM_PRICE_KEY_EFFORT);
1259
+ if (at <= 0) return null;
1260
+ const modelId = tail.slice(0, at);
1261
+ const level = tail.slice(at + LLM_PRICE_KEY_EFFORT.length);
1262
+ const model = REGISTRY_MODEL_IDS.has(modelId) ? getLlmModel(modelId) : void 0;
1263
+ if (!model?.effortPriced || !availableReasoningEfforts(modelId).includes(level)) return null;
1264
+ return { modelId, reasoningEffort: level };
1090
1265
  }
1091
1266
  var LLM_CREDIT_RUNGS = ["economy", "standard", "premium", "premium-direct"];
1092
1267
  function llmCreditIdForRung(feature, rung) {
@@ -1118,7 +1293,7 @@ function resolveLlmCreditId(feature, body) {
1118
1293
  );
1119
1294
  }
1120
1295
  var VIDEO_ANALYSIS_LLM_MODELS = LLM_MODELS.filter((m) => getLlmModalityCaps(m.id).video && getLlmModalityCaps(m.id).audio).map((m) => m.id);
1121
- var VIDEO_ANALYSIS_TIERS = { fast: "gemini-3-flash", pro: "gemini-3.1-pro" };
1296
+ var VIDEO_ANALYSIS_TIERS = { fast: "gemini-3.8-flash", pro: "gemini-3.1-pro" };
1122
1297
  var VIDEO_ANALYSIS_LEGACY_MODELS = {
1123
1298
  // Backed the fast tier from 2026-07 until 2026-07-29, when the economy tiers
1124
1299
  // moved to the cheaper lane and the older, cheaper flash. It is now the engine
@@ -1126,7 +1301,13 @@ var VIDEO_ANALYSIS_LEGACY_MODELS = {
1126
1301
  // id, so as far as this map is concerned it no longer backs a selectable tier and
1127
1302
  // belongs here: stored raw `llmModel` values keep resolving and keep pricing
1128
1303
  // under their own credit family.
1129
- "gemini-3.6-flash": "fast"
1304
+ "gemini-3.6-flash": "fast",
1305
+ // Backed the fast tier from 2026-07-29 until 2026-11-13, when KIE dropped its
1306
+ // channel (every call answers `code 422 "The channel is not supported"`) and
1307
+ // the fast tier moved to gemini-3.8-flash. Stored raw `llmModel` values keep
1308
+ // resolving and keep pricing under their own credit family; the analysis
1309
+ // engine serves their rolls with the current fast model.
1310
+ "gemini-3-flash": "fast"
1130
1311
  };
1131
1312
  var VIDEO_ANALYSIS_MIXED_TIERS = ["mixed", "mixed-fast", "smart"];
1132
1313
  var VIDEO_ANALYSIS_TIER_ORDER = ["smart", "pro", "fast", "mixed", "mixed-fast"];
@@ -1154,6 +1335,6 @@ function resolveVideoAnalysisModel(input) {
1154
1335
  return DEFAULT_VIDEO_ANALYSIS_MODEL;
1155
1336
  }
1156
1337
 
1157
- export { ADVANCED_MODE_UNAVAILABLE_REASON, DEFAULT_VIDEO_ANALYSIS_MODEL, DEFAULT_VIDEO_ANALYSIS_TIER, DESCRIBE_TO_PICKER_FALLBACK_MODEL, DESCRIBE_TO_PICKER_MODELS, DESCRIBE_TO_PICKER_WITHHELD_MODELS, EFFORT_TIER_BUMP, LLM_CREDIT_RUNGS, LLM_FEATURE_DEFAULTS, LLM_FEATURE_DEFAULTS_FROM, LLM_FEATURE_DEFAULT_EFFORTS, LLM_MODALITY_CAPS, LLM_MODELS, LLM_MODEL_IDS, LLM_REASONING_EFFORTS, LLM_ROUTE_DEFAULTS, LLM_STRUCTURED_WITHHELD_MODELS, LLM_VENDOR_LABELS, LLM_VENDOR_ORDER, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, STRUCTURED_VISION_MODELS, VIDEO_ANALYSIS_LEGACY_MODELS, VIDEO_ANALYSIS_LLM_MODELS, VIDEO_ANALYSIS_MIXED_TIERS, VIDEO_ANALYSIS_TIERS, VIDEO_ANALYSIS_TIER_LABELS, VIDEO_ANALYSIS_TIER_ORDER, availableReasoningEfforts, buildLlmCreditIdentifier, defaultReasoningEffort, effectiveReasoningEffort, getLlmModalityCaps, getLlmModel, getLlmTier, groupLlmModelsByVendor, isLlmModelRetired, isVideoAnalysisMixedTier, isVideoAnalysisTier, llmCreditIdForRung, llmCreditRung, llmDefaultsFeature, llmPriceKey, llmRouteDefaults, llmServesDirect, llmTierCreditIds, motionGraphicsFeature, orderedLlmModels, pickableLlmModels, reasoningOutputFloor, resolveLlmCreditId, resolveVideoAnalysisModel, supportsAdvancedMode };
1158
- //# sourceMappingURL=chunk-FVII3KHN.js.map
1159
- //# sourceMappingURL=chunk-FVII3KHN.js.map
1338
+ export { ADVANCED_MODE_UNAVAILABLE_REASON, DEFAULT_VIDEO_ANALYSIS_MODEL, DEFAULT_VIDEO_ANALYSIS_TIER, DESCRIBE_TO_PICKER_FALLBACK_MODEL, DESCRIBE_TO_PICKER_MODELS, DESCRIBE_TO_PICKER_WITHHELD_MODELS, EFFORT_TIER_BUMP, LLM_CREDIT_RUNGS, LLM_FEATURE_DEFAULTS, LLM_FEATURE_DEFAULTS_FROM, LLM_FEATURE_DEFAULT_EFFORTS, LLM_MODALITY_CAPS, LLM_MODELS, LLM_MODEL_IDS, LLM_PRICE_KEY_DIRECT, LLM_PRICE_KEY_EFFORT, LLM_REASONING_EFFORTS, LLM_ROUTE_DEFAULTS, LLM_STRUCTURED_WITHHELD_MODELS, LLM_VENDOR_LABELS, LLM_VENDOR_ORDER, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, STRUCTURED_VISION_MODELS, VIDEO_ANALYSIS_LEGACY_MODELS, VIDEO_ANALYSIS_LLM_MODELS, VIDEO_ANALYSIS_MIXED_TIERS, VIDEO_ANALYSIS_TIERS, VIDEO_ANALYSIS_TIER_LABELS, VIDEO_ANALYSIS_TIER_ORDER, availableReasoningEfforts, buildLlmCreditIdentifier, defaultReasoningEffort, effectiveReasoningEffort, getLlmModalityCaps, getLlmModel, getLlmTier, groupLlmModelsByVendor, isLlmModelRetired, isVideoAnalysisMixedTier, isVideoAnalysisTier, llmCreditIdForRung, llmCreditRung, llmDefaultsFeature, llmPriceKey, llmRouteDefaults, llmSendsSchema, llmServesDirect, llmTierCreditIds, motionGraphicsFeature, orderedLlmModels, parseLlmPriceKeyModel, pickableLlmModels, reasoningOutputFloor, resolveLlmCreditId, resolveVideoAnalysisModel, structuredWireMode, supportsAdvancedMode };
1339
+ //# sourceMappingURL=chunk-QYU7J5EQ.js.map
1340
+ //# sourceMappingURL=chunk-QYU7J5EQ.js.map