codebuff 1.0.198 → 1.0.199

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,12 +4,12 @@ export declare const FileChangeSchema: z.ZodObject<{
4
4
  path: z.ZodString;
5
5
  content: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- type: "file" | "patch";
8
7
  path: string;
8
+ type: "patch" | "file";
9
9
  content: string;
10
10
  }, {
11
- type: "file" | "patch";
12
11
  path: string;
12
+ type: "patch" | "file";
13
13
  content: string;
14
14
  }>;
15
15
  export type FileChange = z.infer<typeof FileChangeSchema>;
@@ -18,12 +18,12 @@ 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: "file" | "patch";
22
21
  path: string;
22
+ type: "patch" | "file";
23
23
  content: string;
24
24
  }, {
25
- type: "file" | "patch";
26
25
  path: string;
26
+ type: "patch" | "file";
27
27
  content: string;
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
@@ -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>;
@@ -197,16 +197,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
197
197
  }>>;
198
198
  }, "strip", z.ZodTypeAny, {
199
199
  type: "tool_use";
200
- name: string;
201
200
  id: string;
201
+ name: string;
202
202
  input: Record<string, any>;
203
203
  cache_control?: {
204
204
  type: "ephemeral";
205
205
  } | undefined;
206
206
  }, {
207
207
  type: "tool_use";
208
- name: string;
209
208
  id: string;
209
+ name: string;
210
210
  input: Record<string, any>;
211
211
  cache_control?: {
212
212
  type: "ephemeral";
@@ -280,6 +280,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
280
280
  } | undefined;
281
281
  }>]>, "many">]>;
282
282
  }, "strip", z.ZodTypeAny, {
283
+ role: "user" | "assistant";
283
284
  content: string | ({
284
285
  type: "text";
285
286
  text: string;
@@ -288,8 +289,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
288
289
  } | undefined;
289
290
  } | {
290
291
  type: "tool_use";
291
- name: string;
292
292
  id: string;
293
+ name: string;
293
294
  input: Record<string, any>;
294
295
  cache_control?: {
295
296
  type: "ephemeral";
@@ -312,8 +313,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
312
313
  type: "ephemeral";
313
314
  } | undefined;
314
315
  })[];
315
- role: "user" | "assistant";
316
316
  }, {
317
+ role: "user" | "assistant";
317
318
  content: string | ({
318
319
  type: "text";
319
320
  text: string;
@@ -322,8 +323,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
322
323
  } | undefined;
323
324
  } | {
324
325
  type: "tool_use";
325
- name: string;
326
326
  id: string;
327
+ name: string;
327
328
  input: Record<string, any>;
328
329
  cache_control?: {
329
330
  type: "ephemeral";
@@ -346,7 +347,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
346
347
  type: "ephemeral";
347
348
  } | undefined;
348
349
  })[];
349
- role: "user" | "assistant";
350
350
  }>, "many">;
351
351
  lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
352
352
  }, "strip", z.ZodTypeAny, {
@@ -379,6 +379,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
379
379
  }[][] | undefined;
380
380
  };
381
381
  messageHistory: {
382
+ role: "user" | "assistant";
382
383
  content: string | ({
383
384
  type: "text";
384
385
  text: string;
@@ -387,8 +388,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
387
388
  } | undefined;
388
389
  } | {
389
390
  type: "tool_use";
390
- name: string;
391
391
  id: string;
392
+ name: string;
392
393
  input: Record<string, any>;
393
394
  cache_control?: {
394
395
  type: "ephemeral";
@@ -411,7 +412,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
411
412
  type: "ephemeral";
412
413
  } | undefined;
413
414
  })[];
414
- role: "user" | "assistant";
415
415
  }[];
416
416
  lastUserPromptIndex?: number | undefined;
417
417
  }, {
@@ -444,6 +444,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
444
444
  }[][] | undefined;
445
445
  };
446
446
  messageHistory: {
447
+ role: "user" | "assistant";
447
448
  content: string | ({
448
449
  type: "text";
449
450
  text: string;
@@ -452,8 +453,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
452
453
  } | undefined;
453
454
  } | {
454
455
  type: "tool_use";
455
- name: string;
456
456
  id: string;
457
+ name: string;
457
458
  input: Record<string, any>;
458
459
  cache_control?: {
459
460
  type: "ephemeral";
@@ -476,7 +477,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
476
477
  type: "ephemeral";
477
478
  } | undefined;
478
479
  })[];
