codebuff 1.0.153 → 1.0.155
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/browser-runner.js +19 -28
- package/dist/browser-runner.js.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/common/actions.d.ts +136 -136
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/lru-cache.d.ts +9 -0
- package/dist/common/util/lru-cache.js +42 -0
- package/dist/common/util/lru-cache.js.map +1 -0
- package/dist/common/util/string.d.ts +5 -0
- package/dist/common/util/string.js +15 -1
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +272 -272
- package/dist/project-files.js +4 -0
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.js +21 -3
- package/dist/tool-handlers.js.map +1 -1
- package/dist/web-scraper.js +3 -1
- package/dist/web-scraper.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
|
-
name: string;
|
|
99
98
|
id: string;
|
|
99
|
+
name: 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
|
-
name: string;
|
|
107
106
|
id: string;
|
|
107
|
+
name: string;
|
|
108
108
|
input: Record<string, any>;
|
|
109
109
|
cache_control?: {
|
|
110
110
|
type: "ephemeral";
|
|
@@ -142,12 +142,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
142
142
|
data: z.ZodString;
|
|
143
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
144
|
type: "base64";
|
|
145
|
-
media_type: "image/jpeg";
|
|
146
145
|
data: string;
|
|
146
|
+
media_type: "image/jpeg";
|
|
147
147
|
}, {
|
|
148
148
|
type: "base64";
|
|
149
|
-
media_type: "image/jpeg";
|
|
150
149
|
data: string;
|
|
150
|
+
media_type: "image/jpeg";
|
|
151
151
|
}>;
|
|
152
152
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
153
153
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -160,8 +160,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
160
160
|
type: "image";
|
|
161
161
|
source: {
|
|
162
162
|
type: "base64";
|
|
163
|
-
media_type: "image/jpeg";
|
|
164
163
|
data: string;
|
|
164
|
+
media_type: "image/jpeg";
|
|
165
165
|
};
|
|
166
166
|
cache_control?: {
|
|
167
167
|
type: "ephemeral";
|
|
@@ -170,14 +170,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
170
170
|
type: "image";
|
|
171
171
|
source: {
|
|
172
172
|
type: "base64";
|
|
173
|
-
media_type: "image/jpeg";
|
|
174
173
|
data: string;
|
|
174
|
+
media_type: "image/jpeg";
|
|
175
175
|
};
|
|
176
176
|
cache_control?: {
|
|
177
177
|
type: "ephemeral";
|
|
178
178
|
} | undefined;
|
|
179
179
|
}>]>, "many">]>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
role: "user" | "assistant";
|
|
181
182
|
content: string | ({
|
|
182
183
|
type: "text";
|
|
183
184
|
text: string;
|
|
@@ -186,8 +187,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
186
187
|
} | undefined;
|
|
187
188
|
} | {
|
|
188
189
|
type: "tool_use";
|
|
189
|
-
name: string;
|
|
190
190
|
id: string;
|
|
191
|
+
name: string;
|
|
191
192
|
input: Record<string, any>;
|
|
192
193
|
cache_control?: {
|
|
193
194
|
type: "ephemeral";
|
|
@@ -203,15 +204,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
203
204
|
type: "image";
|
|
204
205
|
source: {
|
|
205
206
|
type: "base64";
|
|
206
|
-
media_type: "image/jpeg";
|
|
207
207
|
data: string;
|
|
208
|
+
media_type: "image/jpeg";
|
|
208
209
|
};
|
|
209
210
|
cache_control?: {
|
|
210
211
|
type: "ephemeral";
|
|
211
212
|
} | undefined;
|
|
212
213
|
})[];
|
|
213
|
-
role: "user" | "assistant";
|
|
214
214
|
}, {
|
|
215
|
+
role: "user" | "assistant";
|
|
215
216
|
content: string | ({
|
|
216
217
|
type: "text";
|
|
217
218
|
text: string;
|
|
@@ -220,8 +221,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
220
221
|
} | undefined;
|
|
221
222
|
} | {
|
|
222
223
|
type: "tool_use";
|
|
223
|
-
name: string;
|
|
224
224
|
id: string;
|
|
225
|
+
name: string;
|
|
225
226
|
input: Record<string, any>;
|
|
226
227
|
cache_control?: {
|
|
227
228
|
type: "ephemeral";
|
|
@@ -237,14 +238,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
237
238
|
type: "image";
|
|
238
239
|
source: {
|
|
239
240
|
type: "base64";
|
|
240
|
-
media_type: "image/jpeg";
|
|
241
241
|
data: string;
|
|
242
|
+
media_type: "image/jpeg";
|
|
242
243
|
};
|
|
243
244
|
cache_control?: {
|
|
244
245
|
type: "ephemeral";
|
|
245
246
|
} | undefined;
|
|
246
247
|
})[];
|
|
247
|
-
role: "user" | "assistant";
|
|
248
248
|
}>, "many">;
|
|
249
249
|
fileContext: z.ZodObject<{
|
|
250
250
|
currentWorkingDirectory: z.ZodString;
|
|
@@ -258,13 +258,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
258
258
|
diffCached: z.ZodString;
|
|
259
259
|
lastCommitMessages: z.ZodString;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
diff: string;
|
|
262
261
|
status: string;
|
|
262
|
+
diff: string;
|
|
263
263
|
diffCached: string;
|
|
264
264
|
lastCommitMessages: string;
|
|
265
265
|
}, {
|
|
266
|
-
diff: string;
|
|
267
266
|
status: string;
|
|
267
|
+
diff: string;
|
|
268
268
|
diffCached: string;
|
|
269
269
|
lastCommitMessages: string;
|
|
270
270
|
}>;
|
|
@@ -308,8 +308,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
308
308
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
309
309
|
knowledgeFiles: Record<string, string>;
|
|
310
310
|
gitChanges: {
|
|
311
|
-
diff: string;
|
|
312
311
|
status: string;
|
|
312
|
+
diff: string;
|
|
313
313
|
diffCached: string;
|
|
314
314
|
lastCommitMessages: string;
|
|
315
315
|
};
|
|
@@ -334,8 +334,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
334
334
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
335
335
|
knowledgeFiles: Record<string, string>;
|
|
336
336
|
gitChanges: {
|
|
337
|
-
diff: string;
|
|
338
337
|
status: string;
|
|
338
|
+
diff: string;
|
|
339
339
|
diffCached: string;
|
|
340
340
|
lastCommitMessages: string;
|
|
341
341
|
};
|
|
@@ -360,13 +360,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
360
360
|
filePath: z.ZodString;
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
type: "
|
|
364
|
-
filePath: string;
|
|
363
|
+
type: "file" | "patch";
|
|
365
364
|
content: string;
|
|
366
|
-
}, {
|
|
367
|
-
type: "patch" | "file";
|
|
368
365
|
filePath: string;
|
|
366
|
+
}, {
|
|
367
|
+
type: "file" | "patch";
|
|
369
368
|
content: string;
|
|
369
|
+
filePath: string;
|
|
370
370
|
}>, "many">;
|
|
371
371
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -374,6 +374,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
374
374
|
fingerprintId: string;
|
|
375
375
|
userInputId: string;
|
|
376
376
|
messages: {
|
|
377
|
+
role: "user" | "assistant";
|
|
377
378
|
content: string | ({
|
|
378
379
|
type: "text";
|
|
379
380
|
text: string;
|
|
@@ -382,8 +383,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
382
383
|
} | undefined;
|
|
383
384
|
} | {
|
|
384
385
|
type: "tool_use";
|
|
385
|
-
name: string;
|
|
386
386
|
id: string;
|
|
387
|
+
name: string;
|
|
387
388
|
input: Record<string, any>;
|
|
388
389
|
cache_control?: {
|
|
389
390
|
type: "ephemeral";
|
|
@@ -399,14 +400,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
399
400
|
type: "image";
|
|
400
401
|
source: {
|
|
401
402
|
type: "base64";
|
|
402
|
-
media_type: "image/jpeg";
|
|
403
403
|
data: string;
|
|
404
|
+
media_type: "image/jpeg";
|
|
404
405
|
};
|
|
405
406
|
cache_control?: {
|
|
406
407
|
type: "ephemeral";
|
|
407
408
|
} | undefined;
|
|
408
409
|
})[];
|
|
409
|
-
role: "user" | "assistant";
|
|
410
410
|
}[];
|
|
411
411
|
fileContext: {
|
|
412
412
|
currentWorkingDirectory: string;
|
|
@@ -414,8 +414,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
414
414
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
415
415
|
knowledgeFiles: Record<string, string>;
|
|
416
416
|
gitChanges: {
|
|
417
|
-
diff: string;
|
|
418
417
|
status: string;
|
|
418
|
+
diff: string;
|
|
419
419
|
diffCached: string;
|
|
420
420
|
lastCommitMessages: string;
|
|
421
421
|
};
|
|
@@ -436,17 +436,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
436
436
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
437
437
|
};
|
|
438
438
|
changesAlreadyApplied: {
|
|
439
|
-
type: "
|
|
440
|
-
filePath: string;
|
|
439
|
+
type: "file" | "patch";
|
|
441
440
|
content: string;
|
|
441
|
+
filePath: string;
|
|
442
442
|
}[];
|
|
443
|
-
costMode: "
|
|
443
|
+
costMode: "max" | "lite" | "normal";
|
|
444
444
|
authToken?: string | undefined;
|
|
445
445
|
}, {
|
|
446
446
|
type: "user-input";
|
|
447
447
|
fingerprintId: string;
|
|
448
448
|
userInputId: string;
|
|
449
449
|
messages: {
|
|
450
|
+
role: "user" | "assistant";
|
|
450
451
|
content: string | ({
|
|
451
452
|
type: "text";
|
|
452
453
|
text: string;
|
|
@@ -455,8 +456,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
455
456
|
} | undefined;
|
|
456
457
|
} | {
|
|
457
458
|
type: "tool_use";
|
|
458
|
-
name: string;
|
|
459
459
|
id: string;
|
|
460
|
+
name: string;
|
|
460
461
|
input: Record<string, any>;
|
|
461
462
|
cache_control?: {
|
|
462
463
|
type: "ephemeral";
|
|
@@ -472,14 +473,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
472
473
|
type: "image";
|
|
473
474
|
source: {
|
|
474
475
|
type: "base64";
|
|
475
|
-
media_type: "image/jpeg";
|
|
476
476
|
data: string;
|
|
477
|
+
media_type: "image/jpeg";
|
|
477
478
|
};
|
|
478
479
|
cache_control?: {
|
|
479
480
|
type: "ephemeral";
|
|
480
481
|
} | undefined;
|
|
481
482
|
})[];
|
|
482
|
-
role: "user" | "assistant";
|
|
483
483
|
}[];
|
|
484
484
|
fileContext: {
|
|
485
485
|
currentWorkingDirectory: string;
|
|
@@ -487,8 +487,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
487
487
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
488
488
|
knowledgeFiles: Record<string, string>;
|
|
489
489
|
gitChanges: {
|
|
490
|
-
diff: string;
|
|
491
490
|
status: string;
|
|
491
|
+
diff: string;
|
|
492
492
|
diffCached: string;
|
|
493
493
|
lastCommitMessages: string;
|
|
494
494
|
};
|
|
@@ -509,12 +509,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
509
509
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
510
510
|
};
|
|
511
511
|
changesAlreadyApplied: {
|
|
512
|
-
type: "
|
|
513
|
-
filePath: string;
|
|
512
|
+
type: "file" | "patch";
|
|
514
513
|
content: string;
|
|
514
|
+
filePath: string;
|
|
515
515
|
}[];
|
|
516
516
|
authToken?: string | undefined;
|
|
517
|
-
costMode?: "
|
|
517
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
518
518
|
}>, z.ZodObject<{
|
|
519
519
|
type: z.ZodLiteral<"read-files-response">;
|
|
520
520
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -540,13 +540,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
540
540
|
diffCached: z.ZodString;
|
|
541
541
|
lastCommitMessages: z.ZodString;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
|
-
diff: string;
|
|
544
543
|
status: string;
|
|
544
|
+
diff: string;
|
|
545
545
|
diffCached: string;
|
|
546
546
|
lastCommitMessages: string;
|
|
547
547
|
}, {
|
|
548
|
-
diff: string;
|
|
549
548
|
status: string;
|
|
549
|
+
diff: string;
|
|
550
550
|
diffCached: string;
|
|
551
551
|
lastCommitMessages: string;
|
|
552
552
|
}>;
|
|
@@ -590,8 +590,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
590
590
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
591
591
|
knowledgeFiles: Record<string, string>;
|
|
592
592
|
gitChanges: {
|
|
593
|
-
diff: string;
|
|
594
593
|
status: string;
|
|
594
|
+
diff: string;
|
|
595
595
|
diffCached: string;
|
|
596
596
|
lastCommitMessages: string;
|
|
597
597
|
};
|
|
@@ -616,8 +616,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
616
616
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
617
617
|
knowledgeFiles: Record<string, string>;
|
|
618
618
|
gitChanges: {
|
|
619
|
-
diff: string;
|
|
620
619
|
status: string;
|
|
620
|
+
diff: string;
|
|
621
621
|
diffCached: string;
|
|
622
622
|
lastCommitMessages: string;
|
|
623
623
|
};
|
|
@@ -646,8 +646,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
646
646
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
647
647
|
knowledgeFiles: Record<string, string>;
|
|
648
648
|
gitChanges: {
|
|
649
|
-
diff: string;
|
|
650
649
|
status: string;
|
|
650
|
+
diff: string;
|
|
651
651
|
diffCached: string;
|
|
652
652
|
lastCommitMessages: string;
|
|
653
653
|
};
|
|
@@ -677,8 +677,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
677
677
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
678
678
|
knowledgeFiles: Record<string, string>;
|
|
679
679
|
gitChanges: {
|
|
680
|
-
diff: string;
|
|
681
680
|
status: string;
|
|
681
|
+
diff: string;
|
|
682
682
|
diffCached: string;
|
|
683
683
|
lastCommitMessages: string;
|
|
684
684
|
};
|
|
@@ -743,14 +743,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
743
743
|
fingerprintHash: z.ZodString;
|
|
744
744
|
}, "strip", z.ZodTypeAny, {
|
|
745
745
|
type: "clear-auth-token";
|
|
746
|
-
fingerprintId: string;
|
|
747
746
|
authToken: string;
|
|
747
|
+
fingerprintId: string;
|
|
748
748
|
fingerprintHash: string;
|
|
749
749
|
userId: string;
|
|
750
750
|
}, {
|
|
751
751
|
type: "clear-auth-token";
|
|
752
|
-
fingerprintId: string;
|
|
753
752
|
authToken: string;
|
|
753
|
+
fingerprintId: string;
|
|
754
754
|
fingerprintHash: string;
|
|
755
755
|
userId: string;
|
|
756
756
|
}>, z.ZodObject<{
|
|
@@ -776,6 +776,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
776
776
|
fingerprintId: string;
|
|
777
777
|
userInputId: string;
|
|
778
778
|
messages: {
|
|
779
|
+
role: "user" | "assistant";
|
|
779
780
|
content: string | ({
|
|
780
781
|
type: "text";
|
|
781
782
|
text: string;
|
|
@@ -784,8 +785,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
784
785
|
} | undefined;
|
|
785
786
|
} | {
|
|
786
787
|
type: "tool_use";
|
|
787
|
-
name: string;
|
|
788
788
|
id: string;
|
|
789
|
+
name: string;
|
|
789
790
|
input: Record<string, any>;
|
|
790
791
|
cache_control?: {
|
|
791
792
|
type: "ephemeral";
|
|
@@ -801,14 +802,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
801
802
|
type: "image";
|
|
802
803
|
source: {
|
|
803
804
|
type: "base64";
|
|
804
|
-
media_type: "image/jpeg";
|
|
805
805
|
data: string;
|
|
806
|
+
media_type: "image/jpeg";
|
|
806
807
|
};
|
|
807
808
|
cache_control?: {
|
|
808
809
|
type: "ephemeral";
|
|
809
810
|
} | undefined;
|
|
810
811
|
})[];
|
|
811
|
-
role: "user" | "assistant";
|
|
812
812
|
}[];
|
|
813
813
|
fileContext: {
|
|
814
814
|
currentWorkingDirectory: string;
|
|
@@ -816,8 +816,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
816
816
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
817
817
|
knowledgeFiles: Record<string, string>;
|
|
818
818
|
gitChanges: {
|
|
819
|
-
diff: string;
|
|
820
819
|
status: string;
|
|
820
|
+
diff: string;
|
|
821
821
|
diffCached: string;
|
|
822
822
|
lastCommitMessages: string;
|
|
823
823
|
};
|
|
@@ -838,11 +838,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
838
838
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
839
839
|
};
|
|
840
840
|
changesAlreadyApplied: {
|
|
841
|
-
type: "
|
|
842
|
-
filePath: string;
|
|
841
|
+
type: "file" | "patch";
|
|
843
842
|
content: string;
|
|
843
|
+
filePath: string;
|
|
844
844
|
}[];
|
|
845
|
-
costMode: "
|
|
845
|
+
costMode: "max" | "lite" | "normal";
|
|
846
846
|
authToken?: string | undefined;
|
|
847
847
|
} | {
|
|
848
848
|
type: "read-files-response";
|
|
@@ -856,8 +856,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
856
856
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
857
857
|
knowledgeFiles: Record<string, string>;
|
|
858
858
|
gitChanges: {
|
|
859
|
-
diff: string;
|
|
860
859
|
status: string;
|
|
860
|
+
diff: string;
|
|
861
861
|
diffCached: string;
|
|
862
862
|
lastCommitMessages: string;
|
|
863
863
|
};
|
|
@@ -892,8 +892,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
892
892
|
fingerprintHash: string;
|
|
893
893
|
} | {
|
|
894
894
|
type: "clear-auth-token";
|
|
895
|
-
fingerprintId: string;
|
|
896
895
|
authToken: string;
|
|
896
|
+
fingerprintId: string;
|
|
897
897
|
fingerprintHash: string;
|
|
898
898
|
userId: string;
|
|
899
899
|
} | {
|
|
@@ -910,6 +910,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
910
910
|
fingerprintId: string;
|
|
911
911
|
userInputId: string;
|
|
912
912
|
messages: {
|
|
913
|
+
role: "user" | "assistant";
|
|
913
914
|
content: string | ({
|
|
914
915
|
type: "text";
|
|
915
916
|
text: string;
|
|
@@ -918,8 +919,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
918
919
|
} | undefined;
|
|
919
920
|
} | {
|
|
920
921
|
type: "tool_use";
|
|
921
|
-
name: string;
|
|
922
922
|
id: string;
|
|
923
|
+
name: string;
|
|
923
924
|
input: Record<string, any>;
|
|
924
925
|
cache_control?: {
|
|
925
926
|
type: "ephemeral";
|
|
@@ -935,14 +936,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
935
936
|
type: "image";
|
|
936
937
|
source: {
|
|
937
938
|
type: "base64";
|
|
938
|
-
media_type: "image/jpeg";
|
|
939
939
|
data: string;
|
|
940
|
+
media_type: "image/jpeg";
|
|
940
941
|
};
|
|
941
942
|
cache_control?: {
|
|
942
943
|
type: "ephemeral";
|
|
943
944
|
} | undefined;
|
|
944
945
|
})[];
|
|
945
|
-
role: "user" | "assistant";
|
|
946
946
|
}[];
|
|
947
947
|
fileContext: {
|
|
948
948
|
currentWorkingDirectory: string;
|
|
@@ -950,8 +950,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
950
950
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
951
951
|
knowledgeFiles: Record<string, string>;
|
|
952
952
|
gitChanges: {
|
|
953
|
-
diff: string;
|
|
954
953
|
status: string;
|
|
954
|
+
diff: string;
|
|
955
955
|
diffCached: string;
|
|
956
956
|
lastCommitMessages: string;
|
|
957
957
|
};
|
|
@@ -972,12 +972,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
972
972
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
973
973
|
};
|
|
974
974
|
changesAlreadyApplied: {
|
|
975
|
-
type: "
|
|
976
|
-
filePath: string;
|
|
975
|
+
type: "file" | "patch";
|
|
977
976
|
content: string;
|
|
977
|
+
filePath: string;
|
|
978
978
|
}[];
|
|
979
979
|
authToken?: string | undefined;
|
|
980
|
-
costMode?: "
|
|
980
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
981
981
|
} | {
|
|
982
982
|
type: "read-files-response";
|
|
983
983
|
files: Record<string, string | null>;
|
|
@@ -990,8 +990,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
990
990
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
991
991
|
knowledgeFiles: Record<string, string>;
|
|
992
992
|
gitChanges: {
|
|
993
|
-
diff: string;
|
|
994
993
|
status: string;
|
|
994
|
+
diff: string;
|
|
995
995
|
diffCached: string;
|
|
996
996
|
lastCommitMessages: string;
|
|
997
997
|
};
|
|
@@ -1026,8 +1026,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1026
1026
|
fingerprintHash: string;
|
|
1027
1027
|
} | {
|
|
1028
1028
|
type: "clear-auth-token";
|
|
1029
|
-
fingerprintId: string;
|
|
1030
1029
|
authToken: string;
|
|
1030
|
+
fingerprintId: string;
|
|
1031
1031
|
fingerprintHash: string;
|
|
1032
1032
|
userId: string;
|
|
1033
1033
|
} | {
|
|
@@ -1130,16 +1130,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1130
1130
|
}>>;
|
|
1131
1131
|
}, "strip", z.ZodTypeAny, {
|
|
1132
1132
|
type: "tool_use";
|
|
1133
|
-
name: string;
|
|
1134
1133
|
id: string;
|
|
1134
|
+
name: string;
|
|
1135
1135
|
input: Record<string, any>;
|
|
1136
1136
|
cache_control?: {
|
|
1137
1137
|
type: "ephemeral";
|
|
1138
1138
|
} | undefined;
|
|
1139
1139
|
}, {
|
|
1140
1140
|
type: "tool_use";
|
|
1141
|
-
name: string;
|
|
1142
1141
|
id: string;
|
|
1142
|
+
name: string;
|
|
1143
1143
|
input: Record<string, any>;
|
|
1144
1144
|
cache_control?: {
|
|
1145
1145
|
type: "ephemeral";
|
|
@@ -1177,12 +1177,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1177
1177
|
data: z.ZodString;
|
|
1178
1178
|
}, "strip", z.ZodTypeAny, {
|
|
1179
1179
|
type: "base64";
|
|
1180
|
-
media_type: "image/jpeg";
|
|
1181
1180
|
data: string;
|
|
1181
|
+
media_type: "image/jpeg";
|
|
1182
1182
|
}, {
|
|
1183
1183
|
type: "base64";
|
|
1184
|
-
media_type: "image/jpeg";
|
|
1185
1184
|
data: string;
|
|
1185
|
+
media_type: "image/jpeg";
|
|
1186
1186
|
}>;
|
|
1187
1187
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1188
1188
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1195,8 +1195,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1195
1195
|
type: "image";
|
|
1196
1196
|
source: {
|
|
1197
1197
|
type: "base64";
|
|
1198
|
-
media_type: "image/jpeg";
|
|
1199
1198
|
data: string;
|
|
1199
|
+
media_type: "image/jpeg";
|
|
1200
1200
|
};
|
|
1201
1201
|
cache_control?: {
|
|
1202
1202
|
type: "ephemeral";
|
|
@@ -1205,14 +1205,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1205
1205
|
type: "image";
|
|
1206
1206
|
source: {
|
|
1207
1207
|
type: "base64";
|
|
1208
|
-
media_type: "image/jpeg";
|
|
1209
1208
|
data: string;
|
|
1209
|
+
media_type: "image/jpeg";
|
|
1210
1210
|
};
|
|
1211
1211
|
cache_control?: {
|
|
1212
1212
|
type: "ephemeral";
|
|
1213
1213
|
} | undefined;
|
|
1214
1214
|
}>]>, "many">]>;
|
|
1215
1215
|
}, "strip", z.ZodTypeAny, {
|
|
1216
|
+
role: "user" | "assistant";
|
|
1216
1217
|
content: string | ({
|
|
1217
1218
|
type: "text";
|
|
1218
1219
|
text: string;
|
|
@@ -1221,8 +1222,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1221
1222
|
} | undefined;
|
|
1222
1223
|
} | {
|
|
1223
1224
|
type: "tool_use";
|
|
1224
|
-
name: string;
|
|
1225
1225
|
id: string;
|
|
1226
|
+
name: string;
|
|
1226
1227
|
input: Record<string, any>;
|
|
1227
1228
|
cache_control?: {
|
|
1228
1229
|
type: "ephemeral";
|
|
@@ -1238,15 +1239,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1238
1239
|
type: "image";
|
|
1239
1240
|
source: {
|
|
1240
1241
|
type: "base64";
|
|
1241
|
-
media_type: "image/jpeg";
|
|
1242
1242
|
data: string;
|
|
1243
|
+
media_type: "image/jpeg";
|
|
1243
1244
|
};
|
|
1244
1245
|
cache_control?: {
|
|
1245
1246
|
type: "ephemeral";
|
|
1246
1247
|
} | undefined;
|
|
1247
1248
|
})[];
|
|
1248
|
-
role: "user" | "assistant";
|
|
1249
1249
|
}, {
|
|
1250
|
+
role: "user" | "assistant";
|
|
1250
1251
|
content: string | ({
|
|
1251
1252
|
type: "text";
|
|
1252
1253
|
text: string;
|
|
@@ -1255,8 +1256,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1255
1256
|
} | undefined;
|
|
1256
1257
|
} | {
|
|
1257
1258
|
type: "tool_use";
|
|
1258
|
-
name: string;
|
|
1259
1259
|
id: string;
|
|
1260
|
+
name: string;
|
|
1260
1261
|
input: Record<string, any>;
|
|
1261
1262
|
cache_control?: {
|
|
1262
1263
|
type: "ephemeral";
|
|
@@ -1272,14 +1273,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1272
1273
|
type: "image";
|
|
1273
1274
|
source: {
|
|
1274
1275
|
type: "base64";
|
|
1275
|
-
media_type: "image/jpeg";
|
|
1276
1276
|
data: string;
|
|
1277
|
+
media_type: "image/jpeg";
|
|
1277
1278
|
};
|
|
1278
1279
|
cache_control?: {
|
|
1279
1280
|
type: "ephemeral";
|
|
1280
1281
|
} | undefined;
|
|
1281
1282
|
})[];
|
|
1282
|
-
role: "user" | "assistant";
|
|
1283
1283
|
}>, "many">;
|
|
1284
1284
|
fileContext: z.ZodObject<{
|
|
1285
1285
|
currentWorkingDirectory: z.ZodString;
|
|
@@ -1293,13 +1293,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1293
1293
|
diffCached: z.ZodString;
|
|
1294
1294
|
lastCommitMessages: z.ZodString;
|
|
1295
1295
|
}, "strip", z.ZodTypeAny, {
|
|
1296
|
-
diff: string;
|
|
1297
1296
|
status: string;
|
|
1297
|
+
diff: string;
|
|
1298
1298
|
diffCached: string;
|
|
1299
1299
|
lastCommitMessages: string;
|
|
1300
1300
|
}, {
|
|
1301
|
-
diff: string;
|
|
1302
1301
|
status: string;
|
|
1302
|
+
diff: string;
|
|
1303
1303
|
diffCached: string;
|
|
1304
1304
|
lastCommitMessages: string;
|
|
1305
1305
|
}>;
|
|
@@ -1343,8 +1343,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1343
1343
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1344
1344
|
knowledgeFiles: Record<string, string>;
|
|
1345
1345
|
gitChanges: {
|
|
1346
|
-
diff: string;
|
|
1347
1346
|
status: string;
|
|
1347
|
+
diff: string;
|
|
1348
1348
|
diffCached: string;
|
|
1349
1349
|
lastCommitMessages: string;
|
|
1350
1350
|
};
|
|
@@ -1369,8 +1369,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1369
1369
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1370
1370
|
knowledgeFiles: Record<string, string>;
|
|
1371
1371
|
gitChanges: {
|
|
1372
|
-
diff: string;
|
|
1373
1372
|
status: string;
|
|
1373
|
+
diff: string;
|
|
1374
1374
|
diffCached: string;
|
|
1375
1375
|
lastCommitMessages: string;
|
|
1376
1376
|
};
|
|
@@ -1395,13 +1395,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1395
1395
|
filePath: z.ZodString;
|
|
1396
1396
|
content: z.ZodString;
|
|
1397
1397
|
}, "strip", z.ZodTypeAny, {
|
|
1398
|
-
type: "
|
|
1399
|
-
filePath: string;
|
|
1398
|
+
type: "file" | "patch";
|
|
1400
1399
|
content: string;
|
|
1401
|
-
}, {
|
|
1402
|
-
type: "patch" | "file";
|
|
1403
1400
|
filePath: string;
|
|
1401
|
+
}, {
|
|
1402
|
+
type: "file" | "patch";
|
|
1404
1403
|
content: string;
|
|
1404
|
+
filePath: string;
|
|
1405
1405
|
}>, "many">;
|
|
1406
1406
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
1407
1407
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1409,6 +1409,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1409
1409
|
fingerprintId: string;
|
|
1410
1410
|
userInputId: string;
|
|
1411
1411
|
messages: {
|
|
1412
|
+
role: "user" | "assistant";
|
|
1412
1413
|
content: string | ({
|
|
1413
1414
|
type: "text";
|
|
1414
1415
|
text: string;
|
|
@@ -1417,8 +1418,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1417
1418
|
} | undefined;
|
|
1418
1419
|
} | {
|
|
1419
1420
|
type: "tool_use";
|
|
1420
|
-
name: string;
|
|
1421
1421
|
id: string;
|
|
1422
|
+
name: string;
|
|
1422
1423
|
input: Record<string, any>;
|
|
1423
1424
|
cache_control?: {
|
|
1424
1425
|
type: "ephemeral";
|
|
@@ -1434,14 +1435,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1434
1435
|
type: "image";
|
|
1435
1436
|
source: {
|
|
1436
1437
|
type: "base64";
|
|
1437
|
-
media_type: "image/jpeg";
|
|
1438
1438
|
data: string;
|
|
1439
|
+
media_type: "image/jpeg";
|
|
1439
1440
|
};
|
|
1440
1441
|
cache_control?: {
|
|
1441
1442
|
type: "ephemeral";
|
|
1442
1443
|
} | undefined;
|
|
1443
1444
|
})[];
|
|
1444
|
-
role: "user" | "assistant";
|
|
1445
1445
|
}[];
|
|
1446
1446
|
fileContext: {
|
|
1447
1447
|
currentWorkingDirectory: string;
|
|
@@ -1449,8 +1449,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1449
1449
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1450
1450
|
knowledgeFiles: Record<string, string>;
|
|
1451
1451
|
gitChanges: {
|
|
1452
|
-
diff: string;
|
|
1453
1452
|
status: string;
|
|
1453
|
+
diff: string;
|
|
1454
1454
|
diffCached: string;
|
|
1455
1455
|
lastCommitMessages: string;
|
|
1456
1456
|
};
|
|
@@ -1471,17 +1471,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1471
1471
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1472
1472
|
};
|
|
1473
1473
|
changesAlreadyApplied: {
|
|
1474
|
-
type: "
|
|
1475
|
-
filePath: string;
|
|
1474
|
+
type: "file" | "patch";
|
|
1476
1475
|
content: string;
|
|
1476
|
+
filePath: string;
|
|
1477
1477
|
}[];
|
|
1478
|
-
costMode: "
|
|
1478
|
+
costMode: "max" | "lite" | "normal";
|
|
1479
1479
|
authToken?: string | undefined;
|
|
1480
1480
|
}, {
|
|
1481
1481
|
type: "user-input";
|
|
1482
1482
|
fingerprintId: string;
|
|
1483
1483
|
userInputId: string;
|
|
1484
1484
|
messages: {
|
|
1485
|
+
role: "user" | "assistant";
|
|
1485
1486
|
content: string | ({
|
|
1486
1487
|
type: "text";
|
|
1487
1488
|
text: string;
|
|
@@ -1490,8 +1491,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1490
1491
|
} | undefined;
|
|
1491
1492
|
} | {
|
|
1492
1493
|
type: "tool_use";
|
|
1493
|
-
name: string;
|
|
1494
1494
|
id: string;
|
|
1495
|
+
name: string;
|
|
1495
1496
|
input: Record<string, any>;
|
|
1496
1497
|
cache_control?: {
|
|
1497
1498
|
type: "ephemeral";
|
|
@@ -1507,14 +1508,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1507
1508
|
type: "image";
|
|
1508
1509
|
source: {
|
|
1509
1510
|
type: "base64";
|
|
1510
|
-
media_type: "image/jpeg";
|
|
1511
1511
|
data: string;
|
|
1512
|
+
media_type: "image/jpeg";
|
|
1512
1513
|
};
|
|
1513
1514
|
cache_control?: {
|
|
1514
1515
|
type: "ephemeral";
|
|
1515
1516
|
} | undefined;
|
|
1516
1517
|
})[];
|
|
1517
|
-
role: "user" | "assistant";
|
|
1518
1518
|
}[];
|
|
1519
1519
|
fileContext: {
|
|
1520
1520
|
currentWorkingDirectory: string;
|
|
@@ -1522,8 +1522,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1522
1522
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1523
1523
|
knowledgeFiles: Record<string, string>;
|
|
1524
1524
|
gitChanges: {
|
|
1525
|
-
diff: string;
|
|
1526
1525
|
status: string;
|
|
1526
|
+
diff: string;
|
|
1527
1527
|
diffCached: string;
|
|
1528
1528
|
lastCommitMessages: string;
|
|
1529
1529
|
};
|
|
@@ -1544,12 +1544,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1544
1544
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1545
1545
|
};
|
|
1546
1546
|
changesAlreadyApplied: {
|
|
1547
|
-
type: "
|
|
1548
|
-
filePath: string;
|
|
1547
|
+
type: "file" | "patch";
|
|
1549
1548
|
content: string;
|
|
1549
|
+
filePath: string;
|
|
1550
1550
|
}[];
|
|
1551
1551
|
authToken?: string | undefined;
|
|
1552
|
-
costMode?: "
|
|
1552
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1553
1553
|
}>, z.ZodObject<{
|
|
1554
1554
|
type: z.ZodLiteral<"read-files-response">;
|
|
1555
1555
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -1575,13 +1575,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1575
1575
|
diffCached: z.ZodString;
|
|
1576
1576
|
lastCommitMessages: z.ZodString;
|
|
1577
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1578
|
-
diff: string;
|
|
1579
1578
|
status: string;
|
|
1579
|
+
diff: string;
|
|
1580
1580
|
diffCached: string;
|
|
1581
1581
|
lastCommitMessages: string;
|
|
1582
1582
|
}, {
|
|
1583
|
-
diff: string;
|
|
1584
1583
|
status: string;
|
|
1584
|
+
diff: string;
|
|
1585
1585
|
diffCached: string;
|
|
1586
1586
|
lastCommitMessages: string;
|
|
1587
1587
|
}>;
|
|
@@ -1625,8 +1625,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1625
1625
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1626
1626
|
knowledgeFiles: Record<string, string>;
|
|
1627
1627
|
gitChanges: {
|
|
1628
|
-
diff: string;
|
|
1629
1628
|
status: string;
|
|
1629
|
+
diff: string;
|
|
1630
1630
|
diffCached: string;
|
|
1631
1631
|
lastCommitMessages: string;
|
|
1632
1632
|
};
|
|
@@ -1651,8 +1651,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1651
1651
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1652
1652
|
knowledgeFiles: Record<string, string>;
|
|
1653
1653
|
gitChanges: {
|
|
1654
|
-
diff: string;
|
|
1655
1654
|
status: string;
|
|
1655
|
+
diff: string;
|
|
1656
1656
|
diffCached: string;
|
|
1657
1657
|
lastCommitMessages: string;
|
|
1658
1658
|
};
|
|
@@ -1681,8 +1681,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1681
1681
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1682
1682
|
knowledgeFiles: Record<string, string>;
|
|
1683
1683
|
gitChanges: {
|
|
1684
|
-
diff: string;
|
|
1685
1684
|
status: string;
|
|
1685
|
+
diff: string;
|
|
1686
1686
|
diffCached: string;
|
|
1687
1687
|
lastCommitMessages: string;
|
|
1688
1688
|
};
|
|
@@ -1712,8 +1712,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1712
1712
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1713
1713
|
knowledgeFiles: Record<string, string>;
|
|
1714
1714
|
gitChanges: {
|
|
1715
|
-
diff: string;
|
|
1716
1715
|
status: string;
|
|
1716
|
+
diff: string;
|
|
1717
1717
|
diffCached: string;
|
|
1718
1718
|
lastCommitMessages: string;
|
|
1719
1719
|
};
|
|
@@ -1778,14 +1778,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1778
1778
|
fingerprintHash: z.ZodString;
|
|
1779
1779
|
}, "strip", z.ZodTypeAny, {
|
|
1780
1780
|
type: "clear-auth-token";
|
|
1781
|
-
fingerprintId: string;
|
|
1782
1781
|
authToken: string;
|
|
1782
|
+
fingerprintId: string;
|
|
1783
1783
|
fingerprintHash: string;
|
|
1784
1784
|
userId: string;
|
|
1785
1785
|
}, {
|
|
1786
1786
|
type: "clear-auth-token";
|
|
1787
|
-
fingerprintId: string;
|
|
1788
1787
|
authToken: string;
|
|
1788
|
+
fingerprintId: string;
|
|
1789
1789
|
fingerprintHash: string;
|
|
1790
1790
|
userId: string;
|
|
1791
1791
|
}>, z.ZodObject<{
|
|
@@ -1811,6 +1811,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1811
1811
|
fingerprintId: string;
|
|
1812
1812
|
userInputId: string;
|
|
1813
1813
|
messages: {
|
|
1814
|
+
role: "user" | "assistant";
|
|
1814
1815
|
content: string | ({
|
|
1815
1816
|
type: "text";
|
|
1816
1817
|
text: string;
|
|
@@ -1819,8 +1820,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1819
1820
|
} | undefined;
|
|
1820
1821
|
} | {
|
|
1821
1822
|
type: "tool_use";
|
|
1822
|
-
name: string;
|
|
1823
1823
|
id: string;
|
|
1824
|
+
name: string;
|
|
1824
1825
|
input: Record<string, any>;
|
|
1825
1826
|
cache_control?: {
|
|
1826
1827
|
type: "ephemeral";
|
|
@@ -1836,14 +1837,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1836
1837
|
type: "image";
|
|
1837
1838
|
source: {
|
|
1838
1839
|
type: "base64";
|
|
1839
|
-
media_type: "image/jpeg";
|
|
1840
1840
|
data: string;
|
|
1841
|
+
media_type: "image/jpeg";
|
|
1841
1842
|
};
|
|
1842
1843
|
cache_control?: {
|
|
1843
1844
|
type: "ephemeral";
|
|
1844
1845
|
} | undefined;
|
|
1845
1846
|
})[];
|
|
1846
|
-
role: "user" | "assistant";
|
|
1847
1847
|
}[];
|
|
1848
1848
|
fileContext: {
|
|
1849
1849
|
currentWorkingDirectory: string;
|
|
@@ -1851,8 +1851,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1851
1851
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1852
1852
|
knowledgeFiles: Record<string, string>;
|
|
1853
1853
|
gitChanges: {
|
|
1854
|
-
diff: string;
|
|
1855
1854
|
status: string;
|
|
1855
|
+
diff: string;
|
|
1856
1856
|
diffCached: string;
|
|
1857
1857
|
lastCommitMessages: string;
|
|
1858
1858
|
};
|
|
@@ -1873,11 +1873,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1873
1873
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1874
1874
|
};
|
|
1875
1875
|
changesAlreadyApplied: {
|
|
1876
|
-
type: "
|
|
1877
|
-
filePath: string;
|
|
1876
|
+
type: "file" | "patch";
|
|
1878
1877
|
content: string;
|
|
1878
|
+
filePath: string;
|
|
1879
1879
|
}[];
|
|
1880
|
-
costMode: "
|
|
1880
|
+
costMode: "max" | "lite" | "normal";
|
|
1881
1881
|
authToken?: string | undefined;
|
|
1882
1882
|
} | {
|
|
1883
1883
|
type: "read-files-response";
|
|
@@ -1891,8 +1891,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1891
1891
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1892
1892
|
knowledgeFiles: Record<string, string>;
|
|
1893
1893
|
gitChanges: {
|
|
1894
|
-
diff: string;
|
|
1895
1894
|
status: string;
|
|
1895
|
+
diff: string;
|
|
1896
1896
|
diffCached: string;
|
|
1897
1897
|
lastCommitMessages: string;
|
|
1898
1898
|
};
|
|
@@ -1927,8 +1927,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1927
1927
|
fingerprintHash: string;
|
|
1928
1928
|
} | {
|
|
1929
1929
|
type: "clear-auth-token";
|
|
1930
|
-
fingerprintId: string;
|
|
1931
1930
|
authToken: string;
|
|
1931
|
+
fingerprintId: string;
|
|
1932
1932
|
fingerprintHash: string;
|
|
1933
1933
|
userId: string;
|
|
1934
1934
|
} | {
|
|
@@ -1945,6 +1945,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1945
1945
|
fingerprintId: string;
|
|
1946
1946
|
userInputId: string;
|
|
1947
1947
|
messages: {
|
|
1948
|
+
role: "user" | "assistant";
|
|
1948
1949
|
content: string | ({
|
|
1949
1950
|
type: "text";
|
|
1950
1951
|
text: string;
|
|
@@ -1953,8 +1954,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1953
1954
|
} | undefined;
|
|
1954
1955
|
} | {
|
|
1955
1956
|
type: "tool_use";
|
|
1956
|
-
name: string;
|
|
1957
1957
|
id: string;
|
|
1958
|
+
name: string;
|
|
1958
1959
|
input: Record<string, any>;
|
|
1959
1960
|
cache_control?: {
|
|
1960
1961
|
type: "ephemeral";
|
|
@@ -1970,14 +1971,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1970
1971
|
type: "image";
|
|
1971
1972
|
source: {
|
|
1972
1973
|
type: "base64";
|
|
1973
|
-
media_type: "image/jpeg";
|
|
1974
1974
|
data: string;
|
|
1975
|
+
media_type: "image/jpeg";
|
|
1975
1976
|
};
|
|
1976
1977
|
cache_control?: {
|
|
1977
1978
|
type: "ephemeral";
|
|
1978
1979
|
} | undefined;
|
|
1979
1980
|
})[];
|
|
1980
|
-
role: "user" | "assistant";
|
|
1981
1981
|
}[];
|
|
1982
1982
|
fileContext: {
|
|
1983
1983
|
currentWorkingDirectory: string;
|
|
@@ -1985,8 +1985,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1985
1985
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1986
1986
|
knowledgeFiles: Record<string, string>;
|
|
1987
1987
|
gitChanges: {
|
|
1988
|
-
diff: string;
|
|
1989
1988
|
status: string;
|
|
1989
|
+
diff: string;
|
|
1990
1990
|
diffCached: string;
|
|
1991
1991
|
lastCommitMessages: string;
|
|
1992
1992
|
};
|
|
@@ -2007,12 +2007,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2007
2007
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2008
2008
|
};
|
|
2009
2009
|
changesAlreadyApplied: {
|
|
2010
|
-
type: "
|
|
2011
|
-
filePath: string;
|
|
2010
|
+
type: "file" | "patch";
|
|
2012
2011
|
content: string;
|
|
2012
|
+
filePath: string;
|
|
2013
2013
|
}[];
|
|
2014
2014
|
authToken?: string | undefined;
|
|
2015
|
-
costMode?: "
|
|
2015
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
2016
2016
|
} | {
|
|
2017
2017
|
type: "read-files-response";
|
|
2018
2018
|
files: Record<string, string | null>;
|
|
@@ -2025,8 +2025,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2025
2025
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2026
2026
|
knowledgeFiles: Record<string, string>;
|
|
2027
2027
|
gitChanges: {
|
|
2028
|
-
diff: string;
|
|
2029
2028
|
status: string;
|
|
2029
|
+
diff: string;
|
|
2030
2030
|
diffCached: string;
|
|
2031
2031
|
lastCommitMessages: string;
|
|
2032
2032
|
};
|
|
@@ -2061,8 +2061,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2061
2061
|
fingerprintHash: string;
|
|
2062
2062
|
} | {
|
|
2063
2063
|
type: "clear-auth-token";
|
|
2064
|
-
fingerprintId: string;
|
|
2065
2064
|
authToken: string;
|
|
2065
|
+
fingerprintId: string;
|
|
2066
2066
|
fingerprintHash: string;
|
|
2067
2067
|
userId: string;
|
|
2068
2068
|
} | {
|
|
@@ -2124,26 +2124,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2124
2124
|
filePath: z.ZodString;
|
|
2125
2125
|
content: z.ZodString;
|
|
2126
2126
|
}, "strip", z.ZodTypeAny, {
|
|
2127
|
-
type: "
|
|
2128
|
-
filePath: string;
|
|
2127
|
+
type: "file" | "patch";
|
|
2129
2128
|
content: string;
|
|
2130
|
-
}, {
|
|
2131
|
-
type: "patch" | "file";
|
|
2132
2129
|
filePath: string;
|
|
2130
|
+
}, {
|
|
2131
|
+
type: "file" | "patch";
|
|
2133
2132
|
content: string;
|
|
2133
|
+
filePath: string;
|
|
2134
2134
|
}>, "many">;
|
|
2135
2135
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2136
2136
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2137
2137
|
filePath: z.ZodString;
|
|
2138
2138
|
content: z.ZodString;
|
|
2139
2139
|
}, "strip", z.ZodTypeAny, {
|
|
2140
|
-
type: "
|
|
2141
|
-
filePath: string;
|
|
2140
|
+
type: "file" | "patch";
|
|
2142
2141
|
content: string;
|
|
2143
|
-
}, {
|
|
2144
|
-
type: "patch" | "file";
|
|
2145
2142
|
filePath: string;
|
|
2143
|
+
}, {
|
|
2144
|
+
type: "file" | "patch";
|
|
2146
2145
|
content: string;
|
|
2146
|
+
filePath: string;
|
|
2147
2147
|
}>, "many">;
|
|
2148
2148
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2149
2149
|
path: z.ZodString;
|
|
@@ -2167,15 +2167,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2167
2167
|
type: "response-complete";
|
|
2168
2168
|
userInputId: string;
|
|
2169
2169
|
changesAlreadyApplied: {
|
|
2170
|
-
type: "
|
|
2171
|
-
filePath: string;
|
|
2170
|
+
type: "file" | "patch";
|
|
2172
2171
|
content: string;
|
|
2172
|
+
filePath: string;
|
|
2173
2173
|
}[];
|
|
2174
2174
|
response: string;
|
|
2175
2175
|
changes: {
|
|
2176
|
-
type: "
|
|
2177
|
-
filePath: string;
|
|
2176
|
+
type: "file" | "patch";
|
|
2178
2177
|
content: string;
|
|
2178
|
+
filePath: string;
|
|
2179
2179
|
}[];
|
|
2180
2180
|
addedFileVersions: {
|
|
2181
2181
|
path: string;
|
|
@@ -2192,15 +2192,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2192
2192
|
type: "response-complete";
|
|
2193
2193
|
userInputId: string;
|
|
2194
2194
|
changesAlreadyApplied: {
|
|
2195
|
-
type: "
|
|
2196
|
-
filePath: string;
|
|
2195
|
+
type: "file" | "patch";
|
|
2197
2196
|
content: string;
|
|
2197
|
+
filePath: string;
|
|
2198
2198
|
}[];
|
|
2199
2199
|
response: string;
|
|
2200
2200
|
changes: {
|
|
2201
|
-
type: "
|
|
2202
|
-
filePath: string;
|
|
2201
|
+
type: "file" | "patch";
|
|
2203
2202
|
content: string;
|
|
2203
|
+
filePath: string;
|
|
2204
2204
|
}[];
|
|
2205
2205
|
addedFileVersions: {
|
|
2206
2206
|
path: string;
|
|
@@ -2231,12 +2231,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2231
2231
|
id: z.ZodString;
|
|
2232
2232
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2233
2233
|
}, "strip", z.ZodTypeAny, {
|
|
2234
|
-
name: string;
|
|
2235
2234
|
id: string;
|
|
2235
|
+
name: string;
|
|
2236
2236
|
input: Record<string, any>;
|
|
2237
2237
|
}, {
|
|
2238
|
-
name: string;
|
|
2239
2238
|
id: string;
|
|
2239
|
+
name: string;
|
|
2240
2240
|
input: Record<string, any>;
|
|
2241
2241
|
}>;
|
|
2242
2242
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2244,26 +2244,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2244
2244
|
filePath: z.ZodString;
|
|
2245
2245
|
content: z.ZodString;
|
|
2246
2246
|
}, "strip", z.ZodTypeAny, {
|
|
2247
|
-
type: "
|
|
2248
|
-
filePath: string;
|
|
2247
|
+
type: "file" | "patch";
|
|
2249
2248
|
content: string;
|
|
2250
|
-
}, {
|
|
2251
|
-
type: "patch" | "file";
|
|
2252
2249
|
filePath: string;
|
|
2250
|
+
}, {
|
|
2251
|
+
type: "file" | "patch";
|
|
2253
2252
|
content: string;
|
|
2253
|
+
filePath: string;
|
|
2254
2254
|
}>, "many">;
|
|
2255
2255
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2256
2256
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2257
2257
|
filePath: z.ZodString;
|
|
2258
2258
|
content: z.ZodString;
|
|
2259
2259
|
}, "strip", z.ZodTypeAny, {
|
|
2260
|
-
type: "
|
|
2261
|
-
filePath: string;
|
|
2260
|
+
type: "file" | "patch";
|
|
2262
2261
|
content: string;
|
|
2263
|
-
}, {
|
|
2264
|
-
type: "patch" | "file";
|
|
2265
2262
|
filePath: string;
|
|
2263
|
+
}, {
|
|
2264
|
+
type: "file" | "patch";
|
|
2266
2265
|
content: string;
|
|
2266
|
+
filePath: string;
|
|
2267
2267
|
}>, "many">;
|
|
2268
2268
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2269
2269
|
path: z.ZodString;
|
|
@@ -2278,22 +2278,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2278
2278
|
resetFileVersions: z.ZodBoolean;
|
|
2279
2279
|
}, "strip", z.ZodTypeAny, {
|
|
2280
2280
|
type: "tool-call";
|
|
2281
|
-
userInputId: string;
|
|
2282
2281
|
data: {
|
|
2283
|
-
name: string;
|
|
2284
2282
|
id: string;
|
|
2283
|
+
name: string;
|
|
2285
2284
|
input: Record<string, any>;
|
|
2286
2285
|
};
|
|
2286
|
+
userInputId: string;
|
|
2287
2287
|
changesAlreadyApplied: {
|
|
2288
|
-
type: "
|
|
2289
|
-
filePath: string;
|
|
2288
|
+
type: "file" | "patch";
|
|
2290
2289
|
content: string;
|
|
2290
|
+
filePath: string;
|
|
2291
2291
|
}[];
|
|
2292
2292
|
response: string;
|
|
2293
2293
|
changes: {
|
|
2294
|
-
type: "
|
|
2295
|
-
filePath: string;
|
|
2294
|
+
type: "file" | "patch";
|
|
2296
2295
|
content: string;
|
|
2296
|
+
filePath: string;
|
|
2297
2297
|
}[];
|
|
2298
2298
|
addedFileVersions: {
|
|
2299
2299
|
path: string;
|
|
@@ -2302,22 +2302,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2302
2302
|
resetFileVersions: boolean;
|
|
2303
2303
|
}, {
|
|
2304
2304
|
type: "tool-call";
|
|
2305
|
-
userInputId: string;
|
|
2306
2305
|
data: {
|
|
2307
|
-
name: string;
|
|
2308
2306
|
id: string;
|
|
2307
|
+
name: string;
|
|
2309
2308
|
input: Record<string, any>;
|
|
2310
2309
|
};
|
|
2310
|
+
userInputId: string;
|
|
2311
2311
|
changesAlreadyApplied: {
|
|
2312
|
-
type: "
|
|
2313
|
-
filePath: string;
|
|
2312
|
+
type: "file" | "patch";
|
|
2314
2313
|
content: string;
|
|
2314
|
+
filePath: string;
|
|
2315
2315
|
}[];
|
|
2316
2316
|
response: string;
|
|
2317
2317
|
changes: {
|
|
2318
|
-
type: "
|
|
2319
|
-
filePath: string;
|
|
2318
|
+
type: "file" | "patch";
|
|
2320
2319
|
content: string;
|
|
2320
|
+
filePath: string;
|
|
2321
2321
|
}[];
|
|
2322
2322
|
addedFileVersions: {
|
|
2323
2323
|
path: string;
|
|
@@ -2384,18 +2384,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2384
2384
|
fingerprintId: z.ZodString;
|
|
2385
2385
|
fingerprintHash: z.ZodString;
|
|
2386
2386
|
}, "strip", z.ZodTypeAny, {
|
|
2387
|
-
name: string | null;
|
|
2388
2387
|
id: string;
|
|
2389
|
-
|
|
2390
|
-
authToken: string;
|
|
2388
|
+
name: string | null;
|
|
2391
2389
|
email: string;
|
|
2390
|
+
authToken: string;
|
|
2391
|
+
fingerprintId: string;
|
|
2392
2392
|
fingerprintHash: string;
|
|
2393
2393
|
}, {
|
|
2394
|
-
name: string | null;
|
|
2395
2394
|
id: string;
|
|
2396
|
-
|
|
2397
|
-
authToken: string;
|
|
2395
|
+
name: string | null;
|
|
2398
2396
|
email: string;
|
|
2397
|
+
authToken: string;
|
|
2398
|
+
fingerprintId: string;
|
|
2399
2399
|
fingerprintHash: string;
|
|
2400
2400
|
}>>;
|
|
2401
2401
|
message: z.ZodString;
|
|
@@ -2403,22 +2403,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2403
2403
|
type: "auth-result";
|
|
2404
2404
|
message: string;
|
|
2405
2405
|
user?: {
|
|
2406
|
-
name: string | null;
|
|
2407
2406
|
id: string;
|
|
2408
|
-
|
|
2409
|
-
authToken: string;
|
|
2407
|
+
name: string | null;
|
|
2410
2408
|
email: string;
|
|
2409
|
+
authToken: string;
|
|
2410
|
+
fingerprintId: string;
|
|
2411
2411
|
fingerprintHash: string;
|
|
2412
2412
|
} | undefined;
|
|
2413
2413
|
}, {
|
|
2414
2414
|
type: "auth-result";
|
|
2415
2415
|
message: string;
|
|
2416
2416
|
user?: {
|
|
2417
|
-
name: string | null;
|
|
2418
2417
|
id: string;
|
|
2419
|
-
|
|
2420
|
-
authToken: string;
|
|
2418
|
+
name: string | null;
|
|
2421
2419
|
email: string;
|
|
2420
|
+
authToken: string;
|
|
2421
|
+
fingerprintId: string;
|
|
2422
2422
|
fingerprintHash: string;
|
|
2423
2423
|
} | undefined;
|
|
2424
2424
|
}>, z.ZodObject<{
|
|
@@ -2501,15 +2501,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2501
2501
|
type: "response-complete";
|
|
2502
2502
|
userInputId: string;
|
|
2503
2503
|
changesAlreadyApplied: {
|
|
2504
|
-
type: "
|
|
2505
|
-
filePath: string;
|
|
2504
|
+
type: "file" | "patch";
|
|
2506
2505
|
content: string;
|
|
2506
|
+
filePath: string;
|
|
2507
2507
|
}[];
|
|
2508
2508
|
response: string;
|
|
2509
2509
|
changes: {
|
|
2510
|
-
type: "
|
|
2511
|
-
filePath: string;
|
|
2510
|
+
type: "file" | "patch";
|
|
2512
2511
|
content: string;
|
|
2512
|
+
filePath: string;
|
|
2513
2513
|
}[];
|
|
2514
2514
|
addedFileVersions: {
|
|
2515
2515
|
path: string;
|
|
@@ -2534,22 +2534,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2534
2534
|
filePaths: string[];
|
|
2535
2535
|
} | {
|
|
2536
2536
|
type: "tool-call";
|
|
2537
|
-
userInputId: string;
|
|
2538
2537
|
data: {
|
|
2539
|
-
name: string;
|
|
2540
2538
|
id: string;
|
|
2539
|
+
name: string;
|
|
2541
2540
|
input: Record<string, any>;
|
|
2542
2541
|
};
|
|
2542
|
+
userInputId: string;
|
|
2543
2543
|
changesAlreadyApplied: {
|
|
2544
|
-
type: "
|
|
2545
|
-
filePath: string;
|
|
2544
|
+
type: "file" | "patch";
|
|
2546
2545
|
content: string;
|
|
2546
|
+
filePath: string;
|
|
2547
2547
|
}[];
|
|
2548
2548
|
response: string;
|
|
2549
2549
|
changes: {
|
|
2550
|
-
type: "
|
|
2551
|
-
filePath: string;
|
|
2550
|
+
type: "file" | "patch";
|
|
2552
2551
|
content: string;
|
|
2552
|
+
filePath: string;
|
|
2553
2553
|
}[];
|
|
2554
2554
|
addedFileVersions: {
|
|
2555
2555
|
path: string;
|
|
@@ -2568,11 +2568,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2568
2568
|
type: "auth-result";
|
|
2569
2569
|
message: string;
|
|
2570
2570
|
user?: {
|
|
2571
|
-
name: string | null;
|
|
2572
2571
|
id: string;
|
|
2573
|
-
|
|
2574
|
-
authToken: string;
|
|
2572
|
+
name: string | null;
|
|
2575
2573
|
email: string;
|
|
2574
|
+
authToken: string;
|
|
2575
|
+
fingerprintId: string;
|
|
2576
2576
|
fingerprintHash: string;
|
|
2577
2577
|
} | undefined;
|
|
2578
2578
|
} | {
|
|
@@ -2609,15 +2609,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2609
2609
|
type: "response-complete";
|
|
2610
2610
|
userInputId: string;
|
|
2611
2611
|
changesAlreadyApplied: {
|
|
2612
|
-
type: "
|
|
2613
|
-
filePath: string;
|
|
2612
|
+
type: "file" | "patch";
|
|
2614
2613
|
content: string;
|
|
2614
|
+
filePath: string;
|
|
2615
2615
|
}[];
|
|
2616
2616
|
response: string;
|
|
2617
2617
|
changes: {
|
|
2618
|
-
type: "
|
|
2619
|
-
filePath: string;
|
|
2618
|
+
type: "file" | "patch";
|
|
2620
2619
|
content: string;
|
|
2620
|
+
filePath: string;
|
|
2621
2621
|
}[];
|
|
2622
2622
|
addedFileVersions: {
|
|
2623
2623
|
path: string;
|
|
@@ -2642,22 +2642,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2642
2642
|
filePaths: string[];
|
|
2643
2643
|
} | {
|
|
2644
2644
|
type: "tool-call";
|
|
2645
|
-
userInputId: string;
|
|
2646
2645
|
data: {
|
|
2647
|
-
name: string;
|
|
2648
2646
|
id: string;
|
|
2647
|
+
name: string;
|
|
2649
2648
|
input: Record<string, any>;
|
|
2650
2649
|
};
|
|
2650
|
+
userInputId: string;
|
|
2651
2651
|
changesAlreadyApplied: {
|
|
2652
|
-
type: "
|
|
2653
|
-
filePath: string;
|
|
2652
|
+
type: "file" | "patch";
|
|
2654
2653
|
content: string;
|
|
2654
|
+
filePath: string;
|
|
2655
2655
|
}[];
|
|
2656
2656
|
response: string;
|
|
2657
2657
|
changes: {
|
|
2658
|
-
type: "
|
|
2659
|
-
filePath: string;
|
|
2658
|
+
type: "file" | "patch";
|
|
2660
2659
|
content: string;
|
|
2660
|
+
filePath: string;
|
|
2661
2661
|
}[];
|
|
2662
2662
|
addedFileVersions: {
|
|
2663
2663
|
path: string;
|
|
@@ -2676,11 +2676,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2676
2676
|
type: "auth-result";
|
|
2677
2677
|
message: string;
|
|
2678
2678
|
user?: {
|
|
2679
|
-
name: string | null;
|
|
2680
2679
|
id: string;
|
|
2681
|
-
|
|
2682
|
-
authToken: string;
|
|
2680
|
+
name: string | null;
|
|
2683
2681
|
email: string;
|
|
2682
|
+
authToken: string;
|
|
2683
|
+
fingerprintId: string;
|
|
2684
2684
|
fingerprintHash: string;
|
|
2685
2685
|
} | undefined;
|
|
2686
2686
|
} | {
|
|
@@ -2744,26 +2744,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2744
2744
|
filePath: z.ZodString;
|
|
2745
2745
|
content: z.ZodString;
|
|
2746
2746
|
}, "strip", z.ZodTypeAny, {
|
|
2747
|
-
type: "
|
|
2748
|
-
filePath: string;
|
|
2747
|
+
type: "file" | "patch";
|
|
2749
2748
|
content: string;
|
|
2750
|
-
}, {
|
|
2751
|
-
type: "patch" | "file";
|
|
2752
2749
|
filePath: string;
|
|
2750
|
+
}, {
|
|
2751
|
+
type: "file" | "patch";
|
|
2753
2752
|
content: string;
|
|
2753
|
+
filePath: string;
|
|
2754
2754
|
}>, "many">;
|
|
2755
2755
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2756
2756
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2757
2757
|
filePath: z.ZodString;
|
|
2758
2758
|
content: z.ZodString;
|
|
2759
2759
|
}, "strip", z.ZodTypeAny, {
|
|
2760
|
-
type: "
|
|
2761
|
-
filePath: string;
|
|
2760
|
+
type: "file" | "patch";
|
|
2762
2761
|
content: string;
|
|
2763
|
-
}, {
|
|
2764
|
-
type: "patch" | "file";
|
|
2765
2762
|
filePath: string;
|
|
2763
|
+
}, {
|
|
2764
|
+
type: "file" | "patch";
|
|
2766
2765
|
content: string;
|
|
2766
|
+
filePath: string;
|
|
2767
2767
|
}>, "many">;
|
|
2768
2768
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2769
2769
|
path: z.ZodString;
|
|
@@ -2787,15 +2787,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2787
2787
|
type: "response-complete";
|
|
2788
2788
|
userInputId: string;
|
|
2789
2789
|
changesAlreadyApplied: {
|
|
2790
|
-
type: "
|
|
2791
|
-
filePath: string;
|
|
2790
|
+
type: "file" | "patch";
|
|
2792
2791
|
content: string;
|
|
2792
|
+
filePath: string;
|
|
2793
2793
|
}[];
|
|
2794
2794
|
response: string;
|
|
2795
2795
|
changes: {
|
|
2796
|
-
type: "
|
|
2797
|
-
filePath: string;
|
|
2796
|
+
type: "file" | "patch";
|
|
2798
2797
|
content: string;
|
|
2798
|
+
filePath: string;
|
|
2799
2799
|
}[];
|
|
2800
2800
|
addedFileVersions: {
|
|
2801
2801
|
path: string;
|
|
@@ -2812,15 +2812,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2812
2812
|
type: "response-complete";
|
|
2813
2813
|
userInputId: string;
|
|
2814
2814
|
changesAlreadyApplied: {
|
|
2815
|
-
type: "
|
|
2816
|
-
filePath: string;
|
|
2815
|
+
type: "file" | "patch";
|
|
2817
2816
|
content: string;
|
|
2817
|
+
filePath: string;
|
|
2818
2818
|
}[];
|
|
2819
2819
|
response: string;
|
|
2820
2820
|
changes: {
|
|
2821
|
-
type: "
|
|
2822
|
-
filePath: string;
|
|
2821
|
+
type: "file" | "patch";
|
|
2823
2822
|
content: string;
|
|
2823
|
+
filePath: string;
|
|
2824
2824
|
}[];
|
|
2825
2825
|
addedFileVersions: {
|
|
2826
2826
|
path: string;
|
|
@@ -2851,12 +2851,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2851
2851
|
id: z.ZodString;
|
|
2852
2852
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2853
2853
|
}, "strip", z.ZodTypeAny, {
|
|
2854
|
-
name: string;
|
|
2855
2854
|
id: string;
|
|
2855
|
+
name: string;
|
|
2856
2856
|
input: Record<string, any>;
|
|
2857
2857
|
}, {
|
|
2858
|
-
name: string;
|
|
2859
2858
|
id: string;
|
|
2859
|
+
name: string;
|
|
2860
2860
|
input: Record<string, any>;
|
|
2861
2861
|
}>;
|
|
2862
2862
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2864,26 +2864,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2864
2864
|
filePath: z.ZodString;
|
|
2865
2865
|
content: z.ZodString;
|
|
2866
2866
|
}, "strip", z.ZodTypeAny, {
|
|
2867
|
-
type: "
|
|
2868
|
-
filePath: string;
|
|
2867
|
+
type: "file" | "patch";
|
|
2869
2868
|
content: string;
|
|
2870
|
-
}, {
|
|
2871
|
-
type: "patch" | "file";
|
|
2872
2869
|
filePath: string;
|
|
2870
|
+
}, {
|
|
2871
|
+
type: "file" | "patch";
|
|
2873
2872
|
content: string;
|
|
2873
|
+
filePath: string;
|
|
2874
2874
|
}>, "many">;
|
|
2875
2875
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2876
2876
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2877
2877
|
filePath: z.ZodString;
|
|
2878
2878
|
content: z.ZodString;
|
|
2879
2879
|
}, "strip", z.ZodTypeAny, {
|
|
2880
|
-
type: "
|
|
2881
|
-
filePath: string;
|
|
2880
|
+
type: "file" | "patch";
|
|
2882
2881
|
content: string;
|
|
2883
|
-
}, {
|
|
2884
|
-
type: "patch" | "file";
|
|
2885
2882
|
filePath: string;
|
|
2883
|
+
}, {
|
|
2884
|
+
type: "file" | "patch";
|
|
2886
2885
|
content: string;
|
|
2886
|
+
filePath: string;
|
|
2887
2887
|
}>, "many">;
|
|
2888
2888
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2889
2889
|
path: z.ZodString;
|
|
@@ -2898,22 +2898,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2898
2898
|
resetFileVersions: z.ZodBoolean;
|
|
2899
2899
|
}, "strip", z.ZodTypeAny, {
|
|
2900
2900
|
type: "tool-call";
|
|
2901
|
-
userInputId: string;
|
|
2902
2901
|
data: {
|
|
2903
|
-
name: string;
|
|
2904
2902
|
id: string;
|
|
2903
|
+
name: string;
|
|
2905
2904
|
input: Record<string, any>;
|
|
2906
2905
|
};
|
|
2906
|
+
userInputId: string;
|
|
2907
2907
|
changesAlreadyApplied: {
|
|
2908
|
-
type: "
|
|
2909
|
-
filePath: string;
|
|
2908
|
+
type: "file" | "patch";
|
|
2910
2909
|
content: string;
|
|
2910
|
+
filePath: string;
|
|
2911
2911
|
}[];
|
|
2912
2912
|
response: string;
|
|
2913
2913
|
changes: {
|
|
2914
|
-
type: "
|
|
2915
|
-
filePath: string;
|
|
2914
|
+
type: "file" | "patch";
|
|
2916
2915
|
content: string;
|
|
2916
|
+
filePath: string;
|
|
2917
2917
|
}[];
|
|
2918
2918
|
addedFileVersions: {
|
|
2919
2919
|
path: string;
|
|
@@ -2922,22 +2922,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2922
2922
|
resetFileVersions: boolean;
|
|
2923
2923
|
}, {
|
|
2924
2924
|
type: "tool-call";
|
|
2925
|
-
userInputId: string;
|
|
2926
2925
|
data: {
|
|
2927
|
-
name: string;
|
|
2928
2926
|
id: string;
|
|
2927
|
+
name: string;
|
|
2929
2928
|
input: Record<string, any>;
|
|
2930
2929
|
};
|
|
2930
|
+
userInputId: string;
|
|
2931
2931
|
changesAlreadyApplied: {
|
|
2932
|
-
type: "
|
|
2933
|
-
filePath: string;
|
|
2932
|
+
type: "file" | "patch";
|
|
2934
2933
|
content: string;
|
|
2934
|
+
filePath: string;
|
|
2935
2935
|
}[];
|
|
2936
2936
|
response: string;
|
|
2937
2937
|
changes: {
|
|
2938
|
-
type: "
|
|
2939
|
-
filePath: string;
|
|
2938
|
+
type: "file" | "patch";
|
|
2940
2939
|
content: string;
|
|
2940
|
+
filePath: string;
|
|
2941
2941
|
}[];
|
|
2942
2942
|
addedFileVersions: {
|
|
2943
2943
|
path: string;
|
|
@@ -3004,18 +3004,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3004
3004
|
fingerprintId: z.ZodString;
|
|
3005
3005
|
fingerprintHash: z.ZodString;
|
|
3006
3006
|
}, "strip", z.ZodTypeAny, {
|
|
3007
|
-
name: string | null;
|
|
3008
3007
|
id: string;
|
|
3009
|
-
|
|
3010
|
-
authToken: string;
|
|
3008
|
+
name: string | null;
|
|
3011
3009
|
email: string;
|
|
3010
|
+
authToken: string;
|
|
3011
|
+
fingerprintId: string;
|
|
3012
3012
|
fingerprintHash: string;
|
|
3013
3013
|
}, {
|
|
3014
|
-
name: string | null;
|
|
3015
3014
|
id: string;
|
|
3016
|
-
|
|
3017
|
-
authToken: string;
|
|
3015
|
+
name: string | null;
|
|
3018
3016
|
email: string;
|
|
3017
|
+
authToken: string;
|
|
3018
|
+
fingerprintId: string;
|
|
3019
3019
|
fingerprintHash: string;
|
|
3020
3020
|
}>>;
|
|
3021
3021
|
message: z.ZodString;
|
|
@@ -3023,22 +3023,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3023
3023
|
type: "auth-result";
|
|
3024
3024
|
message: string;
|
|
3025
3025
|
user?: {
|
|
3026
|
-
name: string | null;
|
|
3027
3026
|
id: string;
|
|
3028
|
-
|
|
3029
|
-
authToken: string;
|
|
3027
|
+
name: string | null;
|
|
3030
3028
|
email: string;
|
|
3029
|
+
authToken: string;
|
|
3030
|
+
fingerprintId: string;
|
|
3031
3031
|
fingerprintHash: string;
|
|
3032
3032
|
} | undefined;
|
|
3033
3033
|
}, {
|
|
3034
3034
|
type: "auth-result";
|
|
3035
3035
|
message: string;
|
|
3036
3036
|
user?: {
|
|
3037
|
-
name: string | null;
|
|
3038
3037
|
id: string;
|
|
3039
|
-
|
|
3040
|
-
authToken: string;
|
|
3038
|
+
name: string | null;
|
|
3041
3039
|
email: string;
|
|
3040
|
+
authToken: string;
|
|
3041
|
+
fingerprintId: string;
|
|
3042
3042
|
fingerprintHash: string;
|
|
3043
3043
|
} | undefined;
|
|
3044
3044
|
}>, z.ZodObject<{
|
|
@@ -3121,15 +3121,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3121
3121
|
type: "response-complete";
|
|
3122
3122
|
userInputId: string;
|
|
3123
3123
|
changesAlreadyApplied: {
|
|
3124
|
-
type: "
|
|
3125
|
-
filePath: string;
|
|
3124
|
+
type: "file" | "patch";
|
|
3126
3125
|
content: string;
|
|
3126
|
+
filePath: string;
|
|
3127
3127
|
}[];
|
|
3128
3128
|
response: string;
|
|
3129
3129
|
changes: {
|
|
3130
|
-
type: "
|
|
3131
|
-
filePath: string;
|
|
3130
|
+
type: "file" | "patch";
|
|
3132
3131
|
content: string;
|
|
3132
|
+
filePath: string;
|
|
3133
3133
|
}[];
|
|
3134
3134
|
addedFileVersions: {
|
|
3135
3135
|
path: string;
|
|
@@ -3154,22 +3154,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3154
3154
|
filePaths: string[];
|
|
3155
3155
|
} | {
|
|
3156
3156
|
type: "tool-call";
|
|
3157
|
-
userInputId: string;
|
|
3158
3157
|
data: {
|
|
3159
|
-
name: string;
|
|
3160
3158
|
id: string;
|
|
3159
|
+
name: string;
|
|
3161
3160
|
input: Record<string, any>;
|
|
3162
3161
|
};
|
|
3162
|
+
userInputId: string;
|
|
3163
3163
|
changesAlreadyApplied: {
|
|
3164
|
-
type: "
|
|
3165
|
-
filePath: string;
|
|
3164
|
+
type: "file" | "patch";
|
|
3166
3165
|
content: string;
|
|
3166
|
+
filePath: string;
|
|
3167
3167
|
}[];
|
|
3168
3168
|
response: string;
|
|
3169
3169
|
changes: {
|
|
3170
|
-
type: "
|
|
3171
|
-
filePath: string;
|
|
3170
|
+
type: "file" | "patch";
|
|
3172
3171
|
content: string;
|
|
3172
|
+
filePath: string;
|
|
3173
3173
|
}[];
|
|
3174
3174
|
addedFileVersions: {
|
|
3175
3175
|
path: string;
|
|
@@ -3188,11 +3188,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3188
3188
|
type: "auth-result";
|
|
3189
3189
|
message: string;
|
|
3190
3190
|
user?: {
|
|
3191
|
-
name: string | null;
|
|
3192
3191
|
id: string;
|
|
3193
|
-
|
|
3194
|
-
authToken: string;
|
|
3192
|
+
name: string | null;
|
|
3195
3193
|
email: string;
|
|
3194
|
+
authToken: string;
|
|
3195
|
+
fingerprintId: string;
|
|
3196
3196
|
fingerprintHash: string;
|
|
3197
3197
|
} | undefined;
|
|
3198
3198
|
} | {
|
|
@@ -3229,15 +3229,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3229
3229
|
type: "response-complete";
|
|
3230
3230
|
userInputId: string;
|
|
3231
3231
|
changesAlreadyApplied: {
|
|
3232
|
-
type: "
|
|
3233
|
-
filePath: string;
|
|
3232
|
+
type: "file" | "patch";
|
|
3234
3233
|
content: string;
|
|
3234
|
+
filePath: string;
|
|
3235
3235
|
}[];
|
|
3236
3236
|
response: string;
|
|
3237
3237
|
changes: {
|
|
3238
|
-
type: "
|
|
3239
|
-
filePath: string;
|
|
3238
|
+
type: "file" | "patch";
|
|
3240
3239
|
content: string;
|
|
3240
|
+
filePath: string;
|
|
3241
3241
|
}[];
|
|
3242
3242
|
addedFileVersions: {
|
|
3243
3243
|
path: string;
|
|
@@ -3262,22 +3262,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3262
3262
|
filePaths: string[];
|
|
3263
3263
|
} | {
|
|
3264
3264
|
type: "tool-call";
|
|
3265
|
-
userInputId: string;
|
|
3266
3265
|
data: {
|
|
3267
|
-
name: string;
|
|
3268
3266
|
id: string;
|
|
3267
|
+
name: string;
|
|
3269
3268
|
input: Record<string, any>;
|
|
3270
3269
|
};
|
|
3270
|
+
userInputId: string;
|
|
3271
3271
|
changesAlreadyApplied: {
|
|
3272
|
-
type: "
|
|
3273
|
-
filePath: string;
|
|
3272
|
+
type: "file" | "patch";
|
|
3274
3273
|
content: string;
|
|
3274
|
+
filePath: string;
|
|
3275
3275
|
}[];
|
|
3276
3276
|
response: string;
|
|
3277
3277
|
changes: {
|
|
3278
|
-
type: "
|
|
3279
|
-
filePath: string;
|
|
3278
|
+
type: "file" | "patch";
|
|
3280
3279
|
content: string;
|
|
3280
|
+
filePath: string;
|
|
3281
3281
|
}[];
|
|
3282
3282
|
addedFileVersions: {
|
|
3283
3283
|
path: string;
|
|
@@ -3296,11 +3296,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3296
3296
|
type: "auth-result";
|
|
3297
3297
|
message: string;
|
|
3298
3298
|
user?: {
|
|
3299
|
-
name: string | null;
|
|
3300
3299
|
id: string;
|
|
3301
|
-
|
|
3302
|
-
authToken: string;
|
|
3300
|
+
name: string | null;
|
|
3303
3301
|
email: string;
|
|
3302
|
+
authToken: string;
|
|
3303
|
+
fingerprintId: string;
|
|
3304
3304
|
fingerprintHash: string;
|
|
3305
3305
|
} | undefined;
|
|
3306
3306
|
} | {
|