@slatesvideo/shared 0.7.4 → 0.7.5

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.
Files changed (39) hide show
  1. package/dist/manual/content.d.ts +1 -1
  2. package/dist/manual/content.js +1 -1
  3. package/dist/operations/index.d.ts +86 -88
  4. package/dist/operations/index.js +11 -15
  5. package/dist/prompts/agent-doctrine.js +25 -25
  6. package/dist/prompts/generation-policy.d.ts +1 -1
  7. package/dist/prompts/model-facts.js +2 -2
  8. package/dist/prompts/partials.generated.js +1 -1
  9. package/dist/prompts/prompting-tips.js +2 -2
  10. package/dist/skills/content.js +17 -17
  11. package/exports/slates-prompt-builder/generated/reference-character.md +2 -2
  12. package/exports/slates-prompt-builder/generated/reference-content-policy.md +3 -3
  13. package/exports/slates-prompt-builder/generated/reference-gpt-image-2-5.md +4 -4
  14. package/exports/slates-prompt-builder/generated/reference-kling.md +5 -6
  15. package/exports/slates-prompt-builder/generated/reference-omni-flash.md +1 -1
  16. package/exports/slates-prompt-builder/generated/reference-seedance-2-5.md +15 -15
  17. package/exports/slates-prompt-builder/generated/reference-seedance.md +3 -4
  18. package/exports/slates-prompt-builder/generated/slates-prompt-builder-manifest.json +25 -25
  19. package/exports/slates-prompt-builder/generated/slates-prompt-builder.skill +0 -0
  20. package/package.json +1 -1
  21. package/skills/_partials/cinematic-card.md +1 -1
  22. package/skills/_partials/model-routing.md +2 -2
  23. package/skills/slates-character-identity.md +2 -2
  24. package/skills/slates-content-policy.md +3 -3
  25. package/skills/slates-model-selection.md +3 -3
  26. package/skills/slates-prompting-elevenlabs.md +1 -1
  27. package/skills/slates-prompting-flux-2-max.md +1 -2
  28. package/skills/slates-prompting-gpt-image-2-5.md +5 -5
  29. package/skills/slates-prompting-inworld-tts.md +1 -1
  30. package/skills/slates-prompting-kling-v3.md +4 -5
  31. package/skills/slates-prompting-lip-sync.md +5 -8
  32. package/skills/slates-prompting-ltx-2-5.md +2 -2
  33. package/skills/slates-prompting-minimax-h3.md +5 -5
  34. package/skills/slates-prompting-motion-transfer.md +2 -4
  35. package/skills/slates-prompting-omni-flash.md +1 -1
  36. package/skills/slates-prompting-seed-audio.md +1 -1
  37. package/skills/slates-prompting-seedance-2-5.md +19 -19
  38. package/skills/slates-prompting-seedance.md +10 -11
  39. package/skills/slates-prompting-seedream-5-lite.md +2 -3
@@ -755,7 +755,6 @@ export declare const generateLipSync: Operation<{
755
755
  ttsSpeed?: number;
756
756
  audioFilePath?: string;
757
757
  avatarModel?: 'avatar-standard' | 'avatar-pro';
758
- klingProvider?: 'fal' | 'kling';
759
758
  background?: boolean;
760
759
  confirm?: boolean;
761
760
  }>;
@@ -766,7 +765,6 @@ export declare const generateMotionTransfer: Operation<{
766
765
  motionModel?: 'kling-mc-std' | 'kling-mc-pro';
767
766
  characterOrientation?: 'video' | 'image';
768
767
  prompt?: string;
769
- klingProvider?: 'fal' | 'kling';
770
768
  background?: boolean;
771
769
  confirm?: boolean;
772
770
  }>;
