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
package/dist/common/actions.d.ts
CHANGED
|
@@ -32,12 +32,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
32
32
|
id: z.ZodString;
|
|
33
33
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
id: string;
|
|
36
35
|
name: string;
|
|
36
|
+
id: string;
|
|
37
37
|
input: Record<string, any>;
|
|
38
38
|
}, {
|
|
39
|
-
id: string;
|
|
40
39
|
name: string;
|
|
40
|
+
id: string;
|
|
41
41
|
input: Record<string, any>;
|
|
42
42
|
}>;
|
|
43
43
|
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
@@ -84,16 +84,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
84
84
|
}>>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
type: "tool_use";
|
|
87
|
-
id: string;
|
|
88
87
|
name: string;
|
|
88
|
+
id: string;
|
|
89
89
|
input: Record<string, any>;
|
|
90
90
|
cache_control?: {
|
|
91
91
|
type: "ephemeral";
|
|
92
92
|
} | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
type: "tool_use";
|
|
95
|
-
id: string;
|
|
96
95
|
name: string;
|
|
96
|
+
id: string;
|
|
97
97
|
input: Record<string, any>;
|
|
98
98
|
cache_control?: {
|
|
99
99
|
type: "ephemeral";
|
|
@@ -167,7 +167,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
167
167
|
} | undefined;
|
|
168
168
|
}>]>, "many">]>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
role: "user" | "assistant";
|
|
171
170
|
content: string | ({
|
|
172
171
|
type: "text";
|
|
173
172
|
text: string;
|
|
@@ -176,8 +175,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
176
175
|
} | undefined;
|
|
177
176
|
} | {
|
|
178
177
|
type: "tool_use";
|
|
179
|
-
id: string;
|
|
180
178
|
name: string;
|
|
179
|
+
id: string;
|
|
181
180
|
input: Record<string, any>;
|
|
182
181
|
cache_control?: {
|
|
183
182
|
type: "ephemeral";
|
|
@@ -200,8 +199,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
200
199
|
type: "ephemeral";
|
|
201
200
|
} | undefined;
|
|
202
201
|
})[];
|
|
203
|
-
}, {
|
|
204
202
|
role: "user" | "assistant";
|
|
203
|
+
}, {
|
|
205
204
|
content: string | ({
|
|
206
205
|
type: "text";
|
|
207
206
|
text: string;
|
|
@@ -210,8 +209,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
210
209
|
} | undefined;
|
|
211
210
|
} | {
|
|
212
211
|
type: "tool_use";
|
|
213
|
-
id: string;
|
|
214
212
|
name: string;
|
|
213
|
+
id: string;
|
|
215
214
|
input: Record<string, any>;
|
|
216
215
|
cache_control?: {
|
|
217
216
|
type: "ephemeral";
|
|
@@ -234,6 +233,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
234
233
|
type: "ephemeral";
|
|
235
234
|
} | undefined;
|
|
236
235
|
})[];
|
|
236
|
+
role: "user" | "assistant";
|
|
237
237
|
}>, "many">;
|
|
238
238
|
fileContext: z.ZodObject<{
|
|
239
239
|
currentWorkingDirectory: z.ZodString;
|
|
@@ -360,37 +360,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
360
360
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
362
362
|
type: "user-input";
|
|
363
|
-
fileContext: {
|
|
364
|
-
currentWorkingDirectory: string;
|
|
365
|
-
fileTree: import("./util/file").FileTreeNode[];
|
|
366
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
367
|
-
knowledgeFiles: Record<string, string>;
|
|
368
|
-
gitChanges: {
|
|
369
|
-
diff: string;
|
|
370
|
-
status: string;
|
|
371
|
-
diffCached: string;
|
|
372
|
-
lastCommitMessages: string;
|
|
373
|
-
};
|
|
374
|
-
changesSinceLastChat: Record<string, string>;
|
|
375
|
-
shellConfigFiles: Record<string, string>;
|
|
376
|
-
systemInfo: {
|
|
377
|
-
platform: string;
|
|
378
|
-
shell: string;
|
|
379
|
-
nodeVersion: string;
|
|
380
|
-
arch: string;
|
|
381
|
-
homedir: string;
|
|
382
|
-
cpus: number;
|
|
383
|
-
};
|
|
384
|
-
fileVersions: {
|
|
385
|
-
path: string;
|
|
386
|
-
content: string;
|
|
387
|
-
}[][];
|
|
388
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
389
|
-
};
|
|
390
363
|
fingerprintId: string;
|
|
391
364
|
userInputId: string;
|
|
392
365
|
messages: {
|
|
393
|
-
role: "user" | "assistant";
|
|
394
366
|
content: string | ({
|
|
395
367
|
type: "text";
|
|
396
368
|
text: string;
|
|
@@ -399,8 +371,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
399
371
|
} | undefined;
|
|
400
372
|
} | {
|
|
401
373
|
type: "tool_use";
|
|
402
|
-
id: string;
|
|
403
374
|
name: string;
|
|
375
|
+
id: string;
|
|
404
376
|
input: Record<string, any>;
|
|
405
377
|
cache_control?: {
|
|
406
378
|
type: "ephemeral";
|
|
@@ -423,16 +395,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
423
395
|
type: "ephemeral";
|
|
424
396
|
} | undefined;
|
|
425
397
|
})[];
|
|
398
|
+
role: "user" | "assistant";
|
|
426
399
|
}[];
|
|
427
|
-
changesAlreadyApplied: {
|
|
428
|
-
type: "patch" | "file";
|
|
429
|
-
path: string;
|
|
430
|
-
content: string;
|
|
431
|
-
}[];
|
|
432
|
-
costMode: "lite" | "normal" | "max";
|
|
433
|
-
authToken?: string | undefined;
|
|
434
|
-
}, {
|
|
435
|
-
type: "user-input";
|
|
436
400
|
fileContext: {
|
|
437
401
|
currentWorkingDirectory: string;
|
|
438
402
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -460,10 +424,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
460
424
|
}[][];
|
|
461
425
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
462
426
|
};
|
|
427
|
+
changesAlreadyApplied: {
|
|
428
|
+
type: "patch" | "file";
|
|
429
|
+
path: string;
|
|
430
|
+
content: string;
|
|
431
|
+
}[];
|
|
432
|
+
costMode: "lite" | "normal" | "max";
|
|
433
|
+
authToken?: string | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
type: "user-input";
|
|
463
436
|
fingerprintId: string;
|
|
464
437
|
userInputId: string;
|
|
465
438
|
messages: {
|
|
466
|
-
role: "user" | "assistant";
|
|
467
439
|
content: string | ({
|
|
468
440
|
type: "text";
|
|
469
441
|
text: string;
|
|
@@ -472,8 +444,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
472
444
|
} | undefined;
|
|
473
445
|
} | {
|
|
474
446
|
type: "tool_use";
|
|
475
|
-
id: string;
|
|
476
447
|
name: string;
|
|
448
|
+
id: string;
|
|
477
449
|
input: Record<string, any>;
|
|
478
450
|
cache_control?: {
|
|
479
451
|
type: "ephemeral";
|
|
@@ -496,7 +468,35 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
496
468
|
type: "ephemeral";
|
|
497
469
|
} | undefined;
|
|
498
470
|
})[];
|
|
471
|
+
role: "user" | "assistant";
|
|
499
472
|
}[];
|
|
473
|
+
fileContext: {
|
|
474
|
+
currentWorkingDirectory: string;
|
|
475
|
+
fileTree: import("./util/file").FileTreeNode[];
|
|
476
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
477
|
+
knowledgeFiles: Record<string, string>;
|
|
478
|
+
gitChanges: {
|
|
479
|
+
diff: string;
|
|
480
|
+
status: string;
|
|
481
|
+
diffCached: string;
|
|
482
|
+
lastCommitMessages: string;
|
|
483
|
+
};
|
|
484
|
+
changesSinceLastChat: Record<string, string>;
|
|
485
|
+
shellConfigFiles: Record<string, string>;
|
|
486
|
+
systemInfo: {
|
|
487
|
+
platform: string;
|
|
488
|
+
shell: string;
|
|
489
|
+
nodeVersion: string;
|
|
490
|
+
arch: string;
|
|
491
|
+
homedir: string;
|
|
492
|
+
cpus: number;
|
|
493
|
+
};
|
|
494
|
+
fileVersions: {
|
|
495
|
+
path: string;
|
|
496
|
+
content: string;
|
|
497
|
+
}[][];
|
|
498
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
499
|
+
};
|
|
500
500
|
changesAlreadyApplied: {
|
|
501
501
|
type: "patch" | "file";
|
|
502
502
|
path: string;
|
|
@@ -660,16 +660,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
660
660
|
}>>;
|
|
661
661
|
}, "strip", z.ZodTypeAny, {
|
|
662
662
|
type: "tool_use";
|
|
663
|
-
id: string;
|
|
664
663
|
name: string;
|
|
664
|
+
id: string;
|
|
665
665
|
input: Record<string, any>;
|
|
666
666
|
cache_control?: {
|
|
667
667
|
type: "ephemeral";
|
|
668
668
|
} | undefined;
|
|
669
669
|
}, {
|
|
670
670
|
type: "tool_use";
|
|
671
|
-
id: string;
|
|
672
671
|
name: string;
|
|
672
|
+
id: string;
|
|
673
673
|
input: Record<string, any>;
|
|
674
674
|
cache_control?: {
|
|
675
675
|
type: "ephemeral";
|
|
@@ -743,7 +743,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
743
743
|
} | undefined;
|
|
744
744
|
}>]>, "many">]>;
|
|
745
745
|
}, "strip", z.ZodTypeAny, {
|
|
746
|
-
role: "user" | "assistant";
|
|
747
746
|
content: string | ({
|
|
748
747
|
type: "text";
|
|
749
748
|
text: string;
|
|
@@ -752,8 +751,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
752
751
|
} | undefined;
|
|
753
752
|
} | {
|
|
754
753
|
type: "tool_use";
|
|
755
|
-
id: string;
|
|
756
754
|
name: string;
|
|
755
|
+
id: string;
|
|
757
756
|
input: Record<string, any>;
|
|
758
757
|
cache_control?: {
|
|
759
758
|
type: "ephemeral";
|
|
@@ -776,8 +775,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
776
775
|
type: "ephemeral";
|
|
777
776
|
} | undefined;
|
|
778
777
|
})[];
|
|
779
|
-
}, {
|
|
780
778
|
role: "user" | "assistant";
|
|
779
|
+
}, {
|
|
781
780
|
content: string | ({
|
|
782
781
|
type: "text";
|
|
783
782
|
text: string;
|
|
@@ -786,8 +785,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
786
785
|
} | undefined;
|
|
787
786
|
} | {
|
|
788
787
|
type: "tool_use";
|
|
789
|
-
id: string;
|
|
790
788
|
name: string;
|
|
789
|
+
id: string;
|
|
791
790
|
input: Record<string, any>;
|
|
792
791
|
cache_control?: {
|
|
793
792
|
type: "ephemeral";
|
|
@@ -810,9 +809,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
810
809
|
type: "ephemeral";
|
|
811
810
|
} | undefined;
|
|
812
811
|
})[];
|
|
812
|
+
role: "user" | "assistant";
|
|
813
813
|
}>, "many">;
|
|
814
814
|
}, "strip", z.ZodTypeAny, {
|
|
815
|
-
agentContext: string;
|
|
816
815
|
fileContext: {
|
|
817
816
|
currentWorkingDirectory: string;
|
|
818
817
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -840,8 +839,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
840
839
|
}[][];
|
|
841
840
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
842
841
|
};
|
|
842
|
+
agentContext: string;
|
|
843
843
|
messageHistory: {
|
|
844
|
-
role: "user" | "assistant";
|
|
845
844
|
content: string | ({
|
|
846
845
|
type: "text";
|
|
847
846
|
text: string;
|
|
@@ -850,8 +849,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
850
849
|
} | undefined;
|
|
851
850
|
} | {
|
|
852
851
|
type: "tool_use";
|
|
853
|
-
id: string;
|
|
854
852
|
name: string;
|
|
853
|
+
id: string;
|
|
855
854
|
input: Record<string, any>;
|
|
856
855
|
cache_control?: {
|
|
857
856
|
type: "ephemeral";
|
|
@@ -874,9 +873,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
874
873
|
type: "ephemeral";
|
|
875
874
|
} | undefined;
|
|
876
875
|
})[];
|
|
876
|
+
role: "user" | "assistant";
|
|
877
877
|
}[];
|
|
878
878
|
}, {
|
|
879
|
-
agentContext: string;
|
|
880
879
|
fileContext: {
|
|
881
880
|
currentWorkingDirectory: string;
|
|
882
881
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -904,8 +903,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
904
903
|
}[][];
|
|
905
904
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
906
905
|
};
|
|
906
|
+
agentContext: string;
|
|
907
907
|
messageHistory: {
|
|
908
|
-
role: "user" | "assistant";
|
|
909
908
|
content: string | ({
|
|
910
909
|
type: "text";
|
|
911
910
|
text: string;
|
|
@@ -914,8 +913,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
914
913
|
} | undefined;
|
|
915
914
|
} | {
|
|
916
915
|
type: "tool_use";
|
|
917
|
-
id: string;
|
|
918
916
|
name: string;
|
|
917
|
+
id: string;
|
|
919
918
|
input: Record<string, any>;
|
|
920
919
|
cache_control?: {
|
|
921
920
|
type: "ephemeral";
|
|
@@ -938,6 +937,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
938
937
|
type: "ephemeral";
|
|
939
938
|
} | undefined;
|
|
940
939
|
})[];
|
|
940
|
+
role: "user" | "assistant";
|
|
941
941
|
}[];
|
|
942
942
|
}>;
|
|
943
943
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -945,12 +945,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
945
945
|
result: z.ZodString;
|
|
946
946
|
id: z.ZodString;
|
|
947
947
|
}, "strip", z.ZodTypeAny, {
|
|
948
|
-
id: string;
|
|
949
948
|
name: string;
|
|
949
|
+
id: string;
|
|
950
950
|
result: string;
|
|
951
951
|
}, {
|
|
952
|
-
id: string;
|
|
953
952
|
name: string;
|
|
953
|
+
id: string;
|
|
954
954
|
result: string;
|
|
955
955
|
}>, "many">;
|
|
956
956
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -959,7 +959,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
959
959
|
costMode: "lite" | "normal" | "max";
|
|
960
960
|
promptId: string;
|
|
961
961
|
agentState: {
|
|
962
|
-
agentContext: string;
|
|
963
962
|
fileContext: {
|
|
964
963
|
currentWorkingDirectory: string;
|
|
965
964
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -987,8 +986,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
987
986
|
}[][];
|
|
988
987
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
989
988
|
};
|
|
989
|
+
agentContext: string;
|
|
990
990
|
messageHistory: {
|
|
991
|
-
role: "user" | "assistant";
|
|
992
991
|
content: string | ({
|
|
993
992
|
type: "text";
|
|
994
993
|
text: string;
|
|
@@ -997,8 +996,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
997
996
|
} | undefined;
|
|
998
997
|
} | {
|
|
999
998
|
type: "tool_use";
|
|
1000
|
-
id: string;
|
|
1001
999
|
name: string;
|
|
1000
|
+
id: string;
|
|
1002
1001
|
input: Record<string, any>;
|
|
1003
1002
|
cache_control?: {
|
|
1004
1003
|
type: "ephemeral";
|
|
@@ -1021,11 +1020,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1021
1020
|
type: "ephemeral";
|
|
1022
1021
|
} | undefined;
|
|
1023
1022
|
})[];
|
|
1023
|
+
role: "user" | "assistant";
|
|
1024
1024
|
}[];
|
|
1025
1025
|
};
|
|
1026
1026
|
toolResults: {
|
|
1027
|
-
id: string;
|
|
1028
1027
|
name: string;
|
|
1028
|
+
id: string;
|
|
1029
1029
|
result: string;
|
|
1030
1030
|
}[];
|
|
1031
1031
|
authToken?: string | undefined;
|
|
@@ -1035,7 +1035,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1035
1035
|
fingerprintId: string;
|
|
1036
1036
|
promptId: string;
|
|
1037
1037
|
agentState: {
|
|
1038
|
-
agentContext: string;
|
|
1039
1038
|
fileContext: {
|
|
1040
1039
|
currentWorkingDirectory: string;
|
|
1041
1040
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1063,8 +1062,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1063
1062
|
}[][];
|
|
1064
1063
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1065
1064
|
};
|
|
1065
|
+
agentContext: string;
|
|
1066
1066
|
messageHistory: {
|
|
1067
|
-
role: "user" | "assistant";
|
|
1068
1067
|
content: string | ({
|
|
1069
1068
|
type: "text";
|
|
1070
1069
|
text: string;
|
|
@@ -1073,8 +1072,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1073
1072
|
} | undefined;
|
|
1074
1073
|
} | {
|
|
1075
1074
|
type: "tool_use";
|
|
1076
|
-
id: string;
|
|
1077
1075
|
name: string;
|
|
1076
|
+
id: string;
|
|
1078
1077
|
input: Record<string, any>;
|
|
1079
1078
|
cache_control?: {
|
|
1080
1079
|
type: "ephemeral";
|
|
@@ -1097,11 +1096,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1097
1096
|
type: "ephemeral";
|
|
1098
1097
|
} | undefined;
|
|
1099
1098
|
})[];
|
|
1099
|
+
role: "user" | "assistant";
|
|
1100
1100
|
}[];
|
|
1101
1101
|
};
|
|
1102
1102
|
toolResults: {
|
|
1103
|
-
id: string;
|
|
1104
1103
|
name: string;
|
|
1104
|
+
id: string;
|
|
1105
1105
|
result: string;
|
|
1106
1106
|
}[];
|
|
1107
1107
|
authToken?: string | undefined;
|
|
@@ -1234,6 +1234,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1234
1234
|
}>;
|
|
1235
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1236
1236
|
type: "init";
|
|
1237
|
+
fingerprintId: string;
|
|
1237
1238
|
fileContext: {
|
|
1238
1239
|
currentWorkingDirectory: string;
|
|
1239
1240
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1261,10 +1262,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1261
1262
|
}[][];
|
|
1262
1263
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1263
1264
|
};
|
|
1264
|
-
fingerprintId: string;
|
|
1265
1265
|
authToken?: string | undefined;
|
|
1266
1266
|
}, {
|
|
1267
1267
|
type: "init";
|
|
1268
|
+
fingerprintId: string;
|
|
1268
1269
|
fileContext: {
|
|
1269
1270
|
currentWorkingDirectory: string;
|
|
1270
1271
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1292,7 +1293,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1292
1293
|
}[][];
|
|
1293
1294
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1294
1295
|
};
|
|
1295
|
-
fingerprintId: string;
|
|
1296
1296
|
authToken?: string | undefined;
|
|
1297
1297
|
}>, z.ZodObject<{
|
|
1298
1298
|
type: z.ZodLiteral<"usage">;
|
|
@@ -1628,16 +1628,16 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1628
1628
|
}>>;
|
|
1629
1629
|
}, "strip", z.ZodTypeAny, {
|
|
1630
1630
|
type: "tool_use";
|
|
1631
|
-
id: string;
|
|
1632
1631
|
name: string;
|
|
1632
|
+
id: string;
|
|
1633
1633
|
input: Record<string, any>;
|
|
1634
1634
|
cache_control?: {
|
|
1635
1635
|
type: "ephemeral";
|
|
1636
1636
|
} | undefined;
|
|
1637
1637
|
}, {
|
|
1638
1638
|
type: "tool_use";
|
|
1639
|
-
id: string;
|
|
1640
1639
|
name: string;
|
|
1640
|
+
id: string;
|
|
1641
1641
|
input: Record<string, any>;
|
|
1642
1642
|
cache_control?: {
|
|
1643
1643
|
type: "ephemeral";
|
|
@@ -1711,7 +1711,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1711
1711
|
} | undefined;
|
|
1712
1712
|
}>]>, "many">]>;
|
|
1713
1713
|
}, "strip", z.ZodTypeAny, {
|
|
1714
|
-
role: "user" | "assistant";
|
|
1715
1714
|
content: string | ({
|
|
1716
1715
|
type: "text";
|
|
1717
1716
|
text: string;
|
|
@@ -1720,8 +1719,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1720
1719
|
} | undefined;
|
|
1721
1720
|
} | {
|
|
1722
1721
|
type: "tool_use";
|
|
1723
|
-
id: string;
|
|
1724
1722
|
name: string;
|
|
1723
|
+
id: string;
|
|
1725
1724
|
input: Record<string, any>;
|
|
1726
1725
|
cache_control?: {
|
|
1727
1726
|
type: "ephemeral";
|
|
@@ -1744,8 +1743,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1744
1743
|
type: "ephemeral";
|
|
1745
1744
|
} | undefined;
|
|
1746
1745
|
})[];
|
|
1747
|
-
}, {
|
|
1748
1746
|
role: "user" | "assistant";
|
|
1747
|
+
}, {
|
|
1749
1748
|
content: string | ({
|
|
1750
1749
|
type: "text";
|
|
1751
1750
|
text: string;
|
|
@@ -1754,8 +1753,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1754
1753
|
} | undefined;
|
|
1755
1754
|
} | {
|
|
1756
1755
|
type: "tool_use";
|
|
1757
|
-
id: string;
|
|
1758
1756
|
name: string;
|
|
1757
|
+
id: string;
|
|
1759
1758
|
input: Record<string, any>;
|
|
1760
1759
|
cache_control?: {
|
|
1761
1760
|
type: "ephemeral";
|
|
@@ -1778,9 +1777,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1778
1777
|
type: "ephemeral";
|
|
1779
1778
|
} | undefined;
|
|
1780
1779
|
})[];
|
|
1780
|
+
role: "user" | "assistant";
|
|
1781
1781
|
}>, "many">;
|
|
1782
1782
|
}, "strip", z.ZodTypeAny, {
|
|
1783
|
-
agentContext: string;
|
|
1784
1783
|
fileContext: {
|
|
1785
1784
|
currentWorkingDirectory: string;
|
|
1786
1785
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1808,8 +1807,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1808
1807
|
}[][];
|
|
1809
1808
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1810
1809
|
};
|
|
1810
|
+
agentContext: string;
|
|
1811
1811
|
messageHistory: {
|
|
1812
|
-
role: "user" | "assistant";
|
|
1813
1812
|
content: string | ({
|
|
1814
1813
|
type: "text";
|
|
1815
1814
|
text: string;
|
|
@@ -1818,8 +1817,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1818
1817
|
} | undefined;
|
|
1819
1818
|
} | {
|
|
1820
1819
|
type: "tool_use";
|
|
1821
|
-
id: string;
|
|
1822
1820
|
name: string;
|
|
1821
|
+
id: string;
|
|
1823
1822
|
input: Record<string, any>;
|
|
1824
1823
|
cache_control?: {
|
|
1825
1824
|
type: "ephemeral";
|
|
@@ -1842,9 +1841,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1842
1841
|
type: "ephemeral";
|
|
1843
1842
|
} | undefined;
|
|
1844
1843
|
})[];
|
|
1844
|
+
role: "user" | "assistant";
|
|
1845
1845
|
}[];
|
|
1846
1846
|
}, {
|
|
1847
|
-
agentContext: string;
|
|
1848
1847
|
fileContext: {
|
|
1849
1848
|
currentWorkingDirectory: string;
|
|
1850
1849
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1872,8 +1871,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1872
1871
|
}[][];
|
|
1873
1872
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1874
1873
|
};
|
|
1874
|
+
agentContext: string;
|
|
1875
1875
|
messageHistory: {
|
|
1876
|
-
role: "user" | "assistant";
|
|
1877
1876
|
content: string | ({
|
|
1878
1877
|
type: "text";
|
|
1879
1878
|
text: string;
|
|
@@ -1882,8 +1881,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1882
1881
|
} | undefined;
|
|
1883
1882
|
} | {
|
|
1884
1883
|
type: "tool_use";
|
|
1885
|
-
id: string;
|
|
1886
1884
|
name: string;
|
|
1885
|
+
id: string;
|
|
1887
1886
|
input: Record<string, any>;
|
|
1888
1887
|
cache_control?: {
|
|
1889
1888
|
type: "ephemeral";
|
|
@@ -1906,6 +1905,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1906
1905
|
type: "ephemeral";
|
|
1907
1906
|
} | undefined;
|
|
1908
1907
|
})[];
|
|
1908
|
+
role: "user" | "assistant";
|
|
1909
1909
|
}[];
|
|
1910
1910
|
}>;
|
|
1911
1911
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
@@ -1913,12 +1913,12 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1913
1913
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1914
1914
|
id: z.ZodString;
|
|
1915
1915
|
}, "strip", z.ZodTypeAny, {
|
|
1916
|
-
id: string;
|
|
1917
1916
|
name: string;
|
|
1917
|
+
id: string;
|
|
1918
1918
|
parameters: Record<string, string>;
|
|
1919
1919
|
}, {
|
|
1920
|
-
id: string;
|
|
1921
1920
|
name: string;
|
|
1921
|
+
id: string;
|
|
1922
1922
|
parameters: Record<string, string>;
|
|
1923
1923
|
}>, "many">;
|
|
1924
1924
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -1926,12 +1926,12 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1926
1926
|
result: z.ZodString;
|
|
1927
1927
|
id: z.ZodString;
|
|
1928
1928
|
}, "strip", z.ZodTypeAny, {
|
|
1929
|
-
id: string;
|
|
1930
1929
|
name: string;
|
|
1930
|
+
id: string;
|
|
1931
1931
|
result: string;
|
|
1932
1932
|
}, {
|
|
1933
|
-
id: string;
|
|
1934
1933
|
name: string;
|
|
1934
|
+
id: string;
|
|
1935
1935
|
result: string;
|
|
1936
1936
|
}>, "many">;
|
|
1937
1937
|
}, {
|
|
@@ -1945,7 +1945,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1945
1945
|
type: "prompt-response";
|
|
1946
1946
|
promptId: string;
|
|
1947
1947
|
agentState: {
|
|
1948
|
-
agentContext: string;
|
|
1949
1948
|
fileContext: {
|
|
1950
1949
|
currentWorkingDirectory: string;
|
|
1951
1950
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1973,8 +1972,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1973
1972
|
}[][];
|
|
1974
1973
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1975
1974
|
};
|
|
1975
|
+
agentContext: string;
|
|
1976
1976
|
messageHistory: {
|
|
1977
|
-
role: "user" | "assistant";
|
|
1978
1977
|
content: string | ({
|
|
1979
1978
|
type: "text";
|
|
1980
1979
|
text: string;
|
|
@@ -1983,8 +1982,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1983
1982
|
} | undefined;
|
|
1984
1983
|
} | {
|
|
1985
1984
|
type: "tool_use";
|
|
1986
|
-
id: string;
|
|
1987
1985
|
name: string;
|
|
1986
|
+
id: string;
|
|
1988
1987
|
input: Record<string, any>;
|
|
1989
1988
|
cache_control?: {
|
|
1990
1989
|
type: "ephemeral";
|
|
@@ -2007,16 +2006,17 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2007
2006
|
type: "ephemeral";
|
|
2008
2007
|
} | undefined;
|
|
2009
2008
|
})[];
|
|
2009
|
+
role: "user" | "assistant";
|
|
2010
2010
|
}[];
|
|
2011
2011
|
};
|
|
2012
2012
|
toolResults: {
|
|
2013
|
-
id: string;
|
|
2014
2013
|
name: string;
|
|
2014
|
+
id: string;
|
|
2015
2015
|
result: string;
|
|
2016
2016
|
}[];
|
|
2017
2017
|
toolCalls: {
|
|
2018
|
-
id: string;
|
|
2019
2018
|
name: string;
|
|
2019
|
+
id: string;
|
|
2020
2020
|
parameters: Record<string, string>;
|
|
2021
2021
|
}[];
|
|
2022
2022
|
usage?: number | undefined;
|
|
@@ -2029,7 +2029,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2029
2029
|
type: "prompt-response";
|
|
2030
2030
|
promptId: string;
|
|
2031
2031
|
agentState: {
|
|
2032
|
-
agentContext: string;
|
|
2033
2032
|
fileContext: {
|
|
2034
2033
|
currentWorkingDirectory: string;
|
|
2035
2034
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2057,8 +2056,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2057
2056
|
}[][];
|
|
2058
2057
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2059
2058
|
};
|
|
2059
|
+
agentContext: string;
|
|
2060
2060
|
messageHistory: {
|
|
2061
|
-
role: "user" | "assistant";
|
|
2062
2061
|
content: string | ({
|
|
2063
2062
|
type: "text";
|
|
2064
2063
|
text: string;
|
|
@@ -2067,8 +2066,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2067
2066
|
} | undefined;
|
|
2068
2067
|
} | {
|
|
2069
2068
|
type: "tool_use";
|
|
2070
|
-
id: string;
|
|
2071
2069
|
name: string;
|
|
2070
|
+
id: string;
|
|
2072
2071
|
input: Record<string, any>;
|
|
2073
2072
|
cache_control?: {
|
|
2074
2073
|
type: "ephemeral";
|
|
@@ -2091,16 +2090,17 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2091
2090
|
type: "ephemeral";
|
|
2092
2091
|
} | undefined;
|
|
2093
2092
|
})[];
|
|
2093
|
+
role: "user" | "assistant";
|
|
2094
2094
|
}[];
|
|
2095
2095
|
};
|
|
2096
2096
|
toolResults: {
|
|
2097
|
-
id: string;
|
|
2098
2097
|
name: string;
|
|
2098
|
+
id: string;
|
|
2099
2099
|
result: string;
|
|
2100
2100
|
}[];
|
|
2101
2101
|
toolCalls: {
|
|
2102
|
-
id: string;
|
|
2103
2102
|
name: string;
|
|
2103
|
+
id: string;
|
|
2104
2104
|
parameters: Record<string, string>;
|
|
2105
2105
|
}[];
|
|
2106
2106
|
usage?: number | undefined;
|
|
@@ -2373,16 +2373,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2373
2373
|
}>>;
|
|
2374
2374
|
}, "strip", z.ZodTypeAny, {
|
|
2375
2375
|
type: "tool_use";
|
|
2376
|
-
id: string;
|
|
2377
2376
|
name: string;
|
|
2377
|
+
id: string;
|
|
2378
2378
|
input: Record<string, any>;
|
|
2379
2379
|
cache_control?: {
|
|
2380
2380
|
type: "ephemeral";
|
|
2381
2381
|
} | undefined;
|
|
2382
2382
|
}, {
|
|
2383
2383
|
type: "tool_use";
|
|
2384
|
-
id: string;
|
|
2385
2384
|
name: string;
|
|
2385
|
+
id: string;
|
|
2386
2386
|
input: Record<string, any>;
|
|
2387
2387
|
cache_control?: {
|
|
2388
2388
|
type: "ephemeral";
|
|
@@ -2456,7 +2456,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2456
2456
|
} | undefined;
|
|
2457
2457
|
}>]>, "many">]>;
|
|
2458
2458
|
}, "strip", z.ZodTypeAny, {
|
|
2459
|
-
role: "user" | "assistant";
|
|
2460
2459
|
content: string | ({
|
|
2461
2460
|
type: "text";
|
|
2462
2461
|
text: string;
|
|
@@ -2465,8 +2464,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2465
2464
|
} | undefined;
|
|
2466
2465
|
} | {
|
|
2467
2466
|
type: "tool_use";
|
|
2468
|
-
id: string;
|
|
2469
2467
|
name: string;
|
|
2468
|
+
id: string;
|
|
2470
2469
|
input: Record<string, any>;
|
|
2471
2470
|
cache_control?: {
|
|
2472
2471
|
type: "ephemeral";
|
|
@@ -2489,8 +2488,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2489
2488
|
type: "ephemeral";
|
|
2490
2489
|
} | undefined;
|
|
2491
2490
|
})[];
|
|
2492
|
-
}, {
|
|
2493
2491
|
role: "user" | "assistant";
|
|
2492
|
+
}, {
|
|
2494
2493
|
content: string | ({
|
|
2495
2494
|
type: "text";
|
|
2496
2495
|
text: string;
|
|
@@ -2499,8 +2498,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2499
2498
|
} | undefined;
|
|
2500
2499
|
} | {
|
|
2501
2500
|
type: "tool_use";
|
|
2502
|
-
id: string;
|
|
2503
2501
|
name: string;
|
|
2502
|
+
id: string;
|
|
2504
2503
|
input: Record<string, any>;
|
|
2505
2504
|
cache_control?: {
|
|
2506
2505
|
type: "ephemeral";
|
|
@@ -2523,9 +2522,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2523
2522
|
type: "ephemeral";
|
|
2524
2523
|
} | undefined;
|
|
2525
2524
|
})[];
|
|
2525
|
+
role: "user" | "assistant";
|
|
2526
2526
|
}>, "many">;
|
|
2527
2527
|
}, "strip", z.ZodTypeAny, {
|
|
2528
|
-
agentContext: string;
|
|
2529
2528
|
fileContext: {
|
|
2530
2529
|
currentWorkingDirectory: string;
|
|
2531
2530
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2553,8 +2552,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2553
2552
|
}[][];
|
|
2554
2553
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2555
2554
|
};
|
|
2555
|
+
agentContext: string;
|
|
2556
2556
|
messageHistory: {
|
|
2557
|
-
role: "user" | "assistant";
|
|
2558
2557
|
content: string | ({
|
|
2559
2558
|
type: "text";
|
|
2560
2559
|
text: string;
|
|
@@ -2563,8 +2562,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2563
2562
|
} | undefined;
|
|
2564
2563
|
} | {
|
|
2565
2564
|
type: "tool_use";
|
|
2566
|
-
id: string;
|
|
2567
2565
|
name: string;
|
|
2566
|
+
id: string;
|
|
2568
2567
|
input: Record<string, any>;
|
|
2569
2568
|
cache_control?: {
|
|
2570
2569
|
type: "ephemeral";
|
|
@@ -2587,9 +2586,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2587
2586
|
type: "ephemeral";
|
|
2588
2587
|
} | undefined;
|
|
2589
2588
|
})[];
|
|
2589
|
+
role: "user" | "assistant";
|
|
2590
2590
|
}[];
|
|
2591
2591
|
}, {
|
|
2592
|
-
agentContext: string;
|
|
2593
2592
|
fileContext: {
|
|
2594
2593
|
currentWorkingDirectory: string;
|
|
2595
2594
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2617,8 +2616,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2617
2616
|
}[][];
|
|
2618
2617
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2619
2618
|
};
|
|
2619
|
+
agentContext: string;
|
|
2620
2620
|
messageHistory: {
|
|
2621
|
-
role: "user" | "assistant";
|
|
2622
2621
|
content: string | ({
|
|
2623
2622
|
type: "text";
|
|
2624
2623
|
text: string;
|
|
@@ -2627,8 +2626,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2627
2626
|
} | undefined;
|
|
2628
2627
|
} | {
|
|
2629
2628
|
type: "tool_use";
|
|
2630
|
-
id: string;
|
|
2631
2629
|
name: string;
|
|
2630
|
+
id: string;
|
|
2632
2631
|
input: Record<string, any>;
|
|
2633
2632
|
cache_control?: {
|
|
2634
2633
|
type: "ephemeral";
|
|
@@ -2651,6 +2650,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2651
2650
|
type: "ephemeral";
|
|
2652
2651
|
} | undefined;
|
|
2653
2652
|
})[];
|
|
2653
|
+
role: "user" | "assistant";
|
|
2654
2654
|
}[];
|
|
2655
2655
|
}>;
|
|
2656
2656
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
@@ -2658,12 +2658,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2658
2658
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2659
2659
|
id: z.ZodString;
|
|
2660
2660
|
}, "strip", z.ZodTypeAny, {
|
|
2661
|
-
id: string;
|
|
2662
2661
|
name: string;
|
|
2662
|
+
id: string;
|
|
2663
2663
|
parameters: Record<string, string>;
|
|
2664
2664
|
}, {
|
|
2665
|
-
id: string;
|
|
2666
2665
|
name: string;
|
|
2666
|
+
id: string;
|
|
2667
2667
|
parameters: Record<string, string>;
|
|
2668
2668
|
}>, "many">;
|
|
2669
2669
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2671,12 +2671,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2671
2671
|
result: z.ZodString;
|
|
2672
2672
|
id: z.ZodString;
|
|
2673
2673
|
}, "strip", z.ZodTypeAny, {
|
|
2674
|
-
id: string;
|
|
2675
2674
|
name: string;
|
|
2675
|
+
id: string;
|
|
2676
2676
|
result: string;
|
|
2677
2677
|
}, {
|
|
2678
|
-
id: string;
|
|
2679
2678
|
name: string;
|
|
2679
|
+
id: string;
|
|
2680
2680
|
result: string;
|
|
2681
2681
|
}>, "many">;
|
|
2682
2682
|
}, {
|
|
@@ -2690,7 +2690,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2690
2690
|
type: "prompt-response";
|
|
2691
2691
|
promptId: string;
|
|
2692
2692
|
agentState: {
|
|
2693
|
-
agentContext: string;
|
|
2694
2693
|
fileContext: {
|
|
2695
2694
|
currentWorkingDirectory: string;
|
|
2696
2695
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2718,8 +2717,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2718
2717
|
}[][];
|
|
2719
2718
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2720
2719
|
};
|
|
2720
|
+
agentContext: string;
|
|
2721
2721
|
messageHistory: {
|
|
2722
|
-
role: "user" | "assistant";
|
|
2723
2722
|
content: string | ({
|
|
2724
2723
|
type: "text";
|
|
2725
2724
|
text: string;
|
|
@@ -2728,8 +2727,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2728
2727
|
} | undefined;
|
|
2729
2728
|
} | {
|
|
2730
2729
|
type: "tool_use";
|
|
2731
|
-
id: string;
|
|
2732
2730
|
name: string;
|
|
2731
|
+
id: string;
|
|
2733
2732
|
input: Record<string, any>;
|
|
2734
2733
|
cache_control?: {
|
|
2735
2734
|
type: "ephemeral";
|
|
@@ -2752,16 +2751,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2752
2751
|
type: "ephemeral";
|
|
2753
2752
|
} | undefined;
|
|
2754
2753
|
})[];
|
|
2754
|
+
role: "user" | "assistant";
|
|
2755
2755
|
}[];
|
|
2756
2756
|
};
|
|
2757
2757
|
toolResults: {
|
|
2758
|
-
id: string;
|
|
2759
2758
|
name: string;
|
|
2759
|
+
id: string;
|
|
2760
2760
|
result: string;
|
|
2761
2761
|
}[];
|
|
2762
2762
|
toolCalls: {
|
|
2763
|
-
id: string;
|
|
2764
2763
|
name: string;
|
|
2764
|
+
id: string;
|
|
2765
2765
|
parameters: Record<string, string>;
|
|
2766
2766
|
}[];
|
|
2767
2767
|
usage?: number | undefined;
|
|
@@ -2774,7 +2774,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2774
2774
|
type: "prompt-response";
|
|
2775
2775
|
promptId: string;
|
|
2776
2776
|
agentState: {
|
|
2777
|
-
agentContext: string;
|
|
2778
2777
|
fileContext: {
|
|
2779
2778
|
currentWorkingDirectory: string;
|
|
2780
2779
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2802,8 +2801,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2802
2801
|
}[][];
|
|
2803
2802
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2804
2803
|
};
|
|
2804
|
+
agentContext: string;
|
|
2805
2805
|
messageHistory: {
|
|
2806
|
-
role: "user" | "assistant";
|
|
2807
2806
|
content: string | ({
|
|
2808
2807
|
type: "text";
|
|
2809
2808
|
text: string;
|
|
@@ -2812,8 +2811,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2812
2811
|
} | undefined;
|
|
2813
2812
|
} | {
|
|
2814
2813
|
type: "tool_use";
|
|
2815
|
-
id: string;
|
|
2816
2814
|
name: string;
|
|
2815
|
+
id: string;
|
|
2817
2816
|
input: Record<string, any>;
|
|
2818
2817
|
cache_control?: {
|
|
2819
2818
|
type: "ephemeral";
|
|
@@ -2836,16 +2835,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2836
2835
|
type: "ephemeral";
|
|
2837
2836
|
} | undefined;
|
|
2838
2837
|
})[];
|
|
2838
|
+
role: "user" | "assistant";
|
|
2839
2839
|
}[];
|
|
2840
2840
|
};
|
|
2841
2841
|
toolResults: {
|
|
2842
|
-
id: string;
|
|
2843
2842
|
name: string;
|
|
2843
|
+
id: string;
|
|
2844
2844
|
result: string;
|
|
2845
2845
|
}[];
|
|
2846
2846
|
toolCalls: {
|
|
2847
|
-
id: string;
|
|
2848
2847
|
name: string;
|
|
2848
|
+
id: string;
|
|
2849
2849
|
parameters: Record<string, string>;
|
|
2850
2850
|
}[];
|
|
2851
2851
|
usage?: number | undefined;
|
|
@@ -2875,12 +2875,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2875
2875
|
id: z.ZodString;
|
|
2876
2876
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2877
2877
|
}, "strip", z.ZodTypeAny, {
|
|
2878
|
-
id: string;
|
|
2879
2878
|
name: string;
|
|
2879
|
+
id: string;
|
|
2880
2880
|
input: Record<string, any>;
|
|
2881
2881
|
}, {
|
|
2882
|
-
id: string;
|
|
2883
2882
|
name: string;
|
|
2883
|
+
id: string;
|
|
2884
2884
|
input: Record<string, any>;
|
|
2885
2885
|
}>;
|
|
2886
2886
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2922,12 +2922,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2922
2922
|
resetFileVersions: z.ZodBoolean;
|
|
2923
2923
|
}, "strip", z.ZodTypeAny, {
|
|
2924
2924
|
type: "tool-call";
|
|
2925
|
+
userInputId: string;
|
|
2925
2926
|
data: {
|
|
2926
|
-
id: string;
|
|
2927
2927
|
name: string;
|
|
2928
|
+
id: string;
|
|
2928
2929
|
input: Record<string, any>;
|
|
2929
2930
|
};
|
|
2930
|
-
userInputId: string;
|
|
2931
2931
|
changesAlreadyApplied: {
|
|
2932
2932
|
type: "patch" | "file";
|
|
2933
2933
|
path: string;
|
|
@@ -2946,12 +2946,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2946
2946
|
resetFileVersions: boolean;
|
|
2947
2947
|
}, {
|
|
2948
2948
|
type: "tool-call";
|
|
2949
|
+
userInputId: string;
|
|
2949
2950
|
data: {
|
|
2950
|
-
id: string;
|
|
2951
2951
|
name: string;
|
|
2952
|
+
id: string;
|
|
2952
2953
|
input: Record<string, any>;
|
|
2953
2954
|
};
|
|
2954
|
-
userInputId: string;
|
|
2955
2955
|
changesAlreadyApplied: {
|
|
2956
2956
|
type: "patch" | "file";
|
|
2957
2957
|
path: string;
|
|
@@ -2974,12 +2974,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2974
2974
|
result: z.ZodString;
|
|
2975
2975
|
}, "strip", z.ZodTypeAny, {
|
|
2976
2976
|
type: "terminal-command-result";
|
|
2977
|
-
result: string;
|
|
2978
2977
|
userInputId: string;
|
|
2978
|
+
result: string;
|
|
2979
2979
|
}, {
|
|
2980
2980
|
type: "terminal-command-result";
|
|
2981
|
-
result: string;
|
|
2982
2981
|
userInputId: string;
|
|
2982
|
+
result: string;
|
|
2983
2983
|
}>, z.ZodObject<{
|
|
2984
2984
|
type: z.ZodLiteral<"npm-version-status">;
|
|
2985
2985
|
isUpToDate: z.ZodBoolean;
|