codebuff 1.0.223 → 1.0.225
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/client.d.ts +5 -5
- package/dist/client.js +5 -0
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +134 -134
- 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/billing/balance-calculator.d.ts +1 -1
- package/dist/common/billing/check-auto-topup.d.ts +12 -0
- package/dist/common/billing/check-auto-topup.js +50 -0
- package/dist/common/billing/check-auto-topup.js.map +1 -0
- package/dist/common/billing/credit-check.d.ts +8 -0
- package/dist/common/billing/credit-check.js +45 -0
- package/dist/common/billing/credit-check.js.map +1 -0
- package/dist/common/billing/rollover-logic.d.ts +13 -0
- package/dist/common/billing/rollover-logic.js +174 -0
- package/dist/common/billing/rollover-logic.js.map +1 -0
- package/dist/common/billing/stripe-api.d.ts +31 -0
- package/dist/common/billing/stripe-api.js +104 -0
- package/dist/common/billing/stripe-api.js.map +1 -0
- 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/billing.d.ts +16 -0
- package/dist/common/types/billing.js +3 -0
- package/dist/common/types/billing.js.map +1 -0
- package/dist/common/types/usage.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/util/referral-credits.d.ts +1 -0
- package/dist/common/util/referral-credits.js +48 -0
- package/dist/common/util/referral-credits.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +258 -258
- package/dist/index.js +1 -1
- package/dist/json-config/dev-process-manager.js +1 -1
- package/dist/json-config/dev-process-manager.js.map +1 -1
- package/package.json +1 -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/common/actions.d.ts
CHANGED
|
@@ -32,12 +32,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
32
32
|
id: z.ZodString;
|
|
33
33
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
name: string;
|
|
36
35
|
id: string;
|
|
36
|
+
name: string;
|
|
37
37
|
input: Record<string, any>;
|
|
38
38
|
}, {
|
|
39
|
-
name: string;
|
|
40
39
|
id: string;
|
|
40
|
+
name: string;
|
|
41
41
|
input: Record<string, any>;
|
|
42
42
|
}>;
|
|
43
43
|
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
@@ -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
|
-
type: "tool_use";
|
|
200
|
-
name: string;
|
|
201
199
|
id: string;
|
|
200
|
+
name: string;
|
|
201
|
+
type: "tool_use";
|
|
202
202
|
input: Record<string, any>;
|
|
203
203
|
cache_control?: {
|
|
204
204
|
type: "ephemeral";
|
|
205
205
|
} | undefined;
|
|
206
206
|
}, {
|
|
207
|
-
type: "tool_use";
|
|
208
|
-
name: string;
|
|
209
207
|
id: string;
|
|
208
|
+
name: string;
|
|
209
|
+
type: "tool_use";
|
|
210
210
|
input: Record<string, any>;
|
|
211
211
|
cache_control?: {
|
|
212
212
|
type: "ephemeral";
|
|
@@ -243,13 +243,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
243
243
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
244
244
|
data: z.ZodString;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
data: string;
|
|
246
247
|
type: "base64";
|
|
247
248
|
media_type: "image/jpeg";
|
|
248
|
-
data: string;
|
|
249
249
|
}, {
|
|
250
|
+
data: string;
|
|
250
251
|
type: "base64";
|
|
251
252
|
media_type: "image/jpeg";
|
|
252
|
-
data: string;
|
|
253
253
|
}>;
|
|
254
254
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
255
255
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -261,9 +261,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
type: "image";
|
|
263
263
|
source: {
|
|
264
|
+
data: string;
|
|
264
265
|
type: "base64";
|
|
265
266
|
media_type: "image/jpeg";
|
|
266
|
-
data: string;
|
|
267
267
|
};
|
|
268
268
|
cache_control?: {
|
|
269
269
|
type: "ephemeral";
|
|
@@ -271,9 +271,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
271
271
|
}, {
|
|
272
272
|
type: "image";
|
|
273
273
|
source: {
|
|
274
|
+
data: string;
|
|
274
275
|
type: "base64";
|
|
275
276
|
media_type: "image/jpeg";
|
|
276
|
-
data: string;
|
|
277
277
|
};
|
|
278
278
|
cache_control?: {
|
|
279
279
|
type: "ephemeral";
|
|
@@ -287,9 +287,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
287
287
|
type: "ephemeral";
|
|
288
288
|
} | undefined;
|
|
289
289
|
} | {
|
|
290
|
-
type: "tool_use";
|
|
291
|
-
name: string;
|
|
292
290
|
id: string;
|
|
291
|
+
name: string;
|
|
292
|
+
type: "tool_use";
|
|
293
293
|
input: Record<string, any>;
|
|
294
294
|
cache_control?: {
|
|
295
295
|
type: "ephemeral";
|
|
@@ -304,9 +304,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
304
304
|
} | {
|
|
305
305
|
type: "image";
|
|
306
306
|
source: {
|
|
307
|
+
data: string;
|
|
307
308
|
type: "base64";
|
|
308
309
|
media_type: "image/jpeg";
|
|
309
|
-
data: string;
|
|
310
310
|
};
|
|
311
311
|
cache_control?: {
|
|
312
312
|
type: "ephemeral";
|
|
@@ -321,9 +321,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
321
321
|
type: "ephemeral";
|
|
322
322
|
} | undefined;
|
|
323
323
|
} | {
|
|
324
|
-
type: "tool_use";
|
|
325
|
-
name: string;
|
|
326
324
|
id: string;
|
|
325
|
+
name: string;
|
|
326
|
+
type: "tool_use";
|
|
327
327
|
input: Record<string, any>;
|
|
328
328
|
cache_control?: {
|
|
329
329
|
type: "ephemeral";
|
|
@@ -338,9 +338,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
338
338
|
} | {
|
|
339
339
|
type: "image";
|
|
340
340
|
source: {
|
|
341
|
+
data: string;
|
|
341
342
|
type: "base64";
|
|
342
343
|
media_type: "image/jpeg";
|
|
343
|
-
data: string;
|
|
344
344
|
};
|
|
345
345
|
cache_control?: {
|
|
346
346
|
type: "ephemeral";
|
|
@@ -386,9 +386,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
386
386
|
type: "ephemeral";
|
|
387
387
|
} | undefined;
|
|
388
388
|
} | {
|
|
389
|
-
type: "tool_use";
|
|
390
|
-
name: string;
|
|
391
389
|
id: string;
|
|
390
|
+
name: string;
|
|
391
|
+
type: "tool_use";
|
|
392
392
|
input: Record<string, any>;
|
|
393
393
|
cache_control?: {
|
|
394
394
|
type: "ephemeral";
|
|
@@ -403,9 +403,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
403
403
|
} | {
|
|
404
404
|
type: "image";
|
|
405
405
|
source: {
|
|
406
|
+
data: string;
|
|
406
407
|
type: "base64";
|
|
407
408
|
media_type: "image/jpeg";
|
|
408
|
-
data: string;
|
|
409
409
|
};
|
|
410
410
|
cache_control?: {
|
|
411
411
|
type: "ephemeral";
|
|
@@ -451,9 +451,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
451
451
|
type: "ephemeral";
|
|
452
452
|
} | undefined;
|
|
453
453
|
} | {
|
|
454
|
-
type: "tool_use";
|
|
455
|
-
name: string;
|
|
456
454
|
id: string;
|
|
455
|
+
name: string;
|
|
456
|
+
type: "tool_use";
|
|
457
457
|
input: Record<string, any>;
|
|
458
458
|
cache_control?: {
|
|
459
459
|
type: "ephemeral";
|
|
@@ -468,9 +468,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
468
468
|
} | {
|
|
469
469
|
type: "image";
|
|
470
470
|
source: {
|
|
471
|
+
data: string;
|
|
471
472
|
type: "base64";
|
|
472
473
|
media_type: "image/jpeg";
|
|
473
|
-
data: string;
|
|
474
474
|
};
|
|
475
475
|
cache_control?: {
|
|
476
476
|
type: "ephemeral";
|
|
@@ -485,12 +485,12 @@ 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
|
-
name: string;
|
|
489
488
|
id: string;
|
|
489
|
+
name: string;
|
|
490
490
|
result: string;
|
|
491
491
|
}, {
|
|
492
|
-
name: string;
|
|
493
492
|
id: string;
|
|
493
|
+
name: string;
|
|
494
494
|
result: string;
|
|
495
495
|
}>, "many">;
|
|
496
496
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -536,9 +536,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
536
536
|
type: "ephemeral";
|
|
537
537
|
} | undefined;
|
|
538
538
|
} | {
|
|
539
|
-
type: "tool_use";
|
|
540
|
-
name: string;
|
|
541
539
|
id: string;
|
|
540
|
+
name: string;
|
|
541
|
+
type: "tool_use";
|
|
542
542
|
input: Record<string, any>;
|
|
543
543
|
cache_control?: {
|
|
544
544
|
type: "ephemeral";
|
|
@@ -553,9 +553,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
553
553
|
} | {
|
|
554
554
|
type: "image";
|
|
555
555
|
source: {
|
|
556
|
+
data: string;
|
|
556
557
|
type: "base64";
|
|
557
558
|
media_type: "image/jpeg";
|
|
558
|
-
data: string;
|
|
559
559
|
};
|
|
560
560
|
cache_control?: {
|
|
561
561
|
type: "ephemeral";
|
|
@@ -566,13 +566,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
566
566
|
consecutiveAssistantMessages?: number | undefined;
|
|
567
567
|
};
|
|
568
568
|
toolResults: {
|
|
569
|
-
name: string;
|
|
570
569
|
id: string;
|
|
570
|
+
name: string;
|
|
571
571
|
result: string;
|
|
572
572
|
}[];
|
|
573
|
+
model?: string | undefined;
|
|
573
574
|
prompt?: string | undefined;
|
|
574
575
|
authToken?: string | undefined;
|
|
575
|
-
model?: string | undefined;
|
|
576
576
|
}, {
|
|
577
577
|
type: "prompt";
|
|
578
578
|
promptId: string;
|
|
@@ -614,9 +614,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
614
614
|
type: "ephemeral";
|
|
615
615
|
} | undefined;
|
|
616
616
|
} | {
|
|
617
|
-
type: "tool_use";
|
|
618
|
-
name: string;
|
|
619
617
|
id: string;
|
|
618
|
+
name: string;
|
|
619
|
+
type: "tool_use";
|
|
620
620
|
input: Record<string, any>;
|
|
621
621
|
cache_control?: {
|
|
622
622
|
type: "ephemeral";
|
|
@@ -631,9 +631,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
631
631
|
} | {
|
|
632
632
|
type: "image";
|
|
633
633
|
source: {
|
|
634
|
+
data: string;
|
|
634
635
|
type: "base64";
|
|
635
636
|
media_type: "image/jpeg";
|
|
636
|
-
data: string;
|
|
637
637
|
};
|
|
638
638
|
cache_control?: {
|
|
639
639
|
type: "ephemeral";
|
|
@@ -644,14 +644,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
644
644
|
consecutiveAssistantMessages?: number | undefined;
|
|
645
645
|
};
|
|
646
646
|
toolResults: {
|
|
647
|
-
name: string;
|
|
648
647
|
id: string;
|
|
648
|
+
name: string;
|
|
649
649
|
result: string;
|
|
650
650
|
}[];
|
|
651
|
+
model?: string | undefined;
|
|
651
652
|
prompt?: string | undefined;
|
|
652
653
|
authToken?: string | undefined;
|
|
653
654
|
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
654
|
-
model?: string | undefined;
|
|
655
655
|
}>, z.ZodObject<{
|
|
656
656
|
type: z.ZodLiteral<"read-files-response">;
|
|
657
657
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -865,18 +865,18 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
865
865
|
nextMonthlyGrant: z.ZodNumber;
|
|
866
866
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
867
867
|
}, "strip", z.ZodTypeAny, {
|
|
868
|
+
next_quota_reset: Date | null;
|
|
868
869
|
type: "usage-response";
|
|
869
870
|
usage: number;
|
|
870
871
|
remainingBalance: number;
|
|
871
|
-
next_quota_reset: Date | null;
|
|
872
872
|
nextMonthlyGrant: number;
|
|
873
873
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
874
874
|
autoTopupAdded?: number | undefined;
|
|
875
875
|
}, {
|
|
876
|
+
next_quota_reset: Date | null;
|
|
876
877
|
type: "usage-response";
|
|
877
878
|
usage: number;
|
|
878
879
|
remainingBalance: number;
|
|
879
|
-
next_quota_reset: Date | null;
|
|
880
880
|
nextMonthlyGrant: number;
|
|
881
881
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
882
882
|
autoTopupAdded?: number | undefined;
|
|
@@ -893,18 +893,18 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
893
893
|
nextMonthlyGrant: z.ZodNumber;
|
|
894
894
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
895
895
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
896
|
+
next_quota_reset: Date | null;
|
|
896
897
|
type: "init-response";
|
|
897
898
|
usage: number;
|
|
898
899
|
remainingBalance: number;
|
|
899
|
-
next_quota_reset: Date | null;
|
|
900
900
|
nextMonthlyGrant: number;
|
|
901
901
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
902
902
|
autoTopupAdded?: number | undefined;
|
|
903
903
|
}, {
|
|
904
|
+
next_quota_reset: Date | null;
|
|
904
905
|
type: "init-response";
|
|
905
906
|
usage: number;
|
|
906
907
|
remainingBalance: number;
|
|
907
|
-
next_quota_reset: Date | null;
|
|
908
908
|
nextMonthlyGrant: number;
|
|
909
909
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
910
910
|
autoTopupAdded?: number | undefined;
|
|
@@ -952,16 +952,16 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
952
952
|
}>, "many">;
|
|
953
953
|
resetFileVersions: z.ZodBoolean;
|
|
954
954
|
}, {
|
|
955
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
955
956
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
956
957
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
957
958
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>>;
|
|
958
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
959
959
|
nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
|
|
960
960
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
961
961
|
}>, "strip", z.ZodTypeAny, {
|
|
962
962
|
type: "response-complete";
|
|
963
|
-
userInputId: string;
|
|
964
963
|
response: string;
|
|
964
|
+
userInputId: string;
|
|
965
965
|
changes: {
|
|
966
966
|
type: "patch" | "file";
|
|
967
967
|
path: string;
|
|
@@ -977,16 +977,16 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
977
977
|
content: string;
|
|
978
978
|
}[];
|
|
979
979
|
resetFileVersions: boolean;
|
|
980
|
+
next_quota_reset?: Date | null | undefined;
|
|
980
981
|
usage?: number | undefined;
|
|
981
982
|
remainingBalance?: number | undefined;
|
|
982
983
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
983
|
-
next_quota_reset?: Date | null | undefined;
|
|
984
984
|
nextMonthlyGrant?: number | undefined;
|
|
985
985
|
autoTopupAdded?: number | undefined;
|
|
986
986
|
}, {
|
|
987
987
|
type: "response-complete";
|
|
988
|
-
userInputId: string;
|
|
989
988
|
response: string;
|
|
989
|
+
userInputId: string;
|
|
990
990
|
changes: {
|
|
991
991
|
type: "patch" | "file";
|
|
992
992
|
path: string;
|
|
@@ -1002,10 +1002,10 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1002
1002
|
content: string;
|
|
1003
1003
|
}[];
|
|
1004
1004
|
resetFileVersions: boolean;
|
|
1005
|
+
next_quota_reset?: Date | null | undefined;
|
|
1005
1006
|
usage?: number | undefined;
|
|
1006
1007
|
remainingBalance?: number | undefined;
|
|
1007
1008
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
1008
|
-
next_quota_reset?: Date | null | undefined;
|
|
1009
1009
|
nextMonthlyGrant?: number | undefined;
|
|
1010
1010
|
autoTopupAdded?: number | undefined;
|
|
1011
1011
|
}>;
|
|
@@ -1015,12 +1015,12 @@ export declare const MessageCostResponseSchema: z.ZodObject<{
|
|
|
1015
1015
|
credits: z.ZodNumber;
|
|
1016
1016
|
}, "strip", z.ZodTypeAny, {
|
|
1017
1017
|
type: "message-cost-response";
|
|
1018
|
-
promptId: string;
|
|
1019
1018
|
credits: number;
|
|
1019
|
+
promptId: string;
|
|
1020
1020
|
}, {
|
|
1021
1021
|
type: "message-cost-response";
|
|
1022
|
-
promptId: string;
|
|
1023
1022
|
credits: number;
|
|
1023
|
+
promptId: string;
|
|
1024
1024
|
}>;
|
|
1025
1025
|
export type MessageCostResponse = z.infer<typeof MessageCostResponseSchema>;
|
|
1026
1026
|
export declare const PromptResponseSchema: z.ZodObject<{
|
|
@@ -1174,17 +1174,17 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1174
1174
|
type: "ephemeral";
|
|
1175
1175
|
}>>;
|
|
1176
1176
|
}, "strip", z.ZodTypeAny, {
|
|
1177
|
-
type: "tool_use";
|
|
1178
|
-
name: string;
|
|
1179
1177
|
id: string;
|
|
1178
|
+
name: string;
|
|
1179
|
+
type: "tool_use";
|
|
1180
1180
|
input: Record<string, any>;
|
|
1181
1181
|
cache_control?: {
|
|
1182
1182
|
type: "ephemeral";
|
|
1183
1183
|
} | undefined;
|
|
1184
1184
|
}, {
|
|
1185
|
-
type: "tool_use";
|
|
1186
|
-
name: string;
|
|
1187
1185
|
id: string;
|
|
1186
|
+
name: string;
|
|
1187
|
+
type: "tool_use";
|
|
1188
1188
|
input: Record<string, any>;
|
|
1189
1189
|
cache_control?: {
|
|
1190
1190
|
type: "ephemeral";
|
|
@@ -1221,13 +1221,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1221
1221
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1222
1222
|
data: z.ZodString;
|
|
1223
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1224
|
+
data: string;
|
|
1224
1225
|
type: "base64";
|
|
1225
1226
|
media_type: "image/jpeg";
|
|
1226
|
-
data: string;
|
|
1227
1227
|
}, {
|
|
1228
|
+
data: string;
|
|
1228
1229
|
type: "base64";
|
|
1229
1230
|
media_type: "image/jpeg";
|
|
1230
|
-
data: string;
|
|
1231
1231
|
}>;
|
|
1232
1232
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1233
1233
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1239,9 +1239,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1239
1239
|
}, "strip", z.ZodTypeAny, {
|
|
1240
1240
|
type: "image";
|
|
1241
1241
|
source: {
|
|
1242
|
+
data: string;
|
|
1242
1243
|
type: "base64";
|
|
1243
1244
|
media_type: "image/jpeg";
|
|
1244
|
-
data: string;
|
|
1245
1245
|
};
|
|
1246
1246
|
cache_control?: {
|
|
1247
1247
|
type: "ephemeral";
|
|
@@ -1249,9 +1249,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1249
1249
|
}, {
|
|
1250
1250
|
type: "image";
|
|
1251
1251
|
source: {
|
|
1252
|
+
data: string;
|
|
1252
1253
|
type: "base64";
|
|
1253
1254
|
media_type: "image/jpeg";
|
|
1254
|
-
data: string;
|
|
1255
1255
|
};
|
|
1256
1256
|
cache_control?: {
|
|
1257
1257
|
type: "ephemeral";
|
|
@@ -1265,9 +1265,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1265
1265
|
type: "ephemeral";
|
|
1266
1266
|
} | undefined;
|
|
1267
1267
|
} | {
|
|
1268
|
-
type: "tool_use";
|
|
1269
|
-
name: string;
|
|
1270
1268
|
id: string;
|
|
1269
|
+
name: string;
|
|
1270
|
+
type: "tool_use";
|
|
1271
1271
|
input: Record<string, any>;
|
|
1272
1272
|
cache_control?: {
|
|
1273
1273
|
type: "ephemeral";
|
|
@@ -1282,9 +1282,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1282
1282
|
} | {
|
|
1283
1283
|
type: "image";
|
|
1284
1284
|
source: {
|
|
1285
|
+
data: string;
|
|
1285
1286
|
type: "base64";
|
|
1286
1287
|
media_type: "image/jpeg";
|
|
1287
|
-
data: string;
|
|
1288
1288
|
};
|
|
1289
1289
|
cache_control?: {
|
|
1290
1290
|
type: "ephemeral";
|
|
@@ -1299,9 +1299,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1299
1299
|
type: "ephemeral";
|
|
1300
1300
|
} | undefined;
|
|
1301
1301
|
} | {
|
|
1302
|
-
type: "tool_use";
|
|
1303
|
-
name: string;
|
|
1304
1302
|
id: string;
|
|
1303
|
+
name: string;
|
|
1304
|
+
type: "tool_use";
|
|
1305
1305
|
input: Record<string, any>;
|
|
1306
1306
|
cache_control?: {
|
|
1307
1307
|
type: "ephemeral";
|
|
@@ -1316,9 +1316,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1316
1316
|
} | {
|
|
1317
1317
|
type: "image";
|
|
1318
1318
|
source: {
|
|
1319
|
+
data: string;
|
|
1319
1320
|
type: "base64";
|
|
1320
1321
|
media_type: "image/jpeg";
|
|
1321
|
-
data: string;
|
|
1322
1322
|
};
|
|
1323
1323
|
cache_control?: {
|
|
1324
1324
|
type: "ephemeral";
|
|
@@ -1364,9 +1364,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1364
1364
|
type: "ephemeral";
|
|
1365
1365
|
} | undefined;
|
|
1366
1366
|
} | {
|
|
1367
|
-
type: "tool_use";
|
|
1368
|
-
name: string;
|
|
1369
1367
|
id: string;
|
|
1368
|
+
name: string;
|
|
1369
|
+
type: "tool_use";
|
|
1370
1370
|
input: Record<string, any>;
|
|
1371
1371
|
cache_control?: {
|
|
1372
1372
|
type: "ephemeral";
|
|
@@ -1381,9 +1381,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1381
1381
|
} | {
|
|
1382
1382
|
type: "image";
|
|
1383
1383
|
source: {
|
|
1384
|
+
data: string;
|
|
1384
1385
|
type: "base64";
|
|
1385
1386
|
media_type: "image/jpeg";
|
|
1386
|
-
data: string;
|
|
1387
1387
|
};
|
|
1388
1388
|
cache_control?: {
|
|
1389
1389
|
type: "ephemeral";
|
|
@@ -1429,9 +1429,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1429
1429
|
type: "ephemeral";
|
|
1430
1430
|
} | undefined;
|
|
1431
1431
|
} | {
|
|
1432
|
-
type: "tool_use";
|
|
1433
|
-
name: string;
|
|
1434
1432
|
id: string;
|
|
1433
|
+
name: string;
|
|
1434
|
+
type: "tool_use";
|
|
1435
1435
|
input: Record<string, any>;
|
|
1436
1436
|
cache_control?: {
|
|
1437
1437
|
type: "ephemeral";
|
|
@@ -1446,9 +1446,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1446
1446
|
} | {
|
|
1447
1447
|
type: "image";
|
|
1448
1448
|
source: {
|
|
1449
|
+
data: string;
|
|
1449
1450
|
type: "base64";
|
|
1450
1451
|
media_type: "image/jpeg";
|
|
1451
|
-
data: string;
|
|
1452
1452
|
};
|
|
1453
1453
|
cache_control?: {
|
|
1454
1454
|
type: "ephemeral";
|
|
@@ -1463,12 +1463,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1463
1463
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1464
1464
|
id: z.ZodString;
|
|
1465
1465
|
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
name: string;
|
|
1467
1466
|
id: string;
|
|
1467
|
+
name: string;
|
|
1468
1468
|
parameters: Record<string, string>;
|
|
1469
1469
|
}, {
|
|
1470
|
-
name: string;
|
|
1471
1470
|
id: string;
|
|
1471
|
+
name: string;
|
|
1472
1472
|
parameters: Record<string, string>;
|
|
1473
1473
|
}>, "many">;
|
|
1474
1474
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -1476,12 +1476,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1476
1476
|
result: z.ZodString;
|
|
1477
1477
|
id: z.ZodString;
|
|
1478
1478
|
}, "strip", z.ZodTypeAny, {
|
|
1479
|
-
name: string;
|
|
1480
1479
|
id: string;
|
|
1480
|
+
name: string;
|
|
1481
1481
|
result: string;
|
|
1482
1482
|
}, {
|
|
1483
|
-
name: string;
|
|
1484
1483
|
id: string;
|
|
1484
|
+
name: string;
|
|
1485
1485
|
result: string;
|
|
1486
1486
|
}>, "many">;
|
|
1487
1487
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1524,9 +1524,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1524
1524
|
type: "ephemeral";
|
|
1525
1525
|
} | undefined;
|
|
1526
1526
|
} | {
|
|
1527
|
-
type: "tool_use";
|
|
1528
|
-
name: string;
|
|
1529
1527
|
id: string;
|
|
1528
|
+
name: string;
|
|
1529
|
+
type: "tool_use";
|
|
1530
1530
|
input: Record<string, any>;
|
|
1531
1531
|
cache_control?: {
|
|
1532
1532
|
type: "ephemeral";
|
|
@@ -1541,9 +1541,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1541
1541
|
} | {
|
|
1542
1542
|
type: "image";
|
|
1543
1543
|
source: {
|
|
1544
|
+
data: string;
|
|
1544
1545
|
type: "base64";
|
|
1545
1546
|
media_type: "image/jpeg";
|
|
1546
|
-
data: string;
|
|
1547
1547
|
};
|
|
1548
1548
|
cache_control?: {
|
|
1549
1549
|
type: "ephemeral";
|
|
@@ -1554,13 +1554,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1554
1554
|
consecutiveAssistantMessages?: number | undefined;
|
|
1555
1555
|
};
|
|
1556
1556
|
toolResults: {
|
|
1557
|
-
name: string;
|
|
1558
1557
|
id: string;
|
|
1558
|
+
name: string;
|
|
1559
1559
|
result: string;
|
|
1560
1560
|
}[];
|
|
1561
1561
|
toolCalls: {
|
|
1562
|
-
name: string;
|
|
1563
1562
|
id: string;
|
|
1563
|
+
name: string;
|
|
1564
1564
|
parameters: Record<string, string>;
|
|
1565
1565
|
}[];
|
|
1566
1566
|
}, {
|
|
@@ -1603,9 +1603,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1603
1603
|
type: "ephemeral";
|
|
1604
1604
|
} | undefined;
|
|
1605
1605
|
} | {
|
|
1606
|
-
type: "tool_use";
|
|
1607
|
-
name: string;
|
|
1608
1606
|
id: string;
|
|
1607
|
+
name: string;
|
|
1608
|
+
type: "tool_use";
|
|
1609
1609
|
input: Record<string, any>;
|
|
1610
1610
|
cache_control?: {
|
|
1611
1611
|
type: "ephemeral";
|
|
@@ -1620,9 +1620,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1620
1620
|
} | {
|
|
1621
1621
|
type: "image";
|
|
1622
1622
|
source: {
|
|
1623
|
+
data: string;
|
|
1623
1624
|
type: "base64";
|
|
1624
1625
|
media_type: "image/jpeg";
|
|
1625
|
-
data: string;
|
|
1626
1626
|
};
|
|
1627
1627
|
cache_control?: {
|
|
1628
1628
|
type: "ephemeral";
|
|
@@ -1633,13 +1633,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1633
1633
|
consecutiveAssistantMessages?: number | undefined;
|
|
1634
1634
|
};
|
|
1635
1635
|
toolResults: {
|
|
1636
|
-
name: string;
|
|
1637
1636
|
id: string;
|
|
1637
|
+
name: string;
|
|
1638
1638
|
result: string;
|
|
1639
1639
|
}[];
|
|
1640
1640
|
toolCalls: {
|
|
1641
|
-
name: string;
|
|
1642
1641
|
id: string;
|
|
1642
|
+
name: string;
|
|
1643
1643
|
parameters: Record<string, string>;
|
|
1644
1644
|
}[];
|
|
1645
1645
|
}>;
|
|
@@ -1698,16 +1698,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1698
1698
|
}>, "many">;
|
|
1699
1699
|
resetFileVersions: z.ZodBoolean;
|
|
1700
1700
|
}, {
|
|
1701
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1701
1702
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
1702
1703
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
1703
1704
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("./types/grant").GrantType, ...import("./types/grant").GrantType[]]>, z.ZodNumber>>>;
|
|
1704
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1705
1705
|
nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
|
|
1706
1706
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1707
1707
|
}>, "strip", z.ZodTypeAny, {
|
|
1708
1708
|
type: "response-complete";
|
|
1709
|
-
userInputId: string;
|
|
1710
1709
|
response: string;
|
|
1710
|
+
userInputId: string;
|
|
1711
1711
|
changes: {
|
|
1712
1712
|
type: "patch" | "file";
|
|
1713
1713
|
path: string;
|
|
@@ -1723,16 +1723,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1723
1723
|
content: string;
|
|
1724
1724
|
}[];
|
|
1725
1725
|
resetFileVersions: boolean;
|
|
1726
|
+
next_quota_reset?: Date | null | undefined;
|
|
1726
1727
|
usage?: number | undefined;
|
|
1727
1728
|
remainingBalance?: number | undefined;
|
|
1728
1729
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
1729
|
-
next_quota_reset?: Date | null | undefined;
|
|
1730
1730
|
nextMonthlyGrant?: number | undefined;
|
|
1731
1731
|
autoTopupAdded?: number | undefined;
|
|
1732
1732
|
}, {
|
|
1733
1733
|
type: "response-complete";
|
|
1734
|
-
userInputId: string;
|
|
1735
1734
|
response: string;
|
|
1735
|
+
userInputId: string;
|
|
1736
1736
|
changes: {
|
|
1737
1737
|
type: "patch" | "file";
|
|
1738
1738
|
path: string;
|
|
@@ -1748,10 +1748,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1748
1748
|
content: string;
|
|
1749
1749
|
}[];
|
|
1750
1750
|
resetFileVersions: boolean;
|
|
1751
|
+
next_quota_reset?: Date | null | undefined;
|
|
1751
1752
|
usage?: number | undefined;
|
|
1752
1753
|
remainingBalance?: number | undefined;
|
|
1753
1754
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
1754
|
-
next_quota_reset?: Date | null | undefined;
|
|
1755
1755
|
nextMonthlyGrant?: number | undefined;
|
|
1756
1756
|
autoTopupAdded?: number | undefined;
|
|
1757
1757
|
}>, z.ZodObject<{
|
|
@@ -1905,17 +1905,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1905
1905
|
type: "ephemeral";
|
|
1906
1906
|
}>>;
|
|
1907
1907
|
}, "strip", z.ZodTypeAny, {
|
|
1908
|
-
type: "tool_use";
|
|
1909
|
-
name: string;
|
|
1910
1908
|
id: string;
|
|
1909
|
+
name: string;
|
|
1910
|
+
type: "tool_use";
|
|
1911
1911
|
input: Record<string, any>;
|
|
1912
1912
|
cache_control?: {
|
|
1913
1913
|
type: "ephemeral";
|
|
1914
1914
|
} | undefined;
|
|
1915
1915
|
}, {
|
|
1916
|
-
type: "tool_use";
|
|
1917
|
-
name: string;
|
|
1918
1916
|
id: string;
|
|
1917
|
+
name: string;
|
|
1918
|
+
type: "tool_use";
|
|
1919
1919
|
input: Record<string, any>;
|
|
1920
1920
|
cache_control?: {
|
|
1921
1921
|
type: "ephemeral";
|
|
@@ -1952,13 +1952,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1952
1952
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1953
1953
|
data: z.ZodString;
|
|
1954
1954
|
}, "strip", z.ZodTypeAny, {
|
|
1955
|
+
data: string;
|
|
1955
1956
|
type: "base64";
|
|
1956
1957
|
media_type: "image/jpeg";
|
|
1957
|
-
data: string;
|
|
1958
1958
|
}, {
|
|
1959
|
+
data: string;
|
|
1959
1960
|
type: "base64";
|
|
1960
1961
|
media_type: "image/jpeg";
|
|
1961
|
-
data: string;
|
|
1962
1962
|
}>;
|
|
1963
1963
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1964
1964
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1970,9 +1970,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1970
1970
|
}, "strip", z.ZodTypeAny, {
|
|
1971
1971
|
type: "image";
|
|
1972
1972
|
source: {
|
|
1973
|
+
data: string;
|
|
1973
1974
|
type: "base64";
|
|
1974
1975
|
media_type: "image/jpeg";
|
|
1975
|
-
data: string;
|
|
1976
1976
|
};
|
|
1977
1977
|
cache_control?: {
|
|
1978
1978
|
type: "ephemeral";
|
|
@@ -1980,9 +1980,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1980
1980
|
}, {
|
|
1981
1981
|
type: "image";
|
|
1982
1982
|
source: {
|
|
1983
|
+
data: string;
|
|
1983
1984
|
type: "base64";
|
|
1984
1985
|
media_type: "image/jpeg";
|
|
1985
|
-
data: string;
|
|
1986
1986
|
};
|
|
1987
1987
|
cache_control?: {
|
|
1988
1988
|
type: "ephemeral";
|
|
@@ -1996,9 +1996,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1996
1996
|
type: "ephemeral";
|
|
1997
1997
|
} | undefined;
|
|
1998
1998
|
} | {
|
|
1999
|
-
type: "tool_use";
|
|
2000
|
-
name: string;
|
|
2001
1999
|
id: string;
|
|
2000
|
+
name: string;
|
|
2001
|
+
type: "tool_use";
|
|
2002
2002
|
input: Record<string, any>;
|
|
2003
2003
|
cache_control?: {
|
|
2004
2004
|
type: "ephemeral";
|
|
@@ -2013,9 +2013,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2013
2013
|
} | {
|
|
2014
2014
|
type: "image";
|
|
2015
2015
|
source: {
|
|
2016
|
+
data: string;
|
|
2016
2017
|
type: "base64";
|
|
2017
2018
|
media_type: "image/jpeg";
|
|
2018
|
-
data: string;
|
|
2019
2019
|
};
|
|
2020
2020
|
cache_control?: {
|
|
2021
2021
|
type: "ephemeral";
|
|
@@ -2030,9 +2030,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2030
2030
|
type: "ephemeral";
|
|
2031
2031
|
} | undefined;
|
|
2032
2032
|
} | {
|
|
2033
|
-
type: "tool_use";
|
|
2034
|
-
name: string;
|
|
2035
2033
|
id: string;
|
|
2034
|
+
name: string;
|
|
2035
|
+
type: "tool_use";
|
|
2036
2036
|
input: Record<string, any>;
|
|
2037
2037
|
cache_control?: {
|
|
2038
2038
|
type: "ephemeral";
|
|
@@ -2047,9 +2047,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2047
2047
|
} | {
|
|
2048
2048
|
type: "image";
|
|
2049
2049
|
source: {
|
|
2050
|
+
data: string;
|
|
2050
2051
|
type: "base64";
|
|
2051
2052
|
media_type: "image/jpeg";
|
|
2052
|
-
data: string;
|
|
2053
2053
|
};
|
|
2054
2054
|
cache_control?: {
|
|
2055
2055
|
type: "ephemeral";
|
|
@@ -2095,9 +2095,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2095
2095
|
type: "ephemeral";
|
|
2096
2096
|
} | undefined;
|
|
2097
2097
|
} | {
|
|
2098
|
-
type: "tool_use";
|
|
2099
|
-
name: string;
|
|
2100
2098
|
id: string;
|
|
2099
|
+
name: string;
|
|
2100
|
+
type: "tool_use";
|
|
2101
2101
|
input: Record<string, any>;
|
|
2102
2102
|
cache_control?: {
|
|
2103
2103
|
type: "ephemeral";
|
|
@@ -2112,9 +2112,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2112
2112
|
} | {
|
|
2113
2113
|
type: "image";
|
|
2114
2114
|
source: {
|
|
2115
|
+
data: string;
|
|
2115
2116
|
type: "base64";
|
|
2116
2117
|
media_type: "image/jpeg";
|
|
2117
|
-
data: string;
|
|
2118
2118
|
};
|
|
2119
2119
|
cache_control?: {
|
|
2120
2120
|
type: "ephemeral";
|
|
@@ -2160,9 +2160,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2160
2160
|
type: "ephemeral";
|
|
2161
2161
|
} | undefined;
|
|
2162
2162
|
} | {
|
|
2163
|
-
type: "tool_use";
|
|
2164
|
-
name: string;
|
|
2165
2163
|
id: string;
|
|
2164
|
+
name: string;
|
|
2165
|
+
type: "tool_use";
|
|
2166
2166
|
input: Record<string, any>;
|
|
2167
2167
|
cache_control?: {
|
|
2168
2168
|
type: "ephemeral";
|
|
@@ -2177,9 +2177,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2177
2177
|
} | {
|
|
2178
2178
|
type: "image";
|
|
2179
2179
|
source: {
|
|
2180
|
+
data: string;
|
|
2180
2181
|
type: "base64";
|
|
2181
2182
|
media_type: "image/jpeg";
|
|
2182
|
-
data: string;
|
|
2183
2183
|
};
|
|
2184
2184
|
cache_control?: {
|
|
2185
2185
|
type: "ephemeral";
|
|
@@ -2194,12 +2194,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2194
2194
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2195
2195
|
id: z.ZodString;
|
|
2196
2196
|
}, "strip", z.ZodTypeAny, {
|
|
2197
|
-
name: string;
|
|
2198
2197
|
id: string;
|
|
2198
|
+
name: string;
|
|
2199
2199
|
parameters: Record<string, string>;
|
|
2200
2200
|
}, {
|
|
2201
|
-
name: string;
|
|
2202
2201
|
id: string;
|
|
2202
|
+
name: string;
|
|
2203
2203
|
parameters: Record<string, string>;
|
|
2204
2204
|
}>, "many">;
|
|
2205
2205
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2207,12 +2207,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2207
2207
|
result: z.ZodString;
|
|
2208
2208
|
id: z.ZodString;
|
|
2209
2209
|
}, "strip", z.ZodTypeAny, {
|
|
2210
|
-
name: string;
|
|
2211
2210
|
id: string;
|
|
2211
|
+
name: string;
|
|
2212
2212
|
result: string;
|
|
2213
2213
|
}, {
|
|
2214
|
-
name: string;
|
|
2215
2214
|
id: string;
|
|
2215
|
+
name: string;
|
|
2216
2216
|
result: string;
|
|
2217
2217
|
}>, "many">;
|
|
2218
2218
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2255,9 +2255,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2255
2255
|
type: "ephemeral";
|
|
2256
2256
|
} | undefined;
|
|
2257
2257
|
} | {
|
|
2258
|
-
type: "tool_use";
|
|
2259
|
-
name: string;
|
|
2260
2258
|
id: string;
|
|
2259
|
+
name: string;
|
|
2260
|
+
type: "tool_use";
|
|
2261
2261
|
input: Record<string, any>;
|
|
2262
2262
|
cache_control?: {
|
|
2263
2263
|
type: "ephemeral";
|
|
@@ -2272,9 +2272,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2272
2272
|
} | {
|
|
2273
2273
|
type: "image";
|
|
2274
2274
|
source: {
|
|
2275
|
+
data: string;
|
|
2275
2276
|
type: "base64";
|
|
2276
2277
|
media_type: "image/jpeg";
|
|
2277
|
-
data: string;
|
|
2278
2278
|
};
|
|
2279
2279
|
cache_control?: {
|
|
2280
2280
|
type: "ephemeral";
|
|
@@ -2285,13 +2285,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2285
2285
|
consecutiveAssistantMessages?: number | undefined;
|
|
2286
2286
|
};
|
|
2287
2287
|
toolResults: {
|
|
2288
|
-
name: string;
|
|
2289
2288
|
id: string;
|
|
2289
|
+
name: string;
|
|
2290
2290
|
result: string;
|
|
2291
2291
|
}[];
|
|
2292
2292
|
toolCalls: {
|
|
2293
|
-
name: string;
|
|
2294
2293
|
id: string;
|
|
2294
|
+
name: string;
|
|
2295
2295
|
parameters: Record<string, string>;
|
|
2296
2296
|
}[];
|
|
2297
2297
|
}, {
|
|
@@ -2334,9 +2334,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2334
2334
|
type: "ephemeral";
|
|
2335
2335
|
} | undefined;
|
|
2336
2336
|
} | {
|
|
2337
|
-
type: "tool_use";
|
|
2338
|
-
name: string;
|
|
2339
2337
|
id: string;
|
|
2338
|
+
name: string;
|
|
2339
|
+
type: "tool_use";
|
|
2340
2340
|
input: Record<string, any>;
|
|
2341
2341
|
cache_control?: {
|
|
2342
2342
|
type: "ephemeral";
|
|
@@ -2351,9 +2351,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2351
2351
|
} | {
|
|
2352
2352
|
type: "image";
|
|
2353
2353
|
source: {
|
|
2354
|
+
data: string;
|
|
2354
2355
|
type: "base64";
|
|
2355
2356
|
media_type: "image/jpeg";
|
|
2356
|
-
data: string;
|
|
2357
2357
|
};
|
|
2358
2358
|
cache_control?: {
|
|
2359
2359
|
type: "ephemeral";
|
|
@@ -2364,13 +2364,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2364
2364
|
consecutiveAssistantMessages?: number | undefined;
|
|
2365
2365
|
};
|
|
2366
2366
|
toolResults: {
|
|
2367
|
-
name: string;
|
|
2368
2367
|
id: string;
|
|
2368
|
+
name: string;
|
|
2369
2369
|
result: string;
|
|
2370
2370
|
}[];
|
|
2371
2371
|
toolCalls: {
|
|
2372
|
-
name: string;
|
|
2373
2372
|
id: string;
|
|
2373
|
+
name: string;
|
|
2374
2374
|
parameters: Record<string, string>;
|
|
2375
2375
|
}[];
|
|
2376
2376
|
}>, z.ZodObject<{
|
|
@@ -2394,12 +2394,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2394
2394
|
id: z.ZodString;
|
|
2395
2395
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2396
2396
|
}, "strip", z.ZodTypeAny, {
|
|
2397
|
-
name: string;
|
|
2398
2397
|
id: string;
|
|
2398
|
+
name: string;
|
|
2399
2399
|
input: Record<string, any>;
|
|
2400
2400
|
}, {
|
|
2401
|
-
name: string;
|
|
2402
2401
|
id: string;
|
|
2402
|
+
name: string;
|
|
2403
2403
|
input: Record<string, any>;
|
|
2404
2404
|
}>;
|
|
2405
2405
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2440,14 +2440,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2440
2440
|
}>, "many">;
|
|
2441
2441
|
resetFileVersions: z.ZodBoolean;
|
|
2442
2442
|
}, "strip", z.ZodTypeAny, {
|
|
2443
|
-
type: "tool-call";
|
|
2444
2443
|
data: {
|
|
2445
|
-
name: string;
|
|
2446
2444
|
id: string;
|
|
2445
|
+
name: string;
|
|
2447
2446
|
input: Record<string, any>;
|
|
2448
2447
|
};
|
|
2449
|
-
|
|
2448
|
+
type: "tool-call";
|
|
2450
2449
|
response: string;
|
|
2450
|
+
userInputId: string;
|
|
2451
2451
|
changes: {
|
|
2452
2452
|
type: "patch" | "file";
|
|
2453
2453
|
path: string;
|
|
@@ -2464,14 +2464,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2464
2464
|
}[];
|
|
2465
2465
|
resetFileVersions: boolean;
|
|
2466
2466
|
}, {
|
|
2467
|
-
type: "tool-call";
|
|
2468
2467
|
data: {
|
|
2469
|
-
name: string;
|
|
2470
2468
|
id: string;
|
|
2469
|
+
name: string;
|
|
2471
2470
|
input: Record<string, any>;
|
|
2472
2471
|
};
|
|
2473
|
-
|
|
2472
|
+
type: "tool-call";
|
|
2474
2473
|
response: string;
|
|
2474
|
+
userInputId: string;
|
|
2475
2475
|
changes: {
|
|
2476
2476
|
type: "patch" | "file";
|
|
2477
2477
|
path: string;
|
|
@@ -2522,18 +2522,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2522
2522
|
nextMonthlyGrant: z.ZodNumber;
|
|
2523
2523
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2524
2524
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
2525
|
+
next_quota_reset: Date | null;
|
|
2525
2526
|
type: "init-response";
|
|
2526
2527
|
usage: number;
|
|
2527
2528
|
remainingBalance: number;
|
|
2528
|
-
next_quota_reset: Date | null;
|
|
2529
2529
|
nextMonthlyGrant: number;
|
|
2530
2530
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
2531
2531
|
autoTopupAdded?: number | undefined;
|
|
2532
2532
|
}, {
|
|
2533
|
+
next_quota_reset: Date | null;
|
|
2533
2534
|
type: "init-response";
|
|
2534
2535
|
usage: number;
|
|
2535
2536
|
remainingBalance: number;
|
|
2536
|
-
next_quota_reset: Date | null;
|
|
2537
2537
|
nextMonthlyGrant: number;
|
|
2538
2538
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
2539
2539
|
autoTopupAdded?: number | undefined;
|
|
@@ -2546,18 +2546,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2546
2546
|
nextMonthlyGrant: z.ZodNumber;
|
|
2547
2547
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2548
2548
|
}, "strip", z.ZodTypeAny, {
|
|
2549
|
+
next_quota_reset: Date | null;
|
|
2549
2550
|
type: "usage-response";
|
|
2550
2551
|
usage: number;
|
|
2551
2552
|
remainingBalance: number;
|
|
2552
|
-
next_quota_reset: Date | null;
|
|
2553
2553
|
nextMonthlyGrant: number;
|
|
2554
2554
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
2555
2555
|
autoTopupAdded?: number | undefined;
|
|
2556
2556
|
}, {
|
|
2557
|
+
next_quota_reset: Date | null;
|
|
2557
2558
|
type: "usage-response";
|
|
2558
2559
|
usage: number;
|
|
2559
2560
|
remainingBalance: number;
|
|
2560
|
-
next_quota_reset: Date | null;
|
|
2561
2561
|
nextMonthlyGrant: number;
|
|
2562
2562
|
balanceBreakdown?: Partial<Record<import("./types/grant").GrantType, number>> | undefined;
|
|
2563
2563
|
autoTopupAdded?: number | undefined;
|
|
@@ -2567,12 +2567,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2567
2567
|
credits: z.ZodNumber;
|
|
2568
2568
|
}, "strip", z.ZodTypeAny, {
|
|
2569
2569
|
type: "message-cost-response";
|
|
2570
|
-
promptId: string;
|
|
2571
2570
|
credits: number;
|
|
2571
|
+
promptId: string;
|
|
2572
2572
|
}, {
|
|
2573
2573
|
type: "message-cost-response";
|
|
2574
|
-
promptId: string;
|
|
2575
2574
|
credits: number;
|
|
2575
|
+
promptId: string;
|
|
2576
2576
|
}>, z.ZodObject<{
|
|
2577
2577
|
type: z.ZodLiteral<"action-error">;
|
|
2578
2578
|
message: z.ZodString;
|
|
@@ -2581,13 +2581,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2581
2581
|
}, "strip", z.ZodTypeAny, {
|
|
2582
2582
|
type: "action-error";
|
|
2583
2583
|
message: string;
|
|
2584
|
-
remainingBalance?: number | undefined;
|
|
2585
2584
|
error?: string | undefined;
|
|
2585
|
+
remainingBalance?: number | undefined;
|
|
2586
2586
|
}, {
|
|
2587
2587
|
type: "action-error";
|
|
2588
2588
|
message: string;
|
|
2589
|
-
remainingBalance?: number | undefined;
|
|
2590
2589
|
error?: string | undefined;
|
|
2590
|
+
remainingBalance?: number | undefined;
|
|
2591
2591
|
}>, z.ZodObject<{
|
|
2592
2592
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2593
2593
|
commitMessage: z.ZodString;
|