codebuff 1.0.201 → 1.0.203
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.d.ts +2 -0
- package/dist/cli.js +46 -0
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +13 -8
- package/dist/client.js +108 -11
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +98 -116
- package/dist/common/actions.d.ts.map +1 -0
- package/dist/common/actions.js +0 -1
- package/dist/common/actions.js.map +1 -1
- package/dist/common/api-keys/constants.d.ts +8 -0
- package/dist/common/api-keys/constants.d.ts.map +1 -0
- package/dist/common/api-keys/constants.js +26 -0
- package/dist/common/api-keys/constants.js.map +1 -0
- package/dist/common/api-keys/crypto.d.ts +24 -0
- package/dist/common/api-keys/crypto.d.ts.map +1 -0
- package/dist/common/api-keys/crypto.js +186 -0
- package/dist/common/api-keys/crypto.js.map +1 -0
- package/dist/common/billing/quota-manager.d.ts.map +1 -0
- package/dist/common/browser-actions.d.ts.map +1 -0
- package/dist/common/constants/tools.d.ts.map +1 -0
- package/dist/common/constants.d.ts +2 -1
- package/dist/common/constants.d.ts.map +1 -0
- package/dist/common/constants.js +8 -3
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/drizzle.config.d.ts.map +1 -0
- package/dist/common/db/env.d.mts.map +1 -0
- package/dist/common/db/index.d.ts.map +1 -0
- package/dist/common/db/schema.d.ts +76 -0
- package/dist/common/db/schema.d.ts.map +1 -0
- package/dist/common/db/schema.js +19 -1
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/env.d.mts.map +1 -0
- package/dist/common/env.mjs +2 -1
- package/dist/common/env.mjs.map +1 -1
- package/dist/common/project-file-tree.d.ts +1 -1
- package/dist/common/project-file-tree.d.ts.map +1 -0
- package/dist/common/project-file-tree.js +39 -25
- package/dist/common/project-file-tree.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +2 -2
- package/dist/common/types/agent-state.d.ts.map +1 -0
- package/dist/common/types/message.d.ts +14 -14
- package/dist/common/types/message.d.ts.map +1 -0
- package/dist/common/types/plan.d.ts.map +1 -0
- package/dist/common/types/referral.d.ts.map +1 -0
- package/dist/common/types/tools.d.ts.map +1 -0
- package/dist/common/types/usage.d.ts.map +1 -0
- package/dist/common/util/__tests__/messages.test.d.ts.map +1 -0
- package/dist/common/util/__tests__/string.test.d.ts.map +1 -0
- package/dist/common/util/array.d.ts.map +1 -0
- package/dist/common/util/changes.d.ts.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/credentials.d.ts.map +1 -0
- package/dist/common/util/crypto.d.ts +27 -0
- package/dist/common/util/crypto.js +174 -0
- package/dist/common/util/crypto.js.map +1 -0
- package/dist/common/util/dates.d.ts.map +1 -0
- package/dist/common/util/file.d.ts.map +1 -0
- package/dist/common/util/git.d.ts.map +1 -0
- package/dist/common/util/logger.d.ts +8 -0
- package/dist/common/util/logger.d.ts.map +1 -0
- package/dist/common/util/logger.js +34 -0
- package/dist/common/util/logger.js.map +1 -0
- package/dist/common/util/lru-cache.d.ts.map +1 -0
- package/dist/common/util/messages.d.ts.map +1 -0
- package/dist/common/util/min-heap.d.ts.map +1 -0
- package/dist/common/util/object.d.ts.map +1 -0
- package/dist/common/util/patch.d.ts.map +1 -0
- package/dist/common/util/promise.d.ts.map +1 -0
- package/dist/common/util/referral.d.ts.map +1 -0
- package/dist/common/util/saxy.d.ts.map +1 -0
- package/dist/common/util/server/referral.d.ts.map +1 -0
- package/dist/common/util/string.d.ts.map +1 -0
- package/dist/common/util/stripe.d.ts.map +1 -0
- package/dist/common/websockets/websocket-client.d.ts.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +180 -210
- package/dist/common/websockets/websocket-schema.d.ts.map +1 -0
- package/dist/project-files.js +1 -1
- package/dist/project-files.js.map +1 -1
- package/package.json +2 -2
- package/dist/common/advanced-analyzer.d.ts +0 -19
- package/dist/common/advanced-analyzer.js +0 -140
- package/dist/common/advanced-analyzer.js.map +0 -1
- package/dist/common/message-image-handling.d.ts +0 -41
- package/dist/common/message-image-handling.js +0 -57
- package/dist/common/message-image-handling.js.map +0 -1
- package/dist/common/util/process-stream.d.ts +0 -8
- package/dist/common/util/process-stream.js +0 -102
- package/dist/common/util/process-stream.js.map +0 -1
- package/dist/common/util/referral-credits.d.ts +0 -1
- package/dist/common/util/referral-credits.js +0 -48
- package/dist/common/util/referral-credits.js.map +0 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
path: string;
|
|
8
7
|
type: "patch" | "file";
|
|
8
|
+
path: string;
|
|
9
9
|
content: string;
|
|
10
10
|
}, {
|
|
11
|
-
path: string;
|
|
12
11
|
type: "patch" | "file";
|
|
12
|
+
path: string;
|
|
13
13
|
content: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
@@ -18,12 +18,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
18
18
|
path: z.ZodString;
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
path: string;
|
|
22
21
|
type: "patch" | "file";
|
|
22
|
+
path: string;
|
|
23
23
|
content: string;
|
|
24
24
|
}, {
|
|
25
|
-
path: string;
|
|
26
25
|
type: "patch" | "file";
|
|
26
|
+
path: string;
|
|
27
27
|
content: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
@@ -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>;
|
|
@@ -197,16 +197,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
197
197
|
}>>;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
199
|
type: "tool_use";
|
|
200
|
-
id: string;
|
|
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
207
|
type: "tool_use";
|
|
208
|
-
id: string;
|
|
209
208
|
name: string;
|
|
209
|
+
id: string;
|
|
210
210
|
input: Record<string, any>;
|
|
211
211
|
cache_control?: {
|
|
212
212
|
type: "ephemeral";
|
|
@@ -280,7 +280,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
280
280
|
} | undefined;
|
|
281
281
|
}>]>, "many">]>;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
role: "user" | "assistant";
|
|
284
283
|
content: string | ({
|
|
285
284
|
type: "text";
|
|
286
285
|
text: string;
|
|
@@ -289,8 +288,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
289
288
|
} | undefined;
|
|
290
289
|
} | {
|
|
291
290
|
type: "tool_use";
|
|
292
|
-
id: string;
|
|
293
291
|
name: string;
|
|
292
|
+
id: string;
|
|
294
293
|
input: Record<string, any>;
|
|
295
294
|
cache_control?: {
|
|
296
295
|
type: "ephemeral";
|
|
@@ -313,8 +312,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
313
312
|
type: "ephemeral";
|
|
314
313
|
} | undefined;
|
|
315
314
|
})[];
|
|
316
|
-
}, {
|
|
317
315
|
role: "user" | "assistant";
|
|
316
|
+
}, {
|
|
318
317
|
content: string | ({
|
|
319
318
|
type: "text";
|
|
320
319
|
text: string;
|
|
@@ -323,8 +322,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
323
322
|
} | undefined;
|
|
324
323
|
} | {
|
|
325
324
|
type: "tool_use";
|
|
326
|
-
id: string;
|
|
327
325
|
name: string;
|
|
326
|
+
id: string;
|
|
328
327
|
input: Record<string, any>;
|
|
329
328
|
cache_control?: {
|
|
330
329
|
type: "ephemeral";
|
|
@@ -347,6 +346,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
347
346
|
type: "ephemeral";
|
|
348
347
|
} | undefined;
|
|
349
348
|
})[];
|
|
349
|
+
role: "user" | "assistant";
|
|
350
350
|
}>, "many">;
|
|
351
351
|
lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -379,7 +379,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
379
379
|
}[][] | undefined;
|
|
380
380
|
};
|
|
381
381
|
messageHistory: {
|
|
382
|
-
role: "user" | "assistant";
|
|
383
382
|
content: string | ({
|
|
384
383
|
type: "text";
|
|
385
384
|
text: string;
|
|
@@ -388,8 +387,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
388
387
|
} | undefined;
|
|
389
388
|
} | {
|
|
390
389
|
type: "tool_use";
|
|
391
|
-
id: string;
|
|
392
390
|
name: string;
|
|
391
|
+
id: string;
|
|
393
392
|
input: Record<string, any>;
|
|
394
393
|
cache_control?: {
|
|
395
394
|
type: "ephemeral";
|
|
@@ -412,6 +411,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
412
411
|
type: "ephemeral";
|
|
413
412
|
} | undefined;
|
|
414
413
|
})[];
|
|
414
|
+
role: "user" | "assistant";
|
|
415
415
|
}[];
|
|
416
416
|
lastUserPromptIndex?: number | undefined;
|
|
417
417
|
}, {
|
|
@@ -444,7 +444,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
444
444
|
}[][] | undefined;
|
|
445
445
|
};
|
|
446
446
|
messageHistory: {
|
|
447
|
-
role: "user" | "assistant";
|
|
448
447
|
content: string | ({
|
|
449
448
|
type: "text";
|
|
450
449
|
text: string;
|
|
@@ -453,8 +452,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
453
452
|
} | undefined;
|
|
454
453
|
} | {
|
|
455
454
|
type: "tool_use";
|
|
456
|
-
id: string;
|
|
457
455
|
name: string;
|
|
456
|
+
id: string;
|
|
458
457
|
input: Record<string, any>;
|
|
459
458
|
cache_control?: {
|
|
460
459
|
type: "ephemeral";
|
|
@@ -477,6 +476,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
477
476
|
type: "ephemeral";
|
|
478
477
|
} | undefined;
|
|
479
478
|
})[];
|
|
479
|
+
role: "user" | "assistant";
|
|
480
480
|
}[];
|
|
481
481
|
lastUserPromptIndex?: number | undefined;
|
|
482
482
|
}>;
|
|
@@ -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
|
-
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, {
|
|
@@ -528,7 +528,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
528
528
|
}[][] | undefined;
|
|
529
529
|
};
|
|
530
530
|
messageHistory: {
|
|
531
|
-
role: "user" | "assistant";
|
|
532
531
|
content: string | ({
|
|
533
532
|
type: "text";
|
|
534
533
|
text: string;
|
|
@@ -537,8 +536,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
537
536
|
} | undefined;
|
|
538
537
|
} | {
|
|
539
538
|
type: "tool_use";
|
|
540
|
-
id: string;
|
|
541
539
|
name: string;
|
|
540
|
+
id: string;
|
|
542
541
|
input: Record<string, any>;
|
|
543
542
|
cache_control?: {
|
|
544
543
|
type: "ephemeral";
|
|
@@ -561,12 +560,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
561
560
|
type: "ephemeral";
|
|
562
561
|
} | undefined;
|
|
563
562
|
})[];
|
|
563
|
+
role: "user" | "assistant";
|
|
564
564
|
}[];
|
|
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;
|
|
@@ -605,7 +605,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
605
605
|
}[][] | undefined;
|
|
606
606
|
};
|
|
607
607
|
messageHistory: {
|
|
608
|
-
role: "user" | "assistant";
|
|
609
608
|
content: string | ({
|
|
610
609
|
type: "text";
|
|
611
610
|
text: string;
|
|
@@ -614,8 +613,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
614
613
|
} | undefined;
|
|
615
614
|
} | {
|
|
616
615
|
type: "tool_use";
|
|
617
|
-
id: string;
|
|
618
616
|
name: string;
|
|
617
|
+
id: string;
|
|
619
618
|
input: Record<string, any>;
|
|
620
619
|
cache_control?: {
|
|
621
620
|
type: "ephemeral";
|
|
@@ -638,12 +637,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
638
637
|
type: "ephemeral";
|
|
639
638
|
} | undefined;
|
|
640
639
|
})[];
|
|
640
|
+
role: "user" | "assistant";
|
|
641
641
|
}[];
|
|
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;
|
|
@@ -857,7 +857,6 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
857
857
|
type: z.ZodLiteral<"usage-response">;
|
|
858
858
|
usage: z.ZodNumber;
|
|
859
859
|
limit: z.ZodNumber;
|
|
860
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
861
860
|
subscription_active: z.ZodBoolean;
|
|
862
861
|
next_quota_reset: z.ZodDate;
|
|
863
862
|
session_credits_used: z.ZodNumber;
|
|
@@ -868,7 +867,6 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
868
867
|
subscription_active: boolean;
|
|
869
868
|
next_quota_reset: Date;
|
|
870
869
|
session_credits_used: number;
|
|
871
|
-
referralLink?: string | undefined;
|
|
872
870
|
}, {
|
|
873
871
|
type: "usage-response";
|
|
874
872
|
usage: number;
|
|
@@ -876,7 +874,6 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
876
874
|
subscription_active: boolean;
|
|
877
875
|
next_quota_reset: Date;
|
|
878
876
|
session_credits_used: number;
|
|
879
|
-
referralLink?: string | undefined;
|
|
880
877
|
}>;
|
|
881
878
|
export type UsageResponse = z.infer<typeof UsageReponseSchema>;
|
|
882
879
|
export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -885,7 +882,6 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
885
882
|
type: z.ZodLiteral<"usage-response">;
|
|
886
883
|
usage: z.ZodNumber;
|
|
887
884
|
limit: z.ZodNumber;
|
|
888
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
889
885
|
subscription_active: z.ZodBoolean;
|
|
890
886
|
next_quota_reset: z.ZodDate;
|
|
891
887
|
session_credits_used: z.ZodNumber;
|
|
@@ -896,7 +892,6 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
896
892
|
subscription_active: boolean;
|
|
897
893
|
next_quota_reset: Date;
|
|
898
894
|
session_credits_used: number;
|
|
899
|
-
referralLink?: string | undefined;
|
|
900
895
|
}, {
|
|
901
896
|
type: "init-response";
|
|
902
897
|
usage: number;
|
|
@@ -904,7 +899,6 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
904
899
|
subscription_active: boolean;
|
|
905
900
|
next_quota_reset: Date;
|
|
906
901
|
session_credits_used: number;
|
|
907
|
-
referralLink?: string | undefined;
|
|
908
902
|
}>;
|
|
909
903
|
export type InitResponse = z.infer<typeof InitResponseSchema>;
|
|
910
904
|
export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -916,12 +910,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
916
910
|
path: z.ZodString;
|
|
917
911
|
content: z.ZodString;
|
|
918
912
|
}, "strip", z.ZodTypeAny, {
|
|
919
|
-
path: string;
|
|
920
913
|
type: "patch" | "file";
|
|
914
|
+
path: string;
|
|
921
915
|
content: string;
|
|
922
916
|
}, {
|
|
923
|
-
path: string;
|
|
924
917
|
type: "patch" | "file";
|
|
918
|
+
path: string;
|
|
925
919
|
content: string;
|
|
926
920
|
}>, "many">;
|
|
927
921
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -929,12 +923,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
929
923
|
path: z.ZodString;
|
|
930
924
|
content: z.ZodString;
|
|
931
925
|
}, "strip", z.ZodTypeAny, {
|
|
932
|
-
path: string;
|
|
933
926
|
type: "patch" | "file";
|
|
927
|
+
path: string;
|
|
934
928
|
content: string;
|
|
935
929
|
}, {
|
|
936
|
-
path: string;
|
|
937
930
|
type: "patch" | "file";
|
|
931
|
+
path: string;
|
|
938
932
|
content: string;
|
|
939
933
|
}>, "many">;
|
|
940
934
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -951,7 +945,6 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
951
945
|
}, {
|
|
952
946
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
953
947
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
954
|
-
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
955
948
|
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
956
949
|
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
957
950
|
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
@@ -960,13 +953,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
960
953
|
userInputId: string;
|
|
961
954
|
response: string;
|
|
962
955
|
changes: {
|
|
963
|
-
path: string;
|
|
964
956
|
type: "patch" | "file";
|
|
957
|
+
path: string;
|
|
965
958
|
content: string;
|
|
966
959
|
}[];
|
|
967
960
|
changesAlreadyApplied: {
|
|
968
|
-
path: string;
|
|
969
961
|
type: "patch" | "file";
|
|
962
|
+
path: string;
|
|
970
963
|
content: string;
|
|
971
964
|
}[];
|
|
972
965
|
addedFileVersions: {
|
|
@@ -976,7 +969,6 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
976
969
|
resetFileVersions: boolean;
|
|
977
970
|
usage?: number | undefined;
|
|
978
971
|
limit?: number | undefined;
|
|
979
|
-
referralLink?: string | undefined;
|
|
980
972
|
subscription_active?: boolean | undefined;
|
|
981
973
|
next_quota_reset?: Date | undefined;
|
|
982
974
|
session_credits_used?: number | undefined;
|
|
@@ -985,13 +977,13 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
985
977
|
userInputId: string;
|
|
986
978
|
response: string;
|
|
987
979
|
changes: {
|
|
988
|
-
path: string;
|
|
989
980
|
type: "patch" | "file";
|
|
981
|
+
path: string;
|
|
990
982
|
content: string;
|
|
991
983
|
}[];
|
|
992
984
|
changesAlreadyApplied: {
|
|
993
|
-
path: string;
|
|
994
985
|
type: "patch" | "file";
|
|
986
|
+
path: string;
|
|
995
987
|
content: string;
|
|
996
988
|
}[];
|
|
997
989
|
addedFileVersions: {
|
|
@@ -1001,7 +993,6 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1001
993
|
resetFileVersions: boolean;
|
|
1002
994
|
usage?: number | undefined;
|
|
1003
995
|
limit?: number | undefined;
|
|
1004
|
-
referralLink?: string | undefined;
|
|
1005
996
|
subscription_active?: boolean | undefined;
|
|
1006
997
|
next_quota_reset?: Date | undefined;
|
|
1007
998
|
session_credits_used?: number | undefined;
|
|
@@ -1172,16 +1163,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1172
1163
|
}>>;
|
|
1173
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1174
1165
|
type: "tool_use";
|
|
1175
|
-
id: string;
|
|
1176
1166
|
name: string;
|
|
1167
|
+
id: string;
|
|
1177
1168
|
input: Record<string, any>;
|
|
1178
1169
|
cache_control?: {
|
|
1179
1170
|
type: "ephemeral";
|
|
1180
1171
|
} | undefined;
|
|
1181
1172
|
}, {
|
|
1182
1173
|
type: "tool_use";
|
|
1183
|
-
id: string;
|
|
1184
1174
|
name: string;
|
|
1175
|
+
id: string;
|
|
1185
1176
|
input: Record<string, any>;
|
|
1186
1177
|
cache_control?: {
|
|
1187
1178
|
type: "ephemeral";
|
|
@@ -1255,7 +1246,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1255
1246
|
} | undefined;
|
|
1256
1247
|
}>]>, "many">]>;
|
|
1257
1248
|
}, "strip", z.ZodTypeAny, {
|
|
1258
|
-
role: "user" | "assistant";
|
|
1259
1249
|
content: string | ({
|
|
1260
1250
|
type: "text";
|
|
1261
1251
|
text: string;
|
|
@@ -1264,8 +1254,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1264
1254
|
} | undefined;
|
|
1265
1255
|
} | {
|
|
1266
1256
|
type: "tool_use";
|
|
1267
|
-
id: string;
|
|
1268
1257
|
name: string;
|
|
1258
|
+
id: string;
|
|
1269
1259
|
input: Record<string, any>;
|
|
1270
1260
|
cache_control?: {
|
|
1271
1261
|
type: "ephemeral";
|
|
@@ -1288,8 +1278,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1288
1278
|
type: "ephemeral";
|
|
1289
1279
|
} | undefined;
|
|
1290
1280
|
})[];
|
|
1291
|
-
}, {
|
|
1292
1281
|
role: "user" | "assistant";
|
|
1282
|
+
}, {
|
|
1293
1283
|
content: string | ({
|
|
1294
1284
|
type: "text";
|
|
1295
1285
|
text: string;
|
|
@@ -1298,8 +1288,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1298
1288
|
} | undefined;
|
|
1299
1289
|
} | {
|
|
1300
1290
|
type: "tool_use";
|
|
1301
|
-
id: string;
|
|
1302
1291
|
name: string;
|
|
1292
|
+
id: string;
|
|
1303
1293
|
input: Record<string, any>;
|
|
1304
1294
|
cache_control?: {
|
|
1305
1295
|
type: "ephemeral";
|
|
@@ -1322,6 +1312,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1322
1312
|
type: "ephemeral";
|
|
1323
1313
|
} | undefined;
|
|
1324
1314
|
})[];
|
|
1315
|
+
role: "user" | "assistant";
|
|
1325
1316
|
}>, "many">;
|
|
1326
1317
|
lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
|
|
1327
1318
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1354,7 +1345,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1354
1345
|
}[][] | undefined;
|
|
1355
1346
|
};
|
|
1356
1347
|
messageHistory: {
|
|
1357
|
-
role: "user" | "assistant";
|
|
1358
1348
|
content: string | ({
|
|
1359
1349
|
type: "text";
|
|
1360
1350
|
text: string;
|
|
@@ -1363,8 +1353,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1363
1353
|
} | undefined;
|
|
1364
1354
|
} | {
|
|
1365
1355
|
type: "tool_use";
|
|
1366
|
-
id: string;
|
|
1367
1356
|
name: string;
|
|
1357
|
+
id: string;
|
|
1368
1358
|
input: Record<string, any>;
|
|
1369
1359
|
cache_control?: {
|
|
1370
1360
|
type: "ephemeral";
|
|
@@ -1387,6 +1377,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1387
1377
|
type: "ephemeral";
|
|
1388
1378
|
} | undefined;
|
|
1389
1379
|
})[];
|
|
1380
|
+
role: "user" | "assistant";
|
|
1390
1381
|
}[];
|
|
1391
1382
|
lastUserPromptIndex?: number | undefined;
|
|
1392
1383
|
}, {
|
|
@@ -1419,7 +1410,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1419
1410
|
}[][] | undefined;
|
|
1420
1411
|
};
|
|
1421
1412
|
messageHistory: {
|
|
1422
|
-
role: "user" | "assistant";
|
|
1423
1413
|
content: string | ({
|
|
1424
1414
|
type: "text";
|
|
1425
1415
|
text: string;
|
|
@@ -1428,8 +1418,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1428
1418
|
} | undefined;
|
|
1429
1419
|
} | {
|
|
1430
1420
|
type: "tool_use";
|
|
1431
|
-
id: string;
|
|
1432
1421
|
name: string;
|
|
1422
|
+
id: string;
|
|
1433
1423
|
input: Record<string, any>;
|
|
1434
1424
|
cache_control?: {
|
|
1435
1425
|
type: "ephemeral";
|
|
@@ -1452,6 +1442,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1452
1442
|
type: "ephemeral";
|
|
1453
1443
|
} | undefined;
|
|
1454
1444
|
})[];
|
|
1445
|
+
role: "user" | "assistant";
|
|
1455
1446
|
}[];
|
|
1456
1447
|
lastUserPromptIndex?: number | undefined;
|
|
1457
1448
|
}>;
|
|
@@ -1460,12 +1451,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1460
1451
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1461
1452
|
id: z.ZodString;
|
|
1462
1453
|
}, "strip", z.ZodTypeAny, {
|
|
1463
|
-
id: string;
|
|
1464
1454
|
name: string;
|
|
1455
|
+
id: string;
|
|
1465
1456
|
parameters: Record<string, string>;
|
|
1466
1457
|
}, {
|
|
1467
|
-
id: string;
|
|
1468
1458
|
name: string;
|
|
1459
|
+
id: string;
|
|
1469
1460
|
parameters: Record<string, string>;
|
|
1470
1461
|
}>, "many">;
|
|
1471
1462
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -1473,12 +1464,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1473
1464
|
result: z.ZodString;
|
|
1474
1465
|
id: z.ZodString;
|
|
1475
1466
|
}, "strip", z.ZodTypeAny, {
|
|
1476
|
-
id: string;
|
|
1477
1467
|
name: string;
|
|
1468
|
+
id: string;
|
|
1478
1469
|
result: string;
|
|
1479
1470
|
}, {
|
|
1480
|
-
id: string;
|
|
1481
1471
|
name: string;
|
|
1472
|
+
id: string;
|
|
1482
1473
|
result: string;
|
|
1483
1474
|
}>, "many">;
|
|
1484
1475
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1514,7 +1505,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1514
1505
|
}[][] | undefined;
|
|
1515
1506
|
};
|
|
1516
1507
|
messageHistory: {
|
|
1517
|
-
role: "user" | "assistant";
|
|
1518
1508
|
content: string | ({
|
|
1519
1509
|
type: "text";
|
|
1520
1510
|
text: string;
|
|
@@ -1523,8 +1513,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1523
1513
|
} | undefined;
|
|
1524
1514
|
} | {
|
|
1525
1515
|
type: "tool_use";
|
|
1526
|
-
id: string;
|
|
1527
1516
|
name: string;
|
|
1517
|
+
id: string;
|
|
1528
1518
|
input: Record<string, any>;
|
|
1529
1519
|
cache_control?: {
|
|
1530
1520
|
type: "ephemeral";
|
|
@@ -1547,17 +1537,18 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1547
1537
|
type: "ephemeral";
|
|
1548
1538
|
} | undefined;
|
|
1549
1539
|
})[];
|
|
1540
|
+
role: "user" | "assistant";
|
|
1550
1541
|
}[];
|
|
1551
1542
|
lastUserPromptIndex?: number | undefined;
|
|
1552
1543
|
};
|
|
1553
1544
|
toolResults: {
|
|
1554
|
-
id: string;
|
|
1555
1545
|
name: string;
|
|
1546
|
+
id: string;
|
|
1556
1547
|
result: string;
|
|
1557
1548
|
}[];
|
|
1558
1549
|
toolCalls: {
|
|
1559
|
-
id: string;
|
|
1560
1550
|
name: string;
|
|
1551
|
+
id: string;
|
|
1561
1552
|
parameters: Record<string, string>;
|
|
1562
1553
|
}[];
|
|
1563
1554
|
}, {
|
|
@@ -1593,7 +1584,6 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1593
1584
|
}[][] | undefined;
|
|
1594
1585
|
};
|
|
1595
1586
|
messageHistory: {
|
|
1596
|
-
role: "user" | "assistant";
|
|
1597
1587
|
content: string | ({
|
|
1598
1588
|
type: "text";
|
|
1599
1589
|
text: string;
|
|
@@ -1602,8 +1592,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1602
1592
|
} | undefined;
|
|
1603
1593
|
} | {
|
|
1604
1594
|
type: "tool_use";
|
|
1605
|
-
id: string;
|
|
1606
1595
|
name: string;
|
|
1596
|
+
id: string;
|
|
1607
1597
|
input: Record<string, any>;
|
|
1608
1598
|
cache_control?: {
|
|
1609
1599
|
type: "ephemeral";
|
|
@@ -1626,17 +1616,18 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1626
1616
|
type: "ephemeral";
|
|
1627
1617
|
} | undefined;
|
|
1628
1618
|
})[];
|
|
1619
|
+
role: "user" | "assistant";
|
|
1629
1620
|
}[];
|
|
1630
1621
|
lastUserPromptIndex?: number | undefined;
|
|
1631
1622
|
};
|
|
1632
1623
|
toolResults: {
|
|
1633
|
-
id: string;
|
|
1634
1624
|
name: string;
|
|
1625
|
+
id: string;
|
|
1635
1626
|
result: string;
|
|
1636
1627
|
}[];
|
|
1637
1628
|
toolCalls: {
|
|
1638
|
-
id: string;
|
|
1639
1629
|
name: string;
|
|
1630
|
+
id: string;
|
|
1640
1631
|
parameters: Record<string, string>;
|
|
1641
1632
|
}[];
|
|
1642
1633
|
}>;
|
|
@@ -1662,12 +1653,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1662
1653
|
path: z.ZodString;
|
|
1663
1654
|
content: z.ZodString;
|
|
1664
1655
|
}, "strip", z.ZodTypeAny, {
|
|
1665
|
-
path: string;
|
|
1666
1656
|
type: "patch" | "file";
|
|
1657
|
+
path: string;
|
|
1667
1658
|
content: string;
|
|
1668
1659
|
}, {
|
|
1669
|
-
path: string;
|
|
1670
1660
|
type: "patch" | "file";
|
|
1661
|
+
path: string;
|
|
1671
1662
|
content: string;
|
|
1672
1663
|
}>, "many">;
|
|
1673
1664
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1675,12 +1666,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1675
1666
|
path: z.ZodString;
|
|
1676
1667
|
content: z.ZodString;
|
|
1677
1668
|
}, "strip", z.ZodTypeAny, {
|
|
1678
|
-
path: string;
|
|
1679
1669
|
type: "patch" | "file";
|
|
1670
|
+
path: string;
|
|
1680
1671
|
content: string;
|
|
1681
1672
|
}, {
|
|
1682
|
-
path: string;
|
|
1683
1673
|
type: "patch" | "file";
|
|
1674
|
+
path: string;
|
|
1684
1675
|
content: string;
|
|
1685
1676
|
}>, "many">;
|
|
1686
1677
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1697,7 +1688,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1697
1688
|
}, {
|
|
1698
1689
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
1699
1690
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1700
|
-
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1701
1691
|
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
1702
1692
|
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
1703
1693
|
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1706,13 +1696,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1706
1696
|
userInputId: string;
|
|
1707
1697
|
response: string;
|
|
1708
1698
|
changes: {
|
|
1709
|
-
path: string;
|
|
1710
1699
|
type: "patch" | "file";
|
|
1700
|
+
path: string;
|
|
1711
1701
|
content: string;
|
|
1712
1702
|
}[];
|
|
1713
1703
|
changesAlreadyApplied: {
|
|
1714
|
-
path: string;
|
|
1715
1704
|
type: "patch" | "file";
|
|
1705
|
+
path: string;
|
|
1716
1706
|
content: string;
|
|
1717
1707
|
}[];
|
|
1718
1708
|
addedFileVersions: {
|
|
@@ -1722,7 +1712,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1722
1712
|
resetFileVersions: boolean;
|
|
1723
1713
|
usage?: number | undefined;
|
|
1724
1714
|
limit?: number | undefined;
|
|
1725
|
-
referralLink?: string | undefined;
|
|
1726
1715
|
subscription_active?: boolean | undefined;
|
|
1727
1716
|
next_quota_reset?: Date | undefined;
|
|
1728
1717
|
session_credits_used?: number | undefined;
|
|
@@ -1731,13 +1720,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1731
1720
|
userInputId: string;
|
|
1732
1721
|
response: string;
|
|
1733
1722
|
changes: {
|
|
1734
|
-
path: string;
|
|
1735
1723
|
type: "patch" | "file";
|
|
1724
|
+
path: string;
|
|
1736
1725
|
content: string;
|
|
1737
1726
|
}[];
|
|
1738
1727
|
changesAlreadyApplied: {
|
|
1739
|
-
path: string;
|
|
1740
1728
|
type: "patch" | "file";
|
|
1729
|
+
path: string;
|
|
1741
1730
|
content: string;
|
|
1742
1731
|
}[];
|
|
1743
1732
|
addedFileVersions: {
|
|
@@ -1747,7 +1736,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1747
1736
|
resetFileVersions: boolean;
|
|
1748
1737
|
usage?: number | undefined;
|
|
1749
1738
|
limit?: number | undefined;
|
|
1750
|
-
referralLink?: string | undefined;
|
|
1751
1739
|
subscription_active?: boolean | undefined;
|
|
1752
1740
|
next_quota_reset?: Date | undefined;
|
|
1753
1741
|
session_credits_used?: number | undefined;
|
|
@@ -1903,16 +1891,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1903
1891
|
}>>;
|
|
1904
1892
|
}, "strip", z.ZodTypeAny, {
|
|
1905
1893
|
type: "tool_use";
|
|
1906
|
-
id: string;
|
|
1907
1894
|
name: string;
|
|
1895
|
+
id: string;
|
|
1908
1896
|
input: Record<string, any>;
|
|
1909
1897
|
cache_control?: {
|
|
1910
1898
|
type: "ephemeral";
|
|
1911
1899
|
} | undefined;
|
|
1912
1900
|
}, {
|
|
1913
1901
|
type: "tool_use";
|
|
1914
|
-
id: string;
|
|
1915
1902
|
name: string;
|
|
1903
|
+
id: string;
|
|
1916
1904
|
input: Record<string, any>;
|
|
1917
1905
|
cache_control?: {
|
|
1918
1906
|
type: "ephemeral";
|
|
@@ -1986,7 +1974,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1986
1974
|
} | undefined;
|
|
1987
1975
|
}>]>, "many">]>;
|
|
1988
1976
|
}, "strip", z.ZodTypeAny, {
|
|
1989
|
-
role: "user" | "assistant";
|
|
1990
1977
|
content: string | ({
|
|
1991
1978
|
type: "text";
|
|
1992
1979
|
text: string;
|
|
@@ -1995,8 +1982,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1995
1982
|
} | undefined;
|
|
1996
1983
|
} | {
|
|
1997
1984
|
type: "tool_use";
|
|
1998
|
-
id: string;
|
|
1999
1985
|
name: string;
|
|
1986
|
+
id: string;
|
|
2000
1987
|
input: Record<string, any>;
|
|
2001
1988
|
cache_control?: {
|
|
2002
1989
|
type: "ephemeral";
|
|
@@ -2019,8 +2006,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2019
2006
|
type: "ephemeral";
|
|
2020
2007
|
} | undefined;
|
|
2021
2008
|
})[];
|
|
2022
|
-
}, {
|
|
2023
2009
|
role: "user" | "assistant";
|
|
2010
|
+
}, {
|
|
2024
2011
|
content: string | ({
|
|
2025
2012
|
type: "text";
|
|
2026
2013
|
text: string;
|
|
@@ -2029,8 +2016,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2029
2016
|
} | undefined;
|
|
2030
2017
|
} | {
|
|
2031
2018
|
type: "tool_use";
|
|
2032
|
-
id: string;
|
|
2033
2019
|
name: string;
|
|
2020
|
+
id: string;
|
|
2034
2021
|
input: Record<string, any>;
|
|
2035
2022
|
cache_control?: {
|
|
2036
2023
|
type: "ephemeral";
|
|
@@ -2053,6 +2040,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2053
2040
|
type: "ephemeral";
|
|
2054
2041
|
} | undefined;
|
|
2055
2042
|
})[];
|
|
2043
|
+
role: "user" | "assistant";
|
|
2056
2044
|
}>, "many">;
|
|
2057
2045
|
lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
|
|
2058
2046
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2085,7 +2073,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2085
2073
|
}[][] | undefined;
|
|
2086
2074
|
};
|
|
2087
2075
|
messageHistory: {
|
|
2088
|
-
role: "user" | "assistant";
|
|
2089
2076
|
content: string | ({
|
|
2090
2077
|
type: "text";
|
|
2091
2078
|
text: string;
|
|
@@ -2094,8 +2081,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2094
2081
|
} | undefined;
|
|
2095
2082
|
} | {
|
|
2096
2083
|
type: "tool_use";
|
|
2097
|
-
id: string;
|
|
2098
2084
|
name: string;
|
|
2085
|
+
id: string;
|
|
2099
2086
|
input: Record<string, any>;
|
|
2100
2087
|
cache_control?: {
|
|
2101
2088
|
type: "ephemeral";
|
|
@@ -2118,6 +2105,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2118
2105
|
type: "ephemeral";
|
|
2119
2106
|
} | undefined;
|
|
2120
2107
|
})[];
|
|
2108
|
+
role: "user" | "assistant";
|
|
2121
2109
|
}[];
|
|
2122
2110
|
lastUserPromptIndex?: number | undefined;
|
|
2123
2111
|
}, {
|
|
@@ -2150,7 +2138,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2150
2138
|
}[][] | undefined;
|
|
2151
2139
|
};
|
|
2152
2140
|
messageHistory: {
|
|
2153
|
-
role: "user" | "assistant";
|
|
2154
2141
|
content: string | ({
|
|
2155
2142
|
type: "text";
|
|
2156
2143
|
text: string;
|
|
@@ -2159,8 +2146,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2159
2146
|
} | undefined;
|
|
2160
2147
|
} | {
|
|
2161
2148
|
type: "tool_use";
|
|
2162
|
-
id: string;
|
|
2163
2149
|
name: string;
|
|
2150
|
+
id: string;
|
|
2164
2151
|
input: Record<string, any>;
|
|
2165
2152
|
cache_control?: {
|
|
2166
2153
|
type: "ephemeral";
|
|
@@ -2183,6 +2170,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2183
2170
|
type: "ephemeral";
|
|
2184
2171
|
} | undefined;
|
|
2185
2172
|
})[];
|
|
2173
|
+
role: "user" | "assistant";
|
|
2186
2174
|
}[];
|
|
2187
2175
|
lastUserPromptIndex?: number | undefined;
|
|
2188
2176
|
}>;
|
|
@@ -2191,12 +2179,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2191
2179
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2192
2180
|
id: z.ZodString;
|
|
2193
2181
|
}, "strip", z.ZodTypeAny, {
|
|
2194
|
-
id: string;
|
|
2195
2182
|
name: string;
|
|
2183
|
+
id: string;
|
|
2196
2184
|
parameters: Record<string, string>;
|
|
2197
2185
|
}, {
|
|
2198
|
-
id: string;
|
|
2199
2186
|
name: string;
|
|
2187
|
+
id: string;
|
|
2200
2188
|
parameters: Record<string, string>;
|
|
2201
2189
|
}>, "many">;
|
|
2202
2190
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2204,12 +2192,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2204
2192
|
result: z.ZodString;
|
|
2205
2193
|
id: z.ZodString;
|
|
2206
2194
|
}, "strip", z.ZodTypeAny, {
|
|
2207
|
-
id: string;
|
|
2208
2195
|
name: string;
|
|
2196
|
+
id: string;
|
|
2209
2197
|
result: string;
|
|
2210
2198
|
}, {
|
|
2211
|
-
id: string;
|
|
2212
2199
|
name: string;
|
|
2200
|
+
id: string;
|
|
2213
2201
|
result: string;
|
|
2214
2202
|
}>, "many">;
|
|
2215
2203
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2245,7 +2233,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2245
2233
|
}[][] | undefined;
|
|
2246
2234
|
};
|
|
2247
2235
|
messageHistory: {
|
|
2248
|
-
role: "user" | "assistant";
|
|
2249
2236
|
content: string | ({
|
|
2250
2237
|
type: "text";
|
|
2251
2238
|
text: string;
|
|
@@ -2254,8 +2241,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2254
2241
|
} | undefined;
|
|
2255
2242
|
} | {
|
|
2256
2243
|
type: "tool_use";
|
|
2257
|
-
id: string;
|
|
2258
2244
|
name: string;
|
|
2245
|
+
id: string;
|
|
2259
2246
|
input: Record<string, any>;
|
|
2260
2247
|
cache_control?: {
|
|
2261
2248
|
type: "ephemeral";
|
|
@@ -2278,17 +2265,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2278
2265
|
type: "ephemeral";
|
|
2279
2266
|
} | undefined;
|
|
2280
2267
|
})[];
|
|
2268
|
+
role: "user" | "assistant";
|
|
2281
2269
|
}[];
|
|
2282
2270
|
lastUserPromptIndex?: number | undefined;
|
|
2283
2271
|
};
|
|
2284
2272
|
toolResults: {
|
|
2285
|
-
id: string;
|
|
2286
2273
|
name: string;
|
|
2274
|
+
id: string;
|
|
2287
2275
|
result: string;
|
|
2288
2276
|
}[];
|
|
2289
2277
|
toolCalls: {
|
|
2290
|
-
id: string;
|
|
2291
2278
|
name: string;
|
|
2279
|
+
id: string;
|
|
2292
2280
|
parameters: Record<string, string>;
|
|
2293
2281
|
}[];
|
|
2294
2282
|
}, {
|
|
@@ -2324,7 +2312,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2324
2312
|
}[][] | undefined;
|
|
2325
2313
|
};
|
|
2326
2314
|
messageHistory: {
|
|
2327
|
-
role: "user" | "assistant";
|
|
2328
2315
|
content: string | ({
|
|
2329
2316
|
type: "text";
|
|
2330
2317
|
text: string;
|
|
@@ -2333,8 +2320,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2333
2320
|
} | undefined;
|
|
2334
2321
|
} | {
|
|
2335
2322
|
type: "tool_use";
|
|
2336
|
-
id: string;
|
|
2337
2323
|
name: string;
|
|
2324
|
+
id: string;
|
|
2338
2325
|
input: Record<string, any>;
|
|
2339
2326
|
cache_control?: {
|
|
2340
2327
|
type: "ephemeral";
|
|
@@ -2357,17 +2344,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2357
2344
|
type: "ephemeral";
|
|
2358
2345
|
} | undefined;
|
|
2359
2346
|
})[];
|
|
2347
|
+
role: "user" | "assistant";
|
|
2360
2348
|
}[];
|
|
2361
2349
|
lastUserPromptIndex?: number | undefined;
|
|
2362
2350
|
};
|
|
2363
2351
|
toolResults: {
|
|
2364
|
-
id: string;
|
|
2365
2352
|
name: string;
|
|
2353
|
+
id: string;
|
|
2366
2354
|
result: string;
|
|
2367
2355
|
}[];
|
|
2368
2356
|
toolCalls: {
|
|
2369
|
-
id: string;
|
|
2370
2357
|
name: string;
|
|
2358
|
+
id: string;
|
|
2371
2359
|
parameters: Record<string, string>;
|
|
2372
2360
|
}[];
|
|
2373
2361
|
}>, z.ZodObject<{
|
|
@@ -2391,12 +2379,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2391
2379
|
id: z.ZodString;
|
|
2392
2380
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2393
2381
|
}, "strip", z.ZodTypeAny, {
|
|
2394
|
-
id: string;
|
|
2395
2382
|
name: string;
|
|
2383
|
+
id: string;
|
|
2396
2384
|
input: Record<string, any>;
|
|
2397
2385
|
}, {
|
|
2398
|
-
id: string;
|
|
2399
2386
|
name: string;
|
|
2387
|
+
id: string;
|
|
2400
2388
|
input: Record<string, any>;
|
|
2401
2389
|
}>;
|
|
2402
2390
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2404,12 +2392,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2404
2392
|
path: z.ZodString;
|
|
2405
2393
|
content: z.ZodString;
|
|
2406
2394
|
}, "strip", z.ZodTypeAny, {
|
|
2407
|
-
path: string;
|
|
2408
2395
|
type: "patch" | "file";
|
|
2396
|
+
path: string;
|
|
2409
2397
|
content: string;
|
|
2410
2398
|
}, {
|
|
2411
|
-
path: string;
|
|
2412
2399
|
type: "patch" | "file";
|
|
2400
|
+
path: string;
|
|
2413
2401
|
content: string;
|
|
2414
2402
|
}>, "many">;
|
|
2415
2403
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2417,12 +2405,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2417
2405
|
path: z.ZodString;
|
|
2418
2406
|
content: z.ZodString;
|
|
2419
2407
|
}, "strip", z.ZodTypeAny, {
|
|
2420
|
-
path: string;
|
|
2421
2408
|
type: "patch" | "file";
|
|
2409
|
+
path: string;
|
|
2422
2410
|
content: string;
|
|
2423
2411
|
}, {
|
|
2424
|
-
path: string;
|
|
2425
2412
|
type: "patch" | "file";
|
|
2413
|
+
path: string;
|
|
2426
2414
|
content: string;
|
|
2427
2415
|
}>, "many">;
|
|
2428
2416
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2439,20 +2427,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2439
2427
|
}, "strip", z.ZodTypeAny, {
|
|
2440
2428
|
type: "tool-call";
|
|
2441
2429
|
data: {
|
|
2442
|
-
id: string;
|
|
2443
2430
|
name: string;
|
|
2431
|
+
id: string;
|
|
2444
2432
|
input: Record<string, any>;
|
|
2445
2433
|
};
|
|
2446
2434
|
userInputId: string;
|
|
2447
2435
|
response: string;
|
|
2448
2436
|
changes: {
|
|
2449
|
-
path: string;
|
|
2450
2437
|
type: "patch" | "file";
|
|
2438
|
+
path: string;
|
|
2451
2439
|
content: string;
|
|
2452
2440
|
}[];
|
|
2453
2441
|
changesAlreadyApplied: {
|
|
2454
|
-
path: string;
|
|
2455
2442
|
type: "patch" | "file";
|
|
2443
|
+
path: string;
|
|
2456
2444
|
content: string;
|
|
2457
2445
|
}[];
|
|
2458
2446
|
addedFileVersions: {
|
|
@@ -2463,20 +2451,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2463
2451
|
}, {
|
|
2464
2452
|
type: "tool-call";
|
|
2465
2453
|
data: {
|
|
2466
|
-
id: string;
|
|
2467
2454
|
name: string;
|
|
2455
|
+
id: string;
|
|
2468
2456
|
input: Record<string, any>;
|
|
2469
2457
|
};
|
|
2470
2458
|
userInputId: string;
|
|
2471
2459
|
response: string;
|
|
2472
2460
|
changes: {
|
|
2473
|
-
path: string;
|
|
2474
2461
|
type: "patch" | "file";
|
|
2462
|
+
path: string;
|
|
2475
2463
|
content: string;
|
|
2476
2464
|
}[];
|
|
2477
2465
|
changesAlreadyApplied: {
|
|
2478
|
-
path: string;
|
|
2479
2466
|
type: "patch" | "file";
|
|
2467
|
+
path: string;
|
|
2480
2468
|
content: string;
|
|
2481
2469
|
}[];
|
|
2482
2470
|
addedFileVersions: {
|
|
@@ -2514,7 +2502,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2514
2502
|
type: z.ZodLiteral<"usage-response">;
|
|
2515
2503
|
usage: z.ZodNumber;
|
|
2516
2504
|
limit: z.ZodNumber;
|
|
2517
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
2518
2505
|
subscription_active: z.ZodBoolean;
|
|
2519
2506
|
next_quota_reset: z.ZodDate;
|
|
2520
2507
|
session_credits_used: z.ZodNumber;
|
|
@@ -2525,7 +2512,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2525
2512
|
subscription_active: boolean;
|
|
2526
2513
|
next_quota_reset: Date;
|
|
2527
2514
|
session_credits_used: number;
|
|
2528
|
-
referralLink?: string | undefined;
|
|
2529
2515
|
}, {
|
|
2530
2516
|
type: "init-response";
|
|
2531
2517
|
usage: number;
|
|
@@ -2533,12 +2519,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2533
2519
|
subscription_active: boolean;
|
|
2534
2520
|
next_quota_reset: Date;
|
|
2535
2521
|
session_credits_used: number;
|
|
2536
|
-
referralLink?: string | undefined;
|
|
2537
2522
|
}>, z.ZodObject<{
|
|
2538
2523
|
type: z.ZodLiteral<"usage-response">;
|
|
2539
2524
|
usage: z.ZodNumber;
|
|
2540
2525
|
limit: z.ZodNumber;
|
|
2541
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
2542
2526
|
subscription_active: z.ZodBoolean;
|
|
2543
2527
|
next_quota_reset: z.ZodDate;
|
|
2544
2528
|
session_credits_used: z.ZodNumber;
|
|
@@ -2549,7 +2533,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2549
2533
|
subscription_active: boolean;
|
|
2550
2534
|
next_quota_reset: Date;
|
|
2551
2535
|
session_credits_used: number;
|
|
2552
|
-
referralLink?: string | undefined;
|
|
2553
2536
|
}, {
|
|
2554
2537
|
type: "usage-response";
|
|
2555
2538
|
usage: number;
|
|
@@ -2557,7 +2540,6 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2557
2540
|
subscription_active: boolean;
|
|
2558
2541
|
next_quota_reset: Date;
|
|
2559
2542
|
session_credits_used: number;
|
|
2560
|
-
referralLink?: string | undefined;
|
|
2561
2543
|
}>, z.ZodObject<{
|
|
2562
2544
|
type: z.ZodLiteral<"message-cost-response">;
|
|
2563
2545
|
promptId: z.ZodString;
|
|
@@ -2574,11 +2556,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2574
2556
|
type: z.ZodLiteral<"action-error">;
|
|
2575
2557
|
message: z.ZodString;
|
|
2576
2558
|
}, "strip", z.ZodTypeAny, {
|
|
2577
|
-
message: string;
|
|
2578
2559
|
type: "action-error";
|
|
2579
|
-
}, {
|
|
2580
2560
|
message: string;
|
|
2561
|
+
}, {
|
|
2581
2562
|
type: "action-error";
|
|
2563
|
+
message: string;
|
|
2582
2564
|
}>, z.ZodObject<{
|
|
2583
2565
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2584
2566
|
commitMessage: z.ZodString;
|