479
- role: "user" | "assistant";
480
480
  }[];
481
481
  lastUserPromptIndex?: number | undefined;
482
482
  }>;
@@ -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, {
@@ -528,6 +528,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
528
528
  }[][] | undefined;
529
529
  };
530
530
  messageHistory: {
531
+ role: "user" | "assistant";
531
532
  content: string | ({
532
533
  type: "text";
533
534
  text: string;
@@ -536,8 +537,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
536
537
  } | undefined;
537
538
  } | {
538
539
  type: "tool_use";
539
- name: string;
540
540
  id: string;
541
+ name: string;
541
542
  input: Record<string, any>;
542
543
  cache_control?: {
543
544
  type: "ephemeral";
@@ -560,13 +561,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
560
561
  type: "ephemeral";
561
562
  } | undefined;
562
563
  })[];
563
- role: "user" | "assistant";
564
564
  }[];
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;
@@ -605,6 +605,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
605
605
  }[][] | undefined;
606
606
  };
607
607
  messageHistory: {
608
+ role: "user" | "assistant";
608
609
  content: string | ({
609
610
  type: "text";
610
611
  text: string;
@@ -613,8 +614,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
613
614
  } | undefined;
614
615
  } | {
615
616
  type: "tool_use";
616
- name: string;
617
617
  id: string;
618
+ name: string;
618
619
  input: Record<string, any>;
619
620
  cache_control?: {
620
621
  type: "ephemeral";
@@ -637,13 +638,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
637
638
  type: "ephemeral";
638
639
  } | undefined;
639
640
  })[];
640
- role: "user" | "assistant";
641
641
  }[];
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;
@@ -916,12 +916,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
916
916
  path: z.ZodString;
917
917
  content: z.ZodString;
918
918
  }, "strip", z.ZodTypeAny, {
919
- type: "file" | "patch";
920
919
  path: string;
920
+ type: "patch" | "file";
921
921
  content: string;
922
922
  }, {
923
- type: "file" | "patch";
924
923
  path: string;
924
+ type: "patch" | "file";
925
925
  content: string;
926
926
  }>, "many">;
927
927
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -929,12 +929,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
929
929
  path: z.ZodString;
930
930
  content: z.ZodString;
931
931
  }, "strip", z.ZodTypeAny, {
932
- type: "file" | "patch";
933
932
  path: string;
933
+ type: "patch" | "file";
934
934
  content: string;
935
935
  }, {
936
- type: "file" | "patch";
937
936
  path: string;
937
+ type: "patch" | "file";
938
938
  content: string;
939
939
  }>, "many">;
940
940
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -960,13 +960,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
960
960
  userInputId: string;
961
961
  response: string;
962
962
  changes: {
963
- type: "file" | "patch";
964
963
  path: string;
964
+ type: "patch" | "file";
965
965
  content: string;
966
966
  }[];
967
967
  changesAlreadyApplied: {
968
- type: "file" | "patch";
969
968
  path: string;
969
+ type: "patch" | "file";
970
970
  content: string;
971
971
  }[];
972
972
  addedFileVersions: {
@@ -985,13 +985,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
985
985
  userInputId: string;
986
986
  response: string;
987
987
  changes: {
988
- type: "file" | "patch";
989
988
  path: string;
989
+ type: "patch" | "file";
990
990
  content: string;
991
991
  }[];
992
992
  changesAlreadyApplied: {
993
- type: "file" | "patch";
994
993
  path: string;
994
+ type: "patch" | "file";
995
995
  content: string;
996
996
  }[];
997
997
  addedFileVersions: {
@@ -1172,16 +1172,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
1172
1172
  }>>;
1173
1173
  }, "strip", z.ZodTypeAny, {
1174
1174
  type: "tool_use";
1175
- name: string;
1176
1175
  id: string;
1176
+ name: string;
1177
1177
  input: Record<string, any>;
1178
1178
  cache_control?: {
1179
1179
  type: "ephemeral";
1180
1180
  } | undefined;
1181
1181
  }, {
1182
1182
  type: "tool_use";
1183
- name: string;
1184
1183
  id: string;
1184
+ name: string;
1185
1185
  input: Record<string, any>;
1186
1186
  cache_control?: {
1187
1187
  type: "ephemeral";
@@ -1255,6 +1255,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1255
1255
  } | undefined;
1256
1256
  }>]>, "many">]>;
