codebuff 1.0.300 → 1.0.302

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 (116) hide show
  1. package/dist/chat-storage.d.ts +2 -2
  2. package/dist/chat-storage.js +23 -29
  3. package/dist/chat-storage.js.map +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/cli.js.map +1 -1
  6. package/dist/client.d.ts +2 -36
  7. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  8. package/dist/common/actions.d.ts +30 -1002
  9. package/dist/common/browser-actions.d.ts +48 -48
  10. package/dist/common/types/agent-state.d.ts +5 -261
  11. package/dist/common/types/agent-state.js +2 -2
  12. package/dist/common/types/agent-state.js.map +1 -1
  13. package/dist/common/types/message.d.ts +11 -18
  14. package/dist/common/types/message.js +1 -9
  15. package/dist/common/types/message.js.map +1 -1
  16. package/dist/common/util/messages.d.ts +3 -1
  17. package/dist/common/util/messages.js +15 -3
  18. package/dist/common/util/messages.js.map +1 -1
  19. package/dist/common/websockets/websocket-schema.d.ts +74 -1642
  20. package/dist/index.js +2 -20
  21. package/dist/project-files.d.ts +1 -1
  22. package/dist/project-files.js +4 -1
  23. package/dist/project-files.js.map +1 -1
  24. package/dist/tool-handlers.js +5 -3
  25. package/dist/tool-handlers.js.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/cli-handlers/initialization-flow.d.ts +0 -1
  28. package/dist/cli-handlers/initialization-flow.js +0 -24
  29. package/dist/cli-handlers/initialization-flow.js.map +0 -1
  30. package/dist/cli-modules/command-processor.d.ts +0 -2
  31. package/dist/cli-modules/command-processor.js +0 -112
  32. package/dist/cli-modules/command-processor.js.map +0 -1
  33. package/dist/cli-modules/input-handler.d.ts +0 -4
  34. package/dist/cli-modules/input-handler.js +0 -75
  35. package/dist/cli-modules/input-handler.js.map +0 -1
  36. package/dist/cli-modules/readline-handler.d.ts +0 -11
  37. package/dist/cli-modules/readline-handler.js +0 -158
  38. package/dist/cli-modules/readline-handler.js.map +0 -1
  39. package/dist/cli-modules/signal-handler.d.ts +0 -7
  40. package/dist/cli-modules/signal-handler.js +0 -128
  41. package/dist/cli-modules/signal-handler.js.map +0 -1
  42. package/dist/cli-modules/types.d.ts +0 -51
  43. package/dist/cli-modules/types.js +0 -3
  44. package/dist/cli-modules/types.js.map +0 -1
  45. package/dist/cli-modules/websocket-handler.d.ts +0 -16
  46. package/dist/cli-modules/websocket-handler.js +0 -53
  47. package/dist/cli-modules/websocket-handler.js.map +0 -1
  48. package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts +0 -12
  49. package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts.map +0 -1
  50. package/dist/code-map/__mocks__/tree-sitter-typescript.js +0 -14
  51. package/dist/code-map/__mocks__/tree-sitter-typescript.js.map +0 -1
  52. package/dist/code-map/__mocks__/wasm-mock.d.ts +0 -2
  53. package/dist/code-map/__mocks__/wasm-mock.d.ts.map +0 -1
  54. package/dist/code-map/__mocks__/wasm-mock.js +0 -3
  55. package/dist/code-map/__mocks__/wasm-mock.js.map +0 -1
  56. package/dist/code-map/__tests__/parse.test.d.ts +0 -2
  57. package/dist/code-map/__tests__/parse.test.d.ts.map +0 -1
  58. package/dist/code-map/__tests__/parse.test.js +0 -231
  59. package/dist/code-map/__tests__/parse.test.js.map +0 -1
  60. package/dist/code-map/__tests__/test-langs/consumer.d.ts +0 -2
  61. package/dist/code-map/__tests__/test-langs/consumer.d.ts.map +0 -1
  62. package/dist/code-map/__tests__/test-langs/consumer.js +0 -6
  63. package/dist/code-map/__tests__/test-langs/consumer.js.map +0 -1
  64. package/dist/code-map/__tests__/test-langs/empty.d.ts +0 -1
  65. package/dist/code-map/__tests__/test-langs/empty.d.ts.map +0 -1
  66. package/dist/code-map/__tests__/test-langs/empty.js +0 -2
  67. package/dist/code-map/__tests__/test-langs/empty.js.map +0 -1
  68. package/dist/code-map/__tests__/test-langs/test.d.ts +0 -12
  69. package/dist/code-map/__tests__/test-langs/test.d.ts.map +0 -1
  70. package/dist/code-map/__tests__/test-langs/test.js +0 -23
  71. package/dist/code-map/__tests__/test-langs/test.js.map +0 -1
  72. package/dist/code-map/__tests__/test-langs/unused.d.ts +0 -2
  73. package/dist/code-map/__tests__/test-langs/unused.d.ts.map +0 -1
  74. package/dist/code-map/__tests__/test-langs/unused.js +0 -7
  75. package/dist/code-map/__tests__/test-langs/unused.js.map +0 -1
  76. package/dist/code-map/__tests__/test-langs/utils1.d.ts +0 -2
  77. package/dist/code-map/__tests__/test-langs/utils1.d.ts.map +0 -1
  78. package/dist/code-map/__tests__/test-langs/utils1.js +0 -7
  79. package/dist/code-map/__tests__/test-langs/utils1.js.map +0 -1
  80. package/dist/code-map/__tests__/test-langs/utils2.d.ts +0 -2
  81. package/dist/code-map/__tests__/test-langs/utils2.d.ts.map +0 -1
  82. package/dist/code-map/__tests__/test-langs/utils2.js +0 -8
  83. package/dist/code-map/__tests__/test-langs/utils2.js.map +0 -1
  84. package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts +0 -2
  85. package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts.map +0 -1
  86. package/dist/code-map/__tests__/tree-sitter-minimal.test.js +0 -79
  87. package/dist/code-map/__tests__/tree-sitter-minimal.test.js.map +0 -1
  88. package/dist/code-map/jest.config.d.ts +0 -4
  89. package/dist/code-map/jest.config.d.ts.map +0 -1
  90. package/dist/code-map/jest.config.js +0 -18
  91. package/dist/code-map/jest.config.js.map +0 -1
  92. package/dist/code-map/parse.test.d.ts +0 -2
  93. package/dist/code-map/parse.test.d.ts.map +0 -1
  94. package/dist/code-map/parse.test.js +0 -218
  95. package/dist/code-map/parse.test.js.map +0 -1
  96. package/dist/code-map/scripts/tree-sitter-test.cjs +0 -27
  97. package/dist/code-map/scripts/tree-sitter-test.cjs.map +0 -1
  98. package/dist/code-map/scripts/tree-sitter-test.d.cts +0 -2
  99. package/dist/code-map/scripts/tree-sitter-test.d.cts.map +0 -1
  100. package/dist/code-map/scripts/tree-sitter-test.d.ts +0 -2
  101. package/dist/code-map/scripts/tree-sitter-test.d.ts.map +0 -1
  102. package/dist/code-map/scripts/tree-sitter-test.js +0 -54
  103. package/dist/code-map/scripts/tree-sitter-test.js.map +0 -1
  104. package/dist/code-map/test-parser.d.ts +0 -2
  105. package/dist/code-map/test-parser.d.ts.map +0 -1
  106. package/dist/code-map/test-parser.js +0 -42
  107. package/dist/code-map/test-parser.js.map +0 -1
  108. package/dist/common/bigquery/client.d.ts +0 -15
  109. package/dist/common/bigquery/client.js +0 -265
  110. package/dist/common/bigquery/client.js.map +0 -1
  111. package/dist/common/bigquery/schema.d.ts +0 -55
  112. package/dist/common/bigquery/schema.js +0 -24
  113. package/dist/common/bigquery/schema.js.map +0 -1
  114. package/dist/common/util/file-metadata.d.ts +0 -9
  115. package/dist/common/util/file-metadata.js +0 -24
  116. package/dist/common/util/file-metadata.js.map +0 -1
@@ -173,195 +173,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
173
173
  content: string;
174
174
  }[][] | undefined;
175
175
  }>;
