codebuff 1.0.209 → 1.0.210

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.
@@ -4,13 +4,13 @@ export declare const FileChangeSchema: z.ZodObject<{
4
4
  path: z.ZodString;
5
5
  content: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- type: "patch" | "file";
8
7
  path: string;
9
8
  content: string;
10
- }, {
11
9
  type: "patch" | "file";
10
+ }, {
12
11
  path: string;
13
12
  content: string;
13
+ type: "patch" | "file";
14
14
  }>;
15
15
  export type FileChange = z.infer<typeof FileChangeSchema>;
16
16
  export declare const CHANGES: z.ZodArray<z.ZodObject<{
@@ -18,13 +18,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
18
18
  path: z.ZodString;
19
19
  content: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
- type: "patch" | "file";
22
21
  path: string;
23
22
  content: string;
24
- }, {
25
23
  type: "patch" | "file";
24
+ }, {
26
25
  path: string;
27
26
  content: string;
27
+ type: "patch" | "file";
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
30
30
  export declare const ToolCallSchema: z.ZodObject<{
@@ -32,12 +32,12 @@ export declare const ToolCallSchema: z.ZodObject<{
32
32
  id: z.ZodString;
33
33
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
34
34
  }, "strip", z.ZodTypeAny, {
35
- name: string;
36
35
  id: string;
36
+ name: string;
37
37
  input: Record<string, any>;
38
38
  }, {
39
- name: string;
40
39
  id: string;
40
+ name: string;
41
41
  input: Record<string, any>;
42
42
  }>;
43
43
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -196,17 +196,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
196
196
  type: "ephemeral";
197
197
  }>>;
198
198
  }, "strip", z.ZodTypeAny, {
199
+ id: string;
199
200
  type: "tool_use";
200
201
  name: string;
201
- id: string;
202
202
  input: Record<string, any>;
203
203
  cache_control?: {
204
204
  type: "ephemeral";
205
205
  } | undefined;
206
206
  }, {
207
+ id: string;
207
208
  type: "tool_use";
208
209
  name: string;
209
- id: string;
210
210
  input: Record<string, any>;
211
211
  cache_control?: {
212
212
  type: "ephemeral";
@@ -223,15 +223,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
223
223
  type: "ephemeral";
224
224
  }>>;
225
225
  }, "strip", z.ZodTypeAny, {
226
- type: "tool_result";
227
226
  content: string;
227
+ type: "tool_result";
228
228
  tool_use_id: string;
229
229
  cache_control?: {
230
230
  type: "ephemeral";
231
231
  } | undefined;
232
232
  }, {
233
- type: "tool_result";
234
233
  content: string;
234
+ type: "tool_result";
235
235
  tool_use_id: string;
236
236
  cache_control?: {
237
237
  type: "ephemeral";
@@ -287,16 +287,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
287
287
  type: "ephemeral";
288
288
  } | undefined;
289
289
  } | {
290
+ id: string;
290
291
  type: "tool_use";
291
292
  name: string;
292
- id: string;
293
293
  input: Record<string, any>;
294
294
  cache_control?: {
295
295
  type: "ephemeral";
296
296
  } | undefined;
297
297
  } | {
298
- type: "tool_result";
299
298
  content: string;
299
+ type: "tool_result";
300
300
  tool_use_id: string;
301
301
  cache_control?: {
302
302
  type: "ephemeral";
@@ -321,16 +321,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
321
321
  type: "ephemeral";
322
322
  } | undefined;
323
323
  } | {
324
+ id: string;
324
325
  type: "tool_use";
325
326
  name: string;
326
- id: string;
327
327
  input: Record<string, any>;
328
328
  cache_control?: {
329
329
  type: "ephemeral";
330
330
  } | undefined;
331
331
  } | {
332
- type: "tool_result";
333
332
  content: string;
333
+ type: "tool_result";
334
334
  tool_use_id: string;
335
335
  cache_control?: {
336
336
  type: "ephemeral";
@@ -386,16 +386,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
386
386
  type: "ephemeral";
387
387
  } | undefined;
388
388
  } | {
389
+ id: string;
389
390
  type: "tool_use";
390
391
  name: string;
391
- id: string;
392
392
  input: Record<string, any>;
393
393
  cache_control?: {
394
394
  type: "ephemeral";
395
395
  } | undefined;
396
396
  } | {
397
- type: "tool_result";
398
397
  content: string;
398
+ type: "tool_result";
399
399
  tool_use_id: string;
400
400
  cache_control?: {
401
401
  type: "ephemeral";
@@ -451,16 +451,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
451
451
  type: "ephemeral";
452
452
  } | undefined;
453
453
  } | {
454
+ id: string;
454
455
  type: "tool_use";
455
456
  name: string;
456
- id: string;
457
457
  input: Record<string, any>;
458
458
  cache_control?: {
459
459
  type: "ephemeral";
460
460
  } | undefined;
461
461
  } | {
462
- type: "tool_result";
463
462
  content: string;
463
+ type: "tool_result";
464
464
  tool_use_id: string;
465
465
  cache_control?: {
466
466
  type: "ephemeral";
@@ -485,12 +485,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
485
485
  result: z.ZodString;
486
486
  id: z.ZodString;
487
487
  }, "strip", z.ZodTypeAny, {
488
- name: string;
489
488
  id: string;
489
+ name: string;
490
490
  result: string;
491
491
  }, {
492
- name: string;
493
492
  id: string;
493
+ name: string;
494
494
  result: string;
495
495
  }>, "many">;
496
496
  }, "strip", z.ZodTypeAny, {
@@ -535,16 +535,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
535
535
  type: "ephemeral";
536
536
  } | undefined;
