codebuff 1.0.192 → 1.0.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,13 @@ export declare const FileChangeSchema: z.ZodObject<{
4
4
  path: z.ZodString;
5
5
  content: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- type: "patch" | "file";
8
7
  path: string;
9
8
  content: string;
9
+ type: "file" | "patch";
10
10
  }, {
11
- type: "patch" | "file";
12
11
  path: string;
13
12
  content: string;
13
+ type: "file" | "patch";
14
14
  }>;
15
15
  export type FileChange = z.infer<typeof FileChangeSchema>;
16
16
  export declare const CHANGES: z.ZodArray<z.ZodObject<{
@@ -18,13 +18,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
18
18
  path: z.ZodString;
19
19
  content: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
- type: "patch" | "file";
22
21
  path: string;
23
22
  content: string;
23
+ type: "file" | "patch";
24
24
  }, {
25
- type: "patch" | "file";
26
25
  path: string;
27
26
  content: string;
27
+ type: "file" | "patch";
28
28
  }>, "many">;
29
29
  export type FileChanges = z.infer<typeof CHANGES>;
30
30
  export declare const ToolCallSchema: z.ZodObject<{
@@ -110,15 +110,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
110
110
  type: "ephemeral";
111
111
  }>>;
112
112
  }, "strip", z.ZodTypeAny, {
113
- type: "tool_result";
114
113
  content: string;
114
+ type: "tool_result";
115
115
  tool_use_id: string;
116
116
  cache_control?: {
117
117
  type: "ephemeral";
118
118
  } | undefined;
119
119
  }, {
120
- type: "tool_result";
121
120
  content: string;
121
+ type: "tool_result";
122
122
  tool_use_id: string;
123
123
  cache_control?: {
124
124
  type: "ephemeral";
@@ -182,8 +182,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
182
182
  type: "ephemeral";
183
183
  } | undefined;
184
184
  } | {
185
- type: "tool_result";
186
185
  content: string;
186
+ type: "tool_result";
187
187
  tool_use_id: string;
188
188
  cache_control?: {
189
189
  type: "ephemeral";
@@ -216,8 +216,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
216
216
  type: "ephemeral";
217
217
  } | undefined;
218
218
  } | {
219
- type: "tool_result";
220
219
  content: string;
220
+ type: "tool_result";
221
221
  tool_use_id: string;
222
222
  cache_control?: {
223
223
  type: "ephemeral";
@@ -281,7 +281,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
281
281
  homedir: string;
282
282
  cpus: number;
283
283
  }>;
284
- fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
284
+ fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
285
285
  path: z.ZodString;
286
286
  content: z.ZodString;
287
287
  }, "strip", z.ZodTypeAny, {
@@ -290,7 +290,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
290
290
  }, {
291
291
  path: string;
292
292
  content: string;
293
- }>, "many">, "many">;
293
+ }>, "many">, "many">>;
294
294
  }, "strip", z.ZodTypeAny, {
295
295
  currentWorkingDirectory: string;
296
296
  fileTree: import("./util/file").FileTreeNode[];
@@ -312,11 +312,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
312
312
  homedir: string;
313
313
  cpus: number;
314
314
  };
315
- fileVersions: {
315
+ userKnowledgeFiles?: Record<string, string> | undefined;
316
+ fileVersions?: {
316
317
  path: string;
317
318
  content: string;
318
- }[][];
319
- userKnowledgeFiles?: Record<string, string> | undefined;
319
+ }[][] | undefined;
320
320
  }, {
321
321
  currentWorkingDirectory: string;
322
322
  fileTree: import("./util/file").FileTreeNode[];
@@ -338,28 +338,55 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
338
338
  homedir: string;
339
339
  cpus: number;
340
340
  };
341
- fileVersions: {
341
+ userKnowledgeFiles?: Record<string, string> | undefined;
342
+ fileVersions?: {
342
343
  path: string;
343
344
  content: string;
344
- }[][];
345
- userKnowledgeFiles?: Record<string, string> | undefined;
345
+ }[][] | undefined;
346
346
  }>;
347
347
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
348
348
  type: z.ZodEnum<["patch", "file"]>;
349
349
  path: z.ZodString;
350
350
  content: z.ZodString;
351
351
  }, "strip", z.ZodTypeAny, {
352
- type: "patch" | "file";
353
352
  path: string;
354
353
  content: string;
354
+ type: "file" | "patch";
355
355
  }, {
356
- type: "patch" | "file";
357
356
  path: string;
358
357
  content: string;
358
+ type: "file" | "patch";
359
359
  }>, "many">;
360
360
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
361
361
  }, "strip", z.ZodTypeAny, {
362
362
  type: "user-input";
363
+ fileContext: {
364
+ currentWorkingDirectory: string;
365
+ fileTree: import("./util/file").FileTreeNode[];
366
+ fileTokenScores: Record<string, Record<string, number>>;
367
+ knowledgeFiles: Record<string, string>;
368
+ gitChanges: {
369
+ status: string;
370
+ diff: string;
371
+ diffCached: string;
372
+ lastCommitMessages: string;
373
+ };
374
+ changesSinceLastChat: Record<string, string>;
375
+ shellConfigFiles: Record<string, string>;
376
+ systemInfo: {
377
+ platform: string;
378
+ shell: string;
379
+ nodeVersion: string;
380
+ arch: string;
381
+ homedir: string;
382
+ cpus: number;
383
+ };
384
+ userKnowledgeFiles?: Record<string, string> | undefined;
385
+ fileVersions?: {
386
+ path: string;
387
+ content: string;
388
+ }[][] | undefined;
389
+ };
363
390
  fingerprintId: string;
364
391
  userInputId: string;
365
392
  messages: {
@@ -378,8 +405,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
378
405
  type: "ephemeral";
379
406
  } | undefined;
380
407
  } | {
381
- type: "tool_result";
382
408
  content: string;
409
+ type: "tool_result";
383
410
  tool_use_id: string;
384
411
  cache_control?: {
385
412
  type: "ephemeral";
@@ -397,6 +424,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
397
424
  })[];
398
425
  role: "user" | "assistant";
399
426
  }[];