1257
1257
  }, "strip", z.ZodTypeAny, {
1258
+ role: "user" | "assistant";
1258
1259
  content: string | ({
1259
1260
  type: "text";
1260
1261
  text: string;
@@ -1263,8 +1264,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1263
1264
  } | undefined;
1264
1265
  } | {
1265
1266
  type: "tool_use";
1266
- name: string;
1267
1267
  id: string;
1268
+ name: string;
1268
1269
  input: Record<string, any>;
1269
1270
  cache_control?: {
1270
1271
  type: "ephemeral";
@@ -1287,8 +1288,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1287
1288
  type: "ephemeral";
1288
1289
  } | undefined;
1289
1290
  })[];
1290
- role: "user" | "assistant";
1291
1291
  }, {
1292
+ role: "user" | "assistant";
1292
1293
  content: string | ({
1293
1294
  type: "text";
1294
1295
  text: string;
@@ -1297,8 +1298,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1297
1298
  } | undefined;
1298
1299
  } | {
1299
1300
  type: "tool_use";
1300
- name: string;
1301
1301
  id: string;
1302
+ name: string;
1302
1303
  input: Record<string, any>;
1303
1304
  cache_control?: {
1304
1305
  type: "ephemeral";
@@ -1321,7 +1322,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1321
1322
  type: "ephemeral";
1322
1323
  } | undefined;
1323
1324
  })[];
1324
- role: "user" | "assistant";
1325
1325
  }>, "many">;
1326
1326
  lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
1327
1327
  }, "strip", z.ZodTypeAny, {
@@ -1354,6 +1354,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1354
1354
  }[][] | undefined;
1355
1355
  };
1356
1356
  messageHistory: {
1357
+ role: "user" | "assistant";
1357
1358
  content: string | ({
1358
1359
  type: "text";
1359
1360
  text: string;
@@ -1362,8 +1363,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1362
1363
  } | undefined;
1363
1364
  } | {
1364
1365
  type: "tool_use";
1365
- name: string;
1366
1366
  id: string;
1367
+ name: string;
1367
1368
  input: Record<string, any>;
1368
1369
  cache_control?: {
1369
1370
  type: "ephemeral";
@@ -1386,7 +1387,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1386
1387
  type: "ephemeral";
1387
1388
  } | undefined;
1388
1389
  })[];
1389
- role: "user" | "assistant";
1390
1390
  }[];
1391
1391
  lastUserPromptIndex?: number | undefined;
1392
1392
  }, {
@@ -1419,6 +1419,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1419
1419
  }[][] | undefined;
1420
1420
  };
1421
1421
  messageHistory: {
1422
+ role: "user" | "assistant";
1422
1423
  content: string | ({
1423
1424
  type: "text";
1424
1425
  text: string;
@@ -1427,8 +1428,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1427
1428
  } | undefined;
1428
1429
  } | {
1429
1430
  type: "tool_use";
1430
- name: string;
1431
1431
  id: string;
1432
+ name: string;
1432
1433
  input: Record<string, any>;
1433
1434
  cache_control?: {
1434
1435
  type: "ephemeral";
@@ -1451,7 +1452,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
1451
1452
  type: "ephemeral";
1452
1453
  } | undefined;
1453
1454
  })[];
1454
- role: "user" | "assistant";
1455
1455
  }[];
1456
1456
  lastUserPromptIndex?: number | undefined;
1457
1457
  }>;
@@ -1460,12 +1460,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1460
1460
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
1461
1461
  id: z.ZodString;
1462
1462
  }, "strip", z.ZodTypeAny, {
1463
- name: string;
1464
1463
  id: string;
1464
+ name: string;
1465
1465
  parameters: Record<string, string>;
1466
1466
  }, {
1467
- name: string;
1468
1467
  id: string;
1468
+ name: string;
1469
1469
  parameters: Record<string, string>;
1470
1470
  }>, "many">;
