codebuff 1.0.149 → 1.0.151
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/__tests__/browser-runner.test.d.ts +1 -0
- package/dist/__tests__/browser-runner.test.js +15 -0
- package/dist/__tests__/browser-runner.test.js.map +1 -0
- package/dist/browser-runner.d.ts +34 -0
- package/dist/browser-runner.js +622 -0
- package/dist/browser-runner.js.map +1 -0
- package/dist/chat-storage.d.ts +2 -4
- package/dist/chat-storage.js +79 -46
- package/dist/chat-storage.js.map +1 -1
- package/dist/cli.d.ts +27 -10
- package/dist/cli.js +321 -308
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +5 -4
- package/dist/client.js +24 -18
- package/dist/client.js.map +1 -1
- package/dist/code-map/languages.js +7 -17
- package/dist/code-map/languages.js.map +1 -1
- package/dist/code-map/parse.js +7 -17
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +301 -106
- package/dist/common/actions.js +17 -0
- package/dist/common/actions.js.map +1 -1
- package/dist/common/advanced-analyzer.d.ts +19 -0
- package/dist/common/advanced-analyzer.js +140 -0
- package/dist/common/advanced-analyzer.js.map +1 -0
- package/dist/common/browser-actions.d.ts +4354 -0
- package/dist/common/browser-actions.js +336 -0
- package/dist/common/browser-actions.js.map +1 -0
- package/dist/common/constants.d.ts +9 -2
- package/dist/common/constants.js +3 -2
- package/dist/common/constants.js.map +1 -1
- package/dist/common/message-image-handling.d.ts +41 -0
- package/dist/common/message-image-handling.js +57 -0
- package/dist/common/message-image-handling.js.map +1 -0
- package/dist/common/project-file-tree.js +7 -7
- package/dist/common/project-file-tree.js.map +1 -1
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.js +5 -3
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/min-heap.d.ts +15 -0
- package/dist/common/util/min-heap.js +73 -0
- package/dist/common/util/min-heap.js.map +1 -0
- package/dist/common/util/string.d.ts +10 -0
- package/dist/common/util/string.js +29 -1
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +478 -244
- package/dist/create-template-project.d.ts +1 -1
- package/dist/create-template-project.js +27 -29
- package/dist/create-template-project.js.map +1 -1
- package/dist/credentials.d.ts +1 -0
- package/dist/credentials.js +7 -3
- package/dist/credentials.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/menu.js +7 -17
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +3 -0
- package/dist/project-files.js +41 -19
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.d.ts +3 -1
- package/dist/tool-handlers.js +59 -6
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/terminal.js +10 -22
- package/dist/utils/terminal.js.map +1 -1
- package/dist/web-scraper.d.ts +1 -1
- package/dist/web-scraper.js +9 -7
- package/dist/web-scraper.js.map +1 -1
- package/package.json +4 -4
- package/dist/common/logger.d.ts +0 -1
- package/dist/common/logger.js +0 -7
- package/dist/common/logger.js.map +0 -1
- package/dist/common/util/constants.d.ts +0 -1
- package/dist/common/util/constants.js +0 -7
- package/dist/common/util/constants.js.map +0 -1
- package/dist/common/util/helpers.d.ts +0 -1
- package/dist/common/util/helpers.js +0 -6
- package/dist/common/util/helpers.js.map +0 -1
- package/dist/common/util/messages.d.ts +0 -1
- package/dist/common/util/messages.js +0 -7
- package/dist/common/util/messages.js.map +0 -1
|
@@ -121,19 +121,61 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
content: string;
|
|
125
124
|
type: "tool_result";
|
|
125
|
+
content: string;
|
|
126
126
|
tool_use_id: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
content: string;
|
|
132
131
|
type: "tool_result";
|
|
132
|
+
content: string;
|
|
133
133
|
tool_use_id: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
136
136
|
} | undefined;
|
|
137
|
+
}>, z.ZodObject<{
|
|
138
|
+
type: z.ZodLiteral<"image">;
|
|
139
|
+
source: z.ZodObject<{
|
|
140
|
+
type: z.ZodLiteral<"base64">;
|
|
141
|
+
media_type: z.ZodLiteral<"image/jpeg">;
|
|
142
|
+
data: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
type: "base64";
|
|
145
|
+
media_type: "image/jpeg";
|
|
146
|
+
data: string;
|
|
147
|
+
}, {
|
|
148
|
+
type: "base64";
|
|
149
|
+
media_type: "image/jpeg";
|
|
150
|
+
data: string;
|
|
151
|
+
}>;
|
|
152
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
type: "ephemeral";
|
|
156
|
+
}, {
|
|
157
|
+
type: "ephemeral";
|
|
158
|
+
}>>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
type: "image";
|
|
161
|
+
source: {
|
|
162
|
+
type: "base64";
|
|
163
|
+
media_type: "image/jpeg";
|
|
164
|
+
data: string;
|
|
165
|
+
};
|
|
166
|
+
cache_control?: {
|
|
167
|
+
type: "ephemeral";
|
|
168
|
+
} | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
type: "image";
|
|
171
|
+
source: {
|
|
172
|
+
type: "base64";
|
|
173
|
+
media_type: "image/jpeg";
|
|
174
|
+
data: string;
|
|
175
|
+
};
|
|
176
|
+
cache_control?: {
|
|
177
|
+
type: "ephemeral";
|
|
178
|
+
} | undefined;
|
|
137
179
|
}>]>, "many">]>;
|
|
138
180
|
}, "strip", z.ZodTypeAny, {
|
|
139
181
|
content: string | ({
|
|
@@ -151,12 +193,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
151
193
|
type: "ephemeral";
|
|
152
194
|
} | undefined;
|
|
153
195
|
} | {
|
|
154
|
-
content: string;
|
|
155
196
|
type: "tool_result";
|
|
197
|
+
content: string;
|
|
156
198
|
tool_use_id: string;
|
|
157
199
|
cache_control?: {
|
|
158
200
|
type: "ephemeral";
|
|
159
201
|
} | undefined;
|
|
202
|
+
} | {
|
|
203
|
+
type: "image";
|
|
204
|
+
source: {
|
|
205
|
+
type: "base64";
|
|
206
|
+
media_type: "image/jpeg";
|
|
207
|
+
data: string;
|
|
208
|
+
};
|
|
209
|
+
cache_control?: {
|
|
210
|
+
type: "ephemeral";
|
|
211
|
+
} | undefined;
|
|
160
212
|
})[];
|
|
161
213
|
role: "user" | "assistant";
|
|
162
214
|
}, {
|
|
@@ -175,12 +227,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
175
227
|
type: "ephemeral";
|
|
176
228
|
} | undefined;
|
|
177
229
|
} | {
|
|
178
|
-
content: string;
|
|
179
230
|
type: "tool_result";
|
|
231
|
+
content: string;
|
|
180
232
|
tool_use_id: string;
|
|
181
233
|
cache_control?: {
|
|
182
234
|
type: "ephemeral";
|
|
183
235
|
} | undefined;
|
|
236
|
+
} | {
|
|
237
|
+
type: "image";
|
|
238
|
+
source: {
|
|
239
|
+
type: "base64";
|
|
240
|
+
media_type: "image/jpeg";
|
|
241
|
+
data: string;
|
|
242
|
+
};
|
|
243
|
+
cache_control?: {
|
|
244
|
+
type: "ephemeral";
|
|
245
|
+
} | undefined;
|
|
184
246
|
})[];
|
|
185
247
|
role: "user" | "assistant";
|
|
186
248
|
}>, "many">;
|
|
@@ -196,13 +258,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
196
258
|
diffCached: z.ZodString;
|
|
197
259
|
lastCommitMessages: z.ZodString;
|
|
198
260
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
status: string;
|
|
200
261
|
diff: string;
|
|
262
|
+
status: string;
|
|
201
263
|
diffCached: string;
|
|
202
264
|
lastCommitMessages: string;
|
|
203
265
|
}, {
|
|
204
|
-
status: string;
|
|
205
266
|
diff: string;
|
|
267
|
+
status: string;
|
|
206
268
|
diffCached: string;
|
|
207
269
|
lastCommitMessages: string;
|
|
208
270
|
}>;
|
|
@@ -246,8 +308,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
246
308
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
247
309
|
knowledgeFiles: Record<string, string>;
|
|
248
310
|
gitChanges: {
|
|
249
|
-
status: string;
|
|
250
311
|
diff: string;
|
|
312
|
+
status: string;
|
|
251
313
|
diffCached: string;
|
|
252
314
|
lastCommitMessages: string;
|
|
253
315
|
};
|
|
@@ -272,8 +334,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
272
334
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
273
335
|
knowledgeFiles: Record<string, string>;
|
|
274
336
|
gitChanges: {
|
|
275
|
-
status: string;
|
|
276
337
|
diff: string;
|
|
338
|
+
status: string;
|
|
277
339
|
diffCached: string;
|
|
278
340
|
lastCommitMessages: string;
|
|
279
341
|
};
|
|
@@ -298,13 +360,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
298
360
|
filePath: z.ZodString;
|
|
299
361
|
content: z.ZodString;
|
|
300
362
|
}, "strip", z.ZodTypeAny, {
|
|
301
|
-
|
|
302
|
-
type: "file" | "patch";
|
|
363
|
+
type: "patch" | "file";
|
|
303
364
|
filePath: string;
|
|
304
|
-
}, {
|
|
305
365
|
content: string;
|
|
306
|
-
|
|
366
|
+
}, {
|
|
367
|
+
type: "patch" | "file";
|
|
307
368
|
filePath: string;
|
|
369
|
+
content: string;
|
|
308
370
|
}>, "many">;
|
|
309
371
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
310
372
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -327,12 +389,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
327
389
|
type: "ephemeral";
|
|
328
390
|
} | undefined;
|
|
329
391
|
} | {
|
|
330
|
-
content: string;
|
|
331
392
|
type: "tool_result";
|
|
393
|
+
content: string;
|
|
332
394
|
tool_use_id: string;
|
|
333
395
|
cache_control?: {
|
|
334
396
|
type: "ephemeral";
|
|
335
397
|
} | undefined;
|
|
398
|
+
} | {
|
|
399
|
+
type: "image";
|
|
400
|
+
source: {
|
|
401
|
+
type: "base64";
|
|
402
|
+
media_type: "image/jpeg";
|
|
403
|
+
data: string;
|
|
404
|
+
};
|
|
405
|
+
cache_control?: {
|
|
406
|
+
type: "ephemeral";
|
|
407
|
+
} | undefined;
|
|
336
408
|
})[];
|
|
337
409
|
role: "user" | "assistant";
|
|
338
410
|
}[];
|
|
@@ -342,8 +414,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
342
414
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
343
415
|
knowledgeFiles: Record<string, string>;
|
|
344
416
|
gitChanges: {
|
|
345
|
-
status: string;
|
|
346
417
|
diff: string;
|
|
418
|
+
status: string;
|
|
347
419
|
diffCached: string;
|
|
348
420
|
lastCommitMessages: string;
|
|
349
421
|
};
|
|
@@ -364,11 +436,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
364
436
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
365
437
|
};
|
|
366
438
|
changesAlreadyApplied: {
|
|
367
|
-
|
|
368
|
-
type: "file" | "patch";
|
|
439
|
+
type: "patch" | "file";
|
|
369
440
|
filePath: string;
|
|
441
|
+
content: string;
|
|
370
442
|
}[];
|
|
371
|
-
costMode: "
|
|
443
|
+
costMode: "lite" | "normal" | "max";
|
|
372
444
|
authToken?: string | undefined;
|
|
373
445
|
}, {
|
|
374
446
|
type: "user-input";
|
|
@@ -390,12 +462,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
390
462
|
type: "ephemeral";
|
|
391
463
|
} | undefined;
|
|
392
464
|
} | {
|
|
393
|
-
content: string;
|
|
394
465
|
type: "tool_result";
|
|
466
|
+
content: string;
|
|
395
467
|
tool_use_id: string;
|
|
396
468
|
cache_control?: {
|
|
397
469
|
type: "ephemeral";
|
|
398
470
|
} | undefined;
|
|
471
|
+
} | {
|
|
472
|
+
type: "image";
|
|
473
|
+
source: {
|
|
474
|
+
type: "base64";
|
|
475
|
+
media_type: "image/jpeg";
|
|
476
|
+
data: string;
|
|
477
|
+
};
|
|
478
|
+
cache_control?: {
|
|
479
|
+
type: "ephemeral";
|
|
480
|
+
} | undefined;
|
|
399
481
|
})[];
|
|
400
482
|
role: "user" | "assistant";
|
|
401
483
|
}[];
|
|
@@ -405,8 +487,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
405
487
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
406
488
|
knowledgeFiles: Record<string, string>;
|
|
407
489
|
gitChanges: {
|
|
408
|
-
status: string;
|
|
409
490
|
diff: string;
|
|
491
|
+
status: string;
|
|
410
492
|
diffCached: string;
|
|
411
493
|
lastCommitMessages: string;
|
|
412
494
|
};
|
|
@@ -427,12 +509,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
427
509
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
428
510
|
};
|
|
429
511
|
changesAlreadyApplied: {
|
|
430
|
-
|
|
431
|
-
type: "file" | "patch";
|
|
512
|
+
type: "patch" | "file";
|
|
432
513
|
filePath: string;
|
|
514
|
+
content: string;
|
|
433
515
|
}[];
|
|
434
516
|
authToken?: string | undefined;
|
|
435
|
-
costMode?: "
|
|
517
|
+
costMode?: "lite" | "normal" | "max" | undefined;
|
|
436
518
|
}>, z.ZodObject<{
|
|
437
519
|
type: z.ZodLiteral<"read-files-response">;
|
|
438
520
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -458,13 +540,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
458
540
|
diffCached: z.ZodString;
|
|
459
541
|
lastCommitMessages: z.ZodString;
|
|
460
542
|
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
status: string;
|
|
462
543
|
diff: string;
|
|
544
|
+
status: string;
|
|
463
545
|
diffCached: string;
|
|
464
546
|
lastCommitMessages: string;
|
|
465
547
|
}, {
|
|
466
|
-
status: string;
|
|
467
548
|
diff: string;
|
|
549
|
+
status: string;
|
|
468
550
|
diffCached: string;
|
|
469
551
|
lastCommitMessages: string;
|
|
470
552
|
}>;
|
|
@@ -508,8 +590,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
508
590
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
509
591
|
knowledgeFiles: Record<string, string>;
|
|
510
592
|
gitChanges: {
|
|
511
|
-
status: string;
|
|
512
593
|
diff: string;
|
|
594
|
+
status: string;
|
|
513
595
|
diffCached: string;
|
|
514
596
|
lastCommitMessages: string;
|
|
515
597
|
};
|
|
@@ -534,8 +616,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
534
616
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
535
617
|
knowledgeFiles: Record<string, string>;
|
|
536
618
|
gitChanges: {
|
|
537
|
-
status: string;
|
|
538
619
|
diff: string;
|
|
620
|
+
status: string;
|
|
539
621
|
diffCached: string;
|
|
540
622
|
lastCommitMessages: string;
|
|
541
623
|
};
|
|
@@ -564,8 +646,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
564
646
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
565
647
|
knowledgeFiles: Record<string, string>;
|
|
566
648
|
gitChanges: {
|
|
567
|
-
status: string;
|
|
568
649
|
diff: string;
|
|
650
|
+
status: string;
|
|
569
651
|
diffCached: string;
|
|
570
652
|
lastCommitMessages: string;
|
|
571
653
|
};
|
|
@@ -595,8 +677,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
595
677
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
596
678
|
knowledgeFiles: Record<string, string>;
|
|
597
679
|
gitChanges: {
|
|
598
|
-
status: string;
|
|
599
680
|
diff: string;
|
|
681
|
+
status: string;
|
|
600
682
|
diffCached: string;
|
|
601
683
|
lastCommitMessages: string;
|
|
602
684
|
};
|
|
@@ -709,12 +791,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
709
791
|
type: "ephemeral";
|
|
710
792
|
} | undefined;
|
|
711
793
|
} | {
|
|
712
|
-
content: string;
|
|
713
794
|
type: "tool_result";
|
|
795
|
+
content: string;
|
|
714
796
|
tool_use_id: string;
|
|
715
797
|
cache_control?: {
|
|
716
798
|
type: "ephemeral";
|
|
717
799
|
} | undefined;
|
|
800
|
+
} | {
|
|
801
|
+
type: "image";
|
|
802
|
+
source: {
|
|
803
|
+
type: "base64";
|
|
804
|
+
media_type: "image/jpeg";
|
|
805
|
+
data: string;
|
|
806
|
+
};
|
|
807
|
+
cache_control?: {
|
|
808
|
+
type: "ephemeral";
|
|
809
|
+
} | undefined;
|
|
718
810
|
})[];
|
|
719
811
|
role: "user" | "assistant";
|
|
720
812
|
}[];
|
|
@@ -724,8 +816,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
724
816
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
725
817
|
knowledgeFiles: Record<string, string>;
|
|
726
818
|
gitChanges: {
|
|
727
|
-
status: string;
|
|
728
819
|
diff: string;
|
|
820
|
+
status: string;
|
|
729
821
|
diffCached: string;
|
|
730
822
|
lastCommitMessages: string;
|
|
731
823
|
};
|
|
@@ -746,11 +838,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
746
838
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
747
839
|
};
|
|
748
840
|
changesAlreadyApplied: {
|
|
749
|
-
|
|
750
|
-
type: "file" | "patch";
|
|
841
|
+
type: "patch" | "file";
|
|
751
842
|
filePath: string;
|
|
843
|
+
content: string;
|
|
752
844
|
}[];
|
|
753
|
-
costMode: "
|
|
845
|
+
costMode: "lite" | "normal" | "max";
|
|
754
846
|
authToken?: string | undefined;
|
|
755
847
|
} | {
|
|
756
848
|
type: "read-files-response";
|
|
@@ -764,8 +856,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
764
856
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
765
857
|
knowledgeFiles: Record<string, string>;
|
|
766
858
|
gitChanges: {
|
|
767
|
-
status: string;
|
|
768
859
|
diff: string;
|
|
860
|
+
status: string;
|
|
769
861
|
diffCached: string;
|
|
770
862
|
lastCommitMessages: string;
|
|
771
863
|
};
|
|
@@ -833,12 +925,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
833
925
|
type: "ephemeral";
|
|
834
926
|
} | undefined;
|
|
835
927
|
} | {
|
|
836
|
-
content: string;
|
|
837
928
|
type: "tool_result";
|
|
929
|
+
content: string;
|
|
838
930
|
tool_use_id: string;
|
|
839
931
|
cache_control?: {
|
|
840
932
|
type: "ephemeral";
|
|
841
933
|
} | undefined;
|
|
934
|
+
} | {
|
|
935
|
+
type: "image";
|
|
936
|
+
source: {
|
|
937
|
+
type: "base64";
|
|
938
|
+
media_type: "image/jpeg";
|
|
939
|
+
data: string;
|
|
940
|
+
};
|
|
941
|
+
cache_control?: {
|
|
942
|
+
type: "ephemeral";
|
|
943
|
+
} | undefined;
|
|
842
944
|
})[];
|
|
843
945
|
role: "user" | "assistant";
|
|
844
946
|
}[];
|
|
@@ -848,8 +950,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
848
950
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
849
951
|
knowledgeFiles: Record<string, string>;
|
|
850
952
|
gitChanges: {
|
|
851
|
-
status: string;
|
|
852
953
|
diff: string;
|
|
954
|
+
status: string;
|
|
853
955
|
diffCached: string;
|
|
854
956
|
lastCommitMessages: string;
|
|
855
957
|
};
|
|
@@ -870,12 +972,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
870
972
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
871
973
|
};
|
|
872
974
|
changesAlreadyApplied: {
|
|
873
|
-
|
|
874
|
-
type: "file" | "patch";
|
|
975
|
+
type: "patch" | "file";
|
|
875
976
|
filePath: string;
|
|
977
|
+
content: string;
|
|
876
978
|
}[];
|
|
877
979
|
authToken?: string | undefined;
|
|
878
|
-
costMode?: "
|
|
980
|
+
costMode?: "lite" | "normal" | "max" | undefined;
|
|
879
981
|
} | {
|
|
880
982
|
type: "read-files-response";
|
|
881
983
|
files: Record<string, string | null>;
|
|
@@ -888,8 +990,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
888
990
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
889
991
|
knowledgeFiles: Record<string, string>;
|
|
890
992
|
gitChanges: {
|
|
891
|
-
status: string;
|
|
892
993
|
diff: string;
|
|
994
|
+
status: string;
|
|
893
995
|
diffCached: string;
|
|
894
996
|
lastCommitMessages: string;
|
|
895
997
|
};
|
|
@@ -1054,19 +1156,61 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1054
1156
|
type: "ephemeral";
|
|
1055
1157
|
}>>;
|
|
1056
1158
|
}, "strip", z.ZodTypeAny, {
|
|
1057
|
-
content: string;
|
|
1058
1159
|
type: "tool_result";
|
|
1160
|
+
content: string;
|
|
1059
1161
|
tool_use_id: string;
|
|
1060
1162
|
cache_control?: {
|
|
1061
1163
|
type: "ephemeral";
|
|
1062
1164
|
} | undefined;
|
|
1063
1165
|
}, {
|
|
1064
|
-
content: string;
|
|
1065
1166
|
type: "tool_result";
|
|
1167
|
+
content: string;
|
|
1066
1168
|
tool_use_id: string;
|
|
1067
1169
|
cache_control?: {
|
|
1068
1170
|
type: "ephemeral";
|
|
1069
1171
|
} | undefined;
|
|
1172
|
+
}>, z.ZodObject<{
|
|
1173
|
+
type: z.ZodLiteral<"image">;
|
|
1174
|
+
source: z.ZodObject<{
|
|
1175
|
+
type: z.ZodLiteral<"base64">;
|
|
1176
|
+
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1177
|
+
data: z.ZodString;
|
|
1178
|
+
}, "strip", z.ZodTypeAny, {
|
|
1179
|
+
type: "base64";
|
|
1180
|
+
media_type: "image/jpeg";
|
|
1181
|
+
data: string;
|
|
1182
|
+
}, {
|
|
1183
|
+
type: "base64";
|
|
1184
|
+
media_type: "image/jpeg";
|
|
1185
|
+
data: string;
|
|
1186
|
+
}>;
|
|
1187
|
+
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1188
|
+
type: z.ZodLiteral<"ephemeral">;
|
|
1189
|
+
}, "strip", z.ZodTypeAny, {
|
|
1190
|
+
type: "ephemeral";
|
|
1191
|
+
}, {
|
|
1192
|
+
type: "ephemeral";
|
|
1193
|
+
}>>;
|
|
1194
|
+
}, "strip", z.ZodTypeAny, {
|
|
1195
|
+
type: "image";
|
|
1196
|
+
source: {
|
|
1197
|
+
type: "base64";
|
|
1198
|
+
media_type: "image/jpeg";
|
|
1199
|
+
data: string;
|
|
1200
|
+
};
|
|
1201
|
+
cache_control?: {
|
|
1202
|
+
type: "ephemeral";
|
|
1203
|
+
} | undefined;
|
|
1204
|
+
}, {
|
|
1205
|
+
type: "image";
|
|
1206
|
+
source: {
|
|
1207
|
+
type: "base64";
|
|
1208
|
+
media_type: "image/jpeg";
|
|
1209
|
+
data: string;
|
|
1210
|
+
};
|
|
1211
|
+
cache_control?: {
|
|
1212
|
+
type: "ephemeral";
|
|
1213
|
+
} | undefined;
|
|
1070
1214
|
}>]>, "many">]>;
|
|
1071
1215
|
}, "strip", z.ZodTypeAny, {
|
|
1072
1216
|
content: string | ({
|
|
@@ -1084,12 +1228,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1084
1228
|
type: "ephemeral";
|
|
1085
1229
|
} | undefined;
|
|
1086
1230
|
} | {
|
|
1087
|
-
content: string;
|
|
1088
1231
|
type: "tool_result";
|
|
1232
|
+
content: string;
|
|
1089
1233
|
tool_use_id: string;
|
|
1090
1234
|
cache_control?: {
|
|
1091
1235
|
type: "ephemeral";
|
|
1092
1236
|
} | undefined;
|
|
1237
|
+
} | {
|
|
1238
|
+
type: "image";
|
|
1239
|
+
source: {
|
|
1240
|
+
type: "base64";
|
|
1241
|
+
media_type: "image/jpeg";
|
|
1242
|
+
data: string;
|
|
1243
|
+
};
|
|
1244
|
+
cache_control?: {
|
|
1245
|
+
type: "ephemeral";
|
|
1246
|
+
} | undefined;
|
|
1093
1247
|
})[];
|
|
1094
1248
|
role: "user" | "assistant";
|
|
1095
1249
|
}, {
|
|
@@ -1108,12 +1262,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1108
1262
|
type: "ephemeral";
|
|
1109
1263
|
} | undefined;
|
|
1110
1264
|
} | {
|
|
1111
|
-
content: string;
|
|
1112
1265
|
type: "tool_result";
|
|
1266
|
+
content: string;
|
|
1113
1267
|
tool_use_id: string;
|
|
1114
1268
|
cache_control?: {
|
|
1115
1269
|
type: "ephemeral";
|
|
1116
1270
|
} | undefined;
|
|
1271
|
+
} | {
|
|
1272
|
+
type: "image";
|
|
1273
|
+
source: {
|
|
1274
|
+
type: "base64";
|
|
1275
|
+
media_type: "image/jpeg";
|
|
1276
|
+
data: string;
|
|
1277
|
+
};
|
|
1278
|
+
cache_control?: {
|
|
1279
|
+
type: "ephemeral";
|
|
1280
|
+
} | undefined;
|
|
1117
1281
|
})[];
|
|
1118
1282
|
role: "user" | "assistant";
|
|
1119
1283
|
}>, "many">;
|
|
@@ -1129,13 +1293,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1129
1293
|
diffCached: z.ZodString;
|
|
1130
1294
|
lastCommitMessages: z.ZodString;
|
|
1131
1295
|
}, "strip", z.ZodTypeAny, {
|
|
1132
|
-
status: string;
|
|
1133
1296
|
diff: string;
|
|
1297
|
+
status: string;
|
|
1134
1298
|
diffCached: string;
|
|
1135
1299
|
lastCommitMessages: string;
|
|
1136
1300
|
}, {
|
|
1137
|
-
status: string;
|
|
1138
1301
|
diff: string;
|
|
1302
|
+
status: string;
|
|
1139
1303
|
diffCached: string;
|
|
1140
1304
|
lastCommitMessages: string;
|
|
1141
1305
|
}>;
|
|
@@ -1179,8 +1343,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1179
1343
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1180
1344
|
knowledgeFiles: Record<string, string>;
|
|
1181
1345
|
gitChanges: {
|
|
1182
|
-
status: string;
|
|
1183
1346
|
diff: string;
|
|
1347
|
+
status: string;
|
|
1184
1348
|
diffCached: string;
|
|
1185
1349
|
lastCommitMessages: string;
|
|
1186
1350
|
};
|
|
@@ -1205,8 +1369,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1205
1369
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1206
1370
|
knowledgeFiles: Record<string, string>;
|
|
1207
1371
|
gitChanges: {
|
|
1208
|
-
status: string;
|
|
1209
1372
|
diff: string;
|
|
1373
|
+
status: string;
|
|
1210
1374
|
diffCached: string;
|
|
1211
1375
|
lastCommitMessages: string;
|
|
1212
1376
|
};
|
|
@@ -1231,13 +1395,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1231
1395
|
filePath: z.ZodString;
|
|
1232
1396
|
content: z.ZodString;
|
|
1233
1397
|
}, "strip", z.ZodTypeAny, {
|
|
1234
|
-
|
|
1235
|
-
type: "file" | "patch";
|
|
1398
|
+
type: "patch" | "file";
|
|
1236
1399
|
filePath: string;
|
|
1237
|
-
}, {
|
|
1238
1400
|
content: string;
|
|
1239
|
-
|
|
1401
|
+
}, {
|
|
1402
|
+
type: "patch" | "file";
|
|
1240
1403
|
filePath: string;
|
|
1404
|
+
content: string;
|
|
1241
1405
|
}>, "many">;
|
|
1242
1406
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
1243
1407
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1260,12 +1424,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1260
1424
|
type: "ephemeral";
|
|
1261
1425
|
} | undefined;
|
|
1262
1426
|
} | {
|
|
1263
|
-
content: string;
|
|
1264
1427
|
type: "tool_result";
|
|
1428
|
+
content: string;
|
|
1265
1429
|
tool_use_id: string;
|
|
1266
1430
|
cache_control?: {
|
|
1267
1431
|
type: "ephemeral";
|
|
1268
1432
|
} | undefined;
|
|
1433
|
+
} | {
|
|
1434
|
+
type: "image";
|
|
1435
|
+
source: {
|
|
1436
|
+
type: "base64";
|
|
1437
|
+
media_type: "image/jpeg";
|
|
1438
|
+
data: string;
|
|
1439
|
+
};
|
|
1440
|
+
cache_control?: {
|
|
1441
|
+
type: "ephemeral";
|
|
1442
|
+
} | undefined;
|
|
1269
1443
|
})[];
|
|
1270
1444
|
role: "user" | "assistant";
|
|
1271
1445
|
}[];
|
|
@@ -1275,8 +1449,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1275
1449
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1276
1450
|
knowledgeFiles: Record<string, string>;
|
|
1277
1451
|
gitChanges: {
|
|
1278
|
-
status: string;
|
|
1279
1452
|
diff: string;
|
|
1453
|
+
status: string;
|
|
1280
1454
|
diffCached: string;
|
|
1281
1455
|
lastCommitMessages: string;
|
|
1282
1456
|
};
|
|
@@ -1297,11 +1471,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1297
1471
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1298
1472
|
};
|
|
1299
1473
|
changesAlreadyApplied: {
|
|
1300
|
-
|
|
1301
|
-
type: "file" | "patch";
|
|
1474
|
+
type: "patch" | "file";
|
|
1302
1475
|
filePath: string;
|
|
1476
|
+
content: string;
|
|
1303
1477
|
}[];
|
|
1304
|
-
costMode: "
|
|
1478
|
+
costMode: "lite" | "normal" | "max";
|
|
1305
1479
|
authToken?: string | undefined;
|
|
1306
1480
|
}, {
|
|
1307
1481
|
type: "user-input";
|
|
@@ -1323,12 +1497,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1323
1497
|
type: "ephemeral";
|
|
1324
1498
|
} | undefined;
|
|
1325
1499
|
} | {
|
|
1326
|
-
content: string;
|
|
1327
1500
|
type: "tool_result";
|
|
1501
|
+
content: string;
|
|
1328
1502
|
tool_use_id: string;
|
|
1329
1503
|
cache_control?: {
|
|
1330
1504
|
type: "ephemeral";
|
|
1331
1505
|
} | undefined;
|
|
1506
|
+
} | {
|
|
1507
|
+
type: "image";
|
|
1508
|
+
source: {
|
|
1509
|
+
type: "base64";
|
|
1510
|
+
media_type: "image/jpeg";
|
|
1511
|
+
data: string;
|
|
1512
|
+
};
|
|
1513
|
+
cache_control?: {
|
|
1514
|
+
type: "ephemeral";
|
|
1515
|
+
} | undefined;
|
|
1332
1516
|
})[];
|
|
1333
1517
|
role: "user" | "assistant";
|
|
1334
1518
|
}[];
|
|
@@ -1338,8 +1522,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1338
1522
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1339
1523
|
knowledgeFiles: Record<string, string>;
|
|
1340
1524
|
gitChanges: {
|
|
1341
|
-
status: string;
|
|
1342
1525
|
diff: string;
|
|
1526
|
+
status: string;
|
|
1343
1527
|
diffCached: string;
|
|
1344
1528
|
lastCommitMessages: string;
|
|
1345
1529
|
};
|
|
@@ -1360,12 +1544,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1360
1544
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1361
1545
|
};
|
|
1362
1546
|
changesAlreadyApplied: {
|
|
1363
|
-
|
|
1364
|
-
type: "file" | "patch";
|
|
1547
|
+
type: "patch" | "file";
|
|
1365
1548
|
filePath: string;
|
|
1549
|
+
content: string;
|
|
1366
1550
|
}[];
|
|
1367
1551
|
authToken?: string | undefined;
|
|
1368
|
-
costMode?: "
|
|
1552
|
+
costMode?: "lite" | "normal" | "max" | undefined;
|
|
1369
1553
|
}>, z.ZodObject<{
|
|
1370
1554
|
type: z.ZodLiteral<"read-files-response">;
|
|
1371
1555
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -1391,13 +1575,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1391
1575
|
diffCached: z.ZodString;
|
|
1392
1576
|
lastCommitMessages: z.ZodString;
|
|
1393
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1394
|
-
status: string;
|
|
1395
1578
|
diff: string;
|
|
1579
|
+
status: string;
|
|
1396
1580
|
diffCached: string;
|
|
1397
1581
|
lastCommitMessages: string;
|
|
1398
1582
|
}, {
|
|
1399
|
-
status: string;
|
|
1400
1583
|
diff: string;
|
|
1584
|
+
status: string;
|
|
1401
1585
|
diffCached: string;
|
|
1402
1586
|
lastCommitMessages: string;
|
|
1403
1587
|
}>;
|
|
@@ -1441,8 +1625,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1441
1625
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1442
1626
|
knowledgeFiles: Record<string, string>;
|
|
1443
1627
|
gitChanges: {
|
|
1444
|
-
status: string;
|
|
1445
1628
|
diff: string;
|
|
1629
|
+
status: string;
|
|
1446
1630
|
diffCached: string;
|
|
1447
1631
|
lastCommitMessages: string;
|
|
1448
1632
|
};
|
|
@@ -1467,8 +1651,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1467
1651
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1468
1652
|
knowledgeFiles: Record<string, string>;
|
|
1469
1653
|
gitChanges: {
|
|
1470
|
-
status: string;
|
|
1471
1654
|
diff: string;
|
|
1655
|
+
status: string;
|
|
1472
1656
|
diffCached: string;
|
|
1473
1657
|
lastCommitMessages: string;
|
|
1474
1658
|
};
|
|
@@ -1497,8 +1681,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1497
1681
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1498
1682
|
knowledgeFiles: Record<string, string>;
|
|
1499
1683
|
gitChanges: {
|
|
1500
|
-
status: string;
|
|
1501
1684
|
diff: string;
|
|
1685
|
+
status: string;
|
|
1502
1686
|
diffCached: string;
|
|
1503
1687
|
lastCommitMessages: string;
|
|
1504
1688
|
};
|
|
@@ -1528,8 +1712,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1528
1712
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1529
1713
|
knowledgeFiles: Record<string, string>;
|
|
1530
1714
|
gitChanges: {
|
|
1531
|
-
status: string;
|
|
1532
1715
|
diff: string;
|
|
1716
|
+
status: string;
|
|
1533
1717
|
diffCached: string;
|
|
1534
1718
|
lastCommitMessages: string;
|
|
1535
1719
|
};
|
|
@@ -1642,12 +1826,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1642
1826
|
type: "ephemeral";
|
|
1643
1827
|
} | undefined;
|
|
1644
1828
|
} | {
|
|
1645
|
-
content: string;
|
|
1646
1829
|
type: "tool_result";
|
|
1830
|
+
content: string;
|
|
1647
1831
|
tool_use_id: string;
|
|
1648
1832
|
cache_control?: {
|
|
1649
1833
|
type: "ephemeral";
|
|
1650
1834
|
} | undefined;
|
|
1835
|
+
} | {
|
|
1836
|
+
type: "image";
|
|
1837
|
+
source: {
|
|
1838
|
+
type: "base64";
|
|
1839
|
+
media_type: "image/jpeg";
|
|
1840
|
+
data: string;
|
|
1841
|
+
};
|
|
1842
|
+
cache_control?: {
|
|
1843
|
+
type: "ephemeral";
|
|
1844
|
+
} | undefined;
|
|
1651
1845
|
})[];
|
|
1652
1846
|
role: "user" | "assistant";
|
|
1653
1847
|
}[];
|
|
@@ -1657,8 +1851,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1657
1851
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1658
1852
|
knowledgeFiles: Record<string, string>;
|
|
1659
1853
|
gitChanges: {
|
|
1660
|
-
status: string;
|
|
1661
1854
|
diff: string;
|
|
1855
|
+
status: string;
|
|
1662
1856
|
diffCached: string;
|
|
1663
1857
|
lastCommitMessages: string;
|
|
1664
1858
|
};
|
|
@@ -1679,11 +1873,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1679
1873
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1680
1874
|
};
|
|
1681
1875
|
changesAlreadyApplied: {
|
|
1682
|
-
|
|
1683
|
-
type: "file" | "patch";
|
|
1876
|
+
type: "patch" | "file";
|
|
1684
1877
|
filePath: string;
|
|
1878
|
+
content: string;
|
|
1685
1879
|
}[];
|
|
1686
|
-
costMode: "
|
|
1880
|
+
costMode: "lite" | "normal" | "max";
|
|
1687
1881
|
authToken?: string | undefined;
|
|
1688
1882
|
} | {
|
|
1689
1883
|
type: "read-files-response";
|
|
@@ -1697,8 +1891,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1697
1891
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1698
1892
|
knowledgeFiles: Record<string, string>;
|
|
1699
1893
|
gitChanges: {
|
|
1700
|
-
status: string;
|
|
1701
1894
|
diff: string;
|
|
1895
|
+
status: string;
|
|
1702
1896
|
diffCached: string;
|
|
1703
1897
|
lastCommitMessages: string;
|
|
1704
1898
|
};
|
|
@@ -1766,12 +1960,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1766
1960
|
type: "ephemeral";
|
|
1767
1961
|
} | undefined;
|
|
1768
1962
|
} | {
|
|
1769
|
-
content: string;
|
|
1770
1963
|
type: "tool_result";
|
|
1964
|
+
content: string;
|
|
1771
1965
|
tool_use_id: string;
|
|
1772
1966
|
cache_control?: {
|
|
1773
1967
|
type: "ephemeral";
|
|
1774
1968
|
} | undefined;
|
|
1969
|
+
} | {
|
|
1970
|
+
type: "image";
|
|
1971
|
+
source: {
|
|
1972
|
+
type: "base64";
|
|
1973
|
+
media_type: "image/jpeg";
|
|
1974
|
+
data: string;
|
|
1975
|
+
};
|
|
1976
|
+
cache_control?: {
|
|
1977
|
+
type: "ephemeral";
|
|
1978
|
+
} | undefined;
|
|
1775
1979
|
})[];
|
|
1776
1980
|
role: "user" | "assistant";
|
|
1777
1981
|
}[];
|
|
@@ -1781,8 +1985,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1781
1985
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1782
1986
|
knowledgeFiles: Record<string, string>;
|
|
1783
1987
|
gitChanges: {
|
|
1784
|
-
status: string;
|
|
1785
1988
|
diff: string;
|
|
1989
|
+
status: string;
|
|
1786
1990
|
diffCached: string;
|
|
1787
1991
|
lastCommitMessages: string;
|
|
1788
1992
|
};
|
|
@@ -1803,12 +2007,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1803
2007
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1804
2008
|
};
|
|
1805
2009
|
changesAlreadyApplied: {
|
|
1806
|
-
|
|
1807
|
-
type: "file" | "patch";
|
|
2010
|
+
type: "patch" | "file";
|
|
1808
2011
|
filePath: string;
|
|
2012
|
+
content: string;
|
|
1809
2013
|
}[];
|
|
1810
2014
|
authToken?: string | undefined;
|
|
1811
|
-
costMode?: "
|
|
2015
|
+
costMode?: "lite" | "normal" | "max" | undefined;
|
|
1812
2016
|
} | {
|
|
1813
2017
|
type: "read-files-response";
|
|
1814
2018
|
files: Record<string, string | null>;
|
|
@@ -1821,8 +2025,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1821
2025
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1822
2026
|
knowledgeFiles: Record<string, string>;
|
|
1823
2027
|
gitChanges: {
|
|
1824
|
-
status: string;
|
|
1825
2028
|
diff: string;
|
|
2029
|
+
status: string;
|
|
1826
2030
|
diffCached: string;
|
|
1827
2031
|
lastCommitMessages: string;
|
|
1828
2032
|
};
|
|
@@ -1880,17 +2084,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1880
2084
|
}, "strip", z.ZodTypeAny, {
|
|
1881
2085
|
type: "ack";
|
|
1882
2086
|
success: boolean;
|
|
1883
|
-
txid?: number | undefined;
|
|
1884
2087
|
error?: string | undefined;
|
|
2088
|
+
txid?: number | undefined;
|
|
1885
2089
|
}, {
|
|
1886
2090
|
type: "ack";
|
|
1887
2091
|
success: boolean;
|
|
1888
|
-
txid?: number | undefined;
|
|
1889
2092
|
error?: string | undefined;
|
|
2093
|
+
txid?: number | undefined;
|
|
1890
2094
|
}>;
|
|
1891
2095
|
action: z.ZodObject<{
|
|
1892
2096
|
type: z.ZodLiteral<"action">;
|
|
1893
2097
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2098
|
+
type: z.ZodLiteral<"read-files-response">;
|
|
2099
|
+
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
2100
|
+
}, "strip", z.ZodTypeAny, {
|
|
2101
|
+
type: "read-files-response";
|
|
2102
|
+
files: Record<string, string | null>;
|
|
2103
|
+
}, {
|
|
2104
|
+
type: "read-files-response";
|
|
2105
|
+
files: Record<string, string | null>;
|
|
2106
|
+
}>, z.ZodObject<{
|
|
1894
2107
|
type: z.ZodLiteral<"response-chunk">;
|
|
1895
2108
|
userInputId: z.ZodString;
|
|
1896
2109
|
chunk: z.ZodString;
|
|
@@ -1911,26 +2124,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1911
2124
|
filePath: z.ZodString;
|
|
1912
2125
|
content: z.ZodString;
|
|
1913
2126
|
}, "strip", z.ZodTypeAny, {
|
|
1914
|
-
|
|
1915
|
-
type: "file" | "patch";
|
|
2127
|
+
type: "patch" | "file";
|
|
1916
2128
|
filePath: string;
|
|
1917
|
-
}, {
|
|
1918
2129
|
content: string;
|
|
1919
|
-
|
|
2130
|
+
}, {
|
|
2131
|
+
type: "patch" | "file";
|
|
1920
2132
|
filePath: string;
|
|
2133
|
+
content: string;
|
|
1921
2134
|
}>, "many">;
|
|
1922
2135
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1923
2136
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1924
2137
|
filePath: z.ZodString;
|
|
1925
2138
|
content: z.ZodString;
|
|
1926
2139
|
}, "strip", z.ZodTypeAny, {
|
|
1927
|
-
|
|
1928
|
-
type: "file" | "patch";
|
|
2140
|
+
type: "patch" | "file";
|
|
1929
2141
|
filePath: string;
|
|
1930
|
-
}, {
|
|
1931
2142
|
content: string;
|
|
1932
|
-
|
|
2143
|
+
}, {
|
|
2144
|
+
type: "patch" | "file";
|
|
1933
2145
|
filePath: string;
|
|
2146
|
+
content: string;
|
|
1934
2147
|
}>, "many">;
|
|
1935
2148
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1936
2149
|
path: z.ZodString;
|
|
@@ -1954,15 +2167,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1954
2167
|
type: "response-complete";
|
|
1955
2168
|
userInputId: string;
|
|
1956
2169
|
changesAlreadyApplied: {
|
|
1957
|
-
|
|
1958
|
-
type: "file" | "patch";
|
|
2170
|
+
type: "patch" | "file";
|
|
1959
2171
|
filePath: string;
|
|
2172
|
+
content: string;
|
|
1960
2173
|
}[];
|
|
1961
2174
|
response: string;
|
|
1962
2175
|
changes: {
|
|
1963
|
-
|
|
1964
|
-
type: "file" | "patch";
|
|
2176
|
+
type: "patch" | "file";
|
|
1965
2177
|
filePath: string;
|
|
2178
|
+
content: string;
|
|
1966
2179
|
}[];
|
|
1967
2180
|
addedFileVersions: {
|
|
1968
2181
|
path: string;
|
|
@@ -1979,15 +2192,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1979
2192
|
type: "response-complete";
|
|
1980
2193
|
userInputId: string;
|
|
1981
2194
|
changesAlreadyApplied: {
|
|
1982
|
-
|
|
1983
|
-
type: "file" | "patch";
|
|
2195
|
+
type: "patch" | "file";
|
|
1984
2196
|
filePath: string;
|
|
2197
|
+
content: string;
|
|
1985
2198
|
}[];
|
|
1986
2199
|
response: string;
|
|
1987
2200
|
changes: {
|
|
1988
|
-
|
|
1989
|
-
type: "file" | "patch";
|
|
2201
|
+
type: "patch" | "file";
|
|
1990
2202
|
filePath: string;
|
|
2203
|
+
content: string;
|
|
1991
2204
|
}[];
|
|
1992
2205
|
addedFileVersions: {
|
|
1993
2206
|
path: string;
|
|
@@ -2031,26 +2244,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2031
2244
|
filePath: z.ZodString;
|
|
2032
2245
|
content: z.ZodString;
|
|
2033
2246
|
}, "strip", z.ZodTypeAny, {
|
|
2034
|
-
|
|
2035
|
-
type: "file" | "patch";
|
|
2247
|
+
type: "patch" | "file";
|
|
2036
2248
|
filePath: string;
|
|
2037
|
-
}, {
|
|
2038
2249
|
content: string;
|
|
2039
|
-
|
|
2250
|
+
}, {
|
|
2251
|
+
type: "patch" | "file";
|
|
2040
2252
|
filePath: string;
|
|
2253
|
+
content: string;
|
|
2041
2254
|
}>, "many">;
|
|
2042
2255
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2043
2256
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2044
2257
|
filePath: z.ZodString;
|
|
2045
2258
|
content: z.ZodString;
|
|
2046
2259
|
}, "strip", z.ZodTypeAny, {
|
|
2047
|
-
|
|
2048
|
-
type: "file" | "patch";
|
|
2260
|
+
type: "patch" | "file";
|
|
2049
2261
|
filePath: string;
|
|
2050
|
-
}, {
|
|
2051
2262
|
content: string;
|
|
2052
|
-
|
|
2263
|
+
}, {
|
|
2264
|
+
type: "patch" | "file";
|
|
2053
2265
|
filePath: string;
|
|
2266
|
+
content: string;
|
|
2054
2267
|
}>, "many">;
|
|
2055
2268
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2056
2269
|
path: z.ZodString;
|
|
@@ -2066,51 +2279,51 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2066
2279
|
}, "strip", z.ZodTypeAny, {
|
|
2067
2280
|
type: "tool-call";
|
|
2068
2281
|
userInputId: string;
|
|
2282
|
+
data: {
|
|
2283
|
+
name: string;
|
|
2284
|
+
id: string;
|
|
2285
|
+
input: Record<string, any>;
|
|
2286
|
+
};
|
|
2069
2287
|
changesAlreadyApplied: {
|
|
2070
|
-
|
|
2071
|
-
type: "file" | "patch";
|
|
2288
|
+
type: "patch" | "file";
|
|
2072
2289
|
filePath: string;
|
|
2290
|
+
content: string;
|
|
2073
2291
|
}[];
|
|
2074
2292
|
response: string;
|
|
2075
2293
|
changes: {
|
|
2076
|
-
|
|
2077
|
-
type: "file" | "patch";
|
|
2294
|
+
type: "patch" | "file";
|
|
2078
2295
|
filePath: string;
|
|
2296
|
+
content: string;
|
|
2079
2297
|
}[];
|
|
2080
2298
|
addedFileVersions: {
|
|
2081
2299
|
path: string;
|
|
2082
2300
|
content: string;
|
|
2083
2301
|
}[];
|
|
2084
2302
|
resetFileVersions: boolean;
|
|
2303
|
+
}, {
|
|
2304
|
+
type: "tool-call";
|
|
2305
|
+
userInputId: string;
|
|
2085
2306
|
data: {
|
|
2086
2307
|
name: string;
|
|
2087
2308
|
id: string;
|
|
2088
2309
|
input: Record<string, any>;
|
|
2089
2310
|
};
|
|
2090
|
-
}, {
|
|
2091
|
-
type: "tool-call";
|
|
2092
|
-
userInputId: string;
|
|
2093
2311
|
changesAlreadyApplied: {
|
|
2094
|
-
|
|
2095
|
-
type: "file" | "patch";
|
|
2312
|
+
type: "patch" | "file";
|
|
2096
2313
|
filePath: string;
|
|
2314
|
+
content: string;
|
|
2097
2315
|
}[];
|
|
2098
2316
|
response: string;
|
|
2099
2317
|
changes: {
|
|
2100
|
-
|
|
2101
|
-
type: "file" | "patch";
|
|
2318
|
+
type: "patch" | "file";
|
|
2102
2319
|
filePath: string;
|
|
2320
|
+
content: string;
|
|
2103
2321
|
}[];
|
|
2104
2322
|
addedFileVersions: {
|
|
2105
2323
|
path: string;
|
|
2106
2324
|
content: string;
|
|
2107
2325
|
}[];
|
|
2108
2326
|
resetFileVersions: boolean;
|
|
2109
|
-
data: {
|
|
2110
|
-
name: string;
|
|
2111
|
-
id: string;
|
|
2112
|
-
input: Record<string, any>;
|
|
2113
|
-
};
|
|
2114
2327
|
}>, z.ZodObject<{
|
|
2115
2328
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2116
2329
|
userInputId: z.ZodString;
|
|
@@ -2171,41 +2384,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2171
2384
|
fingerprintId: z.ZodString;
|
|
2172
2385
|
fingerprintHash: z.ZodString;
|
|
2173
2386
|
}, "strip", z.ZodTypeAny, {
|
|
2174
|
-
email: string;
|
|
2175
2387
|
name: string | null;
|
|
2176
2388
|
id: string;
|
|
2177
2389
|
fingerprintId: string;
|
|
2178
2390
|
authToken: string;
|
|
2391
|
+
email: string;
|
|
2179
2392
|
fingerprintHash: string;
|
|
2180
2393
|
}, {
|
|
2181
|
-
email: string;
|
|
2182
2394
|
name: string | null;
|
|
2183
2395
|
id: string;
|
|
2184
2396
|
fingerprintId: string;
|
|
2185
2397
|
authToken: string;
|
|
2398
|
+
email: string;
|
|
2186
2399
|
fingerprintHash: string;
|
|
2187
2400
|
}>>;
|
|
2188
2401
|
message: z.ZodString;
|
|
2189
2402
|
}, "strip", z.ZodTypeAny, {
|
|
2190
|
-
message: string;
|
|
2191
2403
|
type: "auth-result";
|
|
2404
|
+
message: string;
|
|
2192
2405
|
user?: {
|
|
2193
|
-
email: string;
|
|
2194
2406
|
name: string | null;
|
|
2195
2407
|
id: string;
|
|
2196
2408
|
fingerprintId: string;
|
|
2197
2409
|
authToken: string;
|
|
2410
|
+
email: string;
|
|
2198
2411
|
fingerprintHash: string;
|
|
2199
2412
|
} | undefined;
|
|
2200
2413
|
}, {
|
|
2201
|
-
message: string;
|
|
2202
2414
|
type: "auth-result";
|
|
2415
|
+
message: string;
|
|
2203
2416
|
user?: {
|
|
2204
|
-
email: string;
|
|
2205
2417
|
name: string | null;
|
|
2206
2418
|
id: string;
|
|
2207
2419
|
fingerprintId: string;
|
|
2208
2420
|
authToken: string;
|
|
2421
|
+
email: string;
|
|
2209
2422
|
fingerprintHash: string;
|
|
2210
2423
|
} | undefined;
|
|
2211
2424
|
}>, z.ZodObject<{
|
|
@@ -2251,11 +2464,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2251
2464
|
type: z.ZodLiteral<"action-error">;
|
|
2252
2465
|
message: z.ZodString;
|
|
2253
2466
|
}, "strip", z.ZodTypeAny, {
|
|
2254
|
-
message: string;
|
|
2255
2467
|
type: "action-error";
|
|
2256
|
-
}, {
|
|
2257
2468
|
message: string;
|
|
2469
|
+
}, {
|
|
2258
2470
|
type: "action-error";
|
|
2471
|
+
message: string;
|
|
2259
2472
|
}>, z.ZodObject<{
|
|
2260
2473
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2261
2474
|
commitMessage: z.ZodString;
|
|
@@ -2288,15 +2501,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2288
2501
|
type: "response-complete";
|
|
2289
2502
|
userInputId: string;
|
|
2290
2503
|
changesAlreadyApplied: {
|
|
2291
|
-
|
|
2292
|
-
type: "file" | "patch";
|
|
2504
|
+
type: "patch" | "file";
|
|
2293
2505
|
filePath: string;
|
|
2506
|
+
content: string;
|
|
2294
2507
|
}[];
|
|
2295
2508
|
response: string;
|
|
2296
2509
|
changes: {
|
|
2297
|
-
|
|
2298
|
-
type: "file" | "patch";
|
|
2510
|
+
type: "patch" | "file";
|
|
2299
2511
|
filePath: string;
|
|
2512
|
+
content: string;
|
|
2300
2513
|
}[];
|
|
2301
2514
|
addedFileVersions: {
|
|
2302
2515
|
path: string;
|
|
@@ -2309,6 +2522,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2309
2522
|
subscription_active?: boolean | undefined;
|
|
2310
2523
|
next_quota_reset?: Date | undefined;
|
|
2311
2524
|
session_credits_used?: number | undefined;
|
|
2525
|
+
} | {
|
|
2526
|
+
type: "read-files-response";
|
|
2527
|
+
files: Record<string, string | null>;
|
|
2312
2528
|
} | {
|
|
2313
2529
|
type: "response-chunk";
|
|
2314
2530
|
userInputId: string;
|
|
@@ -2319,27 +2535,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2319
2535
|
} | {
|
|
2320
2536
|
type: "tool-call";
|
|
2321
2537
|
userInputId: string;
|
|
2538
|
+
data: {
|
|
2539
|
+
name: string;
|
|
2540
|
+
id: string;
|
|
2541
|
+
input: Record<string, any>;
|
|
2542
|
+
};
|
|
2322
2543
|
changesAlreadyApplied: {
|
|
2323
|
-
|
|
2324
|
-
type: "file" | "patch";
|
|
2544
|
+
type: "patch" | "file";
|
|
2325
2545
|
filePath: string;
|
|
2546
|
+
content: string;
|
|
2326
2547
|
}[];
|
|
2327
2548
|
response: string;
|
|
2328
2549
|
changes: {
|
|
2329
|
-
|
|
2330
|
-
type: "file" | "patch";
|
|
2550
|
+
type: "patch" | "file";
|
|
2331
2551
|
filePath: string;
|
|
2552
|
+
content: string;
|
|
2332
2553
|
}[];
|
|
2333
2554
|
addedFileVersions: {
|
|
2334
2555
|
path: string;
|
|
2335
2556
|
content: string;
|
|
2336
2557
|
}[];
|
|
2337
2558
|
resetFileVersions: boolean;
|
|
2338
|
-
data: {
|
|
2339
|
-
name: string;
|
|
2340
|
-
id: string;
|
|
2341
|
-
input: Record<string, any>;
|
|
2342
|
-
};
|
|
2343
2559
|
} | {
|
|
2344
2560
|
type: "terminal-command-result";
|
|
2345
2561
|
userInputId: string;
|
|
@@ -2349,14 +2565,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2349
2565
|
isUpToDate: boolean;
|
|
2350
2566
|
latestVersion: string;
|
|
2351
2567
|
} | {
|
|
2352
|
-
message: string;
|
|
2353
2568
|
type: "auth-result";
|
|
2569
|
+
message: string;
|
|
2354
2570
|
user?: {
|
|
2355
|
-
email: string;
|
|
2356
2571
|
name: string | null;
|
|
2357
2572
|
id: string;
|
|
2358
2573
|
fingerprintId: string;
|
|
2359
2574
|
authToken: string;
|
|
2575
|
+
email: string;
|
|
2360
2576
|
fingerprintHash: string;
|
|
2361
2577
|
} | undefined;
|
|
2362
2578
|
} | {
|
|
@@ -2365,8 +2581,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2365
2581
|
fingerprintHash: string;
|
|
2366
2582
|
loginUrl: string;
|
|
2367
2583
|
} | {
|
|
2368
|
-
message: string;
|
|
2369
2584
|
type: "action-error";
|
|
2585
|
+
message: string;
|
|
2370
2586
|
} | {
|
|
2371
2587
|
type: "commit-message-response";
|
|
2372
2588
|
commitMessage: string;
|
|
@@ -2393,15 +2609,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2393
2609
|
type: "response-complete";
|
|
2394
2610
|
userInputId: string;
|
|
2395
2611
|
changesAlreadyApplied: {
|
|
2396
|
-
|
|
2397
|
-
type: "file" | "patch";
|
|
2612
|
+
type: "patch" | "file";
|
|
2398
2613
|
filePath: string;
|
|
2614
|
+
content: string;
|
|
2399
2615
|
}[];
|
|
2400
2616
|
response: string;
|
|
2401
2617
|
changes: {
|
|
2402
|
-
|
|
2403
|
-
type: "file" | "patch";
|
|
2618
|
+
type: "patch" | "file";
|
|
2404
2619
|
filePath: string;
|
|
2620
|
+
content: string;
|
|
2405
2621
|
}[];
|
|
2406
2622
|
addedFileVersions: {
|
|
2407
2623
|
path: string;
|
|
@@ -2414,6 +2630,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2414
2630
|
subscription_active?: boolean | undefined;
|
|
2415
2631
|
next_quota_reset?: Date | undefined;
|
|
2416
2632
|
session_credits_used?: number | undefined;
|
|
2633
|
+
} | {
|
|
2634
|
+
type: "read-files-response";
|
|
2635
|
+
files: Record<string, string | null>;
|
|
2417
2636
|
} | {
|
|
2418
2637
|
type: "response-chunk";
|
|
2419
2638
|
userInputId: string;
|
|
@@ -2424,27 +2643,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2424
2643
|
} | {
|
|
2425
2644
|
type: "tool-call";
|
|
2426
2645
|
userInputId: string;
|
|
2646
|
+
data: {
|
|
2647
|
+
name: string;
|
|
2648
|
+
id: string;
|
|
2649
|
+
input: Record<string, any>;
|
|
2650
|
+
};
|
|
2427
2651
|
changesAlreadyApplied: {
|
|
2428
|
-
|
|
2429
|
-
type: "file" | "patch";
|
|
2652
|
+
type: "patch" | "file";
|
|
2430
2653
|
filePath: string;
|
|
2654
|
+
content: string;
|
|
2431
2655
|
}[];
|
|
2432
2656
|
response: string;
|
|
2433
2657
|
changes: {
|
|
2434
|
-
|
|
2435
|
-
type: "file" | "patch";
|
|
2658
|
+
type: "patch" | "file";
|
|
2436
2659
|
filePath: string;
|
|
2660
|
+
content: string;
|
|
2437
2661
|
}[];
|
|
2438
2662
|
addedFileVersions: {
|
|
2439
2663
|
path: string;
|
|
2440
2664
|
content: string;
|
|
2441
2665
|
}[];
|
|
2442
2666
|
resetFileVersions: boolean;
|
|
2443
|
-
data: {
|
|
2444
|
-
name: string;
|
|
2445
|
-
id: string;
|
|
2446
|
-
input: Record<string, any>;
|
|
2447
|
-
};
|
|
2448
2667
|
} | {
|
|
2449
2668
|
type: "terminal-command-result";
|
|
2450
2669
|
userInputId: string;
|
|
@@ -2454,14 +2673,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2454
2673
|
isUpToDate: boolean;
|
|
2455
2674
|
latestVersion: string;
|
|
2456
2675
|
} | {
|
|
2457
|
-
message: string;
|
|
2458
2676
|
type: "auth-result";
|
|
2677
|
+
message: string;
|
|
2459
2678
|
user?: {
|
|
2460
|
-
email: string;
|
|
2461
2679
|
name: string | null;
|
|
2462
2680
|
id: string;
|
|
2463
2681
|
fingerprintId: string;
|
|
2464
2682
|
authToken: string;
|
|
2683
|
+
email: string;
|
|
2465
2684
|
fingerprintHash: string;
|
|
2466
2685
|
} | undefined;
|
|
2467
2686
|
} | {
|
|
@@ -2470,8 +2689,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2470
2689
|
fingerprintHash: string;
|
|
2471
2690
|
loginUrl: string;
|
|
2472
2691
|
} | {
|
|
2473
|
-
message: string;
|
|
2474
2692
|
type: "action-error";
|
|
2693
|
+
message: string;
|
|
2475
2694
|
} | {
|
|
2476
2695
|
type: "commit-message-response";
|
|
2477
2696
|
commitMessage: string;
|
|
@@ -2486,16 +2705,25 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2486
2705
|
}, "strip", z.ZodTypeAny, {
|
|
2487
2706
|
type: "ack";
|
|
2488
2707
|
success: boolean;
|
|
2489
|
-
txid?: number | undefined;
|
|
2490
2708
|
error?: string | undefined;
|
|
2709
|
+
txid?: number | undefined;
|
|
2491
2710
|
}, {
|
|
2492
2711
|
type: "ack";
|
|
2493
2712
|
success: boolean;
|
|
2494
|
-
txid?: number | undefined;
|
|
2495
2713
|
error?: string | undefined;
|
|
2714
|
+
txid?: number | undefined;
|
|
2496
2715
|
}>, z.ZodObject<{
|
|
2497
2716
|
type: z.ZodLiteral<"action">;
|
|
2498
2717
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2718
|
+
type: z.ZodLiteral<"read-files-response">;
|
|
2719
|
+
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
2720
|
+
}, "strip", z.ZodTypeAny, {
|
|
2721
|
+
type: "read-files-response";
|
|
2722
|
+
files: Record<string, string | null>;
|
|
2723
|
+
}, {
|
|
2724
|
+
type: "read-files-response";
|
|
2725
|
+
files: Record<string, string | null>;
|
|
2726
|
+
}>, z.ZodObject<{
|
|
2499
2727
|
type: z.ZodLiteral<"response-chunk">;
|
|
2500
2728
|
userInputId: z.ZodString;
|
|
2501
2729
|
chunk: z.ZodString;
|
|
@@ -2516,26 +2744,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2516
2744
|
filePath: z.ZodString;
|
|
2517
2745
|
content: z.ZodString;
|
|
2518
2746
|
}, "strip", z.ZodTypeAny, {
|
|
2519
|
-
|
|
2520
|
-
type: "file" | "patch";
|
|
2747
|
+
type: "patch" | "file";
|
|
2521
2748
|
filePath: string;
|
|
2522
|
-
}, {
|
|
2523
2749
|
content: string;
|
|
2524
|
-
|
|
2750
|
+
}, {
|
|
2751
|
+
type: "patch" | "file";
|
|
2525
2752
|
filePath: string;
|
|
2753
|
+
content: string;
|
|
2526
2754
|
}>, "many">;
|
|
2527
2755
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2528
2756
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2529
2757
|
filePath: z.ZodString;
|
|
2530
2758
|
content: z.ZodString;
|
|
2531
2759
|
}, "strip", z.ZodTypeAny, {
|
|
2532
|
-
|
|
2533
|
-
type: "file" | "patch";
|
|
2760
|
+
type: "patch" | "file";
|
|
2534
2761
|
filePath: string;
|
|
2535
|
-
}, {
|
|
2536
2762
|
content: string;
|
|
2537
|
-
|
|
2763
|
+
}, {
|
|
2764
|
+
type: "patch" | "file";
|
|
2538
2765
|
filePath: string;
|
|
2766
|
+
content: string;
|
|
2539
2767
|
}>, "many">;
|
|
2540
2768
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2541
2769
|
path: z.ZodString;
|
|
@@ -2559,15 +2787,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2559
2787
|
type: "response-complete";
|
|
2560
2788
|
userInputId: string;
|
|
2561
2789
|
changesAlreadyApplied: {
|
|
2562
|
-
|
|
2563
|
-
type: "file" | "patch";
|
|
2790
|
+
type: "patch" | "file";
|
|
2564
2791
|
filePath: string;
|
|
2792
|
+
content: string;
|
|
2565
2793
|
}[];
|
|
2566
2794
|
response: string;
|
|
2567
2795
|
changes: {
|
|
2568
|
-
|
|
2569
|
-
type: "file" | "patch";
|
|
2796
|
+
type: "patch" | "file";
|
|
2570
2797
|
filePath: string;
|
|
2798
|
+
content: string;
|
|
2571
2799
|
}[];
|
|
2572
2800
|
addedFileVersions: {
|
|
2573
2801
|
path: string;
|
|
@@ -2584,15 +2812,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2584
2812
|
type: "response-complete";
|
|
2585
2813
|
userInputId: string;
|
|
2586
2814
|
changesAlreadyApplied: {
|
|
2587
|
-
|
|
2588
|
-
type: "file" | "patch";
|
|
2815
|
+
type: "patch" | "file";
|
|
2589
2816
|
filePath: string;
|
|
2817
|
+
content: string;
|
|
2590
2818
|
}[];
|
|
2591
2819
|
response: string;
|
|
2592
2820
|
changes: {
|
|
2593
|
-
|
|
2594
|
-
type: "file" | "patch";
|
|
2821
|
+
type: "patch" | "file";
|
|
2595
2822
|
filePath: string;
|
|
2823
|
+
content: string;
|
|
2596
2824
|
}[];
|
|
2597
2825
|
addedFileVersions: {
|
|
2598
2826
|
path: string;
|
|
@@ -2636,26 +2864,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2636
2864
|
filePath: z.ZodString;
|
|
2637
2865
|
content: z.ZodString;
|
|
2638
2866
|
}, "strip", z.ZodTypeAny, {
|
|
2639
|
-
|
|
2640
|
-
type: "file" | "patch";
|
|
2867
|
+
type: "patch" | "file";
|
|
2641
2868
|
filePath: string;
|
|
2642
|
-
}, {
|
|
2643
2869
|
content: string;
|
|
2644
|
-
|
|
2870
|
+
}, {
|
|
2871
|
+
type: "patch" | "file";
|
|
2645
2872
|
filePath: string;
|
|
2873
|
+
content: string;
|
|
2646
2874
|
}>, "many">;
|
|
2647
2875
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2648
2876
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2649
2877
|
filePath: z.ZodString;
|
|
2650
2878
|
content: z.ZodString;
|
|
2651
2879
|
}, "strip", z.ZodTypeAny, {
|
|
2652
|
-
|
|
2653
|
-
type: "file" | "patch";
|
|
2880
|
+
type: "patch" | "file";
|
|
2654
2881
|
filePath: string;
|
|
2655
|
-
}, {
|
|
2656
2882
|
content: string;
|
|
2657
|
-
|
|
2883
|
+
}, {
|
|
2884
|
+
type: "patch" | "file";
|
|
2658
2885
|
filePath: string;
|
|
2886
|
+
content: string;
|
|
2659
2887
|
}>, "many">;
|
|
2660
2888
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2661
2889
|
path: z.ZodString;
|
|
@@ -2671,51 +2899,51 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2671
2899
|
}, "strip", z.ZodTypeAny, {
|
|
2672
2900
|
type: "tool-call";
|
|
2673
2901
|
userInputId: string;
|
|
2902
|
+
data: {
|
|
2903
|
+
name: string;
|
|
2904
|
+
id: string;
|
|
2905
|
+
input: Record<string, any>;
|
|
2906
|
+
};
|
|
2674
2907
|
changesAlreadyApplied: {
|
|
2675
|
-
|
|
2676
|
-
type: "file" | "patch";
|
|
2908
|
+
type: "patch" | "file";
|
|
2677
2909
|
filePath: string;
|
|
2910
|
+
content: string;
|
|
2678
2911
|
}[];
|
|
2679
2912
|
response: string;
|
|
2680
2913
|
changes: {
|
|
2681
|
-
|
|
2682
|
-
type: "file" | "patch";
|
|
2914
|
+
type: "patch" | "file";
|
|
2683
2915
|
filePath: string;
|
|
2916
|
+
content: string;
|
|
2684
2917
|
}[];
|
|
2685
2918
|
addedFileVersions: {
|
|
2686
2919
|
path: string;
|
|
2687
2920
|
content: string;
|
|
2688
2921
|
}[];
|
|
2689
2922
|
resetFileVersions: boolean;
|
|
2923
|
+
}, {
|
|
2924
|
+
type: "tool-call";
|
|
2925
|
+
userInputId: string;
|
|
2690
2926
|
data: {
|
|
2691
2927
|
name: string;
|
|
2692
2928
|
id: string;
|
|
2693
2929
|
input: Record<string, any>;
|
|
2694
2930
|
};
|
|
2695
|
-
}, {
|
|
2696
|
-
type: "tool-call";
|
|
2697
|
-
userInputId: string;
|
|
2698
2931
|
changesAlreadyApplied: {
|
|
2699
|
-
|
|
2700
|
-
type: "file" | "patch";
|
|
2932
|
+
type: "patch" | "file";
|
|
2701
2933
|
filePath: string;
|
|
2934
|
+
content: string;
|
|
2702
2935
|
}[];
|
|
2703
2936
|
response: string;
|
|
2704
2937
|
changes: {
|
|
2705
|
-
|
|
2706
|
-
type: "file" | "patch";
|
|
2938
|
+
type: "patch" | "file";
|
|
2707
2939
|
filePath: string;
|
|
2940
|
+
content: string;
|
|
2708
2941
|
}[];
|
|
2709
2942
|
addedFileVersions: {
|
|
2710
2943
|
path: string;
|
|
2711
2944
|
content: string;
|
|
2712
2945
|
}[];
|
|
2713
2946
|
resetFileVersions: boolean;
|
|
2714
|
-
data: {
|
|
2715
|
-
name: string;
|
|
2716
|
-
id: string;
|
|
2717
|
-
input: Record<string, any>;
|
|
2718
|
-
};
|
|
2719
2947
|
}>, z.ZodObject<{
|
|
2720
2948
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2721
2949
|
userInputId: z.ZodString;
|
|
@@ -2776,41 +3004,41 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2776
3004
|
fingerprintId: z.ZodString;
|
|
2777
3005
|
fingerprintHash: z.ZodString;
|
|
2778
3006
|
}, "strip", z.ZodTypeAny, {
|
|
2779
|
-
email: string;
|
|
2780
3007
|
name: string | null;
|
|
2781
3008
|
id: string;
|
|
2782
3009
|
fingerprintId: string;
|
|
2783
3010
|
authToken: string;
|
|
3011
|
+
email: string;
|
|
2784
3012
|
fingerprintHash: string;
|
|
2785
3013
|
}, {
|
|
2786
|
-
email: string;
|
|
2787
3014
|
name: string | null;
|
|
2788
3015
|
id: string;
|
|
2789
3016
|
fingerprintId: string;
|
|
2790
3017
|
authToken: string;
|
|
3018
|
+
email: string;
|
|
2791
3019
|
fingerprintHash: string;
|
|
2792
3020
|
}>>;
|
|
2793
3021
|
message: z.ZodString;
|
|
2794
3022
|
}, "strip", z.ZodTypeAny, {
|
|
2795
|
-
message: string;
|
|
2796
3023
|
type: "auth-result";
|
|
3024
|
+
message: string;
|
|
2797
3025
|
user?: {
|
|
2798
|
-
email: string;
|
|
2799
3026
|
name: string | null;
|
|
2800
3027
|
id: string;
|
|
2801
3028
|
fingerprintId: string;
|
|
2802
3029
|
authToken: string;
|
|
3030
|
+
email: string;
|
|
2803
3031
|
fingerprintHash: string;
|
|
2804
3032
|
} | undefined;
|
|
2805
3033
|
}, {
|
|
2806
|
-
message: string;
|
|
2807
3034
|
type: "auth-result";
|
|
3035
|
+
message: string;
|
|
2808
3036
|
user?: {
|
|
2809
|
-
email: string;
|
|
2810
3037
|
name: string | null;
|
|
2811
3038
|
id: string;
|
|
2812
3039
|
fingerprintId: string;
|
|
2813
3040
|
authToken: string;
|
|
3041
|
+
email: string;
|
|
2814
3042
|
fingerprintHash: string;
|
|
2815
3043
|
} | undefined;
|
|
2816
3044
|
}>, z.ZodObject<{
|
|
@@ -2856,11 +3084,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2856
3084
|
type: z.ZodLiteral<"action-error">;
|
|
2857
3085
|
message: z.ZodString;
|
|
2858
3086
|
}, "strip", z.ZodTypeAny, {
|
|
2859
|
-
message: string;
|
|
2860
3087
|
type: "action-error";
|
|
2861
|
-
}, {
|
|
2862
3088
|
message: string;
|
|
3089
|
+
}, {
|
|
2863
3090
|
type: "action-error";
|
|
3091
|
+
message: string;
|
|
2864
3092
|
}>, z.ZodObject<{
|
|
2865
3093
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2866
3094
|
commitMessage: z.ZodString;
|
|
@@ -2893,15 +3121,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2893
3121
|
type: "response-complete";
|
|
2894
3122
|
userInputId: string;
|
|
2895
3123
|
changesAlreadyApplied: {
|
|
2896
|
-
|
|
2897
|
-
type: "file" | "patch";
|
|
3124
|
+
type: "patch" | "file";
|
|
2898
3125
|
filePath: string;
|
|
3126
|
+
content: string;
|
|
2899
3127
|
}[];
|
|
2900
3128
|
response: string;
|
|
2901
3129
|
changes: {
|
|
2902
|
-
|
|
2903
|
-
type: "file" | "patch";
|
|
3130
|
+
type: "patch" | "file";
|
|
2904
3131
|
filePath: string;
|
|
3132
|
+
content: string;
|
|
2905
3133
|
}[];
|
|
2906
3134
|
addedFileVersions: {
|
|
2907
3135
|
path: string;
|
|
@@ -2914,6 +3142,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2914
3142
|
subscription_active?: boolean | undefined;
|
|
2915
3143
|
next_quota_reset?: Date | undefined;
|
|
2916
3144
|
session_credits_used?: number | undefined;
|
|
3145
|
+
} | {
|
|
3146
|
+
type: "read-files-response";
|
|
3147
|
+
files: Record<string, string | null>;
|
|
2917
3148
|
} | {
|
|
2918
3149
|
type: "response-chunk";
|
|
2919
3150
|
userInputId: string;
|
|
@@ -2924,27 +3155,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2924
3155
|
} | {
|
|
2925
3156
|
type: "tool-call";
|
|
2926
3157
|
userInputId: string;
|
|
3158
|
+
data: {
|
|
3159
|
+
name: string;
|
|
3160
|
+
id: string;
|
|
3161
|
+
input: Record<string, any>;
|
|
3162
|
+
};
|
|
2927
3163
|
changesAlreadyApplied: {
|
|
2928
|
-
|
|
2929
|
-
type: "file" | "patch";
|
|
3164
|
+
type: "patch" | "file";
|
|
2930
3165
|
filePath: string;
|
|
3166
|
+
content: string;
|
|
2931
3167
|
}[];
|
|
2932
3168
|
response: string;
|
|
2933
3169
|
changes: {
|
|
2934
|
-
|
|
2935
|
-
type: "file" | "patch";
|
|
3170
|
+
type: "patch" | "file";
|
|
2936
3171
|
filePath: string;
|
|
3172
|
+
content: string;
|
|
2937
3173
|
}[];
|
|
2938
3174
|
addedFileVersions: {
|
|
2939
3175
|
path: string;
|
|
2940
3176
|
content: string;
|
|
2941
3177
|
}[];
|
|
2942
3178
|
resetFileVersions: boolean;
|
|
2943
|
-
data: {
|
|
2944
|
-
name: string;
|
|
2945
|
-
id: string;
|
|
2946
|
-
input: Record<string, any>;
|
|
2947
|
-
};
|
|
2948
3179
|
} | {
|
|
2949
3180
|
type: "terminal-command-result";
|
|
2950
3181
|
userInputId: string;
|
|
@@ -2954,14 +3185,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2954
3185
|
isUpToDate: boolean;
|
|
2955
3186
|
latestVersion: string;
|
|
2956
3187
|
} | {
|
|
2957
|
-
message: string;
|
|
2958
3188
|
type: "auth-result";
|
|
3189
|
+
message: string;
|
|
2959
3190
|
user?: {
|
|
2960
|
-
email: string;
|
|
2961
3191
|
name: string | null;
|
|
2962
3192
|
id: string;
|
|
2963
3193
|
fingerprintId: string;
|
|
2964
3194
|
authToken: string;
|
|
3195
|
+
email: string;
|
|
2965
3196
|
fingerprintHash: string;
|
|
2966
3197
|
} | undefined;
|
|
2967
3198
|
} | {
|
|
@@ -2970,8 +3201,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2970
3201
|
fingerprintHash: string;
|
|
2971
3202
|
loginUrl: string;
|
|
2972
3203
|
} | {
|
|
2973
|
-
message: string;
|
|
2974
3204
|
type: "action-error";
|
|
3205
|
+
message: string;
|
|
2975
3206
|
} | {
|
|
2976
3207
|
type: "commit-message-response";
|
|
2977
3208
|
commitMessage: string;
|
|
@@ -2998,15 +3229,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2998
3229
|
type: "response-complete";
|
|
2999
3230
|
userInputId: string;
|
|
3000
3231
|
changesAlreadyApplied: {
|
|
3001
|
-
|
|
3002
|
-
type: "file" | "patch";
|
|
3232
|
+
type: "patch" | "file";
|
|
3003
3233
|
filePath: string;
|
|
3234
|
+
content: string;
|
|
3004
3235
|
}[];
|
|
3005
3236
|
response: string;
|
|
3006
3237
|
changes: {
|
|
3007
|
-
|
|
3008
|
-
type: "file" | "patch";
|
|
3238
|
+
type: "patch" | "file";
|
|
3009
3239
|
filePath: string;
|
|
3240
|
+
content: string;
|
|
3010
3241
|
}[];
|
|
3011
3242
|
addedFileVersions: {
|
|
3012
3243
|
path: string;
|
|
@@ -3019,6 +3250,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3019
3250
|
subscription_active?: boolean | undefined;
|
|
3020
3251
|
next_quota_reset?: Date | undefined;
|
|
3021
3252
|
session_credits_used?: number | undefined;
|
|
3253
|
+
} | {
|
|
3254
|
+
type: "read-files-response";
|
|
3255
|
+
files: Record<string, string | null>;
|
|
3022
3256
|
} | {
|
|
3023
3257
|
type: "response-chunk";
|
|
3024
3258
|
userInputId: string;
|
|
@@ -3029,27 +3263,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3029
3263
|
} | {
|
|
3030
3264
|
type: "tool-call";
|
|
3031
3265
|
userInputId: string;
|
|
3266
|
+
data: {
|
|
3267
|
+
name: string;
|
|
3268
|
+
id: string;
|
|
3269
|
+
input: Record<string, any>;
|
|
3270
|
+
};
|
|
3032
3271
|
changesAlreadyApplied: {
|
|
3033
|
-
|
|
3034
|
-
type: "file" | "patch";
|
|
3272
|
+
type: "patch" | "file";
|
|
3035
3273
|
filePath: string;
|
|
3274
|
+
content: string;
|
|
3036
3275
|
}[];
|
|
3037
3276
|
response: string;
|
|
3038
3277
|
changes: {
|
|
3039
|
-
|
|
3040
|
-
type: "file" | "patch";
|
|
3278
|
+
type: "patch" | "file";
|
|
3041
3279
|
filePath: string;
|
|
3280
|
+
content: string;
|
|
3042
3281
|
}[];
|
|
3043
3282
|
addedFileVersions: {
|
|
3044
3283
|
path: string;
|
|
3045
3284
|
content: string;
|
|
3046
3285
|
}[];
|
|
3047
3286
|
resetFileVersions: boolean;
|
|
3048
|
-
data: {
|
|
3049
|
-
name: string;
|
|
3050
|
-
id: string;
|
|
3051
|
-
input: Record<string, any>;
|
|
3052
|
-
};
|
|
3053
3287
|
} | {
|
|
3054
3288
|
type: "terminal-command-result";
|
|
3055
3289
|
userInputId: string;
|
|
@@ -3059,14 +3293,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3059
3293
|
isUpToDate: boolean;
|
|
3060
3294
|
latestVersion: string;
|
|
3061
3295
|
} | {
|
|
3062
|
-
message: string;
|
|
3063
3296
|
type: "auth-result";
|
|
3297
|
+
message: string;
|
|
3064
3298
|
user?: {
|
|
3065
|
-
email: string;
|
|
3066
3299
|
name: string | null;
|
|
3067
3300
|
id: string;
|
|
3068
3301
|
fingerprintId: string;
|
|
3069
3302
|
authToken: string;
|
|
3303
|
+
email: string;
|
|
3070
3304
|
fingerprintHash: string;
|
|
3071
3305
|
} | undefined;
|
|
3072
3306
|
} | {
|
|
@@ -3075,8 +3309,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3075
3309
|
fingerprintHash: string;
|
|
3076
3310
|
loginUrl: string;
|
|
3077
3311
|
} | {
|
|
3078
|
-
message: string;
|
|
3079
3312
|
type: "action-error";
|
|
3313
|
+
message: string;
|
|
3080
3314
|
} | {
|
|
3081
3315
|
type: "commit-message-response";
|
|
3082
3316
|
commitMessage: string;
|