codebuff 1.0.174 → 1.0.175
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/checkpoint-file-manager.d.ts +17 -5
- package/dist/checkpoint-file-manager.js +115 -77
- package/dist/checkpoint-file-manager.js.map +1 -1
- package/dist/checkpoints.d.ts +1 -1
- package/dist/checkpoints.js +16 -31
- package/dist/checkpoints.js.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +10 -10
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +132 -132
- package/dist/common/browser-actions.d.ts +48 -48
- package/dist/common/types/agent-state.d.ts +22 -22
- package/dist/common/types/message.d.ts +18 -18
- package/dist/common/util/file.d.ts +4 -4
- package/dist/common/websockets/websocket-schema.d.ts +391 -391
- package/dist/project-files.d.ts +2 -2
- package/dist/worker-script-project-context.js +4 -4
- package/dist/worker-script-project-context.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/advanced-analyzer.d.ts +0 -19
- package/dist/common/advanced-analyzer.js +0 -140
- package/dist/common/advanced-analyzer.js.map +0 -1
- package/dist/common/message-image-handling.d.ts +0 -41
- package/dist/common/message-image-handling.js +0 -57
- package/dist/common/message-image-handling.js.map +0 -1
- package/dist/common/util/process-stream.d.ts +0 -8
- package/dist/common/util/process-stream.js +0 -102
- package/dist/common/util/process-stream.js.map +0 -1
|
@@ -95,16 +95,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
95
95
|
}>>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
type: "tool_use";
|
|
98
|
-
id: string;
|
|
99
98
|
name: string;
|
|
99
|
+
id: string;
|
|
100
100
|
input: Record<string, any>;
|
|
101
101
|
cache_control?: {
|
|
102
102
|
type: "ephemeral";
|
|
103
103
|
} | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
type: "tool_use";
|
|
106
|
-
id: string;
|
|
107
106
|
name: string;
|
|
107
|
+
id: string;
|
|
108
108
|
input: Record<string, any>;
|
|
109
109
|
cache_control?: {
|
|
110
110
|
type: "ephemeral";
|
|
@@ -178,7 +178,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
178
178
|
} | undefined;
|
|
179
179
|
}>]>, "many">]>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
|
-
role: "user" | "assistant";
|
|
182
181
|
content: string | ({
|
|
183
182
|
type: "text";
|
|
184
183
|
text: string;
|
|
@@ -187,8 +186,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
187
186
|
} | undefined;
|
|
188
187
|
} | {
|
|
189
188
|
type: "tool_use";
|
|
190
|
-
id: string;
|
|
191
189
|
name: string;
|
|
190
|
+
id: string;
|
|
192
191
|
input: Record<string, any>;
|
|
193
192
|
cache_control?: {
|
|
194
193
|
type: "ephemeral";
|
|
@@ -211,8 +210,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
211
210
|
type: "ephemeral";
|
|
212
211
|
} | undefined;
|
|
213
212
|
})[];
|
|
214
|
-
}, {
|
|
215
213
|
role: "user" | "assistant";
|
|
214
|
+
}, {
|
|
216
215
|
content: string | ({
|
|
217
216
|
type: "text";
|
|
218
217
|
text: string;
|
|
@@ -221,8 +220,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
221
220
|
} | undefined;
|
|
222
221
|
} | {
|
|
223
222
|
type: "tool_use";
|
|
224
|
-
id: string;
|
|
225
223
|
name: string;
|
|
224
|
+
id: string;
|
|
226
225
|
input: Record<string, any>;
|
|
227
226
|
cache_control?: {
|
|
228
227
|
type: "ephemeral";
|
|
@@ -245,6 +244,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
245
244
|
type: "ephemeral";
|
|
246
245
|
} | undefined;
|
|
247
246
|
})[];
|
|
247
|
+
role: "user" | "assistant";
|
|
248
248
|
}>, "many">;
|
|
249
249
|
fileContext: z.ZodObject<{
|
|
250
250
|
currentWorkingDirectory: z.ZodString;
|
|
@@ -371,37 +371,9 @@ 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
|
-
diff: string;
|
|
381
|
-
status: 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
|
-
fileVersions: {
|
|
396
|
-
path: string;
|
|
397
|
-
content: string;
|
|
398
|
-
}[][];
|
|
399
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
400
|
-
};
|
|
401
374
|
fingerprintId: string;
|
|
402
375
|
userInputId: string;
|
|
403
376
|
messages: {
|
|
404
|
-
role: "user" | "assistant";
|
|
405
377
|
content: string | ({
|
|
406
378
|
type: "text";
|
|
407
379
|
text: string;
|
|
@@ -410,8 +382,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
410
382
|
} | undefined;
|
|
411
383
|
} | {
|
|
412
384
|
type: "tool_use";
|
|
413
|
-
id: string;
|
|
414
385
|
name: string;
|
|
386
|
+
id: string;
|
|
415
387
|
input: Record<string, any>;
|
|
416
388
|
cache_control?: {
|
|
417
389
|
type: "ephemeral";
|
|
@@ -434,16 +406,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
434
406
|
type: "ephemeral";
|
|
435
407
|
} | undefined;
|
|
436
408
|
})[];
|
|
409
|
+
role: "user" | "assistant";
|
|
437
410
|
}[];
|
|
438
|
-
changesAlreadyApplied: {
|
|
439
|
-
type: "patch" | "file";
|
|
440
|
-
path: string;
|
|
441
|
-
content: string;
|
|
442
|
-
}[];
|
|
443
|
-
costMode: "lite" | "normal" | "max";
|
|
444
|
-
authToken?: string | undefined;
|
|
445
|
-
}, {
|
|
446
|
-
type: "user-input";
|
|
447
411
|
fileContext: {
|
|
448
412
|
currentWorkingDirectory: string;
|
|
449
413
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -471,10 +435,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
471
435
|
}[][];
|
|
472
436
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
473
437
|
};
|
|
438
|
+
changesAlreadyApplied: {
|
|
439
|
+
type: "patch" | "file";
|
|
440
|
+
path: string;
|
|
441
|
+
content: string;
|
|
442
|
+
}[];
|
|
443
|
+
costMode: "lite" | "normal" | "max";
|
|
444
|
+
authToken?: string | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
type: "user-input";
|
|
474
447
|
fingerprintId: string;
|
|
475
448
|
userInputId: string;
|
|
476
449
|
messages: {
|
|
477
|
-
role: "user" | "assistant";
|
|
478
450
|
content: string | ({
|
|
479
451
|
type: "text";
|
|
480
452
|
text: string;
|
|
@@ -483,8 +455,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
483
455
|
} | undefined;
|
|
484
456
|
} | {
|
|
485
457
|
type: "tool_use";
|
|
486
|
-
id: string;
|
|
487
458
|
name: string;
|
|
459
|
+
id: string;
|
|
488
460
|
input: Record<string, any>;
|
|
489
461
|
cache_control?: {
|
|
490
462
|
type: "ephemeral";
|
|
@@ -507,7 +479,35 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
507
479
|
type: "ephemeral";
|
|
508
480
|
} | undefined;
|
|
509
481
|
})[];
|
|
482
|
+
role: "user" | "assistant";
|
|
510
483
|
}[];
|
|
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
|
+
diff: string;
|
|
491
|
+
status: 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
|
type: "patch" | "file";
|
|
513
513
|
path: string;
|
|
@@ -671,16 +671,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
671
671
|
}>>;
|
|
672
672
|
}, "strip", z.ZodTypeAny, {
|
|
673
673
|
type: "tool_use";
|
|
674
|
-
id: string;
|
|
675
674
|
name: string;
|
|
675
|
+
id: string;
|
|
676
676
|
input: Record<string, any>;
|
|
677
677
|
cache_control?: {
|
|
678
678
|
type: "ephemeral";
|
|
679
679
|
} | undefined;
|
|
680
680
|
}, {
|
|
681
681
|
type: "tool_use";
|
|
682
|
-
id: string;
|
|
683
682
|
name: string;
|
|
683
|
+
id: string;
|
|
684
684
|
input: Record<string, any>;
|
|
685
685
|
cache_control?: {
|
|
686
686
|
type: "ephemeral";
|
|
@@ -754,7 +754,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
754
754
|
} | undefined;
|
|
755
755
|
}>]>, "many">]>;
|
|
756
756
|
}, "strip", z.ZodTypeAny, {
|
|
757
|
-
role: "user" | "assistant";
|
|
758
757
|
content: string | ({
|
|
759
758
|
type: "text";
|
|
760
759
|
text: string;
|
|
@@ -763,8 +762,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
763
762
|
} | undefined;
|
|
764
763
|
} | {
|
|
765
764
|
type: "tool_use";
|
|
766
|
-
id: string;
|
|
767
765
|
name: string;
|
|
766
|
+
id: string;
|
|
768
767
|
input: Record<string, any>;
|
|
769
768
|
cache_control?: {
|
|
770
769
|
type: "ephemeral";
|
|
@@ -787,8 +786,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
787
786
|
type: "ephemeral";
|
|
788
787
|
} | undefined;
|
|
789
788
|
})[];
|
|
790
|
-
}, {
|
|
791
789
|
role: "user" | "assistant";
|
|
790
|
+
}, {
|
|
792
791
|
content: string | ({
|
|
793
792
|
type: "text";
|
|
794
793
|
text: string;
|
|
@@ -797,8 +796,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
797
796
|
} | undefined;
|
|
798
797
|
} | {
|
|
799
798
|
type: "tool_use";
|
|
800
|
-
id: string;
|
|
801
799
|
name: string;
|
|
800
|
+
id: string;
|
|
802
801
|
input: Record<string, any>;
|
|
803
802
|
cache_control?: {
|
|
804
803
|
type: "ephemeral";
|
|
@@ -821,9 +820,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
821
820
|
type: "ephemeral";
|
|
822
821
|
} | undefined;
|
|
823
822
|
})[];
|
|
823
|
+
role: "user" | "assistant";
|
|
824
824
|
}>, "many">;
|
|
825
825
|
}, "strip", z.ZodTypeAny, {
|
|
826
|
-
agentContext: string;
|
|
827
826
|
fileContext: {
|
|
828
827
|
currentWorkingDirectory: string;
|
|
829
828
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -851,8 +850,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
851
850
|
}[][];
|
|
852
851
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
853
852
|
};
|
|
853
|
+
agentContext: string;
|
|
854
854
|
messageHistory: {
|
|
855
|
-
role: "user" | "assistant";
|
|
856
855
|
content: string | ({
|
|
857
856
|
type: "text";
|
|
858
857
|
text: string;
|
|
@@ -861,8 +860,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
861
860
|
} | undefined;
|
|
862
861
|
} | {
|
|
863
862
|
type: "tool_use";
|
|
864
|
-
id: string;
|
|
865
863
|
name: string;
|
|
864
|
+
id: string;
|
|
866
865
|
input: Record<string, any>;
|
|
867
866
|
cache_control?: {
|
|
868
867
|
type: "ephemeral";
|
|
@@ -885,9 +884,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
885
884
|
type: "ephemeral";
|
|
886
885
|
} | undefined;
|
|
887
886
|
})[];
|
|
887
|
+
role: "user" | "assistant";
|
|
888
888
|
}[];
|
|
889
889
|
}, {
|
|
890
|
-
agentContext: string;
|
|
891
890
|
fileContext: {
|
|
892
891
|
currentWorkingDirectory: string;
|
|
893
892
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -915,8 +914,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
915
914
|
}[][];
|
|
916
915
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
917
916
|
};
|
|
917
|
+
agentContext: string;
|
|
918
918
|
messageHistory: {
|
|
919
|
-
role: "user" | "assistant";
|
|
920
919
|
content: string | ({
|
|
921
920
|
type: "text";
|
|
922
921
|
text: string;
|
|
@@ -925,8 +924,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
925
924
|
} | undefined;
|
|
926
925
|
} | {
|
|
927
926
|
type: "tool_use";
|
|
928
|
-
id: string;
|
|
929
927
|
name: string;
|
|
928
|
+
id: string;
|
|
930
929
|
input: Record<string, any>;
|
|
931
930
|
cache_control?: {
|
|
932
931
|
type: "ephemeral";
|
|
@@ -949,6 +948,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
949
948
|
type: "ephemeral";
|
|
950
949
|
} | undefined;
|
|
951
950
|
})[];
|
|
951
|
+
role: "user" | "assistant";
|
|
952
952
|
}[];
|
|
953
953
|
}>;
|
|
954
954
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -956,12 +956,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
956
956
|
result: z.ZodString;
|
|
957
957
|
id: z.ZodString;
|
|
958
958
|
}, "strip", z.ZodTypeAny, {
|
|
959
|
-
id: string;
|
|
960
959
|
name: string;
|
|
960
|
+
id: string;
|
|
961
961
|
result: string;
|
|
962
962
|
}, {
|
|
963
|
-
id: string;
|
|
964
963
|
name: string;
|
|
964
|
+
id: string;
|
|
965
965
|
result: string;
|
|
966
966
|
}>, "many">;
|
|
967
967
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -970,7 +970,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
970
970
|
costMode: "lite" | "normal" | "max";
|
|
971
971
|
promptId: string;
|
|
972
972
|
agentState: {
|
|
973
|
-
agentContext: string;
|
|
974
973
|
fileContext: {
|
|
975
974
|
currentWorkingDirectory: string;
|
|
976
975
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -998,8 +997,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
998
997
|
}[][];
|
|
999
998
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1000
999
|
};
|
|
1000
|
+
agentContext: string;
|
|
1001
1001
|
messageHistory: {
|
|
1002
|
-
role: "user" | "assistant";
|
|
1003
1002
|
content: string | ({
|
|
1004
1003
|
type: "text";
|
|
1005
1004
|
text: string;
|
|
@@ -1008,8 +1007,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1008
1007
|
} | undefined;
|
|
1009
1008
|
} | {
|
|
1010
1009
|
type: "tool_use";
|
|
1011
|
-
id: string;
|
|
1012
1010
|
name: string;
|
|
1011
|
+
id: string;
|
|
1013
1012
|
input: Record<string, any>;
|
|
1014
1013
|
cache_control?: {
|
|
1015
1014
|
type: "ephemeral";
|
|
@@ -1032,11 +1031,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1032
1031
|
type: "ephemeral";
|
|
1033
1032
|
} | undefined;
|
|
1034
1033
|
})[];
|
|
1034
|
+
role: "user" | "assistant";
|
|
1035
1035
|
}[];
|
|
1036
1036
|
};
|
|
1037
1037
|
toolResults: {
|
|
1038
|
-
id: string;
|
|
1039
1038
|
name: string;
|
|
1039
|
+
id: string;
|
|
1040
1040
|
result: string;
|
|
1041
1041
|
}[];
|
|
1042
1042
|
authToken?: string | undefined;
|
|
@@ -1046,7 +1046,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1046
1046
|
fingerprintId: string;
|
|
1047
1047
|
promptId: string;
|
|
1048
1048
|
agentState: {
|
|
1049
|
-
agentContext: string;
|
|
1050
1049
|
fileContext: {
|
|
1051
1050
|
currentWorkingDirectory: string;
|
|
1052
1051
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1074,8 +1073,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1074
1073
|
}[][];
|
|
1075
1074
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1076
1075
|
};
|
|
1076
|
+
agentContext: string;
|
|
1077
1077
|
messageHistory: {
|
|
1078
|
-
role: "user" | "assistant";
|
|
1079
1078
|
content: string | ({
|
|
1080
1079
|
type: "text";
|
|
1081
1080
|
text: string;
|
|
@@ -1084,8 +1083,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1084
1083
|
} | undefined;
|
|
1085
1084
|
} | {
|
|
1086
1085
|
type: "tool_use";
|
|
1087
|
-
id: string;
|
|
1088
1086
|
name: string;
|
|
1087
|
+
id: string;
|
|
1089
1088
|
input: Record<string, any>;
|
|
1090
1089
|
cache_control?: {
|
|
1091
1090
|
type: "ephemeral";
|
|
@@ -1108,11 +1107,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1108
1107
|
type: "ephemeral";
|
|
1109
1108
|
} | undefined;
|
|
1110
1109
|
})[];
|
|
1110
|
+
role: "user" | "assistant";
|
|
1111
1111
|
}[];
|
|
1112
1112
|
};
|
|
1113
1113
|
toolResults: {
|
|
1114
|
-
id: string;
|
|
1115
1114
|
name: string;
|
|
1115
|
+
id: string;
|
|
1116
1116
|
result: string;
|
|
1117
1117
|
}[];
|
|
1118
1118
|
authToken?: string | undefined;
|
|
@@ -1245,6 +1245,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1245
1245
|
}>;
|
|
1246
1246
|
}, "strip", z.ZodTypeAny, {
|
|
1247
1247
|
type: "init";
|
|
1248
|
+
fingerprintId: string;
|
|
1248
1249
|
fileContext: {
|
|
1249
1250
|
currentWorkingDirectory: string;
|
|
1250
1251
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1272,10 +1273,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1272
1273
|
}[][];
|
|
1273
1274
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1274
1275
|
};
|
|
1275
|
-
fingerprintId: string;
|
|
1276
1276
|
authToken?: string | undefined;
|
|
1277
1277
|
}, {
|
|
1278
1278
|
type: "init";
|
|
1279
|
+
fingerprintId: string;
|
|
1279
1280
|
fileContext: {
|
|
1280
1281
|
currentWorkingDirectory: string;
|
|
1281
1282
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1303,7 +1304,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1303
1304
|
}[][];
|
|
1304
1305
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1305
1306
|
};
|
|
1306
|
-
fingerprintId: string;
|
|
1307
1307
|
authToken?: string | undefined;
|
|
1308
1308
|
}>, z.ZodObject<{
|
|
1309
1309
|
type: z.ZodLiteral<"usage">;
|
|
@@ -1337,37 +1337,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1337
1337
|
type: "action";
|
|
1338
1338
|
data: {
|
|
1339
1339
|
type: "user-input";
|
|
1340
|
-
fileContext: {
|
|
1341
|
-
currentWorkingDirectory: string;
|
|
1342
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1343
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1344
|
-
knowledgeFiles: Record<string, string>;
|
|
1345
|
-
gitChanges: {
|
|
1346
|
-
diff: string;
|
|
1347
|
-
status: string;
|
|
1348
|
-
diffCached: string;
|
|
1349
|
-
lastCommitMessages: string;
|
|
1350
|
-
};
|
|
1351
|
-
changesSinceLastChat: Record<string, string>;
|
|
1352
|
-
shellConfigFiles: Record<string, string>;
|
|
1353
|
-
systemInfo: {
|
|
1354
|
-
platform: string;
|
|
1355
|
-
shell: string;
|
|
1356
|
-
nodeVersion: string;
|
|
1357
|
-
arch: string;
|
|
1358
|
-
homedir: string;
|
|
1359
|
-
cpus: number;
|
|
1360
|
-
};
|
|
1361
|
-
fileVersions: {
|
|
1362
|
-
path: string;
|
|
1363
|
-
content: string;
|
|
1364
|
-
}[][];
|
|
1365
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1366
|
-
};
|
|
1367
1340
|
fingerprintId: string;
|
|
1368
1341
|
userInputId: string;
|
|
1369
1342
|
messages: {
|
|
1370
|
-
role: "user" | "assistant";
|
|
1371
1343
|
content: string | ({
|
|
1372
1344
|
type: "text";
|
|
1373
1345
|
text: string;
|
|
@@ -1376,8 +1348,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1376
1348
|
} | undefined;
|
|
1377
1349
|
} | {
|
|
1378
1350
|
type: "tool_use";
|
|
1379
|
-
id: string;
|
|
1380
1351
|
name: string;
|
|
1352
|
+
id: string;
|
|
1381
1353
|
input: Record<string, any>;
|
|
1382
1354
|
cache_control?: {
|
|
1383
1355
|
type: "ephemeral";
|
|
@@ -1400,7 +1372,35 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1400
1372
|
type: "ephemeral";
|
|
1401
1373
|
} | undefined;
|
|
1402
1374
|
})[];
|
|
1375
|
+
role: "user" | "assistant";
|
|
1403
1376
|
}[];
|
|
1377
|
+
fileContext: {
|
|
1378
|
+
currentWorkingDirectory: string;
|
|
1379
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1380
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1381
|
+
knowledgeFiles: Record<string, string>;
|
|
1382
|
+
gitChanges: {
|
|
1383
|
+
diff: string;
|
|
1384
|
+
status: string;
|
|
1385
|
+
diffCached: string;
|
|
1386
|
+
lastCommitMessages: string;
|
|
1387
|
+
};
|
|
1388
|
+
changesSinceLastChat: Record<string, string>;
|
|
1389
|
+
shellConfigFiles: Record<string, string>;
|
|
1390
|
+
systemInfo: {
|
|
1391
|
+
platform: string;
|
|
1392
|
+
shell: string;
|
|
1393
|
+
nodeVersion: string;
|
|
1394
|
+
arch: string;
|
|
1395
|
+
homedir: string;
|
|
1396
|
+
cpus: number;
|
|
1397
|
+
};
|
|
1398
|
+
fileVersions: {
|
|
1399
|
+
path: string;
|
|
1400
|
+
content: string;
|
|
1401
|
+
}[][];
|
|
1402
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1403
|
+
};
|
|
1404
1404
|
changesAlreadyApplied: {
|
|
1405
1405
|
type: "patch" | "file";
|
|
1406
1406
|
path: string;
|
|
@@ -1414,7 +1414,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1414
1414
|
costMode: "lite" | "normal" | "max";
|
|
1415
1415
|
promptId: string;
|
|
1416
1416
|
agentState: {
|
|
1417
|
-
agentContext: string;
|
|
1418
1417
|
fileContext: {
|
|
1419
1418
|
currentWorkingDirectory: string;
|
|
1420
1419
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1442,8 +1441,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1442
1441
|
}[][];
|
|
1443
1442
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1444
1443
|
};
|
|
1444
|
+
agentContext: string;
|
|
1445
1445
|
messageHistory: {
|
|
1446
|
-
role: "user" | "assistant";
|
|
1447
1446
|
content: string | ({
|
|
1448
1447
|
type: "text";
|
|
1449
1448
|
text: string;
|
|
@@ -1452,8 +1451,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1452
1451
|
} | undefined;
|
|
1453
1452
|
} | {
|
|
1454
1453
|
type: "tool_use";
|
|
1455
|
-
id: string;
|
|
1456
1454
|
name: string;
|
|
1455
|
+
id: string;
|
|
1457
1456
|
input: Record<string, any>;
|
|
1458
1457
|
cache_control?: {
|
|
1459
1458
|
type: "ephemeral";
|
|
@@ -1476,11 +1475,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1476
1475
|
type: "ephemeral";
|
|
1477
1476
|
} | undefined;
|
|
1478
1477
|
})[];
|
|
1478
|
+
role: "user" | "assistant";
|
|
1479
1479
|
}[];
|
|
1480
1480
|
};
|
|
1481
1481
|
toolResults: {
|
|
1482
|
-
id: string;
|
|
1483
1482
|
name: string;
|
|
1483
|
+
id: string;
|
|
1484
1484
|
result: string;
|
|
1485
1485
|
}[];
|
|
1486
1486
|
authToken?: string | undefined;
|
|
@@ -1491,6 +1491,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1491
1491
|
requestId?: string | undefined;
|
|
1492
1492
|
} | {
|
|
1493
1493
|
type: "init";
|
|
1494
|
+
fingerprintId: string;
|
|
1494
1495
|
fileContext: {
|
|
1495
1496
|
currentWorkingDirectory: string;
|
|
1496
1497
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1518,7 +1519,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1518
1519
|
}[][];
|
|
1519
1520
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1520
1521
|
};
|
|
1521
|
-
fingerprintId: string;
|
|
1522
1522
|
authToken?: string | undefined;
|
|
1523
1523
|
} | {
|
|
1524
1524
|
type: "usage";
|
|
@@ -1535,37 +1535,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1535
1535
|
type: "action";
|
|
1536
1536
|
data: {
|
|
1537
1537
|
type: "user-input";
|
|
1538
|
-
fileContext: {
|
|
1539
|
-
currentWorkingDirectory: string;
|
|
1540
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1541
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1542
|
-
knowledgeFiles: Record<string, string>;
|
|
1543
|
-
gitChanges: {
|
|
1544
|
-
diff: string;
|
|
1545
|
-
status: string;
|
|
1546
|
-
diffCached: string;
|
|
1547
|
-
lastCommitMessages: string;
|
|
1548
|
-
};
|
|
1549
|
-
changesSinceLastChat: Record<string, string>;
|
|
1550
|
-
shellConfigFiles: Record<string, string>;
|
|
1551
|
-
systemInfo: {
|
|
1552
|
-
platform: string;
|
|
1553
|
-
shell: string;
|
|
1554
|
-
nodeVersion: string;
|
|
1555
|
-
arch: string;
|
|
1556
|
-
homedir: string;
|
|
1557
|
-
cpus: number;
|
|
1558
|
-
};
|
|
1559
|
-
fileVersions: {
|
|
1560
|
-
path: string;
|
|
1561
|
-
content: string;
|
|
1562
|
-
}[][];
|
|
1563
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1564
|
-
};
|
|
1565
1538
|
fingerprintId: string;
|
|
1566
1539
|
userInputId: string;
|
|
1567
1540
|
messages: {
|
|
1568
|
-
role: "user" | "assistant";
|
|
1569
1541
|
content: string | ({
|
|
1570
1542
|
type: "text";
|
|
1571
1543
|
text: string;
|
|
@@ -1574,8 +1546,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1574
1546
|
} | undefined;
|
|
1575
1547
|
} | {
|
|
1576
1548
|
type: "tool_use";
|
|
1577
|
-
id: string;
|
|
1578
1549
|
name: string;
|
|
1550
|
+
id: string;
|
|
1579
1551
|
input: Record<string, any>;
|
|
1580
1552
|
cache_control?: {
|
|
1581
1553
|
type: "ephemeral";
|
|
@@ -1598,7 +1570,35 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1598
1570
|
type: "ephemeral";
|
|
1599
1571
|
} | undefined;
|
|
1600
1572
|
})[];
|
|
1573
|
+
role: "user" | "assistant";
|
|
1601
1574
|
}[];
|
|
1575
|
+
fileContext: {
|
|
1576
|
+
currentWorkingDirectory: string;
|
|
1577
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1578
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1579
|
+
knowledgeFiles: Record<string, string>;
|
|
1580
|
+
gitChanges: {
|
|
1581
|
+
diff: string;
|
|
1582
|
+
status: string;
|
|
1583
|
+
diffCached: string;
|
|
1584
|
+
lastCommitMessages: string;
|
|
1585
|
+
};
|
|
1586
|
+
changesSinceLastChat: Record<string, string>;
|
|
1587
|
+
shellConfigFiles: Record<string, string>;
|
|
1588
|
+
systemInfo: {
|
|
1589
|
+
platform: string;
|
|
1590
|
+
shell: string;
|
|
1591
|
+
nodeVersion: string;
|
|
1592
|
+
arch: string;
|
|
1593
|
+
homedir: string;
|
|
1594
|
+
cpus: number;
|
|
1595
|
+
};
|
|
1596
|
+
fileVersions: {
|
|
1597
|
+
path: string;
|
|
1598
|
+
content: string;
|
|
1599
|
+
}[][];
|
|
1600
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1601
|
+
};
|
|
1602
1602
|
changesAlreadyApplied: {
|
|
1603
1603
|
type: "patch" | "file";
|
|
1604
1604
|
path: string;
|
|
@@ -1611,7 +1611,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1611
1611
|
fingerprintId: string;
|
|
1612
1612
|
promptId: string;
|
|
1613
1613
|
agentState: {
|
|
1614
|
-
agentContext: string;
|
|
1615
1614
|
fileContext: {
|
|
1616
1615
|
currentWorkingDirectory: string;
|
|
1617
1616
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1639,8 +1638,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1639
1638
|
}[][];
|
|
1640
1639
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1641
1640
|
};
|
|
1641
|
+
agentContext: string;
|
|
1642
1642
|
messageHistory: {
|
|
1643
|
-
role: "user" | "assistant";
|
|
1644
1643
|
content: string | ({
|
|
1645
1644
|
type: "text";
|
|
1646
1645
|
text: string;
|
|
@@ -1649,8 +1648,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1649
1648
|
} | undefined;
|
|
1650
1649
|
} | {
|
|
1651
1650
|
type: "tool_use";
|
|
1652
|
-
id: string;
|
|
1653
1651
|
name: string;
|
|
1652
|
+
id: string;
|
|
1654
1653
|
input: Record<string, any>;
|
|
1655
1654
|
cache_control?: {
|
|
1656
1655
|
type: "ephemeral";
|
|
@@ -1673,11 +1672,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1673
1672
|
type: "ephemeral";
|
|
1674
1673
|
} | undefined;
|
|
1675
1674
|
})[];
|
|
1675
|
+
role: "user" | "assistant";
|
|
1676
1676
|
}[];
|
|
1677
1677
|
};
|
|
1678
1678
|
toolResults: {
|
|
1679
|
-
id: string;
|
|
1680
1679
|
name: string;
|
|
1680
|
+
id: string;
|
|
1681
1681
|
result: string;
|
|
1682
1682
|
}[];
|
|
1683
1683
|
authToken?: string | undefined;
|
|
@@ -1689,6 +1689,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1689
1689
|
requestId?: string | undefined;
|
|
1690
1690
|
} | {
|
|
1691
1691
|
type: "init";
|
|
1692
|
+
fingerprintId: string;
|
|
1692
1693
|
fileContext: {
|
|
1693
1694
|
currentWorkingDirectory: string;
|
|
1694
1695
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1716,7 +1717,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1716
1717
|
}[][];
|
|
1717
1718
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1718
1719
|
};
|
|
1719
|
-
fingerprintId: string;
|
|
1720
1720
|
authToken?: string | undefined;
|
|
1721
1721
|
} | {
|
|
1722
1722
|
type: "usage";
|
|
@@ -1822,16 +1822,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1822
1822
|
}>>;
|
|
1823
1823
|
}, "strip", z.ZodTypeAny, {
|
|
1824
1824
|
type: "tool_use";
|
|
1825
|
-
id: string;
|
|
1826
1825
|
name: string;
|
|
1826
|
+
id: string;
|
|
1827
1827
|
input: Record<string, any>;
|
|
1828
1828
|
cache_control?: {
|
|
1829
1829
|
type: "ephemeral";
|
|
1830
1830
|
} | undefined;
|
|
1831
1831
|
}, {
|
|
1832
1832
|
type: "tool_use";
|
|
1833
|
-
id: string;
|
|
1834
1833
|
name: string;
|
|
1834
|
+
id: string;
|
|
1835
1835
|
input: Record<string, any>;
|
|
1836
1836
|
cache_control?: {
|
|
1837
1837
|
type: "ephemeral";
|
|
@@ -1905,7 +1905,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1905
1905
|
} | undefined;
|
|
1906
1906
|
}>]>, "many">]>;
|
|
1907
1907
|
}, "strip", z.ZodTypeAny, {
|
|
1908
|
-
role: "user" | "assistant";
|
|
1909
1908
|
content: string | ({
|
|
1910
1909
|
type: "text";
|
|
1911
1910
|
text: string;
|
|
@@ -1914,8 +1913,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1914
1913
|
} | undefined;
|
|
1915
1914
|
} | {
|
|
1916
1915
|
type: "tool_use";
|
|
1917
|
-
id: string;
|
|
1918
1916
|
name: string;
|
|
1917
|
+
id: string;
|
|
1919
1918
|
input: Record<string, any>;
|
|
1920
1919
|
cache_control?: {
|
|
1921
1920
|
type: "ephemeral";
|
|
@@ -1938,8 +1937,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1938
1937
|
type: "ephemeral";
|
|
1939
1938
|
} | undefined;
|
|
1940
1939
|
})[];
|
|
1941
|
-
}, {
|
|
1942
1940
|
role: "user" | "assistant";
|
|
1941
|
+
}, {
|
|
1943
1942
|
content: string | ({
|
|
1944
1943
|
type: "text";
|
|
1945
1944
|
text: string;
|
|
@@ -1948,8 +1947,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1948
1947
|
} | undefined;
|
|
1949
1948
|
} | {
|
|
1950
1949
|
type: "tool_use";
|
|
1951
|
-
id: string;
|
|
1952
1950
|
name: string;
|
|
1951
|
+
id: string;
|
|
1953
1952
|
input: Record<string, any>;
|
|
1954
1953
|
cache_control?: {
|
|
1955
1954
|
type: "ephemeral";
|
|
@@ -1972,6 +1971,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1972
1971
|
type: "ephemeral";
|
|
1973
1972
|
} | undefined;
|
|
1974
1973
|
})[];
|
|
1974
|
+
role: "user" | "assistant";
|
|
1975
1975
|
}>, "many">;
|
|
1976
1976
|
fileContext: z.ZodObject<{
|
|
1977
1977
|
currentWorkingDirectory: z.ZodString;
|
|
@@ -2098,37 +2098,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2098
2098
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
2099
2099
|
}, "strip", z.ZodTypeAny, {
|
|
2100
2100
|
type: "user-input";
|
|
2101
|
-
fileContext: {
|
|
2102
|
-
currentWorkingDirectory: string;
|
|
2103
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2104
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2105
|
-
knowledgeFiles: Record<string, string>;
|
|
2106
|
-
gitChanges: {
|
|
2107
|
-
diff: string;
|
|
2108
|
-
status: string;
|
|
2109
|
-
diffCached: string;
|
|
2110
|
-
lastCommitMessages: string;
|
|
2111
|
-
};
|
|
2112
|
-
changesSinceLastChat: Record<string, string>;
|
|
2113
|
-
shellConfigFiles: Record<string, string>;
|
|
2114
|
-
systemInfo: {
|
|
2115
|
-
platform: string;
|
|
2116
|
-
shell: string;
|
|
2117
|
-
nodeVersion: string;
|
|
2118
|
-
arch: string;
|
|
2119
|
-
homedir: string;
|
|
2120
|
-
cpus: number;
|
|
2121
|
-
};
|
|
2122
|
-
fileVersions: {
|
|
2123
|
-
path: string;
|
|
2124
|
-
content: string;
|
|
2125
|
-
}[][];
|
|
2126
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2127
|
-
};
|
|
2128
2101
|
fingerprintId: string;
|
|
2129
2102
|
userInputId: string;
|
|
2130
2103
|
messages: {
|
|
2131
|
-
role: "user" | "assistant";
|
|
2132
2104
|
content: string | ({
|
|
2133
2105
|
type: "text";
|
|
2134
2106
|
text: string;
|
|
@@ -2137,8 +2109,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2137
2109
|
} | undefined;
|
|
2138
2110
|
} | {
|
|
2139
2111
|
type: "tool_use";
|
|
2140
|
-
id: string;
|
|
2141
2112
|
name: string;
|
|
2113
|
+
id: string;
|
|
2142
2114
|
input: Record<string, any>;
|
|
2143
2115
|
cache_control?: {
|
|
2144
2116
|
type: "ephemeral";
|
|
@@ -2161,16 +2133,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2161
2133
|
type: "ephemeral";
|
|
2162
2134
|
} | undefined;
|
|
2163
2135
|
})[];
|
|
2136
|
+
role: "user" | "assistant";
|
|
2164
2137
|
}[];
|
|
2165
|
-
changesAlreadyApplied: {
|
|
2166
|
-
type: "patch" | "file";
|
|
2167
|
-
path: string;
|
|
2168
|
-
content: string;
|
|
2169
|
-
}[];
|
|
2170
|
-
costMode: "lite" | "normal" | "max";
|
|
2171
|
-
authToken?: string | undefined;
|
|
2172
|
-
}, {
|
|
2173
|
-
type: "user-input";
|
|
2174
2138
|
fileContext: {
|
|
2175
2139
|
currentWorkingDirectory: string;
|
|
2176
2140
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2198,10 +2162,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2198
2162
|
}[][];
|
|
2199
2163
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2200
2164
|
};
|
|
2165
|
+
changesAlreadyApplied: {
|
|
2166
|
+
type: "patch" | "file";
|
|
2167
|
+
path: string;
|
|
2168
|
+
content: string;
|
|
2169
|
+
}[];
|
|
2170
|
+
costMode: "lite" | "normal" | "max";
|
|
2171
|
+
authToken?: string | undefined;
|
|
2172
|
+
}, {
|
|
2173
|
+
type: "user-input";
|
|
2201
2174
|
fingerprintId: string;
|
|
2202
2175
|
userInputId: string;
|
|
2203
2176
|
messages: {
|
|
2204
|
-
role: "user" | "assistant";
|
|
2205
2177
|
content: string | ({
|
|
2206
2178
|
type: "text";
|
|
2207
2179
|
text: string;
|
|
@@ -2210,8 +2182,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2210
2182
|
} | undefined;
|
|
2211
2183
|
} | {
|
|
2212
2184
|
type: "tool_use";
|
|
2213
|
-
id: string;
|
|
2214
2185
|
name: string;
|
|
2186
|
+
id: string;
|
|
2215
2187
|
input: Record<string, any>;
|
|
2216
2188
|
cache_control?: {
|
|
2217
2189
|
type: "ephemeral";
|
|
@@ -2234,7 +2206,35 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2234
2206
|
type: "ephemeral";
|
|
2235
2207
|
} | undefined;
|
|
2236
2208
|
})[];
|
|
2209
|
+
role: "user" | "assistant";
|
|
2237
2210
|
}[];
|
|
2211
|
+
fileContext: {
|
|
2212
|
+
currentWorkingDirectory: string;
|
|
2213
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
2214
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
2215
|
+
knowledgeFiles: Record<string, string>;
|
|
2216
|
+
gitChanges: {
|
|
2217
|
+
diff: string;
|
|
2218
|
+
status: string;
|
|
2219
|
+
diffCached: string;
|
|
2220
|
+
lastCommitMessages: string;
|
|
2221
|
+
};
|
|
2222
|
+
changesSinceLastChat: Record<string, string>;
|
|
2223
|
+
shellConfigFiles: Record<string, string>;
|
|
2224
|
+
systemInfo: {
|
|
2225
|
+
platform: string;
|
|
2226
|
+
shell: string;
|
|
2227
|
+
nodeVersion: string;
|
|
2228
|
+
arch: string;
|
|
2229
|
+
homedir: string;
|
|
2230
|
+
cpus: number;
|
|
2231
|
+
};
|
|
2232
|
+
fileVersions: {
|
|
2233
|
+
path: string;
|
|
2234
|
+
content: string;
|
|
2235
|
+
}[][];
|
|
2236
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2237
|
+
};
|
|
2238
2238
|
changesAlreadyApplied: {
|
|
2239
2239
|
type: "patch" | "file";
|
|
2240
2240
|
path: string;
|
|
@@ -2398,16 +2398,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2398
2398
|
}>>;
|
|
2399
2399
|
}, "strip", z.ZodTypeAny, {
|
|
2400
2400
|
type: "tool_use";
|
|
2401
|
-
id: string;
|
|
2402
2401
|
name: string;
|
|
2402
|
+
id: string;
|
|
2403
2403
|
input: Record<string, any>;
|
|
2404
2404
|
cache_control?: {
|
|
2405
2405
|
type: "ephemeral";
|
|
2406
2406
|
} | undefined;
|
|
2407
2407
|
}, {
|
|
2408
2408
|
type: "tool_use";
|
|
2409
|
-
id: string;
|
|
2410
2409
|
name: string;
|
|
2410
|
+
id: string;
|
|
2411
2411
|
input: Record<string, any>;
|
|
2412
2412
|
cache_control?: {
|
|
2413
2413
|
type: "ephemeral";
|
|
@@ -2481,7 +2481,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2481
2481
|
} | undefined;
|
|
2482
2482
|
}>]>, "many">]>;
|
|
2483
2483
|
}, "strip", z.ZodTypeAny, {
|
|
2484
|
-
role: "user" | "assistant";
|
|
2485
2484
|
content: string | ({
|
|
2486
2485
|
type: "text";
|
|
2487
2486
|
text: string;
|
|
@@ -2490,8 +2489,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2490
2489
|
} | undefined;
|
|
2491
2490
|
} | {
|
|
2492
2491
|
type: "tool_use";
|
|
2493
|
-
id: string;
|
|
2494
2492
|
name: string;
|
|
2493
|
+
id: string;
|
|
2495
2494
|
input: Record<string, any>;
|
|
2496
2495
|
cache_control?: {
|
|
2497
2496
|
type: "ephemeral";
|
|
@@ -2514,8 +2513,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2514
2513
|
type: "ephemeral";
|
|
2515
2514
|
} | undefined;
|
|
2516
2515
|
})[];
|
|
2517
|
-
}, {
|
|
2518
2516
|
role: "user" | "assistant";
|
|
2517
|
+
}, {
|
|
2519
2518
|
content: string | ({
|
|
2520
2519
|
type: "text";
|
|
2521
2520
|
text: string;
|
|
@@ -2524,8 +2523,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2524
2523
|
} | undefined;
|
|
2525
2524
|
} | {
|
|
2526
2525
|
type: "tool_use";
|
|
2527
|
-
id: string;
|
|
2528
2526
|
name: string;
|
|
2527
|
+
id: string;
|
|
2529
2528
|
input: Record<string, any>;
|
|
2530
2529
|
cache_control?: {
|
|
2531
2530
|
type: "ephemeral";
|
|
@@ -2548,9 +2547,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2548
2547
|
type: "ephemeral";
|
|
2549
2548
|
} | undefined;
|
|
2550
2549
|
})[];
|
|
2550
|
+
role: "user" | "assistant";
|
|
2551
2551
|
}>, "many">;
|
|
2552
2552
|
}, "strip", z.ZodTypeAny, {
|
|
2553
|
-
agentContext: string;
|
|
2554
2553
|
fileContext: {
|
|
2555
2554
|
currentWorkingDirectory: string;
|
|
2556
2555
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2578,8 +2577,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2578
2577
|
}[][];
|
|
2579
2578
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2580
2579
|
};
|
|
2580
|
+
agentContext: string;
|
|
2581
2581
|
messageHistory: {
|
|
2582
|
-
role: "user" | "assistant";
|
|
2583
2582
|
content: string | ({
|
|
2584
2583
|
type: "text";
|
|
2585
2584
|
text: string;
|
|
@@ -2588,8 +2587,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2588
2587
|
} | undefined;
|
|
2589
2588
|
} | {
|
|
2590
2589
|
type: "tool_use";
|
|
2591
|
-
id: string;
|
|
2592
2590
|
name: string;
|
|
2591
|
+
id: string;
|
|
2593
2592
|
input: Record<string, any>;
|
|
2594
2593
|
cache_control?: {
|
|
2595
2594
|
type: "ephemeral";
|
|
@@ -2612,9 +2611,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2612
2611
|
type: "ephemeral";
|
|
2613
2612
|
} | undefined;
|
|
2614
2613
|
})[];
|
|
2614
|
+
role: "user" | "assistant";
|
|
2615
2615
|
}[];
|
|
2616
2616
|
}, {
|
|
2617
|
-
agentContext: string;
|
|
2618
2617
|
fileContext: {
|
|
2619
2618
|
currentWorkingDirectory: string;
|
|
2620
2619
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2642,8 +2641,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2642
2641
|
}[][];
|
|
2643
2642
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2644
2643
|
};
|
|
2644
|
+
agentContext: string;
|
|
2645
2645
|
messageHistory: {
|
|
2646
|
-
role: "user" | "assistant";
|
|
2647
2646
|
content: string | ({
|
|
2648
2647
|
type: "text";
|
|
2649
2648
|
text: string;
|
|
@@ -2652,8 +2651,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2652
2651
|
} | undefined;
|
|
2653
2652
|
} | {
|
|
2654
2653
|
type: "tool_use";
|
|
2655
|
-
id: string;
|
|
2656
2654
|
name: string;
|
|
2655
|
+
id: string;
|
|
2657
2656
|
input: Record<string, any>;
|
|
2658
2657
|
cache_control?: {
|
|
2659
2658
|
type: "ephemeral";
|
|
@@ -2676,6 +2675,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2676
2675
|
type: "ephemeral";
|
|
2677
2676
|
} | undefined;
|
|
2678
2677
|
})[];
|
|
2678
|
+
role: "user" | "assistant";
|
|
2679
2679
|
}[];
|
|
2680
2680
|
}>;
|
|
2681
2681
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2683,12 +2683,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2683
2683
|
result: z.ZodString;
|
|
2684
2684
|
id: z.ZodString;
|
|
2685
2685
|
}, "strip", z.ZodTypeAny, {
|
|
2686
|
-
id: string;
|
|
2687
2686
|
name: string;
|
|
2687
|
+
id: string;
|
|
2688
2688
|
result: string;
|
|
2689
2689
|
}, {
|
|
2690
|
-
id: string;
|
|
2691
2690
|
name: string;
|
|
2691
|
+
id: string;
|
|
2692
2692
|
result: string;
|
|
2693
2693
|
}>, "many">;
|
|
2694
2694
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2697,7 +2697,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2697
2697
|
costMode: "lite" | "normal" | "max";
|
|
2698
2698
|
promptId: string;
|
|
2699
2699
|
agentState: {
|
|
2700
|
-
agentContext: string;
|
|
2701
2700
|
fileContext: {
|
|
2702
2701
|
currentWorkingDirectory: string;
|
|
2703
2702
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2725,8 +2724,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2725
2724
|
}[][];
|
|
2726
2725
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2727
2726
|
};
|
|
2727
|
+
agentContext: string;
|
|
2728
2728
|
messageHistory: {
|
|
2729
|
-
role: "user" | "assistant";
|
|
2730
2729
|
content: string | ({
|
|
2731
2730
|
type: "text";
|
|
2732
2731
|
text: string;
|
|
@@ -2735,8 +2734,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2735
2734
|
} | undefined;
|
|
2736
2735
|
} | {
|
|
2737
2736
|
type: "tool_use";
|
|
2738
|
-
id: string;
|
|
2739
2737
|
name: string;
|
|
2738
|
+
id: string;
|
|
2740
2739
|
input: Record<string, any>;
|
|
2741
2740
|
cache_control?: {
|
|
2742
2741
|
type: "ephemeral";
|
|
@@ -2759,11 +2758,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2759
2758
|
type: "ephemeral";
|
|
2760
2759
|
} | undefined;
|
|
2761
2760
|
})[];
|
|
2761
|
+
role: "user" | "assistant";
|
|
2762
2762
|
}[];
|
|
2763
2763
|
};
|
|
2764
2764
|
toolResults: {
|
|
2765
|
-
id: string;
|
|
2766
2765
|
name: string;
|
|
2766
|
+
id: string;
|
|
2767
2767
|
result: string;
|
|
2768
2768
|
}[];
|
|
2769
2769
|
authToken?: string | undefined;
|
|
@@ -2773,7 +2773,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2773
2773
|
fingerprintId: string;
|
|
2774
2774
|
promptId: string;
|
|
2775
2775
|
agentState: {
|
|
2776
|
-
agentContext: string;
|
|
2777
2776
|
fileContext: {
|
|
2778
2777
|
currentWorkingDirectory: string;
|
|
2779
2778
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2801,8 +2800,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2801
2800
|
}[][];
|
|
2802
2801
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2803
2802
|
};
|
|
2803
|
+
agentContext: string;
|
|
2804
2804
|
messageHistory: {
|
|
2805
|
-
role: "user" | "assistant";
|
|
2806
2805
|
content: string | ({
|
|
2807
2806
|
type: "text";
|
|
2808
2807
|
text: string;
|
|
@@ -2811,8 +2810,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2811
2810
|
} | undefined;
|
|
2812
2811
|
} | {
|
|
2813
2812
|
type: "tool_use";
|
|
2814
|
-
id: string;
|
|
2815
2813
|
name: string;
|
|
2814
|
+
id: string;
|
|
2816
2815
|
input: Record<string, any>;
|
|
2817
2816
|
cache_control?: {
|
|
2818
2817
|
type: "ephemeral";
|
|
@@ -2835,11 +2834,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2835
2834
|
type: "ephemeral";
|
|
2836
2835
|
} | undefined;
|
|
2837
2836
|
})[];
|
|
2837
|
+
role: "user" | "assistant";
|
|
2838
2838
|
}[];
|
|
2839
2839
|
};
|
|
2840
2840
|
toolResults: {
|
|
2841
|
-
id: string;
|
|
2842
2841
|
name: string;
|
|
2842
|
+
id: string;
|
|
2843
2843
|
result: string;
|
|
2844
2844
|
}[];
|
|
2845
2845
|
authToken?: string | undefined;
|
|
@@ -2972,6 +2972,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2972
2972
|
}>;
|
|
2973
2973
|
}, "strip", z.ZodTypeAny, {
|
|
2974
2974
|
type: "init";
|
|
2975
|
+
fingerprintId: string;
|
|
2975
2976
|
fileContext: {
|
|
2976
2977
|
currentWorkingDirectory: string;
|
|
2977
2978
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2999,10 +3000,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2999
3000
|
}[][];
|
|
3000
3001
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3001
3002
|
};
|
|
3002
|
-
fingerprintId: string;
|
|
3003
3003
|
authToken?: string | undefined;
|
|
3004
3004
|
}, {
|
|
3005
3005
|
type: "init";
|
|
3006
|
+
fingerprintId: string;
|
|
3006
3007
|
fileContext: {
|
|
3007
3008
|
currentWorkingDirectory: string;
|
|
3008
3009
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3030,7 +3031,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3030
3031
|
}[][];
|
|
3031
3032
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3032
3033
|
};
|
|
3033
|
-
fingerprintId: string;
|
|
3034
3034
|
authToken?: string | undefined;
|
|
3035
3035
|
}>, z.ZodObject<{
|
|
3036
3036
|
type: z.ZodLiteral<"usage">;
|
|
@@ -3064,37 +3064,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3064
3064
|
type: "action";
|
|
3065
3065
|
data: {
|
|
3066
3066
|
type: "user-input";
|
|
3067
|
-
fileContext: {
|
|
3068
|
-
currentWorkingDirectory: string;
|
|
3069
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3070
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3071
|
-
knowledgeFiles: Record<string, string>;
|
|
3072
|
-
gitChanges: {
|
|
3073
|
-
diff: string;
|
|
3074
|
-
status: string;
|
|
3075
|
-
diffCached: string;
|
|
3076
|
-
lastCommitMessages: string;
|
|
3077
|
-
};
|
|
3078
|
-
changesSinceLastChat: Record<string, string>;
|
|
3079
|
-
shellConfigFiles: Record<string, string>;
|
|
3080
|
-
systemInfo: {
|
|
3081
|
-
platform: string;
|
|
3082
|
-
shell: string;
|
|
3083
|
-
nodeVersion: string;
|
|
3084
|
-
arch: string;
|
|
3085
|
-
homedir: string;
|
|
3086
|
-
cpus: number;
|
|
3087
|
-
};
|
|
3088
|
-
fileVersions: {
|
|
3089
|
-
path: string;
|
|
3090
|
-
content: string;
|
|
3091
|
-
}[][];
|
|
3092
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3093
|
-
};
|
|
3094
3067
|
fingerprintId: string;
|
|
3095
3068
|
userInputId: string;
|
|
3096
3069
|
messages: {
|
|
3097
|
-
role: "user" | "assistant";
|
|
3098
3070
|
content: string | ({
|
|
3099
3071
|
type: "text";
|
|
3100
3072
|
text: string;
|
|
@@ -3103,8 +3075,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3103
3075
|
} | undefined;
|
|
3104
3076
|
} | {
|
|
3105
3077
|
type: "tool_use";
|
|
3106
|
-
id: string;
|
|
3107
3078
|
name: string;
|
|
3079
|
+
id: string;
|
|
3108
3080
|
input: Record<string, any>;
|
|
3109
3081
|
cache_control?: {
|
|
3110
3082
|
type: "ephemeral";
|
|
@@ -3127,7 +3099,35 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3127
3099
|
type: "ephemeral";
|
|
3128
3100
|
} | undefined;
|
|
3129
3101
|
})[];
|
|
3102
|
+
role: "user" | "assistant";
|
|
3130
3103
|
}[];
|
|
3104
|
+
fileContext: {
|
|
3105
|
+
currentWorkingDirectory: string;
|
|
3106
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
3107
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
3108
|
+
knowledgeFiles: Record<string, string>;
|
|
3109
|
+
gitChanges: {
|
|
3110
|
+
diff: string;
|
|
3111
|
+
status: string;
|
|
3112
|
+
diffCached: string;
|
|
3113
|
+
lastCommitMessages: string;
|
|
3114
|
+
};
|
|
3115
|
+
changesSinceLastChat: Record<string, string>;
|
|
3116
|
+
shellConfigFiles: Record<string, string>;
|
|
3117
|
+
systemInfo: {
|
|
3118
|
+
platform: string;
|
|
3119
|
+
shell: string;
|
|
3120
|
+
nodeVersion: string;
|
|
3121
|
+
arch: string;
|
|
3122
|
+
homedir: string;
|
|
3123
|
+
cpus: number;
|
|
3124
|
+
};
|
|
3125
|
+
fileVersions: {
|
|
3126
|
+
path: string;
|
|
3127
|
+
content: string;
|
|
3128
|
+
}[][];
|
|
3129
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3130
|
+
};
|
|
3131
3131
|
changesAlreadyApplied: {
|
|
3132
3132
|
type: "patch" | "file";
|
|
3133
3133
|
path: string;
|
|
@@ -3141,7 +3141,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3141
3141
|
costMode: "lite" | "normal" | "max";
|
|
3142
3142
|
promptId: string;
|
|
3143
3143
|
agentState: {
|
|
3144
|
-
agentContext: string;
|
|
3145
3144
|
fileContext: {
|
|
3146
3145
|
currentWorkingDirectory: string;
|
|
3147
3146
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3169,8 +3168,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3169
3168
|
}[][];
|
|
3170
3169
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3171
3170
|
};
|
|
3171
|
+
agentContext: string;
|
|
3172
3172
|
messageHistory: {
|
|
3173
|
-
role: "user" | "assistant";
|
|
3174
3173
|
content: string | ({
|
|
3175
3174
|
type: "text";
|
|
3176
3175
|
text: string;
|
|
@@ -3179,8 +3178,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3179
3178
|
} | undefined;
|
|
3180
3179
|
} | {
|
|
3181
3180
|
type: "tool_use";
|
|
3182
|
-
id: string;
|
|
3183
3181
|
name: string;
|
|
3182
|
+
id: string;
|
|
3184
3183
|
input: Record<string, any>;
|
|
3185
3184
|
cache_control?: {
|
|
3186
3185
|
type: "ephemeral";
|
|
@@ -3203,11 +3202,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3203
3202
|
type: "ephemeral";
|
|
3204
3203
|
} | undefined;
|
|
3205
3204
|
})[];
|
|
3205
|
+
role: "user" | "assistant";
|
|
3206
3206
|
}[];
|
|
3207
3207
|
};
|
|
3208
3208
|
toolResults: {
|
|
3209
|
-
id: string;
|
|
3210
3209
|
name: string;
|
|
3210
|
+
id: string;
|
|
3211
3211
|
result: string;
|
|
3212
3212
|
}[];
|
|
3213
3213
|
authToken?: string | undefined;
|
|
@@ -3218,50 +3218,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3218
3218
|
requestId?: string | undefined;
|
|
3219
3219
|
} | {
|
|
3220
3220
|
type: "init";
|
|
3221
|
-
fileContext: {
|
|
3222
|
-
currentWorkingDirectory: string;
|
|
3223
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3224
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3225
|
-
knowledgeFiles: Record<string, string>;
|
|
3226
|
-
gitChanges: {
|
|
3227
|
-
diff: string;
|
|
3228
|
-
status: string;
|
|
3229
|
-
diffCached: string;
|
|
3230
|
-
lastCommitMessages: string;
|
|
3231
|
-
};
|
|
3232
|
-
changesSinceLastChat: Record<string, string>;
|
|
3233
|
-
shellConfigFiles: Record<string, string>;
|
|
3234
|
-
systemInfo: {
|
|
3235
|
-
platform: string;
|
|
3236
|
-
shell: string;
|
|
3237
|
-
nodeVersion: string;
|
|
3238
|
-
arch: string;
|
|
3239
|
-
homedir: string;
|
|
3240
|
-
cpus: number;
|
|
3241
|
-
};
|
|
3242
|
-
fileVersions: {
|
|
3243
|
-
path: string;
|
|
3244
|
-
content: string;
|
|
3245
|
-
}[][];
|
|
3246
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3247
|
-
};
|
|
3248
|
-
fingerprintId: string;
|
|
3249
|
-
authToken?: string | undefined;
|
|
3250
|
-
} | {
|
|
3251
|
-
type: "usage";
|
|
3252
|
-
fingerprintId: string;
|
|
3253
|
-
authToken?: string | undefined;
|
|
3254
|
-
} | {
|
|
3255
|
-
type: "generate-commit-message";
|
|
3256
3221
|
fingerprintId: string;
|
|
3257
|
-
stagedChanges: string;
|
|
3258
|
-
authToken?: string | undefined;
|
|
3259
|
-
};
|
|
3260
|
-
txid: number;
|
|
3261
|
-
}, {
|
|
3262
|
-
type: "action";
|
|
3263
|
-
data: {
|
|
3264
|
-
type: "user-input";
|
|
3265
3222
|
fileContext: {
|
|
3266
3223
|
currentWorkingDirectory: string;
|
|
3267
3224
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3289,10 +3246,25 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3289
3246
|
}[][];
|
|
3290
3247
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3291
3248
|
};
|
|
3249
|
+
authToken?: string | undefined;
|
|
3250
|
+
} | {
|
|
3251
|
+
type: "usage";
|
|
3252
|
+
fingerprintId: string;
|
|
3253
|
+
authToken?: string | undefined;
|
|
3254
|
+
} | {
|
|
3255
|
+
type: "generate-commit-message";
|
|
3256
|
+
fingerprintId: string;
|
|
3257
|
+
stagedChanges: string;
|
|
3258
|
+
authToken?: string | undefined;
|
|
3259
|
+
};
|
|
3260
|
+
txid: number;
|
|
3261
|
+
}, {
|
|
3262
|
+
type: "action";
|
|
3263
|
+
data: {
|
|
3264
|
+
type: "user-input";
|
|
3292
3265
|
fingerprintId: string;
|
|
3293
3266
|
userInputId: string;
|
|
3294
3267
|
messages: {
|
|
3295
|
-
role: "user" | "assistant";
|
|
3296
3268
|
content: string | ({
|
|
3297
3269
|
type: "text";
|
|
3298
3270
|
text: string;
|
|
@@ -3301,8 +3273,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3301
3273
|
} | undefined;
|
|
3302
3274
|
} | {
|
|
3303
3275
|
type: "tool_use";
|
|
3304
|
-
id: string;
|
|
3305
3276
|
name: string;
|
|
3277
|
+
id: string;
|
|
3306
3278
|
input: Record<string, any>;
|
|
3307
3279
|
cache_control?: {
|
|
3308
3280
|
type: "ephemeral";
|
|
@@ -3325,7 +3297,35 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3325
3297
|
type: "ephemeral";
|
|
3326
3298
|
} | undefined;
|
|
3327
3299
|
})[];
|
|
3300
|
+
role: "user" | "assistant";
|
|
3328
3301
|
}[];
|
|
3302
|
+
fileContext: {
|
|
3303
|
+
currentWorkingDirectory: string;
|
|
3304
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
3305
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
3306
|
+
knowledgeFiles: Record<string, string>;
|
|
3307
|
+
gitChanges: {
|
|
3308
|
+
diff: string;
|
|
3309
|
+
status: string;
|
|
3310
|
+
diffCached: string;
|
|
3311
|
+
lastCommitMessages: string;
|
|
3312
|
+
};
|
|
3313
|
+
changesSinceLastChat: Record<string, string>;
|
|
3314
|
+
shellConfigFiles: Record<string, string>;
|
|
3315
|
+
systemInfo: {
|
|
3316
|
+
platform: string;
|
|
3317
|
+
shell: string;
|
|
3318
|
+
nodeVersion: string;
|
|
3319
|
+
arch: string;
|
|
3320
|
+
homedir: string;
|
|
3321
|
+
cpus: number;
|
|
3322
|
+
};
|
|
3323
|
+
fileVersions: {
|
|
3324
|
+
path: string;
|
|
3325
|
+
content: string;
|
|
3326
|
+
}[][];
|
|
3327
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3328
|
+
};
|
|
3329
3329
|
changesAlreadyApplied: {
|
|
3330
3330
|
type: "patch" | "file";
|
|
3331
3331
|
path: string;
|
|
@@ -3338,7 +3338,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3338
3338
|
fingerprintId: string;
|
|
3339
3339
|
promptId: string;
|
|
3340
3340
|
agentState: {
|
|
3341
|
-
agentContext: string;
|
|
3342
3341
|
fileContext: {
|
|
3343
3342
|
currentWorkingDirectory: string;
|
|
3344
3343
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3366,8 +3365,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3366
3365
|
}[][];
|
|
3367
3366
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3368
3367
|
};
|
|
3368
|
+
agentContext: string;
|
|
3369
3369
|
messageHistory: {
|
|
3370
|
-
role: "user" | "assistant";
|
|
3371
3370
|
content: string | ({
|
|
3372
3371
|
type: "text";
|
|
3373
3372
|
text: string;
|
|
@@ -3376,8 +3375,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3376
3375
|
} | undefined;
|
|
3377
3376
|
} | {
|
|
3378
3377
|
type: "tool_use";
|
|
3379
|
-
id: string;
|
|
3380
3378
|
name: string;
|
|
3379
|
+
id: string;
|
|
3381
3380
|
input: Record<string, any>;
|
|
3382
3381
|
cache_control?: {
|
|
3383
3382
|
type: "ephemeral";
|
|
@@ -3400,11 +3399,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3400
3399
|
type: "ephemeral";
|
|
3401
3400
|
} | undefined;
|
|
3402
3401
|
})[];
|
|
3402
|
+
role: "user" | "assistant";
|
|
3403
3403
|
}[];
|
|
3404
3404
|
};
|
|
3405
3405
|
toolResults: {
|
|
3406
|
-
id: string;
|
|
3407
3406
|
name: string;
|
|
3407
|
+
id: string;
|
|
3408
3408
|
result: string;
|
|
3409
3409
|
}[];
|
|
3410
3410
|
authToken?: string | undefined;
|
|
@@ -3416,6 +3416,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3416
3416
|
requestId?: string | undefined;
|
|
3417
3417
|
} | {
|
|
3418
3418
|
type: "init";
|
|
3419
|
+
fingerprintId: string;
|
|
3419
3420
|
fileContext: {
|
|
3420
3421
|
currentWorkingDirectory: string;
|
|
3421
3422
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3443,7 +3444,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3443
3444
|
}[][];
|
|
3444
3445
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3445
3446
|
};
|
|
3446
|
-
fingerprintId: string;
|
|
3447
3447
|
authToken?: string | undefined;
|
|
3448
3448
|
} | {
|
|
3449
3449
|
type: "usage";
|
|
@@ -3740,16 +3740,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3740
3740
|
}>>;
|
|
3741
3741
|
}, "strip", z.ZodTypeAny, {
|
|
3742
3742
|
type: "tool_use";
|
|
3743
|
-
id: string;
|
|
3744
3743
|
name: string;
|
|
3744
|
+
id: string;
|
|
3745
3745
|
input: Record<string, any>;
|
|
3746
3746
|
cache_control?: {
|
|
3747
3747
|
type: "ephemeral";
|
|
3748
3748
|
} | undefined;
|
|
3749
3749
|
}, {
|
|
3750
3750
|
type: "tool_use";
|
|
3751
|
-
id: string;
|
|
3752
3751
|
name: string;
|
|
3752
|
+
id: string;
|
|
3753
3753
|
input: Record<string, any>;
|
|
3754
3754
|
cache_control?: {
|
|
3755
3755
|
type: "ephemeral";
|
|
@@ -3823,7 +3823,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3823
3823
|
} | undefined;
|
|
3824
3824
|
}>]>, "many">]>;
|
|
3825
3825
|
}, "strip", z.ZodTypeAny, {
|
|
3826
|
-
role: "user" | "assistant";
|
|
3827
3826
|
content: string | ({
|
|
3828
3827
|
type: "text";
|
|
3829
3828
|
text: string;
|
|
@@ -3832,8 +3831,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3832
3831
|
} | undefined;
|
|
3833
3832
|
} | {
|
|
3834
3833
|
type: "tool_use";
|
|
3835
|
-
id: string;
|
|
3836
3834
|
name: string;
|
|
3835
|
+
id: string;
|
|
3837
3836
|
input: Record<string, any>;
|
|
3838
3837
|
cache_control?: {
|
|
3839
3838
|
type: "ephemeral";
|
|
@@ -3856,8 +3855,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3856
3855
|
type: "ephemeral";
|
|
3857
3856
|
} | undefined;
|
|
3858
3857
|
})[];
|
|
3859
|
-
}, {
|
|
3860
3858
|
role: "user" | "assistant";
|
|
3859
|
+
}, {
|
|
3861
3860
|
content: string | ({
|
|
3862
3861
|
type: "text";
|
|
3863
3862
|
text: string;
|
|
@@ -3866,8 +3865,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3866
3865
|
} | undefined;
|
|
3867
3866
|
} | {
|
|
3868
3867
|
type: "tool_use";
|
|
3869
|
-
id: string;
|
|
3870
3868
|
name: string;
|
|
3869
|
+
id: string;
|
|
3871
3870
|
input: Record<string, any>;
|
|
3872
3871
|
cache_control?: {
|
|
3873
3872
|
type: "ephemeral";
|
|
@@ -3890,9 +3889,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3890
3889
|
type: "ephemeral";
|
|
3891
3890
|
} | undefined;
|
|
3892
3891
|
})[];
|
|
3892
|
+
role: "user" | "assistant";
|
|
3893
3893
|
}>, "many">;
|
|
3894
3894
|
}, "strip", z.ZodTypeAny, {
|
|
3895
|
-
agentContext: string;
|
|
3896
3895
|
fileContext: {
|
|
3897
3896
|
currentWorkingDirectory: string;
|
|
3898
3897
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3920,8 +3919,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3920
3919
|
}[][];
|
|
3921
3920
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3922
3921
|
};
|
|
3922
|
+
agentContext: string;
|
|
3923
3923
|
messageHistory: {
|
|
3924
|
-
role: "user" | "assistant";
|
|
3925
3924
|
content: string | ({
|
|
3926
3925
|
type: "text";
|
|
3927
3926
|
text: string;
|
|
@@ -3930,8 +3929,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3930
3929
|
} | undefined;
|
|
3931
3930
|
} | {
|
|
3932
3931
|
type: "tool_use";
|
|
3933
|
-
id: string;
|
|
3934
3932
|
name: string;
|
|
3933
|
+
id: string;
|
|
3935
3934
|
input: Record<string, any>;
|
|
3936
3935
|
cache_control?: {
|
|
3937
3936
|
type: "ephemeral";
|
|
@@ -3954,9 +3953,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3954
3953
|
type: "ephemeral";
|
|
3955
3954
|
} | undefined;
|
|
3956
3955
|
})[];
|
|
3956
|
+
role: "user" | "assistant";
|
|
3957
3957
|
}[];
|
|
3958
3958
|
}, {
|
|
3959
|
-
agentContext: string;
|
|
3960
3959
|
fileContext: {
|
|
3961
3960
|
currentWorkingDirectory: string;
|
|
3962
3961
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3984,8 +3983,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3984
3983
|
}[][];
|
|
3985
3984
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3986
3985
|
};
|
|
3986
|
+
agentContext: string;
|
|
3987
3987
|
messageHistory: {
|
|
3988
|
-
role: "user" | "assistant";
|
|
3989
3988
|
content: string | ({
|
|
3990
3989
|
type: "text";
|
|
3991
3990
|
text: string;
|
|
@@ -3994,8 +3993,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3994
3993
|
} | undefined;
|
|
3995
3994
|
} | {
|
|
3996
3995
|
type: "tool_use";
|
|
3997
|
-
id: string;
|
|
3998
3996
|
name: string;
|
|
3997
|
+
id: string;
|
|
3999
3998
|
input: Record<string, any>;
|
|
4000
3999
|
cache_control?: {
|
|
4001
4000
|
type: "ephemeral";
|
|
@@ -4018,6 +4017,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4018
4017
|
type: "ephemeral";
|
|
4019
4018
|
} | undefined;
|
|
4020
4019
|
})[];
|
|
4020
|
+
role: "user" | "assistant";
|
|
4021
4021
|
}[];
|
|
4022
4022
|
}>;
|
|
4023
4023
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
@@ -4025,12 +4025,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4025
4025
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4026
4026
|
id: z.ZodString;
|
|
4027
4027
|
}, "strip", z.ZodTypeAny, {
|
|
4028
|
-
id: string;
|
|
4029
4028
|
name: string;
|
|
4029
|
+
id: string;
|
|
4030
4030
|
parameters: Record<string, string>;
|
|
4031
4031
|
}, {
|
|
4032
|
-
id: string;
|
|
4033
4032
|
name: string;
|
|
4033
|
+
id: string;
|
|
4034
4034
|
parameters: Record<string, string>;
|
|
4035
4035
|
}>, "many">;
|
|
4036
4036
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -4038,12 +4038,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4038
4038
|
result: z.ZodString;
|
|
4039
4039
|
id: z.ZodString;
|
|
4040
4040
|
}, "strip", z.ZodTypeAny, {
|
|
4041
|
-
id: string;
|
|
4042
4041
|
name: string;
|
|
4042
|
+
id: string;
|
|
4043
4043
|
result: string;
|
|
4044
4044
|
}, {
|
|
4045
|
-
id: string;
|
|
4046
4045
|
name: string;
|
|
4046
|
+
id: string;
|
|
4047
4047
|
result: string;
|
|
4048
4048
|
}>, "many">;
|
|
4049
4049
|
}, {
|
|
@@ -4057,7 +4057,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4057
4057
|
type: "prompt-response";
|
|
4058
4058
|
promptId: string;
|
|
4059
4059
|
agentState: {
|
|
4060
|
-
agentContext: string;
|
|
4061
4060
|
fileContext: {
|
|
4062
4061
|
currentWorkingDirectory: string;
|
|
4063
4062
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4085,8 +4084,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4085
4084
|
}[][];
|
|
4086
4085
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4087
4086
|
};
|
|
4087
|
+
agentContext: string;
|
|
4088
4088
|
messageHistory: {
|
|
4089
|
-
role: "user" | "assistant";
|
|
4090
4089
|
content: string | ({
|
|
4091
4090
|
type: "text";
|
|
4092
4091
|
text: string;
|
|
@@ -4095,8 +4094,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4095
4094
|
} | undefined;
|
|
4096
4095
|
} | {
|
|
4097
4096
|
type: "tool_use";
|
|
4098
|
-
id: string;
|
|
4099
4097
|
name: string;
|
|
4098
|
+
id: string;
|
|
4100
4099
|
input: Record<string, any>;
|
|
4101
4100
|
cache_control?: {
|
|
4102
4101
|
type: "ephemeral";
|
|
@@ -4119,16 +4118,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4119
4118
|
type: "ephemeral";
|
|
4120
4119
|
} | undefined;
|
|
4121
4120
|
})[];
|
|
4121
|
+
role: "user" | "assistant";
|
|
4122
4122
|
}[];
|
|
4123
4123
|
};
|
|
4124
4124
|
toolResults: {
|
|
4125
|
-
id: string;
|
|
4126
4125
|
name: string;
|
|
4126
|
+
id: string;
|
|
4127
4127
|
result: string;
|
|
4128
4128
|
}[];
|
|
4129
4129
|
toolCalls: {
|
|
4130
|
-
id: string;
|
|
4131
4130
|
name: string;
|
|
4131
|
+
id: string;
|
|
4132
4132
|
parameters: Record<string, string>;
|
|
4133
4133
|
}[];
|
|
4134
4134
|
usage?: number | undefined;
|
|
@@ -4141,7 +4141,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4141
4141
|
type: "prompt-response";
|
|
4142
4142
|
promptId: string;
|
|
4143
4143
|
agentState: {
|
|
4144
|
-
agentContext: string;
|
|
4145
4144
|
fileContext: {
|
|
4146
4145
|
currentWorkingDirectory: string;
|
|
4147
4146
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4169,8 +4168,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4169
4168
|
}[][];
|
|
4170
4169
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4171
4170
|
};
|
|
4171
|
+
agentContext: string;
|
|
4172
4172
|
messageHistory: {
|
|
4173
|
-
role: "user" | "assistant";
|
|
4174
4173
|
content: string | ({
|
|
4175
4174
|
type: "text";
|
|
4176
4175
|
text: string;
|
|
@@ -4179,8 +4178,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4179
4178
|
} | undefined;
|
|
4180
4179
|
} | {
|
|
4181
4180
|
type: "tool_use";
|
|
4182
|
-
id: string;
|
|
4183
4181
|
name: string;
|
|
4182
|
+
id: string;
|
|
4184
4183
|
input: Record<string, any>;
|
|
4185
4184
|
cache_control?: {
|
|
4186
4185
|
type: "ephemeral";
|
|
@@ -4203,16 +4202,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4203
4202
|
type: "ephemeral";
|
|
4204
4203
|
} | undefined;
|
|
4205
4204
|
})[];
|
|
4205
|
+
role: "user" | "assistant";
|
|
4206
4206
|
}[];
|
|
4207
4207
|
};
|
|
4208
4208
|
toolResults: {
|
|
4209
|
-
id: string;
|
|
4210
4209
|
name: string;
|
|
4210
|
+
id: string;
|
|
4211
4211
|
result: string;
|
|
4212
4212
|
}[];
|
|
4213
4213
|
toolCalls: {
|
|
4214
|
-
id: string;
|
|
4215
4214
|
name: string;
|
|
4215
|
+
id: string;
|
|
4216
4216
|
parameters: Record<string, string>;
|
|
4217
4217
|
}[];
|
|
4218
4218
|
usage?: number | undefined;
|
|
@@ -4242,12 +4242,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4242
4242
|
id: z.ZodString;
|
|
4243
4243
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4244
4244
|
}, "strip", z.ZodTypeAny, {
|
|
4245
|
-
id: string;
|
|
4246
4245
|
name: string;
|
|
4246
|
+
id: string;
|
|
4247
4247
|
input: Record<string, any>;
|
|
4248
4248
|
}, {
|
|
4249
|
-
id: string;
|
|
4250
4249
|
name: string;
|
|
4250
|
+
id: string;
|
|
4251
4251
|
input: Record<string, any>;
|
|
4252
4252
|
}>;
|
|
4253
4253
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -4289,12 +4289,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4289
4289
|
resetFileVersions: z.ZodBoolean;
|
|
4290
4290
|
}, "strip", z.ZodTypeAny, {
|
|
4291
4291
|
type: "tool-call";
|
|
4292
|
+
userInputId: string;
|
|
4292
4293
|
data: {
|
|
4293
|
-
id: string;
|
|
4294
4294
|
name: string;
|
|
4295
|
+
id: string;
|
|
4295
4296
|
input: Record<string, any>;
|
|
4296
4297
|
};
|
|
4297
|
-
userInputId: string;
|
|
4298
4298
|
changesAlreadyApplied: {
|
|
4299
4299
|
type: "patch" | "file";
|
|
4300
4300
|
path: string;
|
|
@@ -4313,12 +4313,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4313
4313
|
resetFileVersions: boolean;
|
|
4314
4314
|
}, {
|
|
4315
4315
|
type: "tool-call";
|
|
4316
|
+
userInputId: string;
|
|
4316
4317
|
data: {
|
|
4317
|
-
id: string;
|
|
4318
4318
|
name: string;
|
|
4319
|
+
id: string;
|
|
4319
4320
|
input: Record<string, any>;
|
|
4320
4321
|
};
|
|
4321
|
-
userInputId: string;
|
|
4322
4322
|
changesAlreadyApplied: {
|
|
4323
4323
|
type: "patch" | "file";
|
|
4324
4324
|
path: string;
|
|
@@ -4341,12 +4341,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4341
4341
|
result: z.ZodString;
|
|
4342
4342
|
}, "strip", z.ZodTypeAny, {
|
|
4343
4343
|
type: "terminal-command-result";
|
|
4344
|
-
result: string;
|
|
4345
4344
|
userInputId: string;
|
|
4345
|
+
result: string;
|
|
4346
4346
|
}, {
|
|
4347
4347
|
type: "terminal-command-result";
|
|
4348
|
-
result: string;
|
|
4349
4348
|
userInputId: string;
|
|
4349
|
+
result: string;
|
|
4350
4350
|
}>, z.ZodObject<{
|
|
4351
4351
|
type: z.ZodLiteral<"npm-version-status">;
|
|
4352
4352
|
isUpToDate: z.ZodBoolean;
|
|
@@ -4475,7 +4475,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4475
4475
|
type: "prompt-response";
|
|
4476
4476
|
promptId: string;
|
|
4477
4477
|
agentState: {
|
|
4478
|
-
agentContext: string;
|
|
4479
4478
|
fileContext: {
|
|
4480
4479
|
currentWorkingDirectory: string;
|
|
4481
4480
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4503,8 +4502,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4503
4502
|
}[][];
|
|
4504
4503
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4505
4504
|
};
|
|
4505
|
+
agentContext: string;
|
|
4506
4506
|
messageHistory: {
|
|
4507
|
-
role: "user" | "assistant";
|
|
4508
4507
|
content: string | ({
|
|
4509
4508
|
type: "text";
|
|
4510
4509
|
text: string;
|
|
@@ -4513,8 +4512,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4513
4512
|
} | undefined;
|
|
4514
4513
|
} | {
|
|
4515
4514
|
type: "tool_use";
|
|
4516
|
-
id: string;
|
|
4517
4515
|
name: string;
|
|
4516
|
+
id: string;
|
|
4518
4517
|
input: Record<string, any>;
|
|
4519
4518
|
cache_control?: {
|
|
4520
4519
|
type: "ephemeral";
|
|
@@ -4537,16 +4536,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4537
4536
|
type: "ephemeral";
|
|
4538
4537
|
} | undefined;
|
|
4539
4538
|
})[];
|
|
4539
|
+
role: "user" | "assistant";
|
|
4540
4540
|
}[];
|
|
4541
4541
|
};
|
|
4542
4542
|
toolResults: {
|
|
4543
|
-
id: string;
|
|
4544
4543
|
name: string;
|
|
4544
|
+
id: string;
|
|
4545
4545
|
result: string;
|
|
4546
4546
|
}[];
|
|
4547
4547
|
toolCalls: {
|
|
4548
|
-
id: string;
|
|
4549
4548
|
name: string;
|
|
4549
|
+
id: string;
|
|
4550
4550
|
parameters: Record<string, string>;
|
|
4551
4551
|
}[];
|
|
4552
4552
|
usage?: number | undefined;
|
|
@@ -4565,12 +4565,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4565
4565
|
filePaths: string[];
|
|
4566
4566
|
} | {
|
|
4567
4567
|
type: "tool-call";
|
|
4568
|
+
userInputId: string;
|
|
4568
4569
|
data: {
|
|
4569
|
-
id: string;
|
|
4570
4570
|
name: string;
|
|
4571
|
+
id: string;
|
|
4571
4572
|
input: Record<string, any>;
|
|
4572
4573
|
};
|
|
4573
|
-
userInputId: string;
|
|
4574
4574
|
changesAlreadyApplied: {
|
|
4575
4575
|
type: "patch" | "file";
|
|
4576
4576
|
path: string;
|
|
@@ -4589,8 +4589,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4589
4589
|
resetFileVersions: boolean;
|
|
4590
4590
|
} | {
|
|
4591
4591
|
type: "terminal-command-result";
|
|
4592
|
-
result: string;
|
|
4593
4592
|
userInputId: string;
|
|
4593
|
+
result: string;
|
|
4594
4594
|
} | {
|
|
4595
4595
|
type: "npm-version-status";
|
|
4596
4596
|
isUpToDate: boolean;
|
|
@@ -4649,7 +4649,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4649
4649
|
type: "prompt-response";
|
|
4650
4650
|
promptId: string;
|
|
4651
4651
|
agentState: {
|
|
4652
|
-
agentContext: string;
|
|
4653
4652
|
fileContext: {
|
|
4654
4653
|
currentWorkingDirectory: string;
|
|
4655
4654
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4677,8 +4676,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4677
4676
|
}[][];
|
|
4678
4677
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4679
4678
|
};
|
|
4679
|
+
agentContext: string;
|
|
4680
4680
|
messageHistory: {
|
|
4681
|
-
role: "user" | "assistant";
|
|
4682
4681
|
content: string | ({
|
|
4683
4682
|
type: "text";
|
|
4684
4683
|
text: string;
|
|
@@ -4687,8 +4686,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4687
4686
|
} | undefined;
|
|
4688
4687
|
} | {
|
|
4689
4688
|
type: "tool_use";
|
|
4690
|
-
id: string;
|
|
4691
4689
|
name: string;
|
|
4690
|
+
id: string;
|
|
4692
4691
|
input: Record<string, any>;
|
|
4693
4692
|
cache_control?: {
|
|
4694
4693
|
type: "ephemeral";
|
|
@@ -4711,16 +4710,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4711
4710
|
type: "ephemeral";
|
|
4712
4711
|
} | undefined;
|
|
4713
4712
|
})[];
|
|
4713
|
+
role: "user" | "assistant";
|
|
4714
4714
|
}[];
|
|
4715
4715
|
};
|
|
4716
4716
|
toolResults: {
|
|
4717
|
-
id: string;
|
|
4718
4717
|
name: string;
|
|
4718
|
+
id: string;
|
|
4719
4719
|
result: string;
|
|
4720
4720
|
}[];
|
|
4721
4721
|
toolCalls: {
|
|
4722
|
-
id: string;
|
|
4723
4722
|
name: string;
|
|
4723
|
+
id: string;
|
|
4724
4724
|
parameters: Record<string, string>;
|
|
4725
4725
|
}[];
|
|
4726
4726
|
usage?: number | undefined;
|
|
@@ -4739,12 +4739,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4739
4739
|
filePaths: string[];
|
|
4740
4740
|
} | {
|
|
4741
4741
|
type: "tool-call";
|
|
4742
|
+
userInputId: string;
|
|
4742
4743
|
data: {
|
|
4743
|
-
id: string;
|
|
4744
4744
|
name: string;
|
|
4745
|
+
id: string;
|
|
4745
4746
|
input: Record<string, any>;
|
|
4746
4747
|
};
|
|
4747
|
-
userInputId: string;
|
|
4748
4748
|
changesAlreadyApplied: {
|
|
4749
4749
|
type: "patch" | "file";
|
|
4750
4750
|
path: string;
|
|
@@ -4763,8 +4763,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4763
4763
|
resetFileVersions: boolean;
|
|
4764
4764
|
} | {
|
|
4765
4765
|
type: "terminal-command-result";
|
|
4766
|
-
result: string;
|
|
4767
4766
|
userInputId: string;
|
|
4767
|
+
result: string;
|
|
4768
4768
|
} | {
|
|
4769
4769
|
type: "npm-version-status";
|
|
4770
4770
|
isUpToDate: boolean;
|
|
@@ -5057,16 +5057,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5057
5057
|
}>>;
|
|
5058
5058
|
}, "strip", z.ZodTypeAny, {
|
|
5059
5059
|
type: "tool_use";
|
|
5060
|
-
id: string;
|
|
5061
5060
|
name: string;
|
|
5061
|
+
id: string;
|
|
5062
5062
|
input: Record<string, any>;
|
|
5063
5063
|
cache_control?: {
|
|
5064
5064
|
type: "ephemeral";
|
|
5065
5065
|
} | undefined;
|
|
5066
5066
|
}, {
|
|
5067
5067
|
type: "tool_use";
|
|
5068
|
-
id: string;
|
|
5069
5068
|
name: string;
|
|
5069
|
+
id: string;
|
|
5070
5070
|
input: Record<string, any>;
|
|
5071
5071
|
cache_control?: {
|
|
5072
5072
|
type: "ephemeral";
|
|
@@ -5140,7 +5140,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5140
5140
|
} | undefined;
|
|
5141
5141
|
}>]>, "many">]>;
|
|
5142
5142
|
}, "strip", z.ZodTypeAny, {
|
|
5143
|
-
role: "user" | "assistant";
|
|
5144
5143
|
content: string | ({
|
|
5145
5144
|
type: "text";
|
|
5146
5145
|
text: string;
|
|
@@ -5149,8 +5148,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5149
5148
|
} | undefined;
|
|
5150
5149
|
} | {
|
|
5151
5150
|
type: "tool_use";
|
|
5152
|
-
id: string;
|
|
5153
5151
|
name: string;
|
|
5152
|
+
id: string;
|
|
5154
5153
|
input: Record<string, any>;
|
|
5155
5154
|
cache_control?: {
|
|
5156
5155
|
type: "ephemeral";
|
|
@@ -5173,8 +5172,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5173
5172
|
type: "ephemeral";
|
|
5174
5173
|
} | undefined;
|
|
5175
5174
|
})[];
|
|
5176
|
-
}, {
|
|
5177
5175
|
role: "user" | "assistant";
|
|
5176
|
+
}, {
|
|
5178
5177
|
content: string | ({
|
|
5179
5178
|
type: "text";
|
|
5180
5179
|
text: string;
|
|
@@ -5183,8 +5182,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5183
5182
|
} | undefined;
|
|
5184
5183
|
} | {
|
|
5185
5184
|
type: "tool_use";
|
|
5186
|
-
id: string;
|
|
5187
5185
|
name: string;
|
|
5186
|
+
id: string;
|
|
5188
5187
|
input: Record<string, any>;
|
|
5189
5188
|
cache_control?: {
|
|
5190
5189
|
type: "ephemeral";
|
|
@@ -5207,9 +5206,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5207
5206
|
type: "ephemeral";
|
|
5208
5207
|
} | undefined;
|
|
5209
5208
|
})[];
|
|
5209
|
+
role: "user" | "assistant";
|
|
5210
5210
|
}>, "many">;
|
|
5211
5211
|
}, "strip", z.ZodTypeAny, {
|
|
5212
|
-
agentContext: string;
|
|
5213
5212
|
fileContext: {
|
|
5214
5213
|
currentWorkingDirectory: string;
|
|
5215
5214
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5237,8 +5236,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5237
5236
|
}[][];
|
|
5238
5237
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5239
5238
|
};
|
|
5239
|
+
agentContext: string;
|
|
5240
5240
|
messageHistory: {
|
|
5241
|
-
role: "user" | "assistant";
|
|
5242
5241
|
content: string | ({
|
|
5243
5242
|
type: "text";
|
|
5244
5243
|
text: string;
|
|
@@ -5247,8 +5246,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5247
5246
|
} | undefined;
|
|
5248
5247
|
} | {
|
|
5249
5248
|
type: "tool_use";
|
|
5250
|
-
id: string;
|
|
5251
5249
|
name: string;
|
|
5250
|
+
id: string;
|
|
5252
5251
|
input: Record<string, any>;
|
|
5253
5252
|
cache_control?: {
|
|
5254
5253
|
type: "ephemeral";
|
|
@@ -5271,9 +5270,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5271
5270
|
type: "ephemeral";
|
|
5272
5271
|
} | undefined;
|
|
5273
5272
|
})[];
|
|
5273
|
+
role: "user" | "assistant";
|
|
5274
5274
|
}[];
|
|
5275
5275
|
}, {
|
|
5276
|
-
agentContext: string;
|
|
5277
5276
|
fileContext: {
|
|
5278
5277
|
currentWorkingDirectory: string;
|
|
5279
5278
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5301,8 +5300,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5301
5300
|
}[][];
|
|
5302
5301
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5303
5302
|
};
|
|
5303
|
+
agentContext: string;
|
|
5304
5304
|
messageHistory: {
|
|
5305
|
-
role: "user" | "assistant";
|
|
5306
5305
|
content: string | ({
|
|
5307
5306
|
type: "text";
|
|
5308
5307
|
text: string;
|
|
@@ -5311,8 +5310,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5311
5310
|
} | undefined;
|
|
5312
5311
|
} | {
|
|
5313
5312
|
type: "tool_use";
|
|
5314
|
-
id: string;
|
|
5315
5313
|
name: string;
|
|
5314
|
+
id: string;
|
|
5316
5315
|
input: Record<string, any>;
|
|
5317
5316
|
cache_control?: {
|
|
5318
5317
|
type: "ephemeral";
|
|
@@ -5335,6 +5334,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5335
5334
|
type: "ephemeral";
|
|
5336
5335
|
} | undefined;
|
|
5337
5336
|
})[];
|
|
5337
|
+
role: "user" | "assistant";
|
|
5338
5338
|
}[];
|
|
5339
5339
|
}>;
|
|
5340
5340
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
@@ -5342,12 +5342,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5342
5342
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5343
5343
|
id: z.ZodString;
|
|
5344
5344
|
}, "strip", z.ZodTypeAny, {
|
|
5345
|
-
id: string;
|
|
5346
5345
|
name: string;
|
|
5346
|
+
id: string;
|
|
5347
5347
|
parameters: Record<string, string>;
|
|
5348
5348
|
}, {
|
|
5349
|
-
id: string;
|
|
5350
5349
|
name: string;
|
|
5350
|
+
id: string;
|
|
5351
5351
|
parameters: Record<string, string>;
|
|
5352
5352
|
}>, "many">;
|
|
5353
5353
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -5355,12 +5355,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5355
5355
|
result: z.ZodString;
|
|
5356
5356
|
id: z.ZodString;
|
|
5357
5357
|
}, "strip", z.ZodTypeAny, {
|
|
5358
|
-
id: string;
|
|
5359
5358
|
name: string;
|
|
5359
|
+
id: string;
|
|
5360
5360
|
result: string;
|
|
5361
5361
|
}, {
|
|
5362
|
-
id: string;
|
|
5363
5362
|
name: string;
|
|
5363
|
+
id: string;
|
|
5364
5364
|
result: string;
|
|
5365
5365
|
}>, "many">;
|
|
5366
5366
|
}, {
|
|
@@ -5374,7 +5374,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5374
5374
|
type: "prompt-response";
|
|
5375
5375
|
promptId: string;
|
|
5376
5376
|
agentState: {
|
|
5377
|
-
agentContext: string;
|
|
5378
5377
|
fileContext: {
|
|
5379
5378
|
currentWorkingDirectory: string;
|
|
5380
5379
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5402,8 +5401,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5402
5401
|
}[][];
|
|
5403
5402
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5404
5403
|
};
|
|
5404
|
+
agentContext: string;
|
|
5405
5405
|
messageHistory: {
|
|
5406
|
-
role: "user" | "assistant";
|
|
5407
5406
|
content: string | ({
|
|
5408
5407
|
type: "text";
|
|
5409
5408
|
text: string;
|
|
@@ -5412,8 +5411,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5412
5411
|
} | undefined;
|
|
5413
5412
|
} | {
|
|
5414
5413
|
type: "tool_use";
|
|
5415
|
-
id: string;
|
|
5416
5414
|
name: string;
|
|
5415
|
+
id: string;
|
|
5417
5416
|
input: Record<string, any>;
|
|
5418
5417
|
cache_control?: {
|
|
5419
5418
|
type: "ephemeral";
|
|
@@ -5436,16 +5435,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5436
5435
|
type: "ephemeral";
|
|
5437
5436
|
} | undefined;
|
|
5438
5437
|
})[];
|
|
5438
|
+
role: "user" | "assistant";
|
|
5439
5439
|
}[];
|
|
5440
5440
|
};
|
|
5441
5441
|
toolResults: {
|
|
5442
|
-
id: string;
|
|
5443
5442
|
name: string;
|
|
5443
|
+
id: string;
|
|
5444
5444
|
result: string;
|
|
5445
5445
|
}[];
|
|
5446
5446
|
toolCalls: {
|
|
5447
|
-
id: string;
|
|
5448
5447
|
name: string;
|
|
5448
|
+
id: string;
|
|
5449
5449
|
parameters: Record<string, string>;
|
|
5450
5450
|
}[];
|
|
5451
5451
|
usage?: number | undefined;
|
|
@@ -5458,7 +5458,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5458
5458
|
type: "prompt-response";
|
|
5459
5459
|
promptId: string;
|
|
5460
5460
|
agentState: {
|
|
5461
|
-
agentContext: string;
|
|
5462
5461
|
fileContext: {
|
|
5463
5462
|
currentWorkingDirectory: string;
|
|
5464
5463
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5486,8 +5485,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5486
5485
|
}[][];
|
|
5487
5486
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5488
5487
|
};
|
|
5488
|
+
agentContext: string;
|
|
5489
5489
|
messageHistory: {
|
|
5490
|
-
role: "user" | "assistant";
|
|
5491
5490
|
content: string | ({
|
|
5492
5491
|
type: "text";
|
|
5493
5492
|
text: string;
|
|
@@ -5496,8 +5495,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5496
5495
|
} | undefined;
|
|
5497
5496
|
} | {
|
|
5498
5497
|
type: "tool_use";
|
|
5499
|
-
id: string;
|
|
5500
5498
|
name: string;
|
|
5499
|
+
id: string;
|
|
5501
5500
|
input: Record<string, any>;
|
|
5502
5501
|
cache_control?: {
|
|
5503
5502
|
type: "ephemeral";
|
|
@@ -5520,16 +5519,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5520
5519
|
type: "ephemeral";
|
|
5521
5520
|
} | undefined;
|
|
5522
5521
|
})[];
|
|
5522
|
+
role: "user" | "assistant";
|
|
5523
5523
|
}[];
|
|
5524
5524
|
};
|
|
5525
5525
|
toolResults: {
|
|
5526
|
-
id: string;
|
|
5527
5526
|
name: string;
|
|
5527
|
+
id: string;
|
|
5528
5528
|
result: string;
|
|
5529
5529
|
}[];
|
|
5530
5530
|
toolCalls: {
|
|
5531
|
-
id: string;
|
|
5532
5531
|
name: string;
|
|
5532
|
+
id: string;
|
|
5533
5533
|
parameters: Record<string, string>;
|
|
5534
5534
|
}[];
|
|
5535
5535
|
usage?: number | undefined;
|
|
@@ -5559,12 +5559,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5559
5559
|
id: z.ZodString;
|
|
5560
5560
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
5561
5561
|
}, "strip", z.ZodTypeAny, {
|
|
5562
|
-
id: string;
|
|
5563
5562
|
name: string;
|
|
5563
|
+
id: string;
|
|
5564
5564
|
input: Record<string, any>;
|
|
5565
5565
|
}, {
|
|
5566
|
-
id: string;
|
|
5567
5566
|
name: string;
|
|
5567
|
+
id: string;
|
|
5568
5568
|
input: Record<string, any>;
|
|
5569
5569
|
}>;
|
|
5570
5570
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -5606,12 +5606,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5606
5606
|
resetFileVersions: z.ZodBoolean;
|
|
5607
5607
|
}, "strip", z.ZodTypeAny, {
|
|
5608
5608
|
type: "tool-call";
|
|
5609
|
+
userInputId: string;
|
|
5609
5610
|
data: {
|
|
5610
|
-
id: string;
|
|
5611
5611
|
name: string;
|
|
5612
|
+
id: string;
|
|
5612
5613
|
input: Record<string, any>;
|
|
5613
5614
|
};
|
|
5614
|
-
userInputId: string;
|
|
5615
5615
|
changesAlreadyApplied: {
|
|
5616
5616
|
type: "patch" | "file";
|
|
5617
5617
|
path: string;
|
|
@@ -5630,12 +5630,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5630
5630
|
resetFileVersions: boolean;
|
|
5631
5631
|
}, {
|
|
5632
5632
|
type: "tool-call";
|
|
5633
|
+
userInputId: string;
|
|
5633
5634
|
data: {
|
|
5634
|
-
id: string;
|
|
5635
5635
|
name: string;
|
|
5636
|
+
id: string;
|
|
5636
5637
|
input: Record<string, any>;
|
|
5637
5638
|
};
|
|
5638
|
-
userInputId: string;
|
|
5639
5639
|
changesAlreadyApplied: {
|
|
5640
5640
|
type: "patch" | "file";
|
|
5641
5641
|
path: string;
|
|
@@ -5658,12 +5658,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5658
5658
|
result: z.ZodString;
|
|
5659
5659
|
}, "strip", z.ZodTypeAny, {
|
|
5660
5660
|
type: "terminal-command-result";
|
|
5661
|
-
result: string;
|
|
5662
5661
|
userInputId: string;
|
|
5662
|
+
result: string;
|
|
5663
5663
|
}, {
|
|
5664
5664
|
type: "terminal-command-result";
|
|
5665
|
-
result: string;
|
|
5666
5665
|
userInputId: string;
|
|
5666
|
+
result: string;
|
|
5667
5667
|
}>, z.ZodObject<{
|
|
5668
5668
|
type: z.ZodLiteral<"npm-version-status">;
|
|
5669
5669
|
isUpToDate: z.ZodBoolean;
|
|
@@ -5792,7 +5792,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5792
5792
|
type: "prompt-response";
|
|
5793
5793
|
promptId: string;
|
|
5794
5794
|
agentState: {
|
|
5795
|
-
agentContext: string;
|
|
5796
5795
|
fileContext: {
|
|
5797
5796
|
currentWorkingDirectory: string;
|
|
5798
5797
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5820,8 +5819,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5820
5819
|
}[][];
|
|
5821
5820
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5822
5821
|
};
|
|
5822
|
+
agentContext: string;
|
|
5823
5823
|
messageHistory: {
|
|
5824
|
-
role: "user" | "assistant";
|
|
5825
5824
|
content: string | ({
|
|
5826
5825
|
type: "text";
|
|
5827
5826
|
text: string;
|
|
@@ -5830,8 +5829,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5830
5829
|
} | undefined;
|
|
5831
5830
|
} | {
|
|
5832
5831
|
type: "tool_use";
|
|
5833
|
-
id: string;
|
|
5834
5832
|
name: string;
|
|
5833
|
+
id: string;
|
|
5835
5834
|
input: Record<string, any>;
|
|
5836
5835
|
cache_control?: {
|
|
5837
5836
|
type: "ephemeral";
|
|
@@ -5854,16 +5853,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5854
5853
|
type: "ephemeral";
|
|
5855
5854
|
} | undefined;
|
|
5856
5855
|
})[];
|
|
5856
|
+
role: "user" | "assistant";
|
|
5857
5857
|
}[];
|
|
5858
5858
|
};
|
|
5859
5859
|
toolResults: {
|
|
5860
|
-
id: string;
|
|
5861
5860
|
name: string;
|
|
5861
|
+
id: string;
|
|
5862
5862
|
result: string;
|
|
5863
5863
|
}[];
|
|
5864
5864
|
toolCalls: {
|
|
5865
|
-
id: string;
|
|
5866
5865
|
name: string;
|
|
5866
|
+
id: string;
|
|
5867
5867
|
parameters: Record<string, string>;
|
|
5868
5868
|
}[];
|
|
5869
5869
|
usage?: number | undefined;
|
|
@@ -5882,12 +5882,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5882
5882
|
filePaths: string[];
|
|
5883
5883
|
} | {
|
|
5884
5884
|
type: "tool-call";
|
|
5885
|
+
userInputId: string;
|
|
5885
5886
|
data: {
|
|
5886
|
-
id: string;
|
|
5887
5887
|
name: string;
|
|
5888
|
+
id: string;
|
|
5888
5889
|
input: Record<string, any>;
|
|
5889
5890
|
};
|
|
5890
|
-
userInputId: string;
|
|
5891
5891
|
changesAlreadyApplied: {
|
|
5892
5892
|
type: "patch" | "file";
|
|
5893
5893
|
path: string;
|
|
@@ -5906,8 +5906,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5906
5906
|
resetFileVersions: boolean;
|
|
5907
5907
|
} | {
|
|
5908
5908
|
type: "terminal-command-result";
|
|
5909
|
-
result: string;
|
|
5910
5909
|
userInputId: string;
|
|
5910
|
+
result: string;
|
|
5911
5911
|
} | {
|
|
5912
5912
|
type: "npm-version-status";
|
|
5913
5913
|
isUpToDate: boolean;
|
|
@@ -5966,7 +5966,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5966
5966
|
type: "prompt-response";
|
|
5967
5967
|
promptId: string;
|
|
5968
5968
|
agentState: {
|
|
5969
|
-
agentContext: string;
|
|
5970
5969
|
fileContext: {
|
|
5971
5970
|
currentWorkingDirectory: string;
|
|
5972
5971
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5994,8 +5993,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5994
5993
|
}[][];
|
|
5995
5994
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5996
5995
|
};
|
|
5996
|
+
agentContext: string;
|
|
5997
5997
|
messageHistory: {
|
|
5998
|
-
role: "user" | "assistant";
|
|
5999
5998
|
content: string | ({
|
|
6000
5999
|
type: "text";
|
|
6001
6000
|
text: string;
|
|
@@ -6004,8 +6003,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6004
6003
|
} | undefined;
|
|
6005
6004
|
} | {
|
|
6006
6005
|
type: "tool_use";
|
|
6007
|
-
id: string;
|
|
6008
6006
|
name: string;
|
|
6007
|
+
id: string;
|
|
6009
6008
|
input: Record<string, any>;
|
|
6010
6009
|
cache_control?: {
|
|
6011
6010
|
type: "ephemeral";
|
|
@@ -6028,16 +6027,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6028
6027
|
type: "ephemeral";
|
|
6029
6028
|
} | undefined;
|
|
6030
6029
|
})[];
|
|
6030
|
+
role: "user" | "assistant";
|
|
6031
6031
|
}[];
|
|
6032
6032
|
};
|
|
6033
6033
|
toolResults: {
|
|
6034
|
-
id: string;
|
|
6035
6034
|
name: string;
|
|
6035
|
+
id: string;
|
|
6036
6036
|
result: string;
|
|
6037
6037
|
}[];
|
|
6038
6038
|
toolCalls: {
|
|
6039
|
-
id: string;
|
|
6040
6039
|
name: string;
|
|
6040
|
+
id: string;
|
|
6041
6041
|
parameters: Record<string, string>;
|
|
6042
6042
|
}[];
|
|
6043
6043
|
usage?: number | undefined;
|
|
@@ -6056,12 +6056,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6056
6056
|
filePaths: string[];
|
|
6057
6057
|
} | {
|
|
6058
6058
|
type: "tool-call";
|
|
6059
|
+
userInputId: string;
|
|
6059
6060
|
data: {
|
|
6060
|
-
id: string;
|
|
6061
6061
|
name: string;
|
|
6062
|
+
id: string;
|
|
6062
6063
|
input: Record<string, any>;
|
|
6063
6064
|
};
|
|
6064
|
-
userInputId: string;
|
|
6065
6065
|
changesAlreadyApplied: {
|
|
6066
6066
|
type: "patch" | "file";
|
|
6067
6067
|
path: string;
|
|
@@ -6080,8 +6080,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6080
6080
|
resetFileVersions: boolean;
|
|
6081
6081
|
} | {
|
|
6082
6082
|
type: "terminal-command-result";
|
|
6083
|
-
result: string;
|
|
6084
6083
|
userInputId: string;
|
|
6084
|
+
result: string;
|
|
6085
6085
|
} | {
|
|
6086
6086
|
type: "npm-version-status";
|
|
6087
6087
|
isUpToDate: boolean;
|