1471
1471
  toolResults: z.ZodArray<z.ZodObject<{
@@ -1473,12 +1473,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1473
1473
  result: z.ZodString;
1474
1474
  id: z.ZodString;
1475
1475
  }, "strip", z.ZodTypeAny, {
1476
- name: string;
1477
1476
  id: string;
1477
+ name: string;
1478
1478
  result: string;
1479
1479
  }, {
1480
- name: string;
1481
1480
  id: string;
1481
+ name: string;
1482
1482
  result: string;
1483
1483
  }>, "many">;
1484
1484
  }, "strip", z.ZodTypeAny, {
@@ -1514,6 +1514,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1514
1514
  }[][] | undefined;
1515
1515
  };
1516
1516
  messageHistory: {
1517
+ role: "user" | "assistant";
1517
1518
  content: string | ({
1518
1519
  type: "text";
1519
1520
  text: string;
@@ -1522,8 +1523,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1522
1523
  } | undefined;
1523
1524
  } | {
1524
1525
  type: "tool_use";
1525
- name: string;
1526
1526
  id: string;
1527
+ name: string;
1527
1528
  input: Record<string, any>;
1528
1529
  cache_control?: {
1529
1530
  type: "ephemeral";
@@ -1546,18 +1547,17 @@ export declare const PromptResponseSchema: z.ZodObject<{
1546
1547
  type: "ephemeral";
1547
1548
  } | undefined;
1548
1549
  })[];
1549
- role: "user" | "assistant";
1550
1550
  }[];
1551
1551
  lastUserPromptIndex?: number | undefined;
1552
1552
  };
1553
1553
  toolResults: {
1554
- name: string;
1555
1554
  id: string;
1555
+ name: string;
1556
1556
  result: string;
1557
1557
  }[];
1558
1558
  toolCalls: {
1559
- name: string;
1560
1559
  id: string;
1560
+ name: string;
1561
1561
  parameters: Record<string, string>;
1562
1562
  }[];
1563
1563
  }, {
@@ -1593,6 +1593,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1593
1593
  }[][] | undefined;
1594
1594
  };
1595
1595
  messageHistory: {
1596
+ role: "user" | "assistant";
1596
1597
  content: string | ({
1597
1598
  type: "text";
1598
1599
  text: string;
@@ -1601,8 +1602,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1601
1602
  } | undefined;
1602
1603
  } | {
1603
1604
  type: "tool_use";
1604
- name: string;
1605
1605
  id: string;
1606
+ name: string;
1606
1607
  input: Record<string, any>;
1607
1608
  cache_control?: {
1608
1609
  type: "ephemeral";
@@ -1625,18 +1626,17 @@ export declare const PromptResponseSchema: z.ZodObject<{
1625
1626
  type: "ephemeral";
1626
1627
  } | undefined;
1627
1628
  })[];
1628
- role: "user" | "assistant";
1629
1629
  }[];
1630
1630
  lastUserPromptIndex?: number | undefined;
1631
1631
  };
1632
1632
  toolResults: {
1633
- name: string;
1634
1633
  id: string;
1634
+ name: string;
1635
1635
  result: string;
1636
1636
  }[];
1637
1637
  toolCalls: {
1638
- name: string;
1639
1638
  id: string;
1639
+ name: string;
1640
1640
  parameters: Record<string, string>;
1641
1641
  }[];
1642
1642
  }>;
@@ -1662,12 +1662,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1662
1662
  path: z.ZodString;
1663
1663
  content: z.ZodString;
1664
1664
  }, "strip", z.ZodTypeAny, {
1665
- type: "file" | "patch";
1666
1665
  path: string;
1666
+ type: "patch" | "file";
1667
1667
  content: string;
1668
1668
  }, {
1669
- type: "file" | "patch";
1670
1669
  path: string;
1670
+ type: "patch" | "file";
1671
1671
  content: string;
1672
1672
  }>, "many">;
1673
1673
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1675,12 +1675,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1675
1675
  path: z.ZodString;
1676
1676
  content: z.ZodString;
1677
1677
  }, "strip", z.ZodTypeAny, {
1678
- type: "file" | "patch";
1679
1678
  path: string;
1679
+ type: "patch" | "file";
1680
1680
  content: string;
1681
1681
  }, {
1682
- type: "file" | "patch";
1683
1682
  path: string;
1683
+ type: "patch" | "file";
1684
1684
  content: string;
1685
1685
  }>, "many">;