176
- messageHistory: z.ZodArray<z.ZodObject<{
177
- role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
178
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
179
- type: z.ZodLiteral<"text">;
180
- text: z.ZodString;
181
- cache_control: z.ZodOptional<z.ZodObject<{
182
- type: z.ZodLiteral<"ephemeral">;
183
- }, "strip", z.ZodTypeAny, {
184
- type: "ephemeral";
185
- }, {
186
- type: "ephemeral";
187
- }>>;
188
- }, "strip", z.ZodTypeAny, {
189
- type: "text";
190
- text: string;
191
- cache_control?: {
192
- type: "ephemeral";
193
- } | undefined;
194
- }, {
195
- type: "text";
196
- text: string;
197
- cache_control?: {
198
- type: "ephemeral";
199
- } | undefined;
200
- }>, z.ZodObject<{
201
- type: z.ZodLiteral<"tool_use">;
202
- id: z.ZodString;
203
- name: z.ZodString;
204
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
205
- cache_control: z.ZodOptional<z.ZodObject<{
206
- type: z.ZodLiteral<"ephemeral">;
207
- }, "strip", z.ZodTypeAny, {
208
- type: "ephemeral";
209
- }, {
210
- type: "ephemeral";
211
- }>>;
212
- }, "strip", z.ZodTypeAny, {
213
- type: "tool_use";
214
- name: string;
215
- id: string;
216
- input: Record<string, any>;
217
- cache_control?: {
218
- type: "ephemeral";
219
- } | undefined;
220
- }, {
221
- type: "tool_use";
222
- name: string;
223
- id: string;
224
- input: Record<string, any>;
225
- cache_control?: {
226
- type: "ephemeral";
227
- } | undefined;
228
- }>, z.ZodObject<{
229
- type: z.ZodLiteral<"tool_result">;
230
- tool_use_id: z.ZodString;
231
- content: z.ZodString;
232
- cache_control: z.ZodOptional<z.ZodObject<{
233
- type: z.ZodLiteral<"ephemeral">;
234
- }, "strip", z.ZodTypeAny, {
235
- type: "ephemeral";
236
- }, {
237
- type: "ephemeral";
238
- }>>;
239
- }, "strip", z.ZodTypeAny, {
240
- type: "tool_result";
241
- content: string;
242
- tool_use_id: string;
243
- cache_control?: {
244
- type: "ephemeral";
245
- } | undefined;
246
- }, {
247
- type: "tool_result";
248
- content: string;
249
- tool_use_id: string;
250
- cache_control?: {
251
- type: "ephemeral";
252
- } | undefined;
253
- }>, z.ZodObject<{
254
- type: z.ZodLiteral<"image">;
255
- source: z.ZodObject<{
256
- type: z.ZodLiteral<"base64">;
257
- media_type: z.ZodLiteral<"image/jpeg">;
258
- data: z.ZodString;
259
- }, "strip", z.ZodTypeAny, {
260
- type: "base64";
261
- media_type: "image/jpeg";
262
- data: string;
263
- }, {
264
- type: "base64";
265
- media_type: "image/jpeg";
266
- data: string;
267
- }>;
268
- cache_control: z.ZodOptional<z.ZodObject<{
269
- type: z.ZodLiteral<"ephemeral">;
270
- }, "strip", z.ZodTypeAny, {
271
- type: "ephemeral";
272
- }, {
273
- type: "ephemeral";
274
- }>>;
275
- }, "strip", z.ZodTypeAny, {
276
- type: "image";
277
- source: {
278
- type: "base64";
279
- media_type: "image/jpeg";
280
- data: string;
281
- };
282
- cache_control?: {
283
- type: "ephemeral";
284
- } | undefined;
285
- }, {
286
- type: "image";
287
- source: {
288
- type: "base64";
289
- media_type: "image/jpeg";
290
- data: string;
291
- };
292
- cache_control?: {
293
- type: "ephemeral";
294
- } | undefined;
295
- }>]>, "many">]>;
296
- }, "strip", z.ZodTypeAny, {
297
- content: string | ({
298
- type: "text";
299
- text: string;
300
- cache_control?: {
301
- type: "ephemeral";
302
- } | undefined;
303
- } | {
304
- type: "tool_use";
305
- name: string;
306
- id: string;
307
- input: Record<string, any>;
308
- cache_control?: {
309
- type: "ephemeral";
310
- } | undefined;
311
- } | {
312
- type: "tool_result";
313
- content: string;
314
- tool_use_id: string;
315
- cache_control?: {
316
- type: "ephemeral";
317
- } | undefined;
318
- } | {
319
- type: "image";
320
- source: {
321
- type: "base64";
322
- media_type: "image/jpeg";
323
- data: string;
324
- };
325
- cache_control?: {
326
- type: "ephemeral";
327
- } | undefined;
328
- })[];
329
- role: "user" | "assistant";
330
- }, {
331
- content: string | ({
332
- type: "text";
333
- text: string;
334
- cache_control?: {
335
- type: "ephemeral";
336
- } | undefined;
337
- } | {
338
- type: "tool_use";
339
- name: string;
340
- id: string;
341
- input: Record<string, any>;
342
- cache_control?: {
343
- type: "ephemeral";
344
- } | undefined;
345
- } | {
346
- type: "tool_result";
347
- content: string;
348
- tool_use_id: string;
349
- cache_control?: {
350
- type: "ephemeral";
351
- } | undefined;
352
- } | {
353
- type: "image";
354
- source: {
355
- type: "base64";
356
- media_type: "image/jpeg";
357
- data: string;
358
- };
359
- cache_control?: {
360
- type: "ephemeral";
361
- } | undefined;
362
- })[];
363
- role: "user" | "assistant";
364
- }>, "many">;
176
+ messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, "many">;
365
177
  consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
366
178
  }, "strip", z.ZodTypeAny, {
367
179
  agentContext: string;
@@ -393,41 +205,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
393
205
  content: string;
394
206
  }[][] | undefined;
395
207
  };
396
- messageHistory: {
397
- content: string | ({
398
- type: "text";
399
- text: string;
400
- cache_control?: {
401
- type: "ephemeral";
402
- } | undefined;
403
- } | {
404
- type: "tool_use";
405
- name: string;
406
- id: string;
407
- input: Record<string, any>;
408
- cache_control?: {
409
- type: "ephemeral";
410
- } | undefined;
411
- } | {
412
- type: "tool_result";
413
- content: string;
414
- tool_use_id: string;
415
- cache_control?: {
416
- type: "ephemeral";
417
- } | undefined;
418
- } | {
419
- type: "image";
420
- source: {
421
- type: "base64";
422
- media_type: "image/jpeg";
423
- data: string;
424
- };
425
- cache_control?: {
426
- type: "ephemeral";
427
- } | undefined;
428
- })[];
429
- role: "user" | "assistant";
430
- }[];
208
+ messageHistory: import("ai").CoreMessage[];
431
209
  consecutiveAssistantMessages?: number | undefined;
432
210
  }, {
433
211
  agentContext: string;
@@ -459,41 +237,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
459
237
  content: string;
460
238
  }[][] | undefined;
461
239
  };
462
- messageHistory: {
463
- content: string | ({
464
- type: "text";
465
- text: string;
466
- cache_control?: {
467
- type: "ephemeral";
468
- } | undefined;
469
- } | {
470
- type: "tool_use";
471
- name: string;
472
- id: string;
473
- input: Record<string, any>;
474
- cache_control?: {
475
- type: "ephemeral";
476
- } | undefined;
477
- } | {
478
- type: "tool_result";
479
- content: string;
480
- tool_use_id: string;
481
- cache_control?: {
482
- type: "ephemeral";
483
- } | undefined;
484
- } | {
485
- type: "image";
486
- source: {
487
- type: "base64";
488
- media_type: "image/jpeg";
489
- data: string;
490
- };
491
- cache_control?: {
492
- type: "ephemeral";
493
- } | undefined;
494
- })[];
495
- role: "user" | "assistant";
496
- }[];
240
+ messageHistory: import("ai").CoreMessage[];
497
241
  consecutiveAssistantMessages?: number | undefined;
498
242
  }>;
499
243
  toolResults: z.ZodArray<z.ZodObject<{
@@ -547,41 +291,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
547
291
  content: string;
548
292
  }[][] | undefined;
549
293
  };
550
- messageHistory: {
551
- content: string | ({
552
- type: "text";
553
- text: string;
554
- cache_control?: {
555
- type: "ephemeral";
556
- } | undefined;
557
- } | {
558
- type: "tool_use";
559
- name: string;
560
- id: string;
561
- input: Record<string, any>;
562
- cache_control?: {
563
- type: "ephemeral";
564
- } | undefined;
565
- } | {
566
- type: "tool_result";
567
- content: string;
568
- tool_use_id: string;
569
- cache_control?: {
570
- type: "ephemeral";
571
- } | undefined;
572
- } | {
573
- type: "image";
574
- source: {
575
- type: "base64";
576
- media_type: "image/jpeg";
577
- data: string;
578
- };
579
- cache_control?: {
580
- type: "ephemeral";
581
- } | undefined;
582
- })[];
583
- role: "user" | "assistant";
584
- }[];
294
+ messageHistory: import("ai").CoreMessage[];
585
295
  consecutiveAssistantMessages?: number | undefined;
586
296
  };
587
297
  toolResults: {
@@ -628,41 +338,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
628
338
  content: string;
629
339
  }[][] | undefined;
630
340
  };
631
- messageHistory: {
632
- content: string | ({
633
- type: "text";
634
- text: string;
635
- cache_control?: {
636
- type: "ephemeral";
637
- } | undefined;
638
- } | {
639
- type: "tool_use";
640
- name: string;
641
- id: string;
642
- input: Record<string, any>;
643
- cache_control?: {
644
- type: "ephemeral";
645
- } | undefined;
646
- } | {
647
- type: "tool_result";
648
- content: string;
649
- tool_use_id: string;
650
- cache_control?: {
651
- type: "ephemeral";
652
- } | undefined;
653
- } | {
654
- type: "image";
655
- source: {
656
- type: "base64";
657
- media_type: "image/jpeg";
658
- data: string;
659
- };
660
- cache_control?: {
661
- type: "ephemeral";
662
- } | undefined;
663
- })[];
664
- role: "user" | "assistant";
665
- }[];
341
+ messageHistory: import("ai").CoreMessage[];
666
342
  consecutiveAssistantMessages?: number | undefined;