537
537
  } | {
538
+ id: string;
538
539
  type: "tool_use";
539
540
  name: string;
540
- id: string;
541
541
  input: Record<string, any>;
542
542
  cache_control?: {
543
543
  type: "ephemeral";
544
544
  } | undefined;
545
545
  } | {
546
- type: "tool_result";
547
546
  content: string;
547
+ type: "tool_result";
548
548
  tool_use_id: string;
549
549
  cache_control?: {
550
550
  type: "ephemeral";
@@ -565,8 +565,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
565
565
  lastUserPromptIndex?: number | undefined;
566
566
  };
567
567
  toolResults: {
568
- name: string;
569
568
  id: string;
569
+ name: string;
570
570
  result: string;
571
571
  }[];
572
572
  prompt?: string | undefined;
@@ -612,16 +612,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
612
612
  type: "ephemeral";
613
613
  } | undefined;
614
614
  } | {
615
+ id: string;
615
616
  type: "tool_use";
616
617
  name: string;
617
- id: string;
618
618
  input: Record<string, any>;
619
619
  cache_control?: {
620
620
  type: "ephemeral";
621
621
  } | undefined;
622
622
  } | {
623
- type: "tool_result";
624
623
  content: string;
624
+ type: "tool_result";
625
625
  tool_use_id: string;
626
626
  cache_control?: {
627
627
  type: "ephemeral";
@@ -642,8 +642,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
642
642
  lastUserPromptIndex?: number | undefined;
643
643
  };
644
644
  toolResults: {
645
- name: string;
646
645
  id: string;
646
+ name: string;
647
647
  result: string;
648
648
  }[];
649
649
  prompt?: string | undefined;
@@ -910,26 +910,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
910
910
  path: z.ZodString;
911
911
  content: z.ZodString;
912
912
  }, "strip", z.ZodTypeAny, {
913
- type: "patch" | "file";
914
913
  path: string;
915
914
  content: string;
916
- }, {
917
915
  type: "patch" | "file";
916
+ }, {
918
917
  path: string;
919
918
  content: string;
919
+ type: "patch" | "file";
920
920
  }>, "many">;
921
921
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
922
922
  type: z.ZodEnum<["patch", "file"]>;
923
923
  path: z.ZodString;
924
924
  content: z.ZodString;
925
925
  }, "strip", z.ZodTypeAny, {
926
- type: "patch" | "file";
927
926
  path: string;
928
927
  content: string;
929
- }, {
930
928
  type: "patch" | "file";
929
+ }, {
931
930
  path: string;
932
931
  content: string;
932
+ type: "patch" | "file";
933
933
  }>, "many">;
