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
|
@@ -292,7 +292,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
292
292
|
homedir: string;
|
|
293
293
|
cpus: number;
|
|
294
294
|
}>;
|
|
295
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
295
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
296
296
|
path: z.ZodString;
|
|
297
297
|
content: z.ZodString;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -301,7 +301,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
301
301
|
}, {
|
|
302
302
|
path: string;
|
|
303
303
|
content: string;
|
|
304
|
-
}>, "many">, "many"
|
|
304
|
+
}>, "many">, "many">>;
|
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
306
|
currentWorkingDirectory: string;
|
|
307
307
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -323,11 +323,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
323
323
|
homedir: string;
|
|
324
324
|
cpus: number;
|
|
325
325
|
};
|
|
326
|
-
|
|
326
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
327
|
+
fileVersions?: {
|
|
327
328
|
path: string;
|
|
328
329
|
content: string;
|
|
329
|
-
}[][];
|
|
330
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
330
|
+
}[][] | undefined;
|
|
331
331
|
}, {
|
|
332
332
|
currentWorkingDirectory: string;
|
|
333
333
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -349,11 +349,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
349
349
|
homedir: string;
|
|
350
350
|
cpus: number;
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
353
|
+
fileVersions?: {
|
|
353
354
|
path: string;
|
|
354
355
|
content: string;
|
|
355
|
-
}[][];
|
|
356
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
356
|
+
}[][] | undefined;
|
|
357
357
|
}>;
|
|
358
358
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
359
359
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -371,6 +371,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
371
371
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
372
372
|
}, "strip", z.ZodTypeAny, {
|
|
373
373
|
type: "user-input";
|
|
374
|
+
fileContext: {
|
|
375
|
+
currentWorkingDirectory: string;
|
|
376
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
377
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
378
|
+
knowledgeFiles: Record<string, string>;
|
|
379
|
+
gitChanges: {
|
|
380
|
+
status: string;
|
|
381
|
+
diff: string;
|
|
382
|
+
diffCached: string;
|
|
383
|
+
lastCommitMessages: string;
|
|
384
|
+
};
|
|
385
|
+
changesSinceLastChat: Record<string, string>;
|
|
386
|
+
shellConfigFiles: Record<string, string>;
|
|
387
|
+
systemInfo: {
|
|
388
|
+
platform: string;
|
|
389
|
+
shell: string;
|
|
390
|
+
nodeVersion: string;
|
|
391
|
+
arch: string;
|
|
392
|
+
homedir: string;
|
|
393
|
+
cpus: number;
|
|
394
|
+
};
|
|
395
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
396
|
+
fileVersions?: {
|
|
397
|
+
path: string;
|
|
398
|
+
content: string;
|
|
399
|
+
}[][] | undefined;
|
|
400
|
+
};
|
|
374
401
|
fingerprintId: string;
|
|
375
402
|
userInputId: string;
|
|
376
403
|
messages: {
|
|
@@ -408,6 +435,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
408
435
|
})[];
|
|
409
436
|
role: "user" | "assistant";
|
|
410
437
|
}[];
|
|
438
|
+
changesAlreadyApplied: {
|
|
439
|
+
path: string;
|
|
440
|
+
content: string;
|
|
441
|
+
type: "file" | "patch";
|
|
442
|
+
}[];
|
|
443
|
+
costMode: "max" | "lite" | "normal";
|
|
444
|
+
authToken?: string | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
type: "user-input";
|
|
411
447
|
fileContext: {
|
|
412
448
|
currentWorkingDirectory: string;
|
|
413
449
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -429,21 +465,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
429
465
|
homedir: string;
|
|
430
466
|
cpus: number;
|
|
431
467
|
};
|
|
432
|
-
|
|
468
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
469
|
+
fileVersions?: {
|
|
433
470
|
path: string;
|
|
434
471
|
content: string;
|
|
435
|
-
}[][];
|
|
436
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
472
|
+
}[][] | undefined;
|
|
437
473
|
};
|
|
438
|
-
changesAlreadyApplied: {
|
|
439
|
-
path: string;
|
|
440
|
-
content: string;
|
|
441
|
-
type: "file" | "patch";
|
|
442
|
-
}[];
|
|
443
|
-
costMode: "max" | "lite" | "normal";
|
|
444
|
-
authToken?: string | undefined;
|
|
445
|
-
}, {
|
|
446
|
-
type: "user-input";
|
|
447
474
|
fingerprintId: string;
|
|
448
475
|
userInputId: string;
|
|
449
476
|
messages: {
|
|
@@ -481,33 +508,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
481
508
|
})[];
|
|
482
509
|
role: "user" | "assistant";
|
|
483
510
|
}[];
|
|
484
|
-
fileContext: {
|
|
485
|
-
currentWorkingDirectory: string;
|
|
486
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
487
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
488
|
-
knowledgeFiles: Record<string, string>;
|
|
489
|
-
gitChanges: {
|
|
490
|
-
status: string;
|
|
491
|
-
diff: string;
|
|
492
|
-
diffCached: string;
|
|
493
|
-
lastCommitMessages: string;
|
|
494
|
-
};
|
|
495
|
-
changesSinceLastChat: Record<string, string>;
|
|
496
|
-
shellConfigFiles: Record<string, string>;
|
|
497
|
-
systemInfo: {
|
|
498
|
-
platform: string;
|
|
499
|
-
shell: string;
|
|
500
|
-
nodeVersion: string;
|
|
501
|
-
arch: string;
|
|
502
|
-
homedir: string;
|
|
503
|
-
cpus: number;
|
|
504
|
-
};
|
|
505
|
-
fileVersions: {
|
|
506
|
-
path: string;
|
|
507
|
-
content: string;
|
|
508
|
-
}[][];
|
|
509
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
510
|
-
};
|
|
511
511
|
changesAlreadyApplied: {
|
|
512
512
|
path: string;
|
|
513
513
|
content: string;
|
|
@@ -570,7 +570,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
570
570
|
homedir: string;
|
|
571
571
|
cpus: number;
|
|
572
572
|
}>;
|
|
573
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
573
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
574
574
|
path: z.ZodString;
|
|
575
575
|
content: z.ZodString;
|
|
576
576
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -579,7 +579,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
579
579
|
}, {
|
|
580
580
|
path: string;
|
|
581
581
|
content: string;
|
|
582
|
-
}>, "many">, "many"
|
|
582
|
+
}>, "many">, "many">>;
|
|
583
583
|
}, "strip", z.ZodTypeAny, {
|
|
584
584
|
currentWorkingDirectory: string;
|
|
585
585
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -601,11 +601,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
601
601
|
homedir: string;
|
|
602
602
|
cpus: number;
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
605
|
+
fileVersions?: {
|
|
605
606
|
path: string;
|
|
606
607
|
content: string;
|
|
607
|
-
}[][];
|
|
608
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
608
|
+
}[][] | undefined;
|
|
609
609
|
}, {
|
|
610
610
|
currentWorkingDirectory: string;
|
|
611
611
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -627,11 +627,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
627
627
|
homedir: string;
|
|
628
628
|
cpus: number;
|
|
629
629
|
};
|
|
630
|
-
|
|
630
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
631
|
+
fileVersions?: {
|
|
631
632
|
path: string;
|
|
632
633
|
content: string;
|
|
633
|
-
}[][];
|
|
634
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
634
|
+
}[][] | undefined;
|
|
635
635
|
}>;
|
|
636
636
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
637
637
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -823,6 +823,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
823
823
|
role: "user" | "assistant";
|
|
824
824
|
}>, "many">;
|
|
825
825
|
}, "strip", z.ZodTypeAny, {
|
|
826
|
+
agentContext: string;
|
|
826
827
|
fileContext: {
|
|
827
828
|
currentWorkingDirectory: string;
|
|
828
829
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -844,13 +845,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
844
845
|
homedir: string;
|
|
845
846
|
cpus: number;
|
|
846
847
|
};
|
|
847
|
-
|
|
848
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
849
|
+
fileVersions?: {
|
|
848
850
|
path: string;
|
|
849
851
|
content: string;
|
|
850
|
-
}[][];
|
|
851
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
852
|
+
}[][] | undefined;
|
|
852
853
|
};
|
|
853
|
-
agentContext: string;
|
|
854
854
|
messageHistory: {
|
|
855
855
|
content: string | ({
|
|
856
856
|
type: "text";
|
|
@@ -887,6 +887,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
887
887
|
role: "user" | "assistant";
|
|
888
888
|
}[];
|
|
889
889
|
}, {
|
|
890
|
+
agentContext: string;
|
|
890
891
|
fileContext: {
|
|
891
892
|
currentWorkingDirectory: string;
|
|
892
893
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -908,13 +909,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
908
909
|
homedir: string;
|
|
909
910
|
cpus: number;
|
|
910
911
|
};
|
|
911
|
-
|
|
912
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
913
|
+
fileVersions?: {
|
|
912
914
|
path: string;
|
|
913
915
|
content: string;
|
|
914
|
-
}[][];
|
|
915
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
916
|
+
}[][] | undefined;
|
|
916
917
|
};
|
|
917
|
-
agentContext: string;
|
|
918
918
|
messageHistory: {
|
|
919
919
|
content: string | ({
|
|
920
920
|
type: "text";
|
|
@@ -970,6 +970,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
970
970
|
costMode: "max" | "lite" | "normal";
|
|
971
971
|
promptId: string;
|
|
972
972
|
agentState: {
|
|
973
|
+
agentContext: string;
|
|
973
974
|
fileContext: {
|
|
974
975
|
currentWorkingDirectory: string;
|
|
975
976
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -991,13 +992,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
991
992
|
homedir: string;
|
|
992
993
|
cpus: number;
|
|
993
994
|
};
|
|
994
|
-
|
|
995
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
996
|
+
fileVersions?: {
|
|
995
997
|
path: string;
|
|
996
998
|
content: string;
|
|
997
|
-
}[][];
|
|
998
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
999
|
+
}[][] | undefined;
|
|
999
1000
|
};
|
|
1000
|
-
agentContext: string;
|
|
1001
1001
|
messageHistory: {
|
|
1002
1002
|
content: string | ({
|
|
1003
1003
|
type: "text";
|
|
@@ -1046,6 +1046,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1046
1046
|
fingerprintId: string;
|
|
1047
1047
|
promptId: string;
|
|
1048
1048
|
agentState: {
|
|
1049
|
+
agentContext: string;
|
|
1049
1050
|
fileContext: {
|
|
1050
1051
|
currentWorkingDirectory: string;
|
|
1051
1052
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1067,13 +1068,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1067
1068
|
homedir: string;
|
|
1068
1069
|
cpus: number;
|
|
1069
1070
|
};
|
|
1070
|
-
|
|
1071
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1072
|
+
fileVersions?: {
|
|
1071
1073
|
path: string;
|
|
1072
1074
|
content: string;
|
|
1073
|
-
}[][];
|
|
1074
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1075
|
+
}[][] | undefined;
|
|
1075
1076
|
};
|
|
1076
|
-
agentContext: string;
|
|
1077
1077
|
messageHistory: {
|
|
1078
1078
|
content: string | ({
|
|
1079
1079
|
type: "text";
|
|
@@ -1180,7 +1180,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1180
1180
|
homedir: string;
|
|
1181
1181
|
cpus: number;
|
|
1182
1182
|
}>;
|
|
1183
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1183
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1184
1184
|
path: z.ZodString;
|
|
1185
1185
|
content: z.ZodString;
|
|
1186
1186
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1189,7 +1189,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1189
1189
|
}, {
|
|
1190
1190
|
path: string;
|
|
1191
1191
|
content: string;
|
|
1192
|
-
}>, "many">, "many"
|
|
1192
|
+
}>, "many">, "many">>;
|
|
1193
1193
|
}, "strip", z.ZodTypeAny, {
|
|
1194
1194
|
currentWorkingDirectory: string;
|
|
1195
1195
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1211,11 +1211,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1211
1211
|
homedir: string;
|
|
1212
1212
|
cpus: number;
|
|
1213
1213
|
};
|
|
1214
|
-
|
|
1214
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1215
|
+
fileVersions?: {
|
|
1215
1216
|
path: string;
|
|
1216
1217
|
content: string;
|
|
1217
|
-
}[][];
|
|
1218
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1218
|
+
}[][] | undefined;
|
|
1219
1219
|
}, {
|
|
1220
1220
|
currentWorkingDirectory: string;
|
|
1221
1221
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1237,15 +1237,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1237
1237
|
homedir: string;
|
|
1238
1238
|
cpus: number;
|
|
1239
1239
|
};
|
|
1240
|
-
|
|
1240
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1241
|
+
fileVersions?: {
|
|
1241
1242
|
path: string;
|
|
1242
1243
|
content: string;
|
|
1243
|
-
}[][];
|
|
1244
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1244
|
+
}[][] | undefined;
|
|
1245
1245
|
}>;
|
|
1246
1246
|
}, "strip", z.ZodTypeAny, {
|
|
1247
1247
|
type: "init";
|
|
1248
|
-
fingerprintId: string;
|
|
1249
1248
|
fileContext: {
|
|
1250
1249
|
currentWorkingDirectory: string;
|
|
1251
1250
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1267,16 +1266,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1267
1266
|
homedir: string;
|
|
1268
1267
|
cpus: number;
|
|
1269
1268
|
};
|
|
1270
|
-
|
|
1269
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1270
|
+
fileVersions?: {
|
|
1271
1271
|
path: string;
|
|
1272
1272
|
content: string;
|
|
1273
|
-
}[][];
|
|
1274
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1273
|
+
}[][] | undefined;
|
|
1275
1274
|
};
|
|
1275
|
+
fingerprintId: string;
|
|
1276
1276
|
authToken?: string | undefined;
|
|
1277
1277
|
}, {
|
|
1278
1278
|
type: "init";
|
|
1279
|
-
fingerprintId: string;
|
|
1280
1279
|
fileContext: {
|
|
1281
1280
|
currentWorkingDirectory: string;
|
|
1282
1281
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1298,12 +1297,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1298
1297
|
homedir: string;
|
|
1299
1298
|
cpus: number;
|
|
1300
1299
|
};
|
|
1301
|
-
|
|
1300
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1301
|
+
fileVersions?: {
|
|
1302
1302
|
path: string;
|
|
1303
1303
|
content: string;
|
|
1304
|
-
}[][];
|
|
1305
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1304
|
+
}[][] | undefined;
|
|
1306
1305
|
};
|
|
1306
|
+
fingerprintId: string;
|
|
1307
1307
|
authToken?: string | undefined;
|
|
1308
1308
|
}>, z.ZodObject<{
|
|
1309
1309
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -1323,9 +1323,35 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1323
1323
|
}>]>;
|
|
1324
1324
|
}, "strip", z.ZodTypeAny, {
|
|
1325
1325
|
type: "action";
|
|
1326
|
-
txid: number;
|
|
1327
1326
|
data: {
|
|
1328
1327
|
type: "user-input";
|
|
1328
|
+
fileContext: {
|
|
1329
|
+
currentWorkingDirectory: string;
|
|
1330
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1331
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1332
|
+
knowledgeFiles: Record<string, string>;
|
|
1333
|
+
gitChanges: {
|
|
1334
|
+
status: string;
|
|
1335
|
+
diff: string;
|
|
1336
|
+
diffCached: string;
|
|
1337
|
+
lastCommitMessages: string;
|
|
1338
|
+
};
|
|
1339
|
+
changesSinceLastChat: Record<string, string>;
|
|
1340
|
+
shellConfigFiles: Record<string, string>;
|
|
1341
|
+
systemInfo: {
|
|
1342
|
+
platform: string;
|
|
1343
|
+
shell: string;
|
|
1344
|
+
nodeVersion: string;
|
|
1345
|
+
arch: string;
|
|
1346
|
+
homedir: string;
|
|
1347
|
+
cpus: number;
|
|
1348
|
+
};
|
|
1349
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1350
|
+
fileVersions?: {
|
|
1351
|
+
path: string;
|
|
1352
|
+
content: string;
|
|
1353
|
+
}[][] | undefined;
|
|
1354
|
+
};
|
|
1329
1355
|
fingerprintId: string;
|
|
1330
1356
|
userInputId: string;
|
|
1331
1357
|
messages: {
|
|
@@ -1363,33 +1389,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1363
1389
|
})[];
|
|
1364
1390
|
role: "user" | "assistant";
|
|
1365
1391
|
}[];
|
|
1366
|
-
fileContext: {
|
|
1367
|
-
currentWorkingDirectory: string;
|
|
1368
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1369
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1370
|
-
knowledgeFiles: Record<string, string>;
|
|
1371
|
-
gitChanges: {
|
|
1372
|
-
status: string;
|
|
1373
|
-
diff: string;
|
|
1374
|
-
diffCached: string;
|
|
1375
|
-
lastCommitMessages: string;
|
|
1376
|
-
};
|
|
1377
|
-
changesSinceLastChat: Record<string, string>;
|
|
1378
|
-
shellConfigFiles: Record<string, string>;
|
|
1379
|
-
systemInfo: {
|
|
1380
|
-
platform: string;
|
|
1381
|
-
shell: string;
|
|
1382
|
-
nodeVersion: string;
|
|
1383
|
-
arch: string;
|
|
1384
|
-
homedir: string;
|
|
1385
|
-
cpus: number;
|
|
1386
|
-
};
|
|
1387
|
-
fileVersions: {
|
|
1388
|
-
path: string;
|
|
1389
|
-
content: string;
|
|
1390
|
-
}[][];
|
|
1391
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1392
|
-
};
|
|
1393
1392
|
changesAlreadyApplied: {
|
|
1394
1393
|
path: string;
|
|
1395
1394
|
content: string;
|
|
@@ -1403,6 +1402,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1403
1402
|
costMode: "max" | "lite" | "normal";
|
|
1404
1403
|
promptId: string;
|
|
1405
1404
|
agentState: {
|
|
1405
|
+
agentContext: string;
|
|
1406
1406
|
fileContext: {
|
|
1407
1407
|
currentWorkingDirectory: string;
|
|
1408
1408
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1424,13 +1424,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1424
1424
|
homedir: string;
|
|
1425
1425
|
cpus: number;
|
|
1426
1426
|
};
|
|
1427
|
-
|
|
1427
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1428
|
+
fileVersions?: {
|
|
1428
1429
|
path: string;
|
|
1429
1430
|
content: string;
|
|
1430
|
-
}[][];
|
|
1431
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1431
|
+
}[][] | undefined;
|
|
1432
1432
|
};
|
|
1433
|
-
agentContext: string;
|
|
1434
1433
|
messageHistory: {
|
|
1435
1434
|
content: string | ({
|
|
1436
1435
|
type: "text";
|
|
@@ -1480,7 +1479,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1480
1479
|
requestId?: string | undefined;
|
|
1481
1480
|
} | {
|
|
1482
1481
|
type: "init";
|
|
1483
|
-
fingerprintId: string;
|
|
1484
1482
|
fileContext: {
|
|
1485
1483
|
currentWorkingDirectory: string;
|
|
1486
1484
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1502,12 +1500,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1502
1500
|
homedir: string;
|
|
1503
1501
|
cpus: number;
|
|
1504
1502
|
};
|
|
1505
|
-
|
|
1503
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1504
|
+
fileVersions?: {
|
|
1506
1505
|
path: string;
|
|
1507
1506
|
content: string;
|
|
1508
|
-
}[][];
|
|
1509
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1507
|
+
}[][] | undefined;
|
|
1510
1508
|
};
|
|
1509
|
+
fingerprintId: string;
|
|
1511
1510
|
authToken?: string | undefined;
|
|
1512
1511
|
} | {
|
|
1513
1512
|
type: "generate-commit-message";
|
|
@@ -1515,11 +1514,38 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1515
1514
|
stagedChanges: string;
|
|
1516
1515
|
authToken?: string | undefined;
|
|
1517
1516
|
};
|
|
1517
|
+
txid: number;
|
|
1518
1518
|
}, {
|
|
1519
1519
|
type: "action";
|
|
1520
|
-
txid: number;
|
|
1521
1520
|
data: {
|
|
1522
1521
|
type: "user-input";
|
|
1522
|
+
fileContext: {
|
|
1523
|
+
currentWorkingDirectory: string;
|
|
1524
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1525
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1526
|
+
knowledgeFiles: Record<string, string>;
|
|
1527
|
+
gitChanges: {
|
|
1528
|
+
status: string;
|
|
1529
|
+
diff: string;
|
|
1530
|
+
diffCached: string;
|
|
1531
|
+
lastCommitMessages: string;
|
|
1532
|
+
};
|
|
1533
|
+
changesSinceLastChat: Record<string, string>;
|
|
1534
|
+
shellConfigFiles: Record<string, string>;
|
|
1535
|
+
systemInfo: {
|
|
1536
|
+
platform: string;
|
|
1537
|
+
shell: string;
|
|
1538
|
+
nodeVersion: string;
|
|
1539
|
+
arch: string;
|
|
1540
|
+
homedir: string;
|
|
1541
|
+
cpus: number;
|
|
1542
|
+
};
|
|
1543
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1544
|
+
fileVersions?: {
|
|
1545
|
+
path: string;
|
|
1546
|
+
content: string;
|
|
1547
|
+
}[][] | undefined;
|
|
1548
|
+
};
|
|
1523
1549
|
fingerprintId: string;
|
|
1524
1550
|
userInputId: string;
|
|
1525
1551
|
messages: {
|
|
@@ -1557,33 +1583,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1557
1583
|
})[];
|
|
1558
1584
|
role: "user" | "assistant";
|
|
1559
1585
|
}[];
|
|
1560
|
-
fileContext: {
|
|
1561
|
-
currentWorkingDirectory: string;
|
|
1562
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1563
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1564
|
-
knowledgeFiles: Record<string, string>;
|
|
1565
|
-
gitChanges: {
|
|
1566
|
-
status: string;
|
|
1567
|
-
diff: string;
|
|
1568
|
-
diffCached: string;
|
|
1569
|
-
lastCommitMessages: string;
|
|
1570
|
-
};
|
|
1571
|
-
changesSinceLastChat: Record<string, string>;
|
|
1572
|
-
shellConfigFiles: Record<string, string>;
|
|
1573
|
-
systemInfo: {
|
|
1574
|
-
platform: string;
|
|
1575
|
-
shell: string;
|
|
1576
|
-
nodeVersion: string;
|
|
1577
|
-
arch: string;
|
|
1578
|
-
homedir: string;
|
|
1579
|
-
cpus: number;
|
|
1580
|
-
};
|
|
1581
|
-
fileVersions: {
|
|
1582
|
-
path: string;
|
|
1583
|
-
content: string;
|
|
1584
|
-
}[][];
|
|
1585
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1586
|
-
};
|
|
1587
1586
|
changesAlreadyApplied: {
|
|
1588
1587
|
path: string;
|
|
1589
1588
|
content: string;
|
|
@@ -1596,6 +1595,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1596
1595
|
fingerprintId: string;
|
|
1597
1596
|
promptId: string;
|
|
1598
1597
|
agentState: {
|
|
1598
|
+
agentContext: string;
|
|
1599
1599
|
fileContext: {
|
|
1600
1600
|
currentWorkingDirectory: string;
|
|
1601
1601
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1617,13 +1617,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1617
1617
|
homedir: string;
|
|
1618
1618
|
cpus: number;
|
|
1619
1619
|
};
|
|
1620
|
-
|
|
1620
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1621
|
+
fileVersions?: {
|
|
1621
1622
|
path: string;
|
|
1622
1623
|
content: string;
|
|
1623
|
-
}[][];
|
|
1624
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1624
|
+
}[][] | undefined;
|
|
1625
1625
|
};
|
|
1626
|
-
agentContext: string;
|
|
1627
1626
|
messageHistory: {
|
|
1628
1627
|
content: string | ({
|
|
1629
1628
|
type: "text";
|
|
@@ -1674,7 +1673,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1674
1673
|
requestId?: string | undefined;
|
|
1675
1674
|
} | {
|
|
1676
1675
|
type: "init";
|
|
1677
|
-
fingerprintId: string;
|
|
1678
1676
|
fileContext: {
|
|
1679
1677
|
currentWorkingDirectory: string;
|
|
1680
1678
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1696,12 +1694,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1696
1694
|
homedir: string;
|
|
1697
1695
|
cpus: number;
|
|
1698
1696
|
};
|
|
1699
|
-
|
|
1697
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1698
|
+
fileVersions?: {
|
|
1700
1699
|
path: string;
|
|
1701
1700
|
content: string;
|
|
1702
|
-
}[][];
|
|
1703
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1701
|
+
}[][] | undefined;
|
|
1704
1702
|
};
|
|
1703
|
+
fingerprintId: string;
|
|
1705
1704
|
authToken?: string | undefined;
|
|
1706
1705
|
} | {
|
|
1707
1706
|
type: "generate-commit-message";
|
|
@@ -1709,6 +1708,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1709
1708
|
stagedChanges: string;
|
|
1710
1709
|
authToken?: string | undefined;
|
|
1711
1710
|
};
|
|
1711
|
+
txid: number;
|
|
1712
1712
|
}>;
|
|
1713
1713
|
};
|
|
1714
1714
|
export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
@@ -1999,7 +1999,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1999
1999
|
homedir: string;
|
|
2000
2000
|
cpus: number;
|
|
2001
2001
|
}>;
|
|
2002
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2002
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2003
2003
|
path: z.ZodString;
|
|
2004
2004
|
content: z.ZodString;
|
|
2005
2005
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2008,7 +2008,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2008
2008
|
}, {
|
|
2009
2009
|
path: string;
|
|
2010
2010
|
content: string;
|
|
2011
|
-
}>, "many">, "many"
|
|
2011
|
+
}>, "many">, "many">>;
|
|
2012
2012
|
}, "strip", z.ZodTypeAny, {
|
|
2013
2013
|
currentWorkingDirectory: string;
|
|
2014
2014
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2030,11 +2030,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2030
2030
|
homedir: string;
|
|
2031
2031
|
cpus: number;
|
|
2032
2032
|
};
|
|
2033
|
-
|
|
2033
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2034
|
+
fileVersions?: {
|
|
2034
2035
|
path: string;
|
|
2035
2036
|
content: string;
|
|
2036
|
-
}[][];
|
|
2037
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2037
|
+
}[][] | undefined;
|
|
2038
2038
|
}, {
|
|
2039
2039
|
currentWorkingDirectory: string;
|
|
2040
2040
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2056,11 +2056,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2056
2056
|
homedir: string;
|
|
2057
2057
|
cpus: number;
|
|
2058
2058
|
};
|
|
2059
|
-
|
|
2059
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2060
|
+
fileVersions?: {
|
|
2060
2061
|
path: string;
|
|
2061
2062
|
content: string;
|
|
2062
|
-
}[][];
|
|
2063
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2063
|
+
}[][] | undefined;
|
|
2064
2064
|
}>;
|
|
2065
2065
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2066
2066
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2078,6 +2078,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2078
2078
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
2079
2079
|
}, "strip", z.ZodTypeAny, {
|
|
2080
2080
|
type: "user-input";
|
|
2081
|
+
fileContext: {
|
|
2082
|
+
currentWorkingDirectory: string;
|
|
2083
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
2084
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
2085
|
+
knowledgeFiles: Record<string, string>;
|
|
2086
|
+
gitChanges: {
|
|
2087
|
+
status: string;
|
|
2088
|
+
diff: string;
|
|
2089
|
+
diffCached: string;
|
|
2090
|
+
lastCommitMessages: string;
|
|
2091
|
+
};
|
|
2092
|
+
changesSinceLastChat: Record<string, string>;
|
|
2093
|
+
shellConfigFiles: Record<string, string>;
|
|
2094
|
+
systemInfo: {
|
|
2095
|
+
platform: string;
|
|
2096
|
+
shell: string;
|
|
2097
|
+
nodeVersion: string;
|
|
2098
|
+
arch: string;
|
|
2099
|
+
homedir: string;
|
|
2100
|
+
cpus: number;
|
|
2101
|
+
};
|
|
2102
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2103
|
+
fileVersions?: {
|
|
2104
|
+
path: string;
|
|
2105
|
+
content: string;
|
|
2106
|
+
}[][] | undefined;
|
|
2107
|
+
};
|
|
2081
2108
|
fingerprintId: string;
|
|
2082
2109
|
userInputId: string;
|
|
2083
2110
|
messages: {
|
|
@@ -2115,6 +2142,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2115
2142
|
})[];
|
|
2116
2143
|
role: "user" | "assistant";
|
|
2117
2144
|
}[];
|
|
2145
|
+
changesAlreadyApplied: {
|
|
2146
|
+
path: string;
|
|
2147
|
+
content: string;
|
|
2148
|
+
type: "file" | "patch";
|
|
2149
|
+
}[];
|
|
2150
|
+
costMode: "max" | "lite" | "normal";
|
|
2151
|
+
authToken?: string | undefined;
|
|
2152
|
+
}, {
|
|
2153
|
+
type: "user-input";
|
|
2118
2154
|
fileContext: {
|
|
2119
2155
|
currentWorkingDirectory: string;
|
|
2120
2156
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2136,21 +2172,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2136
2172
|
homedir: string;
|
|
2137
2173
|
cpus: number;
|
|
2138
2174
|
};
|
|
2139
|
-
|
|
2175
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2176
|
+
fileVersions?: {
|
|
2140
2177
|
path: string;
|
|
2141
2178
|
content: string;
|
|
2142
|
-
}[][];
|
|
2143
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2179
|
+
}[][] | undefined;
|
|
2144
2180
|
};
|
|
2145
|
-
changesAlreadyApplied: {
|
|
2146
|
-
path: string;
|
|
2147
|
-
content: string;
|
|
2148
|
-
type: "file" | "patch";
|
|
2149
|
-
}[];
|
|
2150
|
-
costMode: "max" | "lite" | "normal";
|
|
2151
|
-
authToken?: string | undefined;
|
|
2152
|
-
}, {
|
|
2153
|
-
type: "user-input";
|
|
2154
2181
|
fingerprintId: string;
|
|
2155
2182
|
userInputId: string;
|
|
2156
2183
|
messages: {
|
|
@@ -2188,33 +2215,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2188
2215
|
})[];
|
|
2189
2216
|
role: "user" | "assistant";
|
|
2190
2217
|
}[];
|
|
2191
|
-
fileContext: {
|
|
2192
|
-
currentWorkingDirectory: string;
|
|
2193
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2194
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2195
|
-
knowledgeFiles: Record<string, string>;
|
|
2196
|
-
gitChanges: {
|
|
2197
|
-
status: string;
|
|
2198
|
-
diff: string;
|
|
2199
|
-
diffCached: string;
|
|
2200
|
-
lastCommitMessages: string;
|
|
2201
|
-
};
|
|
2202
|
-
changesSinceLastChat: Record<string, string>;
|
|
2203
|
-
shellConfigFiles: Record<string, string>;
|
|
2204
|
-
systemInfo: {
|
|
2205
|
-
platform: string;
|
|
2206
|
-
shell: string;
|
|
2207
|
-
nodeVersion: string;
|
|
2208
|
-
arch: string;
|
|
2209
|
-
homedir: string;
|
|
2210
|
-
cpus: number;
|
|
2211
|
-
};
|
|
2212
|
-
fileVersions: {
|
|
2213
|
-
path: string;
|
|
2214
|
-
content: string;
|
|
2215
|
-
}[][];
|
|
2216
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2217
|
-
};
|
|
2218
2218
|
changesAlreadyApplied: {
|
|
2219
2219
|
path: string;
|
|
2220
2220
|
content: string;
|
|
@@ -2277,7 +2277,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2277
2277
|
homedir: string;
|
|
2278
2278
|
cpus: number;
|
|
2279
2279
|
}>;
|
|
2280
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2280
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2281
2281
|
path: z.ZodString;
|
|
2282
2282
|
content: z.ZodString;
|
|
2283
2283
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2286,7 +2286,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2286
2286
|
}, {
|
|
2287
2287
|
path: string;
|
|
2288
2288
|
content: string;
|
|
2289
|
-
}>, "many">, "many"
|
|
2289
|
+
}>, "many">, "many">>;
|
|
2290
2290
|
}, "strip", z.ZodTypeAny, {
|
|
2291
2291
|
currentWorkingDirectory: string;
|
|
2292
2292
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2308,11 +2308,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2308
2308
|
homedir: string;
|
|
2309
2309
|
cpus: number;
|
|
2310
2310
|
};
|
|
2311
|
-
|
|
2311
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2312
|
+
fileVersions?: {
|
|
2312
2313
|
path: string;
|
|
2313
2314
|
content: string;
|
|
2314
|
-
}[][];
|
|
2315
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2315
|
+
}[][] | undefined;
|
|
2316
2316
|
}, {
|
|
2317
2317
|
currentWorkingDirectory: string;
|
|
2318
2318
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2334,11 +2334,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2334
2334
|
homedir: string;
|
|
2335
2335
|
cpus: number;
|
|
2336
2336
|
};
|
|
2337
|
-
|
|
2337
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2338
|
+
fileVersions?: {
|
|
2338
2339
|
path: string;
|
|
2339
2340
|
content: string;
|
|
2340
|
-
}[][];
|
|
2341
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2341
|
+
}[][] | undefined;
|
|
2342
2342
|
}>;
|
|
2343
2343
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
2344
2344
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -2530,6 +2530,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2530
2530
|
role: "user" | "assistant";
|
|
2531
2531
|
}>, "many">;
|
|
2532
2532
|
}, "strip", z.ZodTypeAny, {
|
|
2533
|
+
agentContext: string;
|
|
2533
2534
|
fileContext: {
|
|
2534
2535
|
currentWorkingDirectory: string;
|
|
2535
2536
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2551,13 +2552,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2551
2552
|
homedir: string;
|
|
2552
2553
|
cpus: number;
|
|
2553
2554
|
};
|
|
2554
|
-
|
|
2555
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2556
|
+
fileVersions?: {
|
|
2555
2557
|
path: string;
|
|
2556
2558
|
content: string;
|
|
2557
|
-
}[][];
|
|
2558
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2559
|
+
}[][] | undefined;
|
|
2559
2560
|
};
|
|
2560
|
-
agentContext: string;
|
|
2561
2561
|
messageHistory: {
|
|
2562
2562
|
content: string | ({
|
|
2563
2563
|
type: "text";
|
|
@@ -2594,6 +2594,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2594
2594
|
role: "user" | "assistant";
|
|
2595
2595
|
}[];
|
|
2596
2596
|
}, {
|
|
2597
|
+
agentContext: string;
|
|
2597
2598
|
fileContext: {
|
|
2598
2599
|
currentWorkingDirectory: string;
|
|
2599
2600
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2615,13 +2616,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2615
2616
|
homedir: string;
|
|
2616
2617
|
cpus: number;
|
|
2617
2618
|
};
|
|
2618
|
-
|
|
2619
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2620
|
+
fileVersions?: {
|
|
2619
2621
|
path: string;
|
|
2620
2622
|
content: string;
|
|
2621
|
-
}[][];
|
|
2622
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2623
|
+
}[][] | undefined;
|
|
2623
2624
|
};
|
|
2624
|
-
agentContext: string;
|
|
2625
2625
|
messageHistory: {
|
|
2626
2626
|
content: string | ({
|
|
2627
2627
|
type: "text";
|
|
@@ -2677,6 +2677,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2677
2677
|
costMode: "max" | "lite" | "normal";
|
|
2678
2678
|
promptId: string;
|
|
2679
2679
|
agentState: {
|
|
2680
|
+
agentContext: string;
|
|
2680
2681
|
fileContext: {
|
|
2681
2682
|
currentWorkingDirectory: string;
|
|
2682
2683
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2698,13 +2699,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2698
2699
|
homedir: string;
|
|
2699
2700
|
cpus: number;
|
|
2700
2701
|
};
|
|
2701
|
-
|
|
2702
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2703
|
+
fileVersions?: {
|
|
2702
2704
|
path: string;
|
|
2703
2705
|
content: string;
|
|
2704
|
-
}[][];
|
|
2705
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2706
|
+
}[][] | undefined;
|
|
2706
2707
|
};
|
|
2707
|
-
agentContext: string;
|
|
2708
2708
|
messageHistory: {
|
|
2709
2709
|
content: string | ({
|
|
2710
2710
|
type: "text";
|
|
@@ -2753,6 +2753,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2753
2753
|
fingerprintId: string;
|
|
2754
2754
|
promptId: string;
|
|
2755
2755
|
agentState: {
|
|
2756
|
+
agentContext: string;
|
|
2756
2757
|
fileContext: {
|
|
2757
2758
|
currentWorkingDirectory: string;
|
|
2758
2759
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2774,13 +2775,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2774
2775
|
homedir: string;
|
|
2775
2776
|
cpus: number;
|
|
2776
2777
|
};
|
|
2777
|
-
|
|
2778
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2779
|
+
fileVersions?: {
|
|
2778
2780
|
path: string;
|
|
2779
2781
|
content: string;
|
|
2780
|
-
}[][];
|
|
2781
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2782
|
+
}[][] | undefined;
|
|
2782
2783
|
};
|
|
2783
|
-
agentContext: string;
|
|
2784
2784
|
messageHistory: {
|
|
2785
2785
|
content: string | ({
|
|
2786
2786
|
type: "text";
|
|
@@ -2887,7 +2887,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2887
2887
|
homedir: string;
|
|
2888
2888
|
cpus: number;
|
|
2889
2889
|
}>;
|
|
2890
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2890
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2891
2891
|
path: z.ZodString;
|
|
2892
2892
|
content: z.ZodString;
|
|
2893
2893
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2896,7 +2896,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2896
2896
|
}, {
|
|
2897
2897
|
path: string;
|
|
2898
2898
|
content: string;
|
|
2899
|
-
}>, "many">, "many"
|
|
2899
|
+
}>, "many">, "many">>;
|
|
2900
2900
|
}, "strip", z.ZodTypeAny, {
|
|
2901
2901
|
currentWorkingDirectory: string;
|
|
2902
2902
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2918,11 +2918,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2918
2918
|
homedir: string;
|
|
2919
2919
|
cpus: number;
|
|
2920
2920
|
};
|
|
2921
|
-
|
|
2921
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2922
|
+
fileVersions?: {
|
|
2922
2923
|
path: string;
|
|
2923
2924
|
content: string;
|
|
2924
|
-
}[][];
|
|
2925
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2925
|
+
}[][] | undefined;
|
|
2926
2926
|
}, {
|
|
2927
2927
|
currentWorkingDirectory: string;
|
|
2928
2928
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2944,15 +2944,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2944
2944
|
homedir: string;
|
|
2945
2945
|
cpus: number;
|
|
2946
2946
|
};
|
|
2947
|
-
|
|
2947
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2948
|
+
fileVersions?: {
|
|
2948
2949
|
path: string;
|
|
2949
2950
|
content: string;
|
|
2950
|
-
}[][];
|
|
2951
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2951
|
+
}[][] | undefined;
|
|
2952
2952
|
}>;
|
|
2953
2953
|
}, "strip", z.ZodTypeAny, {
|
|
2954
2954
|
type: "init";
|
|
2955
|
-
fingerprintId: string;
|
|
2956
2955
|
fileContext: {
|
|
2957
2956
|
currentWorkingDirectory: string;
|
|
2958
2957
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2974,16 +2973,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2974
2973
|
homedir: string;
|
|
2975
2974
|
cpus: number;
|
|
2976
2975
|
};
|
|
2977
|
-
|
|
2976
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2977
|
+
fileVersions?: {
|
|
2978
2978
|
path: string;
|
|
2979
2979
|
content: string;
|
|
2980
|
-
}[][];
|
|
2981
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2980
|
+
}[][] | undefined;
|
|
2982
2981
|
};
|
|
2982
|
+
fingerprintId: string;
|
|
2983
2983
|
authToken?: string | undefined;
|
|
2984
2984
|
}, {
|
|
2985
2985
|
type: "init";
|
|
2986
|
-
fingerprintId: string;
|
|
2987
2986
|
fileContext: {
|
|
2988
2987
|
currentWorkingDirectory: string;
|
|
2989
2988
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3005,12 +3004,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3005
3004
|
homedir: string;
|
|
3006
3005
|
cpus: number;
|
|
3007
3006
|
};
|
|
3008
|
-
|
|
3007
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3008
|
+
fileVersions?: {
|
|
3009
3009
|
path: string;
|
|
3010
3010
|
content: string;
|
|
3011
|
-
}[][];
|
|
3012
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3011
|
+
}[][] | undefined;
|
|
3013
3012
|
};
|
|
3013
|
+
fingerprintId: string;
|
|
3014
3014
|
authToken?: string | undefined;
|
|
3015
3015
|
}>, z.ZodObject<{
|
|
3016
3016
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -3030,9 +3030,35 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3030
3030
|
}>]>;
|
|
3031
3031
|
}, "strip", z.ZodTypeAny, {
|
|
3032
3032
|
type: "action";
|
|
3033
|
-
txid: number;
|
|
3034
3033
|
data: {
|
|
3035
3034
|
type: "user-input";
|
|
3035
|
+
fileContext: {
|
|
3036
|
+
currentWorkingDirectory: string;
|
|
3037
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
3038
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
3039
|
+
knowledgeFiles: Record<string, string>;
|
|
3040
|
+
gitChanges: {
|
|
3041
|
+
status: string;
|
|
3042
|
+
diff: string;
|
|
3043
|
+
diffCached: string;
|
|
3044
|
+
lastCommitMessages: string;
|
|
3045
|
+
};
|
|
3046
|
+
changesSinceLastChat: Record<string, string>;
|
|
3047
|
+
shellConfigFiles: Record<string, string>;
|
|
3048
|
+
systemInfo: {
|
|
3049
|
+
platform: string;
|
|
3050
|
+
shell: string;
|
|
3051
|
+
nodeVersion: string;
|
|
3052
|
+
arch: string;
|
|
3053
|
+
homedir: string;
|
|
3054
|
+
cpus: number;
|
|
3055
|
+
};
|
|
3056
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3057
|
+
fileVersions?: {
|
|
3058
|
+
path: string;
|
|
3059
|
+
content: string;
|
|
3060
|
+
}[][] | undefined;
|
|
3061
|
+
};
|
|
3036
3062
|
fingerprintId: string;
|
|
3037
3063
|
userInputId: string;
|
|
3038
3064
|
messages: {
|
|
@@ -3070,33 +3096,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3070
3096
|
})[];
|
|
3071
3097
|
role: "user" | "assistant";
|
|
3072
3098
|
}[];
|
|
3073
|
-
fileContext: {
|
|
3074
|
-
currentWorkingDirectory: string;
|
|
3075
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3076
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3077
|
-
knowledgeFiles: Record<string, string>;
|
|
3078
|
-
gitChanges: {
|
|
3079
|
-
status: string;
|
|
3080
|
-
diff: string;
|
|
3081
|
-
diffCached: string;
|
|
3082
|
-
lastCommitMessages: string;
|
|
3083
|
-
};
|
|
3084
|
-
changesSinceLastChat: Record<string, string>;
|
|
3085
|
-
shellConfigFiles: Record<string, string>;
|
|
3086
|
-
systemInfo: {
|
|
3087
|
-
platform: string;
|
|
3088
|
-
shell: string;
|
|
3089
|
-
nodeVersion: string;
|
|
3090
|
-
arch: string;
|
|
3091
|
-
homedir: string;
|
|
3092
|
-
cpus: number;
|
|
3093
|
-
};
|
|
3094
|
-
fileVersions: {
|
|
3095
|
-
path: string;
|
|
3096
|
-
content: string;
|
|
3097
|
-
}[][];
|
|
3098
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3099
|
-
};
|
|
3100
3099
|
changesAlreadyApplied: {
|
|
3101
3100
|
path: string;
|
|
3102
3101
|
content: string;
|
|
@@ -3110,6 +3109,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3110
3109
|
costMode: "max" | "lite" | "normal";
|
|
3111
3110
|
promptId: string;
|
|
3112
3111
|
agentState: {
|
|
3112
|
+
agentContext: string;
|
|
3113
3113
|
fileContext: {
|
|
3114
3114
|
currentWorkingDirectory: string;
|
|
3115
3115
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3131,13 +3131,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3131
3131
|
homedir: string;
|
|
3132
3132
|
cpus: number;
|
|
3133
3133
|
};
|
|
3134
|
-
|
|
3134
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3135
|
+
fileVersions?: {
|
|
3135
3136
|
path: string;
|
|
3136
3137
|
content: string;
|
|
3137
|
-
}[][];
|
|
3138
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3138
|
+
}[][] | undefined;
|
|
3139
3139
|
};
|
|
3140
|
-
agentContext: string;
|
|
3141
3140
|
messageHistory: {
|
|
3142
3141
|
content: string | ({
|
|
3143
3142
|
type: "text";
|
|
@@ -3187,7 +3186,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3187
3186
|
requestId?: string | undefined;
|
|
3188
3187
|
} | {
|
|
3189
3188
|
type: "init";
|
|
3190
|
-
fingerprintId: string;
|
|
3191
3189
|
fileContext: {
|
|
3192
3190
|
currentWorkingDirectory: string;
|
|
3193
3191
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3209,12 +3207,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3209
3207
|
homedir: string;
|
|
3210
3208
|
cpus: number;
|
|
3211
3209
|
};
|
|
3212
|
-
|
|
3210
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3211
|
+
fileVersions?: {
|
|
3213
3212
|
path: string;
|
|
3214
3213
|
content: string;
|
|
3215
|
-
}[][];
|
|
3216
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3214
|
+
}[][] | undefined;
|
|
3217
3215
|
};
|
|
3216
|
+
fingerprintId: string;
|
|
3218
3217
|
authToken?: string | undefined;
|
|
3219
3218
|
} | {
|
|
3220
3219
|
type: "generate-commit-message";
|
|
@@ -3222,11 +3221,38 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3222
3221
|
stagedChanges: string;
|
|
3223
3222
|
authToken?: string | undefined;
|
|
3224
3223
|
};
|
|
3224
|
+
txid: number;
|
|
3225
3225
|
}, {
|
|
3226
3226
|
type: "action";
|
|
3227
|
-
txid: number;
|
|
3228
3227
|
data: {
|
|
3229
3228
|
type: "user-input";
|
|
3229
|
+
fileContext: {
|
|
3230
|
+
currentWorkingDirectory: string;
|
|
3231
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
3232
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
3233
|
+
knowledgeFiles: Record<string, string>;
|
|
3234
|
+
gitChanges: {
|
|
3235
|
+
status: string;
|
|
3236
|
+
diff: string;
|
|
3237
|
+
diffCached: string;
|
|
3238
|
+
lastCommitMessages: string;
|
|
3239
|
+
};
|
|
3240
|
+
changesSinceLastChat: Record<string, string>;
|
|
3241
|
+
shellConfigFiles: Record<string, string>;
|
|
3242
|
+
systemInfo: {
|
|
3243
|
+
platform: string;
|
|
3244
|
+
shell: string;
|
|
3245
|
+
nodeVersion: string;
|
|
3246
|
+
arch: string;
|
|
3247
|
+
homedir: string;
|
|
3248
|
+
cpus: number;
|
|
3249
|
+
};
|
|
3250
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3251
|
+
fileVersions?: {
|
|
3252
|
+
path: string;
|
|
3253
|
+
content: string;
|
|
3254
|
+
}[][] | undefined;
|
|
3255
|
+
};
|
|
3230
3256
|
fingerprintId: string;
|
|
3231
3257
|
userInputId: string;
|
|
3232
3258
|
messages: {
|
|
@@ -3257,40 +3283,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3257
3283
|
type: "base64";
|
|
3258
3284
|
media_type: "image/jpeg";
|
|
3259
3285
|
data: string;
|
|
3260
|
-
};
|
|
3261
|
-
cache_control?: {
|
|
3262
|
-
type: "ephemeral";
|
|
3263
|
-
} | undefined;
|
|
3264
|
-
})[];
|
|
3265
|
-
role: "user" | "assistant";
|
|
3266
|
-
}[];
|
|
3267
|
-
fileContext: {
|
|
3268
|
-
currentWorkingDirectory: string;
|
|
3269
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3270
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3271
|
-
knowledgeFiles: Record<string, string>;
|
|
3272
|
-
gitChanges: {
|
|
3273
|
-
status: string;
|
|
3274
|
-
diff: string;
|
|
3275
|
-
diffCached: string;
|
|
3276
|
-
lastCommitMessages: string;
|
|
3277
|
-
};
|
|
3278
|
-
changesSinceLastChat: Record<string, string>;
|
|
3279
|
-
shellConfigFiles: Record<string, string>;
|
|
3280
|
-
systemInfo: {
|
|
3281
|
-
platform: string;
|
|
3282
|
-
shell: string;
|
|
3283
|
-
nodeVersion: string;
|
|
3284
|
-
arch: string;
|
|
3285
|
-
homedir: string;
|
|
3286
|
-
cpus: number;
|
|
3287
|
-
};
|
|
3288
|
-
fileVersions: {
|
|
3289
|
-
path: string;
|
|
3290
|
-
content: string;
|
|
3291
|
-
}[][];
|
|
3292
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3293
|
-
};
|
|
3286
|
+
};
|
|
3287
|
+
cache_control?: {
|
|
3288
|
+
type: "ephemeral";
|
|
3289
|
+
} | undefined;
|
|
3290
|
+
})[];
|
|
3291
|
+
role: "user" | "assistant";
|
|
3292
|
+
}[];
|
|
3294
3293
|
changesAlreadyApplied: {
|
|
3295
3294
|
path: string;
|
|
3296
3295
|
content: string;
|
|
@@ -3303,6 +3302,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3303
3302
|
fingerprintId: string;
|
|
3304
3303
|
promptId: string;
|
|
3305
3304
|
agentState: {
|
|
3305
|
+
agentContext: string;
|
|
3306
3306
|
fileContext: {
|
|
3307
3307
|
currentWorkingDirectory: string;
|
|
3308
3308
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3324,13 +3324,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3324
3324
|
homedir: string;
|
|
3325
3325
|
cpus: number;
|
|
3326
3326
|
};
|
|
3327
|
-
|
|
3327
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3328
|
+
fileVersions?: {
|
|
3328
3329
|
path: string;
|
|
3329
3330
|
content: string;
|
|
3330
|
-
}[][];
|
|
3331
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3331
|
+
}[][] | undefined;
|
|
3332
3332
|
};
|
|
3333
|
-
agentContext: string;
|
|
3334
3333
|
messageHistory: {
|
|
3335
3334
|
content: string | ({
|
|
3336
3335
|
type: "text";
|
|
@@ -3381,7 +3380,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3381
3380
|
requestId?: string | undefined;
|
|
3382
3381
|
} | {
|
|
3383
3382
|
type: "init";
|
|
3384
|
-
fingerprintId: string;
|
|
3385
3383
|
fileContext: {
|
|
3386
3384
|
currentWorkingDirectory: string;
|
|
3387
3385
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3403,12 +3401,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3403
3401
|
homedir: string;
|
|
3404
3402
|
cpus: number;
|
|
3405
3403
|
};
|
|
3406
|
-
|
|
3404
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3405
|
+
fileVersions?: {
|
|
3407
3406
|
path: string;
|
|
3408
3407
|
content: string;
|
|
3409
|
-
}[][];
|
|
3410
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3408
|
+
}[][] | undefined;
|
|
3411
3409
|
};
|
|
3410
|
+
fingerprintId: string;
|
|
3412
3411
|
authToken?: string | undefined;
|
|
3413
3412
|
} | {
|
|
3414
3413
|
type: "generate-commit-message";
|
|
@@ -3416,6 +3415,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3416
3415
|
stagedChanges: string;
|
|
3417
3416
|
authToken?: string | undefined;
|
|
3418
3417
|
};
|
|
3418
|
+
txid: number;
|
|
3419
3419
|
}>]>;
|
|
3420
3420
|
export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
|
|
3421
3421
|
export type ClientMessage<T extends ClientMessageType = ClientMessageType> = z.infer<(typeof CLIENT_MESSAGE_SCHEMAS)[T]>;
|
|
@@ -3599,7 +3599,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3599
3599
|
homedir: string;
|
|
3600
3600
|
cpus: number;
|
|
3601
3601
|
}>;
|
|
3602
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
3602
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
3603
3603
|
path: z.ZodString;
|
|
3604
3604
|
content: z.ZodString;
|
|
3605
3605
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3608,7 +3608,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3608
3608
|
}, {
|
|
3609
3609
|
path: string;
|
|
3610
3610
|
content: string;
|
|
3611
|
-
}>, "many">, "many"
|
|
3611
|
+
}>, "many">, "many">>;
|
|
3612
3612
|
}, "strip", z.ZodTypeAny, {
|
|
3613
3613
|
currentWorkingDirectory: string;
|
|
3614
3614
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3630,11 +3630,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3630
3630
|
homedir: string;
|
|
3631
3631
|
cpus: number;
|
|
3632
3632
|
};
|
|
3633
|
-
|
|
3633
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3634
|
+
fileVersions?: {
|
|
3634
3635
|
path: string;
|
|
3635
3636
|
content: string;
|
|
3636
|
-
}[][];
|
|
3637
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3637
|
+
}[][] | undefined;
|
|
3638
3638
|
}, {
|
|
3639
3639
|
currentWorkingDirectory: string;
|
|
3640
3640
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3656,11 +3656,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3656
3656
|
homedir: string;
|
|
3657
3657
|
cpus: number;
|
|
3658
3658
|
};
|
|
3659
|
-
|
|
3659
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3660
|
+
fileVersions?: {
|
|
3660
3661
|
path: string;
|
|
3661
3662
|
content: string;
|
|
3662
|
-
}[][];
|
|
3663
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3663
|
+
}[][] | undefined;
|
|
3664
3664
|
}>;
|
|
3665
3665
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
3666
3666
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -3852,6 +3852,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3852
3852
|
role: "user" | "assistant";
|
|
3853
3853
|
}>, "many">;
|
|
3854
3854
|
}, "strip", z.ZodTypeAny, {
|
|
3855
|
+
agentContext: string;
|
|
3855
3856
|
fileContext: {
|
|
3856
3857
|
currentWorkingDirectory: string;
|
|
3857
3858
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3873,13 +3874,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3873
3874
|
homedir: string;
|
|
3874
3875
|
cpus: number;
|
|
3875
3876
|
};
|
|
3876
|
-
|
|
3877
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3878
|
+
fileVersions?: {
|
|
3877
3879
|
path: string;
|
|
3878
3880
|
content: string;
|
|
3879
|
-
}[][];
|
|
3880
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3881
|
+
}[][] | undefined;
|
|
3881
3882
|
};
|
|
3882
|
-
agentContext: string;
|
|
3883
3883
|
messageHistory: {
|
|
3884
3884
|
content: string | ({
|
|
3885
3885
|
type: "text";
|
|
@@ -3916,6 +3916,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3916
3916
|
role: "user" | "assistant";
|
|
3917
3917
|
}[];
|
|
3918
3918
|
}, {
|
|
3919
|
+
agentContext: string;
|
|
3919
3920
|
fileContext: {
|
|
3920
3921
|
currentWorkingDirectory: string;
|
|
3921
3922
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3937,13 +3938,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3937
3938
|
homedir: string;
|
|
3938
3939
|
cpus: number;
|
|
3939
3940
|
};
|
|
3940
|
-
|
|
3941
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3942
|
+
fileVersions?: {
|
|
3941
3943
|
path: string;
|
|
3942
3944
|
content: string;
|
|
3943
|
-
}[][];
|
|
3944
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3945
|
+
}[][] | undefined;
|
|
3945
3946
|
};
|
|
3946
|
-
agentContext: string;
|
|
3947
3947
|
messageHistory: {
|
|
3948
3948
|
content: string | ({
|
|
3949
3949
|
type: "text";
|
|
@@ -3986,12 +3986,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3986
3986
|
id: z.ZodString;
|
|
3987
3987
|
}, "strip", z.ZodTypeAny, {
|
|
3988
3988
|
name: string;
|
|
3989
|
-
id: string;
|
|
3990
3989
|
parameters: Record<string, string>;
|
|
3990
|
+
id: string;
|
|
3991
3991
|
}, {
|
|
3992
3992
|
name: string;
|
|
3993
|
-
id: string;
|
|
3994
3993
|
parameters: Record<string, string>;
|
|
3994
|
+
id: string;
|
|
3995
3995
|
}>, "many">;
|
|
3996
3996
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
3997
3997
|
name: z.ZodString;
|
|
@@ -4010,6 +4010,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4010
4010
|
type: "prompt-response";
|
|
4011
4011
|
promptId: string;
|
|
4012
4012
|
agentState: {
|
|
4013
|
+
agentContext: string;
|
|
4013
4014
|
fileContext: {
|
|
4014
4015
|
currentWorkingDirectory: string;
|
|
4015
4016
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4031,13 +4032,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4031
4032
|
homedir: string;
|
|
4032
4033
|
cpus: number;
|
|
4033
4034
|
};
|
|
4034
|
-
|
|
4035
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4036
|
+
fileVersions?: {
|
|
4035
4037
|
path: string;
|
|
4036
4038
|
content: string;
|
|
4037
|
-
}[][];
|
|
4038
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4039
|
+
}[][] | undefined;
|
|
4039
4040
|
};
|
|
4040
|
-
agentContext: string;
|
|
4041
4041
|
messageHistory: {
|
|
4042
4042
|
content: string | ({
|
|
4043
4043
|
type: "text";
|
|
@@ -4081,13 +4081,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4081
4081
|
}[];
|
|
4082
4082
|
toolCalls: {
|
|
4083
4083
|
name: string;
|
|
4084
|
-
id: string;
|
|
4085
4084
|
parameters: Record<string, string>;
|
|
4085
|
+
id: string;
|
|
4086
4086
|
}[];
|
|
4087
4087
|
}, {
|
|
4088
4088
|
type: "prompt-response";
|
|
4089
4089
|
promptId: string;
|
|
4090
4090
|
agentState: {
|
|
4091
|
+
agentContext: string;
|
|
4091
4092
|
fileContext: {
|
|
4092
4093
|
currentWorkingDirectory: string;
|
|
4093
4094
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4109,13 +4110,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4109
4110
|
homedir: string;
|
|
4110
4111
|
cpus: number;
|
|
4111
4112
|
};
|
|
4112
|
-
|
|
4113
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4114
|
+
fileVersions?: {
|
|
4113
4115
|
path: string;
|
|
4114
4116
|
content: string;
|
|
4115
|
-
}[][];
|
|
4116
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4117
|
+
}[][] | undefined;
|
|
4117
4118
|
};
|
|
4118
|
-
agentContext: string;
|
|
4119
4119
|
messageHistory: {
|
|
4120
4120
|
content: string | ({
|
|
4121
4121
|
type: "text";
|
|
@@ -4159,8 +4159,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4159
4159
|
}[];
|
|
4160
4160
|
toolCalls: {
|
|
4161
4161
|
name: string;
|
|
4162
|
-
id: string;
|
|
4163
4162
|
parameters: Record<string, string>;
|
|
4163
|
+
id: string;
|
|
4164
4164
|
}[];
|
|
4165
4165
|
}>, z.ZodObject<{
|
|
4166
4166
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4230,12 +4230,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4230
4230
|
resetFileVersions: z.ZodBoolean;
|
|
4231
4231
|
}, "strip", z.ZodTypeAny, {
|
|
4232
4232
|
type: "tool-call";
|
|
4233
|
-
userInputId: string;
|
|
4234
4233
|
data: {
|
|
4235
4234
|
name: string;
|
|
4236
4235
|
id: string;
|
|
4237
4236
|
input: Record<string, any>;
|
|
4238
4237
|
};
|
|
4238
|
+
userInputId: string;
|
|
4239
4239
|
changesAlreadyApplied: {
|
|
4240
4240
|
path: string;
|
|
4241
4241
|
content: string;
|
|
@@ -4254,12 +4254,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4254
4254
|
resetFileVersions: boolean;
|
|
4255
4255
|
}, {
|
|
4256
4256
|
type: "tool-call";
|
|
4257
|
-
userInputId: string;
|
|
4258
4257
|
data: {
|
|
4259
4258
|
name: string;
|
|
4260
4259
|
id: string;
|
|
4261
4260
|
input: Record<string, any>;
|
|
4262
4261
|
};
|
|
4262
|
+
userInputId: string;
|
|
4263
4263
|
changesAlreadyApplied: {
|
|
4264
4264
|
path: string;
|
|
4265
4265
|
content: string;
|
|
@@ -4282,12 +4282,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4282
4282
|
result: z.ZodString;
|
|
4283
4283
|
}, "strip", z.ZodTypeAny, {
|
|
4284
4284
|
type: "terminal-command-result";
|
|
4285
|
-
userInputId: string;
|
|
4286
4285
|
result: string;
|
|
4286
|
+
userInputId: string;
|
|
4287
4287
|
}, {
|
|
4288
4288
|
type: "terminal-command-result";
|
|
4289
|
-
userInputId: string;
|
|
4290
4289
|
result: string;
|
|
4290
|
+
userInputId: string;
|
|
4291
4291
|
}>, z.ZodObject<{
|
|
4292
4292
|
type: z.ZodLiteral<"npm-version-status">;
|
|
4293
4293
|
isUpToDate: z.ZodBoolean;
|
|
@@ -4384,10 +4384,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4384
4384
|
}, "strip", z.ZodTypeAny, {
|
|
4385
4385
|
type: "action";
|
|
4386
4386
|
data: {
|
|
4387
|
-
type: "response-chunk";
|
|
4388
|
-
userInputId: string;
|
|
4389
|
-
chunk: string;
|
|
4390
|
-
} | {
|
|
4391
4387
|
type: "usage-response";
|
|
4392
4388
|
usage: number;
|
|
4393
4389
|
limit: number;
|
|
@@ -4395,6 +4391,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4395
4391
|
next_quota_reset: Date;
|
|
4396
4392
|
session_credits_used: number;
|
|
4397
4393
|
referralLink?: string | undefined;
|
|
4394
|
+
} | {
|
|
4395
|
+
type: "init-response";
|
|
4396
|
+
usage: number;
|
|
4397
|
+
limit: number;
|
|
4398
|
+
subscription_active: boolean;
|
|
4399
|
+
next_quota_reset: Date;
|
|
4400
|
+
session_credits_used: number;
|
|
4401
|
+
referralLink?: string | undefined;
|
|
4398
4402
|
} | {
|
|
4399
4403
|
type: "response-complete";
|
|
4400
4404
|
userInputId: string;
|
|
@@ -4420,10 +4424,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4420
4424
|
subscription_active?: boolean | undefined;
|
|
4421
4425
|
next_quota_reset?: Date | undefined;
|
|
4422
4426
|
session_credits_used?: number | undefined;
|
|
4427
|
+
} | {
|
|
4428
|
+
type: "message-cost-response";
|
|
4429
|
+
promptId: string;
|
|
4430
|
+
credits: number;
|
|
4423
4431
|
} | {
|
|
4424
4432
|
type: "prompt-response";
|
|
4425
4433
|
promptId: string;
|
|
4426
4434
|
agentState: {
|
|
4435
|
+
agentContext: string;
|
|
4427
4436
|
fileContext: {
|
|
4428
4437
|
currentWorkingDirectory: string;
|
|
4429
4438
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4445,13 +4454,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4445
4454
|
homedir: string;
|
|
4446
4455
|
cpus: number;
|
|
4447
4456
|
};
|
|
4448
|
-
|
|
4457
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4458
|
+
fileVersions?: {
|
|
4449
4459
|
path: string;
|
|
4450
4460
|
content: string;
|
|
4451
|
-
}[][];
|
|
4452
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4461
|
+
}[][] | undefined;
|
|
4453
4462
|
};
|
|
4454
|
-
agentContext: string;
|
|
4455
4463
|
messageHistory: {
|
|
4456
4464
|
content: string | ({
|
|
4457
4465
|
type: "text";
|
|
@@ -4495,21 +4503,25 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4495
4503
|
}[];
|
|
4496
4504
|
toolCalls: {
|
|
4497
4505
|
name: string;
|
|
4498
|
-
id: string;
|
|
4499
4506
|
parameters: Record<string, string>;
|
|
4507
|
+
id: string;
|
|
4500
4508
|
}[];
|
|
4509
|
+
} | {
|
|
4510
|
+
type: "response-chunk";
|
|
4511
|
+
userInputId: string;
|
|
4512
|
+
chunk: string;
|
|
4501
4513
|
} | {
|
|
4502
4514
|
type: "read-files";
|
|
4503
4515
|
requestId: string;
|
|
4504
4516
|
filePaths: string[];
|
|
4505
4517
|
} | {
|
|
4506
4518
|
type: "tool-call";
|
|
4507
|
-
userInputId: string;
|
|
4508
4519
|
data: {
|
|
4509
4520
|
name: string;
|
|
4510
4521
|
id: string;
|
|
4511
4522
|
input: Record<string, any>;
|
|
4512
4523
|
};
|
|
4524
|
+
userInputId: string;
|
|
4513
4525
|
changesAlreadyApplied: {
|
|
4514
4526
|
path: string;
|
|
4515
4527
|
content: string;
|
|
@@ -4528,24 +4540,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4528
4540
|
resetFileVersions: boolean;
|
|
4529
4541
|
} | {
|
|
4530
4542
|
type: "terminal-command-result";
|
|
4531
|
-
userInputId: string;
|
|
4532
4543
|
result: string;
|
|
4544
|
+
userInputId: string;
|
|
4533
4545
|
} | {
|
|
4534
4546
|
type: "npm-version-status";
|
|
4535
4547
|
isUpToDate: boolean;
|
|
4536
4548
|
latestVersion: string;
|
|
4537
|
-
} | {
|
|
4538
|
-
type: "init-response";
|
|
4539
|
-
usage: number;
|
|
4540
|
-
limit: number;
|
|
4541
|
-
subscription_active: boolean;
|
|
4542
|
-
next_quota_reset: Date;
|
|
4543
|
-
session_credits_used: number;
|
|
4544
|
-
referralLink?: string | undefined;
|
|
4545
|
-
} | {
|
|
4546
|
-
type: "message-cost-response";
|
|
4547
|
-
promptId: string;
|
|
4548
|
-
credits: number;
|
|
4549
4549
|
} | {
|
|
4550
4550
|
message: string;
|
|
4551
4551
|
type: "action-error";
|
|
@@ -4556,10 +4556,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4556
4556
|
}, {
|
|
4557
4557
|
type: "action";
|
|
4558
4558
|
data: {
|
|
4559
|
-
type: "response-chunk";
|
|
4560
|
-
userInputId: string;
|
|
4561
|
-
chunk: string;
|
|
4562
|
-
} | {
|
|
4563
4559
|
type: "usage-response";
|
|
4564
4560
|
usage: number;
|
|
4565
4561
|
limit: number;
|
|
@@ -4567,6 +4563,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4567
4563
|
next_quota_reset: Date;
|
|
4568
4564
|
session_credits_used: number;
|
|
4569
4565
|
referralLink?: string | undefined;
|
|
4566
|
+
} | {
|
|
4567
|
+
type: "init-response";
|
|
4568
|
+
usage: number;
|
|
4569
|
+
limit: number;
|
|
4570
|
+
subscription_active: boolean;
|
|
4571
|
+
next_quota_reset: Date;
|
|
4572
|
+
session_credits_used: number;
|
|
4573
|
+
referralLink?: string | undefined;
|
|
4570
4574
|
} | {
|
|
4571
4575
|
type: "response-complete";
|
|
4572
4576
|
userInputId: string;
|
|
@@ -4592,10 +4596,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4592
4596
|
subscription_active?: boolean | undefined;
|
|
4593
4597
|
next_quota_reset?: Date | undefined;
|
|
4594
4598
|
session_credits_used?: number | undefined;
|
|
4599
|
+
} | {
|
|
4600
|
+
type: "message-cost-response";
|
|
4601
|
+
promptId: string;
|
|
4602
|
+
credits: number;
|
|
4595
4603
|
} | {
|
|
4596
4604
|
type: "prompt-response";
|
|
4597
4605
|
promptId: string;
|
|
4598
4606
|
agentState: {
|
|
4607
|
+
agentContext: string;
|
|
4599
4608
|
fileContext: {
|
|
4600
4609
|
currentWorkingDirectory: string;
|
|
4601
4610
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4617,13 +4626,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4617
4626
|
homedir: string;
|
|
4618
4627
|
cpus: number;
|
|
4619
4628
|
};
|
|
4620
|
-
|
|
4629
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4630
|
+
fileVersions?: {
|
|
4621
4631
|
path: string;
|
|
4622
4632
|
content: string;
|
|
4623
|
-
}[][];
|
|
4624
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4633
|
+
}[][] | undefined;
|
|
4625
4634
|
};
|
|
4626
|
-
agentContext: string;
|
|
4627
4635
|
messageHistory: {
|
|
4628
4636
|
content: string | ({
|
|
4629
4637
|
type: "text";
|
|
@@ -4667,21 +4675,25 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4667
4675
|
}[];
|
|
4668
4676
|
toolCalls: {
|
|
4669
4677
|
name: string;
|
|
4670
|
-
id: string;
|
|
4671
4678
|
parameters: Record<string, string>;
|
|
4679
|
+
id: string;
|
|
4672
4680
|
}[];
|
|
4681
|
+
} | {
|
|
4682
|
+
type: "response-chunk";
|
|
4683
|
+
userInputId: string;
|
|
4684
|
+
chunk: string;
|
|
4673
4685
|
} | {
|
|
4674
4686
|
type: "read-files";
|
|
4675
4687
|
requestId: string;
|
|
4676
4688
|
filePaths: string[];
|
|
4677
4689
|
} | {
|
|
4678
4690
|
type: "tool-call";
|
|
4679
|
-
userInputId: string;
|
|
4680
4691
|
data: {
|
|
4681
4692
|
name: string;
|
|
4682
4693
|
id: string;
|
|
4683
4694
|
input: Record<string, any>;
|
|
4684
4695
|
};
|
|
4696
|
+
userInputId: string;
|
|
4685
4697
|
changesAlreadyApplied: {
|
|
4686
4698
|
path: string;
|
|
4687
4699
|
content: string;
|
|
@@ -4700,24 +4712,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4700
4712
|
resetFileVersions: boolean;
|
|
4701
4713
|
} | {
|
|
4702
4714
|
type: "terminal-command-result";
|
|
4703
|
-
userInputId: string;
|
|
4704
4715
|
result: string;
|
|
4716
|
+
userInputId: string;
|
|
4705
4717
|
} | {
|
|
4706
4718
|
type: "npm-version-status";
|
|
4707
4719
|
isUpToDate: boolean;
|
|
4708
4720
|
latestVersion: string;
|
|
4709
|
-
} | {
|
|
4710
|
-
type: "init-response";
|
|
4711
|
-
usage: number;
|
|
4712
|
-
limit: number;
|
|
4713
|
-
subscription_active: boolean;
|
|
4714
|
-
next_quota_reset: Date;
|
|
4715
|
-
session_credits_used: number;
|
|
4716
|
-
referralLink?: string | undefined;
|
|
4717
|
-
} | {
|
|
4718
|
-
type: "message-cost-response";
|
|
4719
|
-
promptId: string;
|
|
4720
|
-
credits: number;
|
|
4721
4721
|
} | {
|
|
4722
4722
|
message: string;
|
|
4723
4723
|
type: "action-error";
|
|
@@ -4905,7 +4905,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4905
4905
|
homedir: string;
|
|
4906
4906
|
cpus: number;
|
|
4907
4907
|
}>;
|
|
4908
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
4908
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
4909
4909
|
path: z.ZodString;
|
|
4910
4910
|
content: z.ZodString;
|
|
4911
4911
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4914,7 +4914,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4914
4914
|
}, {
|
|
4915
4915
|
path: string;
|
|
4916
4916
|
content: string;
|
|
4917
|
-
}>, "many">, "many"
|
|
4917
|
+
}>, "many">, "many">>;
|
|
4918
4918
|
}, "strip", z.ZodTypeAny, {
|
|
4919
4919
|
currentWorkingDirectory: string;
|
|
4920
4920
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4936,11 +4936,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4936
4936
|
homedir: string;
|
|
4937
4937
|
cpus: number;
|
|
4938
4938
|
};
|
|
4939
|
-
|
|
4939
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4940
|
+
fileVersions?: {
|
|
4940
4941
|
path: string;
|
|
4941
4942
|
content: string;
|
|
4942
|
-
}[][];
|
|
4943
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4943
|
+
}[][] | undefined;
|
|
4944
4944
|
}, {
|
|
4945
4945
|
currentWorkingDirectory: string;
|
|
4946
4946
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4962,11 +4962,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4962
4962
|
homedir: string;
|
|
4963
4963
|
cpus: number;
|
|
4964
4964
|
};
|
|
4965
|
-
|
|
4965
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4966
|
+
fileVersions?: {
|
|
4966
4967
|
path: string;
|
|
4967
4968
|
content: string;
|
|
4968
|
-
}[][];
|
|
4969
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4969
|
+
}[][] | undefined;
|
|
4970
4970
|
}>;
|
|
4971
4971
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
4972
4972
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -5158,6 +5158,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5158
5158
|
role: "user" | "assistant";
|
|
5159
5159
|
}>, "many">;
|
|
5160
5160
|
}, "strip", z.ZodTypeAny, {
|
|
5161
|
+
agentContext: string;
|
|
5161
5162
|
fileContext: {
|
|
5162
5163
|
currentWorkingDirectory: string;
|
|
5163
5164
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5179,13 +5180,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5179
5180
|
homedir: string;
|
|
5180
5181
|
cpus: number;
|
|
5181
5182
|
};
|
|
5182
|
-
|
|
5183
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5184
|
+
fileVersions?: {
|
|
5183
5185
|
path: string;
|
|
5184
5186
|
content: string;
|
|
5185
|
-
}[][];
|
|
5186
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5187
|
+
}[][] | undefined;
|
|
5187
5188
|
};
|
|
5188
|
-
agentContext: string;
|
|
5189
5189
|
messageHistory: {
|
|
5190
5190
|
content: string | ({
|
|
5191
5191
|
type: "text";
|
|
@@ -5222,6 +5222,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5222
5222
|
role: "user" | "assistant";
|
|
5223
5223
|
}[];
|
|
5224
5224
|
}, {
|
|
5225
|
+
agentContext: string;
|
|
5225
5226
|
fileContext: {
|
|
5226
5227
|
currentWorkingDirectory: string;
|
|
5227
5228
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5243,13 +5244,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5243
5244
|
homedir: string;
|
|
5244
5245
|
cpus: number;
|
|
5245
5246
|
};
|
|
5246
|
-
|
|
5247
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5248
|
+
fileVersions?: {
|
|
5247
5249
|
path: string;
|
|
5248
5250
|
content: string;
|
|
5249
|
-
}[][];
|
|
5250
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5251
|
+
}[][] | undefined;
|
|
5251
5252
|
};
|
|
5252
|
-
agentContext: string;
|
|
5253
5253
|
messageHistory: {
|
|
5254
5254
|
content: string | ({
|
|
5255
5255
|
type: "text";
|
|
@@ -5292,12 +5292,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5292
5292
|
id: z.ZodString;
|
|
5293
5293
|
}, "strip", z.ZodTypeAny, {
|
|
5294
5294
|
name: string;
|
|
5295
|
-
id: string;
|
|
5296
5295
|
parameters: Record<string, string>;
|
|
5296
|
+
id: string;
|
|
5297
5297
|
}, {
|
|
5298
5298
|
name: string;
|
|
5299
|
-
id: string;
|
|
5300
5299
|
parameters: Record<string, string>;
|
|
5300
|
+
id: string;
|
|
5301
5301
|
}>, "many">;
|
|
5302
5302
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
5303
5303
|
name: z.ZodString;
|
|
@@ -5316,6 +5316,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5316
5316
|
type: "prompt-response";
|
|
5317
5317
|
promptId: string;
|
|
5318
5318
|
agentState: {
|
|
5319
|
+
agentContext: string;
|
|
5319
5320
|
fileContext: {
|
|
5320
5321
|
currentWorkingDirectory: string;
|
|
5321
5322
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5337,13 +5338,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5337
5338
|
homedir: string;
|
|
5338
5339
|
cpus: number;
|
|
5339
5340
|
};
|
|
5340
|
-
|
|
5341
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5342
|
+
fileVersions?: {
|
|
5341
5343
|
path: string;
|
|
5342
5344
|
content: string;
|
|
5343
|
-
}[][];
|
|
5344
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5345
|
+
}[][] | undefined;
|
|
5345
5346
|
};
|
|
5346
|
-
agentContext: string;
|
|
5347
5347
|
messageHistory: {
|
|
5348
5348
|
content: string | ({
|
|
5349
5349
|
type: "text";
|
|
@@ -5387,13 +5387,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5387
5387
|
}[];
|
|
5388
5388
|
toolCalls: {
|
|
5389
5389
|
name: string;
|
|
5390
|
-
id: string;
|
|
5391
5390
|
parameters: Record<string, string>;
|
|
5391
|
+
id: string;
|
|
5392
5392
|
}[];
|
|
5393
5393
|
}, {
|
|
5394
5394
|
type: "prompt-response";
|
|
5395
5395
|
promptId: string;
|
|
5396
5396
|
agentState: {
|
|
5397
|
+
agentContext: string;
|
|
5397
5398
|
fileContext: {
|
|
5398
5399
|
currentWorkingDirectory: string;
|
|
5399
5400
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5415,13 +5416,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5415
5416
|
homedir: string;
|
|
5416
5417
|
cpus: number;
|
|
5417
5418
|
};
|
|
5418
|
-
|
|
5419
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5420
|
+
fileVersions?: {
|
|
5419
5421
|
path: string;
|
|
5420
5422
|
content: string;
|
|
5421
|
-
}[][];
|
|
5422
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5423
|
+
}[][] | undefined;
|
|
5423
5424
|
};
|
|
5424
|
-
agentContext: string;
|
|
5425
5425
|
messageHistory: {
|
|
5426
5426
|
content: string | ({
|
|
5427
5427
|
type: "text";
|
|
@@ -5465,8 +5465,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5465
5465
|
}[];
|
|
5466
5466
|
toolCalls: {
|
|
5467
5467
|
name: string;
|
|
5468
|
-
id: string;
|
|
5469
5468
|
parameters: Record<string, string>;
|
|
5469
|
+
id: string;
|
|
5470
5470
|
}[];
|
|
5471
5471
|
}>, z.ZodObject<{
|
|
5472
5472
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -5536,12 +5536,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5536
5536
|
resetFileVersions: z.ZodBoolean;
|
|
5537
5537
|
}, "strip", z.ZodTypeAny, {
|
|
5538
5538
|
type: "tool-call";
|
|
5539
|
-
userInputId: string;
|
|
5540
5539
|
data: {
|
|
5541
5540
|
name: string;
|
|
5542
5541
|
id: string;
|
|
5543
5542
|
input: Record<string, any>;
|
|
5544
5543
|
};
|
|
5544
|
+
userInputId: string;
|
|
5545
5545
|
changesAlreadyApplied: {
|
|
5546
5546
|
path: string;
|
|
5547
5547
|
content: string;
|
|
@@ -5560,12 +5560,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5560
5560
|
resetFileVersions: boolean;
|
|
5561
5561
|
}, {
|
|
5562
5562
|
type: "tool-call";
|
|
5563
|
-
userInputId: string;
|
|
5564
5563
|
data: {
|
|
5565
5564
|
name: string;
|
|
5566
5565
|
id: string;
|
|
5567
5566
|
input: Record<string, any>;
|
|
5568
5567
|
};
|
|
5568
|
+
userInputId: string;
|
|
5569
5569
|
changesAlreadyApplied: {
|
|
5570
5570
|
path: string;
|
|
5571
5571
|
content: string;
|
|
@@ -5588,12 +5588,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5588
5588
|
result: z.ZodString;
|
|
5589
5589
|
}, "strip", z.ZodTypeAny, {
|
|
5590
5590
|
type: "terminal-command-result";
|
|
5591
|
-
userInputId: string;
|
|
5592
5591
|
result: string;
|
|
5592
|
+
userInputId: string;
|
|
5593
5593
|
}, {
|
|
5594
5594
|
type: "terminal-command-result";
|
|
5595
|
-
userInputId: string;
|
|
5596
5595
|
result: string;
|
|
5596
|
+
userInputId: string;
|
|
5597
5597
|
}>, z.ZodObject<{
|
|
5598
5598
|
type: z.ZodLiteral<"npm-version-status">;
|
|
5599
5599
|
isUpToDate: z.ZodBoolean;
|
|
@@ -5690,10 +5690,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5690
5690
|
}, "strip", z.ZodTypeAny, {
|
|
5691
5691
|
type: "action";
|
|
5692
5692
|
data: {
|
|
5693
|
-
type: "response-chunk";
|
|
5694
|
-
userInputId: string;
|
|
5695
|
-
chunk: string;
|
|
5696
|
-
} | {
|
|
5697
5693
|
type: "usage-response";
|
|
5698
5694
|
usage: number;
|
|
5699
5695
|
limit: number;
|
|
@@ -5701,6 +5697,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5701
5697
|
next_quota_reset: Date;
|
|
5702
5698
|
session_credits_used: number;
|
|
5703
5699
|
referralLink?: string | undefined;
|
|
5700
|
+
} | {
|
|
5701
|
+
type: "init-response";
|
|
5702
|
+
usage: number;
|
|
5703
|
+
limit: number;
|
|
5704
|
+
subscription_active: boolean;
|
|
5705
|
+
next_quota_reset: Date;
|
|
5706
|
+
session_credits_used: number;
|
|
5707
|
+
referralLink?: string | undefined;
|
|
5704
5708
|
} | {
|
|
5705
5709
|
type: "response-complete";
|
|
5706
5710
|
userInputId: string;
|
|
@@ -5726,10 +5730,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5726
5730
|
subscription_active?: boolean | undefined;
|
|
5727
5731
|
next_quota_reset?: Date | undefined;
|
|
5728
5732
|
session_credits_used?: number | undefined;
|
|
5733
|
+
} | {
|
|
5734
|
+
type: "message-cost-response";
|
|
5735
|
+
promptId: string;
|
|
5736
|
+
credits: number;
|
|
5729
5737
|
} | {
|
|
5730
5738
|
type: "prompt-response";
|
|
5731
5739
|
promptId: string;
|
|
5732
5740
|
agentState: {
|
|
5741
|
+
agentContext: string;
|
|
5733
5742
|
fileContext: {
|
|
5734
5743
|
currentWorkingDirectory: string;
|
|
5735
5744
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5751,13 +5760,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5751
5760
|
homedir: string;
|
|
5752
5761
|
cpus: number;
|
|
5753
5762
|
};
|
|
5754
|
-
|
|
5763
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5764
|
+
fileVersions?: {
|
|
5755
5765
|
path: string;
|
|
5756
5766
|
content: string;
|
|
5757
|
-
}[][];
|
|
5758
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5767
|
+
}[][] | undefined;
|
|
5759
5768
|
};
|
|
5760
|
-
agentContext: string;
|
|
5761
5769
|
messageHistory: {
|
|
5762
5770
|
content: string | ({
|
|
5763
5771
|
type: "text";
|
|
@@ -5801,21 +5809,25 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5801
5809
|
}[];
|
|
5802
5810
|
toolCalls: {
|
|
5803
5811
|
name: string;
|
|
5804
|
-
id: string;
|
|
5805
5812
|
parameters: Record<string, string>;
|
|
5813
|
+
id: string;
|
|
5806
5814
|
}[];
|
|
5815
|
+
} | {
|
|
5816
|
+
type: "response-chunk";
|
|
5817
|
+
userInputId: string;
|
|
5818
|
+
chunk: string;
|
|
5807
5819
|
} | {
|
|
5808
5820
|
type: "read-files";
|
|
5809
5821
|
requestId: string;
|
|
5810
5822
|
filePaths: string[];
|
|
5811
5823
|
} | {
|
|
5812
5824
|
type: "tool-call";
|
|
5813
|
-
userInputId: string;
|
|
5814
5825
|
data: {
|
|
5815
5826
|
name: string;
|
|
5816
5827
|
id: string;
|
|
5817
5828
|
input: Record<string, any>;
|
|
5818
5829
|
};
|
|
5830
|
+
userInputId: string;
|
|
5819
5831
|
changesAlreadyApplied: {
|
|
5820
5832
|
path: string;
|
|
5821
5833
|
content: string;
|
|
@@ -5834,24 +5846,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5834
5846
|
resetFileVersions: boolean;
|
|
5835
5847
|
} | {
|
|
5836
5848
|
type: "terminal-command-result";
|
|
5837
|
-
userInputId: string;
|
|
5838
5849
|
result: string;
|
|
5850
|
+
userInputId: string;
|
|
5839
5851
|
} | {
|
|
5840
5852
|
type: "npm-version-status";
|
|
5841
5853
|
isUpToDate: boolean;
|
|
5842
5854
|
latestVersion: string;
|
|
5843
|
-
} | {
|
|
5844
|
-
type: "init-response";
|
|
5845
|
-
usage: number;
|
|
5846
|
-
limit: number;
|
|
5847
|
-
subscription_active: boolean;
|
|
5848
|
-
next_quota_reset: Date;
|
|
5849
|
-
session_credits_used: number;
|
|
5850
|
-
referralLink?: string | undefined;
|
|
5851
|
-
} | {
|
|
5852
|
-
type: "message-cost-response";
|
|
5853
|
-
promptId: string;
|
|
5854
|
-
credits: number;
|
|
5855
5855
|
} | {
|
|
5856
5856
|
message: string;
|
|
5857
5857
|
type: "action-error";
|
|
@@ -5862,10 +5862,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5862
5862
|
}, {
|
|
5863
5863
|
type: "action";
|
|
5864
5864
|
data: {
|
|
5865
|
-
type: "response-chunk";
|
|
5866
|
-
userInputId: string;
|
|
5867
|
-
chunk: string;
|
|
5868
|
-
} | {
|
|
5869
5865
|
type: "usage-response";
|
|
5870
5866
|
usage: number;
|
|
5871
5867
|
limit: number;
|
|
@@ -5873,6 +5869,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5873
5869
|
next_quota_reset: Date;
|
|
5874
5870
|
session_credits_used: number;
|
|
5875
5871
|
referralLink?: string | undefined;
|
|
5872
|
+
} | {
|
|
5873
|
+
type: "init-response";
|
|
5874
|
+
usage: number;
|
|
5875
|
+
limit: number;
|
|
5876
|
+
subscription_active: boolean;
|
|
5877
|
+
next_quota_reset: Date;
|
|
5878
|
+
session_credits_used: number;
|
|
5879
|
+
referralLink?: string | undefined;
|
|
5876
5880
|
} | {
|
|
5877
5881
|
type: "response-complete";
|
|
5878
5882
|
userInputId: string;
|
|
@@ -5898,10 +5902,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5898
5902
|
subscription_active?: boolean | undefined;
|
|
5899
5903
|
next_quota_reset?: Date | undefined;
|
|
5900
5904
|
session_credits_used?: number | undefined;
|
|
5905
|
+
} | {
|
|
5906
|
+
type: "message-cost-response";
|
|
5907
|
+
promptId: string;
|
|
5908
|
+
credits: number;
|
|
5901
5909
|
} | {
|
|
5902
5910
|
type: "prompt-response";
|
|
5903
5911
|
promptId: string;
|
|
5904
5912
|
agentState: {
|
|
5913
|
+
agentContext: string;
|
|
5905
5914
|
fileContext: {
|
|
5906
5915
|
currentWorkingDirectory: string;
|
|
5907
5916
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5923,13 +5932,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5923
5932
|
homedir: string;
|
|
5924
5933
|
cpus: number;
|
|
5925
5934
|
};
|
|
5926
|
-
|
|
5935
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5936
|
+
fileVersions?: {
|
|
5927
5937
|
path: string;
|
|
5928
5938
|
content: string;
|
|
5929
|
-
}[][];
|
|
5930
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5939
|
+
}[][] | undefined;
|
|
5931
5940
|
};
|
|
5932
|
-
agentContext: string;
|
|
5933
5941
|
messageHistory: {
|
|
5934
5942
|
content: string | ({
|
|
5935
5943
|
type: "text";
|
|
@@ -5973,21 +5981,25 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5973
5981
|
}[];
|
|
5974
5982
|
toolCalls: {
|
|
5975
5983
|
name: string;
|
|
5976
|
-
id: string;
|
|
5977
5984
|
parameters: Record<string, string>;
|
|
5985
|
+
id: string;
|
|
5978
5986
|
}[];
|
|
5987
|
+
} | {
|
|
5988
|
+
type: "response-chunk";
|
|
5989
|
+
userInputId: string;
|
|
5990
|
+
chunk: string;
|
|
5979
5991
|
} | {
|
|
5980
5992
|
type: "read-files";
|
|
5981
5993
|
requestId: string;
|
|
5982
5994
|
filePaths: string[];
|
|
5983
5995
|
} | {
|
|
5984
5996
|
type: "tool-call";
|
|
5985
|
-
userInputId: string;
|
|
5986
5997
|
data: {
|
|
5987
5998
|
name: string;
|
|
5988
5999
|
id: string;
|
|
5989
6000
|
input: Record<string, any>;
|
|
5990
6001
|
};
|
|
6002
|
+
userInputId: string;
|
|
5991
6003
|
changesAlreadyApplied: {
|
|
5992
6004
|
path: string;
|
|
5993
6005
|
content: string;
|
|
@@ -6006,24 +6018,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6006
6018
|
resetFileVersions: boolean;
|
|
6007
6019
|
} | {
|
|
6008
6020
|
type: "terminal-command-result";
|
|
6009
|
-
userInputId: string;
|
|
6010
6021
|
result: string;
|
|
6022
|
+
userInputId: string;
|
|
6011
6023
|
} | {
|
|
6012
6024
|
type: "npm-version-status";
|
|
6013
6025
|
isUpToDate: boolean;
|
|
6014
6026
|
latestVersion: string;
|
|
6015
|
-
} | {
|
|
6016
|
-
type: "init-response";
|
|
6017
|
-
usage: number;
|
|
6018
|
-
limit: number;
|
|
6019
|
-
subscription_active: boolean;
|
|
6020
|
-
next_quota_reset: Date;
|
|
6021
|
-
session_credits_used: number;
|
|
6022
|
-
referralLink?: string | undefined;
|
|
6023
|
-
} | {
|
|
6024
|
-
type: "message-cost-response";
|
|
6025
|
-
promptId: string;
|
|
6026
|
-
credits: number;
|
|
6027
6027
|
} | {
|
|
6028
6028
|
message: string;
|
|
6029
6029
|
type: "action-error";
|