codebuff 1.0.212 → 1.0.213
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/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/common/actions.d.ts +105 -105
- package/dist/common/browser-actions.d.ts +240 -240
- package/dist/common/constants.d.ts +1 -1
- package/dist/common/constants.js +2 -2
- package/dist/common/constants.js.map +1 -1
- 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 +6 -6
- package/dist/common/types/message.d.ts +6 -6
- 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 +186 -186
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/menu.js +2 -1
- package/dist/menu.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/actions.d.ts.map +0 -1
- package/dist/common/api-keys/constants.d.ts.map +0 -1
- package/dist/common/api-keys/crypto.d.ts.map +0 -1
- package/dist/common/billing/quota-manager.d.ts.map +0 -1
- package/dist/common/browser-actions.d.ts.map +0 -1
- package/dist/common/constants/tools.d.ts.map +0 -1
- package/dist/common/constants.d.ts.map +0 -1
- package/dist/common/db/drizzle.config.d.ts.map +0 -1
- package/dist/common/db/env.d.mts.map +0 -1
- package/dist/common/db/index.d.ts.map +0 -1
- package/dist/common/db/schema.d.ts.map +0 -1
- package/dist/common/env.d.mts.map +0 -1
- package/dist/common/project-file-tree.d.ts.map +0 -1
- package/dist/common/types/agent-state.d.ts.map +0 -1
- package/dist/common/types/message.d.ts.map +0 -1
- package/dist/common/types/plan.d.ts.map +0 -1
- package/dist/common/types/referral.d.ts.map +0 -1
- package/dist/common/types/tools.d.ts.map +0 -1
- package/dist/common/types/usage.d.ts.map +0 -1
- package/dist/common/util/__tests__/messages.test.d.ts.map +0 -1
- package/dist/common/util/__tests__/string.test.d.ts.map +0 -1
- package/dist/common/util/array.d.ts.map +0 -1
- package/dist/common/util/changes.d.ts.map +0 -1
- package/dist/common/util/credentials.d.ts.map +0 -1
- package/dist/common/util/crypto.d.ts +0 -27
- package/dist/common/util/crypto.js +0 -174
- package/dist/common/util/crypto.js.map +0 -1
- package/dist/common/util/dates.d.ts.map +0 -1
- package/dist/common/util/file.d.ts.map +0 -1
- package/dist/common/util/git.d.ts.map +0 -1
- package/dist/common/util/logger.d.ts.map +0 -1
- package/dist/common/util/lru-cache.d.ts.map +0 -1
- package/dist/common/util/messages.d.ts.map +0 -1
- package/dist/common/util/min-heap.d.ts.map +0 -1
- package/dist/common/util/object.d.ts.map +0 -1
- package/dist/common/util/patch.d.ts.map +0 -1
- package/dist/common/util/promise.d.ts.map +0 -1
- package/dist/common/util/referral.d.ts.map +0 -1
- package/dist/common/util/saxy.d.ts.map +0 -1
- package/dist/common/util/server/referral.d.ts.map +0 -1
- package/dist/common/util/string.d.ts.map +0 -1
- package/dist/common/util/stripe.d.ts.map +0 -1
- package/dist/common/websockets/websocket-client.d.ts.map +0 -1
- package/dist/common/websockets/websocket-schema.d.ts.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";
|
|
7
8
|
path: string;
|
|
8
9
|
content: string;
|
|
9
|
-
type: "patch" | "file";
|
|
10
10
|
}, {
|
|
11
|
+
type: "patch" | "file";
|
|
11
12
|
path: string;
|
|
12
13
|
content: string;
|
|
13
|
-
type: "patch" | "file";
|
|
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: "patch" | "file";
|
|
24
24
|
}, {
|
|
25
|
+
type: "patch" | "file";
|
|
25
26
|
path: string;
|
|
26
27
|
content: string;
|
|
27
|
-
type: "patch" | "file";
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
30
30
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -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>;
|
|
@@ -47,7 +47,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
47
47
|
prompt: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
48
48
|
fingerprintId: z.ZodString;
|
|
49
49
|
authToken: z.ZodOptional<z.ZodString>;
|
|
50
|
-
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
50
|
+
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max", "experimental"]>>>;
|
|
51
51
|
agentState: z.ZodObject<{
|
|
52
52
|
agentContext: z.ZodString;
|
|
53
53
|
fileContext: z.ZodObject<{
|
|
@@ -196,17 +196,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
196
196
|
type: "ephemeral";
|
|
197
197
|
}>>;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
id: string;
|
|
200
199
|
type: "tool_use";
|
|
201
200
|
name: string;
|
|
201
|
+
id: string;
|
|
202
202
|
input: Record<string, any>;
|
|
203
203
|
cache_control?: {
|
|
204
204
|
type: "ephemeral";
|
|
205
205
|
} | undefined;
|
|
206
206
|
}, {
|
|
207
|
-
id: string;
|
|
208
207
|
type: "tool_use";
|
|
209
208
|
name: string;
|
|
209
|
+
id: string;
|
|
210
210
|
input: Record<string, any>;
|
|
211
211
|
cache_control?: {
|
|
212
212
|
type: "ephemeral";
|
|
@@ -223,15 +223,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
223
223
|
type: "ephemeral";
|
|
224
224
|
}>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
content: string;
|
|
227
226
|
type: "tool_result";
|
|
227
|
+
content: string;
|
|
228
228
|
tool_use_id: string;
|
|
229
229
|
cache_control?: {
|
|
230
230
|
type: "ephemeral";
|
|
231
231
|
} | undefined;
|
|
232
232
|
}, {
|
|
233
|
-
content: string;
|
|
234
233
|
type: "tool_result";
|
|
234
|
+
content: string;
|
|
235
235
|
tool_use_id: string;
|
|
236
236
|
cache_control?: {
|
|
237
237
|
type: "ephemeral";
|
|
@@ -287,16 +287,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
287
287
|
type: "ephemeral";
|
|
288
288
|
} | undefined;
|
|
289
289
|
} | {
|
|
290
|
-
id: string;
|
|
291
290
|
type: "tool_use";
|
|
292
291
|
name: string;
|
|
292
|
+
id: string;
|
|
293
293
|
input: Record<string, any>;
|
|
294
294
|
cache_control?: {
|
|
295
295
|
type: "ephemeral";
|
|
296
296
|
} | undefined;
|
|
297
297
|
} | {
|
|
298
|
-
content: string;
|
|
299
298
|
type: "tool_result";
|
|
299
|
+
content: string;
|
|
300
300
|
tool_use_id: string;
|
|
301
301
|
cache_control?: {
|
|
302
302
|
type: "ephemeral";
|
|
@@ -321,16 +321,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
321
321
|
type: "ephemeral";
|
|
322
322
|
} | undefined;
|
|
323
323
|
} | {
|
|
324
|
-
id: string;
|
|
325
324
|
type: "tool_use";
|
|
326
325
|
name: string;
|
|
326
|
+
id: string;
|
|
327
327
|
input: Record<string, any>;
|
|
328
328
|
cache_control?: {
|
|
329
329
|
type: "ephemeral";
|
|
330
330
|
} | undefined;
|
|
331
331
|
} | {
|
|
332
|
-
content: string;
|
|
333
332
|
type: "tool_result";
|
|
333
|
+
content: string;
|
|
334
334
|
tool_use_id: string;
|
|
335
335
|
cache_control?: {
|
|
336
336
|
type: "ephemeral";
|
|
@@ -386,16 +386,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
386
386
|
type: "ephemeral";
|
|
387
387
|
} | undefined;
|
|
388
388
|
} | {
|
|
389
|
-
id: string;
|
|
390
389
|
type: "tool_use";
|
|
391
390
|
name: string;
|
|
391
|
+
id: string;
|
|
392
392
|
input: Record<string, any>;
|
|
393
393
|
cache_control?: {
|
|
394
394
|
type: "ephemeral";
|
|
395
395
|
} | undefined;
|
|
396
396
|
} | {
|
|
397
|
-
content: string;
|
|
398
397
|
type: "tool_result";
|
|
398
|
+
content: string;
|
|
399
399
|
tool_use_id: string;
|
|
400
400
|
cache_control?: {
|
|
401
401
|
type: "ephemeral";
|
|
@@ -451,16 +451,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
451
451
|
type: "ephemeral";
|
|
452
452
|
} | undefined;
|
|
453
453
|
} | {
|
|
454
|
-
id: string;
|
|
455
454
|
type: "tool_use";
|
|
456
455
|
name: string;
|
|
456
|
+
id: string;
|
|
457
457
|
input: Record<string, any>;
|
|
458
458
|
cache_control?: {
|
|
459
459
|
type: "ephemeral";
|
|
460
460
|
} | undefined;
|
|
461
461
|
} | {
|
|
462
|
-
content: string;
|
|
463
462
|
type: "tool_result";
|
|
463
|
+
content: string;
|
|
464
464
|
tool_use_id: string;
|
|
465
465
|
cache_control?: {
|
|
466
466
|
type: "ephemeral";
|
|
@@ -485,19 +485,19 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
485
485
|
result: z.ZodString;
|
|
486
486
|
id: z.ZodString;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
-
id: string;
|
|
489
488
|
name: string;
|
|
489
|
+
id: string;
|
|
490
490
|
result: string;
|
|
491
491
|
}, {
|
|
492
|
-
id: string;
|
|
493
492
|
name: string;
|
|
493
|
+
id: string;
|
|
494
494
|
result: string;
|
|
495
495
|
}>, "many">;
|
|
496
496
|
}, "strip", z.ZodTypeAny, {
|
|
497
497
|
type: "prompt";
|
|
498
498
|
promptId: string;
|
|
499
499
|
fingerprintId: string;
|
|
500
|
-
costMode: "lite" | "normal" | "max";
|
|
500
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
501
501
|
agentState: {
|
|
502
502
|
agentContext: string;
|
|
503
503
|
fileContext: {
|
|
@@ -535,16 +535,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
535
535
|
type: "ephemeral";
|
|
536
536
|
} | undefined;
|
|
537
537
|
} | {
|
|
538
|
-
id: string;
|
|
539
538
|
type: "tool_use";
|
|
540
539
|
name: string;
|
|
540
|
+
id: string;
|
|
541
541
|
input: Record<string, any>;
|
|
542
542
|
cache_control?: {
|
|
543
543
|
type: "ephemeral";
|
|
544
544
|
} | undefined;
|
|
545
545
|
} | {
|
|
546
|
-
content: string;
|
|
547
546
|
type: "tool_result";
|
|
547
|
+
content: string;
|
|
548
548
|
tool_use_id: string;
|
|
549
549
|
cache_control?: {
|
|
550
550
|
type: "ephemeral";
|
|
@@ -565,8 +565,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
565
565
|
lastUserPromptIndex?: number | undefined;
|
|
566
566
|
};
|
|
567
567
|
toolResults: {
|
|
568
|
-
id: string;
|
|
569
568
|
name: string;
|
|
569
|
+
id: string;
|
|
570
570
|
result: string;
|
|
571
571
|
}[];
|
|
572
572
|
prompt?: string | undefined;
|
|
@@ -612,16 +612,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
612
612
|
type: "ephemeral";
|
|
613
613
|
} | undefined;
|
|
614
614
|
} | {
|
|
615
|
-
id: string;
|
|
616
615
|
type: "tool_use";
|
|
617
616
|
name: string;
|
|
617
|
+
id: string;
|
|
618
618
|
input: Record<string, any>;
|
|
619
619
|
cache_control?: {
|
|
620
620
|
type: "ephemeral";
|
|
621
621
|
} | undefined;
|
|
622
622
|
} | {
|
|
623
|
-
content: string;
|
|
624
623
|
type: "tool_result";
|
|
624
|
+
content: string;
|
|
625
625
|
tool_use_id: string;
|
|
626
626
|
cache_control?: {
|
|
627
627
|
type: "ephemeral";
|
|
@@ -642,13 +642,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
642
642
|
lastUserPromptIndex?: number | undefined;
|
|
643
643
|
};
|
|
644
644
|
toolResults: {
|
|
645
|
-
id: string;
|
|
646
645
|
name: string;
|
|
646
|
+
id: string;
|
|
647
647
|
result: string;
|
|
648
648
|
}[];
|
|
649
649
|
prompt?: string | undefined;
|
|
650
650
|
authToken?: string | undefined;
|
|
651
|
-
costMode?: "lite" | "normal" | "max" | undefined;
|
|
651
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
652
652
|
}>, z.ZodObject<{
|
|
653
653
|
type: z.ZodLiteral<"read-files-response">;
|
|
654
654
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -910,26 +910,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
910
910
|
path: z.ZodString;
|
|
911
911
|
content: z.ZodString;
|
|
912
912
|
}, "strip", z.ZodTypeAny, {
|
|
913
|
+
type: "patch" | "file";
|
|
913
914
|
path: string;
|
|
914
915
|
content: string;
|
|
915
|
-
type: "patch" | "file";
|
|
916
916
|
}, {
|
|
917
|
+
type: "patch" | "file";
|
|
917
918
|
path: string;
|
|
918
919
|
content: string;
|
|
919
|
-
type: "patch" | "file";
|
|
920
920
|
}>, "many">;
|
|
921
921
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
922
922
|
type: z.ZodEnum<["patch", "file"]>;
|
|
923
923
|
path: z.ZodString;
|
|
924
924
|
content: z.ZodString;
|
|
925
925
|
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
type: "patch" | "file";
|
|
926
927
|
path: string;
|
|
927
928
|
content: string;
|
|
928
|
-
type: "patch" | "file";
|
|
929
929
|
}, {
|
|
930
|
+
type: "patch" | "file";
|
|
930
931
|
path: string;
|
|
931
932
|
content: string;
|
|
932
|
-
type: "patch" | "file";
|
|
933
933
|
}>, "many">;
|
|
934
934
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
935
935
|
path: z.ZodString;
|
|
@@ -953,14 +953,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
953
953
|
userInputId: string;
|
|
954
954
|
response: string;
|
|
955
955
|
changes: {
|
|
956
|
+
type: "patch" | "file";
|
|
956
957
|
path: string;
|
|
957
958
|
content: string;
|
|
958
|
-
type: "patch" | "file";
|
|
959
959
|
}[];
|
|
960
960
|
changesAlreadyApplied: {
|
|
961
|
+
type: "patch" | "file";
|
|
961
962
|
path: string;
|
|
962
963
|
content: string;
|
|
963
|
-
type: "patch" | "file";
|
|
964
964
|
}[];
|
|
965
965
|
addedFileVersions: {
|
|
966
966
|
path: string;
|
|
@@ -977,14 +977,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
977
977
|
userInputId: string;
|
|
978
978
|
response: string;
|
|
979
979
|
changes: {
|
|
980
|
+
type: "patch" | "file";
|
|
980
981
|
path: string;
|
|
981
982
|
content: string;
|
|
982
|
-
type: "patch" | "file";
|
|
983
983
|
}[];
|
|
984
984
|
changesAlreadyApplied: {
|
|
985
|
+
type: "patch" | "file";
|
|
985
986
|
path: string;
|
|
986
987
|
content: string;
|
|
987
|
-
type: "patch" | "file";
|
|
988
988
|
}[];
|
|
989
989
|
addedFileVersions: {
|
|
990
990
|
path: string;
|
|
@@ -1162,17 +1162,17 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1162
1162
|
type: "ephemeral";
|
|
1163
1163
|
}>>;
|
|
1164
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1165
|
-
id: string;
|
|
1166
1165
|
type: "tool_use";
|
|
1167
1166
|
name: string;
|
|
1167
|
+
id: string;
|
|
1168
1168
|
input: Record<string, any>;
|
|
1169
1169
|
cache_control?: {
|
|
1170
1170
|
type: "ephemeral";
|
|
1171
1171
|
} | undefined;
|
|
1172
1172
|
}, {
|
|
1173
|
-
id: string;
|
|
1174
1173
|
type: "tool_use";
|
|
1175
1174
|
name: string;
|
|
1175
|
+
id: string;
|
|
1176
1176
|
input: Record<string, any>;
|
|
1177
1177
|
cache_control?: {
|
|
1178
1178
|
type: "ephemeral";
|
|
@@ -1189,15 +1189,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1189
1189
|
type: "ephemeral";
|
|
1190
1190
|
}>>;
|
|
1191
1191
|
}, "strip", z.ZodTypeAny, {
|
|
1192
|
-
content: string;
|
|
1193
1192
|
type: "tool_result";
|
|
1193
|
+
content: string;
|
|
1194
1194
|
tool_use_id: string;
|
|
1195
1195
|
cache_control?: {
|
|
1196
1196
|
type: "ephemeral";
|
|
1197
1197
|
} | undefined;
|
|
1198
1198
|
}, {
|
|
1199
|
-
content: string;
|
|
1200
1199
|
type: "tool_result";
|
|
1200
|
+
content: string;
|
|
1201
1201
|
tool_use_id: string;
|
|
1202
1202
|
cache_control?: {
|
|
1203
1203
|
type: "ephemeral";
|
|
@@ -1253,16 +1253,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1253
1253
|
type: "ephemeral";
|
|
1254
1254
|
} | undefined;
|
|
1255
1255
|
} | {
|
|
1256
|
-
id: string;
|
|
1257
1256
|
type: "tool_use";
|
|
1258
1257
|
name: string;
|
|
1258
|
+
id: string;
|
|
1259
1259
|
input: Record<string, any>;
|
|
1260
1260
|
cache_control?: {
|
|
1261
1261
|
type: "ephemeral";
|
|
1262
1262
|
} | undefined;
|
|
1263
1263
|
} | {
|
|
1264
|
-
content: string;
|
|
1265
1264
|
type: "tool_result";
|
|
1265
|
+
content: string;
|
|
1266
1266
|
tool_use_id: string;
|
|
1267
1267
|
cache_control?: {
|
|
1268
1268
|
type: "ephemeral";
|
|
@@ -1287,16 +1287,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1287
1287
|
type: "ephemeral";
|
|
1288
1288
|
} | undefined;
|
|
1289
1289
|
} | {
|
|
1290
|
-
id: string;
|
|
1291
1290
|
type: "tool_use";
|
|
1292
1291
|
name: string;
|
|
1292
|
+
id: string;
|
|
1293
1293
|
input: Record<string, any>;
|
|
1294
1294
|
cache_control?: {
|
|
1295
1295
|
type: "ephemeral";
|
|
1296
1296
|
} | undefined;
|
|
1297
1297
|
} | {
|
|
1298
|
-
content: string;
|
|
1299
1298
|
type: "tool_result";
|
|
1299
|
+
content: string;
|
|
1300
1300
|
tool_use_id: string;
|
|
1301
1301
|
cache_control?: {
|
|
1302
1302
|
type: "ephemeral";
|
|
@@ -1352,16 +1352,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1352
1352
|
type: "ephemeral";
|
|
1353
1353
|
} | undefined;
|
|
1354
1354
|
} | {
|
|
1355
|
-
id: string;
|
|
1356
1355
|
type: "tool_use";
|
|
1357
1356
|
name: string;
|
|
1357
|
+
id: string;
|
|
1358
1358
|
input: Record<string, any>;
|
|
1359
1359
|
cache_control?: {
|
|
1360
1360
|
type: "ephemeral";
|
|
1361
1361
|
} | undefined;
|
|
1362
1362
|
} | {
|
|
1363
|
-
content: string;
|
|
1364
1363
|
type: "tool_result";
|
|
1364
|
+
content: string;
|
|
1365
1365
|
tool_use_id: string;
|
|
1366
1366
|
cache_control?: {
|
|
1367
1367
|
type: "ephemeral";
|
|
@@ -1417,16 +1417,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1417
1417
|
type: "ephemeral";
|
|
1418
1418
|
} | undefined;
|
|
1419
1419
|
} | {
|
|
1420
|
-
id: string;
|
|
1421
1420
|
type: "tool_use";
|
|
1422
1421
|
name: string;
|
|
1422
|
+
id: string;
|
|
1423
1423
|
input: Record<string, any>;
|
|
1424
1424
|
cache_control?: {
|
|
1425
1425
|
type: "ephemeral";
|
|
1426
1426
|
} | undefined;
|
|
1427
1427
|
} | {
|
|
1428
|
-
content: string;
|
|
1429
1428
|
type: "tool_result";
|
|
1429
|
+
content: string;
|
|
1430
1430
|
tool_use_id: string;
|
|
1431
1431
|
cache_control?: {
|
|
1432
1432
|
type: "ephemeral";
|
|
@@ -1451,12 +1451,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1451
1451
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1452
1452
|
id: z.ZodString;
|
|
1453
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1454
|
-
id: string;
|
|
1455
1454
|
name: string;
|
|
1455
|
+
id: string;
|
|
1456
1456
|
parameters: Record<string, string>;
|
|
1457
1457
|
}, {
|
|
1458
|
-
id: string;
|
|
1459
1458
|
name: string;
|
|
1459
|
+
id: string;
|
|
1460
1460
|
parameters: Record<string, string>;
|
|
1461
1461
|
}>, "many">;
|
|
1462
1462
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -1464,12 +1464,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1464
1464
|
result: z.ZodString;
|
|
1465
1465
|
id: z.ZodString;
|
|
1466
1466
|
}, "strip", z.ZodTypeAny, {
|
|
1467
|
-
id: string;
|
|
1468
1467
|
name: string;
|
|
1468
|
+
id: string;
|
|
1469
1469
|
result: string;
|
|
1470
1470
|
}, {
|
|
1471
|
-
id: string;
|
|
1472
1471
|
name: string;
|
|
1472
|
+
id: string;
|
|
1473
1473
|
result: string;
|
|
1474
1474
|
}>, "many">;
|
|
1475
1475
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1512,16 +1512,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1512
1512
|
type: "ephemeral";
|
|
1513
1513
|
} | undefined;
|
|
1514
1514
|
} | {
|
|
1515
|
-
id: string;
|
|
1516
1515
|
type: "tool_use";
|
|
1517
1516
|
name: string;
|
|
1517
|
+
id: string;
|
|
1518
1518
|
input: Record<string, any>;
|
|
1519
1519
|
cache_control?: {
|
|
1520
1520
|
type: "ephemeral";
|
|
1521
1521
|
} | undefined;
|
|
1522
1522
|
} | {
|
|
1523
|
-
content: string;
|
|
1524
1523
|
type: "tool_result";
|
|
1524
|
+
content: string;
|
|
1525
1525
|
tool_use_id: string;
|
|
1526
1526
|
cache_control?: {
|
|
1527
1527
|
type: "ephemeral";
|
|
@@ -1542,13 +1542,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1542
1542
|
lastUserPromptIndex?: number | undefined;
|
|
1543
1543
|
};
|
|
1544
1544
|
toolResults: {
|
|
1545
|
-
id: string;
|
|
1546
1545
|
name: string;
|
|
1546
|
+
id: string;
|
|
1547
1547
|
result: string;
|
|
1548
1548
|
}[];
|
|
1549
1549
|
toolCalls: {
|
|
1550
|
-
id: string;
|
|
1551
1550
|
name: string;
|
|
1551
|
+
id: string;
|
|
1552
1552
|
parameters: Record<string, string>;
|
|
1553
1553
|
}[];
|
|
1554
1554
|
}, {
|
|
@@ -1591,16 +1591,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1591
1591
|
type: "ephemeral";
|
|
1592
1592
|
} | undefined;
|
|
1593
1593
|
} | {
|
|
1594
|
-
id: string;
|
|
1595
1594
|
type: "tool_use";
|
|
1596
1595
|
name: string;
|
|
1596
|
+
id: string;
|
|
1597
1597
|
input: Record<string, any>;
|
|
1598
1598
|
cache_control?: {
|
|
1599
1599
|
type: "ephemeral";
|
|
1600
1600
|
} | undefined;
|
|
1601
1601
|
} | {
|
|
1602
|
-
content: string;
|
|
1603
1602
|
type: "tool_result";
|
|
1603
|
+
content: string;
|
|
1604
1604
|
tool_use_id: string;
|
|
1605
1605
|
cache_control?: {
|
|
1606
1606
|
type: "ephemeral";
|
|
@@ -1621,13 +1621,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1621
1621
|
lastUserPromptIndex?: number | undefined;
|
|
1622
1622
|
};
|
|
1623
1623
|
toolResults: {
|
|
1624
|
-
id: string;
|
|
1625
1624
|
name: string;
|
|
1625
|
+
id: string;
|
|
1626
1626
|
result: string;
|
|
1627
1627
|
}[];
|
|
1628
1628
|
toolCalls: {
|
|
1629
|
-
id: string;
|
|
1630
1629
|
name: string;
|
|
1630
|
+
id: string;
|
|
1631
1631
|
parameters: Record<string, string>;
|
|
1632
1632
|
}[];
|
|
1633
1633
|
}>;
|
|
@@ -1653,26 +1653,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1653
1653
|
path: z.ZodString;
|
|
1654
1654
|
content: z.ZodString;
|
|
1655
1655
|
}, "strip", z.ZodTypeAny, {
|
|
1656
|
+
type: "patch" | "file";
|
|
1656
1657
|
path: string;
|
|
1657
1658
|
content: string;
|
|
1658
|
-
type: "patch" | "file";
|
|
1659
1659
|
}, {
|
|
1660
|
+
type: "patch" | "file";
|
|
1660
1661
|
path: string;
|
|
1661
1662
|
content: string;
|
|
1662
|
-
type: "patch" | "file";
|
|
1663
1663
|
}>, "many">;
|
|
1664
1664
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1665
1665
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1666
1666
|
path: z.ZodString;
|
|
1667
1667
|
content: z.ZodString;
|
|
1668
1668
|
}, "strip", z.ZodTypeAny, {
|
|
1669
|
+
type: "patch" | "file";
|
|
1669
1670
|
path: string;
|
|
1670
1671
|
content: string;
|
|
1671
|
-
type: "patch" | "file";
|
|
1672
1672
|
}, {
|
|
1673
|
+
type: "patch" | "file";
|
|
1673
1674
|
path: string;
|
|
1674
1675
|
content: string;
|
|
1675
|
-
type: "patch" | "file";
|
|
1676
1676
|
}>, "many">;
|
|
1677
1677
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1678
1678
|
path: z.ZodString;
|
|
@@ -1696,14 +1696,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1696
1696
|
userInputId: string;
|
|
1697
1697
|
response: string;
|
|
1698
1698
|
changes: {
|
|
1699
|
+
type: "patch" | "file";
|
|
1699
1700
|
path: string;
|
|
1700
1701
|
content: string;
|
|
1701
|
-
type: "patch" | "file";
|
|
1702
1702
|
}[];
|
|
1703
1703
|
changesAlreadyApplied: {
|
|
1704
|
+
type: "patch" | "file";
|
|
1704
1705
|
path: string;
|
|
1705
1706
|
content: string;
|
|
1706
|
-
type: "patch" | "file";
|
|
1707
1707
|
}[];
|
|
1708
1708
|
addedFileVersions: {
|
|
1709
1709
|
path: string;
|
|
@@ -1720,14 +1720,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1720
1720
|
userInputId: string;
|
|
1721
1721
|
response: string;
|
|
1722
1722
|
changes: {
|
|
1723
|
+
type: "patch" | "file";
|
|
1723
1724
|
path: string;
|
|
1724
1725
|
content: string;
|
|
1725
|
-
type: "patch" | "file";
|
|
1726
1726
|
}[];
|
|
1727
1727
|
changesAlreadyApplied: {
|
|
1728
|
+
type: "patch" | "file";
|
|
1728
1729
|
path: string;
|
|
1729
1730
|
content: string;
|
|
1730
|
-
type: "patch" | "file";
|
|
1731
1731
|
}[];
|
|
1732
1732
|
addedFileVersions: {
|
|
1733
1733
|
path: string;
|
|
@@ -1890,17 +1890,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1890
1890
|
type: "ephemeral";
|
|
1891
1891
|
}>>;
|
|
1892
1892
|
}, "strip", z.ZodTypeAny, {
|
|
1893
|
-
id: string;
|
|
1894
1893
|
type: "tool_use";
|
|
1895
1894
|
name: string;
|
|
1895
|
+
id: string;
|
|
1896
1896
|
input: Record<string, any>;
|
|
1897
1897
|
cache_control?: {
|
|
1898
1898
|
type: "ephemeral";
|
|
1899
1899
|
} | undefined;
|
|
1900
1900
|
}, {
|
|
1901
|
-
id: string;
|
|
1902
1901
|
type: "tool_use";
|
|
1903
1902
|
name: string;
|
|
1903
|
+
id: string;
|
|
1904
1904
|
input: Record<string, any>;
|
|
1905
1905
|
cache_control?: {
|
|
1906
1906
|
type: "ephemeral";
|
|
@@ -1917,15 +1917,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1917
1917
|
type: "ephemeral";
|
|
1918
1918
|
}>>;
|
|
1919
1919
|
}, "strip", z.ZodTypeAny, {
|
|
1920
|
-
content: string;
|
|
1921
1920
|
type: "tool_result";
|
|
1921
|
+
content: string;
|
|
1922
1922
|
tool_use_id: string;
|
|
1923
1923
|
cache_control?: {
|
|
1924
1924
|
type: "ephemeral";
|
|
1925
1925
|
} | undefined;
|
|
1926
1926
|
}, {
|
|
1927
|
-
content: string;
|
|
1928
1927
|
type: "tool_result";
|
|
1928
|
+
content: string;
|
|
1929
1929
|
tool_use_id: string;
|
|
1930
1930
|
cache_control?: {
|
|
1931
1931
|
type: "ephemeral";
|
|
@@ -1981,16 +1981,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1981
1981
|
type: "ephemeral";
|
|
1982
1982
|
} | undefined;
|
|
1983
1983
|
} | {
|
|
1984
|
-
id: string;
|
|
1985
1984
|
type: "tool_use";
|
|
1986
1985
|
name: string;
|
|
1986
|
+
id: string;
|
|
1987
1987
|
input: Record<string, any>;
|
|
1988
1988
|
cache_control?: {
|
|
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";
|
|
@@ -2015,16 +2015,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2015
2015
|
type: "ephemeral";
|
|
2016
2016
|
} | undefined;
|
|
2017
2017
|
} | {
|
|
2018
|
-
id: string;
|
|
2019
2018
|
type: "tool_use";
|
|
2020
2019
|
name: string;
|
|
2020
|
+
id: string;
|
|
2021
2021
|
input: Record<string, any>;
|
|
2022
2022
|
cache_control?: {
|
|
2023
2023
|
type: "ephemeral";
|
|
2024
2024
|
} | undefined;
|
|
2025
2025
|
} | {
|
|
2026
|
-
content: string;
|
|
2027
2026
|
type: "tool_result";
|
|
2027
|
+
content: string;
|
|
2028
2028
|
tool_use_id: string;
|
|
2029
2029
|
cache_control?: {
|
|
2030
2030
|
type: "ephemeral";
|
|
@@ -2080,16 +2080,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2080
2080
|
type: "ephemeral";
|
|
2081
2081
|
} | undefined;
|
|
2082
2082
|
} | {
|
|
2083
|
-
id: string;
|
|
2084
2083
|
type: "tool_use";
|
|
2085
2084
|
name: string;
|
|
2085
|
+
id: string;
|
|
2086
2086
|
input: Record<string, any>;
|
|
2087
2087
|
cache_control?: {
|
|
2088
2088
|
type: "ephemeral";
|
|
2089
2089
|
} | undefined;
|
|
2090
2090
|
} | {
|
|
2091
|
-
content: string;
|
|
2092
2091
|
type: "tool_result";
|
|
2092
|
+
content: string;
|
|
2093
2093
|
tool_use_id: string;
|
|
2094
2094
|
cache_control?: {
|
|
2095
2095
|
type: "ephemeral";
|
|
@@ -2145,16 +2145,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2145
2145
|
type: "ephemeral";
|
|
2146
2146
|
} | undefined;
|
|
2147
2147
|
} | {
|
|
2148
|
-
id: string;
|
|
2149
2148
|
type: "tool_use";
|
|
2150
2149
|
name: string;
|
|
2150
|
+
id: string;
|
|
2151
2151
|
input: Record<string, any>;
|
|
2152
2152
|
cache_control?: {
|
|
2153
2153
|
type: "ephemeral";
|
|
2154
2154
|
} | undefined;
|
|
2155
2155
|
} | {
|
|
2156
|
-
content: string;
|
|
2157
2156
|
type: "tool_result";
|
|
2157
|
+
content: string;
|
|
2158
2158
|
tool_use_id: string;
|
|
2159
2159
|
cache_control?: {
|
|
2160
2160
|
type: "ephemeral";
|
|
@@ -2179,12 +2179,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2179
2179
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2180
2180
|
id: z.ZodString;
|
|
2181
2181
|
}, "strip", z.ZodTypeAny, {
|
|
2182
|
-
id: string;
|
|
2183
2182
|
name: string;
|
|
2183
|
+
id: string;
|
|
2184
2184
|
parameters: Record<string, string>;
|
|
2185
2185
|
}, {
|
|
2186
|
-
id: string;
|
|
2187
2186
|
name: string;
|
|
2187
|
+
id: string;
|
|
2188
2188
|
parameters: Record<string, string>;
|
|
2189
2189
|
}>, "many">;
|
|
2190
2190
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2192,12 +2192,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2192
2192
|
result: z.ZodString;
|
|
2193
2193
|
id: z.ZodString;
|
|
2194
2194
|
}, "strip", z.ZodTypeAny, {
|
|
2195
|
-
id: string;
|
|
2196
2195
|
name: string;
|
|
2196
|
+
id: string;
|
|
2197
2197
|
result: string;
|
|
2198
2198
|
}, {
|
|
2199
|
-
id: string;
|
|
2200
2199
|
name: string;
|
|
2200
|
+
id: string;
|
|
2201
2201
|
result: string;
|
|
2202
2202
|
}>, "many">;
|
|
2203
2203
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2240,16 +2240,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2240
2240
|
type: "ephemeral";
|
|
2241
2241
|
} | undefined;
|
|
2242
2242
|
} | {
|
|
2243
|
-
id: string;
|
|
2244
2243
|
type: "tool_use";
|
|
2245
2244
|
name: string;
|
|
2245
|
+
id: string;
|
|
2246
2246
|
input: Record<string, any>;
|
|
2247
2247
|
cache_control?: {
|
|
2248
2248
|
type: "ephemeral";
|
|
2249
2249
|
} | undefined;
|
|
2250
2250
|
} | {
|
|
2251
|
-
content: string;
|
|
2252
2251
|
type: "tool_result";
|
|
2252
|
+
content: string;
|
|
2253
2253
|
tool_use_id: string;
|
|
2254
2254
|
cache_control?: {
|
|
2255
2255
|
type: "ephemeral";
|
|
@@ -2270,13 +2270,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2270
2270
|
lastUserPromptIndex?: number | undefined;
|
|
2271
2271
|
};
|
|
2272
2272
|
toolResults: {
|
|
2273
|
-
id: string;
|
|
2274
2273
|
name: string;
|
|
2274
|
+
id: string;
|
|
2275
2275
|
result: string;
|
|
2276
2276
|
}[];
|
|
2277
2277
|
toolCalls: {
|
|
2278
|
-
id: string;
|
|
2279
2278
|
name: string;
|
|
2279
|
+
id: string;
|
|
2280
2280
|
parameters: Record<string, string>;
|
|
2281
2281
|
}[];
|
|
2282
2282
|
}, {
|
|
@@ -2319,16 +2319,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2319
2319
|
type: "ephemeral";
|
|
2320
2320
|
} | undefined;
|
|
2321
2321
|
} | {
|
|
2322
|
-
id: string;
|
|
2323
2322
|
type: "tool_use";
|
|
2324
2323
|
name: string;
|
|
2324
|
+
id: string;
|
|
2325
2325
|
input: Record<string, any>;
|
|
2326
2326
|
cache_control?: {
|
|
2327
2327
|
type: "ephemeral";
|
|
2328
2328
|
} | undefined;
|
|
2329
2329
|
} | {
|
|
2330
|
-
content: string;
|
|
2331
2330
|
type: "tool_result";
|
|
2331
|
+
content: string;
|
|
2332
2332
|
tool_use_id: string;
|
|
2333
2333
|
cache_control?: {
|
|
2334
2334
|
type: "ephemeral";
|
|
@@ -2349,13 +2349,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2349
2349
|
lastUserPromptIndex?: number | undefined;
|
|
2350
2350
|
};
|
|
2351
2351
|
toolResults: {
|
|
2352
|
-
id: string;
|
|
2353
2352
|
name: string;
|
|
2353
|
+
id: string;
|
|
2354
2354
|
result: string;
|
|
2355
2355
|
}[];
|
|
2356
2356
|
toolCalls: {
|
|
2357
|
-
id: string;
|
|
2358
2357
|
name: string;
|
|
2358
|
+
id: string;
|
|
2359
2359
|
parameters: Record<string, string>;
|
|
2360
2360
|
}[];
|
|
2361
2361
|
}>, z.ZodObject<{
|
|
@@ -2379,12 +2379,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2379
2379
|
id: z.ZodString;
|
|
2380
2380
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2381
2381
|
}, "strip", z.ZodTypeAny, {
|
|
2382
|
-
id: string;
|
|
2383
2382
|
name: string;
|
|
2383
|
+
id: string;
|
|
2384
2384
|
input: Record<string, any>;
|
|
2385
2385
|
}, {
|
|
2386
|
-
id: string;
|
|
2387
2386
|
name: string;
|
|
2387
|
+
id: string;
|
|
2388
2388
|
input: Record<string, any>;
|
|
2389
2389
|
}>;
|
|
2390
2390
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2392,26 +2392,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2392
2392
|
path: z.ZodString;
|
|
2393
2393
|
content: z.ZodString;
|
|
2394
2394
|
}, "strip", z.ZodTypeAny, {
|
|
2395
|
+
type: "patch" | "file";
|
|
2395
2396
|
path: string;
|
|
2396
2397
|
content: string;
|
|
2397
|
-
type: "patch" | "file";
|
|
2398
2398
|
}, {
|
|
2399
|
+
type: "patch" | "file";
|
|
2399
2400
|
path: string;
|
|
2400
2401
|
content: string;
|
|
2401
|
-
type: "patch" | "file";
|
|
2402
2402
|
}>, "many">;
|
|
2403
2403
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2404
2404
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2405
2405
|
path: z.ZodString;
|
|
2406
2406
|
content: z.ZodString;
|
|
2407
2407
|
}, "strip", z.ZodTypeAny, {
|
|
2408
|
+
type: "patch" | "file";
|
|
2408
2409
|
path: string;
|
|
2409
2410
|
content: string;
|
|
2410
|
-
type: "patch" | "file";
|
|
2411
2411
|
}, {
|
|
2412
|
+
type: "patch" | "file";
|
|
2412
2413
|
path: string;
|
|
2413
2414
|
content: string;
|
|
2414
|
-
type: "patch" | "file";
|
|
2415
2415
|
}>, "many">;
|
|
2416
2416
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2417
2417
|
path: z.ZodString;
|
|
@@ -2427,21 +2427,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2427
2427
|
}, "strip", z.ZodTypeAny, {
|
|
2428
2428
|
type: "tool-call";
|
|
2429
2429
|
data: {
|
|
2430
|
-
id: string;
|
|
2431
2430
|
name: string;
|
|
2431
|
+
id: string;
|
|
2432
2432
|
input: Record<string, any>;
|
|
2433
2433
|
};
|
|
2434
2434
|
userInputId: string;
|
|
2435
2435
|
response: string;
|
|
2436
2436
|
changes: {
|
|
2437
|
+
type: "patch" | "file";
|
|
2437
2438
|
path: string;
|
|
2438
2439
|
content: string;
|
|
2439
|
-
type: "patch" | "file";
|
|
2440
2440
|
}[];
|
|
2441
2441
|
changesAlreadyApplied: {
|
|
2442
|
+
type: "patch" | "file";
|
|
2442
2443
|
path: string;
|
|
2443
2444
|
content: string;
|
|
2444
|
-
type: "patch" | "file";
|
|
2445
2445
|
}[];
|
|
2446
2446
|
addedFileVersions: {
|
|
2447
2447
|
path: string;
|
|
@@ -2451,21 +2451,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2451
2451
|
}, {
|
|
2452
2452
|
type: "tool-call";
|
|
2453
2453
|
data: {
|
|
2454
|
-
id: string;
|
|
2455
2454
|
name: string;
|
|
2455
|
+
id: string;
|
|
2456
2456
|
input: Record<string, any>;
|
|
2457
2457
|
};
|
|
2458
2458
|
userInputId: string;
|
|
2459
2459
|
response: string;
|
|
2460
2460
|
changes: {
|
|
2461
|
+
type: "patch" | "file";
|
|
2461
2462
|
path: string;
|
|
2462
2463
|
content: string;
|
|
2463
|
-
type: "patch" | "file";
|
|
2464
2464
|
}[];
|
|
2465
2465
|
changesAlreadyApplied: {
|
|
2466
|
+
type: "patch" | "file";
|
|
2466
2467
|
path: string;
|
|
2467
2468
|
content: string;
|
|
2468
|
-
type: "patch" | "file";
|
|
2469
2469
|
}[];
|
|
2470
2470
|
addedFileVersions: {
|
|
2471
2471
|
path: string;
|