@nodaro/shared 3.40.0 → 3.41.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-NRSYWQKM.js → chunk-CWQC6IGE.js} +15 -3
- package/dist/chunk-CWQC6IGE.js.map +1 -0
- package/dist/{chunk-25PAKSMK.cjs → chunk-DC5EYYVX.cjs} +21 -2
- package/dist/chunk-DC5EYYVX.cjs.map +1 -0
- package/dist/{chunk-GLON7ANZ.cjs → chunk-P4QT7JGD.cjs} +7 -2
- package/dist/chunk-P4QT7JGD.cjs.map +1 -0
- package/dist/{chunk-R6B2UDFR.js → chunk-T4EBNTKT.js} +7 -2
- package/dist/chunk-T4EBNTKT.js.map +1 -0
- package/dist/entries/models.cjs +58 -30
- package/dist/entries/models.d.cts +36 -1
- package/dist/entries/models.d.ts +36 -1
- package/dist/entries/models.js +1 -1
- package/dist/entries/types.d.cts +8 -0
- package/dist/entries/types.d.ts +8 -0
- package/dist/entries/workflow.cjs +98 -98
- package/dist/entries/workflow.js +1 -1
- package/dist/index.cjs +156 -128
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/__tests__/cast-swap-limits.test.ts +27 -0
- package/src/__tests__/workflow-export-strip.test.ts +14 -0
- package/src/cast-swap-limits.ts +46 -0
- package/src/catalog-projection.ts +8 -0
- package/src/entries/models.ts +8 -0
- package/src/workflow-export.ts +7 -0
- package/dist/chunk-25PAKSMK.cjs.map +0 -1
- package/dist/chunk-GLON7ANZ.cjs.map +0 -1
- package/dist/chunk-NRSYWQKM.js.map +0 -1
- package/dist/chunk-R6B2UDFR.js.map +0 -1
package/dist/entries/models.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDC5EYYVX_cjs = require('../chunk-DC5EYYVX.cjs');
|
|
4
4
|
require('../chunk-6DAWSVX2.cjs');
|
|
5
5
|
var chunkDBD4BCGH_cjs = require('../chunk-DBD4BCGH.cjs');
|
|
6
6
|
var chunkTUUEQ2WR_cjs = require('../chunk-TUUEQ2WR.cjs');
|
|
@@ -10,121 +10,149 @@ require('../chunk-ADYPAGQF.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
Object.defineProperty(exports, "CAST_SWAP_ENGINES", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_ENGINES; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "CAST_SWAP_ENGINE_WHEN_OMITTED", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_ENGINE_WHEN_OMITTED; }
|
|
20
|
+
});
|
|
13
21
|
Object.defineProperty(exports, "CAST_SWAP_FACE_MASKING_BOUNDS", {
|
|
14
22
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_FACE_MASKING_BOUNDS; }
|
|
16
24
|
});
|
|
17
25
|
Object.defineProperty(exports, "CAST_SWAP_FACE_MASKING_DEFAULTS", {
|
|
18
26
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_FACE_MASKING_DEFAULTS; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "CAST_SWAP_KLING_LENGTHS", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_KLING_LENGTHS; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "CAST_SWAP_KLING_LENGTH_WHEN_OMITTED", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_KLING_LENGTH_WHEN_OMITTED; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "CAST_SWAP_KLING_MAX_IMAGES", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_KLING_MAX_IMAGES; }
|
|
20
40
|
});
|
|
21
41
|
Object.defineProperty(exports, "CAST_SWAP_POST_PROMPT_MAX", {
|
|
22
42
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_POST_PROMPT_MAX; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "CAST_SWAP_RESOLUTIONS_BY_ENGINE", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return chunkDC5EYYVX_cjs.CAST_SWAP_RESOLUTIONS_BY_ENGINE; }
|
|
24
48
|
});
|
|
25
49
|
Object.defineProperty(exports, "CHARACTER_LORA_TRAINING_JOB_TYPE", {
|
|
26
50
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkDC5EYYVX_cjs.CHARACTER_LORA_TRAINING_JOB_TYPE; }
|
|
28
52
|
});
|
|
29
53
|
Object.defineProperty(exports, "DEFAULT_VOICE_CHANGER_MODEL", {
|
|
30
54
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkDC5EYYVX_cjs.DEFAULT_VOICE_CHANGER_MODEL; }
|
|
32
56
|
});
|
|
33
57
|
Object.defineProperty(exports, "FLUX_LORA_CHARACTER_MODEL_ID", {
|
|
34
58
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkDC5EYYVX_cjs.FLUX_LORA_CHARACTER_MODEL_ID; }
|
|
36
60
|
});
|
|
37
61
|
Object.defineProperty(exports, "GEMINI_OMNI_VOICE_PRESETS", {
|
|
38
62
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkDC5EYYVX_cjs.GEMINI_OMNI_VOICE_PRESETS; }
|
|
40
64
|
});
|
|
41
65
|
Object.defineProperty(exports, "GEMINI_OMNI_VOICE_PRESET_IDS", {
|
|
42
66
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkDC5EYYVX_cjs.GEMINI_OMNI_VOICE_PRESET_IDS; }
|
|
44
68
|
});
|
|
45
69
|
Object.defineProperty(exports, "NODE_DEFAULT_TYPES", {
|
|
46
70
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkDC5EYYVX_cjs.NODE_DEFAULT_TYPES; }
|
|
48
72
|
});
|
|
49
73
|
Object.defineProperty(exports, "PROVIDER_DIRECTIVE_DEFAULTS", {
|
|
50
74
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkDC5EYYVX_cjs.PROVIDER_DIRECTIVE_DEFAULTS; }
|
|
52
76
|
});
|
|
53
77
|
Object.defineProperty(exports, "SUNO_TRACK_SOURCE_TYPES", {
|
|
54
78
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkDC5EYYVX_cjs.SUNO_TRACK_SOURCE_TYPES; }
|
|
56
80
|
});
|
|
57
81
|
Object.defineProperty(exports, "TREND_PROMPT_LIMITS", {
|
|
58
82
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkDC5EYYVX_cjs.TREND_PROMPT_LIMITS; }
|
|
60
84
|
});
|
|
61
85
|
Object.defineProperty(exports, "TTS_NEIGHBOUR_TEXT_MAX_CHARS", {
|
|
62
86
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkDC5EYYVX_cjs.TTS_NEIGHBOUR_TEXT_MAX_CHARS; }
|
|
64
88
|
});
|
|
65
89
|
Object.defineProperty(exports, "VOICE_CHANGER_MODELS", {
|
|
66
90
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkDC5EYYVX_cjs.VOICE_CHANGER_MODELS; }
|
|
68
92
|
});
|
|
69
93
|
Object.defineProperty(exports, "VOICE_CHANGER_MODEL_IDS", {
|
|
70
94
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkDC5EYYVX_cjs.VOICE_CHANGER_MODEL_IDS; }
|
|
72
96
|
});
|
|
73
97
|
Object.defineProperty(exports, "buildModelTree", {
|
|
74
98
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkDC5EYYVX_cjs.buildModelTree; }
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "castSwapEngineHasDraft", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () { return chunkDC5EYYVX_cjs.castSwapEngineHasDraft; }
|
|
76
104
|
});
|
|
77
105
|
Object.defineProperty(exports, "deriveLinkedFields", {
|
|
78
106
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkDC5EYYVX_cjs.deriveLinkedFields; }
|
|
80
108
|
});
|
|
81
109
|
Object.defineProperty(exports, "extractCharacterLoraFields", {
|
|
82
110
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkDC5EYYVX_cjs.extractCharacterLoraFields; }
|
|
84
112
|
});
|
|
85
113
|
Object.defineProperty(exports, "getTargetField", {
|
|
86
114
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkDC5EYYVX_cjs.getTargetField; }
|
|
88
116
|
});
|
|
89
117
|
Object.defineProperty(exports, "getValidValues", {
|
|
90
118
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkDC5EYYVX_cjs.getValidValues; }
|
|
92
120
|
});
|
|
93
121
|
Object.defineProperty(exports, "mapAspectRatio", {
|
|
94
122
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkDC5EYYVX_cjs.mapAspectRatio; }
|
|
96
124
|
});
|
|
97
125
|
Object.defineProperty(exports, "mapQuality", {
|
|
98
126
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkDC5EYYVX_cjs.mapQuality; }
|
|
100
128
|
});
|
|
101
129
|
Object.defineProperty(exports, "mapShotIntentToProviderDirectives", {
|
|
102
130
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkDC5EYYVX_cjs.mapShotIntentToProviderDirectives; }
|
|
104
132
|
});
|
|
105
133
|
Object.defineProperty(exports, "modelToNodeTarget", {
|
|
106
134
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkDC5EYYVX_cjs.modelToNodeTarget; }
|
|
108
136
|
});
|
|
109
137
|
Object.defineProperty(exports, "normalizeTtsNeighbourText", {
|
|
110
138
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkDC5EYYVX_cjs.normalizeTtsNeighbourText; }
|
|
112
140
|
});
|
|
113
141
|
Object.defineProperty(exports, "searchModelVariants", {
|
|
114
142
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkDC5EYYVX_cjs.searchModelVariants; }
|
|
116
144
|
});
|
|
117
145
|
Object.defineProperty(exports, "selectLoraRoutingForMentions", {
|
|
118
146
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkDC5EYYVX_cjs.selectLoraRoutingForMentions; }
|
|
120
148
|
});
|
|
121
149
|
Object.defineProperty(exports, "supportedDefaultDimensions", {
|
|
122
150
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkDC5EYYVX_cjs.supportedDefaultDimensions; }
|
|
124
152
|
});
|
|
125
153
|
Object.defineProperty(exports, "validateProviderForNodeType", {
|
|
126
154
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkDC5EYYVX_cjs.validateProviderForNodeType; }
|
|
128
156
|
});
|
|
129
157
|
Object.defineProperty(exports, "DEFAULT_SUNO_STEM_NAME", {
|
|
130
158
|
enumerable: true,
|
|
@@ -67,6 +67,41 @@ declare const CAST_SWAP_FACE_MASKING_DEFAULTS: {
|
|
|
67
67
|
readonly blurStrengthPct: 2;
|
|
68
68
|
readonly threshold: 0.5;
|
|
69
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* The video engines Cast Swap runs on. A run or estimate that leaves `engine`
|
|
72
|
+
* out runs on `CAST_SWAP_ENGINE_WHEN_OMITTED`, so callers that predate the
|
|
73
|
+
* choice keep what they had.
|
|
74
|
+
*/
|
|
75
|
+
declare const CAST_SWAP_ENGINES: readonly ["seedance-2-5", "kling-4"];
|
|
76
|
+
type CastSwapEngine = (typeof CAST_SWAP_ENGINES)[number];
|
|
77
|
+
/** The engine of a run, estimate or trend that names none. */
|
|
78
|
+
declare const CAST_SWAP_ENGINE_WHEN_OMITTED: CastSwapEngine;
|
|
79
|
+
/**
|
|
80
|
+
* The resolutions each engine renders, the default first. Seedance 2.5's 480p
|
|
81
|
+
* is its draft (`draft` is 480p only); Kling 4 has no draft and no 480p.
|
|
82
|
+
*/
|
|
83
|
+
declare const CAST_SWAP_RESOLUTIONS_BY_ENGINE: {
|
|
84
|
+
readonly "seedance-2-5": readonly ["480p", "720p", "1080p"];
|
|
85
|
+
readonly "kling-4": readonly ["720p", "1080p"];
|
|
86
|
+
};
|
|
87
|
+
/** Whether an engine renders drafts (Seedance 2.5's 480p draft; Kling 4 has none). */
|
|
88
|
+
declare function castSwapEngineHasDraft(engine: CastSwapEngine): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Where a Kling 4 run cuts the clip to whole seconds (Kling renders whole
|
|
91
|
+
* seconds, and asked for more than the clip it stretches the motion; Seedance
|
|
92
|
+
* 2.5 ignores it): `"cut-end"` (the default) drops the fraction of a second at
|
|
93
|
+
* the clip's end, `"cut-start"` at its start.
|
|
94
|
+
*/
|
|
95
|
+
declare const CAST_SWAP_KLING_LENGTHS: readonly ["cut-end", "cut-start"];
|
|
96
|
+
type CastSwapKlingLength = (typeof CAST_SWAP_KLING_LENGTHS)[number];
|
|
97
|
+
/** The `klingLength` of a run or trend that names none. */
|
|
98
|
+
declare const CAST_SWAP_KLING_LENGTH_WHEN_OMITTED: CastSwapKlingLength;
|
|
99
|
+
/**
|
|
100
|
+
* The most images one Kling 4 Cast Swap run sends, across every role and fixed
|
|
101
|
+
* reference (a role with prepared references counts its one prepared
|
|
102
|
+
* picture). Over it the route answers `too_many_images`.
|
|
103
|
+
*/
|
|
104
|
+
declare const CAST_SWAP_KLING_MAX_IMAGES = 10;
|
|
70
105
|
|
|
71
106
|
type QualityLevel = "low" | "mid" | "high";
|
|
72
107
|
type SemanticAspectRatio = "auto" | "1:1" | "4:3" | "3:4" | "16:9" | "9:16";
|
|
@@ -404,4 +439,4 @@ declare function modelToNodeTarget(modelId: string): ModelNodeTarget | null;
|
|
|
404
439
|
declare function searchModelVariants(query: string, kind?: ModelKind): ModelTreeVariant[];
|
|
405
440
|
declare function buildModelTree(): ModelTreeLine[];
|
|
406
441
|
|
|
407
|
-
export { CAST_SWAP_FACE_MASKING_BOUNDS, CAST_SWAP_FACE_MASKING_DEFAULTS, CAST_SWAP_POST_PROMPT_MAX, CHARACTER_LORA_TRAINING_JOB_TYPE, type CharacterLoraFields, DEFAULT_SUNO_STEM_NAME, DEFAULT_VOICE_CHANGER_MODEL, DialogueProvider, FLUX_LORA_CHARACTER_MODEL_ID, type LoraEligibleRef, type LoraRouting, type ModelNodeTarget, type ModelTreeLine, type ModelTreeVariant, NODE_DEFAULT_TYPES, type NodeDefaultType, PROVIDER_DIRECTIVE_DEFAULTS, type QualityLevel, SUNO_SEPARATE_META_FIELDS, SUNO_SEPARATE_RESULT_FIELDS, SUNO_SEPARATE_STEM_FIELDS, SUNO_SEPARATE_TAKE_FIELDS, SUNO_SEPARATE_TYPES, SUNO_STEM_NAMES, SUNO_TRACK_SOURCE_TYPES, type SemanticAspectRatio, type SunoSeparateResultField, type SunoSeparateStemField, type SunoSeparateType, type SunoStemName, TREND_PROMPT_LIMITS, TTS_NEIGHBOUR_TEXT_MAX_CHARS, type TtsNeighbourText, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, type VoiceChangerModel, buildModelTree, deriveLinkedFields, dialogueHasLever, dialogueProviderOf, dialogueStabilityAccepted, dialogueSupportsTimestamps, extractCharacterLoraFields, findDialogueCapabilities, getDialogueCapabilities, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, sunoSeparateCreditId, sunoSeparateHandleUrl, sunoSeparatePrimaryUrl, supportedDefaultDimensions, validateProviderForNodeType };
|
|
442
|
+
export { CAST_SWAP_ENGINES, CAST_SWAP_ENGINE_WHEN_OMITTED, CAST_SWAP_FACE_MASKING_BOUNDS, CAST_SWAP_FACE_MASKING_DEFAULTS, CAST_SWAP_KLING_LENGTHS, CAST_SWAP_KLING_LENGTH_WHEN_OMITTED, CAST_SWAP_KLING_MAX_IMAGES, CAST_SWAP_POST_PROMPT_MAX, CAST_SWAP_RESOLUTIONS_BY_ENGINE, CHARACTER_LORA_TRAINING_JOB_TYPE, type CastSwapEngine, type CastSwapKlingLength, type CharacterLoraFields, DEFAULT_SUNO_STEM_NAME, DEFAULT_VOICE_CHANGER_MODEL, DialogueProvider, FLUX_LORA_CHARACTER_MODEL_ID, type LoraEligibleRef, type LoraRouting, type ModelNodeTarget, type ModelTreeLine, type ModelTreeVariant, NODE_DEFAULT_TYPES, type NodeDefaultType, PROVIDER_DIRECTIVE_DEFAULTS, type QualityLevel, SUNO_SEPARATE_META_FIELDS, SUNO_SEPARATE_RESULT_FIELDS, SUNO_SEPARATE_STEM_FIELDS, SUNO_SEPARATE_TAKE_FIELDS, SUNO_SEPARATE_TYPES, SUNO_STEM_NAMES, SUNO_TRACK_SOURCE_TYPES, type SemanticAspectRatio, type SunoSeparateResultField, type SunoSeparateStemField, type SunoSeparateType, type SunoStemName, TREND_PROMPT_LIMITS, TTS_NEIGHBOUR_TEXT_MAX_CHARS, type TtsNeighbourText, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, type VoiceChangerModel, buildModelTree, castSwapEngineHasDraft, deriveLinkedFields, dialogueHasLever, dialogueProviderOf, dialogueStabilityAccepted, dialogueSupportsTimestamps, extractCharacterLoraFields, findDialogueCapabilities, getDialogueCapabilities, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, sunoSeparateCreditId, sunoSeparateHandleUrl, sunoSeparatePrimaryUrl, supportedDefaultDimensions, validateProviderForNodeType };
|
package/dist/entries/models.d.ts
CHANGED
|
@@ -67,6 +67,41 @@ declare const CAST_SWAP_FACE_MASKING_DEFAULTS: {
|
|
|
67
67
|
readonly blurStrengthPct: 2;
|
|
68
68
|
readonly threshold: 0.5;
|
|
69
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* The video engines Cast Swap runs on. A run or estimate that leaves `engine`
|
|
72
|
+
* out runs on `CAST_SWAP_ENGINE_WHEN_OMITTED`, so callers that predate the
|
|
73
|
+
* choice keep what they had.
|
|
74
|
+
*/
|
|
75
|
+
declare const CAST_SWAP_ENGINES: readonly ["seedance-2-5", "kling-4"];
|
|
76
|
+
type CastSwapEngine = (typeof CAST_SWAP_ENGINES)[number];
|
|
77
|
+
/** The engine of a run, estimate or trend that names none. */
|
|
78
|
+
declare const CAST_SWAP_ENGINE_WHEN_OMITTED: CastSwapEngine;
|
|
79
|
+
/**
|
|
80
|
+
* The resolutions each engine renders, the default first. Seedance 2.5's 480p
|
|
81
|
+
* is its draft (`draft` is 480p only); Kling 4 has no draft and no 480p.
|
|
82
|
+
*/
|
|
83
|
+
declare const CAST_SWAP_RESOLUTIONS_BY_ENGINE: {
|
|
84
|
+
readonly "seedance-2-5": readonly ["480p", "720p", "1080p"];
|
|
85
|
+
readonly "kling-4": readonly ["720p", "1080p"];
|
|
86
|
+
};
|
|
87
|
+
/** Whether an engine renders drafts (Seedance 2.5's 480p draft; Kling 4 has none). */
|
|
88
|
+
declare function castSwapEngineHasDraft(engine: CastSwapEngine): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Where a Kling 4 run cuts the clip to whole seconds (Kling renders whole
|
|
91
|
+
* seconds, and asked for more than the clip it stretches the motion; Seedance
|
|
92
|
+
* 2.5 ignores it): `"cut-end"` (the default) drops the fraction of a second at
|
|
93
|
+
* the clip's end, `"cut-start"` at its start.
|
|
94
|
+
*/
|
|
95
|
+
declare const CAST_SWAP_KLING_LENGTHS: readonly ["cut-end", "cut-start"];
|
|
96
|
+
type CastSwapKlingLength = (typeof CAST_SWAP_KLING_LENGTHS)[number];
|
|
97
|
+
/** The `klingLength` of a run or trend that names none. */
|
|
98
|
+
declare const CAST_SWAP_KLING_LENGTH_WHEN_OMITTED: CastSwapKlingLength;
|
|
99
|
+
/**
|
|
100
|
+
* The most images one Kling 4 Cast Swap run sends, across every role and fixed
|
|
101
|
+
* reference (a role with prepared references counts its one prepared
|
|
102
|
+
* picture). Over it the route answers `too_many_images`.
|
|
103
|
+
*/
|
|
104
|
+
declare const CAST_SWAP_KLING_MAX_IMAGES = 10;
|
|
70
105
|
|
|
71
106
|
type QualityLevel = "low" | "mid" | "high";
|
|
72
107
|
type SemanticAspectRatio = "auto" | "1:1" | "4:3" | "3:4" | "16:9" | "9:16";
|
|
@@ -404,4 +439,4 @@ declare function modelToNodeTarget(modelId: string): ModelNodeTarget | null;
|
|
|
404
439
|
declare function searchModelVariants(query: string, kind?: ModelKind): ModelTreeVariant[];
|
|
405
440
|
declare function buildModelTree(): ModelTreeLine[];
|
|
406
441
|
|
|
407
|
-
export { CAST_SWAP_FACE_MASKING_BOUNDS, CAST_SWAP_FACE_MASKING_DEFAULTS, CAST_SWAP_POST_PROMPT_MAX, CHARACTER_LORA_TRAINING_JOB_TYPE, type CharacterLoraFields, DEFAULT_SUNO_STEM_NAME, DEFAULT_VOICE_CHANGER_MODEL, DialogueProvider, FLUX_LORA_CHARACTER_MODEL_ID, type LoraEligibleRef, type LoraRouting, type ModelNodeTarget, type ModelTreeLine, type ModelTreeVariant, NODE_DEFAULT_TYPES, type NodeDefaultType, PROVIDER_DIRECTIVE_DEFAULTS, type QualityLevel, SUNO_SEPARATE_META_FIELDS, SUNO_SEPARATE_RESULT_FIELDS, SUNO_SEPARATE_STEM_FIELDS, SUNO_SEPARATE_TAKE_FIELDS, SUNO_SEPARATE_TYPES, SUNO_STEM_NAMES, SUNO_TRACK_SOURCE_TYPES, type SemanticAspectRatio, type SunoSeparateResultField, type SunoSeparateStemField, type SunoSeparateType, type SunoStemName, TREND_PROMPT_LIMITS, TTS_NEIGHBOUR_TEXT_MAX_CHARS, type TtsNeighbourText, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, type VoiceChangerModel, buildModelTree, deriveLinkedFields, dialogueHasLever, dialogueProviderOf, dialogueStabilityAccepted, dialogueSupportsTimestamps, extractCharacterLoraFields, findDialogueCapabilities, getDialogueCapabilities, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, sunoSeparateCreditId, sunoSeparateHandleUrl, sunoSeparatePrimaryUrl, supportedDefaultDimensions, validateProviderForNodeType };
|
|
442
|
+
export { CAST_SWAP_ENGINES, CAST_SWAP_ENGINE_WHEN_OMITTED, CAST_SWAP_FACE_MASKING_BOUNDS, CAST_SWAP_FACE_MASKING_DEFAULTS, CAST_SWAP_KLING_LENGTHS, CAST_SWAP_KLING_LENGTH_WHEN_OMITTED, CAST_SWAP_KLING_MAX_IMAGES, CAST_SWAP_POST_PROMPT_MAX, CAST_SWAP_RESOLUTIONS_BY_ENGINE, CHARACTER_LORA_TRAINING_JOB_TYPE, type CastSwapEngine, type CastSwapKlingLength, type CharacterLoraFields, DEFAULT_SUNO_STEM_NAME, DEFAULT_VOICE_CHANGER_MODEL, DialogueProvider, FLUX_LORA_CHARACTER_MODEL_ID, type LoraEligibleRef, type LoraRouting, type ModelNodeTarget, type ModelTreeLine, type ModelTreeVariant, NODE_DEFAULT_TYPES, type NodeDefaultType, PROVIDER_DIRECTIVE_DEFAULTS, type QualityLevel, SUNO_SEPARATE_META_FIELDS, SUNO_SEPARATE_RESULT_FIELDS, SUNO_SEPARATE_STEM_FIELDS, SUNO_SEPARATE_TAKE_FIELDS, SUNO_SEPARATE_TYPES, SUNO_STEM_NAMES, SUNO_TRACK_SOURCE_TYPES, type SemanticAspectRatio, type SunoSeparateResultField, type SunoSeparateStemField, type SunoSeparateType, type SunoStemName, TREND_PROMPT_LIMITS, TTS_NEIGHBOUR_TEXT_MAX_CHARS, type TtsNeighbourText, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, type VoiceChangerModel, buildModelTree, castSwapEngineHasDraft, deriveLinkedFields, dialogueHasLever, dialogueProviderOf, dialogueStabilityAccepted, dialogueSupportsTimestamps, extractCharacterLoraFields, findDialogueCapabilities, getDialogueCapabilities, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, sunoSeparateCreditId, sunoSeparateHandleUrl, sunoSeparatePrimaryUrl, supportedDefaultDimensions, validateProviderForNodeType };
|
package/dist/entries/models.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CAST_SWAP_FACE_MASKING_BOUNDS, CAST_SWAP_FACE_MASKING_DEFAULTS, CAST_SWAP_POST_PROMPT_MAX, CHARACTER_LORA_TRAINING_JOB_TYPE, DEFAULT_VOICE_CHANGER_MODEL, FLUX_LORA_CHARACTER_MODEL_ID, GEMINI_OMNI_VOICE_PRESETS, GEMINI_OMNI_VOICE_PRESET_IDS, NODE_DEFAULT_TYPES, PROVIDER_DIRECTIVE_DEFAULTS, SUNO_TRACK_SOURCE_TYPES, TREND_PROMPT_LIMITS, TTS_NEIGHBOUR_TEXT_MAX_CHARS, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, buildModelTree, deriveLinkedFields, extractCharacterLoraFields, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, supportedDefaultDimensions, validateProviderForNodeType } from '../chunk-
|
|
1
|
+
export { CAST_SWAP_ENGINES, CAST_SWAP_ENGINE_WHEN_OMITTED, CAST_SWAP_FACE_MASKING_BOUNDS, CAST_SWAP_FACE_MASKING_DEFAULTS, CAST_SWAP_KLING_LENGTHS, CAST_SWAP_KLING_LENGTH_WHEN_OMITTED, CAST_SWAP_KLING_MAX_IMAGES, CAST_SWAP_POST_PROMPT_MAX, CAST_SWAP_RESOLUTIONS_BY_ENGINE, CHARACTER_LORA_TRAINING_JOB_TYPE, DEFAULT_VOICE_CHANGER_MODEL, FLUX_LORA_CHARACTER_MODEL_ID, GEMINI_OMNI_VOICE_PRESETS, GEMINI_OMNI_VOICE_PRESET_IDS, NODE_DEFAULT_TYPES, PROVIDER_DIRECTIVE_DEFAULTS, SUNO_TRACK_SOURCE_TYPES, TREND_PROMPT_LIMITS, TTS_NEIGHBOUR_TEXT_MAX_CHARS, VOICE_CHANGER_MODELS, VOICE_CHANGER_MODEL_IDS, buildModelTree, castSwapEngineHasDraft, deriveLinkedFields, extractCharacterLoraFields, getTargetField, getValidValues, mapAspectRatio, mapQuality, mapShotIntentToProviderDirectives, modelToNodeTarget, normalizeTtsNeighbourText, searchModelVariants, selectLoraRoutingForMentions, supportedDefaultDimensions, validateProviderForNodeType } from '../chunk-CWQC6IGE.js';
|
|
2
2
|
import '../chunk-3RYKIUAE.js';
|
|
3
3
|
export { DEFAULT_SUNO_STEM_NAME, SUNO_SEPARATE_META_FIELDS, SUNO_SEPARATE_RESULT_FIELDS, SUNO_SEPARATE_STEM_FIELDS, SUNO_SEPARATE_TAKE_FIELDS, SUNO_SEPARATE_TYPES, SUNO_STEM_NAMES, sunoSeparateCreditId, sunoSeparateHandleUrl, sunoSeparatePrimaryUrl } from '../chunk-6Q4BS6AR.js';
|
|
4
4
|
export { dialogueHasLever, dialogueProviderOf, dialogueStabilityAccepted, dialogueSupportsTimestamps, findDialogueCapabilities, getDialogueCapabilities } from '../chunk-GNY2S63W.js';
|
package/dist/entries/types.d.cts
CHANGED
|
@@ -121,6 +121,14 @@ interface ProjectedCatalogOption {
|
|
|
121
121
|
* URL, so it can be cached indefinitely.
|
|
122
122
|
*/
|
|
123
123
|
imageUrl?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The same picture at several widths, as an HTML `srcset` value
|
|
126
|
+
* (`<url> 240w, <url> 480w, <url> 960w, <url> 1920w`) — present only for a
|
|
127
|
+
* render the Nodaro CDN resizes (Nodaro Cloud: the look previews and the
|
|
128
|
+
* music pickers' pictures). Pass it to `<img srcset>` with a `sizes` so a
|
|
129
|
+
* large tile stays sharp; `imageUrl` is its 480px member.
|
|
130
|
+
*/
|
|
131
|
+
imageSrcSet?: string;
|
|
124
132
|
}
|
|
125
133
|
interface ProjectedCatalogDimension {
|
|
126
134
|
field: string;
|
package/dist/entries/types.d.ts
CHANGED
|
@@ -121,6 +121,14 @@ interface ProjectedCatalogOption {
|
|
|
121
121
|
* URL, so it can be cached indefinitely.
|
|
122
122
|
*/
|
|
123
123
|
imageUrl?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The same picture at several widths, as an HTML `srcset` value
|
|
126
|
+
* (`<url> 240w, <url> 480w, <url> 960w, <url> 1920w`) — present only for a
|
|
127
|
+
* render the Nodaro CDN resizes (Nodaro Cloud: the look previews and the
|
|
128
|
+
* music pickers' pictures). Pass it to `<img srcset>` with a `sizes` so a
|
|
129
|
+
* large tile stays sharp; `imageUrl` is its 480px member.
|
|
130
|
+
*/
|
|
131
|
+
imageSrcSet?: string;
|
|
124
132
|
}
|
|
125
133
|
interface ProjectedCatalogDimension {
|
|
126
134
|
field: string;
|