1686
1686
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1706,13 +1706,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1706
1706
  userInputId: string;
1707
1707
  response: string;
1708
1708
  changes: {
1709
- type: "file" | "patch";
1710
1709
  path: string;
1710
+ type: "patch" | "file";
1711
1711
  content: string;
1712
1712
  }[];
1713
1713
  changesAlreadyApplied: {
1714
- type: "file" | "patch";
1715
1714
  path: string;
1715
+ type: "patch" | "file";
1716
1716
  content: string;
1717
1717
  }[];
1718
1718
  addedFileVersions: {
@@ -1731,13 +1731,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1731
1731
  userInputId: string;
1732
1732
  response: string;
1733
1733
  changes: {
1734
- type: "file" | "patch";
1735
1734
  path: string;
1735
+ type: "patch" | "file";
1736
1736
  content: string;
1737
1737
  }[];
1738
1738
  changesAlreadyApplied: {
1739
- type: "file" | "patch";
1740
1739
  path: string;
1740
+ type: "patch" | "file";
1741
1741
  content: string;
1742
1742
  }[];
1743
1743
  addedFileVersions: {
@@ -1903,16 +1903,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1903
1903
  }>>;
1904
1904
  }, "strip", z.ZodTypeAny, {
1905
1905
  type: "tool_use";
1906
- name: string;
1907
1906
  id: string;
1907
+ name: string;
1908
1908
  input: Record<string, any>;
1909
1909
  cache_control?: {
1910
1910
  type: "ephemeral";
1911
1911
  } | undefined;
1912
1912
  }, {
1913
1913
  type: "tool_use";
1914
- name: string;
1915
1914
  id: string;
1915
+ name: string;
1916
1916
  input: Record<string, any>;
1917
1917
  cache_control?: {
1918
1918
  type: "ephemeral";
@@ -1986,6 +1986,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1986
1986
  } | undefined;
1987
1987
  }>]>, "many">]>;
1988
1988
  }, "strip", z.ZodTypeAny, {
1989
+ role: "user" | "assistant";
1989
1990
  content: string | ({
1990
1991
  type: "text";
1991
1992
  text: string;
@@ -1994,8 +1995,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1994
1995
  } | undefined;
1995
1996
  } | {
1996
1997
  type: "tool_use";
1997
- name: string;
1998
1998
  id: string;
1999
+ name: string;
1999
2000
  input: Record<string, any>;
2000
2001
  cache_control?: {
2001
2002
  type: "ephemeral";
@@ -2018,8 +2019,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2018
2019
  type: "ephemeral";
2019
2020
  } | undefined;
2020
2021
  })[];
2021
- role: "user" | "assistant";
2022
2022
  }, {
2023
+ role: "user" | "assistant";
2023
2024
  content: string | ({
2024
2025
  type: "text";
2025
2026
  text: string;
@@ -2028,8 +2029,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2028
2029
  } | undefined;
2029
2030
  } | {
2030
2031
  type: "tool_use";
2031
- name: string;
2032
2032
  id: string;
2033
+ name: string;
2033
2034
  input: Record<string, any>;
2034
2035
  cache_control?: {
2035
2036
  type: "ephemeral";
@@ -2052,7 +2053,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2052
2053
  type: "ephemeral";
2053
2054
  } | undefined;
2054
2055
  })[];
2055
- role: "user" | "assistant";
2056
2056
  }>, "many">;
2057
2057
  lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
2058
2058
  }, "strip", z.ZodTypeAny, {
@@ -2085,6 +2085,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2085
2085
  }[][] | undefined;
2086
2086
  };
2087
2087
  messageHistory: {
2088
+ role: "user" | "assistant";
2088
2089
  content: string | ({
2089
2090
  type: "text";
2090
2091
  text: string;
@@ -2093,8 +2094,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2093
2094
  } | undefined;
2094
2095
  } | {
2095
2096
  type: "tool_use";
2096
- name: string;
2097
2097
  id: string;
2098
+ name: string;
2098
2099
  input: Record<string, any>;
2099
2100
  cache_control?: {
2100
2101
  type: "ephemeral";
@@ -2117,7 +2118,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2117
2118
  type: "ephemeral";
2118
2119
  } | undefined;
2119
2120
  })[];
2120
- role: "user" | "assistant";
2121
2121
  }[];