934
934
  addedFileVersions: z.ZodArray<z.ZodObject<{
935
935
  path: z.ZodString;
@@ -953,14 +953,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
953
953
  userInputId: string;
954
954
  response: string;
955
955
  changes: {
956
- type: "patch" | "file";
957
956
  path: string;
958
957
  content: string;
958
+ type: "patch" | "file";
959
959
  }[];
960
960
  changesAlreadyApplied: {
961
- type: "patch" | "file";
962
961
  path: string;
963
962
  content: string;
963
+ type: "patch" | "file";
964
964
  }[];
965
965
  addedFileVersions: {
966
966
  path: string;
@@ -977,14 +977,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
977
977
  userInputId: string;
978
978
  response: string;
979
979
  changes: {
980
- type: "patch" | "file";
981
980
  path: string;
982
981
  content: string;
982
+ type: "patch" | "file";
983
983
  }[];
984
984
  changesAlreadyApplied: {
985
- type: "patch" | "file";
986
985
  path: string;
987
986
  content: string;
987
+ type: "patch" | "file";
988
988
  }[];
989
989
  addedFileVersions: {
990
990
  path: string;
@@ -1162,17 +1162,17 @@ export declare const PromptResponseSchema: z.ZodObject<{
1162
1162
  type: "ephemeral";
1163
1163
  }>>;
1164
1164
  }, "strip", z.ZodTypeAny, {
1165
+ id: string;
1165
1166
  type: "tool_use";
1166
1167
  name: string;
1167
- id: string;
1168
1168
  input: Record<string, any>;
1169
1169
  cache_control?: {
1170
1170
  type: "ephemeral";
1171
1171
  } | undefined;
1172
1172
  }, {
1173
+ id: string;
1173
1174
  type: "tool_use";
1174
1175
  name: string;
1175
- id: string;
1176
1176
  input: Record<string, any>;
1177
1177
  cache_control?: {
1178
1178
  type: "ephemeral";
@@ -1189,15 +1189,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
1189
1189
  type: "ephemeral";
1190
1190
  }>>;
1191
1191
  }, "strip", z.ZodTypeAny, {
1192
- type: "tool_result";
1193
1192
  content: string;
1193
+ type: "tool_result";
1194
1194
  tool_use_id: string;
1195
1195
  cache_control?: {
1196
1196
  type: "ephemeral";
1197
1197
  } | undefined;
1198
1198
  }, {
1199
- type: "tool_result";
1200
1199
  content: string;
1200
+ type: "tool_result";
1201
1201
  tool_use_id: string;
1202
1202
  cache_control?: {
1203
1203
  type: "ephemeral";
@@ -1253,16 +1253,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1253
1253
  type: "ephemeral";
1254
1254
  } | undefined;
1255
1255
  } | {
1256
+ id: string;
1256
1257
  type: "tool_use";
1257
1258
  name: string;
1258
- id: string;
1259
1259
  input: Record<string, any>;
1260
1260
  cache_control?: {
1261
1261
  type: "ephemeral";
1262
1262
  } | undefined;
1263
1263
  } | {
1264
- type: "tool_result";
1265
1264
  content: string;
1265
+ type: "tool_result";
1266
1266
  tool_use_id: string;
1267
1267
  cache_control?: {
1268
1268
  type: "ephemeral";
@@ -1287,16 +1287,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1287
1287
  type: "ephemeral";
1288
1288
  } | undefined;
1289
1289
  } | {
1290
+ id: string;
1290
1291
  type: "tool_use";
1291
1292
  name: string;
1292
- id: string;
1293
1293
  input: Record<string, any>;
1294
1294
  cache_control?: {
1295
1295
  type: "ephemeral";
1296
1296
  } | undefined;
1297
1297
  } | {
1298
- type: "tool_result";
1299
1298
  content: string;
1299
+ type: "tool_result";
1300
1300
  tool_use_id: string;
1301
1301
  cache_control?: {
1302
1302
  type: "ephemeral";
@@ -1352,16 +1352,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1352
1352
  type: "ephemeral";
1353
1353
  } | undefined;
1354
1354
  } | {
1355
+ id: string;
1355
1356
  type: "tool_use";
1356
1357
  name: string;
1357
- id: string;
1358
1358
  input: Record<string, any>;
1359
1359
  cache_control?: {
1360
1360
  type: "ephemeral";
1361
1361
  } | undefined;
1362
1362
  } | {
1363
- type: "tool_result";
1364
1363
  content: string;
1364
+ type: "tool_result";
1365
1365
  tool_use_id: string;
1366
1366
  cache_control?: {
1367
1367
  type: "ephemeral";
@@ -1417,16 +1417,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1417
1417
  type: "ephemeral";
1418
1418
  } | undefined;
1419
1419
  } | {
1420
+ id: string;
1420
1421
  type: "tool_use";
1421
1422
  name: string;
1422
- id: string;
1423
1423
  input: Record<string, any>;
1424
1424
  cache_control?: {
1425
1425
  type: "ephemeral";
1426
1426
  } | undefined;
1427
1427
  } | {
1428
- type: "tool_result";
1429
1428
  content: string;
1429
+ type: "tool_result";
1430
1430
  tool_use_id: string;
1431
1431
  cache_control?: {
1432
1432
  type: "ephemeral";
@@ -1451,12 +1451,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1451
1451
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
1452
1452
  id: z.ZodString;
1453
1453
  }, "strip", z.ZodTypeAny, {
1454
- name: string;
1455
1454
  id: string;
1455
+ name: string;
1456
1456
  parameters: Record<string, string>;
1457
1457
  }, {
1458
- name: string;
1459
1458
  id: string;
1459
+ name: string;
1460
1460
  parameters: Record<string, string>;
1461
1461
  }>, "many">;
1462
1462
  toolResults: z.ZodArray<z.ZodObject<{
@@ -1464,12 +1464,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1464
1464
  result: z.ZodString;
1465
1465
  id: z.ZodString;
1466
1466
  }, "strip", z.ZodTypeAny, {
1467
- name: string;
1468
1467
  id: string;
1468
+ name: string;
1469
1469
  result: string;
1470
1470
  }, {
1471
- name: string;
1472
1471
  id: string;
1472
+ name: string;
1473
1473
  result: string;
1474
1474
  }>, "many">;
1475
1475
  }, "strip", z.ZodTypeAny, {
@@ -1512,16 +1512,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1512
1512
  type: "ephemeral";
1513
1513
  } | undefined;
1514
1514
  } | {
1515
+ id: string;
1515
1516
  type: "tool_use";
1516
1517
  name: string;
1517
- id: string;
1518
1518
  input: Record<string, any>;
1519
1519
  cache_control?: {
1520
1520
  type: "ephemeral";
1521
1521
  } | undefined;
1522
1522
  } | {
1523
- type: "tool_result";
1524
1523
  content: string;
1524
+ type: "tool_result";
1525
1525
  tool_use_id: string;
1526
1526
  cache_control?: {
1527
1527
  type: "ephemeral";
@@ -1542,13 +1542,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
1542
1542
  lastUserPromptIndex?: number | undefined;
1543
1543
  };
1544
1544
  toolResults: {
1545
- name: string;
1546
1545
  id: string;
1546
+ name: string;
1547
1547
  result: string;
1548
1548
  }[];
1549
1549
  toolCalls: {
1550
- name: string;
1551
1550
  id: string;
1551
+ name: string;
1552
1552
  parameters: Record<string, string>;
1553
1553
  }[];
1554
1554
  }, {
@@ -1591,16 +1591,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1591
1591
  type: "ephemeral";
1592
1592
  } | undefined;
1593
1593
  } | {
1594
+ id: string;
1594
1595
  type: "tool_use";
1595
1596
  name: string;
1596
- id: string;
1597
1597
  input: Record<string, any>;
1598
1598
  cache_control?: {
1599
1599
  type: "ephemeral";
1600
1600
  } | undefined;
1601
1601
  } | {
1602
- type: "tool_result";
1603
1602
  content: string;
1603
+ type: "tool_result";
1604
1604
  tool_use_id: string;
1605
1605
  cache_control?: {
1606
1606
  type: "ephemeral";
@@ -1621,13 +1621,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
1621
1621
  lastUserPromptIndex?: number | undefined;
1622
1622
  };
1623
1623
  toolResults: {
1624
- name: string;
1625
1624
  id: string;
1625
+ name: string;
1626
1626
  result: string;
1627
1627
  }[];
1628
1628
  toolCalls: {
1629
- name: string;
1630
1629
  id: string;
1630
+ name: string;
1631
1631
  parameters: Record<string, string>;
1632
1632
  }[];
1633
1633
  }>;
