@nodaro/shared 3.62.0 → 3.63.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 (212) hide show
  1. package/dist/{chunk-6CSXMWL4.cjs → chunk-2PU3AGGS.cjs} +27 -4
  2. package/dist/chunk-2PU3AGGS.cjs.map +1 -0
  3. package/dist/{chunk-CC4V2B7S.js → chunk-34QLPTSA.js} +3 -3
  4. package/dist/{chunk-CC4V2B7S.js.map → chunk-34QLPTSA.js.map} +1 -1
  5. package/dist/{chunk-G4U3HW6W.js → chunk-3K24DWOH.js} +3 -3
  6. package/dist/{chunk-G4U3HW6W.js.map → chunk-3K24DWOH.js.map} +1 -1
  7. package/dist/{chunk-GSFB537T.js → chunk-4DVWXEB6.js} +23 -4
  8. package/dist/chunk-4DVWXEB6.js.map +1 -0
  9. package/dist/{chunk-ZES6EZC4.js → chunk-4MMZD63H.js} +3 -3
  10. package/dist/{chunk-ZES6EZC4.js.map → chunk-4MMZD63H.js.map} +1 -1
  11. package/dist/{chunk-N7OUQK7E.cjs → chunk-63H4C56Q.cjs} +8 -8
  12. package/dist/{chunk-N7OUQK7E.cjs.map → chunk-63H4C56Q.cjs.map} +1 -1
  13. package/dist/{chunk-2D5LQFV4.cjs → chunk-6BZC2ZHC.cjs} +9 -9
  14. package/dist/{chunk-2D5LQFV4.cjs.map → chunk-6BZC2ZHC.cjs.map} +1 -1
  15. package/dist/{chunk-3OYO3XCC.js → chunk-6M563QE6.js} +71 -9
  16. package/dist/chunk-6M563QE6.js.map +1 -0
  17. package/dist/{chunk-IDTKF5EX.cjs → chunk-6TGB7ECA.cjs} +7 -7
  18. package/dist/{chunk-IDTKF5EX.cjs.map → chunk-6TGB7ECA.cjs.map} +1 -1
  19. package/dist/{chunk-2HZGDZZN.cjs → chunk-6XUG4L7X.cjs} +6 -6
  20. package/dist/{chunk-2HZGDZZN.cjs.map → chunk-6XUG4L7X.cjs.map} +1 -1
  21. package/dist/{chunk-CIPPPT7E.cjs → chunk-77WU3V3J.cjs} +6 -6
  22. package/dist/{chunk-CIPPPT7E.cjs.map → chunk-77WU3V3J.cjs.map} +1 -1
  23. package/dist/{chunk-C7POAYFE.js → chunk-AE3AAJ4O.js} +3 -3
  24. package/dist/{chunk-C7POAYFE.js.map → chunk-AE3AAJ4O.js.map} +1 -1
  25. package/dist/{chunk-NGKKNSK6.js → chunk-BMJVKYVB.js} +36 -15
  26. package/dist/chunk-BMJVKYVB.js.map +1 -0
  27. package/dist/{chunk-YCXRSWCQ.js → chunk-CZ5IQB3L.js} +3 -3
  28. package/dist/{chunk-YCXRSWCQ.js.map → chunk-CZ5IQB3L.js.map} +1 -1
  29. package/dist/{chunk-E2HZTGYX.js → chunk-EPXGG27L.js} +7 -7
  30. package/dist/chunk-EPXGG27L.js.map +1 -0
  31. package/dist/{chunk-3M4BNKFJ.cjs → chunk-F6WGGYQW.cjs} +167 -3
  32. package/dist/chunk-F6WGGYQW.cjs.map +1 -0
  33. package/dist/{chunk-7FCTCWHD.js → chunk-FXGNRYQQ.js} +3 -3
  34. package/dist/{chunk-7FCTCWHD.js.map → chunk-FXGNRYQQ.js.map} +1 -1
  35. package/dist/{chunk-QWYFHQYK.cjs → chunk-GMBDLNLD.cjs} +86 -62
  36. package/dist/chunk-GMBDLNLD.cjs.map +1 -0
  37. package/dist/{chunk-KJSRPHJ2.cjs → chunk-GSKLPI3J.cjs} +100 -46
  38. package/dist/chunk-GSKLPI3J.cjs.map +1 -0
  39. package/dist/{chunk-S5TMRJMX.js → chunk-HBXF6RUU.js} +4 -4
  40. package/dist/{chunk-S5TMRJMX.js.map → chunk-HBXF6RUU.js.map} +1 -1
  41. package/dist/{chunk-S24ZBUB4.js → chunk-HWQ2SYNA.js} +6 -32
  42. package/dist/chunk-HWQ2SYNA.js.map +1 -0
  43. package/dist/{chunk-JJNNM23P.js → chunk-IY3Y462W.js} +3 -3
  44. package/dist/{chunk-JJNNM23P.js.map → chunk-IY3Y462W.js.map} +1 -1
  45. package/dist/{chunk-JZGZ26YB.js → chunk-KCZHQH2O.js} +4 -4
  46. package/dist/{chunk-JZGZ26YB.js.map → chunk-KCZHQH2O.js.map} +1 -1
  47. package/dist/{chunk-FVII3KHN.js → chunk-KMGCHV6O.js} +163 -4
  48. package/dist/chunk-KMGCHV6O.js.map +1 -0
  49. package/dist/{chunk-4ZEFP2FQ.cjs → chunk-L2TVY6XN.cjs} +4 -4
  50. package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-L2TVY6XN.cjs.map} +1 -1
  51. package/dist/{chunk-TRVWMKNE.cjs → chunk-LH72PQO2.cjs} +204 -52
  52. package/dist/chunk-LH72PQO2.cjs.map +1 -0
  53. package/dist/{chunk-HRY7KGAE.cjs → chunk-LMAQUR55.cjs} +6 -6
  54. package/dist/{chunk-HRY7KGAE.cjs.map → chunk-LMAQUR55.cjs.map} +1 -1
  55. package/dist/{chunk-MYJQELFN.cjs → chunk-M5OCFGHF.cjs} +254 -7
  56. package/dist/chunk-M5OCFGHF.cjs.map +1 -0
  57. package/dist/{chunk-I2RQB7VG.js → chunk-MD4XHED4.js} +3 -3
  58. package/dist/{chunk-I2RQB7VG.js.map → chunk-MD4XHED4.js.map} +1 -1
  59. package/dist/{chunk-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
  60. package/dist/chunk-NIAFR5EE.js.map +1 -0
  61. package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
  62. package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
  63. package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
  64. package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
  65. package/dist/{chunk-UDDVDQMF.js → chunk-OV3JTKBY.js} +166 -25
  66. package/dist/chunk-OV3JTKBY.js.map +1 -0
  67. package/dist/{chunk-5YYN5X57.js → chunk-PSKZKLDG.js} +252 -8
  68. package/dist/chunk-PSKZKLDG.js.map +1 -0
  69. package/dist/{chunk-IWWVPR3W.cjs → chunk-TM5JYSJF.cjs} +95 -19
  70. package/dist/chunk-TM5JYSJF.cjs.map +1 -0
  71. package/dist/{chunk-G3KVK7OU.cjs → chunk-V5EEQR2U.cjs} +21 -21
  72. package/dist/{chunk-G3KVK7OU.cjs.map → chunk-V5EEQR2U.cjs.map} +1 -1
  73. package/dist/{chunk-AOJ6B7K4.cjs → chunk-WZVIBAKN.cjs} +12 -12
  74. package/dist/chunk-WZVIBAKN.cjs.map +1 -0
  75. package/dist/{chunk-5M43XMRB.cjs → chunk-X5BAFW3Q.cjs} +8 -8
  76. package/dist/{chunk-5M43XMRB.cjs.map → chunk-X5BAFW3Q.cjs.map} +1 -1
  77. package/dist/{chunk-SYWR5G3T.js → chunk-XBTYGQ6Z.js} +51 -7
  78. package/dist/chunk-XBTYGQ6Z.js.map +1 -0
  79. package/dist/{chunk-AFYTX4AI.cjs → chunk-XGGZWA4A.cjs} +107 -50
  80. package/dist/chunk-XGGZWA4A.cjs.map +1 -0
  81. package/dist/{chunk-VACPZPUA.cjs → chunk-XGVJGNZW.cjs} +5 -5
  82. package/dist/{chunk-VACPZPUA.cjs.map → chunk-XGVJGNZW.cjs.map} +1 -1
  83. package/dist/{chunk-2W745U4A.cjs → chunk-Y35JQPT6.cjs} +42 -70
  84. package/dist/chunk-Y35JQPT6.cjs.map +1 -0
  85. package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
  86. package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
  87. package/dist/{chunk-PTD6EDUU.js → chunk-YUER7TJG.js} +3 -3
  88. package/dist/{chunk-PTD6EDUU.js.map → chunk-YUER7TJG.js.map} +1 -1
  89. package/dist/{chunk-Y6X7UJSD.js → chunk-YX6TFX7H.js} +66 -14
  90. package/dist/chunk-YX6TFX7H.js.map +1 -0
  91. package/dist/{chunk-TWF2OSH4.cjs → chunk-ZPE2ZTJ4.cjs} +4 -4
  92. package/dist/{chunk-TWF2OSH4.cjs.map → chunk-ZPE2ZTJ4.cjs.map} +1 -1
  93. package/dist/entries/apps.cjs +42 -42
  94. package/dist/entries/apps.js +7 -7
  95. package/dist/entries/credits.cjs +237 -169
  96. package/dist/entries/credits.d.cts +163 -16
  97. package/dist/entries/credits.d.ts +163 -16
  98. package/dist/entries/credits.js +10 -10
  99. package/dist/entries/llm-models.cjs +77 -57
  100. package/dist/entries/llm-models.d.cts +85 -6
  101. package/dist/entries/llm-models.d.ts +85 -6
  102. package/dist/entries/llm-models.js +2 -2
  103. package/dist/entries/media.cjs +63 -63
  104. package/dist/entries/media.d.cts +8 -0
  105. package/dist/entries/media.d.ts +8 -0
  106. package/dist/entries/media.js +1 -1
  107. package/dist/entries/model-catalog.cjs +121 -105
  108. package/dist/entries/model-catalog.d.cts +48 -18
  109. package/dist/entries/model-catalog.d.ts +48 -18
  110. package/dist/entries/model-catalog.js +4 -4
  111. package/dist/entries/models.cjs +418 -322
  112. package/dist/entries/models.d.cts +71 -5
  113. package/dist/entries/models.d.ts +71 -5
  114. package/dist/entries/models.js +5 -5
  115. package/dist/entries/nodes.cjs +216 -208
  116. package/dist/entries/nodes.d.cts +22 -6
  117. package/dist/entries/nodes.d.ts +22 -6
  118. package/dist/entries/nodes.js +8 -8
  119. package/dist/entries/pipeline.cjs +152 -152
  120. package/dist/entries/pipeline.d.cts +3 -3
  121. package/dist/entries/pipeline.d.ts +3 -3
  122. package/dist/entries/pipeline.js +3 -3
  123. package/dist/entries/runtime-config.cjs +29 -29
  124. package/dist/entries/runtime-config.d.cts +10 -7
  125. package/dist/entries/runtime-config.d.ts +10 -7
  126. package/dist/entries/runtime-config.js +1 -1
  127. package/dist/entries/social.cjs +177 -177
  128. package/dist/entries/social.js +2 -2
  129. package/dist/entries/types.d.cts +8 -0
  130. package/dist/entries/types.d.ts +8 -0
  131. package/dist/entries/ugc.cjs +71 -71
  132. package/dist/entries/ugc.js +4 -4
  133. package/dist/entries/video.cjs +154 -150
  134. package/dist/entries/video.d.cts +11 -2
  135. package/dist/entries/video.d.ts +11 -2
  136. package/dist/entries/video.js +6 -6
  137. package/dist/entries/workflow.d.cts +1 -1
  138. package/dist/entries/workflow.d.ts +1 -1
  139. package/dist/index.cjs +1727 -1515
  140. package/dist/index.d.cts +8 -8
  141. package/dist/index.d.ts +8 -8
  142. package/dist/index.js +23 -23
  143. package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-C_Eo35tL.d.cts} +30 -0
  144. package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-C_Eo35tL.d.ts} +30 -0
  145. package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-Bg4ccSQb.d.ts} +138 -25
  146. package/dist/{model-constants-B88p6XR0.d.ts → model-constants-DWcxOmaY.d.cts} +138 -25
  147. package/package.json +1 -1
  148. package/src/__tests__/credit-identifiers.test.ts +29 -0
  149. package/src/__tests__/extend-providers.test.ts +106 -26
  150. package/src/__tests__/gvp-supported-providers.test.ts +27 -2
  151. package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
  152. package/src/__tests__/lip-sync-levers.test.ts +31 -0
  153. package/src/__tests__/llm-models.test.ts +132 -3
  154. package/src/__tests__/llm-price-key.test.ts +152 -1
  155. package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
  156. package/src/__tests__/normalize-node-params.test.ts +25 -0
  157. package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
  158. package/src/__tests__/prompt-length-limits.test.ts +4 -0
  159. package/src/__tests__/seedance-task-type.test.ts +13 -3
  160. package/src/__tests__/transcribe-capabilities.test.ts +39 -2
  161. package/src/__tests__/transcribe-preflight.test.ts +50 -1
  162. package/src/__tests__/video-audio-capability.test.ts +35 -6
  163. package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
  164. package/src/__tests__/video-upscale-params.test.ts +62 -0
  165. package/src/catalog-projection.ts +8 -0
  166. package/src/credit-estimators/index.ts +10 -0
  167. package/src/credit-estimators/nemotron-transcribe.ts +87 -0
  168. package/src/credit-identifiers.ts +109 -35
  169. package/src/entries/credits.ts +12 -1
  170. package/src/entries/llm-models.ts +6 -0
  171. package/src/entries/model-catalog.ts +9 -0
  172. package/src/entries/models.ts +35 -0
  173. package/src/entries/nodes.ts +2 -0
  174. package/src/entries/video.ts +1 -1
  175. package/src/freecut-protocol.ts +8 -0
  176. package/src/lip-sync-levers.ts +56 -0
  177. package/src/lip-sync-pricing.ts +91 -1
  178. package/src/llm-models.ts +249 -4
  179. package/src/model-catalog.ts +250 -4
  180. package/src/model-constants.ts +277 -30
  181. package/src/model-tree.ts +2 -1
  182. package/src/nodaro-video-upscale.ts +48 -0
  183. package/src/node-default-mappings.ts +3 -0
  184. package/src/normalize-node-params.ts +49 -1
  185. package/src/runtime-config/contract.ts +10 -7
  186. package/src/seedance-draft.ts +2 -1
  187. package/src/transcribe-preflight.ts +58 -7
  188. package/src/video-duration.ts +9 -0
  189. package/src/video-ui-defaults.ts +5 -3
  190. package/src/video-upscale-params.ts +67 -0
  191. package/dist/chunk-2W745U4A.cjs.map +0 -1
  192. package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
  193. package/dist/chunk-3OYO3XCC.js.map +0 -1
  194. package/dist/chunk-5YYN5X57.js.map +0 -1
  195. package/dist/chunk-6CSXMWL4.cjs.map +0 -1
  196. package/dist/chunk-6G7NN4S4.js.map +0 -1
  197. package/dist/chunk-AFYTX4AI.cjs.map +0 -1
  198. package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
  199. package/dist/chunk-E2HZTGYX.js.map +0 -1
  200. package/dist/chunk-FVII3KHN.js.map +0 -1
  201. package/dist/chunk-GSFB537T.js.map +0 -1
  202. package/dist/chunk-IWWVPR3W.cjs.map +0 -1
  203. package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
  204. package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
  205. package/dist/chunk-MYJQELFN.cjs.map +0 -1
  206. package/dist/chunk-NGKKNSK6.js.map +0 -1
  207. package/dist/chunk-QWYFHQYK.cjs.map +0 -1
  208. package/dist/chunk-S24ZBUB4.js.map +0 -1
  209. package/dist/chunk-SYWR5G3T.js.map +0 -1
  210. package/dist/chunk-TRVWMKNE.cjs.map +0 -1
  211. package/dist/chunk-UDDVDQMF.js.map +0 -1
  212. package/dist/chunk-Y6X7UJSD.js.map +0 -1
