codebuff 1.0.177 → 1.0.179
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/checkpoints/checkpoint-manager.js +1 -1
- package/dist/checkpoints/checkpoint-manager.js.map +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/client.js +9 -10
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +120 -120
- package/dist/common/browser-actions.d.ts +44 -44
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +7 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/types/agent-state.d.ts +26 -26
- package/dist/common/types/message.d.ts +14 -14
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/constants.d.ts +1 -0
- package/dist/common/util/constants.js +7 -0
- package/dist/common/util/constants.js.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/helpers.d.ts +1 -0
- package/dist/common/util/helpers.js +6 -0
- package/dist/common/util/helpers.js.map +1 -0
- package/dist/common/util/token-counter.d.ts +3 -0
- package/dist/common/util/token-counter.js +27 -0
- package/dist/common/util/token-counter.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +368 -368
- package/dist/index.js +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
|
@@ -4,13 +4,13 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
type: "patch" | "file";
|
|
8
7
|
path: string;
|
|
9
8
|
content: string;
|
|
9
|
+
type: "file" | "patch";
|
|
10
10
|
}, {
|
|
11
|
-
type: "patch" | "file";
|
|
12
11
|
path: string;
|
|
13
12
|
content: string;
|
|
13
|
+
type: "file" | "patch";
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
16
16
|
export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
@@ -18,13 +18,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
18
18
|
path: z.ZodString;
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
type: "patch" | "file";
|
|
22
21
|
path: string;
|
|
23
22
|
content: string;
|
|
23
|
+
type: "file" | "patch";
|
|
24
24
|
}, {
|
|
25
|
-
type: "patch" | "file";
|
|
26
25
|
path: string;
|
|
27
26
|
content: string;
|
|
27
|
+
type: "file" | "patch";
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
30
30
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -110,15 +110,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
110
110
|
type: "ephemeral";
|
|
111
111
|
}>>;
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
type: "tool_result";
|
|
114
113
|
content: string;
|
|
114
|
+
type: "tool_result";
|
|
115
115
|
tool_use_id: string;
|
|
116
116
|
cache_control?: {
|
|
117
117
|
type: "ephemeral";
|
|
118
118
|
} | undefined;
|
|
119
119
|
}, {
|
|
120
|
-
type: "tool_result";
|
|
121
120
|
content: string;
|
|
121
|
+
type: "tool_result";
|
|
122
122
|
tool_use_id: string;
|
|
123
123
|
cache_control?: {
|
|
124
124
|
type: "ephemeral";
|
|
@@ -182,8 +182,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
182
182
|
type: "ephemeral";
|
|
183
183
|
} | undefined;
|
|
184
184
|
} | {
|
|
185
|
-
type: "tool_result";
|
|
186
185
|
content: string;
|
|
186
|
+
type: "tool_result";
|
|
187
187
|
tool_use_id: string;
|
|
188
188
|
cache_control?: {
|
|
189
189
|
type: "ephemeral";
|
|
@@ -216,8 +216,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
216
216
|
type: "ephemeral";
|
|
217
217
|
} | undefined;
|
|
218
218
|
} | {
|
|
219
|
-
type: "tool_result";
|
|
220
219
|
content: string;
|
|
220
|
+
type: "tool_result";
|
|
221
221
|
tool_use_id: string;
|
|
222
222
|
cache_control?: {
|
|
223
223
|
type: "ephemeral";
|
|
@@ -349,17 +349,44 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
349
349
|
path: z.ZodString;
|
|
350
350
|
content: z.ZodString;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
type: "patch" | "file";
|
|
353
352
|
path: string;
|
|
354
353
|
content: string;
|
|
354
|
+
type: "file" | "patch";
|
|
355
355
|
}, {
|
|
356
|
-
type: "patch" | "file";
|
|
357
356
|
path: string;
|
|
358
357
|
content: string;
|
|
358
|
+
type: "file" | "patch";
|
|
359
359
|
}>, "many">;
|
|
360
360
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
362
362
|
type: "user-input";
|
|
363
|
+
fileContext: {
|
|
364
|
+
currentWorkingDirectory: string;
|
|
365
|
+
fileTree: import("./util/file").FileTreeNode[];
|
|
366
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
367
|
+
knowledgeFiles: Record<string, string>;
|
|
368
|
+
gitChanges: {
|
|
369
|
+
status: string;
|
|
370
|
+
diff: string;
|
|
371
|
+
diffCached: string;
|
|
372
|
+
lastCommitMessages: string;
|
|
373
|
+
};
|
|
374
|
+
changesSinceLastChat: Record<string, string>;
|
|
375
|
+
shellConfigFiles: Record<string, string>;
|
|
376
|
+
systemInfo: {
|
|
377
|
+
platform: string;
|
|
378
|
+
shell: string;
|
|
379
|
+
nodeVersion: string;
|
|
380
|
+
arch: string;
|
|
381
|
+
homedir: string;
|
|
382
|
+
cpus: number;
|
|
383
|
+
};
|
|
384
|
+
fileVersions: {
|
|
385
|
+
path: string;
|
|
386
|
+
content: string;
|
|
387
|
+
}[][];
|
|
388
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
389
|
+
};
|
|
363
390
|
fingerprintId: string;
|
|
364
391
|
userInputId: string;
|
|
365
392
|
messages: {
|
|
@@ -378,8 +405,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
378
405
|
type: "ephemeral";
|
|
379
406
|
} | undefined;
|
|
380
407
|
} | {
|
|
381
|
-
type: "tool_result";
|
|
382
408
|
content: string;
|
|
409
|
+
type: "tool_result";
|
|
383
410
|
tool_use_id: string;
|
|
384
411
|
cache_control?: {
|
|
385
412
|
type: "ephemeral";
|
|
@@ -397,6 +424,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
397
424
|
})[];
|
|
398
425
|
role: "user" | "assistant";
|
|
399
426
|
}[];
|
|
427
|
+
changesAlreadyApplied: {
|
|
428
|
+
path: string;
|
|
429
|
+
content: string;
|
|
430
|
+
type: "file" | "patch";
|
|
431
|
+
}[];
|
|
432
|
+
costMode: "max" | "lite" | "normal";
|
|
433
|
+
authToken?: string | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
type: "user-input";
|
|
400
436
|
fileContext: {
|
|
401
437
|
currentWorkingDirectory: string;
|
|
402
438
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -424,15 +460,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
424
460
|
}[][];
|
|
425
461
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
426
462
|
};
|
|
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
463
|
fingerprintId: string;
|
|
437
464
|
userInputId: string;
|
|
438
465
|
messages: {
|
|
@@ -451,8 +478,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
451
478
|
type: "ephemeral";
|
|
452
479
|
} | undefined;
|
|
453
480
|
} | {
|
|
454
|
-
type: "tool_result";
|
|
455
481
|
content: string;
|
|
482
|
+
type: "tool_result";
|
|
456
483
|
tool_use_id: string;
|
|
457
484
|
cache_control?: {
|
|
458
485
|
type: "ephemeral";
|
|
@@ -470,40 +497,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
470
497
|
})[];
|
|
471
498
|
role: "user" | "assistant";
|
|
472
499
|
}[];
|
|
473
|
-
fileContext: {
|
|
474
|
-
currentWorkingDirectory: string;
|
|
475
|
-
fileTree: import("./util/file").FileTreeNode[];
|
|
476
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
477
|
-
knowledgeFiles: Record<string, string>;
|
|
478
|
-
gitChanges: {
|
|
479
|
-
status: string;
|
|
480
|
-
diff: string;
|
|
481
|
-
diffCached: string;
|
|
482
|
-
lastCommitMessages: string;
|
|
483
|
-
};
|
|
484
|
-
changesSinceLastChat: Record<string, string>;
|
|
485
|
-
shellConfigFiles: Record<string, string>;
|
|
486
|
-
systemInfo: {
|
|
487
|
-
platform: string;
|
|
488
|
-
shell: string;
|
|
489
|
-
nodeVersion: string;
|
|
490
|
-
arch: string;
|
|
491
|
-
homedir: string;
|
|
492
|
-
cpus: number;
|
|
493
|
-
};
|
|
494
|
-
fileVersions: {
|
|
495
|
-
path: string;
|
|
496
|
-
content: string;
|
|
497
|
-
}[][];
|
|
498
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
499
|
-
};
|
|
500
500
|
changesAlreadyApplied: {
|
|
501
|
-
type: "patch" | "file";
|
|
502
501
|
path: string;
|
|
503
502
|
content: string;
|
|
503
|
+
type: "file" | "patch";
|
|
504
504
|
}[];
|
|
505
505
|
authToken?: string | undefined;
|
|
506
|
-
costMode?: "
|
|
506
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
507
507
|
}>, z.ZodObject<{
|
|
508
508
|
type: z.ZodLiteral<"prompt">;
|
|
509
509
|
promptId: z.ZodString;
|
|
@@ -686,15 +686,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
686
686
|
type: "ephemeral";
|
|
687
687
|
}>>;
|
|
688
688
|
}, "strip", z.ZodTypeAny, {
|
|
689
|
-
type: "tool_result";
|
|
690
689
|
content: string;
|
|
690
|
+
type: "tool_result";
|
|
691
691
|
tool_use_id: string;
|
|
692
692
|
cache_control?: {
|
|
693
693
|
type: "ephemeral";
|
|
694
694
|
} | undefined;
|
|
695
695
|
}, {
|
|
696
|
-
type: "tool_result";
|
|
697
696
|
content: string;
|
|
697
|
+
type: "tool_result";
|
|
698
698
|
tool_use_id: string;
|
|
699
699
|
cache_control?: {
|
|
700
700
|
type: "ephemeral";
|
|
@@ -758,8 +758,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
758
758
|
type: "ephemeral";
|
|
759
759
|
} | undefined;
|
|
760
760
|
} | {
|
|
761
|
-
type: "tool_result";
|
|
762
761
|
content: string;
|
|
762
|
+
type: "tool_result";
|
|
763
763
|
tool_use_id: string;
|
|
764
764
|
cache_control?: {
|
|
765
765
|
type: "ephemeral";
|
|
@@ -792,8 +792,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
792
792
|
type: "ephemeral";
|
|
793
793
|
} | undefined;
|
|
794
794
|
} | {
|
|
795
|
-
type: "tool_result";
|
|
796
795
|
content: string;
|
|
796
|
+
type: "tool_result";
|
|
797
797
|
tool_use_id: string;
|
|
798
798
|
cache_control?: {
|
|
799
799
|
type: "ephemeral";
|
|
@@ -812,6 +812,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
812
812
|
role: "user" | "assistant";
|
|
813
813
|
}>, "many">;
|
|
814
814
|
}, "strip", z.ZodTypeAny, {
|
|
815
|
+
agentContext: string;
|
|
815
816
|
fileContext: {
|
|
816
817
|
currentWorkingDirectory: string;
|
|
817
818
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -839,7 +840,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
839
840
|
}[][];
|
|
840
841
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
841
842
|
};
|
|
842
|
-
agentContext: string;
|
|
843
843
|
messageHistory: {
|
|
844
844
|
content: string | ({
|
|
845
845
|
type: "text";
|
|
@@ -856,8 +856,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
856
856
|
type: "ephemeral";
|
|
857
857
|
} | undefined;
|
|
858
858
|
} | {
|
|
859
|
-
type: "tool_result";
|
|
860
859
|
content: string;
|
|
860
|
+
type: "tool_result";
|
|
861
861
|
tool_use_id: string;
|
|
862
862
|
cache_control?: {
|
|
863
863
|
type: "ephemeral";
|
|
@@ -876,6 +876,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
876
876
|
role: "user" | "assistant";
|
|
877
877
|
}[];
|
|
878
878
|
}, {
|
|
879
|
+
agentContext: string;
|
|
879
880
|
fileContext: {
|
|
880
881
|
currentWorkingDirectory: string;
|
|
881
882
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -903,7 +904,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
903
904
|
}[][];
|
|
904
905
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
905
906
|
};
|
|
906
|
-
agentContext: string;
|
|
907
907
|
messageHistory: {
|
|
908
908
|
content: string | ({
|
|
909
909
|
type: "text";
|
|
@@ -920,8 +920,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
920
920
|
type: "ephemeral";
|
|
921
921
|
} | undefined;
|
|
922
922
|
} | {
|
|
923
|
-
type: "tool_result";
|
|
924
923
|
content: string;
|
|
924
|
+
type: "tool_result";
|
|
925
925
|
tool_use_id: string;
|
|
926
926
|
cache_control?: {
|
|
927
927
|
type: "ephemeral";
|
|
@@ -956,9 +956,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
956
956
|
}, "strip", z.ZodTypeAny, {
|
|
957
957
|
type: "prompt";
|
|
958
958
|
fingerprintId: string;
|
|
959
|
-
costMode: "
|
|
959
|
+
costMode: "max" | "lite" | "normal";
|
|
960
960
|
promptId: string;
|
|
961
961
|
agentState: {
|
|
962
|
+
agentContext: string;
|
|
962
963
|
fileContext: {
|
|
963
964
|
currentWorkingDirectory: string;
|
|
964
965
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -986,7 +987,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
986
987
|
}[][];
|
|
987
988
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
988
989
|
};
|
|
989
|
-
agentContext: string;
|
|
990
990
|
messageHistory: {
|
|
991
991
|
content: string | ({
|
|
992
992
|
type: "text";
|
|
@@ -1003,8 +1003,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1003
1003
|
type: "ephemeral";
|
|
1004
1004
|
} | undefined;
|
|
1005
1005
|
} | {
|
|
1006
|
-
type: "tool_result";
|
|
1007
1006
|
content: string;
|
|
1007
|
+
type: "tool_result";
|
|
1008
1008
|
tool_use_id: string;
|
|
1009
1009
|
cache_control?: {
|
|
1010
1010
|
type: "ephemeral";
|
|
@@ -1035,6 +1035,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1035
1035
|
fingerprintId: string;
|
|
1036
1036
|
promptId: string;
|
|
1037
1037
|
agentState: {
|
|
1038
|
+
agentContext: string;
|
|
1038
1039
|
fileContext: {
|
|
1039
1040
|
currentWorkingDirectory: string;
|
|
1040
1041
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1062,7 +1063,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1062
1063
|
}[][];
|
|
1063
1064
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1064
1065
|
};
|
|
1065
|
-
agentContext: string;
|
|
1066
1066
|
messageHistory: {
|
|
1067
1067
|
content: string | ({
|
|
1068
1068
|
type: "text";
|
|
@@ -1079,8 +1079,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1079
1079
|
type: "ephemeral";
|
|
1080
1080
|
} | undefined;
|
|
1081
1081
|
} | {
|
|
1082
|
-
type: "tool_result";
|
|
1083
1082
|
content: string;
|
|
1083
|
+
type: "tool_result";
|
|
1084
1084
|
tool_use_id: string;
|
|
1085
1085
|
cache_control?: {
|
|
1086
1086
|
type: "ephemeral";
|
|
@@ -1105,7 +1105,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1105
1105
|
result: string;
|
|
1106
1106
|
}[];
|
|
1107
1107
|
authToken?: string | undefined;
|
|
1108
|
-
costMode?: "
|
|
1108
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1109
1109
|
prompt?: string | undefined;
|
|
1110
1110
|
}>, z.ZodObject<{
|
|
1111
1111
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -1234,7 +1234,6 @@ 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;
|
|
1238
1237
|
fileContext: {
|
|
1239
1238
|
currentWorkingDirectory: string;
|
|
1240
1239
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1262,10 +1261,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1262
1261
|
}[][];
|
|
1263
1262
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1264
1263
|
};
|
|
1264
|
+
fingerprintId: string;
|
|
1265
1265
|
authToken?: string | undefined;
|
|
1266
1266
|
}, {
|
|
1267
1267
|
type: "init";
|
|
1268
|
-
fingerprintId: string;
|
|
1269
1268
|
fileContext: {
|
|
1270
1269
|
currentWorkingDirectory: string;
|
|
1271
1270
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1293,6 +1292,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1293
1292
|
}[][];
|
|
1294
1293
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1295
1294
|
};
|
|
1295
|
+
fingerprintId: string;
|
|
1296
1296
|
authToken?: string | undefined;
|
|
1297
1297
|
}>, z.ZodObject<{
|
|
1298
1298
|
type: z.ZodLiteral<"usage">;
|
|
@@ -1386,26 +1386,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1386
1386
|
path: z.ZodString;
|
|
1387
1387
|
content: z.ZodString;
|
|
1388
1388
|
}, "strip", z.ZodTypeAny, {
|
|
1389
|
-
type: "patch" | "file";
|
|
1390
1389
|
path: string;
|
|
1391
1390
|
content: string;
|
|
1391
|
+
type: "file" | "patch";
|
|
1392
1392
|
}, {
|
|
1393
|
-
type: "patch" | "file";
|
|
1394
1393
|
path: string;
|
|
1395
1394
|
content: string;
|
|
1395
|
+
type: "file" | "patch";
|
|
1396
1396
|
}>, "many">;
|
|
1397
1397
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1398
1398
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1399
1399
|
path: z.ZodString;
|
|
1400
1400
|
content: z.ZodString;
|
|
1401
1401
|
}, "strip", z.ZodTypeAny, {
|
|
1402
|
-
type: "patch" | "file";
|
|
1403
1402
|
path: string;
|
|
1404
1403
|
content: string;
|
|
1404
|
+
type: "file" | "patch";
|
|
1405
1405
|
}, {
|
|
1406
|
-
type: "patch" | "file";
|
|
1407
1406
|
path: string;
|
|
1408
1407
|
content: string;
|
|
1408
|
+
type: "file" | "patch";
|
|
1409
1409
|
}>, "many">;
|
|
1410
1410
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1411
1411
|
path: z.ZodString;
|
|
@@ -1429,15 +1429,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1429
1429
|
type: "response-complete";
|
|
1430
1430
|
userInputId: string;
|
|
1431
1431
|
changesAlreadyApplied: {
|
|
1432
|
-
type: "patch" | "file";
|
|
1433
1432
|
path: string;
|
|
1434
1433
|
content: string;
|
|
1434
|
+
type: "file" | "patch";
|
|
1435
1435
|
}[];
|
|
1436
1436
|
response: string;
|
|
1437
1437
|
changes: {
|
|
1438
|
-
type: "patch" | "file";
|
|
1439
1438
|
path: string;
|
|
1440
1439
|
content: string;
|
|
1440
|
+
type: "file" | "patch";
|
|
1441
1441
|
}[];
|
|
1442
1442
|
addedFileVersions: {
|
|
1443
1443
|
path: string;
|
|
@@ -1454,15 +1454,15 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1454
1454
|
type: "response-complete";
|
|
1455
1455
|
userInputId: string;
|
|
1456
1456
|
changesAlreadyApplied: {
|
|
1457
|
-
type: "patch" | "file";
|
|
1458
1457
|
path: string;
|
|
1459
1458
|
content: string;
|
|
1459
|
+
type: "file" | "patch";
|
|
1460
1460
|
}[];
|
|
1461
1461
|
response: string;
|
|
1462
1462
|
changes: {
|
|
1463
|
-
type: "patch" | "file";
|
|
1464
1463
|
path: string;
|
|
1465
1464
|
content: string;
|
|
1465
|
+
type: "file" | "patch";
|
|
1466
1466
|
}[];
|
|
1467
1467
|
addedFileVersions: {
|
|
1468
1468
|
path: string;
|
|
@@ -1654,15 +1654,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1654
1654
|
type: "ephemeral";
|
|
1655
1655
|
}>>;
|
|
1656
1656
|
}, "strip", z.ZodTypeAny, {
|
|
1657
|
-
type: "tool_result";
|
|
1658
1657
|
content: string;
|
|
1658
|
+
type: "tool_result";
|
|
1659
1659
|
tool_use_id: string;
|
|
1660
1660
|
cache_control?: {
|
|
1661
1661
|
type: "ephemeral";
|
|
1662
1662
|
} | undefined;
|
|
1663
1663
|
}, {
|
|
1664
|
-
type: "tool_result";
|
|
1665
1664
|
content: string;
|
|
1665
|
+
type: "tool_result";
|
|
1666
1666
|
tool_use_id: string;
|
|
1667
1667
|
cache_control?: {
|
|
1668
1668
|
type: "ephemeral";
|
|
@@ -1726,8 +1726,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1726
1726
|
type: "ephemeral";
|
|
1727
1727
|
} | undefined;
|
|
1728
1728
|
} | {
|
|
1729
|
-
type: "tool_result";
|
|
1730
1729
|
content: string;
|
|
1730
|
+
type: "tool_result";
|
|
1731
1731
|
tool_use_id: string;
|
|
1732
1732
|
cache_control?: {
|
|
1733
1733
|
type: "ephemeral";
|
|
@@ -1760,8 +1760,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1760
1760
|
type: "ephemeral";
|
|
1761
1761
|
} | undefined;
|
|
1762
1762
|
} | {
|
|
1763
|
-
type: "tool_result";
|
|
1764
1763
|
content: string;
|
|
1764
|
+
type: "tool_result";
|
|
1765
1765
|
tool_use_id: string;
|
|
1766
1766
|
cache_control?: {
|
|
1767
1767
|
type: "ephemeral";
|
|
@@ -1780,6 +1780,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1780
1780
|
role: "user" | "assistant";
|
|
1781
1781
|
}>, "many">;
|
|
1782
1782
|
}, "strip", z.ZodTypeAny, {
|
|
1783
|
+
agentContext: string;
|
|
1783
1784
|
fileContext: {
|
|
1784
1785
|
currentWorkingDirectory: string;
|
|
1785
1786
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1807,7 +1808,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1807
1808
|
}[][];
|
|
1808
1809
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1809
1810
|
};
|
|
1810
|
-
agentContext: string;
|
|
1811
1811
|
messageHistory: {
|
|
1812
1812
|
content: string | ({
|
|
1813
1813
|
type: "text";
|
|
@@ -1824,8 +1824,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1824
1824
|
type: "ephemeral";
|
|
1825
1825
|
} | undefined;
|
|
1826
1826
|
} | {
|
|
1827
|
-
type: "tool_result";
|
|
1828
1827
|
content: string;
|
|
1828
|
+
type: "tool_result";
|
|
1829
1829
|
tool_use_id: string;
|
|
1830
1830
|
cache_control?: {
|
|
1831
1831
|
type: "ephemeral";
|
|
@@ -1844,6 +1844,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1844
1844
|
role: "user" | "assistant";
|
|
1845
1845
|
}[];
|
|
1846
1846
|
}, {
|
|
1847
|
+
agentContext: string;
|
|
1847
1848
|
fileContext: {
|
|
1848
1849
|
currentWorkingDirectory: string;
|
|
1849
1850
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1871,7 +1872,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1871
1872
|
}[][];
|
|
1872
1873
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1873
1874
|
};
|
|
1874
|
-
agentContext: string;
|
|
1875
1875
|
messageHistory: {
|
|
1876
1876
|
content: string | ({
|
|
1877
1877
|
type: "text";
|
|
@@ -1888,8 +1888,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1888
1888
|
type: "ephemeral";
|
|
1889
1889
|
} | undefined;
|
|
1890
1890
|
} | {
|
|
1891
|
-
type: "tool_result";
|
|
1892
1891
|
content: string;
|
|
1892
|
+
type: "tool_result";
|
|
1893
1893
|
tool_use_id: string;
|
|
1894
1894
|
cache_control?: {
|
|
1895
1895
|
type: "ephemeral";
|
|
@@ -1945,6 +1945,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1945
1945
|
type: "prompt-response";
|
|
1946
1946
|
promptId: string;
|
|
1947
1947
|
agentState: {
|
|
1948
|
+
agentContext: string;
|
|
1948
1949
|
fileContext: {
|
|
1949
1950
|
currentWorkingDirectory: string;
|
|
1950
1951
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1972,7 +1973,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1972
1973
|
}[][];
|
|
1973
1974
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1974
1975
|
};
|
|
1975
|
-
agentContext: string;
|
|
1976
1976
|
messageHistory: {
|
|
1977
1977
|
content: string | ({
|
|
1978
1978
|
type: "text";
|
|
@@ -1989,8 +1989,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1989
1989
|
type: "ephemeral";
|
|
1990
1990
|
} | undefined;
|
|
1991
1991
|
} | {
|
|
1992
|
-
type: "tool_result";
|
|
1993
1992
|
content: string;
|
|
1993
|
+
type: "tool_result";
|
|
1994
1994
|
tool_use_id: string;
|
|
1995
1995
|
cache_control?: {
|
|
1996
1996
|
type: "ephemeral";
|
|
@@ -2029,6 +2029,7 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2029
2029
|
type: "prompt-response";
|
|
2030
2030
|
promptId: string;
|
|
2031
2031
|
agentState: {
|
|
2032
|
+
agentContext: string;
|
|
2032
2033
|
fileContext: {
|
|
2033
2034
|
currentWorkingDirectory: string;
|
|
2034
2035
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2056,7 +2057,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2056
2057
|
}[][];
|
|
2057
2058
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2058
2059
|
};
|
|
2059
|
-
agentContext: string;
|
|
2060
2060
|
messageHistory: {
|
|
2061
2061
|
content: string | ({
|
|
2062
2062
|
type: "text";
|
|
@@ -2073,8 +2073,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2073
2073
|
type: "ephemeral";
|
|
2074
2074
|
} | undefined;
|
|
2075
2075
|
} | {
|
|
2076
|
-
type: "tool_result";
|
|
2077
2076
|
content: string;
|
|
2077
|
+
type: "tool_result";
|
|
2078
2078
|
tool_use_id: string;
|
|
2079
2079
|
cache_control?: {
|
|
2080
2080
|
type: "ephemeral";
|
|
@@ -2132,26 +2132,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2132
2132
|
path: z.ZodString;
|
|
2133
2133
|
content: z.ZodString;
|
|
2134
2134
|
}, "strip", z.ZodTypeAny, {
|
|
2135
|
-
type: "patch" | "file";
|
|
2136
2135
|
path: string;
|
|
2137
2136
|
content: string;
|
|
2137
|
+
type: "file" | "patch";
|
|
2138
2138
|
}, {
|
|
2139
|
-
type: "patch" | "file";
|
|
2140
2139
|
path: string;
|
|
2141
2140
|
content: string;
|
|
2141
|
+
type: "file" | "patch";
|
|
2142
2142
|
}>, "many">;
|
|
2143
2143
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2144
2144
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2145
2145
|
path: z.ZodString;
|
|
2146
2146
|
content: z.ZodString;
|
|
2147
2147
|
}, "strip", z.ZodTypeAny, {
|
|
2148
|
-
type: "patch" | "file";
|
|
2149
2148
|
path: string;
|
|
2150
2149
|
content: string;
|
|
2150
|
+
type: "file" | "patch";
|
|
2151
2151
|
}, {
|
|
2152
|
-
type: "patch" | "file";
|
|
2153
2152
|
path: string;
|
|
2154
2153
|
content: string;
|
|
2154
|
+
type: "file" | "patch";
|
|
2155
2155
|
}>, "many">;
|
|
2156
2156
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2157
2157
|
path: z.ZodString;
|
|
@@ -2175,15 +2175,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2175
2175
|
type: "response-complete";
|
|
2176
2176
|
userInputId: string;
|
|
2177
2177
|
changesAlreadyApplied: {
|
|
2178
|
-
type: "patch" | "file";
|
|
2179
2178
|
path: string;
|
|
2180
2179
|
content: string;
|
|
2180
|
+
type: "file" | "patch";
|
|
2181
2181
|
}[];
|
|
2182
2182
|
response: string;
|
|
2183
2183
|
changes: {
|
|
2184
|
-
type: "patch" | "file";
|
|
2185
2184
|
path: string;
|
|
2186
2185
|
content: string;
|
|
2186
|
+
type: "file" | "patch";
|
|
2187
2187
|
}[];
|
|
2188
2188
|
addedFileVersions: {
|
|
2189
2189
|
path: string;
|
|
@@ -2200,15 +2200,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2200
2200
|
type: "response-complete";
|
|
2201
2201
|
userInputId: string;
|
|
2202
2202
|
changesAlreadyApplied: {
|
|
2203
|
-
type: "patch" | "file";
|
|
2204
2203
|
path: string;
|
|
2205
2204
|
content: string;
|
|
2205
|
+
type: "file" | "patch";
|
|
2206
2206
|
}[];
|
|
2207
2207
|
response: string;
|
|
2208
2208
|
changes: {
|
|
2209
|
-
type: "patch" | "file";
|
|
2210
2209
|
path: string;
|
|
2211
2210
|
content: string;
|
|
2211
|
+
type: "file" | "patch";
|
|
2212
2212
|
}[];
|
|
2213
2213
|
addedFileVersions: {
|
|
2214
2214
|
path: string;
|
|
@@ -2399,15 +2399,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2399
2399
|
type: "ephemeral";
|
|
2400
2400
|
}>>;
|
|
2401
2401
|
}, "strip", z.ZodTypeAny, {
|
|
2402
|
-
type: "tool_result";
|
|
2403
2402
|
content: string;
|
|
2403
|
+
type: "tool_result";
|
|
2404
2404
|
tool_use_id: string;
|
|
2405
2405
|
cache_control?: {
|
|
2406
2406
|
type: "ephemeral";
|
|
2407
2407
|
} | undefined;
|
|
2408
2408
|
}, {
|
|
2409
|
-
type: "tool_result";
|
|
2410
2409
|
content: string;
|
|
2410
|
+
type: "tool_result";
|
|
2411
2411
|
tool_use_id: string;
|
|
2412
2412
|
cache_control?: {
|
|
2413
2413
|
type: "ephemeral";
|
|
@@ -2471,8 +2471,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2471
2471
|
type: "ephemeral";
|
|
2472
2472
|
} | undefined;
|
|
2473
2473
|
} | {
|
|
2474
|
-
type: "tool_result";
|
|
2475
2474
|
content: string;
|
|
2475
|
+
type: "tool_result";
|
|
2476
2476
|
tool_use_id: string;
|
|
2477
2477
|
cache_control?: {
|
|
2478
2478
|
type: "ephemeral";
|
|
@@ -2505,8 +2505,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2505
2505
|
type: "ephemeral";
|
|
2506
2506
|
} | undefined;
|
|
2507
2507
|
} | {
|
|
2508
|
-
type: "tool_result";
|
|
2509
2508
|
content: string;
|
|
2509
|
+
type: "tool_result";
|
|
2510
2510
|
tool_use_id: string;
|
|
2511
2511
|
cache_control?: {
|
|
2512
2512
|
type: "ephemeral";
|
|
@@ -2525,6 +2525,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2525
2525
|
role: "user" | "assistant";
|
|
2526
2526
|
}>, "many">;
|
|
2527
2527
|
}, "strip", z.ZodTypeAny, {
|
|
2528
|
+
agentContext: string;
|
|
2528
2529
|
fileContext: {
|
|
2529
2530
|
currentWorkingDirectory: string;
|
|
2530
2531
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2552,7 +2553,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2552
2553
|
}[][];
|
|
2553
2554
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2554
2555
|
};
|
|
2555
|
-
agentContext: string;
|
|
2556
2556
|
messageHistory: {
|
|
2557
2557
|
content: string | ({
|
|
2558
2558
|
type: "text";
|
|
@@ -2569,8 +2569,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2569
2569
|
type: "ephemeral";
|
|
2570
2570
|
} | undefined;
|
|
2571
2571
|
} | {
|
|
2572
|
-
type: "tool_result";
|
|
2573
2572
|
content: string;
|
|
2573
|
+
type: "tool_result";
|
|
2574
2574
|
tool_use_id: string;
|
|
2575
2575
|
cache_control?: {
|
|
2576
2576
|
type: "ephemeral";
|
|
@@ -2589,6 +2589,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2589
2589
|
role: "user" | "assistant";
|
|
2590
2590
|
}[];
|
|
2591
2591
|
}, {
|
|
2592
|
+
agentContext: string;
|
|
2592
2593
|
fileContext: {
|
|
2593
2594
|
currentWorkingDirectory: string;
|
|
2594
2595
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2616,7 +2617,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2616
2617
|
}[][];
|
|
2617
2618
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2618
2619
|
};
|
|
2619
|
-
agentContext: string;
|
|
2620
2620
|
messageHistory: {
|
|
2621
2621
|
content: string | ({
|
|
2622
2622
|
type: "text";
|
|
@@ -2633,8 +2633,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2633
2633
|
type: "ephemeral";
|
|
2634
2634
|
} | undefined;
|
|
2635
2635
|
} | {
|
|
2636
|
-
type: "tool_result";
|
|
2637
2636
|
content: string;
|
|
2637
|
+
type: "tool_result";
|
|
2638
2638
|
tool_use_id: string;
|
|
2639
2639
|
cache_control?: {
|
|
2640
2640
|
type: "ephemeral";
|
|
@@ -2690,6 +2690,7 @@ 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;
|
|
2693
2694
|
fileContext: {
|
|
2694
2695
|
currentWorkingDirectory: string;
|
|
2695
2696
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2717,7 +2718,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2717
2718
|
}[][];
|
|
2718
2719
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2719
2720
|
};
|
|
2720
|
-
agentContext: string;
|
|
2721
2721
|
messageHistory: {
|
|
2722
2722
|
content: string | ({
|
|
2723
2723
|
type: "text";
|
|
@@ -2734,8 +2734,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2734
2734
|
type: "ephemeral";
|
|
2735
2735
|
} | undefined;
|
|
2736
2736
|
} | {
|
|
2737
|
-
type: "tool_result";
|
|
2738
2737
|
content: string;
|
|
2738
|
+
type: "tool_result";
|
|
2739
2739
|
tool_use_id: string;
|
|
2740
2740
|
cache_control?: {
|
|
2741
2741
|
type: "ephemeral";
|
|
@@ -2774,6 +2774,7 @@ 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;
|
|
2777
2778
|
fileContext: {
|
|
2778
2779
|
currentWorkingDirectory: string;
|
|
2779
2780
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2801,7 +2802,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2801
2802
|
}[][];
|
|
2802
2803
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2803
2804
|
};
|
|
2804
|
-
agentContext: string;
|
|
2805
2805
|
messageHistory: {
|
|
2806
2806
|
content: string | ({
|
|
2807
2807
|
type: "text";
|
|
@@ -2818,8 +2818,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2818
2818
|
type: "ephemeral";
|
|
2819
2819
|
} | undefined;
|
|
2820
2820
|
} | {
|
|
2821
|
-
type: "tool_result";
|
|
2822
2821
|
content: string;
|
|
2822
|
+
type: "tool_result";
|
|
2823
2823
|
tool_use_id: string;
|
|
2824
2824
|
cache_control?: {
|
|
2825
2825
|
type: "ephemeral";
|
|
@@ -2888,26 +2888,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2888
2888
|
path: z.ZodString;
|
|
2889
2889
|
content: z.ZodString;
|
|
2890
2890
|
}, "strip", z.ZodTypeAny, {
|
|
2891
|
-
type: "patch" | "file";
|
|
2892
2891
|
path: string;
|
|
2893
2892
|
content: string;
|
|
2893
|
+
type: "file" | "patch";
|
|
2894
2894
|
}, {
|
|
2895
|
-
type: "patch" | "file";
|
|
2896
2895
|
path: string;
|
|
2897
2896
|
content: string;
|
|
2897
|
+
type: "file" | "patch";
|
|
2898
2898
|
}>, "many">;
|
|
2899
2899
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2900
2900
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2901
2901
|
path: z.ZodString;
|
|
2902
2902
|
content: z.ZodString;
|
|
2903
2903
|
}, "strip", z.ZodTypeAny, {
|
|
2904
|
-
type: "patch" | "file";
|
|
2905
2904
|
path: string;
|
|
2906
2905
|
content: string;
|
|
2906
|
+
type: "file" | "patch";
|
|
2907
2907
|
}, {
|
|
2908
|
-
type: "patch" | "file";
|
|
2909
2908
|
path: string;
|
|
2910
2909
|
content: string;
|
|
2910
|
+
type: "file" | "patch";
|
|
2911
2911
|
}>, "many">;
|
|
2912
2912
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2913
2913
|
path: z.ZodString;
|
|
@@ -2922,22 +2922,22 @@ 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;
|
|
2926
2925
|
data: {
|
|
2927
2926
|
name: string;
|
|
2928
2927
|
id: string;
|
|
2929
2928
|
input: Record<string, any>;
|
|
2930
2929
|
};
|
|
2930
|
+
userInputId: string;
|
|
2931
2931
|
changesAlreadyApplied: {
|
|
2932
|
-
type: "patch" | "file";
|
|
2933
2932
|
path: string;
|
|
2934
2933
|
content: string;
|
|
2934
|
+
type: "file" | "patch";
|
|
2935
2935
|
}[];
|
|
2936
2936
|
response: string;
|
|
2937
2937
|
changes: {
|
|
2938
|
-
type: "patch" | "file";
|
|
2939
2938
|
path: string;
|
|
2940
2939
|
content: string;
|
|
2940
|
+
type: "file" | "patch";
|
|
2941
2941
|
}[];
|
|
2942
2942
|
addedFileVersions: {
|
|
2943
2943
|
path: string;
|
|
@@ -2946,22 +2946,22 @@ 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;
|
|
2950
2949
|
data: {
|
|
2951
2950
|
name: string;
|
|
2952
2951
|
id: string;
|
|
2953
2952
|
input: Record<string, any>;
|
|
2954
2953
|
};
|
|
2954
|
+
userInputId: string;
|
|
2955
2955
|
changesAlreadyApplied: {
|
|
2956
|
-
type: "patch" | "file";
|
|
2957
2956
|
path: string;
|
|
2958
2957
|
content: string;
|
|
2958
|
+
type: "file" | "patch";
|
|
2959
2959
|
}[];
|
|
2960
2960
|
response: string;
|
|
2961
2961
|
changes: {
|
|
2962
|
-
type: "patch" | "file";
|
|
2963
2962
|
path: string;
|
|
2964
2963
|
content: string;
|
|
2964
|
+
type: "file" | "patch";
|
|
2965
2965
|
}[];
|
|
2966
2966
|
addedFileVersions: {
|
|
2967
2967
|
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
|
-
userInputId: string;
|
|
2978
2977
|
result: string;
|
|
2978
|
+
userInputId: string;
|
|
2979
2979
|
}, {
|
|
2980
2980
|
type: "terminal-command-result";
|
|
2981
|
-
userInputId: string;
|
|
2982
2981
|
result: string;
|
|
2982
|
+
userInputId: string;
|
|
2983
2983
|
}>, z.ZodObject<{
|
|
2984
2984
|
type: z.ZodLiteral<"npm-version-status">;
|
|
2985
2985
|
isUpToDate: z.ZodBoolean;
|
|
@@ -3046,11 +3046,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
3046
3046
|
type: z.ZodLiteral<"action-error">;
|
|
3047
3047
|
message: z.ZodString;
|
|
3048
3048
|
}, "strip", z.ZodTypeAny, {
|
|
3049
|
-
type: "action-error";
|
|
3050
3049
|
message: string;
|
|
3051
|
-
}, {
|
|
3052
3050
|
type: "action-error";
|
|
3051
|
+
}, {
|
|
3053
3052
|
message: string;
|
|
3053
|
+
type: "action-error";
|
|
3054
3054
|
}>, z.ZodObject<{
|
|
3055
3055
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3056
3056
|
commitMessage: z.ZodString;
|