codebuff 1.0.328 → 1.0.330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +404 -180
- package/dist/common/actions.d.ts.map +1 -1
- package/dist/common/actions.js +0 -1
- package/dist/common/actions.js.map +1 -1
- package/dist/common/analytics.d.ts +1 -1
- package/dist/common/browser-actions.d.ts +277 -277
- package/dist/common/constants.d.ts +5 -0
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/constants.js +15 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/json-config/default.d.ts +3 -0
- package/dist/common/json-config/default.d.ts.map +1 -0
- package/dist/common/json-config/default.js +12 -0
- package/dist/common/json-config/default.js.map +1 -0
- package/dist/common/types/agent-state.d.ts +46 -11
- package/dist/common/types/agent-state.d.ts.map +1 -1
- package/dist/common/types/agent-state.js +12 -5
- package/dist/common/types/agent-state.js.map +1 -1
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/util/file.d.ts +6 -3
- package/dist/common/util/file.d.ts.map +1 -1
- package/dist/common/util/file.js +2 -1
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +790 -394
- package/dist/common/websockets/websocket-schema.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/json-config/parser.d.ts +1 -1
- package/dist/json-config/parser.js +4 -3
- package/dist/json-config/parser.js.map +1 -1
- package/dist/project-files.d.ts +2 -1
- package/dist/project-files.js +3 -2
- package/dist/project-files.js.map +1 -1
- package/dist/terminal/base.js +1 -1
- package/dist/terminal/base.js.map +1 -1
- package/package.json +1 -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
package/dist/common/actions.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ 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";
|
|
8
7
|
path: string;
|
|
9
8
|
content: string;
|
|
9
|
+
type: "file" | "patch";
|
|
10
10
|
}, {
|
|
11
|
-
type: "patch" | "file";
|
|
12
11
|
path: string;
|
|
13
12
|
content: string;
|
|
13
|
+
type: "file" | "patch";
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
16
16
|
export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
@@ -18,13 +18,13 @@ 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";
|
|
22
21
|
path: string;
|
|
23
22
|
content: string;
|
|
23
|
+
type: "file" | "patch";
|
|
24
24
|
}, {
|
|
25
|
-
type: "patch" | "file";
|
|
26
25
|
path: string;
|
|
27
26
|
content: string;
|
|
27
|
+
type: "file" | "patch";
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
30
30
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -51,7 +51,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
51
51
|
agentState: z.ZodObject<{
|
|
52
52
|
agentContext: z.ZodString;
|
|
53
53
|
fileContext: z.ZodObject<{
|
|
54
|
-
|
|
54
|
+
projectRoot: z.ZodString;
|
|
55
|
+
cwd: z.ZodString;
|
|
55
56
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
56
57
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
57
58
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -108,7 +109,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
108
109
|
content: string;
|
|
109
110
|
}>, "many">, "many">>;
|
|
110
111
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
|
|
112
|
+
projectRoot: string;
|
|
113
|
+
cwd: string;
|
|
112
114
|
fileTree: import("./util/file").FileTreeNode[];
|
|
113
115
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
114
116
|
knowledgeFiles: Record<string, string>;
|
|
@@ -135,7 +137,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
135
137
|
content: string;
|
|
136
138
|
}[][] | undefined;
|
|
137
139
|
}, {
|
|
138
|
-
|
|
140
|
+
projectRoot: string;
|
|
141
|
+
cwd: string;
|
|
139
142
|
fileTree: import("./util/file").FileTreeNode[];
|
|
140
143
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
141
144
|
knowledgeFiles: Record<string, string>;
|
|
@@ -169,12 +172,23 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
169
172
|
}, {
|
|
170
173
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
171
174
|
}>>, "many">;
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
176
|
+
agentId: string;
|
|
177
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
178
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
179
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
180
|
+
}, z.ZodTypeDef, {
|
|
181
|
+
agentId: string;
|
|
182
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
183
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
184
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
185
|
+
}>, "many">>;
|
|
186
|
+
agentStepsRemaining: z.ZodNumber;
|
|
174
187
|
}, "strip", z.ZodTypeAny, {
|
|
175
188
|
agentContext: string;
|
|
176
189
|
fileContext: {
|
|
177
|
-
|
|
190
|
+
projectRoot: string;
|
|
191
|
+
cwd: string;
|
|
178
192
|
fileTree: import("./util/file").FileTreeNode[];
|
|
179
193
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
180
194
|
knowledgeFiles: Record<string, string>;
|
|
@@ -204,12 +218,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
204
218
|
messageHistory: (import("ai").CoreMessage & {
|
|
205
219
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
206
220
|
})[];
|
|
207
|
-
|
|
208
|
-
|
|
221
|
+
agents: {
|
|
222
|
+
agentId: string;
|
|
223
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
224
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
225
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
226
|
+
}[];
|
|
227
|
+
agentStepsRemaining: number;
|
|
209
228
|
}, {
|
|
210
229
|
agentContext: string;
|
|
211
230
|
fileContext: {
|
|
212
|
-
|
|
231
|
+
projectRoot: string;
|
|
232
|
+
cwd: string;
|
|
213
233
|
fileTree: import("./util/file").FileTreeNode[];
|
|
214
234
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
215
235
|
knowledgeFiles: Record<string, string>;
|
|
@@ -239,8 +259,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
239
259
|
messageHistory: (import("ai").CoreMessage & {
|
|
240
260
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
241
261
|
})[];
|
|
242
|
-
|
|
243
|
-
|
|
262
|
+
agentStepsRemaining: number;
|
|
263
|
+
agents?: {
|
|
264
|
+
agentId: string;
|
|
265
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
266
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
267
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
268
|
+
}[] | undefined;
|
|
244
269
|
}>;
|
|
245
270
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
246
271
|
name: z.ZodString;
|
|
@@ -256,17 +281,17 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
256
281
|
result: string;
|
|
257
282
|
}>, "many">;
|
|
258
283
|
model: z.ZodOptional<z.ZodString>;
|
|
259
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
260
284
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
261
285
|
}, "strip", z.ZodTypeAny, {
|
|
262
286
|
type: "prompt";
|
|
263
287
|
promptId: string;
|
|
264
288
|
fingerprintId: string;
|
|
265
|
-
costMode: "
|
|
289
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
266
290
|
agentState: {
|
|
267
291
|
agentContext: string;
|
|
268
292
|
fileContext: {
|
|
269
|
-
|
|
293
|
+
projectRoot: string;
|
|
294
|
+
cwd: string;
|
|
270
295
|
fileTree: import("./util/file").FileTreeNode[];
|
|
271
296
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
272
297
|
knowledgeFiles: Record<string, string>;
|
|
@@ -296,18 +321,22 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
296
321
|
messageHistory: (import("ai").CoreMessage & {
|
|
297
322
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
298
323
|
})[];
|
|
299
|
-
|
|
300
|
-
|
|
324
|
+
agents: {
|
|
325
|
+
agentId: string;
|
|
326
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
327
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
328
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
329
|
+
}[];
|
|
330
|
+
agentStepsRemaining: number;
|
|
301
331
|
};
|
|
302
332
|
toolResults: {
|
|
303
333
|
name: string;
|
|
304
334
|
id: string;
|
|
305
335
|
result: string;
|
|
306
336
|
}[];
|
|
307
|
-
model?: string | undefined;
|
|
308
337
|
prompt?: string | undefined;
|
|
309
338
|
authToken?: string | undefined;
|
|
310
|
-
|
|
339
|
+
model?: string | undefined;
|
|
311
340
|
repoUrl?: string | undefined;
|
|
312
341
|
}, {
|
|
313
342
|
type: "prompt";
|
|
@@ -316,7 +345,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
316
345
|
agentState: {
|
|
317
346
|
agentContext: string;
|
|
318
347
|
fileContext: {
|
|
319
|
-
|
|
348
|
+
projectRoot: string;
|
|
349
|
+
cwd: string;
|
|
320
350
|
fileTree: import("./util/file").FileTreeNode[];
|
|
321
351
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
322
352
|
knowledgeFiles: Record<string, string>;
|
|
@@ -346,19 +376,23 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
346
376
|
messageHistory: (import("ai").CoreMessage & {
|
|
347
377
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
348
378
|
})[];
|
|
349
|
-
|
|
350
|
-
|
|
379
|
+
agentStepsRemaining: number;
|
|
380
|
+
agents?: {
|
|
381
|
+
agentId: string;
|
|
382
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
383
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
384
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
385
|
+
}[] | undefined;
|
|
351
386
|
};
|
|
352
387
|
toolResults: {
|
|
353
388
|
name: string;
|
|
354
389
|
id: string;
|
|
355
390
|
result: string;
|
|
356
391
|
}[];
|
|
357
|
-
model?: string | undefined;
|
|
358
392
|
prompt?: string | undefined;
|
|
359
393
|
authToken?: string | undefined;
|
|
360
|
-
costMode?: "
|
|
361
|
-
|
|
394
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
395
|
+
model?: string | undefined;
|
|
362
396
|
repoUrl?: string | undefined;
|
|
363
397
|
}>, z.ZodObject<{
|
|
364
398
|
type: z.ZodLiteral<"manager-prompt">;
|
|
@@ -367,7 +401,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
367
401
|
agentState: z.ZodObject<{
|
|
368
402
|
agentContext: z.ZodString;
|
|
369
403
|
fileContext: z.ZodObject<{
|
|
370
|
-
|
|
404
|
+
projectRoot: z.ZodString;
|
|
405
|
+
cwd: z.ZodString;
|
|
371
406
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
372
407
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
373
408
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -424,7 +459,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
424
459
|
content: string;
|
|
425
460
|
}>, "many">, "many">>;
|
|
426
461
|
}, "strip", z.ZodTypeAny, {
|
|
427
|
-
|
|
462
|
+
projectRoot: string;
|
|
463
|
+
cwd: string;
|
|
428
464
|
fileTree: import("./util/file").FileTreeNode[];
|
|
429
465
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
430
466
|
knowledgeFiles: Record<string, string>;
|
|
@@ -451,7 +487,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
451
487
|
content: string;
|
|
452
488
|
}[][] | undefined;
|
|
453
489
|
}, {
|
|
454
|
-
|
|
490
|
+
projectRoot: string;
|
|
491
|
+
cwd: string;
|
|
455
492
|
fileTree: import("./util/file").FileTreeNode[];
|
|
456
493
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
457
494
|
knowledgeFiles: Record<string, string>;
|
|
@@ -485,12 +522,23 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
485
522
|
}, {
|
|
486
523
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
487
524
|
}>>, "many">;
|
|
488
|
-
|
|
489
|
-
|
|
525
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
526
|
+
agentId: string;
|
|
527
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
528
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
529
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
530
|
+
}, z.ZodTypeDef, {
|
|
531
|
+
agentId: string;
|
|
532
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
533
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
534
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
535
|
+
}>, "many">>;
|
|
536
|
+
agentStepsRemaining: z.ZodNumber;
|
|
490
537
|
}, "strip", z.ZodTypeAny, {
|
|
491
538
|
agentContext: string;
|
|
492
539
|
fileContext: {
|
|
493
|
-
|
|
540
|
+
projectRoot: string;
|
|
541
|
+
cwd: string;
|
|
494
542
|
fileTree: import("./util/file").FileTreeNode[];
|
|
495
543
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
496
544
|
knowledgeFiles: Record<string, string>;
|
|
@@ -520,12 +568,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
520
568
|
messageHistory: (import("ai").CoreMessage & {
|
|
521
569
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
522
570
|
})[];
|
|
523
|
-
|
|
524
|
-
|
|
571
|
+
agents: {
|
|
572
|
+
agentId: string;
|
|
573
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
574
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
575
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
576
|
+
}[];
|
|
577
|
+
agentStepsRemaining: number;
|
|
525
578
|
}, {
|
|
526
579
|
agentContext: string;
|
|
527
580
|
fileContext: {
|
|
528
|
-
|
|
581
|
+
projectRoot: string;
|
|
582
|
+
cwd: string;
|
|
529
583
|
fileTree: import("./util/file").FileTreeNode[];
|
|
530
584
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
531
585
|
knowledgeFiles: Record<string, string>;
|
|
@@ -555,8 +609,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
555
609
|
messageHistory: (import("ai").CoreMessage & {
|
|
556
610
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
557
611
|
})[];
|
|
558
|
-
|
|
559
|
-
|
|
612
|
+
agentStepsRemaining: number;
|
|
613
|
+
agents?: {
|
|
614
|
+
agentId: string;
|
|
615
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
616
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
617
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
618
|
+
}[] | undefined;
|
|
560
619
|
}>;
|
|
561
620
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
562
621
|
name: z.ZodString;
|
|
@@ -581,11 +640,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
581
640
|
type: "manager-prompt";
|
|
582
641
|
promptId: string;
|
|
583
642
|
fingerprintId: string;
|
|
584
|
-
costMode: "
|
|
643
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
585
644
|
agentState: {
|
|
586
645
|
agentContext: string;
|
|
587
646
|
fileContext: {
|
|
588
|
-
|
|
647
|
+
projectRoot: string;
|
|
648
|
+
cwd: string;
|
|
589
649
|
fileTree: import("./util/file").FileTreeNode[];
|
|
590
650
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
591
651
|
knowledgeFiles: Record<string, string>;
|
|
@@ -615,18 +675,23 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
615
675
|
messageHistory: (import("ai").CoreMessage & {
|
|
616
676
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
617
677
|
})[];
|
|
618
|
-
|
|
619
|
-
|
|
678
|
+
agents: {
|
|
679
|
+
agentId: string;
|
|
680
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
681
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
682
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
683
|
+
}[];
|
|
684
|
+
agentStepsRemaining: number;
|
|
620
685
|
};
|
|
621
686
|
toolResults: {
|
|
622
687
|
name: string;
|
|
623
688
|
id: string;
|
|
624
689
|
result: string;
|
|
625
690
|
}[];
|
|
626
|
-
|
|
691
|
+
cwd?: string | undefined;
|
|
627
692
|
prompt?: string | undefined;
|
|
628
693
|
authToken?: string | undefined;
|
|
629
|
-
|
|
694
|
+
model?: string | undefined;
|
|
630
695
|
repoName?: string | undefined;
|
|
631
696
|
}, {
|
|
632
697
|
type: "manager-prompt";
|
|
@@ -635,7 +700,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
635
700
|
agentState: {
|
|
636
701
|
agentContext: string;
|
|
637
702
|
fileContext: {
|
|
638
|
-
|
|
703
|
+
projectRoot: string;
|
|
704
|
+
cwd: string;
|
|
639
705
|
fileTree: import("./util/file").FileTreeNode[];
|
|
640
706
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
641
707
|
knowledgeFiles: Record<string, string>;
|
|
@@ -665,19 +731,24 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
665
731
|
messageHistory: (import("ai").CoreMessage & {
|
|
666
732
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
667
733
|
})[];
|
|
668
|
-
|
|
669
|
-
|
|
734
|
+
agentStepsRemaining: number;
|
|
735
|
+
agents?: {
|
|
736
|
+
agentId: string;
|
|
737
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
738
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
739
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
740
|
+
}[] | undefined;
|
|
670
741
|
};
|
|
671
742
|
toolResults: {
|
|
672
743
|
name: string;
|
|
673
744
|
id: string;
|
|
674
745
|
result: string;
|
|
675
746
|
}[];
|
|
676
|
-
|
|
747
|
+
cwd?: string | undefined;
|
|
677
748
|
prompt?: string | undefined;
|
|
678
749
|
authToken?: string | undefined;
|
|
679
|
-
costMode?: "
|
|
680
|
-
|
|
750
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
751
|
+
model?: string | undefined;
|
|
681
752
|
repoName?: string | undefined;
|
|
682
753
|
}>, z.ZodObject<{
|
|
683
754
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -696,7 +767,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
696
767
|
fingerprintId: z.ZodString;
|
|
697
768
|
authToken: z.ZodOptional<z.ZodString>;
|
|
698
769
|
fileContext: z.ZodObject<{
|
|
699
|
-
|
|
770
|
+
projectRoot: z.ZodString;
|
|
771
|
+
cwd: z.ZodString;
|
|
700
772
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
701
773
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
702
774
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -753,7 +825,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
753
825
|
content: string;
|
|
754
826
|
}>, "many">, "many">>;
|
|
755
827
|
}, "strip", z.ZodTypeAny, {
|
|
756
|
-
|
|
828
|
+
projectRoot: string;
|
|
829
|
+
cwd: string;
|
|
757
830
|
fileTree: import("./util/file").FileTreeNode[];
|
|
758
831
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
759
832
|
knowledgeFiles: Record<string, string>;
|
|
@@ -780,7 +853,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
780
853
|
content: string;
|
|
781
854
|
}[][] | undefined;
|
|
782
855
|
}, {
|
|
783
|
-
|
|
856
|
+
projectRoot: string;
|
|
857
|
+
cwd: string;
|
|
784
858
|
fileTree: import("./util/file").FileTreeNode[];
|
|
785
859
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
786
860
|
knowledgeFiles: Record<string, string>;
|
|
@@ -812,7 +886,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
812
886
|
type: "init";
|
|
813
887
|
fingerprintId: string;
|
|
814
888
|
fileContext: {
|
|
815
|
-
|
|
889
|
+
projectRoot: string;
|
|
890
|
+
cwd: string;
|
|
816
891
|
fileTree: import("./util/file").FileTreeNode[];
|
|
817
892
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
818
893
|
knowledgeFiles: Record<string, string>;
|
|
@@ -845,7 +920,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
845
920
|
type: "init";
|
|
846
921
|
fingerprintId: string;
|
|
847
922
|
fileContext: {
|
|
848
|
-
|
|
923
|
+
projectRoot: string;
|
|
924
|
+
cwd: string;
|
|
849
925
|
fileTree: import("./util/file").FileTreeNode[];
|
|
850
926
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
851
927
|
knowledgeFiles: Record<string, string>;
|
|
@@ -899,17 +975,17 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
899
975
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
900
976
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
901
977
|
}, "strip", z.ZodTypeAny, {
|
|
902
|
-
next_quota_reset: Date | null;
|
|
903
978
|
type: "usage-response";
|
|
904
979
|
usage: number;
|
|
905
980
|
remainingBalance: number;
|
|
981
|
+
next_quota_reset: Date | null;
|
|
906
982
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
907
983
|
autoTopupAdded?: number | undefined;
|
|
908
984
|
}, {
|
|
909
|
-
next_quota_reset: Date | null;
|
|
910
985
|
type: "usage-response";
|
|
911
986
|
usage: number;
|
|
912
987
|
remainingBalance: number;
|
|
988
|
+
next_quota_reset: Date | null;
|
|
913
989
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
914
990
|
autoTopupAdded?: number | undefined;
|
|
915
991
|
}>;
|
|
@@ -924,17 +1000,17 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
924
1000
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
925
1001
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
926
1002
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
927
|
-
next_quota_reset: Date | null;
|
|
928
1003
|
type: "init-response";
|
|
929
1004
|
usage: number;
|
|
930
1005
|
remainingBalance: number;
|
|
1006
|
+
next_quota_reset: Date | null;
|
|
931
1007
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
932
1008
|
autoTopupAdded?: number | undefined;
|
|
933
1009
|
}, {
|
|
934
|
-
next_quota_reset: Date | null;
|
|
935
1010
|
type: "init-response";
|
|
936
1011
|
usage: number;
|
|
937
1012
|
remainingBalance: number;
|
|
1013
|
+
next_quota_reset: Date | null;
|
|
938
1014
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
939
1015
|
autoTopupAdded?: number | undefined;
|
|
940
1016
|
}>;
|
|
@@ -948,26 +1024,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
948
1024
|
path: z.ZodString;
|
|
949
1025
|
content: z.ZodString;
|
|
950
1026
|
}, "strip", z.ZodTypeAny, {
|
|
951
|
-
type: "patch" | "file";
|
|
952
1027
|
path: string;
|
|
953
1028
|
content: string;
|
|
1029
|
+
type: "file" | "patch";
|
|
954
1030
|
}, {
|
|
955
|
-
type: "patch" | "file";
|
|
956
1031
|
path: string;
|
|
957
1032
|
content: string;
|
|
1033
|
+
type: "file" | "patch";
|
|
958
1034
|
}>, "many">;
|
|
959
1035
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
960
1036
|
type: z.ZodEnum<["patch", "file"]>;
|
|
961
1037
|
path: z.ZodString;
|
|
962
1038
|
content: z.ZodString;
|
|
963
1039
|
}, "strip", z.ZodTypeAny, {
|
|
964
|
-
type: "patch" | "file";
|
|
965
1040
|
path: string;
|
|
966
1041
|
content: string;
|
|
1042
|
+
type: "file" | "patch";
|
|
967
1043
|
}, {
|
|
968
|
-
type: "patch" | "file";
|
|
969
1044
|
path: string;
|
|
970
1045
|
content: string;
|
|
1046
|
+
type: "file" | "patch";
|
|
971
1047
|
}>, "many">;
|
|
972
1048
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
973
1049
|
path: z.ZodString;
|
|
@@ -981,58 +1057,58 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
981
1057
|
}>, "many">;
|
|
982
1058
|
resetFileVersions: z.ZodBoolean;
|
|
983
1059
|
}, {
|
|
984
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
985
1060
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
986
1061
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
987
1062
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
1063
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
988
1064
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
989
1065
|
}>, "strip", z.ZodTypeAny, {
|
|
990
1066
|
type: "response-complete";
|
|
991
|
-
response: string;
|
|
992
1067
|
userInputId: string;
|
|
1068
|
+
response: string;
|
|
993
1069
|
changes: {
|
|
994
|
-
type: "patch" | "file";
|
|
995
1070
|
path: string;
|
|
996
1071
|
content: string;
|
|
1072
|
+
type: "file" | "patch";
|
|
997
1073
|
}[];
|
|
998
1074
|
changesAlreadyApplied: {
|
|
999
|
-
type: "patch" | "file";
|
|
1000
1075
|
path: string;
|
|
1001
1076
|
content: string;
|
|
1077
|
+
type: "file" | "patch";
|
|
1002
1078
|
}[];
|
|
1003
1079
|
addedFileVersions: {
|
|
1004
1080
|
path: string;
|
|
1005
1081
|
content: string;
|
|
1006
1082
|
}[];
|
|
1007
1083
|
resetFileVersions: boolean;
|
|
1008
|
-
next_quota_reset?: Date | null | undefined;
|
|
1009
1084
|
usage?: number | undefined;
|
|
1010
1085
|
remainingBalance?: number | undefined;
|
|
1011
1086
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1087
|
+
next_quota_reset?: Date | null | undefined;
|
|
1012
1088
|
autoTopupAdded?: number | undefined;
|
|
1013
1089
|
}, {
|
|
1014
1090
|
type: "response-complete";
|
|
1015
|
-
response: string;
|
|
1016
1091
|
userInputId: string;
|
|
1092
|
+
response: string;
|
|
1017
1093
|
changes: {
|
|
1018
|
-
type: "patch" | "file";
|
|
1019
1094
|
path: string;
|
|
1020
1095
|
content: string;
|
|
1096
|
+
type: "file" | "patch";
|
|
1021
1097
|
}[];
|
|
1022
1098
|
changesAlreadyApplied: {
|
|
1023
|
-
type: "patch" | "file";
|
|
1024
1099
|
path: string;
|
|
1025
1100
|
content: string;
|
|
1101
|
+
type: "file" | "patch";
|
|
1026
1102
|
}[];
|
|
1027
1103
|
addedFileVersions: {
|
|
1028
1104
|
path: string;
|
|
1029
1105
|
content: string;
|
|
1030
1106
|
}[];
|
|
1031
1107
|
resetFileVersions: boolean;
|
|
1032
|
-
next_quota_reset?: Date | null | undefined;
|
|
1033
1108
|
usage?: number | undefined;
|
|
1034
1109
|
remainingBalance?: number | undefined;
|
|
1035
1110
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1111
|
+
next_quota_reset?: Date | null | undefined;
|
|
1036
1112
|
autoTopupAdded?: number | undefined;
|
|
1037
1113
|
}>;
|
|
1038
1114
|
export declare const MessageCostResponseSchema: z.ZodObject<{
|
|
@@ -1041,12 +1117,12 @@ export declare const MessageCostResponseSchema: z.ZodObject<{
|
|
|
1041
1117
|
credits: z.ZodNumber;
|
|
1042
1118
|
}, "strip", z.ZodTypeAny, {
|
|
1043
1119
|
type: "message-cost-response";
|
|
1044
|
-
credits: number;
|
|
1045
1120
|
promptId: string;
|
|
1121
|
+
credits: number;
|
|
1046
1122
|
}, {
|
|
1047
1123
|
type: "message-cost-response";
|
|
1048
|
-
credits: number;
|
|
1049
1124
|
promptId: string;
|
|
1125
|
+
credits: number;
|
|
1050
1126
|
}>;
|
|
1051
1127
|
export type MessageCostResponse = z.infer<typeof MessageCostResponseSchema>;
|
|
1052
1128
|
export declare const PromptResponseSchema: z.ZodObject<{
|
|
@@ -1055,7 +1131,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1055
1131
|
agentState: z.ZodObject<{
|
|
1056
1132
|
agentContext: z.ZodString;
|
|
1057
1133
|
fileContext: z.ZodObject<{
|
|
1058
|
-
|
|
1134
|
+
projectRoot: z.ZodString;
|
|
1135
|
+
cwd: z.ZodString;
|
|
1059
1136
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
1060
1137
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1061
1138
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -1112,7 +1189,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1112
1189
|
content: string;
|
|
1113
1190
|
}>, "many">, "many">>;
|
|
1114
1191
|
}, "strip", z.ZodTypeAny, {
|
|
1115
|
-
|
|
1192
|
+
projectRoot: string;
|
|
1193
|
+
cwd: string;
|
|
1116
1194
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1117
1195
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1118
1196
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1139,7 +1217,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1139
1217
|
content: string;
|
|
1140
1218
|
}[][] | undefined;
|
|
1141
1219
|
}, {
|
|
1142
|
-
|
|
1220
|
+
projectRoot: string;
|
|
1221
|
+
cwd: string;
|
|
1143
1222
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1144
1223
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1145
1224
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1173,12 +1252,23 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1173
1252
|
}, {
|
|
1174
1253
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1175
1254
|
}>>, "many">;
|
|
1176
|
-
|
|
1177
|
-
|
|
1255
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
1256
|
+
agentId: string;
|
|
1257
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1258
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1259
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1260
|
+
}, z.ZodTypeDef, {
|
|
1261
|
+
agentId: string;
|
|
1262
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1263
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1264
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1265
|
+
}>, "many">>;
|
|
1266
|
+
agentStepsRemaining: z.ZodNumber;
|
|
1178
1267
|
}, "strip", z.ZodTypeAny, {
|
|
1179
1268
|
agentContext: string;
|
|
1180
1269
|
fileContext: {
|
|
1181
|
-
|
|
1270
|
+
projectRoot: string;
|
|
1271
|
+
cwd: string;
|
|
1182
1272
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1183
1273
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1184
1274
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1208,12 +1298,18 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1208
1298
|
messageHistory: (import("ai").CoreMessage & {
|
|
1209
1299
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1210
1300
|
})[];
|
|
1211
|
-
|
|
1212
|
-
|
|
1301
|
+
agents: {
|
|
1302
|
+
agentId: string;
|
|
1303
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1304
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1305
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1306
|
+
}[];
|
|
1307
|
+
agentStepsRemaining: number;
|
|
1213
1308
|
}, {
|
|
1214
1309
|
agentContext: string;
|
|
1215
1310
|
fileContext: {
|
|
1216
|
-
|
|
1311
|
+
projectRoot: string;
|
|
1312
|
+
cwd: string;
|
|
1217
1313
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1218
1314
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1219
1315
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1243,8 +1339,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1243
1339
|
messageHistory: (import("ai").CoreMessage & {
|
|
1244
1340
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1245
1341
|
})[];
|
|
1246
|
-
|
|
1247
|
-
|
|
1342
|
+
agentStepsRemaining: number;
|
|
1343
|
+
agents?: {
|
|
1344
|
+
agentId: string;
|
|
1345
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1346
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1347
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1348
|
+
}[] | undefined;
|
|
1248
1349
|
}>;
|
|
1249
1350
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
1250
1351
|
name: z.ZodString;
|
|
@@ -1278,7 +1379,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1278
1379
|
agentState: {
|
|
1279
1380
|
agentContext: string;
|
|
1280
1381
|
fileContext: {
|
|
1281
|
-
|
|
1382
|
+
projectRoot: string;
|
|
1383
|
+
cwd: string;
|
|
1282
1384
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1283
1385
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1284
1386
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1308,8 +1410,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1308
1410
|
messageHistory: (import("ai").CoreMessage & {
|
|
1309
1411
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1310
1412
|
})[];
|
|
1311
|
-
|
|
1312
|
-
|
|
1413
|
+
agents: {
|
|
1414
|
+
agentId: string;
|
|
1415
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1416
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1417
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1418
|
+
}[];
|
|
1419
|
+
agentStepsRemaining: number;
|
|
1313
1420
|
};
|
|
1314
1421
|
toolResults: {
|
|
1315
1422
|
name: string;
|
|
@@ -1327,7 +1434,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1327
1434
|
agentState: {
|
|
1328
1435
|
agentContext: string;
|
|
1329
1436
|
fileContext: {
|
|
1330
|
-
|
|
1437
|
+
projectRoot: string;
|
|
1438
|
+
cwd: string;
|
|
1331
1439
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1332
1440
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1333
1441
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1357,8 +1465,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1357
1465
|
messageHistory: (import("ai").CoreMessage & {
|
|
1358
1466
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1359
1467
|
})[];
|
|
1360
|
-
|
|
1361
|
-
|
|
1468
|
+
agentStepsRemaining: number;
|
|
1469
|
+
agents?: {
|
|
1470
|
+
agentId: string;
|
|
1471
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1472
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1473
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1474
|
+
}[] | undefined;
|
|
1362
1475
|
};
|
|
1363
1476
|
toolResults: {
|
|
1364
1477
|
name: string;
|
|
@@ -1378,7 +1491,8 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1378
1491
|
agentState: z.ZodObject<{
|
|
1379
1492
|
agentContext: z.ZodString;
|
|
1380
1493
|
fileContext: z.ZodObject<{
|
|
1381
|
-
|
|
1494
|
+
projectRoot: z.ZodString;
|
|
1495
|
+
cwd: z.ZodString;
|
|
1382
1496
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
1383
1497
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1384
1498
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -1435,7 +1549,8 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1435
1549
|
content: string;
|
|
1436
1550
|
}>, "many">, "many">>;
|
|
1437
1551
|
}, "strip", z.ZodTypeAny, {
|
|
1438
|
-
|
|
1552
|
+
projectRoot: string;
|
|
1553
|
+
cwd: string;
|
|
1439
1554
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1440
1555
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1441
1556
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1462,7 +1577,8 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1462
1577
|
content: string;
|
|
1463
1578
|
}[][] | undefined;
|
|
1464
1579
|
}, {
|
|
1465
|
-
|
|
1580
|
+
projectRoot: string;
|
|
1581
|
+
cwd: string;
|
|
1466
1582
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1467
1583
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1468
1584
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1496,12 +1612,23 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1496
1612
|
}, {
|
|
1497
1613
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1498
1614
|
}>>, "many">;
|
|
1499
|
-
|
|
1500
|
-
|
|
1615
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
1616
|
+
agentId: string;
|
|
1617
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1618
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1619
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1620
|
+
}, z.ZodTypeDef, {
|
|
1621
|
+
agentId: string;
|
|
1622
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1623
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1624
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1625
|
+
}>, "many">>;
|
|
1626
|
+
agentStepsRemaining: z.ZodNumber;
|
|
1501
1627
|
}, "strip", z.ZodTypeAny, {
|
|
1502
1628
|
agentContext: string;
|
|
1503
1629
|
fileContext: {
|
|
1504
|
-
|
|
1630
|
+
projectRoot: string;
|
|
1631
|
+
cwd: string;
|
|
1505
1632
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1506
1633
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1507
1634
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1531,12 +1658,18 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1531
1658
|
messageHistory: (import("ai").CoreMessage & {
|
|
1532
1659
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1533
1660
|
})[];
|
|
1534
|
-
|
|
1535
|
-
|
|
1661
|
+
agents: {
|
|
1662
|
+
agentId: string;
|
|
1663
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1664
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1665
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1666
|
+
}[];
|
|
1667
|
+
agentStepsRemaining: number;
|
|
1536
1668
|
}, {
|
|
1537
1669
|
agentContext: string;
|
|
1538
1670
|
fileContext: {
|
|
1539
|
-
|
|
1671
|
+
projectRoot: string;
|
|
1672
|
+
cwd: string;
|
|
1540
1673
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1541
1674
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1542
1675
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1566,8 +1699,13 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1566
1699
|
messageHistory: (import("ai").CoreMessage & {
|
|
1567
1700
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1568
1701
|
})[];
|
|
1569
|
-
|
|
1570
|
-
|
|
1702
|
+
agentStepsRemaining: number;
|
|
1703
|
+
agents?: {
|
|
1704
|
+
agentId: string;
|
|
1705
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1706
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1707
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1708
|
+
}[] | undefined;
|
|
1571
1709
|
}>;
|
|
1572
1710
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
1573
1711
|
name: z.ZodString;
|
|
@@ -1601,7 +1739,8 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1601
1739
|
agentState: {
|
|
1602
1740
|
agentContext: string;
|
|
1603
1741
|
fileContext: {
|
|
1604
|
-
|
|
1742
|
+
projectRoot: string;
|
|
1743
|
+
cwd: string;
|
|
1605
1744
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1606
1745
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1607
1746
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1631,8 +1770,13 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1631
1770
|
messageHistory: (import("ai").CoreMessage & {
|
|
1632
1771
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1633
1772
|
})[];
|
|
1634
|
-
|
|
1635
|
-
|
|
1773
|
+
agents: {
|
|
1774
|
+
agentId: string;
|
|
1775
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1776
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1777
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1778
|
+
}[];
|
|
1779
|
+
agentStepsRemaining: number;
|
|
1636
1780
|
};
|
|
1637
1781
|
toolResults: {
|
|
1638
1782
|
name: string;
|
|
@@ -1650,7 +1794,8 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1650
1794
|
agentState: {
|
|
1651
1795
|
agentContext: string;
|
|
1652
1796
|
fileContext: {
|
|
1653
|
-
|
|
1797
|
+
projectRoot: string;
|
|
1798
|
+
cwd: string;
|
|
1654
1799
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1655
1800
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1656
1801
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1680,8 +1825,13 @@ export declare const ManagerPromptResponseSchema: z.ZodObject<{
|
|
|
1680
1825
|
messageHistory: (import("ai").CoreMessage & {
|
|
1681
1826
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1682
1827
|
})[];
|
|
1683
|
-
|
|
1684
|
-
|
|
1828
|
+
agentStepsRemaining: number;
|
|
1829
|
+
agents?: {
|
|
1830
|
+
agentId: string;
|
|
1831
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
1832
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
1833
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
1834
|
+
}[] | undefined;
|
|
1685
1835
|
};
|
|
1686
1836
|
toolResults: {
|
|
1687
1837
|
name: string;
|
|
@@ -1716,26 +1866,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1716
1866
|
path: z.ZodString;
|
|
1717
1867
|
content: z.ZodString;
|
|
1718
1868
|
}, "strip", z.ZodTypeAny, {
|
|
1719
|
-
type: "patch" | "file";
|
|
1720
1869
|
path: string;
|
|
1721
1870
|
content: string;
|
|
1871
|
+
type: "file" | "patch";
|
|
1722
1872
|
}, {
|
|
1723
|
-
type: "patch" | "file";
|
|
1724
1873
|
path: string;
|
|
1725
1874
|
content: string;
|
|
1875
|
+
type: "file" | "patch";
|
|
1726
1876
|
}>, "many">;
|
|
1727
1877
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1728
1878
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1729
1879
|
path: z.ZodString;
|
|
1730
1880
|
content: z.ZodString;
|
|
1731
1881
|
}, "strip", z.ZodTypeAny, {
|
|
1732
|
-
type: "patch" | "file";
|
|
1733
1882
|
path: string;
|
|
1734
1883
|
content: string;
|
|
1884
|
+
type: "file" | "patch";
|
|
1735
1885
|
}, {
|
|
1736
|
-
type: "patch" | "file";
|
|
1737
1886
|
path: string;
|
|
1738
1887
|
content: string;
|
|
1888
|
+
type: "file" | "patch";
|
|
1739
1889
|
}>, "many">;
|
|
1740
1890
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1741
1891
|
path: z.ZodString;
|
|
@@ -1749,58 +1899,58 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1749
1899
|
}>, "many">;
|
|
1750
1900
|
resetFileVersions: z.ZodBoolean;
|
|
1751
1901
|
}, {
|
|
1752
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1753
1902
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
1754
1903
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
1755
1904
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
1905
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1756
1906
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1757
1907
|
}>, "strip", z.ZodTypeAny, {
|
|
1758
1908
|
type: "response-complete";
|
|
1759
|
-
response: string;
|
|
1760
1909
|
userInputId: string;
|
|
1910
|
+
response: string;
|
|
1761
1911
|
changes: {
|
|
1762
|
-
type: "patch" | "file";
|
|
1763
1912
|
path: string;
|
|
1764
1913
|
content: string;
|
|
1914
|
+
type: "file" | "patch";
|
|
1765
1915
|
}[];
|
|
1766
1916
|
changesAlreadyApplied: {
|
|
1767
|
-
type: "patch" | "file";
|
|
1768
1917
|
path: string;
|
|
1769
1918
|
content: string;
|
|
1919
|
+
type: "file" | "patch";
|
|
1770
1920
|
}[];
|
|
1771
1921
|
addedFileVersions: {
|
|
1772
1922
|
path: string;
|
|
1773
1923
|
content: string;
|
|
1774
1924
|
}[];
|
|
1775
1925
|
resetFileVersions: boolean;
|
|
1776
|
-
next_quota_reset?: Date | null | undefined;
|
|
1777
1926
|
usage?: number | undefined;
|
|
1778
1927
|
remainingBalance?: number | undefined;
|
|
1779
1928
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1929
|
+
next_quota_reset?: Date | null | undefined;
|
|
1780
1930
|
autoTopupAdded?: number | undefined;
|
|
1781
1931
|
}, {
|
|
1782
1932
|
type: "response-complete";
|
|
1783
|
-
response: string;
|
|
1784
1933
|
userInputId: string;
|
|
1934
|
+
response: string;
|
|
1785
1935
|
changes: {
|
|
1786
|
-
type: "patch" | "file";
|
|
1787
1936
|
path: string;
|
|
1788
1937
|
content: string;
|
|
1938
|
+
type: "file" | "patch";
|
|
1789
1939
|
}[];
|
|
1790
1940
|
changesAlreadyApplied: {
|
|
1791
|
-
type: "patch" | "file";
|
|
1792
1941
|
path: string;
|
|
1793
1942
|
content: string;
|
|
1943
|
+
type: "file" | "patch";
|
|
1794
1944
|
}[];
|
|
1795
1945
|
addedFileVersions: {
|
|
1796
1946
|
path: string;
|
|
1797
1947
|
content: string;
|
|
1798
1948
|
}[];
|
|
1799
1949
|
resetFileVersions: boolean;
|
|
1800
|
-
next_quota_reset?: Date | null | undefined;
|
|
1801
1950
|
usage?: number | undefined;
|
|
1802
1951
|
remainingBalance?: number | undefined;
|
|
1803
1952
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1953
|
+
next_quota_reset?: Date | null | undefined;
|
|
1804
1954
|
autoTopupAdded?: number | undefined;
|
|
1805
1955
|
}>, z.ZodObject<{
|
|
1806
1956
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -1808,7 +1958,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1808
1958
|
agentState: z.ZodObject<{
|
|
1809
1959
|
agentContext: z.ZodString;
|
|
1810
1960
|
fileContext: z.ZodObject<{
|
|
1811
|
-
|
|
1961
|
+
projectRoot: z.ZodString;
|
|
1962
|
+
cwd: z.ZodString;
|
|
1812
1963
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
1813
1964
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1814
1965
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -1865,7 +2016,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1865
2016
|
content: string;
|
|
1866
2017
|
}>, "many">, "many">>;
|
|
1867
2018
|
}, "strip", z.ZodTypeAny, {
|
|
1868
|
-
|
|
2019
|
+
projectRoot: string;
|
|
2020
|
+
cwd: string;
|
|
1869
2021
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1870
2022
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1871
2023
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1892,7 +2044,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1892
2044
|
content: string;
|
|
1893
2045
|
}[][] | undefined;
|
|
1894
2046
|
}, {
|
|
1895
|
-
|
|
2047
|
+
projectRoot: string;
|
|
2048
|
+
cwd: string;
|
|
1896
2049
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1897
2050
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1898
2051
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1926,12 +2079,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1926
2079
|
}, {
|
|
1927
2080
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1928
2081
|
}>>, "many">;
|
|
1929
|
-
|
|
1930
|
-
|
|
2082
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
2083
|
+
agentId: string;
|
|
2084
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2085
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2086
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2087
|
+
}, z.ZodTypeDef, {
|
|
2088
|
+
agentId: string;
|
|
2089
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2090
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2091
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2092
|
+
}>, "many">>;
|
|
2093
|
+
agentStepsRemaining: z.ZodNumber;
|
|
1931
2094
|
}, "strip", z.ZodTypeAny, {
|
|
1932
2095
|
agentContext: string;
|
|
1933
2096
|
fileContext: {
|
|
1934
|
-
|
|
2097
|
+
projectRoot: string;
|
|
2098
|
+
cwd: string;
|
|
1935
2099
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1936
2100
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1937
2101
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1961,12 +2125,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1961
2125
|
messageHistory: (import("ai").CoreMessage & {
|
|
1962
2126
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1963
2127
|
})[];
|
|
1964
|
-
|
|
1965
|
-
|
|
2128
|
+
agents: {
|
|
2129
|
+
agentId: string;
|
|
2130
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2131
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2132
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2133
|
+
}[];
|
|
2134
|
+
agentStepsRemaining: number;
|
|
1966
2135
|
}, {
|
|
1967
2136
|
agentContext: string;
|
|
1968
2137
|
fileContext: {
|
|
1969
|
-
|
|
2138
|
+
projectRoot: string;
|
|
2139
|
+
cwd: string;
|
|
1970
2140
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1971
2141
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1972
2142
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1996,8 +2166,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1996
2166
|
messageHistory: (import("ai").CoreMessage & {
|
|
1997
2167
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1998
2168
|
})[];
|
|
1999
|
-
|
|
2000
|
-
|
|
2169
|
+
agentStepsRemaining: number;
|
|
2170
|
+
agents?: {
|
|
2171
|
+
agentId: string;
|
|
2172
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2173
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2174
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2175
|
+
}[] | undefined;
|
|
2001
2176
|
}>;
|
|
2002
2177
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
2003
2178
|
name: z.ZodString;
|
|
@@ -2031,7 +2206,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2031
2206
|
agentState: {
|
|
2032
2207
|
agentContext: string;
|
|
2033
2208
|
fileContext: {
|
|
2034
|
-
|
|
2209
|
+
projectRoot: string;
|
|
2210
|
+
cwd: string;
|
|
2035
2211
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2036
2212
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2037
2213
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2061,8 +2237,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2061
2237
|
messageHistory: (import("ai").CoreMessage & {
|
|
2062
2238
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2063
2239
|
})[];
|
|
2064
|
-
|
|
2065
|
-
|
|
2240
|
+
agents: {
|
|
2241
|
+
agentId: string;
|
|
2242
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2243
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2244
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2245
|
+
}[];
|
|
2246
|
+
agentStepsRemaining: number;
|
|
2066
2247
|
};
|
|
2067
2248
|
toolResults: {
|
|
2068
2249
|
name: string;
|
|
@@ -2080,7 +2261,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2080
2261
|
agentState: {
|
|
2081
2262
|
agentContext: string;
|
|
2082
2263
|
fileContext: {
|
|
2083
|
-
|
|
2264
|
+
projectRoot: string;
|
|
2265
|
+
cwd: string;
|
|
2084
2266
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2085
2267
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2086
2268
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2110,8 +2292,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2110
2292
|
messageHistory: (import("ai").CoreMessage & {
|
|
2111
2293
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2112
2294
|
})[];
|
|
2113
|
-
|
|
2114
|
-
|
|
2295
|
+
agentStepsRemaining: number;
|
|
2296
|
+
agents?: {
|
|
2297
|
+
agentId: string;
|
|
2298
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2299
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2300
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2301
|
+
}[] | undefined;
|
|
2115
2302
|
};
|
|
2116
2303
|
toolResults: {
|
|
2117
2304
|
name: string;
|
|
@@ -2129,7 +2316,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2129
2316
|
agentState: z.ZodObject<{
|
|
2130
2317
|
agentContext: z.ZodString;
|
|
2131
2318
|
fileContext: z.ZodObject<{
|
|
2132
|
-
|
|
2319
|
+
projectRoot: z.ZodString;
|
|
2320
|
+
cwd: z.ZodString;
|
|
2133
2321
|
fileTree: z.ZodArray<z.ZodType<import("./util/file").FileTreeNode, z.ZodTypeDef, import("./util/file").FileTreeNode>, "many">;
|
|
2134
2322
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2135
2323
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -2186,7 +2374,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2186
2374
|
content: string;
|
|
2187
2375
|
}>, "many">, "many">>;
|
|
2188
2376
|
}, "strip", z.ZodTypeAny, {
|
|
2189
|
-
|
|
2377
|
+
projectRoot: string;
|
|
2378
|
+
cwd: string;
|
|
2190
2379
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2191
2380
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2192
2381
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2213,7 +2402,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2213
2402
|
content: string;
|
|
2214
2403
|
}[][] | undefined;
|
|
2215
2404
|
}, {
|
|
2216
|
-
|
|
2405
|
+
projectRoot: string;
|
|
2406
|
+
cwd: string;
|
|
2217
2407
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2218
2408
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2219
2409
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2247,12 +2437,23 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2247
2437
|
}, {
|
|
2248
2438
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2249
2439
|
}>>, "many">;
|
|
2250
|
-
|
|
2251
|
-
|
|
2440
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
2441
|
+
agentId: string;
|
|
2442
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2443
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2444
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2445
|
+
}, z.ZodTypeDef, {
|
|
2446
|
+
agentId: string;
|
|
2447
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2448
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2449
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2450
|
+
}>, "many">>;
|
|
2451
|
+
agentStepsRemaining: z.ZodNumber;
|
|
2252
2452
|
}, "strip", z.ZodTypeAny, {
|
|
2253
2453
|
agentContext: string;
|
|
2254
2454
|
fileContext: {
|
|
2255
|
-
|
|
2455
|
+
projectRoot: string;
|
|
2456
|
+
cwd: string;
|
|
2256
2457
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2257
2458
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2258
2459
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2282,12 +2483,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2282
2483
|
messageHistory: (import("ai").CoreMessage & {
|
|
2283
2484
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2284
2485
|
})[];
|
|
2285
|
-
|
|
2286
|
-
|
|
2486
|
+
agents: {
|
|
2487
|
+
agentId: string;
|
|
2488
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2489
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2490
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2491
|
+
}[];
|
|
2492
|
+
agentStepsRemaining: number;
|
|
2287
2493
|
}, {
|
|
2288
2494
|
agentContext: string;
|
|
2289
2495
|
fileContext: {
|
|
2290
|
-
|
|
2496
|
+
projectRoot: string;
|
|
2497
|
+
cwd: string;
|
|
2291
2498
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2292
2499
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2293
2500
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2317,8 +2524,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2317
2524
|
messageHistory: (import("ai").CoreMessage & {
|
|
2318
2525
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2319
2526
|
})[];
|
|
2320
|
-
|
|
2321
|
-
|
|
2527
|
+
agentStepsRemaining: number;
|
|
2528
|
+
agents?: {
|
|
2529
|
+
agentId: string;
|
|
2530
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2531
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2532
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2533
|
+
}[] | undefined;
|
|
2322
2534
|
}>;
|
|
2323
2535
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
2324
2536
|
name: z.ZodString;
|
|
@@ -2352,7 +2564,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2352
2564
|
agentState: {
|
|
2353
2565
|
agentContext: string;
|
|
2354
2566
|
fileContext: {
|
|
2355
|
-
|
|
2567
|
+
projectRoot: string;
|
|
2568
|
+
cwd: string;
|
|
2356
2569
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2357
2570
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2358
2571
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2382,8 +2595,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2382
2595
|
messageHistory: (import("ai").CoreMessage & {
|
|
2383
2596
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2384
2597
|
})[];
|
|
2385
|
-
|
|
2386
|
-
|
|
2598
|
+
agents: {
|
|
2599
|
+
agentId: string;
|
|
2600
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2601
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2602
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2603
|
+
}[];
|
|
2604
|
+
agentStepsRemaining: number;
|
|
2387
2605
|
};
|
|
2388
2606
|
toolResults: {
|
|
2389
2607
|
name: string;
|
|
@@ -2401,7 +2619,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2401
2619
|
agentState: {
|
|
2402
2620
|
agentContext: string;
|
|
2403
2621
|
fileContext: {
|
|
2404
|
-
|
|
2622
|
+
projectRoot: string;
|
|
2623
|
+
cwd: string;
|
|
2405
2624
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2406
2625
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2407
2626
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2431,8 +2650,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2431
2650
|
messageHistory: (import("ai").CoreMessage & {
|
|
2432
2651
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2433
2652
|
})[];
|
|
2434
|
-
|
|
2435
|
-
|
|
2653
|
+
agentStepsRemaining: number;
|
|
2654
|
+
agents?: {
|
|
2655
|
+
agentId: string;
|
|
2656
|
+
agentName: import("./types/agent-state").AgentTemplateName;
|
|
2657
|
+
agents: import("./types/agent-state").SubagentState[];
|
|
2658
|
+
messageHistory: import("./types/message").CodebuffMessage[];
|
|
2659
|
+
}[] | undefined;
|
|
2436
2660
|
};
|
|
2437
2661
|
toolResults: {
|
|
2438
2662
|
name: string;
|
|
@@ -2478,26 +2702,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2478
2702
|
path: z.ZodString;
|
|
2479
2703
|
content: z.ZodString;
|
|
2480
2704
|
}, "strip", z.ZodTypeAny, {
|
|
2481
|
-
type: "patch" | "file";
|
|
2482
2705
|
path: string;
|
|
2483
2706
|
content: string;
|
|
2707
|
+
type: "file" | "patch";
|
|
2484
2708
|
}, {
|
|
2485
|
-
type: "patch" | "file";
|
|
2486
2709
|
path: string;
|
|
2487
2710
|
content: string;
|
|
2711
|
+
type: "file" | "patch";
|
|
2488
2712
|
}>, "many">;
|
|
2489
2713
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2490
2714
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2491
2715
|
path: z.ZodString;
|
|
2492
2716
|
content: z.ZodString;
|
|
2493
2717
|
}, "strip", z.ZodTypeAny, {
|
|
2494
|
-
type: "patch" | "file";
|
|
2495
2718
|
path: string;
|
|
2496
2719
|
content: string;
|
|
2720
|
+
type: "file" | "patch";
|
|
2497
2721
|
}, {
|
|
2498
|
-
type: "patch" | "file";
|
|
2499
2722
|
path: string;
|
|
2500
2723
|
content: string;
|
|
2724
|
+
type: "file" | "patch";
|
|
2501
2725
|
}>, "many">;
|
|
2502
2726
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2503
2727
|
path: z.ZodString;
|
|
@@ -2511,53 +2735,53 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2511
2735
|
}>, "many">;
|
|
2512
2736
|
resetFileVersions: z.ZodBoolean;
|
|
2513
2737
|
}, "strip", z.ZodTypeAny, {
|
|
2514
|
-
data: {
|
|
2515
|
-
name: string;
|
|
2516
|
-
id: string;
|
|
2517
|
-
input: Record<string, any>;
|
|
2518
|
-
};
|
|
2519
2738
|
type: "tool-call";
|
|
2520
|
-
response: string;
|
|
2521
2739
|
userInputId: string;
|
|
2740
|
+
response: string;
|
|
2522
2741
|
changes: {
|
|
2523
|
-
type: "patch" | "file";
|
|
2524
2742
|
path: string;
|
|
2525
2743
|
content: string;
|
|
2744
|
+
type: "file" | "patch";
|
|
2526
2745
|
}[];
|
|
2527
2746
|
changesAlreadyApplied: {
|
|
2528
|
-
type: "patch" | "file";
|
|
2529
2747
|
path: string;
|
|
2530
2748
|
content: string;
|
|
2749
|
+
type: "file" | "patch";
|
|
2531
2750
|
}[];
|
|
2532
2751
|
addedFileVersions: {
|
|
2533
2752
|
path: string;
|
|
2534
2753
|
content: string;
|
|
2535
2754
|
}[];
|
|
2536
2755
|
resetFileVersions: boolean;
|
|
2537
|
-
}, {
|
|
2538
2756
|
data: {
|
|
2539
2757
|
name: string;
|
|
2540
2758
|
id: string;
|
|
2541
2759
|
input: Record<string, any>;
|
|
2542
2760
|
};
|
|
2761
|
+
}, {
|
|
2543
2762
|
type: "tool-call";
|
|
2544
|
-
response: string;
|
|
2545
2763
|
userInputId: string;
|
|
2764
|
+
response: string;
|
|
2546
2765
|
changes: {
|
|
2547
|
-
type: "patch" | "file";
|
|
2548
2766
|
path: string;
|
|
2549
2767
|
content: string;
|
|
2768
|
+
type: "file" | "patch";
|
|
2550
2769
|
}[];
|
|
2551
2770
|
changesAlreadyApplied: {
|
|
2552
|
-
type: "patch" | "file";
|
|
2553
2771
|
path: string;
|
|
2554
2772
|
content: string;
|
|
2773
|
+
type: "file" | "patch";
|
|
2555
2774
|
}[];
|
|
2556
2775
|
addedFileVersions: {
|
|
2557
2776
|
path: string;
|
|
2558
2777
|
content: string;
|
|
2559
2778
|
}[];
|
|
2560
2779
|
resetFileVersions: boolean;
|
|
2780
|
+
data: {
|
|
2781
|
+
name: string;
|
|
2782
|
+
id: string;
|
|
2783
|
+
input: Record<string, any>;
|
|
2784
|
+
};
|
|
2561
2785
|
}>, z.ZodObject<{
|
|
2562
2786
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2563
2787
|
userInputId: z.ZodString;
|
|
@@ -2592,17 +2816,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2592
2816
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
2593
2817
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2594
2818
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
2595
|
-
next_quota_reset: Date | null;
|
|
2596
2819
|
type: "init-response";
|
|
2597
2820
|
usage: number;
|
|
2598
2821
|
remainingBalance: number;
|
|
2822
|
+
next_quota_reset: Date | null;
|
|
2599
2823
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2600
2824
|
autoTopupAdded?: number | undefined;
|
|
2601
2825
|
}, {
|
|
2602
|
-
next_quota_reset: Date | null;
|
|
2603
2826
|
type: "init-response";
|
|
2604
2827
|
usage: number;
|
|
2605
2828
|
remainingBalance: number;
|
|
2829
|
+
next_quota_reset: Date | null;
|
|
2606
2830
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2607
2831
|
autoTopupAdded?: number | undefined;
|
|
2608
2832
|
}>, z.ZodObject<{
|
|
@@ -2613,17 +2837,17 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2613
2837
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
2614
2838
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2615
2839
|
}, "strip", z.ZodTypeAny, {
|
|
2616
|
-
next_quota_reset: Date | null;
|
|
2617
2840
|
type: "usage-response";
|
|
2618
2841
|
usage: number;
|
|
2619
2842
|
remainingBalance: number;
|
|
2843
|
+
next_quota_reset: Date | null;
|
|
2620
2844
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2621
2845
|
autoTopupAdded?: number | undefined;
|
|
2622
2846
|
}, {
|
|
2623
|
-
next_quota_reset: Date | null;
|
|
2624
2847
|
type: "usage-response";
|
|
2625
2848
|
usage: number;
|
|
2626
2849
|
remainingBalance: number;
|
|
2850
|
+
next_quota_reset: Date | null;
|
|
2627
2851
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2628
2852
|
autoTopupAdded?: number | undefined;
|
|
2629
2853
|
}>, z.ZodObject<{
|
|
@@ -2632,25 +2856,25 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2632
2856
|
credits: z.ZodNumber;
|
|
2633
2857
|
}, "strip", z.ZodTypeAny, {
|
|
2634
2858
|
type: "message-cost-response";
|
|
2635
|
-
credits: number;
|
|
2636
2859
|
promptId: string;
|
|
2860
|
+
credits: number;
|
|
2637
2861
|
}, {
|
|
2638
2862
|
type: "message-cost-response";
|
|
2639
|
-
credits: number;
|
|
2640
2863
|
promptId: string;
|
|
2864
|
+
credits: number;
|
|
2641
2865
|
}>, z.ZodObject<{
|
|
2642
2866
|
type: z.ZodLiteral<"action-error">;
|
|
2643
2867
|
message: z.ZodString;
|
|
2644
2868
|
error: z.ZodOptional<z.ZodString>;
|
|
2645
2869
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2646
2870
|
}, "strip", z.ZodTypeAny, {
|
|
2647
|
-
type: "action-error";
|
|
2648
2871
|
message: string;
|
|
2872
|
+
type: "action-error";
|
|
2649
2873
|
remainingBalance?: number | undefined;
|
|
2650
2874
|
error?: string | undefined;
|
|
2651
2875
|
}, {
|
|
2652
|
-
type: "action-error";
|
|
2653
2876
|
message: string;
|
|
2877
|
+
type: "action-error";
|
|
2654
2878
|
remainingBalance?: number | undefined;
|
|
2655
2879
|
error?: string | undefined;
|
|
2656
2880
|
}>, z.ZodObject<{
|