@@ -1,229 +1,249 @@
1
1
  'use strict';
2
2
 
3
- var chunkTWF2OSH4_cjs = require('../chunk-TWF2OSH4.cjs');
4
- var chunk3M4BNKFJ_cjs = require('../chunk-3M4BNKFJ.cjs');
3
+ var chunkZPE2ZTJ4_cjs = require('../chunk-ZPE2ZTJ4.cjs');
4
+ var chunkF6WGGYQW_cjs = require('../chunk-F6WGGYQW.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "SCRIPT_LEGACY_PROVIDER_MODELS", {
9
9
  enumerable: true,
10
- get: function () { return chunkTWF2OSH4_cjs.SCRIPT_LEGACY_PROVIDER_MODELS; }
10
+ get: function () { return chunkZPE2ZTJ4_cjs.SCRIPT_LEGACY_PROVIDER_MODELS; }
11
11
  });
12
12
  Object.defineProperty(exports, "resolveScriptModelId", {
13
13
  enumerable: true,
14
- get: function () { return chunkTWF2OSH4_cjs.resolveScriptModelId; }
14
+ get: function () { return chunkZPE2ZTJ4_cjs.resolveScriptModelId; }
15
15
  });
16
16
  Object.defineProperty(exports, "ADVANCED_MODE_UNAVAILABLE_REASON", {
17
17
  enumerable: true,
18
- get: function () { return chunk3M4BNKFJ_cjs.ADVANCED_MODE_UNAVAILABLE_REASON; }
18
+ get: function () { return chunkF6WGGYQW_cjs.ADVANCED_MODE_UNAVAILABLE_REASON; }
19
19
  });