2122
2122
  lastUserPromptIndex?: number | undefined;
2123
2123
  }, {
@@ -2150,6 +2150,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2150
2150
  }[][] | undefined;
2151
2151
  };
2152
2152
  messageHistory: {
2153
+ role: "user" | "assistant";
2153
2154
  content: string | ({
2154
2155
  type: "text";
2155
2156
  text: string;
@@ -2158,8 +2159,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2158
2159
  } | undefined;
2159
2160
  } | {
2160
2161
  type: "tool_use";
2161
- name: string;
2162
2162
  id: string;
2163
+ name: string;
2163
2164
  input: Record<string, any>;
2164
2165
  cache_control?: {
2165
2166
  type: "ephemeral";
@@ -2182,7 +2183,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2182
2183
  type: "ephemeral";
2183
2184
  } | undefined;
2184
2185
  })[];
2185
- role: "user" | "assistant";
2186
2186
  }[];
2187
2187
  lastUserPromptIndex?: number | undefined;
2188
2188
  }>;
@@ -2191,12 +2191,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2191
2191
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
2192
2192
  id: z.ZodString;
2193
2193
  }, "strip", z.ZodTypeAny, {
2194
- name: string;
2195
2194
  id: string;
2195
+ name: string;
2196
2196
  parameters: Record<string, string>;
2197
2197
  }, {
2198
- name: string;
2199
2198
  id: string;
2199
+ name: string;
2200
2200
  parameters: Record<string, string>;
2201
2201
  }>, "many">;
2202
2202
  toolResults: z.ZodArray<z.ZodObject<{
@@ -2204,12 +2204,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2204
2204
  result: z.ZodString;
2205
2205
  id: z.ZodString;
2206
2206
  }, "strip", z.ZodTypeAny, {
2207
- name: string;
2208
2207
  id: string;
2208
+ name: string;
2209
2209
  result: string;
2210
2210
  }, {
2211
- name: string;
2212
2211
  id: string;
2212
+ name: string;
2213
2213
  result: string;
2214
2214
  }>, "many">;
2215
2215
  }, "strip", z.ZodTypeAny, {
@@ -2245,6 +2245,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2245
2245
  }[][] | undefined;
2246
2246
  };
2247
2247
  messageHistory: {
2248
+ role: "user" | "assistant";
2248
2249
  content: string | ({
2249
2250
  type: "text";
2250
2251
  text: string;
@@ -2253,8 +2254,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2253
2254
  } | undefined;
2254
2255
  } | {
2255
2256
  type: "tool_use";
2256
- name: string;
2257
2257
  id: string;
2258
+ name: string;
2258
2259
  input: Record<string, any>;
2259
2260
  cache_control?: {
2260
2261
  type: "ephemeral";
@@ -2277,18 +2278,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2277
2278
  type: "ephemeral";
2278
2279
  } | undefined;
2279
2280
  })[];
2280
- role: "user" | "assistant";
2281
2281
  }[];
2282
2282
  lastUserPromptIndex?: number | undefined;
2283
2283
  };
2284
2284
  toolResults: {
2285
- name: string;
2286
2285
  id: string;
2286
+ name: string;
2287
2287
  result: string;
2288
2288
  }[];
2289
2289
  toolCalls: {
2290
- name: string;
2291
2290
  id: string;
2291
+ name: string;
2292
2292
  parameters: Record<string, string>;
2293
2293
  }[];
2294
2294
  }, {
@@ -2324,6 +2324,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2324
2324
  }[][] | undefined;
2325
2325
  };
2326
2326
  messageHistory: {
2327
+ role: "user" | "assistant";
2327
2328
  content: string | ({
2328
2329
  type: "text";
2329
2330
  text: string;
@@ -2332,8 +2333,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2332
2333
  } | undefined;
2333
2334
  } | {
2334
2335
  type: "tool_use";
2335
- name: string;
2336
2336
  id: string;
2337
+ name: string;
2337
2338
  input: Record<string, any>;
2338
2339
  cache_control?: {
2339
2340
  type: "ephemeral";
@@ -2356,18 +2357,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2356
2357
  type: "ephemeral";
2357
2358
  } | undefined;
2358
2359
  })[];
2359
- role: "user" | "assistant";
2360
2360
  }[];
2361
2361
  lastUserPromptIndex?: number | undefined;
