@nodaro/shared 3.25.0 → 3.26.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/index.cjs +476 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +160 -53
- package/dist/index.d.ts +160 -53
- package/dist/index.js +467 -115
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/condition-variables.test.ts +12 -0
- package/src/__tests__/content-recipe-ideas.test.ts +9 -4
- package/src/__tests__/credit-identifiers.test.ts +12 -0
- package/src/__tests__/image-model-roles.test.ts +57 -0
- package/src/__tests__/image-ref-limit.test.ts +1 -0
- package/src/__tests__/llm-models.test.ts +136 -37
- package/src/__tests__/lone-media-url.test.ts +78 -0
- package/src/__tests__/prompt-length-limits.test.ts +2 -0
- package/src/condition-variables.ts +3 -1
- package/src/content-recipe-ideas.ts +5 -2
- package/src/image-model-roles.ts +62 -0
- package/src/index.ts +14 -0
- package/src/llm-models.ts +348 -23
- package/src/lone-media-url.ts +57 -0
- package/src/model-catalog.ts +39 -5
- package/src/model-constants.ts +11 -1
- package/src/node-default-mappings.ts +3 -0
- package/src/settings-input.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -56,14 +56,14 @@ function isAutoVideoDuration(duration) {
|
|
|
56
56
|
var SPEECH_UNIT_PRICE_NOTE = "per started 100 characters, at least 8 units \u2014 where length pricing is on";
|
|
57
57
|
var MODEL_RECOMMENDATIONS = [
|
|
58
58
|
// image
|
|
59
|
-
{ intent: "best for typography / logos / text-heavy", modelIds: ["
|
|
59
|
+
{ intent: "best for typography / logos / text-heavy", modelIds: ["gpt-image-2", "gpt-image-2-5-flare"], note: "GPT Image 2 for exact copy, labels and non-Latin text; GPT Image 2.5 Flare is close and faster." },
|
|
60
60
|
// Notes name the RANKING, not the price — the price sits in the generated
|
|
61
61
|
// table directly below them and in `pricing`, so restating it here just
|
|
62
62
|
// creates a copy that rots (this one said "1 credit" long after it was 2).
|
|
63
63
|
{ intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
|
|
64
|
-
{ intent: "highest fidelity image", modelIds: ["
|
|
65
|
-
{ intent: "image edit / restyle", modelIds: ["
|
|
66
|
-
{ intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "
|
|
64
|
+
{ intent: "highest fidelity image", modelIds: ["gpt-image-2", "gpt-image-2-5-sunburst", "imagen4-ultra"], note: "GPT Image 2 for characters and identity; GPT Image 2.5 Sunburst for wide or in-between ratios GPT Image 2 can't draw." },
|
|
65
|
+
{ intent: "image edit / restyle", modelIds: ["gpt-image-2-5-flare-i2i", "gpt-image-2-i2i", "seedream-5-pro-i2i"], note: "GPT Image 2.5 Flare keeps pose, framing and product detail; GPT Image 2 i2i for identity-critical edits; Seedream 5 Pro for instruction-based edits." },
|
|
66
|
+
{ intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "gpt-image-2", "gpt-image-2-5-sunburst"], note: "Generate at the model's top tier, then Topaz upscale 4x (Topaz's only lever is the 1x/2x/4x factor)." },
|
|
67
67
|
{ intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
|
|
68
68
|
// video
|
|
69
69
|
{ intent: "best cinematic video", modelIds: ["veo3", "kling-3.0", "seedance-2"], note: "VEO 3.1 Quality for premium narrative; Kling 3.0 for music-synced motion; Seedance 2 for reference-driven consistency." },
|
|
@@ -198,8 +198,7 @@ var IMAGE_MODELS = {
|
|
|
198
198
|
pricing: [
|
|
199
199
|
{ identifier: "nano-banana-pro", credits: 45, note: "1K / 2K" },
|
|
200
200
|
{ identifier: "nano-banana-pro:4K", credits: 60, note: "4K" }
|
|
201
|
-
]
|
|
202
|
-
featured: true
|
|
201
|
+
]
|
|
203
202
|
},
|
|
204
203
|
"nano-banana-edit": {
|
|
205
204
|
id: "nano-banana-edit",
|
|
@@ -443,7 +442,8 @@ var IMAGE_MODELS = {
|
|
|
443
442
|
{ identifier: "gpt-image-2:2K", credits: 30, note: "2K" },
|
|
444
443
|
{ identifier: "gpt-image-2:4K", credits: 60, note: "4K" }
|
|
445
444
|
],
|
|
446
|
-
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
445
|
+
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" },
|
|
446
|
+
featured: true
|
|
447
447
|
},
|
|
448
448
|
"gpt-image-2-i2i": {
|
|
449
449
|
id: "gpt-image-2-i2i",
|
|
@@ -774,6 +774,40 @@ var IMAGE_MODELS = {
|
|
|
774
774
|
{ identifier: "seedream-5-pro-i2i:high", credits: 60, note: "high / 2K" }
|
|
775
775
|
]
|
|
776
776
|
},
|
|
777
|
+
// Seedream 5 Flash — fast, low-cost Seedream 5. Its lever is KIE's `size`
|
|
778
|
+
// (1K / 1.5K / 2K), NOT the siblings' `quality`: declared as `resolutions`
|
|
779
|
+
// (the KIE config renames it to `size` on the wire). Flat price at every
|
|
780
|
+
// offered size. 1.5K is not offered yet: no other image model or route enum
|
|
781
|
+
// carries it, and its price has not been confirmed.
|
|
782
|
+
// See: docs.kie.ai/market/seedream/5-flash-text-to-image.md
|
|
783
|
+
"seedream-5-flash": {
|
|
784
|
+
id: "seedream-5-flash",
|
|
785
|
+
kind: "image",
|
|
786
|
+
modes: ["t2i"],
|
|
787
|
+
family: "Bytedance",
|
|
788
|
+
label: "Seedream 5 Flash",
|
|
789
|
+
series: "Seedream",
|
|
790
|
+
description: "Fast, low-cost Seedream 5 \u2014 quick generations at 1K or 2K, same price at either size.",
|
|
791
|
+
useCases: ["realistic", "drafts", "iteration"],
|
|
792
|
+
features: ["reference-image"],
|
|
793
|
+
aspectRatios: SEEDREAM_RATIOS,
|
|
794
|
+
resolutions: ["1K", "2K"],
|
|
795
|
+
pricing: [{ identifier: "seedream-5-flash", credits: 10, note: "1K / 2K flat" }]
|
|
796
|
+
},
|
|
797
|
+
"seedream-5-flash-i2i": {
|
|
798
|
+
id: "seedream-5-flash-i2i",
|
|
799
|
+
kind: "image",
|
|
800
|
+
modes: ["i2i"],
|
|
801
|
+
family: "Bytedance",
|
|
802
|
+
label: "Seedream 5 Flash (I2I)",
|
|
803
|
+
series: "Seedream",
|
|
804
|
+
description: "Image-to-image with Seedream 5 Flash \u2014 fast edits from up to 10 input images at 1K or 2K, same price at either size.",
|
|
805
|
+
useCases: ["edit", "iteration"],
|
|
806
|
+
features: ["reference-image"],
|
|
807
|
+
aspectRatios: SEEDREAM_RATIOS,
|
|
808
|
+
resolutions: ["1K", "2K"],
|
|
809
|
+
pricing: [{ identifier: "seedream-5-flash-i2i", credits: 10, note: "1K / 2K flat" }]
|
|
810
|
+
},
|
|
777
811
|
// ── Alibaba Qwen ──
|
|
778
812
|
"qwen": {
|
|
779
813
|
id: "qwen",
|
|
@@ -3260,7 +3294,9 @@ var MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER = {
|
|
|
3260
3294
|
// verified == 5000 default (no entry needed): imagen4(-fast/-ultra), nano-banana,
|
|
3261
3295
|
// nano-banana-edit, flux, flux-flex, gpt-image-2, ideogram-v3/-edit/-remix,
|
|
3262
3296
|
// grok, qwen-i2i, seedream-5-pro, seedream-5-pro-i2i
|
|
3263
|
-
// (docs.kie.ai/market/seedream/5-pro-text-to-image + 5-pro-image-to-image)
|
|
3297
|
+
// (docs.kie.ai/market/seedream/5-pro-text-to-image + 5-pro-image-to-image),
|
|
3298
|
+
// seedream-5-flash, seedream-5-flash-i2i (both "4–5000 characters";
|
|
3299
|
+
// docs.kie.ai/market/seedream/5-flash-text-to-image + 5-flash-image-to-image).
|
|
3264
3300
|
// grok-i2i: doc states 390000 (78× its t2i sibling) — treated as a KIE schema
|
|
3265
3301
|
// typo and left at the 5000 default per the sanity-cap decision.
|
|
3266
3302
|
// UNVERIFIED (no limit stated in schema) → 5000 default: flux-kontext(-max)
|
|
@@ -3438,6 +3474,7 @@ var MODELS_WITH_REFERENCE_IMAGE_SUPPORT = /* @__PURE__ */ new Set([
|
|
|
3438
3474
|
"seedream",
|
|
3439
3475
|
"seedream-5-lite",
|
|
3440
3476
|
"seedream-5-pro",
|
|
3477
|
+
"seedream-5-flash",
|
|
3441
3478
|
"flux",
|
|
3442
3479
|
"flux-flex",
|
|
3443
3480
|
// Image editing / image-to-image (reference = source image)
|
|
@@ -3458,6 +3495,7 @@ var MODELS_WITH_REFERENCE_IMAGE_SUPPORT = /* @__PURE__ */ new Set([
|
|
|
3458
3495
|
"seedream-edit",
|
|
3459
3496
|
"seedream-5-lite-i2i",
|
|
3460
3497
|
"seedream-5-pro-i2i",
|
|
3498
|
+
"seedream-5-flash-i2i",
|
|
3461
3499
|
"grok-i2i",
|
|
3462
3500
|
// Upscale / background ops (source acts as the reference)
|
|
3463
3501
|
"recraft-remove-bg",
|
|
@@ -3484,6 +3522,7 @@ var T2I_TO_I2I_VARIANT = {
|
|
|
3484
3522
|
"seedream": "seedream-edit",
|
|
3485
3523
|
"seedream-5-lite": "seedream-5-lite-i2i",
|
|
3486
3524
|
"seedream-5-pro": "seedream-5-pro-i2i",
|
|
3525
|
+
"seedream-5-flash": "seedream-5-flash-i2i",
|
|
3487
3526
|
"flux": "flux-pro-i2i",
|
|
3488
3527
|
"flux-flex": "flux-i2i"
|
|
3489
3528
|
};
|
|
@@ -3509,6 +3548,8 @@ var REF_IMAGE_MAX_LIMITS = {
|
|
|
3509
3548
|
"seedream-edit": 16,
|
|
3510
3549
|
"seedream-5-lite-i2i": 16,
|
|
3511
3550
|
"seedream-5-pro-i2i": 16,
|
|
3551
|
+
// Flash takes at most 10 `image_urls` (docs.kie.ai/market/seedream/5-flash-image-to-image) — not the family's 16.
|
|
3552
|
+
"seedream-5-flash-i2i": 10,
|
|
3512
3553
|
// Single-source i2i (one input image)
|
|
3513
3554
|
"flux-kontext": 1,
|
|
3514
3555
|
"flux-kontext-max": 1,
|
|
@@ -3599,6 +3640,7 @@ var IMAGE_GEN_PROVIDERS = [
|
|
|
3599
3640
|
"seedream",
|
|
3600
3641
|
"seedream-5-lite",
|
|
3601
3642
|
"seedream-5-pro",
|
|
3643
|
+
"seedream-5-flash",
|
|
3602
3644
|
"flux-flex",
|
|
3603
3645
|
"flux-kontext",
|
|
3604
3646
|
"flux-kontext-max",
|
|
@@ -3631,6 +3673,7 @@ var IMAGE_I2I_PROVIDERS = [
|
|
|
3631
3673
|
"seedream-edit",
|
|
3632
3674
|
"seedream-5-lite-i2i",
|
|
3633
3675
|
"seedream-5-pro-i2i",
|
|
3676
|
+
"seedream-5-flash-i2i",
|
|
3634
3677
|
"flux-kontext",
|
|
3635
3678
|
"flux-kontext-max",
|
|
3636
3679
|
// Replicate Open (uncensored) — multi-image Kontext via Replicate
|
|
@@ -4034,6 +4077,7 @@ var IMAGE_MASK_MODE = {
|
|
|
4034
4077
|
"seedream": "prompt",
|
|
4035
4078
|
"seedream-5-lite": "prompt",
|
|
4036
4079
|
"seedream-5-pro": "prompt",
|
|
4080
|
+
"seedream-5-flash": "prompt",
|
|
4037
4081
|
"qwen": "prompt",
|
|
4038
4082
|
"flux-kontext": "prompt",
|
|
4039
4083
|
"flux-kontext-max": "prompt",
|
|
@@ -7150,7 +7194,10 @@ var LLM_MODELS = [
|
|
|
7150
7194
|
structuredOutputMode: "anthropic-tool",
|
|
7151
7195
|
supportsImages: true,
|
|
7152
7196
|
maxOutputTokens: 8192,
|
|
7153
|
-
directFallbackModel: "claude-haiku-4-5-20251001"
|
|
7197
|
+
directFallbackModel: "claude-haiku-4-5-20251001",
|
|
7198
|
+
// KIE-first since 2026-10-08 (a call is priced on the lane it runs on);
|
|
7199
|
+
// KIE served it plain and with a tool on its streaming wire that day.
|
|
7200
|
+
preferKie: true
|
|
7154
7201
|
},
|
|
7155
7202
|
{
|
|
7156
7203
|
id: "claude-sonnet-4.6",
|
|
@@ -7164,7 +7211,12 @@ var LLM_MODELS = [
|
|
|
7164
7211
|
supportsImages: true,
|
|
7165
7212
|
maxOutputTokens: 16384,
|
|
7166
7213
|
directFallbackModel: "claude-sonnet-4-6",
|
|
7167
|
-
|
|
7214
|
+
// KIE-first since 2026-10-08 (a call is priced on the lane it runs on);
|
|
7215
|
+
// KIE served it plain and with a tool on its streaming wire that day.
|
|
7216
|
+
preferKie: true,
|
|
7217
|
+
reasoningEfforts: ["low", "medium", "high", "max"],
|
|
7218
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7219
|
+
effortRequiresDirect: true
|
|
7168
7220
|
},
|
|
7169
7221
|
{
|
|
7170
7222
|
id: "gpt-5.2",
|
|
@@ -7203,14 +7255,14 @@ var LLM_MODELS = [
|
|
|
7203
7255
|
// text such as a name badge), which is exactly what video-analysis casts
|
|
7204
7256
|
// identities from — so adding an entry here would silently move analysis to
|
|
7205
7257
|
// the shallower lane. Don't. Full comparison lives with the analysis engine.
|
|
7206
|
-
//
|
|
7207
|
-
//
|
|
7208
|
-
//
|
|
7209
|
-
// the direct lane
|
|
7210
|
-
// control, native media ingestion, and a `responseJsonSchema`
|
|
7211
|
-
// `additionalProperties` (KIE's `response_format` silently DROPS
|
|
7258
|
+
// KIE-first since 2026-10-08 (decided: a call is priced on the lane it runs
|
|
7259
|
+
// on, so the base premium price buys the KIE lane; the direct lane is
|
|
7260
|
+
// Advanced mode, billed `premium-direct`). It was the one direct-first
|
|
7261
|
+
// Gemini before. What the direct lane buys, now behind Advanced: real
|
|
7262
|
+
// `thinkingLevel` control, native media ingestion, and a `responseJsonSchema`
|
|
7263
|
+
// that honours `additionalProperties` (KIE's `response_format` silently DROPS
|
|
7212
7264
|
// record/map-shaped fields — see the z.record rule in backend/CLAUDE.md).
|
|
7213
|
-
|
|
7265
|
+
// Video-analysis is unaffected: it pins `requireLane: "direct"` itself.
|
|
7214
7266
|
// Reasons with no thinking param sent on both lanes — the proxied endpoint
|
|
7215
7267
|
// DEFAULTS to "high" (above), and the direct lane reasons harder still.
|
|
7216
7268
|
// Floored at its own 16384: its KIE fallback is not known to take more.
|
|
@@ -7234,6 +7286,8 @@ var LLM_MODELS = [
|
|
|
7234
7286
|
maxOutputTokens: 16384,
|
|
7235
7287
|
directFallbackModel: "claude-opus-4-7",
|
|
7236
7288
|
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7289
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7290
|
+
effortRequiresDirect: true,
|
|
7237
7291
|
supportsTemperature: false,
|
|
7238
7292
|
preferKie: true
|
|
7239
7293
|
},
|
|
@@ -7383,10 +7437,76 @@ var LLM_MODELS = [
|
|
|
7383
7437
|
// why this is per-model and not a lane-wide flag.
|
|
7384
7438
|
kieCollapseStream: true
|
|
7385
7439
|
},
|
|
7440
|
+
// ── GPT-6 Luna / Sol / 6.1 Sol ────────────────────────────────────────────
|
|
7441
|
+
// Same KIE endpoint and dialect as gpt-6-astra (codex/v1/responses; the doc
|
|
7442
|
+
// pages differ only in the model name). Live-probed 2026-10-08, per model:
|
|
7443
|
+
// `text.format` json_schema ENFORCED (echo `strict: true`, schema-valid
|
|
7444
|
+
// reply), `temperature: 0.2` echoed back as 1 → silently ignored, no
|
|
7445
|
+
// reasoning param → echo "medium" (reasons by default), and data-URI vision.
|
|
7446
|
+
// Unlike astra, the NON-stream lane served them reliably — luna 10/10 and sol
|
|
7447
|
+
// 10/10, 6.1 sol 8/8 at levels other than `none` (incl. 4 long structured
|
|
7448
|
+
// calls each, 500–1,500 output tokens) — so none of them is collapsed:
|
|
7449
|
+
// `credits_consumed` stays the real provider charge.
|
|
7450
|
+
// Their ladder is WIDER than astra's doc-enum one: `none` and `max` were each
|
|
7451
|
+
// sent and echoed back by the endpoint (6.1 sol excepted below).
|
|
7452
|
+
{
|
|
7453
|
+
id: "gpt-6-luna",
|
|
7454
|
+
displayName: "GPT-6 Luna",
|
|
7455
|
+
desc: "Fastest GPT-6, high-volume workloads",
|
|
7456
|
+
tier: "economy",
|
|
7457
|
+
kieFormat: "responses",
|
|
7458
|
+
kieSlugOrModel: "gpt-6-luna",
|
|
7459
|
+
vendor: "openai",
|
|
7460
|
+
structuredOutputMode: "responses-json-schema",
|
|
7461
|
+
supportsImages: true,
|
|
7462
|
+
maxOutputTokens: 16384,
|
|
7463
|
+
reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
|
|
7464
|
+
supportsTemperature: false,
|
|
7465
|
+
thinkingDefaultOn: true
|
|
7466
|
+
},
|
|
7467
|
+
{
|
|
7468
|
+
id: "gpt-6-sol",
|
|
7469
|
+
displayName: "GPT-6 Sol",
|
|
7470
|
+
desc: "Strong GPT-6, deep reasoning at lower cost",
|
|
7471
|
+
// Premium by decision (2026-10-08), not by unit cost — "Sol" is the
|
|
7472
|
+
// deep-reasoning rung of the family, and gpt-5.6-sol bills premium too.
|
|
7473
|
+
tier: "premium",
|
|
7474
|
+
kieFormat: "responses",
|
|
7475
|
+
kieSlugOrModel: "gpt-6-sol",
|
|
7476
|
+
vendor: "openai",
|
|
7477
|
+
structuredOutputMode: "responses-json-schema",
|
|
7478
|
+
supportsImages: true,
|
|
7479
|
+
maxOutputTokens: 16384,
|
|
7480
|
+
reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
|
|
7481
|
+
supportsTemperature: false,
|
|
7482
|
+
thinkingDefaultOn: true
|
|
7483
|
+
},
|
|
7484
|
+
{
|
|
7485
|
+
id: "gpt-6.1-sol",
|
|
7486
|
+
displayName: "GPT-6.1 Sol",
|
|
7487
|
+
// Measured slow: 30–76 s for 500–1,100 output tokens (2026-10-08), roughly
|
|
7488
|
+
// twice gpt-6-sol on the same request — say so where the picker shows it.
|
|
7489
|
+
desc: "Newest GPT-6 Sol, thorough but slower",
|
|
7490
|
+
tier: "premium",
|
|
7491
|
+
kieFormat: "responses",
|
|
7492
|
+
kieSlugOrModel: "gpt-6-1-sol",
|
|
7493
|
+
vendor: "openai",
|
|
7494
|
+
structuredOutputMode: "responses-json-schema",
|
|
7495
|
+
supportsImages: true,
|
|
7496
|
+
maxOutputTokens: 16384,
|
|
7497
|
+
// NO `none`: every probe at `reasoning.effort: none` failed (502, a 120 s
|
|
7498
|
+
// timeout, 502, 429 — 0/4, 2026-10-08) while every other level answered,
|
|
7499
|
+
// and the same request at `none` succeeded on luna and sol. Clamping maps a
|
|
7500
|
+
// `none` request to nothing sent (Auto) rather than to a level that fails.
|
|
7501
|
+
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7502
|
+
supportsTemperature: false,
|
|
7503
|
+
thinkingDefaultOn: true
|
|
7504
|
+
},
|
|
7386
7505
|
{
|
|
7387
7506
|
id: "grok-4.6",
|
|
7388
7507
|
displayName: "Grok 4.6",
|
|
7389
|
-
|
|
7508
|
+
// Demoted 2026-10-08 when grok-4.7 registered — the flagship copy moved up.
|
|
7509
|
+
desc: "Previous Grok, strong reasoning",
|
|
7390
7510
|
tier: "standard",
|
|
7391
7511
|
kieFormat: "responses",
|
|
7392
7512
|
// KIE serves Grok on the responses dialect under its own family path —
|
|
@@ -7412,10 +7532,35 @@ var LLM_MODELS = [
|
|
|
7412
7532
|
// call needs output headroom, not just xhigh.
|
|
7413
7533
|
thinkingDefaultOn: true
|
|
7414
7534
|
},
|
|
7535
|
+
{
|
|
7536
|
+
id: "grok-4.7",
|
|
7537
|
+
displayName: "Grok 4.7",
|
|
7538
|
+
desc: "xAI flagship, strong reasoning",
|
|
7539
|
+
tier: "standard",
|
|
7540
|
+
kieFormat: "responses",
|
|
7541
|
+
// Same grok/v1/responses family path and wire as grok-4.6 (the KIE doc
|
|
7542
|
+
// pages differ only in the model name). Live-probed 2026-10-08: non-stream
|
|
7543
|
+
// 6/6, `text.format` json_schema enforced, data-URI vision, SSE deltas.
|
|
7544
|
+
kieSlugOrModel: "grok-4-7",
|
|
7545
|
+
vendor: "xai",
|
|
7546
|
+
structuredOutputMode: "responses-json-schema",
|
|
7547
|
+
supportsImages: true,
|
|
7548
|
+
maxOutputTokens: 16384,
|
|
7549
|
+
// 4.6's ladder. `none` is NOT honoured: the endpoint echoed it back as
|
|
7550
|
+
// "minimal" and still reasoned (33 of 35 output tokens), so offering it
|
|
7551
|
+
// would promise a lever the wire overrides.
|
|
7552
|
+
reasoningEfforts: ["low", "medium", "high", "xhigh"],
|
|
7553
|
+
// `temperature: 0.2` → echo stayed at the 0.7 default: ignored.
|
|
7554
|
+
supportsTemperature: false,
|
|
7555
|
+
// "Capital of France" with no reasoning param spent 310 of 311 output
|
|
7556
|
+
// tokens reasoning.
|
|
7557
|
+
thinkingDefaultOn: true
|
|
7558
|
+
},
|
|
7415
7559
|
{
|
|
7416
7560
|
id: "claude-sonnet-5",
|
|
7417
7561
|
displayName: "Claude Sonnet 5",
|
|
7418
|
-
|
|
7562
|
+
// Demoted 2026-10-08 when claude-sonnet-5.5 registered.
|
|
7563
|
+
desc: "Previous Sonnet, near-Opus quality",
|
|
7419
7564
|
tier: "standard",
|
|
7420
7565
|
kieFormat: "messages",
|
|
7421
7566
|
kieSlugOrModel: "claude-sonnet-5",
|
|
@@ -7425,9 +7570,43 @@ var LLM_MODELS = [
|
|
|
7425
7570
|
maxOutputTokens: 16384,
|
|
7426
7571
|
directFallbackModel: "claude-sonnet-5",
|
|
7427
7572
|
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7573
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7574
|
+
effortRequiresDirect: true,
|
|
7428
7575
|
supportsTemperature: false,
|
|
7429
7576
|
preferKie: true
|
|
7430
7577
|
},
|
|
7578
|
+
{
|
|
7579
|
+
id: "claude-sonnet-5.5",
|
|
7580
|
+
displayName: "Claude Sonnet 5.5",
|
|
7581
|
+
desc: "Latest Sonnet, near-Opus quality at Sonnet cost",
|
|
7582
|
+
tier: "standard",
|
|
7583
|
+
kieFormat: "messages",
|
|
7584
|
+
// KIE serves it on the Claude-native messages dialect under its plain id
|
|
7585
|
+
// (docs.kie.ai/market/claude/claude-sonnet-5-5.md — the page is
|
|
7586
|
+
// claude-opus-5's with the model name swapped). Live-probed 2026-10-08 on
|
|
7587
|
+
// the streaming wire: plain, effort, and forced/auto+strict tool calls all
|
|
7588
|
+
// answered.
|
|
7589
|
+
kieSlugOrModel: "claude-sonnet-5-5",
|
|
7590
|
+
vendor: "anthropic",
|
|
7591
|
+
structuredOutputMode: "anthropic-tool",
|
|
7592
|
+
// Anthropic 400s a forced tool_choice on this model. KIE's proxy happened
|
|
7593
|
+
// to accept one in the probe, but the direct lane is where every
|
|
7594
|
+
// effort-bearing and every streamed structured call goes.
|
|
7595
|
+
supportsForcedToolChoice: false,
|
|
7596
|
+
conversationBoundThinking: true,
|
|
7597
|
+
supportsImages: true,
|
|
7598
|
+
maxOutputTokens: 16384,
|
|
7599
|
+
directFallbackModel: "claude-sonnet-5-5",
|
|
7600
|
+
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7601
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7602
|
+
effortRequiresDirect: true,
|
|
7603
|
+
// Anthropic rejects non-default sampling values on this model (KIE's proxy
|
|
7604
|
+
// accepted temperature: 0.2 in the probe; the direct lane is the contract).
|
|
7605
|
+
supportsTemperature: false,
|
|
7606
|
+
preferKie: true,
|
|
7607
|
+
// Adaptive thinking runs when no thinking param is sent (vendor default).
|
|
7608
|
+
thinkingDefaultOn: true
|
|
7609
|
+
},
|
|
7431
7610
|
{
|
|
7432
7611
|
id: "claude-opus-4.8",
|
|
7433
7612
|
displayName: "Claude Opus 4.8",
|
|
@@ -7441,13 +7620,16 @@ var LLM_MODELS = [
|
|
|
7441
7620
|
maxOutputTokens: 16384,
|
|
7442
7621
|
directFallbackModel: "claude-opus-4-8",
|
|
7443
7622
|
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7623
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7624
|
+
effortRequiresDirect: true,
|
|
7444
7625
|
supportsTemperature: false,
|
|
7445
7626
|
preferKie: true
|
|
7446
7627
|
},
|
|
7447
7628
|
{
|
|
7448
7629
|
id: "claude-opus-5",
|
|
7449
7630
|
displayName: "Claude Opus 5",
|
|
7450
|
-
|
|
7631
|
+
// Demoted 2026-10-08 when claude-opus-5.5 registered.
|
|
7632
|
+
desc: "Previous Opus, deep agentic reasoning",
|
|
7451
7633
|
tier: "premium",
|
|
7452
7634
|
kieFormat: "messages",
|
|
7453
7635
|
// KIE serves Opus 5 on the Claude-native messages dialect under the plain
|
|
@@ -7460,12 +7642,44 @@ var LLM_MODELS = [
|
|
|
7460
7642
|
maxOutputTokens: 16384,
|
|
7461
7643
|
directFallbackModel: "claude-opus-5",
|
|
7462
7644
|
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7645
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7646
|
+
effortRequiresDirect: true,
|
|
7463
7647
|
supportsTemperature: false,
|
|
7464
7648
|
preferKie: true,
|
|
7465
7649
|
// Opus 5 reasons with NO thinking param sent (vendor default flipped from
|
|
7466
7650
|
// Opus 4.8/4.7) — so every call needs output headroom, not just xhigh/max.
|
|
7467
7651
|
thinkingDefaultOn: true
|
|
7468
7652
|
},
|
|
7653
|
+
{
|
|
7654
|
+
id: "claude-opus-5.5",
|
|
7655
|
+
displayName: "Claude Opus 5.5",
|
|
7656
|
+
// Positioned as Fable-class (decided 2026-10-08: offered wherever Fable is).
|
|
7657
|
+
desc: "Latest Opus, frontier-class reasoning",
|
|
7658
|
+
tier: "premium",
|
|
7659
|
+
kieFormat: "messages",
|
|
7660
|
+
// KIE plain id on the messages dialect (docs.kie.ai/market/claude/
|
|
7661
|
+
// claude-opus-5-5 — claude-opus-5's page with the name swapped).
|
|
7662
|
+
// Live-probed 2026-10-08 on the streaming wire (plain + effort); the KIE
|
|
7663
|
+
// Claude lane was erroring for claude-opus-5 too during the tool probes.
|
|
7664
|
+
kieSlugOrModel: "claude-opus-5-5",
|
|
7665
|
+
vendor: "anthropic",
|
|
7666
|
+
structuredOutputMode: "anthropic-tool",
|
|
7667
|
+
// Forced tool_choice is a 400 on this model (vendor docs) — see the field.
|
|
7668
|
+
supportsForcedToolChoice: false,
|
|
7669
|
+
conversationBoundThinking: true,
|
|
7670
|
+
supportsImages: true,
|
|
7671
|
+
maxOutputTokens: 16384,
|
|
7672
|
+
directFallbackModel: "claude-opus-5-5",
|
|
7673
|
+
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7674
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7675
|
+
effortRequiresDirect: true,
|
|
7676
|
+
supportsTemperature: false,
|
|
7677
|
+
preferKie: true,
|
|
7678
|
+
// Thinking cannot be turned off on this model at all (`disabled` is a 400
|
|
7679
|
+
// at every effort); with no effort sent it runs adaptive at the vendor's
|
|
7680
|
+
// `medium` default. Nothing on our wire sends `disabled`.
|
|
7681
|
+
thinkingDefaultOn: true
|
|
7682
|
+
},
|
|
7469
7683
|
{
|
|
7470
7684
|
id: "claude-fable-5",
|
|
7471
7685
|
displayName: "Claude Fable 5",
|
|
@@ -7479,18 +7693,72 @@ var LLM_MODELS = [
|
|
|
7479
7693
|
maxOutputTokens: 16384,
|
|
7480
7694
|
directFallbackModel: "claude-fable-5",
|
|
7481
7695
|
reasoningEfforts: ["low", "medium", "high", "xhigh", "max"],
|
|
7696
|
+
// KIE ignores Claude effort (measured 2026-10-08): an effort call runs direct and bills as Advanced.
|
|
7697
|
+
effortRequiresDirect: true,
|
|
7482
7698
|
supportsTemperature: false,
|
|
7483
7699
|
preferKie: true
|
|
7700
|
+
},
|
|
7701
|
+
// ── Moonshot / DeepSeek ───────────────────────────────────────────────────
|
|
7702
|
+
// Both on KIE's THIRD responses family path, openai/v1/responses (llm-client
|
|
7703
|
+
// derives it from `vendor`). KIE labels both pages "Chat only — not adapted
|
|
7704
|
+
// for agent use": fine for single (structured) completions, so neither may
|
|
7705
|
+
// back a tool-loop feature.
|
|
7706
|
+
{
|
|
7707
|
+
id: "kimi-k3",
|
|
7708
|
+
displayName: "Kimi K3",
|
|
7709
|
+
desc: "Moonshot flagship, 1M context, careful reasoning",
|
|
7710
|
+
tier: "premium",
|
|
7711
|
+
kieFormat: "responses",
|
|
7712
|
+
kieSlugOrModel: "kimi-k3",
|
|
7713
|
+
vendor: "moonshot",
|
|
7714
|
+
// Live-probed 2026-10-08: `text.format` json_schema is ENFORCED — asked to
|
|
7715
|
+
// answer "no json here" in plain prose, it returned schema-shaped JSON.
|
|
7716
|
+
structuredOutputMode: "responses-json-schema",
|
|
7717
|
+
supportsImages: true,
|
|
7718
|
+
maxOutputTokens: 16384,
|
|
7719
|
+
// KIE's documented enum. The endpoint accepted xhigh/none without error but
|
|
7720
|
+
// never echoes an effort back, so nothing beyond the doc is verifiable.
|
|
7721
|
+
reasoningEfforts: ["low", "medium", "high"],
|
|
7722
|
+
// The doc lists no `temperature` field at all.
|
|
7723
|
+
supportsTemperature: false,
|
|
7724
|
+
// "Reasons by default" per KIE's doc (its usage reports no reasoning-token
|
|
7725
|
+
// split, so this is the doc's word, not a measurement).
|
|
7726
|
+
thinkingDefaultOn: true
|
|
7727
|
+
},
|
|
7728
|
+
{
|
|
7729
|
+
id: "deepseek-v4.1-flash",
|
|
7730
|
+
displayName: "DeepSeek V4.1 Flash",
|
|
7731
|
+
desc: "Very cheap and fast, solid reasoning",
|
|
7732
|
+
tier: "economy",
|
|
7733
|
+
kieFormat: "responses",
|
|
7734
|
+
kieSlugOrModel: "deepseek-v4-1-flash",
|
|
7735
|
+
vendor: "deepseek",
|
|
7736
|
+
// Live-probed 2026-10-08: json_schema echoed `strict: true` and enforced.
|
|
7737
|
+
structuredOutputMode: "responses-json-schema",
|
|
7738
|
+
supportsImages: true,
|
|
7739
|
+
// ADVISORY ONLY: KIE documents `max_output_tokens` as "not supported … no
|
|
7740
|
+
// effect" on this model (a probe sending it was accepted and ignored), so
|
|
7741
|
+
// neither this cap nor the reasoning floor binds its output length, and the
|
|
7742
|
+
// `incomplete` cap-stop signal cannot fire from our own cap.
|
|
7743
|
+
maxOutputTokens: 16384,
|
|
7744
|
+
// The endpoint takes none/minimal/low/medium/high/xhigh/max; each of none,
|
|
7745
|
+
// low and xhigh was echoed back. `minimal` is not in our ladder.
|
|
7746
|
+
reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"],
|
|
7747
|
+
// Documented "not supported … no effect".
|
|
7748
|
+
supportsTemperature: false,
|
|
7749
|
+
thinkingDefaultOn: true
|
|
7484
7750
|
}
|
|
7485
7751
|
];
|
|
7486
7752
|
var LLM_MODEL_IDS = LLM_MODELS.map((m) => m.id);
|
|
7487
7753
|
var STRUCTURED_VISION_MODELS = LLM_MODELS.filter(
|
|
7488
7754
|
(m) => m.supportsImages && m.structuredOutputMode != null
|
|
7489
7755
|
);
|
|
7490
|
-
var LLM_VENDOR_ORDER = ["anthropic", "google", "openai", "xai"];
|
|
7756
|
+
var LLM_VENDOR_ORDER = ["anthropic", "deepseek", "google", "moonshot", "openai", "xai"];
|
|
7491
7757
|
var LLM_VENDOR_LABELS = {
|
|
7492
7758
|
anthropic: "Anthropic",
|
|
7759
|
+
deepseek: "DeepSeek",
|
|
7493
7760
|
google: "Google",
|
|
7761
|
+
moonshot: "Moonshot AI",
|
|
7494
7762
|
openai: "OpenAI",
|
|
7495
7763
|
xai: "xAI"
|
|
7496
7764
|
};
|
|
@@ -7525,7 +7793,9 @@ var LLM_FEATURE_DEFAULTS = {
|
|
|
7525
7793
|
// runs once per returned ad — volume, not depth. Must stay an image-capable
|
|
7526
7794
|
// structured-output model (STRUCTURED_VISION_MODELS); a registry test pins it.
|
|
7527
7795
|
"meta-ads-analysis": "gemini-3.6-flash",
|
|
7528
|
-
|
|
7796
|
+
// Moved from claude-opus-5 on 2026-10-08 (decided: Opus 5.5 takes the Opus 5
|
|
7797
|
+
// defaults). Still an image-capable structured model — a registry test pins it.
|
|
7798
|
+
"describe-to-picker": "claude-opus-5.5",
|
|
7529
7799
|
"qa-check": "gemini-3.6-flash",
|
|
7530
7800
|
"generate-script": "gemini-3.6-flash",
|
|
7531
7801
|
"translate": "gemini-3.6-flash",
|
|
@@ -7568,11 +7838,21 @@ var LLM_MODALITY_CAPS = {
|
|
|
7568
7838
|
"gpt-5.6-sol": { image: true, video: false, audio: false },
|
|
7569
7839
|
// KIE's GPT-6 doc lists text + image + file inputs only — no video, no audio.
|
|
7570
7840
|
"gpt-6-astra": { image: true, video: false, audio: false },
|
|
7841
|
+
// Same KIE doc as astra: text + image + file inputs only.
|
|
7842
|
+
"gpt-6-luna": { image: true, video: false, audio: false },
|
|
7843
|
+
"gpt-6-sol": { image: true, video: false, audio: false },
|
|
7844
|
+
"gpt-6.1-sol": { image: true, video: false, audio: false },
|
|
7571
7845
|
"grok-4.6": { image: true, video: false, audio: false },
|
|
7846
|
+
"grok-4.7": { image: true, video: false, audio: false },
|
|
7572
7847
|
"claude-sonnet-5": { image: true, video: false, audio: false },
|
|
7848
|
+
"claude-sonnet-5.5": { image: true, video: false, audio: false },
|
|
7573
7849
|
"claude-opus-4.8": { image: true, video: false, audio: false },
|
|
7574
7850
|
"claude-opus-5": { image: true, video: false, audio: false },
|
|
7575
|
-
"claude-
|
|
7851
|
+
"claude-opus-5.5": { image: true, video: false, audio: false },
|
|
7852
|
+
"claude-fable-5": { image: true, video: false, audio: false },
|
|
7853
|
+
// KIE documents text + image input only for both.
|
|
7854
|
+
"kimi-k3": { image: true, video: false, audio: false },
|
|
7855
|
+
"deepseek-v4.1-flash": { image: true, video: false, audio: false }
|
|
7576
7856
|
};
|
|
7577
7857
|
function getLlmModalityCaps(modelId) {
|
|
7578
7858
|
if (!modelId) return { image: true, video: false, audio: false };
|
|
@@ -7643,17 +7923,34 @@ function bumpTier(tier) {
|
|
|
7643
7923
|
return tier;
|
|
7644
7924
|
}
|
|
7645
7925
|
function supportsAdvancedMode(modelId) {
|
|
7646
|
-
|
|
7926
|
+
const model = modelId ? getLlmModel(modelId) : void 0;
|
|
7927
|
+
return Boolean(model?.directGeminiModel || model?.directFallbackModel);
|
|
7928
|
+
}
|
|
7929
|
+
var ADVANCED_MODE_UNAVAILABLE_REASON = "Advanced mode is available on Gemini and Claude models \u2014 switch the model to enable it.";
|
|
7930
|
+
function llmServesDirect(modelId, reasoningEffort, advancedMode) {
|
|
7931
|
+
if (!supportsAdvancedMode(modelId)) return false;
|
|
7932
|
+
if (advancedMode) return true;
|
|
7933
|
+
return Boolean(
|
|
7934
|
+
getLlmModel(modelId)?.effortRequiresDirect && effectiveReasoningEffort(modelId, reasoningEffort) !== void 0
|
|
7935
|
+
);
|
|
7936
|
+
}
|
|
7937
|
+
var LLM_CREDIT_RUNGS = ["economy", "standard", "premium", "premium-direct"];
|
|
7938
|
+
function llmCreditIdForRung(feature, rung) {
|
|
7939
|
+
return rung === "standard" ? feature : `${feature}:${rung}`;
|
|
7940
|
+
}
|
|
7941
|
+
function llmTierCreditIds(feature) {
|
|
7942
|
+
return LLM_CREDIT_RUNGS.map((rung) => llmCreditIdForRung(feature, rung));
|
|
7647
7943
|
}
|
|
7648
|
-
var ADVANCED_MODE_UNAVAILABLE_REASON = "Advanced mode is available on Gemini models \u2014 switch the model to enable it.";
|
|
7649
7944
|
function buildLlmCreditIdentifier(feature, modelId, reasoningEffort, advancedMode) {
|
|
7650
7945
|
if (!modelId) return feature;
|
|
7651
7946
|
let tier = getLlmTier(modelId);
|
|
7652
7947
|
const eff = effectiveReasoningEffort(modelId, reasoningEffort);
|
|
7653
7948
|
if (eff !== void 0 && EFFORT_TIER_BUMP.has(eff)) tier = bumpTier(tier);
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7949
|
+
const rung = llmServesDirect(modelId, reasoningEffort, advancedMode) ? bumpToDirectRung(tier) : tier;
|
|
7950
|
+
return llmCreditIdForRung(feature, rung);
|
|
7951
|
+
}
|
|
7952
|
+
function bumpToDirectRung(tier) {
|
|
7953
|
+
return tier === "premium" ? "premium-direct" : bumpTier(tier);
|
|
7657
7954
|
}
|
|
7658
7955
|
function resolveLlmCreditId(feature, body) {
|
|
7659
7956
|
const b = body;
|
|
@@ -10438,6 +10735,9 @@ var QUALITY_MAP = {
|
|
|
10438
10735
|
"seedream-5-lite-i2i": { field: "quality", values: { low: "basic", mid: "basic", high: "high" } },
|
|
10439
10736
|
"seedream-5-pro": { field: "quality", values: { low: "basic", mid: "basic", high: "high" } },
|
|
10440
10737
|
"seedream-5-pro-i2i": { field: "quality", values: { low: "basic", mid: "basic", high: "high" } },
|
|
10738
|
+
// Seedream 5 Flash's lever is size (sent as KIE `size`), flat-priced — resolution-style.
|
|
10739
|
+
"seedream-5-flash": { field: "resolution", values: { low: "1K", mid: "2K", high: "2K" } },
|
|
10740
|
+
"seedream-5-flash-i2i": { field: "resolution", values: { low: "1K", mid: "2K", high: "2K" } },
|
|
10441
10741
|
// Video gen — resolution-style (720p/1080p)
|
|
10442
10742
|
"veo3": { field: "resolution", values: { low: "720p", mid: "1080p", high: "1080p" } },
|
|
10443
10743
|
"veo3.1": { field: "resolution", values: { low: "720p", mid: "1080p", high: "1080p" } },
|
|
@@ -10506,6 +10806,30 @@ function deriveLinkedFields(nodeType, value) {
|
|
|
10506
10806
|
return {};
|
|
10507
10807
|
}
|
|
10508
10808
|
|
|
10809
|
+
// src/image-model-roles.ts
|
|
10810
|
+
var IMAGE_MODEL_ROLE_DEFAULTS = {
|
|
10811
|
+
character: "gpt-image-2",
|
|
10812
|
+
general: "gpt-image-2",
|
|
10813
|
+
anchor: "gpt-image-2",
|
|
10814
|
+
edit: "gpt-image-2-5-flare-i2i"
|
|
10815
|
+
};
|
|
10816
|
+
var IMAGE_MODEL_RATIO_FALLBACKS = {
|
|
10817
|
+
character: ["gpt-image-2-5-sunburst", "nano-banana-pro"],
|
|
10818
|
+
general: ["gpt-image-2-5-sunburst", "nano-banana-pro"],
|
|
10819
|
+
anchor: ["gpt-image-2-5-sunburst", "nano-banana-pro"],
|
|
10820
|
+
edit: ["gpt-image-2-5-sunburst-i2i", "nano-banana-pro"]
|
|
10821
|
+
};
|
|
10822
|
+
function imageModelDrawsRatio(modelId, aspectRatio) {
|
|
10823
|
+
if (!aspectRatio) return true;
|
|
10824
|
+
const ratios = MODEL_CATALOG[modelId]?.aspectRatios;
|
|
10825
|
+
return ratios === void 0 || ratios.includes(aspectRatio);
|
|
10826
|
+
}
|
|
10827
|
+
function defaultImageModel(role, aspectRatio) {
|
|
10828
|
+
const primary = IMAGE_MODEL_ROLE_DEFAULTS[role];
|
|
10829
|
+
if (imageModelDrawsRatio(primary, aspectRatio)) return primary;
|
|
10830
|
+
return IMAGE_MODEL_RATIO_FALLBACKS[role].find((id) => imageModelDrawsRatio(id, aspectRatio)) ?? primary;
|
|
10831
|
+
}
|
|
10832
|
+
|
|
10509
10833
|
// src/settings-input.ts
|
|
10510
10834
|
var SETTINGS_INPUT_HANDLE = "settings";
|
|
10511
10835
|
var SETTINGS_SOURCE_FIELDS = {
|
|
@@ -10544,7 +10868,7 @@ var SETTINGS_CONSUMERS = {
|
|
|
10544
10868
|
models: IMAGE_GEN_PROVIDERS,
|
|
10545
10869
|
// The node's own default (NODE_DEFINITIONS) — only used to fit a wired
|
|
10546
10870
|
// ratio when the node names no model.
|
|
10547
|
-
defaultModel:
|
|
10871
|
+
defaultModel: IMAGE_MODEL_ROLE_DEFAULTS.general,
|
|
10548
10872
|
modelList: "providers"
|
|
10549
10873
|
}
|
|
10550
10874
|
};
|
|
@@ -12336,7 +12660,7 @@ function buildConditionVariables(targetNodeId, edges, nodes, extractOutput) {
|
|
|
12336
12660
|
if (edge.targetHandle !== VARIABLES_HANDLE_ID) continue;
|
|
12337
12661
|
const src = nodes.find((n) => n.id === edge.source);
|
|
12338
12662
|
if (!src) continue;
|
|
12339
|
-
const output = extractOutput(src);
|
|
12663
|
+
const output = extractOutput(src)?.trim();
|
|
12340
12664
|
if (output === void 0 || output === "") continue;
|
|
12341
12665
|
const label = src.data.label || src.type || src.id;
|
|
12342
12666
|
pairs.push({ label, output });
|
|
@@ -16877,6 +17201,114 @@ function clipNotesFrom(meta, single) {
|
|
|
16877
17201
|
}));
|
|
16878
17202
|
}
|
|
16879
17203
|
|
|
17204
|
+
// src/entity-node-fields.ts
|
|
17205
|
+
var ENTITY_NODE_KINDS = ["character", "object", "creature", "location"];
|
|
17206
|
+
var ENTITY_DB_ID_FIELD = {
|
|
17207
|
+
character: "characterDbId",
|
|
17208
|
+
object: "objectDbId",
|
|
17209
|
+
creature: "creatureDbId",
|
|
17210
|
+
location: "locationDbId"
|
|
17211
|
+
};
|
|
17212
|
+
var ENTITY_NAME_FIELD = {
|
|
17213
|
+
character: "characterName",
|
|
17214
|
+
object: "objectName",
|
|
17215
|
+
creature: "creatureName",
|
|
17216
|
+
location: "locationName"
|
|
17217
|
+
};
|
|
17218
|
+
var ENTITY_TABLE = {
|
|
17219
|
+
character: "characters",
|
|
17220
|
+
object: "objects",
|
|
17221
|
+
creature: "creatures",
|
|
17222
|
+
location: "locations"
|
|
17223
|
+
};
|
|
17224
|
+
var ENTITY_BUCKET_FIELDS = {
|
|
17225
|
+
character: [
|
|
17226
|
+
["expressions", "expressions"],
|
|
17227
|
+
["poses", "poses"],
|
|
17228
|
+
["motions", "motions"],
|
|
17229
|
+
["angles", "angles"],
|
|
17230
|
+
["body_angles", "bodyAngles"],
|
|
17231
|
+
["lighting_variations", "lightingVariations"],
|
|
17232
|
+
["outfit_variations", "outfitVariations"],
|
|
17233
|
+
["detail_closeups", "detailCloseups"],
|
|
17234
|
+
["sheets", "sheets"]
|
|
17235
|
+
],
|
|
17236
|
+
object: [
|
|
17237
|
+
["angles", "angles"],
|
|
17238
|
+
["materials", "materials"],
|
|
17239
|
+
["variations", "variations"],
|
|
17240
|
+
["motion_clips", "motionClips"],
|
|
17241
|
+
["detail_closeups", "detailCloseups"],
|
|
17242
|
+
["sheets", "sheets"]
|
|
17243
|
+
],
|
|
17244
|
+
creature: [
|
|
17245
|
+
["angles", "angles"],
|
|
17246
|
+
["poses", "poses"],
|
|
17247
|
+
["variations", "variations"],
|
|
17248
|
+
["motion_clips", "motionClips"],
|
|
17249
|
+
["detail_closeups", "detailCloseups"],
|
|
17250
|
+
["sheets", "sheets"]
|
|
17251
|
+
],
|
|
17252
|
+
location: [
|
|
17253
|
+
["time_of_day", "timeOfDay"],
|
|
17254
|
+
["weather", "weather"],
|
|
17255
|
+
["angles", "angles"],
|
|
17256
|
+
["lighting", "lighting"],
|
|
17257
|
+
["seasons", "seasons"],
|
|
17258
|
+
["atmosphere_motions", "atmosphereMotions"],
|
|
17259
|
+
["detail_closeups", "detailCloseups"],
|
|
17260
|
+
["sheets", "sheets"]
|
|
17261
|
+
]
|
|
17262
|
+
};
|
|
17263
|
+
var ENTITY_SCALAR_FIELDS = [
|
|
17264
|
+
["name", "__name"],
|
|
17265
|
+
// routed to the kind's own name field by the caller
|
|
17266
|
+
["description", "description"],
|
|
17267
|
+
["canonical_description", "canonicalDescription"],
|
|
17268
|
+
["source_image_url", "sourceImageUrl"]
|
|
17269
|
+
];
|
|
17270
|
+
var ENTITY_KIND_SCALAR_FIELDS = {
|
|
17271
|
+
character: [],
|
|
17272
|
+
object: [["style_lock", "styleLock"]],
|
|
17273
|
+
creature: [["style_lock", "styleLock"]],
|
|
17274
|
+
location: [["style_lock", "styleLock"]]
|
|
17275
|
+
};
|
|
17276
|
+
function entityHydrationColumns(kind) {
|
|
17277
|
+
return [
|
|
17278
|
+
"id",
|
|
17279
|
+
...entityScalarFields(kind).map(([column]) => column),
|
|
17280
|
+
...ENTITY_BUCKET_FIELDS[kind].map(([column]) => column)
|
|
17281
|
+
];
|
|
17282
|
+
}
|
|
17283
|
+
function entityScalarFields(kind) {
|
|
17284
|
+
return [...ENTITY_SCALAR_FIELDS, ...ENTITY_KIND_SCALAR_FIELDS[kind]];
|
|
17285
|
+
}
|
|
17286
|
+
|
|
17287
|
+
// src/lone-media-url.ts
|
|
17288
|
+
var IMAGE_FILE_RE = /\.(png|jpe?g|gif|webp)$/i;
|
|
17289
|
+
var VIDEO_FILE_RE = /\.(mp4|mov|webm|m4v)$/i;
|
|
17290
|
+
function loneMediaUrlKind(value) {
|
|
17291
|
+
const s = value.trim();
|
|
17292
|
+
if (s.length === 0 || /[\s,]/.test(s) || !/^https?:\/\//i.test(s)) return null;
|
|
17293
|
+
let pathname;
|
|
17294
|
+
try {
|
|
17295
|
+
pathname = new URL(s).pathname;
|
|
17296
|
+
} catch {
|
|
17297
|
+
return null;
|
|
17298
|
+
}
|
|
17299
|
+
if (IMAGE_FILE_RE.test(pathname)) return "image";
|
|
17300
|
+
if (VIDEO_FILE_RE.test(pathname)) return "video";
|
|
17301
|
+
return null;
|
|
17302
|
+
}
|
|
17303
|
+
var MESSAGE_TRIGGER_TYPES = /* @__PURE__ */ new Set(["telegram-trigger", "telegram-account-trigger"]);
|
|
17304
|
+
function isLoneMediaLinkSource(nodeType) {
|
|
17305
|
+
if (!nodeType) return false;
|
|
17306
|
+
if (IMAGE_PRODUCER_TYPES.has(nodeType) || VIDEO_PRODUCER_TYPES.has(nodeType) || AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
|
|
17307
|
+
if (DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
|
|
17308
|
+
if (ENTITY_NODE_KINDS.includes(nodeType) || nodeType === "face") return false;
|
|
17309
|
+
return true;
|
|
17310
|
+
}
|
|
17311
|
+
|
|
16880
17312
|
// src/suno-track-sources.ts
|
|
16881
17313
|
var SUNO_TRACK_SOURCE_TYPES = /* @__PURE__ */ new Set([
|
|
16882
17314
|
"suno-generate",
|
|
@@ -19095,12 +19527,15 @@ var CONTENT_RECIPE_IDEAS_CREDIT_IDS = [
|
|
|
19095
19527
|
"content-recipe:economy",
|
|
19096
19528
|
"content-recipe",
|
|
19097
19529
|
"content-recipe:premium",
|
|
19530
|
+
"content-recipe:premium-direct",
|
|
19098
19531
|
"content-ideas:economy",
|
|
19099
19532
|
"content-ideas",
|
|
19100
19533
|
"content-ideas:premium",
|
|
19534
|
+
"content-ideas:premium-direct",
|
|
19101
19535
|
"content-ideas:10:economy",
|
|
19102
19536
|
"content-ideas:10",
|
|
19103
|
-
"content-ideas:10:premium"
|
|
19537
|
+
"content-ideas:10:premium",
|
|
19538
|
+
"content-ideas:10:premium-direct"
|
|
19104
19539
|
];
|
|
19105
19540
|
|
|
19106
19541
|
// src/smart-cut-windows.ts
|
|
@@ -19202,89 +19637,6 @@ var OrgSettingsSchema = PresetSettingsSchema.partial().extend({
|
|
|
19202
19637
|
/** Per-org relabelling of the kind vocabulary (./vocabulary.ts). */
|
|
19203
19638
|
vocabulary_overrides: zod.z.record(zod.z.string(), zod.z.string()).optional()
|
|
19204
19639
|
});
|
|
19205
|
-
|
|
19206
|
-
// src/entity-node-fields.ts
|
|
19207
|
-
var ENTITY_NODE_KINDS = ["character", "object", "creature", "location"];
|
|
19208
|
-
var ENTITY_DB_ID_FIELD = {
|
|
19209
|
-
character: "characterDbId",
|
|
19210
|
-
object: "objectDbId",
|
|
19211
|
-
creature: "creatureDbId",
|
|
19212
|
-
location: "locationDbId"
|
|
19213
|
-
};
|
|
19214
|
-
var ENTITY_NAME_FIELD = {
|
|
19215
|
-
character: "characterName",
|
|
19216
|
-
object: "objectName",
|
|
19217
|
-
creature: "creatureName",
|
|
19218
|
-
location: "locationName"
|
|
19219
|
-
};
|
|
19220
|
-
var ENTITY_TABLE = {
|
|
19221
|
-
character: "characters",
|
|
19222
|
-
object: "objects",
|
|
19223
|
-
creature: "creatures",
|
|
19224
|
-
location: "locations"
|
|
19225
|
-
};
|
|
19226
|
-
var ENTITY_BUCKET_FIELDS = {
|
|
19227
|
-
character: [
|
|
19228
|
-
["expressions", "expressions"],
|
|
19229
|
-
["poses", "poses"],
|
|
19230
|
-
["motions", "motions"],
|
|
19231
|
-
["angles", "angles"],
|
|
19232
|
-
["body_angles", "bodyAngles"],
|
|
19233
|
-
["lighting_variations", "lightingVariations"],
|
|
19234
|
-
["outfit_variations", "outfitVariations"],
|
|
19235
|
-
["detail_closeups", "detailCloseups"],
|
|
19236
|
-
["sheets", "sheets"]
|
|
19237
|
-
],
|
|
19238
|
-
object: [
|
|
19239
|
-
["angles", "angles"],
|
|
19240
|
-
["materials", "materials"],
|
|
19241
|
-
["variations", "variations"],
|
|
19242
|
-
["motion_clips", "motionClips"],
|
|
19243
|
-
["detail_closeups", "detailCloseups"],
|
|
19244
|
-
["sheets", "sheets"]
|
|
19245
|
-
],
|
|
19246
|
-
creature: [
|
|
19247
|
-
["angles", "angles"],
|
|
19248
|
-
["poses", "poses"],
|
|
19249
|
-
["variations", "variations"],
|
|
19250
|
-
["motion_clips", "motionClips"],
|
|
19251
|
-
["detail_closeups", "detailCloseups"],
|
|
19252
|
-
["sheets", "sheets"]
|
|
19253
|
-
],
|
|
19254
|
-
location: [
|
|
19255
|
-
["time_of_day", "timeOfDay"],
|
|
19256
|
-
["weather", "weather"],
|
|
19257
|
-
["angles", "angles"],
|
|
19258
|
-
["lighting", "lighting"],
|
|
19259
|
-
["seasons", "seasons"],
|
|
19260
|
-
["atmosphere_motions", "atmosphereMotions"],
|
|
19261
|
-
["detail_closeups", "detailCloseups"],
|
|
19262
|
-
["sheets", "sheets"]
|
|
19263
|
-
]
|
|
19264
|
-
};
|
|
19265
|
-
var ENTITY_SCALAR_FIELDS = [
|
|
19266
|
-
["name", "__name"],
|
|
19267
|
-
// routed to the kind's own name field by the caller
|
|
19268
|
-
["description", "description"],
|
|
19269
|
-
["canonical_description", "canonicalDescription"],
|
|
19270
|
-
["source_image_url", "sourceImageUrl"]
|
|
19271
|
-
];
|
|
19272
|
-
var ENTITY_KIND_SCALAR_FIELDS = {
|
|
19273
|
-
character: [],
|
|
19274
|
-
object: [["style_lock", "styleLock"]],
|
|
19275
|
-
creature: [["style_lock", "styleLock"]],
|
|
19276
|
-
location: [["style_lock", "styleLock"]]
|
|
19277
|
-
};
|
|
19278
|
-
function entityHydrationColumns(kind) {
|
|
19279
|
-
return [
|
|
19280
|
-
"id",
|
|
19281
|
-
...entityScalarFields(kind).map(([column]) => column),
|
|
19282
|
-
...ENTITY_BUCKET_FIELDS[kind].map(([column]) => column)
|
|
19283
|
-
];
|
|
19284
|
-
}
|
|
19285
|
-
function entityScalarFields(kind) {
|
|
19286
|
-
return [...ENTITY_SCALAR_FIELDS, ...ENTITY_KIND_SCALAR_FIELDS[kind]];
|
|
19287
|
-
}
|
|
19288
19640
|
var SCENE3D_PLAN_TYPE = "3d-scene";
|
|
19289
19641
|
var SCENE3D_SCHEMA_VERSION = 1;
|
|
19290
19642
|
var SCENE3D_DEFAULT_FPS = 24;
|
|
@@ -24072,6 +24424,8 @@ exports.IMAGE_EDIT_PROVIDERS = IMAGE_EDIT_PROVIDERS;
|
|
|
24072
24424
|
exports.IMAGE_GEN_PROVIDERS = IMAGE_GEN_PROVIDERS;
|
|
24073
24425
|
exports.IMAGE_I2I_PROVIDERS = IMAGE_I2I_PROVIDERS;
|
|
24074
24426
|
exports.IMAGE_MASK_MODE = IMAGE_MASK_MODE;
|
|
24427
|
+
exports.IMAGE_MODEL_RATIO_FALLBACKS = IMAGE_MODEL_RATIO_FALLBACKS;
|
|
24428
|
+
exports.IMAGE_MODEL_ROLE_DEFAULTS = IMAGE_MODEL_ROLE_DEFAULTS;
|
|
24075
24429
|
exports.IMAGE_OVERLAY_BASE_CREDITS = IMAGE_OVERLAY_BASE_CREDITS;
|
|
24076
24430
|
exports.IMAGE_OVERLAY_VARIANT_CREDITS = IMAGE_OVERLAY_VARIANT_CREDITS;
|
|
24077
24431
|
exports.IMAGE_PRODUCER_TYPES = IMAGE_PRODUCER_TYPES;
|
|
@@ -24114,6 +24468,7 @@ exports.LEGACY_TEMPLATE_CATEGORIES = LEGACY_TEMPLATE_CATEGORIES;
|
|
|
24114
24468
|
exports.LIP_SYNC_DURATION_BUCKETS = LIP_SYNC_DURATION_BUCKETS;
|
|
24115
24469
|
exports.LIP_SYNC_MAX_AUDIO_SECONDS = LIP_SYNC_MAX_AUDIO_SECONDS;
|
|
24116
24470
|
exports.LIP_SYNC_PROVIDERS = LIP_SYNC_PROVIDERS;
|
|
24471
|
+
exports.LLM_CREDIT_RUNGS = LLM_CREDIT_RUNGS;
|
|
24117
24472
|
exports.LLM_FEATURE_DEFAULTS = LLM_FEATURE_DEFAULTS;
|
|
24118
24473
|
exports.LLM_MODALITY_CAPS = LLM_MODALITY_CAPS;
|
|
24119
24474
|
exports.LLM_MODELS = LLM_MODELS;
|
|
@@ -24796,6 +25151,7 @@ exports.declaredJsonOutputRows = declaredJsonOutputRows;
|
|
|
24796
25151
|
exports.decodeProviderItem = decodeProviderItem;
|
|
24797
25152
|
exports.defaultCarriedFraction = defaultCarriedFraction;
|
|
24798
25153
|
exports.defaultEdgeOutputMode = defaultEdgeOutputMode;
|
|
25154
|
+
exports.defaultImageModel = defaultImageModel;
|
|
24799
25155
|
exports.defaultResolutionFor = defaultResolutionFor;
|
|
24800
25156
|
exports.defaultRoleForSource = defaultRoleForSource;
|
|
24801
25157
|
exports.defaultSpeakerMap = defaultSpeakerMap;
|
|
@@ -24952,6 +25308,7 @@ exports.hostnameMatchesAllowlist = hostnameMatchesAllowlist;
|
|
|
24952
25308
|
exports.humanizeSlotSid = humanizeSlotSid;
|
|
24953
25309
|
exports.imageMentionSlug = imageMentionSlug;
|
|
24954
25310
|
exports.imageMentionSlugForRef = imageMentionSlugForRef;
|
|
25311
|
+
exports.imageModelDrawsRatio = imageModelDrawsRatio;
|
|
24955
25312
|
exports.imageOverlayBillableVariants = imageOverlayBillableVariants;
|
|
24956
25313
|
exports.imageOverlayCredits = imageOverlayCredits;
|
|
24957
25314
|
exports.imageReferenceLimit = imageReferenceLimit;
|
|
@@ -24993,6 +25350,7 @@ exports.isKnownSpeakerEmphasisStyle = isKnownSpeakerEmphasisStyle;
|
|
|
24993
25350
|
exports.isLegacySunoModel = isLegacySunoModel;
|
|
24994
25351
|
exports.isLocalOrPrivateHostname = isLocalOrPrivateHostname;
|
|
24995
25352
|
exports.isLocationUsageMode = isLocationUsageMode;
|
|
25353
|
+
exports.isLoneMediaLinkSource = isLoneMediaLinkSource;
|
|
24996
25354
|
exports.isMeasurableCard = isMeasurableCard;
|
|
24997
25355
|
exports.isMetaAdsFormat = isMetaAdsFormat;
|
|
24998
25356
|
exports.isMetaAdsPlatform = isMetaAdsPlatform;
|
|
@@ -25054,12 +25412,16 @@ exports.listModels = listModels;
|
|
|
25054
25412
|
exports.listResultsServeHandle = listResultsServeHandle;
|
|
25055
25413
|
exports.listSlotSids = listSlotSids;
|
|
25056
25414
|
exports.liveRowColumn = liveRowColumn;
|
|
25415
|
+
exports.llmCreditIdForRung = llmCreditIdForRung;
|
|
25057
25416
|
exports.llmRouteDefaults = llmRouteDefaults;
|
|
25417
|
+
exports.llmServesDirect = llmServesDirect;
|
|
25418
|
+
exports.llmTierCreditIds = llmTierCreditIds;
|
|
25058
25419
|
exports.localMinuteKey = localMinuteKey;
|
|
25059
25420
|
exports.localTimeIn = localTimeIn;
|
|
25060
25421
|
exports.locationMentionSlug = locationMentionSlug;
|
|
25061
25422
|
exports.locationReferencePhotoKindLabel = locationReferencePhotoKindLabel;
|
|
25062
25423
|
exports.locationUsageModeLabel = locationUsageModeLabel;
|
|
25424
|
+
exports.loneMediaUrlKind = loneMediaUrlKind;
|
|
25063
25425
|
exports.ltxExtendDurationSec = ltxExtendDurationSec;
|
|
25064
25426
|
exports.ltxRetakeDurationSec = ltxRetakeDurationSec;
|
|
25065
25427
|
exports.mapAspectRatio = mapAspectRatio;
|