20
20
  Object.defineProperty(exports, "DEFAULT_VIDEO_ANALYSIS_MODEL", {
21
21
  enumerable: true,
22
- get: function () { return chunk3M4BNKFJ_cjs.DEFAULT_VIDEO_ANALYSIS_MODEL; }
22
+ get: function () { return chunkF6WGGYQW_cjs.DEFAULT_VIDEO_ANALYSIS_MODEL; }
23
23
  });
24
24
  Object.defineProperty(exports, "DEFAULT_VIDEO_ANALYSIS_TIER", {
25
25
  enumerable: true,
26
- get: function () { return chunk3M4BNKFJ_cjs.DEFAULT_VIDEO_ANALYSIS_TIER; }
26
+ get: function () { return chunkF6WGGYQW_cjs.DEFAULT_VIDEO_ANALYSIS_TIER; }
27
27
  });
28
28
  Object.defineProperty(exports, "DESCRIBE_TO_PICKER_FALLBACK_MODEL", {
29
29
  enumerable: true,
30
- get: function () { return chunk3M4BNKFJ_cjs.DESCRIBE_TO_PICKER_FALLBACK_MODEL; }
30
+ get: function () { return chunkF6WGGYQW_cjs.DESCRIBE_TO_PICKER_FALLBACK_MODEL; }
31
31
  });
32
32
  Object.defineProperty(exports, "DESCRIBE_TO_PICKER_MODELS", {
33
33
  enumerable: true,
34
- get: function () { return chunk3M4BNKFJ_cjs.DESCRIBE_TO_PICKER_MODELS; }
34
+ get: function () { return chunkF6WGGYQW_cjs.DESCRIBE_TO_PICKER_MODELS; }
35
35
  });
36
36
  Object.defineProperty(exports, "DESCRIBE_TO_PICKER_WITHHELD_MODELS", {
37
37
  enumerable: true,
38
- get: function () { return chunk3M4BNKFJ_cjs.DESCRIBE_TO_PICKER_WITHHELD_MODELS; }
38
+ get: function () { return chunkF6WGGYQW_cjs.DESCRIBE_TO_PICKER_WITHHELD_MODELS; }
39
39
  });
40
40
  Object.defineProperty(exports, "EFFORT_TIER_BUMP", {
41
41
  enumerable: true,
42
- get: function () { return chunk3M4BNKFJ_cjs.EFFORT_TIER_BUMP; }
42
+ get: function () { return chunkF6WGGYQW_cjs.EFFORT_TIER_BUMP; }
43
43
  });
44
44
  Object.defineProperty(exports, "LLM_CREDIT_RUNGS", {
45
45
  enumerable: true,
46
- get: function () { return chunk3M4BNKFJ_cjs.LLM_CREDIT_RUNGS; }
46
+ get: function () { return chunkF6WGGYQW_cjs.LLM_CREDIT_RUNGS; }
47
47
  });
48
48
  Object.defineProperty(exports, "LLM_FEATURE_DEFAULTS", {
49
49
  enumerable: true,
50
- get: function () { return chunk3M4BNKFJ_cjs.LLM_FEATURE_DEFAULTS; }
50
+ get: function () { return chunkF6WGGYQW_cjs.LLM_FEATURE_DEFAULTS; }
51
51
  });
52
52
  Object.defineProperty(exports, "LLM_FEATURE_DEFAULTS_FROM", {
53
53
  enumerable: true,
54
- get: function () { return chunk3M4BNKFJ_cjs.LLM_FEATURE_DEFAULTS_FROM; }
54
+ get: function () { return chunkF6WGGYQW_cjs.LLM_FEATURE_DEFAULTS_FROM; }
55
55
  });
56
56
  Object.defineProperty(exports, "LLM_FEATURE_DEFAULT_EFFORTS", {
57
57
  enumerable: true,
58
- get: function () { return chunk3M4BNKFJ_cjs.LLM_FEATURE_DEFAULT_EFFORTS; }
58
+ get: function () { return chunkF6WGGYQW_cjs.LLM_FEATURE_DEFAULT_EFFORTS; }
59
59
  });
60
60
  Object.defineProperty(exports, "LLM_MODALITY_CAPS", {
61
61
  enumerable: true,
62
- get: function () { return chunk3M4BNKFJ_cjs.LLM_MODALITY_CAPS; }
62
+ get: function () { return chunkF6WGGYQW_cjs.LLM_MODALITY_CAPS; }
63
63
  });
