codebuff 1.0.176 → 1.0.177
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.d.ts +73 -0
- package/dist/checkpoints/checkpoint-manager.js +193 -0
- package/dist/checkpoints/checkpoint-manager.js.map +1 -0
- package/dist/{checkpoint-file-manager.d.ts → checkpoints/file-manager.d.ts} +10 -0
- package/dist/{checkpoint-file-manager.js → checkpoints/file-manager.js} +92 -35
- package/dist/checkpoints/file-manager.js.map +1 -0
- package/dist/cli.js +20 -18
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +7 -6
- package/dist/client.js +20 -15
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +120 -120
- package/dist/common/advanced-analyzer.d.ts +19 -0
- package/dist/common/advanced-analyzer.js +140 -0
- package/dist/common/advanced-analyzer.js.map +1 -0
- package/dist/common/browser-actions.d.ts +44 -44
- package/dist/common/message-image-handling.d.ts +41 -0
- package/dist/common/message-image-handling.js +57 -0
- package/dist/common/message-image-handling.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/credentials.d.ts +2 -2
- package/dist/common/util/process-stream.d.ts +8 -0
- package/dist/common/util/process-stream.js +102 -0
- package/dist/common/util/process-stream.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +368 -368
- package/dist/index.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/menu.js.map +1 -1
- package/dist/project-files.js +2 -2
- package/dist/project-files.js.map +1 -1
- package/dist/workers/checkpoint-worker.js +47 -0
- package/dist/workers/checkpoint-worker.js.map +1 -0
- package/dist/workers/project-context.d.ts +1 -0
- package/dist/{worker-script-project-context.js → workers/project-context.js} +5 -5
- package/dist/workers/project-context.js.map +1 -0
- package/package.json +1 -1
- package/dist/checkpoint-file-manager.js.map +0 -1
- package/dist/checkpoints.d.ts +0 -64
- package/dist/checkpoints.js +0 -162
- package/dist/checkpoints.js.map +0 -1
- package/dist/common/logger.d.ts +0 -1
- package/dist/common/logger.js +0 -7
- package/dist/common/logger.js.map +0 -1
- package/dist/common/util/constants.d.ts +0 -1
- package/dist/common/util/constants.js +0 -7
- package/dist/common/util/constants.js.map +0 -1
- package/dist/common/util/helpers.d.ts +0 -1
- package/dist/common/util/helpers.js +0 -6
- package/dist/common/util/helpers.js.map +0 -1
- package/dist/common/util/token-counter.d.ts +0 -3
- package/dist/common/util/token-counter.js +0 -27
- package/dist/common/util/token-counter.js.map +0 -1
- package/dist/worker-script-project-context.js.map +0 -1
- /package/dist/{worker-script-project-context.d.ts → workers/checkpoint-worker.d.ts} +0 -0
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";
|
|
7
8
|
path: string;
|
|
8
9
|
content: string;
|
|
9
|
-
type: "file" | "patch";
|
|
10
10
|
}, {
|
|
11
|
+
type: "patch" | "file";
|
|
11
12
|
path: string;
|
|
12
13
|
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";
|
|
21
22
|
path: string;
|
|
22
23
|
content: string;
|
|
23
|
-
type: "file" | "patch";
|
|
24
24
|
}, {
|
|
25
|
+
type: "patch" | "file";
|
|
25
26
|
path: string;
|
|
26
27
|
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
|
-
content: string;
|
|
114
113
|
type: "tool_result";
|
|
114
|
+
content: string;
|
|
115
115
|
tool_use_id: string;
|
|
116
116
|
cache_control?: {
|
|
117
117
|
type: "ephemeral";
|
|
118
118
|
} | undefined;
|
|
119
119
|
}, {
|
|
120
|
-
content: string;
|
|
121
120
|
type: "tool_result";
|
|
121
|
+
content: string;
|
|
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
|
-
content: string;
|
|
186
185
|
type: "tool_result";
|
|
186
|
+
content: string;
|
|
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
|
-
content: string;
|
|
220
219
|
type: "tool_result";
|
|
220
|
+
content: string;
|
|
221
221
|
tool_use_id: string;
|
|
222
222
|
cache_control?: {
|
|
223
223
|
type: "ephemeral";
|
|
@@ -349,44 +349,17 @@ 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";
|
|
352
353
|
path: string;
|
|
353
354
|
content: string;
|
|
354
|
-
type: "file" | "patch";
|
|
355
355
|
}, {
|
|
356
|
+
type: "patch" | "file";
|
|
356
357
|
path: string;
|
|
357
358
|
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
|
-
};
|
|
390
363
|
fingerprintId: string;
|
|
391
364
|
userInputId: string;
|
|
392
365
|
messages: {
|
|
@@ -405,8 +378,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
405
378
|
type: "ephemeral";
|
|
406
379
|
} | undefined;
|
|
407
380
|
} | {
|
|
408
|
-
content: string;
|
|
409
381
|
type: "tool_result";
|
|
382
|
+
content: string;
|
|
410
383
|
tool_use_id: string;
|
|
411
384
|
cache_control?: {
|
|
412
385
|
type: "ephemeral";
|
|
@@ -424,15 +397,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
424
397
|
})[];
|
|
425
398
|
role: "user" | "assistant";
|
|
426
399
|
}[];
|
|
427
|
-
changesAlreadyApplied: {
|
|
428
|
-
path: string;
|
|
429
|
-
content: string;
|
|
430
|
-
type: "file" | "patch";
|
|
431
|
-
}[];
|
|
432
|
-
costMode: "max" | "lite" | "normal";
|
|
433
|
-
authToken?: string | undefined;
|
|
434
|
-
}, {
|
|
435
|
-
type: "user-input";
|
|
436
400
|
fileContext: {
|
|
437
401
|
currentWorkingDirectory: string;
|
|
438
402
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -460,6 +424,15 @@ 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: {
|
|
@@ -478,8 +451,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
478
451
|
type: "ephemeral";
|
|
479
452
|
} | undefined;
|
|
480
453
|
} | {
|
|
481
|
-
content: string;
|
|
482
454
|
type: "tool_result";
|
|
455
|
+
content: string;
|
|
483
456
|
tool_use_id: string;
|
|
484
457
|
cache_control?: {
|
|
485
458
|
type: "ephemeral";
|
|
@@ -497,13 +470,40 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
497
470
|
})[];
|
|
498
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
|
+
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";
|
|
501
502
|
path: string;
|
|
502
503
|
content: string;
|
|
503
|
-
type: "file" | "patch";
|
|
504
504
|
}[];
|
|
505
505
|
authToken?: string | undefined;
|
|
506
|
-
costMode?: "
|
|
506
|
+
costMode?: "lite" | "normal" | "max" | 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
|
-
content: string;
|
|
690
689
|
type: "tool_result";
|
|
690
|
+
content: string;
|
|
691
691
|
tool_use_id: string;
|
|
692
692
|
cache_control?: {
|
|
693
693
|
type: "ephemeral";
|
|
694
694
|
} | undefined;
|
|
695
695
|
}, {
|
|
696
|
-
content: string;
|
|
697
696
|
type: "tool_result";
|
|
697
|
+
content: string;
|
|
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
|
-
content: string;
|
|
762
761
|
type: "tool_result";
|
|
762
|
+
content: string;
|
|
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
|
-
content: string;
|
|
796
795
|
type: "tool_result";
|
|
796
|
+
content: string;
|
|
797
797
|
tool_use_id: string;
|
|
798
798
|
cache_control?: {
|
|
799
799
|
type: "ephemeral";
|
|
@@ -812,7 +812,6 @@ 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;
|
|
816
815
|
fileContext: {
|
|
817
816
|
currentWorkingDirectory: string;
|
|
818
817
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -840,6 +839,7 @@ 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
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
|
-
content: string;
|
|
860
859
|
type: "tool_result";
|
|
860
|
+
content: string;
|
|
861
861
|
tool_use_id: string;
|
|
862
862
|
cache_control?: {
|
|
863
863
|
type: "ephemeral";
|
|
@@ -876,7 +876,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
876
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,6 +903,7 @@ 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
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
|
-
content: string;
|
|
924
923
|
type: "tool_result";
|
|
924
|
+
content: string;
|
|
925
925
|
tool_use_id: string;
|
|
926
926
|
cache_control?: {
|
|
927
927
|
type: "ephemeral";
|
|
@@ -956,10 +956,9 @@ 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: "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,6 +986,7 @@ 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
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
|
-
content: string;
|
|
1007
1006
|
type: "tool_result";
|
|
1007
|
+
content: string;
|
|
1008
1008
|
tool_use_id: string;
|
|
1009
1009
|
cache_control?: {
|
|
1010
1010
|
type: "ephemeral";
|
|
@@ -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,6 +1062,7 @@ 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
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
|
-
content: string;
|
|
1083
1082
|
type: "tool_result";
|
|
1083
|
+
content: string;
|
|
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?: "lite" | "normal" | "max" | undefined;
|
|
1109
1109
|
prompt?: string | undefined;
|
|
1110
1110
|
}>, z.ZodObject<{
|
|
1111
1111
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -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">;
|
|
@@ -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";
|
|
1389
1390
|
path: string;
|
|
1390
1391
|
content: string;
|
|
1391
|
-
type: "file" | "patch";
|
|
1392
1392
|
}, {
|
|
1393
|
+
type: "patch" | "file";
|
|
1393
1394
|
path: string;
|
|
1394
1395
|
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";
|
|
1402
1403
|
path: string;
|
|
1403
1404
|
content: string;
|
|
1404
|
-
type: "file" | "patch";
|
|
1405
1405
|
}, {
|
|
1406
|
+
type: "patch" | "file";
|
|
1406
1407
|
path: string;
|
|
1407
1408
|
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";
|
|
1432
1433
|
path: string;
|
|
1433
1434
|
content: string;
|
|
1434
|
-
type: "file" | "patch";
|
|
1435
1435
|
}[];
|
|
1436
1436
|
response: string;
|
|
1437
1437
|
changes: {
|
|
1438
|
+
type: "patch" | "file";
|
|
1438
1439
|
path: string;
|
|
1439
1440
|
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";
|
|
1457
1458
|
path: string;
|
|
1458
1459
|
content: string;
|
|
1459
|
-
type: "file" | "patch";
|
|
1460
1460
|
}[];
|
|
1461
1461
|
response: string;
|
|
1462
1462
|
changes: {
|
|
1463
|
+
type: "patch" | "file";
|
|
1463
1464
|
path: string;
|
|
1464
1465
|
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
|
-
content: string;
|
|
1658
1657
|
type: "tool_result";
|
|
1658
|
+
content: string;
|
|
1659
1659
|
tool_use_id: string;
|
|
1660
1660
|
cache_control?: {
|
|
1661
1661
|
type: "ephemeral";
|
|
1662
1662
|
} | undefined;
|
|
1663
1663
|
}, {
|
|
1664
|
-
content: string;
|
|
1665
1664
|
type: "tool_result";
|
|
1665
|
+
content: string;
|
|
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
|
-
content: string;
|
|
1730
1729
|
type: "tool_result";
|
|
1730
|
+
content: string;
|
|
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
|
-
content: string;
|
|
1764
1763
|
type: "tool_result";
|
|
1764
|
+
content: string;
|
|
1765
1765
|
tool_use_id: string;
|
|
1766
1766
|
cache_control?: {
|
|
1767
1767
|
type: "ephemeral";
|
|
@@ -1780,7 +1780,6 @@ 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;
|
|
1784
1783
|
fileContext: {
|
|
1785
1784
|
currentWorkingDirectory: string;
|
|
1786
1785
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1808,6 +1807,7 @@ 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
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
|
-
content: string;
|
|
1828
1827
|
type: "tool_result";
|
|
1828
|
+
content: string;
|
|
1829
1829
|
tool_use_id: string;
|
|
1830
1830
|
cache_control?: {
|
|
1831
1831
|
type: "ephemeral";
|
|
@@ -1844,7 +1844,6 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1844
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,6 +1871,7 @@ 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
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
|
-
content: string;
|
|
1892
1891
|
type: "tool_result";
|
|
1892
|
+
content: string;
|
|
1893
1893
|
tool_use_id: string;
|
|
1894
1894
|
cache_control?: {
|
|
1895
1895
|
type: "ephemeral";
|
|
@@ -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,6 +1972,7 @@ 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
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
|
-
content: string;
|
|
1993
1992
|
type: "tool_result";
|
|
1993
|
+
content: string;
|
|
1994
1994
|
tool_use_id: string;
|
|
1995
1995
|
cache_control?: {
|
|
1996
1996
|
type: "ephemeral";
|
|
@@ -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,6 +2056,7 @@ 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
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
|
-
content: string;
|
|
2077
2076
|
type: "tool_result";
|
|
2077
|
+
content: string;
|
|
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";
|
|
2135
2136
|
path: string;
|
|
2136
2137
|
content: string;
|
|
2137
|
-
type: "file" | "patch";
|
|
2138
2138
|
}, {
|
|
2139
|
+
type: "patch" | "file";
|
|
2139
2140
|
path: string;
|
|
2140
2141
|
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";
|
|
2148
2149
|
path: string;
|
|
2149
2150
|
content: string;
|
|
2150
|
-
type: "file" | "patch";
|
|
2151
2151
|
}, {
|
|
2152
|
+
type: "patch" | "file";
|
|
2152
2153
|
path: string;
|
|
2153
2154
|
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";
|
|
2178
2179
|
path: string;
|
|
2179
2180
|
content: string;
|
|
2180
|
-
type: "file" | "patch";
|
|
2181
2181
|
}[];
|
|
2182
2182
|
response: string;
|
|
2183
2183
|
changes: {
|
|
2184
|
+
type: "patch" | "file";
|
|
2184
2185
|
path: string;
|
|
2185
2186
|
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";
|
|
2203
2204
|
path: string;
|
|
2204
2205
|
content: string;
|
|
2205
|
-
type: "file" | "patch";
|
|
2206
2206
|
}[];
|
|
2207
2207
|
response: string;
|
|
2208
2208
|
changes: {
|
|
2209
|
+
type: "patch" | "file";
|
|
2209
2210
|
path: string;
|
|
2210
2211
|
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
|
-
content: string;
|
|
2403
2402
|
type: "tool_result";
|
|
2403
|
+
content: string;
|
|
2404
2404
|
tool_use_id: string;
|
|
2405
2405
|
cache_control?: {
|
|
2406
2406
|
type: "ephemeral";
|
|
2407
2407
|
} | undefined;
|
|
2408
2408
|
}, {
|
|
2409
|
-
content: string;
|
|
2410
2409
|
type: "tool_result";
|
|
2410
|
+
content: string;
|
|
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
|
-
content: string;
|
|
2475
2474
|
type: "tool_result";
|
|
2475
|
+
content: string;
|
|
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
|
-
content: string;
|
|
2509
2508
|
type: "tool_result";
|
|
2509
|
+
content: string;
|
|
2510
2510
|
tool_use_id: string;
|
|
2511
2511
|
cache_control?: {
|
|
2512
2512
|
type: "ephemeral";
|
|
@@ -2525,7 +2525,6 @@ 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;
|
|
2529
2528
|
fileContext: {
|
|
2530
2529
|
currentWorkingDirectory: string;
|
|
2531
2530
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2553,6 +2552,7 @@ 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
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
|
-
content: string;
|
|
2573
2572
|
type: "tool_result";
|
|
2573
|
+
content: string;
|
|
2574
2574
|
tool_use_id: string;
|
|
2575
2575
|
cache_control?: {
|
|
2576
2576
|
type: "ephemeral";
|
|
@@ -2589,7 +2589,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2589
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,6 +2616,7 @@ 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
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
|
-
content: string;
|
|
2637
2636
|
type: "tool_result";
|
|
2637
|
+
content: string;
|
|
2638
2638
|
tool_use_id: string;
|
|
2639
2639
|
cache_control?: {
|
|
2640
2640
|
type: "ephemeral";
|
|
@@ -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,6 +2717,7 @@ 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
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
|
-
content: string;
|
|
2738
2737
|
type: "tool_result";
|
|
2738
|
+
content: string;
|
|
2739
2739
|
tool_use_id: string;
|
|
2740
2740
|
cache_control?: {
|
|
2741
2741
|
type: "ephemeral";
|
|
@@ -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,6 +2801,7 @@ 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
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
|
-
content: string;
|
|
2822
2821
|
type: "tool_result";
|
|
2822
|
+
content: string;
|
|
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";
|
|
2891
2892
|
path: string;
|
|
2892
2893
|
content: string;
|
|
2893
|
-
type: "file" | "patch";
|
|
2894
2894
|
}, {
|
|
2895
|
+
type: "patch" | "file";
|
|
2895
2896
|
path: string;
|
|
2896
2897
|
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";
|
|
2904
2905
|
path: string;
|
|
2905
2906
|
content: string;
|
|
2906
|
-
type: "file" | "patch";
|
|
2907
2907
|
}, {
|
|
2908
|
+
type: "patch" | "file";
|
|
2908
2909
|
path: string;
|
|
2909
2910
|
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;
|
|
2925
2926
|
data: {
|
|
2926
2927
|
name: string;
|
|
2927
2928
|
id: string;
|
|
2928
2929
|
input: Record<string, any>;
|
|
2929
2930
|
};
|
|
2930
|
-
userInputId: string;
|
|
2931
2931
|
changesAlreadyApplied: {
|
|
2932
|
+
type: "patch" | "file";
|
|
2932
2933
|
path: string;
|
|
2933
2934
|
content: string;
|
|
2934
|
-
type: "file" | "patch";
|
|
2935
2935
|
}[];
|
|
2936
2936
|
response: string;
|
|
2937
2937
|
changes: {
|
|
2938
|
+
type: "patch" | "file";
|
|
2938
2939
|
path: string;
|
|
2939
2940
|
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;
|
|
2949
2950
|
data: {
|
|
2950
2951
|
name: string;
|
|
2951
2952
|
id: string;
|
|
2952
2953
|
input: Record<string, any>;
|
|
2953
2954
|
};
|
|
2954
|
-
userInputId: string;
|
|
2955
2955
|
changesAlreadyApplied: {
|
|
2956
|
+
type: "patch" | "file";
|
|
2956
2957
|
path: string;
|
|
2957
2958
|
content: string;
|
|
2958
|
-
type: "file" | "patch";
|
|
2959
2959
|
}[];
|
|
2960
2960
|
response: string;
|
|
2961
2961
|
changes: {
|
|
2962
|
+
type: "patch" | "file";
|
|
2962
2963
|
path: string;
|
|
2963
2964
|
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
|
-
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;
|
|
@@ -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
|
-
message: string;
|
|
3050
3049
|
type: "action-error";
|
|
3051
|
-
}, {
|
|
3052
3050
|
message: string;
|
|
3051
|
+
}, {
|
|
3053
3052
|
type: "action-error";
|
|
3053
|
+
message: string;
|
|
3054
3054
|
}>, z.ZodObject<{
|
|
3055
3055
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3056
3056
|
commitMessage: z.ZodString;
|