667
343
  };
668
344
  toolResults: {
@@ -921,41 +597,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
921
597
  content: string;
922
598
  }[][] | undefined;
923
599
  };
924
- messageHistory: {
925
- content: string | ({
926
- type: "text";
927
- text: string;
928
- cache_control?: {
929
- type: "ephemeral";
930
- } | undefined;
931
- } | {
932
- type: "tool_use";
933
- name: string;
934
- id: string;
935
- input: Record<string, any>;
936
- cache_control?: {
937
- type: "ephemeral";
938
- } | undefined;
939
- } | {
940
- type: "tool_result";
941
- content: string;
942
- tool_use_id: string;
943
- cache_control?: {
944
- type: "ephemeral";
945
- } | undefined;
946
- } | {
947
- type: "image";
948
- source: {
949
- type: "base64";
950
- media_type: "image/jpeg";
951
- data: string;
952
- };
953
- cache_control?: {
954
- type: "ephemeral";
955
- } | undefined;
956
- })[];
957
- role: "user" | "assistant";
958
- }[];
600
+ messageHistory: import("ai").CoreMessage[];
959
601
  consecutiveAssistantMessages?: number | undefined;
960
602
  };
961
603
  toolResults: {
@@ -1047,41 +689,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1047
689
  content: string;
1048
690
  }[][] | undefined;
1049
691
  };
1050
- messageHistory: {
1051
- content: string | ({
1052
- type: "text";
1053
- text: string;
1054
- cache_control?: {
1055
- type: "ephemeral";
1056
- } | undefined;
1057
- } | {
1058
- type: "tool_use";
1059
- name: string;
1060
- id: string;
1061
- input: Record<string, any>;
1062
- cache_control?: {
1063
- type: "ephemeral";
1064
- } | undefined;
1065
- } | {
1066
- type: "tool_result";
1067
- content: string;
1068
- tool_use_id: string;
1069
- cache_control?: {
1070
- type: "ephemeral";
1071
- } | undefined;
1072
- } | {
1073
- type: "image";
1074
- source: {
1075
- type: "base64";
1076
- media_type: "image/jpeg";
1077
- data: string;
1078
- };
1079
- cache_control?: {
1080
- type: "ephemeral";
1081
- } | undefined;
1082
- })[];
1083
- role: "user" | "assistant";
1084
- }[];
692
+ messageHistory: import("ai").CoreMessage[];
1085
693
  consecutiveAssistantMessages?: number | undefined;
1086
694
  };
1087
695
  toolResults: {
@@ -1309,195 +917,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1309
917
  content: string;
1310
918
  }[][] | undefined;
1311
919
  }>;
1312
- messageHistory: z.ZodArray<z.ZodObject<{
1313
- role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
1314
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1315
- type: z.ZodLiteral<"text">;
1316
- text: z.ZodString;
1317
- cache_control: z.ZodOptional<z.ZodObject<{
1318
- type: z.ZodLiteral<"ephemeral">;
1319
- }, "strip", z.ZodTypeAny, {
1320
- type: "ephemeral";
1321
- }, {
1322
- type: "ephemeral";
1323
- }>>;
1324
- }, "strip", z.ZodTypeAny, {
1325
- type: "text";
1326
- text: string;
1327
- cache_control?: {
1328
- type: "ephemeral";
1329
- } | undefined;
1330
- }, {
1331
- type: "text";
1332
- text: string;
1333
- cache_control?: {
1334
- type: "ephemeral";
1335
- } | undefined;
1336
- }>, z.ZodObject<{
1337
- type: z.ZodLiteral<"tool_use">;
1338
- id: z.ZodString;
1339
- name: z.ZodString;
1340
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
1341
- cache_control: z.ZodOptional<z.ZodObject<{
1342
- type: z.ZodLiteral<"ephemeral">;
1343
- }, "strip", z.ZodTypeAny, {
1344
- type: "ephemeral";
1345
- }, {
1346
- type: "ephemeral";
1347
- }>>;
1348
- }, "strip", z.ZodTypeAny, {
1349
- type: "tool_use";
1350
- name: string;
1351
- id: string;
1352
- input: Record<string, any>;
1353
- cache_control?: {
1354
- type: "ephemeral";
1355
- } | undefined;
1356
- }, {
1357
- type: "tool_use";
1358
- name: string;
1359
- id: string;
1360
- input: Record<string, any>;
1361
- cache_control?: {
1362
- type: "ephemeral";
1363
- } | undefined;
1364
- }>, z.ZodObject<{
1365
- type: z.ZodLiteral<"tool_result">;
1366
- tool_use_id: z.ZodString;
1367
- content: z.ZodString;
1368
- cache_control: z.ZodOptional<z.ZodObject<{
1369
- type: z.ZodLiteral<"ephemeral">;
1370
- }, "strip", z.ZodTypeAny, {
1371
- type: "ephemeral";
1372
- }, {
1373
- type: "ephemeral";
1374
- }>>;
1375
- }, "strip", z.ZodTypeAny, {
1376
- type: "tool_result";
1377
- content: string;
1378
- tool_use_id: string;
1379
- cache_control?: {
1380
- type: "ephemeral";
1381
- } | undefined;
1382
- }, {
1383
- type: "tool_result";
1384
- content: string;
1385
- tool_use_id: string;
1386
- cache_control?: {
1387
- type: "ephemeral";
1388
- } | undefined;
1389
- }>, z.ZodObject<{
1390
- type: z.ZodLiteral<"image">;
1391
- source: z.ZodObject<{
1392
- type: z.ZodLiteral<"base64">;
1393
- media_type: z.ZodLiteral<"image/jpeg">;
1394
- data: z.ZodString;
1395
- }, "strip", z.ZodTypeAny, {
1396
- type: "base64";
1397
- media_type: "image/jpeg";
1398
- data: string;
1399
- }, {
1400
- type: "base64";
1401
- media_type: "image/jpeg";
1402
- data: string;
1403
- }>;
1404
- cache_control: z.ZodOptional<z.ZodObject<{
1405
- type: z.ZodLiteral<"ephemeral">;
1406
- }, "strip", z.ZodTypeAny, {
1407
- type: "ephemeral";
1408
- }, {
1409
- type: "ephemeral";
1410
- }>>;
1411
- }, "strip", z.ZodTypeAny, {
1412
- type: "image";
1413
- source: {
1414
- type: "base64";
1415
- media_type: "image/jpeg";
1416
- data: string;
1417
- };
1418
- cache_control?: {
1419
- type: "ephemeral";
1420
- } | undefined;
1421
- }, {
1422
- type: "image";
1423
- source: {
1424
- type: "base64";
1425
- media_type: "image/jpeg";
1426
- data: string;
1427
- };
1428
- cache_control?: {
1429
- type: "ephemeral";
1430
- } | undefined;
1431
- }>]>, "many">]>;
1432
- }, "strip", z.ZodTypeAny, {
1433
- content: string | ({
1434
- type: "text";
1435
- text: string;
1436
- cache_control?: {
1437
- type: "ephemeral";
1438
- } | undefined;
1439
- } | {
1440
- type: "tool_use";
1441
- name: string;
1442
- id: string;
1443
- input: Record<string, any>;
1444
- cache_control?: {
1445
- type: "ephemeral";
1446
- } | undefined;
1447
- } | {
1448
- type: "tool_result";
1449
- content: string;
1450
- tool_use_id: string;
1451
- cache_control?: {
1452
- type: "ephemeral";
1453
- } | undefined;
1454
- } | {
1455
- type: "image";
1456
- source: {
1457
- type: "base64";
1458
- media_type: "image/jpeg";
1459
- data: string;
1460
- };
1461
- cache_control?: {
1462
- type: "ephemeral";
1463
- } | undefined;
1464
- })[];
1465
- role: "user" | "assistant";
1466
- }, {
1467
- content: string | ({
1468
- type: "text";
1469
- text: string;
1470
- cache_control?: {
1471
- type: "ephemeral";
1472
- } | undefined;
1473
- } | {
1474
- type: "tool_use";
1475
- name: string;
1476
- id: string;
1477
- input: Record<string, any>;
1478
- cache_control?: {
1479
- type: "ephemeral";
1480
- } | undefined;
1481
- } | {
1482
- type: "tool_result";
1483
- content: string;
1484
- tool_use_id: string;
1485
- cache_control?: {
1486
- type: "ephemeral";
1487
- } | undefined;
1488
- } | {
1489
- type: "image";
1490
- source: {
1491
- type: "base64";
1492
- media_type: "image/jpeg";
1493
- data: string;
1494
- };
1495
- cache_control?: {
1496
- type: "ephemeral";
1497
- } | undefined;
1498
- })[];
1499
- role: "user" | "assistant";
1500
- }>, "many">;
920
+ messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, "many">;
1501
921
  consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
