codecane 1.0.152 → 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/__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 +33 -0
- package/dist/browser-runner.js +599 -0
- package/dist/browser-runner.js.map +1 -0
- package/dist/chat-storage.d.ts +2 -4
- package/dist/chat-storage.js +74 -46
- package/dist/chat-storage.js.map +1 -1
- package/dist/cli.js +7 -17
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -2
- package/dist/client.js +17 -17
- 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 +89 -80
- package/dist/common/actions.js +4 -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 +132 -183
- package/dist/common/browser-actions.js +14 -11
- package/dist/common/browser-actions.js.map +1 -1
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/websockets/websocket-schema.d.ts +186 -156
- package/dist/create-template-project.js +7 -17
- package/dist/create-template-project.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/menu.js +7 -17
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +4 -0
- package/dist/project-files.js +27 -20
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.d.ts +1 -0
- package/dist/tool-handlers.js +67 -6
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/terminal.js +7 -17
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +3 -2
- 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
|
@@ -95,16 +95,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
95
95
|
}>>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
type: "tool_use";
|
|
98
|
-
id: string;
|
|
99
98
|
name: string;
|
|
99
|
+
id: string;
|
|
100
100
|
input: Record<string, any>;
|
|
101
101
|
cache_control?: {
|
|
102
102
|
type: "ephemeral";
|
|
103
103
|
} | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
type: "tool_use";
|
|
106
|
-
id: string;
|
|
107
106
|
name: string;
|
|
107
|
+
id: string;
|
|
108
108
|
input: Record<string, any>;
|
|
109
109
|
cache_control?: {
|
|
110
110
|
type: "ephemeral";
|
|
@@ -122,15 +122,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
type: "tool_result";
|
|
125
|
-
tool_use_id: string;
|
|
126
125
|
content: string;
|
|
126
|
+
tool_use_id: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
type: "tool_result";
|
|
132
|
-
tool_use_id: string;
|
|
133
132
|
content: string;
|
|
133
|
+
tool_use_id: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
136
136
|
} | undefined;
|
|
@@ -144,16 +144,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
144
144
|
} | undefined;
|
|
145
145
|
} | {
|
|
146
146
|
type: "tool_use";
|
|
147
|
-
id: string;
|
|
148
147
|
name: string;
|
|
148
|
+
id: string;
|
|
149
149
|
input: Record<string, any>;
|
|
150
150
|
cache_control?: {
|
|
151
151
|
type: "ephemeral";
|
|
152
152
|
} | undefined;
|
|
153
153
|
} | {
|
|
154
154
|
type: "tool_result";
|
|
155
|
-
tool_use_id: string;
|
|
156
155
|
content: string;
|
|
156
|
+
tool_use_id: string;
|
|
157
157
|
cache_control?: {
|
|
158
158
|
type: "ephemeral";
|
|
159
159
|
} | undefined;
|
|
@@ -168,16 +168,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
168
168
|
} | undefined;
|
|
169
169
|
} | {
|
|
170
170
|
type: "tool_use";
|
|
171
|
-
id: string;
|
|
172
171
|
name: string;
|
|
172
|
+
id: string;
|
|
173
173
|
input: Record<string, any>;
|
|
174
174
|
cache_control?: {
|
|
175
175
|
type: "ephemeral";
|
|
176
176
|
} | undefined;
|
|
177
177
|
} | {
|
|
178
178
|
type: "tool_result";
|
|
179
|
-
tool_use_id: string;
|
|
180
179
|
content: string;
|
|
180
|
+
tool_use_id: string;
|
|
181
181
|
cache_control?: {
|
|
182
182
|
type: "ephemeral";
|
|
183
183
|
} | undefined;
|
|
@@ -196,13 +196,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
196
196
|
diffCached: z.ZodString;
|
|
197
197
|
lastCommitMessages: z.ZodString;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
diff: string;
|
|
200
199
|
status: string;
|
|
200
|
+
diff: string;
|
|
201
201
|
diffCached: string;
|
|
202
202
|
lastCommitMessages: string;
|
|
203
203
|
}, {
|
|
204
|
-
diff: string;
|
|
205
204
|
status: string;
|
|
205
|
+
diff: string;
|
|
206
206
|
diffCached: string;
|
|
207
207
|
lastCommitMessages: string;
|
|
208
208
|
}>;
|
|
@@ -246,8 +246,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
246
246
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
247
247
|
knowledgeFiles: Record<string, string>;
|
|
248
248
|
gitChanges: {
|
|
249
|
-
diff: string;
|
|
250
249
|
status: string;
|
|
250
|
+
diff: string;
|
|
251
251
|
diffCached: string;
|
|
252
252
|
lastCommitMessages: string;
|
|
253
253
|
};
|
|
@@ -272,8 +272,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
272
272
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
273
273
|
knowledgeFiles: Record<string, string>;
|
|
274
274
|
gitChanges: {
|
|
275
|
-
diff: string;
|
|
276
275
|
status: string;
|
|
276
|
+
diff: string;
|
|
277
277
|
diffCached: string;
|
|
278
278
|
lastCommitMessages: string;
|
|
279
279
|
};
|
|
@@ -299,12 +299,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
299
299
|
content: z.ZodString;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
301
|
type: "patch" | "file";
|
|
302
|
-
content: string;
|
|
303
302
|
filePath: string;
|
|
303
|
+
content: string;
|
|
304
304
|
}, {
|
|
305
305
|
type: "patch" | "file";
|
|
306
|
-
content: string;
|
|
307
306
|
filePath: string;
|
|
307
|
+
content: string;
|
|
308
308
|
}>, "many">;
|
|
309
309
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -320,16 +320,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
320
320
|
} | undefined;
|
|
321
321
|
} | {
|
|
322
322
|
type: "tool_use";
|
|
323
|
-
id: string;
|
|
324
323
|
name: string;
|
|
324
|
+
id: string;
|
|
325
325
|
input: Record<string, any>;
|
|
326
326
|
cache_control?: {
|
|
327
327
|
type: "ephemeral";
|
|
328
328
|
} | undefined;
|
|
329
329
|
} | {
|
|
330
330
|
type: "tool_result";
|
|
331
|
-
tool_use_id: string;
|
|
332
331
|
content: string;
|
|
332
|
+
tool_use_id: string;
|
|
333
333
|
cache_control?: {
|
|
334
334
|
type: "ephemeral";
|
|
335
335
|
} | undefined;
|
|
@@ -342,8 +342,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
342
342
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
343
343
|
knowledgeFiles: Record<string, string>;
|
|
344
344
|
gitChanges: {
|
|
345
|
-
diff: string;
|
|
346
345
|
status: string;
|
|
346
|
+
diff: string;
|
|
347
347
|
diffCached: string;
|
|
348
348
|
lastCommitMessages: string;
|
|
349
349
|
};
|
|
@@ -365,10 +365,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
365
365
|
};
|
|
366
366
|
changesAlreadyApplied: {
|
|
367
367
|
type: "patch" | "file";
|
|
368
|
-
content: string;
|
|
369
368
|
filePath: string;
|
|
369
|
+
content: string;
|
|
370
370
|
}[];
|
|
371
|
-
costMode: "
|
|
371
|
+
costMode: "max" | "lite" | "normal";
|
|
372
372
|
authToken?: string | undefined;
|
|
373
373
|
}, {
|
|
374
374
|
type: "user-input";
|
|
@@ -383,16 +383,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
383
383
|
} | undefined;
|
|
384
384
|
} | {
|
|
385
385
|
type: "tool_use";
|
|
386
|
-
id: string;
|
|
387
386
|
name: string;
|
|
387
|
+
id: string;
|
|
388
388
|
input: Record<string, any>;
|
|
389
389
|
cache_control?: {
|
|
390
390
|
type: "ephemeral";
|
|
391
391
|
} | undefined;
|
|
392
392
|
} | {
|
|
393
393
|
type: "tool_result";
|
|
394
|
-
tool_use_id: string;
|
|
395
394
|
content: string;
|
|
395
|
+
tool_use_id: string;
|
|
396
396
|
cache_control?: {
|
|
397
397
|
type: "ephemeral";
|
|
398
398
|
} | undefined;
|
|
@@ -405,8 +405,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
405
405
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
406
406
|
knowledgeFiles: Record<string, string>;
|
|
407
407
|
gitChanges: {
|
|
408
|
-
diff: string;
|
|
409
408
|
status: string;
|
|
409
|
+
diff: string;
|
|
410
410
|
diffCached: string;
|
|
411
411
|
lastCommitMessages: string;
|
|
412
412
|
};
|
|
@@ -428,11 +428,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
428
428
|
};
|
|
429
429
|
changesAlreadyApplied: {
|
|
430
430
|
type: "patch" | "file";
|
|
431
|
-
content: string;
|
|
432
431
|
filePath: string;
|
|
432
|
+
content: string;
|
|
433
433
|
}[];
|
|
434
434
|
authToken?: string | undefined;
|
|
435
|
-
costMode?: "
|
|
435
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
436
436
|
}>, z.ZodObject<{
|
|
437
437
|
type: z.ZodLiteral<"read-files-response">;
|
|
438
438
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -458,13 +458,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
458
458
|
diffCached: z.ZodString;
|
|
459
459
|
lastCommitMessages: z.ZodString;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
diff: string;
|
|
462
461
|
status: string;
|
|
462
|
+
diff: string;
|
|
463
463
|
diffCached: string;
|
|
464
464
|
lastCommitMessages: string;
|
|
465
465
|
}, {
|
|
466
|
-
diff: string;
|
|
467
466
|
status: string;
|
|
467
|
+
diff: string;
|
|
468
468
|
diffCached: string;
|
|
469
469
|
lastCommitMessages: string;
|
|
470
470
|
}>;
|
|
@@ -508,8 +508,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
508
508
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
509
509
|
knowledgeFiles: Record<string, string>;
|
|
510
510
|
gitChanges: {
|
|
511
|
-
diff: string;
|
|
512
511
|
status: string;
|
|
512
|
+
diff: string;
|
|
513
513
|
diffCached: string;
|
|
514
514
|
lastCommitMessages: string;
|
|
515
515
|
};
|
|
@@ -534,8 +534,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
534
534
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
535
535
|
knowledgeFiles: Record<string, string>;
|
|
536
536
|
gitChanges: {
|
|
537
|
-
diff: string;
|
|
538
537
|
status: string;
|
|
538
|
+
diff: string;
|
|
539
539
|
diffCached: string;
|
|
540
540
|
lastCommitMessages: string;
|
|
541
541
|
};
|
|
@@ -564,8 +564,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
564
564
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
565
565
|
knowledgeFiles: Record<string, string>;
|
|
566
566
|
gitChanges: {
|
|
567
|
-
diff: string;
|
|
568
567
|
status: string;
|
|
568
|
+
diff: string;
|
|
569
569
|
diffCached: string;
|
|
570
570
|
lastCommitMessages: string;
|
|
571
571
|
};
|
|
@@ -595,8 +595,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
595
595
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
596
596
|
knowledgeFiles: Record<string, string>;
|
|
597
597
|
gitChanges: {
|
|
598
|
-
diff: string;
|
|
599
598
|
status: string;
|
|
599
|
+
diff: string;
|
|
600
600
|
diffCached: string;
|
|
601
601
|
lastCommitMessages: string;
|
|
602
602
|
};
|
|
@@ -702,16 +702,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
702
702
|
} | undefined;
|
|
703
703
|
} | {
|
|
704
704
|
type: "tool_use";
|
|
705
|
-
id: string;
|
|
706
705
|
name: string;
|
|
706
|
+
id: string;
|
|
707
707
|
input: Record<string, any>;
|
|
708
708
|
cache_control?: {
|
|
709
709
|
type: "ephemeral";
|
|
710
710
|
} | undefined;
|
|
711
711
|
} | {
|
|
712
712
|
type: "tool_result";
|
|
713
|
-
tool_use_id: string;
|
|
714
713
|
content: string;
|
|
714
|
+
tool_use_id: string;
|
|
715
715
|
cache_control?: {
|
|
716
716
|
type: "ephemeral";
|
|
717
717
|
} | undefined;
|
|
@@ -724,8 +724,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
724
724
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
725
725
|
knowledgeFiles: Record<string, string>;
|
|
726
726
|
gitChanges: {
|
|
727
|
-
diff: string;
|
|
728
727
|
status: string;
|
|
728
|
+
diff: string;
|
|
729
729
|
diffCached: string;
|
|
730
730
|
lastCommitMessages: string;
|
|
731
731
|
};
|
|
@@ -747,10 +747,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
747
747
|
};
|
|
748
748
|
changesAlreadyApplied: {
|
|
749
749
|
type: "patch" | "file";
|
|
750
|
-
content: string;
|
|
751
750
|
filePath: string;
|
|
751
|
+
content: string;
|
|
752
752
|
}[];
|
|
753
|
-
costMode: "
|
|
753
|
+
costMode: "max" | "lite" | "normal";
|
|
754
754
|
authToken?: string | undefined;
|
|
755
755
|
} | {
|
|
756
756
|
type: "read-files-response";
|
|
@@ -764,8 +764,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
764
764
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
765
765
|
knowledgeFiles: Record<string, string>;
|
|
766
766
|
gitChanges: {
|
|
767
|
-
diff: string;
|
|
768
767
|
status: string;
|
|
768
|
+
diff: string;
|
|
769
769
|
diffCached: string;
|
|
770
770
|
lastCommitMessages: string;
|
|
771
771
|
};
|
|
@@ -826,16 +826,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
826
826
|
} | undefined;
|
|
827
827
|
} | {
|
|
828
828
|
type: "tool_use";
|
|
829
|
-
id: string;
|
|
830
829
|
name: string;
|
|
830
|
+
id: string;
|
|
831
831
|
input: Record<string, any>;
|
|
832
832
|
cache_control?: {
|
|
833
833
|
type: "ephemeral";
|
|
834
834
|
} | undefined;
|
|
835
835
|
} | {
|
|
836
836
|
type: "tool_result";
|
|
837
|
-
tool_use_id: string;
|
|
838
837
|
content: string;
|
|
838
|
+
tool_use_id: string;
|
|
839
839
|
cache_control?: {
|
|
840
840
|
type: "ephemeral";
|
|
841
841
|
} | undefined;
|
|
@@ -848,8 +848,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
848
848
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
849
849
|
knowledgeFiles: Record<string, string>;
|
|
850
850
|
gitChanges: {
|
|
851
|
-
diff: string;
|
|
852
851
|
status: string;
|
|
852
|
+
diff: string;
|
|
853
853
|
diffCached: string;
|
|
854
854
|
lastCommitMessages: string;
|
|
855
855
|
};
|
|
@@ -871,11 +871,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
871
871
|
};
|
|
872
872
|
changesAlreadyApplied: {
|
|
873
873
|
type: "patch" | "file";
|
|
874
|
-
content: string;
|
|
875
874
|
filePath: string;
|
|
875
|
+
content: string;
|
|
876
876
|
}[];
|
|
877
877
|
authToken?: string | undefined;
|
|
878
|
-
costMode?: "
|
|
878
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
879
879
|
} | {
|
|
880
880
|
type: "read-files-response";
|
|
881
881
|
files: Record<string, string | null>;
|
|
@@ -888,8 +888,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
888
888
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
889
889
|
knowledgeFiles: Record<string, string>;
|
|
890
890
|
gitChanges: {
|
|
891
|
-
diff: string;
|
|
892
891
|
status: string;
|
|
892
|
+
diff: string;
|
|
893
893
|
diffCached: string;
|
|
894
894
|
lastCommitMessages: string;
|
|
895
895
|
};
|
|
@@ -1028,16 +1028,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1028
1028
|
}>>;
|
|
1029
1029
|
}, "strip", z.ZodTypeAny, {
|
|
1030
1030
|
type: "tool_use";
|
|
1031
|
-
id: string;
|
|
1032
1031
|
name: string;
|
|
1032
|
+
id: string;
|
|
1033
1033
|
input: Record<string, any>;
|
|
1034
1034
|
cache_control?: {
|
|
1035
1035
|
type: "ephemeral";
|
|
1036
1036
|
} | undefined;
|
|
1037
1037
|
}, {
|
|
1038
1038
|
type: "tool_use";
|
|
1039
|
-
id: string;
|
|
1040
1039
|
name: string;
|
|
1040
|
+
id: string;
|
|
1041
1041
|
input: Record<string, any>;
|
|
1042
1042
|
cache_control?: {
|
|
1043
1043
|
type: "ephemeral";
|
|
@@ -1055,15 +1055,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1055
1055
|
}>>;
|
|
1056
1056
|
}, "strip", z.ZodTypeAny, {
|
|
1057
1057
|
type: "tool_result";
|
|
1058
|
-
tool_use_id: string;
|
|
1059
1058
|
content: string;
|
|
1059
|
+
tool_use_id: string;
|
|
1060
1060
|
cache_control?: {
|
|
1061
1061
|
type: "ephemeral";
|
|
1062
1062
|
} | undefined;
|
|
1063
1063
|
}, {
|
|
1064
1064
|
type: "tool_result";
|
|
1065
|
-
tool_use_id: string;
|
|
1066
1065
|
content: string;
|
|
1066
|
+
tool_use_id: string;
|
|
1067
1067
|
cache_control?: {
|
|
1068
1068
|
type: "ephemeral";
|
|
1069
1069
|
} | undefined;
|
|
@@ -1077,16 +1077,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1077
1077
|
} | undefined;
|
|
1078
1078
|
} | {
|
|
1079
1079
|
type: "tool_use";
|
|
1080
|
-
id: string;
|
|
1081
1080
|
name: string;
|
|
1081
|
+
id: string;
|
|
1082
1082
|
input: Record<string, any>;
|
|
1083
1083
|
cache_control?: {
|
|
1084
1084
|
type: "ephemeral";
|
|
1085
1085
|
} | undefined;
|
|
1086
1086
|
} | {
|
|
1087
1087
|
type: "tool_result";
|
|
1088
|
-
tool_use_id: string;
|
|
1089
1088
|
content: string;
|
|
1089
|
+
tool_use_id: string;
|
|
1090
1090
|
cache_control?: {
|
|
1091
1091
|
type: "ephemeral";
|
|
1092
1092
|
} | undefined;
|
|
@@ -1101,16 +1101,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1101
1101
|
} | undefined;
|
|
1102
1102
|
} | {
|
|
1103
1103
|
type: "tool_use";
|
|
1104
|
-
id: string;
|
|
1105
1104
|
name: string;
|
|
1105
|
+
id: string;
|
|
1106
1106
|
input: Record<string, any>;
|
|
1107
1107
|
cache_control?: {
|
|
1108
1108
|
type: "ephemeral";
|
|
1109
1109
|
} | undefined;
|
|
1110
1110
|
} | {
|
|
1111
1111
|
type: "tool_result";
|
|
1112
|
-
tool_use_id: string;
|
|
1113
1112
|
content: string;
|
|
1113
|
+
tool_use_id: string;
|
|
1114
1114
|
cache_control?: {
|
|
1115
1115
|
type: "ephemeral";
|
|
1116
1116
|
} | undefined;
|
|
@@ -1129,13 +1129,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1129
1129
|
diffCached: z.ZodString;
|
|
1130
1130
|
lastCommitMessages: z.ZodString;
|
|
1131
1131
|
}, "strip", z.ZodTypeAny, {
|
|
1132
|
-
diff: string;
|
|
1133
1132
|
status: string;
|
|
1133
|
+
diff: string;
|
|
1134
1134
|
diffCached: string;
|
|
1135
1135
|
lastCommitMessages: string;
|
|
1136
1136
|
}, {
|
|
1137
|
-
diff: string;
|
|
1138
1137
|
status: string;
|
|
1138
|
+
diff: string;
|
|
1139
1139
|
diffCached: string;
|
|
1140
1140
|
lastCommitMessages: string;
|
|
1141
1141
|
}>;
|
|
@@ -1179,8 +1179,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1179
1179
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1180
1180
|
knowledgeFiles: Record<string, string>;
|
|
1181
1181
|
gitChanges: {
|
|
1182
|
-
diff: string;
|
|
1183
1182
|
status: string;
|
|
1183
|
+
diff: string;
|
|
1184
1184
|
diffCached: string;
|
|
1185
1185
|
lastCommitMessages: string;
|
|
1186
1186
|
};
|
|
@@ -1205,8 +1205,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1205
1205
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1206
1206
|
knowledgeFiles: Record<string, string>;
|
|
1207
1207
|
gitChanges: {
|
|
1208
|
-
diff: string;
|
|
1209
1208
|
status: string;
|
|
1209
|
+
diff: string;
|
|
1210
1210
|
diffCached: string;
|
|
1211
1211
|
lastCommitMessages: string;
|
|
1212
1212
|
};
|
|
@@ -1232,12 +1232,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1232
1232
|
content: z.ZodString;
|
|
1233
1233
|
}, "strip", z.ZodTypeAny, {
|
|
1234
1234
|
type: "patch" | "file";
|
|
1235
|
-
content: string;
|
|
1236
1235
|
filePath: string;
|
|
1236
|
+
content: string;
|
|
1237
1237
|
}, {
|
|
1238
1238
|
type: "patch" | "file";
|
|
1239
|
-
content: string;
|
|
1240
1239
|
filePath: string;
|
|
1240
|
+
content: string;
|
|
1241
1241
|
}>, "many">;
|
|
1242
1242
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
1243
1243
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1253,16 +1253,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1253
1253
|
} | undefined;
|
|
1254
1254
|
} | {
|
|
1255
1255
|
type: "tool_use";
|
|
1256
|
-
id: string;
|
|
1257
1256
|
name: string;
|
|
1257
|
+
id: string;
|
|
1258
1258
|
input: Record<string, any>;
|
|
1259
1259
|
cache_control?: {
|
|
1260
1260
|
type: "ephemeral";
|
|
1261
1261
|
} | undefined;
|
|
1262
1262
|
} | {
|
|
1263
1263
|
type: "tool_result";
|
|
1264
|
-
tool_use_id: string;
|
|
1265
1264
|
content: string;
|
|
1265
|
+
tool_use_id: string;
|
|
1266
1266
|
cache_control?: {
|
|
1267
1267
|
type: "ephemeral";
|
|
1268
1268
|
} | undefined;
|
|
@@ -1275,8 +1275,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1275
1275
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1276
1276
|
knowledgeFiles: Record<string, string>;
|
|
1277
1277
|
gitChanges: {
|
|
1278
|
-
diff: string;
|
|
1279
1278
|
status: string;
|
|
1279
|
+
diff: string;
|
|
1280
1280
|
diffCached: string;
|
|
1281
1281
|
lastCommitMessages: string;
|
|
1282
1282
|
};
|
|
@@ -1298,10 +1298,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1298
1298
|
};
|
|
1299
1299
|
changesAlreadyApplied: {
|
|
1300
1300
|
type: "patch" | "file";
|
|
1301
|
-
content: string;
|
|
1302
1301
|
filePath: string;
|
|
1302
|
+
content: string;
|
|
1303
1303
|
}[];
|
|
1304
|
-
costMode: "
|
|
1304
|
+
costMode: "max" | "lite" | "normal";
|
|
1305
1305
|
authToken?: string | undefined;
|
|
1306
1306
|
}, {
|
|
1307
1307
|
type: "user-input";
|
|
@@ -1316,16 +1316,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1316
1316
|
} | undefined;
|
|
1317
1317
|
} | {
|
|
1318
1318
|
type: "tool_use";
|
|
1319
|
-
id: string;
|
|
1320
1319
|
name: string;
|
|
1320
|
+
id: string;
|
|
1321
1321
|
input: Record<string, any>;
|
|
1322
1322
|
cache_control?: {
|
|
1323
1323
|
type: "ephemeral";
|
|
1324
1324
|
} | undefined;
|
|
1325
1325
|
} | {
|
|
1326
1326
|
type: "tool_result";
|
|
1327
|
-
tool_use_id: string;
|
|
1328
1327
|
content: string;
|
|
1328
|
+
tool_use_id: string;
|
|
1329
1329
|
cache_control?: {
|
|
1330
1330
|
type: "ephemeral";
|
|
1331
1331
|
} | undefined;
|
|
@@ -1338,8 +1338,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1338
1338
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1339
1339
|
knowledgeFiles: Record<string, string>;
|
|
1340
1340
|
gitChanges: {
|
|
1341
|
-
diff: string;
|
|
1342
1341
|
status: string;
|
|
1342
|
+
diff: string;
|
|
1343
1343
|
diffCached: string;
|
|
1344
1344
|
lastCommitMessages: string;
|
|
1345
1345
|
};
|
|
@@ -1361,11 +1361,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1361
1361
|
};
|
|
1362
1362
|
changesAlreadyApplied: {
|
|
1363
1363
|
type: "patch" | "file";
|
|
1364
|
-
content: string;
|
|
1365
1364
|
filePath: string;
|
|
1365
|
+
content: string;
|
|
1366
1366
|
}[];
|
|
1367
1367
|
authToken?: string | undefined;
|
|
1368
|
-
costMode?: "
|
|
1368
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1369
1369
|
}>, z.ZodObject<{
|
|
1370
1370
|
type: z.ZodLiteral<"read-files-response">;
|
|
1371
1371
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -1391,13 +1391,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1391
1391
|
diffCached: z.ZodString;
|
|
1392
1392
|
lastCommitMessages: z.ZodString;
|
|
1393
1393
|
}, "strip", z.ZodTypeAny, {
|
|
1394
|
-
diff: string;
|
|
1395
1394
|
status: string;
|
|
1395
|
+
diff: string;
|
|
1396
1396
|
diffCached: string;
|
|
1397
1397
|
lastCommitMessages: string;
|
|
1398
1398
|
}, {
|
|
1399
|
-
diff: string;
|
|
1400
1399
|
status: string;
|
|
1400
|
+
diff: string;
|
|
1401
1401
|
diffCached: string;
|
|
1402
1402
|
lastCommitMessages: string;
|
|
1403
1403
|
}>;
|
|
@@ -1441,8 +1441,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1441
1441
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1442
1442
|
knowledgeFiles: Record<string, string>;
|
|
1443
1443
|
gitChanges: {
|
|
1444
|
-
diff: string;
|
|
1445
1444
|
status: string;
|
|
1445
|
+
diff: string;
|
|
1446
1446
|
diffCached: string;
|
|
1447
1447
|
lastCommitMessages: string;
|
|
1448
1448
|
};
|
|
@@ -1467,8 +1467,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1467
1467
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1468
1468
|
knowledgeFiles: Record<string, string>;
|
|
1469
1469
|
gitChanges: {
|
|
1470
|
-
diff: string;
|
|
1471
1470
|
status: string;
|
|
1471
|
+
diff: string;
|
|
1472
1472
|
diffCached: string;
|
|
1473
1473
|
lastCommitMessages: string;
|
|
1474
1474
|
};
|
|
@@ -1497,8 +1497,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1497
1497
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1498
1498
|
knowledgeFiles: Record<string, string>;
|
|
1499
1499
|
gitChanges: {
|
|
1500
|
-
diff: string;
|
|
1501
1500
|
status: string;
|
|
1501
|
+
diff: string;
|
|
1502
1502
|
diffCached: string;
|
|
1503
1503
|
lastCommitMessages: string;
|
|
1504
1504
|
};
|
|
@@ -1528,8 +1528,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1528
1528
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1529
1529
|
knowledgeFiles: Record<string, string>;
|
|
1530
1530
|
gitChanges: {
|
|
1531
|
-
diff: string;
|
|
1532
1531
|
status: string;
|
|
1532
|
+
diff: string;
|
|
1533
1533
|
diffCached: string;
|
|
1534
1534
|
lastCommitMessages: string;
|
|
1535
1535
|
};
|
|
@@ -1635,16 +1635,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1635
1635
|
} | undefined;
|
|
1636
1636
|
} | {
|
|
1637
1637
|
type: "tool_use";
|
|
1638
|
-
id: string;
|
|
1639
1638
|
name: string;
|
|
1639
|
+
id: string;
|
|
1640
1640
|
input: Record<string, any>;
|
|
1641
1641
|
cache_control?: {
|
|
1642
1642
|
type: "ephemeral";
|
|
1643
1643
|
} | undefined;
|
|
1644
1644
|
} | {
|
|
1645
1645
|
type: "tool_result";
|
|
1646
|
-
tool_use_id: string;
|
|
1647
1646
|
content: string;
|
|
1647
|
+
tool_use_id: string;
|
|
1648
1648
|
cache_control?: {
|
|
1649
1649
|
type: "ephemeral";
|
|
1650
1650
|
} | undefined;
|
|
@@ -1657,8 +1657,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1657
1657
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1658
1658
|
knowledgeFiles: Record<string, string>;
|
|
1659
1659
|
gitChanges: {
|
|
1660
|
-
diff: string;
|
|
1661
1660
|
status: string;
|
|
1661
|
+
diff: string;
|
|
1662
1662
|
diffCached: string;
|
|
1663
1663
|
lastCommitMessages: string;
|
|
1664
1664
|
};
|
|
@@ -1680,10 +1680,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1680
1680
|
};
|
|
1681
1681
|
changesAlreadyApplied: {
|
|
1682
1682
|
type: "patch" | "file";
|
|
1683
|
-
content: string;
|
|
1684
1683
|
filePath: string;
|
|
1684
|
+
content: string;
|
|
1685
1685
|
}[];
|
|
1686
|
-
costMode: "
|
|
1686
|
+
costMode: "max" | "lite" | "normal";
|
|
1687
1687
|
authToken?: string | undefined;
|
|
1688
1688
|
} | {
|
|
1689
1689
|
type: "read-files-response";
|
|
@@ -1697,8 +1697,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1697
1697
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1698
1698
|
knowledgeFiles: Record<string, string>;
|
|
1699
1699
|
gitChanges: {
|
|
1700
|
-
diff: string;
|
|
1701
1700
|
status: string;
|
|
1701
|
+
diff: string;
|
|
1702
1702
|
diffCached: string;
|
|
1703
1703
|
lastCommitMessages: string;
|
|
1704
1704
|
};
|
|
@@ -1759,16 +1759,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1759
1759
|
} | undefined;
|
|
1760
1760
|
} | {
|
|
1761
1761
|
type: "tool_use";
|
|
1762
|
-
id: string;
|
|
1763
1762
|
name: string;
|
|
1763
|
+
id: string;
|
|
1764
1764
|
input: Record<string, any>;
|
|
1765
1765
|
cache_control?: {
|
|
1766
1766
|
type: "ephemeral";
|
|
1767
1767
|
} | undefined;
|
|
1768
1768
|
} | {
|
|
1769
1769
|
type: "tool_result";
|
|
1770
|
-
tool_use_id: string;
|
|
1771
1770
|
content: string;
|
|
1771
|
+
tool_use_id: string;
|
|
1772
1772
|
cache_control?: {
|
|
1773
1773
|
type: "ephemeral";
|
|
1774
1774
|
} | undefined;
|
|
@@ -1781,8 +1781,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1781
1781
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1782
1782
|
knowledgeFiles: Record<string, string>;
|
|
1783
1783
|
gitChanges: {
|
|
1784
|
-
diff: string;
|
|
1785
1784
|
status: string;
|
|
1785
|
+
diff: string;
|
|
1786
1786
|
diffCached: string;
|
|
1787
1787
|
lastCommitMessages: string;
|
|
1788
1788
|
};
|
|
@@ -1804,11 +1804,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1804
1804
|
};
|
|
1805
1805
|
changesAlreadyApplied: {
|
|
1806
1806
|
type: "patch" | "file";
|
|
1807
|
-
content: string;
|
|
1808
1807
|
filePath: string;
|
|
1808
|
+
content: string;
|
|
1809
1809
|
}[];
|
|
1810
1810
|
authToken?: string | undefined;
|
|
1811
|
-
costMode?: "
|
|
1811
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1812
1812
|
} | {
|
|
1813
1813
|
type: "read-files-response";
|
|
1814
1814
|
files: Record<string, string | null>;
|
|
@@ -1821,8 +1821,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1821
1821
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1822
1822
|
knowledgeFiles: Record<string, string>;
|
|
1823
1823
|
gitChanges: {
|
|
1824
|
-
diff: string;
|
|
1825
1824
|
status: string;
|
|
1825
|
+
diff: string;
|
|
1826
1826
|
diffCached: string;
|
|
1827
1827
|
lastCommitMessages: string;
|
|
1828
1828
|
};
|
|
@@ -1891,6 +1891,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1891
1891
|
action: z.ZodObject<{
|
|
1892
1892
|
type: z.ZodLiteral<"action">;
|
|
1893
1893
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1894
|
+
type: z.ZodLiteral<"read-files-response">;
|
|
1895
|
+
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
1896
|
+
}, "strip", z.ZodTypeAny, {
|
|
1897
|
+
type: "read-files-response";
|
|
1898
|
+
files: Record<string, string | null>;
|
|
1899
|
+
}, {
|
|
1900
|
+
type: "read-files-response";
|
|
1901
|
+
files: Record<string, string | null>;
|
|
1902
|
+
}>, z.ZodObject<{
|
|
1894
1903
|
type: z.ZodLiteral<"response-chunk">;
|
|
1895
1904
|
userInputId: z.ZodString;
|
|
1896
1905
|
chunk: z.ZodString;
|
|
@@ -1912,12 +1921,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1912
1921
|
content: z.ZodString;
|
|
1913
1922
|
}, "strip", z.ZodTypeAny, {
|
|
1914
1923
|
type: "patch" | "file";
|
|
1915
|
-
content: string;
|
|
1916
1924
|
filePath: string;
|
|
1925
|
+
content: string;
|
|
1917
1926
|
}, {
|
|
1918
1927
|
type: "patch" | "file";
|
|
1919
|
-
content: string;
|
|
1920
1928
|
filePath: string;
|
|
1929
|
+
content: string;
|
|
1921
1930
|
}>, "many">;
|
|
1922
1931
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1923
1932
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -1925,12 +1934,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1925
1934
|
content: z.ZodString;
|
|
1926
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1927
1936
|
type: "patch" | "file";
|
|
1928
|
-
content: string;
|
|
1929
1937
|
filePath: string;
|
|
1938
|
+
content: string;
|
|
1930
1939
|
}, {
|
|
1931
1940
|
type: "patch" | "file";
|
|
1932
|
-
content: string;
|
|
1933
1941
|
filePath: string;
|
|
1942
|
+
content: string;
|
|
1934
1943
|
}>, "many">;
|
|
1935
1944
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1936
1945
|
path: z.ZodString;
|
|
@@ -1955,14 +1964,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1955
1964
|
userInputId: string;
|
|
1956
1965
|
changesAlreadyApplied: {
|
|
1957
1966
|
type: "patch" | "file";
|
|
1958
|
-
content: string;
|
|
1959
1967
|
filePath: string;
|
|
1968
|
+
content: string;
|
|
1960
1969
|
}[];
|
|
1961
1970
|
response: string;
|
|
1962
1971
|
changes: {
|
|
1963
1972
|
type: "patch" | "file";
|
|
1964
|
-
content: string;
|
|
1965
1973
|
filePath: string;
|
|
1974
|
+
content: string;
|
|
1966
1975
|
}[];
|
|
1967
1976
|
addedFileVersions: {
|
|
1968
1977
|
path: string;
|
|
@@ -1980,14 +1989,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1980
1989
|
userInputId: string;
|
|
1981
1990
|
changesAlreadyApplied: {
|
|
1982
1991
|
type: "patch" | "file";
|
|
1983
|
-
content: string;
|
|
1984
1992
|
filePath: string;
|
|
1993
|
+
content: string;
|
|
1985
1994
|
}[];
|
|
1986
1995
|
response: string;
|
|
1987
1996
|
changes: {
|
|
1988
1997
|
type: "patch" | "file";
|
|
1989
|
-
content: string;
|
|
1990
1998
|
filePath: string;
|
|
1999
|
+
content: string;
|
|
1991
2000
|
}[];
|
|
1992
2001
|
addedFileVersions: {
|
|
1993
2002
|
path: string;
|
|
@@ -2018,12 +2027,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2018
2027
|
id: z.ZodString;
|
|
2019
2028
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2020
2029
|
}, "strip", z.ZodTypeAny, {
|
|
2021
|
-
id: string;
|
|
2022
2030
|
name: string;
|
|
2031
|
+
id: string;
|
|
2023
2032
|
input: Record<string, any>;
|
|
2024
2033
|
}, {
|
|
2025
|
-
id: string;
|
|
2026
2034
|
name: string;
|
|
2035
|
+
id: string;
|
|
2027
2036
|
input: Record<string, any>;
|
|
2028
2037
|
}>;
|
|
2029
2038
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2032,12 +2041,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2032
2041
|
content: z.ZodString;
|
|
2033
2042
|
}, "strip", z.ZodTypeAny, {
|
|
2034
2043
|
type: "patch" | "file";
|
|
2035
|
-
content: string;
|
|
2036
2044
|
filePath: string;
|
|
2045
|
+
content: string;
|
|
2037
2046
|
}, {
|
|
2038
2047
|
type: "patch" | "file";
|
|
2039
|
-
content: string;
|
|
2040
2048
|
filePath: string;
|
|
2049
|
+
content: string;
|
|
2041
2050
|
}>, "many">;
|
|
2042
2051
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2043
2052
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2045,12 +2054,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2045
2054
|
content: z.ZodString;
|
|
2046
2055
|
}, "strip", z.ZodTypeAny, {
|
|
2047
2056
|
type: "patch" | "file";
|
|
2048
|
-
content: string;
|
|
2049
2057
|
filePath: string;
|
|
2058
|
+
content: string;
|
|
2050
2059
|
}, {
|
|
2051
2060
|
type: "patch" | "file";
|
|
2052
|
-
content: string;
|
|
2053
2061
|
filePath: string;
|
|
2062
|
+
content: string;
|
|
2054
2063
|
}>, "many">;
|
|
2055
2064
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2056
2065
|
path: z.ZodString;
|
|
@@ -2068,14 +2077,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2068
2077
|
userInputId: string;
|
|
2069
2078
|
changesAlreadyApplied: {
|
|
2070
2079
|
type: "patch" | "file";
|
|
2071
|
-
content: string;
|
|
2072
2080
|
filePath: string;
|
|
2081
|
+
content: string;
|
|
2073
2082
|
}[];
|
|
2074
2083
|
response: string;
|
|
2075
2084
|
changes: {
|
|
2076
2085
|
type: "patch" | "file";
|
|
2077
|
-
content: string;
|
|
2078
2086
|
filePath: string;
|
|
2087
|
+
content: string;
|
|
2079
2088
|
}[];
|
|
2080
2089
|
addedFileVersions: {
|
|
2081
2090
|
path: string;
|
|
@@ -2083,8 +2092,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2083
2092
|
}[];
|
|
2084
2093
|
resetFileVersions: boolean;
|
|
2085
2094
|
data: {
|
|
2086
|
-
id: string;
|
|
2087
2095
|
name: string;
|
|
2096
|
+
id: string;
|
|
2088
2097
|
input: Record<string, any>;
|
|
2089
2098
|
};
|
|
2090
2099
|
}, {
|
|
@@ -2092,14 +2101,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2092
2101
|
userInputId: string;
|
|
2093
2102
|
changesAlreadyApplied: {
|
|
2094
2103
|
type: "patch" | "file";
|
|
2095
|
-
content: string;
|
|
2096
2104
|
filePath: string;
|
|
2105
|
+
content: string;
|
|
2097
2106
|
}[];
|
|
2098
2107
|
response: string;
|
|
2099
2108
|
changes: {
|
|
2100
2109
|
type: "patch" | "file";
|
|
2101
|
-
content: string;
|
|
2102
2110
|
filePath: string;
|
|
2111
|
+
content: string;
|
|
2103
2112
|
}[];
|
|
2104
2113
|
addedFileVersions: {
|
|
2105
2114
|
path: string;
|
|
@@ -2107,8 +2116,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2107
2116
|
}[];
|
|
2108
2117
|
resetFileVersions: boolean;
|
|
2109
2118
|
data: {
|
|
2110
|
-
id: string;
|
|
2111
2119
|
name: string;
|
|
2120
|
+
id: string;
|
|
2112
2121
|
input: Record<string, any>;
|
|
2113
2122
|
};
|
|
2114
2123
|
}>, z.ZodObject<{
|
|
@@ -2171,15 +2180,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2171
2180
|
fingerprintId: z.ZodString;
|
|
2172
2181
|
fingerprintHash: z.ZodString;
|
|
2173
2182
|
}, "strip", z.ZodTypeAny, {
|
|
2174
|
-
id: string;
|
|
2175
2183
|
name: string | null;
|
|
2184
|
+
id: string;
|
|
2176
2185
|
fingerprintId: string;
|
|
2177
2186
|
authToken: string;
|
|
2178
2187
|
email: string;
|
|
2179
2188
|
fingerprintHash: string;
|
|
2180
2189
|
}, {
|
|
2181
|
-
id: string;
|
|
2182
2190
|
name: string | null;
|
|
2191
|
+
id: string;
|
|
2183
2192
|
fingerprintId: string;
|
|
2184
2193
|
authToken: string;
|
|
2185
2194
|
email: string;
|
|
@@ -2190,8 +2199,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2190
2199
|
type: "auth-result";
|
|
2191
2200
|
message: string;
|
|
2192
2201
|
user?: {
|
|
2193
|
-
id: string;
|
|
2194
2202
|
name: string | null;
|
|
2203
|
+
id: string;
|
|
2195
2204
|
fingerprintId: string;
|
|
2196
2205
|
authToken: string;
|
|
2197
2206
|
email: string;
|
|
@@ -2201,8 +2210,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2201
2210
|
type: "auth-result";
|
|
2202
2211
|
message: string;
|
|
2203
2212
|
user?: {
|
|
2204
|
-
id: string;
|
|
2205
2213
|
name: string | null;
|
|
2214
|
+
id: string;
|
|
2206
2215
|
fingerprintId: string;
|
|
2207
2216
|
authToken: string;
|
|
2208
2217
|
email: string;
|
|
@@ -2289,14 +2298,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2289
2298
|
userInputId: string;
|
|
2290
2299
|
changesAlreadyApplied: {
|
|
2291
2300
|
type: "patch" | "file";
|
|
2292
|
-
content: string;
|
|
2293
2301
|
filePath: string;
|
|
2302
|
+
content: string;
|
|
2294
2303
|
}[];
|
|
2295
2304
|
response: string;
|
|
2296
2305
|
changes: {
|
|
2297
2306
|
type: "patch" | "file";
|
|
2298
|
-
content: string;
|
|
2299
2307
|
filePath: string;
|
|
2308
|
+
content: string;
|
|
2300
2309
|
}[];
|
|
2301
2310
|
addedFileVersions: {
|
|
2302
2311
|
path: string;
|
|
@@ -2309,6 +2318,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2309
2318
|
subscription_active?: boolean | undefined;
|
|
2310
2319
|
next_quota_reset?: Date | undefined;
|
|
2311
2320
|
session_credits_used?: number | undefined;
|
|
2321
|
+
} | {
|
|
2322
|
+
type: "read-files-response";
|
|
2323
|
+
files: Record<string, string | null>;
|
|
2312
2324
|
} | {
|
|
2313
2325
|
type: "response-chunk";
|
|
2314
2326
|
userInputId: string;
|
|
@@ -2321,14 +2333,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2321
2333
|
userInputId: string;
|
|
2322
2334
|
changesAlreadyApplied: {
|
|
2323
2335
|
type: "patch" | "file";
|
|
2324
|
-
content: string;
|
|
2325
2336
|
filePath: string;
|
|
2337
|
+
content: string;
|
|
2326
2338
|
}[];
|
|
2327
2339
|
response: string;
|
|
2328
2340
|
changes: {
|
|
2329
2341
|
type: "patch" | "file";
|
|
2330
|
-
content: string;
|
|
2331
2342
|
filePath: string;
|
|
2343
|
+
content: string;
|
|
2332
2344
|
}[];
|
|
2333
2345
|
addedFileVersions: {
|
|
2334
2346
|
path: string;
|
|
@@ -2336,8 +2348,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2336
2348
|
}[];
|
|
2337
2349
|
resetFileVersions: boolean;
|
|
2338
2350
|
data: {
|
|
2339
|
-
id: string;
|
|
2340
2351
|
name: string;
|
|
2352
|
+
id: string;
|
|
2341
2353
|
input: Record<string, any>;
|
|
2342
2354
|
};
|
|
2343
2355
|
} | {
|
|
@@ -2352,8 +2364,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2352
2364
|
type: "auth-result";
|
|
2353
2365
|
message: string;
|
|
2354
2366
|
user?: {
|
|
2355
|
-
id: string;
|
|
2356
2367
|
name: string | null;
|
|
2368
|
+
id: string;
|
|
2357
2369
|
fingerprintId: string;
|
|
2358
2370
|
authToken: string;
|
|
2359
2371
|
email: string;
|
|
@@ -2394,14 +2406,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2394
2406
|
userInputId: string;
|
|
2395
2407
|
changesAlreadyApplied: {
|
|
2396
2408
|
type: "patch" | "file";
|
|
2397
|
-
content: string;
|
|
2398
2409
|
filePath: string;
|
|
2410
|
+
content: string;
|
|
2399
2411
|
}[];
|
|
2400
2412
|
response: string;
|
|
2401
2413
|
changes: {
|
|
2402
2414
|
type: "patch" | "file";
|
|
2403
|
-
content: string;
|
|
2404
2415
|
filePath: string;
|
|
2416
|
+
content: string;
|
|
2405
2417
|
}[];
|
|
2406
2418
|
addedFileVersions: {
|
|
2407
2419
|
path: string;
|
|
@@ -2414,6 +2426,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2414
2426
|
subscription_active?: boolean | undefined;
|
|
2415
2427
|
next_quota_reset?: Date | undefined;
|
|
2416
2428
|
session_credits_used?: number | undefined;
|
|
2429
|
+
} | {
|
|
2430
|
+
type: "read-files-response";
|
|
2431
|
+
files: Record<string, string | null>;
|
|
2417
2432
|
} | {
|
|
2418
2433
|
type: "response-chunk";
|
|
2419
2434
|
userInputId: string;
|
|
@@ -2426,14 +2441,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2426
2441
|
userInputId: string;
|
|
2427
2442
|
changesAlreadyApplied: {
|
|
2428
2443
|
type: "patch" | "file";
|
|
2429
|
-
content: string;
|
|
2430
2444
|
filePath: string;
|
|
2445
|
+
content: string;
|
|
2431
2446
|
}[];
|
|
2432
2447
|
response: string;
|
|
2433
2448
|
changes: {
|
|
2434
2449
|
type: "patch" | "file";
|
|
2435
|
-
content: string;
|
|
2436
2450
|
filePath: string;
|
|
2451
|
+
content: string;
|
|
2437
2452
|
}[];
|
|
2438
2453
|
addedFileVersions: {
|
|
2439
2454
|
path: string;
|
|
@@ -2441,8 +2456,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2441
2456
|
}[];
|
|
2442
2457
|
resetFileVersions: boolean;
|
|
2443
2458
|
data: {
|
|
2444
|
-
id: string;
|
|
2445
2459
|
name: string;
|
|
2460
|
+
id: string;
|
|
2446
2461
|
input: Record<string, any>;
|
|
2447
2462
|
};
|
|
2448
2463
|
} | {
|
|
@@ -2457,8 +2472,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2457
2472
|
type: "auth-result";
|
|
2458
2473
|
message: string;
|
|
2459
2474
|
user?: {
|
|
2460
|
-
id: string;
|
|
2461
2475
|
name: string | null;
|
|
2476
|
+
id: string;
|
|
2462
2477
|
fingerprintId: string;
|
|
2463
2478
|
authToken: string;
|
|
2464
2479
|
email: string;
|
|
@@ -2496,6 +2511,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2496
2511
|
}>, z.ZodObject<{
|
|
2497
2512
|
type: z.ZodLiteral<"action">;
|
|
2498
2513
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2514
|
+
type: z.ZodLiteral<"read-files-response">;
|
|
2515
|
+
files: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
2516
|
+
}, "strip", z.ZodTypeAny, {
|
|
2517
|
+
type: "read-files-response";
|
|
2518
|
+
files: Record<string, string | null>;
|
|
2519
|
+
}, {
|
|
2520
|
+
type: "read-files-response";
|
|
2521
|
+
files: Record<string, string | null>;
|
|
2522
|
+
}>, z.ZodObject<{
|
|
2499
2523
|
type: z.ZodLiteral<"response-chunk">;
|
|
2500
2524
|
userInputId: z.ZodString;
|
|
2501
2525
|
chunk: z.ZodString;
|
|
@@ -2517,12 +2541,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2517
2541
|
content: z.ZodString;
|
|
2518
2542
|
}, "strip", z.ZodTypeAny, {
|
|
2519
2543
|
type: "patch" | "file";
|
|
2520
|
-
content: string;
|
|
2521
2544
|
filePath: string;
|
|
2545
|
+
content: string;
|
|
2522
2546
|
}, {
|
|
2523
2547
|
type: "patch" | "file";
|
|
2524
|
-
content: string;
|
|
2525
2548
|
filePath: string;
|
|
2549
|
+
content: string;
|
|
2526
2550
|
}>, "many">;
|
|
2527
2551
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2528
2552
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2530,12 +2554,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2530
2554
|
content: z.ZodString;
|
|
2531
2555
|
}, "strip", z.ZodTypeAny, {
|
|
2532
2556
|
type: "patch" | "file";
|
|
2533
|
-
content: string;
|
|
2534
2557
|
filePath: string;
|
|
2558
|
+
content: string;
|
|
2535
2559
|
}, {
|
|
2536
2560
|
type: "patch" | "file";
|
|
2537
|
-
content: string;
|
|
2538
2561
|
filePath: string;
|
|
2562
|
+
content: string;
|
|
2539
2563
|
}>, "many">;
|
|
2540
2564
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2541
2565
|
path: z.ZodString;
|
|
@@ -2560,14 +2584,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2560
2584
|
userInputId: string;
|
|
2561
2585
|
changesAlreadyApplied: {
|
|
2562
2586
|
type: "patch" | "file";
|
|
2563
|
-
content: string;
|
|
2564
2587
|
filePath: string;
|
|
2588
|
+
content: string;
|
|
2565
2589
|
}[];
|
|
2566
2590
|
response: string;
|
|
2567
2591
|
changes: {
|
|
2568
2592
|
type: "patch" | "file";
|
|
2569
|
-
content: string;
|
|
2570
2593
|
filePath: string;
|
|
2594
|
+
content: string;
|
|
2571
2595
|
}[];
|
|
2572
2596
|
addedFileVersions: {
|
|
2573
2597
|
path: string;
|
|
@@ -2585,14 +2609,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2585
2609
|
userInputId: string;
|
|
2586
2610
|
changesAlreadyApplied: {
|
|
2587
2611
|
type: "patch" | "file";
|
|
2588
|
-
content: string;
|
|
2589
2612
|
filePath: string;
|
|
2613
|
+
content: string;
|
|
2590
2614
|
}[];
|
|
2591
2615
|
response: string;
|
|
2592
2616
|
changes: {
|
|
2593
2617
|
type: "patch" | "file";
|
|
2594
|
-
content: string;
|
|
2595
2618
|
filePath: string;
|
|
2619
|
+
content: string;
|
|
2596
2620
|
}[];
|
|
2597
2621
|
addedFileVersions: {
|
|
2598
2622
|
path: string;
|
|
@@ -2623,12 +2647,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2623
2647
|
id: z.ZodString;
|
|
2624
2648
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2625
2649
|
}, "strip", z.ZodTypeAny, {
|
|
2626
|
-
id: string;
|
|
2627
2650
|
name: string;
|
|
2651
|
+
id: string;
|
|
2628
2652
|
input: Record<string, any>;
|
|
2629
2653
|
}, {
|
|
2630
|
-
id: string;
|
|
2631
2654
|
name: string;
|
|
2655
|
+
id: string;
|
|
2632
2656
|
input: Record<string, any>;
|
|
2633
2657
|
}>;
|
|
2634
2658
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2637,12 +2661,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2637
2661
|
content: z.ZodString;
|
|
2638
2662
|
}, "strip", z.ZodTypeAny, {
|
|
2639
2663
|
type: "patch" | "file";
|
|
2640
|
-
content: string;
|
|
2641
2664
|
filePath: string;
|
|
2665
|
+
content: string;
|
|
2642
2666
|
}, {
|
|
2643
2667
|
type: "patch" | "file";
|
|
2644
|
-
content: string;
|
|
2645
2668
|
filePath: string;
|
|
2669
|
+
content: string;
|
|
2646
2670
|
}>, "many">;
|
|
2647
2671
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2648
2672
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2650,12 +2674,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2650
2674
|
content: z.ZodString;
|
|
2651
2675
|
}, "strip", z.ZodTypeAny, {
|
|
2652
2676
|
type: "patch" | "file";
|
|
2653
|
-
content: string;
|
|
2654
2677
|
filePath: string;
|
|
2678
|
+
content: string;
|
|
2655
2679
|
}, {
|
|
2656
2680
|
type: "patch" | "file";
|
|
2657
|
-
content: string;
|
|
2658
2681
|
filePath: string;
|
|
2682
|
+
content: string;
|
|
2659
2683
|
}>, "many">;
|
|
2660
2684
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2661
2685
|
path: z.ZodString;
|
|
@@ -2673,14 +2697,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2673
2697
|
userInputId: string;
|
|
2674
2698
|
changesAlreadyApplied: {
|
|
2675
2699
|
type: "patch" | "file";
|
|
2676
|
-
content: string;
|
|
2677
2700
|
filePath: string;
|
|
2701
|
+
content: string;
|
|
2678
2702
|
}[];
|
|
2679
2703
|
response: string;
|
|
2680
2704
|
changes: {
|
|
2681
2705
|
type: "patch" | "file";
|
|
2682
|
-
content: string;
|
|
2683
2706
|
filePath: string;
|
|
2707
|
+
content: string;
|
|
2684
2708
|
}[];
|
|
2685
2709
|
addedFileVersions: {
|
|
2686
2710
|
path: string;
|
|
@@ -2688,8 +2712,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2688
2712
|
}[];
|
|
2689
2713
|
resetFileVersions: boolean;
|
|
2690
2714
|
data: {
|
|
2691
|
-
id: string;
|
|
2692
2715
|
name: string;
|
|
2716
|
+
id: string;
|
|
2693
2717
|
input: Record<string, any>;
|
|
2694
2718
|
};
|
|
2695
2719
|
}, {
|
|
@@ -2697,14 +2721,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2697
2721
|
userInputId: string;
|
|
2698
2722
|
changesAlreadyApplied: {
|
|
2699
2723
|
type: "patch" | "file";
|
|
2700
|
-
content: string;
|
|
2701
2724
|
filePath: string;
|
|
2725
|
+
content: string;
|
|
2702
2726
|
}[];
|
|
2703
2727
|
response: string;
|
|
2704
2728
|
changes: {
|
|
2705
2729
|
type: "patch" | "file";
|
|
2706
|
-
content: string;
|
|
2707
2730
|
filePath: string;
|
|
2731
|
+
content: string;
|
|
2708
2732
|
}[];
|
|
2709
2733
|
addedFileVersions: {
|
|
2710
2734
|
path: string;
|
|
@@ -2712,8 +2736,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2712
2736
|
}[];
|
|
2713
2737
|
resetFileVersions: boolean;
|
|
2714
2738
|
data: {
|
|
2715
|
-
id: string;
|
|
2716
2739
|
name: string;
|
|
2740
|
+
id: string;
|
|
2717
2741
|
input: Record<string, any>;
|
|
2718
2742
|
};
|
|
2719
2743
|
}>, z.ZodObject<{
|
|
@@ -2776,15 +2800,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2776
2800
|
fingerprintId: z.ZodString;
|
|
2777
2801
|
fingerprintHash: z.ZodString;
|
|
2778
2802
|
}, "strip", z.ZodTypeAny, {
|
|
2779
|
-
id: string;
|
|
2780
2803
|
name: string | null;
|
|
2804
|
+
id: string;
|
|
2781
2805
|
fingerprintId: string;
|
|
2782
2806
|
authToken: string;
|
|
2783
2807
|
email: string;
|
|
2784
2808
|
fingerprintHash: string;
|
|
2785
2809
|
}, {
|
|
2786
|
-
id: string;
|
|
2787
2810
|
name: string | null;
|
|
2811
|
+
id: string;
|
|
2788
2812
|
fingerprintId: string;
|
|
2789
2813
|
authToken: string;
|
|
2790
2814
|
email: string;
|
|
@@ -2795,8 +2819,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2795
2819
|
type: "auth-result";
|
|
2796
2820
|
message: string;
|
|
2797
2821
|
user?: {
|
|
2798
|
-
id: string;
|
|
2799
2822
|
name: string | null;
|
|
2823
|
+
id: string;
|
|
2800
2824
|
fingerprintId: string;
|
|
2801
2825
|
authToken: string;
|
|
2802
2826
|
email: string;
|
|
@@ -2806,8 +2830,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2806
2830
|
type: "auth-result";
|
|
2807
2831
|
message: string;
|
|
2808
2832
|
user?: {
|
|
2809
|
-
id: string;
|
|
2810
2833
|
name: string | null;
|
|
2834
|
+
id: string;
|
|
2811
2835
|
fingerprintId: string;
|
|
2812
2836
|
authToken: string;
|
|
2813
2837
|
email: string;
|
|
@@ -2894,14 +2918,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2894
2918
|
userInputId: string;
|
|
2895
2919
|
changesAlreadyApplied: {
|
|
2896
2920
|
type: "patch" | "file";
|
|
2897
|
-
content: string;
|
|
2898
2921
|
filePath: string;
|
|
2922
|
+
content: string;
|
|
2899
2923
|
}[];
|
|
2900
2924
|
response: string;
|
|
2901
2925
|
changes: {
|
|
2902
2926
|
type: "patch" | "file";
|
|
2903
|
-
content: string;
|
|
2904
2927
|
filePath: string;
|
|
2928
|
+
content: string;
|
|
2905
2929
|
}[];
|
|
2906
2930
|
addedFileVersions: {
|
|
2907
2931
|
path: string;
|
|
@@ -2914,6 +2938,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2914
2938
|
subscription_active?: boolean | undefined;
|
|
2915
2939
|
next_quota_reset?: Date | undefined;
|
|
2916
2940
|
session_credits_used?: number | undefined;
|
|
2941
|
+
} | {
|
|
2942
|
+
type: "read-files-response";
|
|
2943
|
+
files: Record<string, string | null>;
|
|
2917
2944
|
} | {
|
|
2918
2945
|
type: "response-chunk";
|
|
2919
2946
|
userInputId: string;
|
|
@@ -2926,14 +2953,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2926
2953
|
userInputId: string;
|
|
2927
2954
|
changesAlreadyApplied: {
|
|
2928
2955
|
type: "patch" | "file";
|
|
2929
|
-
content: string;
|
|
2930
2956
|
filePath: string;
|
|
2957
|
+
content: string;
|
|
2931
2958
|
}[];
|
|
2932
2959
|
response: string;
|
|
2933
2960
|
changes: {
|
|
2934
2961
|
type: "patch" | "file";
|
|
2935
|
-
content: string;
|
|
2936
2962
|
filePath: string;
|
|
2963
|
+
content: string;
|
|
2937
2964
|
}[];
|
|
2938
2965
|
addedFileVersions: {
|
|
2939
2966
|
path: string;
|
|
@@ -2941,8 +2968,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2941
2968
|
}[];
|
|
2942
2969
|
resetFileVersions: boolean;
|
|
2943
2970
|
data: {
|
|
2944
|
-
id: string;
|
|
2945
2971
|
name: string;
|
|
2972
|
+
id: string;
|
|
2946
2973
|
input: Record<string, any>;
|
|
2947
2974
|
};
|
|
2948
2975
|
} | {
|
|
@@ -2957,8 +2984,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2957
2984
|
type: "auth-result";
|
|
2958
2985
|
message: string;
|
|
2959
2986
|
user?: {
|
|
2960
|
-
id: string;
|
|
2961
2987
|
name: string | null;
|
|
2988
|
+
id: string;
|
|
2962
2989
|
fingerprintId: string;
|
|
2963
2990
|
authToken: string;
|
|
2964
2991
|
email: string;
|
|
@@ -2999,14 +3026,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2999
3026
|
userInputId: string;
|
|
3000
3027
|
changesAlreadyApplied: {
|
|
3001
3028
|
type: "patch" | "file";
|
|
3002
|
-
content: string;
|
|
3003
3029
|
filePath: string;
|
|
3030
|
+
content: string;
|
|
3004
3031
|
}[];
|
|
3005
3032
|
response: string;
|
|
3006
3033
|
changes: {
|
|
3007
3034
|
type: "patch" | "file";
|
|
3008
|
-
content: string;
|
|
3009
3035
|
filePath: string;
|
|
3036
|
+
content: string;
|
|
3010
3037
|
}[];
|
|
3011
3038
|
addedFileVersions: {
|
|
3012
3039
|
path: string;
|
|
@@ -3019,6 +3046,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3019
3046
|
subscription_active?: boolean | undefined;
|
|
3020
3047
|
next_quota_reset?: Date | undefined;
|
|
3021
3048
|
session_credits_used?: number | undefined;
|
|
3049
|
+
} | {
|
|
3050
|
+
type: "read-files-response";
|
|
3051
|
+
files: Record<string, string | null>;
|
|
3022
3052
|
} | {
|
|
3023
3053
|
type: "response-chunk";
|
|
3024
3054
|
userInputId: string;
|
|
@@ -3031,14 +3061,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3031
3061
|
userInputId: string;
|
|
3032
3062
|
changesAlreadyApplied: {
|
|
3033
3063
|
type: "patch" | "file";
|
|
3034
|
-
content: string;
|
|
3035
3064
|
filePath: string;
|
|
3065
|
+
content: string;
|
|
3036
3066
|
}[];
|
|
3037
3067
|
response: string;
|
|
3038
3068
|
changes: {
|
|
3039
3069
|
type: "patch" | "file";
|
|
3040
|
-
content: string;
|
|
3041
3070
|
filePath: string;
|
|
3071
|
+
content: string;
|
|
3042
3072
|
}[];
|
|
3043
3073
|
addedFileVersions: {
|
|
3044
3074
|
path: string;
|
|
@@ -3046,8 +3076,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3046
3076
|
}[];
|
|
3047
3077
|
resetFileVersions: boolean;
|
|
3048
3078
|
data: {
|
|
3049
|
-
id: string;
|
|
3050
3079
|
name: string;
|
|
3080
|
+
id: string;
|
|
3051
3081
|
input: Record<string, any>;
|
|
3052
3082
|
};
|
|
3053
3083
|
} | {
|
|
@@ -3062,8 +3092,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3062
3092
|
type: "auth-result";
|
|
3063
3093
|
message: string;
|
|
3064
3094
|
user?: {
|
|
3065
|
-
id: string;
|
|
3066
3095
|
name: string | null;
|
|
3096
|
+
id: string;
|
|
3067
3097
|
fingerprintId: string;
|
|
3068
3098
|
authToken: string;
|
|
3069
3099
|
email: string;
|