64
64
  Object.defineProperty(exports, "LLM_MODELS", {
65
65
  enumerable: true,
66
- get: function () { return chunk3M4BNKFJ_cjs.LLM_MODELS; }
66
+ get: function () { return chunkF6WGGYQW_cjs.LLM_MODELS; }
67
67
  });
68
68
  Object.defineProperty(exports, "LLM_MODEL_IDS", {
69
69
  enumerable: true,
70
- get: function () { return chunk3M4BNKFJ_cjs.LLM_MODEL_IDS; }
70
+ get: function () { return chunkF6WGGYQW_cjs.LLM_MODEL_IDS; }
71
+ });
72
+ Object.defineProperty(exports, "LLM_PRICE_KEY_DIRECT", {
73
+ enumerable: true,
74
+ get: function () { return chunkF6WGGYQW_cjs.LLM_PRICE_KEY_DIRECT; }
75
+ });
76
+ Object.defineProperty(exports, "LLM_PRICE_KEY_EFFORT", {
77
+ enumerable: true,
78
+ get: function () { return chunkF6WGGYQW_cjs.LLM_PRICE_KEY_EFFORT; }
71
79
  });
72
80
  Object.defineProperty(exports, "LLM_REASONING_EFFORTS", {
73
81
  enumerable: true,
74
- get: function () { return chunk3M4BNKFJ_cjs.LLM_REASONING_EFFORTS; }
82
+ get: function () { return chunkF6WGGYQW_cjs.LLM_REASONING_EFFORTS; }
75
83
  });
76
84
  Object.defineProperty(exports, "LLM_ROUTE_DEFAULTS", {
77
85
  enumerable: true,
78
- get: function () { return chunk3M4BNKFJ_cjs.LLM_ROUTE_DEFAULTS; }
86
+ get: function () { return chunkF6WGGYQW_cjs.LLM_ROUTE_DEFAULTS; }
79
87
  });
80
88
  Object.defineProperty(exports, "LLM_STRUCTURED_WITHHELD_MODELS", {
81
89
  enumerable: true,
82
- get: function () { return chunk3M4BNKFJ_cjs.LLM_STRUCTURED_WITHHELD_MODELS; }
90
+ get: function () { return chunkF6WGGYQW_cjs.LLM_STRUCTURED_WITHHELD_MODELS; }
83
91
  });
84
92
  Object.defineProperty(exports, "LLM_VENDOR_LABELS", {
85
93
  enumerable: true,
86
- get: function () { return chunk3M4BNKFJ_cjs.LLM_VENDOR_LABELS; }
94
+ get: function () { return chunkF6WGGYQW_cjs.LLM_VENDOR_LABELS; }
87
95
  });
88
96
  Object.defineProperty(exports, "LLM_VENDOR_ORDER", {
89
97
  enumerable: true,
90
- get: function () { return chunk3M4BNKFJ_cjs.LLM_VENDOR_ORDER; }
98
+ get: function () { return chunkF6WGGYQW_cjs.LLM_VENDOR_ORDER; }
91
99
  });
92
100
  Object.defineProperty(exports, "PICKABLE_LLM_MODELS", {
93
101
  enumerable: true,
94
- get: function () { return chunk3M4BNKFJ_cjs.PICKABLE_LLM_MODELS; }
102
+ get: function () { return chunkF6WGGYQW_cjs.PICKABLE_LLM_MODELS; }
95
103
  });
96
104
  Object.defineProperty(exports, "REASONING_OUTPUT_FLOOR", {
97
105
  enumerable: true,
98
- get: function () { return chunk3M4BNKFJ_cjs.REASONING_OUTPUT_FLOOR; }
106
+ get: function () { return chunkF6WGGYQW_cjs.REASONING_OUTPUT_FLOOR; }
99
107
  });
100
108
  Object.defineProperty(exports, "STRUCTURED_VISION_MODELS", {
101
109
  enumerable: true,
102
- get: function () { return chunk3M4BNKFJ_cjs.STRUCTURED_VISION_MODELS; }
110
+ get: function () { return chunkF6WGGYQW_cjs.STRUCTURED_VISION_MODELS; }
103
111
  });
104
112
  Object.defineProperty(exports, "VIDEO_ANALYSIS_LEGACY_MODELS", {
105
113
  enumerable: true,
106
- get: function () { return chunk3M4BNKFJ_cjs.VIDEO_ANALYSIS_LEGACY_MODELS; }
114
+ get: function () { return chunkF6WGGYQW_cjs.VIDEO_ANALYSIS_LEGACY_MODELS; }
107
115
  });
108
116
  Object.defineProperty(exports, "VIDEO_ANALYSIS_LLM_MODELS", {
109
117
  enumerable: true,
110
- get: function () { return chunk3M4BNKFJ_cjs.VIDEO_ANALYSIS_LLM_MODELS; }
118
+ get: function () { return chunkF6WGGYQW_cjs.VIDEO_ANALYSIS_LLM_MODELS; }
111
119
  });
112
120
  Object.defineProperty(exports, "VIDEO_ANALYSIS_MIXED_TIERS", {
113
121
  enumerable: true,
114
- get: function () { return chunk3M4BNKFJ_cjs.VIDEO_ANALYSIS_MIXED_TIERS; }
122
+ get: function () { return chunkF6WGGYQW_cjs.VIDEO_ANALYSIS_MIXED_TIERS; }
115
123
  });
116
124
  Object.defineProperty(exports, "VIDEO_ANALYSIS_TIERS", {
117
125
  enumerable: true,
118
- get: function () { return chunk3M4BNKFJ_cjs.VIDEO_ANALYSIS_TIERS; }
126
+ get: function () { return chunkF6WGGYQW_cjs.VIDEO_ANALYSIS_TIERS; }
119
127
  });
120
128
  Object.defineProperty(exports, "VIDEO_ANALYSIS_TIER_LABELS", {
121
129
  enumerable: true,
122
- get: function () { return chunk3M4BNKFJ_cjs.VIDEO_ANALYSIS_TIER_LABELS; }
130
+ get: function () { return chunkF6WGGYQW_cjs.VIDEO_ANALYSIS_TIER_LABELS; }
123
131
  });
124
132
  Object.defineProperty(exports, "VIDEO_ANALYSIS_TIER_ORDER", {
125
133
  enumerable: true,
126
- get: function () { return chunk3M4BNKFJ_cjs.VIDEO_ANALYSIS_TIER_ORDER; }
134
+ get: function () { return chunkF6WGGYQW_cjs.VIDEO_ANALYSIS_TIER_ORDER; }
127
135
  });
128
136
  Object.defineProperty(exports, "availableReasoningEfforts", {
129
137
  enumerable: true,
130
- get: function () { return chunk3M4BNKFJ_cjs.availableReasoningEfforts; }
138
+ get: function () { return chunkF6WGGYQW_cjs.availableReasoningEfforts; }
131
139
  });
132
140
  Object.defineProperty(exports, "buildLlmCreditIdentifier", {
133
141
  enumerable: true,
134
- get: function () { return chunk3M4BNKFJ_cjs.buildLlmCreditIdentifier; }
142
+ get: function () { return chunkF6WGGYQW_cjs.buildLlmCreditIdentifier; }
135
143
  });
136
144
  Object.defineProperty(exports, "defaultReasoningEffort", {
137
145
  enumerable: true,
138
- get: function () { return chunk3M4BNKFJ_cjs.defaultReasoningEffort; }
146
+ get: function () { return chunkF6WGGYQW_cjs.defaultReasoningEffort; }
139
147
  });