427
+ changesAlreadyApplied: {
428
+ path: string;
429
+ content: string;
430
+ type: "file" | "patch";
431
+ }[];
432
+ costMode: "max" | "lite" | "normal";
433
+ authToken?: string | undefined;
434
+ }, {
435
+ type: "user-input";
400
436
  fileContext: {
401
437
  currentWorkingDirectory: string;
402
438
  fileTree: import("./util/file").FileTreeNode[];
@@ -418,21 +454,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
418
454
  homedir: string;
419
455
  cpus: number;
420
456
  };
421
- fileVersions: {
457
+ userKnowledgeFiles?: Record<string, string> | undefined;
458
+ fileVersions?: {
422
459
  path: string;
423
460
  content: string;
424
- }[][];
425
- userKnowledgeFiles?: Record<string, string> | undefined;
461
+ }[][] | undefined;
426
462
  };
427
- changesAlreadyApplied: {
428
- type: "patch" | "file";
429
- path: string;
430
- content: string;
431
- }[];
432
- costMode: "max" | "lite" | "normal";
433
- authToken?: string | undefined;
434
- }, {
435
- type: "user-input";
436
463
  fingerprintId: string;
437
464
  userInputId: string;
438
465
  messages: {
@@ -451,8 +478,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
451
478
  type: "ephemeral";
452
479
  } | undefined;
453
480
  } | {
454
- type: "tool_result";
455
481
  content: string;
482
+ type: "tool_result";
456
483
  tool_use_id: string;
457
484
  cache_control?: {
458
485
  type: "ephemeral";
@@ -470,37 +497,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
470
497
  })[];
471
498
  role: "user" | "assistant";
472
499
  }[];
473
- fileContext: {
474
- currentWorkingDirectory: string;
475
- fileTree: import("./util/file").FileTreeNode[];
476
- fileTokenScores: Record<string, Record<string, number>>;
477
- knowledgeFiles: Record<string, string>;
478
- gitChanges: {
479
- status: string;
480
- diff: string;
481
- diffCached: string;
482
- lastCommitMessages: string;
483
- };
484
- changesSinceLastChat: Record<string, string>;
485
- shellConfigFiles: Record<string, string>;
486
- systemInfo: {
487
- platform: string;
488
- shell: string;
489
- nodeVersion: string;
490
- arch: string;
491
- homedir: string;
492
- cpus: number;
493
- };
494
- fileVersions: {
495
- path: string;
496
- content: string;
497
- }[][];
498
- userKnowledgeFiles?: Record<string, string> | undefined;
499
- };
500
500
  changesAlreadyApplied: {
501
- type: "patch" | "file";
502
501
  path: string;
503
502
  content: string;
503
+ type: "file" | "patch";
504
504
  }[];
505
505
  authToken?: string | undefined;
506
506
  costMode?: "max" | "lite" | "normal" | undefined;
@@ -559,7 +559,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
559
559
  homedir: string;
560
560
  cpus: number;
561
561
  }>;
562
- fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
562
+ fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
563
563
  path: z.ZodString;
564
564
  content: z.ZodString;
565
565
  }, "strip", z.ZodTypeAny, {
@@ -568,7 +568,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
568
568
  }, {
569
569
  path: string;
570
570
  content: string;
571
- }>, "many">, "many">;
571
+ }>, "many">, "many">>;
572
572
  }, "strip", z.ZodTypeAny, {
573
573
  currentWorkingDirectory: string;
574
574
  fileTree: import("./util/file").FileTreeNode[];
@@ -590,11 +590,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
590
590
  homedir: string;
591
591
  cpus: number;
592
592
  };
593
- fileVersions: {
593
+ userKnowledgeFiles?: Record<string, string> | undefined;
594
+ fileVersions?: {
594
595
  path: string;
595
596
  content: string;
596
- }[][];
597
- userKnowledgeFiles?: Record<string, string> | undefined;
597
+ }[][] | undefined;
598
598
  }, {
599
599
  currentWorkingDirectory: string;
600
600
  fileTree: import("./util/file").FileTreeNode[];
@@ -616,11 +616,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
616
616
  homedir: string;
617
617
  cpus: number;
618
618
  };
619
- fileVersions: {
619
+ userKnowledgeFiles?: Record<string, string> | undefined;
620
+ fileVersions?: {
620
621
  path: string;
621
622
  content: string;
622
- }[][];
623
- userKnowledgeFiles?: Record<string, string> | undefined;
623
+ }[][] | undefined;
624
624
  }>;
625
625
  messageHistory: z.ZodArray<z.ZodObject<{
626
626
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
@@ -686,15 +686,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
686
686
  type: "ephemeral";
687
687
  }>>;
688
688
  }, "strip", z.ZodTypeAny, {
689
- type: "tool_result";
690
689
  content: string;
690
+ type: "tool_result";
691
691
  tool_use_id: string;
692
692
  cache_control?: {
693
693
  type: "ephemeral";
694
694
  } | undefined;
695
695
  }, {
696
- type: "tool_result";
697
696
  content: string;
697
+ type: "tool_result";
698
698
  tool_use_id: string;
699
699
  cache_control?: {
700
700
  type: "ephemeral";
@@ -758,8 +758,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
758
758
  type: "ephemeral";
759
759
  } | undefined;
760
760
  } | {
761
- type: "tool_result";
762
761
  content: string;
762
+ type: "tool_result";
763
763
  tool_use_id: string;
764
764
  cache_control?: {
765
765
  type: "ephemeral";
@@ -792,8 +792,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
792
792
  type: "ephemeral";
793
793
  } | undefined;
794
794
  } | {
795
- type: "tool_result";
796
795
  content: string;
796
+ type: "tool_result";
797
797
  tool_use_id: string;
798
798
  cache_control?: {
799
799
  type: "ephemeral";
@@ -812,6 +812,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
812
812
  role: "user" | "assistant";
813
813
  }>, "many">;
814
814
  }, "strip", z.ZodTypeAny, {
815
+ agentContext: string;
815
816
  fileContext: {
816
817
  currentWorkingDirectory: string;
817
818
  fileTree: import("./util/file").FileTreeNode[];
@@ -833,13 +834,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
833
834
  homedir: string;
834
835
  cpus: number;
835
836
  };
836
- fileVersions: {
837
+ userKnowledgeFiles?: Record<string, string> | undefined;
838
+ fileVersions?: {
837
839
  path: string;
838
840
  content: string;
839
- }[][];
840
- userKnowledgeFiles?: Record<string, string> | undefined;
841
+ }[][] | undefined;
841
842
  };
