codebuff 1.0.145 → 1.0.146
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.
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +34 -5
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +5 -3
- package/dist/client.js +38 -20
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +98 -88
- package/dist/common/util/file.d.ts +3 -0
- package/dist/common/util/file.js +1 -0
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +212 -184
- package/dist/index.js +4 -25
- package/dist/index.js.map +1 -1
- package/dist/menu.d.ts +2 -0
- package/dist/menu.js +21 -0
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +2 -0
- package/dist/project-files.js +29 -0
- package/dist/project-files.js.map +1 -1
- package/package.json +1 -1
|
@@ -95,16 +95,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
95
95
|
}>>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
type: "tool_use";
|
|
98
|
-
id: string;
|
|
99
98
|
name: string;
|
|
99
|
+
id: string;
|
|
100
100
|
input: Record<string, any>;
|
|
101
101
|
cache_control?: {
|
|
102
102
|
type: "ephemeral";
|
|
103
103
|
} | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
type: "tool_use";
|
|
106
|
-
id: string;
|
|
107
106
|
name: string;
|
|
107
|
+
id: string;
|
|
108
108
|
input: Record<string, any>;
|
|
109
109
|
cache_control?: {
|
|
110
110
|
type: "ephemeral";
|
|
@@ -121,16 +121,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
content: string;
|
|
124
125
|
type: "tool_result";
|
|
125
126
|
tool_use_id: string;
|
|
126
|
-
content: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
+
content: string;
|
|
131
132
|
type: "tool_result";
|
|
132
133
|
tool_use_id: string;
|
|
133
|
-
content: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
136
136
|
} | undefined;
|
|
@@ -144,16 +144,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
144
144
|
} | undefined;
|
|
145
145
|
} | {
|
|
146
146
|
type: "tool_use";
|
|
147
|
-
id: string;
|
|
148
147
|
name: string;
|
|
148
|
+
id: string;
|
|
149
149
|
input: Record<string, any>;
|
|
150
150
|
cache_control?: {
|
|
151
151
|
type: "ephemeral";
|
|
152
152
|
} | undefined;
|
|
153
153
|
} | {
|
|
154
|
+
content: string;
|
|
154
155
|
type: "tool_result";
|
|
155
156
|
tool_use_id: string;
|
|
156
|
-
content: string;
|
|
157
157
|
cache_control?: {
|
|
158
158
|
type: "ephemeral";
|
|
159
159
|
} | undefined;
|
|
@@ -168,16 +168,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
168
168
|
} | undefined;
|
|
169
169
|
} | {
|
|
170
170
|
type: "tool_use";
|
|
171
|
-
id: string;
|
|
172
171
|
name: string;
|
|
172
|
+
id: string;
|
|
173
173
|
input: Record<string, any>;
|
|
174
174
|
cache_control?: {
|
|
175
175
|
type: "ephemeral";
|
|
176
176
|
} | undefined;
|
|
177
177
|
} | {
|
|
178
|
+
content: string;
|
|
178
179
|
type: "tool_result";
|
|
179
180
|
tool_use_id: string;
|
|
180
|
-
content: string;
|
|
181
181
|
cache_control?: {
|
|
182
182
|
type: "ephemeral";
|
|
183
183
|
} | undefined;
|
|
@@ -189,19 +189,20 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
189
189
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
190
190
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
191
191
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
192
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
192
193
|
gitChanges: z.ZodObject<{
|
|
193
194
|
status: z.ZodString;
|
|
194
195
|
diff: z.ZodString;
|
|
195
196
|
diffCached: z.ZodString;
|
|
196
197
|
lastCommitMessages: z.ZodString;
|
|
197
198
|
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
diff: string;
|
|
199
199
|
status: string;
|
|
200
|
+
diff: string;
|
|
200
201
|
diffCached: string;
|
|
201
202
|
lastCommitMessages: string;
|
|
202
203
|
}, {
|
|
203
|
-
diff: string;
|
|
204
204
|
status: string;
|
|
205
|
+
diff: string;
|
|
205
206
|
diffCached: string;
|
|
206
207
|
lastCommitMessages: string;
|
|
207
208
|
}>;
|
|
@@ -245,8 +246,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
245
246
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
246
247
|
knowledgeFiles: Record<string, string>;
|
|
247
248
|
gitChanges: {
|
|
248
|
-
diff: string;
|
|
249
249
|
status: string;
|
|
250
|
+
diff: string;
|
|
250
251
|
diffCached: string;
|
|
251
252
|
lastCommitMessages: string;
|
|
252
253
|
};
|
|
@@ -264,14 +265,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
264
265
|
path: string;
|
|
265
266
|
content: string;
|
|
266
267
|
}[][];
|
|
268
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
267
269
|
}, {
|
|
268
270
|
currentWorkingDirectory: string;
|
|
269
271
|
fileTree: import("../util/file").FileTreeNode[];
|
|
270
272
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
271
273
|
knowledgeFiles: Record<string, string>;
|
|
272
274
|
gitChanges: {
|
|
273
|
-
diff: string;
|
|
274
275
|
status: string;
|
|
276
|
+
diff: string;
|
|
275
277
|
diffCached: string;
|
|
276
278
|
lastCommitMessages: string;
|
|
277
279
|
};
|
|
@@ -289,18 +291,19 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
289
291
|
path: string;
|
|
290
292
|
content: string;
|
|
291
293
|
}[][];
|
|
294
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
292
295
|
}>;
|
|
293
296
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
294
297
|
type: z.ZodEnum<["patch", "file"]>;
|
|
295
298
|
filePath: z.ZodString;
|
|
296
299
|
content: z.ZodString;
|
|
297
300
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
type: "patch" | "file";
|
|
299
301
|
content: string;
|
|
302
|
+
type: "file" | "patch";
|
|
300
303
|
filePath: string;
|
|
301
304
|
}, {
|
|
302
|
-
type: "patch" | "file";
|
|
303
305
|
content: string;
|
|
306
|
+
type: "file" | "patch";
|
|
304
307
|
filePath: string;
|
|
305
308
|
}>, "many">;
|
|
306
309
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
@@ -317,16 +320,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
317
320
|
} | undefined;
|
|
318
321
|
} | {
|
|
319
322
|
type: "tool_use";
|
|
320
|
-
id: string;
|
|
321
323
|
name: string;
|
|
324
|
+
id: string;
|
|
322
325
|
input: Record<string, any>;
|
|
323
326
|
cache_control?: {
|
|
324
327
|
type: "ephemeral";
|
|
325
328
|
} | undefined;
|
|
326
329
|
} | {
|
|
330
|
+
content: string;
|
|
327
331
|
type: "tool_result";
|
|
328
332
|
tool_use_id: string;
|
|
329
|
-
content: string;
|
|
330
333
|
cache_control?: {
|
|
331
334
|
type: "ephemeral";
|
|
332
335
|
} | undefined;
|
|
@@ -339,8 +342,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
339
342
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
340
343
|
knowledgeFiles: Record<string, string>;
|
|
341
344
|
gitChanges: {
|
|
342
|
-
diff: string;
|
|
343
345
|
status: string;
|
|
346
|
+
diff: string;
|
|
344
347
|
diffCached: string;
|
|
345
348
|
lastCommitMessages: string;
|
|
346
349
|
};
|
|
@@ -358,13 +361,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
358
361
|
path: string;
|
|
359
362
|
content: string;
|
|
360
363
|
}[][];
|
|
364
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
361
365
|
};
|
|
362
366
|
changesAlreadyApplied: {
|
|
363
|
-
type: "patch" | "file";
|
|
364
367
|
content: string;
|
|
368
|
+
type: "file" | "patch";
|
|
365
369
|
filePath: string;
|
|
366
370
|
}[];
|
|
367
|
-
costMode: "
|
|
371
|
+
costMode: "max" | "lite" | "normal";
|
|
368
372
|
authToken?: string | undefined;
|
|
369
373
|
}, {
|
|
370
374
|
type: "user-input";
|
|
@@ -379,16 +383,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
379
383
|
} | undefined;
|
|
380
384
|
} | {
|
|
381
385
|
type: "tool_use";
|
|
382
|
-
id: string;
|
|
383
386
|
name: string;
|
|
387
|
+
id: string;
|
|
384
388
|
input: Record<string, any>;
|
|
385
389
|
cache_control?: {
|
|
386
390
|
type: "ephemeral";
|
|
387
391
|
} | undefined;
|
|
388
392
|
} | {
|
|
393
|
+
content: string;
|
|
389
394
|
type: "tool_result";
|
|
390
395
|
tool_use_id: string;
|
|
391
|
-
content: string;
|
|
392
396
|
cache_control?: {
|
|
393
397
|
type: "ephemeral";
|
|
394
398
|
} | undefined;
|
|
@@ -401,8 +405,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
401
405
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
402
406
|
knowledgeFiles: Record<string, string>;
|
|
403
407
|
gitChanges: {
|
|
404
|
-
diff: string;
|
|
405
408
|
status: string;
|
|
409
|
+
diff: string;
|
|
406
410
|
diffCached: string;
|
|
407
411
|
lastCommitMessages: string;
|
|
408
412
|
};
|
|
@@ -420,14 +424,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
420
424
|
path: string;
|
|
421
425
|
content: string;
|
|
422
426
|
}[][];
|
|
427
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
423
428
|
};
|
|
424
429
|
changesAlreadyApplied: {
|
|
425
|
-
type: "patch" | "file";
|
|
426
430
|
content: string;
|
|
431
|
+
type: "file" | "patch";
|
|
427
432
|
filePath: string;
|
|
428
433
|
}[];
|
|
429
434
|
authToken?: string | undefined;
|
|
430
|
-
costMode?: "
|
|
435
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
431
436
|
}>, z.ZodObject<{
|
|
432
437
|
type: z.ZodLiteral<"read-files-response">;
|
|
433
438
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -446,19 +451,20 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
446
451
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
447
452
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
448
453
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
454
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
449
455
|
gitChanges: z.ZodObject<{
|
|
450
456
|
status: z.ZodString;
|
|
451
457
|
diff: z.ZodString;
|
|
452
458
|
diffCached: z.ZodString;
|
|
453
459
|
lastCommitMessages: z.ZodString;
|
|
454
460
|
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
diff: string;
|
|
456
461
|
status: string;
|
|
462
|
+
diff: string;
|
|
457
463
|
diffCached: string;
|
|
458
464
|
lastCommitMessages: string;
|
|
459
465
|
}, {
|
|
460
|
-
diff: string;
|
|
461
466
|
status: string;
|
|
467
|
+
diff: string;
|
|
462
468
|
diffCached: string;
|
|
463
469
|
lastCommitMessages: string;
|
|
464
470
|
}>;
|
|
@@ -502,8 +508,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
502
508
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
503
509
|
knowledgeFiles: Record<string, string>;
|
|
504
510
|
gitChanges: {
|
|
505
|
-
diff: string;
|
|
506
511
|
status: string;
|
|
512
|
+
diff: string;
|
|
507
513
|
diffCached: string;
|
|
508
514
|
lastCommitMessages: string;
|
|
509
515
|
};
|
|
@@ -521,14 +527,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
521
527
|
path: string;
|
|
522
528
|
content: string;
|
|
523
529
|
}[][];
|
|
530
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
524
531
|
}, {
|
|
525
532
|
currentWorkingDirectory: string;
|
|
526
533
|
fileTree: import("../util/file").FileTreeNode[];
|
|
527
534
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
528
535
|
knowledgeFiles: Record<string, string>;
|
|
529
536
|
gitChanges: {
|
|
530
|
-
diff: string;
|
|
531
537
|
status: string;
|
|
538
|
+
diff: string;
|
|
532
539
|
diffCached: string;
|
|
533
540
|
lastCommitMessages: string;
|
|
534
541
|
};
|
|
@@ -546,6 +553,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
546
553
|
path: string;
|
|
547
554
|
content: string;
|
|
548
555
|
}[][];
|
|
556
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
549
557
|
}>;
|
|
550
558
|
}, "strip", z.ZodTypeAny, {
|
|
551
559
|
type: "init";
|
|
@@ -556,8 +564,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
556
564
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
557
565
|
knowledgeFiles: Record<string, string>;
|
|
558
566
|
gitChanges: {
|
|
559
|
-
diff: string;
|
|
560
567
|
status: string;
|
|
568
|
+
diff: string;
|
|
561
569
|
diffCached: string;
|
|
562
570
|
lastCommitMessages: string;
|
|
563
571
|
};
|
|
@@ -575,6 +583,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
575
583
|
path: string;
|
|
576
584
|
content: string;
|
|
577
585
|
}[][];
|
|
586
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
578
587
|
};
|
|
579
588
|
authToken?: string | undefined;
|
|
580
589
|
}, {
|
|
@@ -586,8 +595,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
586
595
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
587
596
|
knowledgeFiles: Record<string, string>;
|
|
588
597
|
gitChanges: {
|
|
589
|
-
diff: string;
|
|
590
598
|
status: string;
|
|
599
|
+
diff: string;
|
|
591
600
|
diffCached: string;
|
|
592
601
|
lastCommitMessages: string;
|
|
593
602
|
};
|
|
@@ -605,6 +614,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
605
614
|
path: string;
|
|
606
615
|
content: string;
|
|
607
616
|
}[][];
|
|
617
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
608
618
|
};
|
|
609
619
|
authToken?: string | undefined;
|
|
610
620
|
}>, z.ZodObject<{
|
|
@@ -692,16 +702,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
692
702
|
} | undefined;
|
|
693
703
|
} | {
|
|
694
704
|
type: "tool_use";
|
|
695
|
-
id: string;
|
|
696
705
|
name: string;
|
|
706
|
+
id: string;
|
|
697
707
|
input: Record<string, any>;
|
|
698
708
|
cache_control?: {
|
|
699
709
|
type: "ephemeral";
|
|
700
710
|
} | undefined;
|
|
701
711
|
} | {
|
|
712
|
+
content: string;
|
|
702
713
|
type: "tool_result";
|
|
703
714
|
tool_use_id: string;
|
|
704
|
-
content: string;
|
|
705
715
|
cache_control?: {
|
|
706
716
|
type: "ephemeral";
|
|
707
717
|
} | undefined;
|
|
@@ -714,8 +724,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
714
724
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
715
725
|
knowledgeFiles: Record<string, string>;
|
|
716
726
|
gitChanges: {
|
|
717
|
-
diff: string;
|
|
718
727
|
status: string;
|
|
728
|
+
diff: string;
|
|
719
729
|
diffCached: string;
|
|
720
730
|
lastCommitMessages: string;
|
|
721
731
|
};
|
|
@@ -733,13 +743,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
733
743
|
path: string;
|
|
734
744
|
content: string;
|
|
735
745
|
}[][];
|
|
746
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
736
747
|
};
|
|
737
748
|
changesAlreadyApplied: {
|
|
738
|
-
type: "patch" | "file";
|
|
739
749
|
content: string;
|
|
750
|
+
type: "file" | "patch";
|
|
740
751
|
filePath: string;
|
|
741
752
|
}[];
|
|
742
|
-
costMode: "
|
|
753
|
+
costMode: "max" | "lite" | "normal";
|
|
743
754
|
authToken?: string | undefined;
|
|
744
755
|
} | {
|
|
745
756
|
type: "read-files-response";
|
|
@@ -753,8 +764,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
753
764
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
754
765
|
knowledgeFiles: Record<string, string>;
|
|
755
766
|
gitChanges: {
|
|
756
|
-
diff: string;
|
|
757
767
|
status: string;
|
|
768
|
+
diff: string;
|
|
758
769
|
diffCached: string;
|
|
759
770
|
lastCommitMessages: string;
|
|
760
771
|
};
|
|
@@ -772,6 +783,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
772
783
|
path: string;
|
|
773
784
|
content: string;
|
|
774
785
|
}[][];
|
|
786
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
775
787
|
};
|
|
776
788
|
authToken?: string | undefined;
|
|
777
789
|
} | {
|
|
@@ -814,16 +826,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
814
826
|
} | undefined;
|
|
815
827
|
} | {
|
|
816
828
|
type: "tool_use";
|
|
817
|
-
id: string;
|
|
818
829
|
name: string;
|
|
830
|
+
id: string;
|
|
819
831
|
input: Record<string, any>;
|
|
820
832
|
cache_control?: {
|
|
821
833
|
type: "ephemeral";
|
|
822
834
|
} | undefined;
|
|
823
835
|
} | {
|
|
836
|
+
content: string;
|
|
824
837
|
type: "tool_result";
|
|
825
838
|
tool_use_id: string;
|
|
826
|
-
content: string;
|
|
827
839
|
cache_control?: {
|
|
828
840
|
type: "ephemeral";
|
|
829
841
|
} | undefined;
|
|
@@ -836,8 +848,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
836
848
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
837
849
|
knowledgeFiles: Record<string, string>;
|
|
838
850
|
gitChanges: {
|
|
839
|
-
diff: string;
|
|
840
851
|
status: string;
|
|
852
|
+
diff: string;
|
|
841
853
|
diffCached: string;
|
|
842
854
|
lastCommitMessages: string;
|
|
843
855
|
};
|
|
@@ -855,14 +867,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
855
867
|
path: string;
|
|
856
868
|
content: string;
|
|
857
869
|
}[][];
|
|
870
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
858
871
|
};
|
|
859
872
|
changesAlreadyApplied: {
|
|
860
|
-
type: "patch" | "file";
|
|
861
873
|
content: string;
|
|
874
|
+
type: "file" | "patch";
|
|
862
875
|
filePath: string;
|
|
863
876
|
}[];
|
|
864
877
|
authToken?: string | undefined;
|
|
865
|
-
costMode?: "
|
|
878
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
866
879
|
} | {
|
|
867
880
|
type: "read-files-response";
|
|
868
881
|
files: Record<string, string | null>;
|
|
@@ -875,8 +888,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
875
888
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
876
889
|
knowledgeFiles: Record<string, string>;
|
|
877
890
|
gitChanges: {
|
|
878
|
-
diff: string;
|
|
879
891
|
status: string;
|
|
892
|
+
diff: string;
|
|
880
893
|
diffCached: string;
|
|
881
894
|
lastCommitMessages: string;
|
|
882
895
|
};
|
|
@@ -894,6 +907,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
894
907
|
path: string;
|
|
895
908
|
content: string;
|
|
896
909
|
}[][];
|
|
910
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
897
911
|
};
|
|
898
912
|
authToken?: string | undefined;
|
|
899
913
|
} | {
|
|
@@ -1014,16 +1028,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1014
1028
|
}>>;
|
|
1015
1029
|
}, "strip", z.ZodTypeAny, {
|
|
1016
1030
|
type: "tool_use";
|
|
1017
|
-
id: string;
|
|
1018
1031
|
name: string;
|
|
1032
|
+
id: string;
|
|
1019
1033
|
input: Record<string, any>;
|
|
1020
1034
|
cache_control?: {
|
|
1021
1035
|
type: "ephemeral";
|
|
1022
1036
|
} | undefined;
|
|
1023
1037
|
}, {
|
|
1024
1038
|
type: "tool_use";
|
|
1025
|
-
id: string;
|
|
1026
1039
|
name: string;
|
|
1040
|
+
id: string;
|
|
1027
1041
|
input: Record<string, any>;
|
|
1028
1042
|
cache_control?: {
|
|
1029
1043
|
type: "ephemeral";
|
|
@@ -1040,16 +1054,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1040
1054
|
type: "ephemeral";
|
|
1041
1055
|
}>>;
|
|
1042
1056
|
}, "strip", z.ZodTypeAny, {
|
|
1057
|
+
content: string;
|
|
1043
1058
|
type: "tool_result";
|
|
1044
1059
|
tool_use_id: string;
|
|
1045
|
-
content: string;
|
|
1046
1060
|
cache_control?: {
|
|
1047
1061
|
type: "ephemeral";
|
|
1048
1062
|
} | undefined;
|
|
1049
1063
|
}, {
|
|
1064
|
+
content: string;
|
|
1050
1065
|
type: "tool_result";
|
|
1051
1066
|
tool_use_id: string;
|
|
1052
|
-
content: string;
|
|
1053
1067
|
cache_control?: {
|
|
1054
1068
|
type: "ephemeral";
|
|
1055
1069
|
} | undefined;
|
|
@@ -1063,16 +1077,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1063
1077
|
} | undefined;
|
|
1064
1078
|
} | {
|
|
1065
1079
|
type: "tool_use";
|
|
1066
|
-
id: string;
|
|
1067
1080
|
name: string;
|
|
1081
|
+
id: string;
|
|
1068
1082
|
input: Record<string, any>;
|
|
1069
1083
|
cache_control?: {
|
|
1070
1084
|
type: "ephemeral";
|
|
1071
1085
|
} | undefined;
|
|
1072
1086
|
} | {
|
|
1087
|
+
content: string;
|
|
1073
1088
|
type: "tool_result";
|
|
1074
1089
|
tool_use_id: string;
|
|
1075
|
-
content: string;
|
|
1076
1090
|
cache_control?: {
|
|
1077
1091
|
type: "ephemeral";
|
|
1078
1092
|
} | undefined;
|
|
@@ -1087,16 +1101,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1087
1101
|
} | undefined;
|
|
1088
1102
|
} | {
|
|
1089
1103
|
type: "tool_use";
|
|
1090
|
-
id: string;
|
|
1091
1104
|
name: string;
|
|
1105
|
+
id: string;
|
|
1092
1106
|
input: Record<string, any>;
|
|
1093
1107
|
cache_control?: {
|
|
1094
1108
|
type: "ephemeral";
|
|
1095
1109
|
} | undefined;
|
|
1096
1110
|
} | {
|
|
1111
|
+
content: string;
|
|
1097
1112
|
type: "tool_result";
|
|
1098
1113
|
tool_use_id: string;
|
|
1099
|
-
content: string;
|
|
1100
1114
|
cache_control?: {
|
|
1101
1115
|
type: "ephemeral";
|
|
1102
1116
|
} | undefined;
|
|
@@ -1108,19 +1122,20 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1108
1122
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1109
1123
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1110
1124
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1125
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1111
1126
|
gitChanges: z.ZodObject<{
|
|
1112
1127
|
status: z.ZodString;
|
|
1113
1128
|
diff: z.ZodString;
|
|
1114
1129
|
diffCached: z.ZodString;
|
|
1115
1130
|
lastCommitMessages: z.ZodString;
|
|
1116
1131
|
}, "strip", z.ZodTypeAny, {
|
|
1117
|
-
diff: string;
|
|
1118
1132
|
status: string;
|
|
1133
|
+
diff: string;
|
|
1119
1134
|
diffCached: string;
|
|
1120
1135
|
lastCommitMessages: string;
|
|
1121
1136
|
}, {
|
|
1122
|
-
diff: string;
|
|
1123
1137
|
status: string;
|
|
1138
|
+
diff: string;
|
|
1124
1139
|
diffCached: string;
|
|
1125
1140
|
lastCommitMessages: string;
|
|
1126
1141
|
}>;
|
|
@@ -1164,8 +1179,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1164
1179
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1165
1180
|
knowledgeFiles: Record<string, string>;
|
|
1166
1181
|
gitChanges: {
|
|
1167
|
-
diff: string;
|
|
1168
1182
|
status: string;
|
|
1183
|
+
diff: string;
|
|
1169
1184
|
diffCached: string;
|
|
1170
1185
|
lastCommitMessages: string;
|
|
1171
1186
|
};
|
|
@@ -1183,14 +1198,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1183
1198
|
path: string;
|
|
1184
1199
|
content: string;
|
|
1185
1200
|
}[][];
|
|
1201
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1186
1202
|
}, {
|
|
1187
1203
|
currentWorkingDirectory: string;
|
|
1188
1204
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1189
1205
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1190
1206
|
knowledgeFiles: Record<string, string>;
|
|
1191
1207
|
gitChanges: {
|
|
1192
|
-
diff: string;
|
|
1193
1208
|
status: string;
|
|
1209
|
+
diff: string;
|
|
1194
1210
|
diffCached: string;
|
|
1195
1211
|
lastCommitMessages: string;
|
|
1196
1212
|
};
|
|
@@ -1208,18 +1224,19 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1208
1224
|
path: string;
|
|
1209
1225
|
content: string;
|
|
1210
1226
|
}[][];
|
|
1227
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1211
1228
|
}>;
|
|
1212
1229
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1213
1230
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1214
1231
|
filePath: z.ZodString;
|
|
1215
1232
|
content: z.ZodString;
|
|
1216
1233
|
}, "strip", z.ZodTypeAny, {
|
|
1217
|
-
type: "patch" | "file";
|
|
1218
1234
|
content: string;
|
|
1235
|
+
type: "file" | "patch";
|
|
1219
1236
|
filePath: string;
|
|
1220
1237
|
}, {
|
|
1221
|
-
type: "patch" | "file";
|
|
1222
1238
|
content: string;
|
|
1239
|
+
type: "file" | "patch";
|
|
1223
1240
|
filePath: string;
|
|
1224
1241
|
}>, "many">;
|
|
1225
1242
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
@@ -1236,16 +1253,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1236
1253
|
} | undefined;
|
|
1237
1254
|
} | {
|
|
1238
1255
|
type: "tool_use";
|
|
1239
|
-
id: string;
|
|
1240
1256
|
name: string;
|
|
1257
|
+
id: string;
|
|
1241
1258
|
input: Record<string, any>;
|
|
1242
1259
|
cache_control?: {
|
|
1243
1260
|
type: "ephemeral";
|
|
1244
1261
|
} | undefined;
|
|
1245
1262
|
} | {
|
|
1263
|
+
content: string;
|
|
1246
1264
|
type: "tool_result";
|
|
1247
1265
|
tool_use_id: string;
|
|
1248
|
-
content: string;
|
|
1249
1266
|
cache_control?: {
|
|
1250
1267
|
type: "ephemeral";
|
|
1251
1268
|
} | undefined;
|
|
@@ -1258,8 +1275,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1258
1275
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1259
1276
|
knowledgeFiles: Record<string, string>;
|
|
1260
1277
|
gitChanges: {
|
|
1261
|
-
diff: string;
|
|
1262
1278
|
status: string;
|
|
1279
|
+
diff: string;
|
|
1263
1280
|
diffCached: string;
|
|
1264
1281
|
lastCommitMessages: string;
|
|
1265
1282
|
};
|
|
@@ -1277,13 +1294,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1277
1294
|
path: string;
|
|
1278
1295
|
content: string;
|
|
1279
1296
|
}[][];
|
|
1297
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1280
1298
|
};
|
|
1281
1299
|
changesAlreadyApplied: {
|
|
1282
|
-
type: "patch" | "file";
|
|
1283
1300
|
content: string;
|
|
1301
|
+
type: "file" | "patch";
|
|
1284
1302
|
filePath: string;
|
|
1285
1303
|
}[];
|
|
1286
|
-
costMode: "
|
|
1304
|
+
costMode: "max" | "lite" | "normal";
|
|
1287
1305
|
authToken?: string | undefined;
|
|
1288
1306
|
}, {
|
|
1289
1307
|
type: "user-input";
|
|
@@ -1298,16 +1316,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1298
1316
|
} | undefined;
|
|
1299
1317
|
} | {
|
|
1300
1318
|
type: "tool_use";
|
|
1301
|
-
id: string;
|
|
1302
1319
|
name: string;
|
|
1320
|
+
id: string;
|
|
1303
1321
|
input: Record<string, any>;
|
|
1304
1322
|
cache_control?: {
|
|
1305
1323
|
type: "ephemeral";
|
|
1306
1324
|
} | undefined;
|
|
1307
1325
|
} | {
|
|
1326
|
+
content: string;
|
|
1308
1327
|
type: "tool_result";
|
|
1309
1328
|
tool_use_id: string;
|
|
1310
|
-
content: string;
|
|
1311
1329
|
cache_control?: {
|
|
1312
1330
|
type: "ephemeral";
|
|
1313
1331
|
} | undefined;
|
|
@@ -1320,8 +1338,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1320
1338
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1321
1339
|
knowledgeFiles: Record<string, string>;
|
|
1322
1340
|
gitChanges: {
|
|
1323
|
-
diff: string;
|
|
1324
1341
|
status: string;
|
|
1342
|
+
diff: string;
|
|
1325
1343
|
diffCached: string;
|
|
1326
1344
|
lastCommitMessages: string;
|
|
1327
1345
|
};
|
|
@@ -1339,14 +1357,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1339
1357
|
path: string;
|
|
1340
1358
|
content: string;
|
|
1341
1359
|
}[][];
|
|
1360
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1342
1361
|
};
|
|
1343
1362
|
changesAlreadyApplied: {
|
|
1344
|
-
type: "patch" | "file";
|
|
1345
1363
|
content: string;
|
|
1364
|
+
type: "file" | "patch";
|
|
1346
1365
|
filePath: string;
|
|
1347
1366
|
}[];
|
|
1348
1367
|
authToken?: string | undefined;
|
|
1349
|
-
costMode?: "
|
|
1368
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1350
1369
|
}>, z.ZodObject<{
|
|
1351
1370
|
type: z.ZodLiteral<"read-files-response">;
|
|
1352
1371
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -1365,19 +1384,20 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1365
1384
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1366
1385
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1367
1386
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1387
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1368
1388
|
gitChanges: z.ZodObject<{
|
|
1369
1389
|
status: z.ZodString;
|
|
1370
1390
|
diff: z.ZodString;
|
|
1371
1391
|
diffCached: z.ZodString;
|
|
1372
1392
|
lastCommitMessages: z.ZodString;
|
|
1373
1393
|
}, "strip", z.ZodTypeAny, {
|
|
1374
|
-
diff: string;
|
|
1375
1394
|
status: string;
|
|
1395
|
+
diff: string;
|
|
1376
1396
|
diffCached: string;
|
|
1377
1397
|
lastCommitMessages: string;
|
|
1378
1398
|
}, {
|
|
1379
|
-
diff: string;
|
|
1380
1399
|
status: string;
|
|
1400
|
+
diff: string;
|
|
1381
1401
|
diffCached: string;
|
|
1382
1402
|
lastCommitMessages: string;
|
|
1383
1403
|
}>;
|
|
@@ -1421,8 +1441,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1421
1441
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1422
1442
|
knowledgeFiles: Record<string, string>;
|
|
1423
1443
|
gitChanges: {
|
|
1424
|
-
diff: string;
|
|
1425
1444
|
status: string;
|
|
1445
|
+
diff: string;
|
|
1426
1446
|
diffCached: string;
|
|
1427
1447
|
lastCommitMessages: string;
|
|
1428
1448
|
};
|
|
@@ -1440,14 +1460,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1440
1460
|
path: string;
|
|
1441
1461
|
content: string;
|
|
1442
1462
|
}[][];
|
|
1463
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1443
1464
|
}, {
|
|
1444
1465
|
currentWorkingDirectory: string;
|
|
1445
1466
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1446
1467
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1447
1468
|
knowledgeFiles: Record<string, string>;
|
|
1448
1469
|
gitChanges: {
|
|
1449
|
-
diff: string;
|
|
1450
1470
|
status: string;
|
|
1471
|
+
diff: string;
|
|
1451
1472
|
diffCached: string;
|
|
1452
1473
|
lastCommitMessages: string;
|
|
1453
1474
|
};
|
|
@@ -1465,6 +1486,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1465
1486
|
path: string;
|
|
1466
1487
|
content: string;
|
|
1467
1488
|
}[][];
|
|
1489
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1468
1490
|
}>;
|
|
1469
1491
|
}, "strip", z.ZodTypeAny, {
|
|
1470
1492
|
type: "init";
|
|
@@ -1475,8 +1497,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1475
1497
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1476
1498
|
knowledgeFiles: Record<string, string>;
|
|
1477
1499
|
gitChanges: {
|
|
1478
|
-
diff: string;
|
|
1479
1500
|
status: string;
|
|
1501
|
+
diff: string;
|
|
1480
1502
|
diffCached: string;
|
|
1481
1503
|
lastCommitMessages: string;
|
|
1482
1504
|
};
|
|
@@ -1494,6 +1516,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1494
1516
|
path: string;
|
|
1495
1517
|
content: string;
|
|
1496
1518
|
}[][];
|
|
1519
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1497
1520
|
};
|
|
1498
1521
|
authToken?: string | undefined;
|
|
1499
1522
|
}, {
|
|
@@ -1505,8 +1528,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1505
1528
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1506
1529
|
knowledgeFiles: Record<string, string>;
|
|
1507
1530
|
gitChanges: {
|
|
1508
|
-
diff: string;
|
|
1509
1531
|
status: string;
|
|
1532
|
+
diff: string;
|
|
1510
1533
|
diffCached: string;
|
|
1511
1534
|
lastCommitMessages: string;
|
|
1512
1535
|
};
|
|
@@ -1524,6 +1547,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1524
1547
|
path: string;
|
|
1525
1548
|
content: string;
|
|
1526
1549
|
}[][];
|
|
1550
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1527
1551
|
};
|
|
1528
1552
|
authToken?: string | undefined;
|
|
1529
1553
|
}>, z.ZodObject<{
|
|
@@ -1611,16 +1635,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1611
1635
|
} | undefined;
|
|
1612
1636
|
} | {
|
|
1613
1637
|
type: "tool_use";
|
|
1614
|
-
id: string;
|
|
1615
1638
|
name: string;
|
|
1639
|
+
id: string;
|
|
1616
1640
|
input: Record<string, any>;
|
|
1617
1641
|
cache_control?: {
|
|
1618
1642
|
type: "ephemeral";
|
|
1619
1643
|
} | undefined;
|
|
1620
1644
|
} | {
|
|
1645
|
+
content: string;
|
|
1621
1646
|
type: "tool_result";
|
|
1622
1647
|
tool_use_id: string;
|
|
1623
|
-
content: string;
|
|
1624
1648
|
cache_control?: {
|
|
1625
1649
|
type: "ephemeral";
|
|
1626
1650
|
} | undefined;
|
|
@@ -1633,8 +1657,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1633
1657
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1634
1658
|
knowledgeFiles: Record<string, string>;
|
|
1635
1659
|
gitChanges: {
|
|
1636
|
-
diff: string;
|
|
1637
1660
|
status: string;
|
|
1661
|
+
diff: string;
|
|
1638
1662
|
diffCached: string;
|
|
1639
1663
|
lastCommitMessages: string;
|
|
1640
1664
|
};
|
|
@@ -1652,13 +1676,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1652
1676
|
path: string;
|
|
1653
1677
|
content: string;
|
|
1654
1678
|
}[][];
|
|
1679
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1655
1680
|
};
|
|
1656
1681
|
changesAlreadyApplied: {
|
|
1657
|
-
type: "patch" | "file";
|
|
1658
1682
|
content: string;
|
|
1683
|
+
type: "file" | "patch";
|
|
1659
1684
|
filePath: string;
|
|
1660
1685
|
}[];
|
|
1661
|
-
costMode: "
|
|
1686
|
+
costMode: "max" | "lite" | "normal";
|
|
1662
1687
|
authToken?: string | undefined;
|
|
1663
1688
|
} | {
|
|
1664
1689
|
type: "read-files-response";
|
|
@@ -1672,8 +1697,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1672
1697
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1673
1698
|
knowledgeFiles: Record<string, string>;
|
|
1674
1699
|
gitChanges: {
|
|
1675
|
-
diff: string;
|
|
1676
1700
|
status: string;
|
|
1701
|
+
diff: string;
|
|
1677
1702
|
diffCached: string;
|
|
1678
1703
|
lastCommitMessages: string;
|
|
1679
1704
|
};
|
|
@@ -1691,6 +1716,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1691
1716
|
path: string;
|
|
1692
1717
|
content: string;
|
|
1693
1718
|
}[][];
|
|
1719
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1694
1720
|
};
|
|
1695
1721
|
authToken?: string | undefined;
|
|
1696
1722
|
} | {
|
|
@@ -1733,16 +1759,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1733
1759
|
} | undefined;
|
|
1734
1760
|
} | {
|
|
1735
1761
|
type: "tool_use";
|
|
1736
|
-
id: string;
|
|
1737
1762
|
name: string;
|
|
1763
|
+
id: string;
|
|
1738
1764
|
input: Record<string, any>;
|
|
1739
1765
|
cache_control?: {
|
|
1740
1766
|
type: "ephemeral";
|
|
1741
1767
|
} | undefined;
|
|
1742
1768
|
} | {
|
|
1769
|
+
content: string;
|
|
1743
1770
|
type: "tool_result";
|
|
1744
1771
|
tool_use_id: string;
|
|
1745
|
-
content: string;
|
|
1746
1772
|
cache_control?: {
|
|
1747
1773
|
type: "ephemeral";
|
|
1748
1774
|
} | undefined;
|
|
@@ -1755,8 +1781,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1755
1781
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1756
1782
|
knowledgeFiles: Record<string, string>;
|
|
1757
1783
|
gitChanges: {
|
|
1758
|
-
diff: string;
|
|
1759
1784
|
status: string;
|
|
1785
|
+
diff: string;
|
|
1760
1786
|
diffCached: string;
|
|
1761
1787
|
lastCommitMessages: string;
|
|
1762
1788
|
};
|
|
@@ -1774,14 +1800,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1774
1800
|
path: string;
|
|
1775
1801
|
content: string;
|
|
1776
1802
|
}[][];
|
|
1803
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1777
1804
|
};
|
|
1778
1805
|
changesAlreadyApplied: {
|
|
1779
|
-
type: "patch" | "file";
|
|
1780
1806
|
content: string;
|
|
1807
|
+
type: "file" | "patch";
|
|
1781
1808
|
filePath: string;
|
|
1782
1809
|
}[];
|
|
1783
1810
|
authToken?: string | undefined;
|
|
1784
|
-
costMode?: "
|
|
1811
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1785
1812
|
} | {
|
|
1786
1813
|
type: "read-files-response";
|
|
1787
1814
|
files: Record<string, string | null>;
|
|
@@ -1794,8 +1821,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1794
1821
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1795
1822
|
knowledgeFiles: Record<string, string>;
|
|
1796
1823
|
gitChanges: {
|
|
1797
|
-
diff: string;
|
|
1798
1824
|
status: string;
|
|
1825
|
+
diff: string;
|
|
1799
1826
|
diffCached: string;
|
|
1800
1827
|
lastCommitMessages: string;
|
|
1801
1828
|
};
|
|
@@ -1813,6 +1840,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1813
1840
|
path: string;
|
|
1814
1841
|
content: string;
|
|
1815
1842
|
}[][];
|
|
1843
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1816
1844
|
};
|
|
1817
1845
|
authToken?: string | undefined;
|
|
1818
1846
|
} | {
|
|
@@ -1883,12 +1911,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1883
1911
|
filePath: z.ZodString;
|
|
1884
1912
|
content: z.ZodString;
|
|
1885
1913
|
}, "strip", z.ZodTypeAny, {
|
|
1886
|
-
type: "patch" | "file";
|
|
1887
1914
|
content: string;
|
|
1915
|
+
type: "file" | "patch";
|
|
1888
1916
|
filePath: string;
|
|
1889
1917
|
}, {
|
|
1890
|
-
type: "patch" | "file";
|
|
1891
1918
|
content: string;
|
|
1919
|
+
type: "file" | "patch";
|
|
1892
1920
|
filePath: string;
|
|
1893
1921
|
}>, "many">;
|
|
1894
1922
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1896,12 +1924,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1896
1924
|
filePath: z.ZodString;
|
|
1897
1925
|
content: z.ZodString;
|
|
1898
1926
|
}, "strip", z.ZodTypeAny, {
|
|
1899
|
-
type: "patch" | "file";
|
|
1900
1927
|
content: string;
|
|
1928
|
+
type: "file" | "patch";
|
|
1901
1929
|
filePath: string;
|
|
1902
1930
|
}, {
|
|
1903
|
-
type: "patch" | "file";
|
|
1904
1931
|
content: string;
|
|
1932
|
+
type: "file" | "patch";
|
|
1905
1933
|
filePath: string;
|
|
1906
1934
|
}>, "many">;
|
|
1907
1935
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1926,14 +1954,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1926
1954
|
type: "response-complete";
|
|
1927
1955
|
userInputId: string;
|
|
1928
1956
|
changesAlreadyApplied: {
|
|
1929
|
-
type: "patch" | "file";
|
|
1930
1957
|
content: string;
|
|
1958
|
+
type: "file" | "patch";
|
|
1931
1959
|
filePath: string;
|
|
1932
1960
|
}[];
|
|
1933
1961
|
response: string;
|
|
1934
1962
|
changes: {
|
|
1935
|
-
type: "patch" | "file";
|
|
1936
1963
|
content: string;
|
|
1964
|
+
type: "file" | "patch";
|
|
1937
1965
|
filePath: string;
|
|
1938
1966
|
}[];
|
|
1939
1967
|
addedFileVersions: {
|
|
@@ -1951,14 +1979,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1951
1979
|
type: "response-complete";
|
|
1952
1980
|
userInputId: string;
|
|
1953
1981
|
changesAlreadyApplied: {
|
|
1954
|
-
type: "patch" | "file";
|
|
1955
1982
|
content: string;
|
|
1983
|
+
type: "file" | "patch";
|
|
1956
1984
|
filePath: string;
|
|
1957
1985
|
}[];
|
|
1958
1986
|
response: string;
|
|
1959
1987
|
changes: {
|
|
1960
|
-
type: "patch" | "file";
|
|
1961
1988
|
content: string;
|
|
1989
|
+
type: "file" | "patch";
|
|
1962
1990
|
filePath: string;
|
|
1963
1991
|
}[];
|
|
1964
1992
|
addedFileVersions: {
|
|
@@ -1990,12 +2018,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1990
2018
|
id: z.ZodString;
|
|
1991
2019
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1992
2020
|
}, "strip", z.ZodTypeAny, {
|
|
1993
|
-
id: string;
|
|
1994
2021
|
name: string;
|
|
2022
|
+
id: string;
|
|
1995
2023
|
input: Record<string, any>;
|
|
1996
2024
|
}, {
|
|
1997
|
-
id: string;
|
|
1998
2025
|
name: string;
|
|
2026
|
+
id: string;
|
|
1999
2027
|
input: Record<string, any>;
|
|
2000
2028
|
}>;
|
|
2001
2029
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2003,12 +2031,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2003
2031
|
filePath: z.ZodString;
|
|
2004
2032
|
content: z.ZodString;
|
|
2005
2033
|
}, "strip", z.ZodTypeAny, {
|
|
2006
|
-
type: "patch" | "file";
|
|
2007
2034
|
content: string;
|
|
2035
|
+
type: "file" | "patch";
|
|
2008
2036
|
filePath: string;
|
|
2009
2037
|
}, {
|
|
2010
|
-
type: "patch" | "file";
|
|
2011
2038
|
content: string;
|
|
2039
|
+
type: "file" | "patch";
|
|
2012
2040
|
filePath: string;
|
|
2013
2041
|
}>, "many">;
|
|
2014
2042
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2016,12 +2044,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2016
2044
|
filePath: z.ZodString;
|
|
2017
2045
|
content: z.ZodString;
|
|
2018
2046
|
}, "strip", z.ZodTypeAny, {
|
|
2019
|
-
type: "patch" | "file";
|
|
2020
2047
|
content: string;
|
|
2048
|
+
type: "file" | "patch";
|
|
2021
2049
|
filePath: string;
|
|
2022
2050
|
}, {
|
|
2023
|
-
type: "patch" | "file";
|
|
2024
2051
|
content: string;
|
|
2052
|
+
type: "file" | "patch";
|
|
2025
2053
|
filePath: string;
|
|
2026
2054
|
}>, "many">;
|
|
2027
2055
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2039,14 +2067,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2039
2067
|
type: "tool-call";
|
|
2040
2068
|
userInputId: string;
|
|
2041
2069
|
changesAlreadyApplied: {
|
|
2042
|
-
type: "patch" | "file";
|
|
2043
2070
|
content: string;
|
|
2071
|
+
type: "file" | "patch";
|
|
2044
2072
|
filePath: string;
|
|
2045
2073
|
}[];
|
|
2046
2074
|
response: string;
|
|
2047
2075
|
changes: {
|
|
2048
|
-
type: "patch" | "file";
|
|
2049
2076
|
content: string;
|
|
2077
|
+
type: "file" | "patch";
|
|
2050
2078
|
filePath: string;
|
|
2051
2079
|
}[];
|
|
2052
2080
|
addedFileVersions: {
|
|
@@ -2055,22 +2083,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2055
2083
|
}[];
|
|
2056
2084
|
resetFileVersions: boolean;
|
|
2057
2085
|
data: {
|
|
2058
|
-
id: string;
|
|
2059
2086
|
name: string;
|
|
2087
|
+
id: string;
|
|
2060
2088
|
input: Record<string, any>;
|
|
2061
2089
|
};
|
|
2062
2090
|
}, {
|
|
2063
2091
|
type: "tool-call";
|
|
2064
2092
|
userInputId: string;
|
|
2065
2093
|
changesAlreadyApplied: {
|
|
2066
|
-
type: "patch" | "file";
|
|
2067
2094
|
content: string;
|
|
2095
|
+
type: "file" | "patch";
|
|
2068
2096
|
filePath: string;
|
|
2069
2097
|
}[];
|
|
2070
2098
|
response: string;
|
|
2071
2099
|
changes: {
|
|
2072
|
-
type: "patch" | "file";
|
|
2073
2100
|
content: string;
|
|
2101
|
+
type: "file" | "patch";
|
|
2074
2102
|
filePath: string;
|
|
2075
2103
|
}[];
|
|
2076
2104
|
addedFileVersions: {
|
|
@@ -2079,8 +2107,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2079
2107
|
}[];
|
|
2080
2108
|
resetFileVersions: boolean;
|
|
2081
2109
|
data: {
|
|
2082
|
-
id: string;
|
|
2083
2110
|
name: string;
|
|
2111
|
+
id: string;
|
|
2084
2112
|
input: Record<string, any>;
|
|
2085
2113
|
};
|
|
2086
2114
|
}>, z.ZodObject<{
|
|
@@ -2143,41 +2171,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2143
2171
|
fingerprintId: z.ZodString;
|
|
2144
2172
|
fingerprintHash: z.ZodString;
|
|
2145
2173
|
}, "strip", z.ZodTypeAny, {
|
|
2146
|
-
|
|
2174
|
+
email: string;
|
|
2147
2175
|
name: string | null;
|
|
2176
|
+
id: string;
|
|
2148
2177
|
fingerprintId: string;
|
|
2149
2178
|
authToken: string;
|
|
2150
|
-
email: string;
|
|
2151
2179
|
fingerprintHash: string;
|
|
2152
2180
|
}, {
|
|
2153
|
-
|
|
2181
|
+
email: string;
|
|
2154
2182
|
name: string | null;
|
|
2183
|
+
id: string;
|
|
2155
2184
|
fingerprintId: string;
|
|
2156
2185
|
authToken: string;
|
|
2157
|
-
email: string;
|
|
2158
2186
|
fingerprintHash: string;
|
|
2159
2187
|
}>>;
|
|
2160
2188
|
message: z.ZodString;
|
|
2161
2189
|
}, "strip", z.ZodTypeAny, {
|
|
2162
|
-
type: "auth-result";
|
|
2163
2190
|
message: string;
|
|
2191
|
+
type: "auth-result";
|
|
2164
2192
|
user?: {
|
|
2165
|
-
|
|
2193
|
+
email: string;
|
|
2166
2194
|
name: string | null;
|
|
2195
|
+
id: string;
|
|
2167
2196
|
fingerprintId: string;
|
|
2168
2197
|
authToken: string;
|
|
2169
|
-
email: string;
|
|
2170
2198
|
fingerprintHash: string;
|
|
2171
2199
|
} | undefined;
|
|
2172
2200
|
}, {
|
|
2173
|
-
type: "auth-result";
|
|
2174
2201
|
message: string;
|
|
2202
|
+
type: "auth-result";
|
|
2175
2203
|
user?: {
|
|
2176
|
-
|
|
2204
|
+
email: string;
|
|
2177
2205
|
name: string | null;
|
|
2206
|
+
id: string;
|
|
2178
2207
|
fingerprintId: string;
|
|
2179
2208
|
authToken: string;
|
|
2180
|
-
email: string;
|
|
2181
2209
|
fingerprintHash: string;
|
|
2182
2210
|
} | undefined;
|
|
2183
2211
|
}>, z.ZodObject<{
|
|
@@ -2223,11 +2251,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2223
2251
|
type: z.ZodLiteral<"action-error">;
|
|
2224
2252
|
message: z.ZodString;
|
|
2225
2253
|
}, "strip", z.ZodTypeAny, {
|
|
2226
|
-
type: "action-error";
|
|
2227
2254
|
message: string;
|
|
2228
|
-
}, {
|
|
2229
2255
|
type: "action-error";
|
|
2256
|
+
}, {
|
|
2230
2257
|
message: string;
|
|
2258
|
+
type: "action-error";
|
|
2231
2259
|
}>, z.ZodObject<{
|
|
2232
2260
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2233
2261
|
commitMessage: z.ZodString;
|
|
@@ -2260,14 +2288,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2260
2288
|
type: "response-complete";
|
|
2261
2289
|
userInputId: string;
|
|
2262
2290
|
changesAlreadyApplied: {
|
|
2263
|
-
type: "patch" | "file";
|
|
2264
2291
|
content: string;
|
|
2292
|
+
type: "file" | "patch";
|
|
2265
2293
|
filePath: string;
|
|
2266
2294
|
}[];
|
|
2267
2295
|
response: string;
|
|
2268
2296
|
changes: {
|
|
2269
|
-
type: "patch" | "file";
|
|
2270
2297
|
content: string;
|
|
2298
|
+
type: "file" | "patch";
|
|
2271
2299
|
filePath: string;
|
|
2272
2300
|
}[];
|
|
2273
2301
|
addedFileVersions: {
|
|
@@ -2292,14 +2320,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2292
2320
|
type: "tool-call";
|
|
2293
2321
|
userInputId: string;
|
|
2294
2322
|
changesAlreadyApplied: {
|
|
2295
|
-
type: "patch" | "file";
|
|
2296
2323
|
content: string;
|
|
2324
|
+
type: "file" | "patch";
|
|
2297
2325
|
filePath: string;
|
|
2298
2326
|
}[];
|
|
2299
2327
|
response: string;
|
|
2300
2328
|
changes: {
|
|
2301
|
-
type: "patch" | "file";
|
|
2302
2329
|
content: string;
|
|
2330
|
+
type: "file" | "patch";
|
|
2303
2331
|
filePath: string;
|
|
2304
2332
|
}[];
|
|
2305
2333
|
addedFileVersions: {
|
|
@@ -2308,8 +2336,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2308
2336
|
}[];
|
|
2309
2337
|
resetFileVersions: boolean;
|
|
2310
2338
|
data: {
|
|
2311
|
-
id: string;
|
|
2312
2339
|
name: string;
|
|
2340
|
+
id: string;
|
|
2313
2341
|
input: Record<string, any>;
|
|
2314
2342
|
};
|
|
2315
2343
|
} | {
|
|
@@ -2321,14 +2349,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2321
2349
|
isUpToDate: boolean;
|
|
2322
2350
|
latestVersion: string;
|
|
2323
2351
|
} | {
|
|
2324
|
-
type: "auth-result";
|
|
2325
2352
|
message: string;
|
|
2353
|
+
type: "auth-result";
|
|
2326
2354
|
user?: {
|
|
2327
|
-
|
|
2355
|
+
email: string;
|
|
2328
2356
|
name: string | null;
|
|
2357
|
+
id: string;
|
|
2329
2358
|
fingerprintId: string;
|
|
2330
2359
|
authToken: string;
|
|
2331
|
-
email: string;
|
|
2332
2360
|
fingerprintHash: string;
|
|
2333
2361
|
} | undefined;
|
|
2334
2362
|
} | {
|
|
@@ -2337,8 +2365,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2337
2365
|
fingerprintHash: string;
|
|
2338
2366
|
loginUrl: string;
|
|
2339
2367
|
} | {
|
|
2340
|
-
type: "action-error";
|
|
2341
2368
|
message: string;
|
|
2369
|
+
type: "action-error";
|
|
2342
2370
|
} | {
|
|
2343
2371
|
type: "commit-message-response";
|
|
2344
2372
|
commitMessage: string;
|
|
@@ -2365,14 +2393,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2365
2393
|
type: "response-complete";
|
|
2366
2394
|
userInputId: string;
|
|
2367
2395
|
changesAlreadyApplied: {
|
|
2368
|
-
type: "patch" | "file";
|
|
2369
2396
|
content: string;
|
|
2397
|
+
type: "file" | "patch";
|
|
2370
2398
|
filePath: string;
|
|
2371
2399
|
}[];
|
|
2372
2400
|
response: string;
|
|
2373
2401
|
changes: {
|
|
2374
|
-
type: "patch" | "file";
|
|
2375
2402
|
content: string;
|
|
2403
|
+
type: "file" | "patch";
|
|
2376
2404
|
filePath: string;
|
|
2377
2405
|
}[];
|
|
2378
2406
|
addedFileVersions: {
|
|
@@ -2397,14 +2425,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2397
2425
|
type: "tool-call";
|
|
2398
2426
|
userInputId: string;
|
|
2399
2427
|
changesAlreadyApplied: {
|
|
2400
|
-
type: "patch" | "file";
|
|
2401
2428
|
content: string;
|
|
2429
|
+
type: "file" | "patch";
|
|
2402
2430
|
filePath: string;
|
|
2403
2431
|
}[];
|
|
2404
2432
|
response: string;
|
|
2405
2433
|
changes: {
|
|
2406
|
-
type: "patch" | "file";
|
|
2407
2434
|
content: string;
|
|
2435
|
+
type: "file" | "patch";
|
|
2408
2436
|
filePath: string;
|
|
2409
2437
|
}[];
|
|
2410
2438
|
addedFileVersions: {
|
|
@@ -2413,8 +2441,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2413
2441
|
}[];
|
|
2414
2442
|
resetFileVersions: boolean;
|
|
2415
2443
|
data: {
|
|
2416
|
-
id: string;
|
|
2417
2444
|
name: string;
|
|
2445
|
+
id: string;
|
|
2418
2446
|
input: Record<string, any>;
|
|
2419
2447
|
};
|
|
2420
2448
|
} | {
|
|
@@ -2426,14 +2454,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2426
2454
|
isUpToDate: boolean;
|
|
2427
2455
|
latestVersion: string;
|
|
2428
2456
|
} | {
|
|
2429
|
-
type: "auth-result";
|
|
2430
2457
|
message: string;
|
|
2458
|
+
type: "auth-result";
|
|
2431
2459
|
user?: {
|
|
2432
|
-
|
|
2460
|
+
email: string;
|
|
2433
2461
|
name: string | null;
|
|
2462
|
+
id: string;
|
|
2434
2463
|
fingerprintId: string;
|
|
2435
2464
|
authToken: string;
|
|
2436
|
-
email: string;
|
|
2437
2465
|
fingerprintHash: string;
|
|
2438
2466
|
} | undefined;
|
|
2439
2467
|
} | {
|
|
@@ -2442,8 +2470,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2442
2470
|
fingerprintHash: string;
|
|
2443
2471
|
loginUrl: string;
|
|
2444
2472
|
} | {
|
|
2445
|
-
type: "action-error";
|
|
2446
2473
|
message: string;
|
|
2474
|
+
type: "action-error";
|
|
2447
2475
|
} | {
|
|
2448
2476
|
type: "commit-message-response";
|
|
2449
2477
|
commitMessage: string;
|
|
@@ -2488,12 +2516,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2488
2516
|
filePath: z.ZodString;
|
|
2489
2517
|
content: z.ZodString;
|
|
2490
2518
|
}, "strip", z.ZodTypeAny, {
|
|
2491
|
-
type: "patch" | "file";
|
|
2492
2519
|
content: string;
|
|
2520
|
+
type: "file" | "patch";
|
|
2493
2521
|
filePath: string;
|
|
2494
2522
|
}, {
|
|
2495
|
-
type: "patch" | "file";
|
|
2496
2523
|
content: string;
|
|
2524
|
+
type: "file" | "patch";
|
|
2497
2525
|
filePath: string;
|
|
2498
2526
|
}>, "many">;
|
|
2499
2527
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2501,12 +2529,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2501
2529
|
filePath: z.ZodString;
|
|
2502
2530
|
content: z.ZodString;
|
|
2503
2531
|
}, "strip", z.ZodTypeAny, {
|
|
2504
|
-
type: "patch" | "file";
|
|
2505
2532
|
content: string;
|
|
2533
|
+
type: "file" | "patch";
|
|
2506
2534
|
filePath: string;
|
|
2507
2535
|
}, {
|
|
2508
|
-
type: "patch" | "file";
|
|
2509
2536
|
content: string;
|
|
2537
|
+
type: "file" | "patch";
|
|
2510
2538
|
filePath: string;
|
|
2511
2539
|
}>, "many">;
|
|
2512
2540
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2531,14 +2559,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2531
2559
|
type: "response-complete";
|
|
2532
2560
|
userInputId: string;
|
|
2533
2561
|
changesAlreadyApplied: {
|
|
2534
|
-
type: "patch" | "file";
|
|
2535
2562
|
content: string;
|
|
2563
|
+
type: "file" | "patch";
|
|
2536
2564
|
filePath: string;
|
|
2537
2565
|
}[];
|
|
2538
2566
|
response: string;
|
|
2539
2567
|
changes: {
|
|
2540
|
-
type: "patch" | "file";
|
|
2541
2568
|
content: string;
|
|
2569
|
+
type: "file" | "patch";
|
|
2542
2570
|
filePath: string;
|
|
2543
2571
|
}[];
|
|
2544
2572
|
addedFileVersions: {
|
|
@@ -2556,14 +2584,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2556
2584
|
type: "response-complete";
|
|
2557
2585
|
userInputId: string;
|
|
2558
2586
|
changesAlreadyApplied: {
|
|
2559
|
-
type: "patch" | "file";
|
|
2560
2587
|
content: string;
|
|
2588
|
+
type: "file" | "patch";
|
|
2561
2589
|
filePath: string;
|
|
2562
2590
|
}[];
|
|
2563
2591
|
response: string;
|
|
2564
2592
|
changes: {
|
|
2565
|
-
type: "patch" | "file";
|
|
2566
2593
|
content: string;
|
|
2594
|
+
type: "file" | "patch";
|
|
2567
2595
|
filePath: string;
|
|
2568
2596
|
}[];
|
|
2569
2597
|
addedFileVersions: {
|
|
@@ -2595,12 +2623,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2595
2623
|
id: z.ZodString;
|
|
2596
2624
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2597
2625
|
}, "strip", z.ZodTypeAny, {
|
|
2598
|
-
id: string;
|
|
2599
2626
|
name: string;
|
|
2627
|
+
id: string;
|
|
2600
2628
|
input: Record<string, any>;
|
|
2601
2629
|
}, {
|
|
2602
|
-
id: string;
|
|
2603
2630
|
name: string;
|
|
2631
|
+
id: string;
|
|
2604
2632
|
input: Record<string, any>;
|
|
2605
2633
|
}>;
|
|
2606
2634
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2608,12 +2636,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2608
2636
|
filePath: z.ZodString;
|
|
2609
2637
|
content: z.ZodString;
|
|
2610
2638
|
}, "strip", z.ZodTypeAny, {
|
|
2611
|
-
type: "patch" | "file";
|
|
2612
2639
|
content: string;
|
|
2640
|
+
type: "file" | "patch";
|
|
2613
2641
|
filePath: string;
|
|
2614
2642
|
}, {
|
|
2615
|
-
type: "patch" | "file";
|
|
2616
2643
|
content: string;
|
|
2644
|
+
type: "file" | "patch";
|
|
2617
2645
|
filePath: string;
|
|
2618
2646
|
}>, "many">;
|
|
2619
2647
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2621,12 +2649,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2621
2649
|
filePath: z.ZodString;
|
|
2622
2650
|
content: z.ZodString;
|
|
2623
2651
|
}, "strip", z.ZodTypeAny, {
|
|
2624
|
-
type: "patch" | "file";
|
|
2625
2652
|
content: string;
|
|
2653
|
+
type: "file" | "patch";
|
|
2626
2654
|
filePath: string;
|
|
2627
2655
|
}, {
|
|
2628
|
-
type: "patch" | "file";
|
|
2629
2656
|
content: string;
|
|
2657
|
+
type: "file" | "patch";
|
|
2630
2658
|
filePath: string;
|
|
2631
2659
|
}>, "many">;
|
|
2632
2660
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2644,14 +2672,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2644
2672
|
type: "tool-call";
|
|
2645
2673
|
userInputId: string;
|
|
2646
2674
|
changesAlreadyApplied: {
|
|
2647
|
-
type: "patch" | "file";
|
|
2648
2675
|
content: string;
|
|
2676
|
+
type: "file" | "patch";
|
|
2649
2677
|
filePath: string;
|
|
2650
2678
|
}[];
|
|
2651
2679
|
response: string;
|
|
2652
2680
|
changes: {
|
|
2653
|
-
type: "patch" | "file";
|
|
2654
2681
|
content: string;
|
|
2682
|
+
type: "file" | "patch";
|
|
2655
2683
|
filePath: string;
|
|
2656
2684
|
}[];
|
|
2657
2685
|
addedFileVersions: {
|
|
@@ -2660,22 +2688,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2660
2688
|
}[];
|
|
2661
2689
|
resetFileVersions: boolean;
|
|
2662
2690
|
data: {
|
|
2663
|
-
id: string;
|
|
2664
2691
|
name: string;
|
|
2692
|
+
id: string;
|
|
2665
2693
|
input: Record<string, any>;
|
|
2666
2694
|
};
|
|
2667
2695
|
}, {
|
|
2668
2696
|
type: "tool-call";
|
|
2669
2697
|
userInputId: string;
|
|
2670
2698
|
changesAlreadyApplied: {
|
|
2671
|
-
type: "patch" | "file";
|
|
2672
2699
|
content: string;
|
|
2700
|
+
type: "file" | "patch";
|
|
2673
2701
|
filePath: string;
|
|
2674
2702
|
}[];
|
|
2675
2703
|
response: string;
|
|
2676
2704
|
changes: {
|
|
2677
|
-
type: "patch" | "file";
|
|
2678
2705
|
content: string;
|
|
2706
|
+
type: "file" | "patch";
|
|
2679
2707
|
filePath: string;
|
|
2680
2708
|
}[];
|
|
2681
2709
|
addedFileVersions: {
|
|
@@ -2684,8 +2712,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2684
2712
|
}[];
|
|
2685
2713
|
resetFileVersions: boolean;
|
|
2686
2714
|
data: {
|
|
2687
|
-
id: string;
|
|
2688
2715
|
name: string;
|
|
2716
|
+
id: string;
|
|
2689
2717
|
input: Record<string, any>;
|
|
2690
2718
|
};
|
|
2691
2719
|
}>, z.ZodObject<{
|
|
@@ -2748,41 +2776,41 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2748
2776
|
fingerprintId: z.ZodString;
|
|
2749
2777
|
fingerprintHash: z.ZodString;
|
|
2750
2778
|
}, "strip", z.ZodTypeAny, {
|
|
2751
|
-
|
|
2779
|
+
email: string;
|
|
2752
2780
|
name: string | null;
|
|
2781
|
+
id: string;
|
|
2753
2782
|
fingerprintId: string;
|
|
2754
2783
|
authToken: string;
|
|
2755
|
-
email: string;
|
|
2756
2784
|
fingerprintHash: string;
|
|
2757
2785
|
}, {
|
|
2758
|
-
|
|
2786
|
+
email: string;
|
|
2759
2787
|
name: string | null;
|
|
2788
|
+
id: string;
|
|
2760
2789
|
fingerprintId: string;
|
|
2761
2790
|
authToken: string;
|
|
2762
|
-
email: string;
|
|
2763
2791
|
fingerprintHash: string;
|
|
2764
2792
|
}>>;
|
|
2765
2793
|
message: z.ZodString;
|
|
2766
2794
|
}, "strip", z.ZodTypeAny, {
|
|
2767
|
-
type: "auth-result";
|
|
2768
2795
|
message: string;
|
|
2796
|
+
type: "auth-result";
|
|
2769
2797
|
user?: {
|
|
2770
|
-
|
|
2798
|
+
email: string;
|
|
2771
2799
|
name: string | null;
|
|
2800
|
+
id: string;
|
|
2772
2801
|
fingerprintId: string;
|
|
2773
2802
|
authToken: string;
|
|
2774
|
-
email: string;
|
|
2775
2803
|
fingerprintHash: string;
|
|
2776
2804
|
} | undefined;
|
|
2777
2805
|
}, {
|
|
2778
|
-
type: "auth-result";
|
|
2779
2806
|
message: string;
|
|
2807
|
+
type: "auth-result";
|
|
2780
2808
|
user?: {
|
|
2781
|
-
|
|
2809
|
+
email: string;
|
|
2782
2810
|
name: string | null;
|
|
2811
|
+
id: string;
|
|
2783
2812
|
fingerprintId: string;
|
|
2784
2813
|
authToken: string;
|
|
2785
|
-
email: string;
|
|
2786
2814
|
fingerprintHash: string;
|
|
2787
2815
|
} | undefined;
|
|
2788
2816
|
}>, z.ZodObject<{
|
|
@@ -2828,11 +2856,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2828
2856
|
type: z.ZodLiteral<"action-error">;
|
|
2829
2857
|
message: z.ZodString;
|
|
2830
2858
|
}, "strip", z.ZodTypeAny, {
|
|
2831
|
-
type: "action-error";
|
|
2832
2859
|
message: string;
|
|
2833
|
-
}, {
|
|
2834
2860
|
type: "action-error";
|
|
2861
|
+
}, {
|
|
2835
2862
|
message: string;
|
|
2863
|
+
type: "action-error";
|
|
2836
2864
|
}>, z.ZodObject<{
|
|
2837
2865
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2838
2866
|
commitMessage: z.ZodString;
|
|
@@ -2865,14 +2893,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2865
2893
|
type: "response-complete";
|
|
2866
2894
|
userInputId: string;
|
|
2867
2895
|
changesAlreadyApplied: {
|
|
2868
|
-
type: "patch" | "file";
|
|
2869
2896
|
content: string;
|
|
2897
|
+
type: "file" | "patch";
|
|
2870
2898
|
filePath: string;
|
|
2871
2899
|
}[];
|
|
2872
2900
|
response: string;
|
|
2873
2901
|
changes: {
|
|
2874
|
-
type: "patch" | "file";
|
|
2875
2902
|
content: string;
|
|
2903
|
+
type: "file" | "patch";
|
|
2876
2904
|
filePath: string;
|
|
2877
2905
|
}[];
|
|
2878
2906
|
addedFileVersions: {
|
|
@@ -2897,14 +2925,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2897
2925
|
type: "tool-call";
|
|
2898
2926
|
userInputId: string;
|
|
2899
2927
|
changesAlreadyApplied: {
|
|
2900
|
-
type: "patch" | "file";
|
|
2901
2928
|
content: string;
|
|
2929
|
+
type: "file" | "patch";
|
|
2902
2930
|
filePath: string;
|
|
2903
2931
|
}[];
|
|
2904
2932
|
response: string;
|
|
2905
2933
|
changes: {
|
|
2906
|
-
type: "patch" | "file";
|
|
2907
2934
|
content: string;
|
|
2935
|
+
type: "file" | "patch";
|
|
2908
2936
|
filePath: string;
|
|
2909
2937
|
}[];
|
|
2910
2938
|
addedFileVersions: {
|
|
@@ -2913,8 +2941,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2913
2941
|
}[];
|
|
2914
2942
|
resetFileVersions: boolean;
|
|
2915
2943
|
data: {
|
|
2916
|
-
id: string;
|
|
2917
2944
|
name: string;
|
|
2945
|
+
id: string;
|
|
2918
2946
|
input: Record<string, any>;
|
|
2919
2947
|
};
|
|
2920
2948
|
} | {
|
|
@@ -2926,14 +2954,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2926
2954
|
isUpToDate: boolean;
|
|
2927
2955
|
latestVersion: string;
|
|
2928
2956
|
} | {
|
|
2929
|
-
type: "auth-result";
|
|
2930
2957
|
message: string;
|
|
2958
|
+
type: "auth-result";
|
|
2931
2959
|
user?: {
|
|
2932
|
-
|
|
2960
|
+
email: string;
|
|
2933
2961
|
name: string | null;
|
|
2962
|
+
id: string;
|
|
2934
2963
|
fingerprintId: string;
|
|
2935
2964
|
authToken: string;
|
|
2936
|
-
email: string;
|
|
2937
2965
|
fingerprintHash: string;
|
|
2938
2966
|
} | undefined;
|
|
2939
2967
|
} | {
|
|
@@ -2942,8 +2970,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2942
2970
|
fingerprintHash: string;
|
|
2943
2971
|
loginUrl: string;
|
|
2944
2972
|
} | {
|
|
2945
|
-
type: "action-error";
|
|
2946
2973
|
message: string;
|
|
2974
|
+
type: "action-error";
|
|
2947
2975
|
} | {
|
|
2948
2976
|
type: "commit-message-response";
|
|
2949
2977
|
commitMessage: string;
|
|
@@ -2970,14 +2998,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2970
2998
|
type: "response-complete";
|
|
2971
2999
|
userInputId: string;
|
|
2972
3000
|
changesAlreadyApplied: {
|
|
2973
|
-
type: "patch" | "file";
|
|
2974
3001
|
content: string;
|
|
3002
|
+
type: "file" | "patch";
|
|
2975
3003
|
filePath: string;
|
|
2976
3004
|
}[];
|
|
2977
3005
|
response: string;
|
|
2978
3006
|
changes: {
|
|
2979
|
-
type: "patch" | "file";
|
|
2980
3007
|
content: string;
|
|
3008
|
+
type: "file" | "patch";
|
|
2981
3009
|
filePath: string;
|
|
2982
3010
|
}[];
|
|
2983
3011
|
addedFileVersions: {
|
|
@@ -3002,14 +3030,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3002
3030
|
type: "tool-call";
|
|
3003
3031
|
userInputId: string;
|
|
3004
3032
|
changesAlreadyApplied: {
|
|
3005
|
-
type: "patch" | "file";
|
|
3006
3033
|
content: string;
|
|
3034
|
+
type: "file" | "patch";
|
|
3007
3035
|
filePath: string;
|
|
3008
3036
|
}[];
|
|
3009
3037
|
response: string;
|
|
3010
3038
|
changes: {
|
|
3011
|
-
type: "patch" | "file";
|
|
3012
3039
|
content: string;
|
|
3040
|
+
type: "file" | "patch";
|
|
3013
3041
|
filePath: string;
|
|
3014
3042
|
}[];
|
|
3015
3043
|
addedFileVersions: {
|
|
@@ -3018,8 +3046,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3018
3046
|
}[];
|
|
3019
3047
|
resetFileVersions: boolean;
|
|
3020
3048
|
data: {
|
|
3021
|
-
id: string;
|
|
3022
3049
|
name: string;
|
|
3050
|
+
id: string;
|
|
3023
3051
|
input: Record<string, any>;
|
|
3024
3052
|
};
|
|
3025
3053
|
} | {
|
|
@@ -3031,14 +3059,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3031
3059
|
isUpToDate: boolean;
|
|
3032
3060
|
latestVersion: string;
|
|
3033
3061
|
} | {
|
|
3034
|
-
type: "auth-result";
|
|
3035
3062
|
message: string;
|
|
3063
|
+
type: "auth-result";
|
|
3036
3064
|
user?: {
|
|
3037
|
-
|
|
3065
|
+
email: string;
|
|
3038
3066
|
name: string | null;
|
|
3067
|
+
id: string;
|
|
3039
3068
|
fingerprintId: string;
|
|
3040
3069
|
authToken: string;
|
|
3041
|
-
email: string;
|
|
3042
3070
|
fingerprintHash: string;
|
|
3043
3071
|
} | undefined;
|
|
3044
3072
|
} | {
|
|
@@ -3047,8 +3075,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3047
3075
|
fingerprintHash: string;
|
|
3048
3076
|
loginUrl: string;
|
|
3049
3077
|
} | {
|
|
3050
|
-
type: "action-error";
|
|
3051
3078
|
message: string;
|
|
3079
|
+
type: "action-error";
|
|
3052
3080
|
} | {
|
|
3053
3081
|
type: "commit-message-response";
|
|
3054
3082
|
commitMessage: string;
|