codebuff 1.0.326 → 1.0.328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkpoints/file-manager.js +136 -84
- package/dist/checkpoints/file-manager.js.map +1 -1
- package/dist/cli-handlers/checkpoint.js +4 -3
- package/dist/cli-handlers/checkpoint.js.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/code-map/test-langs/test.d.ts +12 -0
- package/dist/code-map/test-langs/test.d.ts.map +1 -0
- package/dist/code-map/test-langs/test.js +23 -0
- package/dist/code-map/test-langs/test.js.map +1 -0
- package/dist/common/actions.d.ts +58 -58
- package/dist/common/analytics.d.ts +1 -1
- package/dist/common/browser-actions.d.ts +277 -277
- package/dist/common/db/env.d.mts +4 -0
- package/dist/common/db/env.mjs +26 -0
- package/dist/common/db/env.mjs.map +1 -0
- package/dist/common/env.d.mts +13 -0
- package/dist/common/env.mjs +43 -0
- package/dist/common/env.mjs.map +1 -0
- package/dist/common/src/actions.d.ts +2673 -0
- package/dist/common/src/actions.d.ts.map +1 -0
- package/dist/common/src/actions.js +167 -0
- package/dist/common/src/actions.js.map +1 -0
- package/dist/common/src/analytics.d.ts +6 -0
- package/dist/common/src/analytics.d.ts.map +1 -0
- package/dist/common/src/analytics.js +60 -0
- package/dist/common/src/analytics.js.map +1 -0
- package/dist/common/src/api-keys/constants.d.ts +9 -0
- package/dist/common/src/api-keys/constants.d.ts.map +1 -0
- package/dist/common/src/api-keys/constants.js +26 -0
- package/dist/common/src/api-keys/constants.js.map +1 -0
- package/dist/common/src/api-keys/crypto.d.ts +25 -0
- package/dist/common/src/api-keys/crypto.d.ts.map +1 -0
- package/dist/common/src/api-keys/crypto.js +186 -0
- package/dist/common/src/api-keys/crypto.js.map +1 -0
- package/dist/common/src/browser-actions.d.ts +4416 -0
- package/dist/common/src/browser-actions.d.ts.map +1 -0
- package/dist/common/src/browser-actions.js +343 -0
- package/dist/common/src/browser-actions.js.map +1 -0
- package/dist/common/src/constants/analytics-events.d.ts +28 -0
- package/dist/common/src/constants/analytics-events.d.ts.map +1 -0
- package/dist/common/src/constants/analytics-events.js +36 -0
- package/dist/common/src/constants/analytics-events.js.map +1 -0
- package/dist/common/src/constants/grant-priorities.d.ts +3 -0
- package/dist/common/src/constants/grant-priorities.d.ts.map +1 -0
- package/dist/common/src/constants/grant-priorities.js +11 -0
- package/dist/common/src/constants/grant-priorities.js.map +1 -0
- package/dist/common/src/constants/tools.d.ts +20 -0
- package/dist/common/src/constants/tools.d.ts.map +1 -0
- package/dist/common/src/constants/tools.js +47 -0
- package/dist/common/src/constants/tools.js.map +1 -0
- package/dist/common/src/constants.d.ts +152 -0
- package/dist/common/src/constants.d.ts.map +1 -0
- package/dist/common/src/constants.js +222 -0
- package/dist/common/src/constants.js.map +1 -0
- package/dist/common/src/db/drizzle.config.d.ts +3 -0
- package/dist/common/src/db/drizzle.config.d.ts.map +1 -0
- package/dist/common/src/db/drizzle.config.js +17 -0
- package/dist/common/src/db/drizzle.config.js.map +1 -0
- package/dist/common/src/db/index.d.ts +7 -0
- package/dist/common/src/db/index.d.ts.map +1 -0
- package/dist/common/src/db/index.js +35 -0
- package/dist/common/src/db/index.js.map +1 -0
- package/dist/common/src/db/schema.d.ts +2289 -0
- package/dist/common/src/db/schema.d.ts.map +1 -0
- package/dist/common/src/db/schema.js +296 -0
- package/dist/common/src/db/schema.js.map +1 -0
- package/dist/common/src/db/transaction.d.ts +13 -0
- package/dist/common/src/db/transaction.d.ts.map +1 -0
- package/dist/common/src/db/transaction.js +36 -0
- package/dist/common/src/db/transaction.js.map +1 -0
- package/dist/common/src/json-config/__tests__/constants.test.d.ts +2 -0
- package/dist/common/src/json-config/__tests__/constants.test.d.ts.map +1 -0
- package/dist/common/src/json-config/__tests__/constants.test.js +273 -0
- package/dist/common/src/json-config/__tests__/constants.test.js.map +1 -0
- package/dist/common/src/json-config/__tests__/stringify-schema.test.d.ts +2 -0
- package/dist/common/src/json-config/__tests__/stringify-schema.test.d.ts.map +1 -0
- package/dist/common/src/json-config/__tests__/stringify-schema.test.js +66 -0
- package/dist/common/src/json-config/__tests__/stringify-schema.test.js.map +1 -0
- package/dist/common/src/json-config/constants.d.ts +138 -0
- package/dist/common/src/json-config/constants.d.ts.map +1 -0
- package/dist/common/src/json-config/constants.js +78 -0
- package/dist/common/src/json-config/constants.js.map +1 -0
- package/dist/common/src/json-config/stringify-schema.d.ts +10 -0
- package/dist/common/src/json-config/stringify-schema.d.ts.map +1 -0
- package/dist/common/src/json-config/stringify-schema.js +131 -0
- package/dist/common/src/json-config/stringify-schema.js.map +1 -0
- package/dist/common/src/project-file-tree.d.ts +12 -0
- package/dist/common/src/project-file-tree.d.ts.map +1 -0
- package/dist/common/src/project-file-tree.js +212 -0
- package/dist/common/src/project-file-tree.js.map +1 -0
- package/dist/common/src/types/agent-state.d.ts +227 -0
- package/dist/common/src/types/agent-state.d.ts.map +1 -0
- package/dist/common/src/types/agent-state.js +34 -0
- package/dist/common/src/types/agent-state.js.map +1 -0
- package/dist/common/src/types/grant.d.ts +3 -0
- package/dist/common/src/types/grant.d.ts.map +1 -0
- package/dist/common/src/types/grant.js +11 -0
- package/dist/common/src/types/grant.js.map +1 -0
- package/dist/common/src/types/message.d.ts +320 -0
- package/dist/common/src/types/message.d.ts.map +1 -0
- package/dist/common/src/types/message.js +60 -0
- package/dist/common/src/types/message.js.map +1 -0
- package/dist/common/src/types/organization.d.ts +106 -0
- package/dist/common/src/types/organization.d.ts.map +1 -0
- package/dist/common/src/types/organization.js +3 -0
- package/dist/common/src/types/organization.js.map +1 -0
- package/dist/common/src/types/referral.d.ts +3 -0
- package/dist/common/src/types/referral.d.ts.map +1 -0
- package/dist/common/src/types/referral.js +5 -0
- package/dist/common/src/types/referral.js.map +1 -0
- package/dist/common/src/types/tools.d.ts +6 -0
- package/dist/common/src/types/tools.d.ts.map +1 -0
- package/dist/common/src/types/tools.js +3 -0
- package/dist/common/src/types/tools.js.map +1 -0
- package/dist/common/src/types/usage.d.ts +41 -0
- package/dist/common/src/types/usage.d.ts.map +1 -0
- package/dist/common/src/types/usage.js +16 -0
- package/dist/common/src/types/usage.js.map +1 -0
- package/dist/common/src/util/__tests__/messages.test.d.ts +2 -0
- package/dist/common/src/util/__tests__/messages.test.d.ts.map +1 -0
- package/dist/common/src/util/__tests__/messages.test.js +70 -0
- package/dist/common/src/util/__tests__/messages.test.js.map +1 -0
- package/dist/common/src/util/__tests__/saxy.test.d.ts +2 -0
- package/dist/common/src/util/__tests__/saxy.test.d.ts.map +1 -0
- package/dist/common/src/util/__tests__/saxy.test.js +906 -0
- package/dist/common/src/util/__tests__/saxy.test.js.map +1 -0
- package/dist/common/src/util/__tests__/string.test.d.ts +2 -0
- package/dist/common/src/util/__tests__/string.test.d.ts.map +1 -0
- package/dist/common/src/util/__tests__/string.test.js +82 -0
- package/dist/common/src/util/__tests__/string.test.js.map +1 -0
- package/dist/common/src/util/array.d.ts +7 -0
- package/dist/common/src/util/array.d.ts.map +1 -0
- package/dist/common/src/util/array.js +32 -0
- package/dist/common/src/util/array.js.map +1 -0
- package/dist/common/src/util/changes.d.ts +9 -0
- package/dist/common/src/util/changes.d.ts.map +1 -0
- package/dist/common/src/util/changes.js +87 -0
- package/dist/common/src/util/changes.js.map +1 -0
- package/dist/common/src/util/credentials.d.ts +26 -0
- package/dist/common/src/util/credentials.d.ts.map +1 -0
- package/dist/common/src/util/credentials.js +24 -0
- package/dist/common/src/util/credentials.js.map +1 -0
- package/dist/common/src/util/currency.d.ts +15 -0
- package/dist/common/src/util/currency.d.ts.map +1 -0
- package/dist/common/src/util/currency.js +23 -0
- package/dist/common/src/util/currency.js.map +1 -0
- package/dist/common/src/util/dates.d.ts +11 -0
- package/dist/common/src/util/dates.d.ts.map +1 -0
- package/dist/common/src/util/dates.js +22 -0
- package/dist/common/src/util/dates.js.map +1 -0
- package/dist/common/src/util/file.d.ts +163 -0
- package/dist/common/src/util/file.d.ts.map +1 -0
- package/dist/common/src/util/file.js +192 -0
- package/dist/common/src/util/file.js.map +1 -0
- package/dist/common/src/util/git.d.ts +7 -0
- package/dist/common/src/util/git.d.ts.map +1 -0
- package/dist/common/src/util/git.js +81 -0
- package/dist/common/src/util/git.js.map +1 -0
- package/dist/common/src/util/logger.d.ts +9 -0
- package/dist/common/src/util/logger.d.ts.map +1 -0
- package/dist/common/src/util/logger.js +52 -0
- package/dist/common/src/util/logger.js.map +1 -0
- package/dist/common/src/util/lru-cache.d.ts +31 -0
- package/dist/common/src/util/lru-cache.d.ts.map +1 -0
- package/dist/common/src/util/lru-cache.js +68 -0
- package/dist/common/src/util/lru-cache.js.map +1 -0
- package/dist/common/src/util/messages.d.ts +12 -0
- package/dist/common/src/util/messages.d.ts.map +1 -0
- package/dist/common/src/util/messages.js +81 -0
- package/dist/common/src/util/messages.js.map +1 -0
- package/dist/common/src/util/min-heap.d.ts +16 -0
- package/dist/common/src/util/min-heap.d.ts.map +1 -0
- package/dist/common/src/util/min-heap.js +73 -0
- package/dist/common/src/util/min-heap.js.map +1 -0
- package/dist/common/src/util/object.d.ts +19 -0
- package/dist/common/src/util/object.d.ts.map +1 -0
- package/dist/common/src/util/object.js +91 -0
- package/dist/common/src/util/object.js.map +1 -0
- package/dist/common/src/util/patch.d.ts +2 -0
- package/dist/common/src/util/patch.d.ts.map +1 -0
- package/dist/common/src/util/patch.js +215 -0
- package/dist/common/src/util/patch.js.map +1 -0
- package/dist/common/src/util/promise.d.ts +17 -0
- package/dist/common/src/util/promise.d.ts.map +1 -0
- package/dist/common/src/util/promise.js +51 -0
- package/dist/common/src/util/promise.js.map +1 -0
- package/dist/common/src/util/random.d.ts +2 -0
- package/dist/common/src/util/random.d.ts.map +1 -0
- package/dist/common/src/util/random.js +17 -0
- package/dist/common/src/util/random.js.map +1 -0
- package/dist/common/src/util/referral.d.ts +2 -0
- package/dist/common/src/util/referral.d.ts.map +1 -0
- package/dist/common/src/util/referral.js +6 -0
- package/dist/common/src/util/referral.js.map +1 -0
- package/dist/common/src/util/saxy.d.ts +179 -0
- package/dist/common/src/util/saxy.d.ts.map +1 -0
- package/dist/common/src/util/saxy.js +548 -0
- package/dist/common/src/util/saxy.js.map +1 -0
- package/dist/common/src/util/string.d.ts +80 -0
- package/dist/common/src/util/string.d.ts.map +1 -0
- package/dist/common/src/util/string.js +264 -0
- package/dist/common/src/util/string.js.map +1 -0
- package/dist/common/src/util/stripe.d.ts +4 -0
- package/dist/common/src/util/stripe.d.ts.map +1 -0
- package/dist/common/src/util/stripe.js +22 -0
- package/dist/common/src/util/stripe.js.map +1 -0
- package/dist/common/src/util/sync-failure.d.ts +2 -0
- package/dist/common/src/util/sync-failure.d.ts.map +1 -0
- package/dist/common/src/util/sync-failure.js +57 -0
- package/dist/common/src/util/sync-failure.js.map +1 -0
- package/dist/common/src/websockets/websocket-client.d.ts +43 -0
- package/dist/common/src/websockets/websocket-client.d.ts.map +1 -0
- package/dist/common/src/websockets/websocket-client.js +216 -0
- package/dist/common/src/websockets/websocket-client.js.map +1 -0
- package/dist/common/src/websockets/websocket-schema.d.ts +5159 -0
- package/dist/common/src/websockets/websocket-schema.d.ts.map +1 -0
- package/dist/common/src/websockets/websocket-schema.js +55 -0
- package/dist/common/src/websockets/websocket-schema.js.map +1 -0
- package/dist/common/tsconfig.tsbuildinfo +1 -0
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/util/string.d.ts +4 -4
- package/dist/common/util/string.d.ts.map +1 -1
- package/dist/common/util/string.js +18 -7
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +134 -134
- package/dist/index.js +6 -6
- package/dist/project-files.js +6 -1
- package/dist/project-files.js.map +1 -1
- package/dist/terminal/base.d.ts +1 -0
- package/dist/terminal/base.js +43 -48
- package/dist/terminal/base.js.map +1 -1
- package/dist/tool-handlers.js +1 -1
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/spinner.d.ts +2 -2
- package/dist/utils/spinner.js +4 -13
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/tool-renderers.d.ts +5 -5
- package/dist/utils/tool-renderers.js +6 -3
- package/dist/utils/tool-renderers.js.map +1 -1
- package/dist/utils/xml-stream-parser.js +20 -5
- package/dist/utils/xml-stream-parser.js.map +1 -1
- package/package.json +1 -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
|
+
type: "patch" | "file";
|
|
7
8
|
path: string;
|
|
8
|
-
type: "file" | "patch";
|
|
9
9
|
content: string;
|
|
10
10
|
}, {
|
|
11
|
+
type: "patch" | "file";
|
|
11
12
|
path: string;
|
|
12
|
-
type: "file" | "patch";
|
|
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
|
+
type: "patch" | "file";
|
|
21
22
|
path: string;
|
|
22
|
-
type: "file" | "patch";
|
|
23
23
|
content: string;
|
|
24
24
|
}, {
|
|
25
|
+
type: "patch" | "file";
|
|
25
26
|
path: string;
|
|
26
|
-
type: "file" | "patch";
|
|
27
27
|
content: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
@@ -810,6 +810,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
810
810
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
811
811
|
}, "strip", z.ZodTypeAny, {
|
|
812
812
|
type: "init";
|
|
813
|
+
fingerprintId: string;
|
|
813
814
|
fileContext: {
|
|
814
815
|
currentWorkingDirectory: string;
|
|
815
816
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -838,11 +839,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
838
839
|
content: string;
|
|
839
840
|
}[][] | undefined;
|
|
840
841
|
};
|
|
841
|
-
fingerprintId: string;
|
|
842
842
|
authToken?: string | undefined;
|
|
843
843
|
repoUrl?: string | undefined;
|
|
844
844
|
}, {
|
|
845
845
|
type: "init";
|
|
846
|
+
fingerprintId: string;
|
|
846
847
|
fileContext: {
|
|
847
848
|
currentWorkingDirectory: string;
|
|
848
849
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -871,7 +872,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
871
872
|
content: string;
|
|
872
873
|
}[][] | undefined;
|
|
873
874
|
};
|
|
874
|
-
fingerprintId: string;
|
|
875
875
|
authToken?: string | undefined;
|
|
876
876
|
repoUrl?: string | undefined;
|
|
877
877
|
}>, z.ZodObject<{
|
|
@@ -899,17 +899,17 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
899
899
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
900
900
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
901
901
|
}, "strip", z.ZodTypeAny, {
|
|
902
|
+
next_quota_reset: Date | null;
|
|
902
903
|
type: "usage-response";
|
|
903
904
|
usage: number;
|
|
904
905
|
remainingBalance: number;
|
|
905
|
-
next_quota_reset: Date | null;
|
|
906
906
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
907
907
|
autoTopupAdded?: number | undefined;
|
|
908
908
|
}, {
|
|
909
|
+
next_quota_reset: Date | null;
|
|
909
910
|
type: "usage-response";
|
|
910
911
|
usage: number;
|
|
911
912
|
remainingBalance: number;
|
|
912
|
-
next_quota_reset: Date | null;
|
|
913
913
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
914
914
|
autoTopupAdded?: number | undefined;
|
|
915
915
|
}>;
|
|
@@ -924,17 +924,17 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
924
924
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
925
925
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
926
926
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
927
|
+
next_quota_reset: Date | null;
|
|
927
928
|
type: "init-response";
|
|
928
929
|
usage: number;
|
|
929
930
|
remainingBalance: number;
|
|
930
|
-
next_quota_reset: Date | null;
|
|
931
931
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
932
932
|
autoTopupAdded?: number | undefined;
|
|
933
933
|
}, {
|
|
934
|
+
next_quota_reset: Date | null;
|
|
934
935
|
type: "init-response";
|
|
935
936
|
usage: number;
|
|
936
937
|
remainingBalance: number;
|
|
937
|
-
next_quota_reset: Date | null;
|
|
938
938
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
939
939
|
autoTopupAdded?: number | undefined;
|
|
940
940
|
}>;
|
|
@@ -948,12 +948,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
948
948
|
path: z.ZodString;
|
|
949
949
|
content: z.ZodString;
|
|
950
950
|
}, "strip", z.ZodTypeAny, {
|
|
951
|
+
type: "patch" | "file";
|
|
951
952
|
path: string;
|
|
952
|
-
type: "file" | "patch";
|
|
953
953
|
content: string;
|
|
954
954
|
}, {
|
|
955
|
+
type: "patch" | "file";
|
|
955
956
|
path: string;
|
|
956
|
-
type: "file" | "patch";
|
|
957
957
|
content: string;
|
|
958
958
|
}>, "many">;
|
|
959
959
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -961,12 +961,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
961
961
|
path: z.ZodString;
|
|
962
962
|
content: z.ZodString;
|
|
963
963
|
}, "strip", z.ZodTypeAny, {
|
|
964
|
+
type: "patch" | "file";
|
|
964
965
|
path: string;
|
|
965
|
-
type: "file" | "patch";
|
|
966
966
|
content: string;
|
|
967
967
|
}, {
|
|
968
|
+
type: "patch" | "file";
|
|
968
969
|
path: string;
|
|
969
|
-
type: "file" | "patch";
|
|
970
970
|
content: string;
|
|
971
971
|
}>, "many">;
|
|
972
972
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -981,23 +981,23 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
981
981
|
}>, "many">;
|
|
982
982
|
resetFileVersions: z.ZodBoolean;
|
|
983
983
|
}, {
|
|
984
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
984
985
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
985
986
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
986
987
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
987
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
988
988
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
989
989
|
}>, "strip", z.ZodTypeAny, {
|
|
990
990
|
type: "response-complete";
|
|
991
|
-
userInputId: string;
|
|
992
991
|
response: string;
|
|
992
|
+
userInputId: string;
|
|
993
993
|
changes: {
|
|
994
|
+
type: "patch" | "file";
|
|
994
995
|
path: string;
|
|
995
|
-
type: "file" | "patch";
|
|
996
996
|
content: string;
|
|
997
997
|
}[];
|
|
998
998
|
changesAlreadyApplied: {
|
|
999
|
+
type: "patch" | "file";
|
|
999
1000
|
path: string;
|
|
1000
|
-
type: "file" | "patch";
|
|
1001
1001
|
content: string;
|
|
1002
1002
|
}[];
|
|
1003
1003
|
addedFileVersions: {
|
|
@@ -1005,23 +1005,23 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1005
1005
|
content: string;
|
|
1006
1006
|
}[];
|
|
1007
1007
|
resetFileVersions: boolean;
|
|
1008
|
+
next_quota_reset?: Date | null | undefined;
|
|
1008
1009
|
usage?: number | undefined;
|
|
1009
1010
|
remainingBalance?: number | undefined;
|
|
1010
1011
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1011
|
-
next_quota_reset?: Date | null | undefined;
|
|
1012
1012
|
autoTopupAdded?: number | undefined;
|
|
1013
1013
|
}, {
|
|
1014
1014
|
type: "response-complete";
|
|
1015
|
-
userInputId: string;
|
|
1016
1015
|
response: string;
|
|
1016
|
+
userInputId: string;
|
|
1017
1017
|
changes: {
|
|
1018
|
+
type: "patch" | "file";
|
|
1018
1019
|
path: string;
|
|
1019
|
-
type: "file" | "patch";
|
|
1020
1020
|
content: string;
|
|
1021
1021
|
}[];
|
|
1022
1022
|
changesAlreadyApplied: {
|
|
1023
|
+
type: "patch" | "file";
|
|
1023
1024
|
path: string;
|
|
1024
|
-
type: "file" | "patch";
|
|
1025
1025
|
content: string;
|
|
1026
1026
|
}[];
|
|
1027
1027
|
addedFileVersions: {
|
|
@@ -1029,10 +1029,10 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1029
1029
|
content: string;
|
|
1030
1030
|
}[];
|
|
1031
1031
|
resetFileVersions: boolean;
|
|
1032
|
+
next_quota_reset?: Date | null | undefined;
|
|
1032
1033
|
usage?: number | undefined;
|
|
1033
1034
|
remainingBalance?: number | undefined;
|
|
1034
1035
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1035
|
-
next_quota_reset?: Date | null | undefined;
|
|
1036
1036
|
autoTopupAdded?: number | undefined;
|
|
1037
1037
|
}>;
|
|
1038
1038
|
export declare const MessageCostResponseSchema: z.ZodObject<{
|
|
@@ -1041,12 +1041,12 @@ export declare const MessageCostResponseSchema: z.ZodObject<{
|
|
|
1041
1041
|
credits: z.ZodNumber;
|
|
1042
1042
|
}, "strip", z.ZodTypeAny, {
|
|
1043
1043
|
type: "message-cost-response";
|
|
1044
|
-
promptId: string;
|
|
1045
1044
|
credits: number;
|
|
1045
|
+
promptId: string;
|
|
1046
1046
|
}, {
|
|
1047
1047
|
type: "message-cost-response";
|
|
1048
|
-
promptId: string;
|
|
1049
1048
|
credits: number;
|
|
1049
|
+
promptId: string;
|
|
1050
1050
|
}>;
|
|
1051
1051
|
export type MessageCostResponse = z.infer<typeof MessageCostResponseSchema>;
|
|
1052
1052
|
export declare const PromptResponseSchema: z.ZodObject<{
|
|
@@ -1716,12 +1716,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1716
1716
|
path: z.ZodString;
|
|
1717
1717
|
content: z.ZodString;
|
|
1718
1718
|
}, "strip", z.ZodTypeAny, {
|
|
1719
|
+
type: "patch" | "file";
|
|
1719
1720
|
path: string;
|
|
1720
|
-
type: "file" | "patch";
|
|
1721
1721
|
content: string;
|
|
1722
1722
|
}, {
|
|
1723
|
+
type: "patch" | "file";
|
|
1723
1724
|
path: string;
|
|
1724
|
-
type: "file" | "patch";
|
|
1725
1725
|
content: string;
|
|
1726
1726
|
}>, "many">;
|
|
1727
1727
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1729,12 +1729,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1729
1729
|
path: z.ZodString;
|
|
1730
1730
|
content: z.ZodString;
|
|
1731
1731
|
}, "strip", z.ZodTypeAny, {
|
|
1732
|
+
type: "patch" | "file";
|
|
1732
1733
|
path: string;
|
|
1733
|
-
type: "file" | "patch";
|
|
1734
1734
|
content: string;
|
|
1735
1735
|
}, {
|
|
1736
|
+
type: "patch" | "file";
|
|
1736
1737
|
path: string;
|
|
1737
|
-
type: "file" | "patch";
|
|
1738
1738
|
content: string;
|
|
1739
1739
|
}>, "many">;
|
|
1740
1740
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1749,23 +1749,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1749
1749
|
}>, "many">;
|
|
1750
1750
|
resetFileVersions: z.ZodBoolean;
|
|
1751
1751
|
}, {
|
|
1752
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1752
1753
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
1753
1754
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
1754
1755
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
1755
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1756
1756
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1757
1757
|
}>, "strip", z.ZodTypeAny, {
|
|
1758
1758
|
type: "response-complete";
|
|
1759
|
-
userInputId: string;
|
|
1760
1759
|
response: string;
|
|
1760
|
+
userInputId: string;
|
|
1761
1761
|
changes: {
|
|
1762
|
+
type: "patch" | "file";
|
|
1762
1763
|
path: string;
|
|
1763
|
-
type: "file" | "patch";
|
|
1764
1764
|
content: string;
|
|
1765
1765
|
}[];
|
|
1766
1766
|
changesAlreadyApplied: {
|
|
1767
|
+
type: "patch" | "file";
|
|
1767
1768
|
path: string;
|
|
1768
|
-
type: "file" | "patch";
|
|
1769
1769
|
content: string;
|
|
1770
1770
|
}[];
|
|
1771
1771
|
addedFileVersions: {
|
|
@@ -1773,23 +1773,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1773
1773
|
content: string;
|
|
1774
1774
|
}[];
|
|
1775
1775
|
resetFileVersions: boolean;
|
|
1776
|
+
next_quota_reset?: Date | null | undefined;
|
|
1776
1777
|
usage?: number | undefined;
|
|
1777
1778
|
remainingBalance?: number | undefined;
|
|
1778
1779
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1779
|
-
next_quota_reset?: Date | null | undefined;
|
|
1780
1780
|
autoTopupAdded?: number | undefined;
|
|
1781
1781
|
}, {
|
|
1782
1782
|
type: "response-complete";
|
|
1783
|
-
userInputId: string;
|
|
1784
1783
|
response: string;
|
|
1784
|
+
userInputId: string;
|
|
1785
1785
|
changes: {
|
|
1786
|
+
type: "patch" | "file";
|
|
1786
1787
|
path: string;
|
|
1787
|
-
type: "file" | "patch";
|
|
1788
1788
|
content: string;
|
|
1789
1789
|
}[];
|
|
1790
1790
|
changesAlreadyApplied: {
|
|
1791
|
+
type: "patch" | "file";
|
|
1791
1792
|
path: string;
|
|
1792
|
-
type: "file" | "patch";
|
|
1793
1793
|
content: string;
|
|
1794
1794
|
}[];
|
|
1795
1795
|
addedFileVersions: {
|
|
@@ -1797,10 +1797,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1797
1797
|
content: string;
|
|
1798
1798
|
}[];
|
|
1799
1799
|
resetFileVersions: boolean;
|
|
1800
|
+
next_quota_reset?: Date | null | undefined;
|
|
1800
1801
|
usage?: number | undefined;
|
|
1801
1802
|
remainingBalance?: number | undefined;
|
|
1802
1803
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1803
|
-
next_quota_reset?: Date | null | undefined;
|
|
1804
1804
|
autoTopupAdded?: number | undefined;
|
|
1805
1805
|
}>, z.ZodObject<{
|
|
1806
1806
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -2478,12 +2478,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2478
2478
|
path: z.ZodString;
|
|
2479
2479
|
content: z.ZodString;
|
|
2480
2480
|
}, "strip", z.ZodTypeAny, {
|
|
2481
|
+
type: "patch" | "file";
|
|
2481
2482
|
path: string;
|
|
2482
|
-
type: "file" | "patch";
|
|
2483
2483
|
content: string;
|
|
2484
2484
|
}, {
|
|
2485
|
+
type: "patch" | "file";
|
|
2485
2486
|
path: string;
|
|
2486
|
-
type: "file" | "patch";
|
|
2487
2487
|
content: string;
|
|
2488
2488
|
}>, "many">;
|
|
2489
2489
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2491,12 +2491,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2491
2491
|
path: z.ZodString;
|
|
2492
2492
|
content: z.ZodString;
|
|
2493
2493
|
}, "strip", z.ZodTypeAny, {
|
|
2494
|
+
type: "patch" | "file";
|
|
2494
2495
|
path: string;
|
|
2495
|
-
type: "file" | "patch";
|
|
2496
2496
|
content: string;
|
|
2497
2497
|
}, {
|
|
2498
|
+
type: "patch" | "file";
|
|
2498
2499
|
path: string;
|
|
2499
|
-
type: "file" | "patch";
|
|
2500
2500
|
content: string;
|
|
2501
2501
|
}>, "many">;
|
|
2502
2502
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2511,22 +2511,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2511
2511
|
}>, "many">;
|
|
2512
2512
|
resetFileVersions: z.ZodBoolean;
|
|
2513
2513
|
}, "strip", z.ZodTypeAny, {
|
|
2514
|
-
type: "tool-call";
|
|
2515
2514
|
data: {
|
|
2516
2515
|
name: string;
|
|
2517
2516
|
id: string;
|
|
2518
2517
|
input: Record<string, any>;
|
|
2519
2518
|
};
|
|
2520
|
-
|
|
2519
|
+
type: "tool-call";
|
|
2521
2520
|
response: string;
|
|
2521
|
+
userInputId: string;
|
|
2522
2522
|
changes: {
|
|
2523
|
+
type: "patch" | "file";
|
|
2523
2524
|
path: string;
|
|
2524
|
-
type: "file" | "patch";
|
|
2525
2525
|
content: string;
|
|
2526
2526
|
}[];
|
|
2527
2527
|
changesAlreadyApplied: {
|
|
2528
|
+
type: "patch" | "file";
|
|
2528
2529
|
path: string;
|
|
2529
|
-
type: "file" | "patch";
|
|
2530
2530
|
content: string;
|
|
2531
2531
|
}[];
|
|
2532
2532
|
addedFileVersions: {
|
|
@@ -2535,22 +2535,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2535
2535
|
}[];
|
|
2536
2536
|
resetFileVersions: boolean;
|
|
2537
2537
|
}, {
|
|
2538
|
-
type: "tool-call";
|
|
2539
2538
|
data: {
|
|
2540
2539
|
name: string;
|
|
2541
2540
|
id: string;
|
|
2542
2541
|
input: Record<string, any>;
|
|
2543
2542
|
};
|
|
2544
|
-
|
|
2543
|
+
type: "tool-call";
|
|
2545
2544
|
response: string;
|
|
2545
|
+
userInputId: string;
|
|
2546
2546
|
changes: {
|
|
2547
|
+
type: "patch" | "file";
|
|
2547
2548
|
path: string;
|
|
2548
|
-
type: "file" | "patch";
|
|
2549
2549
|
content: string;
|
|
2550
2550
|
}[];
|
|
2551
2551
|
changesAlreadyApplied: {
|
|
2552
|
+
type: "patch" | "file";
|
|
2552
2553
|
path: string;
|
|
2553
|
-
type: "file" | "patch";
|
|
2554
2554
|
content: string;
|
|
2555
2555
|
}[];
|
|
2556
2556
|
addedFileVersions: {
|
|
@@ -2592,17 +2592,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2592
2592
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
2593
2593
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2594
2594
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
2595
|
+
next_quota_reset: Date | null;
|
|
2595
2596
|
type: "init-response";
|
|
2596
2597
|
usage: number;
|
|
2597
2598
|
remainingBalance: number;
|
|
2598
|
-
next_quota_reset: Date | null;
|
|
2599
2599
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2600
2600
|
autoTopupAdded?: number | undefined;
|
|
2601
2601
|
}, {
|
|
2602
|
+
next_quota_reset: Date | null;
|
|
2602
2603
|
type: "init-response";
|
|
2603
2604
|
usage: number;
|
|
2604
2605
|
remainingBalance: number;
|
|
2605
|
-
next_quota_reset: Date | null;
|
|
2606
2606
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2607
2607
|
autoTopupAdded?: number | undefined;
|
|
2608
2608
|
}>, z.ZodObject<{
|
|
@@ -2613,17 +2613,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2613
2613
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
2614
2614
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2615
2615
|
}, "strip", z.ZodTypeAny, {
|
|
2616
|
+
next_quota_reset: Date | null;
|
|
2616
2617
|
type: "usage-response";
|
|
2617
2618
|
usage: number;
|
|
2618
2619
|
remainingBalance: number;
|
|
2619
|
-
next_quota_reset: Date | null;
|
|
2620
2620
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2621
2621
|
autoTopupAdded?: number | undefined;
|
|
2622
2622
|
}, {
|
|
2623
|
+
next_quota_reset: Date | null;
|
|
2623
2624
|
type: "usage-response";
|
|
2624
2625
|
usage: number;
|
|
2625
2626
|
remainingBalance: number;
|
|
2626
|
-
next_quota_reset: Date | null;
|
|
2627
2627
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2628
2628
|
autoTopupAdded?: number | undefined;
|
|
2629
2629
|
}>, z.ZodObject<{
|
|
@@ -2632,25 +2632,25 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2632
2632
|
credits: z.ZodNumber;
|
|
2633
2633
|
}, "strip", z.ZodTypeAny, {
|
|
2634
2634
|
type: "message-cost-response";
|
|
2635
|
-
promptId: string;
|
|
2636
2635
|
credits: number;
|
|
2636
|
+
promptId: string;
|
|
2637
2637
|
}, {
|
|
2638
2638
|
type: "message-cost-response";
|
|
2639
|
-
promptId: string;
|
|
2640
2639
|
credits: number;
|
|
2640
|
+
promptId: string;
|
|
2641
2641
|
}>, z.ZodObject<{
|
|
2642
2642
|
type: z.ZodLiteral<"action-error">;
|
|
2643
2643
|
message: z.ZodString;
|
|
2644
2644
|
error: z.ZodOptional<z.ZodString>;
|
|
2645
2645
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2646
2646
|
}, "strip", z.ZodTypeAny, {
|
|
2647
|
-
message: string;
|
|
2648
2647
|
type: "action-error";
|
|
2648
|
+
message: string;
|
|
2649
2649
|
remainingBalance?: number | undefined;
|
|
2650
2650
|
error?: string | undefined;
|
|
2651
2651
|
}, {
|
|
2652
|
-
message: string;
|
|
2653
2652
|
type: "action-error";
|
|
2653
|
+
message: string;
|
|
2654
2654
|
remainingBalance?: number | undefined;
|
|
2655
2655
|
error?: string | undefined;
|
|
2656
2656
|
}>, z.ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsEvent } from 'common/src/constants/analytics-events';
|
|
1
|
+
import { AnalyticsEvent } from '../common/src/constants/analytics-events';
|
|
2
2
|
export declare function initAnalytics(): void;
|
|
3
3
|
export declare function flushAnalytics(): Promise<void>;
|
|
4
4
|
export declare function trackEvent(event: AnalyticsEvent, userId: string, properties?: Record<string, any>): void;
|