140
148
  Object.defineProperty(exports, "effectiveReasoningEffort", {
141
149
  enumerable: true,
142
- get: function () { return chunk3M4BNKFJ_cjs.effectiveReasoningEffort; }
150
+ get: function () { return chunkF6WGGYQW_cjs.effectiveReasoningEffort; }
143
151
  });
144
152
  Object.defineProperty(exports, "getLlmModalityCaps", {
145
153
  enumerable: true,
146
- get: function () { return chunk3M4BNKFJ_cjs.getLlmModalityCaps; }
154
+ get: function () { return chunkF6WGGYQW_cjs.getLlmModalityCaps; }
147
155
  });
148
156
  Object.defineProperty(exports, "getLlmModel", {
149
157
  enumerable: true,
150
- get: function () { return chunk3M4BNKFJ_cjs.getLlmModel; }
158
+ get: function () { return chunkF6WGGYQW_cjs.getLlmModel; }
151
159
  });
152
160
  Object.defineProperty(exports, "getLlmTier", {
153
161
  enumerable: true,
154
- get: function () { return chunk3M4BNKFJ_cjs.getLlmTier; }
162
+ get: function () { return chunkF6WGGYQW_cjs.getLlmTier; }
155
163
  });
156
164
  Object.defineProperty(exports, "groupLlmModelsByVendor", {
157
165
  enumerable: true,
158
- get: function () { return chunk3M4BNKFJ_cjs.groupLlmModelsByVendor; }
166
+ get: function () { return chunkF6WGGYQW_cjs.groupLlmModelsByVendor; }
159
167
  });
160
168
  Object.defineProperty(exports, "isLlmModelRetired", {
161
169
  enumerable: true,
162
- get: function () { return chunk3M4BNKFJ_cjs.isLlmModelRetired; }
170
+ get: function () { return chunkF6WGGYQW_cjs.isLlmModelRetired; }
163
171
  });
164
172
  Object.defineProperty(exports, "isVideoAnalysisMixedTier", {
165
173
  enumerable: true,
166
- get: function () { return chunk3M4BNKFJ_cjs.isVideoAnalysisMixedTier; }
174
+ get: function () { return chunkF6WGGYQW_cjs.isVideoAnalysisMixedTier; }
167
175
  });
168
176
  Object.defineProperty(exports, "isVideoAnalysisTier", {
169
177
  enumerable: true,
170
- get: function () { return chunk3M4BNKFJ_cjs.isVideoAnalysisTier; }
178
+ get: function () { return chunkF6WGGYQW_cjs.isVideoAnalysisTier; }
171
179
  });
172
180
  Object.defineProperty(exports, "llmCreditIdForRung", {
173
181
  enumerable: true,
174
- get: function () { return chunk3M4BNKFJ_cjs.llmCreditIdForRung; }
182
+ get: function () { return chunkF6WGGYQW_cjs.llmCreditIdForRung; }
175
183
  });
176
184
  Object.defineProperty(exports, "llmCreditRung", {
177
185
  enumerable: true,
178
- get: function () { return chunk3M4BNKFJ_cjs.llmCreditRung; }
186
+ get: function () { return chunkF6WGGYQW_cjs.llmCreditRung; }
179
187
  });
180
188
  Object.defineProperty(exports, "llmDefaultsFeature", {
181
189
  enumerable: true,
182
- get: function () { return chunk3M4BNKFJ_cjs.llmDefaultsFeature; }
190
+ get: function () { return chunkF6WGGYQW_cjs.llmDefaultsFeature; }
183
191
  });
184
192
  Object.defineProperty(exports, "llmPriceKey", {
185
193
  enumerable: true,
186
- get: function () { return chunk3M4BNKFJ_cjs.llmPriceKey; }
194
+ get: function () { return chunkF6WGGYQW_cjs.llmPriceKey; }
187
195
  });
188
196
  Object.defineProperty(exports, "llmRouteDefaults", {
189
197
  enumerable: true,
190
- get: function () { return chunk3M4BNKFJ_cjs.llmRouteDefaults; }
198
+ get: function () { return chunkF6WGGYQW_cjs.llmRouteDefaults; }
199
+ });
200
+ Object.defineProperty(exports, "llmSendsSchema", {
201
+ enumerable: true,
202
+ get: function () { return chunkF6WGGYQW_cjs.llmSendsSchema; }
191
203
  });
192
204
  Object.defineProperty(exports, "llmServesDirect", {
193
205
  enumerable: true,
194
- get: function () { return chunk3M4BNKFJ_cjs.llmServesDirect; }
206
+ get: function () { return chunkF6WGGYQW_cjs.llmServesDirect; }
195
207
  });
196
208
  Object.defineProperty(exports, "llmTierCreditIds", {
197
209
  enumerable: true,
198
- get: function () { return chunk3M4BNKFJ_cjs.llmTierCreditIds; }
210
+ get: function () { return chunkF6WGGYQW_cjs.llmTierCreditIds; }
199
211
  });
200
212
  Object.defineProperty(exports, "motionGraphicsFeature", {
201
213
  enumerable: true,
202
- get: function () { return chunk3M4BNKFJ_cjs.motionGraphicsFeature; }
214
+ get: function () { return chunkF6WGGYQW_cjs.motionGraphicsFeature; }
203
215
  });
204
216
  Object.defineProperty(exports, "orderedLlmModels", {
205
217
  enumerable: true,
206
- get: function () { return chunk3M4BNKFJ_cjs.orderedLlmModels; }
218
+ get: function () { return chunkF6WGGYQW_cjs.orderedLlmModels; }
219
+ });
220
+ Object.defineProperty(exports, "parseLlmPriceKeyModel", {
221
+ enumerable: true,
222
+ get: function () { return chunkF6WGGYQW_cjs.parseLlmPriceKeyModel; }
207
223
  });
208
224
  Object.defineProperty(exports, "pickableLlmModels", {
209
225
  enumerable: true,
210
- get: function () { return chunk3M4BNKFJ_cjs.pickableLlmModels; }
226
+ get: function () { return chunkF6WGGYQW_cjs.pickableLlmModels; }
211
227
  });
212
228
  Object.defineProperty(exports, "reasoningOutputFloor", {
213
229
  enumerable: true,
214
- get: function () { return chunk3M4BNKFJ_cjs.reasoningOutputFloor; }
230
+ get: function () { return chunkF6WGGYQW_cjs.reasoningOutputFloor; }
215
231
  });
216
232
  Object.defineProperty(exports, "resolveLlmCreditId", {
217
233
  enumerable: true,
218
- get: function () { return chunk3M4BNKFJ_cjs.resolveLlmCreditId; }
234
+ get: function () { return chunkF6WGGYQW_cjs.resolveLlmCreditId; }
219
235
  });
220
236
  Object.defineProperty(exports, "resolveVideoAnalysisModel", {
221
237
  enumerable: true,
222
- get: function () { return chunk3M4BNKFJ_cjs.resolveVideoAnalysisModel; }
238
+ get: function () { return chunkF6WGGYQW_cjs.resolveVideoAnalysisModel; }
239
+ });
240
+ Object.defineProperty(exports, "structuredWireMode", {
241
+ enumerable: true,
242
+ get: function () { return chunkF6WGGYQW_cjs.structuredWireMode; }
223
243
  });
224
244
  Object.defineProperty(exports, "supportsAdvancedMode", {
225
245
  enumerable: true,
226
- get: function () { return chunk3M4BNKFJ_cjs.supportsAdvancedMode; }
246
+ get: function () { return chunkF6WGGYQW_cjs.supportsAdvancedMode; }
227
247
  });
228
248
  //# sourceMappingURL=llm-models.cjs.map