@@ -1653,26 +1653,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1653
1653
  path: z.ZodString;
1654
1654
  content: z.ZodString;
1655
1655
  }, "strip", z.ZodTypeAny, {
1656
- type: "patch" | "file";
1657
1656
  path: string;
1658
1657
  content: string;
1659
- }, {
1660
1658
  type: "patch" | "file";
1659
+ }, {
1661
1660
  path: string;
1662
1661
  content: string;
1662
+ type: "patch" | "file";
1663
1663
  }>, "many">;
1664
1664
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1665
1665
  type: z.ZodEnum<["patch", "file"]>;
1666
1666
  path: z.ZodString;
1667
1667
  content: z.ZodString;
1668
1668
  }, "strip", z.ZodTypeAny, {
1669
- type: "patch" | "file";
1670
1669
  path: string;
1671
1670
  content: string;
1672
- }, {
1673
1671
  type: "patch" | "file";
1672
+ }, {
1674
1673
  path: string;
1675
1674
  content: string;
1675
+ type: "patch" | "file";
1676
1676
  }>, "many">;
1677
1677
  addedFileVersions: z.ZodArray<z.ZodObject<{
1678
1678
  path: z.ZodString;
@@ -1696,14 +1696,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1696
1696
  userInputId: string;
1697
1697
  response: string;
1698
1698
  changes: {
1699
- type: "patch" | "file";
1700
1699
  path: string;
1701
1700
  content: string;
1701
+ type: "patch" | "file";
1702
1702
  }[];
1703
1703
  changesAlreadyApplied: {
1704
- type: "patch" | "file";
1705
1704
  path: string;
1706
1705
  content: string;
1706
+ type: "patch" | "file";
1707
1707
  }[];
1708
1708
  addedFileVersions: {
1709
1709
  path: string;
@@ -1720,14 +1720,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1720
1720
  userInputId: string;
1721
1721
  response: string;
1722
1722
  changes: {
1723
- type: "patch" | "file";
1724
1723
  path: string;
1725
1724
  content: string;
1725
+ type: "patch" | "file";
1726
1726
  }[];
1727
1727
  changesAlreadyApplied: {
1728
- type: "patch" | "file";
1729
1728
  path: string;
1730
1729
  content: string;
1730
+ type: "patch" | "file";
1731
1731
  }[];
1732
1732
  addedFileVersions: {
1733
1733
  path: string;
@@ -1890,17 +1890,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1890
1890
  type: "ephemeral";
1891
1891
  }>>;
1892
1892
  }, "strip", z.ZodTypeAny, {
1893
+ id: string;
1893
1894
  type: "tool_use";
1894
1895
  name: string;
1895
- id: string;
1896
1896
  input: Record<string, any>;
1897
1897
  cache_control?: {
1898
1898
  type: "ephemeral";
1899
1899
  } | undefined;
1900
1900
  }, {
1901
+ id: string;
1901
1902
  type: "tool_use";
1902
1903
  name: string;
1903
- id: string;
1904
1904
  input: Record<string, any>;
1905
1905
  cache_control?: {
1906
1906
  type: "ephemeral";
@@ -1917,15 +1917,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1917
1917
  type: "ephemeral";
1918
1918
  }>>;
1919
1919
  }, "strip", z.ZodTypeAny, {
1920
- type: "tool_result";
1921
1920
  content: string;
1921
+ type: "tool_result";
1922
1922
  tool_use_id: string;
1923
1923
  cache_control?: {
1924
1924
  type: "ephemeral";
1925
1925
  } | undefined;
1926
1926
  }, {
1927
- type: "tool_result";
1928
1927
  content: string;
1928
+ type: "tool_result";
1929
1929
  tool_use_id: string;
1930
1930
  cache_control?: {
1931
1931
  type: "ephemeral";
@@ -1981,16 +1981,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1981
1981
  type: "ephemeral";
1982
1982
  } | undefined;
1983
1983
  } | {
1984
+ id: string;
1984
1985
  type: "tool_use";
1985
1986
  name: string;
1986
- id: string;
1987
1987
  input: Record<string, any>;
1988
1988
  cache_control?: {
1989
1989
  type: "ephemeral";
1990
1990
  } | undefined;
1991
1991
  } | {
1992
- type: "tool_result";
1993
1992
  content: string;
1993
+ type: "tool_result";
1994
1994
  tool_use_id: string;
1995
1995
  cache_control?: {
1996
1996
  type: "ephemeral";
@@ -2015,16 +2015,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2015
2015
  type: "ephemeral";
2016
2016
  } | undefined;
2017
2017
  } | {
2018
+ id: string;
2018
2019
  type: "tool_use";
2019
2020
  name: string;
2020
- id: string;
2021
2021
  input: Record<string, any>;
2022
2022
  cache_control?: {
2023
2023
  type: "ephemeral";
2024
2024
  } | undefined;
2025
2025
  } | {
2026
- type: "tool_result";
2027
2026
  content: string;
2027
+ type: "tool_result";
2028
2028
  tool_use_id: string;
2029
2029
  cache_control?: {
2030
2030
  type: "ephemeral";
@@ -2080,16 +2080,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2080
2080
  type: "ephemeral";
2081
2081
  } | undefined;
2082
2082
  } | {
2083
+ id: string;
2083
2084
  type: "tool_use";
2084
2085
  name: string;
2085
- id: string;
2086
2086
  input: Record<string, any>;
2087
2087
  cache_control?: {
2088
2088
  type: "ephemeral";
2089
2089
  } | undefined;
2090
2090
  } | {
2091
- type: "tool_result";
2092
2091
  content: string;
2092
+ type: "tool_result";
2093
2093
  tool_use_id: string;
2094
2094
  cache_control?: {
2095
2095
  type: "ephemeral";
@@ -2145,16 +2145,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2145
2145
  type: "ephemeral";
2146
2146
  } | undefined;
2147
2147
  } | {
2148
+ id: string;
2148
2149
  type: "tool_use";
2149
2150
  name: string;
2150
- id: string;
2151
2151
  input: Record<string, any>;
2152
2152
  cache_control?: {
2153
2153
  type: "ephemeral";
2154
2154
  } | undefined;
2155
2155
  } | {
2156
- type: "tool_result";
2157
2156
  content: string;
2157
+ type: "tool_result";
2158
2158
  tool_use_id: string;
2159
2159
  cache_control?: {
2160
2160
  type: "ephemeral";
@@ -2179,12 +2179,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2179
2179
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
2180
2180
  id: z.ZodString;
2181
2181
  }, "strip", z.ZodTypeAny, {
2182
- name: string;
2183
2182
  id: string;
2183
+ name: string;
2184
2184
  parameters: Record<string, string>;
2185
2185
  }, {
2186
- name: string;
2187
2186
  id: string;
2187
+ name: string;
2188
2188
  parameters: Record<string, string>;
2189
2189
  }>, "many">;
2190
2190
  toolResults: z.ZodArray<z.ZodObject<{
@@ -2192,12 +2192,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2192
2192
  result: z.ZodString;
2193
2193
  id: z.ZodString;
2194
2194
  }, "strip", z.ZodTypeAny, {
2195
- name: string;
2196
2195
  id: string;
2196
+ name: string;
2197
2197
  result: string;
2198
2198
  }, {
2199
- name: string;
2200
2199
  id: string;
2200
+ name: string;
2201
2201
  result: string;
2202
2202
  }>, "many">;
2203
2203
  }, "strip", z.ZodTypeAny, {
@@ -2240,16 +2240,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2240
2240
  type: "ephemeral";
2241
2241
  } | undefined;
2242
2242
  } | {
2243
+ id: string;
2243
2244
  type: "tool_use";
2244
2245
  name: string;
2245
- id: string;
2246
2246
  input: Record<string, any>;
2247
2247
  cache_control?: {
2248
2248
  type: "ephemeral";
2249
2249
  } | undefined;
2250
2250
  } | {
2251
- type: "tool_result";
2252
2251
  content: string;
2252
+ type: "tool_result";
2253
2253
  tool_use_id: string;
2254
2254
  cache_control?: {
2255
2255
  type: "ephemeral";
@@ -2270,13 +2270,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2270
2270
  lastUserPromptIndex?: number | undefined;
2271
2271
  };
2272
2272
  toolResults: {
2273
- name: string;
2274
2273
  id: string;
2274
+ name: string;
2275
2275
  result: string;
2276
2276
  }[];
2277
2277
  toolCalls: {
2278
- name: string;
2279
2278
  id: string;
2279
+ name: string;
2280
2280
  parameters: Record<string, string>;
2281
2281
  }[];
2282
2282
  }, {
@@ -2319,16 +2319,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2319
2319
  type: "ephemeral";
2320
2320
  } | undefined;
