codebuff 1.0.144 → 1.0.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +34 -5
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +5 -3
- package/dist/client.js +38 -20
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +98 -88
- package/dist/common/util/file.d.ts +3 -0
- package/dist/common/util/file.js +1 -0
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +212 -184
- package/dist/index.js +1 -17
- package/dist/index.js.map +1 -1
- package/dist/menu.d.ts +2 -0
- package/dist/menu.js +21 -0
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +2 -0
- package/dist/project-files.js +29 -0
- package/dist/project-files.js.map +1 -1
- package/package.json +1 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -35,16 +35,16 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
35
35
|
}>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
type: "tool_use";
|
|
38
|
-
id: string;
|
|
39
38
|
name: string;
|
|
39
|
+
id: string;
|
|
40
40
|
input: Record<string, any>;
|
|
41
41
|
cache_control?: {
|
|
42
42
|
type: "ephemeral";
|
|
43
43
|
} | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
type: "tool_use";
|
|
46
|
-
id: string;
|
|
47
46
|
name: string;
|
|
47
|
+
id: string;
|
|
48
48
|
input: Record<string, any>;
|
|
49
49
|
cache_control?: {
|
|
50
50
|
type: "ephemeral";
|
|
@@ -61,16 +61,16 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
61
61
|
type: "ephemeral";
|
|
62
62
|
}>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
content: string;
|
|
64
65
|
type: "tool_result";
|
|
65
66
|
tool_use_id: string;
|
|
66
|
-
content: string;
|
|
67
67
|
cache_control?: {
|
|
68
68
|
type: "ephemeral";
|
|
69
69
|
} | undefined;
|
|
70
70
|
}, {
|
|
71
|
+
content: string;
|
|
71
72
|
type: "tool_result";
|
|
72
73
|
tool_use_id: string;
|
|
73
|
-
content: string;
|
|
74
74
|
cache_control?: {
|
|
75
75
|
type: "ephemeral";
|
|
76
76
|
} | undefined;
|
|
@@ -113,16 +113,16 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
113
113
|
}>>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
type: "tool_use";
|
|
116
|
-
id: string;
|
|
117
116
|
name: string;
|
|
117
|
+
id: string;
|
|
118
118
|
input: Record<string, any>;
|
|
119
119
|
cache_control?: {
|
|
120
120
|
type: "ephemeral";
|
|
121
121
|
} | undefined;
|
|
122
122
|
}, {
|
|
123
123
|
type: "tool_use";
|
|
124
|
-
id: string;
|
|
125
124
|
name: string;
|
|
125
|
+
id: string;
|
|
126
126
|
input: Record<string, any>;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
@@ -139,16 +139,16 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
139
139
|
type: "ephemeral";
|
|
140
140
|
}>>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
content: string;
|
|
142
143
|
type: "tool_result";
|
|
143
144
|
tool_use_id: string;
|
|
144
|
-
content: string;
|
|
145
145
|
cache_control?: {
|
|
146
146
|
type: "ephemeral";
|
|
147
147
|
} | undefined;
|
|
148
148
|
}, {
|
|
149
|
+
content: string;
|
|
149
150
|
type: "tool_result";
|
|
150
151
|
tool_use_id: string;
|
|
151
|
-
content: string;
|
|
152
152
|
cache_control?: {
|
|
153
153
|
type: "ephemeral";
|
|
154
154
|
} | undefined;
|
|
@@ -162,16 +162,16 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
162
162
|
} | undefined;
|
|
163
163
|
} | {
|
|
164
164
|
type: "tool_use";
|
|
165
|
-
id: string;
|
|
166
165
|
name: string;
|
|
166
|
+
id: string;
|
|
167
167
|
input: Record<string, any>;
|
|
168
168
|
cache_control?: {
|
|
169
169
|
type: "ephemeral";
|
|
170
170
|
} | undefined;
|
|
171
171
|
} | {
|
|
172
|
+
content: string;
|
|
172
173
|
type: "tool_result";
|
|
173
174
|
tool_use_id: string;
|
|
174
|
-
content: string;
|
|
175
175
|
cache_control?: {
|
|
176
176
|
type: "ephemeral";
|
|
177
177
|
} | undefined;
|
|
@@ -186,16 +186,16 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
186
186
|
} | undefined;
|
|
187
187
|
} | {
|
|
188
188
|
type: "tool_use";
|
|
189
|
-
id: string;
|
|
190
189
|
name: string;
|
|
190
|
+
id: string;
|
|
191
191
|
input: Record<string, any>;
|
|
192
192
|
cache_control?: {
|
|
193
193
|
type: "ephemeral";
|
|
194
194
|
} | undefined;
|
|
195
195
|
} | {
|
|
196
|
+
content: string;
|
|
196
197
|
type: "tool_result";
|
|
197
198
|
tool_use_id: string;
|
|
198
|
-
content: string;
|
|
199
199
|
cache_control?: {
|
|
200
200
|
type: "ephemeral";
|
|
201
201
|
} | undefined;
|
|
@@ -209,12 +209,12 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
209
209
|
filePath: z.ZodString;
|
|
210
210
|
content: z.ZodString;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
|
-
type: "patch" | "file";
|
|
213
212
|
content: string;
|
|
213
|
+
type: "file" | "patch";
|
|
214
214
|
filePath: string;
|
|
215
215
|
}, {
|
|
216
|
-
type: "patch" | "file";
|
|
217
216
|
content: string;
|
|
217
|
+
type: "file" | "patch";
|
|
218
218
|
filePath: string;
|
|
219
219
|
}>;
|
|
220
220
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
@@ -223,12 +223,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
223
223
|
filePath: z.ZodString;
|
|
224
224
|
content: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
type: "patch" | "file";
|
|
227
226
|
content: string;
|
|
227
|
+
type: "file" | "patch";
|
|
228
228
|
filePath: string;
|
|
229
229
|
}, {
|
|
230
|
-
type: "patch" | "file";
|
|
231
230
|
content: string;
|
|
231
|
+
type: "file" | "patch";
|
|
232
232
|
filePath: string;
|
|
233
233
|
}>, "many">;
|
|
234
234
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
@@ -237,12 +237,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
237
237
|
id: z.ZodString;
|
|
238
238
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
239
239
|
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
id: string;
|
|
241
240
|
name: string;
|
|
241
|
+
id: string;
|
|
242
242
|
input: Record<string, any>;
|
|
243
243
|
}, {
|
|
244
|
-
id: string;
|
|
245
244
|
name: string;
|
|
245
|
+
id: string;
|
|
246
246
|
input: Record<string, any>;
|
|
247
247
|
}>;
|
|
248
248
|
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
@@ -289,16 +289,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
289
289
|
}>>;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
291
|
type: "tool_use";
|
|
292
|
-
id: string;
|
|
293
292
|
name: string;
|
|
293
|
+
id: string;
|
|
294
294
|
input: Record<string, any>;
|
|
295
295
|
cache_control?: {
|
|
296
296
|
type: "ephemeral";
|
|
297
297
|
} | undefined;
|
|
298
298
|
}, {
|
|
299
299
|
type: "tool_use";
|
|
300
|
-
id: string;
|
|
301
300
|
name: string;
|
|
301
|
+
id: string;
|
|
302
302
|
input: Record<string, any>;
|
|
303
303
|
cache_control?: {
|
|
304
304
|
type: "ephemeral";
|
|
@@ -315,16 +315,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
315
315
|
type: "ephemeral";
|
|
316
316
|
}>>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
content: string;
|
|
318
319
|
type: "tool_result";
|
|
319
320
|
tool_use_id: string;
|
|
320
|
-
content: string;
|
|
321
321
|
cache_control?: {
|
|
322
322
|
type: "ephemeral";
|
|
323
323
|
} | undefined;
|
|
324
324
|
}, {
|
|
325
|
+
content: string;
|
|
325
326
|
type: "tool_result";
|
|
326
327
|
tool_use_id: string;
|
|
327
|
-
content: string;
|
|
328
328
|
cache_control?: {
|
|
329
329
|
type: "ephemeral";
|
|
330
330
|
} | undefined;
|
|
@@ -338,16 +338,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
338
338
|
} | undefined;
|
|
339
339
|
} | {
|
|
340
340
|
type: "tool_use";
|
|
341
|
-
id: string;
|
|
342
341
|
name: string;
|
|
342
|
+
id: string;
|
|
343
343
|
input: Record<string, any>;
|
|
344
344
|
cache_control?: {
|
|
345
345
|
type: "ephemeral";
|
|
346
346
|
} | undefined;
|
|
347
347
|
} | {
|
|
348
|
+
content: string;
|
|
348
349
|
type: "tool_result";
|
|
349
350
|
tool_use_id: string;
|
|
350
|
-
content: string;
|
|
351
351
|
cache_control?: {
|
|
352
352
|
type: "ephemeral";
|
|
353
353
|
} | undefined;
|
|
@@ -362,16 +362,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
362
362
|
} | undefined;
|
|
363
363
|
} | {
|
|
364
364
|
type: "tool_use";
|
|
365
|
-
id: string;
|
|
366
365
|
name: string;
|
|
366
|
+
id: string;
|
|
367
367
|
input: Record<string, any>;
|
|
368
368
|
cache_control?: {
|
|
369
369
|
type: "ephemeral";
|
|
370
370
|
} | undefined;
|
|
371
371
|
} | {
|
|
372
|
+
content: string;
|
|
372
373
|
type: "tool_result";
|
|
373
374
|
tool_use_id: string;
|
|
374
|
-
content: string;
|
|
375
375
|
cache_control?: {
|
|
376
376
|
type: "ephemeral";
|
|
377
377
|
} | undefined;
|
|
@@ -383,19 +383,20 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
383
383
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
384
384
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
385
385
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
386
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
386
387
|
gitChanges: z.ZodObject<{
|
|
387
388
|
status: z.ZodString;
|
|
388
389
|
diff: z.ZodString;
|
|
389
390
|
diffCached: z.ZodString;
|
|
390
391
|
lastCommitMessages: z.ZodString;
|
|
391
392
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
diff: string;
|
|
393
393
|
status: string;
|
|
394
|
+
diff: string;
|
|
394
395
|
diffCached: string;
|
|
395
396
|
lastCommitMessages: string;
|
|
396
397
|
}, {
|
|
397
|
-
diff: string;
|
|
398
398
|
status: string;
|
|
399
|
+
diff: string;
|
|
399
400
|
diffCached: string;
|
|
400
401
|
lastCommitMessages: string;
|
|
401
402
|
}>;
|
|
@@ -439,8 +440,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
439
440
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
440
441
|
knowledgeFiles: Record<string, string>;
|
|
441
442
|
gitChanges: {
|
|
442
|
-
diff: string;
|
|
443
443
|
status: string;
|
|
444
|
+
diff: string;
|
|
444
445
|
diffCached: string;
|
|
445
446
|
lastCommitMessages: string;
|
|
446
447
|
};
|
|
@@ -458,14 +459,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
458
459
|
path: string;
|
|
459
460
|
content: string;
|
|
460
461
|
}[][];
|
|
462
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
461
463
|
}, {
|
|
462
464
|
currentWorkingDirectory: string;
|
|
463
465
|
fileTree: import("./util/file").FileTreeNode[];
|
|
464
466
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
465
467
|
knowledgeFiles: Record<string, string>;
|
|
466
468
|
gitChanges: {
|
|
467
|
-
diff: string;
|
|
468
469
|
status: string;
|
|
470
|
+
diff: string;
|
|
469
471
|
diffCached: string;
|
|
470
472
|
lastCommitMessages: string;
|
|
471
473
|
};
|
|
@@ -483,18 +485,19 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
483
485
|
path: string;
|
|
484
486
|
content: string;
|
|
485
487
|
}[][];
|
|
488
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
486
489
|
}>;
|
|
487
490
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
488
491
|
type: z.ZodEnum<["patch", "file"]>;
|
|
489
492
|
filePath: z.ZodString;
|
|
490
493
|
content: z.ZodString;
|
|
491
494
|
}, "strip", z.ZodTypeAny, {
|
|
492
|
-
type: "patch" | "file";
|
|
493
495
|
content: string;
|
|
496
|
+
type: "file" | "patch";
|
|
494
497
|
filePath: string;
|
|
495
498
|
}, {
|
|
496
|
-
type: "patch" | "file";
|
|
497
499
|
content: string;
|
|
500
|
+
type: "file" | "patch";
|
|
498
501
|
filePath: string;
|
|
499
502
|
}>, "many">;
|
|
500
503
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
@@ -511,16 +514,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
511
514
|
} | undefined;
|
|
512
515
|
} | {
|
|
513
516
|
type: "tool_use";
|
|
514
|
-
id: string;
|
|
515
517
|
name: string;
|
|
518
|
+
id: string;
|
|
516
519
|
input: Record<string, any>;
|
|
517
520
|
cache_control?: {
|
|
518
521
|
type: "ephemeral";
|
|
519
522
|
} | undefined;
|
|
520
523
|
} | {
|
|
524
|
+
content: string;
|
|
521
525
|
type: "tool_result";
|
|
522
526
|
tool_use_id: string;
|
|
523
|
-
content: string;
|
|
524
527
|
cache_control?: {
|
|
525
528
|
type: "ephemeral";
|
|
526
529
|
} | undefined;
|
|
@@ -533,8 +536,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
533
536
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
534
537
|
knowledgeFiles: Record<string, string>;
|
|
535
538
|
gitChanges: {
|
|
536
|
-
diff: string;
|
|
537
539
|
status: string;
|
|
540
|
+
diff: string;
|
|
538
541
|
diffCached: string;
|
|
539
542
|
lastCommitMessages: string;
|
|
540
543
|
};
|
|
@@ -552,13 +555,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
552
555
|
path: string;
|
|
553
556
|
content: string;
|
|
554
557
|
}[][];
|
|
558
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
555
559
|
};
|
|
556
560
|
changesAlreadyApplied: {
|
|
557
|
-
type: "patch" | "file";
|
|
558
561
|
content: string;
|
|
562
|
+
type: "file" | "patch";
|
|
559
563
|
filePath: string;
|
|
560
564
|
}[];
|
|
561
|
-
costMode: "
|
|
565
|
+
costMode: "max" | "lite" | "normal";
|
|
562
566
|
authToken?: string | undefined;
|
|
563
567
|
}, {
|
|
564
568
|
type: "user-input";
|
|
@@ -573,16 +577,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
573
577
|
} | undefined;
|
|
574
578
|
} | {
|
|
575
579
|
type: "tool_use";
|
|
576
|
-
id: string;
|
|
577
580
|
name: string;
|
|
581
|
+
id: string;
|
|
578
582
|
input: Record<string, any>;
|
|
579
583
|
cache_control?: {
|
|
580
584
|
type: "ephemeral";
|
|
581
585
|
} | undefined;
|
|
582
586
|
} | {
|
|
587
|
+
content: string;
|
|
583
588
|
type: "tool_result";
|
|
584
589
|
tool_use_id: string;
|
|
585
|
-
content: string;
|
|
586
590
|
cache_control?: {
|
|
587
591
|
type: "ephemeral";
|
|
588
592
|
} | undefined;
|
|
@@ -595,8 +599,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
595
599
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
596
600
|
knowledgeFiles: Record<string, string>;
|
|
597
601
|
gitChanges: {
|
|
598
|
-
diff: string;
|
|
599
602
|
status: string;
|
|
603
|
+
diff: string;
|
|
600
604
|
diffCached: string;
|
|
601
605
|
lastCommitMessages: string;
|
|
602
606
|
};
|
|
@@ -614,14 +618,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
614
618
|
path: string;
|
|
615
619
|
content: string;
|
|
616
620
|
}[][];
|
|
621
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
617
622
|
};
|
|
618
623
|
changesAlreadyApplied: {
|
|
619
|
-
type: "patch" | "file";
|
|
620
624
|
content: string;
|
|
625
|
+
type: "file" | "patch";
|
|
621
626
|
filePath: string;
|
|
622
627
|
}[];
|
|
623
628
|
authToken?: string | undefined;
|
|
624
|
-
costMode?: "
|
|
629
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
625
630
|
}>, z.ZodObject<{
|
|
626
631
|
type: z.ZodLiteral<"read-files-response">;
|
|
627
632
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -640,19 +645,20 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
640
645
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
641
646
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
642
647
|
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
648
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
643
649
|
gitChanges: z.ZodObject<{
|
|
644
650
|
status: z.ZodString;
|
|
645
651
|
diff: z.ZodString;
|
|
646
652
|
diffCached: z.ZodString;
|
|
647
653
|
lastCommitMessages: z.ZodString;
|
|
648
654
|
}, "strip", z.ZodTypeAny, {
|
|
649
|
-
diff: string;
|
|
650
655
|
status: string;
|
|
656
|
+
diff: string;
|
|
651
657
|
diffCached: string;
|
|
652
658
|
lastCommitMessages: string;
|
|
653
659
|
}, {
|
|
654
|
-
diff: string;
|
|
655
660
|
status: string;
|
|
661
|
+
diff: string;
|
|
656
662
|
diffCached: string;
|
|
657
663
|
lastCommitMessages: string;
|
|
658
664
|
}>;
|
|
@@ -696,8 +702,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
696
702
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
697
703
|
knowledgeFiles: Record<string, string>;
|
|
698
704
|
gitChanges: {
|
|
699
|
-
diff: string;
|
|
700
705
|
status: string;
|
|
706
|
+
diff: string;
|
|
701
707
|
diffCached: string;
|
|
702
708
|
lastCommitMessages: string;
|
|
703
709
|
};
|
|
@@ -715,14 +721,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
715
721
|
path: string;
|
|
716
722
|
content: string;
|
|
717
723
|
}[][];
|
|
724
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
718
725
|
}, {
|
|
719
726
|
currentWorkingDirectory: string;
|
|
720
727
|
fileTree: import("./util/file").FileTreeNode[];
|
|
721
728
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
722
729
|
knowledgeFiles: Record<string, string>;
|
|
723
730
|
gitChanges: {
|
|
724
|
-
diff: string;
|
|
725
731
|
status: string;
|
|
732
|
+
diff: string;
|
|
726
733
|
diffCached: string;
|
|
727
734
|
lastCommitMessages: string;
|
|
728
735
|
};
|
|
@@ -740,6 +747,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
740
747
|
path: string;
|
|
741
748
|
content: string;
|
|
742
749
|
}[][];
|
|
750
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
743
751
|
}>;
|
|
744
752
|
}, "strip", z.ZodTypeAny, {
|
|
745
753
|
type: "init";
|
|
@@ -750,8 +758,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
750
758
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
751
759
|
knowledgeFiles: Record<string, string>;
|
|
752
760
|
gitChanges: {
|
|
753
|
-
diff: string;
|
|
754
761
|
status: string;
|
|
762
|
+
diff: string;
|
|
755
763
|
diffCached: string;
|
|
756
764
|
lastCommitMessages: string;
|
|
757
765
|
};
|
|
@@ -769,6 +777,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
769
777
|
path: string;
|
|
770
778
|
content: string;
|
|
771
779
|
}[][];
|
|
780
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
772
781
|
};
|
|
773
782
|
authToken?: string | undefined;
|
|
774
783
|
}, {
|
|
@@ -780,8 +789,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
780
789
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
781
790
|
knowledgeFiles: Record<string, string>;
|
|
782
791
|
gitChanges: {
|
|
783
|
-
diff: string;
|
|
784
792
|
status: string;
|
|
793
|
+
diff: string;
|
|
785
794
|
diffCached: string;
|
|
786
795
|
lastCommitMessages: string;
|
|
787
796
|
};
|
|
@@ -799,6 +808,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
799
808
|
path: string;
|
|
800
809
|
content: string;
|
|
801
810
|
}[][];
|
|
811
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
802
812
|
};
|
|
803
813
|
authToken?: string | undefined;
|
|
804
814
|
}>, z.ZodObject<{
|
|
@@ -935,12 +945,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
935
945
|
filePath: z.ZodString;
|
|
936
946
|
content: z.ZodString;
|
|
937
947
|
}, "strip", z.ZodTypeAny, {
|
|
938
|
-
type: "patch" | "file";
|
|
939
948
|
content: string;
|
|
949
|
+
type: "file" | "patch";
|
|
940
950
|
filePath: string;
|
|
941
951
|
}, {
|
|
942
|
-
type: "patch" | "file";
|
|
943
952
|
content: string;
|
|
953
|
+
type: "file" | "patch";
|
|
944
954
|
filePath: string;
|
|
945
955
|
}>, "many">;
|
|
946
956
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -948,12 +958,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
948
958
|
filePath: z.ZodString;
|
|
949
959
|
content: z.ZodString;
|
|
950
960
|
}, "strip", z.ZodTypeAny, {
|
|
951
|
-
type: "patch" | "file";
|
|
952
961
|
content: string;
|
|
962
|
+
type: "file" | "patch";
|
|
953
963
|
filePath: string;
|
|
954
964
|
}, {
|
|
955
|
-
type: "patch" | "file";
|
|
956
965
|
content: string;
|
|
966
|
+
type: "file" | "patch";
|
|
957
967
|
filePath: string;
|
|
958
968
|
}>, "many">;
|
|
959
969
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -978,14 +988,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
978
988
|
type: "response-complete";
|
|
979
989
|
userInputId: string;
|
|
980
990
|
changesAlreadyApplied: {
|
|
981
|
-
type: "patch" | "file";
|
|
982
991
|
content: string;
|
|
992
|
+
type: "file" | "patch";
|
|
983
993
|
filePath: string;
|
|
984
994
|
}[];
|
|
985
995
|
response: string;
|
|
986
996
|
changes: {
|
|
987
|
-
type: "patch" | "file";
|
|
988
997
|
content: string;
|
|
998
|
+
type: "file" | "patch";
|
|
989
999
|
filePath: string;
|
|
990
1000
|
}[];
|
|
991
1001
|
addedFileVersions: {
|
|
@@ -1003,14 +1013,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1003
1013
|
type: "response-complete";
|
|
1004
1014
|
userInputId: string;
|
|
1005
1015
|
changesAlreadyApplied: {
|
|
1006
|
-
type: "patch" | "file";
|
|
1007
1016
|
content: string;
|
|
1017
|
+
type: "file" | "patch";
|
|
1008
1018
|
filePath: string;
|
|
1009
1019
|
}[];
|
|
1010
1020
|
response: string;
|
|
1011
1021
|
changes: {
|
|
1012
|
-
type: "patch" | "file";
|
|
1013
1022
|
content: string;
|
|
1023
|
+
type: "file" | "patch";
|
|
1014
1024
|
filePath: string;
|
|
1015
1025
|
}[];
|
|
1016
1026
|
addedFileVersions: {
|
|
@@ -1046,12 +1056,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1046
1056
|
filePath: z.ZodString;
|
|
1047
1057
|
content: z.ZodString;
|
|
1048
1058
|
}, "strip", z.ZodTypeAny, {
|
|
1049
|
-
type: "patch" | "file";
|
|
1050
1059
|
content: string;
|
|
1060
|
+
type: "file" | "patch";
|
|
1051
1061
|
filePath: string;
|
|
1052
1062
|
}, {
|
|
1053
|
-
type: "patch" | "file";
|
|
1054
1063
|
content: string;
|
|
1064
|
+
type: "file" | "patch";
|
|
1055
1065
|
filePath: string;
|
|
1056
1066
|
}>, "many">;
|
|
1057
1067
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1059,12 +1069,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1059
1069
|
filePath: z.ZodString;
|
|
1060
1070
|
content: z.ZodString;
|
|
1061
1071
|
}, "strip", z.ZodTypeAny, {
|
|
1062
|
-
type: "patch" | "file";
|
|
1063
1072
|
content: string;
|
|
1073
|
+
type: "file" | "patch";
|
|
1064
1074
|
filePath: string;
|
|
1065
1075
|
}, {
|
|
1066
|
-
type: "patch" | "file";
|
|
1067
1076
|
content: string;
|
|
1077
|
+
type: "file" | "patch";
|
|
1068
1078
|
filePath: string;
|
|
1069
1079
|
}>, "many">;
|
|
1070
1080
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1089,14 +1099,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1089
1099
|
type: "response-complete";
|
|
1090
1100
|
userInputId: string;
|
|
1091
1101
|
changesAlreadyApplied: {
|
|
1092
|
-
type: "patch" | "file";
|
|
1093
1102
|
content: string;
|
|
1103
|
+
type: "file" | "patch";
|
|
1094
1104
|
filePath: string;
|
|
1095
1105
|
}[];
|
|
1096
1106
|
response: string;
|
|
1097
1107
|
changes: {
|
|
1098
|
-
type: "patch" | "file";
|
|
1099
1108
|
content: string;
|
|
1109
|
+
type: "file" | "patch";
|
|
1100
1110
|
filePath: string;
|
|
1101
1111
|
}[];
|
|
1102
1112
|
addedFileVersions: {
|
|
@@ -1114,14 +1124,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1114
1124
|
type: "response-complete";
|
|
1115
1125
|
userInputId: string;
|
|
1116
1126
|
changesAlreadyApplied: {
|
|
1117
|
-
type: "patch" | "file";
|
|
1118
1127
|
content: string;
|
|
1128
|
+
type: "file" | "patch";
|
|
1119
1129
|
filePath: string;
|
|
1120
1130
|
}[];
|
|
1121
1131
|
response: string;
|
|
1122
1132
|
changes: {
|
|
1123
|
-
type: "patch" | "file";
|
|
1124
1133
|
content: string;
|
|
1134
|
+
type: "file" | "patch";
|
|
1125
1135
|
filePath: string;
|
|
1126
1136
|
}[];
|
|
1127
1137
|
addedFileVersions: {
|
|
@@ -1153,12 +1163,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1153
1163
|
id: z.ZodString;
|
|
1154
1164
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1155
1165
|
}, "strip", z.ZodTypeAny, {
|
|
1156
|
-
id: string;
|
|
1157
1166
|
name: string;
|
|
1167
|
+
id: string;
|
|
1158
1168
|
input: Record<string, any>;
|
|
1159
1169
|
}, {
|
|
1160
|
-
id: string;
|
|
1161
1170
|
name: string;
|
|
1171
|
+
id: string;
|
|
1162
1172
|
input: Record<string, any>;
|
|
1163
1173
|
}>;
|
|
1164
1174
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -1166,12 +1176,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1166
1176
|
filePath: z.ZodString;
|
|
1167
1177
|
content: z.ZodString;
|
|
1168
1178
|
}, "strip", z.ZodTypeAny, {
|
|
1169
|
-
type: "patch" | "file";
|
|
1170
1179
|
content: string;
|
|
1180
|
+
type: "file" | "patch";
|
|
1171
1181
|
filePath: string;
|
|
1172
1182
|
}, {
|
|
1173
|
-
type: "patch" | "file";
|
|
1174
1183
|
content: string;
|
|
1184
|
+
type: "file" | "patch";
|
|
1175
1185
|
filePath: string;
|
|
1176
1186
|
}>, "many">;
|
|
1177
1187
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1179,12 +1189,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1179
1189
|
filePath: z.ZodString;
|
|
1180
1190
|
content: z.ZodString;
|
|
1181
1191
|
}, "strip", z.ZodTypeAny, {
|
|
1182
|
-
type: "patch" | "file";
|
|
1183
1192
|
content: string;
|
|
1193
|
+
type: "file" | "patch";
|
|
1184
1194
|
filePath: string;
|
|
1185
1195
|
}, {
|
|
1186
|
-
type: "patch" | "file";
|
|
1187
1196
|
content: string;
|
|
1197
|
+
type: "file" | "patch";
|
|
1188
1198
|
filePath: string;
|
|
1189
1199
|
}>, "many">;
|
|
1190
1200
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1202,14 +1212,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1202
1212
|
type: "tool-call";
|
|
1203
1213
|
userInputId: string;
|
|
1204
1214
|
changesAlreadyApplied: {
|
|
1205
|
-
type: "patch" | "file";
|
|
1206
1215
|
content: string;
|
|
1216
|
+
type: "file" | "patch";
|
|
1207
1217
|
filePath: string;
|
|
1208
1218
|
}[];
|
|
1209
1219
|
response: string;
|
|
1210
1220
|
changes: {
|
|
1211
|
-
type: "patch" | "file";
|
|
1212
1221
|
content: string;
|
|
1222
|
+
type: "file" | "patch";
|
|
1213
1223
|
filePath: string;
|
|
1214
1224
|
}[];
|
|
1215
1225
|
addedFileVersions: {
|
|
@@ -1218,22 +1228,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1218
1228
|
}[];
|
|
1219
1229
|
resetFileVersions: boolean;
|
|
1220
1230
|
data: {
|
|
1221
|
-
id: string;
|
|
1222
1231
|
name: string;
|
|
1232
|
+
id: string;
|
|
1223
1233
|
input: Record<string, any>;
|
|
1224
1234
|
};
|
|
1225
1235
|
}, {
|
|
1226
1236
|
type: "tool-call";
|
|
1227
1237
|
userInputId: string;
|
|
1228
1238
|
changesAlreadyApplied: {
|
|
1229
|
-
type: "patch" | "file";
|
|
1230
1239
|
content: string;
|
|
1240
|
+
type: "file" | "patch";
|
|
1231
1241
|
filePath: string;
|
|
1232
1242
|
}[];
|
|
1233
1243
|
response: string;
|
|
1234
1244
|
changes: {
|
|
1235
|
-
type: "patch" | "file";
|
|
1236
1245
|
content: string;
|
|
1246
|
+
type: "file" | "patch";
|
|
1237
1247
|
filePath: string;
|
|
1238
1248
|
}[];
|
|
1239
1249
|
addedFileVersions: {
|
|
@@ -1242,8 +1252,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1242
1252
|
}[];
|
|
1243
1253
|
resetFileVersions: boolean;
|
|
1244
1254
|
data: {
|
|
1245
|
-
id: string;
|
|
1246
1255
|
name: string;
|
|
1256
|
+
id: string;
|
|
1247
1257
|
input: Record<string, any>;
|
|
1248
1258
|
};
|
|
1249
1259
|
}>, z.ZodObject<{
|
|
@@ -1306,41 +1316,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1306
1316
|
fingerprintId: z.ZodString;
|
|
1307
1317
|
fingerprintHash: z.ZodString;
|
|
1308
1318
|
}, "strip", z.ZodTypeAny, {
|
|
1309
|
-
|
|
1319
|
+
email: string;
|
|
1310
1320
|
name: string | null;
|
|
1321
|
+
id: string;
|
|
1311
1322
|
fingerprintId: string;
|
|
1312
1323
|
authToken: string;
|
|
1313
|
-
email: string;
|
|
1314
1324
|
fingerprintHash: string;
|
|
1315
1325
|
}, {
|
|
1316
|
-
|
|
1326
|
+
email: string;
|
|
1317
1327
|
name: string | null;
|
|
1328
|
+
id: string;
|
|
1318
1329
|
fingerprintId: string;
|
|
1319
1330
|
authToken: string;
|
|
1320
|
-
email: string;
|
|
1321
1331
|
fingerprintHash: string;
|
|
1322
1332
|
}>>;
|
|
1323
1333
|
message: z.ZodString;
|
|
1324
1334
|
}, "strip", z.ZodTypeAny, {
|
|
1325
|
-
type: "auth-result";
|
|
1326
1335
|
message: string;
|
|
1336
|
+
type: "auth-result";
|
|
1327
1337
|
user?: {
|
|
1328
|
-
|
|
1338
|
+
email: string;
|
|
1329
1339
|
name: string | null;
|
|
1340
|
+
id: string;
|
|
1330
1341
|
fingerprintId: string;
|
|
1331
1342
|
authToken: string;
|
|
1332
|
-
email: string;
|
|
1333
1343
|
fingerprintHash: string;
|
|
1334
1344
|
} | undefined;
|
|
1335
1345
|
}, {
|
|
1336
|
-
type: "auth-result";
|
|
1337
1346
|
message: string;
|
|
1347
|
+
type: "auth-result";
|
|
1338
1348
|
user?: {
|
|
1339
|
-
|
|
1349
|
+
email: string;
|
|
1340
1350
|
name: string | null;
|
|
1351
|
+
id: string;
|
|
1341
1352
|
fingerprintId: string;
|
|
1342
1353
|
authToken: string;
|
|
1343
|
-
email: string;
|
|
1344
1354
|
fingerprintHash: string;
|
|
1345
1355
|
} | undefined;
|
|
1346
1356
|
}>, z.ZodObject<{
|
|
@@ -1386,11 +1396,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1386
1396
|
type: z.ZodLiteral<"action-error">;
|
|
1387
1397
|
message: z.ZodString;
|
|
1388
1398
|
}, "strip", z.ZodTypeAny, {
|
|
1389
|
-
type: "action-error";
|
|
1390
1399
|
message: string;
|
|
1391
|
-
}, {
|
|
1392
1400
|
type: "action-error";
|
|
1401
|
+
}, {
|
|
1393
1402
|
message: string;
|
|
1403
|
+
type: "action-error";
|
|
1394
1404
|
}>, z.ZodObject<{
|
|
1395
1405
|
type: z.ZodLiteral<"commit-message-response">;
|
|
1396
1406
|
commitMessage: z.ZodString;
|