229
249
  //# sourceMappingURL=llm-models.cjs.map
@@ -1,6 +1,6 @@
1
- import { by as ScriptProvider } from '../model-constants-Cf3zaITt.cjs';
1
+ import { bC as ScriptProvider } from '../model-constants-DWcxOmaY.cjs';
2
2
  import 'zod';
3
- import '../model-catalog-CCEcv08q.cjs';
3
+ import '../model-catalog-C_Eo35tL.cjs';
4
4
 
5
5
  /**
6
6
  * LLM Model Registry — shared between frontend and backend.
@@ -75,6 +75,18 @@ interface LlmModelDef {
75
75
  * Capability-driven so `llmCompleteStructured` never hardcodes provider ids.
76
76
  */
77
77
  structuredOutputMode?: "anthropic-tool" | "kie-response-format" | "responses-json-schema";
78
+ /**
79
+ * For a model with NO trusted `structuredOutputMode`: the wire field a
80
+ * structured call still sends its schema in, as a hint the model reads but
81
+ * the provider was not found to hold its answer to. Read through
82
+ * {@link structuredWireMode}, which every request builder uses; everything
83
+ * that decides TRUST (STRUCTURED_VISION_MODELS, the structured-model
84
+ * filters) keeps reading `structuredOutputMode` alone, so a hinted model is
85
+ * never offered where guaranteed structured output is required. Every answer
86
+ * is still parsed, validated and re-asked by `llmCompleteStructured`, as for
87
+ * any model. Never set together with `structuredOutputMode` (registry test).
88
+ */
89
+ structuredOutputHint?: "kie-response-format" | "responses-json-schema";
78
90
  /** If set, fallback to direct Anthropic SDK with this model ID when KIE.ai fails */
79
91
  directFallbackModel?: string;
80
92
  /**
@@ -118,6 +130,27 @@ interface LlmModelDef {
118
130
  directOnly?: true;
119
131
  /** Effort levels this model accepts (ascending). Absent/empty = no effort lever, picker hidden. */
120
132
  reasoningEfforts?: readonly LlmReasoningEffort[];
133
+ /**
134
+ * true = a REQUESTED effort below this model's lowest level is sent as that
135
+ * lowest level, never as nothing ({@link effectiveReasoningEffort}): with no
136
+ * effort on the wire the provider runs this model at its HIGHEST level, so
137
+ * dropping a `none` request would buy the most reasoning instead of the
138
+ * least. Auto — no effort requested at all — still sends nothing. Absent =
139
+ * a request below the lowest level is dropped (Auto), the usual rule.
140
+ */
141
+ effortBelowLowestSendsLowest?: true;
142
+ /**
143
+ * true = the PRICE of a call on this model depends on whether it sends a
144
+ * reasoning effort, not only on its lane: the aggregator adds input of its
145
+ * own to every call, whose size depends on it. So the model's price key
146
+ * names the effort a call sends ({@link llmPriceKey}: `:effort-<level>`),
147
+ * and every estimate surface quotes that call. The sizes themselves are
148
+ * backend data (`backend/src/lib/pricing/llm-cost.ts`), held to this flag by
149
+ * a backend test. No model sets it today (GPT-6.1 Terra did for part of
150
+ * 2026-11-12, until its aggregator's added input stopped depending on the
151
+ * effort).
152
+ */
153
+ effortPriced?: true;
121
154
  /**
122
155
  * Effort levels available on the DIRECT lane, when the vendor's own API
123
156
  * accepts more than the aggregator does. Absent = the direct lane offers the
@@ -244,6 +277,21 @@ declare function pickableLlmModels(currentId?: string): LlmModelDef[];
244
277
  * Single source of truth so the picker, the config panel, and the route gate
245
278
  * can't drift. */
246
279
  declare const STRUCTURED_VISION_MODELS: LlmModelDef[];
280
+ /**
281
+ * How a structured call's schema goes on the wire for `model`: its trusted
282
+ * `structuredOutputMode`, else its `structuredOutputHint`; undefined = the
283
+ * schema is not sent at all (a model with neither: plain text, parsed and
284
+ * re-asked). What the request builders read — never a TRUST decision, which
285
+ * reads `structuredOutputMode` alone.
286
+ */
287
+ declare function structuredWireMode(model: Pick<LlmModelDef, "structuredOutputMode" | "structuredOutputHint">): LlmModelDef["structuredOutputMode"];
288
+ /**
289
+ * Does a structured call on `modelId` (unset = `feature`'s default model) put
290
+ * its schema on the wire ({@link structuredWireMode})? What a request's size
291
+ * counts the schema by — a schema that is not sent is not read by the model.
292
+ * A model the registry does not know counts as yes (the larger size).
293
+ */
294
+ declare function llmSendsSchema(modelId: string | undefined, feature?: string): boolean;
247
295
  /**
248
296
  * Models {@link STRUCTURED_VISION_MODELS} carries that describe-to-picker does
249
297
  * NOT offer — now none.
@@ -390,7 +438,12 @@ declare function getLlmTier(id: string): LlmTier;
390
438
  * clamp can never disagree about what's selectable.
391
439
  */
392
440
  declare function availableReasoningEfforts(modelId: string | undefined, advanced?: boolean): readonly LlmReasoningEffort[];
393
- /** Highest level the model supports that is ≤ the requested level; undefined = treat as Auto. */
441
+ /**
442
+ * Highest level the model supports that is ≤ the requested level; undefined =
443
+ * treat as Auto. A request below the model's lowest level is dropped (Auto) —
444
+ * except on a model that declares `effortBelowLowestSendsLowest`, where it is
445
+ * sent as that lowest level. No request at all is always Auto.
446
+ */
394
447
  declare function effectiveReasoningEffort(modelId: string | undefined, requested?: string, advanced?: boolean): LlmReasoningEffort | undefined;
395
448
  /**
396
449
  * Build a composite credit identifier for an LLM feature.
@@ -458,18 +511,44 @@ declare function llmServesDirect(modelId: string | undefined, reasoningEffort?:
458
511
  * `POST /v1/credits/model-costs` (or `GET /v1/credits/model-cost?model=`) for
459
512
  * the call's estimated price: `<feature>:<modelId>`, plus `:direct` when the
460
513
  * call is served on the vendor's own API ({@link llmServesDirect}), which is
461
- * priced at the direct rate.
514
+ * priced at the direct rate, or — on a model whose price depends on the effort
515
+ * (`effortPriced`, served on the aggregator) — `:effort-<level>` naming the
516
+ * effort the call sends. On every other model the effort changes the key only
517
+ * through its lane. Read back by {@link parseLlmPriceKeyModel}.
462
518
  *
463
519
  * With no `reasoningEffort` the default effort of the feature the call
464
520
  * borrows its defaults from applies ({@link llmDefaultsFeature},
465
521
  * {@link defaultReasoningEffort}) — the effort the call then runs at — so the
466
- * key names the lane the call is held and charged on.
522
+ * key names the lane (and, where it matters, the effort) the call is held and
523
+ * charged on.
467
524
  *
468
525
  * `modelId` must already be resolved: the model the call runs on, never empty
469
526
  * (a caller with no model passes the feature's default, `LLM_FEATURE_DEFAULTS`
470
527
  * of {@link llmDefaultsFeature}). An empty id throws a `TypeError`.
471
528
  */
472
529
  declare function llmPriceKey(feature: string, modelId: string, reasoningEffort?: string, advancedMode?: boolean): string;