842
- agentContext: string;
843
843
  messageHistory: {
844
844
  content: string | ({
845
845
  type: "text";
@@ -856,8 +856,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
856
856
  type: "ephemeral";
857
857
  } | undefined;
858
858
  } | {
859
- type: "tool_result";
860
859
  content: string;
860
+ type: "tool_result";
861
861
  tool_use_id: string;
862
862
  cache_control?: {
863
863
  type: "ephemeral";
@@ -876,6 +876,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
876
876
  role: "user" | "assistant";
877
877
  }[];
878
878
  }, {
879
+ agentContext: string;
879
880
  fileContext: {
880
881
  currentWorkingDirectory: string;
881
882
  fileTree: import("./util/file").FileTreeNode[];
@@ -897,13 +898,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
897
898
  homedir: string;
898
899
  cpus: number;
899
900
  };
900
- fileVersions: {
901
+ userKnowledgeFiles?: Record<string, string> | undefined;
902
+ fileVersions?: {
901
903
  path: string;
902
904
  content: string;
903
- }[][];
904
- userKnowledgeFiles?: Record<string, string> | undefined;
905
+ }[][] | undefined;
905
906
  };
906
- agentContext: string;
907
907
  messageHistory: {
908
908
  content: string | ({
909
909
  type: "text";
@@ -920,8 +920,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
920
920
  type: "ephemeral";
921
921
  } | undefined;
922
922
  } | {
923
- type: "tool_result";
924
923
  content: string;
924
+ type: "tool_result";
925
925
  tool_use_id: string;
926
926
  cache_control?: {
927
927
  type: "ephemeral";
@@ -959,6 +959,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
959
959
  costMode: "max" | "lite" | "normal";
960
960
  promptId: string;
961
961
  agentState: {
962
+ agentContext: string;
962
963
  fileContext: {
963
964
  currentWorkingDirectory: string;
964
965
  fileTree: import("./util/file").FileTreeNode[];
@@ -980,13 +981,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
980
981
  homedir: string;
981
982
  cpus: number;
982
983
  };
983
- fileVersions: {
984
+ userKnowledgeFiles?: Record<string, string> | undefined;
985
+ fileVersions?: {
984
986
  path: string;
985
987
  content: string;
986
- }[][];
987
- userKnowledgeFiles?: Record<string, string> | undefined;
988
+ }[][] | undefined;
988
989
  };
989
- agentContext: string;
990
990
  messageHistory: {
991
991
  content: string | ({
992
992
  type: "text";
@@ -1003,8 +1003,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1003
1003
  type: "ephemeral";
1004
1004
  } | undefined;
1005
1005
  } | {
1006
- type: "tool_result";
1007
1006
  content: string;
1007
+ type: "tool_result";
1008
1008
  tool_use_id: string;
1009
1009
  cache_control?: {
1010
1010
  type: "ephemeral";
@@ -1035,6 +1035,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1035
1035
  fingerprintId: string;
1036
1036
  promptId: string;
1037
1037
  agentState: {
1038
+ agentContext: string;
1038
1039
  fileContext: {
1039
1040
  currentWorkingDirectory: string;
1040
1041
  fileTree: import("./util/file").FileTreeNode[];
@@ -1056,13 +1057,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1056
1057
  homedir: string;
1057
1058
  cpus: number;
1058
1059
  };
1059
- fileVersions: {
1060
+ userKnowledgeFiles?: Record<string, string> | undefined;
1061
+ fileVersions?: {
1060
1062
  path: string;
1061
1063
  content: string;
1062
- }[][];
1063
- userKnowledgeFiles?: Record<string, string> | undefined;
1064
+ }[][] | undefined;
1064
1065
  };
1065
- agentContext: string;
1066
1066
  messageHistory: {
1067
1067
  content: string | ({
1068
1068
  type: "text";
@@ -1079,8 +1079,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1079
1079
  type: "ephemeral";
1080
1080
  } | undefined;
1081
1081
  } | {
1082
- type: "tool_result";
1083
1082
  content: string;
1083
+ type: "tool_result";
1084
1084
  tool_use_id: string;
1085
1085
  cache_control?: {
1086
1086
  type: "ephemeral";
@@ -1169,7 +1169,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1169
1169
  homedir: string;
1170
1170
  cpus: number;
1171
1171
  }>;
1172
- fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
1172
+ fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
1173
1173
  path: z.ZodString;
1174
1174
  content: z.ZodString;
1175
1175
  }, "strip", z.ZodTypeAny, {
@@ -1178,7 +1178,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1178
1178
  }, {
1179
1179
  path: string;
1180
1180
  content: string;
1181
- }>, "many">, "many">;
1181
+ }>, "many">, "many">>;
1182
1182
  }, "strip", z.ZodTypeAny, {
1183
1183
  currentWorkingDirectory: string;
1184
1184
  fileTree: import("./util/file").FileTreeNode[];
@@ -1200,11 +1200,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1200
1200
  homedir: string;
1201
1201
  cpus: number;
1202
1202
  };
1203
- fileVersions: {
1203
+ userKnowledgeFiles?: Record<string, string> | undefined;
1204
+ fileVersions?: {
1204
1205
  path: string;
1205
1206
  content: string;
1206
- }[][];
1207
- userKnowledgeFiles?: Record<string, string> | undefined;
1207
+ }[][] | undefined;
1208
1208
  }, {
1209
1209
  currentWorkingDirectory: string;
1210
1210
  fileTree: import("./util/file").FileTreeNode[];
@@ -1226,15 +1226,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1226
1226
  homedir: string;
1227
1227
  cpus: number;
1228
1228
  };
1229
- fileVersions: {
1229
+ userKnowledgeFiles?: Record<string, string> | undefined;
1230
+ fileVersions?: {
1230
1231
  path: string;
1231
1232
  content: string;
1232
- }[][];
1233
- userKnowledgeFiles?: Record<string, string> | undefined;
1233
+ }[][] | undefined;
1234
1234
  }>;
1235
1235
  }, "strip", z.ZodTypeAny, {
1236
1236
  type: "init";
1237
- fingerprintId: string;
1238
1237
  fileContext: {
1239
1238
  currentWorkingDirectory: string;
1240
1239
  fileTree: import("./util/file").FileTreeNode[];
@@ -1256,16 +1255,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1256
1255
  homedir: string;
1257
1256
  cpus: number;
1258
1257
  };
1259
- fileVersions: {
1258
+ userKnowledgeFiles?: Record<string, string> | undefined;
1259
+ fileVersions?: {
1260
1260
  path: string;
1261
1261
  content: string;
1262
- }[][];
1263
- userKnowledgeFiles?: Record<string, string> | undefined;
1262
+ }[][] | undefined;
1264
1263
  };
1264
+ fingerprintId: string;
1265
1265
  authToken?: string | undefined;
1266
1266
  }, {
1267
1267
  type: "init";
1268
- fingerprintId: string;
1269
1268
  fileContext: {
1270
1269
  currentWorkingDirectory: string;
1271
1270
  fileTree: import("./util/file").FileTreeNode[];
@@ -1287,12 +1286,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1287
1286
  homedir: string;
1288
1287
  cpus: number;
1289
1288
  };
1290
- fileVersions: {
1289
+ userKnowledgeFiles?: Record<string, string> | undefined;
1290
+ fileVersions?: {
1291
1291
  path: string;
1292
1292
  content: string;
1293
- }[][];
1294
- userKnowledgeFiles?: Record<string, string> | undefined;
1293
+ }[][] | undefined;
1295
1294
  };
1295
+ fingerprintId: string;
1296
1296
  authToken?: string | undefined;
1297
1297
  }>, z.ZodObject<{
1298
1298
  type: z.ZodLiteral<"generate-commit-message">;
@@ -1374,26 +1374,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1374
1374
  path: z.ZodString;
1375
1375
  content: z.ZodString;
1376
1376
  }, "strip", z.ZodTypeAny, {
1377
- type: "patch" | "file";
1378
1377
  path: string;
1379
1378
  content: string;
1379
+ type: "file" | "patch";
1380
1380
  }, {
1381
- type: "patch" | "file";
1382
1381
  path: string;
1383
1382
  content: string;
1383
+ type: "file" | "patch";
1384
1384
  }>, "many">;
1385
1385
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1386
1386
  type: z.ZodEnum<["patch", "file"]>;
1387
1387
  path: z.ZodString;
1388
1388
  content: z.ZodString;
1389
1389
  }, "strip", z.ZodTypeAny, {
1390
- type: "patch" | "file";
1391
1390
  path: string;
1392
1391
  content: string;
1392
+ type: "file" | "patch";
1393
1393
  }, {
1394
- type: "patch" | "file";
1395
1394
  path: string;
1396
1395
  content: string;
1396
+ type: "file" | "patch";
1397
1397
  }>, "many">;