2362
2362
  };
2363
2363
  toolResults: {
2364
- name: string;
2365
2364
  id: string;
2365
+ name: string;
2366
2366
  result: string;
2367
2367
  }[];
2368
2368
  toolCalls: {
2369
- name: string;
2370
2369
  id: string;
2370
+ name: string;
2371
2371
  parameters: Record<string, string>;
2372
2372
  }[];
2373
2373
  }>, z.ZodObject<{
@@ -2391,12 +2391,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2391
2391
  id: z.ZodString;
2392
2392
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
2393
2393
  }, "strip", z.ZodTypeAny, {
2394
- name: string;
2395
2394
  id: string;
2395
+ name: string;
2396
2396
  input: Record<string, any>;
2397
2397
  }, {
2398
- name: string;
2399
2398
  id: string;
2399
+ name: string;
2400
2400
  input: Record<string, any>;
2401
2401
  }>;
2402
2402
  changes: z.ZodArray<z.ZodObject<{
@@ -2404,12 +2404,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2404
2404
  path: z.ZodString;
2405
2405
  content: z.ZodString;
2406
2406
  }, "strip", z.ZodTypeAny, {
2407
- type: "file" | "patch";
2408
2407
  path: string;
2408
+ type: "patch" | "file";
2409
2409
  content: string;
2410
2410
  }, {
2411
- type: "file" | "patch";
2412
2411
  path: string;
2412
+ type: "patch" | "file";
2413
2413
  content: string;
2414
2414
  }>, "many">;
2415
2415
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2417,12 +2417,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2417
2417
  path: z.ZodString;
2418
2418
  content: z.ZodString;
2419
2419
  }, "strip", z.ZodTypeAny, {
2420
- type: "file" | "patch";
2421
2420
  path: string;
2421
+ type: "patch" | "file";
2422
2422
  content: string;
2423
2423
  }, {
2424
- type: "file" | "patch";
2425
2424
  path: string;
2425
+ type: "patch" | "file";
2426
2426
  content: string;
2427
2427
  }>, "many">;
2428
2428
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2439,20 +2439,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2439
2439
  }, "strip", z.ZodTypeAny, {
2440
2440
  type: "tool-call";
2441
2441
  data: {
2442
- name: string;
2443
2442
  id: string;
2443
+ name: string;
2444
2444
  input: Record<string, any>;
2445
2445
  };
2446
2446
  userInputId: string;
2447
2447
  response: string;
2448
2448
  changes: {
2449
- type: "file" | "patch";
2450
2449
  path: string;
2450
+ type: "patch" | "file";
2451
2451
  content: string;
2452
2452
  }[];
2453
2453
  changesAlreadyApplied: {
2454
- type: "file" | "patch";
2455
2454
  path: string;
2455
+ type: "patch" | "file";
2456
2456
  content: string;
2457
2457
  }[];
2458
2458
  addedFileVersions: {
@@ -2463,20 +2463,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2463
2463
  }, {
2464
2464
  type: "tool-call";
2465
2465
  data: {
2466
- name: string;
2467
2466
  id: string;
2467
+ name: string;
2468
2468
  input: Record<string, any>;
2469
2469
  };
2470
2470
  userInputId: string;
2471
2471
  response: string;
2472
2472
  changes: {
2473
- type: "file" | "patch";
2474
2473
  path: string;
2474
+ type: "patch" | "file";
2475
2475
  content: string;
2476
2476
  }[];
2477
2477
  changesAlreadyApplied: {
2478
- type: "file" | "patch";
2479
2478
  path: string;
2479
+ type: "patch" | "file";
2480
2480
  content: string;
2481
2481
  }[];
2482
2482
  addedFileVersions: {
@@ -2574,11 +2574,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2574
2574
  type: z.ZodLiteral<"action-error">;
2575
2575
  message: z.ZodString;
2576
2576
  }, "strip", z.ZodTypeAny, {
2577
- type: "action-error";
2578
2577
  message: string;
2579
- }, {
2580
2578
  type: "action-error";
2579
+ }, {
2581
2580
  message: string;
2581
+ type: "action-error";
2582
2582
  }>, z.ZodObject<{
2583
2583
  type: z.ZodLiteral<"commit-message-response">;
2584
2584
  commitMessage: z.ZodString;