530
+ /** The price-key suffix of a call served on the vendor's own API (see {@link llmPriceKey}). */
531
+ declare const LLM_PRICE_KEY_DIRECT = ":direct";
532
+ /** The price-key suffix naming the effort a call sends, on an `effortPriced` model: `:effort-<level>`. */
533
+ declare const LLM_PRICE_KEY_EFFORT = ":effort-";
534
+ /** A price key's model part, read back by {@link parseLlmPriceKeyModel}. */
535
+ interface LlmPriceKeyModel {
536
+ modelId: string;
537
+ /** Present only for a key that names the direct lane. */
538
+ lane?: "direct";
539
+ /** Present only for a key that names an effort (an `effortPriced` model's). */
540
+ reasoningEffort?: LlmReasoningEffort;
541
+ }
542
+ /**
543
+ * The part of a price key after its `<feature>:` — `<modelId>`,
544
+ * `<modelId>:direct` or `<modelId>:effort-<level>` — read back, or null for
545
+ * anything that is not a key {@link llmPriceKey} could build: a model that is
546
+ * not a registry id (never a borrowed slug), an effort on a model whose price
547
+ * does not depend on it, a level it does not offer on the aggregator, any
548
+ * other suffix. The one reader both the server and the editor use, so every
549
+ * key names exactly one price.
550
+ */
551
+ declare function parseLlmPriceKeyModel(tail: string): LlmPriceKeyModel | null;
473
552
  /**
474
553
  * The credit rungs an LLM feature bills on, cheapest first. `premium-direct` is
475
554
  * reached only by a premium model served direct (decided 2026-10-08): the bump
@@ -575,4 +654,4 @@ declare function resolveVideoAnalysisModel(input?: string | null): string;
575
654
  declare const SCRIPT_LEGACY_PROVIDER_MODELS: Readonly<Record<ScriptProvider, string>>;
576
655
  declare function resolveScriptModelId(provider?: string, llmModel?: string): string;
577
656
 
578
- 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, type KieApiFormat, 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, type LlmCreditRung, type LlmFeature, type LlmModelDef, type LlmModelGroup, type LlmReasoningEffort, type LlmRouteDefaults, type LlmTier, type LlmVendor, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, SCRIPT_LEGACY_PROVIDER_MODELS, 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, type VideoAnalysisMixedTier, type VideoAnalysisModelTier, type VideoAnalysisTier, availableReasoningEfforts, buildLlmCreditIdentifier, defaultReasoningEffort, effectiveReasoningEffort, getLlmModalityCaps, getLlmModel, getLlmTier, groupLlmModelsByVendor, isLlmModelRetired, isVideoAnalysisMixedTier, isVideoAnalysisTier, llmCreditIdForRung, llmCreditRung, llmDefaultsFeature, llmPriceKey, llmRouteDefaults, llmServesDirect, llmTierCreditIds, motionGraphicsFeature, orderedLlmModels, pickableLlmModels, reasoningOutputFloor, resolveLlmCreditId, resolveScriptModelId, resolveVideoAnalysisModel, supportsAdvancedMode };
657
+ 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, type KieApiFormat, 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, type LlmCreditRung, type LlmFeature, type LlmModelDef, type LlmModelGroup, type LlmPriceKeyModel, type LlmReasoningEffort, type LlmRouteDefaults, type LlmTier, type LlmVendor, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, SCRIPT_LEGACY_PROVIDER_MODELS, 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, type VideoAnalysisMixedTier, type VideoAnalysisModelTier, type VideoAnalysisTier, 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, resolveScriptModelId, resolveVideoAnalysisModel, structuredWireMode, supportsAdvancedMode };
@@ -1,6 +1,6 @@
1
- import { by as ScriptProvider } from '../model-constants-B88p6XR0.js';
1
+ import { bC as ScriptProvider } from '../model-constants-Bg4ccSQb.js';
2
2
  import 'zod';
3
- import '../model-catalog-CCEcv08q.js';
3
+ import '../model-catalog-C_Eo35tL.js';
4
4
 
5
5
  /**
6
6
  * LLM Model Registry — shared between frontend and backend.
@@ -75,6 +75,18 @@ interface LlmModelDef {
75
75
  * Capability-driven so `llmCompleteStructured` never hardcodes provider ids.
76
76
  */
77
77
  structuredOutputMode?: "anthropic-tool" | "kie-response-format" | "responses-json-schema";
78
+ /**
79
+ * For a model with NO trusted `structuredOutputMode`: the wire field a
80
+ * structured call still sends its schema in, as a hint the model reads but
81
+ * the provider was not found to hold its answer to. Read through
82
+ * {@link structuredWireMode}, which every request builder uses; everything
83
+ * that decides TRUST (STRUCTURED_VISION_MODELS, the structured-model
84
+ * filters) keeps reading `structuredOutputMode` alone, so a hinted model is
85
+ * never offered where guaranteed structured output is required. Every answer
86
+ * is still parsed, validated and re-asked by `llmCompleteStructured`, as for
87
+ * any model. Never set together with `structuredOutputMode` (registry test).
88
+ */
89
+ structuredOutputHint?: "kie-response-format" | "responses-json-schema";
78
90
  /** If set, fallback to direct Anthropic SDK with this model ID when KIE.ai fails */
79
91
  directFallbackModel?: string;
80
92
  /**
@@ -118,6 +130,27 @@ interface LlmModelDef {
118
130
  directOnly?: true;
119
131
  /** Effort levels this model accepts (ascending). Absent/empty = no effort lever, picker hidden. */
120
132
  reasoningEfforts?: readonly LlmReasoningEffort[];
133
+ /**
134
+ * true = a REQUESTED effort below this model's lowest level is sent as that
135
+ * lowest level, never as nothing ({@link effectiveReasoningEffort}): with no
136
+ * effort on the wire the provider runs this model at its HIGHEST level, so
137
+ * dropping a `none` request would buy the most reasoning instead of the
138
+ * least. Auto — no effort requested at all — still sends nothing. Absent =
139
+ * a request below the lowest level is dropped (Auto), the usual rule.
140
+ */
141
+ effortBelowLowestSendsLowest?: true;
142
+ /**
143
+ * true = the PRICE of a call on this model depends on whether it sends a
144
+ * reasoning effort, not only on its lane: the aggregator adds input of its
145
+ * own to every call, whose size depends on it. So the model's price key
146
+ * names the effort a call sends ({@link llmPriceKey}: `:effort-<level>`),
147
+ * and every estimate surface quotes that call. The sizes themselves are
148
+ * backend data (`backend/src/lib/pricing/llm-cost.ts`), held to this flag by
149
+ * a backend test. No model sets it today (GPT-6.1 Terra did for part of
150
+ * 2026-11-12, until its aggregator's added input stopped depending on the
151
+ * effort).
152
+ */
153
+ effortPriced?: true;
121
154
  /**
122
155
  * Effort levels available on the DIRECT lane, when the vendor's own API
123
156
  * accepts more than the aggregator does. Absent = the direct lane offers the
@@ -244,6 +277,21 @@ declare function pickableLlmModels(currentId?: string): LlmModelDef[];
244
277
  * Single source of truth so the picker, the config panel, and the route gate
245
278
  * can't drift. */
246
279
  declare const STRUCTURED_VISION_MODELS: LlmModelDef[];