1398
1398
  addedFileVersions: z.ZodArray<z.ZodObject<{
1399
1399
  path: z.ZodString;
@@ -1417,15 +1417,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1417
1417
  type: "response-complete";
1418
1418
  userInputId: string;
1419
1419
  changesAlreadyApplied: {
1420
- type: "patch" | "file";
1421
1420
  path: string;
1422
1421
  content: string;
1422
+ type: "file" | "patch";
1423
1423
  }[];
1424
1424
  response: string;
1425
1425
  changes: {
1426
- type: "patch" | "file";
1427
1426
  path: string;
1428
1427
  content: string;
1428
+ type: "file" | "patch";
1429
1429
  }[];
1430
1430
  addedFileVersions: {
1431
1431
  path: string;
@@ -1442,15 +1442,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1442
1442
  type: "response-complete";
1443
1443
  userInputId: string;
1444
1444
  changesAlreadyApplied: {
1445
- type: "patch" | "file";
1446
1445
  path: string;
1447
1446
  content: string;
1447
+ type: "file" | "patch";
1448
1448
  }[];
1449
1449
  response: string;
1450
1450
  changes: {
1451
- type: "patch" | "file";
1452
1451
  path: string;
1453
1452
  content: string;
1453
+ type: "file" | "patch";
1454
1454
  }[];
1455
1455
  addedFileVersions: {
1456
1456
  path: string;
@@ -1529,7 +1529,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1529
1529
  homedir: string;
1530
1530
  cpus: number;
1531
1531
  }>;
1532
- fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
1532
+ fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
1533
1533
  path: z.ZodString;
1534
1534
  content: z.ZodString;
1535
1535
  }, "strip", z.ZodTypeAny, {
@@ -1538,7 +1538,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1538
1538
  }, {
1539
1539
  path: string;
1540
1540
  content: string;
1541
- }>, "many">, "many">;
1541
+ }>, "many">, "many">>;
1542
1542
  }, "strip", z.ZodTypeAny, {
1543
1543
  currentWorkingDirectory: string;
1544
1544
  fileTree: import("./util/file").FileTreeNode[];
@@ -1560,11 +1560,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
1560
1560
  homedir: string;
1561
1561
  cpus: number;
1562
1562
  };
1563
- fileVersions: {
1563
+ userKnowledgeFiles?: Record<string, string> | undefined;
1564
+ fileVersions?: {
1564
1565
  path: string;
1565
1566
  content: string;
1566
- }[][];
1567
- userKnowledgeFiles?: Record<string, string> | undefined;
1567
+ }[][] | undefined;
1568
1568
  }, {
1569
1569
  currentWorkingDirectory: string;
1570
1570
  fileTree: import("./util/file").FileTreeNode[];
@@ -1586,11 +1586,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
1586
1586
  homedir: string;
1587
1587
  cpus: number;
1588
1588
  };
1589
- fileVersions: {
1589
+ userKnowledgeFiles?: Record<string, string> | undefined;
1590
+ fileVersions?: {
1590
1591
  path: string;
1591
1592
  content: string;
1592
- }[][];
1593
- userKnowledgeFiles?: Record<string, string> | undefined;
1593
+ }[][] | undefined;
1594
1594
  }>;