@@ -823,7 +821,7 @@ declare const exportCutsInput: z.ZodObject<{
823
821
  projectId: string;
824
822
  directory: string;
825
823
  manifestId: string;
826
- action?: "start" | "status" | "cancel" | undefined;
824
+ action?: "status" | "start" | "cancel" | undefined;
827
825
  items?: {
828
826
  timelineId: string;
829
827
  format: "mp4" | "xml";
@@ -832,7 +830,7 @@ declare const exportCutsInput: z.ZodObject<{
832
830
  projectId: string;
833
831
  directory: string;
834
832
  manifestId: string;
835
- action?: "start" | "status" | "cancel" | undefined;
833
+ action?: "status" | "start" | "cancel" | undefined;
836
834
  items?: {
837
835
  timelineId: string;
838
836
  format: "mp4" | "xml";
@@ -1243,13 +1241,13 @@ declare const variationSchema: z.ZodObject<{
1243
1241
  to: z.ZodString;
1244
1242
  voice: z.ZodEnum<["keep", "replace"]>;
1245
1243
  }, "strip", z.ZodTypeAny, {
1244
+ voice: "replace" | "keep";
1246
1245
  from: string;
1247
1246
  to: string;
1248
- voice: "keep" | "replace";
1249
1247
  }, {
1248
+ voice: "replace" | "keep";
1250
1249
  from: string;
1251
1250
  to: string;
1252
- voice: "keep" | "replace";
1253
1251
  }>, "many">>;
1254
1252
  assetOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
1255
1253
  from: z.ZodString;
@@ -1263,9 +1261,9 @@ declare const variationSchema: z.ZodObject<{
1263
1261
  }>, "many">>;
1264
1262
  idempotencyKey: z.ZodOptional<z.ZodString>;
1265
1263
  }, "strip", z.ZodTypeAny, {
1264
+ name: string;
1266
1265
  storyboardId: string;
1267
1266
  expectedRevision: number;
1268
- name: string;
1269
1267
  choices: {
1270
1268
  sectionId: string;
1271
1269
  alternativeId: string;
@@ -1275,9 +1273,9 @@ declare const variationSchema: z.ZodObject<{
1275
1273
  alternativeId: string;
1276
1274
  }[] | undefined;
1277
1275
  itemOverrides?: {
1276
+ voice: "replace" | "keep";
1278
1277
  from: string;
1279
1278
  to: string;
1280
- voice: "keep" | "replace";
1281
1279
  }[] | undefined;
1282
1280
  assetOverrides?: {
1283
1281
  from: string;
@@ -1285,9 +1283,9 @@ declare const variationSchema: z.ZodObject<{
1285
1283
  }[] | undefined;
1286
1284
  idempotencyKey?: string | undefined;
1287
1285
  }, {
1286
+ name: string;
1288
1287
  storyboardId: string;
1289
1288
  expectedRevision: number;
1290
- name: string;
1291
1289
  choices: {
1292
1290
  sectionId: string;
1293
1291
  alternativeId: string;
@@ -1297,9 +1295,9 @@ declare const variationSchema: z.ZodObject<{
1297
1295
  alternativeId: string;
1298
1296
  }[] | undefined;
1299
1297
  itemOverrides?: {
1298
+ voice: "replace" | "keep";
1300
1299
  from: string;
1301
1300
  to: string;
1302
- voice: "keep" | "replace";
1303
1301
  }[] | undefined;
1304
1302
  assetOverrides?: {
1305
1303
  from: string;
@@ -1339,12 +1337,12 @@ declare const sectionInput: z.ZodObject<{
1339
1337
  expectedRevision: z.ZodNumber;
1340
1338
  }, "strip", z.ZodTypeAny, {
1341
1339
  at: number;
1342
- expectedRevision: number;
1343
1340
  sceneId: string;
1341
+ expectedRevision: number;
1344
1342
  }, {
1345
1343
  at: number;
1346
- expectedRevision: number;
1347
1344
  sceneId: string;
1345
+ expectedRevision: number;
1348
1346
  }>>;
1349
1347
  uses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1350
1348
  sectionId: z.ZodString;
@@ -1361,59 +1359,59 @@ declare const sectionInput: z.ZodObject<{
1361
1359
  start: z.ZodNumber;
1362
1360
  end: z.ZodNumber;
1363
1361
  }, "strip", z.ZodTypeAny, {
1364
- start: number;
1365
- sceneId: string;
1366
1362
  end: number;
1367
- }, {
1368
- start: number;
1369
1363
  sceneId: string;
1364
+ start: number;
1365
+ }, {
1370
1366
  end: number;
1367
+ sceneId: string;
1368
+ start: number;
1371
1369
  }>, "many">>;
1372
1370
  }, "strip", z.ZodTypeAny, {
1373
- action: "create" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "rename" | "archive" | "tags";
1371
+ action: "create" | "tags" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
1374
1372
  storyboardId: string;
1375
1373
  expectedRevision: number;
1376
- sectionId?: string | undefined;
1377
- alternativeId?: string | undefined;
1378
- tags?: string[] | undefined;
1379
- parentId?: string | undefined;
1380
1374
  label?: string | undefined;
1381
1375
  target?: {
1382
1376
  at: number;
1383
- expectedRevision: number;
1384
1377
  sceneId: string;
1378
+ expectedRevision: number;
1385
1379
  } | undefined;
1380
+ tags?: string[] | undefined;
1381
+ sectionId?: string | undefined;
1382
+ alternativeId?: string | undefined;
1383
+ parentId?: string | undefined;
1386
1384
  uses?: {
1387
1385
  expectedRevision: number;
1388
1386
  sectionId: string;
1389
1387
  }[] | undefined;
1390
1388
  fragments?: {
1391
- start: number;
1392
- sceneId: string;
1393
1389
  end: number;
1390
+ sceneId: string;
1391
+ start: number;
1394
1392
  }[] | undefined;
1395
1393
  }, {
1396
- action: "create" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "rename" | "archive" | "tags";
1394
+ action: "create" | "tags" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
1397
1395
  storyboardId: string;
1398
1396
  expectedRevision: number;
1399
- sectionId?: string | undefined;
1400
- alternativeId?: string | undefined;
1401
- tags?: string[] | undefined;
1402
- parentId?: string | undefined;
1403
1397
  label?: string | undefined;
1404
1398
  target?: {
1405
1399
  at: number;
1406
- expectedRevision: number;
1407
1400
  sceneId: string;
1401
+ expectedRevision: number;
1408
1402
  } | undefined;
1403
+ tags?: string[] | undefined;
1404
+ sectionId?: string | undefined;
1405
+ alternativeId?: string | undefined;
1406
+ parentId?: string | undefined;
1409
1407
  uses?: {
1410
1408
  expectedRevision: number;
1411
1409
  sectionId: string;
1412
1410
  }[] | undefined;
1413
1411
  fragments?: {
1414
- start: number;
1415
- sceneId: string;
1416
1412
  end: number;
1413
+ sceneId: string;
1414
+ start: number;
1417
1415
  }[] | undefined;
1418
1416
  }>;
1419
1417
  export declare const changeScriptSection: Operation<z.infer<typeof sectionInput>>;
@@ -1432,16 +1430,16 @@ declare const suggestionInput: z.ZodObject<{
1432
1430
  replacement: z.ZodString;
1433
1431
  note: z.ZodOptional<z.ZodString>;
1434
1432
  }, "strip", z.ZodTypeAny, {
1435
- start: number;
1436
- sceneId: string;
1437
1433
  end: number;
1434
+ sceneId: string;
1435
+ start: number;
1438
1436
  original: string;
1439
1437
  replacement: string;
1440
1438
  note?: string | undefined;
1441
1439
  }, {
1442
- start: number;
1443
- sceneId: string;
1444
1440
  end: number;
1441
+ sceneId: string;
1442
+ start: number;
1445
1443
  original: string;
1446
1444
  replacement: string;
1447
1445
  note?: string | undefined;
@@ -1452,9 +1450,9 @@ declare const suggestionInput: z.ZodObject<{
1452
1450
  storyboardId: string;
1453
1451
  expectedRevision: number;
1454
1452
  suggestions?: {
1455
- start: number;
1456
- sceneId: string;
1457
1453
  end: number;
1454
+ sceneId: string;
1455
+ start: number;
1458
1456
  original: string;
1459
1457
  replacement: string;
1460
1458
  note?: string | undefined;
@@ -1465,9 +1463,9 @@ declare const suggestionInput: z.ZodObject<{
1465
1463
  storyboardId: string;
1466
1464
  expectedRevision: number;
1467
1465
  suggestions?: {
1468
- start: number;
1469
- sceneId: string;
1470
1466
  end: number;
1467
+ sceneId: string;
1468
+ start: number;
1471
1469
  original: string;
1472
1470
  replacement: string;
1473
1471
  note?: string | undefined;
@@ -1488,14 +1486,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
1488
1486
  text: z.ZodString;
1489
1487
  }, "strip", z.ZodTypeAny, {
1490
1488
  at: number;
1489
+ text: string;
1491
1490
  sceneId: string;
1492
1491
  removed: number;
1493
- text: string;
1494
1492
  }, {
1495
1493
  at: number;
1494
+ text: string;
1496
1495
  sceneId: string;
1497
1496
  removed: number;
1498
- text: string;
1499
1497
  }>, "many">;
1500
1498
  structures: z.ZodOptional<z.ZodArray<z.ZodObject<{
1501
1499
  sceneId: z.ZodString;
@@ -1511,68 +1509,68 @@ declare const writeScriptDocumentInput: z.ZodObject<{
1511
1509
  end: z.ZodNumber;
1512
1510
  type: z.ZodEnum<["strong", "em"]>;
1513
1511
  }, "strip", z.ZodTypeAny, {
1514
- start: number;
1515
- type: "strong" | "em";
1516
1512
  end: number;
1517
- }, {
1518
- start: number;
1519
1513
  type: "strong" | "em";
1514
+ start: number;
1515
+ }, {
1520
1516
  end: number;
1517
+ type: "strong" | "em";
1518
+ start: number;
1521
1519
  }>, "many">;
1522
1520
  }, "strip", z.ZodTypeAny, {
1523
- start: number;
1524
1521
  end: number;
1525
1522
  id: string;
1526
1523
  kind: "paragraph" | "heading" | "direction";
1524
+ start: number;
1527
1525
  marks: {
1528
- start: number;
1529
- type: "strong" | "em";
1530
1526
  end: number;
1527
+ type: "strong" | "em";
1528
+ start: number;
1531
1529
  }[];
1530
+ level?: 2 | 3 | undefined;
1532
1531
  label?: string | undefined;
1533
- level?: 3 | 2 | undefined;
1534
1532
  }, {
1535
- start: number;
1536
1533
  end: number;
1537
1534
  id: string;
1538
1535
  kind: "paragraph" | "heading" | "direction";
1536
+ start: number;
1539
1537
  marks: {
1540
- start: number;
1541
- type: "strong" | "em";
1542
1538
  end: number;
1539
+ type: "strong" | "em";
1540
+ start: number;
1543
1541
  }[];
1542
+ level?: 2 | 3 | undefined;
1544
1543
  label?: string | undefined;
1545
- level?: 3 | 2 | undefined;
1546
1544
  }>, "many">;
1547
1545
  }, "strip", z.ZodTypeAny, {
1548
1546
  sceneId: string;
1549
1547
  blocks: {
1550
- start: number;
1551
1548
  end: number;
1552
1549
  id: string;
1553
1550
  kind: "paragraph" | "heading" | "direction";
1551
+ start: number;
1554
1552
  marks: {
1555
- start: number;
1556
- type: "strong" | "em";
1557
1553
  end: number;
1554
+ type: "strong" | "em";
1555
+ start: number;
1558
1556
  }[];
1557
+ level?: 2 | 3 | undefined;
1559
1558
  label?: string | undefined;
1560
- level?: 3 | 2 | undefined;
1561
1559
  }[];
1562
1560
  }, {
1563
1561
  sceneId: string;
1564
1562
  blocks: {
1565
- start: number;
1566
1563
  end: number;
1567
1564
  id: string;
1568
1565
  kind: "paragraph" | "heading" | "direction";
1566
+ start: number;
1569
1567
  marks: {
1570
- start: number;
1571
- type: "strong" | "em";
1572
1568
  end: number;
1569
+ type: "strong" | "em";
1570
+ start: number;
1573
1571
  }[];
1572
+ level?: 2 | 3 | undefined;
1574
1573
  label?: string | undefined;
1575
- level?: 3 | 2 | undefined;
1576
1574
  }[];
1577
1575
  }>, "many">>;
1578
1576
  move: z.ZodOptional<z.ZodObject<{
@@ -1594,14 +1592,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
1594
1592
  end: z.ZodNumber;
1595
1593
  waitingShotId: z.ZodOptional<z.ZodString>;
1596
1594
  }, "strip", z.ZodTypeAny, {
1597
- start: number;
1598
- sceneId: string;
1599
1595
  end: number;
1596
+ sceneId: string;
1597
+ start: number;
1600
1598
  waitingShotId?: string | undefined;
1601
1599
  }, {
1602
- start: number;
1603
- sceneId: string;
1604
1600
  end: number;
1601
+ sceneId: string;
1602
+ start: number;
1605
1603
  waitingShotId?: string | undefined;
1606
1604
  }>, "many">>;
1607
1605
  restoreRevision: z.ZodOptional<z.ZodNumber>;
@@ -1612,45 +1610,45 @@ declare const writeScriptDocumentInput: z.ZodObject<{
1612
1610
  at: z.ZodNumber;
1613
1611
  }, "strip", z.ZodTypeAny, {
1614
1612
  at: number;
1615
- sceneId: string;
1616
1613
  kind: "split";
1614
+ sceneId: string;
1617
1615
  }, {
1618
1616
  at: number;
1619
- sceneId: string;
1620
1617
  kind: "split";
1618
+ sceneId: string;
1621
1619
  }>, z.ZodObject<{
1622
1620
  kind: z.ZodLiteral<"merge">;
1623
1621
  sceneId: z.ZodString;
1624
1622
  }, "strip", z.ZodTypeAny, {
1625
- sceneId: string;
1626
1623
  kind: "merge";
1627
- }, {
1628
1624
  sceneId: string;
1625
+ }, {
1629
1626
  kind: "merge";
1627
+ sceneId: string;
1630
1628
  }>]>>;
1631
1629
  }, "strip", z.ZodTypeAny, {
1632
1630
  storyboardId: string;
1633
1631
  expectedRevision: number;
1634
1632
  edits: {
1635
1633
  at: number;
1634
+ text: string;
1636
1635
  sceneId: string;
1637
1636
  removed: number;
1638
- text: string;
1639
1637
  }[];
1640
1638
  structures?: {
1641
1639
  sceneId: string;
1642
1640
  blocks: {
1643
- start: number;
1644
1641
  end: number;
1645
1642
  id: string;
1646
1643
  kind: "paragraph" | "heading" | "direction";
1644
+ start: number;
1647
1645
  marks: {
1648
- start: number;
1649
- type: "strong" | "em";
1650
1646
  end: number;
1647
+ type: "strong" | "em";
1648
+ start: number;
1651
1649
  }[];
1650
+ level?: 2 | 3 | undefined;
1652
1651
  label?: string | undefined;
1653
- level?: 3 | 2 | undefined;
1654
1652
  }[];
1655
1653
  }[] | undefined;
1656
1654
  move?: {
@@ -1659,44 +1657,44 @@ declare const writeScriptDocumentInput: z.ZodObject<{
1659
1657
  delta: 1 | -1;
1660
1658
  } | undefined;
1661
1659
  makeShots?: {
1662
- start: number;
1663
- sceneId: string;
1664
1660
  end: number;
1661
+ sceneId: string;
1662
+ start: number;
1665
1663
  waitingShotId?: string | undefined;
1666
1664
  }[] | undefined;
1667
1665
  restoreRevision?: number | undefined;
1668
1666
  ensureScene?: boolean | undefined;
1669
1667
  sceneAction?: {
1670
1668
  at: number;
1671
- sceneId: string;
1672
1669
  kind: "split";
1673
- } | {
1674
1670
  sceneId: string;
1671
+ } | {
1675
1672
  kind: "merge";
1673
+ sceneId: string;
1676
1674
  } | undefined;
1677
1675
  }, {
1678
1676
  storyboardId: string;
1679
1677
  expectedRevision: number;
1680
1678
  edits: {
1681
1679
  at: number;
1680
+ text: string;
1682
1681
  sceneId: string;
1683
1682
  removed: number;
1684
- text: string;
1685
1683
  }[];
1686
1684
  structures?: {
1687
1685
  sceneId: string;
1688
1686
  blocks: {
1689
- start: number;
1690
1687
  end: number;
1691
1688
  id: string;
1692
1689
  kind: "paragraph" | "heading" | "direction";
1690
+ start: number;
1693
1691
  marks: {
1694
- start: number;
1695
- type: "strong" | "em";
1696
1692
  end: number;
1693
+ type: "strong" | "em";
1694
+ start: number;
1697
1695
  }[];
1696
+ level?: 2 | 3 | undefined;
1698
1697
  label?: string | undefined;
1699
- level?: 3 | 2 | undefined;
1700
1698
  }[];
1701
1699
  }[] | undefined;
1702
1700
  move?: {
@@ -1705,20 +1703,20 @@ declare const writeScriptDocumentInput: z.ZodObject<{
1705
1703
  delta: 1 | -1;
1706
1704
  } | undefined;
1707
1705
  makeShots?: {
1708
- start: number;
1709
- sceneId: string;
1710
1706
  end: number;
1707
+ sceneId: string;
1708
+ start: number;
1711
1709
  waitingShotId?: string | undefined;
1712
1710
  }[] | undefined;
1713
1711
  restoreRevision?: number | undefined;
1714
1712
  ensureScene?: boolean | undefined;
1715
1713
  sceneAction?: {
1716
1714
  at: number;
1717
- sceneId: string;
1718
1715
  kind: "split";
1719
- } | {
1720
1716
  sceneId: string;
1717
+ } | {
1721
1718
  kind: "merge";
1719
+ sceneId: string;
1722
1720
  } | undefined;
1723
1721
  }>;
1724
1722
  export declare const writeScriptDocument: Operation<z.infer<typeof writeScriptDocumentInput>>;
@@ -767,7 +767,7 @@ export const setComposer = {
767
767
  .string()
768
768
  .min(1)
769
769
  .optional()
770
- .describe('A model id (slates_list_available_models), `<id>::face` for a face route, `chatgpt`, `lip-sync` or `motion-transfer`.'),
770
+ .describe('A model id (slates_list_available_models), `<id>::face` for its Face row, `chatgpt`, `lip-sync` or `motion-transfer`.'),
771
771
  prompt: z.string().optional().describe('Replaces the words. @name and #name attach what they name, as typing does.'),
772
772
  addMentions: z
773
773
  .array(z.string().regex(/^[@#]\S+$/))
@@ -1156,8 +1156,8 @@ export const estimateGenerationCost = {
1156
1156
  quality: z.enum(GPT_QUALITY_TIERS).optional().describe(`GPT Image tier; default ${DEFAULT_GPT_QUALITY}.`),
1157
1157
  aspectRatio: z.string().optional().describe('GPT Image only: 1:1, 4:3 and 3:4 cost more than 16:9.'),
1158
1158
  sound: z.boolean().optional().describe('Kling 3.0: the audio flag changes the cost key. Omitted means sound on, as generation bills it; pass false to price a silent take. Kling 4K keys include audio.'),
1159
- seedanceFace: z.boolean().optional().describe('Seedance AI-face route (pricier key).'),
1160
- seedanceRealFace: z.boolean().optional().describe('Seedance consented real-face route (premium key).'),
1159
+ seedanceFace: z.boolean().optional().describe('Seedance Face row, for an AI character\'s face (pricier key).'),
1160
+ seedanceRealFace: z.boolean().optional().describe('Seedance with a consented real person (premium key).'),
1161
1161
  videoRefSeconds: z.number().nonnegative().optional().describe('Combined reference-video seconds, measured from the clips.'),
1162
1162
  audioRefSeconds: z.number().nonnegative().optional().describe('Combined reference-audio seconds, including attached character voices.'),
1163
1163
  referenceImages: z.number().int().min(0).optional().describe(`MiniMax H3 rows only — how many reference IMAGES the generation will carry. Each image past the row's free allowance is a paid dimension of the cost key, so a quote that omits this UNDER-REPORTS a reference-heavy job. The allowances differ: minimax-h3 gives ${MINIMAX_FREE_REF_IMAGES_BY_MODEL['minimax-h3']} free, minimax-h3-max gives ${MINIMAX_FREE_REF_IMAGES_BY_MODEL['minimax-h3-max']}. Ignored by every other model. Start/end frames are free on both rows and are not reference images.`),
@@ -2417,7 +2417,7 @@ export const generateImage = {
2417
2417
  return ok({
2418
2418
  requires_clarification: true,
2419
2419
  missing: ['projectId'],
2420
- message: `count above ${HEADLESS_BATCH_CAP} needs a projectId. The headless path asks fal for one batch and nano-banana-2 caps a batch at ${HEADLESS_BATCH_CAP}; with a projectId the desktop fires them as separate generations and the limit is ${MAX_IMAGE_VARIATIONS}.`,
2420
+ message: `count above ${HEADLESS_BATCH_CAP} needs a projectId. The headless path asks for one batch and nano-banana-2 caps a batch at ${HEADLESS_BATCH_CAP}; with a projectId the desktop fires them as separate generations and the limit is ${MAX_IMAGE_VARIATIONS}.`,
2421
2421
  });
2422
2422
  }
2423
2423
  let refEcho = '';
@@ -3393,9 +3393,9 @@ export const generateVideo = {
3393
3393
  sound: z.boolean().optional().describe('Kling (every tier) and LTX: sound on (default) or silent (false); Kling bills audio as its own key. Seedance, Omni Flash and H3 always generate audio.'),
3394
3394
  audioLanguage: z.enum(['EN', 'ZH', 'JA', 'KO', 'ES']).optional().describe('Any Kling model with sound on — language for dialogue.'),
3395
3395
  generateMusic: z.boolean().optional().describe('Any Kling model with sound on — auto-generate background music.'),
3396
- seedanceFace: z.boolean().optional().describe('Seedance ONLY: a reference shows an AI CHARACTER\'s face. Faces are blocked on the default route, so this reroutes to a face-capable provider at ~45% more. A REAL person fails here with [REAL_FACE_DETECTED] — see seedanceRealFace.'),
3397
- seedanceRealFace: z.boolean().optional().describe('Seedance ONLY: a reference shows a REAL person. Real-person route, about 1.4x the AI-face price (about 2x faceless) — quote it first. REQUIRES realFaceConsent=true.'),
3398
- realFaceConsent: z.boolean().optional().describe('MANDATORY with seedanceRealFace: true ONLY after the user has explicitly confirmed they hold rights/consent to this likeness and it does not impersonate or misrepresent them. Refused without it; public figures fail on every route.'),
3396
+ seedanceFace: z.boolean().optional().describe('Seedance ONLY: a reference shows an AI CHARACTER\'s face. Without it, faces are blocked; with it the generation costs ~45% more. A REAL person fails here with [REAL_FACE_DETECTED] — see seedanceRealFace.'),
3397
+ seedanceRealFace: z.boolean().optional().describe('Seedance ONLY: a reference shows a REAL person. The real-person tier, about 1.4x the Face price (about 2x faceless) — quote it first. REQUIRES realFaceConsent=true.'),
3398
+ realFaceConsent: z.boolean().optional().describe('MANDATORY with seedanceRealFace: true ONLY after the user has explicitly confirmed they hold rights/consent to this likeness and it does not impersonate or misrepresent them. Refused without it; public figures fail on every tier.'),
3399
3399
  negativePrompt: z.string().optional(),
3400
3400
  background: z.boolean().optional().describe(BACKGROUND_DESCRIBE),
3401
3401
  confirm: z.boolean().optional().describe('Set true after explicit user OK to bypass the confirm gate (which fires for almost every video gen since they\'re expensive).'),
@@ -3701,7 +3701,7 @@ export const generateVideo = {
3701
3701
  return ok({
3702
3702
  requires_clarification: true,
3703
3703
  missing: ['videoReferenceSeconds'],
3704
- message: 'A Seedance video reference bills on combined input+output seconds (on 2.5 AI-face, max(input, output) + output). Pass videoReferenceSeconds (the reference clip\'s duration, shown in slates_list_assets) so the pre-flight quote matches the bill.',
3704
+ message: 'A Seedance video reference bills on combined input+output seconds (on a 2.5 Face row, max(input, output) + output). Pass videoReferenceSeconds (the reference clip\'s duration, shown in slates_list_assets) so the pre-flight quote matches the bill.',
3705
3705
  });
3706
3706
  }
3707
3707
  const pluralRefCount = input.videoReferenceAssetIds?.length ?? 0;
@@ -3710,7 +3710,7 @@ export const generateVideo = {
3710
3710
  return ok({
3711
3711
  requires_clarification: true,
3712
3712
  missing: ['videoReferenceSecondsEach'],
3713
- message: `A Seedance video reference bills on combined input+output seconds (on 2.5 AI-face, max(input, output) + output). Pass videoReferenceSecondsEach with exactly ${pluralRefCount} duration${pluralRefCount === 1 ? '' : 's'}, in the same order as videoReferenceAssetIds (durations are shown in slates_list_assets), so the pre-flight quote matches the bill.`,
3713
+ message: `A Seedance video reference bills on combined input+output seconds (on a 2.5 Face row, max(input, output) + output). Pass videoReferenceSecondsEach with exactly ${pluralRefCount} duration${pluralRefCount === 1 ? '' : 's'}, in the same order as videoReferenceAssetIds (durations are shown in slates_list_assets), so the pre-flight quote matches the bill.`,
3714
3714
  });
3715
3715
  }
3716
3716
  const cloud = ctx.cloud();
@@ -4224,7 +4224,6 @@ export const generateLipSync = {
4224
4224
  ttsSpeed: z.number().min(0.5).max(2).optional().describe('TTS speech rate. Default 1.0. Range 0.5-2.0.'),
4225
4225
  audioFilePath: z.string().optional().describe('Required when audioMethod=upload. Absolute path to the audio file on the user\'s machine (mp3, wav, m4a).'),
4226
4226
  avatarModel: z.enum(['avatar-standard', 'avatar-pro']).optional().describe('Image-source only. avatar-standard (~14 credits/5s) for general use. avatar-pro (~29 credits/5s) for sharper face fidelity.'),
4227
- klingProvider: z.enum(['fal', 'kling']).optional().describe('Provider routing. Leave unset: all agent generations bill Slates credits (BYOK is retired).'),
4228
4227
  background: z.boolean().optional().describe(BACKGROUND_DESCRIBE),
4229
4228
  confirm: z.boolean().optional().describe('Set true to bypass the confirm gate. Required for avatar-pro.'),
4230
4229
  }),
@@ -4295,7 +4294,6 @@ export const generateLipSync = {
4295
4294
  ttsSpeed: input.ttsSpeed,
4296
4295
  audioFilePath: input.audioFilePath,
4297
4296
  avatarModel: input.avatarModel,
4298
- klingProvider: input.klingProvider,
4299
4297
  // No estimatedCost: the desktop prices the media itself, in dollars.
4300
4298
  // This op's figure is CREDITS, which a 1.5.8 desktop recorded as dollars.
4301
4299
  background: input.background,
@@ -4344,7 +4342,6 @@ export const generateMotionTransfer = {
4344
4342
  motionModel: z.enum(['kling-mc-std', 'kling-mc-pro']).optional().describe('kling-mc-std general motion; kling-mc-pro cleaner anatomy — default. Quote both with slates_estimate_generation_cost.'),
4345
4343
  characterOrientation: z.enum(['video', 'image']).optional().describe('"video" = use the source video\'s framing. "image" = use the target image\'s framing. Default video.'),
4346
4344
  prompt: z.string().optional().describe('Optional refinement. Read slates-prompting-motion-transfer.'),
4347
- klingProvider: z.enum(['fal', 'kling']).optional().describe('Provider routing. "fal" (default) uses Slates credits.'),
4348
4345
  background: z.boolean().optional().describe(BACKGROUND_DESCRIBE),
4349
4346
  confirm: z.boolean().optional().describe('Set true to bypass the confirm gate. Required — both tiers exceed.'),
4350
4347
  }),
@@ -4398,7 +4395,6 @@ export const generateMotionTransfer = {
4398
4395
  motionModel,
4399
4396
  characterOrientation: input.characterOrientation ?? 'video',
4400
4397
  prompt: input.prompt,
4401
- klingProvider: input.klingProvider,
4402
4398
  // No estimatedCost: the desktop prices the media itself, in dollars.
4403
4399
  // This op's figure is CREDITS, which a 1.5.8 desktop recorded as dollars.
4404
4400
  background: input.background,
@@ -4463,7 +4459,7 @@ export const editVideo = {
4463
4459
  styleAssetIds: z.array(z.string()).max(4).optional().describe('Style/appearance reference images (@ImageN). Max 4 combined with characterAssetIds. KLING MODELS ONLY — rejected on omni-flash-edit.'),
4464
4460
  keepAudio: z.boolean().optional().describe('Preserve the original audio track (default true; Kling models only — omni-flash-edit and seedance-2.5-edit output carry their own audio).'),
4465
4461
  videoResolution: zEnum(EDIT_VIDEO_RESOLUTIONS).optional().describe(`seedance-2.5-edit ONLY (default ${defaultVideoResolutionFor('seedance-2.5-edit')}). Ignored by the Kling and Omni Flash engines, whose output follows the source clip.`),
4466
- seedanceFace: z.boolean().optional().describe('seedance-2.5-edit ONLY: set true when a CHARACTER FACE is visible in the clip. Faceless edits run on BytePlus; faces are blocked there and must route to the relaxed provider, which costs about 40-50% more. A face edit submitted without this flag is rejected by the provider, not silently downgraded.'),
4462
+ seedanceFace: z.boolean().optional().describe('seedance-2.5-edit ONLY: set true when a CHARACTER FACE is visible in the clip. Without it a face is blocked outright; with it the edit costs about 40-50% more. A face edit submitted without this flag is rejected, not silently downgraded.'),
4467
4463
  background: z.boolean().optional().describe(BACKGROUND_DESCRIBE),
4468
4464
  confirm: z.boolean().optional().describe('Set true to bypass the cost confirm gate after the user OKs the spend.'),
4469
4465
  folderId: folderIdField,
@@ -5637,7 +5633,7 @@ function shotParamsShape(described) {
5637
5633
  imageQuantity: d(z.number().int().min(1).max(10).optional(), 'Image models only.'),
5638
5634
  negativePrompt: z.string().optional(),
5639
5635
  sound: d(z.boolean().optional(), 'Video models that co-generate audio.'),
5640
- seedanceFace: d(z.boolean().optional(), "Seedance only — a reference shows an AI character's FACE; reroutes to a face-capable provider, ~45% more."),
5636
+ seedanceFace: d(z.boolean().optional(), "Seedance only — a reference shows an AI character's FACE; without it faces are blocked, and it costs ~45% more."),
5641
5637
  audioDurationSeconds: d(z.number().int().min(1).max(120).optional(), 'Audio lane. On seed-audio the requested duration IS the bill.'),
5642
5638
  // The TTS voice — the same three fields slates_generate_audio takes, so a
5643
5639
  // Shot is the audio call, serialized. Exactly one of them, enforced at fire.
@@ -78,15 +78,15 @@ export function buildSkillIndex() {
78
78
  // current project — sits here; the sections below expand it for clients that
79
79
  // read everything. mcp-instructions-smoke asserts these lines land inside the
80
80
  // cut when UPDATE AVAILABLE follows the first doctrine paragraph.
81
- const PREAMBLE = fork(`You are the Slates Studio Agent — a production assistant living inside Slates, the AI video creation studio. Turn the user's vision into finished work using the optional Slates tools and relevant production craft. Choose the workflow for the brief; start from the user's existing material and bring results into their project or timeline when asked.`, `Turn the user's vision into finished work in Slates. Find craft with slates_get_prompting_guide(query: the brief); reuse current guidance. Tools generate real media and spend credits. Before generation, estimate every step, show the itemized total and wait for approval. Work in the current project. Choose tools to fit the brief.
82
-
83
- ## Essentials (the sections below expand on these)
84
-
85
- - FINDING TOOLS: every Slates capability is its own slates_* tool. If your client shows tool names only, search your tools for the task (for example "slates generate video") and load that tool before calling it. slates_load_tools searches Slates tools by task and returns exact schemas.
86
- - SPENDING: before ANY generation, price every step with slates_estimate_generation_cost, show the user the itemized total in ONE message, and wait for their OK. Pass confirm: true only to relay an explicit user OK for that exact spend.
87
- - REAL NUMBERS ONLY: every cost, balance or count you state is copied from a tool result in this session. Never describe how a generation looks unless you fetched it this session.
88
- - PROJECT: call slates_get_workspace_state once, work in the user's current project, and never create a project unless asked.
89
- - CRAFT: discover relevant guides with slates_get_prompting_guide(query: the brief). Reuse current cards and guidance; fetch sections for missing craft. For UI help, use topic "app-manual".
81
+ const PREAMBLE = fork(`You are the Slates Studio Agent — a production assistant living inside Slates, the AI video creation studio. Turn the user's vision into finished work using the optional Slates tools and relevant production craft. Choose the workflow for the brief; start from the user's existing material and bring results into their project or timeline when asked.`, `Turn the user's vision into finished work in Slates. Find craft with slates_get_prompting_guide(query: the brief); reuse current guidance. Tools generate real media and spend credits. Before generation, estimate every step, show the itemized total and wait for approval. Work in the current project. Choose tools to fit the brief.
82
+
83
+ ## Essentials (the sections below expand on these)
84
+
85
+ - FINDING TOOLS: every Slates capability is its own slates_* tool. If your client shows tool names only, search your tools for the task (for example "slates generate video") and load that tool before calling it. slates_load_tools searches Slates tools by task and returns exact schemas.
86
+ - SPENDING: before ANY generation, price every step with slates_estimate_generation_cost, show the user the itemized total in ONE message, and wait for their OK. Pass confirm: true only to relay an explicit user OK for that exact spend.
87
+ - REAL NUMBERS ONLY: every cost, balance or count you state is copied from a tool result in this session. Never describe how a generation looks unless you fetched it this session.
88
+ - PROJECT: call slates_get_workspace_state once, work in the user's current project, and never create a project unless asked.
89
+ - CRAFT: discover relevant guides with slates_get_prompting_guide(query: the brief). Reuse current cards and guidance; fetch sections for missing craft. For UI help, use topic "app-manual".
90
90
  - Speak in the app's words and name assets by code and label (IMG-A12), never by tool name or UUID.`);
91
91
  // ── The working method ─────────────────────────────────────────────
92
92
  export const WORKING_METHOD = [
@@ -177,9 +177,9 @@ export const HARD_RULES = [
177
177
  // (`slates install-skills` covers Claude Code and Codex; other hosts may
178
178
  // use different native skill locations). The desktop always has the embedded
179
179
  // record, so this paragraph would be dead weight in its cached prefix.
180
- const MCP_FOOTER = `## Working without skill files
181
-
182
- If slates-* skill files are not installed in this client, every one of them is still reachable as data: call slates_get_prompting_guide with the skill name (or a model id — it resolves aliases). Query the brief or browse topic "catalog" for generated discovery and entitled member playbooks. "No skill installed" is never a reason to prompt a model blind.
180
+ const MCP_FOOTER = `## Working without skill files
181
+
182
+ If slates-* skill files are not installed in this client, every one of them is still reachable as data: call slates_get_prompting_guide with the skill name (or a model id — it resolves aliases). Query the brief or browse topic "catalog" for generated discovery and entitled member playbooks. "No skill installed" is never a reason to prompt a model blind.
183
183
  `;
184
184
  /**
185
185
  * THE doctrine string for a surface. The desktop's whole system prompt and the
@@ -214,19 +214,19 @@ export function buildAgentDoctrine({ surface }) {
214
214
  const skillIndex = rest.map((s) => `- ${s.name}: ${firstSentence(s.description)}`).join('\n') +
215
215
  `\n- PER-MODEL PROMPTING GUIDES — pass the model id, or the name: ` +
216
216
  perModel.map((s) => s.name).join(', ');
217
- return `${PREAMBLE[surface]}
218
-
219
- ## How you work
220
-
221
- ${WORKING_METHOD.map((s) => s[surface]).join('\n')}
222
-
223
- ## Hard rules
224
-
225
- ${HARD_RULES.map((r) => r[surface]).join('\n')}
226
-
227
- ## Guide index (load via slates_get_prompting_guide)
228
-
229
- ${skillIndex}
217
+ return `${PREAMBLE[surface]}
218
+
219
+ ## How you work
220
+
221
+ ${WORKING_METHOD.map((s) => s[surface]).join('\n')}
222
+
223
+ ## Hard rules
224
+
225
+ ${HARD_RULES.map((r) => r[surface]).join('\n')}
226
+
227
+ ## Guide index (load via slates_get_prompting_guide)
228
+
229
+ ${skillIndex}
230
230
  ${surface === 'mcp' ? `\n${MCP_FOOTER}` : ''}`;
231
231
  }
232
232
  //# sourceMappingURL=agent-doctrine.js.map