codebuff 1.0.118 → 1.0.120
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 +5 -1
- package/dist/cli.js +19 -3
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +5 -3
- package/dist/client.js +4 -1
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +203 -92
- package/dist/common/actions.js +2 -0
- package/dist/common/actions.js.map +1 -1
- package/dist/common/constants.d.ts +7 -0
- package/dist/common/constants.js +23 -5
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/schema.d.ts +17 -0
- package/dist/common/db/schema.js +10 -13
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/util/file.d.ts +38 -0
- package/dist/common/util/file.js +8 -0
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/string.d.ts +5 -0
- package/dist/common/util/string.js +10 -1
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +486 -196
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/menu.js +2 -1
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +16 -0
- package/dist/project-files.js +10 -0
- package/dist/project-files.js.map +1 -1
- package/dist/update-codebuff.js +3 -1
- package/dist/update-codebuff.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
|
-
name: string;
|
|
39
38
|
id: string;
|
|
39
|
+
name: 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
|
-
name: string;
|
|
47
46
|
id: string;
|
|
47
|
+
name: 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;
|
|
65
64
|
type: "tool_result";
|
|
66
65
|
tool_use_id: string;
|
|
66
|
+
content: string;
|
|
67
67
|
cache_control?: {
|
|
68
68
|
type: "ephemeral";
|
|
69
69
|
} | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
content: string;
|
|
72
71
|
type: "tool_result";
|
|
73
72
|
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
|
-
name: string;
|
|
117
116
|
id: string;
|
|
117
|
+
name: 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
|
-
name: string;
|
|
125
124
|
id: string;
|
|
125
|
+
name: 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;
|
|
143
142
|
type: "tool_result";
|
|
144
143
|
tool_use_id: string;
|
|
144
|
+
content: string;
|
|
145
145
|
cache_control?: {
|
|
146
146
|
type: "ephemeral";
|
|
147
147
|
} | undefined;
|
|
148
148
|
}, {
|
|
149
|
-
content: string;
|
|
150
149
|
type: "tool_result";
|
|
151
150
|
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
|
-
name: string;
|
|
166
165
|
id: string;
|
|
166
|
+
name: string;
|
|
167
167
|
input: Record<string, any>;
|
|
168
168
|
cache_control?: {
|
|
169
169
|
type: "ephemeral";
|
|
170
170
|
} | undefined;
|
|
171
171
|
} | {
|
|
172
|
-
content: string;
|
|
173
172
|
type: "tool_result";
|
|
174
173
|
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
|
-
name: string;
|
|
190
189
|
id: string;
|
|
190
|
+
name: string;
|
|
191
191
|
input: Record<string, any>;
|
|
192
192
|
cache_control?: {
|
|
193
193
|
type: "ephemeral";
|
|
194
194
|
} | undefined;
|
|
195
195
|
} | {
|
|
196
|
-
content: string;
|
|
197
196
|
type: "tool_result";
|
|
198
197
|
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";
|
|
212
213
|
content: string;
|
|
213
|
-
type: "file" | "patch";
|
|
214
214
|
filePath: string;
|
|
215
215
|
}, {
|
|
216
|
+
type: "patch" | "file";
|
|
216
217
|
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";
|
|
226
227
|
content: string;
|
|
227
|
-
type: "file" | "patch";
|
|
228
228
|
filePath: string;
|
|
229
229
|
}, {
|
|
230
|
+
type: "patch" | "file";
|
|
230
231
|
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
|
-
name: string;
|
|
241
240
|
id: string;
|
|
241
|
+
name: string;
|
|
242
242
|
input: Record<string, any>;
|
|
243
243
|
}, {
|
|
244
|
-
name: string;
|
|
245
244
|
id: string;
|
|
245
|
+
name: 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
|
-
name: string;
|
|
293
292
|
id: string;
|
|
293
|
+
name: 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
|
-
name: string;
|
|
301
300
|
id: string;
|
|
301
|
+
name: 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;
|
|
319
318
|
type: "tool_result";
|
|
320
319
|
tool_use_id: string;
|
|
320
|
+
content: string;
|
|
321
321
|
cache_control?: {
|
|
322
322
|
type: "ephemeral";
|
|
323
323
|
} | undefined;
|
|
324
324
|
}, {
|
|
325
|
-
content: string;
|
|
326
325
|
type: "tool_result";
|
|
327
326
|
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
|
-
name: string;
|
|
342
341
|
id: string;
|
|
342
|
+
name: string;
|
|
343
343
|
input: Record<string, any>;
|
|
344
344
|
cache_control?: {
|
|
345
345
|
type: "ephemeral";
|
|
346
346
|
} | undefined;
|
|
347
347
|
} | {
|
|
348
|
-
content: string;
|
|
349
348
|
type: "tool_result";
|
|
350
349
|
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
|
-
name: string;
|
|
366
365
|
id: string;
|
|
366
|
+
name: string;
|
|
367
367
|
input: Record<string, any>;
|
|
368
368
|
cache_control?: {
|
|
369
369
|
type: "ephemeral";
|
|
370
370
|
} | undefined;
|
|
371
371
|
} | {
|
|
372
|
-
content: string;
|
|
373
372
|
type: "tool_result";
|
|
374
373
|
tool_use_id: string;
|
|
374
|
+
content: string;
|
|
375
375
|
cache_control?: {
|
|
376
376
|
type: "ephemeral";
|
|
377
377
|
} | undefined;
|
|
@@ -389,18 +389,40 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
389
389
|
diffCached: z.ZodString;
|
|
390
390
|
lastCommitMessages: z.ZodString;
|
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
status: string;
|
|
393
392
|
diff: string;
|
|
393
|
+
status: string;
|
|
394
394
|
diffCached: string;
|
|
395
395
|
lastCommitMessages: string;
|
|
396
396
|
}, {
|
|
397
|
-
status: string;
|
|
398
397
|
diff: string;
|
|
398
|
+
status: string;
|
|
399
399
|
diffCached: string;
|
|
400
400
|
lastCommitMessages: string;
|
|
401
401
|
}>;
|
|
402
402
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
403
403
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
404
|
+
systemInfo: z.ZodObject<{
|
|
405
|
+
platform: z.ZodString;
|
|
406
|
+
shell: z.ZodString;
|
|
407
|
+
nodeVersion: z.ZodString;
|
|
408
|
+
arch: z.ZodString;
|
|
409
|
+
homedir: z.ZodString;
|
|
410
|
+
cpus: z.ZodNumber;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
platform: string;
|
|
413
|
+
shell: string;
|
|
414
|
+
nodeVersion: string;
|
|
415
|
+
arch: string;
|
|
416
|
+
homedir: string;
|
|
417
|
+
cpus: number;
|
|
418
|
+
}, {
|
|
419
|
+
platform: string;
|
|
420
|
+
shell: string;
|
|
421
|
+
nodeVersion: string;
|
|
422
|
+
arch: string;
|
|
423
|
+
homedir: string;
|
|
424
|
+
cpus: number;
|
|
425
|
+
}>;
|
|
404
426
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
405
427
|
path: z.ZodString;
|
|
406
428
|
content: z.ZodString;
|
|
@@ -417,13 +439,21 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
417
439
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
418
440
|
knowledgeFiles: Record<string, string>;
|
|
419
441
|
gitChanges: {
|
|
420
|
-
status: string;
|
|
421
442
|
diff: string;
|
|
443
|
+
status: string;
|
|
422
444
|
diffCached: string;
|
|
423
445
|
lastCommitMessages: string;
|
|
424
446
|
};
|
|
425
447
|
changesSinceLastChat: Record<string, string>;
|
|
426
448
|
shellConfigFiles: Record<string, string>;
|
|
449
|
+
systemInfo: {
|
|
450
|
+
platform: string;
|
|
451
|
+
shell: string;
|
|
452
|
+
nodeVersion: string;
|
|
453
|
+
arch: string;
|
|
454
|
+
homedir: string;
|
|
455
|
+
cpus: number;
|
|
456
|
+
};
|
|
427
457
|
fileVersions: {
|
|
428
458
|
path: string;
|
|
429
459
|
content: string;
|
|
@@ -434,13 +464,21 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
434
464
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
435
465
|
knowledgeFiles: Record<string, string>;
|
|
436
466
|
gitChanges: {
|
|
437
|
-
status: string;
|
|
438
467
|
diff: string;
|
|
468
|
+
status: string;
|
|
439
469
|
diffCached: string;
|
|
440
470
|
lastCommitMessages: string;
|
|
441
471
|
};
|
|
442
472
|
changesSinceLastChat: Record<string, string>;
|
|
443
473
|
shellConfigFiles: Record<string, string>;
|
|
474
|
+
systemInfo: {
|
|
475
|
+
platform: string;
|
|
476
|
+
shell: string;
|
|
477
|
+
nodeVersion: string;
|
|
478
|
+
arch: string;
|
|
479
|
+
homedir: string;
|
|
480
|
+
cpus: number;
|
|
481
|
+
};
|
|
444
482
|
fileVersions: {
|
|
445
483
|
path: string;
|
|
446
484
|
content: string;
|
|
@@ -451,14 +489,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
451
489
|
filePath: z.ZodString;
|
|
452
490
|
content: z.ZodString;
|
|
453
491
|
}, "strip", z.ZodTypeAny, {
|
|
492
|
+
type: "patch" | "file";
|
|
454
493
|
content: string;
|
|
455
|
-
type: "file" | "patch";
|
|
456
494
|
filePath: string;
|
|
457
495
|
}, {
|
|
496
|
+
type: "patch" | "file";
|
|
458
497
|
content: string;
|
|
459
|
-
type: "file" | "patch";
|
|
460
498
|
filePath: string;
|
|
461
499
|
}>, "many">;
|
|
500
|
+
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
|
|
462
501
|
}, "strip", z.ZodTypeAny, {
|
|
463
502
|
type: "user-input";
|
|
464
503
|
fingerprintId: string;
|
|
@@ -472,16 +511,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
472
511
|
} | undefined;
|
|
473
512
|
} | {
|
|
474
513
|
type: "tool_use";
|
|
475
|
-
name: string;
|
|
476
514
|
id: string;
|
|
515
|
+
name: string;
|
|
477
516
|
input: Record<string, any>;
|
|
478
517
|
cache_control?: {
|
|
479
518
|
type: "ephemeral";
|
|
480
519
|
} | undefined;
|
|
481
520
|
} | {
|
|
482
|
-
content: string;
|
|
483
521
|
type: "tool_result";
|
|
484
522
|
tool_use_id: string;
|
|
523
|
+
content: string;
|
|
485
524
|
cache_control?: {
|
|
486
525
|
type: "ephemeral";
|
|
487
526
|
} | undefined;
|
|
@@ -494,23 +533,32 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
494
533
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
495
534
|
knowledgeFiles: Record<string, string>;
|
|
496
535
|
gitChanges: {
|
|
497
|
-
status: string;
|
|
498
536
|
diff: string;
|
|
537
|
+
status: string;
|
|
499
538
|
diffCached: string;
|
|
500
539
|
lastCommitMessages: string;
|
|
501
540
|
};
|
|
502
541
|
changesSinceLastChat: Record<string, string>;
|
|
503
542
|
shellConfigFiles: Record<string, string>;
|
|
543
|
+
systemInfo: {
|
|
544
|
+
platform: string;
|
|
545
|
+
shell: string;
|
|
546
|
+
nodeVersion: string;
|
|
547
|
+
arch: string;
|
|
548
|
+
homedir: string;
|
|
549
|
+
cpus: number;
|
|
550
|
+
};
|
|
504
551
|
fileVersions: {
|
|
505
552
|
path: string;
|
|
506
553
|
content: string;
|
|
507
554
|
}[][];
|
|
508
555
|
};
|
|
509
556
|
changesAlreadyApplied: {
|
|
557
|
+
type: "patch" | "file";
|
|
510
558
|
content: string;
|
|
511
|
-
type: "file" | "patch";
|
|
512
559
|
filePath: string;
|
|
513
560
|
}[];
|
|
561
|
+
costMode: "lite" | "normal" | "pro";
|
|
514
562
|
authToken?: string | undefined;
|
|
515
563
|
}, {
|
|
516
564
|
type: "user-input";
|
|
@@ -525,16 +573,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
525
573
|
} | undefined;
|
|
526
574
|
} | {
|
|
527
575
|
type: "tool_use";
|
|
528
|
-
name: string;
|
|
529
576
|
id: string;
|
|
577
|
+
name: string;
|
|
530
578
|
input: Record<string, any>;
|
|
531
579
|
cache_control?: {
|
|
532
580
|
type: "ephemeral";
|
|
533
581
|
} | undefined;
|
|
534
582
|
} | {
|
|
535
|
-
content: string;
|
|
536
583
|
type: "tool_result";
|
|
537
584
|
tool_use_id: string;
|
|
585
|
+
content: string;
|
|
538
586
|
cache_control?: {
|
|
539
587
|
type: "ephemeral";
|
|
540
588
|
} | undefined;
|
|
@@ -547,24 +595,33 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
547
595
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
548
596
|
knowledgeFiles: Record<string, string>;
|
|
549
597
|
gitChanges: {
|
|
550
|
-
status: string;
|
|
551
598
|
diff: string;
|
|
599
|
+
status: string;
|
|
552
600
|
diffCached: string;
|
|
553
601
|
lastCommitMessages: string;
|
|
554
602
|
};
|
|
555
603
|
changesSinceLastChat: Record<string, string>;
|
|
556
604
|
shellConfigFiles: Record<string, string>;
|
|
605
|
+
systemInfo: {
|
|
606
|
+
platform: string;
|
|
607
|
+
shell: string;
|
|
608
|
+
nodeVersion: string;
|
|
609
|
+
arch: string;
|
|
610
|
+
homedir: string;
|
|
611
|
+
cpus: number;
|
|
612
|
+
};
|
|
557
613
|
fileVersions: {
|
|
558
614
|
path: string;
|
|
559
615
|
content: string;
|
|
560
616
|
}[][];
|
|
561
617
|
};
|
|
562
618
|
changesAlreadyApplied: {
|
|
619
|
+
type: "patch" | "file";
|
|
563
620
|
content: string;
|
|
564
|
-
type: "file" | "patch";
|
|
565
621
|
filePath: string;
|
|
566
622
|
}[];
|
|
567
623
|
authToken?: string | undefined;
|
|
624
|
+
costMode?: "lite" | "normal" | "pro" | undefined;
|
|
568
625
|
}>, z.ZodObject<{
|
|
569
626
|
type: z.ZodLiteral<"read-files-response">;
|
|
570
627
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -589,18 +646,40 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
589
646
|
diffCached: z.ZodString;
|
|
590
647
|
lastCommitMessages: z.ZodString;
|
|
591
648
|
}, "strip", z.ZodTypeAny, {
|
|
592
|
-
status: string;
|
|
593
649
|
diff: string;
|
|
650
|
+
status: string;
|
|
594
651
|
diffCached: string;
|
|
595
652
|
lastCommitMessages: string;
|
|
596
653
|
}, {
|
|
597
|
-
status: string;
|
|
598
654
|
diff: string;
|
|
655
|
+
status: string;
|
|
599
656
|
diffCached: string;
|
|
600
657
|
lastCommitMessages: string;
|
|
601
658
|
}>;
|
|
602
659
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
603
660
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
661
|
+
systemInfo: z.ZodObject<{
|
|
662
|
+
platform: z.ZodString;
|
|
663
|
+
shell: z.ZodString;
|
|
664
|
+
nodeVersion: z.ZodString;
|
|
665
|
+
arch: z.ZodString;
|
|
666
|
+
homedir: z.ZodString;
|
|
667
|
+
cpus: z.ZodNumber;
|
|
668
|
+
}, "strip", z.ZodTypeAny, {
|
|
669
|
+
platform: string;
|
|
670
|
+
shell: string;
|
|
671
|
+
nodeVersion: string;
|
|
672
|
+
arch: string;
|
|
673
|
+
homedir: string;
|
|
674
|
+
cpus: number;
|
|
675
|
+
}, {
|
|
676
|
+
platform: string;
|
|
677
|
+
shell: string;
|
|
678
|
+
nodeVersion: string;
|
|
679
|
+
arch: string;
|
|
680
|
+
homedir: string;
|
|
681
|
+
cpus: number;
|
|
682
|
+
}>;
|
|
604
683
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
605
684
|
path: z.ZodString;
|
|
606
685
|
content: z.ZodString;
|
|
@@ -617,13 +696,21 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
617
696
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
618
697
|
knowledgeFiles: Record<string, string>;
|
|
619
698
|
gitChanges: {
|
|
620
|
-
status: string;
|
|
621
699
|
diff: string;
|
|
700
|
+
status: string;
|
|
622
701
|
diffCached: string;
|
|
623
702
|
lastCommitMessages: string;
|
|
624
703
|
};
|
|
625
704
|
changesSinceLastChat: Record<string, string>;
|
|
626
705
|
shellConfigFiles: Record<string, string>;
|
|
706
|
+
systemInfo: {
|
|
707
|
+
platform: string;
|
|
708
|
+
shell: string;
|
|
709
|
+
nodeVersion: string;
|
|
710
|
+
arch: string;
|
|
711
|
+
homedir: string;
|
|
712
|
+
cpus: number;
|
|
713
|
+
};
|
|
627
714
|
fileVersions: {
|
|
628
715
|
path: string;
|
|
629
716
|
content: string;
|
|
@@ -634,13 +721,21 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
634
721
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
635
722
|
knowledgeFiles: Record<string, string>;
|
|
636
723
|
gitChanges: {
|
|
637
|
-
status: string;
|
|
638
724
|
diff: string;
|
|
725
|
+
status: string;
|
|
639
726
|
diffCached: string;
|
|
640
727
|
lastCommitMessages: string;
|
|
641
728
|
};
|
|
642
729
|
changesSinceLastChat: Record<string, string>;
|
|
643
730
|
shellConfigFiles: Record<string, string>;
|
|
731
|
+
systemInfo: {
|
|
732
|
+
platform: string;
|
|
733
|
+
shell: string;
|
|
734
|
+
nodeVersion: string;
|
|
735
|
+
arch: string;
|
|
736
|
+
homedir: string;
|
|
737
|
+
cpus: number;
|
|
738
|
+
};
|
|
644
739
|
fileVersions: {
|
|
645
740
|
path: string;
|
|
646
741
|
content: string;
|
|
@@ -655,13 +750,21 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
655
750
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
656
751
|
knowledgeFiles: Record<string, string>;
|
|
657
752
|
gitChanges: {
|
|
658
|
-
status: string;
|
|
659
753
|
diff: string;
|
|
754
|
+
status: string;
|
|
660
755
|
diffCached: string;
|
|
661
756
|
lastCommitMessages: string;
|
|
662
757
|
};
|
|
663
758
|
changesSinceLastChat: Record<string, string>;
|
|
664
759
|
shellConfigFiles: Record<string, string>;
|
|
760
|
+
systemInfo: {
|
|
761
|
+
platform: string;
|
|
762
|
+
shell: string;
|
|
763
|
+
nodeVersion: string;
|
|
764
|
+
arch: string;
|
|
765
|
+
homedir: string;
|
|
766
|
+
cpus: number;
|
|
767
|
+
};
|
|
665
768
|
fileVersions: {
|
|
666
769
|
path: string;
|
|
667
770
|
content: string;
|
|
@@ -677,13 +780,21 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
677
780
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
678
781
|
knowledgeFiles: Record<string, string>;
|
|
679
782
|
gitChanges: {
|
|
680
|
-
status: string;
|
|
681
783
|
diff: string;
|
|
784
|
+
status: string;
|
|
682
785
|
diffCached: string;
|
|
683
786
|
lastCommitMessages: string;
|
|
684
787
|
};
|
|
685
788
|
changesSinceLastChat: Record<string, string>;
|
|
686
789
|
shellConfigFiles: Record<string, string>;
|
|
790
|
+
systemInfo: {
|
|
791
|
+
platform: string;
|
|
792
|
+
shell: string;
|
|
793
|
+
nodeVersion: string;
|
|
794
|
+
arch: string;
|
|
795
|
+
homedir: string;
|
|
796
|
+
cpus: number;
|
|
797
|
+
};
|
|
687
798
|
fileVersions: {
|
|
688
799
|
path: string;
|
|
689
800
|
content: string;
|
|
@@ -734,14 +845,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
734
845
|
fingerprintHash: z.ZodString;
|
|
735
846
|
}, "strip", z.ZodTypeAny, {
|
|
736
847
|
type: "clear-auth-token";
|
|
737
|
-
authToken: string;
|
|
738
848
|
fingerprintId: string;
|
|
849
|
+
authToken: string;
|
|
739
850
|
fingerprintHash: string;
|
|
740
851
|
userId: string;
|
|
741
852
|
}, {
|
|
742
853
|
type: "clear-auth-token";
|
|
743
|
-
authToken: string;
|
|
744
854
|
fingerprintId: string;
|
|
855
|
+
authToken: string;
|
|
745
856
|
fingerprintHash: string;
|
|
746
857
|
userId: string;
|
|
747
858
|
}>, z.ZodObject<{
|
|
@@ -824,12 +935,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
824
935
|
filePath: z.ZodString;
|
|
825
936
|
content: z.ZodString;
|
|
826
937
|
}, "strip", z.ZodTypeAny, {
|
|
938
|
+
type: "patch" | "file";
|
|
827
939
|
content: string;
|
|
828
|
-
type: "file" | "patch";
|
|
829
940
|
filePath: string;
|
|
830
941
|
}, {
|
|
942
|
+
type: "patch" | "file";
|
|
831
943
|
content: string;
|
|
832
|
-
type: "file" | "patch";
|
|
833
944
|
filePath: string;
|
|
834
945
|
}>, "many">;
|
|
835
946
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -837,12 +948,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
837
948
|
filePath: z.ZodString;
|
|
838
949
|
content: z.ZodString;
|
|
839
950
|
}, "strip", z.ZodTypeAny, {
|
|
951
|
+
type: "patch" | "file";
|
|
840
952
|
content: string;
|
|
841
|
-
type: "file" | "patch";
|
|
842
953
|
filePath: string;
|
|
843
954
|
}, {
|
|
955
|
+
type: "patch" | "file";
|
|
844
956
|
content: string;
|
|
845
|
-
type: "file" | "patch";
|
|
846
957
|
filePath: string;
|
|
847
958
|
}>, "many">;
|
|
848
959
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -867,14 +978,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
867
978
|
type: "response-complete";
|
|
868
979
|
userInputId: string;
|
|
869
980
|
changesAlreadyApplied: {
|
|
981
|
+
type: "patch" | "file";
|
|
870
982
|
content: string;
|
|
871
|
-
type: "file" | "patch";
|
|
872
983
|
filePath: string;
|
|
873
984
|
}[];
|
|
874
985
|
response: string;
|
|
875
986
|
changes: {
|
|
987
|
+
type: "patch" | "file";
|
|
876
988
|
content: string;
|
|
877
|
-
type: "file" | "patch";
|
|
878
989
|
filePath: string;
|
|
879
990
|
}[];
|
|
880
991
|
addedFileVersions: {
|
|
@@ -892,14 +1003,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
892
1003
|
type: "response-complete";
|
|
893
1004
|
userInputId: string;
|
|
894
1005
|
changesAlreadyApplied: {
|
|
1006
|
+
type: "patch" | "file";
|
|
895
1007
|
content: string;
|
|
896
|
-
type: "file" | "patch";
|
|
897
1008
|
filePath: string;
|
|
898
1009
|
}[];
|
|
899
1010
|
response: string;
|
|
900
1011
|
changes: {
|
|
1012
|
+
type: "patch" | "file";
|
|
901
1013
|
content: string;
|
|
902
|
-
type: "file" | "patch";
|
|
903
1014
|
filePath: string;
|
|
904
1015
|
}[];
|
|
905
1016
|
addedFileVersions: {
|
|
@@ -935,12 +1046,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
935
1046
|
filePath: z.ZodString;
|
|
936
1047
|
content: z.ZodString;
|
|
937
1048
|
}, "strip", z.ZodTypeAny, {
|
|
1049
|
+
type: "patch" | "file";
|
|
938
1050
|
content: string;
|
|
939
|
-
type: "file" | "patch";
|
|
940
1051
|
filePath: string;
|
|
941
1052
|
}, {
|
|
1053
|
+
type: "patch" | "file";
|
|
942
1054
|
content: string;
|
|
943
|
-
type: "file" | "patch";
|
|
944
1055
|
filePath: string;
|
|
945
1056
|
}>, "many">;
|
|
946
1057
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -948,12 +1059,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
948
1059
|
filePath: z.ZodString;
|
|
949
1060
|
content: z.ZodString;
|
|
950
1061
|
}, "strip", z.ZodTypeAny, {
|
|
1062
|
+
type: "patch" | "file";
|
|
951
1063
|
content: string;
|
|
952
|
-
type: "file" | "patch";
|
|
953
1064
|
filePath: string;
|
|
954
1065
|
}, {
|
|
1066
|
+
type: "patch" | "file";
|
|
955
1067
|
content: string;
|
|
956
|
-
type: "file" | "patch";
|
|
957
1068
|
filePath: string;
|
|
958
1069
|
}>, "many">;
|
|
959
1070
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -978,14 +1089,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
978
1089
|
type: "response-complete";
|
|
979
1090
|
userInputId: string;
|
|
980
1091
|
changesAlreadyApplied: {
|
|
1092
|
+
type: "patch" | "file";
|
|
981
1093
|
content: string;
|
|
982
|
-
type: "file" | "patch";
|
|
983
1094
|
filePath: string;
|
|
984
1095
|
}[];
|
|
985
1096
|
response: string;
|
|
986
1097
|
changes: {
|
|
1098
|
+
type: "patch" | "file";
|
|
987
1099
|
content: string;
|
|
988
|
-
type: "file" | "patch";
|
|
989
1100
|
filePath: string;
|
|
990
1101
|
}[];
|
|
991
1102
|
addedFileVersions: {
|
|
@@ -1003,14 +1114,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1003
1114
|
type: "response-complete";
|
|
1004
1115
|
userInputId: string;
|
|
1005
1116
|
changesAlreadyApplied: {
|
|
1117
|
+
type: "patch" | "file";
|
|
1006
1118
|
content: string;
|
|
1007
|
-
type: "file" | "patch";
|
|
1008
1119
|
filePath: string;
|
|
1009
1120
|
}[];
|
|
1010
1121
|
response: string;
|
|
1011
1122
|
changes: {
|
|
1123
|
+
type: "patch" | "file";
|
|
1012
1124
|
content: string;
|
|
1013
|
-
type: "file" | "patch";
|
|
1014
1125
|
filePath: string;
|
|
1015
1126
|
}[];
|
|
1016
1127
|
addedFileVersions: {
|
|
@@ -1042,12 +1153,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1042
1153
|
id: z.ZodString;
|
|
1043
1154
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1044
1155
|
}, "strip", z.ZodTypeAny, {
|
|
1045
|
-
name: string;
|
|
1046
1156
|
id: string;
|
|
1157
|
+
name: string;
|
|
1047
1158
|
input: Record<string, any>;
|
|
1048
1159
|
}, {
|
|
1049
|
-
name: string;
|
|
1050
1160
|
id: string;
|
|
1161
|
+
name: string;
|
|
1051
1162
|
input: Record<string, any>;
|
|
1052
1163
|
}>;
|
|
1053
1164
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -1055,12 +1166,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1055
1166
|
filePath: z.ZodString;
|
|
1056
1167
|
content: z.ZodString;
|
|
1057
1168
|
}, "strip", z.ZodTypeAny, {
|
|
1169
|
+
type: "patch" | "file";
|
|
1058
1170
|
content: string;
|
|
1059
|
-
type: "file" | "patch";
|
|
1060
1171
|
filePath: string;
|
|
1061
1172
|
}, {
|
|
1173
|
+
type: "patch" | "file";
|
|
1062
1174
|
content: string;
|
|
1063
|
-
type: "file" | "patch";
|
|
1064
1175
|
filePath: string;
|
|
1065
1176
|
}>, "many">;
|
|
1066
1177
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1068,12 +1179,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1068
1179
|
filePath: z.ZodString;
|
|
1069
1180
|
content: z.ZodString;
|
|
1070
1181
|
}, "strip", z.ZodTypeAny, {
|
|
1182
|
+
type: "patch" | "file";
|
|
1071
1183
|
content: string;
|
|
1072
|
-
type: "file" | "patch";
|
|
1073
1184
|
filePath: string;
|
|
1074
1185
|
}, {
|
|
1186
|
+
type: "patch" | "file";
|
|
1075
1187
|
content: string;
|
|
1076
|
-
type: "file" | "patch";
|
|
1077
1188
|
filePath: string;
|
|
1078
1189
|
}>, "many">;
|
|
1079
1190
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1091,14 +1202,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1091
1202
|
type: "tool-call";
|
|
1092
1203
|
userInputId: string;
|
|
1093
1204
|
changesAlreadyApplied: {
|
|
1205
|
+
type: "patch" | "file";
|
|
1094
1206
|
content: string;
|
|
1095
|
-
type: "file" | "patch";
|
|
1096
1207
|
filePath: string;
|
|
1097
1208
|
}[];
|
|
1098
1209
|
response: string;
|
|
1099
1210
|
changes: {
|
|
1211
|
+
type: "patch" | "file";
|
|
1100
1212
|
content: string;
|
|
1101
|
-
type: "file" | "patch";
|
|
1102
1213
|
filePath: string;
|
|
1103
1214
|
}[];
|
|
1104
1215
|
addedFileVersions: {
|
|
@@ -1107,22 +1218,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1107
1218
|
}[];
|
|
1108
1219
|
resetFileVersions: boolean;
|
|
1109
1220
|
data: {
|
|
1110
|
-
name: string;
|
|
1111
1221
|
id: string;
|
|
1222
|
+
name: string;
|
|
1112
1223
|
input: Record<string, any>;
|
|
1113
1224
|
};
|
|
1114
1225
|
}, {
|
|
1115
1226
|
type: "tool-call";
|
|
1116
1227
|
userInputId: string;
|
|
1117
1228
|
changesAlreadyApplied: {
|
|
1229
|
+
type: "patch" | "file";
|
|
1118
1230
|
content: string;
|
|
1119
|
-
type: "file" | "patch";
|
|
1120
1231
|
filePath: string;
|
|
1121
1232
|
}[];
|
|
1122
1233
|
response: string;
|
|
1123
1234
|
changes: {
|
|
1235
|
+
type: "patch" | "file";
|
|
1124
1236
|
content: string;
|
|
1125
|
-
type: "file" | "patch";
|
|
1126
1237
|
filePath: string;
|
|
1127
1238
|
}[];
|
|
1128
1239
|
addedFileVersions: {
|
|
@@ -1131,8 +1242,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1131
1242
|
}[];
|
|
1132
1243
|
resetFileVersions: boolean;
|
|
1133
1244
|
data: {
|
|
1134
|
-
name: string;
|
|
1135
1245
|
id: string;
|
|
1246
|
+
name: string;
|
|
1136
1247
|
input: Record<string, any>;
|
|
1137
1248
|
};
|
|
1138
1249
|
}>, z.ZodObject<{
|
|
@@ -1195,41 +1306,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1195
1306
|
fingerprintId: z.ZodString;
|
|
1196
1307
|
fingerprintHash: z.ZodString;
|
|
1197
1308
|
}, "strip", z.ZodTypeAny, {
|
|
1198
|
-
email: string;
|
|
1199
|
-
name: string | null;
|
|
1200
1309
|
id: string;
|
|
1201
|
-
|
|
1310
|
+
name: string | null;
|
|
1202
1311
|
fingerprintId: string;
|
|
1312
|
+
authToken: string;
|
|
1313
|
+
email: string;
|
|
1203
1314
|
fingerprintHash: string;
|
|
1204
1315
|
}, {
|
|
1205
|
-
email: string;
|
|
1206
|
-
name: string | null;
|
|
1207
1316
|
id: string;
|
|
1208
|
-
|
|
1317
|
+
name: string | null;
|
|
1209
1318
|
fingerprintId: string;
|
|
1319
|
+
authToken: string;
|
|
1320
|
+
email: string;
|
|
1210
1321
|
fingerprintHash: string;
|
|
1211
1322
|
}>>;
|
|
1212
1323
|
message: z.ZodString;
|
|
1213
1324
|
}, "strip", z.ZodTypeAny, {
|
|
1214
|
-
message: string;
|
|
1215
1325
|
type: "auth-result";
|
|
1326
|
+
message: string;
|
|
1216
1327
|
user?: {
|
|
1217
|
-
email: string;
|
|
1218
|
-
name: string | null;
|
|
1219
1328
|
id: string;
|
|
1220
|
-
|
|
1329
|
+
name: string | null;
|
|
1221
1330
|
fingerprintId: string;
|
|
1331
|
+
authToken: string;
|
|
1332
|
+
email: string;
|
|
1222
1333
|
fingerprintHash: string;
|
|
1223
1334
|
} | undefined;
|
|
1224
1335
|
}, {
|
|
1225
|
-
message: string;
|
|
1226
1336
|
type: "auth-result";
|
|
1337
|
+
message: string;
|
|
1227
1338
|
user?: {
|
|
1228
|
-
email: string;
|
|
1229
|
-
name: string | null;
|
|
1230
1339
|
id: string;
|
|
1231
|
-
|
|
1340
|
+
name: string | null;
|
|
1232
1341
|
fingerprintId: string;
|
|
1342
|
+
authToken: string;
|
|
1343
|
+
email: string;
|
|
1233
1344
|
fingerprintHash: string;
|
|
1234
1345
|
} | undefined;
|
|
1235
1346
|
}>, z.ZodObject<{
|
|
@@ -1275,11 +1386,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1275
1386
|
type: z.ZodLiteral<"action-error">;
|
|
1276
1387
|
message: z.ZodString;
|
|
1277
1388
|
}, "strip", z.ZodTypeAny, {
|
|
1278
|
-
message: string;
|
|
1279
1389
|
type: "action-error";
|
|
1280
|
-
}, {
|
|
1281
1390
|
message: string;
|
|
1391
|
+
}, {
|
|
1282
1392
|
type: "action-error";
|
|
1393
|
+
message: string;
|
|
1283
1394
|
}>, z.ZodObject<{
|
|
1284
1395
|
type: z.ZodLiteral<"commit-message-response">;
|
|
1285
1396
|
commitMessage: z.ZodString;
|