1502
922
  }, "strip", z.ZodTypeAny, {
1503
923
  agentContext: string;
@@ -1529,41 +949,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1529
949
  content: string;
1530
950
  }[][] | undefined;
1531
951
  };
1532
- messageHistory: {
1533
- content: string | ({
1534
- type: "text";
1535
- text: string;
1536
- cache_control?: {
1537
- type: "ephemeral";
1538
- } | undefined;
1539
- } | {
1540
- type: "tool_use";
1541
- name: string;
1542
- id: string;
1543
- input: Record<string, any>;
1544
- cache_control?: {
1545
- type: "ephemeral";
1546
- } | undefined;
1547
- } | {
1548
- type: "tool_result";
1549
- content: string;
1550
- tool_use_id: string;
1551
- cache_control?: {
1552
- type: "ephemeral";
1553
- } | undefined;
1554
- } | {
1555
- type: "image";
1556
- source: {
1557
- type: "base64";
1558
- media_type: "image/jpeg";
1559
- data: string;
1560
- };
1561
- cache_control?: {
1562
- type: "ephemeral";
1563
- } | undefined;
1564
- })[];
1565
- role: "user" | "assistant";
1566
- }[];
952
+ messageHistory: import("ai").CoreMessage[];
1567
953
  consecutiveAssistantMessages?: number | undefined;
1568
954
  }, {
1569
955
  agentContext: string;
@@ -1595,41 +981,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1595
981
  content: string;
1596
982
  }[][] | undefined;
1597
983
  };
1598
- messageHistory: {
1599
- content: string | ({
1600
- type: "text";
1601
- text: string;
1602
- cache_control?: {
1603
- type: "ephemeral";
1604
- } | undefined;
1605
- } | {
1606
- type: "tool_use";
1607
- name: string;
1608
- id: string;
1609
- input: Record<string, any>;
1610
- cache_control?: {
1611
- type: "ephemeral";
1612
- } | undefined;
1613
- } | {
1614
- type: "tool_result";
1615
- content: string;
1616
- tool_use_id: string;
1617
- cache_control?: {
1618
- type: "ephemeral";
1619
- } | undefined;
1620
- } | {
1621
- type: "image";
1622
- source: {
1623
- type: "base64";
1624
- media_type: "image/jpeg";
1625
- data: string;
1626
- };
1627
- cache_control?: {
1628
- type: "ephemeral";
1629
- } | undefined;
1630
- })[];
1631
- role: "user" | "assistant";
1632
- }[];
984
+ messageHistory: import("ai").CoreMessage[];
1633
985
  consecutiveAssistantMessages?: number | undefined;
1634
986
  }>;
1635
987
  toolResults: z.ZodArray<z.ZodObject<{
@@ -1683,41 +1035,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1683
1035
  content: string;
1684
1036
  }[][] | undefined;
1685
1037
  };
1686
- messageHistory: {
1687
- content: string | ({
1688
- type: "text";
1689
- text: string;
1690
- cache_control?: {
1691
- type: "ephemeral";
1692
- } | undefined;
1693
- } | {
1694
- type: "tool_use";
1695
- name: string;
1696
- id: string;
1697
- input: Record<string, any>;
1698
- cache_control?: {
1699
- type: "ephemeral";
1700
- } | undefined;
1701
- } | {
1702
- type: "tool_result";
1703
- content: string;
1704
- tool_use_id: string;
1705
- cache_control?: {
1706
- type: "ephemeral";
1707
- } | undefined;
1708
- } | {
1709
- type: "image";
1710
- source: {
1711
- type: "base64";
1712
- media_type: "image/jpeg";
1713
- data: string;
1714
- };
1715
- cache_control?: {
1716
- type: "ephemeral";
1717
- } | undefined;
1718
- })[];
1719
- role: "user" | "assistant";
1720
- }[];
1038
+ messageHistory: import("ai").CoreMessage[];
1721
1039
  consecutiveAssistantMessages?: number | undefined;
1722
1040
  };
1723
1041
  toolResults: {
@@ -1764,41 +1082,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1764
1082
  content: string;
1765
1083
  }[][] | undefined;
1766
1084
  };
1767
- messageHistory: {
1768
- content: string | ({
1769
- type: "text";
1770
- text: string;
1771
- cache_control?: {
1772
- type: "ephemeral";
1773
- } | undefined;
1774
- } | {
1775
- type: "tool_use";
1776
- name: string;
1777
- id: string;
1778
- input: Record<string, any>;
1779
- cache_control?: {
1780
- type: "ephemeral";
1781
- } | undefined;
1782
- } | {
1783
- type: "tool_result";
1784
- content: string;
1785
- tool_use_id: string;
1786
- cache_control?: {
1787
- type: "ephemeral";
1788
- } | undefined;
1789
- } | {
1790
- type: "image";
1791
- source: {
1792
- type: "base64";
1793
- media_type: "image/jpeg";
1794
- data: string;
1795
- };
1796
- cache_control?: {
1797
- type: "ephemeral";
1798
- } | undefined;
1799
- })[];
1800
- role: "user" | "assistant";
1801
- }[];
1085
+ messageHistory: import("ai").CoreMessage[];
1802
1086
  consecutiveAssistantMessages?: number | undefined;
1803
1087
  };
1804
1088
  toolResults: {
@@ -2057,41 +1341,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2057
1341
  content: string;
2058
1342
  }[][] | undefined;
2059
1343
  };
2060
- messageHistory: {
2061
- content: string | ({
2062
- type: "text";
2063
- text: string;
2064
- cache_control?: {
2065
- type: "ephemeral";
2066
- } | undefined;
2067
- } | {
2068
- type: "tool_use";
2069
- name: string;
2070
- id: string;
2071
- input: Record<string, any>;
2072
- cache_control?: {
2073
- type: "ephemeral";
2074
- } | undefined;
2075
- } | {
2076
- type: "tool_result";
2077
- content: string;
2078
- tool_use_id: string;
2079
- cache_control?: {
2080
- type: "ephemeral";
2081
- } | undefined;
2082
- } | {
2083
- type: "image";
2084
- source: {
2085
- type: "base64";
2086
- media_type: "image/jpeg";
2087
- data: string;
2088
- };
2089
- cache_control?: {
2090
- type: "ephemeral";
2091
- } | undefined;
2092
- })[];
2093
- role: "user" | "assistant";
2094
- }[];
1344
+ messageHistory: import("ai").CoreMessage[];
2095
1345
  consecutiveAssistantMessages?: number | undefined;
2096
1346
  };
2097
1347
  toolResults: {
@@ -2183,41 +1433,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2183
1433
  content: string;
2184
1434
  }[][] | undefined;
2185
1435
  };
2186
- messageHistory: {
2187
- content: string | ({
2188
- type: "text";
2189
- text: string;
2190
- cache_control?: {
2191
- type: "ephemeral";
2192
- } | undefined;
2193
- } | {
2194
- type: "tool_use";
2195
- name: string;
2196
- id: string;
2197
- input: Record<string, any>;
2198
- cache_control?: {
2199
- type: "ephemeral";
2200
- } | undefined;
2201
- } | {
2202
- type: "tool_result";
2203
- content: string;
2204
- tool_use_id: string;
2205
- cache_control?: {
2206
- type: "ephemeral";
2207
- } | undefined;
2208
- } | {
2209
- type: "image";
2210
- source: {
2211
- type: "base64";
2212
- media_type: "image/jpeg";
2213
- data: string;
2214
- };
2215
- cache_control?: {
2216
- type: "ephemeral";
2217
- } | undefined;
2218
- })[];
2219
- role: "user" | "assistant";
2220
- }[];
1436
+ messageHistory: import("ai").CoreMessage[];
2221
1437
  consecutiveAssistantMessages?: number | undefined;
2222
1438
  };
2223
1439
  toolResults: {
@@ -2520,195 +1736,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2520
1736
  content: string;
2521
1737
  }[][] | undefined;
2522
1738
  }>;