2321
2321
  } | {
2322
+ id: string;
2322
2323
  type: "tool_use";
2323
2324
  name: string;
2324
- id: string;
2325
2325
  input: Record<string, any>;
2326
2326
  cache_control?: {
2327
2327
  type: "ephemeral";
2328
2328
  } | undefined;
2329
2329
  } | {
2330
- type: "tool_result";
2331
2330
  content: string;
2331
+ type: "tool_result";
2332
2332
  tool_use_id: string;
2333
2333
  cache_control?: {
2334
2334
  type: "ephemeral";
@@ -2349,13 +2349,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2349
2349
  lastUserPromptIndex?: number | undefined;
2350
2350
  };
2351
2351
  toolResults: {
2352
- name: string;
2353
2352
  id: string;
2353
+ name: string;
2354
2354
  result: string;
2355
2355
  }[];
2356
2356
  toolCalls: {
2357
- name: string;
2358
2357
  id: string;
2358
+ name: string;
2359
2359
  parameters: Record<string, string>;
2360
2360
  }[];
2361
2361
  }>, z.ZodObject<{
@@ -2379,12 +2379,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2379
2379
  id: z.ZodString;
2380
2380
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
2381
2381
  }, "strip", z.ZodTypeAny, {
2382
- name: string;
2383
2382
  id: string;
2383
+ name: string;
2384
2384
  input: Record<string, any>;
2385
2385
  }, {
2386
- name: string;
2387
2386
  id: string;
2387
+ name: string;
2388
2388
  input: Record<string, any>;
2389
2389
  }>;
