@nodaro/shared 3.63.0 → 3.65.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.
- package/dist/{chunk-3K24DWOH.js → chunk-222QM7CO.js} +3 -3
- package/dist/{chunk-3K24DWOH.js.map → chunk-222QM7CO.js.map} +1 -1
- package/dist/chunk-27HA6YOL.cjs +377 -0
- package/dist/chunk-27HA6YOL.cjs.map +1 -0
- package/dist/{chunk-4DVWXEB6.js → chunk-2NKF476Z.js} +3 -3
- package/dist/{chunk-4DVWXEB6.js.map → chunk-2NKF476Z.js.map} +1 -1
- package/dist/chunk-3AU52TSW.js +143 -0
- package/dist/chunk-3AU52TSW.js.map +1 -0
- package/dist/{chunk-F6WGGYQW.cjs → chunk-5NVGKXJV.cjs} +68 -29
- package/dist/chunk-5NVGKXJV.cjs.map +1 -0
- package/dist/{chunk-HWQ2SYNA.js → chunk-5SSMPYE5.js} +99 -9
- package/dist/chunk-5SSMPYE5.js.map +1 -0
- package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
- package/dist/chunk-6BRWPJPP.cjs.map +1 -0
- package/dist/{chunk-KHH54GRP.cjs → chunk-6ET3KDO4.cjs} +15 -338
- package/dist/chunk-6ET3KDO4.cjs.map +1 -0
- package/dist/{chunk-TM5JYSJF.cjs → chunk-6OSIOVF7.cjs} +98 -37
- package/dist/chunk-6OSIOVF7.cjs.map +1 -0
- package/dist/{chunk-YUER7TJG.js → chunk-6X5PBAC4.js} +13 -4
- package/dist/chunk-6X5PBAC4.js.map +1 -0
- package/dist/chunk-7BN4EDIC.cjs +185 -0
- package/dist/chunk-7BN4EDIC.cjs.map +1 -0
- package/dist/{chunk-6M563QE6.js → chunk-7OWXHW7Z.js} +78 -28
- package/dist/chunk-7OWXHW7Z.js.map +1 -0
- package/dist/{chunk-FXGNRYQQ.js → chunk-AT53ZQUC.js} +3 -3
- package/dist/{chunk-FXGNRYQQ.js.map → chunk-AT53ZQUC.js.map} +1 -1
- package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
- package/dist/chunk-BQYCZLMF.js.map +1 -0
- package/dist/{chunk-34QLPTSA.js → chunk-BSTAAGLY.js} +3 -3
- package/dist/{chunk-34QLPTSA.js.map → chunk-BSTAAGLY.js.map} +1 -1
- package/dist/{chunk-PSKZKLDG.js → chunk-CW6MMQNO.js} +562 -26
- package/dist/chunk-CW6MMQNO.js.map +1 -0
- package/dist/{chunk-EPXGG27L.js → chunk-D5Y3EYRM.js} +5 -5
- package/dist/{chunk-EPXGG27L.js.map → chunk-D5Y3EYRM.js.map} +1 -1
- package/dist/{chunk-XGVJGNZW.cjs → chunk-DQ2PARNH.cjs} +15 -5
- package/dist/chunk-DQ2PARNH.cjs.map +1 -0
- package/dist/{chunk-6BZC2ZHC.cjs → chunk-E66HSC2E.cjs} +9 -9
- package/dist/{chunk-6BZC2ZHC.cjs.map → chunk-E66HSC2E.cjs.map} +1 -1
- package/dist/{chunk-NIAFR5EE.js → chunk-FGBGKBML.js} +32 -3
- package/dist/chunk-FGBGKBML.js.map +1 -0
- package/dist/{chunk-M5OCFGHF.cjs → chunk-FI3HJZWM.cjs} +588 -25
- package/dist/chunk-FI3HJZWM.cjs.map +1 -0
- package/dist/{chunk-L2TVY6XN.cjs → chunk-FJZTQTF4.cjs} +4 -4
- package/dist/{chunk-L2TVY6XN.cjs.map → chunk-FJZTQTF4.cjs.map} +1 -1
- package/dist/{chunk-XGGZWA4A.cjs → chunk-GJ3D5X4X.cjs} +52 -49
- package/dist/chunk-GJ3D5X4X.cjs.map +1 -0
- package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
- package/dist/chunk-H5KHWTAE.js.map +1 -0
- package/dist/{chunk-MD4XHED4.js → chunk-H745DQ6V.js} +3 -3
- package/dist/{chunk-MD4XHED4.js.map → chunk-H745DQ6V.js.map} +1 -1
- package/dist/{chunk-KCZHQH2O.js → chunk-HAH2F7LT.js} +4 -4
- package/dist/{chunk-KCZHQH2O.js.map → chunk-HAH2F7LT.js.map} +1 -1
- package/dist/{chunk-V5EEQR2U.cjs → chunk-JQMFJAYU.cjs} +21 -21
- package/dist/{chunk-V5EEQR2U.cjs.map → chunk-JQMFJAYU.cjs.map} +1 -1
- package/dist/{chunk-WZVIBAKN.cjs → chunk-JYU5EIRM.cjs} +12 -12
- package/dist/{chunk-WZVIBAKN.cjs.map → chunk-JYU5EIRM.cjs.map} +1 -1
- package/dist/{chunk-Y35JQPT6.cjs → chunk-K6RIN3LW.cjs} +142 -45
- package/dist/chunk-K6RIN3LW.cjs.map +1 -0
- package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
- package/dist/chunk-KSHAAPQF.cjs.map +1 -0
- package/dist/{chunk-2PU3AGGS.cjs → chunk-KTCEKGBJ.cjs} +7 -7
- package/dist/{chunk-2PU3AGGS.cjs.map → chunk-KTCEKGBJ.cjs.map} +1 -1
- package/dist/{chunk-LH72PQO2.cjs → chunk-KWYS4IIM.cjs} +165 -50
- package/dist/chunk-KWYS4IIM.cjs.map +1 -0
- package/dist/{chunk-GSKLPI3J.cjs → chunk-MIT2USTS.cjs} +118 -61
- package/dist/chunk-MIT2USTS.cjs.map +1 -0
- package/dist/{chunk-Y4GCJJPF.cjs → chunk-NYZQOIXJ.cjs} +35 -2
- package/dist/chunk-NYZQOIXJ.cjs.map +1 -0
- package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
- package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
- package/dist/{chunk-X5BAFW3Q.cjs → chunk-PGDR7CO3.cjs} +8 -8
- package/dist/{chunk-X5BAFW3Q.cjs.map → chunk-PGDR7CO3.cjs.map} +1 -1
- package/dist/{chunk-OV3JTKBY.js → chunk-PL7AQQV7.js} +123 -22
- package/dist/chunk-PL7AQQV7.js.map +1 -0
- package/dist/chunk-Q4YOLT4M.js +164 -0
- package/dist/chunk-Q4YOLT4M.js.map +1 -0
- package/dist/{chunk-GMBDLNLD.cjs → chunk-R5ILCNCC.cjs} +197 -60
- package/dist/chunk-R5ILCNCC.cjs.map +1 -0
- package/dist/chunk-RP4KQUNU.cjs +168 -0
- package/dist/chunk-RP4KQUNU.cjs.map +1 -0
- package/dist/{chunk-77WU3V3J.cjs → chunk-SPU7MUWE.cjs} +6 -6
- package/dist/{chunk-77WU3V3J.cjs.map → chunk-SPU7MUWE.cjs.map} +1 -1
- package/dist/{chunk-XBTYGQ6Z.js → chunk-ST7OBB5J.js} +8 -5
- package/dist/chunk-ST7OBB5J.js.map +1 -0
- package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
- package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
- package/dist/{chunk-BMJVKYVB.js → chunk-V5NLQ4L5.js} +123 -7
- package/dist/chunk-V5NLQ4L5.js.map +1 -0
- package/dist/{chunk-KMGCHV6O.js → chunk-V6OXSXIX.js} +63 -30
- package/dist/chunk-V6OXSXIX.js.map +1 -0
- package/dist/{chunk-LMAQUR55.cjs → chunk-WQMPIURW.cjs} +6 -6
- package/dist/{chunk-LMAQUR55.cjs.map → chunk-WQMPIURW.cjs.map} +1 -1
- package/dist/{chunk-ZPE2ZTJ4.cjs → chunk-WZG6GZIL.cjs} +4 -4
- package/dist/{chunk-ZPE2ZTJ4.cjs.map → chunk-WZG6GZIL.cjs.map} +1 -1
- package/dist/{chunk-AE3AAJ4O.js → chunk-XJANKTIL.js} +3 -3
- package/dist/{chunk-AE3AAJ4O.js.map → chunk-XJANKTIL.js.map} +1 -1
- package/dist/{chunk-O7RZRUMZ.js → chunk-XJWED257.js} +14 -309
- package/dist/chunk-XJWED257.js.map +1 -0
- package/dist/chunk-XSSLNINL.js +346 -0
- package/dist/chunk-XSSLNINL.js.map +1 -0
- package/dist/{chunk-6TGB7ECA.cjs → chunk-YD4XY74W.cjs} +12 -8
- package/dist/chunk-YD4XY74W.cjs.map +1 -0
- package/dist/{chunk-YX6TFX7H.js → chunk-YMZUE2IX.js} +66 -11
- package/dist/chunk-YMZUE2IX.js.map +1 -0
- package/dist/{chunk-4MMZD63H.js → chunk-Z77M7Q2R.js} +3 -3
- package/dist/{chunk-4MMZD63H.js.map → chunk-Z77M7Q2R.js.map} +1 -1
- package/dist/{chunk-CZ5IQB3L.js → chunk-ZSRXY5YT.js} +8 -5
- package/dist/chunk-ZSRXY5YT.js.map +1 -0
- package/dist/entries/apps.cjs +43 -42
- package/dist/entries/apps.js +8 -7
- package/dist/entries/captions.cjs +38 -30
- package/dist/entries/captions.d.cts +48 -2
- package/dist/entries/captions.d.ts +48 -2
- package/dist/entries/captions.js +1 -1
- package/dist/entries/credits.cjs +319 -191
- package/dist/entries/credits.d.cts +260 -19
- package/dist/entries/credits.d.ts +260 -19
- package/dist/entries/credits.js +11 -11
- package/dist/entries/entities.cjs +202 -193
- package/dist/entries/entities.d.cts +44 -9
- package/dist/entries/entities.d.ts +44 -9
- package/dist/entries/entities.js +2 -1
- package/dist/entries/llm-models.cjs +86 -62
- package/dist/entries/llm-models.d.cts +73 -20
- package/dist/entries/llm-models.d.ts +73 -20
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +79 -63
- package/dist/entries/media.d.cts +154 -1
- package/dist/entries/media.d.ts +154 -1
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +205 -109
- package/dist/entries/model-catalog.d.cts +65 -58
- package/dist/entries/model-catalog.d.ts +65 -58
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +527 -346
- package/dist/entries/models.d.cts +86 -7
- package/dist/entries/models.d.ts +86 -7
- package/dist/entries/models.js +6 -5
- package/dist/entries/nodes.cjs +220 -211
- package/dist/entries/nodes.d.cts +46 -3
- package/dist/entries/nodes.d.ts +46 -3
- package/dist/entries/nodes.js +10 -9
- package/dist/entries/pipeline.cjs +156 -152
- package/dist/entries/pipeline.d.cts +14 -4
- package/dist/entries/pipeline.d.ts +14 -4
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +174 -145
- package/dist/entries/video.d.cts +114 -2
- package/dist/entries/video.d.ts +114 -2
- package/dist/entries/video.js +7 -6
- package/dist/entries/workflow.cjs +150 -150
- package/dist/entries/workflow.d.cts +1 -1
- package/dist/entries/workflow.d.ts +1 -1
- package/dist/entries/workflow.js +2 -2
- package/dist/index.cjs +2430 -1929
- package/dist/index.d.cts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +28 -27
- package/dist/{model-catalog-C_Eo35tL.d.cts → model-catalog-BoUKGFNl.d.cts} +182 -3
- package/dist/{model-catalog-C_Eo35tL.d.ts → model-catalog-BoUKGFNl.d.ts} +182 -3
- package/dist/{model-constants-DWcxOmaY.d.cts → model-constants-BElS3AeE.d.ts} +142 -23
- package/dist/{model-constants-Bg4ccSQb.d.ts → model-constants-CpQz1bGa.d.cts} +142 -23
- package/dist/tts-capabilities-BtnDWK9K.d.ts +133 -0
- package/dist/tts-capabilities-C52UccTI.d.cts +133 -0
- package/package.json +1 -1
- package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
- package/src/__tests__/dialogue-capabilities.test.ts +167 -6
- package/src/__tests__/extend-providers.test.ts +353 -26
- package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
- package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
- package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
- package/src/__tests__/flux-3-klein.test.ts +203 -0
- package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
- package/src/__tests__/kling4-catalog.test.ts +1 -1
- package/src/__tests__/llm-models.test.ts +48 -13
- package/src/__tests__/llm-price-key.test.ts +12 -0
- package/src/__tests__/model-makers.test.ts +3 -0
- package/src/__tests__/node-runtime-keys.test.ts +7 -0
- package/src/__tests__/normalize-node-params.test.ts +147 -1
- package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
- package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
- package/src/__tests__/sequence-execution.test.ts +22 -1
- package/src/__tests__/speech-pricing.test.ts +62 -1
- package/src/__tests__/suno-credit-type.test.ts +21 -2
- package/src/__tests__/transcribe-capabilities.test.ts +4 -2
- package/src/__tests__/tts-capabilities.test.ts +160 -4
- package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
- package/src/__tests__/video-analysis-pricing.test.ts +22 -9
- package/src/__tests__/video-subjects.test.ts +192 -0
- package/src/__tests__/wired-character-names.test.ts +142 -0
- package/src/caption-styles.ts +62 -0
- package/src/credit-estimators/add-captions-nemotron.ts +73 -0
- package/src/credit-estimators/index.ts +14 -0
- package/src/credit-estimators/speech.ts +57 -9
- package/src/credit-identifiers.ts +284 -13
- package/src/dialogue-capabilities.ts +220 -3
- package/src/dubbing-structure.ts +186 -0
- package/src/entries/captions.ts +2 -0
- package/src/entries/credits.ts +25 -1
- package/src/entries/entities.ts +2 -0
- package/src/entries/llm-models.ts +7 -0
- package/src/entries/media.ts +3 -1
- package/src/entries/model-catalog.ts +30 -0
- package/src/entries/models.ts +54 -0
- package/src/entries/nodes.ts +2 -0
- package/src/entries/pipeline.ts +1 -1
- package/src/entries/video.ts +8 -1
- package/src/flux-3-klein.ts +69 -0
- package/src/gemini-tts.ts +144 -0
- package/src/input-image-pricing.ts +23 -6
- package/src/llm-models.ts +130 -36
- package/src/model-catalog.ts +539 -25
- package/src/model-constants.ts +247 -25
- package/src/node-default-mappings.ts +3 -0
- package/src/node-runtime-keys.ts +3 -0
- package/src/normalize-node-params.ts +123 -2
- package/src/seedance-extend-rate.ts +116 -0
- package/src/sequence-execution.ts +24 -0
- package/src/transcribe-preflight.ts +23 -0
- package/src/tts-capabilities.ts +193 -1
- package/src/video-analysis-pricing.ts +39 -15
- package/src/video-character-refs.ts +160 -3
- package/src/wired-character-names.ts +134 -18
- package/src/wired-character-video-subjects.ts +63 -0
- package/dist/chunk-63H4C56Q.cjs +0 -38
- package/dist/chunk-63H4C56Q.cjs.map +0 -1
- package/dist/chunk-6M563QE6.js.map +0 -1
- package/dist/chunk-6TGB7ECA.cjs.map +0 -1
- package/dist/chunk-6XUG4L7X.cjs +0 -54
- package/dist/chunk-6XUG4L7X.cjs.map +0 -1
- package/dist/chunk-BLJUCPMV.cjs.map +0 -1
- package/dist/chunk-BMJVKYVB.js.map +0 -1
- package/dist/chunk-CZ5IQB3L.js.map +0 -1
- package/dist/chunk-F6WGGYQW.cjs.map +0 -1
- package/dist/chunk-GMBDLNLD.cjs.map +0 -1
- package/dist/chunk-GSKLPI3J.cjs.map +0 -1
- package/dist/chunk-HBXF6RUU.js +0 -31
- package/dist/chunk-HBXF6RUU.js.map +0 -1
- package/dist/chunk-HSHCCBIV.js.map +0 -1
- package/dist/chunk-HWQ2SYNA.js.map +0 -1
- package/dist/chunk-IY3Y462W.js +0 -42
- package/dist/chunk-IY3Y462W.js.map +0 -1
- package/dist/chunk-KHH54GRP.cjs.map +0 -1
- package/dist/chunk-KMGCHV6O.js.map +0 -1
- package/dist/chunk-LH72PQO2.cjs.map +0 -1
- package/dist/chunk-M5OCFGHF.cjs.map +0 -1
- package/dist/chunk-NIAFR5EE.js.map +0 -1
- package/dist/chunk-O7RZRUMZ.js.map +0 -1
- package/dist/chunk-OV3JTKBY.js.map +0 -1
- package/dist/chunk-PSKZKLDG.js.map +0 -1
- package/dist/chunk-Q6IES3U2.js.map +0 -1
- package/dist/chunk-TM5JYSJF.cjs.map +0 -1
- package/dist/chunk-WRSWH7US.cjs.map +0 -1
- package/dist/chunk-XBTYGQ6Z.js.map +0 -1
- package/dist/chunk-XGGZWA4A.cjs.map +0 -1
- package/dist/chunk-XGVJGNZW.cjs.map +0 -1
- package/dist/chunk-Y35JQPT6.cjs.map +0 -1
- package/dist/chunk-Y4GCJJPF.cjs.map +0 -1
- package/dist/chunk-YUER7TJG.js.map +0 -1
- package/dist/chunk-YX6TFX7H.js.map +0 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { MODEL_CATALOG, REPLICA_CONSENT_ATTESTATION } from './chunk-CW6MMQNO.js';
|
|
2
|
+
|
|
3
|
+
// src/tts-capabilities.ts
|
|
4
|
+
var TTS_PROVIDER_ALIASES = {
|
|
5
|
+
elevenlabs: "elevenlabs-turbo"
|
|
6
|
+
};
|
|
7
|
+
var TTS_FALLBACK_PROVIDER = "elevenlabs-turbo";
|
|
8
|
+
function canonicalTtsProvider(provider) {
|
|
9
|
+
return typeof provider === "string" && Object.hasOwn(TTS_PROVIDER_ALIASES, provider) ? TTS_PROVIDER_ALIASES[provider] : provider;
|
|
10
|
+
}
|
|
11
|
+
function findTtsCapabilities(provider) {
|
|
12
|
+
if (typeof provider !== "string" || !provider) return void 0;
|
|
13
|
+
const id = canonicalTtsProvider(provider);
|
|
14
|
+
if (!Object.hasOwn(MODEL_CATALOG, id)) return void 0;
|
|
15
|
+
const entry = MODEL_CATALOG[id];
|
|
16
|
+
return entry.modes.includes("tts") ? entry.tts : void 0;
|
|
17
|
+
}
|
|
18
|
+
function getTtsCapabilities(provider) {
|
|
19
|
+
return findTtsCapabilities(provider) ?? MODEL_CATALOG[TTS_FALLBACK_PROVIDER].tts;
|
|
20
|
+
}
|
|
21
|
+
function ttsSupportsAudioTags(provider) {
|
|
22
|
+
return getTtsCapabilities(provider).audioTags;
|
|
23
|
+
}
|
|
24
|
+
function ttsSupportsSsmlBreaks(provider) {
|
|
25
|
+
return getTtsCapabilities(provider).ssmlBreaks;
|
|
26
|
+
}
|
|
27
|
+
function ttsSupportsStitching(provider) {
|
|
28
|
+
return getTtsCapabilities(provider).stitching;
|
|
29
|
+
}
|
|
30
|
+
function ttsHasLever(provider, lever) {
|
|
31
|
+
return getTtsCapabilities(provider).levers.includes(lever);
|
|
32
|
+
}
|
|
33
|
+
function ttsSupportsTimestamps(provider) {
|
|
34
|
+
return getTtsCapabilities(provider).timestamps;
|
|
35
|
+
}
|
|
36
|
+
function ttsLanguageCodes(provider) {
|
|
37
|
+
return getTtsCapabilities(provider).languages;
|
|
38
|
+
}
|
|
39
|
+
function ttsNamedVoices(provider) {
|
|
40
|
+
return getTtsCapabilities(provider).voices;
|
|
41
|
+
}
|
|
42
|
+
function ttsAcceptsVoice(provider, voice) {
|
|
43
|
+
const named = ttsNamedVoices(provider);
|
|
44
|
+
return !named || named.some((v) => v.id === voice);
|
|
45
|
+
}
|
|
46
|
+
function ttsNamedVoiceFor(provider, voice) {
|
|
47
|
+
const caps = getTtsCapabilities(provider);
|
|
48
|
+
if (!caps.voices) return void 0;
|
|
49
|
+
return typeof voice === "string" && caps.voices.some((v) => v.id === voice) ? voice : caps.defaultVoice;
|
|
50
|
+
}
|
|
51
|
+
function ttsDirection(provider) {
|
|
52
|
+
return getTtsCapabilities(provider).direction;
|
|
53
|
+
}
|
|
54
|
+
function ttsAngleTags(provider) {
|
|
55
|
+
const caps = getTtsCapabilities(provider);
|
|
56
|
+
return caps.audioTags && caps.tagSyntax === "angle" ? caps.tags ?? [] : void 0;
|
|
57
|
+
}
|
|
58
|
+
function ttsDirectionFor(provider, values) {
|
|
59
|
+
const sheet = ttsDirection(provider);
|
|
60
|
+
if (!sheet) return {};
|
|
61
|
+
const text = (value, max) => {
|
|
62
|
+
if (max === void 0 || typeof value !== "string") return void 0;
|
|
63
|
+
const trimmed = value.trim();
|
|
64
|
+
return trimmed && trimmed.length <= max ? trimmed : void 0;
|
|
65
|
+
};
|
|
66
|
+
const choice = (value, choices) => choices && typeof value === "string" && choices.includes(value) ? value : void 0;
|
|
67
|
+
const out = {};
|
|
68
|
+
const style = sheet.styles ? choice(values.styleDirection, sheet.styles) : text(values.styleDirection, sheet.styleMaxChars);
|
|
69
|
+
if (style !== void 0) out.styleDirection = style;
|
|
70
|
+
const pace = choice(values.pace, sheet.paces);
|
|
71
|
+
if (pace !== void 0) out.pace = pace;
|
|
72
|
+
const accent = choice(values.accent, sheet.accents);
|
|
73
|
+
if (accent !== void 0) out.accent = accent;
|
|
74
|
+
const profile = text(values.audioProfile, sheet.audioProfileMaxChars);
|
|
75
|
+
if (profile !== void 0) out.audioProfile = profile;
|
|
76
|
+
return out;
|
|
77
|
+
}
|
|
78
|
+
function ttsDirectionProblem(provider, values) {
|
|
79
|
+
const sheet = ttsDirection(provider);
|
|
80
|
+
if (!sheet) return void 0;
|
|
81
|
+
const textProblem = (field, max) => {
|
|
82
|
+
const value = values[field];
|
|
83
|
+
if (max === void 0 || value === void 0) return void 0;
|
|
84
|
+
if (typeof value !== "string") return { field, message: `${field} must be a string` };
|
|
85
|
+
return value.trim().length > max ? { field, message: `${field} must be at most ${max} characters` } : void 0;
|
|
86
|
+
};
|
|
87
|
+
const choiceProblem = (field, choices) => {
|
|
88
|
+
const value = values[field];
|
|
89
|
+
if (!choices || value === void 0 || value === "") return void 0;
|
|
90
|
+
return typeof value === "string" && choices.includes(value) ? void 0 : { field, message: `${field} must be one of: ${choices.join(", ")}` };
|
|
91
|
+
};
|
|
92
|
+
return (sheet.styles ? choiceProblem("styleDirection", sheet.styles) : textProblem("styleDirection", sheet.styleMaxChars)) ?? choiceProblem("pace", sheet.paces) ?? choiceProblem("accent", sheet.accents) ?? textProblem("audioProfile", sheet.audioProfileMaxChars);
|
|
93
|
+
}
|
|
94
|
+
var namedVoiceIds;
|
|
95
|
+
function anyModelsNamedVoice(voice) {
|
|
96
|
+
namedVoiceIds ??= new Set(
|
|
97
|
+
Object.values(MODEL_CATALOG).flatMap((m) => m.modes.includes("tts") ? (m.tts?.voices ?? []).map((v) => v.id) : [])
|
|
98
|
+
);
|
|
99
|
+
return namedVoiceIds.has(voice);
|
|
100
|
+
}
|
|
101
|
+
function ttsVoiceForModel(provider, voice) {
|
|
102
|
+
const named = typeof voice === "string" && voice.length > 0 ? voice : void 0;
|
|
103
|
+
const caps = getTtsCapabilities(provider);
|
|
104
|
+
if (caps.voices) {
|
|
105
|
+
if (named === void 0) return void 0;
|
|
106
|
+
return caps.voices.some((v) => v.id === named) ? named : caps.defaultVoice;
|
|
107
|
+
}
|
|
108
|
+
return named !== void 0 && anyModelsNamedVoice(named) ? void 0 : named;
|
|
109
|
+
}
|
|
110
|
+
function ttsTakesReplica(provider) {
|
|
111
|
+
return getTtsCapabilities(provider).replica === true;
|
|
112
|
+
}
|
|
113
|
+
function replicaModels() {
|
|
114
|
+
return Object.values(MODEL_CATALOG).filter((m) => m.modes.includes("tts") && m.tts?.replica === true).map((m) => m.id);
|
|
115
|
+
}
|
|
116
|
+
function isHttpsLink(value) {
|
|
117
|
+
if (typeof value !== "string") return false;
|
|
118
|
+
try {
|
|
119
|
+
return new URL(value).protocol === "https:";
|
|
120
|
+
} catch {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function replicaOf(value) {
|
|
125
|
+
if (!value || typeof value !== "object") return void 0;
|
|
126
|
+
const { sourceAudioUrl, consentAudioUrl } = value;
|
|
127
|
+
return isHttpsLink(sourceAudioUrl) && isHttpsLink(consentAudioUrl) ? { sourceAudioUrl, consentAudioUrl } : void 0;
|
|
128
|
+
}
|
|
129
|
+
function ttsReplicaProblem(provider, value) {
|
|
130
|
+
if (value === void 0 || value === null) return void 0;
|
|
131
|
+
if (!ttsTakesReplica(provider)) {
|
|
132
|
+
return `${provider ?? "This model"} does not clone a voice; a one-off clone runs on ${replicaModels().join(", ")}`;
|
|
133
|
+
}
|
|
134
|
+
return replicaOf(value) ? void 0 : "replica needs sourceAudioUrl and consentAudioUrl, each an https link to a WAV recording";
|
|
135
|
+
}
|
|
136
|
+
function replicaConsentProblem(value) {
|
|
137
|
+
if (value === void 0 || value === null) return void 0;
|
|
138
|
+
return value.consent === true ? void 0 : `replica.consent must be true: it confirms "${REPLICA_CONSENT_ATTESTATION}"`;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, canonicalTtsProvider, findTtsCapabilities, getTtsCapabilities, replicaConsentProblem, replicaModels, replicaOf, ttsAcceptsVoice, ttsAngleTags, ttsDirection, ttsDirectionFor, ttsDirectionProblem, ttsHasLever, ttsLanguageCodes, ttsNamedVoiceFor, ttsNamedVoices, ttsReplicaProblem, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps, ttsTakesReplica, ttsVoiceForModel };
|
|
142
|
+
//# sourceMappingURL=chunk-3AU52TSW.js.map
|
|
143
|
+
//# sourceMappingURL=chunk-3AU52TSW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tts-capabilities.ts"],"names":[],"mappings":";;;AAmBO,IAAM,oBAAA,GAAyD;AAAA,EACpE,UAAA,EAAY;AACd;AAGO,IAAM,qBAAA,GAAwB;AAQ9B,SAAS,qBAAqB,QAAA,EAA0B;AAC7D,EAAA,OAAO,OAAO,QAAA,KAAa,QAAA,IAAY,MAAA,CAAO,MAAA,CAAO,sBAAsB,QAAQ,CAAA,GAAI,oBAAA,CAAqB,QAAQ,CAAA,GAAK,QAAA;AAC3H;AAGO,SAAS,oBAAoB,QAAA,EAA2D;AAG7F,EAAA,IAAI,OAAO,QAAA,KAAa,QAAA,IAAY,CAAC,UAAU,OAAO,MAAA;AACtD,EAAA,MAAM,EAAA,GAAK,qBAAqB,QAAQ,CAAA;AACxC,EAAA,IAAI,CAAC,MAAA,CAAO,MAAA,CAAO,aAAA,EAAe,EAAE,GAAG,OAAO,MAAA;AAC9C,EAAA,MAAM,KAAA,GAAQ,cAAc,EAAE,CAAA;AAC9B,EAAA,OAAO,MAAM,KAAA,CAAM,QAAA,CAAS,KAAK,CAAA,GAAI,MAAM,GAAA,GAAM,MAAA;AACnD;AAQO,SAAS,mBAAmB,QAAA,EAA+C;AAChF,EAAA,OAAO,mBAAA,C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AA,IAAK,WAAA,CAAY,eAAe,CAAA,GAAI,EAAE,cAAA,EAAgB,eAAA,EAAgB,GAAI,MAAA;AAC7G;AASO,SAAS,iBAAA,CAAkB,UAA8B,KAAA,EAAoC;AAClG,EAAA,IAAI,KAAA,KAAU,MAAA,IAAa,KAAA,KAAU,IAAA,EAAM,OAAO,MAAA;AAClD,EAAA,IAAI,CAAC,eAAA,CAAgB,QAAQ,CAAA,EAAG;AAC9B,IAAA,OAAO,CAAA,EAAG,YAAY,YAAY,CAAA,iDAAA,EAAoD,eAAc,CAAE,IAAA,CAAK,IAAI,CAAC,CAAA,CAAA;AAAA,EAClH;AACA,EAAA,OAAO,SAAA,CAAU,KAAK,CAAA,GAAI,MAAA,GAAY,yFAAA;AACxC;AAQO,SAAS,sBAAsB,KAAA,EAAoC;AACxE,EAAA,IAAI,KAAA,KAAU,MAAA,IAAa,KAAA,KAAU,IAAA,EAAM,OAAO,MAAA;AAClD,EAAA,OAAQ,KAAA,CAAgC,OAAA,KAAY,IAAA,GAChD,MAAA,GACA,8CAA8C,2BAA2B,CAAA,CAAA,CAAA;AAC/E","file":"chunk-3AU52TSW.js","sourcesContent":["/**\n * Capability lookups for the text-to-speech lane.\n *\n * Every \"does this model do X\" decision on that lane reads the model's `tts`\n * sheet in `MODEL_CATALOG` through these helpers — tag stripping, which voice\n * settings are sent and shown, the language picker, whether neighbouring text\n * is sent. Declare the sheet honestly\n * on the catalog entry and a new model is covered everywhere; do not compare a\n * provider id by hand.\n *\n * \"The text-to-speech lane\" means the models that list the `tts` mode. The\n * dialogue models carry a sheet too, read by `dialogue-capabilities.ts`; a\n * text-to-speech request that names one runs as the fallback model, so these\n * helpers answer for the fallback there.\n */\nimport { MODEL_CATALOG, type TtsCapabilities, type TtsDirectionSheet, type TtsSettingLever } from \"./model-catalog.js\"\nimport { REPLICA_CONSENT_ATTESTATION, type TtsNamedVoice, type TtsReplica } from \"./gemini-tts.js\"\n\n/** Legacy provider ids that are another model under an old name. They have no catalog entry of their own. */\nexport const TTS_PROVIDER_ALIASES: Readonly<Record<string, string>> = {\n elevenlabs: \"elevenlabs-turbo\",\n}\n\n/** The model a request runs on when its provider id is missing or unknown. */\nexport const TTS_FALLBACK_PROVIDER = \"elevenlabs-turbo\"\n\n/**\n * Resolve a legacy alias to the catalog id it runs as. Any other id passes\n * through unchanged. Own properties only: an id that happens to be the name of\n * an inherited object member (`constructor`, `__proto__`, `toString`) is an\n * unknown id like any other, never a function.\n */\nexport function canonicalTtsProvider(provider: string): string {\n return typeof provider === \"string\" && Object.hasOwn(TTS_PROVIDER_ALIASES, provider) ? TTS_PROVIDER_ALIASES[provider]! : provider\n}\n\n/** The capability sheet of a text-to-speech model, or `undefined` when the id is not one. */\nexport function findTtsCapabilities(provider: string | undefined): TtsCapabilities | undefined {\n // `typeof`: node data can be written straight into workflow JSON, so the \"string\" is not guaranteed — and\n // `Object.hasOwn` would coerce an array like [\"elevenlabs-v3\"] into that model's id. A non-string is an unknown id.\n if (typeof provider !== \"string\" || !provider) return undefined\n const id = canonicalTtsProvider(provider)\n if (!Object.hasOwn(MODEL_CATALOG, id)) return undefined\n const entry = MODEL_CATALOG[id]!\n return entry.modes.includes(\"tts\") ? entry.tts : undefined\n}\n\n/**\n * The capability sheet a text-to-speech request will actually run under: a\n * missing or unknown provider id runs as {@link TTS_FALLBACK_PROVIDER}, so it\n * gets that sheet — including its `maxChars` (turbo's 40,000), where\n * `getMaxTtsChars` keeps answering its 5,000 default for such ids.\n */\nexport function getTtsCapabilities(provider: string | undefined): TtsCapabilities {\n return findTtsCapabilities(provider) ?? MODEL_CATALOG[TTS_FALLBACK_PROVIDER]!.tts!\n}\n\n/** The model performs inline `[audio tags]`. false ⇒ strip them before sending. */\nexport function ttsSupportsAudioTags(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).audioTags\n}\n\n/** The model honours SSML `<break time=\"…\"/>` tags. */\nexport function ttsSupportsSsmlBreaks(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).ssmlBreaks\n}\n\n/**\n * The model conditions on neighbouring text (`previous_text` / `next_text`).\n * false ⇒ the provider funnel never puts the fields on the wire, whatever the\n * request carries — the model would reject them.\n */\nexport function ttsSupportsStitching(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).stitching\n}\n\n/** The model honours this voice-setting lever. */\nexport function ttsHasLever(provider: string | undefined, lever: TtsSettingLever): boolean {\n return getTtsCapabilities(provider).levers.includes(lever)\n}\n\n/** The model answers `/v1/text-to-speech/{voice}/with-timestamps` (character timings). */\nexport function ttsSupportsTimestamps(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).timestamps\n}\n\n/** Language codes offered for the model, in catalog order. */\nexport function ttsLanguageCodes(provider: string | undefined): readonly string[] {\n return getTtsCapabilities(provider).languages\n}\n\n/**\n * The named voices the model speaks, or `undefined` when it speaks the\n * ElevenLabs voices (premade, library, clones). See `TtsCapabilities.voices`.\n */\nexport function ttsNamedVoices(provider: string | undefined): readonly TtsNamedVoice[] | undefined {\n return getTtsCapabilities(provider).voices\n}\n\n/**\n * Whether `voice` is one the model can speak: on a model with named voices,\n * one of them by its exact wire name; on any other model, any id (the\n * ElevenLabs voice checks apply there, as before).\n */\nexport function ttsAcceptsVoice(provider: string | undefined, voice: string): boolean {\n const named = ttsNamedVoices(provider)\n return !named || named.some((v) => v.id === voice)\n}\n\n/**\n * The voice a request on a named-voice model runs with: the one it names when\n * the model speaks it, else the model's default. `undefined` on an ElevenLabs\n * model (its own default applies downstream).\n */\nexport function ttsNamedVoiceFor(provider: string | undefined, voice: unknown): string | undefined {\n const caps = getTtsCapabilities(provider)\n if (!caps.voices) return undefined\n return typeof voice === \"string\" && caps.voices.some((v) => v.id === voice) ? voice : caps.defaultVoice\n}\n\n/** The style direction the model takes (`TtsCapabilities.direction`), or `undefined` when it takes none. */\nexport function ttsDirection(provider: string | undefined): TtsDirectionSheet | undefined {\n return getTtsCapabilities(provider).direction\n}\n\n/** The model writes its tone tags `<in angle brackets>` from a closed list (`TtsCapabilities.tagSyntax`). */\nexport function ttsAngleTags(provider: string | undefined): readonly string[] | undefined {\n const caps = getTtsCapabilities(provider)\n return caps.audioTags && caps.tagSyntax === \"angle\" ? (caps.tags ?? []) : undefined\n}\n\n/**\n * The style direction of a request, as the model takes it: each field kept\n * only when the model's sheet names it and the value is one it accepts (a\n * listed choice, or free text within its cap — trimmed, an empty one\n * dropped). What the provider funnel sends and the workflow engine passes on;\n * the REST route rejects instead of dropping (`ttsDirectionProblem`).\n */\nexport interface TtsDirectionValues {\n styleDirection?: string\n pace?: string\n accent?: string\n audioProfile?: string\n}\n\nexport function ttsDirectionFor(provider: string | undefined, values: Readonly<Record<string, unknown>>): TtsDirectionValues {\n const sheet = ttsDirection(provider)\n if (!sheet) return {}\n const text = (value: unknown, max: number | undefined): string | undefined => {\n if (max === undefined || typeof value !== \"string\") return undefined\n const trimmed = value.trim()\n return trimmed && trimmed.length <= max ? trimmed : undefined\n }\n const choice = (value: unknown, choices: readonly string[] | undefined): string | undefined =>\n choices && typeof value === \"string\" && choices.includes(value) ? value : undefined\n const out: TtsDirectionValues = {}\n const style = sheet.styles ? choice(values.styleDirection, sheet.styles) : text(values.styleDirection, sheet.styleMaxChars)\n if (style !== undefined) out.styleDirection = style\n const pace = choice(values.pace, sheet.paces)\n if (pace !== undefined) out.pace = pace\n const accent = choice(values.accent, sheet.accents)\n if (accent !== undefined) out.accent = accent\n const profile = text(values.audioProfile, sheet.audioProfileMaxChars)\n if (profile !== undefined) out.audioProfile = profile\n return out\n}\n\n/**\n * Why a request's style direction cannot run on the model, or `undefined`\n * when it can. Only the fields the model takes are judged; on a model that\n * takes none, or a field it does not take, the value is never sent (as the\n * neighbour text on a model that does not stitch), so it is no problem.\n */\nexport function ttsDirectionProblem(provider: string | undefined, values: Readonly<Record<string, unknown>>): { field: keyof TtsDirectionValues; message: string } | undefined {\n const sheet = ttsDirection(provider)\n if (!sheet) return undefined\n const textProblem = (field: keyof TtsDirectionValues, max: number | undefined) => {\n const value = values[field]\n if (max === undefined || value === undefined) return undefined\n if (typeof value !== \"string\") return { field, message: `${field} must be a string` }\n return value.trim().length > max ? { field, message: `${field} must be at most ${max} characters` } : undefined\n }\n const choiceProblem = (field: keyof TtsDirectionValues, choices: readonly string[] | undefined) => {\n const value = values[field]\n if (!choices || value === undefined || value === \"\") return undefined\n return typeof value === \"string\" && choices.includes(value) ? undefined : { field, message: `${field} must be one of: ${choices.join(\", \")}` }\n }\n return (\n (sheet.styles ? choiceProblem(\"styleDirection\", sheet.styles) : textProblem(\"styleDirection\", sheet.styleMaxChars)) ??\n choiceProblem(\"pace\", sheet.paces) ??\n choiceProblem(\"accent\", sheet.accents) ??\n textProblem(\"audioProfile\", sheet.audioProfileMaxChars)\n )\n}\n\n/** Every voice name a named-voice model speaks (all of them, across models). Built once from the catalog. */\nlet namedVoiceIds: ReadonlySet<string> | undefined\nfunction anyModelsNamedVoice(voice: string): boolean {\n namedVoiceIds ??= new Set(\n Object.values(MODEL_CATALOG).flatMap((m) => (m.modes.includes(\"tts\") ? (m.tts?.voices ?? []).map((v) => v.id) : [])),\n )\n return namedVoiceIds.has(voice)\n}\n\n/**\n * The voice a text-to-speech run on `provider` speaks, when the model and the\n * voice may have been chosen apart — a published app's Model card, a field\n * mapping onto the model, an upstream Character's voice, a preset's voice with\n * a model the caller named (decided 2026-11-13: the editor's model-switch rule,\n * applied wherever the editor is not there to apply it):\n * - a model with named voices (Gemini): the voice when it is one of them, its\n * default voice for any other voice, and none (its default) for none;\n * - an ElevenLabs model: none (the deployment's default) for a voice that only\n * a named-voice model speaks (`Fola`, `Kore`…), else the voice as given.\n * Returns `undefined` for \"no voice named\"; never a voice the model refuses.\n */\nexport function ttsVoiceForModel(provider: string | undefined, voice: unknown): string | undefined {\n const named = typeof voice === \"string\" && voice.length > 0 ? voice : undefined\n const caps = getTtsCapabilities(provider)\n if (caps.voices) {\n if (named === undefined) return undefined\n return caps.voices.some((v) => v.id === named) ? named : caps.defaultVoice\n }\n return named !== undefined && anyModelsNamedVoice(named) ? undefined : named\n}\n\n/** The model clones a speaker's voice for one request (`TtsCapabilities.replica`: Gemini 3.8 Flash). */\nexport function ttsTakesReplica(provider: string | undefined): boolean {\n return getTtsCapabilities(provider).replica === true\n}\n\n/** Every model that takes a one-off clone, in catalog order (for a refusal's sentence). */\nexport function replicaModels(): string[] {\n return Object.values(MODEL_CATALOG).filter((m) => m.modes.includes(\"tts\") && m.tts?.replica === true).map((m) => m.id)\n}\n\n/** Whether `value` is an https link (the only scheme a recording is fetched from). */\nfunction isHttpsLink(value: unknown): value is string {\n if (typeof value !== \"string\") return false\n try {\n return new URL(value).protocol === \"https:\"\n } catch {\n return false\n }\n}\n\n/** A request's one-off clone as the platform reads it: two https links, or undefined when absent or not that shape. */\nexport function replicaOf(value: unknown): TtsReplica | undefined {\n if (!value || typeof value !== \"object\") return undefined\n const { sourceAudioUrl, consentAudioUrl } = value as Record<string, unknown>\n return isHttpsLink(sourceAudioUrl) && isHttpsLink(consentAudioUrl) ? { sourceAudioUrl, consentAudioUrl } : undefined\n}\n\n/**\n * Why a request's one-off clone (`replica`) cannot run on the model, or\n * undefined (none asked, or one it takes). Refused, never dropped: a clone\n * that is not sent is someone else's voice. The recordings themselves (WAV,\n * size, length) are judged where they are fetched (backend\n * `lib/voice-replica.ts`).\n */\nexport function ttsReplicaProblem(provider: string | undefined, value: unknown): string | undefined {\n if (value === undefined || value === null) return undefined\n if (!ttsTakesReplica(provider)) {\n return `${provider ?? \"This model\"} does not clone a voice; a one-off clone runs on ${replicaModels().join(\", \")}`\n }\n return replicaOf(value) ? undefined : \"replica needs sourceAudioUrl and consentAudioUrl, each an https link to a WAV recording\"\n}\n\n/**\n * Why an API or MCP clone lacks its consent, or undefined: a `replica` asked\n * must say `consent: true` — the caller's confirmation of\n * `REPLICA_CONSENT_ATTESTATION`, what the editor's checkbox says (decided\n * 2026-11-13). Refused before anything is read or held.\n */\nexport function replicaConsentProblem(value: unknown): string | undefined {\n if (value === undefined || value === null) return undefined\n return (value as { consent?: unknown }).consent === true\n ? undefined\n : `replica.consent must be true: it confirms \"${REPLICA_CONSENT_ATTESTATION}\"`\n}\n\n"]}
|
|
@@ -97,6 +97,9 @@ var LLM_MODELS = [
|
|
|
97
97
|
retired: true,
|
|
98
98
|
vendor: "google",
|
|
99
99
|
structuredOutputMode: "kie-response-format",
|
|
100
|
+
// The KIE endpoint is 3.8's, so it takes 3.8's rule: no `response_format`
|
|
101
|
+
// there, the schema in the prompt (see gemini-3.8-flash below).
|
|
102
|
+
kieSchemaInPrompt: true,
|
|
100
103
|
supportsImages: true,
|
|
101
104
|
// Google's own cap is 65,536, but the field feeds BOTH lanes and the KIE
|
|
102
105
|
// flash endpoints cap at 8192 (the measured 3.6 posture) — stay at the
|
|
@@ -119,8 +122,9 @@ var LLM_MODELS = [
|
|
|
119
122
|
series: "Gemini",
|
|
120
123
|
// Inherits "Newest" from 3.7 (demoted above). Deliberately does NOT name
|
|
121
124
|
// agentic video: that capability exists only on the direct Google lane
|
|
122
|
-
// (Interactions API, not wired here)
|
|
123
|
-
//
|
|
125
|
+
// (Interactions API, not wired here). Plain video + audio input is wired
|
|
126
|
+
// (LLM_MODALITY_CAPS below) — a picker desc must not promise a lever this
|
|
127
|
+
// entry cannot expose.
|
|
124
128
|
desc: "Newest fast Gemini, agentic-tuned",
|
|
125
129
|
tier: "economy",
|
|
126
130
|
kieFormat: "chat-completions",
|
|
@@ -134,6 +138,16 @@ var LLM_MODELS = [
|
|
|
134
138
|
// is ENFORCED (the reply came back exact-schema valid, credits_consumed
|
|
135
139
|
// present) — not merely accepted-and-ignored.
|
|
136
140
|
structuredOutputMode: "kie-response-format",
|
|
141
|
+
// Since 2026-11-13 the KIE endpoint answers ANY request carrying
|
|
142
|
+
// `response_format` (json_schema strict or not, json_object; any effort or
|
|
143
|
+
// none; with or without media) with HTTP 200 and an in-band
|
|
144
|
+
// `{"code":500}` after ~34 s, while the same request without it answers;
|
|
145
|
+
// 3.6 Flash, 3.1 Pro and Carbon take the same body. So the KIE lane sends
|
|
146
|
+
// the schema in the prompt (measured: a real Video Analysis roll, video
|
|
147
|
+
// included, answered schema-valid that way). The direct lane keeps its
|
|
148
|
+
// enforced `responseJsonSchema` (asked once when a call's KIE answers never
|
|
149
|
+
// validate), and the trust this mode carries stays.
|
|
150
|
+
kieSchemaInPrompt: true,
|
|
137
151
|
supportsImages: true,
|
|
138
152
|
// 16384 here, NOT the 8192 its 3.6 / 3.7 siblings sit at. Those two stay at
|
|
139
153
|
// the KIE-safe intersection because nobody measured their endpoints past
|
|
@@ -652,11 +666,11 @@ var LLM_MODELS = [
|
|
|
652
666
|
//
|
|
653
667
|
// KIE's endpoint adds its own instructions to every call and counts them as
|
|
654
668
|
// input. The hold and the estimate count them too
|
|
655
|
-
// (backend/src/lib/pricing/llm-cost.ts, `llmLaneAddedInputTokens`).
|
|
656
|
-
//
|
|
657
|
-
// 2026-11-12
|
|
658
|
-
// does not depend on the effort
|
|
659
|
-
//
|
|
669
|
+
// (backend/src/lib/pricing/llm-cost.ts, `llmLaneAddedInputTokens`). Their
|
|
670
|
+
// size has moved (about 4,400 and about 25,500 tokens on the same request,
|
|
671
|
+
// 2026-11-12/13), so both count the ceiling, with or without an effort
|
|
672
|
+
// (decided 2026-11-13): its price does not depend on the effort, so not
|
|
673
|
+
// `effortPriced`. The charge follows what KIE states or reports.
|
|
660
674
|
kieSlugOrModel: "gpt-6-1-terra",
|
|
661
675
|
vendor: "openai",
|
|
662
676
|
structuredOutputMode: "responses-json-schema",
|
|
@@ -1078,6 +1092,10 @@ function defaultReasoningEffort(feature, modelId) {
|
|
|
1078
1092
|
return getLlmModel(effective)?.id === recipe.model ? recipe.effort : void 0;
|
|
1079
1093
|
}
|
|
1080
1094
|
var LLM_MODALITY_CAPS = {
|
|
1095
|
+
// Keeps full caps after KIE dropped its channel (2026-11-13): it stays a
|
|
1096
|
+
// VIDEO_ANALYSIS_LLM_MODELS member as the legacy `fast` backing (below), so a
|
|
1097
|
+
// stored raw `llmModel: "gemini-3-flash"` still resolves and prices under its
|
|
1098
|
+
// own credit family.
|
|
1081
1099
|
"gemini-3-flash": { image: true, video: true, audio: true },
|
|
1082
1100
|
"gemini-3.6-flash": { image: true, video: true, audio: true },
|
|
1083
1101
|
// gemini-3.7-flash is IMAGE-ONLY by DECISION, not omission: full video+audio
|
|
@@ -1086,15 +1104,13 @@ var LLM_MODALITY_CAPS = {
|
|
|
1086
1104
|
// deferred while the smart-family A/B routes this model internally (#747).
|
|
1087
1105
|
// Flip these two flags ONLY together with that VA-side decision.
|
|
1088
1106
|
"gemini-3.7-flash": { image: true, video: false, audio: false },
|
|
1089
|
-
// gemini-3.8-flash
|
|
1090
|
-
//
|
|
1091
|
-
//
|
|
1092
|
-
//
|
|
1093
|
-
//
|
|
1094
|
-
//
|
|
1095
|
-
|
|
1096
|
-
// with that VA-side decision.
|
|
1097
|
-
"gemini-3.8-flash": { image: true, video: false, audio: false },
|
|
1107
|
+
// gemini-3.8-flash takes video + audio (decided 2026-11-13): it backs the
|
|
1108
|
+
// video-analysis `fast` tier (VIDEO_ANALYSIS_TIERS below) since KIE dropped
|
|
1109
|
+
// gemini-3-flash's channel, which is what enrols it in
|
|
1110
|
+
// VIDEO_ANALYSIS_LLM_MODELS. Its KIE lane reads a video URL sent as an
|
|
1111
|
+
// `image_url` part, the same channel gemini-3-flash used (live-verified
|
|
1112
|
+
// 2026-11-13 with the analysis request: prompt tokens include the clip).
|
|
1113
|
+
"gemini-3.8-flash": { image: true, video: true, audio: true },
|
|
1098
1114
|
"gemini-3.1-pro": { image: true, video: true, audio: true },
|
|
1099
1115
|
// gemini-4-argon is IMAGE-ONLY by DECISION, not omission (decided 2026-10-17):
|
|
1100
1116
|
// the model DOES read video and audio, but full caps would
|
|
@@ -1102,12 +1118,13 @@ var LLM_MODALITY_CAPS = {
|
|
|
1102
1118
|
// video-analysis tier + pricing decision. That waits on a Video Analysis
|
|
1103
1119
|
// bake-off; flip these two flags ONLY together with its outcome.
|
|
1104
1120
|
"gemini-4-argon": { image: true, video: false, audio: false },
|
|
1105
|
-
// gemini-4-carbon
|
|
1106
|
-
//
|
|
1107
|
-
//
|
|
1108
|
-
//
|
|
1109
|
-
//
|
|
1110
|
-
|
|
1121
|
+
// gemini-4-carbon takes video + audio (decided 2026-11-13): it backs the
|
|
1122
|
+
// video-analysis `ultra` tier (VIDEO_ANALYSIS_TIERS below), which is what
|
|
1123
|
+
// enrols it in VIDEO_ANALYSIS_LLM_MODELS. The same caps let LLM Chat send it
|
|
1124
|
+
// video and audio references, and let a trend's LLM step that reads the clip
|
|
1125
|
+
// choose it (modelReadsClip) — both intended. It was image-only from
|
|
1126
|
+
// 2026-11-12 until this enrolment was decided.
|
|
1127
|
+
"gemini-4-carbon": { image: true, video: true, audio: true },
|
|
1111
1128
|
"claude-haiku-4.5": { image: true, video: false, audio: false },
|
|
1112
1129
|
"claude-haiku-5.5": { image: true, video: false, audio: false },
|
|
1113
1130
|
"claude-sonnet-4.6": { image: true, video: false, audio: false },
|
|
@@ -1124,8 +1141,9 @@ var LLM_MODALITY_CAPS = {
|
|
|
1124
1141
|
"gpt-6-luna": { image: true, video: false, audio: false },
|
|
1125
1142
|
"gpt-6-sol": { image: true, video: false, audio: false },
|
|
1126
1143
|
"gpt-6.1-sol": { image: true, video: false, audio: false },
|
|
1127
|
-
//
|
|
1128
|
-
|
|
1144
|
+
// Reads PDFs (`file`, probed 2026-11-13: KIE took a PDF inline and by link,
|
|
1145
|
+
// and refused a text file and a Word file — so PDF only).
|
|
1146
|
+
"gpt-6.1-terra": { image: true, video: false, audio: false, file: true },
|
|
1129
1147
|
"grok-4.6": { image: true, video: false, audio: false },
|
|
1130
1148
|
"grok-4.7": { image: true, video: false, audio: false },
|
|
1131
1149
|
"claude-sonnet-5": { image: true, video: false, audio: false },
|
|
@@ -1143,6 +1161,14 @@ function getLlmModalityCaps(modelId) {
|
|
|
1143
1161
|
if (!modelId) return { image: true, video: false, audio: false };
|
|
1144
1162
|
return LLM_MODALITY_CAPS[modelId] ?? { image: true, video: false, audio: false };
|
|
1145
1163
|
}
|
|
1164
|
+
function llmAcceptsFiles(modelId) {
|
|
1165
|
+
return Boolean(modelId && LLM_MODALITY_CAPS[modelId]?.file);
|
|
1166
|
+
}
|
|
1167
|
+
var LLM_FILE_MODELS = LLM_MODELS.filter((m) => llmAcceptsFiles(m.id));
|
|
1168
|
+
var LLM_REFERENCE_FILES_MAX = 5;
|
|
1169
|
+
var LLM_REFERENCE_FILES_MAX_TOTAL_BYTES = 6 * 1024 * 1024;
|
|
1170
|
+
var LLM_REFERENCE_FILES_MAX_PAGES = 100;
|
|
1171
|
+
var LLM_REFERENCE_FILE_MIME_TYPES = ["application/pdf"];
|
|
1146
1172
|
function dashAliasToCanonical(id) {
|
|
1147
1173
|
return id.replace(/-(\d+)-(\d+)$/, "-$1.$2");
|
|
1148
1174
|
}
|
|
@@ -1279,7 +1305,7 @@ function resolveLlmCreditId(feature, body) {
|
|
|
1279
1305
|
);
|
|
1280
1306
|
}
|
|
1281
1307
|
var VIDEO_ANALYSIS_LLM_MODELS = LLM_MODELS.filter((m) => getLlmModalityCaps(m.id).video && getLlmModalityCaps(m.id).audio).map((m) => m.id);
|
|
1282
|
-
var VIDEO_ANALYSIS_TIERS = { fast: "gemini-3-flash", pro: "gemini-3.1-pro" };
|
|
1308
|
+
var VIDEO_ANALYSIS_TIERS = { fast: "gemini-3.8-flash", pro: "gemini-3.1-pro", ultra: "gemini-4-carbon" };
|
|
1283
1309
|
var VIDEO_ANALYSIS_LEGACY_MODELS = {
|
|
1284
1310
|
// Backed the fast tier from 2026-07 until 2026-07-29, when the economy tiers
|
|
1285
1311
|
// moved to the cheaper lane and the older, cheaper flash. It is now the engine
|
|
@@ -1287,14 +1313,21 @@ var VIDEO_ANALYSIS_LEGACY_MODELS = {
|
|
|
1287
1313
|
// id, so as far as this map is concerned it no longer backs a selectable tier and
|
|
1288
1314
|
// belongs here: stored raw `llmModel` values keep resolving and keep pricing
|
|
1289
1315
|
// under their own credit family.
|
|
1290
|
-
"gemini-3.6-flash": "fast"
|
|
1316
|
+
"gemini-3.6-flash": "fast",
|
|
1317
|
+
// Backed the fast tier from 2026-07-29 until 2026-11-13, when KIE dropped its
|
|
1318
|
+
// channel (every call answers `code 422 "The channel is not supported"`) and
|
|
1319
|
+
// the fast tier moved to gemini-3.8-flash. Stored raw `llmModel` values keep
|
|
1320
|
+
// resolving and keep pricing under their own credit family; the analysis
|
|
1321
|
+
// engine serves their rolls with the current fast model.
|
|
1322
|
+
"gemini-3-flash": "fast"
|
|
1291
1323
|
};
|
|
1292
1324
|
var VIDEO_ANALYSIS_MIXED_TIERS = ["mixed", "mixed-fast", "smart"];
|
|
1293
|
-
var VIDEO_ANALYSIS_TIER_ORDER = ["smart", "pro", "fast", "mixed", "mixed-fast"];
|
|
1325
|
+
var VIDEO_ANALYSIS_TIER_ORDER = ["smart", "ultra", "pro", "fast", "mixed", "mixed-fast"];
|
|
1294
1326
|
var DEFAULT_VIDEO_ANALYSIS_TIER = "pro";
|
|
1295
1327
|
var DEFAULT_VIDEO_ANALYSIS_MODEL = VIDEO_ANALYSIS_TIERS[DEFAULT_VIDEO_ANALYSIS_TIER];
|
|
1296
1328
|
var VIDEO_ANALYSIS_TIER_LABELS = {
|
|
1297
1329
|
smart: "Smart",
|
|
1330
|
+
ultra: "Ultra",
|
|
1298
1331
|
fast: "Fast",
|
|
1299
1332
|
pro: "Pro",
|
|
1300
1333
|
mixed: "Mixed",
|
|
@@ -1326,12 +1359,17 @@ exports.LLM_CREDIT_RUNGS = LLM_CREDIT_RUNGS;
|
|
|
1326
1359
|
exports.LLM_FEATURE_DEFAULTS = LLM_FEATURE_DEFAULTS;
|
|
1327
1360
|
exports.LLM_FEATURE_DEFAULTS_FROM = LLM_FEATURE_DEFAULTS_FROM;
|
|
1328
1361
|
exports.LLM_FEATURE_DEFAULT_EFFORTS = LLM_FEATURE_DEFAULT_EFFORTS;
|
|
1362
|
+
exports.LLM_FILE_MODELS = LLM_FILE_MODELS;
|
|
1329
1363
|
exports.LLM_MODALITY_CAPS = LLM_MODALITY_CAPS;
|
|
1330
1364
|
exports.LLM_MODELS = LLM_MODELS;
|
|
1331
1365
|
exports.LLM_MODEL_IDS = LLM_MODEL_IDS;
|
|
1332
1366
|
exports.LLM_PRICE_KEY_DIRECT = LLM_PRICE_KEY_DIRECT;
|
|
1333
1367
|
exports.LLM_PRICE_KEY_EFFORT = LLM_PRICE_KEY_EFFORT;
|
|
1334
1368
|
exports.LLM_REASONING_EFFORTS = LLM_REASONING_EFFORTS;
|
|
1369
|
+
exports.LLM_REFERENCE_FILES_MAX = LLM_REFERENCE_FILES_MAX;
|
|
1370
|
+
exports.LLM_REFERENCE_FILES_MAX_PAGES = LLM_REFERENCE_FILES_MAX_PAGES;
|
|
1371
|
+
exports.LLM_REFERENCE_FILES_MAX_TOTAL_BYTES = LLM_REFERENCE_FILES_MAX_TOTAL_BYTES;
|
|
1372
|
+
exports.LLM_REFERENCE_FILE_MIME_TYPES = LLM_REFERENCE_FILE_MIME_TYPES;
|
|
1335
1373
|
exports.LLM_ROUTE_DEFAULTS = LLM_ROUTE_DEFAULTS;
|
|
1336
1374
|
exports.LLM_STRUCTURED_WITHHELD_MODELS = LLM_STRUCTURED_WITHHELD_MODELS;
|
|
1337
1375
|
exports.LLM_VENDOR_LABELS = LLM_VENDOR_LABELS;
|
|
@@ -1356,6 +1394,7 @@ exports.groupLlmModelsByVendor = groupLlmModelsByVendor;
|
|
|
1356
1394
|
exports.isLlmModelRetired = isLlmModelRetired;
|
|
1357
1395
|
exports.isVideoAnalysisMixedTier = isVideoAnalysisMixedTier;
|
|
1358
1396
|
exports.isVideoAnalysisTier = isVideoAnalysisTier;
|
|
1397
|
+
exports.llmAcceptsFiles = llmAcceptsFiles;
|
|
1359
1398
|
exports.llmCreditIdForRung = llmCreditIdForRung;
|
|
1360
1399
|
exports.llmCreditRung = llmCreditRung;
|
|
1361
1400
|
exports.llmDefaultsFeature = llmDefaultsFeature;
|
|
@@ -1373,5 +1412,5 @@ exports.resolveLlmCreditId = resolveLlmCreditId;
|
|
|
1373
1412
|
exports.resolveVideoAnalysisModel = resolveVideoAnalysisModel;
|
|
1374
1413
|
exports.structuredWireMode = structuredWireMode;
|
|
1375
1414
|
exports.supportsAdvancedMode = supportsAdvancedMode;
|
|
1376
|
-
//# sourceMappingURL=chunk-
|
|
1377
|
-
//# sourceMappingURL=chunk-
|
|
1415
|
+
//# sourceMappingURL=chunk-5NVGKXJV.cjs.map
|
|
1416
|
+
//# sourceMappingURL=chunk-5NVGKXJV.cjs.map
|