codebuff 1.0.193 → 1.0.194
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/client.d.ts +5 -5
- package/dist/client.js +4 -1
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +147 -147
- package/dist/common/types/agent-state.d.ts +18 -18
- package/dist/common/util/file.d.ts +8 -8
- package/dist/common/util/file.js +1 -1
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/messages.d.ts +1 -0
- package/dist/common/util/messages.js +12 -3
- package/dist/common/util/messages.js.map +1 -1
- package/dist/common/websockets/websocket-client.js +14 -8
- package/dist/common/websockets/websocket-client.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +481 -481
- package/dist/project-files.d.ts +6 -6
- package/dist/project-files.js +3 -10
- package/dist/project-files.js.map +1 -1
- package/package.json +4 -3
package/dist/common/actions.d.ts
CHANGED
|
@@ -281,7 +281,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
281
281
|
homedir: string;
|
|
282
282
|
cpus: number;
|
|
283
283
|
}>;
|
|
284
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
284
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
285
285
|
path: z.ZodString;
|
|
286
286
|
content: z.ZodString;
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -290,7 +290,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
290
290
|
}, {
|
|
291
291
|
path: string;
|
|
292
292
|
content: string;
|
|
293
|
-
}>, "many">, "many"
|
|
293
|
+
}>, "many">, "many">>;
|
|
294
294
|
}, "strip", z.ZodTypeAny, {
|
|
295
295
|
currentWorkingDirectory: string;
|
|
296
296
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -312,11 +312,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
312
312
|
homedir: string;
|
|
313
313
|
cpus: number;
|
|
314
314
|
};
|
|
315
|
-
|
|
315
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
316
|
+
fileVersions?: {
|
|
316
317
|
path: string;
|
|
317
318
|
content: string;
|
|
318
|
-
}[][];
|
|
319
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
319
|
+
}[][] | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
currentWorkingDirectory: string;
|
|
322
322
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -338,11 +338,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
338
338
|
homedir: string;
|
|
339
339
|
cpus: number;
|
|
340
340
|
};
|
|
341
|
-
|
|
341
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
342
|
+
fileVersions?: {
|
|
342
343
|
path: string;
|
|
343
344
|
content: string;
|
|
344
|
-
}[][];
|
|
345
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
345
|
+
}[][] | undefined;
|
|
346
346
|
}>;
|
|
347
347
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
348
348
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -360,6 +360,33 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
360
360
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
362
362
|
type: "user-input";
|
|
363
|
+
fileContext: {
|
|
364
|
+
currentWorkingDirectory: string;
|
|
365
|
+
fileTree: import("./util/file").FileTreeNode[];
|
|
366
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
367
|
+
knowledgeFiles: Record<string, string>;
|
|
368
|
+
gitChanges: {
|
|
369
|
+
status: string;
|
|
370
|
+
diff: string;
|
|
371
|
+
diffCached: string;
|
|
372
|
+
lastCommitMessages: string;
|
|
373
|
+
};
|
|
374
|
+
changesSinceLastChat: Record<string, string>;
|
|
375
|
+
shellConfigFiles: Record<string, string>;
|
|
376
|
+
systemInfo: {
|
|
377
|
+
platform: string;
|
|
378
|
+
shell: string;
|
|
379
|
+
nodeVersion: string;
|
|
380
|
+
arch: string;
|
|
381
|
+
homedir: string;
|
|
382
|
+
cpus: number;
|
|
383
|
+
};
|
|
384
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
385
|
+
fileVersions?: {
|
|
386
|
+
path: string;
|
|
387
|
+
content: string;
|
|
388
|
+
}[][] | undefined;
|
|
389
|
+
};
|
|
363
390
|
fingerprintId: string;
|
|
364
391
|
userInputId: string;
|
|
365
392
|
messages: {
|
|
@@ -397,6 +424,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
397
424
|
})[];
|
|
398
425
|
role: "user" | "assistant";
|
|
399
426
|
}[];
|
|
427
|
+
changesAlreadyApplied: {
|
|
428
|
+
path: string;
|
|
429
|
+
content: string;
|
|
430
|
+
type: "file" | "patch";
|
|
431
|
+
}[];
|
|
432
|
+
costMode: "max" | "lite" | "normal";
|
|
433
|
+
authToken?: string | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
type: "user-input";
|
|
400
436
|
fileContext: {
|
|
401
437
|
currentWorkingDirectory: string;
|
|
402
438
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -418,21 +454,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
418
454
|
homedir: string;
|
|
419
455
|
cpus: number;
|
|
420
456
|
};
|
|
421
|
-
|
|
457
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
458
|
+
fileVersions?: {
|
|
422
459
|
path: string;
|
|
423
460
|
content: string;
|
|
424
|
-
}[][];
|
|
425
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
461
|
+
}[][] | undefined;
|
|
426
462
|
};
|
|
427
|
-
changesAlreadyApplied: {
|
|
428
|
-
path: string;
|
|
429
|
-
content: string;
|
|
430
|
-
type: "file" | "patch";
|
|
431
|
-
}[];
|
|
432
|
-
costMode: "max" | "lite" | "normal";
|
|
433
|
-
authToken?: string | undefined;
|
|
434
|
-
}, {
|
|
435
|
-
type: "user-input";
|
|
436
463
|
fingerprintId: string;
|
|
437
464
|
userInputId: string;
|
|
438
465
|
messages: {
|
|
@@ -470,33 +497,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
470
497
|
})[];
|
|
471
498
|
role: "user" | "assistant";
|
|
472
499
|
}[];
|
|
473
|
-
fileContext: {
|
|
474
|
-
currentWorkingDirectory: string;
|
|
475
|
-
fileTree: import("./util/file").FileTreeNode[];
|
|
476
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
477
|
-
knowledgeFiles: Record<string, string>;
|
|
478
|
-
gitChanges: {
|
|
479
|
-
status: string;
|
|
480
|
-
diff: string;
|
|
481
|
-
diffCached: string;
|
|
482
|
-
lastCommitMessages: string;
|
|
483
|
-
};
|
|
484
|
-
changesSinceLastChat: Record<string, string>;
|
|
485
|
-
shellConfigFiles: Record<string, string>;
|
|
486
|
-
systemInfo: {
|
|
487
|
-
platform: string;
|
|
488
|
-
shell: string;
|
|
489
|
-
nodeVersion: string;
|
|
490
|
-
arch: string;
|
|
491
|
-
homedir: string;
|
|
492
|
-
cpus: number;
|
|
493
|
-
};
|
|
494
|
-
fileVersions: {
|
|
495
|
-
path: string;
|
|
496
|
-
content: string;
|
|
497
|
-
}[][];
|
|
498
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
499
|
-
};
|
|
500
500
|
changesAlreadyApplied: {
|
|
501
501
|
path: string;
|
|
502
502
|
content: string;
|
|
@@ -559,7 +559,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
559
559
|
homedir: string;
|
|
560
560
|
cpus: number;
|
|
561
561
|
}>;
|
|
562
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
562
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
563
563
|
path: z.ZodString;
|
|
564
564
|
content: z.ZodString;
|
|
565
565
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -568,7 +568,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
568
568
|
}, {
|
|
569
569
|
path: string;
|
|
570
570
|
content: string;
|
|
571
|
-
}>, "many">, "many"
|
|
571
|
+
}>, "many">, "many">>;
|
|
572
572
|
}, "strip", z.ZodTypeAny, {
|
|
573
573
|
currentWorkingDirectory: string;
|
|
574
574
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -590,11 +590,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
590
590
|
homedir: string;
|
|
591
591
|
cpus: number;
|
|
592
592
|
};
|
|
593
|
-
|
|
593
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
594
|
+
fileVersions?: {
|
|
594
595
|
path: string;
|
|
595
596
|
content: string;
|
|
596
|
-
}[][];
|
|
597
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
597
|
+
}[][] | undefined;
|
|
598
598
|
}, {
|
|
599
599
|
currentWorkingDirectory: string;
|
|
600
600
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -616,11 +616,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
616
616
|
homedir: string;
|
|
617
617
|
cpus: number;
|
|
618
618
|
};
|
|
619
|
-
|
|
619
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
620
|
+
fileVersions?: {
|
|
620
621
|
path: string;
|
|
621
622
|
content: string;
|
|
622
|
-
}[][];
|
|
623
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
623
|
+
}[][] | undefined;
|
|
624
624
|
}>;
|
|
625
625
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
626
626
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -812,6 +812,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
812
812
|
role: "user" | "assistant";
|
|
813
813
|
}>, "many">;
|
|
814
814
|
}, "strip", z.ZodTypeAny, {
|
|
815
|
+
agentContext: string;
|
|
815
816
|
fileContext: {
|
|
816
817
|
currentWorkingDirectory: string;
|
|
817
818
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -833,13 +834,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
833
834
|
homedir: string;
|
|
834
835
|
cpus: number;
|
|
835
836
|
};
|
|
836
|
-
|
|
837
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
838
|
+
fileVersions?: {
|
|
837
839
|
path: string;
|
|
838
840
|
content: string;
|
|
839
|
-
}[][];
|
|
840
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
841
|
+
}[][] | undefined;
|
|
841
842
|
};
|
|
842
|
-
agentContext: string;
|
|
843
843
|
messageHistory: {
|
|
844
844
|
content: string | ({
|
|
845
845
|
type: "text";
|
|
@@ -876,6 +876,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
876
876
|
role: "user" | "assistant";
|
|
877
877
|
}[];
|
|
878
878
|
}, {
|
|
879
|
+
agentContext: string;
|
|
879
880
|
fileContext: {
|
|
880
881
|
currentWorkingDirectory: string;
|
|
881
882
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -897,13 +898,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
897
898
|
homedir: string;
|
|
898
899
|
cpus: number;
|
|
899
900
|
};
|
|
900
|
-
|
|
901
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
902
|
+
fileVersions?: {
|
|
901
903
|
path: string;
|
|
902
904
|
content: string;
|
|
903
|
-
}[][];
|
|
904
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
905
|
+
}[][] | undefined;
|
|
905
906
|
};
|
|
906
|
-
agentContext: string;
|
|
907
907
|
messageHistory: {
|
|
908
908
|
content: string | ({
|
|
909
909
|
type: "text";
|
|
@@ -959,6 +959,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
959
959
|
costMode: "max" | "lite" | "normal";
|
|
960
960
|
promptId: string;
|
|
961
961
|
agentState: {
|
|
962
|
+
agentContext: string;
|
|
962
963
|
fileContext: {
|
|
963
964
|
currentWorkingDirectory: string;
|
|
964
965
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -980,13 +981,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
980
981
|
homedir: string;
|
|
981
982
|
cpus: number;
|
|
982
983
|
};
|
|
983
|
-
|
|
984
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
985
|
+
fileVersions?: {
|
|
984
986
|
path: string;
|
|
985
987
|
content: string;
|
|
986
|
-
}[][];
|
|
987
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
988
|
+
}[][] | undefined;
|
|
988
989
|
};
|
|
989
|
-
agentContext: string;
|
|
990
990
|
messageHistory: {
|
|
991
991
|
content: string | ({
|
|
992
992
|
type: "text";
|
|
@@ -1035,6 +1035,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1035
1035
|
fingerprintId: string;
|
|
1036
1036
|
promptId: string;
|
|
1037
1037
|
agentState: {
|
|
1038
|
+
agentContext: string;
|
|
1038
1039
|
fileContext: {
|
|
1039
1040
|
currentWorkingDirectory: string;
|
|
1040
1041
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1056,13 +1057,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1056
1057
|
homedir: string;
|
|
1057
1058
|
cpus: number;
|
|
1058
1059
|
};
|
|
1059
|
-
|
|
1060
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1061
|
+
fileVersions?: {
|
|
1060
1062
|
path: string;
|
|
1061
1063
|
content: string;
|
|
1062
|
-
}[][];
|
|
1063
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1064
|
+
}[][] | undefined;
|
|
1064
1065
|
};
|
|
1065
|
-
agentContext: string;
|
|
1066
1066
|
messageHistory: {
|
|
1067
1067
|
content: string | ({
|
|
1068
1068
|
type: "text";
|
|
@@ -1169,7 +1169,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1169
1169
|
homedir: string;
|
|
1170
1170
|
cpus: number;
|
|
1171
1171
|
}>;
|
|
1172
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1172
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1173
1173
|
path: z.ZodString;
|
|
1174
1174
|
content: z.ZodString;
|
|
1175
1175
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1178,7 +1178,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1178
1178
|
}, {
|
|
1179
1179
|
path: string;
|
|
1180
1180
|
content: string;
|
|
1181
|
-
}>, "many">, "many"
|
|
1181
|
+
}>, "many">, "many">>;
|
|
1182
1182
|
}, "strip", z.ZodTypeAny, {
|
|
1183
1183
|
currentWorkingDirectory: string;
|
|
1184
1184
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1200,11 +1200,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1200
1200
|
homedir: string;
|
|
1201
1201
|
cpus: number;
|
|
1202
1202
|
};
|
|
1203
|
-
|
|
1203
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1204
|
+
fileVersions?: {
|
|
1204
1205
|
path: string;
|
|
1205
1206
|
content: string;
|
|
1206
|
-
}[][];
|
|
1207
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1207
|
+
}[][] | undefined;
|
|
1208
1208
|
}, {
|
|
1209
1209
|
currentWorkingDirectory: string;
|
|
1210
1210
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1226,15 +1226,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1226
1226
|
homedir: string;
|
|
1227
1227
|
cpus: number;
|
|
1228
1228
|
};
|
|
1229
|
-
|
|
1229
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1230
|
+
fileVersions?: {
|
|
1230
1231
|
path: string;
|
|
1231
1232
|
content: string;
|
|
1232
|
-
}[][];
|
|
1233
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1233
|
+
}[][] | undefined;
|
|
1234
1234
|
}>;
|
|
1235
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1236
1236
|
type: "init";
|
|
1237
|
-
fingerprintId: string;
|
|
1238
1237
|
fileContext: {
|
|
1239
1238
|
currentWorkingDirectory: string;
|
|
1240
1239
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1256,16 +1255,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1256
1255
|
homedir: string;
|
|
1257
1256
|
cpus: number;
|
|
1258
1257
|
};
|
|
1259
|
-
|
|
1258
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1259
|
+
fileVersions?: {
|
|
1260
1260
|
path: string;
|
|
1261
1261
|
content: string;
|
|
1262
|
-
}[][];
|
|
1263
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1262
|
+
}[][] | undefined;
|
|
1264
1263
|
};
|
|
1264
|
+
fingerprintId: string;
|
|
1265
1265
|
authToken?: string | undefined;
|
|
1266
1266
|
}, {
|
|
1267
1267
|
type: "init";
|
|
1268
|
-
fingerprintId: string;
|
|
1269
1268
|
fileContext: {
|
|
1270
1269
|
currentWorkingDirectory: string;
|
|
1271
1270
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1287,12 +1286,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1287
1286
|
homedir: string;
|
|
1288
1287
|
cpus: number;
|
|
1289
1288
|
};
|
|
1290
|
-
|
|
1289
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1290
|
+
fileVersions?: {
|
|
1291
1291
|
path: string;
|
|
1292
1292
|
content: string;
|
|
1293
|
-
}[][];
|
|
1294
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1293
|
+
}[][] | undefined;
|
|
1295
1294
|
};
|
|
1295
|
+
fingerprintId: string;
|
|
1296
1296
|
authToken?: string | undefined;
|
|
1297
1297
|
}>, z.ZodObject<{
|
|
1298
1298
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -1529,7 +1529,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1529
1529
|
homedir: string;
|
|
1530
1530
|
cpus: number;
|
|
1531
1531
|
}>;
|
|
1532
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1532
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1533
1533
|
path: z.ZodString;
|
|
1534
1534
|
content: z.ZodString;
|
|
1535
1535
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1538,7 +1538,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1538
1538
|
}, {
|
|
1539
1539
|
path: string;
|
|
1540
1540
|
content: string;
|
|
1541
|
-
}>, "many">, "many"
|
|
1541
|
+
}>, "many">, "many">>;
|
|
1542
1542
|
}, "strip", z.ZodTypeAny, {
|
|
1543
1543
|
currentWorkingDirectory: string;
|
|
1544
1544
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1560,11 +1560,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1560
1560
|
homedir: string;
|
|
1561
1561
|
cpus: number;
|
|
1562
1562
|
};
|
|
1563
|
-
|
|
1563
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1564
|
+
fileVersions?: {
|
|
1564
1565
|
path: string;
|
|
1565
1566
|
content: string;
|
|
1566
|
-
}[][];
|
|
1567
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1567
|
+
}[][] | undefined;
|
|
1568
1568
|
}, {
|
|
1569
1569
|
currentWorkingDirectory: string;
|
|
1570
1570
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1586,11 +1586,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1586
1586
|
homedir: string;
|
|
1587
1587
|
cpus: number;
|
|
1588
1588
|
};
|
|
1589
|
-
|
|
1589
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1590
|
+
fileVersions?: {
|
|
1590
1591
|
path: string;
|
|
1591
1592
|
content: string;
|
|
1592
|
-
}[][];
|
|
1593
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1593
|
+
}[][] | undefined;
|
|
1594
1594
|
}>;
|
|
1595
1595
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
1596
1596
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -1782,6 +1782,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1782
1782
|
role: "user" | "assistant";
|
|
1783
1783
|
}>, "many">;
|
|
1784
1784
|
}, "strip", z.ZodTypeAny, {
|
|
1785
|
+
agentContext: string;
|
|
1785
1786
|
fileContext: {
|
|
1786
1787
|
currentWorkingDirectory: string;
|
|
1787
1788
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1803,13 +1804,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1803
1804
|
homedir: string;
|
|
1804
1805
|
cpus: number;
|
|
1805
1806
|
};
|
|
1806
|
-
|
|
1807
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1808
|
+
fileVersions?: {
|
|
1807
1809
|
path: string;
|
|
1808
1810
|
content: string;
|
|
1809
|
-
}[][];
|
|
1810
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1811
|
+
}[][] | undefined;
|
|
1811
1812
|
};
|
|
1812
|
-
agentContext: string;
|
|
1813
1813
|
messageHistory: {
|
|
1814
1814
|
content: string | ({
|
|
1815
1815
|
type: "text";
|
|
@@ -1846,6 +1846,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1846
1846
|
role: "user" | "assistant";
|
|
1847
1847
|
}[];
|
|
1848
1848
|
}, {
|
|
1849
|
+
agentContext: string;
|
|
1849
1850
|
fileContext: {
|
|
1850
1851
|
currentWorkingDirectory: string;
|
|
1851
1852
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1867,13 +1868,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1867
1868
|
homedir: string;
|
|
1868
1869
|
cpus: number;
|
|
1869
1870
|
};
|
|
1870
|
-
|
|
1871
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1872
|
+
fileVersions?: {
|
|
1871
1873
|
path: string;
|
|
1872
1874
|
content: string;
|
|
1873
|
-
}[][];
|
|
1874
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1875
|
+
}[][] | undefined;
|
|
1875
1876
|
};
|
|
1876
|
-
agentContext: string;
|
|
1877
1877
|
messageHistory: {
|
|
1878
1878
|
content: string | ({
|
|
1879
1879
|
type: "text";
|
|
@@ -1916,12 +1916,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1916
1916
|
id: z.ZodString;
|
|
1917
1917
|
}, "strip", z.ZodTypeAny, {
|
|
1918
1918
|
name: string;
|
|
1919
|
-
id: string;
|
|
1920
1919
|
parameters: Record<string, string>;
|
|
1920
|
+
id: string;
|
|
1921
1921
|
}, {
|
|
1922
1922
|
name: string;
|
|
1923
|
-
id: string;
|
|
1924
1923
|
parameters: Record<string, string>;
|
|
1924
|
+
id: string;
|
|
1925
1925
|
}>, "many">;
|
|
1926
1926
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1927
1927
|
name: z.ZodString;
|
|
@@ -1940,6 +1940,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1940
1940
|
type: "prompt-response";
|
|
1941
1941
|
promptId: string;
|
|
1942
1942
|
agentState: {
|
|
1943
|
+
agentContext: string;
|
|
1943
1944
|
fileContext: {
|
|
1944
1945
|
currentWorkingDirectory: string;
|
|
1945
1946
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1961,13 +1962,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1961
1962
|
homedir: string;
|
|
1962
1963
|
cpus: number;
|
|
1963
1964
|
};
|
|
1964
|
-
|
|
1965
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1966
|
+
fileVersions?: {
|
|
1965
1967
|
path: string;
|
|
1966
1968
|
content: string;
|
|
1967
|
-
}[][];
|
|
1968
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1969
|
+
}[][] | undefined;
|
|
1969
1970
|
};
|
|
1970
|
-
agentContext: string;
|
|
1971
1971
|
messageHistory: {
|
|
1972
1972
|
content: string | ({
|
|
1973
1973
|
type: "text";
|
|
@@ -2011,13 +2011,14 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
2011
2011
|
}[];
|
|
2012
2012
|
toolCalls: {
|
|
2013
2013
|
name: string;
|
|
2014
|
-
id: string;
|
|
2015
2014
|
parameters: Record<string, string>;
|
|
2015
|
+
id: string;
|
|
2016
2016
|
}[];
|
|
2017
2017
|
}, {
|
|
2018
2018
|
type: "prompt-response";
|
|
2019
2019
|
promptId: string;
|
|
2020
2020
|
agentState: {
|
|
2021
|
+
agentContext: string;
|
|
2021
2022
|
fileContext: {
|
|
2022
2023
|
currentWorkingDirectory: string;
|
|
2023
2024
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2039,13 +2040,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
2039
2040
|
homedir: string;
|
|
2040
2041
|
cpus: number;
|
|
2041
2042
|
};
|
|
2042
|
-
|
|
2043
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2044
|
+
fileVersions?: {
|
|
2043
2045
|
path: string;
|
|
2044
2046
|
content: string;
|
|
2045
|
-
}[][];
|
|
2046
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2047
|
+
}[][] | undefined;
|
|
2047
2048
|
};
|
|
2048
|
-
agentContext: string;
|
|
2049
2049
|
messageHistory: {
|
|
2050
2050
|
content: string | ({
|
|
2051
2051
|
type: "text";
|
|
@@ -2089,8 +2089,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
2089
2089
|
}[];
|
|
2090
2090
|
toolCalls: {
|
|
2091
2091
|
name: string;
|
|
2092
|
-
id: string;
|
|
2093
2092
|
parameters: Record<string, string>;
|
|
2093
|
+
id: string;
|
|
2094
2094
|
}[];
|
|
2095
2095
|
}>;
|
|
2096
2096
|
export type PromptResponse = z.infer<typeof PromptResponseSchema>;
|
|
@@ -2255,7 +2255,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2255
2255
|
homedir: string;
|
|
2256
2256
|
cpus: number;
|
|
2257
2257
|
}>;
|
|
2258
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2258
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2259
2259
|
path: z.ZodString;
|
|
2260
2260
|
content: z.ZodString;
|
|
2261
2261
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2264,7 +2264,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2264
2264
|
}, {
|
|
2265
2265
|
path: string;
|
|
2266
2266
|
content: string;
|
|
2267
|
-
}>, "many">, "many"
|
|
2267
|
+
}>, "many">, "many">>;
|
|
2268
2268
|
}, "strip", z.ZodTypeAny, {
|
|
2269
2269
|
currentWorkingDirectory: string;
|
|
2270
2270
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2286,11 +2286,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2286
2286
|
homedir: string;
|
|
2287
2287
|
cpus: number;
|
|
2288
2288
|
};
|
|
2289
|
-
|
|
2289
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2290
|
+
fileVersions?: {
|
|
2290
2291
|
path: string;
|
|
2291
2292
|
content: string;
|
|
2292
|
-
}[][];
|
|
2293
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2293
|
+
}[][] | undefined;
|
|
2294
2294
|
}, {
|
|
2295
2295
|
currentWorkingDirectory: string;
|
|
2296
2296
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2312,11 +2312,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2312
2312
|
homedir: string;
|
|
2313
2313
|
cpus: number;
|
|
2314
2314
|
};
|
|
2315
|
-
|
|
2315
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2316
|
+
fileVersions?: {
|
|
2316
2317
|
path: string;
|
|
2317
2318
|
content: string;
|
|
2318
|
-
}[][];
|
|
2319
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2319
|
+
}[][] | undefined;
|
|
2320
2320
|
}>;
|
|
2321
2321
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
2322
2322
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -2508,6 +2508,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2508
2508
|
role: "user" | "assistant";
|
|
2509
2509
|
}>, "many">;
|
|
2510
2510
|
}, "strip", z.ZodTypeAny, {
|
|
2511
|
+
agentContext: string;
|
|
2511
2512
|
fileContext: {
|
|
2512
2513
|
currentWorkingDirectory: string;
|
|
2513
2514
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2529,13 +2530,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2529
2530
|
homedir: string;
|
|
2530
2531
|
cpus: number;
|
|
2531
2532
|
};
|
|
2532
|
-
|
|
2533
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2534
|
+
fileVersions?: {
|
|
2533
2535
|
path: string;
|
|
2534
2536
|
content: string;
|
|
2535
|
-
}[][];
|
|
2536
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2537
|
+
}[][] | undefined;
|
|
2537
2538
|
};
|
|
2538
|
-
agentContext: string;
|
|
2539
2539
|
messageHistory: {
|
|
2540
2540
|
content: string | ({
|
|
2541
2541
|
type: "text";
|
|
@@ -2572,6 +2572,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2572
2572
|
role: "user" | "assistant";
|
|
2573
2573
|
}[];
|
|
2574
2574
|
}, {
|
|
2575
|
+
agentContext: string;
|
|
2575
2576
|
fileContext: {
|
|
2576
2577
|
currentWorkingDirectory: string;
|
|
2577
2578
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2593,13 +2594,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2593
2594
|
homedir: string;
|
|
2594
2595
|
cpus: number;
|
|
2595
2596
|
};
|
|
2596
|
-
|
|
2597
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2598
|
+
fileVersions?: {
|
|
2597
2599
|
path: string;
|
|
2598
2600
|
content: string;
|
|
2599
|
-
}[][];
|
|
2600
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2601
|
+
}[][] | undefined;
|
|
2601
2602
|
};
|
|
2602
|
-
agentContext: string;
|
|
2603
2603
|
messageHistory: {
|
|
2604
2604
|
content: string | ({
|
|
2605
2605
|
type: "text";
|
|
@@ -2642,12 +2642,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2642
2642
|
id: z.ZodString;
|
|
2643
2643
|
}, "strip", z.ZodTypeAny, {
|
|
2644
2644
|
name: string;
|
|
2645
|
-
id: string;
|
|
2646
2645
|
parameters: Record<string, string>;
|
|
2646
|
+
id: string;
|
|
2647
2647
|
}, {
|
|
2648
2648
|
name: string;
|
|
2649
|
-
id: string;
|
|
2650
2649
|
parameters: Record<string, string>;
|
|
2650
|
+
id: string;
|
|
2651
2651
|
}>, "many">;
|
|
2652
2652
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2653
2653
|
name: z.ZodString;
|
|
@@ -2666,6 +2666,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2666
2666
|
type: "prompt-response";
|
|
2667
2667
|
promptId: string;
|
|
2668
2668
|
agentState: {
|
|
2669
|
+
agentContext: string;
|
|
2669
2670
|
fileContext: {
|
|
2670
2671
|
currentWorkingDirectory: string;
|
|
2671
2672
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2687,13 +2688,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2687
2688
|
homedir: string;
|
|
2688
2689
|
cpus: number;
|
|
2689
2690
|
};
|
|
2690
|
-
|
|
2691
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2692
|
+
fileVersions?: {
|
|
2691
2693
|
path: string;
|
|
2692
2694
|
content: string;
|
|
2693
|
-
}[][];
|
|
2694
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2695
|
+
}[][] | undefined;
|
|
2695
2696
|
};
|
|
2696
|
-
agentContext: string;
|
|
2697
2697
|
messageHistory: {
|
|
2698
2698
|
content: string | ({
|
|
2699
2699
|
type: "text";
|
|
@@ -2737,13 +2737,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2737
2737
|
}[];
|
|
2738
2738
|
toolCalls: {
|
|
2739
2739
|
name: string;
|
|
2740
|
-
id: string;
|
|
2741
2740
|
parameters: Record<string, string>;
|
|
2741
|
+
id: string;
|
|
2742
2742
|
}[];
|
|
2743
2743
|
}, {
|
|
2744
2744
|
type: "prompt-response";
|
|
2745
2745
|
promptId: string;
|
|
2746
2746
|
agentState: {
|
|
2747
|
+
agentContext: string;
|
|
2747
2748
|
fileContext: {
|
|
2748
2749
|
currentWorkingDirectory: string;
|
|
2749
2750
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2765,13 +2766,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2765
2766
|
homedir: string;
|
|
2766
2767
|
cpus: number;
|
|
2767
2768
|
};
|
|
2768
|
-
|
|
2769
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2770
|
+
fileVersions?: {
|
|
2769
2771
|
path: string;
|
|
2770
2772
|
content: string;
|
|
2771
|
-
}[][];
|
|
2772
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2773
|
+
}[][] | undefined;
|
|
2773
2774
|
};
|
|
2774
|
-
agentContext: string;
|
|
2775
2775
|
messageHistory: {
|
|
2776
2776
|
content: string | ({
|
|
2777
2777
|
type: "text";
|
|
@@ -2815,8 +2815,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2815
2815
|
}[];
|
|
2816
2816
|
toolCalls: {
|
|
2817
2817
|
name: string;
|
|
2818
|
-
id: string;
|
|
2819
2818
|
parameters: Record<string, string>;
|
|
2819
|
+
id: string;
|
|
2820
2820
|
}[];
|
|
2821
2821
|
}>, z.ZodObject<{
|
|
2822
2822
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -2886,12 +2886,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2886
2886
|
resetFileVersions: z.ZodBoolean;
|
|
2887
2887
|
}, "strip", z.ZodTypeAny, {
|
|
2888
2888
|
type: "tool-call";
|
|
2889
|
-
userInputId: string;
|
|
2890
2889
|
data: {
|
|
2891
2890
|
name: string;
|
|
2892
2891
|
id: string;
|
|
2893
2892
|
input: Record<string, any>;
|
|
2894
2893
|
};
|
|
2894
|
+
userInputId: string;
|
|
2895
2895
|
changesAlreadyApplied: {
|
|
2896
2896
|
path: string;
|
|
2897
2897
|
content: string;
|
|
@@ -2910,12 +2910,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2910
2910
|
resetFileVersions: boolean;
|
|
2911
2911
|
}, {
|
|
2912
2912
|
type: "tool-call";
|
|
2913
|
-
userInputId: string;
|
|
2914
2913
|
data: {
|
|
2915
2914
|
name: string;
|
|
2916
2915
|
id: string;
|
|
2917
2916
|
input: Record<string, any>;
|
|
2918
2917
|
};
|
|
2918
|
+
userInputId: string;
|
|
2919
2919
|
changesAlreadyApplied: {
|
|
2920
2920
|
path: string;
|
|
2921
2921
|
content: string;
|
|
@@ -2938,12 +2938,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2938
2938
|
result: z.ZodString;
|
|
2939
2939
|
}, "strip", z.ZodTypeAny, {
|
|
2940
2940
|
type: "terminal-command-result";
|
|
2941
|
-
userInputId: string;
|
|
2942
2941
|
result: string;
|
|
2942
|
+
userInputId: string;
|
|
2943
2943
|
}, {
|
|
2944
2944
|
type: "terminal-command-result";
|
|
2945
|
-
userInputId: string;
|
|
2946
2945
|
result: string;
|
|
2946
|
+
userInputId: string;
|
|
2947
2947
|
}>, z.ZodObject<{
|
|
2948
2948
|
type: z.ZodLiteral<"npm-version-status">;
|
|
2949
2949
|
isUpToDate: z.ZodBoolean;
|