2523
- messageHistory: z.ZodArray<z.ZodObject<{
2524
- role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
2525
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
2526
- type: z.ZodLiteral<"text">;
2527
- text: z.ZodString;
2528
- cache_control: z.ZodOptional<z.ZodObject<{
2529
- type: z.ZodLiteral<"ephemeral">;
2530
- }, "strip", z.ZodTypeAny, {
2531
- type: "ephemeral";
2532
- }, {
2533
- type: "ephemeral";
2534
- }>>;
2535
- }, "strip", z.ZodTypeAny, {
2536
- type: "text";
2537
- text: string;
2538
- cache_control?: {
2539
- type: "ephemeral";
2540
- } | undefined;
2541
- }, {
2542
- type: "text";
2543
- text: string;
2544
- cache_control?: {
2545
- type: "ephemeral";
2546
- } | undefined;
2547
- }>, z.ZodObject<{
2548
- type: z.ZodLiteral<"tool_use">;
2549
- id: z.ZodString;
2550
- name: z.ZodString;
2551
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
2552
- cache_control: z.ZodOptional<z.ZodObject<{
2553
- type: z.ZodLiteral<"ephemeral">;
2554
- }, "strip", z.ZodTypeAny, {
2555
- type: "ephemeral";
2556
- }, {
2557
- type: "ephemeral";
2558
- }>>;
2559
- }, "strip", z.ZodTypeAny, {
2560
- type: "tool_use";
2561
- name: string;
2562
- id: string;
2563
- input: Record<string, any>;
2564
- cache_control?: {
2565
- type: "ephemeral";
2566
- } | undefined;
2567
- }, {
2568
- type: "tool_use";
2569
- name: string;
2570
- id: string;
2571
- input: Record<string, any>;
2572
- cache_control?: {
2573
- type: "ephemeral";
2574
- } | undefined;
2575
- }>, z.ZodObject<{
2576
- type: z.ZodLiteral<"tool_result">;
2577
- tool_use_id: z.ZodString;
2578
- content: z.ZodString;
2579
- cache_control: z.ZodOptional<z.ZodObject<{
2580
- type: z.ZodLiteral<"ephemeral">;
2581
- }, "strip", z.ZodTypeAny, {
2582
- type: "ephemeral";
2583
- }, {
2584
- type: "ephemeral";
2585
- }>>;
2586
- }, "strip", z.ZodTypeAny, {
2587
- type: "tool_result";
2588
- content: string;
2589
- tool_use_id: string;
2590
- cache_control?: {
2591
- type: "ephemeral";
2592
- } | undefined;
2593
- }, {
2594
- type: "tool_result";
2595
- content: string;
2596
- tool_use_id: string;
2597
- cache_control?: {
2598
- type: "ephemeral";
2599
- } | undefined;
2600
- }>, z.ZodObject<{
2601
- type: z.ZodLiteral<"image">;
2602
- source: z.ZodObject<{
2603
- type: z.ZodLiteral<"base64">;
2604
- media_type: z.ZodLiteral<"image/jpeg">;
2605
- data: z.ZodString;
2606
- }, "strip", z.ZodTypeAny, {
2607
- type: "base64";
2608
- media_type: "image/jpeg";
2609
- data: string;
2610
- }, {
2611
- type: "base64";
2612
- media_type: "image/jpeg";
2613
- data: string;
2614
- }>;
2615
- cache_control: z.ZodOptional<z.ZodObject<{
2616
- type: z.ZodLiteral<"ephemeral">;
2617
- }, "strip", z.ZodTypeAny, {
2618
- type: "ephemeral";
2619
- }, {
2620
- type: "ephemeral";
2621
- }>>;
2622
- }, "strip", z.ZodTypeAny, {
2623
- type: "image";
2624
- source: {
2625
- type: "base64";
2626
- media_type: "image/jpeg";
2627
- data: string;
2628
- };
2629
- cache_control?: {
2630
- type: "ephemeral";
2631
- } | undefined;
2632
- }, {
2633
- type: "image";
2634
- source: {
2635
- type: "base64";
2636
- media_type: "image/jpeg";
2637
- data: string;
2638
- };
2639
- cache_control?: {
2640
- type: "ephemeral";
2641
- } | undefined;
2642
- }>]>, "many">]>;
2643
- }, "strip", z.ZodTypeAny, {
2644
- content: string | ({
2645
- type: "text";
2646
- text: string;
2647
- cache_control?: {
2648
- type: "ephemeral";
2649
- } | undefined;
2650
- } | {
2651
- type: "tool_use";
2652
- name: string;
2653
- id: string;
2654
- input: Record<string, any>;
2655
- cache_control?: {
2656
- type: "ephemeral";
2657
- } | undefined;
2658
- } | {
2659
- type: "tool_result";
2660
- content: string;
2661
- tool_use_id: string;
2662
- cache_control?: {
2663
- type: "ephemeral";
2664
- } | undefined;
2665
- } | {
2666
- type: "image";
2667
- source: {
2668
- type: "base64";
2669
- media_type: "image/jpeg";
2670
- data: string;
2671
- };
2672
- cache_control?: {
2673
- type: "ephemeral";
2674
- } | undefined;
2675
- })[];
2676
- role: "user" | "assistant";
2677
- }, {
2678
- content: string | ({
2679
- type: "text";
2680
- text: string;
2681
- cache_control?: {
2682
- type: "ephemeral";
2683
- } | undefined;
2684
- } | {
2685
- type: "tool_use";
2686
- name: string;
2687
- id: string;
2688
- input: Record<string, any>;
2689
- cache_control?: {
2690
- type: "ephemeral";
2691
- } | undefined;
2692
- } | {
2693
- type: "tool_result";
2694
- content: string;
2695
- tool_use_id: string;
2696
- cache_control?: {
2697
- type: "ephemeral";
2698
- } | undefined;
2699
- } | {
2700
- type: "image";
2701
- source: {
2702
- type: "base64";
2703
- media_type: "image/jpeg";
2704
- data: string;
2705
- };
2706
- cache_control?: {
2707
- type: "ephemeral";
2708
- } | undefined;
2709
- })[];
2710
- role: "user" | "assistant";
2711
- }>, "many">;
1739
+ messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, "many">;
2712
1740
  consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
2713
1741
  }, "strip", z.ZodTypeAny, {
2714
1742
  agentContext: string;
@@ -2740,41 +1768,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2740
1768
  content: string;
2741
1769
  }[][] | undefined;
2742
1770
  };
2743
- messageHistory: {
2744
- content: string | ({
2745
- type: "text";
2746
- text: string;
2747
- cache_control?: {
2748
- type: "ephemeral";
2749
- } | undefined;
2750
- } | {
2751
- type: "tool_use";
2752
- name: string;
2753
- id: string;
2754
- input: Record<string, any>;
2755
- cache_control?: {
2756
- type: "ephemeral";
2757
- } | undefined;
2758
- } | {
2759
- type: "tool_result";
2760
- content: string;
2761
- tool_use_id: string;
2762
- cache_control?: {
2763
- type: "ephemeral";
2764
- } | undefined;
2765
- } | {
2766
- type: "image";
2767
- source: {
2768
- type: "base64";
2769
- media_type: "image/jpeg";
2770
- data: string;
2771
- };
2772
- cache_control?: {
2773
- type: "ephemeral";
2774
- } | undefined;
2775
- })[];
2776
- role: "user" | "assistant";
2777
- }[];
1771
+ messageHistory: import("ai").CoreMessage[];
2778
1772
  consecutiveAssistantMessages?: number | undefined;
2779
1773
  }, {
2780
1774
  agentContext: string;
@@ -2806,41 +1800,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2806
1800
  content: string;
2807
1801
  }[][] | undefined;
2808
1802
  };
2809
- messageHistory: {
2810
- content: string | ({
2811
- type: "text";
2812
- text: string;
2813
- cache_control?: {
2814
- type: "ephemeral";
2815
- } | undefined;
2816
- } | {
2817
- type: "tool_use";
2818
- name: string;
2819
- id: string;
2820
- input: Record<string, any>;
2821
- cache_control?: {
2822
- type: "ephemeral";
2823
- } | undefined;
2824
- } | {
2825
- type: "tool_result";
2826
- content: string;
2827
- tool_use_id: string;
2828
- cache_control?: {
2829
- type: "ephemeral";
2830
- } | undefined;
2831
- } | {
2832
- type: "image";
2833
- source: {
2834
- type: "base64";
2835
- media_type: "image/jpeg";
2836
- data: string;
2837
- };
2838
- cache_control?: {
2839
- type: "ephemeral";
2840
- } | undefined;
2841
- })[];
2842
- role: "user" | "assistant";
2843
- }[];
1803
+ messageHistory: import("ai").CoreMessage[];
2844
1804
  consecutiveAssistantMessages?: number | undefined;
2845
1805
  }>;
2846
1806
  toolCalls: z.ZodArray<z.ZodObject<{
@@ -2849,12 +1809,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2849
1809
  id: z.ZodString;
2850
1810
  }, "strip", z.ZodTypeAny, {
2851
1811
  name: string;
2852
- id: string;
2853
1812
  parameters: Record<string, string>;
1813
+ id: string;
2854
1814
  }, {
2855
1815
  name: string;
2856
- id: string;
2857
1816
  parameters: Record<string, string>;
1817
+ id: string;
2858
1818
  }>, "many">;
2859
1819
  toolResults: z.ZodArray<z.ZodObject<{
2860
1820
  name: z.ZodString;
@@ -2902,41 +1862,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2902
1862
  content: string;
2903
1863
  }[][] | undefined;
2904
1864
  };
2905
- messageHistory: {
2906
- content: string | ({
2907
- type: "text";
2908
- text: string;
2909
- cache_control?: {
2910
- type: "ephemeral";
2911
- } | undefined;
2912
- } | {
2913
- type: "tool_use";
2914
- name: string;
2915
- id: string;
2916
- input: Record<string, any>;
2917
- cache_control?: {
2918
- type: "ephemeral";
2919
- } | undefined;
2920
- } | {
2921
- type: "tool_result";
2922
- content: string;
2923
- tool_use_id: string;
2924
- cache_control?: {
2925
- type: "ephemeral";
2926
- } | undefined;
2927
- } | {
2928
- type: "image";
2929
- source: {
2930
- type: "base64";
2931
- media_type: "image/jpeg";
2932
- data: string;
2933
- };
2934
- cache_control?: {
2935
- type: "ephemeral";
2936
- } | undefined;
2937
- })[];
2938
- role: "user" | "assistant";
2939
- }[];
1865
+ messageHistory: import("ai").CoreMessage[];
2940
1866
  consecutiveAssistantMessages?: number | undefined;
