codecane 1.0.150 → 1.0.152
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/chat-storage.d.ts +4 -2
- package/dist/chat-storage.js +46 -74
- package/dist/chat-storage.js.map +1 -1
- package/dist/cli.js +30 -10
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -4
- package/dist/client.js +17 -17
- package/dist/client.js.map +1 -1
- package/dist/code-map/languages.js +17 -7
- package/dist/code-map/languages.js.map +1 -1
- package/dist/code-map/parse.js +17 -7
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +80 -89
- package/dist/common/actions.js +0 -4
- package/dist/common/actions.js.map +1 -1
- package/dist/common/browser-actions.d.ts +183 -132
- package/dist/common/browser-actions.js +11 -14
- package/dist/common/browser-actions.js.map +1 -1
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +7 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/util/constants.d.ts +1 -0
- package/dist/common/util/constants.js +7 -0
- package/dist/common/util/constants.js.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/helpers.d.ts +1 -0
- package/dist/common/util/helpers.js +6 -0
- package/dist/common/util/helpers.js.map +1 -0
- package/dist/common/util/messages.d.ts +1 -0
- package/dist/common/util/messages.js +7 -0
- package/dist/common/util/messages.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +156 -186
- package/dist/create-template-project.d.ts +1 -0
- package/dist/create-template-project.js +117 -0
- package/dist/create-template-project.js.map +1 -0
- package/dist/index.js +42 -4
- package/dist/index.js.map +1 -1
- package/dist/menu.js +17 -7
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +0 -4
- package/dist/project-files.js +20 -27
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.d.ts +0 -1
- package/dist/tool-handlers.js +6 -67
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/terminal.d.ts +3 -1
- package/dist/utils/terminal.js +199 -142
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +3 -4
- package/dist/__tests__/browser-runner.test.d.ts +0 -1
- package/dist/__tests__/browser-runner.test.js +0 -15
- package/dist/__tests__/browser-runner.test.js.map +0 -1
- package/dist/__tests__/tool-handlers.test.d.ts +0 -1
- package/dist/__tests__/tool-handlers.test.js +0 -33
- package/dist/__tests__/tool-handlers.test.js.map +0 -1
- package/dist/browser-runner.d.ts +0 -33
- package/dist/browser-runner.js +0 -599
- package/dist/browser-runner.js.map +0 -1
- package/dist/common/advanced-analyzer.d.ts +0 -19
- package/dist/common/advanced-analyzer.js +0 -140
- package/dist/common/advanced-analyzer.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
|
-
name: string;
|
|
99
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
100
|
input: Record<string, any>;
|
|
101
101
|
cache_control?: {
|
|
102
102
|
type: "ephemeral";
|
|
103
103
|
} | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
type: "tool_use";
|
|
106
|
-
name: string;
|
|
107
106
|
id: string;
|
|
107
|
+
name: string;
|
|
108
108
|
input: Record<string, any>;
|
|
109
109
|
cache_control?: {
|
|
110
110
|
type: "ephemeral";
|
|
@@ -122,15 +122,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
type: "tool_result";
|
|
125
|
-
content: string;
|
|
126
125
|
tool_use_id: string;
|
|
126
|
+
content: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
type: "tool_result";
|
|
132
|
-
content: string;
|
|
133
132
|
tool_use_id: string;
|
|
133
|
+
content: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
136
136
|
} | undefined;
|
|
@@ -144,16 +144,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
144
144
|
} | undefined;
|
|
145
145
|
} | {
|
|
146
146
|
type: "tool_use";
|
|
147
|
-
name: string;
|
|
148
147
|
id: string;
|
|
148
|
+
name: 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
|
-
content: string;
|
|
156
155
|
tool_use_id: string;
|
|
156
|
+
content: string;
|
|
157
157
|
cache_control?: {
|
|
158
158
|
type: "ephemeral";
|
|
159
159
|
} | undefined;
|
|
@@ -168,16 +168,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
168
168
|
} | undefined;
|
|
169
169
|
} | {
|
|
170
170
|
type: "tool_use";
|
|
171
|
-
name: string;
|
|
172
171
|
id: string;
|
|
172
|
+
name: 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
|
-
content: string;
|
|
180
179
|
tool_use_id: string;
|
|
180
|
+
content: 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
|
-
status: string;
|
|
200
199
|
diff: string;
|
|
200
|
+
status: string;
|
|
201
201
|
diffCached: string;
|
|
202
202
|
lastCommitMessages: string;
|
|
203
203
|
}, {
|
|
204
|
-
status: string;
|
|
205
204
|
diff: string;
|
|
205
|
+
status: 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
|
-
status: string;
|
|
250
249
|
diff: string;
|
|
250
|
+
status: 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
|
-
status: string;
|
|
276
275
|
diff: string;
|
|
276
|
+
status: 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
|
-
filePath: string;
|
|
303
302
|
content: string;
|
|
303
|
+
filePath: string;
|
|
304
304
|
}, {
|
|
305
305
|
type: "patch" | "file";
|
|
306
|
-
filePath: string;
|
|
307
306
|
content: string;
|
|
307
|
+
filePath: 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
|
-
name: string;
|
|
324
323
|
id: string;
|
|
324
|
+
name: 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
|
-
content: string;
|
|
332
331
|
tool_use_id: string;
|
|
332
|
+
content: 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
|
-
status: string;
|
|
346
345
|
diff: string;
|
|
346
|
+
status: 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
|
-
filePath: string;
|
|
369
368
|
content: string;
|
|
369
|
+
filePath: string;
|
|
370
370
|
}[];
|
|
371
|
-
costMode: "
|
|
371
|
+
costMode: "lite" | "normal" | "max";
|
|
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
|
-
name: string;
|
|
387
386
|
id: string;
|
|
387
|
+
name: 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
|
-
content: string;
|
|
395
394
|
tool_use_id: string;
|
|
395
|
+
content: 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
|
-
status: string;
|
|
409
408
|
diff: string;
|
|
409
|
+
status: 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
|
-
filePath: string;
|
|
432
431
|
content: string;
|
|
432
|
+
filePath: string;
|
|
433
433
|
}[];
|
|
434
434
|
authToken?: string | undefined;
|
|
435
|
-
costMode?: "
|
|
435
|
+
costMode?: "lite" | "normal" | "max" | 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
|
-
status: string;
|
|
462
461
|
diff: string;
|
|
462
|
+
status: string;
|
|
463
463
|
diffCached: string;
|
|
464
464
|
lastCommitMessages: string;
|
|
465
465
|
}, {
|
|
466
|
-
status: string;
|
|
467
466
|
diff: string;
|
|
467
|
+
status: 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
|
-
status: string;
|
|
512
511
|
diff: string;
|
|
512
|
+
status: 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
|
-
status: string;
|
|
538
537
|
diff: string;
|
|
538
|
+
status: 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
|
-
status: string;
|
|
568
567
|
diff: string;
|
|
568
|
+
status: 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
|
-
status: string;
|
|
599
598
|
diff: string;
|
|
599
|
+
status: 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
|
-
name: string;
|
|
706
705
|
id: string;
|
|
706
|
+
name: 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
|
-
content: string;
|
|
714
713
|
tool_use_id: string;
|
|
714
|
+
content: 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
|
-
status: string;
|
|
728
727
|
diff: string;
|
|
728
|
+
status: 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
|
-
filePath: string;
|
|
751
750
|
content: string;
|
|
751
|
+
filePath: string;
|
|
752
752
|
}[];
|
|
753
|
-
costMode: "
|
|
753
|
+
costMode: "lite" | "normal" | "max";
|
|
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
|
-
status: string;
|
|
768
767
|
diff: string;
|
|
768
|
+
status: 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
|
-
name: string;
|
|
830
829
|
id: string;
|
|
830
|
+
name: 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
|
-
content: string;
|
|
838
837
|
tool_use_id: string;
|
|
838
|
+
content: 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
|
-
status: string;
|
|
852
851
|
diff: string;
|
|
852
|
+
status: 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
|
-
filePath: string;
|
|
875
874
|
content: string;
|
|
875
|
+
filePath: string;
|
|
876
876
|
}[];
|
|
877
877
|
authToken?: string | undefined;
|
|
878
|
-
costMode?: "
|
|
878
|
+
costMode?: "lite" | "normal" | "max" | 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
|
-
status: string;
|
|
892
891
|
diff: string;
|
|
892
|
+
status: 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
|
-
name: string;
|
|
1032
1031
|
id: string;
|
|
1032
|
+
name: 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
|
-
name: string;
|
|
1040
1039
|
id: string;
|
|
1040
|
+
name: 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
|
-
content: string;
|
|
1059
1058
|
tool_use_id: string;
|
|
1059
|
+
content: string;
|
|
1060
1060
|
cache_control?: {
|
|
1061
1061
|
type: "ephemeral";
|
|
1062
1062
|
} | undefined;
|
|
1063
1063
|
}, {
|
|
1064
1064
|
type: "tool_result";
|
|
1065
|
-
content: string;
|
|
1066
1065
|
tool_use_id: string;
|
|
1066
|
+
content: 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
|
-
name: string;
|
|
1081
1080
|
id: string;
|
|
1081
|
+
name: 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
|
-
content: string;
|
|
1089
1088
|
tool_use_id: string;
|
|
1089
|
+
content: 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
|
-
name: string;
|
|
1105
1104
|
id: string;
|
|
1105
|
+
name: 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
|
-
content: string;
|
|
1113
1112
|
tool_use_id: string;
|
|
1113
|
+
content: 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
|
-
status: string;
|
|
1133
1132
|
diff: string;
|
|
1133
|
+
status: string;
|
|
1134
1134
|
diffCached: string;
|
|
1135
1135
|
lastCommitMessages: string;
|
|
1136
1136
|
}, {
|
|
1137
|
-
status: string;
|
|
1138
1137
|
diff: string;
|
|
1138
|
+
status: 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
|
-
status: string;
|
|
1183
1182
|
diff: string;
|
|
1183
|
+
status: 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
|
-
status: string;
|
|
1209
1208
|
diff: string;
|
|
1209
|
+
status: 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
|
-
filePath: string;
|
|
1236
1235
|
content: string;
|
|
1236
|
+
filePath: string;
|
|
1237
1237
|
}, {
|
|
1238
1238
|
type: "patch" | "file";
|
|
1239
|
-
filePath: string;
|
|
1240
1239
|
content: string;
|
|
1240
|
+
filePath: 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
|
-
name: string;
|
|
1257
1256
|
id: string;
|
|
1257
|
+
name: 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
|
-
content: string;
|
|
1265
1264
|
tool_use_id: string;
|
|
1265
|
+
content: 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
|
-
status: string;
|
|
1279
1278
|
diff: string;
|
|
1279
|
+
status: 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
|
-
filePath: string;
|
|
1302
1301
|
content: string;
|
|
1302
|
+
filePath: string;
|
|
1303
1303
|
}[];
|
|
1304
|
-
costMode: "
|
|
1304
|
+
costMode: "lite" | "normal" | "max";
|
|
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
|
-
name: string;
|
|
1320
1319
|
id: string;
|
|
1320
|
+
name: 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
|
-
content: string;
|
|
1328
1327
|
tool_use_id: string;
|
|
1328
|
+
content: 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
|
-
status: string;
|
|
1342
1341
|
diff: string;
|
|
1342
|
+
status: 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
|
-
filePath: string;
|
|
1365
1364
|
content: string;
|
|
1365
|
+
filePath: string;
|
|
1366
1366
|
}[];
|
|
1367
1367
|
authToken?: string | undefined;
|
|
1368
|
-
costMode?: "
|
|
1368
|
+
costMode?: "lite" | "normal" | "max" | 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
|
-
status: string;
|
|
1395
1394
|
diff: string;
|
|
1395
|
+
status: string;
|
|
1396
1396
|
diffCached: string;
|
|
1397
1397
|
lastCommitMessages: string;
|
|
1398
1398
|
}, {
|
|
1399
|
-
status: string;
|
|
1400
1399
|
diff: string;
|
|
1400
|
+
status: 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
|
-
status: string;
|
|
1445
1444
|
diff: string;
|
|
1445
|
+
status: 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
|
-
status: string;
|
|
1471
1470
|
diff: string;
|
|
1471
|
+
status: 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
|
-
status: string;
|
|
1501
1500
|
diff: string;
|
|
1501
|
+
status: 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
|
-
status: string;
|
|
1532
1531
|
diff: string;
|
|
1532
|
+
status: 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
|
-
name: string;
|
|
1639
1638
|
id: string;
|
|
1639
|
+
name: 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
|
-
content: string;
|
|
1647
1646
|
tool_use_id: string;
|
|
1647
|
+
content: 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
|
-
status: string;
|
|
1661
1660
|
diff: string;
|
|
1661
|
+
status: 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
|
-
filePath: string;
|
|
1684
1683
|
content: string;
|
|
1684
|
+
filePath: string;
|
|
1685
1685
|
}[];
|
|
1686
|
-
costMode: "
|
|
1686
|
+
costMode: "lite" | "normal" | "max";
|
|
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
|
-
status: string;
|
|
1701
1700
|
diff: string;
|
|
1701
|
+
status: 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
|
-
name: string;
|
|
1763
1762
|
id: string;
|
|
1763
|
+
name: 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
|
-
content: string;
|
|
1771
1770
|
tool_use_id: string;
|
|
1771
|
+
content: 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
|
-
status: string;
|
|
1785
1784
|
diff: string;
|
|
1785
|
+
status: 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
|
-
filePath: string;
|
|
1808
1807
|
content: string;
|
|
1808
|
+
filePath: string;
|
|
1809
1809
|
}[];
|
|
1810
1810
|
authToken?: string | undefined;
|
|
1811
|
-
costMode?: "
|
|
1811
|
+
costMode?: "lite" | "normal" | "max" | 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
|
-
status: string;
|
|
1825
1824
|
diff: string;
|
|
1825
|
+
status: string;
|
|
1826
1826
|
diffCached: string;
|
|
1827
1827
|
lastCommitMessages: string;
|
|
1828
1828
|
};
|
|
@@ -1891,15 +1891,6 @@ 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<{
|
|
1903
1894
|
type: z.ZodLiteral<"response-chunk">;
|
|
1904
1895
|
userInputId: z.ZodString;
|
|
1905
1896
|
chunk: z.ZodString;
|
|
@@ -1921,12 +1912,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1921
1912
|
content: z.ZodString;
|
|
1922
1913
|
}, "strip", z.ZodTypeAny, {
|
|
1923
1914
|
type: "patch" | "file";
|
|
1924
|
-
filePath: string;
|
|
1925
1915
|
content: string;
|
|
1916
|
+
filePath: string;
|
|
1926
1917
|
}, {
|
|
1927
1918
|
type: "patch" | "file";
|
|
1928
|
-
filePath: string;
|
|
1929
1919
|
content: string;
|
|
1920
|
+
filePath: string;
|
|
1930
1921
|
}>, "many">;
|
|
1931
1922
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1932
1923
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -1934,12 +1925,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1934
1925
|
content: z.ZodString;
|
|
1935
1926
|
}, "strip", z.ZodTypeAny, {
|
|
1936
1927
|
type: "patch" | "file";
|
|
1937
|
-
filePath: string;
|
|
1938
1928
|
content: string;
|
|
1929
|
+
filePath: string;
|
|
1939
1930
|
}, {
|
|
1940
1931
|
type: "patch" | "file";
|
|
1941
|
-
filePath: string;
|
|
1942
1932
|
content: string;
|
|
1933
|
+
filePath: string;
|
|
1943
1934
|
}>, "many">;
|
|
1944
1935
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1945
1936
|
path: z.ZodString;
|
|
@@ -1964,14 +1955,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1964
1955
|
userInputId: string;
|
|
1965
1956
|
changesAlreadyApplied: {
|
|
1966
1957
|
type: "patch" | "file";
|
|
1967
|
-
filePath: string;
|
|
1968
1958
|
content: string;
|
|
1959
|
+
filePath: string;
|
|
1969
1960
|
}[];
|
|
1970
1961
|
response: string;
|
|
1971
1962
|
changes: {
|
|
1972
1963
|
type: "patch" | "file";
|
|
1973
|
-
filePath: string;
|
|
1974
1964
|
content: string;
|
|
1965
|
+
filePath: string;
|
|
1975
1966
|
}[];
|
|
1976
1967
|
addedFileVersions: {
|
|
1977
1968
|
path: string;
|
|
@@ -1989,14 +1980,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1989
1980
|
userInputId: string;
|
|
1990
1981
|
changesAlreadyApplied: {
|
|
1991
1982
|
type: "patch" | "file";
|
|
1992
|
-
filePath: string;
|
|
1993
1983
|
content: string;
|
|
1984
|
+
filePath: string;
|
|
1994
1985
|
}[];
|
|
1995
1986
|
response: string;
|
|
1996
1987
|
changes: {
|
|
1997
1988
|
type: "patch" | "file";
|
|
1998
|
-
filePath: string;
|
|
1999
1989
|
content: string;
|
|
1990
|
+
filePath: string;
|
|
2000
1991
|
}[];
|
|
2001
1992
|
addedFileVersions: {
|
|
2002
1993
|
path: string;
|
|
@@ -2027,12 +2018,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2027
2018
|
id: z.ZodString;
|
|
2028
2019
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2029
2020
|
}, "strip", z.ZodTypeAny, {
|
|
2030
|
-
name: string;
|
|
2031
2021
|
id: string;
|
|
2022
|
+
name: string;
|
|
2032
2023
|
input: Record<string, any>;
|
|
2033
2024
|
}, {
|
|
2034
|
-
name: string;
|
|
2035
2025
|
id: string;
|
|
2026
|
+
name: string;
|
|
2036
2027
|
input: Record<string, any>;
|
|
2037
2028
|
}>;
|
|
2038
2029
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2041,12 +2032,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2041
2032
|
content: z.ZodString;
|
|
2042
2033
|
}, "strip", z.ZodTypeAny, {
|
|
2043
2034
|
type: "patch" | "file";
|
|
2044
|
-
filePath: string;
|
|
2045
2035
|
content: string;
|
|
2036
|
+
filePath: string;
|
|
2046
2037
|
}, {
|
|
2047
2038
|
type: "patch" | "file";
|
|
2048
|
-
filePath: string;
|
|
2049
2039
|
content: string;
|
|
2040
|
+
filePath: string;
|
|
2050
2041
|
}>, "many">;
|
|
2051
2042
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2052
2043
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2054,12 +2045,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2054
2045
|
content: z.ZodString;
|
|
2055
2046
|
}, "strip", z.ZodTypeAny, {
|
|
2056
2047
|
type: "patch" | "file";
|
|
2057
|
-
filePath: string;
|
|
2058
2048
|
content: string;
|
|
2049
|
+
filePath: string;
|
|
2059
2050
|
}, {
|
|
2060
2051
|
type: "patch" | "file";
|
|
2061
|
-
filePath: string;
|
|
2062
2052
|
content: string;
|
|
2053
|
+
filePath: string;
|
|
2063
2054
|
}>, "many">;
|
|
2064
2055
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2065
2056
|
path: z.ZodString;
|
|
@@ -2077,14 +2068,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2077
2068
|
userInputId: string;
|
|
2078
2069
|
changesAlreadyApplied: {
|
|
2079
2070
|
type: "patch" | "file";
|
|
2080
|
-
filePath: string;
|
|
2081
2071
|
content: string;
|
|
2072
|
+
filePath: string;
|
|
2082
2073
|
}[];
|
|
2083
2074
|
response: string;
|
|
2084
2075
|
changes: {
|
|
2085
2076
|
type: "patch" | "file";
|
|
2086
|
-
filePath: string;
|
|
2087
2077
|
content: string;
|
|
2078
|
+
filePath: string;
|
|
2088
2079
|
}[];
|
|
2089
2080
|
addedFileVersions: {
|
|
2090
2081
|
path: string;
|
|
@@ -2092,8 +2083,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2092
2083
|
}[];
|
|
2093
2084
|
resetFileVersions: boolean;
|
|
2094
2085
|
data: {
|
|
2095
|
-
name: string;
|
|
2096
2086
|
id: string;
|
|
2087
|
+
name: string;
|
|
2097
2088
|
input: Record<string, any>;
|
|
2098
2089
|
};
|
|
2099
2090
|
}, {
|
|
@@ -2101,14 +2092,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2101
2092
|
userInputId: string;
|
|
2102
2093
|
changesAlreadyApplied: {
|
|
2103
2094
|
type: "patch" | "file";
|
|
2104
|
-
filePath: string;
|
|
2105
2095
|
content: string;
|
|
2096
|
+
filePath: string;
|
|
2106
2097
|
}[];
|
|
2107
2098
|
response: string;
|
|
2108
2099
|
changes: {
|
|
2109
2100
|
type: "patch" | "file";
|
|
2110
|
-
filePath: string;
|
|
2111
2101
|
content: string;
|
|
2102
|
+
filePath: string;
|
|
2112
2103
|
}[];
|
|
2113
2104
|
addedFileVersions: {
|
|
2114
2105
|
path: string;
|
|
@@ -2116,8 +2107,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2116
2107
|
}[];
|
|
2117
2108
|
resetFileVersions: boolean;
|
|
2118
2109
|
data: {
|
|
2119
|
-
name: string;
|
|
2120
2110
|
id: string;
|
|
2111
|
+
name: string;
|
|
2121
2112
|
input: Record<string, any>;
|
|
2122
2113
|
};
|
|
2123
2114
|
}>, z.ZodObject<{
|
|
@@ -2180,15 +2171,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2180
2171
|
fingerprintId: z.ZodString;
|
|
2181
2172
|
fingerprintHash: z.ZodString;
|
|
2182
2173
|
}, "strip", z.ZodTypeAny, {
|
|
2183
|
-
name: string | null;
|
|
2184
2174
|
id: string;
|
|
2175
|
+
name: string | null;
|
|
2185
2176
|
fingerprintId: string;
|
|
2186
2177
|
authToken: string;
|
|
2187
2178
|
email: string;
|
|
2188
2179
|
fingerprintHash: string;
|
|
2189
2180
|
}, {
|
|
2190
|
-
name: string | null;
|
|
2191
2181
|
id: string;
|
|
2182
|
+
name: string | null;
|
|
2192
2183
|
fingerprintId: string;
|
|
2193
2184
|
authToken: string;
|
|
2194
2185
|
email: string;
|
|
@@ -2199,8 +2190,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2199
2190
|
type: "auth-result";
|
|
2200
2191
|
message: string;
|
|
2201
2192
|
user?: {
|
|
2202
|
-
name: string | null;
|
|
2203
2193
|
id: string;
|
|
2194
|
+
name: string | null;
|
|
2204
2195
|
fingerprintId: string;
|
|
2205
2196
|
authToken: string;
|
|
2206
2197
|
email: string;
|
|
@@ -2210,8 +2201,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2210
2201
|
type: "auth-result";
|
|
2211
2202
|
message: string;
|
|
2212
2203
|
user?: {
|
|
2213
|
-
name: string | null;
|
|
2214
2204
|
id: string;
|
|
2205
|
+
name: string | null;
|
|
2215
2206
|
fingerprintId: string;
|
|
2216
2207
|
authToken: string;
|
|
2217
2208
|
email: string;
|
|
@@ -2298,14 +2289,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2298
2289
|
userInputId: string;
|
|
2299
2290
|
changesAlreadyApplied: {
|
|
2300
2291
|
type: "patch" | "file";
|
|
2301
|
-
filePath: string;
|
|
2302
2292
|
content: string;
|
|
2293
|
+
filePath: string;
|
|
2303
2294
|
}[];
|
|
2304
2295
|
response: string;
|
|
2305
2296
|
changes: {
|
|
2306
2297
|
type: "patch" | "file";
|
|
2307
|
-
filePath: string;
|
|
2308
2298
|
content: string;
|
|
2299
|
+
filePath: string;
|
|
2309
2300
|
}[];
|
|
2310
2301
|
addedFileVersions: {
|
|
2311
2302
|
path: string;
|
|
@@ -2318,9 +2309,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2318
2309
|
subscription_active?: boolean | undefined;
|
|
2319
2310
|
next_quota_reset?: Date | undefined;
|
|
2320
2311
|
session_credits_used?: number | undefined;
|
|
2321
|
-
} | {
|
|
2322
|
-
type: "read-files-response";
|
|
2323
|
-
files: Record<string, string | null>;
|
|
2324
2312
|
} | {
|
|
2325
2313
|
type: "response-chunk";
|
|
2326
2314
|
userInputId: string;
|
|
@@ -2333,14 +2321,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2333
2321
|
userInputId: string;
|
|
2334
2322
|
changesAlreadyApplied: {
|
|
2335
2323
|
type: "patch" | "file";
|
|
2336
|
-
filePath: string;
|
|
2337
2324
|
content: string;
|
|
2325
|
+
filePath: string;
|
|
2338
2326
|
}[];
|
|
2339
2327
|
response: string;
|
|
2340
2328
|
changes: {
|
|
2341
2329
|
type: "patch" | "file";
|
|
2342
|
-
filePath: string;
|
|
2343
2330
|
content: string;
|
|
2331
|
+
filePath: string;
|
|
2344
2332
|
}[];
|
|
2345
2333
|
addedFileVersions: {
|
|
2346
2334
|
path: string;
|
|
@@ -2348,8 +2336,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2348
2336
|
}[];
|
|
2349
2337
|
resetFileVersions: boolean;
|
|
2350
2338
|
data: {
|
|
2351
|
-
name: string;
|
|
2352
2339
|
id: string;
|
|
2340
|
+
name: string;
|
|
2353
2341
|
input: Record<string, any>;
|
|
2354
2342
|
};
|
|
2355
2343
|
} | {
|
|
@@ -2364,8 +2352,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2364
2352
|
type: "auth-result";
|
|
2365
2353
|
message: string;
|
|
2366
2354
|
user?: {
|
|
2367
|
-
name: string | null;
|
|
2368
2355
|
id: string;
|
|
2356
|
+
name: string | null;
|
|
2369
2357
|
fingerprintId: string;
|
|
2370
2358
|
authToken: string;
|
|
2371
2359
|
email: string;
|
|
@@ -2406,14 +2394,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2406
2394
|
userInputId: string;
|
|
2407
2395
|
changesAlreadyApplied: {
|
|
2408
2396
|
type: "patch" | "file";
|
|
2409
|
-
filePath: string;
|
|
2410
2397
|
content: string;
|
|
2398
|
+
filePath: string;
|
|
2411
2399
|
}[];
|
|
2412
2400
|
response: string;
|
|
2413
2401
|
changes: {
|
|
2414
2402
|
type: "patch" | "file";
|
|
2415
|
-
filePath: string;
|
|
2416
2403
|
content: string;
|
|
2404
|
+
filePath: string;
|
|
2417
2405
|
}[];
|
|
2418
2406
|
addedFileVersions: {
|
|
2419
2407
|
path: string;
|
|
@@ -2426,9 +2414,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2426
2414
|
subscription_active?: boolean | undefined;
|
|
2427
2415
|
next_quota_reset?: Date | undefined;
|
|
2428
2416
|
session_credits_used?: number | undefined;
|
|
2429
|
-
} | {
|
|
2430
|
-
type: "read-files-response";
|
|
2431
|
-
files: Record<string, string | null>;
|
|
2432
2417
|
} | {
|
|
2433
2418
|
type: "response-chunk";
|
|
2434
2419
|
userInputId: string;
|
|
@@ -2441,14 +2426,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2441
2426
|
userInputId: string;
|
|
2442
2427
|
changesAlreadyApplied: {
|
|
2443
2428
|
type: "patch" | "file";
|
|
2444
|
-
filePath: string;
|
|
2445
2429
|
content: string;
|
|
2430
|
+
filePath: string;
|
|
2446
2431
|
}[];
|
|
2447
2432
|
response: string;
|
|
2448
2433
|
changes: {
|
|
2449
2434
|
type: "patch" | "file";
|
|
2450
|
-
filePath: string;
|
|
2451
2435
|
content: string;
|
|
2436
|
+
filePath: string;
|
|
2452
2437
|
}[];
|
|
2453
2438
|
addedFileVersions: {
|
|
2454
2439
|
path: string;
|
|
@@ -2456,8 +2441,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2456
2441
|
}[];
|
|
2457
2442
|
resetFileVersions: boolean;
|
|
2458
2443
|
data: {
|
|
2459
|
-
name: string;
|
|
2460
2444
|
id: string;
|
|
2445
|
+
name: string;
|
|
2461
2446
|
input: Record<string, any>;
|
|
2462
2447
|
};
|
|
2463
2448
|
} | {
|
|
@@ -2472,8 +2457,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2472
2457
|
type: "auth-result";
|
|
2473
2458
|
message: string;
|
|
2474
2459
|
user?: {
|
|
2475
|
-
name: string | null;
|
|
2476
2460
|
id: string;
|
|
2461
|
+
name: string | null;
|
|
2477
2462
|
fingerprintId: string;
|
|
2478
2463
|
authToken: string;
|
|
2479
2464
|
email: string;
|
|
@@ -2511,15 +2496,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2511
2496
|
}>, z.ZodObject<{
|
|
2512
2497
|
type: z.ZodLiteral<"action">;
|
|
2513
2498
|
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<{
|
|
2523
2499
|
type: z.ZodLiteral<"response-chunk">;
|
|
2524
2500
|
userInputId: z.ZodString;
|
|
2525
2501
|
chunk: z.ZodString;
|
|
@@ -2541,12 +2517,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2541
2517
|
content: z.ZodString;
|
|
2542
2518
|
}, "strip", z.ZodTypeAny, {
|
|
2543
2519
|
type: "patch" | "file";
|
|
2544
|
-
filePath: string;
|
|
2545
2520
|
content: string;
|
|
2521
|
+
filePath: string;
|
|
2546
2522
|
}, {
|
|
2547
2523
|
type: "patch" | "file";
|
|
2548
|
-
filePath: string;
|
|
2549
2524
|
content: string;
|
|
2525
|
+
filePath: string;
|
|
2550
2526
|
}>, "many">;
|
|
2551
2527
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2552
2528
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2554,12 +2530,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2554
2530
|
content: z.ZodString;
|
|
2555
2531
|
}, "strip", z.ZodTypeAny, {
|
|
2556
2532
|
type: "patch" | "file";
|
|
2557
|
-
filePath: string;
|
|
2558
2533
|
content: string;
|
|
2534
|
+
filePath: string;
|
|
2559
2535
|
}, {
|
|
2560
2536
|
type: "patch" | "file";
|
|
2561
|
-
filePath: string;
|
|
2562
2537
|
content: string;
|
|
2538
|
+
filePath: string;
|
|
2563
2539
|
}>, "many">;
|
|
2564
2540
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2565
2541
|
path: z.ZodString;
|
|
@@ -2584,14 +2560,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2584
2560
|
userInputId: string;
|
|
2585
2561
|
changesAlreadyApplied: {
|
|
2586
2562
|
type: "patch" | "file";
|
|
2587
|
-
filePath: string;
|
|
2588
2563
|
content: string;
|
|
2564
|
+
filePath: string;
|
|
2589
2565
|
}[];
|
|
2590
2566
|
response: string;
|
|
2591
2567
|
changes: {
|
|
2592
2568
|
type: "patch" | "file";
|
|
2593
|
-
filePath: string;
|
|
2594
2569
|
content: string;
|
|
2570
|
+
filePath: string;
|
|
2595
2571
|
}[];
|
|
2596
2572
|
addedFileVersions: {
|
|
2597
2573
|
path: string;
|
|
@@ -2609,14 +2585,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2609
2585
|
userInputId: string;
|
|
2610
2586
|
changesAlreadyApplied: {
|
|
2611
2587
|
type: "patch" | "file";
|
|
2612
|
-
filePath: string;
|
|
2613
2588
|
content: string;
|
|
2589
|
+
filePath: string;
|
|
2614
2590
|
}[];
|
|
2615
2591
|
response: string;
|
|
2616
2592
|
changes: {
|
|
2617
2593
|
type: "patch" | "file";
|
|
2618
|
-
filePath: string;
|
|
2619
2594
|
content: string;
|
|
2595
|
+
filePath: string;
|
|
2620
2596
|
}[];
|
|
2621
2597
|
addedFileVersions: {
|
|
2622
2598
|
path: string;
|
|
@@ -2647,12 +2623,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2647
2623
|
id: z.ZodString;
|
|
2648
2624
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2649
2625
|
}, "strip", z.ZodTypeAny, {
|
|
2650
|
-
name: string;
|
|
2651
2626
|
id: string;
|
|
2627
|
+
name: string;
|
|
2652
2628
|
input: Record<string, any>;
|
|
2653
2629
|
}, {
|
|
2654
|
-
name: string;
|
|
2655
2630
|
id: string;
|
|
2631
|
+
name: string;
|
|
2656
2632
|
input: Record<string, any>;
|
|
2657
2633
|
}>;
|
|
2658
2634
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2661,12 +2637,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2661
2637
|
content: z.ZodString;
|
|
2662
2638
|
}, "strip", z.ZodTypeAny, {
|
|
2663
2639
|
type: "patch" | "file";
|
|
2664
|
-
filePath: string;
|
|
2665
2640
|
content: string;
|
|
2641
|
+
filePath: string;
|
|
2666
2642
|
}, {
|
|
2667
2643
|
type: "patch" | "file";
|
|
2668
|
-
filePath: string;
|
|
2669
2644
|
content: string;
|
|
2645
|
+
filePath: string;
|
|
2670
2646
|
}>, "many">;
|
|
2671
2647
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2672
2648
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2674,12 +2650,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2674
2650
|
content: z.ZodString;
|
|
2675
2651
|
}, "strip", z.ZodTypeAny, {
|
|
2676
2652
|
type: "patch" | "file";
|
|
2677
|
-
filePath: string;
|
|
2678
2653
|
content: string;
|
|
2654
|
+
filePath: string;
|
|
2679
2655
|
}, {
|
|
2680
2656
|
type: "patch" | "file";
|
|
2681
|
-
filePath: string;
|
|
2682
2657
|
content: string;
|
|
2658
|
+
filePath: string;
|
|
2683
2659
|
}>, "many">;
|
|
2684
2660
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2685
2661
|
path: z.ZodString;
|
|
@@ -2697,14 +2673,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2697
2673
|
userInputId: string;
|
|
2698
2674
|
changesAlreadyApplied: {
|
|
2699
2675
|
type: "patch" | "file";
|
|
2700
|
-
filePath: string;
|
|
2701
2676
|
content: string;
|
|
2677
|
+
filePath: string;
|
|
2702
2678
|
}[];
|
|
2703
2679
|
response: string;
|
|
2704
2680
|
changes: {
|
|
2705
2681
|
type: "patch" | "file";
|
|
2706
|
-
filePath: string;
|
|
2707
2682
|
content: string;
|
|
2683
|
+
filePath: string;
|
|
2708
2684
|
}[];
|
|
2709
2685
|
addedFileVersions: {
|
|
2710
2686
|
path: string;
|
|
@@ -2712,8 +2688,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2712
2688
|
}[];
|
|
2713
2689
|
resetFileVersions: boolean;
|
|
2714
2690
|
data: {
|
|
2715
|
-
name: string;
|
|
2716
2691
|
id: string;
|
|
2692
|
+
name: string;
|
|
2717
2693
|
input: Record<string, any>;
|
|
2718
2694
|
};
|
|
2719
2695
|
}, {
|
|
@@ -2721,14 +2697,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2721
2697
|
userInputId: string;
|
|
2722
2698
|
changesAlreadyApplied: {
|
|
2723
2699
|
type: "patch" | "file";
|
|
2724
|
-
filePath: string;
|
|
2725
2700
|
content: string;
|
|
2701
|
+
filePath: string;
|
|
2726
2702
|
}[];
|
|
2727
2703
|
response: string;
|
|
2728
2704
|
changes: {
|
|
2729
2705
|
type: "patch" | "file";
|
|
2730
|
-
filePath: string;
|
|
2731
2706
|
content: string;
|
|
2707
|
+
filePath: string;
|
|
2732
2708
|
}[];
|
|
2733
2709
|
addedFileVersions: {
|
|
2734
2710
|
path: string;
|
|
@@ -2736,8 +2712,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2736
2712
|
}[];
|
|
2737
2713
|
resetFileVersions: boolean;
|
|
2738
2714
|
data: {
|
|
2739
|
-
name: string;
|
|
2740
2715
|
id: string;
|
|
2716
|
+
name: string;
|
|
2741
2717
|
input: Record<string, any>;
|
|
2742
2718
|
};
|
|
2743
2719
|
}>, z.ZodObject<{
|
|
@@ -2800,15 +2776,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2800
2776
|
fingerprintId: z.ZodString;
|
|
2801
2777
|
fingerprintHash: z.ZodString;
|
|
2802
2778
|
}, "strip", z.ZodTypeAny, {
|
|
2803
|
-
name: string | null;
|
|
2804
2779
|
id: string;
|
|
2780
|
+
name: string | null;
|
|
2805
2781
|
fingerprintId: string;
|
|
2806
2782
|
authToken: string;
|
|
2807
2783
|
email: string;
|
|
2808
2784
|
fingerprintHash: string;
|
|
2809
2785
|
}, {
|
|
2810
|
-
name: string | null;
|
|
2811
2786
|
id: string;
|
|
2787
|
+
name: string | null;
|
|
2812
2788
|
fingerprintId: string;
|
|
2813
2789
|
authToken: string;
|
|
2814
2790
|
email: string;
|
|
@@ -2819,8 +2795,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2819
2795
|
type: "auth-result";
|
|
2820
2796
|
message: string;
|
|
2821
2797
|
user?: {
|
|
2822
|
-
name: string | null;
|
|
2823
2798
|
id: string;
|
|
2799
|
+
name: string | null;
|
|
2824
2800
|
fingerprintId: string;
|
|
2825
2801
|
authToken: string;
|
|
2826
2802
|
email: string;
|
|
@@ -2830,8 +2806,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2830
2806
|
type: "auth-result";
|
|
2831
2807
|
message: string;
|
|
2832
2808
|
user?: {
|
|
2833
|
-
name: string | null;
|
|
2834
2809
|
id: string;
|
|
2810
|
+
name: string | null;
|
|
2835
2811
|
fingerprintId: string;
|
|
2836
2812
|
authToken: string;
|
|
2837
2813
|
email: string;
|
|
@@ -2918,14 +2894,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2918
2894
|
userInputId: string;
|
|
2919
2895
|
changesAlreadyApplied: {
|
|
2920
2896
|
type: "patch" | "file";
|
|
2921
|
-
filePath: string;
|
|
2922
2897
|
content: string;
|
|
2898
|
+
filePath: string;
|
|
2923
2899
|
}[];
|
|
2924
2900
|
response: string;
|
|
2925
2901
|
changes: {
|
|
2926
2902
|
type: "patch" | "file";
|
|
2927
|
-
filePath: string;
|
|
2928
2903
|
content: string;
|
|
2904
|
+
filePath: string;
|
|
2929
2905
|
}[];
|
|
2930
2906
|
addedFileVersions: {
|
|
2931
2907
|
path: string;
|
|
@@ -2938,9 +2914,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2938
2914
|
subscription_active?: boolean | undefined;
|
|
2939
2915
|
next_quota_reset?: Date | undefined;
|
|
2940
2916
|
session_credits_used?: number | undefined;
|
|
2941
|
-
} | {
|
|
2942
|
-
type: "read-files-response";
|
|
2943
|
-
files: Record<string, string | null>;
|
|
2944
2917
|
} | {
|
|
2945
2918
|
type: "response-chunk";
|
|
2946
2919
|
userInputId: string;
|
|
@@ -2953,14 +2926,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2953
2926
|
userInputId: string;
|
|
2954
2927
|
changesAlreadyApplied: {
|
|
2955
2928
|
type: "patch" | "file";
|
|
2956
|
-
filePath: string;
|
|
2957
2929
|
content: string;
|
|
2930
|
+
filePath: string;
|
|
2958
2931
|
}[];
|
|
2959
2932
|
response: string;
|
|
2960
2933
|
changes: {
|
|
2961
2934
|
type: "patch" | "file";
|
|
2962
|
-
filePath: string;
|
|
2963
2935
|
content: string;
|
|
2936
|
+
filePath: string;
|
|
2964
2937
|
}[];
|
|
2965
2938
|
addedFileVersions: {
|
|
2966
2939
|
path: string;
|
|
@@ -2968,8 +2941,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2968
2941
|
}[];
|
|
2969
2942
|
resetFileVersions: boolean;
|
|
2970
2943
|
data: {
|
|
2971
|
-
name: string;
|
|
2972
2944
|
id: string;
|
|
2945
|
+
name: string;
|
|
2973
2946
|
input: Record<string, any>;
|
|
2974
2947
|
};
|
|
2975
2948
|
} | {
|
|
@@ -2984,8 +2957,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2984
2957
|
type: "auth-result";
|
|
2985
2958
|
message: string;
|
|
2986
2959
|
user?: {
|
|
2987
|
-
name: string | null;
|
|
2988
2960
|
id: string;
|
|
2961
|
+
name: string | null;
|
|
2989
2962
|
fingerprintId: string;
|
|
2990
2963
|
authToken: string;
|
|
2991
2964
|
email: string;
|
|
@@ -3026,14 +2999,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3026
2999
|
userInputId: string;
|
|
3027
3000
|
changesAlreadyApplied: {
|
|
3028
3001
|
type: "patch" | "file";
|
|
3029
|
-
filePath: string;
|
|
3030
3002
|
content: string;
|
|
3003
|
+
filePath: string;
|
|
3031
3004
|
}[];
|
|
3032
3005
|
response: string;
|
|
3033
3006
|
changes: {
|
|
3034
3007
|
type: "patch" | "file";
|
|
3035
|
-
filePath: string;
|
|
3036
3008
|
content: string;
|
|
3009
|
+
filePath: string;
|
|
3037
3010
|
}[];
|
|
3038
3011
|
addedFileVersions: {
|
|
3039
3012
|
path: string;
|
|
@@ -3046,9 +3019,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3046
3019
|
subscription_active?: boolean | undefined;
|
|
3047
3020
|
next_quota_reset?: Date | undefined;
|
|
3048
3021
|
session_credits_used?: number | undefined;
|
|
3049
|
-
} | {
|
|
3050
|
-
type: "read-files-response";
|
|
3051
|
-
files: Record<string, string | null>;
|
|
3052
3022
|
} | {
|
|
3053
3023
|
type: "response-chunk";
|
|
3054
3024
|
userInputId: string;
|
|
@@ -3061,14 +3031,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3061
3031
|
userInputId: string;
|
|
3062
3032
|
changesAlreadyApplied: {
|
|
3063
3033
|
type: "patch" | "file";
|
|
3064
|
-
filePath: string;
|
|
3065
3034
|
content: string;
|
|
3035
|
+
filePath: string;
|
|
3066
3036
|
}[];
|
|
3067
3037
|
response: string;
|
|
3068
3038
|
changes: {
|
|
3069
3039
|
type: "patch" | "file";
|
|
3070
|
-
filePath: string;
|
|
3071
3040
|
content: string;
|
|
3041
|
+
filePath: string;
|
|
3072
3042
|
}[];
|
|
3073
3043
|
addedFileVersions: {
|
|
3074
3044
|
path: string;
|
|
@@ -3076,8 +3046,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3076
3046
|
}[];
|
|
3077
3047
|
resetFileVersions: boolean;
|
|
3078
3048
|
data: {
|
|
3079
|
-
name: string;
|
|
3080
3049
|
id: string;
|
|
3050
|
+
name: string;
|
|
3081
3051
|
input: Record<string, any>;
|
|
3082
3052
|
};
|
|
3083
3053
|
} | {
|
|
@@ -3092,8 +3062,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3092
3062
|
type: "auth-result";
|
|
3093
3063
|
message: string;
|
|
3094
3064
|
user?: {
|
|
3095
|
-
name: string | null;
|
|
3096
3065
|
id: string;
|
|
3066
|
+
name: string | null;
|
|
3097
3067
|
fingerprintId: string;
|
|
3098
3068
|
authToken: string;
|
|
3099
3069
|
email: string;
|