1595
1595
  messageHistory: z.ZodArray<z.ZodObject<{
1596
1596
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
@@ -1656,15 +1656,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
1656
1656
  type: "ephemeral";
1657
1657
  }>>;
1658
1658
  }, "strip", z.ZodTypeAny, {
1659
- type: "tool_result";
1660
1659
  content: string;
1660
+ type: "tool_result";
1661
1661
  tool_use_id: string;
1662
1662
  cache_control?: {
1663
1663
  type: "ephemeral";
1664
1664
  } | undefined;
1665
1665
  }, {
1666
- type: "tool_result";
1667
1666
  content: string;
1667
+ type: "tool_result";
1668
1668
  tool_use_id: string;
1669
1669
  cache_control?: {
1670
1670
  type: "ephemeral";
@@ -1728,8 +1728,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1728
1728
  type: "ephemeral";
1729
1729
  } | undefined;
1730
1730
  } | {
1731
- type: "tool_result";
1732
1731
  content: string;
1732
+ type: "tool_result";
1733
1733
  tool_use_id: string;
1734
1734
  cache_control?: {
1735
1735
  type: "ephemeral";
@@ -1762,8 +1762,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1762
1762
  type: "ephemeral";
1763
1763
  } | undefined;
1764
1764
  } | {
1765
- type: "tool_result";
1766
1765
  content: string;
1766
+ type: "tool_result";
1767
1767
  tool_use_id: string;
1768
1768
  cache_control?: {
1769
1769
  type: "ephemeral";
@@ -1782,6 +1782,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1782
1782
  role: "user" | "assistant";
1783
1783
  }>, "many">;
1784
1784
  }, "strip", z.ZodTypeAny, {
1785
+ agentContext: string;
1785
1786
  fileContext: {
1786
1787
  currentWorkingDirectory: string;
1787
1788
  fileTree: import("./util/file").FileTreeNode[];
@@ -1803,13 +1804,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1803
1804
  homedir: string;
1804
1805
  cpus: number;
1805
1806
  };
1806
- fileVersions: {
1807
+ userKnowledgeFiles?: Record<string, string> | undefined;
1808
+ fileVersions?: {
1807
1809
  path: string;
1808
1810
  content: string;
1809
- }[][];
1810
- userKnowledgeFiles?: Record<string, string> | undefined;
1811
+ }[][] | undefined;
1811
1812
  };