2941
1867
  };
2942
1868
  toolResults: {
@@ -2946,8 +1872,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2946
1872
  }[];
2947
1873
  toolCalls: {
2948
1874
  name: string;
2949
- id: string;
2950
1875
  parameters: Record<string, string>;
1876
+ id: string;
2951
1877
  }[];
2952
1878
  }, {
2953
1879
  type: "prompt-response";
@@ -2982,41 +1908,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2982
1908
  content: string;
2983
1909
  }[][] | undefined;
2984
1910
  };
2985
- messageHistory: {
2986
- content: string | ({
2987
- type: "text";
2988
- text: string;
2989
- cache_control?: {
2990
- type: "ephemeral";
2991
- } | undefined;
2992
- } | {
2993
- type: "tool_use";
2994
- name: string;
2995
- id: string;
2996
- input: Record<string, any>;
2997
- cache_control?: {
2998
- type: "ephemeral";
2999
- } | undefined;
3000
- } | {
3001
- type: "tool_result";
3002
- content: string;
3003
- tool_use_id: string;
3004
- cache_control?: {
3005
- type: "ephemeral";
3006
- } | undefined;
3007
- } | {
3008
- type: "image";
3009
- source: {
3010
- type: "base64";
3011
- media_type: "image/jpeg";
3012
- data: string;
3013
- };
3014
- cache_control?: {
3015
- type: "ephemeral";
3016
- } | undefined;
3017
- })[];
3018
- role: "user" | "assistant";
3019
- }[];
1911
+ messageHistory: import("ai").CoreMessage[];
3020
1912
  consecutiveAssistantMessages?: number | undefined;
3021
1913
  };
3022
1914
  toolResults: {
@@ -3026,8 +1918,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3026
1918
  }[];
3027
1919
  toolCalls: {
3028
1920
  name: string;
3029
- id: string;
3030
1921
  parameters: Record<string, string>;
1922
+ id: string;
3031
1923
  }[];
3032
1924
  }>, z.ZodObject<{
3033
1925
  type: z.ZodLiteral<"read-files">;
@@ -3097,11 +1989,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3097
1989
  resetFileVersions: z.ZodBoolean;
3098
1990
  }, "strip", z.ZodTypeAny, {
3099
1991
  type: "tool-call";
3100
- data: {
3101
- name: string;
3102
- id: string;
3103
- input: Record<string, any>;
3104
- };
3105
1992
  userInputId: string;
3106
1993
  response: string;
3107
1994
  changes: {
@@ -3119,13 +2006,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3119
2006
  content: string;
3120
2007
  }[];
3121
2008
  resetFileVersions: boolean;
3122
- }, {
3123
- type: "tool-call";
3124
2009
  data: {
3125
2010
  name: string;
3126
2011
  id: string;
3127
2012
  input: Record<string, any>;
3128
2013
  };
2014
+ }, {
2015
+ type: "tool-call";
3129
2016
  userInputId: string;
3130
2017
  response: string;
3131
2018
  changes: {
@@ -3143,6 +2030,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3143
2030
  content: string;
3144
2031
  }[];
3145
2032
  resetFileVersions: boolean;
2033
+ data: {
2034
+ name: string;
2035
+ id: string;
2036
+ input: Record<string, any>;
2037
+ };
3146
2038
  }>, z.ZodObject<{
3147
2039
  type: z.ZodLiteral<"terminal-command-result">;
3148
2040
  userInputId: z.ZodString;
@@ -3331,41 +2223,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3331
2223
  content: string;
3332
2224
  }[][] | undefined;
3333
2225
  };
3334
- messageHistory: {
3335
- content: string | ({
3336
- type: "text";
3337
- text: string;
3338
- cache_control?: {
3339
- type: "ephemeral";
3340
- } | undefined;
3341
- } | {
3342
- type: "tool_use";
3343
- name: string;
3344
- id: string;
3345
- input: Record<string, any>;
3346
- cache_control?: {
3347
- type: "ephemeral";
3348
- } | undefined;
3349
- } | {
3350
- type: "tool_result";
3351
- content: string;
3352
- tool_use_id: string;
3353
- cache_control?: {
3354
- type: "ephemeral";
3355
- } | undefined;
3356
- } | {
3357
- type: "image";
3358
- source: {
3359
- type: "base64";
3360
- media_type: "image/jpeg";
3361
- data: string;
3362
- };
3363
- cache_control?: {
3364
- type: "ephemeral";
3365
- } | undefined;
3366
- })[];
3367
- role: "user" | "assistant";
3368
- }[];
2226
+ messageHistory: import("ai").CoreMessage[];
3369
2227
  consecutiveAssistantMessages?: number | undefined;
3370
2228
  };
3371
2229
  toolResults: {
@@ -3375,8 +2233,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3375
2233
  }[];
3376
2234
  toolCalls: {
3377
2235
  name: string;
3378
- id: string;
3379
2236
  parameters: Record<string, string>;
2237
+ id: string;
3380
2238
  }[];
3381
2239
  } | {
3382
2240
  type: "response-chunk";
@@ -3388,11 +2246,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3388
2246
  filePaths: string[];
3389
2247
  } | {
3390
2248
  type: "tool-call";
3391
- data: {
3392
- name: string;
3393
- id: string;
3394
- input: Record<string, any>;
3395
- };
3396
2249
  userInputId: string;
3397
2250
  response: string;
3398
2251
  changes: {
@@ -3410,6 +2263,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3410
2263
  content: string;
3411
2264
  }[];
3412
2265
  resetFileVersions: boolean;
2266
+ data: {
2267
+ name: string;
2268
+ id: string;
2269
+ input: Record<string, any>;
2270
+ };
3413
2271
  } | {
3414
2272
  type: "terminal-command-result";
3415
2273
  result: string;
@@ -3506,41 +2364,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3506
2364
  content: string;
3507
2365
  }[][] | undefined;
3508
2366
  };
3509
- messageHistory: {
3510
- content: string | ({
3511
- type: "text";
3512
- text: string;
3513
- cache_control?: {
3514
- type: "ephemeral";
3515
- } | undefined;
3516
- } | {
3517
- type: "tool_use";
3518
- name: string;
3519
- id: string;
3520
- input: Record<string, any>;
3521
- cache_control?: {
3522
- type: "ephemeral";
3523
- } | undefined;
3524
- } | {
3525
- type: "tool_result";
3526
- content: string;
3527
- tool_use_id: string;
3528
- cache_control?: {
3529
- type: "ephemeral";
3530
- } | undefined;
3531
- } | {
3532
- type: "image";
3533
- source: {
3534
- type: "base64";
3535
- media_type: "image/jpeg";
3536
- data: string;
3537
- };
3538
- cache_control?: {
3539
- type: "ephemeral";
3540
- } | undefined;
3541
- })[];
3542
- role: "user" | "assistant";
3543
- }[];
2367
+ messageHistory: import("ai").CoreMessage[];
3544
2368
  consecutiveAssistantMessages?: number | undefined;
3545
2369
  };
3546
2370
  toolResults: {
@@ -3550,8 +2374,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3550
2374
  }[];
3551
2375
  toolCalls: {
3552
2376
  name: string;
3553
- id: string;
3554
2377
  parameters: Record<string, string>;
2378
+ id: string;
3555
2379
  }[];
3556
2380
  } | {
3557
2381
  type: "response-chunk";
@@ -3563,11 +2387,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3563
2387
  filePaths: string[];
3564
2388
  } | {
3565
2389
  type: "tool-call";
3566
- data: {
3567
- name: string;
3568
- id: string;
3569
- input: Record<string, any>;
3570
- };
3571
2390
  userInputId: string;
3572
2391
  response: string;
3573
2392
  changes: {
@@ -3585,6 +2404,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3585
2404
  content: string;
3586
2405
  }[];
3587
2406
  resetFileVersions: boolean;
2407
+ data: {
2408
+ name: string;
2409
+ id: string;
2410
+ input: Record<string, any>;
2411
+ };
3588
2412
  } | {
3589
2413
  type: "terminal-command-result";
3590
2414
  result: string;
@@ -3847,195 +2671,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3847
2671
  content: string;
3848
2672
  }[][] | undefined;
3849
2673
  }>;