2390
2390
  changes: z.ZodArray<z.ZodObject<{
@@ -2392,26 +2392,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2392
2392
  path: z.ZodString;
2393
2393
  content: z.ZodString;
2394
2394
  }, "strip", z.ZodTypeAny, {
2395
- type: "patch" | "file";
2396
2395
  path: string;
2397
2396
  content: string;
2398
- }, {
2399
2397
  type: "patch" | "file";
2398
+ }, {
2400
2399
  path: string;
2401
2400
  content: string;
2401
+ type: "patch" | "file";
2402
2402
  }>, "many">;
2403
2403
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2404
2404
  type: z.ZodEnum<["patch", "file"]>;
2405
2405
  path: z.ZodString;
2406
2406
  content: z.ZodString;
2407
2407
  }, "strip", z.ZodTypeAny, {
2408
- type: "patch" | "file";
2409
2408
  path: string;
2410
2409
  content: string;
2411
- }, {
2412
2410
  type: "patch" | "file";
2411
+ }, {
2413
2412
  path: string;
2414
2413
  content: string;
2414
+ type: "patch" | "file";
2415
2415
  }>, "many">;
2416
2416
  addedFileVersions: z.ZodArray<z.ZodObject<{
2417
2417
  path: z.ZodString;
@@ -2427,21 +2427,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2427
2427
  }, "strip", z.ZodTypeAny, {
2428
2428
  type: "tool-call";
2429
2429
  data: {
2430
- name: string;
2431
2430
  id: string;
2431
+ name: string;
2432
2432
  input: Record<string, any>;
2433
2433
  };
2434
2434
  userInputId: string;
2435
2435
  response: string;
2436
2436
  changes: {
2437
- type: "patch" | "file";
2438
2437
  path: string;
2439
2438
  content: string;
2439
+ type: "patch" | "file";
2440
2440
  }[];
2441
2441
  changesAlreadyApplied: {
2442
- type: "patch" | "file";
2443
2442
  path: string;
2444
2443
  content: string;
2444
+ type: "patch" | "file";
2445
2445
  }[];
2446
2446
  addedFileVersions: {
2447
2447
  path: string;
@@ -2451,21 +2451,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2451
2451
  }, {
2452
2452
  type: "tool-call";
2453
2453
  data: {
2454
- name: string;
2455
2454
  id: string;
2455
+ name: string;
2456
2456
  input: Record<string, any>;
2457
2457
  };
2458
2458
  userInputId: string;
2459
2459
  response: string;
2460
2460
  changes: {
2461
- type: "patch" | "file";
2462
2461
  path: string;
2463
2462
  content: string;
2463
+ type: "patch" | "file";
2464
2464
  }[];
2465
2465
  changesAlreadyApplied: {
2466
- type: "patch" | "file";
2467
2466
  path: string;
2468
2467
  content: string;
2468
+ type: "patch" | "file";
2469
2469
  }[];
2470
2470
  addedFileVersions: {
2471
2471
  path: string;