1812
- agentContext: string;
1813
1813
  messageHistory: {
1814
1814
  content: string | ({
1815
1815
  type: "text";
@@ -1826,8 +1826,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1826
1826
  type: "ephemeral";
1827
1827
  } | undefined;
1828
1828
  } | {
1829
- type: "tool_result";
1830
1829
  content: string;
1830
+ type: "tool_result";
1831
1831
  tool_use_id: string;
1832
1832
  cache_control?: {
1833
1833
  type: "ephemeral";
@@ -1846,6 +1846,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1846
1846
  role: "user" | "assistant";
1847
1847
  }[];
1848
1848
  }, {
1849
+ agentContext: string;
1849
1850
  fileContext: {
1850
1851
  currentWorkingDirectory: string;
1851
1852
  fileTree: import("./util/file").FileTreeNode[];
@@ -1867,13 +1868,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1867
1868
  homedir: string;
1868
1869
  cpus: number;
1869
1870
  };
1870
- fileVersions: {
1871
+ userKnowledgeFiles?: Record<string, string> | undefined;
1872
+ fileVersions?: {
1871
1873
  path: string;
1872
1874
  content: string;
1873
- }[][];
1874
- userKnowledgeFiles?: Record<string, string> | undefined;
1875
+ }[][] | undefined;
1875
1876
  };
1876
- agentContext: string;
1877
1877
  messageHistory: {
1878
1878
  content: string | ({
1879
1879
  type: "text";
@@ -1890,8 +1890,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1890
1890
  type: "ephemeral";
1891
1891
  } | undefined;
1892
1892
  } | {
1893
- type: "tool_result";
1894
1893
  content: string;
1894
+ type: "tool_result";
1895
1895
  tool_use_id: string;
1896
1896
  cache_control?: {
1897
1897
  type: "ephemeral";
@@ -1916,12 +1916,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1916
1916
  id: z.ZodString;
1917
1917
  }, "strip", z.ZodTypeAny, {
1918
1918
  name: string;
1919
- id: string;
1920
1919
  parameters: Record<string, string>;
1920
+ id: string;
1921
1921
  }, {
1922
1922
  name: string;
1923
- id: string;
1924
1923
  parameters: Record<string, string>;
1924
+ id: string;
1925
1925
  }>, "many">;
1926
1926
  toolResults: z.ZodArray<z.ZodObject<{
1927
1927
  name: z.ZodString;
@@ -1940,6 +1940,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
1940
1940
  type: "prompt-response";
1941
1941
  promptId: string;
1942
1942
  agentState: {
1943
+ agentContext: string;
1943
1944
  fileContext: {
1944
1945
  currentWorkingDirectory: string;
1945
1946
  fileTree: import("./util/file").FileTreeNode[];
@@ -1961,13 +1962,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
1961
1962
  homedir: string;
1962
1963
  cpus: number;
1963
1964
  };
1964
- fileVersions: {
1965
+ userKnowledgeFiles?: Record<string, string> | undefined;
1966
+ fileVersions?: {
1965
1967
  path: string;
1966
1968
  content: string;
1967
- }[][];
1968
- userKnowledgeFiles?: Record<string, string> | undefined;
1969
+ }[][] | undefined;
1969
1970
  };
1970
- agentContext: string;
1971
1971
  messageHistory: {
1972
1972
  content: string | ({
1973
1973
  type: "text";
@@ -1984,8 +1984,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
1984
1984
  type: "ephemeral";
1985
1985
  } | undefined;
1986
1986
  } | {
1987
- type: "tool_result";
1988
1987
  content: string;
1988
+ type: "tool_result";
1989
1989
  tool_use_id: string;
1990
1990
  cache_control?: {
1991
1991
  type: "ephemeral";
@@ -2011,13 +2011,14 @@ export declare const PromptResponseSchema: z.ZodObject<{
2011
2011
  }[];
2012
2012
  toolCalls: {
2013
2013
  name: string;
2014
- id: string;
2015
2014
  parameters: Record<string, string>;
2015
+ id: string;
2016
2016
  }[];
2017
2017
  }, {
2018
2018
  type: "prompt-response";
2019
2019
  promptId: string;
2020
2020
  agentState: {
2021
+ agentContext: string;
2021
2022
  fileContext: {
2022
2023
  currentWorkingDirectory: string;
2023
2024
  fileTree: import("./util/file").FileTreeNode[];
@@ -2039,13 +2040,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
2039
2040
  homedir: string;
2040
2041
  cpus: number;
2041
2042
  };
2042
- fileVersions: {
2043
+ userKnowledgeFiles?: Record<string, string> | undefined;
2044
+ fileVersions?: {
2043
2045
  path: string;
2044
2046
  content: string;
2045
- }[][];
2046
- userKnowledgeFiles?: Record<string, string> | undefined;
2047
+ }[][] | undefined;
2047
2048
  };
2048
- agentContext: string;
2049
2049
  messageHistory: {
2050
2050
  content: string | ({
2051
2051
  type: "text";
@@ -2062,8 +2062,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
2062
2062
  type: "ephemeral";
2063
2063
  } | undefined;
2064
2064
  } | {
2065
- type: "tool_result";
2066
2065
  content: string;
2066
+ type: "tool_result";
2067
2067
  tool_use_id: string;
2068
2068
  cache_control?: {
2069
2069
  type: "ephemeral";
@@ -2089,8 +2089,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
2089
2089
  }[];
2090
2090
  toolCalls: {
2091
2091
  name: string;
2092
- id: string;
2093
2092
  parameters: Record<string, string>;
2093
+ id: string;
2094
2094
  }[];
2095
2095
  }>;
2096
2096
  export type PromptResponse = z.infer<typeof PromptResponseSchema>;
@@ -2115,26 +2115,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2115
2115
  path: z.ZodString;
2116
2116
  content: z.ZodString;
2117
2117
  }, "strip", z.ZodTypeAny, {
2118
- type: "patch" | "file";
2119
2118
  path: string;
2120
2119
  content: string;
2120
+ type: "file" | "patch";
2121
2121
  }, {
2122
- type: "patch" | "file";
2123
2122
  path: string;
2124
2123
  content: string;
2124
+ type: "file" | "patch";
2125
2125
  }>, "many">;
2126
2126
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2127
2127
  type: z.ZodEnum<["patch", "file"]>;
2128
2128
  path: z.ZodString;
2129
2129
  content: z.ZodString;
2130
2130
  }, "strip", z.ZodTypeAny, {
2131
- type: "patch" | "file";
2132
2131
  path: string;
2133
2132
  content: string;
2133
+ type: "file" | "patch";
2134
2134
  }, {
2135
- type: "patch" | "file";
2136
2135
  path: string;
2137
2136
  content: string;
2137
+ type: "file" | "patch";
2138
2138
  }>, "many">;
2139
2139
  addedFileVersions: z.ZodArray<z.ZodObject<{
2140
2140
  path: z.ZodString;
@@ -2158,15 +2158,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2158
2158
  type: "response-complete";
2159
2159
  userInputId: string;
2160
2160
  changesAlreadyApplied: {
2161
- type: "patch" | "file";
2162
2161
  path: string;
2163
2162
  content: string;
2163
+ type: "file" | "patch";
2164
2164
  }[];
2165
2165
  response: string;
2166
2166
  changes: {
2167
- type: "patch" | "file";
2168
2167
  path: string;
2169
2168
  content: string;
2169
+ type: "file" | "patch";
2170
2170
  }[];
2171
2171
  addedFileVersions: {
2172
2172
  path: string;
@@ -2183,15 +2183,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2183
2183
  type: "response-complete";
2184
2184
  userInputId: string;
2185
2185
  changesAlreadyApplied: {
2186
- type: "patch" | "file";
2187
2186
  path: string;
2188
2187
  content: string;
2188
+ type: "file" | "patch";
2189
2189
  }[];
2190
2190
  response: string;
2191
2191
  changes: {
2192
- type: "patch" | "file";
2193
2192
  path: string;
2194
2193
  content: string;
2194
+ type: "file" | "patch";
2195
2195
  }[];
2196
2196
  addedFileVersions: {
2197
2197
  path: string;
@@ -2255,7 +2255,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2255
2255
  homedir: string;
2256
2256
  cpus: number;
2257
2257
  }>;
2258
- fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
2258
+ fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
2259
2259
  path: z.ZodString;
2260
2260
  content: z.ZodString;
2261
2261
  }, "strip", z.ZodTypeAny, {
@@ -2264,7 +2264,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2264
2264
  }, {
2265
2265
  path: string;
2266
2266
  content: string;
2267
- }>, "many">, "many">;
2267
+ }>, "many">, "many">>;
2268
2268
  }, "strip", z.ZodTypeAny, {
2269
2269
  currentWorkingDirectory: string;
2270
2270
  fileTree: import("./util/file").FileTreeNode[];
@@ -2286,11 +2286,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2286
2286
  homedir: string;
2287
2287
  cpus: number;
2288
2288
  };
2289
- fileVersions: {
2289
+ userKnowledgeFiles?: Record<string, string> | undefined;
2290
+ fileVersions?: {
2290
2291
  path: string;
2291
2292
  content: string;
2292
- }[][];
2293
- userKnowledgeFiles?: Record<string, string> | undefined;
2293
+ }[][] | undefined;
2294
2294
  }, {
2295
2295
  currentWorkingDirectory: string;
2296
2296
  fileTree: import("./util/file").FileTreeNode[];
@@ -2312,11 +2312,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2312
2312
  homedir: string;
2313
2313
  cpus: number;
2314
2314
  };
2315
- fileVersions: {
2315
+ userKnowledgeFiles?: Record<string, string> | undefined;
2316
+ fileVersions?: {
2316
2317
  path: string;
2317
2318
  content: string;
2318
- }[][];
2319
- userKnowledgeFiles?: Record<string, string> | undefined;
2319
+ }[][] | undefined;
2320
2320
  }>;
2321
2321
  messageHistory: z.ZodArray<z.ZodObject<{
2322
2322
  role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
@@ -2382,15 +2382,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2382
2382
  type: "ephemeral";
2383
2383
  }>>;
2384
2384
  }, "strip", z.ZodTypeAny, {
2385
- type: "tool_result";
2386
2385
  content: string;
2386
+ type: "tool_result";
2387
2387
  tool_use_id: string;
2388
2388
  cache_control?: {
2389
2389
  type: "ephemeral";
2390
2390
  } | undefined;
2391
2391
  }, {
2392
- type: "tool_result";
2393
2392
  content: string;
2393
+ type: "tool_result";
2394
2394
  tool_use_id: string;
2395
2395
  cache_control?: {
2396
2396
  type: "ephemeral";
@@ -2454,8 +2454,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2454
2454
  type: "ephemeral";
2455
2455
  } | undefined;
2456
2456
  } | {
2457
- type: "tool_result";
2458
2457
  content: string;
2458
+ type: "tool_result";
2459
2459
  tool_use_id: string;
2460
2460
  cache_control?: {
2461
2461
  type: "ephemeral";
@@ -2488,8 +2488,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2488
2488
  type: "ephemeral";
2489
2489
  } | undefined;
2490
2490
  } | {
2491
- type: "tool_result";
2492
2491
  content: string;
2492
+ type: "tool_result";
2493
2493
  tool_use_id: string;
2494
2494
  cache_control?: {
2495
2495
  type: "ephemeral";
@@ -2508,6 +2508,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2508
2508
  role: "user" | "assistant";
2509
2509
  }>, "many">;
2510
2510
  }, "strip", z.ZodTypeAny, {
2511
+ agentContext: string;
2511
2512
  fileContext: {
2512
2513
  currentWorkingDirectory: string;
2513
2514
  fileTree: import("./util/file").FileTreeNode[];
@@ -2529,13 +2530,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2529
2530
  homedir: string;
2530
2531
  cpus: number;
2531
2532
  };
2532
- fileVersions: {
2533
+ userKnowledgeFiles?: Record<string, string> | undefined;
2534
+ fileVersions?: {
2533
2535
  path: string;
2534
2536
  content: string;
2535
- }[][];
2536
- userKnowledgeFiles?: Record<string, string> | undefined;
2537
+ }[][] | undefined;
2537
2538
  };
2538
- agentContext: string;
2539
2539
  messageHistory: {
2540
2540
  content: string | ({
2541
2541
  type: "text";
@@ -2552,8 +2552,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2552
2552
  type: "ephemeral";
2553
2553
  } | undefined;
2554
2554
  } | {
2555
- type: "tool_result";
2556
2555
  content: string;
2556
+ type: "tool_result";
2557
2557
  tool_use_id: string;
2558
2558
  cache_control?: {
2559
2559
  type: "ephemeral";
@@ -2572,6 +2572,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2572
2572
  role: "user" | "assistant";
2573
2573
  }[];
2574
2574
  }, {
2575
+ agentContext: string;
2575
2576
  fileContext: {
2576
2577
  currentWorkingDirectory: string;
2577
2578
  fileTree: import("./util/file").FileTreeNode[];
@@ -2593,13 +2594,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2593
2594
  homedir: string;
2594
2595
  cpus: number;
2595
2596
  };
2596
- fileVersions: {
2597
+ userKnowledgeFiles?: Record<string, string> | undefined;
2598
+ fileVersions?: {
2597
2599
  path: string;
2598
2600
  content: string;
2599
- }[][];
2600
- userKnowledgeFiles?: Record<string, string> | undefined;
2601
+ }[][] | undefined;
2601
2602
  };
2602
- agentContext: string;
2603
2603
  messageHistory: {
2604
2604
  content: string | ({
2605
2605
  type: "text";
@@ -2616,8 +2616,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2616
2616
  type: "ephemeral";
2617
2617
  } | undefined;
2618
2618
  } | {
2619
- type: "tool_result";
2620
2619
  content: string;
2620
+ type: "tool_result";
2621
2621
  tool_use_id: string;
2622
2622
  cache_control?: {
2623
2623
  type: "ephemeral";
@@ -2642,12 +2642,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2642
2642
  id: z.ZodString;
2643
2643
  }, "strip", z.ZodTypeAny, {
2644
2644
  name: string;
2645
- id: string;
2646
2645
  parameters: Record<string, string>;
2646
+ id: string;
2647
2647
  }, {
2648
2648
  name: string;
2649
- id: string;
2650
2649
  parameters: Record<string, string>;
2650
+ id: string;
2651
2651
  }>, "many">;
2652
2652
  toolResults: z.ZodArray<z.ZodObject<{
2653
2653
  name: z.ZodString;
@@ -2666,6 +2666,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2666
2666
  type: "prompt-response";
2667
2667
  promptId: string;
2668
2668
  agentState: {
2669
+ agentContext: string;
2669
2670
  fileContext: {
2670
2671
  currentWorkingDirectory: string;
2671
2672
  fileTree: import("./util/file").FileTreeNode[];
@@ -2687,13 +2688,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2687
2688
  homedir: string;
2688
2689
  cpus: number;
2689
2690
  };
2690
- fileVersions: {
2691
+ userKnowledgeFiles?: Record<string, string> | undefined;
2692
+ fileVersions?: {
2691
2693
  path: string;
2692
2694
  content: string;
2693
- }[][];
2694
- userKnowledgeFiles?: Record<string, string> | undefined;
2695
+ }[][] | undefined;
2695
2696
  };
2696
- agentContext: string;
2697
2697
  messageHistory: {
2698
2698
  content: string | ({
2699
2699
  type: "text";
@@ -2710,8 +2710,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2710
2710
  type: "ephemeral";
2711
2711
  } | undefined;
2712
2712
  } | {
2713
- type: "tool_result";
2714
2713
  content: string;
2714
+ type: "tool_result";
2715
2715
  tool_use_id: string;
2716
2716
  cache_control?: {
2717
2717
  type: "ephemeral";
@@ -2737,13 +2737,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2737
2737
  }[];
2738
2738
  toolCalls: {
2739
2739
  name: string;
2740
- id: string;
2741
2740
  parameters: Record<string, string>;
2741
+ id: string;
2742
2742
  }[];
2743
2743
  }, {
2744
2744
  type: "prompt-response";
2745
2745
  promptId: string;
2746
2746
  agentState: {
2747
+ agentContext: string;
2747
2748
  fileContext: {
2748
2749
  currentWorkingDirectory: string;
2749
2750
  fileTree: import("./util/file").FileTreeNode[];
@@ -2765,13 +2766,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2765
2766
  homedir: string;
2766
2767
  cpus: number;
2767
2768
  };
2768
- fileVersions: {
2769
+ userKnowledgeFiles?: Record<string, string> | undefined;
2770
+ fileVersions?: {
2769
2771
  path: string;
2770
2772
  content: string;
2771
- }[][];
2772
- userKnowledgeFiles?: Record<string, string> | undefined;
2773
+ }[][] | undefined;
2773
2774
  };
2774
- agentContext: string;
2775
2775
  messageHistory: {
2776
2776
  content: string | ({
2777
2777
  type: "text";
@@ -2788,8 +2788,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2788
2788
  type: "ephemeral";
2789
2789
  } | undefined;
2790
2790
  } | {
2791
- type: "tool_result";
2792
2791
  content: string;
2792
+ type: "tool_result";
2793
2793
  tool_use_id: string;
2794
2794
  cache_control?: {
2795
2795
  type: "ephemeral";
@@ -2815,8 +2815,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2815
2815
  }[];
2816
2816
  toolCalls: {
2817
2817
  name: string;
2818
- id: string;
2819
2818
  parameters: Record<string, string>;
2819
+ id: string;
2820
2820
  }[];
2821
2821
  }>, z.ZodObject<{
2822
2822
  type: z.ZodLiteral<"read-files">;
@@ -2852,26 +2852,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2852
2852
  path: z.ZodString;
2853
2853
  content: z.ZodString;
2854
2854
  }, "strip", z.ZodTypeAny, {
2855
- type: "patch" | "file";
2856
2855
  path: string;
2857
2856
  content: string;
2857
+ type: "file" | "patch";
2858
2858
  }, {
2859
- type: "patch" | "file";
2860
2859
  path: string;
2861
2860
  content: string;
2861
+ type: "file" | "patch";
2862
2862
  }>, "many">;
2863
2863
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2864
2864
  type: z.ZodEnum<["patch", "file"]>;
2865
2865
  path: z.ZodString;
2866
2866
  content: z.ZodString;
2867
2867
  }, "strip", z.ZodTypeAny, {
2868
- type: "patch" | "file";
2869
2868
  path: string;
2870
2869
  content: string;
2870
+ type: "file" | "patch";
2871
2871
  }, {
2872
- type: "patch" | "file";
2873
2872
  path: string;
2874
2873
  content: string;
2874
+ type: "file" | "patch";
2875
2875
  }>, "many">;
2876
2876
  addedFileVersions: z.ZodArray<z.ZodObject<{
2877
2877
  path: z.ZodString;
@@ -2886,22 +2886,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2886
2886
  resetFileVersions: z.ZodBoolean;
2887
2887
  }, "strip", z.ZodTypeAny, {
2888
2888
  type: "tool-call";
2889
- userInputId: string;
2890
2889
  data: {
2891
2890
  name: string;
2892
2891
  id: string;
2893
2892
  input: Record<string, any>;
2894
2893
  };
2894
+ userInputId: string;
2895
2895
  changesAlreadyApplied: {
2896
- type: "patch" | "file";
2897
2896
  path: string;
2898
2897
  content: string;
2898
+ type: "file" | "patch";
2899
2899
  }[];
2900
2900
  response: string;
2901
2901
  changes: {
2902
- type: "patch" | "file";
2903
2902
  path: string;
2904
2903
  content: string;
2904
+ type: "file" | "patch";
2905
2905
  }[];
2906
2906
  addedFileVersions: {
2907
2907
  path: string;
@@ -2910,22 +2910,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2910
2910
  resetFileVersions: boolean;
2911
2911
  }, {
2912
2912
  type: "tool-call";
2913
- userInputId: string;
2914
2913
  data: {
2915
2914
  name: string;
2916
2915
  id: string;
2917
2916
  input: Record<string, any>;
2918
2917
  };
2918
+ userInputId: string;
2919
2919
  changesAlreadyApplied: {
2920
- type: "patch" | "file";
2921
2920
  path: string;
2922
2921
  content: string;
2922
+ type: "file" | "patch";
2923
2923
  }[];
2924
2924
  response: string;
2925
2925
  changes: {
2926
- type: "patch" | "file";
2927
2926
  path: string;
2928
2927
  content: string;
2928
+ type: "file" | "patch";
2929
2929
  }[];
2930
2930
  addedFileVersions: {
2931
2931
  path: string;
@@ -2938,12 +2938,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2938
2938
  result: z.ZodString;
2939
2939
  }, "strip", z.ZodTypeAny, {
2940
2940
  type: "terminal-command-result";
2941
- userInputId: string;
2942
2941
  result: string;
2942
+ userInputId: string;
2943
2943
  }, {
2944
2944
  type: "terminal-command-result";
2945
- userInputId: string;
2946
2945
  result: string;
2946
+ userInputId: string;
2947
2947
  }>, z.ZodObject<{
2948
2948
  type: z.ZodLiteral<"npm-version-status">;
2949
2949
  isUpToDate: z.ZodBoolean;
@@ -3022,11 +3022,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
3022
3022
  type: z.ZodLiteral<"action-error">;
3023
3023
  message: z.ZodString;
3024
3024
  }, "strip", z.ZodTypeAny, {
3025
- type: "action-error";
3026
3025
  message: string;
3027
- }, {
3028
3026
  type: "action-error";
3027
+ }, {
3029
3028
  message: string;
3029
+ type: "action-error";
3030
3030
  }>, z.ZodObject<{
3031
3031
  type: z.ZodLiteral<"commit-message-response">;
3032
3032
  commitMessage: z.ZodString;