3850
- messageHistory: z.ZodArray<z.ZodObject<{
3851
- role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
3852
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
3853
- type: z.ZodLiteral<"text">;
3854
- text: z.ZodString;
3855
- cache_control: z.ZodOptional<z.ZodObject<{
3856
- type: z.ZodLiteral<"ephemeral">;
3857
- }, "strip", z.ZodTypeAny, {
3858
- type: "ephemeral";
3859
- }, {
3860
- type: "ephemeral";
3861
- }>>;
3862
- }, "strip", z.ZodTypeAny, {
3863
- type: "text";
3864
- text: string;
3865
- cache_control?: {
3866
- type: "ephemeral";
3867
- } | undefined;
3868
- }, {
3869
- type: "text";
3870
- text: string;
3871
- cache_control?: {
3872
- type: "ephemeral";
3873
- } | undefined;
3874
- }>, z.ZodObject<{
3875
- type: z.ZodLiteral<"tool_use">;
3876
- id: z.ZodString;
3877
- name: z.ZodString;
3878
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
3879
- cache_control: z.ZodOptional<z.ZodObject<{
3880
- type: z.ZodLiteral<"ephemeral">;
3881
- }, "strip", z.ZodTypeAny, {
3882
- type: "ephemeral";
3883
- }, {
3884
- type: "ephemeral";
3885
- }>>;
3886
- }, "strip", z.ZodTypeAny, {
3887
- type: "tool_use";
3888
- name: string;
3889
- id: string;
3890
- input: Record<string, any>;
3891
- cache_control?: {
3892
- type: "ephemeral";
3893
- } | undefined;
3894
- }, {
3895
- type: "tool_use";
3896
- name: string;
3897
- id: string;
3898
- input: Record<string, any>;
3899
- cache_control?: {
3900
- type: "ephemeral";
3901
- } | undefined;
3902
- }>, z.ZodObject<{
3903
- type: z.ZodLiteral<"tool_result">;
3904
- tool_use_id: z.ZodString;
3905
- content: z.ZodString;
3906
- cache_control: z.ZodOptional<z.ZodObject<{
3907
- type: z.ZodLiteral<"ephemeral">;
3908
- }, "strip", z.ZodTypeAny, {
3909
- type: "ephemeral";
3910
- }, {
3911
- type: "ephemeral";
3912
- }>>;
3913
- }, "strip", z.ZodTypeAny, {
3914
- type: "tool_result";
3915
- content: string;
3916
- tool_use_id: string;
3917
- cache_control?: {
3918
- type: "ephemeral";
3919
- } | undefined;
3920
- }, {
3921
- type: "tool_result";
3922
- content: string;
3923
- tool_use_id: string;
3924
- cache_control?: {
3925
- type: "ephemeral";
3926
- } | undefined;
3927
- }>, z.ZodObject<{
3928
- type: z.ZodLiteral<"image">;
3929
- source: z.ZodObject<{
3930
- type: z.ZodLiteral<"base64">;
3931
- media_type: z.ZodLiteral<"image/jpeg">;
3932
- data: z.ZodString;
3933
- }, "strip", z.ZodTypeAny, {
3934
- type: "base64";
3935
- media_type: "image/jpeg";
3936
- data: string;
3937
- }, {
3938
- type: "base64";
3939
- media_type: "image/jpeg";
3940
- data: string;
3941
- }>;
3942
- cache_control: z.ZodOptional<z.ZodObject<{
3943
- type: z.ZodLiteral<"ephemeral">;
3944
- }, "strip", z.ZodTypeAny, {
3945
- type: "ephemeral";
3946
- }, {
3947
- type: "ephemeral";
3948
- }>>;
3949
- }, "strip", z.ZodTypeAny, {
3950
- type: "image";
3951
- source: {
3952
- type: "base64";
3953
- media_type: "image/jpeg";
3954
- data: string;
3955
- };
3956
- cache_control?: {
3957
- type: "ephemeral";
3958
- } | undefined;
3959
- }, {
3960
- type: "image";
3961
- source: {
3962
- type: "base64";
3963
- media_type: "image/jpeg";
3964
- data: string;
3965
- };
3966
- cache_control?: {
3967
- type: "ephemeral";
3968
- } | undefined;
3969
- }>]>, "many">]>;
3970
- }, "strip", z.ZodTypeAny, {
3971
- content: string | ({
3972
- type: "text";
3973
- text: string;
3974
- cache_control?: {
3975
- type: "ephemeral";
3976
- } | undefined;
3977
- } | {
3978
- type: "tool_use";
3979
- name: string;
3980
- id: string;
3981
- input: Record<string, any>;
3982
- cache_control?: {
3983
- type: "ephemeral";
3984
- } | undefined;
3985
- } | {
3986
- type: "tool_result";
3987
- content: string;
3988
- tool_use_id: string;
3989
- cache_control?: {
3990
- type: "ephemeral";
3991
- } | undefined;
3992
- } | {
3993
- type: "image";
3994
- source: {
3995
- type: "base64";
3996
- media_type: "image/jpeg";
3997
- data: string;
3998
- };
3999
- cache_control?: {
4000
- type: "ephemeral";
4001
- } | undefined;
4002
- })[];
4003
- role: "user" | "assistant";
4004
- }, {
4005
- content: string | ({
4006
- type: "text";
4007
- text: string;
4008
- cache_control?: {
4009
- type: "ephemeral";
4010
- } | undefined;
4011
- } | {
4012
- type: "tool_use";
4013
- name: string;
4014
- id: string;
4015
- input: Record<string, any>;
4016
- cache_control?: {
4017
- type: "ephemeral";
4018
- } | undefined;
4019
- } | {
4020
- type: "tool_result";
4021
- content: string;
4022
- tool_use_id: string;
4023
- cache_control?: {
4024
- type: "ephemeral";
4025
- } | undefined;
4026
- } | {
4027
- type: "image";
4028
- source: {
4029
- type: "base64";
4030
- media_type: "image/jpeg";
4031
- data: string;
4032
- };
4033
- cache_control?: {
4034
- type: "ephemeral";
4035
- } | undefined;
4036
- })[];
4037
- role: "user" | "assistant";
4038
- }>, "many">;
2674
+ messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, "many">;
4039
2675
  consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
4040
2676
  }, "strip", z.ZodTypeAny, {
4041
2677
  agentContext: string;
@@ -4067,41 +2703,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4067
2703
  content: string;
4068
2704
  }[][] | undefined;
4069
2705
  };
4070
- messageHistory: {
4071
- content: string | ({
4072
- type: "text";
4073
- text: string;
4074
- cache_control?: {
4075
- type: "ephemeral";
4076
- } | undefined;
4077
- } | {
4078
- type: "tool_use";
4079
- name: string;
4080
- id: string;
4081
- input: Record<string, any>;
4082
- cache_control?: {
4083
- type: "ephemeral";
4084
- } | undefined;
4085
- } | {
4086
- type: "tool_result";
4087
- content: string;
4088
- tool_use_id: string;
4089
- cache_control?: {
4090
- type: "ephemeral";
4091
- } | undefined;
4092
- } | {
4093
- type: "image";
4094
- source: {
4095
- type: "base64";
4096
- media_type: "image/jpeg";
4097
- data: string;
4098
- };
4099
- cache_control?: {
4100
- type: "ephemeral";
4101
- } | undefined;
4102
- })[];
4103
- role: "user" | "assistant";
4104
- }[];
2706
+ messageHistory: import("ai").CoreMessage[];
4105
2707
  consecutiveAssistantMessages?: number | undefined;
4106
2708
  }, {
4107
2709
  agentContext: string;
@@ -4133,41 +2735,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4133
2735
  content: string;
4134
2736
  }[][] | undefined;
4135
2737
  };
4136
- messageHistory: {
4137
- content: string | ({
4138
- type: "text";
4139
- text: string;
4140
- cache_control?: {
4141
- type: "ephemeral";
4142
- } | undefined;
4143
- } | {
4144
- type: "tool_use";
4145
- name: string;
4146
- id: string;
4147
- input: Record<string, any>;
4148
- cache_control?: {
4149
- type: "ephemeral";
4150
- } | undefined;
4151
- } | {
4152
- type: "tool_result";
4153
- content: string;
4154
- tool_use_id: string;
4155
- cache_control?: {
4156
- type: "ephemeral";
4157
- } | undefined;
4158
- } | {
4159
- type: "image";
4160
- source: {
4161
- type: "base64";
4162
- media_type: "image/jpeg";
4163
- data: string;
4164
- };
4165
- cache_control?: {
4166
- type: "ephemeral";
4167
- } | undefined;
4168
- })[];
4169
- role: "user" | "assistant";
4170
- }[];
2738
+ messageHistory: import("ai").CoreMessage[];
4171
2739
  consecutiveAssistantMessages?: number | undefined;
4172
2740
  }>;
4173
2741
  toolCalls: z.ZodArray<z.ZodObject<{
@@ -4176,12 +2744,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4176
2744
  id: z.ZodString;
4177
2745
  }, "strip", z.ZodTypeAny, {
4178
2746
  name: string;
4179
- id: string;
4180
2747
  parameters: Record<string, string>;
2748
+ id: string;
4181
2749
  }, {
4182
2750
  name: string;
4183
- id: string;
4184
2751
  parameters: Record<string, string>;
2752
+ id: string;
4185
2753
  }>, "many">;
4186
2754
  toolResults: z.ZodArray<z.ZodObject<{
4187
2755
  name: z.ZodString;
@@ -4229,41 +2797,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4229
2797
  content: string;
4230
2798
  }[][] | undefined;
4231
2799
  };
