@slatesvideo/shared 0.7.9 → 0.7.10

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.
@@ -1342,9 +1342,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1342
1342
  action: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "status", "cancel"]>>>;
1343
1343
  }, "strict", z.ZodTypeAny, {
1344
1344
  projectId: string;
1345
- directory?: string | undefined;
1346
- manifestId?: string | undefined;
1347
- action?: "status" | "start" | "cancel" | undefined;
1345
+ version?: 2 | undefined;
1346
+ action?: "start" | "status" | "cancel" | undefined;
1348
1347
  items?: ({
1349
1348
  timelineId: string;
1350
1349
  format: "mp4" | "xml";
@@ -1363,7 +1362,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1363
1362
  lp?: string | undefined;
1364
1363
  } | undefined;
1365
1364
  })[] | undefined;
1366
- version?: 2 | undefined;
1365
+ directory?: string | undefined;
1366
+ manifestId?: string | undefined;
1367
1367
  batchId?: string | undefined;
1368
1368
  exportRoot?: string | undefined;
1369
1369
  variants?: {
@@ -1385,9 +1385,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1385
1385
  }> | undefined;
1386
1386
  }, {
1387
1387
  projectId: string;
1388
- directory?: string | undefined;
1389
- manifestId?: string | undefined;
1390
- action?: "status" | "start" | "cancel" | undefined;
1388
+ version?: 2 | undefined;
1389
+ action?: "start" | "status" | "cancel" | undefined;
1391
1390
  items?: ({
1392
1391
  timelineId: string;
1393
1392
  format: "mp4" | "xml";
@@ -1406,7 +1405,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1406
1405
  lp?: string | undefined;
1407
1406
  } | undefined;
1408
1407
  })[] | undefined;
1409
- version?: 2 | undefined;
1408
+ directory?: string | undefined;
1409
+ manifestId?: string | undefined;
1410
1410
  batchId?: string | undefined;
1411
1411
  exportRoot?: string | undefined;
1412
1412
  variants?: {
@@ -1428,9 +1428,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1428
1428
  }> | undefined;
1429
1429
  }>, {
1430
1430
  projectId: string;
1431
- directory?: string | undefined;
1432
- manifestId?: string | undefined;
1433
- action?: "status" | "start" | "cancel" | undefined;
1431
+ version?: 2 | undefined;
1432
+ action?: "start" | "status" | "cancel" | undefined;
1434
1433
  items?: ({
1435
1434
  timelineId: string;
1436
1435
  format: "mp4" | "xml";
@@ -1449,7 +1448,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1449
1448
  lp?: string | undefined;
1450
1449
  } | undefined;
1451
1450
  })[] | undefined;
1452
- version?: 2 | undefined;
1451
+ directory?: string | undefined;
1452
+ manifestId?: string | undefined;
1453
1453
  batchId?: string | undefined;
1454
1454
  exportRoot?: string | undefined;
1455
1455
  variants?: {
@@ -1471,9 +1471,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1471
1471
  }> | undefined;
1472
1472
  }, {
1473
1473
  projectId: string;
1474
- directory?: string | undefined;
1475
- manifestId?: string | undefined;
1476
- action?: "status" | "start" | "cancel" | undefined;
1474
+ version?: 2 | undefined;
1475
+ action?: "start" | "status" | "cancel" | undefined;
1477
1476
  items?: ({
1478
1477
  timelineId: string;
1479
1478
  format: "mp4" | "xml";
@@ -1492,7 +1491,8 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1492
1491
  lp?: string | undefined;
1493
1492
  } | undefined;
1494
1493
  })[] | undefined;
1495
- version?: 2 | undefined;
1494
+ directory?: string | undefined;
1495
+ manifestId?: string | undefined;
1496
1496
  batchId?: string | undefined;
1497
1497
  exportRoot?: string | undefined;
