@nodaro/shared 3.65.0 → 3.67.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-GJ3D5X4X.cjs → chunk-23IKLMRL.cjs} +41 -41
- package/dist/{chunk-GJ3D5X4X.cjs.map → chunk-23IKLMRL.cjs.map} +1 -1
- package/dist/{chunk-E66HSC2E.cjs → chunk-37ZSFS6A.cjs} +9 -9
- package/dist/{chunk-E66HSC2E.cjs.map → chunk-37ZSFS6A.cjs.map} +1 -1
- package/dist/{chunk-K6RIN3LW.cjs → chunk-3L7GMQ4M.cjs} +47 -47
- package/dist/chunk-3L7GMQ4M.cjs.map +1 -0
- package/dist/{chunk-YMZUE2IX.js → chunk-3QJ3UR5Z.js} +9 -9
- package/dist/{chunk-YMZUE2IX.js.map → chunk-3QJ3UR5Z.js.map} +1 -1
- package/dist/{chunk-Q4YOLT4M.js → chunk-3YWZ5SOZ.js} +5 -5
- package/dist/{chunk-Q4YOLT4M.js.map → chunk-3YWZ5SOZ.js.map} +1 -1
- package/dist/{chunk-2NKF476Z.js → chunk-5GG4CG4Y.js} +3 -3
- package/dist/{chunk-2NKF476Z.js.map → chunk-5GG4CG4Y.js.map} +1 -1
- package/dist/{chunk-ZSRXY5YT.js → chunk-5IZHECUP.js} +3 -3
- package/dist/{chunk-ZSRXY5YT.js.map → chunk-5IZHECUP.js.map} +1 -1
- package/dist/{chunk-D5Y3EYRM.js → chunk-5J2LIQYU.js} +5 -5
- package/dist/{chunk-D5Y3EYRM.js.map → chunk-5J2LIQYU.js.map} +1 -1
- package/dist/{chunk-BSTAAGLY.js → chunk-5LWYX4GV.js} +3 -3
- package/dist/{chunk-BSTAAGLY.js.map → chunk-5LWYX4GV.js.map} +1 -1
- package/dist/{chunk-JYU5EIRM.cjs → chunk-66QSUUB4.cjs} +12 -12
- package/dist/{chunk-JYU5EIRM.cjs.map → chunk-66QSUUB4.cjs.map} +1 -1
- package/dist/{chunk-7BN4EDIC.cjs → chunk-BMDOPJBP.cjs} +17 -17
- package/dist/{chunk-7BN4EDIC.cjs.map → chunk-BMDOPJBP.cjs.map} +1 -1
- package/dist/{chunk-222QM7CO.js → chunk-BNR5FKL5.js} +3 -3
- package/dist/{chunk-222QM7CO.js.map → chunk-BNR5FKL5.js.map} +1 -1
- package/dist/{chunk-FGBGKBML.js → chunk-CFTXW3ZL.js} +70 -3
- package/dist/chunk-CFTXW3ZL.js.map +1 -0
- package/dist/{chunk-FI3HJZWM.cjs → chunk-E62W5I6A.cjs} +6 -2
- package/dist/chunk-E62W5I6A.cjs.map +1 -0
- package/dist/{chunk-MIT2USTS.cjs → chunk-EFYWV2V5.cjs} +61 -61
- package/dist/{chunk-MIT2USTS.cjs.map → chunk-EFYWV2V5.cjs.map} +1 -1
- package/dist/{chunk-RP4KQUNU.cjs → chunk-F6XIH3TZ.cjs} +9 -9
- package/dist/{chunk-RP4KQUNU.cjs.map → chunk-F6XIH3TZ.cjs.map} +1 -1
- package/dist/{chunk-KTCEKGBJ.cjs → chunk-G2G7XGFU.cjs} +7 -7
- package/dist/{chunk-KTCEKGBJ.cjs.map → chunk-G2G7XGFU.cjs.map} +1 -1
- package/dist/{chunk-HAH2F7LT.js → chunk-GF7ZA26H.js} +4 -4
- package/dist/{chunk-HAH2F7LT.js.map → chunk-GF7ZA26H.js.map} +1 -1
- package/dist/{chunk-FJZTQTF4.cjs → chunk-GNLA5NTT.cjs} +4 -4
- package/dist/{chunk-FJZTQTF4.cjs.map → chunk-GNLA5NTT.cjs.map} +1 -1
- package/dist/{chunk-ST7OBB5J.js → chunk-GTBW2KAY.js} +4 -4
- package/dist/{chunk-ST7OBB5J.js.map → chunk-GTBW2KAY.js.map} +1 -1
- package/dist/{chunk-R5ILCNCC.cjs → chunk-HTDKEYMY.cjs} +75 -75
- package/dist/{chunk-R5ILCNCC.cjs.map → chunk-HTDKEYMY.cjs.map} +1 -1
- package/dist/{chunk-DQ2PARNH.cjs → chunk-IWUW3YPM.cjs} +5 -5
- package/dist/{chunk-DQ2PARNH.cjs.map → chunk-IWUW3YPM.cjs.map} +1 -1
- package/dist/{chunk-6OSIOVF7.cjs → chunk-JTYCJ5OL.cjs} +16 -16
- package/dist/{chunk-6OSIOVF7.cjs.map → chunk-JTYCJ5OL.cjs.map} +1 -1
- package/dist/{chunk-JQMFJAYU.cjs → chunk-M5QY464F.cjs} +21 -21
- package/dist/{chunk-JQMFJAYU.cjs.map → chunk-M5QY464F.cjs.map} +1 -1
- package/dist/{chunk-CW6MMQNO.js → chunk-MVXZP6VB.js} +6 -2
- package/dist/chunk-MVXZP6VB.js.map +1 -0
- package/dist/{chunk-H745DQ6V.js → chunk-OFQ6CU6S.js} +3 -3
- package/dist/{chunk-H745DQ6V.js.map → chunk-OFQ6CU6S.js.map} +1 -1
- package/dist/{chunk-XJANKTIL.js → chunk-OXBU5AGH.js} +3 -3
- package/dist/{chunk-XJANKTIL.js.map → chunk-OXBU5AGH.js.map} +1 -1
- package/dist/{chunk-SPU7MUWE.cjs → chunk-OXTF4Y3P.cjs} +6 -6
- package/dist/{chunk-SPU7MUWE.cjs.map → chunk-OXTF4Y3P.cjs.map} +1 -1
- package/dist/{chunk-5SSMPYE5.js → chunk-PAUWEWTY.js} +5 -5
- package/dist/chunk-PAUWEWTY.js.map +1 -0
- package/dist/{chunk-KWYS4IIM.cjs → chunk-PJAJCFLP.cjs} +49 -38
- package/dist/chunk-PJAJCFLP.cjs.map +1 -0
- package/dist/{chunk-7OWXHW7Z.js → chunk-RVQW623D.js} +6 -6
- package/dist/{chunk-7OWXHW7Z.js.map → chunk-RVQW623D.js.map} +1 -1
- package/dist/{chunk-V5NLQ4L5.js → chunk-SCDE676D.js} +5 -5
- package/dist/{chunk-V5NLQ4L5.js.map → chunk-SCDE676D.js.map} +1 -1
- package/dist/{chunk-3AU52TSW.js → chunk-SW5ZD7BO.js} +3 -3
- package/dist/{chunk-3AU52TSW.js.map → chunk-SW5ZD7BO.js.map} +1 -1
- package/dist/{chunk-WQMPIURW.cjs → chunk-T4GIHHXY.cjs} +6 -6
- package/dist/{chunk-WQMPIURW.cjs.map → chunk-T4GIHHXY.cjs.map} +1 -1
- package/dist/{chunk-PL7AQQV7.js → chunk-VBP4DH37.js} +18 -10
- package/dist/chunk-VBP4DH37.js.map +1 -0
- package/dist/{chunk-YD4XY74W.cjs → chunk-X2YHKP4D.cjs} +8 -8
- package/dist/{chunk-YD4XY74W.cjs.map → chunk-X2YHKP4D.cjs.map} +1 -1
- package/dist/{chunk-6X5PBAC4.js → chunk-XEPKONJC.js} +3 -3
- package/dist/{chunk-6X5PBAC4.js.map → chunk-XEPKONJC.js.map} +1 -1
- package/dist/{chunk-NYZQOIXJ.cjs → chunk-ZQ2BHOFH.cjs} +89 -2
- package/dist/chunk-ZQ2BHOFH.cjs.map +1 -0
- package/dist/entries/apps.cjs +42 -42
- package/dist/entries/apps.js +7 -7
- package/dist/entries/credits.cjs +217 -217
- package/dist/entries/credits.d.cts +2 -2
- package/dist/entries/credits.d.ts +2 -2
- package/dist/entries/credits.js +9 -9
- package/dist/entries/llm-models.d.cts +2 -2
- package/dist/entries/llm-models.d.ts +2 -2
- package/dist/entries/media.cjs +147 -67
- package/dist/entries/media.d.cts +102 -1
- package/dist/entries/media.d.ts +102 -1
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +133 -133
- package/dist/entries/model-catalog.d.cts +3 -3
- package/dist/entries/model-catalog.d.ts +3 -3
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +403 -391
- package/dist/entries/models.d.cts +5 -5
- package/dist/entries/models.d.ts +5 -5
- package/dist/entries/models.js +5 -5
- package/dist/entries/nodes.cjs +212 -212
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +8 -8
- package/dist/entries/pipeline.cjs +153 -153
- package/dist/entries/pipeline.d.cts +2 -2
- package/dist/entries/pipeline.d.ts +2 -2
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +152 -152
- package/dist/entries/video.d.cts +15 -10
- package/dist/entries/video.d.ts +15 -10
- package/dist/entries/video.js +6 -6
- package/dist/entries/workflow.d.cts +1 -1
- package/dist/entries/workflow.d.ts +1 -1
- package/dist/index.cjs +1502 -1410
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +19 -19
- package/dist/{model-catalog-BoUKGFNl.d.ts → model-catalog-B-aQnUS8.d.cts} +19 -1
- package/dist/{model-catalog-BoUKGFNl.d.cts → model-catalog-B-aQnUS8.d.ts} +19 -1
- package/dist/{model-constants-CpQz1bGa.d.cts → model-constants-BstsUup6.d.cts} +52 -2
- package/dist/{model-constants-BElS3AeE.d.ts → model-constants-DZ3tPGFO.d.ts} +52 -2
- package/dist/{tts-capabilities-BtnDWK9K.d.ts → tts-capabilities-BJ4N8MIB.d.ts} +1 -1
- package/dist/{tts-capabilities-C52UccTI.d.cts → tts-capabilities-Cf_4nu1Z.d.cts} +1 -1
- package/package.json +1 -1
- package/src/__tests__/flux-3-klein.test.ts +51 -3
- package/src/__tests__/freecut-ai-panel.test.ts +149 -0
- package/src/__tests__/image-run-limit.test.ts +96 -0
- package/src/__tests__/kling4-catalog.test.ts +1 -1
- package/src/__tests__/seedream-5-5.test.ts +17 -0
- package/src/__tests__/video-subjects.test.ts +33 -16
- package/src/entries/media.ts +1 -0
- package/src/entries/models.ts +4 -0
- package/src/freecut-ai-panel.ts +172 -0
- package/src/freecut-protocol.ts +13 -0
- package/src/model-catalog.ts +24 -2
- package/src/model-constants.ts +72 -6
- package/src/video-character-refs.ts +15 -10
- package/dist/chunk-5SSMPYE5.js.map +0 -1
- package/dist/chunk-CW6MMQNO.js.map +0 -1
- package/dist/chunk-FGBGKBML.js.map +0 -1
- package/dist/chunk-FI3HJZWM.cjs.map +0 -1
- package/dist/chunk-K6RIN3LW.cjs.map +0 -1
- package/dist/chunk-KWYS4IIM.cjs.map +0 -1
- package/dist/chunk-NYZQOIXJ.cjs.map +0 -1
- package/dist/chunk-PL7AQQV7.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DeclaredSeedanceTaskType, t as ModelInputAdjustment } from './model-catalog-
|
|
2
|
+
import { D as DeclaredSeedanceTaskType, t as ModelInputAdjustment } from './model-catalog-B-aQnUS8.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Model constants shared between frontend and backend.
|
|
@@ -375,6 +375,51 @@ declare const MAX_REQUEST_IMAGE_LIMIT: number;
|
|
|
375
375
|
* id reads its edit sibling's row, the model that consumes them).
|
|
376
376
|
*/
|
|
377
377
|
declare function requestImageLimit(provider: string | undefined): number;
|
|
378
|
+
/**
|
|
379
|
+
* True for a model with a request image limit of its own: a row in the table
|
|
380
|
+
* above, read through a text-to-image id's edit sibling as
|
|
381
|
+
* {@link requestImageLimit} reads it (GPT Image 2.6 Flare and Sunburst,
|
|
382
|
+
* MiniMax H3 Image, Seedream 5.5, FLUX 3 Klein). False for a model held to
|
|
383
|
+
* {@link DEFAULT_REQUEST_IMAGE_LIMIT}.
|
|
384
|
+
*/
|
|
385
|
+
declare function hasOwnRequestImageLimit(provider: string | undefined): boolean;
|
|
386
|
+
/**
|
|
387
|
+
* True for a model that refuses a WORKFLOW run sending more input images than
|
|
388
|
+
* {@link requestImageLimit} allows, the source or base image counted, instead
|
|
389
|
+
* of having some left out (its catalog entry's `refusesImagesOverLimit`:
|
|
390
|
+
* FLUX 3 Klein). A request is refused on more models
|
|
391
|
+
* ({@link refusesImagesOverLimitOn}). The prompt assembler never trims such a
|
|
392
|
+
* model's references, so every place that refuses counts the images the run
|
|
393
|
+
* would really send. False for every other model, whose workflow runs still
|
|
394
|
+
* trim structured references to its reference limit
|
|
395
|
+
* ({@link imageReferenceLimit}).
|
|
396
|
+
*/
|
|
397
|
+
declare function refusesImagesOverLimit(provider: string | undefined): boolean;
|
|
398
|
+
/**
|
|
399
|
+
* How a run was asked for, which decides what happens to images past a
|
|
400
|
+
* model's limit: `"request"` is one call to a route (the API, an MCP tool,
|
|
401
|
+
* the editor's Run of one node), `"workflow"` a node of a workflow run.
|
|
402
|
+
*/
|
|
403
|
+
type ImageRunKind = "request" | "workflow";
|
|
404
|
+
/**
|
|
405
|
+
* True when a run of this kind that would send `provider` more input images
|
|
406
|
+
* than {@link requestImageLimit} allows is refused before anything is
|
|
407
|
+
* reserved, saying how many to remove, rather than having the images past the
|
|
408
|
+
* limit left out (decided 2026-11-14):
|
|
409
|
+
*
|
|
410
|
+
* - a request, on every model with a request image limit of its own
|
|
411
|
+
* ({@link hasOwnRequestImageLimit}): nothing trims it first, so the count
|
|
412
|
+
* refused is the count the request names;
|
|
413
|
+
* - a workflow run, only on a model whose catalog entry carries
|
|
414
|
+
* `refusesImagesOverLimit` (FLUX 3 Klein). Every other model's workflow run
|
|
415
|
+
* keeps its rule: its first images up to the limit are sent, so a saved
|
|
416
|
+
* graph keeps running.
|
|
417
|
+
*
|
|
418
|
+
* False on a model held to {@link DEFAULT_REQUEST_IMAGE_LIMIT} (Nano Banana
|
|
419
|
+
* Pro, Flux 2 Pro): its structured references are trimmed to its reference
|
|
420
|
+
* limit on every kind of run, as before.
|
|
421
|
+
*/
|
|
422
|
+
declare function refusesImagesOverLimitOn(provider: string | undefined, run: ImageRunKind): boolean;
|
|
378
423
|
declare const VARIABLE_PRICING_MODELS: Record<string, "quality" | "resolution" | "rendering-speed">;
|
|
379
424
|
declare const HIGH_QUALITY_PROVIDERS: Set<string>;
|
|
380
425
|
declare const TWO_K_RESOLUTION_PROVIDERS: Set<string>;
|
|
@@ -1559,6 +1604,11 @@ declare const VIDEO_REF_LIMITS_BY_PROVIDER: Record<string, {
|
|
|
1559
1604
|
* and does not move the run onto the reference-video rate (its clip still
|
|
1560
1605
|
* counts toward the `videos` cap and the reference videos' total length).
|
|
1561
1606
|
* Read through `videoCharacterClipsBilledAsReferenceVideo`.
|
|
1607
|
+
*
|
|
1608
|
+
* No model sets it today: Kling 4.0 and Kling 4.0 Flash, both measured,
|
|
1609
|
+
* bill a video subject like an image subject (decided 2026-11-14). It stays
|
|
1610
|
+
* for a model whose provider bills the clip, so that model declares it here
|
|
1611
|
+
* and every price path follows.
|
|
1562
1612
|
*/
|
|
1563
1613
|
videoCharactersBillAsReferenceVideo?: true;
|
|
1564
1614
|
} | undefined>;
|
|
@@ -2267,4 +2317,4 @@ declare function applyDefaultVideoSelection<D>(input: {
|
|
|
2267
2317
|
duration: D | number | undefined;
|
|
2268
2318
|
};
|
|
2269
2319
|
|
|
2270
|
-
export { HIGH_QUALITY_PROVIDERS as $, AI_WRITER_PROVIDERS as A, type ExtendVideoProvider as B, CAPTION_TRANSCRIBE_LANES as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, FAL_LIP_SYNC_PROVIDERS as G, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as H, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as I, type FaceSwapProvider as J, GEMINI_OMNI_12_MAX_SOURCE_SEC as K, GEMINI_OMNI_PER_SECOND_PROVIDERS as L, GEMINI_OMNI_PROVIDERS as M, GROK_EXTEND_PROVIDER as N, GROK_EXTEND_SOURCE_MODELS as O, GROK_VIDEO_15_DEFAULT_RESOLUTION as P, GROK_VIDEO_15_MAX_MIDDLE_FRAMES as Q, GROK_VIDEO_15_PROVIDER as R, GUIDANCE_SCALE_SUPPORT as S, GVP_ANCHOR_CHOICES as T, GVP_DEFAULT_PROVIDER as U, GVP_END_FRAME_PROVIDERS as V, GVP_EXTEND_PROVIDERS as W, GVP_SUPPORTED_PROVIDERS as X, type GrokExtendProvider as Y, type GvpAnchorChoice as Z, type GvpAnchorWireMode as _, ASPECT_RATIO_DIMENSIONS as a, NATIVE_ADAPTIVE_ASPECT as a$, I2I_MASK_SUPPORT as a0, I2I_STRENGTH_SUPPORT as a1, IDEOGRAM_PROVIDERS as a2, IMAGE_ASPECT_RATIO_VALUES as a3, IMAGE_BACKGROUND_VALUES as a4, IMAGE_EDIT_PROVIDERS as a5, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as a6, IMAGE_GEN_PROVIDERS as a7, IMAGE_I2I_PROVIDERS as a8, IMAGE_K_RESOLUTION_VALUES as a9, KLING_4_MAX_MIDDLE_FRAMES as aA, KLING_4_PROVIDERS as aB, LEGACY_VIDEO_NODE_DEFAULT_PROVIDER as aC, LIP_SYNC_PROVIDERS as aD, LLM_STRUCTURED_SYSTEM_MAX as aE, LLM_TEXT_INPUT_MAX as aF, LOCATION_ATMOSPHERE_PROVIDERS as aG, type LipSyncProvider as aH, type LocationAtmosphereProvider as aI, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as aJ, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as aK, MAX_REQUEST_IMAGE_LIMIT as aL, MAX_TTS_CHARS_BY_PROVIDER as aM, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as aN, MINIMAX_H3_DEFAULT_RESOLUTION as aO, MINIMAX_H3_PROVIDERS as aP, MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER as aQ, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as aR, MODIFY_IMAGE_PROVIDERS as aS, MOTION_TRANSFER_PROVIDERS as aT, MUSIC_CREDIT_ID as aU, MUSIC_PROVIDERS as aV, MUSIC_PROVIDER_LABELS as aW, type ModelPromptingStyle as aX, type ModifyImageProvider as aY, type MotionTransferProviderType as aZ, type MusicProvider as a_, IMAGE_MASK_MODE as aa, IMAGE_OUTPUT_FORMAT_EXT as ab, IMAGE_OUTPUT_FORMAT_MIME as ac, IMAGE_OUTPUT_FORMAT_VALUES as ad, IMAGE_PROMPT_MAX as ae, IMAGE_QUALITY_VALUES as af, IMAGE_RENDERING_SPEED_VALUES as ag, IMAGE_RESOLUTION_VALUES as ah, IMAGE_SVG_LEVEL_VALUES as ai, IMAGE_TO_VIDEO_PROVIDERS as aj, type ImageAspectRatio as ak, type ImageBackground as al, type ImageEditProvider as am, type ImageEditTargetResolution as an, type ImageGenProvider as ao, type ImageI2IProvider as ap, type ImageMaskMode as aq, type ImageOutputFormat as ar, type ImageQuality as as, type ImageRenderingSpeed as at, type ImageResolution as au, type ImageSvgLevel as av, type ImageToVideoProvider as aw, KLING_4_DEFAULT_RESOLUTION as ax, KLING_4_FLASH_PROVIDER as ay, KLING_4_FLASH_RESOLUTION as az, AUDIO_ADDON_PROVIDERS as b, TTS_OUTPUT_FORMATS as b$, NATIVE_NEGATIVE_PROMPT_MODELS as b0, NATIVE_NEGATIVE_VIDEO_PROVIDERS as b1, NEGATIVE_PROMPT_MAX as b2, OBJECT_MOTION_PROVIDERS as b3, type ObjectMotionProvider as b4, PIXVERSE_V6_EXTEND_PROVIDER as b5, PIXVERSE_V6_MAX_DEFAULT_QUALITY as b6, PIXVERSE_V6_MAX_PROVIDER as b7, PRICING_DEFAULT_DURATION_SEC as b8, PRICING_DEFAULT_RESOLUTION as b9, SUNO_ACTIVE_MODELS as bA, SUNO_ADD_TRACK_MODELS as bB, SUNO_DURATION_MODELS as bC, SUNO_HARD_CEILING as bD, SUNO_LEGACY_MODELS as bE, SUNO_MODELS as bF, SUNO_TEXT_MAX as bG, SUNO_TITLE_MAX as bH, type SceneInputMode as bI, SceneInputModeSchema as bJ, type ScriptProvider as bK, type SeedanceExtendProvider as bL, type SeedanceReferenceMediaCount as bM, type SeedanceTaskTypeFacts as bN, type SeedanceTaskTypeResolution as bO, type SeedanceVideoEditProvider as bP, type SunoAddTrackModel as bQ, type SunoModel as bR, T2I_TO_I2I_VARIANT as bS, TASK_CHAINED_EDIT_PROVIDERS as bT, TASK_CHAINED_EDIT_PROVIDER_IDS as bU, TEXT_TO_AUDIO_PROVIDERS as bV, TEXT_TO_VIDEO_PROVIDERS as bW, TRANSCRIBE_LANES as bX, TRANSCRIBE_PROVIDERS as bY, TRANSCRIBE_PROVIDER_CAPABILITIES as bZ, TRANSCRIBE_TARGET_LANGUAGES as b_, PROMPT_HARD_CEILING as ba, type PixverseExtendProvider as bb, QA_CHECK_PROVIDERS as bc, type QaCheckProvider as bd, REF_IMAGE_MAX_LIMITS as be, RENDERING_SPEED_SUPPORT as bf, REPLICATE_LIP_SYNC_PROVIDERS as bg, RETIRED_LIP_SYNC_PROVIDERS as bh, RETIRED_VIDEO_PROVIDERS as bi, type RefAudioCheck as bj, type RefAudioProbe as bk, type RefAudioRule as bl, type RefVideoDurationLimit as bm, SCRIPT_PROVIDERS as bn, SEEDANCE_2_5_REF_LIMITS as bo, SEEDANCE_2_CONTINUATION_REF_SEC as bp, SEEDANCE_2_EXTEND_STITCH as bq, SEEDANCE_2_PROVIDERS as br, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as bs, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as bt, SEEDANCE_2_REF_LIMITS as bu, SEEDANCE_LIP_SYNC_PROVIDERS as bv, SEEDANCE_VIDEO_EDIT_PROVIDERS as bw, SEEDANCE_VIDEO_EDIT_SHAPE as bx, SEEDANCE_VIDEO_EDIT_TASK_TYPE as by, SEED_SUPPORT as bz, type AiWriterProvider as c, defaultVideoAspectRatio as c$, TTS_OUTPUT_FORMAT_FILES as c0, TTS_PROVIDERS as c1, TTS_TEXT_MAX as c2, TWO_K_RESOLUTION_PROVIDERS as c3, type TailExtendProvider as c4, type TaskChainedEditProvider as c5, type TextToAudioProvider as c6, type TextToVideoProvider as c7, type TranscribeLane as c8, type TranscribeProvider as c9, VIDEO_UPSCALE_PROVIDERS as cA, VIDEO_VARIABLE_PRICING as cB, VIDU_Q4_DEFAULT_RESOLUTION as cC, VIDU_Q4_PROVIDERS as cD, VOICE_DESIGN_MODELS as cE, type VideoAudioCapability as cF, type VideoAudioMode as cG, type VideoAudioRequest as cH, type VideoGenProvider as cI, type VideoModeAlias as cJ, type VideoModelCapabilities as cK, type VideoReferenceSyntax as cL, type VideoStartFrameOnlyProblem as cM, type VideoToVideoNodeProvider as cN, type VideoToVideoProvider as cO, type VideoUpscaleProvider as cP, type VoiceDesignModel as cQ, WAN_3_DEFAULT_RESOLUTION as cR, WAN_3_PROVIDERS as cS, applyDefaultVideoSelection as cT, applyVideoAudioToggle as cU, applyVideoNegativePrompt as cV, billsReferenceVideoSeconds as cW, canonicalVideoProvider as cX, checkCharacterClipDurations as cY, checkRefAudioRules as cZ, checkRefVideoDurations as c_, type TranscribeTargetLanguage as ca, type TtsOutputFormat as cb, type TtsProvider as cc, UPSCALE_IMAGE_PROVIDERS as cd, type UpscaleImageProvider as ce, VARIABLE_PRICING_MODELS as cf, VEO_PROVIDERS as cg, VIDEO_AUDIO_CAPABILITY as ch, VIDEO_CHARACTER_CLIP_DURATION_LIMITS as ci, VIDEO_DURATION_TIERS as cj, VIDEO_GEN_COLLAPSED_T2V_IDS as ck, VIDEO_GEN_PROVIDERS as cl, VIDEO_INPUT_LIP_SYNC_PROVIDERS as cm, VIDEO_MODEL_CAPS as cn, VIDEO_MODE_ALIASES as co, VIDEO_PROMPT_MAX as cp, VIDEO_PROVIDERS_REQUIRING_IMAGE as cq, VIDEO_PROVIDERS_WITHOUT_DISPATCH as cr, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as cs, VIDEO_REF_AUDIO_RULES as ct, VIDEO_REF_LIMITS_BY_PROVIDER as cu, VIDEO_REF_RATE_PROVIDERS as cv, VIDEO_REF_VIDEO_DURATION_LIMITS as cw, VIDEO_START_FRAME_ONLY_CODE as cx, VIDEO_TO_VIDEO_NODE_PROVIDERS as cy, VIDEO_TO_VIDEO_PROVIDERS as cz, CHARACTER_MOTION_PROVIDERS as d, supportsAutoVideoDuration as d$, extendHasSoundSwitch as d0, findSeedance2AudioOverLimit as d1, getMaxImagePromptChars as d2, getMaxNegativePromptChars as d3, getMaxSunoPromptChars as d4, getMaxSunoStyleChars as d5, getMaxTtsChars as d6, getMaxVideoPromptChars as d7, getMinImagePromptChars as d8, getVideoAudioCapability as d9, listedSeedanceTaskType as dA, maxSegmentSecFor as dB, maxSegmentsFor as dC, maxVideoDurationSec as dD, minSegmentSecFor as dE, modelsForInputMode as dF, normalizeGrokVideo15Resolution as dG, normalizeKling4Resolution as dH, normalizeMinimaxH3Resolution as dI, normalizePixverseV6MaxQuality as dJ, normalizeViduQ4Resolution as dK, normalizeWan3Resolution as dL, preferredInputModeForModel as dM, pricedOutputDurationSec as dN, requestImageLimit as dO, resolveGvpAnchorWire as dP, resolveMusicProvider as dQ, resolveSeedanceTaskType as dR, resolveVideoModeForInputs as dS, resolveVideoProviderForMode as dT, retiredLipSyncProviderMessage as dU, retiredLipSyncProviderName as dV, seedance2AudioLimitSec as dW, seedanceTaskTypeFitsMedia as dX, segmentDurationsFor as dY, snapToNearestDuration as dZ, sunoModelHonoursDuration as d_, grokVideo15MiddleFrameSlots as da, hasContiguousSegmentDurations as db, imageReferenceLimit as dc, isCatalogExtendProvider as dd, isGeminiOmniPerSecondProvider as de, isGeminiOmniProvider as df, isGrokExtendProvider as dg, isGrokExtendSourceModel as dh, isGrokVideo15Provider as di, isGvpSupportedProvider as dj, isKling4FlashProvider as dk, isKling4Provider as dl, isKling4RunnerProvider as dm, isLegacySunoModel as dn, isMinimaxH3Provider as dp, isPixverseExtendProvider as dq, isPixverseV6MaxProvider as dr, isSeedance2Provider as ds, isSeedanceExtendProvider as dt, isSeedanceVideoEditProvider as du, isTailExtendProvider as dv, isVeoProvider as dw, isViduQ4Provider as dx, isWan3Provider as dy, kling4KeyframeFrameCap as dz, COMPOSER_PLAN_FIELDS as e, supportsEndAnchor as e0, supportsExtendRender as e1, supportsReferenceTaskType as e2, transcribeLaneSupportsTranslation as e3, transcribeLaneSupportsWordTimestamps as e4, transcribeProvidersWithTranslation as e5, transcribeProvidersWithWordTimestamps as e6, videoAudioIntent as e7, videoAudioPricedOn as e8, videoDefaultDurationSec as e9, videoKeyframesMiddleCap as ea, videoModelCanSpeakDialogue as eb, videoModelSupportsAudio as ec, videoNegativeSuffix as ed, videoProviderAppendsFrames as ee, videoProviderFoldsLoneEndFrame as ef, videoProviderRefModeFrameSeats as eg, videoProviderReferenceSyntax as eh, videoProviderRefsReplaceStartFrame as ei, videoProviderRequiresImage as ej, videoProviderRunsFromReferences as ek, videoProviderTakesLoneEndFrame as el, videoSourceTrimMaxSec as em, videoStartFrameOnlyMessage as en, videoStartFrameOnlyProblem as eo, videoStartFrameOnlyResolution as ep, COMPOSER_PLAN_MAP as f, CREDIT_BASE_USD as g, type CaptionTranscribeLane as h, type CatalogExtendProvider as i, type CharacterMotionProvider as j, DEFAULT_MUSIC_PROVIDER as k, DEFAULT_REF_IMAGE_MAX as l, DEFAULT_REQUEST_IMAGE_LIMIT as m, DEFAULT_SUNO_MODEL as n, DEFAULT_TEXT_TO_AUDIO_PROVIDER as o, DEFAULT_TRANSCRIBE_NODE_PROVIDER as p, DEFAULT_TRANSCRIBE_PROVIDER as q, DEFAULT_TTS_OUTPUT_FORMAT as r, DEFAULT_TTS_PROVIDER as s, DEFAULT_VIDEO_DURATION_SEC as t, DEFAULT_VIDEO_PROVIDER as u, DEFAULT_VIDEO_TO_VIDEO_PROVIDER as v, DEFAULT_VOICE_DESIGN_MODEL as w, DIALOGUE_PROVIDERS as x, DURATION_PRICED_PROVIDERS as y, type DialogueProvider as z };
|
|
2320
|
+
export { HIGH_QUALITY_PROVIDERS as $, AI_WRITER_PROVIDERS as A, type ExtendVideoProvider as B, CAPTION_TRANSCRIBE_LANES as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, FAL_LIP_SYNC_PROVIDERS as G, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as H, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as I, type FaceSwapProvider as J, GEMINI_OMNI_12_MAX_SOURCE_SEC as K, GEMINI_OMNI_PER_SECOND_PROVIDERS as L, GEMINI_OMNI_PROVIDERS as M, GROK_EXTEND_PROVIDER as N, GROK_EXTEND_SOURCE_MODELS as O, GROK_VIDEO_15_DEFAULT_RESOLUTION as P, GROK_VIDEO_15_MAX_MIDDLE_FRAMES as Q, GROK_VIDEO_15_PROVIDER as R, GUIDANCE_SCALE_SUPPORT as S, GVP_ANCHOR_CHOICES as T, GVP_DEFAULT_PROVIDER as U, GVP_END_FRAME_PROVIDERS as V, GVP_EXTEND_PROVIDERS as W, GVP_SUPPORTED_PROVIDERS as X, type GrokExtendProvider as Y, type GvpAnchorChoice as Z, type GvpAnchorWireMode as _, ASPECT_RATIO_DIMENSIONS as a, type MusicProvider as a$, I2I_MASK_SUPPORT as a0, I2I_STRENGTH_SUPPORT as a1, IDEOGRAM_PROVIDERS as a2, IMAGE_ASPECT_RATIO_VALUES as a3, IMAGE_BACKGROUND_VALUES as a4, IMAGE_EDIT_PROVIDERS as a5, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as a6, IMAGE_GEN_PROVIDERS as a7, IMAGE_I2I_PROVIDERS as a8, IMAGE_K_RESOLUTION_VALUES as a9, KLING_4_FLASH_RESOLUTION as aA, KLING_4_MAX_MIDDLE_FRAMES as aB, KLING_4_PROVIDERS as aC, LEGACY_VIDEO_NODE_DEFAULT_PROVIDER as aD, LIP_SYNC_PROVIDERS as aE, LLM_STRUCTURED_SYSTEM_MAX as aF, LLM_TEXT_INPUT_MAX as aG, LOCATION_ATMOSPHERE_PROVIDERS as aH, type LipSyncProvider as aI, type LocationAtmosphereProvider as aJ, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as aK, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as aL, MAX_REQUEST_IMAGE_LIMIT as aM, MAX_TTS_CHARS_BY_PROVIDER as aN, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as aO, MINIMAX_H3_DEFAULT_RESOLUTION as aP, MINIMAX_H3_PROVIDERS as aQ, MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER as aR, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as aS, MODIFY_IMAGE_PROVIDERS as aT, MOTION_TRANSFER_PROVIDERS as aU, MUSIC_CREDIT_ID as aV, MUSIC_PROVIDERS as aW, MUSIC_PROVIDER_LABELS as aX, type ModelPromptingStyle as aY, type ModifyImageProvider as aZ, type MotionTransferProviderType as a_, IMAGE_MASK_MODE as aa, IMAGE_OUTPUT_FORMAT_EXT as ab, IMAGE_OUTPUT_FORMAT_MIME as ac, IMAGE_OUTPUT_FORMAT_VALUES as ad, IMAGE_PROMPT_MAX as ae, IMAGE_QUALITY_VALUES as af, IMAGE_RENDERING_SPEED_VALUES as ag, IMAGE_RESOLUTION_VALUES as ah, IMAGE_SVG_LEVEL_VALUES as ai, IMAGE_TO_VIDEO_PROVIDERS as aj, type ImageAspectRatio as ak, type ImageBackground as al, type ImageEditProvider as am, type ImageEditTargetResolution as an, type ImageGenProvider as ao, type ImageI2IProvider as ap, type ImageMaskMode as aq, type ImageOutputFormat as ar, type ImageQuality as as, type ImageRenderingSpeed as at, type ImageResolution as au, type ImageRunKind as av, type ImageSvgLevel as aw, type ImageToVideoProvider as ax, KLING_4_DEFAULT_RESOLUTION as ay, KLING_4_FLASH_PROVIDER as az, AUDIO_ADDON_PROVIDERS as b, TRANSCRIBE_TARGET_LANGUAGES as b$, NATIVE_ADAPTIVE_ASPECT as b0, NATIVE_NEGATIVE_PROMPT_MODELS as b1, NATIVE_NEGATIVE_VIDEO_PROVIDERS as b2, NEGATIVE_PROMPT_MAX as b3, OBJECT_MOTION_PROVIDERS as b4, type ObjectMotionProvider as b5, PIXVERSE_V6_EXTEND_PROVIDER as b6, PIXVERSE_V6_MAX_DEFAULT_QUALITY as b7, PIXVERSE_V6_MAX_PROVIDER as b8, PRICING_DEFAULT_DURATION_SEC as b9, SEED_SUPPORT as bA, SUNO_ACTIVE_MODELS as bB, SUNO_ADD_TRACK_MODELS as bC, SUNO_DURATION_MODELS as bD, SUNO_HARD_CEILING as bE, SUNO_LEGACY_MODELS as bF, SUNO_MODELS as bG, SUNO_TEXT_MAX as bH, SUNO_TITLE_MAX as bI, type SceneInputMode as bJ, SceneInputModeSchema as bK, type ScriptProvider as bL, type SeedanceExtendProvider as bM, type SeedanceReferenceMediaCount as bN, type SeedanceTaskTypeFacts as bO, type SeedanceTaskTypeResolution as bP, type SeedanceVideoEditProvider as bQ, type SunoAddTrackModel as bR, type SunoModel as bS, T2I_TO_I2I_VARIANT as bT, TASK_CHAINED_EDIT_PROVIDERS as bU, TASK_CHAINED_EDIT_PROVIDER_IDS as bV, TEXT_TO_AUDIO_PROVIDERS as bW, TEXT_TO_VIDEO_PROVIDERS as bX, TRANSCRIBE_LANES as bY, TRANSCRIBE_PROVIDERS as bZ, TRANSCRIBE_PROVIDER_CAPABILITIES as b_, PRICING_DEFAULT_RESOLUTION as ba, PROMPT_HARD_CEILING as bb, type PixverseExtendProvider as bc, QA_CHECK_PROVIDERS as bd, type QaCheckProvider as be, REF_IMAGE_MAX_LIMITS as bf, RENDERING_SPEED_SUPPORT as bg, REPLICATE_LIP_SYNC_PROVIDERS as bh, RETIRED_LIP_SYNC_PROVIDERS as bi, RETIRED_VIDEO_PROVIDERS as bj, type RefAudioCheck as bk, type RefAudioProbe as bl, type RefAudioRule as bm, type RefVideoDurationLimit as bn, SCRIPT_PROVIDERS as bo, SEEDANCE_2_5_REF_LIMITS as bp, SEEDANCE_2_CONTINUATION_REF_SEC as bq, SEEDANCE_2_EXTEND_STITCH as br, SEEDANCE_2_PROVIDERS as bs, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as bt, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as bu, SEEDANCE_2_REF_LIMITS as bv, SEEDANCE_LIP_SYNC_PROVIDERS as bw, SEEDANCE_VIDEO_EDIT_PROVIDERS as bx, SEEDANCE_VIDEO_EDIT_SHAPE as by, SEEDANCE_VIDEO_EDIT_TASK_TYPE as bz, type AiWriterProvider as c, checkRefVideoDurations as c$, TTS_OUTPUT_FORMATS as c0, TTS_OUTPUT_FORMAT_FILES as c1, TTS_PROVIDERS as c2, TTS_TEXT_MAX as c3, TWO_K_RESOLUTION_PROVIDERS as c4, type TailExtendProvider as c5, type TaskChainedEditProvider as c6, type TextToAudioProvider as c7, type TextToVideoProvider as c8, type TranscribeLane as c9, VIDEO_TO_VIDEO_PROVIDERS as cA, VIDEO_UPSCALE_PROVIDERS as cB, VIDEO_VARIABLE_PRICING as cC, VIDU_Q4_DEFAULT_RESOLUTION as cD, VIDU_Q4_PROVIDERS as cE, VOICE_DESIGN_MODELS as cF, type VideoAudioCapability as cG, type VideoAudioMode as cH, type VideoAudioRequest as cI, type VideoGenProvider as cJ, type VideoModeAlias as cK, type VideoModelCapabilities as cL, type VideoReferenceSyntax as cM, type VideoStartFrameOnlyProblem as cN, type VideoToVideoNodeProvider as cO, type VideoToVideoProvider as cP, type VideoUpscaleProvider as cQ, type VoiceDesignModel as cR, WAN_3_DEFAULT_RESOLUTION as cS, WAN_3_PROVIDERS as cT, applyDefaultVideoSelection as cU, applyVideoAudioToggle as cV, applyVideoNegativePrompt as cW, billsReferenceVideoSeconds as cX, canonicalVideoProvider as cY, checkCharacterClipDurations as cZ, checkRefAudioRules as c_, type TranscribeProvider as ca, type TranscribeTargetLanguage as cb, type TtsOutputFormat as cc, type TtsProvider as cd, UPSCALE_IMAGE_PROVIDERS as ce, type UpscaleImageProvider as cf, VARIABLE_PRICING_MODELS as cg, VEO_PROVIDERS as ch, VIDEO_AUDIO_CAPABILITY as ci, VIDEO_CHARACTER_CLIP_DURATION_LIMITS as cj, VIDEO_DURATION_TIERS as ck, VIDEO_GEN_COLLAPSED_T2V_IDS as cl, VIDEO_GEN_PROVIDERS as cm, VIDEO_INPUT_LIP_SYNC_PROVIDERS as cn, VIDEO_MODEL_CAPS as co, VIDEO_MODE_ALIASES as cp, VIDEO_PROMPT_MAX as cq, VIDEO_PROVIDERS_REQUIRING_IMAGE as cr, VIDEO_PROVIDERS_WITHOUT_DISPATCH as cs, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as ct, VIDEO_REF_AUDIO_RULES as cu, VIDEO_REF_LIMITS_BY_PROVIDER as cv, VIDEO_REF_RATE_PROVIDERS as cw, VIDEO_REF_VIDEO_DURATION_LIMITS as cx, VIDEO_START_FRAME_ONLY_CODE as cy, VIDEO_TO_VIDEO_NODE_PROVIDERS as cz, CHARACTER_MOTION_PROVIDERS as d, seedanceTaskTypeFitsMedia as d$, defaultVideoAspectRatio as d0, extendHasSoundSwitch as d1, findSeedance2AudioOverLimit as d2, getMaxImagePromptChars as d3, getMaxNegativePromptChars as d4, getMaxSunoPromptChars as d5, getMaxSunoStyleChars as d6, getMaxTtsChars as d7, getMaxVideoPromptChars as d8, getMinImagePromptChars as d9, isWan3Provider as dA, kling4KeyframeFrameCap as dB, listedSeedanceTaskType as dC, maxSegmentSecFor as dD, maxSegmentsFor as dE, maxVideoDurationSec as dF, minSegmentSecFor as dG, modelsForInputMode as dH, normalizeGrokVideo15Resolution as dI, normalizeKling4Resolution as dJ, normalizeMinimaxH3Resolution as dK, normalizePixverseV6MaxQuality as dL, normalizeViduQ4Resolution as dM, normalizeWan3Resolution as dN, preferredInputModeForModel as dO, pricedOutputDurationSec as dP, refusesImagesOverLimit as dQ, refusesImagesOverLimitOn as dR, requestImageLimit as dS, resolveGvpAnchorWire as dT, resolveMusicProvider as dU, resolveSeedanceTaskType as dV, resolveVideoModeForInputs as dW, resolveVideoProviderForMode as dX, retiredLipSyncProviderMessage as dY, retiredLipSyncProviderName as dZ, seedance2AudioLimitSec as d_, getVideoAudioCapability as da, grokVideo15MiddleFrameSlots as db, hasContiguousSegmentDurations as dc, hasOwnRequestImageLimit as dd, imageReferenceLimit as de, isCatalogExtendProvider as df, isGeminiOmniPerSecondProvider as dg, isGeminiOmniProvider as dh, isGrokExtendProvider as di, isGrokExtendSourceModel as dj, isGrokVideo15Provider as dk, isGvpSupportedProvider as dl, isKling4FlashProvider as dm, isKling4Provider as dn, isKling4RunnerProvider as dp, isLegacySunoModel as dq, isMinimaxH3Provider as dr, isPixverseExtendProvider as ds, isPixverseV6MaxProvider as dt, isSeedance2Provider as du, isSeedanceExtendProvider as dv, isSeedanceVideoEditProvider as dw, isTailExtendProvider as dx, isVeoProvider as dy, isViduQ4Provider as dz, COMPOSER_PLAN_FIELDS as e, segmentDurationsFor as e0, snapToNearestDuration as e1, sunoModelHonoursDuration as e2, supportsAutoVideoDuration as e3, supportsEndAnchor as e4, supportsExtendRender as e5, supportsReferenceTaskType as e6, transcribeLaneSupportsTranslation as e7, transcribeLaneSupportsWordTimestamps as e8, transcribeProvidersWithTranslation as e9, transcribeProvidersWithWordTimestamps as ea, videoAudioIntent as eb, videoAudioPricedOn as ec, videoDefaultDurationSec as ed, videoKeyframesMiddleCap as ee, videoModelCanSpeakDialogue as ef, videoModelSupportsAudio as eg, videoNegativeSuffix as eh, videoProviderAppendsFrames as ei, videoProviderFoldsLoneEndFrame as ej, videoProviderRefModeFrameSeats as ek, videoProviderReferenceSyntax as el, videoProviderRefsReplaceStartFrame as em, videoProviderRequiresImage as en, videoProviderRunsFromReferences as eo, videoProviderTakesLoneEndFrame as ep, videoSourceTrimMaxSec as eq, videoStartFrameOnlyMessage as er, videoStartFrameOnlyProblem as es, videoStartFrameOnlyResolution as et, COMPOSER_PLAN_MAP as f, CREDIT_BASE_USD as g, type CaptionTranscribeLane as h, type CatalogExtendProvider as i, type CharacterMotionProvider as j, DEFAULT_MUSIC_PROVIDER as k, DEFAULT_REF_IMAGE_MAX as l, DEFAULT_REQUEST_IMAGE_LIMIT as m, DEFAULT_SUNO_MODEL as n, DEFAULT_TEXT_TO_AUDIO_PROVIDER as o, DEFAULT_TRANSCRIBE_NODE_PROVIDER as p, DEFAULT_TRANSCRIBE_PROVIDER as q, DEFAULT_TTS_OUTPUT_FORMAT as r, DEFAULT_TTS_PROVIDER as s, DEFAULT_VIDEO_DURATION_SEC as t, DEFAULT_VIDEO_PROVIDER as u, DEFAULT_VIDEO_TO_VIDEO_PROVIDER as v, DEFAULT_VOICE_DESIGN_MODEL as w, DIALOGUE_PROVIDERS as x, DURATION_PRICED_PROVIDERS as y, type DialogueProvider as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DeclaredSeedanceTaskType, t as ModelInputAdjustment } from './model-catalog-
|
|
2
|
+
import { D as DeclaredSeedanceTaskType, t as ModelInputAdjustment } from './model-catalog-B-aQnUS8.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Model constants shared between frontend and backend.
|
|
@@ -375,6 +375,51 @@ declare const MAX_REQUEST_IMAGE_LIMIT: number;
|
|
|
375
375
|
* id reads its edit sibling's row, the model that consumes them).
|
|
376
376
|
*/
|
|
377
377
|
declare function requestImageLimit(provider: string | undefined): number;
|
|
378
|
+
/**
|
|
379
|
+
* True for a model with a request image limit of its own: a row in the table
|
|
380
|
+
* above, read through a text-to-image id's edit sibling as
|
|
381
|
+
* {@link requestImageLimit} reads it (GPT Image 2.6 Flare and Sunburst,
|
|
382
|
+
* MiniMax H3 Image, Seedream 5.5, FLUX 3 Klein). False for a model held to
|
|
383
|
+
* {@link DEFAULT_REQUEST_IMAGE_LIMIT}.
|
|
384
|
+
*/
|
|
385
|
+
declare function hasOwnRequestImageLimit(provider: string | undefined): boolean;
|
|
386
|
+
/**
|
|
387
|
+
* True for a model that refuses a WORKFLOW run sending more input images than
|
|
388
|
+
* {@link requestImageLimit} allows, the source or base image counted, instead
|
|
389
|
+
* of having some left out (its catalog entry's `refusesImagesOverLimit`:
|
|
390
|
+
* FLUX 3 Klein). A request is refused on more models
|
|
391
|
+
* ({@link refusesImagesOverLimitOn}). The prompt assembler never trims such a
|
|
392
|
+
* model's references, so every place that refuses counts the images the run
|
|
393
|
+
* would really send. False for every other model, whose workflow runs still
|
|
394
|
+
* trim structured references to its reference limit
|
|
395
|
+
* ({@link imageReferenceLimit}).
|
|
396
|
+
*/
|
|
397
|
+
declare function refusesImagesOverLimit(provider: string | undefined): boolean;
|
|
398
|
+
/**
|
|
399
|
+
* How a run was asked for, which decides what happens to images past a
|
|
400
|
+
* model's limit: `"request"` is one call to a route (the API, an MCP tool,
|
|
401
|
+
* the editor's Run of one node), `"workflow"` a node of a workflow run.
|
|
402
|
+
*/
|
|
403
|
+
type ImageRunKind = "request" | "workflow";
|
|
404
|
+
/**
|
|
405
|
+
* True when a run of this kind that would send `provider` more input images
|
|
406
|
+
* than {@link requestImageLimit} allows is refused before anything is
|
|
407
|
+
* reserved, saying how many to remove, rather than having the images past the
|
|
408
|
+
* limit left out (decided 2026-11-14):
|
|
409
|
+
*
|
|
410
|
+
* - a request, on every model with a request image limit of its own
|
|
411
|
+
* ({@link hasOwnRequestImageLimit}): nothing trims it first, so the count
|
|
412
|
+
* refused is the count the request names;
|
|
413
|
+
* - a workflow run, only on a model whose catalog entry carries
|
|
414
|
+
* `refusesImagesOverLimit` (FLUX 3 Klein). Every other model's workflow run
|
|
415
|
+
* keeps its rule: its first images up to the limit are sent, so a saved
|
|
416
|
+
* graph keeps running.
|
|
417
|
+
*
|
|
418
|
+
* False on a model held to {@link DEFAULT_REQUEST_IMAGE_LIMIT} (Nano Banana
|
|
419
|
+
* Pro, Flux 2 Pro): its structured references are trimmed to its reference
|
|
420
|
+
* limit on every kind of run, as before.
|
|
421
|
+
*/
|
|
422
|
+
declare function refusesImagesOverLimitOn(provider: string | undefined, run: ImageRunKind): boolean;
|
|
378
423
|
declare const VARIABLE_PRICING_MODELS: Record<string, "quality" | "resolution" | "rendering-speed">;
|
|
379
424
|
declare const HIGH_QUALITY_PROVIDERS: Set<string>;
|
|
380
425
|
declare const TWO_K_RESOLUTION_PROVIDERS: Set<string>;
|
|
@@ -1559,6 +1604,11 @@ declare const VIDEO_REF_LIMITS_BY_PROVIDER: Record<string, {
|
|
|
1559
1604
|
* and does not move the run onto the reference-video rate (its clip still
|
|
1560
1605
|
* counts toward the `videos` cap and the reference videos' total length).
|
|
1561
1606
|
* Read through `videoCharacterClipsBilledAsReferenceVideo`.
|
|
1607
|
+
*
|
|
1608
|
+
* No model sets it today: Kling 4.0 and Kling 4.0 Flash, both measured,
|
|
1609
|
+
* bill a video subject like an image subject (decided 2026-11-14). It stays
|
|
1610
|
+
* for a model whose provider bills the clip, so that model declares it here
|
|
1611
|
+
* and every price path follows.
|
|
1562
1612
|
*/
|
|
1563
1613
|
videoCharactersBillAsReferenceVideo?: true;
|
|
1564
1614
|
} | undefined>;
|
|
@@ -2267,4 +2317,4 @@ declare function applyDefaultVideoSelection<D>(input: {
|
|
|
2267
2317
|
duration: D | number | undefined;
|
|
2268
2318
|
};
|
|
2269
2319
|
|
|
2270
|
-
export { HIGH_QUALITY_PROVIDERS as $, AI_WRITER_PROVIDERS as A, type ExtendVideoProvider as B, CAPTION_TRANSCRIBE_LANES as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, FAL_LIP_SYNC_PROVIDERS as G, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as H, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as I, type FaceSwapProvider as J, GEMINI_OMNI_12_MAX_SOURCE_SEC as K, GEMINI_OMNI_PER_SECOND_PROVIDERS as L, GEMINI_OMNI_PROVIDERS as M, GROK_EXTEND_PROVIDER as N, GROK_EXTEND_SOURCE_MODELS as O, GROK_VIDEO_15_DEFAULT_RESOLUTION as P, GROK_VIDEO_15_MAX_MIDDLE_FRAMES as Q, GROK_VIDEO_15_PROVIDER as R, GUIDANCE_SCALE_SUPPORT as S, GVP_ANCHOR_CHOICES as T, GVP_DEFAULT_PROVIDER as U, GVP_END_FRAME_PROVIDERS as V, GVP_EXTEND_PROVIDERS as W, GVP_SUPPORTED_PROVIDERS as X, type GrokExtendProvider as Y, type GvpAnchorChoice as Z, type GvpAnchorWireMode as _, ASPECT_RATIO_DIMENSIONS as a, NATIVE_ADAPTIVE_ASPECT as a$, I2I_MASK_SUPPORT as a0, I2I_STRENGTH_SUPPORT as a1, IDEOGRAM_PROVIDERS as a2, IMAGE_ASPECT_RATIO_VALUES as a3, IMAGE_BACKGROUND_VALUES as a4, IMAGE_EDIT_PROVIDERS as a5, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as a6, IMAGE_GEN_PROVIDERS as a7, IMAGE_I2I_PROVIDERS as a8, IMAGE_K_RESOLUTION_VALUES as a9, KLING_4_MAX_MIDDLE_FRAMES as aA, KLING_4_PROVIDERS as aB, LEGACY_VIDEO_NODE_DEFAULT_PROVIDER as aC, LIP_SYNC_PROVIDERS as aD, LLM_STRUCTURED_SYSTEM_MAX as aE, LLM_TEXT_INPUT_MAX as aF, LOCATION_ATMOSPHERE_PROVIDERS as aG, type LipSyncProvider as aH, type LocationAtmosphereProvider as aI, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as aJ, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as aK, MAX_REQUEST_IMAGE_LIMIT as aL, MAX_TTS_CHARS_BY_PROVIDER as aM, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as aN, MINIMAX_H3_DEFAULT_RESOLUTION as aO, MINIMAX_H3_PROVIDERS as aP, MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER as aQ, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as aR, MODIFY_IMAGE_PROVIDERS as aS, MOTION_TRANSFER_PROVIDERS as aT, MUSIC_CREDIT_ID as aU, MUSIC_PROVIDERS as aV, MUSIC_PROVIDER_LABELS as aW, type ModelPromptingStyle as aX, type ModifyImageProvider as aY, type MotionTransferProviderType as aZ, type MusicProvider as a_, IMAGE_MASK_MODE as aa, IMAGE_OUTPUT_FORMAT_EXT as ab, IMAGE_OUTPUT_FORMAT_MIME as ac, IMAGE_OUTPUT_FORMAT_VALUES as ad, IMAGE_PROMPT_MAX as ae, IMAGE_QUALITY_VALUES as af, IMAGE_RENDERING_SPEED_VALUES as ag, IMAGE_RESOLUTION_VALUES as ah, IMAGE_SVG_LEVEL_VALUES as ai, IMAGE_TO_VIDEO_PROVIDERS as aj, type ImageAspectRatio as ak, type ImageBackground as al, type ImageEditProvider as am, type ImageEditTargetResolution as an, type ImageGenProvider as ao, type ImageI2IProvider as ap, type ImageMaskMode as aq, type ImageOutputFormat as ar, type ImageQuality as as, type ImageRenderingSpeed as at, type ImageResolution as au, type ImageSvgLevel as av, type ImageToVideoProvider as aw, KLING_4_DEFAULT_RESOLUTION as ax, KLING_4_FLASH_PROVIDER as ay, KLING_4_FLASH_RESOLUTION as az, AUDIO_ADDON_PROVIDERS as b, TTS_OUTPUT_FORMATS as b$, NATIVE_NEGATIVE_PROMPT_MODELS as b0, NATIVE_NEGATIVE_VIDEO_PROVIDERS as b1, NEGATIVE_PROMPT_MAX as b2, OBJECT_MOTION_PROVIDERS as b3, type ObjectMotionProvider as b4, PIXVERSE_V6_EXTEND_PROVIDER as b5, PIXVERSE_V6_MAX_DEFAULT_QUALITY as b6, PIXVERSE_V6_MAX_PROVIDER as b7, PRICING_DEFAULT_DURATION_SEC as b8, PRICING_DEFAULT_RESOLUTION as b9, SUNO_ACTIVE_MODELS as bA, SUNO_ADD_TRACK_MODELS as bB, SUNO_DURATION_MODELS as bC, SUNO_HARD_CEILING as bD, SUNO_LEGACY_MODELS as bE, SUNO_MODELS as bF, SUNO_TEXT_MAX as bG, SUNO_TITLE_MAX as bH, type SceneInputMode as bI, SceneInputModeSchema as bJ, type ScriptProvider as bK, type SeedanceExtendProvider as bL, type SeedanceReferenceMediaCount as bM, type SeedanceTaskTypeFacts as bN, type SeedanceTaskTypeResolution as bO, type SeedanceVideoEditProvider as bP, type SunoAddTrackModel as bQ, type SunoModel as bR, T2I_TO_I2I_VARIANT as bS, TASK_CHAINED_EDIT_PROVIDERS as bT, TASK_CHAINED_EDIT_PROVIDER_IDS as bU, TEXT_TO_AUDIO_PROVIDERS as bV, TEXT_TO_VIDEO_PROVIDERS as bW, TRANSCRIBE_LANES as bX, TRANSCRIBE_PROVIDERS as bY, TRANSCRIBE_PROVIDER_CAPABILITIES as bZ, TRANSCRIBE_TARGET_LANGUAGES as b_, PROMPT_HARD_CEILING as ba, type PixverseExtendProvider as bb, QA_CHECK_PROVIDERS as bc, type QaCheckProvider as bd, REF_IMAGE_MAX_LIMITS as be, RENDERING_SPEED_SUPPORT as bf, REPLICATE_LIP_SYNC_PROVIDERS as bg, RETIRED_LIP_SYNC_PROVIDERS as bh, RETIRED_VIDEO_PROVIDERS as bi, type RefAudioCheck as bj, type RefAudioProbe as bk, type RefAudioRule as bl, type RefVideoDurationLimit as bm, SCRIPT_PROVIDERS as bn, SEEDANCE_2_5_REF_LIMITS as bo, SEEDANCE_2_CONTINUATION_REF_SEC as bp, SEEDANCE_2_EXTEND_STITCH as bq, SEEDANCE_2_PROVIDERS as br, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as bs, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as bt, SEEDANCE_2_REF_LIMITS as bu, SEEDANCE_LIP_SYNC_PROVIDERS as bv, SEEDANCE_VIDEO_EDIT_PROVIDERS as bw, SEEDANCE_VIDEO_EDIT_SHAPE as bx, SEEDANCE_VIDEO_EDIT_TASK_TYPE as by, SEED_SUPPORT as bz, type AiWriterProvider as c, defaultVideoAspectRatio as c$, TTS_OUTPUT_FORMAT_FILES as c0, TTS_PROVIDERS as c1, TTS_TEXT_MAX as c2, TWO_K_RESOLUTION_PROVIDERS as c3, type TailExtendProvider as c4, type TaskChainedEditProvider as c5, type TextToAudioProvider as c6, type TextToVideoProvider as c7, type TranscribeLane as c8, type TranscribeProvider as c9, VIDEO_UPSCALE_PROVIDERS as cA, VIDEO_VARIABLE_PRICING as cB, VIDU_Q4_DEFAULT_RESOLUTION as cC, VIDU_Q4_PROVIDERS as cD, VOICE_DESIGN_MODELS as cE, type VideoAudioCapability as cF, type VideoAudioMode as cG, type VideoAudioRequest as cH, type VideoGenProvider as cI, type VideoModeAlias as cJ, type VideoModelCapabilities as cK, type VideoReferenceSyntax as cL, type VideoStartFrameOnlyProblem as cM, type VideoToVideoNodeProvider as cN, type VideoToVideoProvider as cO, type VideoUpscaleProvider as cP, type VoiceDesignModel as cQ, WAN_3_DEFAULT_RESOLUTION as cR, WAN_3_PROVIDERS as cS, applyDefaultVideoSelection as cT, applyVideoAudioToggle as cU, applyVideoNegativePrompt as cV, billsReferenceVideoSeconds as cW, canonicalVideoProvider as cX, checkCharacterClipDurations as cY, checkRefAudioRules as cZ, checkRefVideoDurations as c_, type TranscribeTargetLanguage as ca, type TtsOutputFormat as cb, type TtsProvider as cc, UPSCALE_IMAGE_PROVIDERS as cd, type UpscaleImageProvider as ce, VARIABLE_PRICING_MODELS as cf, VEO_PROVIDERS as cg, VIDEO_AUDIO_CAPABILITY as ch, VIDEO_CHARACTER_CLIP_DURATION_LIMITS as ci, VIDEO_DURATION_TIERS as cj, VIDEO_GEN_COLLAPSED_T2V_IDS as ck, VIDEO_GEN_PROVIDERS as cl, VIDEO_INPUT_LIP_SYNC_PROVIDERS as cm, VIDEO_MODEL_CAPS as cn, VIDEO_MODE_ALIASES as co, VIDEO_PROMPT_MAX as cp, VIDEO_PROVIDERS_REQUIRING_IMAGE as cq, VIDEO_PROVIDERS_WITHOUT_DISPATCH as cr, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as cs, VIDEO_REF_AUDIO_RULES as ct, VIDEO_REF_LIMITS_BY_PROVIDER as cu, VIDEO_REF_RATE_PROVIDERS as cv, VIDEO_REF_VIDEO_DURATION_LIMITS as cw, VIDEO_START_FRAME_ONLY_CODE as cx, VIDEO_TO_VIDEO_NODE_PROVIDERS as cy, VIDEO_TO_VIDEO_PROVIDERS as cz, CHARACTER_MOTION_PROVIDERS as d, supportsAutoVideoDuration as d$, extendHasSoundSwitch as d0, findSeedance2AudioOverLimit as d1, getMaxImagePromptChars as d2, getMaxNegativePromptChars as d3, getMaxSunoPromptChars as d4, getMaxSunoStyleChars as d5, getMaxTtsChars as d6, getMaxVideoPromptChars as d7, getMinImagePromptChars as d8, getVideoAudioCapability as d9, listedSeedanceTaskType as dA, maxSegmentSecFor as dB, maxSegmentsFor as dC, maxVideoDurationSec as dD, minSegmentSecFor as dE, modelsForInputMode as dF, normalizeGrokVideo15Resolution as dG, normalizeKling4Resolution as dH, normalizeMinimaxH3Resolution as dI, normalizePixverseV6MaxQuality as dJ, normalizeViduQ4Resolution as dK, normalizeWan3Resolution as dL, preferredInputModeForModel as dM, pricedOutputDurationSec as dN, requestImageLimit as dO, resolveGvpAnchorWire as dP, resolveMusicProvider as dQ, resolveSeedanceTaskType as dR, resolveVideoModeForInputs as dS, resolveVideoProviderForMode as dT, retiredLipSyncProviderMessage as dU, retiredLipSyncProviderName as dV, seedance2AudioLimitSec as dW, seedanceTaskTypeFitsMedia as dX, segmentDurationsFor as dY, snapToNearestDuration as dZ, sunoModelHonoursDuration as d_, grokVideo15MiddleFrameSlots as da, hasContiguousSegmentDurations as db, imageReferenceLimit as dc, isCatalogExtendProvider as dd, isGeminiOmniPerSecondProvider as de, isGeminiOmniProvider as df, isGrokExtendProvider as dg, isGrokExtendSourceModel as dh, isGrokVideo15Provider as di, isGvpSupportedProvider as dj, isKling4FlashProvider as dk, isKling4Provider as dl, isKling4RunnerProvider as dm, isLegacySunoModel as dn, isMinimaxH3Provider as dp, isPixverseExtendProvider as dq, isPixverseV6MaxProvider as dr, isSeedance2Provider as ds, isSeedanceExtendProvider as dt, isSeedanceVideoEditProvider as du, isTailExtendProvider as dv, isVeoProvider as dw, isViduQ4Provider as dx, isWan3Provider as dy, kling4KeyframeFrameCap as dz, COMPOSER_PLAN_FIELDS as e, supportsEndAnchor as e0, supportsExtendRender as e1, supportsReferenceTaskType as e2, transcribeLaneSupportsTranslation as e3, transcribeLaneSupportsWordTimestamps as e4, transcribeProvidersWithTranslation as e5, transcribeProvidersWithWordTimestamps as e6, videoAudioIntent as e7, videoAudioPricedOn as e8, videoDefaultDurationSec as e9, videoKeyframesMiddleCap as ea, videoModelCanSpeakDialogue as eb, videoModelSupportsAudio as ec, videoNegativeSuffix as ed, videoProviderAppendsFrames as ee, videoProviderFoldsLoneEndFrame as ef, videoProviderRefModeFrameSeats as eg, videoProviderReferenceSyntax as eh, videoProviderRefsReplaceStartFrame as ei, videoProviderRequiresImage as ej, videoProviderRunsFromReferences as ek, videoProviderTakesLoneEndFrame as el, videoSourceTrimMaxSec as em, videoStartFrameOnlyMessage as en, videoStartFrameOnlyProblem as eo, videoStartFrameOnlyResolution as ep, COMPOSER_PLAN_MAP as f, CREDIT_BASE_USD as g, type CaptionTranscribeLane as h, type CatalogExtendProvider as i, type CharacterMotionProvider as j, DEFAULT_MUSIC_PROVIDER as k, DEFAULT_REF_IMAGE_MAX as l, DEFAULT_REQUEST_IMAGE_LIMIT as m, DEFAULT_SUNO_MODEL as n, DEFAULT_TEXT_TO_AUDIO_PROVIDER as o, DEFAULT_TRANSCRIBE_NODE_PROVIDER as p, DEFAULT_TRANSCRIBE_PROVIDER as q, DEFAULT_TTS_OUTPUT_FORMAT as r, DEFAULT_TTS_PROVIDER as s, DEFAULT_VIDEO_DURATION_SEC as t, DEFAULT_VIDEO_PROVIDER as u, DEFAULT_VIDEO_TO_VIDEO_PROVIDER as v, DEFAULT_VOICE_DESIGN_MODEL as w, DIALOGUE_PROVIDERS as x, DURATION_PRICED_PROVIDERS as y, type DialogueProvider as z };
|
|
2320
|
+
export { HIGH_QUALITY_PROVIDERS as $, AI_WRITER_PROVIDERS as A, type ExtendVideoProvider as B, CAPTION_TRANSCRIBE_LANES as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, FAL_LIP_SYNC_PROVIDERS as G, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as H, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as I, type FaceSwapProvider as J, GEMINI_OMNI_12_MAX_SOURCE_SEC as K, GEMINI_OMNI_PER_SECOND_PROVIDERS as L, GEMINI_OMNI_PROVIDERS as M, GROK_EXTEND_PROVIDER as N, GROK_EXTEND_SOURCE_MODELS as O, GROK_VIDEO_15_DEFAULT_RESOLUTION as P, GROK_VIDEO_15_MAX_MIDDLE_FRAMES as Q, GROK_VIDEO_15_PROVIDER as R, GUIDANCE_SCALE_SUPPORT as S, GVP_ANCHOR_CHOICES as T, GVP_DEFAULT_PROVIDER as U, GVP_END_FRAME_PROVIDERS as V, GVP_EXTEND_PROVIDERS as W, GVP_SUPPORTED_PROVIDERS as X, type GrokExtendProvider as Y, type GvpAnchorChoice as Z, type GvpAnchorWireMode as _, ASPECT_RATIO_DIMENSIONS as a, type MusicProvider as a$, I2I_MASK_SUPPORT as a0, I2I_STRENGTH_SUPPORT as a1, IDEOGRAM_PROVIDERS as a2, IMAGE_ASPECT_RATIO_VALUES as a3, IMAGE_BACKGROUND_VALUES as a4, IMAGE_EDIT_PROVIDERS as a5, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as a6, IMAGE_GEN_PROVIDERS as a7, IMAGE_I2I_PROVIDERS as a8, IMAGE_K_RESOLUTION_VALUES as a9, KLING_4_FLASH_RESOLUTION as aA, KLING_4_MAX_MIDDLE_FRAMES as aB, KLING_4_PROVIDERS as aC, LEGACY_VIDEO_NODE_DEFAULT_PROVIDER as aD, LIP_SYNC_PROVIDERS as aE, LLM_STRUCTURED_SYSTEM_MAX as aF, LLM_TEXT_INPUT_MAX as aG, LOCATION_ATMOSPHERE_PROVIDERS as aH, type LipSyncProvider as aI, type LocationAtmosphereProvider as aJ, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as aK, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as aL, MAX_REQUEST_IMAGE_LIMIT as aM, MAX_TTS_CHARS_BY_PROVIDER as aN, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as aO, MINIMAX_H3_DEFAULT_RESOLUTION as aP, MINIMAX_H3_PROVIDERS as aQ, MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER as aR, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as aS, MODIFY_IMAGE_PROVIDERS as aT, MOTION_TRANSFER_PROVIDERS as aU, MUSIC_CREDIT_ID as aV, MUSIC_PROVIDERS as aW, MUSIC_PROVIDER_LABELS as aX, type ModelPromptingStyle as aY, type ModifyImageProvider as aZ, type MotionTransferProviderType as a_, IMAGE_MASK_MODE as aa, IMAGE_OUTPUT_FORMAT_EXT as ab, IMAGE_OUTPUT_FORMAT_MIME as ac, IMAGE_OUTPUT_FORMAT_VALUES as ad, IMAGE_PROMPT_MAX as ae, IMAGE_QUALITY_VALUES as af, IMAGE_RENDERING_SPEED_VALUES as ag, IMAGE_RESOLUTION_VALUES as ah, IMAGE_SVG_LEVEL_VALUES as ai, IMAGE_TO_VIDEO_PROVIDERS as aj, type ImageAspectRatio as ak, type ImageBackground as al, type ImageEditProvider as am, type ImageEditTargetResolution as an, type ImageGenProvider as ao, type ImageI2IProvider as ap, type ImageMaskMode as aq, type ImageOutputFormat as ar, type ImageQuality as as, type ImageRenderingSpeed as at, type ImageResolution as au, type ImageRunKind as av, type ImageSvgLevel as aw, type ImageToVideoProvider as ax, KLING_4_DEFAULT_RESOLUTION as ay, KLING_4_FLASH_PROVIDER as az, AUDIO_ADDON_PROVIDERS as b, TRANSCRIBE_TARGET_LANGUAGES as b$, NATIVE_ADAPTIVE_ASPECT as b0, NATIVE_NEGATIVE_PROMPT_MODELS as b1, NATIVE_NEGATIVE_VIDEO_PROVIDERS as b2, NEGATIVE_PROMPT_MAX as b3, OBJECT_MOTION_PROVIDERS as b4, type ObjectMotionProvider as b5, PIXVERSE_V6_EXTEND_PROVIDER as b6, PIXVERSE_V6_MAX_DEFAULT_QUALITY as b7, PIXVERSE_V6_MAX_PROVIDER as b8, PRICING_DEFAULT_DURATION_SEC as b9, SEED_SUPPORT as bA, SUNO_ACTIVE_MODELS as bB, SUNO_ADD_TRACK_MODELS as bC, SUNO_DURATION_MODELS as bD, SUNO_HARD_CEILING as bE, SUNO_LEGACY_MODELS as bF, SUNO_MODELS as bG, SUNO_TEXT_MAX as bH, SUNO_TITLE_MAX as bI, type SceneInputMode as bJ, SceneInputModeSchema as bK, type ScriptProvider as bL, type SeedanceExtendProvider as bM, type SeedanceReferenceMediaCount as bN, type SeedanceTaskTypeFacts as bO, type SeedanceTaskTypeResolution as bP, type SeedanceVideoEditProvider as bQ, type SunoAddTrackModel as bR, type SunoModel as bS, T2I_TO_I2I_VARIANT as bT, TASK_CHAINED_EDIT_PROVIDERS as bU, TASK_CHAINED_EDIT_PROVIDER_IDS as bV, TEXT_TO_AUDIO_PROVIDERS as bW, TEXT_TO_VIDEO_PROVIDERS as bX, TRANSCRIBE_LANES as bY, TRANSCRIBE_PROVIDERS as bZ, TRANSCRIBE_PROVIDER_CAPABILITIES as b_, PRICING_DEFAULT_RESOLUTION as ba, PROMPT_HARD_CEILING as bb, type PixverseExtendProvider as bc, QA_CHECK_PROVIDERS as bd, type QaCheckProvider as be, REF_IMAGE_MAX_LIMITS as bf, RENDERING_SPEED_SUPPORT as bg, REPLICATE_LIP_SYNC_PROVIDERS as bh, RETIRED_LIP_SYNC_PROVIDERS as bi, RETIRED_VIDEO_PROVIDERS as bj, type RefAudioCheck as bk, type RefAudioProbe as bl, type RefAudioRule as bm, type RefVideoDurationLimit as bn, SCRIPT_PROVIDERS as bo, SEEDANCE_2_5_REF_LIMITS as bp, SEEDANCE_2_CONTINUATION_REF_SEC as bq, SEEDANCE_2_EXTEND_STITCH as br, SEEDANCE_2_PROVIDERS as bs, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as bt, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as bu, SEEDANCE_2_REF_LIMITS as bv, SEEDANCE_LIP_SYNC_PROVIDERS as bw, SEEDANCE_VIDEO_EDIT_PROVIDERS as bx, SEEDANCE_VIDEO_EDIT_SHAPE as by, SEEDANCE_VIDEO_EDIT_TASK_TYPE as bz, type AiWriterProvider as c, checkRefVideoDurations as c$, TTS_OUTPUT_FORMATS as c0, TTS_OUTPUT_FORMAT_FILES as c1, TTS_PROVIDERS as c2, TTS_TEXT_MAX as c3, TWO_K_RESOLUTION_PROVIDERS as c4, type TailExtendProvider as c5, type TaskChainedEditProvider as c6, type TextToAudioProvider as c7, type TextToVideoProvider as c8, type TranscribeLane as c9, VIDEO_TO_VIDEO_PROVIDERS as cA, VIDEO_UPSCALE_PROVIDERS as cB, VIDEO_VARIABLE_PRICING as cC, VIDU_Q4_DEFAULT_RESOLUTION as cD, VIDU_Q4_PROVIDERS as cE, VOICE_DESIGN_MODELS as cF, type VideoAudioCapability as cG, type VideoAudioMode as cH, type VideoAudioRequest as cI, type VideoGenProvider as cJ, type VideoModeAlias as cK, type VideoModelCapabilities as cL, type VideoReferenceSyntax as cM, type VideoStartFrameOnlyProblem as cN, type VideoToVideoNodeProvider as cO, type VideoToVideoProvider as cP, type VideoUpscaleProvider as cQ, type VoiceDesignModel as cR, WAN_3_DEFAULT_RESOLUTION as cS, WAN_3_PROVIDERS as cT, applyDefaultVideoSelection as cU, applyVideoAudioToggle as cV, applyVideoNegativePrompt as cW, billsReferenceVideoSeconds as cX, canonicalVideoProvider as cY, checkCharacterClipDurations as cZ, checkRefAudioRules as c_, type TranscribeProvider as ca, type TranscribeTargetLanguage as cb, type TtsOutputFormat as cc, type TtsProvider as cd, UPSCALE_IMAGE_PROVIDERS as ce, type UpscaleImageProvider as cf, VARIABLE_PRICING_MODELS as cg, VEO_PROVIDERS as ch, VIDEO_AUDIO_CAPABILITY as ci, VIDEO_CHARACTER_CLIP_DURATION_LIMITS as cj, VIDEO_DURATION_TIERS as ck, VIDEO_GEN_COLLAPSED_T2V_IDS as cl, VIDEO_GEN_PROVIDERS as cm, VIDEO_INPUT_LIP_SYNC_PROVIDERS as cn, VIDEO_MODEL_CAPS as co, VIDEO_MODE_ALIASES as cp, VIDEO_PROMPT_MAX as cq, VIDEO_PROVIDERS_REQUIRING_IMAGE as cr, VIDEO_PROVIDERS_WITHOUT_DISPATCH as cs, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as ct, VIDEO_REF_AUDIO_RULES as cu, VIDEO_REF_LIMITS_BY_PROVIDER as cv, VIDEO_REF_RATE_PROVIDERS as cw, VIDEO_REF_VIDEO_DURATION_LIMITS as cx, VIDEO_START_FRAME_ONLY_CODE as cy, VIDEO_TO_VIDEO_NODE_PROVIDERS as cz, CHARACTER_MOTION_PROVIDERS as d, seedanceTaskTypeFitsMedia as d$, defaultVideoAspectRatio as d0, extendHasSoundSwitch as d1, findSeedance2AudioOverLimit as d2, getMaxImagePromptChars as d3, getMaxNegativePromptChars as d4, getMaxSunoPromptChars as d5, getMaxSunoStyleChars as d6, getMaxTtsChars as d7, getMaxVideoPromptChars as d8, getMinImagePromptChars as d9, isWan3Provider as dA, kling4KeyframeFrameCap as dB, listedSeedanceTaskType as dC, maxSegmentSecFor as dD, maxSegmentsFor as dE, maxVideoDurationSec as dF, minSegmentSecFor as dG, modelsForInputMode as dH, normalizeGrokVideo15Resolution as dI, normalizeKling4Resolution as dJ, normalizeMinimaxH3Resolution as dK, normalizePixverseV6MaxQuality as dL, normalizeViduQ4Resolution as dM, normalizeWan3Resolution as dN, preferredInputModeForModel as dO, pricedOutputDurationSec as dP, refusesImagesOverLimit as dQ, refusesImagesOverLimitOn as dR, requestImageLimit as dS, resolveGvpAnchorWire as dT, resolveMusicProvider as dU, resolveSeedanceTaskType as dV, resolveVideoModeForInputs as dW, resolveVideoProviderForMode as dX, retiredLipSyncProviderMessage as dY, retiredLipSyncProviderName as dZ, seedance2AudioLimitSec as d_, getVideoAudioCapability as da, grokVideo15MiddleFrameSlots as db, hasContiguousSegmentDurations as dc, hasOwnRequestImageLimit as dd, imageReferenceLimit as de, isCatalogExtendProvider as df, isGeminiOmniPerSecondProvider as dg, isGeminiOmniProvider as dh, isGrokExtendProvider as di, isGrokExtendSourceModel as dj, isGrokVideo15Provider as dk, isGvpSupportedProvider as dl, isKling4FlashProvider as dm, isKling4Provider as dn, isKling4RunnerProvider as dp, isLegacySunoModel as dq, isMinimaxH3Provider as dr, isPixverseExtendProvider as ds, isPixverseV6MaxProvider as dt, isSeedance2Provider as du, isSeedanceExtendProvider as dv, isSeedanceVideoEditProvider as dw, isTailExtendProvider as dx, isVeoProvider as dy, isViduQ4Provider as dz, COMPOSER_PLAN_FIELDS as e, segmentDurationsFor as e0, snapToNearestDuration as e1, sunoModelHonoursDuration as e2, supportsAutoVideoDuration as e3, supportsEndAnchor as e4, supportsExtendRender as e5, supportsReferenceTaskType as e6, transcribeLaneSupportsTranslation as e7, transcribeLaneSupportsWordTimestamps as e8, transcribeProvidersWithTranslation as e9, transcribeProvidersWithWordTimestamps as ea, videoAudioIntent as eb, videoAudioPricedOn as ec, videoDefaultDurationSec as ed, videoKeyframesMiddleCap as ee, videoModelCanSpeakDialogue as ef, videoModelSupportsAudio as eg, videoNegativeSuffix as eh, videoProviderAppendsFrames as ei, videoProviderFoldsLoneEndFrame as ej, videoProviderRefModeFrameSeats as ek, videoProviderReferenceSyntax as el, videoProviderRefsReplaceStartFrame as em, videoProviderRequiresImage as en, videoProviderRunsFromReferences as eo, videoProviderTakesLoneEndFrame as ep, videoSourceTrimMaxSec as eq, videoStartFrameOnlyMessage as er, videoStartFrameOnlyProblem as es, videoStartFrameOnlyResolution as et, COMPOSER_PLAN_MAP as f, CREDIT_BASE_USD as g, type CaptionTranscribeLane as h, type CatalogExtendProvider as i, type CharacterMotionProvider as j, DEFAULT_MUSIC_PROVIDER as k, DEFAULT_REF_IMAGE_MAX as l, DEFAULT_REQUEST_IMAGE_LIMIT as m, DEFAULT_SUNO_MODEL as n, DEFAULT_TEXT_TO_AUDIO_PROVIDER as o, DEFAULT_TRANSCRIBE_NODE_PROVIDER as p, DEFAULT_TRANSCRIBE_PROVIDER as q, DEFAULT_TTS_OUTPUT_FORMAT as r, DEFAULT_TTS_PROVIDER as s, DEFAULT_VIDEO_DURATION_SEC as t, DEFAULT_VIDEO_PROVIDER as u, DEFAULT_VIDEO_TO_VIDEO_PROVIDER as v, DEFAULT_VOICE_DESIGN_MODEL as w, DIALOGUE_PROVIDERS as x, DURATION_PRICED_PROVIDERS as y, type DialogueProvider as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a0 as TtsReplica, Z as TtsCapabilities, _ as TtsDirectionSheet, a2 as TtsSettingLever, $ as TtsNamedVoice } from './model-catalog-
|
|
1
|
+
import { a0 as TtsReplica, Z as TtsCapabilities, _ as TtsDirectionSheet, a2 as TtsSettingLever, $ as TtsNamedVoice } from './model-catalog-B-aQnUS8.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Capability lookups for the text-to-speech lane.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a0 as TtsReplica, Z as TtsCapabilities, _ as TtsDirectionSheet, a2 as TtsSettingLever, $ as TtsNamedVoice } from './model-catalog-
|
|
1
|
+
import { a0 as TtsReplica, Z as TtsCapabilities, _ as TtsDirectionSheet, a2 as TtsSettingLever, $ as TtsNamedVoice } from './model-catalog-B-aQnUS8.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Capability lookups for the text-to-speech lane.
|
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
getMaxImagePromptChars,
|
|
13
13
|
getMinImagePromptChars,
|
|
14
14
|
imageReferenceLimit,
|
|
15
|
+
refusesImagesOverLimit,
|
|
15
16
|
requestImageLimit,
|
|
16
17
|
} from "../model-constants.js"
|
|
17
18
|
import { isPricedPerInputImage, priceReadsInputImages, pricedEstimatedImages, pricedSentImages } from "../input-image-pricing.js"
|
|
@@ -49,11 +50,14 @@ describe("FLUX 3 Klein in the catalog", () => {
|
|
|
49
50
|
expect(isFlux3KleinI2i(I2I)).toBe(true)
|
|
50
51
|
})
|
|
51
52
|
|
|
52
|
-
it("takes 1K, 2K and 4K, 1K when none is named", () => {
|
|
53
|
+
it("takes 1K, 2K and 4K, 1K when none is named, declared rather than read from the list's order", () => {
|
|
53
54
|
for (const id of [T2I, I2I]) {
|
|
54
55
|
expect(MODEL_CATALOG[id]!.resolutions).toEqual(["1K", "2K", "4K"])
|
|
55
|
-
expect(MODEL_CATALOG[id]!.defaultResolution).
|
|
56
|
-
expect(
|
|
56
|
+
expect(MODEL_CATALOG[id]!.defaultResolution).toBe("1K")
|
|
57
|
+
expect(MODEL_CATALOG[id]!.defaultResolution).toBe(FLUX_3_KLEIN_DEFAULT_RESOLUTION)
|
|
58
|
+
expect(defaultResolutionFor(id)).toBe("1K")
|
|
59
|
+
// A size it does not list snaps to the declared default.
|
|
60
|
+
expect(normalizeModelInput(id, { resolution: "8K" }).resolution).toBe("1K")
|
|
57
61
|
}
|
|
58
62
|
expect(FLUX_3_KLEIN_DEFAULT_RESOLUTION).toBe("1K")
|
|
59
63
|
expect(flux3KleinResolution(undefined)).toBe("1K")
|
|
@@ -186,6 +190,50 @@ describe("FLUX 3 Klein's place in the shared lists", () => {
|
|
|
186
190
|
expect(requestImageLimit("flux-2-klein")).toBe(14)
|
|
187
191
|
})
|
|
188
192
|
|
|
193
|
+
it("refuses a run over its 10 images rather than having one left out (decided 2026-11-12)", () => {
|
|
194
|
+
expect(refusesImagesOverLimit(T2I)).toBe(true)
|
|
195
|
+
expect(refusesImagesOverLimit(I2I)).toBe(true)
|
|
196
|
+
expect(MODEL_CATALOG[T2I]!.refusesImagesOverLimit).toBe(true)
|
|
197
|
+
expect(MODEL_CATALOG[I2I]!.refusesImagesOverLimit).toBe(true)
|
|
198
|
+
expect(refusesImagesOverLimit("flux-2-klein")).toBe(false)
|
|
199
|
+
expect(refusesImagesOverLimit(undefined)).toBe(false)
|
|
200
|
+
expect(refusesImagesOverLimit("not-a-model")).toBe(false)
|
|
201
|
+
})
|
|
202
|
+
})
|
|
203
|
+
|
|
204
|
+
describe("a model that refuses images over its limit (`refusesImagesOverLimit`)", () => {
|
|
205
|
+
const flagged = Object.values(MODEL_CATALOG).filter((m) => m.refusesImagesOverLimit === true)
|
|
206
|
+
const t2iOf = (i2i: string) => Object.keys(T2I_TO_I2I_VARIANT).filter((t2i) => T2I_TO_I2I_VARIANT[t2i] === i2i)
|
|
207
|
+
|
|
208
|
+
it("is FLUX 3 Klein alone today: every other model keeps its trim", () => {
|
|
209
|
+
expect(flagged.map((m) => m.id).sort()).toEqual([T2I, I2I])
|
|
210
|
+
})
|
|
211
|
+
|
|
212
|
+
it("is an image model that takes reference images", () => {
|
|
213
|
+
for (const m of flagged) {
|
|
214
|
+
expect(m.kind, m.id).toBe("image")
|
|
215
|
+
expect(imageReferenceLimit(m.id), m.id).toBeGreaterThan(0)
|
|
216
|
+
}
|
|
217
|
+
})
|
|
218
|
+
|
|
219
|
+
it("is flagged on both ids, so the id picked and the edit it moves onto refuse alike", () => {
|
|
220
|
+
for (const m of flagged) {
|
|
221
|
+
const edit = T2I_TO_I2I_VARIANT[m.id]
|
|
222
|
+
if (edit !== undefined) expect(refusesImagesOverLimit(edit), `${m.id} → ${edit}`).toBe(true)
|
|
223
|
+
for (const t2i of t2iOf(m.id)) expect(refusesImagesOverLimit(t2i), `${t2i} → ${m.id}`).toBe(true)
|
|
224
|
+
}
|
|
225
|
+
})
|
|
226
|
+
|
|
227
|
+
it("is refused at the same count the canvas and the assembler stop at", () => {
|
|
228
|
+
// The routes refuse past `requestImageLimit`; the canvas handles and a
|
|
229
|
+
// moodboard's free seats read `imageReferenceLimit`. A flagged model that
|
|
230
|
+
// let them differ would offer seats a run is then refused for.
|
|
231
|
+
for (const m of flagged) expect(imageReferenceLimit(m.id), m.id).toBe(requestImageLimit(m.id))
|
|
232
|
+
})
|
|
233
|
+
})
|
|
234
|
+
|
|
235
|
+
describe("FLUX 3 Klein's prompts and quality levels", () => {
|
|
236
|
+
|
|
189
237
|
it("prompts of 1 to 5000 characters: the default cap, no minimum", () => {
|
|
190
238
|
expect(getMaxImagePromptChars(T2I)).toBe(5000)
|
|
191
239
|
expect(getMaxImagePromptChars(I2I)).toBe(5000)
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from "vitest"
|
|
2
|
+
import {
|
|
3
|
+
AI_PANEL_EDITOR_ANSWERS,
|
|
4
|
+
AI_PANEL_EDITOR_REQUESTS,
|
|
5
|
+
AI_PANEL_PATH,
|
|
6
|
+
NODARO_AI_PANEL_CLOSE,
|
|
7
|
+
NODARO_AI_PANEL_INIT,
|
|
8
|
+
NODARO_AI_PANEL_LAYOUT,
|
|
9
|
+
NODARO_AI_PANEL_READY,
|
|
10
|
+
aiPanelOffered,
|
|
11
|
+
createAiPanelRelay,
|
|
12
|
+
routeAiPanelMessage,
|
|
13
|
+
type AiPanelRelayContext,
|
|
14
|
+
} from "../freecut-ai-panel.js"
|
|
15
|
+
import {
|
|
16
|
+
FREECUT_OPS_RESULT,
|
|
17
|
+
FREECUT_TIMELINE,
|
|
18
|
+
FREECUT_UNDO_RESULT,
|
|
19
|
+
NODARO_APPLY_OPS,
|
|
20
|
+
NODARO_GET_TIMELINE,
|
|
21
|
+
NODARO_IMPORT_FILES,
|
|
22
|
+
NODARO_PLAYBACK,
|
|
23
|
+
NODARO_PRESENCE,
|
|
24
|
+
NODARO_UNDO_EDIT,
|
|
25
|
+
} from "../freecut-protocol.js"
|
|
26
|
+
|
|
27
|
+
const PANEL_ORIGIN = "https://app.nodaro.ai"
|
|
28
|
+
const EDITOR_ORIGIN = "https://freecut.nodaro.ai"
|
|
29
|
+
const panel = { name: "panel" }
|
|
30
|
+
const editor = { name: "editor" }
|
|
31
|
+
const context = (asked = new Set<string>()): AiPanelRelayContext => ({ panel, panelOrigin: PANEL_ORIGIN, editor, editorOrigin: EDITOR_ORIGIN, asked })
|
|
32
|
+
const fromPanel = (data: unknown) => ({ data, origin: PANEL_ORIGIN, source: panel })
|
|
33
|
+
const fromEditor = (data: unknown) => ({ data, origin: EDITOR_ORIGIN, source: editor })
|
|
34
|
+
|
|
35
|
+
describe("the Edit with AI frame protocol", () => {
|
|
36
|
+
it("pins the wire strings a host and the panel share", () => {
|
|
37
|
+
expect({
|
|
38
|
+
AI_PANEL_PATH,
|
|
39
|
+
NODARO_AI_PANEL_READY,
|
|
40
|
+
NODARO_AI_PANEL_CLOSE,
|
|
41
|
+
NODARO_AI_PANEL_LAYOUT,
|
|
42
|
+
NODARO_AI_PANEL_INIT,
|
|
43
|
+
NODARO_GET_TIMELINE,
|
|
44
|
+
NODARO_APPLY_OPS,
|
|
45
|
+
NODARO_UNDO_EDIT,
|
|
46
|
+
NODARO_PLAYBACK,
|
|
47
|
+
NODARO_PRESENCE,
|
|
48
|
+
FREECUT_TIMELINE,
|
|
49
|
+
FREECUT_OPS_RESULT,
|
|
50
|
+
FREECUT_UNDO_RESULT,
|
|
51
|
+
}).toEqual({
|
|
52
|
+
AI_PANEL_PATH: "/embed/edit-with-ai",
|
|
53
|
+
NODARO_AI_PANEL_READY: "NODARO_AI_PANEL_READY",
|
|
54
|
+
NODARO_AI_PANEL_CLOSE: "NODARO_AI_PANEL_CLOSE",
|
|
55
|
+
NODARO_AI_PANEL_LAYOUT: "NODARO_AI_PANEL_LAYOUT",
|
|
56
|
+
NODARO_AI_PANEL_INIT: "NODARO_AI_PANEL_INIT",
|
|
57
|
+
NODARO_GET_TIMELINE: "NODARO_GET_TIMELINE",
|
|
58
|
+
NODARO_APPLY_OPS: "NODARO_APPLY_OPS",
|
|
59
|
+
NODARO_UNDO_EDIT: "NODARO_UNDO_EDIT",
|
|
60
|
+
NODARO_PLAYBACK: "NODARO_PLAYBACK",
|
|
61
|
+
NODARO_PRESENCE: "NODARO_PRESENCE",
|
|
62
|
+
FREECUT_TIMELINE: "FREECUT_TIMELINE",
|
|
63
|
+
FREECUT_OPS_RESULT: "FREECUT_OPS_RESULT",
|
|
64
|
+
FREECUT_UNDO_RESULT: "FREECUT_UNDO_RESULT",
|
|
65
|
+
})
|
|
66
|
+
expect(AI_PANEL_EDITOR_REQUESTS).toEqual(["NODARO_GET_TIMELINE", "NODARO_APPLY_OPS", "NODARO_UNDO_EDIT", "NODARO_IMPORT_FILES", "NODARO_PLAYBACK", "NODARO_PRESENCE"])
|
|
67
|
+
expect(AI_PANEL_EDITOR_ANSWERS).toEqual(["FREECUT_TIMELINE", "FREECUT_OPS_RESULT", "FREECUT_UNDO_RESULT"])
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
it("is offered only on an editor that can be edited, read, played and shown presence", () => {
|
|
71
|
+
expect(aiPanelOffered(["edit-ops", "timeline-read", "playback", "presence", "timeline-add"])).toBe(true)
|
|
72
|
+
expect(aiPanelOffered(["edit-ops", "timeline-read", "playback"])).toBe(false)
|
|
73
|
+
expect(aiPanelOffered([])).toBe(false)
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
describe("routeAiPanelMessage", () => {
|
|
78
|
+
it("carries each of the panel's editor requests to the editor, as sent", () => {
|
|
79
|
+
for (const type of AI_PANEL_EDITOR_REQUESTS) {
|
|
80
|
+
const payload = { requestId: `r-${type}`, label: "Cut the pauses" }
|
|
81
|
+
expect(routeAiPanelMessage(fromPanel({ type, payload }), context())).toEqual({ to: "editor", message: { type, payload }, transfer: [] })
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
it("hands an import's buffers over again", () => {
|
|
86
|
+
const buffer = new ArrayBuffer(8)
|
|
87
|
+
const payload = { files: [{ ref: "ai-music-1", name: "ai-music.mp3", type: "audio/mpeg", size: 8, buffer }] }
|
|
88
|
+
const route = routeAiPanelMessage(fromPanel({ type: NODARO_IMPORT_FILES, payload }), context())
|
|
89
|
+
expect(route?.to).toBe("editor")
|
|
90
|
+
expect(route?.transfer).toEqual([buffer])
|
|
91
|
+
expect(route?.transfer[0]).toBe(buffer)
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
it("passes back an answer to a request the panel made, once", () => {
|
|
95
|
+
const ctx = context()
|
|
96
|
+
routeAiPanelMessage(fromPanel({ type: NODARO_GET_TIMELINE, payload: { requestId: "r1" } }), ctx)
|
|
97
|
+
const answer = { type: FREECUT_TIMELINE, payload: { requestId: "r1", timeline: { items: [] } } }
|
|
98
|
+
expect(routeAiPanelMessage(fromEditor(answer), ctx)).toEqual({ to: "panel", message: answer, transfer: [] })
|
|
99
|
+
expect(routeAiPanelMessage(fromEditor(answer), ctx)).toBeNull()
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
it("never passes the host's own answers to the panel", () => {
|
|
103
|
+
// The host asked for this one itself (its own requestId), and the panel never did.
|
|
104
|
+
const answer = { type: FREECUT_OPS_RESULT, payload: { requestId: "host-1", ok: true } }
|
|
105
|
+
expect(routeAiPanelMessage(fromEditor(answer), context())).toBeNull()
|
|
106
|
+
expect(routeAiPanelMessage(fromEditor({ type: "FREECUT_TIMELINE_ADDED", payload: { requestId: "host-2" } }), context(new Set(["host-2"])))).toBeNull()
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
it("leaves alone what is not the panel's: other types, other frames, other origins", () => {
|
|
110
|
+
expect(routeAiPanelMessage(fromPanel({ type: "NODARO_LOAD_VIDEO", payload: {} }), context())).toBeNull()
|
|
111
|
+
expect(routeAiPanelMessage(fromPanel({ type: "NODARO_RESET_PROJECT", payload: {} }), context())).toBeNull()
|
|
112
|
+
expect(routeAiPanelMessage({ data: { type: NODARO_APPLY_OPS, payload: {} }, origin: "https://evil.example", source: panel }, context())).toBeNull()
|
|
113
|
+
expect(routeAiPanelMessage({ data: { type: NODARO_APPLY_OPS, payload: {} }, origin: PANEL_ORIGIN, source: { other: true } }, context())).toBeNull()
|
|
114
|
+
const asked = new Set(["r1"])
|
|
115
|
+
expect(routeAiPanelMessage({ data: { type: FREECUT_TIMELINE, payload: { requestId: "r1" } }, origin: PANEL_ORIGIN, source: editor }, context(asked))).toBeNull()
|
|
116
|
+
expect(asked.has("r1")).toBe(true)
|
|
117
|
+
expect(routeAiPanelMessage(fromPanel("NODARO_APPLY_OPS"), context())).toBeNull()
|
|
118
|
+
expect(routeAiPanelMessage(fromPanel(null), context())).toBeNull()
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
it("does not route for a frame that is gone", () => {
|
|
122
|
+
const gone: AiPanelRelayContext = { ...context(), panel: null }
|
|
123
|
+
expect(routeAiPanelMessage({ data: { type: NODARO_PLAYBACK, payload: { action: "play" } }, origin: PANEL_ORIGIN, source: null }, gone)).toBeNull()
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
describe("createAiPanelRelay", () => {
|
|
128
|
+
it("posts requests to the editor and answers to the panel, each on its own origin, until disposed", () => {
|
|
129
|
+
let listener: ((event: MessageEvent) => void) | null = null
|
|
130
|
+
const host = {
|
|
131
|
+
addEventListener: vi.fn((_type: "message", fn: (event: MessageEvent) => void) => {
|
|
132
|
+
listener = fn
|
|
133
|
+
}),
|
|
134
|
+
removeEventListener: vi.fn(),
|
|
135
|
+
}
|
|
136
|
+
const panelWindow = { postMessage: vi.fn() }
|
|
137
|
+
const editorWindow = { postMessage: vi.fn() }
|
|
138
|
+
const relay = createAiPanelRelay({ host, panel: () => panelWindow, panelOrigin: PANEL_ORIGIN, editor: () => editorWindow, editorOrigin: EDITOR_ORIGIN })
|
|
139
|
+
const send = (data: unknown, origin: string, source: unknown) => listener!({ data, origin, source } as MessageEvent)
|
|
140
|
+
|
|
141
|
+
send({ type: NODARO_APPLY_OPS, payload: { requestId: "r9", label: "Cut", ops: [] } }, PANEL_ORIGIN, panelWindow)
|
|
142
|
+
expect(editorWindow.postMessage).toHaveBeenCalledWith({ type: NODARO_APPLY_OPS, payload: { requestId: "r9", label: "Cut", ops: [] } }, EDITOR_ORIGIN, [])
|
|
143
|
+
send({ type: FREECUT_OPS_RESULT, payload: { requestId: "r9", ok: true } }, EDITOR_ORIGIN, editorWindow)
|
|
144
|
+
expect(panelWindow.postMessage).toHaveBeenCalledWith({ type: FREECUT_OPS_RESULT, payload: { requestId: "r9", ok: true } }, PANEL_ORIGIN, [])
|
|
145
|
+
|
|
146
|
+
relay.dispose()
|
|
147
|
+
expect(host.removeEventListener).toHaveBeenCalledWith("message", listener)
|
|
148
|
+
})
|
|
149
|
+
})
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What happens to images past a model's limit, by how the run was asked for
|
|
3
|
+
* (`refusesImagesOverLimitOn`, decided 2026-11-14):
|
|
4
|
+
*
|
|
5
|
+
* - a request (the API, MCP, the editor's Run of one node) is refused on every
|
|
6
|
+
* model with a request image limit of its own, saying how many to remove;
|
|
7
|
+
* - a workflow run is refused only on a model whose catalog entry carries
|
|
8
|
+
* `refusesImagesOverLimit` (FLUX 3 Klein), and every other model's workflow
|
|
9
|
+
* run keeps its documented trim, so a saved graph keeps running;
|
|
10
|
+
* - a model held to the default request limit is trimmed on both, as before.
|
|
11
|
+
*
|
|
12
|
+
* Read from the data (`requestImageLimit`'s table and the catalog flag), never
|
|
13
|
+
* from a list of ids, so a model that gains a request limit is covered.
|
|
14
|
+
*/
|
|
15
|
+
import { describe, expect, it } from "vitest"
|
|
16
|
+
import { MODEL_CATALOG } from "../model-catalog.js"
|
|
17
|
+
import {
|
|
18
|
+
DEFAULT_REQUEST_IMAGE_LIMIT,
|
|
19
|
+
hasOwnRequestImageLimit,
|
|
20
|
+
imageReferenceLimit,
|
|
21
|
+
refusesImagesOverLimit,
|
|
22
|
+
refusesImagesOverLimitOn,
|
|
23
|
+
requestImageLimit,
|
|
24
|
+
} from "../model-constants.js"
|
|
25
|
+
|
|
26
|
+
/** Request-limited models whose workflow runs keep their trim: both ids each. */
|
|
27
|
+
const TRIMMED_IN_WORKFLOWS = [
|
|
28
|
+
"seedream-5-5",
|
|
29
|
+
"seedream-5-5-i2i",
|
|
30
|
+
"gpt-image-2-6-flare",
|
|
31
|
+
"gpt-image-2-6-flare-i2i",
|
|
32
|
+
"gpt-image-2-6-sunburst",
|
|
33
|
+
"gpt-image-2-6-sunburst-i2i",
|
|
34
|
+
"minimax-h3-image",
|
|
35
|
+
"minimax-h3-image-i2i",
|
|
36
|
+
]
|
|
37
|
+
const REFUSED_EVERYWHERE = ["flux-3-klein", "flux-3-klein-i2i"]
|
|
38
|
+
/** Held to the default request limit: trimmed at their reference limit on every run. */
|
|
39
|
+
const UNCHANGED = ["nano-banana-pro", "flux-2-pro", "gpt-image-2-6-economy-i2i", "seedream-5-flash-i2i"]
|
|
40
|
+
|
|
41
|
+
const imageModels = Object.values(MODEL_CATALOG).filter((m) => m.kind === "image")
|
|
42
|
+
|
|
43
|
+
describe("a request over a model's image limit", () => {
|
|
44
|
+
it.each(TRIMMED_IN_WORKFLOWS)("%s refuses a request and keeps a workflow run's trim", (id) => {
|
|
45
|
+
expect(hasOwnRequestImageLimit(id)).toBe(true)
|
|
46
|
+
expect(refusesImagesOverLimitOn(id, "request")).toBe(true)
|
|
47
|
+
expect(refusesImagesOverLimitOn(id, "workflow")).toBe(false)
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
it.each(REFUSED_EVERYWHERE)("%s refuses a request and a workflow run alike", (id) => {
|
|
51
|
+
expect(refusesImagesOverLimitOn(id, "request")).toBe(true)
|
|
52
|
+
expect(refusesImagesOverLimitOn(id, "workflow")).toBe(true)
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
it.each(UNCHANGED)("%s, with no request limit of its own, is refused on neither", (id) => {
|
|
56
|
+
expect(hasOwnRequestImageLimit(id)).toBe(false)
|
|
57
|
+
expect(requestImageLimit(id)).toBe(DEFAULT_REQUEST_IMAGE_LIMIT)
|
|
58
|
+
expect(refusesImagesOverLimitOn(id, "request")).toBe(false)
|
|
59
|
+
expect(refusesImagesOverLimitOn(id, "workflow")).toBe(false)
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
it("names no model it does not know", () => {
|
|
63
|
+
expect(hasOwnRequestImageLimit(undefined)).toBe(false)
|
|
64
|
+
expect(hasOwnRequestImageLimit("not-a-model")).toBe(false)
|
|
65
|
+
expect(refusesImagesOverLimitOn(undefined, "request")).toBe(false)
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
describe("the rule, read from the data for every image model", () => {
|
|
70
|
+
it("a request is refused exactly where the model has a request limit of its own or the catalog flag", () => {
|
|
71
|
+
for (const m of imageModels) {
|
|
72
|
+
expect(refusesImagesOverLimitOn(m.id, "request"), m.id).toBe(hasOwnRequestImageLimit(m.id) || refusesImagesOverLimit(m.id))
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
it("a workflow run is refused exactly where the catalog carries the flag", () => {
|
|
77
|
+
for (const m of imageModels) {
|
|
78
|
+
expect(refusesImagesOverLimitOn(m.id, "workflow"), m.id).toBe(m.refusesImagesOverLimit === true)
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
it("a flagged model has a request limit of its own, so a workflow run and a request refuse the same count", () => {
|
|
83
|
+
for (const m of imageModels.filter((x) => x.refusesImagesOverLimit === true)) {
|
|
84
|
+
expect(hasOwnRequestImageLimit(m.id), m.id).toBe(true)
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
it("a request-limited model's reference limit is its request limit, so a workflow run's trim stops at the count a request may send", () => {
|
|
89
|
+
// The assembler trims a workflow run's references at `imageReferenceLimit`;
|
|
90
|
+
// a request is refused past `requestImageLimit`. Were they to differ, a
|
|
91
|
+
// workflow run would send a different number than a request may.
|
|
92
|
+
const limited = imageModels.filter((m) => hasOwnRequestImageLimit(m.id))
|
|
93
|
+
expect(limited.map((m) => m.id)).toEqual(expect.arrayContaining([...TRIMMED_IN_WORKFLOWS, ...REFUSED_EVERYWHERE]))
|
|
94
|
+
for (const m of limited) expect(imageReferenceLimit(m.id), m.id).toBe(requestImageLimit(m.id))
|
|
95
|
+
})
|
|
96
|
+
})
|
|
@@ -39,7 +39,7 @@ describe("kling-4 / kling-4-keyframes catalog", () => {
|
|
|
39
39
|
})
|
|
40
40
|
|
|
41
41
|
it("reference: subjects, voices and reference videos; keyframes: in-between frames on their own channel", () => {
|
|
42
|
-
expect(VIDEO_REF_LIMITS_BY_PROVIDER["kling-4"]).toEqual({ images: 10, videos: 5, audio: 3, characters: 7, materials: 15, videoCharacters: 3
|
|
42
|
+
expect(VIDEO_REF_LIMITS_BY_PROVIDER["kling-4"]).toEqual({ images: 10, videos: 5, audio: 3, characters: 7, materials: 15, videoCharacters: 3 })
|
|
43
43
|
expect(VIDEO_REF_VIDEO_DURATION_LIMITS["kling-4"]).toEqual({ minSec: 2, maxSec: 30, maxTotalSec: 30 })
|
|
44
44
|
expect(hasFeature("kling-4", "character-subjects")).toBe(true)
|
|
45
45
|
expect(VIDEO_REF_LIMITS_BY_PROVIDER["kling-4-keyframes"]).toEqual({ images: 8 })
|
|
@@ -4,7 +4,10 @@ import { resolveNormalizedImageGen } from "../credit-identifiers.js"
|
|
|
4
4
|
import {
|
|
5
5
|
IMAGE_RESOLUTION_VALUES,
|
|
6
6
|
getMinImagePromptChars,
|
|
7
|
+
hasOwnRequestImageLimit,
|
|
7
8
|
imageReferenceLimit,
|
|
9
|
+
refusesImagesOverLimit,
|
|
10
|
+
refusesImagesOverLimitOn,
|
|
8
11
|
requestImageLimit,
|
|
9
12
|
T2I_TO_I2I_VARIANT,
|
|
10
13
|
} from "../model-constants.js"
|
|
@@ -82,6 +85,20 @@ describe("Seedream 5.5 input images", () => {
|
|
|
82
85
|
expect(requestImageLimit("gpt-image-2-6-flare-i2i")).toBe(16)
|
|
83
86
|
})
|
|
84
87
|
|
|
88
|
+
it("keeps its own rule past 10: a request with more is refused, a workflow run sends the first 10", () => {
|
|
89
|
+
// Its rule, since it shipped (decided 2026-11-14 for every model with a
|
|
90
|
+
// request limit of its own): nothing trims a request, so it is refused,
|
|
91
|
+
// saying how many to remove; a workflow run sends the first 10, so a saved
|
|
92
|
+
// graph keeps running. FLUX 3 Klein's refusal in a workflow run too is a
|
|
93
|
+
// catalog flag (`refusesImagesOverLimit`) Seedream 5.5 does not carry.
|
|
94
|
+
for (const id of ["seedream-5-5", "seedream-5-5-i2i"]) {
|
|
95
|
+
expect(hasOwnRequestImageLimit(id), id).toBe(true)
|
|
96
|
+
expect(refusesImagesOverLimitOn(id, "request"), id).toBe(true)
|
|
97
|
+
expect(refusesImagesOverLimitOn(id, "workflow"), id).toBe(false)
|
|
98
|
+
expect(refusesImagesOverLimit(id), id).toBe(false)
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
|
|
85
102
|
it("is priced per input image, and counted as GPT Image 2.6 is", () => {
|
|
86
103
|
expect(isPricedPerInputImage("seedream-5-5")).toBe(true)
|
|
87
104
|
expect(isPricedPerInputImageEdit("seedream-5-5-i2i")).toBe(true)
|