@slatesvideo/shared 0.7.16 → 0.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/manual/content.d.ts +1 -1
- package/dist/manual/content.js +1 -1
- package/dist/operations/index.d.ts +40 -14
- package/dist/operations/index.js +393 -132
- package/dist/prompts/generation-policy.d.ts +1 -1
- package/dist/prompts/generation-policy.js +7 -2
- package/dist/prompts/model-capabilities.d.ts +78 -6
- package/dist/prompts/model-capabilities.js +232 -48
- package/dist/prompts/model-facts.d.ts +1 -1
- package/dist/prompts/model-facts.js +36 -26
- package/dist/prompts/prompting-tips.d.ts +1 -1
- package/dist/prompts/prompting-tips.js +16 -11
- package/dist/prompts/reference-composer.d.ts +4 -0
- package/dist/prompts/reference-composer.js +14 -1
- package/dist/prompts/shot-spec.d.ts +1 -1
- package/dist/skills/content.js +2 -2
- package/package.json +1 -1
|
@@ -876,11 +876,11 @@ export declare const getCreditBalance: Operation<Record<string, never>>;
|
|
|
876
876
|
export declare const listAvailableModels: Operation<{
|
|
877
877
|
filter?: string;
|
|
878
878
|
}>;
|
|
879
|
-
export declare const VIDEO_MODELS: readonly ["kling-v3.0-std", "kling-v3.0-pro", "kling-v3.0-omni", "seedance-2", "seedance-2.5", "omni-flash", "wan-3.0", "kling-v4.0", "minimax-h3", "minimax-h3-max", "minimax-h3-max-turbo", "ltx-2-5", "ltx-2-5-pro"];
|
|
879
|
+
export declare const VIDEO_MODELS: readonly ["kling-v3.0-std", "kling-v3.0-pro", "kling-v3.0-omni", "seedance-2", "seedance-2.5", "omni-flash-1-2", "wan-3.0", "kling-v4.0", "minimax-h3", "minimax-h3-max", "minimax-h3-max-turbo", "ltx-2-5", "ltx-2-5-pro"];
|
|
880
880
|
type VideoModel = (typeof VIDEO_MODELS)[number];
|
|
881
881
|
/** The exact `model` ids `slates_edit_video` accepts. Edit rows are deliberately
|
|
882
882
|
* NOT in VIDEO_MODELS — they take a source clip, not frames. */
|
|
883
|
-
export declare const EDIT_VIDEO_MODELS: readonly ["kling-v3.0-omni-edit", "kling-v3.0-omni-pro-edit", "omni-flash-edit", "seedance-2.5-edit"];
|
|
883
|
+
export declare const EDIT_VIDEO_MODELS: readonly ["kling-v3.0-omni-edit", "kling-v3.0-omni-pro-edit", "omni-flash-1-2-edit", "seedance-2.5-edit"];
|
|
884
884
|
type EditVideoModel = (typeof EDIT_VIDEO_MODELS)[number];
|
|
885
885
|
export declare const estimateGenerationCost: Operation<{
|
|
886
886
|
model: string;
|
|
@@ -1038,7 +1038,7 @@ export declare const generateCharacterIdentity: Operation<{
|
|
|
1038
1038
|
projectId: string;
|
|
1039
1039
|
baseAssetId: string;
|
|
1040
1040
|
userNotes?: string;
|
|
1041
|
-
model?: 'nano-banana-2-1' | 'gpt-image-2-
|
|
1041
|
+
model?: 'nano-banana-2-1' | 'gpt-image-2-6-flare' | 'gpt-image-2-6-sunburst';
|
|
1042
1042
|
confirm?: boolean;
|
|
1043
1043
|
}>;
|
|
1044
1044
|
export declare const generateEnvironmentPlate: Operation<{
|
|
@@ -1073,14 +1073,24 @@ export declare const addFrame: Operation<{
|
|
|
1073
1073
|
notes?: string;
|
|
1074
1074
|
position?: number;
|
|
1075
1075
|
}>;
|
|
1076
|
-
export type ImageModelId = 'nano-banana-2-1' | 'gpt-image-2-
|
|
1076
|
+
export type ImageModelId = 'nano-banana-2-1' | 'gpt-image-2-6-flare' | 'gpt-image-2-6-sunburst' | 'flux-3' | 'seedream-5-5';
|
|
1077
1077
|
/** The exact `model` ids `slates_generate_image` accepts. */
|
|
1078
1078
|
/** Derived compatibility export for callers enumerating the 3k ladder. */
|
|
1079
1079
|
export declare const THREE_K_IMAGE_MODELS: string[];
|
|
1080
|
-
export declare const IMAGE_MODELS: readonly ["nano-banana-2-1", "gpt-image-2-
|
|
1081
|
-
/** True for either GPT Image
|
|
1080
|
+
export declare const IMAGE_MODELS: readonly ["nano-banana-2-1", "gpt-image-2-6-flare", "gpt-image-2-6-sunburst", "flux-3", "seedream-5-5"];
|
|
1081
|
+
/** True for either GPT Image seat. Flare and Sunburst differ in latency
|
|
1082
1082
|
* and routing advice, never in pricing shape or param surface. */
|
|
1083
1083
|
export declare function isGptImageModel(model: string | undefined): boolean;
|
|
1084
|
+
/**
|
|
1085
|
+
* The image seats that take `backgroundMode` (transparent / opaque / auto): both
|
|
1086
|
+
* GPT Image seats and Seedream 5.5 (BytePlus `background`, read 2026-11-16). The
|
|
1087
|
+
* desktop's twin is the `transparentBackground` feature on its registry rows,
|
|
1088
|
+
* which shows the Background control; the wire field is `gptBackground` for
|
|
1089
|
+
* every seat, a name kept from when GPT Image was the only one.
|
|
1090
|
+
*/
|
|
1091
|
+
export declare function takesBackgroundMode(model: string | undefined): boolean;
|
|
1092
|
+
/** True for either Gemini Omni Flash 1.2 seat, generation or edit. */
|
|
1093
|
+
export declare function isOmniFlash12Model(model: string | null | undefined): boolean;
|
|
1084
1094
|
/**
|
|
1085
1095
|
* The seats that arrived 2026-10-23, which only a desktop advertising
|
|
1086
1096
|
* `image-models-v4` knows. 🚨 A NEW TOKEN, as v3 was for GPT Image 2.5: an older
|
|
@@ -1089,8 +1099,8 @@ export declare function isGptImageModel(model: string | undefined): boolean;
|
|
|
1089
1099
|
*/
|
|
1090
1100
|
export declare function isImageModelV4(model: string | undefined): boolean;
|
|
1091
1101
|
/**
|
|
1092
|
-
* GPT Image
|
|
1093
|
-
* exposed (Eric, 2026-09-09).
|
|
1102
|
+
* GPT Image's quality ladder (2.5, and 2.6 unchanged) — the full enum fal
|
|
1103
|
+
* accepts, all five rungs exposed (Eric, 2026-09-09).
|
|
1094
1104
|
*
|
|
1095
1105
|
* 🚨 THE NAMES MOVED BETWEEN VERSIONS AND THE STRINGS DID NOT. GPT Image 2's
|
|
1096
1106
|
* `medium` is this model's `high`, and its `high` is this model's `max` — same
|
|
@@ -1112,7 +1122,7 @@ export type GptQualityId = GptQuality;
|
|
|
1112
1122
|
* part of any cost key. `auto` is fal's default and ours.
|
|
1113
1123
|
*/
|
|
1114
1124
|
export type GptBackgroundId = GptBackground;
|
|
1115
|
-
export declare function imageCostKey(model: ImageModelId, resolution: '1k' | '2k' | '3k' | '4k', quality?: GptQualityId, aspectRatio?: string): string;
|
|
1125
|
+
export declare function imageCostKey(model: ImageModelId, resolution: '1k' | '2k' | '3k' | '4k', quality?: GptQualityId, aspectRatio?: string, referenceCount?: number): string;
|
|
1116
1126
|
export declare const generateImage: Operation<{
|
|
1117
1127
|
prompt: string;
|
|
1118
1128
|
model?: ImageModelId;
|
|
@@ -1126,6 +1136,7 @@ export declare const generateImage: Operation<{
|
|
|
1126
1136
|
referenceAssetIds?: string[];
|
|
1127
1137
|
background?: boolean;
|
|
1128
1138
|
confirm?: boolean;
|
|
1139
|
+
approvedCredits?: number;
|
|
1129
1140
|
folderId?: string | null;
|
|
1130
1141
|
}>;
|
|
1131
1142
|
export declare const editImage: Operation<{
|
|
@@ -1149,7 +1160,7 @@ export declare const editImage: Operation<{
|
|
|
1149
1160
|
* with no `confirm`, the op answers with the price and the exact prompt, and spends nothing.
|
|
1150
1161
|
*/
|
|
1151
1162
|
/** The seats the viewer's Cells box offers. Mirrors slate's `GRID_EXTRACT_MODELS` (`shared/prompts/storyboard-grids.ts`), which this package cannot import. */
|
|
1152
|
-
declare const GRID_EXTRACT_SEATS: readonly ["nano-banana-2-1", "flux-3", "seedream-5-
|
|
1163
|
+
declare const GRID_EXTRACT_SEATS: readonly ["nano-banana-2-1", "flux-3", "seedream-5-5"];
|
|
1153
1164
|
export declare const extractGridCells: Operation<{
|
|
1154
1165
|
projectId: string;
|
|
1155
1166
|
assetId: string;
|
|
@@ -1453,7 +1464,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1453
1464
|
action: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "status", "cancel"]>>>;
|
|
1454
1465
|
}, "strict", z.ZodTypeAny, {
|
|
1455
1466
|
projectId: string;
|
|
1456
|
-
version?: 2 | undefined;
|
|
1457
1467
|
items?: ({
|
|
1458
1468
|
timelineId: string;
|
|
1459
1469
|
format: "mp4" | "xml";
|
|
@@ -1475,6 +1485,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1475
1485
|
action?: "status" | "cancel" | "start" | undefined;
|
|
1476
1486
|
directory?: string | undefined;
|
|
1477
1487
|
manifestId?: string | undefined;
|
|
1488
|
+
version?: 2 | undefined;
|
|
1478
1489
|
batchId?: string | undefined;
|
|
1479
1490
|
exportRoot?: string | undefined;
|
|
1480
1491
|
variants?: {
|
|
@@ -1496,7 +1507,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1496
1507
|
}> | undefined;
|
|
1497
1508
|
}, {
|
|
1498
1509
|
projectId: string;
|
|
1499
|
-
version?: 2 | undefined;
|
|
1500
1510
|
items?: ({
|
|
1501
1511
|
timelineId: string;
|
|
1502
1512
|
format: "mp4" | "xml";
|
|
@@ -1518,6 +1528,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1518
1528
|
action?: "status" | "cancel" | "start" | undefined;
|
|
1519
1529
|
directory?: string | undefined;
|
|
1520
1530
|
manifestId?: string | undefined;
|
|
1531
|
+
version?: 2 | undefined;
|
|
1521
1532
|
batchId?: string | undefined;
|
|
1522
1533
|
exportRoot?: string | undefined;
|
|
1523
1534
|
variants?: {
|
|
@@ -1539,7 +1550,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1539
1550
|
}> | undefined;
|
|
1540
1551
|
}>, {
|
|
1541
1552
|
projectId: string;
|
|
1542
|
-
version?: 2 | undefined;
|
|
1543
1553
|
items?: ({
|
|
1544
1554
|
timelineId: string;
|
|
1545
1555
|
format: "mp4" | "xml";
|
|
@@ -1561,6 +1571,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1561
1571
|
action?: "status" | "cancel" | "start" | undefined;
|
|
1562
1572
|
directory?: string | undefined;
|
|
1563
1573
|
manifestId?: string | undefined;
|
|
1574
|
+
version?: 2 | undefined;
|
|
1564
1575
|
batchId?: string | undefined;
|
|
1565
1576
|
exportRoot?: string | undefined;
|
|
1566
1577
|
variants?: {
|
|
@@ -1582,7 +1593,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1582
1593
|
}> | undefined;
|
|
1583
1594
|
}, {
|
|
1584
1595
|
projectId: string;
|
|
1585
|
-
version?: 2 | undefined;
|
|
1586
1596
|
items?: ({
|
|
1587
1597
|
timelineId: string;
|
|
1588
1598
|
format: "mp4" | "xml";
|
|
@@ -1604,6 +1614,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1604
1614
|
action?: "status" | "cancel" | "start" | undefined;
|
|
1605
1615
|
directory?: string | undefined;
|
|
1606
1616
|
manifestId?: string | undefined;
|
|
1617
|
+
version?: 2 | undefined;
|
|
1607
1618
|
batchId?: string | undefined;
|
|
1608
1619
|
exportRoot?: string | undefined;
|
|
1609
1620
|
variants?: {
|
|
@@ -3420,6 +3431,21 @@ export declare const editCut: Operation<{
|
|
|
3420
3431
|
skipPresent?: boolean;
|
|
3421
3432
|
}>;
|
|
3422
3433
|
export declare function resolveGuideTopic(topic: string): string | null;
|
|
3434
|
+
/**
|
|
3435
|
+
* The seat that replaced a retired model a topic names, or null. The topic is a model id or a guide name
|
|
3436
|
+
* (`gpt-image-2-5-sunburst`, `gpt-image-2-5`, `slates-prompting-gpt-image-2-5`); it names a retired model
|
|
3437
|
+
* when it is a retired id, or a stem of retired ids that no current id shares (`gpt-image-2-5`, never
|
|
3438
|
+
* `flux` or `nano-banana`). The guide op serves the replacement's guide and says so first, as it does for
|
|
3439
|
+
* a typo: an agent asking for the 2.5 guide learns 2.5 is gone, not that 2.6 is what it asked for.
|
|
3440
|
+
*
|
|
3441
|
+
* A stem covering several seats names their family (`gpt-image-2-6`), never one of them. A topic under the
|
|
3442
|
+
* stem of its replacement's own guide is that guide, not a retired model: `omni-flash` is the retired 1.1 id
|
|
3443
|
+
* and also the name of the live `slates-prompting-omni-flash`, so it and `omni-flash-edit` are null.
|
|
3444
|
+
*/
|
|
3445
|
+
export declare function retiredModelOfTopic(topic: string): {
|
|
3446
|
+
retired: string;
|
|
3447
|
+
replacement: string;
|
|
3448
|
+
} | null;
|
|
3423
3449
|
/**
|
|
3424
3450
|
* The one guide a near-miss name means: the name without its `slates-` prefix, or a typo of one name
|
|
3425
3451
|
* ("slaes-direct-response-ad"). Two names equally close come back as `tied`, for the caller to name rather
|