280
+ /**
281
+ * How a structured call's schema goes on the wire for `model`: its trusted
282
+ * `structuredOutputMode`, else its `structuredOutputHint`; undefined = the
283
+ * schema is not sent at all (a model with neither: plain text, parsed and
284
+ * re-asked). What the request builders read — never a TRUST decision, which
285
+ * reads `structuredOutputMode` alone.
286
+ */
287
+ declare function structuredWireMode(model: Pick<LlmModelDef, "structuredOutputMode" | "structuredOutputHint">): LlmModelDef["structuredOutputMode"];
288
+ /**
289
+ * Does a structured call on `modelId` (unset = `feature`'s default model) put
290
+ * its schema on the wire ({@link structuredWireMode})? What a request's size
291
+ * counts the schema by — a schema that is not sent is not read by the model.
292
+ * A model the registry does not know counts as yes (the larger size).
293
+ */
294
+ declare function llmSendsSchema(modelId: string | undefined, feature?: string): boolean;
247
295
  /**
248
296
  * Models {@link STRUCTURED_VISION_MODELS} carries that describe-to-picker does
249
297
  * NOT offer — now none.
@@ -390,7 +438,12 @@ declare function getLlmTier(id: string): LlmTier;
390
438
  * clamp can never disagree about what's selectable.
391
439
  */
392
440
  declare function availableReasoningEfforts(modelId: string | undefined, advanced?: boolean): readonly LlmReasoningEffort[];
393
- /** Highest level the model supports that is ≤ the requested level; undefined = treat as Auto. */
441
+ /**
442
+ * Highest level the model supports that is ≤ the requested level; undefined =
443
+ * treat as Auto. A request below the model's lowest level is dropped (Auto) —
444
+ * except on a model that declares `effortBelowLowestSendsLowest`, where it is
445
+ * sent as that lowest level. No request at all is always Auto.
446
+ */
394
447
  declare function effectiveReasoningEffort(modelId: string | undefined, requested?: string, advanced?: boolean): LlmReasoningEffort | undefined;
395
448
  /**
396
449
  * Build a composite credit identifier for an LLM feature.
@@ -458,18 +511,44 @@ declare function llmServesDirect(modelId: string | undefined, reasoningEffort?:
458
511
  * `POST /v1/credits/model-costs` (or `GET /v1/credits/model-cost?model=`) for
459
512
  * the call's estimated price: `<feature>:<modelId>`, plus `:direct` when the
460
513
  * call is served on the vendor's own API ({@link llmServesDirect}), which is
461
- * priced at the direct rate.
514
+ * priced at the direct rate, or — on a model whose price depends on the effort
515
+ * (`effortPriced`, served on the aggregator) — `:effort-<level>` naming the
516
+ * effort the call sends. On every other model the effort changes the key only
517
+ * through its lane. Read back by {@link parseLlmPriceKeyModel}.
462
518
  *
463
519
  * With no `reasoningEffort` the default effort of the feature the call
464
520
  * borrows its defaults from applies ({@link llmDefaultsFeature},
465
521
  * {@link defaultReasoningEffort}) — the effort the call then runs at — so the
466
- * key names the lane the call is held and charged on.
522
+ * key names the lane (and, where it matters, the effort) the call is held and
523
+ * charged on.
467
524
  *
468
525
  * `modelId` must already be resolved: the model the call runs on, never empty
469
526
  * (a caller with no model passes the feature's default, `LLM_FEATURE_DEFAULTS`
470
527
  * of {@link llmDefaultsFeature}). An empty id throws a `TypeError`.
471
528
  */
472
529
  declare function llmPriceKey(feature: string, modelId: string, reasoningEffort?: string, advancedMode?: boolean): string;
530
+ /** The price-key suffix of a call served on the vendor's own API (see {@link llmPriceKey}). */
531
+ declare const LLM_PRICE_KEY_DIRECT = ":direct";
532
+ /** The price-key suffix naming the effort a call sends, on an `effortPriced` model: `:effort-<level>`. */
533
+ declare const LLM_PRICE_KEY_EFFORT = ":effort-";
534
+ /** A price key's model part, read back by {@link parseLlmPriceKeyModel}. */
535
+ interface LlmPriceKeyModel {
536
+ modelId: string;
537
+ /** Present only for a key that names the direct lane. */
538
+ lane?: "direct";
539
+ /** Present only for a key that names an effort (an `effortPriced` model's). */
540
+ reasoningEffort?: LlmReasoningEffort;
541
+ }
542
+ /**
543
+ * The part of a price key after its `<feature>:` — `<modelId>`,
544
+ * `<modelId>:direct` or `<modelId>:effort-<level>` — read back, or null for
545
+ * anything that is not a key {@link llmPriceKey} could build: a model that is
546
+ * not a registry id (never a borrowed slug), an effort on a model whose price
547
+ * does not depend on it, a level it does not offer on the aggregator, any
548
+ * other suffix. The one reader both the server and the editor use, so every
549
+ * key names exactly one price.
550
+ */
551
+ declare function parseLlmPriceKeyModel(tail: string): LlmPriceKeyModel | null;
473
552
  /**
474
553
  * The credit rungs an LLM feature bills on, cheapest first. `premium-direct` is
475
554
  * reached only by a premium model served direct (decided 2026-10-08): the bump
@@ -575,4 +654,4 @@ declare function resolveVideoAnalysisModel(input?: string | null): string;
575
654
  declare const SCRIPT_LEGACY_PROVIDER_MODELS: Readonly<Record<ScriptProvider, string>>;
576
655
  declare function resolveScriptModelId(provider?: string, llmModel?: string): string;
577
656
 
578
- 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, type KieApiFormat, 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, type LlmCreditRung, type LlmFeature, type LlmModelDef, type LlmModelGroup, type LlmReasoningEffort, type LlmRouteDefaults, type LlmTier, type LlmVendor, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, SCRIPT_LEGACY_PROVIDER_MODELS, 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, type VideoAnalysisMixedTier, type VideoAnalysisModelTier, type VideoAnalysisTier, availableReasoningEfforts, buildLlmCreditIdentifier, defaultReasoningEffort, effectiveReasoningEffort, getLlmModalityCaps, getLlmModel, getLlmTier, groupLlmModelsByVendor, isLlmModelRetired, isVideoAnalysisMixedTier, isVideoAnalysisTier, llmCreditIdForRung, llmCreditRung, llmDefaultsFeature, llmPriceKey, llmRouteDefaults, llmServesDirect, llmTierCreditIds, motionGraphicsFeature, orderedLlmModels, pickableLlmModels, reasoningOutputFloor, resolveLlmCreditId, resolveScriptModelId, resolveVideoAnalysisModel, supportsAdvancedMode };
657
+ 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, type KieApiFormat, 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, type LlmCreditRung, type LlmFeature, type LlmModelDef, type LlmModelGroup, type LlmPriceKeyModel, type LlmReasoningEffort, type LlmRouteDefaults, type LlmTier, type LlmVendor, PICKABLE_LLM_MODELS, REASONING_OUTPUT_FLOOR, SCRIPT_LEGACY_PROVIDER_MODELS, 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, type VideoAnalysisMixedTier, type VideoAnalysisModelTier, type VideoAnalysisTier, 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, resolveScriptModelId, resolveVideoAnalysisModel, structuredWireMode, supportsAdvancedMode };
@@ -1,4 +1,4 @@
1
- export { SCRIPT_LEGACY_PROVIDER_MODELS, resolveScriptModelId } from '../chunk-ZES6EZC4.js';
2
- 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 } from '../chunk-FVII3KHN.js';
1
+ export { SCRIPT_LEGACY_PROVIDER_MODELS, resolveScriptModelId } from '../chunk-4MMZD63H.js';
2
+ 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 } from '../chunk-KMGCHV6O.js';
3
3
  //# sourceMappingURL=llm-models.js.map
4
4
  //# sourceMappingURL=llm-models.js.map