1498
1498
  variants?: {
@@ -1569,8 +1569,8 @@ declare const variantSlotsInput: z.ZodObject<{
1569
1569
  clipIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1570
1570
  sequenceId: z.ZodOptional<z.ZodString>;
1571
1571
  }, "strict", z.ZodTypeAny, {
1572
- projectId: string;
1573
1572
  action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
1573
+ projectId: string;
1574
1574
  at?: number | undefined;
1575
1575
  name?: string | undefined;
1576
1576
  alternativeId?: string | undefined;
@@ -1582,8 +1582,8 @@ declare const variantSlotsInput: z.ZodObject<{
1582
1582
  clipIds?: string[] | undefined;
1583
1583
  sequenceId?: string | undefined;
1584
1584
  }, {
1585
- projectId: string;
1586
1585
  action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
1586
+ projectId: string;
1587
1587
  at?: number | undefined;
1588
1588
  name?: string | undefined;
1589
1589
  alternativeId?: string | undefined;
@@ -1667,8 +1667,8 @@ declare const variantsInput: z.ZodObject<{
1667
1667
  frames: number;
1668
1668
  }>]>>>;
1669
1669
  }, "strict", z.ZodTypeAny, {
1670
- projectId: string;
1671
1670
  action: "add" | "remove" | "update" | "rebuild";
1671
+ projectId: string;
1672
1672
  name?: string | undefined;
1673
1673
  timelineId?: string | undefined;
1674
1674
  variantId?: string | undefined;
@@ -1693,8 +1693,8 @@ declare const variantsInput: z.ZodObject<{
1693
1693
  }> | undefined;
1694
1694
  }[] | undefined;
1695
1695
  }, {
1696
- projectId: string;
1697
1696
  action: "add" | "remove" | "update" | "rebuild";
1697
+ projectId: string;
1698
1698
  name?: string | undefined;
1699
1699
  timelineId?: string | undefined;
1700
1700
  variantId?: string | undefined;
@@ -1754,14 +1754,14 @@ declare const reframeClipInput: z.ZodObject<{
1754
1754
  zoom: z.ZodOptional<z.ZodNumber>;
1755
1755
  }, "strict", z.ZodTypeAny, {
1756
1756
  mode?: "fill" | "fit" | undefined;
1757
+ zoom?: number | undefined;
1757
1758
  focusX?: number | undefined;
1758
1759
  focusY?: number | undefined;
1759
- zoom?: number | undefined;
1760
1760
  }, {
1761
1761
  mode?: "fill" | "fit" | undefined;
1762
+ zoom?: number | undefined;
1762
1763
  focusX?: number | undefined;
1763
1764
  focusY?: number | undefined;
1764
- zoom?: number | undefined;
1765
1765
  }>>>;
1766
1766
  follow: z.ZodOptional<z.ZodEnum<["face", "off"]>>;
1767
1767
  }, "strict", z.ZodTypeAny, {
@@ -1771,11 +1771,11 @@ declare const reframeClipInput: z.ZodObject<{
1771
1771
  aspect: string;
1772
1772
  framing?: {
1773
1773
  mode?: "fill" | "fit" | undefined;
1774
+ zoom?: number | undefined;
1774
1775
  focusX?: number | undefined;
1775
1776
  focusY?: number | undefined;
1776
- zoom?: number | undefined;
1777
1777
  } | null | undefined;
1778
- follow?: "face" | "off" | undefined;
1778
+ follow?: "off" | "face" | undefined;
1779
1779
  }, {
1780
1780
  projectId: string;
1781
1781
  timelineId: string;
@@ -1783,11 +1783,11 @@ declare const reframeClipInput: z.ZodObject<{
1783
1783
  aspect: string;
1784
1784
  framing?: {
1785
1785
  mode?: "fill" | "fit" | undefined;
1786
+ zoom?: number | undefined;
1786
1787
  focusX?: number | undefined;
1787
1788
  focusY?: number | undefined;
1788
- zoom?: number | undefined;
1789
1789
  } | null | undefined;
1790
- follow?: "face" | "off" | undefined;
1790
+ follow?: "off" | "face" | undefined;
1791
1791
  }>;
1792
1792
  export declare const reframeClip: Operation<z.infer<typeof reframeClipInput>>;
1793
1793
  export declare const listTimelines: Operation<{
@@ -2696,24 +2696,24 @@ declare const sectionInput: z.ZodObject<{
2696
2696
  start: z.ZodNumber;
2697
2697
  end: z.ZodNumber;
2698
2698
  }, "strip", z.ZodTypeAny, {
2699
- sceneId: string;
2700
2699
  start: number;
2701
2700
  end: number;
2702
- }, {
2703
2701
  sceneId: string;
2702
+ }, {
2704
2703
  start: number;
2705
2704
  end: number;
2705
+ sceneId: string;
2706
2706
  }>, "many">>;
2707
2707
  }, "strip", z.ZodTypeAny, {
2708
+ action: "archive" | "create" | "tags" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses";
2708
2709
  storyboardId: string;
2709
- action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
2710
2710
  expectedRevision: number;
2711
+ label?: string | undefined;
2711
2712
  target?: {
2712
2713
  at: number;
2713
2714
  sceneId: string;
2714
2715
  expectedRevision: number;
2715
2716
  } | undefined;
2716
- label?: string | undefined;
2717
2717
  sectionId?: string | undefined;
2718
2718
  alternativeId?: string | undefined;
2719
2719
  tags?: string[] | undefined;
@@ -2723,20 +2723,20 @@ declare const sectionInput: z.ZodObject<{
2723
2723
  expectedRevision: number;
2724
2724
  }[] | undefined;
2725
2725
  fragments?: {
2726
- sceneId: string;
2727
2726
  start: number;
2728
2727
  end: number;
2728
+ sceneId: string;
2729
2729
  }[] | undefined;
2730
2730
  }, {
2731
+ action: "archive" | "create" | "tags" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses";
2731
2732
  storyboardId: string;
2732
- action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
2733
2733
  expectedRevision: number;
2734
+ label?: string | undefined;
2734
2735
  target?: {
2735
2736
  at: number;
2736
2737
  sceneId: string;
2737
2738
  expectedRevision: number;
2738
2739
  } | undefined;
2739
- label?: string | undefined;
2740
2740
  sectionId?: string | undefined;
2741
2741
  alternativeId?: string | undefined;
2742
2742
  tags?: string[] | undefined;
@@ -2746,9 +2746,9 @@ declare const sectionInput: z.ZodObject<{
2746
2746
  expectedRevision: number;
2747
2747
  }[] | undefined;
2748
2748
  fragments?: {
2749
- sceneId: string;
2750
2749
  start: number;
2751
2750
  end: number;
2751
+ sceneId: string;
2752
2752
  }[] | undefined;
2753
2753
  }>;
2754
2754
  export declare const changeScriptSection: Operation<z.infer<typeof sectionInput>>;
@@ -2767,42 +2767,42 @@ declare const suggestionInput: z.ZodObject<{
2767
2767
  replacement: z.ZodString;
2768
2768
  note: z.ZodOptional<z.ZodString>;
2769
2769
  }, "strip", z.ZodTypeAny, {
2770
- sceneId: string;
2771
2770
  start: number;
2772
2771
  end: number;
2772
+ sceneId: string;
2773
2773
  original: string;
2774
2774
  replacement: string;
2775
2775
  note?: string | undefined;
2776
2776
  }, {
2777
- sceneId: string;
2778
2777
  start: number;
2779
2778
  end: number;
2779
+ sceneId: string;
2780
2780
  original: string;
2781
2781
  replacement: string;
2782
2782
  note?: string | undefined;
2783
2783
  }>, "many">>;
2784
2784
  suggestionId: z.ZodOptional<z.ZodString>;
2785
2785
  }, "strip", z.ZodTypeAny, {
2786
- storyboardId: string;
2787
2786
  action: "create" | "accept" | "dismiss";
2787
+ storyboardId: string;
2788
2788
  expectedRevision: number;
2789
2789
  suggestions?: {
2790
- sceneId: string;
2791
2790
  start: number;
2792
2791
  end: number;
2792
+ sceneId: string;
2793
2793
  original: string;
2794
2794
  replacement: string;
2795
2795
  note?: string | undefined;
2796
2796
  }[] | undefined;
2797
2797
  suggestionId?: string | undefined;
2798
2798
  }, {
2799
- storyboardId: string;
2800
2799
  action: "create" | "accept" | "dismiss";
2800
+ storyboardId: string;
2801
2801
  expectedRevision: number;
2802
2802
  suggestions?: {
2803
- sceneId: string;
2804
2803
  start: number;
2805
2804
  end: number;
2805
+ sceneId: string;
2806
2806
  original: string;
2807
2807
  replacement: string;
2808
2808
  note?: string | undefined;
@@ -2846,35 +2846,35 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2846
2846
  end: z.ZodNumber;
2847
2847
  type: z.ZodEnum<["strong", "em"]>;
2848
2848
  }, "strip", z.ZodTypeAny, {
2849
- type: "strong" | "em";
2850
2849
  start: number;
2851
2850
  end: number;
2852
- }, {
2853
2851
  type: "strong" | "em";
2852
+ }, {
2854
2853
  start: number;
2855
2854
  end: number;
2855
+ type: "strong" | "em";
2856
2856
  }>, "many">;
2857
2857
  }, "strip", z.ZodTypeAny, {
2858
- id: string;
2859
- kind: "paragraph" | "heading" | "direction";
2860
2858
  start: number;
2861
2859
  end: number;
2860
+ id: string;
2861
+ kind: "paragraph" | "heading" | "direction";
2862
2862
  marks: {
2863
- type: "strong" | "em";
2864
2863
  start: number;
2865
2864
  end: number;
2865
+ type: "strong" | "em";
2866
2866
  }[];
2867
2867
  level?: 2 | 3 | undefined;
2868
2868
  label?: string | undefined;
2869
2869
  }, {
2870
- id: string;
2871
- kind: "paragraph" | "heading" | "direction";
2872
2870
  start: number;
2873
2871
  end: number;
2872
+ id: string;
2873
+ kind: "paragraph" | "heading" | "direction";
2874
2874
  marks: {
2875
- type: "strong" | "em";
2876
2875
  start: number;
2877
2876
  end: number;
2877
+ type: "strong" | "em";
2878
2878
  }[];
2879
2879
  level?: 2 | 3 | undefined;
2880
2880
  label?: string | undefined;
@@ -2882,14 +2882,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2882
2882
  }, "strip", z.ZodTypeAny, {
2883
2883
  sceneId: string;
2884
2884
  blocks: {
2885
- id: string;
2886
- kind: "paragraph" | "heading" | "direction";
2887
2885
  start: number;
2888
2886
  end: number;
2887
+ id: string;
2888
+ kind: "paragraph" | "heading" | "direction";
2889
2889
  marks: {
2890
- type: "strong" | "em";
2891
2890
  start: number;
2892
2891
  end: number;
2892
+ type: "strong" | "em";
2893
2893
  }[];
2894
2894
  level?: 2 | 3 | undefined;
2895
2895
  label?: string | undefined;
@@ -2897,14 +2897,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2897
2897
  }, {
2898
2898
  sceneId: string;
2899
2899
  blocks: {
2900
- id: string;
2901
- kind: "paragraph" | "heading" | "direction";
2902
2900
  start: number;
2903
2901
  end: number;
2902
+ id: string;
2903
+ kind: "paragraph" | "heading" | "direction";
2904
2904
  marks: {
2905
- type: "strong" | "em";
2906
2905
  start: number;
2907
2906
  end: number;
2907
+ type: "strong" | "em";
2908
2908
  }[];
2909
2909
  level?: 2 | 3 | undefined;
2910
2910
  label?: string | undefined;
@@ -2929,14 +2929,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2929
2929
  end: z.ZodNumber;
2930
2930
  waitingShotId: z.ZodOptional<z.ZodString>;
2931
2931
  }, "strip", z.ZodTypeAny, {
2932
- sceneId: string;
2933
2932
  start: number;
2934
2933
  end: number;
2934
+ sceneId: string;
2935
2935
  waitingShotId?: string | undefined;
2936
2936
  }, {
2937
- sceneId: string;
2938
2937
  start: number;
2939
2938
  end: number;
2939
+ sceneId: string;
2940
2940
  waitingShotId?: string | undefined;
2941
2941
  }>, "many">>;
2942
2942
  restoreRevision: z.ZodOptional<z.ZodNumber>;
@@ -2980,23 +2980,23 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2980
2980
  structures?: {
2981
2981
  sceneId: string;
2982
2982
  blocks: {
2983
- id: string;
2984
- kind: "paragraph" | "heading" | "direction";
2985
2983
  start: number;
2986
2984
  end: number;
2985
+ id: string;
2986
+ kind: "paragraph" | "heading" | "direction";
2987
2987
  marks: {
2988
- type: "strong" | "em";
2989
2988
  start: number;
2990
2989
  end: number;
2990
+ type: "strong" | "em";
2991
2991
  }[];
2992
2992
  level?: 2 | 3 | undefined;
2993
2993
  label?: string | undefined;
2994
2994
  }[];
2995
2995
  }[] | undefined;
2996
2996
  makeShots?: {
2997
- sceneId: string;
2998
2997
  start: number;
2999
2998
  end: number;
2999
+ sceneId: string;
3000
3000
  waitingShotId?: string | undefined;
3001
3001
  }[] | undefined;
3002
3002
  restoreRevision?: number | undefined;
@@ -3026,23 +3026,23 @@ declare const writeScriptDocumentInput: z.ZodObject<{
3026
3026
  structures?: {
3027
3027
  sceneId: string;
3028
3028
  blocks: {
3029
- id: string;
3030
- kind: "paragraph" | "heading" | "direction";
3031
3029
  start: number;
3032
3030
  end: number;
3031
+ id: string;
3032
+ kind: "paragraph" | "heading" | "direction";
3033
3033
  marks: {
3034
- type: "strong" | "em";
3035
3034
  start: number;
3036
3035
  end: number;
3036
+ type: "strong" | "em";
3037
3037
  }[];
3038
3038
  level?: 2 | 3 | undefined;
3039
3039
  label?: string | undefined;
3040
3040
  }[];
3041
3041
  }[] | undefined;
3042
3042
  makeShots?: {
3043
- sceneId: string;
3044
3043
  start: number;
3045
3044
  end: number;
3045
+ sceneId: string;
3046
3046
  waitingShotId?: string | undefined;
3047
3047
  }[] | undefined;
3048
3048
  restoreRevision?: number | undefined;
@@ -6214,7 +6214,7 @@ const describeFindings = (f) => {
6214
6214
  };
6215
6215
  export const addHtmlClip = {
6216
6216
  id: 'slates_add_html_clip',
6217
- description: "Put an HTML motion layer on the timeline: an animated caption, lower third, end card, title, logo sting or background plate, drawn on an overlay track in preview and export. An HTML clip is a composition, an HTML document with a GSAP timeline registered on window.__timelines. Pass your own html, or block with the name of a registry block (slates_list_motion_blocks) and its variables; html with block replaces the block's document and keeps its files. It loads the project's own pictures, SVGs and fonts by their path in the project's folder (images/logo.svg, fonts/Brand.woff2; the folder is projectsFolder from slates_get_app_settings, then the project id) and no other file; an export fails, naming the font, when a declared font does not load. Slates' composition check runs before the clip lands and its findings come back here: fix every error with slates_update_html_clip before moving on. Keep a transparent foreground and a background plate on separate tracks. Free. Read slates_get_timeline first for the frame rate and where clips sit. Craft: slates_get_prompting_guide (topic: slates-motion).",
6217
+ description: "Put an HTML motion layer on the timeline: an animated caption, lower third, end card, title, logo sting or background plate, drawn on an overlay track in preview and export. An HTML clip is a composition, an HTML document with a GSAP timeline registered on window.__timelines. Pass your own html, or block with the name of a registry block (slates_list_motion_blocks) and its variables; html with block replaces the block's document and keeps its files. It loads the project's own pictures, SVGs, fonts, stylesheets and scripts by their path in the project's folder (images/logo.svg, fonts/Brand.woff2, css/brand.css, js/library.js; the folder is projectsFolder from slates_get_app_settings, then the project id) and no other file; an export fails, naming the font, when a declared font does not load. Slates' composition check runs before the clip lands and its findings come back here: fix every error with slates_update_html_clip before moving on. Keep a transparent foreground and a background plate on separate tracks. Free. Read slates_get_timeline first for the frame rate and where clips sit. Craft: slates_get_prompting_guide (topic: slates-motion).",
6218
6218
  input: z
6219
6219
  .object({
6220
6220
  projectId: z.string().uuid(),
@@ -6240,7 +6240,7 @@ export const addHtmlClip = {
6240
6240
  };
6241
6241
  export const updateHtmlClip = {
6242
6242
  id: 'slates_update_html_clip',
6243
- description: "Change an HTML clip's composition or its variables. Slates' composition check runs again and its findings come back here: fix every error before moving on. Only what you pass changes. To move or retime one, remove it (slates_remove_clip) and add it again.",
6243
+ description: "Change an HTML clip's composition or its variables. Like slates_add_html_clip, the composition loads the project's own pictures, SVGs, fonts, stylesheets and scripts by their path in the project's folder. Slates' composition check runs again and its findings come back here: fix every error before moving on. Only what you pass changes. To move or retime one, remove it (slates_remove_clip) and add it again.",
6244
6244
  input: z
6245
6245
  .object({
6246
6246
  projectId: z.string().uuid(),
@@ -6259,7 +6259,7 @@ export const updateHtmlClip = {
6259
6259
  };
6260
6260
  export const checkComposition = {
6261
6261
  id: 'slates_check_composition',
6262
- description: "Check a composition before it lands, with Slates' composition check: its errors and warnings, each with a code, a message and, where it has one, the selector it found. Writes nothing. slates_add_html_clip and slates_update_html_clip run the same check, so use this one while drafting.",
6262
+ description: "Check a composition before it lands, with Slates' composition check: its errors and warnings, each with a code, a message and, where it has one, the selector it found. Writes nothing. A file the composition names by its path in the project's folder (a picture, SVG, font, stylesheet or script) is served to it, so name one there instead of a remote address the check flags. slates_add_html_clip and slates_update_html_clip run the same check, so use this one while drafting.",
6263
6263
  input: z.object({ html: htmlCompositionInput }).strict(),
6264
6264
  async run(input, ctx) {
6265
6265
  await ctx.desktop().requireCapability('html-clips', 'HTML layers');
@@ -266,6 +266,29 @@ export const GROUP_SUMMARY = {
266
266
  admin: 'rename / delete / reorder for projects, characters, locations, looks, boards, scenes and frames; shot duplicate, split and merge; spend limits',
267
267
  blender: 'the Blender previs bridge — scene inspection, bpy execution, API docs, grey-box render',
268
268
  };
269
+ /**
270
+ * zod-to-json-schema writes a tuple the draft-07 way, `items: [a, b]`. Claude's API reads tool
271
+ * schemas as draft 2020-12, where `items` must be one schema, so it refuses the whole request with
272
+ * a 400 (and Claude Code drops the tool). 2020-12 spells a tuple `prefixItems`, with `items` taking
273
+ * the old `additionalItems`. Receipt: 2026-10-26, five tools (the keyframe easing's `cubicBezier`,
274
+ * caption `phrases`) unusable in Claude Code and the Studio Agent since 0.6.3.
275
+ */
276
+ function draft2020Tuples(node) {
277
+ if (Array.isArray(node))
278
+ return node.forEach(draft2020Tuples);
279
+ if (!node || typeof node !== 'object')
280
+ return;
281
+ const n = node;
282
+ if (Array.isArray(n.items)) {
283
+ n.prefixItems = n.items;
284
+ if ('additionalItems' in n)
285
+ n.items = n.additionalItems;
286
+ else
287
+ delete n.items;
288
+ delete n.additionalItems;
289
+ }
290
+ Object.values(n).forEach(draft2020Tuples);
291
+ }
269
292
  /**
270
293
  * Render one op's tool definition.
271
294
  *
@@ -277,6 +300,7 @@ export const GROUP_SUMMARY = {
277
300
  export function toolDefinition(op) {
278
301
  const schema = zodToJsonSchema(op.input, { $refStrategy: 'none' });
279
302
  delete schema.$schema;
303
+ draft2020Tuples(schema);
280
304
  // zod-to-json-schema 3 renders a zod 4 schema as `{}`, without an error. That
281
305
  // happens when this package resolves the consumer's zod 4 instead of its own
282
306
  // zod 3: slate's install lost `node_modules/@slatesvideo/shared/node_modules/zod`
@@ -2,7 +2,7 @@
2
2
  * This is NOT a model capability or provider batch limit. Desktop mirror is
3
3
  * generated by slate/scripts/sync-generation-policy.mjs; never edit it there. */
4
4
  export declare const IMAGE_QUANTITIES: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
5
- export declare const MAX_IMAGE_VARIATIONS: 9 | 3 | 1 | 4 | 5 | 2 | 6 | 10 | 8 | 7;
5
+ export declare const MAX_IMAGE_VARIATIONS: 1 | 2 | 9 | 10 | 3 | 4 | 5 | 6 | 7 | 8;
6
6
  export type ImageQuantity = typeof IMAGE_QUANTITIES[number];
7
7
  export declare const clampImageQuantity: (count?: number) => ImageQuantity;
8
8
  /** Default saved-recipe framing, shared by composer restore, quote and dispatch. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slatesvideo/shared",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "description": "Shared operations layer for the Slates MCP server and CLI: auth, cloud/desktop clients, and the single tool surface both consume. Most users want @slatesvideo/mcp-server or @slatesvideo/cli instead.",
5
5
  "license": "MIT",
6
6
  "type": "module",