4232
- messageHistory: {
4233
- content: string | ({
4234
- type: "text";
4235
- text: string;
4236
- cache_control?: {
4237
- type: "ephemeral";
4238
- } | undefined;
4239
- } | {
4240
- type: "tool_use";
4241
- name: string;
4242
- id: string;
4243
- input: Record<string, any>;
4244
- cache_control?: {
4245
- type: "ephemeral";
4246
- } | undefined;
4247
- } | {
4248
- type: "tool_result";
4249
- content: string;
4250
- tool_use_id: string;
4251
- cache_control?: {
4252
- type: "ephemeral";
4253
- } | undefined;
4254
- } | {
4255
- type: "image";
4256
- source: {
4257
- type: "base64";
4258
- media_type: "image/jpeg";
4259
- data: string;
4260
- };
4261
- cache_control?: {
4262
- type: "ephemeral";
4263
- } | undefined;
4264
- })[];
4265
- role: "user" | "assistant";
4266
- }[];
2800
+ messageHistory: import("ai").CoreMessage[];
4267
2801
  consecutiveAssistantMessages?: number | undefined;
4268
2802
  };
4269
2803
  toolResults: {
@@ -4273,8 +2807,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4273
2807
  }[];
4274
2808
  toolCalls: {
4275
2809
  name: string;
4276
- id: string;
4277
2810
  parameters: Record<string, string>;
2811
+ id: string;
4278
2812
  }[];
4279
2813
  }, {
4280
2814
  type: "prompt-response";
@@ -4309,41 +2843,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4309
2843
  content: string;
4310
2844
  }[][] | undefined;
4311
2845
  };
4312
- messageHistory: {
4313
- content: string | ({
4314
- type: "text";
4315
- text: string;
4316
- cache_control?: {
4317
- type: "ephemeral";
4318
- } | undefined;
4319
- } | {
4320
- type: "tool_use";
4321
- name: string;
4322
- id: string;
4323
- input: Record<string, any>;
4324
- cache_control?: {
4325
- type: "ephemeral";
4326
- } | undefined;
4327
- } | {
4328
- type: "tool_result";
4329
- content: string;
4330
- tool_use_id: string;
4331
- cache_control?: {
4332
- type: "ephemeral";
4333
- } | undefined;
4334
- } | {
4335
- type: "image";
4336
- source: {
4337
- type: "base64";
4338
- media_type: "image/jpeg";
4339
- data: string;
4340
- };
4341
- cache_control?: {
4342
- type: "ephemeral";
4343
- } | undefined;
4344
- })[];
4345
- role: "user" | "assistant";
4346
- }[];
2846
+ messageHistory: import("ai").CoreMessage[];
4347
2847
  consecutiveAssistantMessages?: number | undefined;
4348
2848
  };
4349
2849
  toolResults: {
@@ -4353,8 +2853,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4353
2853
  }[];
4354
2854
  toolCalls: {
4355
2855
  name: string;
4356
- id: string;
4357
2856
  parameters: Record<string, string>;
2857
+ id: string;
4358
2858
  }[];
4359
2859
  }>, z.ZodObject<{
4360
2860
  type: z.ZodLiteral<"read-files">;
@@ -4424,11 +2924,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4424
2924
  resetFileVersions: z.ZodBoolean;
4425
2925
  }, "strip", z.ZodTypeAny, {
4426
2926
  type: "tool-call";
4427
- data: {
4428
- name: string;
4429
- id: string;
4430
- input: Record<string, any>;
4431
- };
4432
2927
  userInputId: string;
4433
2928
  response: string;
4434
2929
  changes: {
@@ -4446,13 +2941,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4446
2941
  content: string;
4447
2942
  }[];
4448
2943
  resetFileVersions: boolean;
4449
- }, {
4450
- type: "tool-call";
4451
2944
  data: {
4452
2945
  name: string;
4453
2946
  id: string;
4454
2947
  input: Record<string, any>;
4455
2948
  };
2949
+ }, {
2950
+ type: "tool-call";
4456
2951
  userInputId: string;
4457
2952
  response: string;
4458
2953
  changes: {
@@ -4470,6 +2965,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4470
2965
  content: string;
4471
2966
  }[];
4472
2967
  resetFileVersions: boolean;
2968
+ data: {
2969
+ name: string;
2970
+ id: string;
2971
+ input: Record<string, any>;
2972
+ };
4473
2973
  }>, z.ZodObject<{
4474
2974
  type: z.ZodLiteral<"terminal-command-result">;
4475
2975
  userInputId: z.ZodString;
@@ -4658,41 +3158,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4658
3158
  content: string;
4659
3159
  }[][] | undefined;
4660
3160
  };
4661
- messageHistory: {
4662
- content: string | ({
4663
- type: "text";
4664
- text: string;
4665
- cache_control?: {
4666
- type: "ephemeral";
4667
- } | undefined;
4668
- } | {
4669
- type: "tool_use";
4670
- name: string;
4671
- id: string;
4672
- input: Record<string, any>;
4673
- cache_control?: {
4674
- type: "ephemeral";
4675
- } | undefined;
4676
- } | {
4677
- type: "tool_result";
4678
- content: string;
4679
- tool_use_id: string;
4680
- cache_control?: {
4681
- type: "ephemeral";
4682
- } | undefined;
4683
- } | {
4684
- type: "image";
4685
- source: {
4686
- type: "base64";
4687
- media_type: "image/jpeg";
4688
- data: string;
4689
- };
4690
- cache_control?: {
4691
- type: "ephemeral";
4692
- } | undefined;
4693
- })[];
4694
- role: "user" | "assistant";
4695
- }[];
3161
+ messageHistory: import("ai").CoreMessage[];
4696
3162
  consecutiveAssistantMessages?: number | undefined;
4697
3163
  };
4698
3164
  toolResults: {
@@ -4702,8 +3168,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4702
3168
  }[];
4703
3169
  toolCalls: {
4704
3170
  name: string;
4705
- id: string;
4706
3171
  parameters: Record<string, string>;
3172
+ id: string;
4707
3173
  }[];
4708
3174
  } | {
4709
3175
  type: "response-chunk";
@@ -4715,11 +3181,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4715
3181
  filePaths: string[];
4716
3182
  } | {
4717
3183
  type: "tool-call";
4718
- data: {
4719
- name: string;
4720
- id: string;
4721
- input: Record<string, any>;
4722
- };
4723
3184
  userInputId: string;
4724
3185
  response: string;
4725
3186
  changes: {
@@ -4737,6 +3198,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4737
3198
  content: string;
4738
3199
  }[];
4739
3200
  resetFileVersions: boolean;
3201
+ data: {
3202
+ name: string;
3203
+ id: string;
3204
+ input: Record<string, any>;
3205
+ };
4740
3206
  } | {
4741
3207
  type: "terminal-command-result";
4742
3208
  result: string;
@@ -4833,41 +3299,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4833
3299
  content: string;
4834
3300
  }[][] | undefined;
4835
3301
  };
4836
- messageHistory: {
4837
- content: string | ({
4838
- type: "text";
4839
- text: string;
4840
- cache_control?: {
4841
- type: "ephemeral";
4842
- } | undefined;
4843
- } | {
4844
- type: "tool_use";
4845
- name: string;
4846
- id: string;
4847
- input: Record<string, any>;
4848
- cache_control?: {
4849
- type: "ephemeral";
4850
- } | undefined;
4851
- } | {
4852
- type: "tool_result";
4853
- content: string;
4854
- tool_use_id: string;
4855
- cache_control?: {
4856
- type: "ephemeral";
4857
- } | undefined;
4858
- } | {
4859
- type: "image";
4860
- source: {
4861
- type: "base64";
4862
- media_type: "image/jpeg";
4863
- data: string;
4864
- };
4865
- cache_control?: {
4866
- type: "ephemeral";
4867
- } | undefined;
4868
- })[];
4869
- role: "user" | "assistant";
4870
- }[];
3302
+ messageHistory: import("ai").CoreMessage[];
4871
3303
  consecutiveAssistantMessages?: number | undefined;
4872
3304
  };
4873
3305
  toolResults: {
@@ -4877,8 +3309,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4877
3309
  }[];
4878
3310
  toolCalls: {
4879
3311
  name: string;
4880
- id: string;
4881
3312
  parameters: Record<string, string>;
3313
+ id: string;
4882
3314
  }[];
4883
3315
  } | {
4884
3316
  type: "response-chunk";
@@ -4890,11 +3322,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4890
3322
  filePaths: string[];
4891
3323
  } | {
4892
3324
  type: "tool-call";
4893
- data: {
4894
- name: string;
4895
- id: string;
4896
- input: Record<string, any>;
4897
- };
4898
3325
  userInputId: string;
4899
3326
  response: string;
4900
3327
  changes: {
@@ -4912,6 +3339,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4912
3339
  content: string;
4913
3340
  }[];
4914
3341
  resetFileVersions: boolean;
3342
+ data: {
3343
+ name: string;
3344
+ id: string;
3345
+ input: Record<string, any>;
3346
+ };
4915
3347
  } | {
4916
3348
  type: "terminal-command-result";
4917
3349
  result: string;