codebuff 1.0.325 → 1.0.326
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 +21 -21
- package/dist/checkpoints/file-manager.js.map +1 -1
- 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/constants.d.ts +1 -0
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/constants.js +9 -0
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/schema.d.ts +5 -0
- package/dist/common/db/schema.d.ts.map +1 -1
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/websockets/websocket-schema.d.ts +122 -122
- package/dist/index.js +5 -5
- package/dist/project-files.d.ts +1 -0
- package/dist/project-files.js +24 -4
- package/dist/project-files.js.map +1 -1
- package/dist/workers/project-context.js +5 -1
- package/dist/workers/project-context.js.map +1 -1
- package/package.json +16 -16
- package/dist/code-map/test-langs/test.d.ts +0 -12
- package/dist/code-map/test-langs/test.d.ts.map +0 -1
- package/dist/code-map/test-langs/test.js +0 -23
- package/dist/code-map/test-langs/test.js.map +0 -1
- package/dist/common/db/env.d.mts +0 -4
- package/dist/common/db/env.mjs +0 -26
- package/dist/common/db/env.mjs.map +0 -1
- package/dist/common/env.d.mts +0 -13
- package/dist/common/env.mjs +0 -43
- package/dist/common/env.mjs.map +0 -1
- package/dist/common/src/actions.d.ts +0 -2673
- package/dist/common/src/actions.d.ts.map +0 -1
- package/dist/common/src/actions.js +0 -167
- package/dist/common/src/actions.js.map +0 -1
- package/dist/common/src/analytics.d.ts +0 -6
- package/dist/common/src/analytics.d.ts.map +0 -1
- package/dist/common/src/analytics.js +0 -60
- package/dist/common/src/analytics.js.map +0 -1
- package/dist/common/src/api-keys/constants.d.ts +0 -9
- package/dist/common/src/api-keys/constants.d.ts.map +0 -1
- package/dist/common/src/api-keys/constants.js +0 -26
- package/dist/common/src/api-keys/constants.js.map +0 -1
- package/dist/common/src/api-keys/crypto.d.ts +0 -25
- package/dist/common/src/api-keys/crypto.d.ts.map +0 -1
- package/dist/common/src/api-keys/crypto.js +0 -186
- package/dist/common/src/api-keys/crypto.js.map +0 -1
- package/dist/common/src/browser-actions.d.ts +0 -4416
- package/dist/common/src/browser-actions.d.ts.map +0 -1
- package/dist/common/src/browser-actions.js +0 -343
- package/dist/common/src/browser-actions.js.map +0 -1
- package/dist/common/src/constants/analytics-events.d.ts +0 -28
- package/dist/common/src/constants/analytics-events.d.ts.map +0 -1
- package/dist/common/src/constants/analytics-events.js +0 -36
- package/dist/common/src/constants/analytics-events.js.map +0 -1
- package/dist/common/src/constants/grant-priorities.d.ts +0 -3
- package/dist/common/src/constants/grant-priorities.d.ts.map +0 -1
- package/dist/common/src/constants/grant-priorities.js +0 -11
- package/dist/common/src/constants/grant-priorities.js.map +0 -1
- package/dist/common/src/constants/tools.d.ts +0 -20
- package/dist/common/src/constants/tools.d.ts.map +0 -1
- package/dist/common/src/constants/tools.js +0 -47
- package/dist/common/src/constants/tools.js.map +0 -1
- package/dist/common/src/constants.d.ts +0 -152
- package/dist/common/src/constants.d.ts.map +0 -1
- package/dist/common/src/constants.js +0 -222
- package/dist/common/src/constants.js.map +0 -1
- package/dist/common/src/db/drizzle.config.d.ts +0 -3
- package/dist/common/src/db/drizzle.config.d.ts.map +0 -1
- package/dist/common/src/db/drizzle.config.js +0 -17
- package/dist/common/src/db/drizzle.config.js.map +0 -1
- package/dist/common/src/db/index.d.ts +0 -7
- package/dist/common/src/db/index.d.ts.map +0 -1
- package/dist/common/src/db/index.js +0 -35
- package/dist/common/src/db/index.js.map +0 -1
- package/dist/common/src/db/schema.d.ts +0 -2289
- package/dist/common/src/db/schema.d.ts.map +0 -1
- package/dist/common/src/db/schema.js +0 -296
- package/dist/common/src/db/schema.js.map +0 -1
- package/dist/common/src/db/transaction.d.ts +0 -13
- package/dist/common/src/db/transaction.d.ts.map +0 -1
- package/dist/common/src/db/transaction.js +0 -36
- package/dist/common/src/db/transaction.js.map +0 -1
- package/dist/common/src/json-config/__tests__/constants.test.d.ts +0 -2
- package/dist/common/src/json-config/__tests__/constants.test.d.ts.map +0 -1
- package/dist/common/src/json-config/__tests__/constants.test.js +0 -273
- package/dist/common/src/json-config/__tests__/constants.test.js.map +0 -1
- package/dist/common/src/json-config/__tests__/stringify-schema.test.d.ts +0 -2
- package/dist/common/src/json-config/__tests__/stringify-schema.test.d.ts.map +0 -1
- package/dist/common/src/json-config/__tests__/stringify-schema.test.js +0 -66
- package/dist/common/src/json-config/__tests__/stringify-schema.test.js.map +0 -1
- package/dist/common/src/json-config/constants.d.ts +0 -138
- package/dist/common/src/json-config/constants.d.ts.map +0 -1
- package/dist/common/src/json-config/constants.js +0 -78
- package/dist/common/src/json-config/constants.js.map +0 -1
- package/dist/common/src/json-config/stringify-schema.d.ts +0 -10
- package/dist/common/src/json-config/stringify-schema.d.ts.map +0 -1
- package/dist/common/src/json-config/stringify-schema.js +0 -131
- package/dist/common/src/json-config/stringify-schema.js.map +0 -1
- package/dist/common/src/project-file-tree.d.ts +0 -12
- package/dist/common/src/project-file-tree.d.ts.map +0 -1
- package/dist/common/src/project-file-tree.js +0 -212
- package/dist/common/src/project-file-tree.js.map +0 -1
- package/dist/common/src/types/agent-state.d.ts +0 -227
- package/dist/common/src/types/agent-state.d.ts.map +0 -1
- package/dist/common/src/types/agent-state.js +0 -34
- package/dist/common/src/types/agent-state.js.map +0 -1
- package/dist/common/src/types/grant.d.ts +0 -3
- package/dist/common/src/types/grant.d.ts.map +0 -1
- package/dist/common/src/types/grant.js +0 -11
- package/dist/common/src/types/grant.js.map +0 -1
- package/dist/common/src/types/message.d.ts +0 -320
- package/dist/common/src/types/message.d.ts.map +0 -1
- package/dist/common/src/types/message.js +0 -60
- package/dist/common/src/types/message.js.map +0 -1
- package/dist/common/src/types/organization.d.ts +0 -106
- package/dist/common/src/types/organization.d.ts.map +0 -1
- package/dist/common/src/types/organization.js +0 -3
- package/dist/common/src/types/organization.js.map +0 -1
- package/dist/common/src/types/referral.d.ts +0 -3
- package/dist/common/src/types/referral.d.ts.map +0 -1
- package/dist/common/src/types/referral.js +0 -5
- package/dist/common/src/types/referral.js.map +0 -1
- package/dist/common/src/types/tools.d.ts +0 -6
- package/dist/common/src/types/tools.d.ts.map +0 -1
- package/dist/common/src/types/tools.js +0 -3
- package/dist/common/src/types/tools.js.map +0 -1
- package/dist/common/src/types/usage.d.ts +0 -41
- package/dist/common/src/types/usage.d.ts.map +0 -1
- package/dist/common/src/types/usage.js +0 -16
- package/dist/common/src/types/usage.js.map +0 -1
- package/dist/common/src/util/__tests__/messages.test.d.ts +0 -2
- package/dist/common/src/util/__tests__/messages.test.d.ts.map +0 -1
- package/dist/common/src/util/__tests__/messages.test.js +0 -70
- package/dist/common/src/util/__tests__/messages.test.js.map +0 -1
- package/dist/common/src/util/__tests__/saxy.test.d.ts +0 -2
- package/dist/common/src/util/__tests__/saxy.test.d.ts.map +0 -1
- package/dist/common/src/util/__tests__/saxy.test.js +0 -906
- package/dist/common/src/util/__tests__/saxy.test.js.map +0 -1
- package/dist/common/src/util/__tests__/string.test.d.ts +0 -2
- package/dist/common/src/util/__tests__/string.test.d.ts.map +0 -1
- package/dist/common/src/util/__tests__/string.test.js +0 -82
- package/dist/common/src/util/__tests__/string.test.js.map +0 -1
- package/dist/common/src/util/array.d.ts +0 -7
- package/dist/common/src/util/array.d.ts.map +0 -1
- package/dist/common/src/util/array.js +0 -32
- package/dist/common/src/util/array.js.map +0 -1
- package/dist/common/src/util/changes.d.ts +0 -9
- package/dist/common/src/util/changes.d.ts.map +0 -1
- package/dist/common/src/util/changes.js +0 -87
- package/dist/common/src/util/changes.js.map +0 -1
- package/dist/common/src/util/credentials.d.ts +0 -26
- package/dist/common/src/util/credentials.d.ts.map +0 -1
- package/dist/common/src/util/credentials.js +0 -24
- package/dist/common/src/util/credentials.js.map +0 -1
- package/dist/common/src/util/currency.d.ts +0 -15
- package/dist/common/src/util/currency.d.ts.map +0 -1
- package/dist/common/src/util/currency.js +0 -23
- package/dist/common/src/util/currency.js.map +0 -1
- package/dist/common/src/util/dates.d.ts +0 -11
- package/dist/common/src/util/dates.d.ts.map +0 -1
- package/dist/common/src/util/dates.js +0 -22
- package/dist/common/src/util/dates.js.map +0 -1
- package/dist/common/src/util/file.d.ts +0 -163
- package/dist/common/src/util/file.d.ts.map +0 -1
- package/dist/common/src/util/file.js +0 -192
- package/dist/common/src/util/file.js.map +0 -1
- package/dist/common/src/util/git.d.ts +0 -7
- package/dist/common/src/util/git.d.ts.map +0 -1
- package/dist/common/src/util/git.js +0 -81
- package/dist/common/src/util/git.js.map +0 -1
- package/dist/common/src/util/logger.d.ts +0 -9
- package/dist/common/src/util/logger.d.ts.map +0 -1
- package/dist/common/src/util/logger.js +0 -52
- package/dist/common/src/util/logger.js.map +0 -1
- package/dist/common/src/util/lru-cache.d.ts +0 -31
- package/dist/common/src/util/lru-cache.d.ts.map +0 -1
- package/dist/common/src/util/lru-cache.js +0 -68
- package/dist/common/src/util/lru-cache.js.map +0 -1
- package/dist/common/src/util/messages.d.ts +0 -12
- package/dist/common/src/util/messages.d.ts.map +0 -1
- package/dist/common/src/util/messages.js +0 -81
- package/dist/common/src/util/messages.js.map +0 -1
- package/dist/common/src/util/min-heap.d.ts +0 -16
- package/dist/common/src/util/min-heap.d.ts.map +0 -1
- package/dist/common/src/util/min-heap.js +0 -73
- package/dist/common/src/util/min-heap.js.map +0 -1
- package/dist/common/src/util/object.d.ts +0 -19
- package/dist/common/src/util/object.d.ts.map +0 -1
- package/dist/common/src/util/object.js +0 -91
- package/dist/common/src/util/object.js.map +0 -1
- package/dist/common/src/util/patch.d.ts +0 -2
- package/dist/common/src/util/patch.d.ts.map +0 -1
- package/dist/common/src/util/patch.js +0 -215
- package/dist/common/src/util/patch.js.map +0 -1
- package/dist/common/src/util/promise.d.ts +0 -17
- package/dist/common/src/util/promise.d.ts.map +0 -1
- package/dist/common/src/util/promise.js +0 -51
- package/dist/common/src/util/promise.js.map +0 -1
- package/dist/common/src/util/random.d.ts +0 -2
- package/dist/common/src/util/random.d.ts.map +0 -1
- package/dist/common/src/util/random.js +0 -17
- package/dist/common/src/util/random.js.map +0 -1
- package/dist/common/src/util/referral.d.ts +0 -2
- package/dist/common/src/util/referral.d.ts.map +0 -1
- package/dist/common/src/util/referral.js +0 -6
- package/dist/common/src/util/referral.js.map +0 -1
- package/dist/common/src/util/saxy.d.ts +0 -179
- package/dist/common/src/util/saxy.d.ts.map +0 -1
- package/dist/common/src/util/saxy.js +0 -548
- package/dist/common/src/util/saxy.js.map +0 -1
- package/dist/common/src/util/string.d.ts +0 -80
- package/dist/common/src/util/string.d.ts.map +0 -1
- package/dist/common/src/util/string.js +0 -264
- package/dist/common/src/util/string.js.map +0 -1
- package/dist/common/src/util/stripe.d.ts +0 -4
- package/dist/common/src/util/stripe.d.ts.map +0 -1
- package/dist/common/src/util/stripe.js +0 -22
- package/dist/common/src/util/stripe.js.map +0 -1
- package/dist/common/src/util/sync-failure.d.ts +0 -2
- package/dist/common/src/util/sync-failure.d.ts.map +0 -1
- package/dist/common/src/util/sync-failure.js +0 -57
- package/dist/common/src/util/sync-failure.js.map +0 -1
- package/dist/common/src/websockets/websocket-client.d.ts +0 -43
- package/dist/common/src/websockets/websocket-client.d.ts.map +0 -1
- package/dist/common/src/websockets/websocket-client.js +0 -216
- package/dist/common/src/websockets/websocket-client.js.map +0 -1
- package/dist/common/src/websockets/websocket-schema.d.ts +0 -5159
- package/dist/common/src/websockets/websocket-schema.d.ts.map +0 -1
- package/dist/common/src/websockets/websocket-schema.js +0 -55
- package/dist/common/src/websockets/websocket-schema.js.map +0 -1
- package/dist/common/tsconfig.tsbuildinfo +0 -1
|
@@ -316,9 +316,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
316
316
|
result: string;
|
|
317
317
|
}[];
|
|
318
318
|
model?: string | undefined;
|
|
319
|
-
cwd?: string | undefined;
|
|
320
319
|
prompt?: string | undefined;
|
|
321
320
|
authToken?: string | undefined;
|
|
321
|
+
cwd?: string | undefined;
|
|
322
322
|
repoUrl?: string | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
type: "prompt";
|
|
@@ -366,10 +366,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
366
366
|
result: string;
|
|
367
367
|
}[];
|
|
368
368
|
model?: string | undefined;
|
|
369
|
-
cwd?: string | undefined;
|
|
370
369
|
prompt?: string | undefined;
|
|
371
370
|
authToken?: string | undefined;
|
|
372
371
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
372
|
+
cwd?: string | undefined;
|
|
373
373
|
repoUrl?: string | undefined;
|
|
374
374
|
}>, z.ZodObject<{
|
|
375
375
|
type: z.ZodLiteral<"manager-prompt">;
|
|
@@ -635,9 +635,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
635
635
|
result: string;
|
|
636
636
|
}[];
|
|
637
637
|
model?: string | undefined;
|
|
638
|
-
cwd?: string | undefined;
|
|
639
638
|
prompt?: string | undefined;
|
|
640
639
|
authToken?: string | undefined;
|
|
640
|
+
cwd?: string | undefined;
|
|
641
641
|
repoName?: string | undefined;
|
|
642
642
|
}, {
|
|
643
643
|
type: "manager-prompt";
|
|
@@ -685,10 +685,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
685
685
|
result: string;
|
|
686
686
|
}[];
|
|
687
687
|
model?: string | undefined;
|
|
688
|
-
cwd?: string | undefined;
|
|
689
688
|
prompt?: string | undefined;
|
|
690
689
|
authToken?: string | undefined;
|
|
691
690
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
691
|
+
cwd?: string | undefined;
|
|
692
692
|
repoName?: string | undefined;
|
|
693
693
|
}>, z.ZodObject<{
|
|
694
694
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -950,9 +950,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
950
950
|
result: string;
|
|
951
951
|
}[];
|
|
952
952
|
model?: string | undefined;
|
|
953
|
-
cwd?: string | undefined;
|
|
954
953
|
prompt?: string | undefined;
|
|
955
954
|
authToken?: string | undefined;
|
|
955
|
+
cwd?: string | undefined;
|
|
956
956
|
repoUrl?: string | undefined;
|
|
957
957
|
} | {
|
|
958
958
|
type: "manager-prompt";
|
|
@@ -1001,9 +1001,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1001
1001
|
result: string;
|
|
1002
1002
|
}[];
|
|
1003
1003
|
model?: string | undefined;
|
|
1004
|
-
cwd?: string | undefined;
|
|
1005
1004
|
prompt?: string | undefined;
|
|
1006
1005
|
authToken?: string | undefined;
|
|
1006
|
+
cwd?: string | undefined;
|
|
1007
1007
|
repoName?: string | undefined;
|
|
1008
1008
|
} | {
|
|
1009
1009
|
type: "read-files-response";
|
|
@@ -1097,10 +1097,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1097
1097
|
result: string;
|
|
1098
1098
|
}[];
|
|
1099
1099
|
model?: string | undefined;
|
|
1100
|
-
cwd?: string | undefined;
|
|
1101
1100
|
prompt?: string | undefined;
|
|
1102
1101
|
authToken?: string | undefined;
|
|
1103
1102
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1103
|
+
cwd?: string | undefined;
|
|
1104
1104
|
repoUrl?: string | undefined;
|
|
1105
1105
|
} | {
|
|
1106
1106
|
type: "manager-prompt";
|
|
@@ -1148,10 +1148,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1148
1148
|
result: string;
|
|
1149
1149
|
}[];
|
|
1150
1150
|
model?: string | undefined;
|
|
1151
|
-
cwd?: string | undefined;
|
|
1152
1151
|
prompt?: string | undefined;
|
|
1153
1152
|
authToken?: string | undefined;
|
|
1154
1153
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1154
|
+
cwd?: string | undefined;
|
|
1155
1155
|
repoName?: string | undefined;
|
|
1156
1156
|
} | {
|
|
1157
1157
|
type: "read-files-response";
|
|
@@ -1511,9 +1511,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1511
1511
|
result: string;
|
|
1512
1512
|
}[];
|
|
1513
1513
|
model?: string | undefined;
|
|
1514
|
-
cwd?: string | undefined;
|
|
1515
1514
|
prompt?: string | undefined;
|
|
1516
1515
|
authToken?: string | undefined;
|
|
1516
|
+
cwd?: string | undefined;
|
|
1517
1517
|
repoUrl?: string | undefined;
|
|
1518
1518
|
}, {
|
|
1519
1519
|
type: "prompt";
|
|
@@ -1561,10 +1561,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1561
1561
|
result: string;
|
|
1562
1562
|
}[];
|
|
1563
1563
|
model?: string | undefined;
|
|
1564
|
-
cwd?: string | undefined;
|
|
1565
1564
|
prompt?: string | undefined;
|
|
1566
1565
|
authToken?: string | undefined;
|
|
1567
1566
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1567
|
+
cwd?: string | undefined;
|
|
1568
1568
|
repoUrl?: string | undefined;
|
|
1569
1569
|
}>, z.ZodObject<{
|
|
1570
1570
|
type: z.ZodLiteral<"manager-prompt">;
|
|
@@ -1830,9 +1830,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1830
1830
|
result: string;
|
|
1831
1831
|
}[];
|
|
1832
1832
|
model?: string | undefined;
|
|
1833
|
-
cwd?: string | undefined;
|
|
1834
1833
|
prompt?: string | undefined;
|
|
1835
1834
|
authToken?: string | undefined;
|
|
1835
|
+
cwd?: string | undefined;
|
|
1836
1836
|
repoName?: string | undefined;
|
|
1837
1837
|
}, {
|
|
1838
1838
|
type: "manager-prompt";
|
|
@@ -1880,10 +1880,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1880
1880
|
result: string;
|
|
1881
1881
|
}[];
|
|
1882
1882
|
model?: string | undefined;
|
|
1883
|
-
cwd?: string | undefined;
|
|
1884
1883
|
prompt?: string | undefined;
|
|
1885
1884
|
authToken?: string | undefined;
|
|
1886
1885
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1886
|
+
cwd?: string | undefined;
|
|
1887
1887
|
repoName?: string | undefined;
|
|
1888
1888
|
}>, z.ZodObject<{
|
|
1889
1889
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -2145,9 +2145,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2145
2145
|
result: string;
|
|
2146
2146
|
}[];
|
|
2147
2147
|
model?: string | undefined;
|
|
2148
|
-
cwd?: string | undefined;
|
|
2149
2148
|
prompt?: string | undefined;
|
|
2150
2149
|
authToken?: string | undefined;
|
|
2150
|
+
cwd?: string | undefined;
|
|
2151
2151
|
repoUrl?: string | undefined;
|
|
2152
2152
|
} | {
|
|
2153
2153
|
type: "manager-prompt";
|
|
@@ -2196,9 +2196,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2196
2196
|
result: string;
|
|
2197
2197
|
}[];
|
|
2198
2198
|
model?: string | undefined;
|
|
2199
|
-
cwd?: string | undefined;
|
|
2200
2199
|
prompt?: string | undefined;
|
|
2201
2200
|
authToken?: string | undefined;
|
|
2201
|
+
cwd?: string | undefined;
|
|
2202
2202
|
repoName?: string | undefined;
|
|
2203
2203
|
} | {
|
|
2204
2204
|
type: "read-files-response";
|
|
@@ -2292,10 +2292,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2292
2292
|
result: string;
|
|
2293
2293
|
}[];
|
|
2294
2294
|
model?: string | undefined;
|
|
2295
|
-
cwd?: string | undefined;
|
|
2296
2295
|
prompt?: string | undefined;
|
|
2297
2296
|
authToken?: string | undefined;
|
|
2298
2297
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
2298
|
+
cwd?: string | undefined;
|
|
2299
2299
|
repoUrl?: string | undefined;
|
|
2300
2300
|
} | {
|
|
2301
2301
|
type: "manager-prompt";
|
|
@@ -2343,10 +2343,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2343
2343
|
result: string;
|
|
2344
2344
|
}[];
|
|
2345
2345
|
model?: string | undefined;
|
|
2346
|
-
cwd?: string | undefined;
|
|
2347
2346
|
prompt?: string | undefined;
|
|
2348
2347
|
authToken?: string | undefined;
|
|
2349
2348
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
2349
|
+
cwd?: string | undefined;
|
|
2350
2350
|
repoName?: string | undefined;
|
|
2351
2351
|
} | {
|
|
2352
2352
|
type: "read-files-response";
|
|
@@ -2436,12 +2436,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2436
2436
|
content: z.ZodString;
|
|
2437
2437
|
}, "strip", z.ZodTypeAny, {
|
|
2438
2438
|
path: string;
|
|
2439
|
-
content: string;
|
|
2440
2439
|
type: "file" | "patch";
|
|
2440
|
+
content: string;
|
|
2441
2441
|
}, {
|
|
2442
2442
|
path: string;
|
|
2443
|
-
content: string;
|
|
2444
2443
|
type: "file" | "patch";
|
|
2444
|
+
content: string;
|
|
2445
2445
|
}>, "many">;
|
|
2446
2446
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2447
2447
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2449,12 +2449,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2449
2449
|
content: z.ZodString;
|
|
2450
2450
|
}, "strip", z.ZodTypeAny, {
|
|
2451
2451
|
path: string;
|
|
2452
|
-
content: string;
|
|
2453
2452
|
type: "file" | "patch";
|
|
2453
|
+
content: string;
|
|
2454
2454
|
}, {
|
|
2455
2455
|
path: string;
|
|
2456
|
-
content: string;
|
|
2457
2456
|
type: "file" | "patch";
|
|
2457
|
+
content: string;
|
|
2458
2458
|
}>, "many">;
|
|
2459
2459
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2460
2460
|
path: z.ZodString;
|
|
@@ -2468,58 +2468,58 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2468
2468
|
}>, "many">;
|
|
2469
2469
|
resetFileVersions: z.ZodBoolean;
|
|
2470
2470
|
}, {
|
|
2471
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2472
2471
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2473
2472
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2474
2473
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
2474
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2475
2475
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2476
2476
|
}>, "strip", z.ZodTypeAny, {
|
|
2477
2477
|
type: "response-complete";
|
|
2478
|
-
response: string;
|
|
2479
2478
|
userInputId: string;
|
|
2479
|
+
response: string;
|
|
2480
2480
|
changes: {
|
|
2481
2481
|
path: string;
|
|
2482
|
-
content: string;
|
|
2483
2482
|
type: "file" | "patch";
|
|
2483
|
+
content: string;
|
|
2484
2484
|
}[];
|
|
2485
2485
|
changesAlreadyApplied: {
|
|
2486
2486
|
path: string;
|
|
2487
|
-
content: string;
|
|
2488
2487
|
type: "file" | "patch";
|
|
2488
|
+
content: string;
|
|
2489
2489
|
}[];
|
|
2490
2490
|
addedFileVersions: {
|
|
2491
2491
|
path: string;
|
|
2492
2492
|
content: string;
|
|
2493
2493
|
}[];
|
|
2494
2494
|
resetFileVersions: boolean;
|
|
2495
|
-
next_quota_reset?: Date | null | undefined;
|
|
2496
2495
|
usage?: number | undefined;
|
|
2497
2496
|
remainingBalance?: number | undefined;
|
|
2498
2497
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2498
|
+
next_quota_reset?: Date | null | undefined;
|
|
2499
2499
|
autoTopupAdded?: number | undefined;
|
|
2500
2500
|
}, {
|
|
2501
2501
|
type: "response-complete";
|
|
2502
|
-
response: string;
|
|
2503
2502
|
userInputId: string;
|
|
2503
|
+
response: string;
|
|
2504
2504
|
changes: {
|
|
2505
2505
|
path: string;
|
|
2506
|
-
content: string;
|
|
2507
2506
|
type: "file" | "patch";
|
|
2507
|
+
content: string;
|
|
2508
2508
|
}[];
|
|
2509
2509
|
changesAlreadyApplied: {
|
|
2510
2510
|
path: string;
|
|
2511
|
-
content: string;
|
|
2512
2511
|
type: "file" | "patch";
|
|
2512
|
+
content: string;
|
|
2513
2513
|
}[];
|
|
2514
2514
|
addedFileVersions: {
|
|
2515
2515
|
path: string;
|
|
2516
2516
|
content: string;
|
|
2517
2517
|
}[];
|
|
2518
2518
|
resetFileVersions: boolean;
|
|
2519
|
-
next_quota_reset?: Date | null | undefined;
|
|
2520
2519
|
usage?: number | undefined;
|
|
2521
2520
|
remainingBalance?: number | undefined;
|
|
2522
2521
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2522
|
+
next_quota_reset?: Date | null | undefined;
|
|
2523
2523
|
autoTopupAdded?: number | undefined;
|
|
2524
2524
|
}>, z.ZodObject<{
|
|
2525
2525
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -3198,12 +3198,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3198
3198
|
content: z.ZodString;
|
|
3199
3199
|
}, "strip", z.ZodTypeAny, {
|
|
3200
3200
|
path: string;
|
|
3201
|
-
content: string;
|
|
3202
3201
|
type: "file" | "patch";
|
|
3202
|
+
content: string;
|
|
3203
3203
|
}, {
|
|
3204
3204
|
path: string;
|
|
3205
|
-
content: string;
|
|
3206
3205
|
type: "file" | "patch";
|
|
3206
|
+
content: string;
|
|
3207
3207
|
}>, "many">;
|
|
3208
3208
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3209
3209
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3211,12 +3211,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3211
3211
|
content: z.ZodString;
|
|
3212
3212
|
}, "strip", z.ZodTypeAny, {
|
|
3213
3213
|
path: string;
|
|
3214
|
-
content: string;
|
|
3215
3214
|
type: "file" | "patch";
|
|
3215
|
+
content: string;
|
|
3216
3216
|
}, {
|
|
3217
3217
|
path: string;
|
|
3218
|
-
content: string;
|
|
3219
3218
|
type: "file" | "patch";
|
|
3219
|
+
content: string;
|
|
3220
3220
|
}>, "many">;
|
|
3221
3221
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3222
3222
|
path: z.ZodString;
|
|
@@ -3236,17 +3236,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3236
3236
|
id: string;
|
|
3237
3237
|
input: Record<string, any>;
|
|
3238
3238
|
};
|
|
3239
|
-
response: string;
|
|
3240
3239
|
userInputId: string;
|
|
3240
|
+
response: string;
|
|
3241
3241
|
changes: {
|
|
3242
3242
|
path: string;
|
|
3243
|
-
content: string;
|
|
3244
3243
|
type: "file" | "patch";
|
|
3244
|
+
content: string;
|
|
3245
3245
|
}[];
|
|
3246
3246
|
changesAlreadyApplied: {
|
|
3247
3247
|
path: string;
|
|
3248
|
-
content: string;
|
|
3249
3248
|
type: "file" | "patch";
|
|
3249
|
+
content: string;
|
|
3250
3250
|
}[];
|
|
3251
3251
|
addedFileVersions: {
|
|
3252
3252
|
path: string;
|
|
@@ -3260,17 +3260,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3260
3260
|
id: string;
|
|
3261
3261
|
input: Record<string, any>;
|
|
3262
3262
|
};
|
|
3263
|
-
response: string;
|
|
3264
3263
|
userInputId: string;
|
|
3264
|
+
response: string;
|
|
3265
3265
|
changes: {
|
|
3266
3266
|
path: string;
|
|
3267
|
-
content: string;
|
|
3268
3267
|
type: "file" | "patch";
|
|
3268
|
+
content: string;
|
|
3269
3269
|
}[];
|
|
3270
3270
|
changesAlreadyApplied: {
|
|
3271
3271
|
path: string;
|
|
3272
|
-
content: string;
|
|
3273
3272
|
type: "file" | "patch";
|
|
3273
|
+
content: string;
|
|
3274
3274
|
}[];
|
|
3275
3275
|
addedFileVersions: {
|
|
3276
3276
|
path: string;
|
|
@@ -3312,16 +3312,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3312
3312
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3313
3313
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
3314
3314
|
type: "init-response";
|
|
3315
|
-
next_quota_reset: Date | null;
|
|
3316
3315
|
usage: number;
|
|
3317
3316
|
remainingBalance: number;
|
|
3317
|
+
next_quota_reset: Date | null;
|
|
3318
3318
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3319
3319
|
autoTopupAdded?: number | undefined;
|
|
3320
3320
|
}, {
|
|
3321
3321
|
type: "init-response";
|
|
3322
|
-
next_quota_reset: Date | null;
|
|
3323
3322
|
usage: number;
|
|
3324
3323
|
remainingBalance: number;
|
|
3324
|
+
next_quota_reset: Date | null;
|
|
3325
3325
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3326
3326
|
autoTopupAdded?: number | undefined;
|
|
3327
3327
|
}>, z.ZodObject<{
|
|
@@ -3333,16 +3333,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3333
3333
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3334
3334
|
}, "strip", z.ZodTypeAny, {
|
|
3335
3335
|
type: "usage-response";
|
|
3336
|
-
next_quota_reset: Date | null;
|
|
3337
3336
|
usage: number;
|
|
3338
3337
|
remainingBalance: number;
|
|
3338
|
+
next_quota_reset: Date | null;
|
|
3339
3339
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3340
3340
|
autoTopupAdded?: number | undefined;
|
|
3341
3341
|
}, {
|
|
3342
3342
|
type: "usage-response";
|
|
3343
|
-
next_quota_reset: Date | null;
|
|
3344
3343
|
usage: number;
|
|
3345
3344
|
remainingBalance: number;
|
|
3345
|
+
next_quota_reset: Date | null;
|
|
3346
3346
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3347
3347
|
autoTopupAdded?: number | undefined;
|
|
3348
3348
|
}>, z.ZodObject<{
|
|
@@ -3351,12 +3351,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3351
3351
|
credits: z.ZodNumber;
|
|
3352
3352
|
}, "strip", z.ZodTypeAny, {
|
|
3353
3353
|
type: "message-cost-response";
|
|
3354
|
-
credits: number;
|
|
3355
3354
|
promptId: string;
|
|
3355
|
+
credits: number;
|
|
3356
3356
|
}, {
|
|
3357
3357
|
type: "message-cost-response";
|
|
3358
|
-
credits: number;
|
|
3359
3358
|
promptId: string;
|
|
3359
|
+
credits: number;
|
|
3360
3360
|
}>, z.ZodObject<{
|
|
3361
3361
|
type: z.ZodLiteral<"action-error">;
|
|
3362
3362
|
message: z.ZodString;
|
|
@@ -3365,13 +3365,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3365
3365
|
}, "strip", z.ZodTypeAny, {
|
|
3366
3366
|
message: string;
|
|
3367
3367
|
type: "action-error";
|
|
3368
|
-
error?: string | undefined;
|
|
3369
3368
|
remainingBalance?: number | undefined;
|
|
3369
|
+
error?: string | undefined;
|
|
3370
3370
|
}, {
|
|
3371
3371
|
message: string;
|
|
3372
3372
|
type: "action-error";
|
|
3373
|
-
error?: string | undefined;
|
|
3374
3373
|
remainingBalance?: number | undefined;
|
|
3374
|
+
error?: string | undefined;
|
|
3375
3375
|
}>, z.ZodObject<{
|
|
3376
3376
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3377
3377
|
commitMessage: z.ZodString;
|
|
@@ -3392,46 +3392,46 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3392
3392
|
type: "action";
|
|
3393
3393
|
data: {
|
|
3394
3394
|
type: "usage-response";
|
|
3395
|
-
next_quota_reset: Date | null;
|
|
3396
3395
|
usage: number;
|
|
3397
3396
|
remainingBalance: number;
|
|
3397
|
+
next_quota_reset: Date | null;
|
|
3398
3398
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3399
3399
|
autoTopupAdded?: number | undefined;
|
|
3400
3400
|
} | {
|
|
3401
3401
|
type: "init-response";
|
|
3402
|
-
next_quota_reset: Date | null;
|
|
3403
3402
|
usage: number;
|
|
3404
3403
|
remainingBalance: number;
|
|
3404
|
+
next_quota_reset: Date | null;
|
|
3405
3405
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3406
3406
|
autoTopupAdded?: number | undefined;
|
|
3407
3407
|
} | {
|
|
3408
3408
|
type: "response-complete";
|
|
3409
|
-
response: string;
|
|
3410
3409
|
userInputId: string;
|
|
3410
|
+
response: string;
|
|
3411
3411
|
changes: {
|
|
3412
3412
|
path: string;
|
|
3413
|
-
content: string;
|
|
3414
3413
|
type: "file" | "patch";
|
|
3414
|
+
content: string;
|
|
3415
3415
|
}[];
|
|
3416
3416
|
changesAlreadyApplied: {
|
|
3417
3417
|
path: string;
|
|
3418
|
-
content: string;
|
|
3419
3418
|
type: "file" | "patch";
|
|
3419
|
+
content: string;
|
|
3420
3420
|
}[];
|
|
3421
3421
|
addedFileVersions: {
|
|
3422
3422
|
path: string;
|
|
3423
3423
|
content: string;
|
|
3424
3424
|
}[];
|
|
3425
3425
|
resetFileVersions: boolean;
|
|
3426
|
-
next_quota_reset?: Date | null | undefined;
|
|
3427
3426
|
usage?: number | undefined;
|
|
3428
3427
|
remainingBalance?: number | undefined;
|
|
3429
3428
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3429
|
+
next_quota_reset?: Date | null | undefined;
|
|
3430
3430
|
autoTopupAdded?: number | undefined;
|
|
3431
3431
|
} | {
|
|
3432
3432
|
type: "message-cost-response";
|
|
3433
|
-
credits: number;
|
|
3434
3433
|
promptId: string;
|
|
3434
|
+
credits: number;
|
|
3435
3435
|
} | {
|
|
3436
3436
|
type: "prompt-response";
|
|
3437
3437
|
promptId: string;
|
|
@@ -3545,17 +3545,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3545
3545
|
id: string;
|
|
3546
3546
|
input: Record<string, any>;
|
|
3547
3547
|
};
|
|
3548
|
-
response: string;
|
|
3549
3548
|
userInputId: string;
|
|
3549
|
+
response: string;
|
|
3550
3550
|
changes: {
|
|
3551
3551
|
path: string;
|
|
3552
|
-
content: string;
|
|
3553
3552
|
type: "file" | "patch";
|
|
3553
|
+
content: string;
|
|
3554
3554
|
}[];
|
|
3555
3555
|
changesAlreadyApplied: {
|
|
3556
3556
|
path: string;
|
|
3557
|
-
content: string;
|
|
3558
3557
|
type: "file" | "patch";
|
|
3558
|
+
content: string;
|
|
3559
3559
|
}[];
|
|
3560
3560
|
addedFileVersions: {
|
|
3561
3561
|
path: string;
|
|
@@ -3573,8 +3573,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3573
3573
|
} | {
|
|
3574
3574
|
message: string;
|
|
3575
3575
|
type: "action-error";
|
|
3576
|
-
error?: string | undefined;
|
|
3577
3576
|
remainingBalance?: number | undefined;
|
|
3577
|
+
error?: string | undefined;
|
|
3578
3578
|
} | {
|
|
3579
3579
|
type: "commit-message-response";
|
|
3580
3580
|
commitMessage: string;
|
|
@@ -3585,46 +3585,46 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3585
3585
|
type: "action";
|
|
3586
3586
|
data: {
|
|
3587
3587
|
type: "usage-response";
|
|
3588
|
-
next_quota_reset: Date | null;
|
|
3589
3588
|
usage: number;
|
|
3590
3589
|
remainingBalance: number;
|
|
3590
|
+
next_quota_reset: Date | null;
|
|
3591
3591
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3592
3592
|
autoTopupAdded?: number | undefined;
|
|
3593
3593
|
} | {
|
|
3594
3594
|
type: "init-response";
|
|
3595
|
-
next_quota_reset: Date | null;
|
|
3596
3595
|
usage: number;
|
|
3597
3596
|
remainingBalance: number;
|
|
3597
|
+
next_quota_reset: Date | null;
|
|
3598
3598
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3599
3599
|
autoTopupAdded?: number | undefined;
|
|
3600
3600
|
} | {
|
|
3601
3601
|
type: "response-complete";
|
|
3602
|
-
response: string;
|
|
3603
3602
|
userInputId: string;
|
|
3603
|
+
response: string;
|
|
3604
3604
|
changes: {
|
|
3605
3605
|
path: string;
|
|
3606
|
-
content: string;
|
|
3607
3606
|
type: "file" | "patch";
|
|
3607
|
+
content: string;
|
|
3608
3608
|
}[];
|
|
3609
3609
|
changesAlreadyApplied: {
|
|
3610
3610
|
path: string;
|
|
3611
|
-
content: string;
|
|
3612
3611
|
type: "file" | "patch";
|
|
3612
|
+
content: string;
|
|
3613
3613
|
}[];
|
|
3614
3614
|
addedFileVersions: {
|
|
3615
3615
|
path: string;
|
|
3616
3616
|
content: string;
|
|
3617
3617
|
}[];
|
|
3618
3618
|
resetFileVersions: boolean;
|
|
3619
|
-
next_quota_reset?: Date | null | undefined;
|
|
3620
3619
|
usage?: number | undefined;
|
|
3621
3620
|
remainingBalance?: number | undefined;
|
|
3622
3621
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3622
|
+
next_quota_reset?: Date | null | undefined;
|
|
3623
3623
|
autoTopupAdded?: number | undefined;
|
|
3624
3624
|
} | {
|
|
3625
3625
|
type: "message-cost-response";
|
|
3626
|
-
credits: number;
|
|
3627
3626
|
promptId: string;
|
|
3627
|
+
credits: number;
|
|
3628
3628
|
} | {
|
|
3629
3629
|
type: "prompt-response";
|
|
3630
3630
|
promptId: string;
|
|
@@ -3738,17 +3738,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3738
3738
|
id: string;
|
|
3739
3739
|
input: Record<string, any>;
|
|
3740
3740
|
};
|
|
3741
|
-
response: string;
|
|
3742
3741
|
userInputId: string;
|
|
3742
|
+
response: string;
|
|
3743
3743
|
changes: {
|
|
3744
3744
|
path: string;
|
|
3745
|
-
content: string;
|
|
3746
3745
|
type: "file" | "patch";
|
|
3746
|
+
content: string;
|
|
3747
3747
|
}[];
|
|
3748
3748
|
changesAlreadyApplied: {
|
|
3749
3749
|
path: string;
|
|
3750
|
-
content: string;
|
|
3751
3750
|
type: "file" | "patch";
|
|
3751
|
+
content: string;
|
|
3752
3752
|
}[];
|
|
3753
3753
|
addedFileVersions: {
|
|
3754
3754
|
path: string;
|
|
@@ -3766,8 +3766,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3766
3766
|
} | {
|
|
3767
3767
|
message: string;
|
|
3768
3768
|
type: "action-error";
|
|
3769
|
-
error?: string | undefined;
|
|
3770
3769
|
remainingBalance?: number | undefined;
|
|
3770
|
+
error?: string | undefined;
|
|
3771
3771
|
} | {
|
|
3772
3772
|
type: "commit-message-response";
|
|
3773
3773
|
commitMessage: string;
|
|
@@ -3815,12 +3815,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3815
3815
|
content: z.ZodString;
|
|
3816
3816
|
}, "strip", z.ZodTypeAny, {
|
|
3817
3817
|
path: string;
|
|
3818
|
-
content: string;
|
|
3819
3818
|
type: "file" | "patch";
|
|
3819
|
+
content: string;
|
|
3820
3820
|
}, {
|
|
3821
3821
|
path: string;
|
|
3822
|
-
content: string;
|
|
3823
3822
|
type: "file" | "patch";
|
|
3823
|
+
content: string;
|
|
3824
3824
|
}>, "many">;
|
|
3825
3825
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3826
3826
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3828,12 +3828,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3828
3828
|
content: z.ZodString;
|
|
3829
3829
|
}, "strip", z.ZodTypeAny, {
|
|
3830
3830
|
path: string;
|
|
3831
|
-
content: string;
|
|
3832
3831
|
type: "file" | "patch";
|
|
3832
|
+
content: string;
|
|
3833
3833
|
}, {
|
|
3834
3834
|
path: string;
|
|
3835
|
-
content: string;
|
|
3836
3835
|
type: "file" | "patch";
|
|
3836
|
+
content: string;
|
|
3837
3837
|
}>, "many">;
|
|
3838
3838
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3839
3839
|
path: z.ZodString;
|
|
@@ -3847,58 +3847,58 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3847
3847
|
}>, "many">;
|
|
3848
3848
|
resetFileVersions: z.ZodBoolean;
|
|
3849
3849
|
}, {
|
|
3850
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3851
3850
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
3852
3851
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3853
3852
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
3853
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3854
3854
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3855
3855
|
}>, "strip", z.ZodTypeAny, {
|
|
3856
3856
|
type: "response-complete";
|
|
3857
|
-
response: string;
|
|
3858
3857
|
userInputId: string;
|
|
3858
|
+
response: string;
|
|
3859
3859
|
changes: {
|
|
3860
3860
|
path: string;
|
|
3861
|
-
content: string;
|
|
3862
3861
|
type: "file" | "patch";
|
|
3862
|
+
content: string;
|
|
3863
3863
|
}[];
|
|
3864
3864
|
changesAlreadyApplied: {
|
|
3865
3865
|
path: string;
|
|
3866
|
-
content: string;
|
|
3867
3866
|
type: "file" | "patch";
|
|
3867
|
+
content: string;
|
|
3868
3868
|
}[];
|
|
3869
3869
|
addedFileVersions: {
|
|
3870
3870
|
path: string;
|
|
3871
3871
|
content: string;
|
|
3872
3872
|
}[];
|
|
3873
3873
|
resetFileVersions: boolean;
|
|
3874
|
-
next_quota_reset?: Date | null | undefined;
|
|
3875
3874
|
usage?: number | undefined;
|
|
3876
3875
|
remainingBalance?: number | undefined;
|
|
3877
3876
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3877
|
+
next_quota_reset?: Date | null | undefined;
|
|
3878
3878
|
autoTopupAdded?: number | undefined;
|
|
3879
3879
|
}, {
|
|
3880
3880
|
type: "response-complete";
|
|
3881
|
-
response: string;
|
|
3882
3881
|
userInputId: string;
|
|
3882
|
+
response: string;
|
|
3883
3883
|
changes: {
|
|
3884
3884
|
path: string;
|
|
3885
|
-
content: string;
|
|
3886
3885
|
type: "file" | "patch";
|
|
3886
|
+
content: string;
|
|
3887
3887
|
}[];
|
|
3888
3888
|
changesAlreadyApplied: {
|
|
3889
3889
|
path: string;
|
|
3890
|
-
content: string;
|
|
3891
3890
|
type: "file" | "patch";
|
|
3891
|
+
content: string;
|
|
3892
3892
|
}[];
|
|
3893
3893
|
addedFileVersions: {
|
|
3894
3894
|
path: string;
|
|
3895
3895
|
content: string;
|
|
3896
3896
|
}[];
|
|
3897
3897
|
resetFileVersions: boolean;
|
|
3898
|
-
next_quota_reset?: Date | null | undefined;
|
|
3899
3898
|
usage?: number | undefined;
|
|
3900
3899
|
remainingBalance?: number | undefined;
|
|
3901
3900
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3901
|
+
next_quota_reset?: Date | null | undefined;
|
|
3902
3902
|
autoTopupAdded?: number | undefined;
|
|
3903
3903
|
}>, z.ZodObject<{
|
|
3904
3904
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -4577,12 +4577,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4577
4577
|
content: z.ZodString;
|
|
4578
4578
|
}, "strip", z.ZodTypeAny, {
|
|
4579
4579
|
path: string;
|
|
4580
|
-
content: string;
|
|
4581
4580
|
type: "file" | "patch";
|
|
4581
|
+
content: string;
|
|
4582
4582
|
}, {
|
|
4583
4583
|
path: string;
|
|
4584
|
-
content: string;
|
|
4585
4584
|
type: "file" | "patch";
|
|
4585
|
+
content: string;
|
|
4586
4586
|
}>, "many">;
|
|
4587
4587
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4588
4588
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -4590,12 +4590,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4590
4590
|
content: z.ZodString;
|
|
4591
4591
|
}, "strip", z.ZodTypeAny, {
|
|
4592
4592
|
path: string;
|
|
4593
|
-
content: string;
|
|
4594
4593
|
type: "file" | "patch";
|
|
4594
|
+
content: string;
|
|
4595
4595
|
}, {
|
|
4596
4596
|
path: string;
|
|
4597
|
-
content: string;
|
|
4598
4597
|
type: "file" | "patch";
|
|
4598
|
+
content: string;
|
|
4599
4599
|
}>, "many">;
|
|
4600
4600
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4601
4601
|
path: z.ZodString;
|
|
@@ -4615,17 +4615,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4615
4615
|
id: string;
|
|
4616
4616
|
input: Record<string, any>;
|
|
4617
4617
|
};
|
|
4618
|
-
response: string;
|
|
4619
4618
|
userInputId: string;
|
|
4619
|
+
response: string;
|
|
4620
4620
|
changes: {
|
|
4621
4621
|
path: string;
|
|
4622
|
-
content: string;
|
|
4623
4622
|
type: "file" | "patch";
|
|
4623
|
+
content: string;
|
|
4624
4624
|
}[];
|
|
4625
4625
|
changesAlreadyApplied: {
|
|
4626
4626
|
path: string;
|
|
4627
|
-
content: string;
|
|
4628
4627
|
type: "file" | "patch";
|
|
4628
|
+
content: string;
|
|
4629
4629
|
}[];
|
|
4630
4630
|
addedFileVersions: {
|
|
4631
4631
|
path: string;
|
|
@@ -4639,17 +4639,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4639
4639
|
id: string;
|
|
4640
4640
|
input: Record<string, any>;
|
|
4641
4641
|
};
|
|
4642
|
-
response: string;
|
|
4643
4642
|
userInputId: string;
|
|
4643
|
+
response: string;
|
|
4644
4644
|
changes: {
|
|
4645
4645
|
path: string;
|
|
4646
|
-
content: string;
|
|
4647
4646
|
type: "file" | "patch";
|
|
4647
|
+
content: string;
|
|
4648
4648
|
}[];
|
|
4649
4649
|
changesAlreadyApplied: {
|
|
4650
4650
|
path: string;
|
|
4651
|
-
content: string;
|
|
4652
4651
|
type: "file" | "patch";
|
|
4652
|
+
content: string;
|
|
4653
4653
|
}[];
|
|
4654
4654
|
addedFileVersions: {
|
|
4655
4655
|
path: string;
|
|
@@ -4691,16 +4691,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4691
4691
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4692
4692
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
4693
4693
|
type: "init-response";
|
|
4694
|
-
next_quota_reset: Date | null;
|
|
4695
4694
|
usage: number;
|
|
4696
4695
|
remainingBalance: number;
|
|
4696
|
+
next_quota_reset: Date | null;
|
|
4697
4697
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4698
4698
|
autoTopupAdded?: number | undefined;
|
|
4699
4699
|
}, {
|
|
4700
4700
|
type: "init-response";
|
|
4701
|
-
next_quota_reset: Date | null;
|
|
4702
4701
|
usage: number;
|
|
4703
4702
|
remainingBalance: number;
|
|
4703
|
+
next_quota_reset: Date | null;
|
|
4704
4704
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4705
4705
|
autoTopupAdded?: number | undefined;
|
|
4706
4706
|
}>, z.ZodObject<{
|
|
@@ -4712,16 +4712,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4712
4712
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4713
4713
|
}, "strip", z.ZodTypeAny, {
|
|
4714
4714
|
type: "usage-response";
|
|
4715
|
-
next_quota_reset: Date | null;
|
|
4716
4715
|
usage: number;
|
|
4717
4716
|
remainingBalance: number;
|
|
4717
|
+
next_quota_reset: Date | null;
|
|
4718
4718
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4719
4719
|
autoTopupAdded?: number | undefined;
|
|
4720
4720
|
}, {
|
|
4721
4721
|
type: "usage-response";
|
|
4722
|
-
next_quota_reset: Date | null;
|
|
4723
4722
|
usage: number;
|
|
4724
4723
|
remainingBalance: number;
|
|
4724
|
+
next_quota_reset: Date | null;
|
|
4725
4725
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4726
4726
|
autoTopupAdded?: number | undefined;
|
|
4727
4727
|
}>, z.ZodObject<{
|
|
@@ -4730,12 +4730,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4730
4730
|
credits: z.ZodNumber;
|
|
4731
4731
|
}, "strip", z.ZodTypeAny, {
|
|
4732
4732
|
type: "message-cost-response";
|
|
4733
|
-
credits: number;
|
|
4734
4733
|
promptId: string;
|
|
4734
|
+
credits: number;
|
|
4735
4735
|
}, {
|
|
4736
4736
|
type: "message-cost-response";
|
|
4737
|
-
credits: number;
|
|
4738
4737
|
promptId: string;
|
|
4738
|
+
credits: number;
|
|
4739
4739
|
}>, z.ZodObject<{
|
|
4740
4740
|
type: z.ZodLiteral<"action-error">;
|
|
4741
4741
|
message: z.ZodString;
|
|
@@ -4744,13 +4744,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4744
4744
|
}, "strip", z.ZodTypeAny, {
|
|
4745
4745
|
message: string;
|
|
4746
4746
|
type: "action-error";
|
|
4747
|
-
error?: string | undefined;
|
|
4748
4747
|
remainingBalance?: number | undefined;
|
|
4748
|
+
error?: string | undefined;
|
|
4749
4749
|
}, {
|
|
4750
4750
|
message: string;
|
|
4751
4751
|
type: "action-error";
|
|
4752
|
-
error?: string | undefined;
|
|
4753
4752
|
remainingBalance?: number | undefined;
|
|
4753
|
+
error?: string | undefined;
|
|
4754
4754
|
}>, z.ZodObject<{
|
|
4755
4755
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4756
4756
|
commitMessage: z.ZodString;
|
|
@@ -4771,46 +4771,46 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4771
4771
|
type: "action";
|
|
4772
4772
|
data: {
|
|
4773
4773
|
type: "usage-response";
|
|
4774
|
-
next_quota_reset: Date | null;
|
|
4775
4774
|
usage: number;
|
|
4776
4775
|
remainingBalance: number;
|
|
4776
|
+
next_quota_reset: Date | null;
|
|
4777
4777
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4778
4778
|
autoTopupAdded?: number | undefined;
|
|
4779
4779
|
} | {
|
|
4780
4780
|
type: "init-response";
|
|
4781
|
-
next_quota_reset: Date | null;
|
|
4782
4781
|
usage: number;
|
|
4783
4782
|
remainingBalance: number;
|
|
4783
|
+
next_quota_reset: Date | null;
|
|
4784
4784
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4785
4785
|
autoTopupAdded?: number | undefined;
|
|
4786
4786
|
} | {
|
|
4787
4787
|
type: "response-complete";
|
|
4788
|
-
response: string;
|
|
4789
4788
|
userInputId: string;
|
|
4789
|
+
response: string;
|
|
4790
4790
|
changes: {
|
|
4791
4791
|
path: string;
|
|
4792
|
-
content: string;
|
|
4793
4792
|
type: "file" | "patch";
|
|
4793
|
+
content: string;
|
|
4794
4794
|
}[];
|
|
4795
4795
|
changesAlreadyApplied: {
|
|
4796
4796
|
path: string;
|
|
4797
|
-
content: string;
|
|
4798
4797
|
type: "file" | "patch";
|
|
4798
|
+
content: string;
|
|
4799
4799
|
}[];
|
|
4800
4800
|
addedFileVersions: {
|
|
4801
4801
|
path: string;
|
|
4802
4802
|
content: string;
|
|
4803
4803
|
}[];
|
|
4804
4804
|
resetFileVersions: boolean;
|
|
4805
|
-
next_quota_reset?: Date | null | undefined;
|
|
4806
4805
|
usage?: number | undefined;
|
|
4807
4806
|
remainingBalance?: number | undefined;
|
|
4808
4807
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4808
|
+
next_quota_reset?: Date | null | undefined;
|
|
4809
4809
|
autoTopupAdded?: number | undefined;
|
|
4810
4810
|
} | {
|
|
4811
4811
|
type: "message-cost-response";
|
|
4812
|
-
credits: number;
|
|
4813
4812
|
promptId: string;
|
|
4813
|
+
credits: number;
|
|
4814
4814
|
} | {
|
|
4815
4815
|
type: "prompt-response";
|
|
4816
4816
|
promptId: string;
|
|
@@ -4924,17 +4924,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4924
4924
|
id: string;
|
|
4925
4925
|
input: Record<string, any>;
|
|
4926
4926
|
};
|
|
4927
|
-
response: string;
|
|
4928
4927
|
userInputId: string;
|
|
4928
|
+
response: string;
|
|
4929
4929
|
changes: {
|
|
4930
4930
|
path: string;
|
|
4931
|
-
content: string;
|
|
4932
4931
|
type: "file" | "patch";
|
|
4932
|
+
content: string;
|
|
4933
4933
|
}[];
|
|
4934
4934
|
changesAlreadyApplied: {
|
|
4935
4935
|
path: string;
|
|
4936
|
-
content: string;
|
|
4937
4936
|
type: "file" | "patch";
|
|
4937
|
+
content: string;
|
|
4938
4938
|
}[];
|
|
4939
4939
|
addedFileVersions: {
|
|
4940
4940
|
path: string;
|
|
@@ -4952,8 +4952,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4952
4952
|
} | {
|
|
4953
4953
|
message: string;
|
|
4954
4954
|
type: "action-error";
|
|
4955
|
-
error?: string | undefined;
|
|
4956
4955
|
remainingBalance?: number | undefined;
|
|
4956
|
+
error?: string | undefined;
|
|
4957
4957
|
} | {
|
|
4958
4958
|
type: "commit-message-response";
|
|
4959
4959
|
commitMessage: string;
|
|
@@ -4964,46 +4964,46 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4964
4964
|
type: "action";
|
|
4965
4965
|
data: {
|
|
4966
4966
|
type: "usage-response";
|
|
4967
|
-
next_quota_reset: Date | null;
|
|
4968
4967
|
usage: number;
|
|
4969
4968
|
remainingBalance: number;
|
|
4969
|
+
next_quota_reset: Date | null;
|
|
4970
4970
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4971
4971
|
autoTopupAdded?: number | undefined;
|
|
4972
4972
|
} | {
|
|
4973
4973
|
type: "init-response";
|
|
4974
|
-
next_quota_reset: Date | null;
|
|
4975
4974
|
usage: number;
|
|
4976
4975
|
remainingBalance: number;
|
|
4976
|
+
next_quota_reset: Date | null;
|
|
4977
4977
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4978
4978
|
autoTopupAdded?: number | undefined;
|
|
4979
4979
|
} | {
|
|
4980
4980
|
type: "response-complete";
|
|
4981
|
-
response: string;
|
|
4982
4981
|
userInputId: string;
|
|
4982
|
+
response: string;
|
|
4983
4983
|
changes: {
|
|
4984
4984
|
path: string;
|
|
4985
|
-
content: string;
|
|
4986
4985
|
type: "file" | "patch";
|
|
4986
|
+
content: string;
|
|
4987
4987
|
}[];
|
|
4988
4988
|
changesAlreadyApplied: {
|
|
4989
4989
|
path: string;
|
|
4990
|
-
content: string;
|
|
4991
4990
|
type: "file" | "patch";
|
|
4991
|
+
content: string;
|
|
4992
4992
|
}[];
|
|
4993
4993
|
addedFileVersions: {
|
|
4994
4994
|
path: string;
|
|
4995
4995
|
content: string;
|
|
4996
4996
|
}[];
|
|
4997
4997
|
resetFileVersions: boolean;
|
|
4998
|
-
next_quota_reset?: Date | null | undefined;
|
|
4999
4998
|
usage?: number | undefined;
|
|
5000
4999
|
remainingBalance?: number | undefined;
|
|
5001
5000
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
5001
|
+
next_quota_reset?: Date | null | undefined;
|
|
5002
5002
|
autoTopupAdded?: number | undefined;
|
|
5003
5003
|
} | {
|
|
5004
5004
|
type: "message-cost-response";
|
|
5005
|
-
credits: number;
|
|
5006
5005
|
promptId: string;
|
|
5006
|
+
credits: number;
|
|
5007
5007
|
} | {
|
|
5008
5008
|
type: "prompt-response";
|
|
5009
5009
|
promptId: string;
|
|
@@ -5117,17 +5117,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5117
5117
|
id: string;
|
|
5118
5118
|
input: Record<string, any>;
|
|
5119
5119
|
};
|
|
5120
|
-
response: string;
|
|
5121
5120
|
userInputId: string;
|
|
5121
|
+
response: string;
|
|
5122
5122
|
changes: {
|
|
5123
5123
|
path: string;
|
|
5124
|
-
content: string;
|
|
5125
5124
|
type: "file" | "patch";
|
|
5125
|
+
content: string;
|
|
5126
5126
|
}[];
|
|
5127
5127
|
changesAlreadyApplied: {
|
|
5128
5128
|
path: string;
|
|
5129
|
-
content: string;
|
|
5130
5129
|
type: "file" | "patch";
|
|
5130
|
+
content: string;
|
|
5131
5131
|
}[];
|
|
5132
5132
|
addedFileVersions: {
|
|
5133
5133
|
path: string;
|
|
@@ -5145,8 +5145,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5145
5145
|
} | {
|
|
5146
5146
|
message: string;
|
|
5147
5147
|
type: "action-error";
|
|
5148
|
-
error?: string | undefined;
|
|
5149
5148
|
remainingBalance?: number | undefined;
|
|
5149
|
+
error?: string | undefined;
|
|
5150
5150
|
} | {
|
|
5151
5151
|
type: "commit-message-response";
|
|
5152
5152
|
commitMessage: string;
|