codebuff 1.0.117 → 1.0.119
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 +1 -0
- package/dist/cli.js +15 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +16 -23
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +157 -49
- package/dist/common/constants.js +4 -4
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/schema.d.ts +63 -1
- package/dist/common/util/file.d.ts +38 -0
- package/dist/common/util/file.js +8 -0
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/string.d.ts +5 -0
- package/dist/common/util/string.js +10 -1
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/util/stripe.js +7 -7
- package/dist/common/util/stripe.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +410 -130
- package/dist/menu.js +2 -1
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +16 -0
- package/dist/project-files.js +10 -0
- package/dist/project-files.js.map +1 -1
- package/dist/update-codebuff.js +3 -1
- package/dist/update-codebuff.js.map +1 -1
- package/package.json +2 -2
- package/dist/common/scripts/update-subscriptions.d.ts +0 -1
- package/dist/common/scripts/update-subscriptions.js +0 -92
- package/dist/common/scripts/update-subscriptions.js.map +0 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -401,6 +401,28 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
401
401
|
}>;
|
|
402
402
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
403
403
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
404
|
+
systemInfo: z.ZodObject<{
|
|
405
|
+
platform: z.ZodString;
|
|
406
|
+
shell: z.ZodString;
|
|
407
|
+
nodeVersion: z.ZodString;
|
|
408
|
+
arch: z.ZodString;
|
|
409
|
+
homedir: z.ZodString;
|
|
410
|
+
cpus: z.ZodNumber;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
platform: string;
|
|
413
|
+
shell: string;
|
|
414
|
+
nodeVersion: string;
|
|
415
|
+
arch: string;
|
|
416
|
+
homedir: string;
|
|
417
|
+
cpus: number;
|
|
418
|
+
}, {
|
|
419
|
+
platform: string;
|
|
420
|
+
shell: string;
|
|
421
|
+
nodeVersion: string;
|
|
422
|
+
arch: string;
|
|
423
|
+
homedir: string;
|
|
424
|
+
cpus: number;
|
|
425
|
+
}>;
|
|
404
426
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
405
427
|
path: z.ZodString;
|
|
406
428
|
content: z.ZodString;
|
|
@@ -424,6 +446,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
424
446
|
};
|
|
425
447
|
changesSinceLastChat: Record<string, string>;
|
|
426
448
|
shellConfigFiles: Record<string, string>;
|
|
449
|
+
systemInfo: {
|
|
450
|
+
platform: string;
|
|
451
|
+
shell: string;
|
|
452
|
+
nodeVersion: string;
|
|
453
|
+
arch: string;
|
|
454
|
+
homedir: string;
|
|
455
|
+
cpus: number;
|
|
456
|
+
};
|
|
427
457
|
fileVersions: {
|
|
428
458
|
path: string;
|
|
429
459
|
content: string;
|
|
@@ -441,6 +471,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
441
471
|
};
|
|
442
472
|
changesSinceLastChat: Record<string, string>;
|
|
443
473
|
shellConfigFiles: Record<string, string>;
|
|
474
|
+
systemInfo: {
|
|
475
|
+
platform: string;
|
|
476
|
+
shell: string;
|
|
477
|
+
nodeVersion: string;
|
|
478
|
+
arch: string;
|
|
479
|
+
homedir: string;
|
|
480
|
+
cpus: number;
|
|
481
|
+
};
|
|
444
482
|
fileVersions: {
|
|
445
483
|
path: string;
|
|
446
484
|
content: string;
|
|
@@ -501,6 +539,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
501
539
|
};
|
|
502
540
|
changesSinceLastChat: Record<string, string>;
|
|
503
541
|
shellConfigFiles: Record<string, string>;
|
|
542
|
+
systemInfo: {
|
|
543
|
+
platform: string;
|
|
544
|
+
shell: string;
|
|
545
|
+
nodeVersion: string;
|
|
546
|
+
arch: string;
|
|
547
|
+
homedir: string;
|
|
548
|
+
cpus: number;
|
|
549
|
+
};
|
|
504
550
|
fileVersions: {
|
|
505
551
|
path: string;
|
|
506
552
|
content: string;
|
|
@@ -554,6 +600,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
554
600
|
};
|
|
555
601
|
changesSinceLastChat: Record<string, string>;
|
|
556
602
|
shellConfigFiles: Record<string, string>;
|
|
603
|
+
systemInfo: {
|
|
604
|
+
platform: string;
|
|
605
|
+
shell: string;
|
|
606
|
+
nodeVersion: string;
|
|
607
|
+
arch: string;
|
|
608
|
+
homedir: string;
|
|
609
|
+
cpus: number;
|
|
610
|
+
};
|
|
557
611
|
fileVersions: {
|
|
558
612
|
path: string;
|
|
559
613
|
content: string;
|
|
@@ -601,6 +655,28 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
601
655
|
}>;
|
|
602
656
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
603
657
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
658
|
+
systemInfo: z.ZodObject<{
|
|
659
|
+
platform: z.ZodString;
|
|
660
|
+
shell: z.ZodString;
|
|
661
|
+
nodeVersion: z.ZodString;
|
|
662
|
+
arch: z.ZodString;
|
|
663
|
+
homedir: z.ZodString;
|
|
664
|
+
cpus: z.ZodNumber;
|
|
665
|
+
}, "strip", z.ZodTypeAny, {
|
|
666
|
+
platform: string;
|
|
667
|
+
shell: string;
|
|
668
|
+
nodeVersion: string;
|
|
669
|
+
arch: string;
|
|
670
|
+
homedir: string;
|
|
671
|
+
cpus: number;
|
|
672
|
+
}, {
|
|
673
|
+
platform: string;
|
|
674
|
+
shell: string;
|
|
675
|
+
nodeVersion: string;
|
|
676
|
+
arch: string;
|
|
677
|
+
homedir: string;
|
|
678
|
+
cpus: number;
|
|
679
|
+
}>;
|
|
604
680
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
605
681
|
path: z.ZodString;
|
|
606
682
|
content: z.ZodString;
|
|
@@ -624,6 +700,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
624
700
|
};
|
|
625
701
|
changesSinceLastChat: Record<string, string>;
|
|
626
702
|
shellConfigFiles: Record<string, string>;
|
|
703
|
+
systemInfo: {
|
|
704
|
+
platform: string;
|
|
705
|
+
shell: string;
|
|
706
|
+
nodeVersion: string;
|
|
707
|
+
arch: string;
|
|
708
|
+
homedir: string;
|
|
709
|
+
cpus: number;
|
|
710
|
+
};
|
|
627
711
|
fileVersions: {
|
|
628
712
|
path: string;
|
|
629
713
|
content: string;
|
|
@@ -641,6 +725,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
641
725
|
};
|
|
642
726
|
changesSinceLastChat: Record<string, string>;
|
|
643
727
|
shellConfigFiles: Record<string, string>;
|
|
728
|
+
systemInfo: {
|
|
729
|
+
platform: string;
|
|
730
|
+
shell: string;
|
|
731
|
+
nodeVersion: string;
|
|
732
|
+
arch: string;
|
|
733
|
+
homedir: string;
|
|
734
|
+
cpus: number;
|
|
735
|
+
};
|
|
644
736
|
fileVersions: {
|
|
645
737
|
path: string;
|
|
646
738
|
content: string;
|
|
@@ -662,6 +754,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
662
754
|
};
|
|
663
755
|
changesSinceLastChat: Record<string, string>;
|
|
664
756
|
shellConfigFiles: Record<string, string>;
|
|
757
|
+
systemInfo: {
|
|
758
|
+
platform: string;
|
|
759
|
+
shell: string;
|
|
760
|
+
nodeVersion: string;
|
|
761
|
+
arch: string;
|
|
762
|
+
homedir: string;
|
|
763
|
+
cpus: number;
|
|
764
|
+
};
|
|
665
765
|
fileVersions: {
|
|
666
766
|
path: string;
|
|
667
767
|
content: string;
|
|
@@ -684,6 +784,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
684
784
|
};
|
|
685
785
|
changesSinceLastChat: Record<string, string>;
|
|
686
786
|
shellConfigFiles: Record<string, string>;
|
|
787
|
+
systemInfo: {
|
|
788
|
+
platform: string;
|
|
789
|
+
shell: string;
|
|
790
|
+
nodeVersion: string;
|
|
791
|
+
arch: string;
|
|
792
|
+
homedir: string;
|
|
793
|
+
cpus: number;
|
|
794
|
+
};
|
|
687
795
|
fileVersions: {
|
|
688
796
|
path: string;
|
|
689
797
|
content: string;
|
|
@@ -734,16 +842,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
734
842
|
fingerprintHash: z.ZodString;
|
|
735
843
|
}, "strip", z.ZodTypeAny, {
|
|
736
844
|
type: "clear-auth-token";
|
|
737
|
-
userId: string;
|
|
738
|
-
authToken: string;
|
|
739
845
|
fingerprintId: string;
|
|
846
|
+
authToken: string;
|
|
740
847
|
fingerprintHash: string;
|
|
848
|
+
userId: string;
|
|
741
849
|
}, {
|
|
742
850
|
type: "clear-auth-token";
|
|
743
|
-
userId: string;
|
|
744
|
-
authToken: string;
|
|
745
851
|
fingerprintId: string;
|
|
852
|
+
authToken: string;
|
|
746
853
|
fingerprintHash: string;
|
|
854
|
+
userId: string;
|
|
747
855
|
}>, z.ZodObject<{
|
|
748
856
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
749
857
|
fingerprintId: z.ZodString;
|
|
@@ -771,18 +879,18 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
771
879
|
session_credits_used: z.ZodNumber;
|
|
772
880
|
}, "strip", z.ZodTypeAny, {
|
|
773
881
|
type: "usage-response";
|
|
774
|
-
subscription_active: boolean;
|
|
775
|
-
next_quota_reset: Date;
|
|
776
882
|
usage: number;
|
|
777
883
|
limit: number;
|
|
884
|
+
subscription_active: boolean;
|
|
885
|
+
next_quota_reset: Date;
|
|
778
886
|
session_credits_used: number;
|
|
779
887
|
referralLink?: string | undefined;
|
|
780
888
|
}, {
|
|
781
889
|
type: "usage-response";
|
|
782
|
-
subscription_active: boolean;
|
|
783
|
-
next_quota_reset: Date;
|
|
784
890
|
usage: number;
|
|
785
891
|
limit: number;
|
|
892
|
+
subscription_active: boolean;
|
|
893
|
+
next_quota_reset: Date;
|
|
786
894
|
session_credits_used: number;
|
|
787
895
|
referralLink?: string | undefined;
|
|
788
896
|
}>;
|
|
@@ -799,18 +907,18 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
799
907
|
session_credits_used: z.ZodNumber;
|
|
800
908
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
801
909
|
type: "init-response";
|
|
802
|
-
subscription_active: boolean;
|
|
803
|
-
next_quota_reset: Date;
|
|
804
910
|
usage: number;
|
|
805
911
|
limit: number;
|
|
912
|
+
subscription_active: boolean;
|
|
913
|
+
next_quota_reset: Date;
|
|
806
914
|
session_credits_used: number;
|
|
807
915
|
referralLink?: string | undefined;
|
|
808
916
|
}, {
|
|
809
917
|
type: "init-response";
|
|
810
|
-
subscription_active: boolean;
|
|
811
|
-
next_quota_reset: Date;
|
|
812
918
|
usage: number;
|
|
813
919
|
limit: number;
|
|
920
|
+
subscription_active: boolean;
|
|
921
|
+
next_quota_reset: Date;
|
|
814
922
|
session_credits_used: number;
|
|
815
923
|
referralLink?: string | undefined;
|
|
816
924
|
}>;
|
|
@@ -857,21 +965,21 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
857
965
|
}>, "many">;
|
|
858
966
|
resetFileVersions: z.ZodBoolean;
|
|
859
967
|
}, {
|
|
860
|
-
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
861
|
-
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
862
968
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
863
969
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
864
970
|
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
971
|
+
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
972
|
+
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
865
973
|
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
866
974
|
}>, "strip", z.ZodTypeAny, {
|
|
867
975
|
type: "response-complete";
|
|
868
|
-
response: string;
|
|
869
976
|
userInputId: string;
|
|
870
977
|
changesAlreadyApplied: {
|
|
871
978
|
content: string;
|
|
872
979
|
type: "file" | "patch";
|
|
873
980
|
filePath: string;
|
|
874
981
|
}[];
|
|
982
|
+
response: string;
|
|
875
983
|
changes: {
|
|
876
984
|
content: string;
|
|
877
985
|
type: "file" | "patch";
|
|
@@ -882,21 +990,21 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
882
990
|
content: string;
|
|
883
991
|
}[];
|
|
884
992
|
resetFileVersions: boolean;
|
|
885
|
-
subscription_active?: boolean | undefined;
|
|
886
|
-
next_quota_reset?: Date | undefined;
|
|
887
993
|
usage?: number | undefined;
|
|
888
994
|
limit?: number | undefined;
|
|
889
995
|
referralLink?: string | undefined;
|
|
996
|
+
subscription_active?: boolean | undefined;
|
|
997
|
+
next_quota_reset?: Date | undefined;
|
|
890
998
|
session_credits_used?: number | undefined;
|
|
891
999
|
}, {
|
|
892
1000
|
type: "response-complete";
|
|
893
|
-
response: string;
|
|
894
1001
|
userInputId: string;
|
|
895
1002
|
changesAlreadyApplied: {
|
|
896
1003
|
content: string;
|
|
897
1004
|
type: "file" | "patch";
|
|
898
1005
|
filePath: string;
|
|
899
1006
|
}[];
|
|
1007
|
+
response: string;
|
|
900
1008
|
changes: {
|
|
901
1009
|
content: string;
|
|
902
1010
|
type: "file" | "patch";
|
|
@@ -907,11 +1015,11 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
907
1015
|
content: string;
|
|
908
1016
|
}[];
|
|
909
1017
|
resetFileVersions: boolean;
|
|
910
|
-
subscription_active?: boolean | undefined;
|
|
911
|
-
next_quota_reset?: Date | undefined;
|
|
912
1018
|
usage?: number | undefined;
|
|
913
1019
|
limit?: number | undefined;
|
|
914
1020
|
referralLink?: string | undefined;
|
|
1021
|
+
subscription_active?: boolean | undefined;
|
|
1022
|
+
next_quota_reset?: Date | undefined;
|
|
915
1023
|
session_credits_used?: number | undefined;
|
|
916
1024
|
}>;
|
|
917
1025
|
export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -968,21 +1076,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
968
1076
|
}>, "many">;
|
|
969
1077
|
resetFileVersions: z.ZodBoolean;
|
|
970
1078
|
}, {
|
|
971
|
-
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
972
|
-
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
973
1079
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
974
1080
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
975
1081
|
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1082
|
+
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
1083
|
+
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
976
1084
|
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
977
1085
|
}>, "strip", z.ZodTypeAny, {
|
|
978
1086
|
type: "response-complete";
|
|
979
|
-
response: string;
|
|
980
1087
|
userInputId: string;
|
|
981
1088
|
changesAlreadyApplied: {
|
|
982
1089
|
content: string;
|
|
983
1090
|
type: "file" | "patch";
|
|
984
1091
|
filePath: string;
|
|
985
1092
|
}[];
|
|
1093
|
+
response: string;
|
|
986
1094
|
changes: {
|
|
987
1095
|
content: string;
|
|
988
1096
|
type: "file" | "patch";
|
|
@@ -993,21 +1101,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
993
1101
|
content: string;
|
|
994
1102
|
}[];
|
|
995
1103
|
resetFileVersions: boolean;
|
|
996
|
-
subscription_active?: boolean | undefined;
|
|
997
|
-
next_quota_reset?: Date | undefined;
|
|
998
1104
|
usage?: number | undefined;
|
|
999
1105
|
limit?: number | undefined;
|
|
1000
1106
|
referralLink?: string | undefined;
|
|
1107
|
+
subscription_active?: boolean | undefined;
|
|
1108
|
+
next_quota_reset?: Date | undefined;
|
|
1001
1109
|
session_credits_used?: number | undefined;
|
|
1002
1110
|
}, {
|
|
1003
1111
|
type: "response-complete";
|
|
1004
|
-
response: string;
|
|
1005
1112
|
userInputId: string;
|
|
1006
1113
|
changesAlreadyApplied: {
|
|
1007
1114
|
content: string;
|
|
1008
1115
|
type: "file" | "patch";
|
|
1009
1116
|
filePath: string;
|
|
1010
1117
|
}[];
|
|
1118
|
+
response: string;
|
|
1011
1119
|
changes: {
|
|
1012
1120
|
content: string;
|
|
1013
1121
|
type: "file" | "patch";
|
|
@@ -1018,11 +1126,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1018
1126
|
content: string;
|
|
1019
1127
|
}[];
|
|
1020
1128
|
resetFileVersions: boolean;
|
|
1021
|
-
subscription_active?: boolean | undefined;
|
|
1022
|
-
next_quota_reset?: Date | undefined;
|
|
1023
1129
|
usage?: number | undefined;
|
|
1024
1130
|
limit?: number | undefined;
|
|
1025
1131
|
referralLink?: string | undefined;
|
|
1132
|
+
subscription_active?: boolean | undefined;
|
|
1133
|
+
next_quota_reset?: Date | undefined;
|
|
1026
1134
|
session_credits_used?: number | undefined;
|
|
1027
1135
|
}>, z.ZodObject<{
|
|
1028
1136
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -1089,18 +1197,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1089
1197
|
resetFileVersions: z.ZodBoolean;
|
|
1090
1198
|
}, "strip", z.ZodTypeAny, {
|
|
1091
1199
|
type: "tool-call";
|
|
1092
|
-
data: {
|
|
1093
|
-
name: string;
|
|
1094
|
-
id: string;
|
|
1095
|
-
input: Record<string, any>;
|
|
1096
|
-
};
|
|
1097
|
-
response: string;
|
|
1098
1200
|
userInputId: string;
|
|
1099
1201
|
changesAlreadyApplied: {
|
|
1100
1202
|
content: string;
|
|
1101
1203
|
type: "file" | "patch";
|
|
1102
1204
|
filePath: string;
|
|
1103
1205
|
}[];
|
|
1206
|
+
response: string;
|
|
1104
1207
|
changes: {
|
|
1105
1208
|
content: string;
|
|
1106
1209
|
type: "file" | "patch";
|
|
@@ -1111,20 +1214,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1111
1214
|
content: string;
|
|
1112
1215
|
}[];
|
|
1113
1216
|
resetFileVersions: boolean;
|
|
1114
|
-
}, {
|
|
1115
|
-
type: "tool-call";
|
|
1116
1217
|
data: {
|
|
1117
1218
|
name: string;
|
|
1118
1219
|
id: string;
|
|
1119
1220
|
input: Record<string, any>;
|
|
1120
1221
|
};
|
|
1121
|
-
|
|
1222
|
+
}, {
|
|
1223
|
+
type: "tool-call";
|
|
1122
1224
|
userInputId: string;
|
|
1123
1225
|
changesAlreadyApplied: {
|
|
1124
1226
|
content: string;
|
|
1125
1227
|
type: "file" | "patch";
|
|
1126
1228
|
filePath: string;
|
|
1127
1229
|
}[];
|
|
1230
|
+
response: string;
|
|
1128
1231
|
changes: {
|
|
1129
1232
|
content: string;
|
|
1130
1233
|
type: "file" | "patch";
|
|
@@ -1135,6 +1238,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1135
1238
|
content: string;
|
|
1136
1239
|
}[];
|
|
1137
1240
|
resetFileVersions: boolean;
|
|
1241
|
+
data: {
|
|
1242
|
+
name: string;
|
|
1243
|
+
id: string;
|
|
1244
|
+
input: Record<string, any>;
|
|
1245
|
+
};
|
|
1138
1246
|
}>, z.ZodObject<{
|
|
1139
1247
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
1140
1248
|
userInputId: z.ZodString;
|
|
@@ -1171,18 +1279,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1171
1279
|
session_credits_used: z.ZodNumber;
|
|
1172
1280
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
1173
1281
|
type: "init-response";
|
|
1174
|
-
subscription_active: boolean;
|
|
1175
|
-
next_quota_reset: Date;
|
|
1176
1282
|
usage: number;
|
|
1177
1283
|
limit: number;
|
|
1284
|
+
subscription_active: boolean;
|
|
1285
|
+
next_quota_reset: Date;
|
|
1178
1286
|
session_credits_used: number;
|
|
1179
1287
|
referralLink?: string | undefined;
|
|
1180
1288
|
}, {
|
|
1181
1289
|
type: "init-response";
|
|
1182
|
-
subscription_active: boolean;
|
|
1183
|
-
next_quota_reset: Date;
|
|
1184
1290
|
usage: number;
|
|
1185
1291
|
limit: number;
|
|
1292
|
+
subscription_active: boolean;
|
|
1293
|
+
next_quota_reset: Date;
|
|
1186
1294
|
session_credits_used: number;
|
|
1187
1295
|
referralLink?: string | undefined;
|
|
1188
1296
|
}>, z.ZodObject<{
|
|
@@ -1198,15 +1306,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1198
1306
|
email: string;
|
|
1199
1307
|
name: string | null;
|
|
1200
1308
|
id: string;
|
|
1201
|
-
authToken: string;
|
|
1202
1309
|
fingerprintId: string;
|
|
1310
|
+
authToken: string;
|
|
1203
1311
|
fingerprintHash: string;
|
|
1204
1312
|
}, {
|
|
1205
1313
|
email: string;
|
|
1206
1314
|
name: string | null;
|
|
1207
1315
|
id: string;
|
|
1208
|
-
authToken: string;
|
|
1209
1316
|
fingerprintId: string;
|
|
1317
|
+
authToken: string;
|
|
1210
1318
|
fingerprintHash: string;
|
|
1211
1319
|
}>>;
|
|
1212
1320
|
message: z.ZodString;
|
|
@@ -1217,8 +1325,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1217
1325
|
email: string;
|
|
1218
1326
|
name: string | null;
|
|
1219
1327
|
id: string;
|
|
1220
|
-
authToken: string;
|
|
1221
1328
|
fingerprintId: string;
|
|
1329
|
+
authToken: string;
|
|
1222
1330
|
fingerprintHash: string;
|
|
1223
1331
|
} | undefined;
|
|
1224
1332
|
}, {
|
|
@@ -1228,8 +1336,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1228
1336
|
email: string;
|
|
1229
1337
|
name: string | null;
|
|
1230
1338
|
id: string;
|
|
1231
|
-
authToken: string;
|
|
1232
1339
|
fingerprintId: string;
|
|
1340
|
+
authToken: string;
|
|
1233
1341
|
fingerprintHash: string;
|
|
1234
1342
|
} | undefined;
|
|
1235
1343
|
}>, z.ZodObject<{
|
|
@@ -1257,18 +1365,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1257
1365
|
session_credits_used: z.ZodNumber;
|
|
1258
1366
|
}, "strip", z.ZodTypeAny, {
|
|
1259
1367
|
type: "usage-response";
|
|
1260
|
-
subscription_active: boolean;
|
|
1261
|
-
next_quota_reset: Date;
|
|
1262
1368
|
usage: number;
|
|
1263
1369
|
limit: number;
|
|
1370
|
+
subscription_active: boolean;
|
|
1371
|
+
next_quota_reset: Date;
|
|
1264
1372
|
session_credits_used: number;
|
|
1265
1373
|
referralLink?: string | undefined;
|
|
1266
1374
|
}, {
|
|
1267
1375
|
type: "usage-response";
|
|
1268
|
-
subscription_active: boolean;
|
|
1269
|
-
next_quota_reset: Date;
|
|
1270
1376
|
usage: number;
|
|
1271
1377
|
limit: number;
|
|
1378
|
+
subscription_active: boolean;
|
|
1379
|
+
next_quota_reset: Date;
|
|
1272
1380
|
session_credits_used: number;
|
|
1273
1381
|
referralLink?: string | undefined;
|
|
1274
1382
|
}>, z.ZodObject<{
|
package/dist/common/constants.js
CHANGED
|
@@ -74,14 +74,14 @@ exports.CREDITS_USAGE_LIMITS = process.env.NEXT_PUBLIC_ENVIRONMENT === 'local'
|
|
|
74
74
|
? {
|
|
75
75
|
ANON: 1_000_000,
|
|
76
76
|
FREE: 2_500_000,
|
|
77
|
-
PAID:
|
|
78
|
-
PRO_PLUS:
|
|
77
|
+
PAID: 5_000_000,
|
|
78
|
+
PRO_PLUS: 27_500_000,
|
|
79
79
|
}
|
|
80
80
|
: {
|
|
81
81
|
ANON: 500,
|
|
82
82
|
FREE: 1_000,
|
|
83
|
-
PAID:
|
|
84
|
-
PRO_PLUS:
|
|
83
|
+
PAID: 5_000,
|
|
84
|
+
PRO_PLUS: 27_500,
|
|
85
85
|
};
|
|
86
86
|
exports.CREDITS_REFERRAL_BONUS = 500;
|
|
87
87
|
exports.claudeModels = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAErB,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,kBAAkB,GAAG,GAAG,GAAG,cAAc,CAAA;AACzC,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,SAAS;IACT,cAAc;IACd,MAAM;IACN,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,aAAa;IACb,OAAO;IACP,WAAW;IACX,eAAe;IACf,aAAa;IACb,aAAa;IACb,OAAO;CACR,CAAA;AAEY,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;IACN,IAAI;IACJ,OAAO;IACP,SAAS;CACV,CAAA;AAEY,QAAA,6BAA6B,GAAG,CAAC,CAAA;AACjC,QAAA,QAAQ,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAA;AAGnC,QAAA,oBAAoB,GAC/B,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,OAAO;IAC7C,CAAC,CAAC;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAErB,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,kBAAkB,GAAG,GAAG,GAAG,cAAc,CAAA;AACzC,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,SAAS;IACT,cAAc;IACd,MAAM;IACN,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,aAAa;IACb,OAAO;IACP,WAAW;IACX,eAAe;IACf,aAAa;IACb,aAAa;IACb,OAAO;CACR,CAAA;AAEY,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;IACN,IAAI;IACJ,OAAO;IACP,SAAS;CACV,CAAA;AAEY,QAAA,6BAA6B,GAAG,CAAC,CAAA;AACjC,QAAA,QAAQ,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAA;AAGnC,QAAA,oBAAoB,GAC/B,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,OAAO;IAC7C,CAAC,CAAC;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;KACrB;IACH,CAAC,CAAC;QACE,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,MAAM;KACjB,CAAA;AACM,QAAA,sBAAsB,GAAG,GAAG,CAAA;AAE5B,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAE,4BAA4B;IACpC,KAAK,EAAE,2BAA2B;CAC1B,CAAA;AAEG,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,wBAAwB;CAC3B,CAAA;AAEG,QAAA,MAAM,GAAG;IACpB,GAAG,oBAAY;IACf,GAAG,oBAAY;CAChB,CAAA;AAEY,QAAA,YAAY,GAAG,cAAc,CAAA"}
|