codebuff 1.0.328 → 1.0.329
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 +1 -1
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +120 -150
- package/dist/common/actions.d.ts.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 +5 -8
- package/dist/common/types/agent-state.d.ts.map +1 -1
- package/dist/common/types/agent-state.js +2 -4
- package/dist/common/types/agent-state.js.map +1 -1
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/websockets/websocket-schema.d.ts +282 -338
- 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/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
|
@@ -180,8 +180,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
180
180
|
}, {
|
|
181
181
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
182
182
|
}>>, "many">;
|
|
183
|
-
|
|
184
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
agentStepsRemaining: z.ZodNumber;
|
|
185
184
|
}, "strip", z.ZodTypeAny, {
|
|
186
185
|
agentContext: string;
|
|
187
186
|
fileContext: {
|
|
@@ -215,8 +214,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
215
214
|
messageHistory: (import("ai").CoreMessage & {
|
|
216
215
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
217
216
|
})[];
|
|
218
|
-
|
|
219
|
-
agentStepsRemaining?: number | undefined;
|
|
217
|
+
agentStepsRemaining: number;
|
|
220
218
|
}, {
|
|
221
219
|
agentContext: string;
|
|
222
220
|
fileContext: {
|
|
@@ -250,8 +248,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
250
248
|
messageHistory: (import("ai").CoreMessage & {
|
|
251
249
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
252
250
|
})[];
|
|
253
|
-
|
|
254
|
-
agentStepsRemaining?: number | undefined;
|
|
251
|
+
agentStepsRemaining: number;
|
|
255
252
|
}>;
|
|
256
253
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
257
254
|
name: z.ZodString;
|
|
@@ -273,7 +270,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
273
270
|
type: "prompt";
|
|
274
271
|
promptId: string;
|
|
275
272
|
fingerprintId: string;
|
|
276
|
-
costMode: "
|
|
273
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
277
274
|
agentState: {
|
|
278
275
|
agentContext: string;
|
|
279
276
|
fileContext: {
|
|
@@ -307,18 +304,17 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
307
304
|
messageHistory: (import("ai").CoreMessage & {
|
|
308
305
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
309
306
|
})[];
|
|
310
|
-
|
|
311
|
-
agentStepsRemaining?: number | undefined;
|
|
307
|
+
agentStepsRemaining: number;
|
|
312
308
|
};
|
|
313
309
|
toolResults: {
|
|
314
310
|
name: string;
|
|
315
311
|
id: string;
|
|
316
312
|
result: string;
|
|
317
313
|
}[];
|
|
318
|
-
|
|
314
|
+
cwd?: string | undefined;
|
|
319
315
|
prompt?: string | undefined;
|
|
320
316
|
authToken?: string | undefined;
|
|
321
|
-
|
|
317
|
+
model?: string | undefined;
|
|
322
318
|
repoUrl?: string | undefined;
|
|
323
319
|
}, {
|
|
324
320
|
type: "prompt";
|
|
@@ -357,19 +353,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
357
353
|
messageHistory: (import("ai").CoreMessage & {
|
|
358
354
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
359
355
|
})[];
|
|
360
|
-
|
|
361
|
-
agentStepsRemaining?: number | undefined;
|
|
356
|
+
agentStepsRemaining: number;
|
|
362
357
|
};
|
|
363
358
|
toolResults: {
|
|
364
359
|
name: string;
|
|
365
360
|
id: string;
|
|
366
361
|
result: string;
|
|
367
362
|
}[];
|
|
368
|
-
|
|
363
|
+
cwd?: string | undefined;
|
|
369
364
|
prompt?: string | undefined;
|
|
370
365
|
authToken?: string | undefined;
|
|
371
|
-
costMode?: "
|
|
372
|
-
|
|
366
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
367
|
+
model?: string | undefined;
|
|
373
368
|
repoUrl?: string | undefined;
|
|
374
369
|
}>, z.ZodObject<{
|
|
375
370
|
type: z.ZodLiteral<"manager-prompt">;
|
|
@@ -496,8 +491,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
496
491
|
}, {
|
|
497
492
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
498
493
|
}>>, "many">;
|
|
499
|
-
|
|
500
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
agentStepsRemaining: z.ZodNumber;
|
|
501
495
|
}, "strip", z.ZodTypeAny, {
|
|
502
496
|
agentContext: string;
|
|
503
497
|
fileContext: {
|
|
@@ -531,8 +525,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
531
525
|
messageHistory: (import("ai").CoreMessage & {
|
|
532
526
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
533
527
|
})[];
|
|
534
|
-
|
|
535
|
-
agentStepsRemaining?: number | undefined;
|
|
528
|
+
agentStepsRemaining: number;
|
|
536
529
|
}, {
|
|
537
530
|
agentContext: string;
|
|
538
531
|
fileContext: {
|
|
@@ -566,8 +559,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
566
559
|
messageHistory: (import("ai").CoreMessage & {
|
|
567
560
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
568
561
|
})[];
|
|
569
|
-
|
|
570
|
-
agentStepsRemaining?: number | undefined;
|
|
562
|
+
agentStepsRemaining: number;
|
|
571
563
|
}>;
|
|
572
564
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
573
565
|
name: z.ZodString;
|
|
@@ -592,7 +584,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
592
584
|
type: "manager-prompt";
|
|
593
585
|
promptId: string;
|
|
594
586
|
fingerprintId: string;
|
|
595
|
-
costMode: "
|
|
587
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
596
588
|
agentState: {
|
|
597
589
|
agentContext: string;
|
|
598
590
|
fileContext: {
|
|
@@ -626,18 +618,17 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
626
618
|
messageHistory: (import("ai").CoreMessage & {
|
|
627
619
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
628
620
|
})[];
|
|
629
|
-
|
|
630
|
-
agentStepsRemaining?: number | undefined;
|
|
621
|
+
agentStepsRemaining: number;
|
|
631
622
|
};
|
|
632
623
|
toolResults: {
|
|
633
624
|
name: string;
|
|
634
625
|
id: string;
|
|
635
626
|
result: string;
|
|
636
627
|
}[];
|
|
637
|
-
|
|
628
|
+
cwd?: string | undefined;
|
|
638
629
|
prompt?: string | undefined;
|
|
639
630
|
authToken?: string | undefined;
|
|
640
|
-
|
|
631
|
+
model?: string | undefined;
|
|
641
632
|
repoName?: string | undefined;
|
|
642
633
|
}, {
|
|
643
634
|
type: "manager-prompt";
|
|
@@ -676,19 +667,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
676
667
|
messageHistory: (import("ai").CoreMessage & {
|
|
677
668
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
678
669
|
})[];
|
|
679
|
-
|
|
680
|
-
agentStepsRemaining?: number | undefined;
|
|
670
|
+
agentStepsRemaining: number;
|
|
681
671
|
};
|
|
682
672
|
toolResults: {
|
|
683
673
|
name: string;
|
|
684
674
|
id: string;
|
|
685
675
|
result: string;
|
|
686
676
|
}[];
|
|
687
|
-
|
|
677
|
+
cwd?: string | undefined;
|
|
688
678
|
prompt?: string | undefined;
|
|
689
679
|
authToken?: string | undefined;
|
|
690
|
-
costMode?: "
|
|
691
|
-
|
|
680
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
681
|
+
model?: string | undefined;
|
|
692
682
|
repoName?: string | undefined;
|
|
693
683
|
}>, z.ZodObject<{
|
|
694
684
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -821,7 +811,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
821
811
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
822
812
|
}, "strip", z.ZodTypeAny, {
|
|
823
813
|
type: "init";
|
|
824
|
-
fingerprintId: string;
|
|
825
814
|
fileContext: {
|
|
826
815
|
currentWorkingDirectory: string;
|
|
827
816
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -850,11 +839,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
850
839
|
content: string;
|
|
851
840
|
}[][] | undefined;
|
|
852
841
|
};
|
|
842
|
+
fingerprintId: string;
|
|
853
843
|
authToken?: string | undefined;
|
|
854
844
|
repoUrl?: string | undefined;
|
|
855
845
|
}, {
|
|
856
846
|
type: "init";
|
|
857
|
-
fingerprintId: string;
|
|
858
847
|
fileContext: {
|
|
859
848
|
currentWorkingDirectory: string;
|
|
860
849
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -883,6 +872,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
883
872
|
content: string;
|
|
884
873
|
}[][] | undefined;
|
|
885
874
|
};
|
|
875
|
+
fingerprintId: string;
|
|
886
876
|
authToken?: string | undefined;
|
|
887
877
|
repoUrl?: string | undefined;
|
|
888
878
|
}>, z.ZodObject<{
|
|
@@ -902,11 +892,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
902
892
|
authToken?: string | undefined;
|
|
903
893
|
}>]>;
|
|
904
894
|
}, "strip", z.ZodTypeAny, {
|
|
895
|
+
type: "action";
|
|
905
896
|
data: {
|
|
906
897
|
type: "prompt";
|
|
907
898
|
promptId: string;
|
|
908
899
|
fingerprintId: string;
|
|
909
|
-
costMode: "
|
|
900
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
910
901
|
agentState: {
|
|
911
902
|
agentContext: string;
|
|
912
903
|
fileContext: {
|
|
@@ -940,24 +931,23 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
940
931
|
messageHistory: (import("ai").CoreMessage & {
|
|
941
932
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
942
933
|
})[];
|
|
943
|
-
|
|
944
|
-
agentStepsRemaining?: number | undefined;
|
|
934
|
+
agentStepsRemaining: number;
|
|
945
935
|
};
|
|
946
936
|
toolResults: {
|
|
947
937
|
name: string;
|
|
948
938
|
id: string;
|
|
949
939
|
result: string;
|
|
950
940
|
}[];
|
|
951
|
-
|
|
941
|
+
cwd?: string | undefined;
|
|
952
942
|
prompt?: string | undefined;
|
|
953
943
|
authToken?: string | undefined;
|
|
954
|
-
|
|
944
|
+
model?: string | undefined;
|
|
955
945
|
repoUrl?: string | undefined;
|
|
956
946
|
} | {
|
|
957
947
|
type: "manager-prompt";
|
|
958
948
|
promptId: string;
|
|
959
949
|
fingerprintId: string;
|
|
960
|
-
costMode: "
|
|
950
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
961
951
|
agentState: {
|
|
962
952
|
agentContext: string;
|
|
963
953
|
fileContext: {
|
|
@@ -991,18 +981,17 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
991
981
|
messageHistory: (import("ai").CoreMessage & {
|
|
992
982
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
993
983
|
})[];
|
|
994
|
-
|
|
995
|
-
agentStepsRemaining?: number | undefined;
|
|
984
|
+
agentStepsRemaining: number;
|
|
996
985
|
};
|
|
997
986
|
toolResults: {
|
|
998
987
|
name: string;
|
|
999
988
|
id: string;
|
|
1000
989
|
result: string;
|
|
1001
990
|
}[];
|
|
1002
|
-
|
|
991
|
+
cwd?: string | undefined;
|
|
1003
992
|
prompt?: string | undefined;
|
|
1004
993
|
authToken?: string | undefined;
|
|
1005
|
-
|
|
994
|
+
model?: string | undefined;
|
|
1006
995
|
repoName?: string | undefined;
|
|
1007
996
|
} | {
|
|
1008
997
|
type: "read-files-response";
|
|
@@ -1010,7 +999,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1010
999
|
requestId?: string | undefined;
|
|
1011
1000
|
} | {
|
|
1012
1001
|
type: "init";
|
|
1013
|
-
fingerprintId: string;
|
|
1014
1002
|
fileContext: {
|
|
1015
1003
|
currentWorkingDirectory: string;
|
|
1016
1004
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1039,6 +1027,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1039
1027
|
content: string;
|
|
1040
1028
|
}[][] | undefined;
|
|
1041
1029
|
};
|
|
1030
|
+
fingerprintId: string;
|
|
1042
1031
|
authToken?: string | undefined;
|
|
1043
1032
|
repoUrl?: string | undefined;
|
|
1044
1033
|
} | {
|
|
@@ -1047,9 +1036,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1047
1036
|
stagedChanges: string;
|
|
1048
1037
|
authToken?: string | undefined;
|
|
1049
1038
|
};
|
|
1050
|
-
type: "action";
|
|
1051
1039
|
txid: number;
|
|
1052
1040
|
}, {
|
|
1041
|
+
type: "action";
|
|
1053
1042
|
data: {
|
|
1054
1043
|
type: "prompt";
|
|
1055
1044
|
promptId: string;
|
|
@@ -1087,19 +1076,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1087
1076
|
messageHistory: (import("ai").CoreMessage & {
|
|
1088
1077
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1089
1078
|
})[];
|
|
1090
|
-
|
|
1091
|
-
agentStepsRemaining?: number | undefined;
|
|
1079
|
+
agentStepsRemaining: number;
|
|
1092
1080
|
};
|
|
1093
1081
|
toolResults: {
|
|
1094
1082
|
name: string;
|
|
1095
1083
|
id: string;
|
|
1096
1084
|
result: string;
|
|
1097
1085
|
}[];
|
|
1098
|
-
|
|
1086
|
+
cwd?: string | undefined;
|
|
1099
1087
|
prompt?: string | undefined;
|
|
1100
1088
|
authToken?: string | undefined;
|
|
1101
|
-
costMode?: "
|
|
1102
|
-
|
|
1089
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
1090
|
+
model?: string | undefined;
|
|
1103
1091
|
repoUrl?: string | undefined;
|
|
1104
1092
|
} | {
|
|
1105
1093
|
type: "manager-prompt";
|
|
@@ -1138,19 +1126,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1138
1126
|
messageHistory: (import("ai").CoreMessage & {
|
|
1139
1127
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1140
1128
|
})[];
|
|
1141
|
-
|
|
1142
|
-
agentStepsRemaining?: number | undefined;
|
|
1129
|
+
agentStepsRemaining: number;
|
|
1143
1130
|
};
|
|
1144
1131
|
toolResults: {
|
|
1145
1132
|
name: string;
|
|
1146
1133
|
id: string;
|
|
1147
1134
|
result: string;
|
|
1148
1135
|
}[];
|
|
1149
|
-
|
|
1136
|
+
cwd?: string | undefined;
|
|
1150
1137
|
prompt?: string | undefined;
|
|
1151
1138
|
authToken?: string | undefined;
|
|
1152
|
-
costMode?: "
|
|
1153
|
-
|
|
1139
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
1140
|
+
model?: string | undefined;
|
|
1154
1141
|
repoName?: string | undefined;
|
|
1155
1142
|
} | {
|
|
1156
1143
|
type: "read-files-response";
|
|
@@ -1158,7 +1145,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1158
1145
|
requestId?: string | undefined;
|
|
1159
1146
|
} | {
|
|
1160
1147
|
type: "init";
|
|
1161
|
-
fingerprintId: string;
|
|
1162
1148
|
fileContext: {
|
|
1163
1149
|
currentWorkingDirectory: string;
|
|
1164
1150
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1187,6 +1173,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1187
1173
|
content: string;
|
|
1188
1174
|
}[][] | undefined;
|
|
1189
1175
|
};
|
|
1176
|
+
fingerprintId: string;
|
|
1190
1177
|
authToken?: string | undefined;
|
|
1191
1178
|
repoUrl?: string | undefined;
|
|
1192
1179
|
} | {
|
|
@@ -1195,7 +1182,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1195
1182
|
stagedChanges: string;
|
|
1196
1183
|
authToken?: string | undefined;
|
|
1197
1184
|
};
|
|
1198
|
-
type: "action";
|
|
1199
1185
|
txid: number;
|
|
1200
1186
|
}>;
|
|
1201
1187
|
};
|
|
@@ -1375,8 +1361,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1375
1361
|
}, {
|
|
1376
1362
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1377
1363
|
}>>, "many">;
|
|
1378
|
-
|
|
1379
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
1364
|
+
agentStepsRemaining: z.ZodNumber;
|
|
1380
1365
|
}, "strip", z.ZodTypeAny, {
|
|
1381
1366
|
agentContext: string;
|
|
1382
1367
|
fileContext: {
|
|
@@ -1410,8 +1395,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1410
1395
|
messageHistory: (import("ai").CoreMessage & {
|
|
1411
1396
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1412
1397
|
})[];
|
|
1413
|
-
|
|
1414
|
-
agentStepsRemaining?: number | undefined;
|
|
1398
|
+
agentStepsRemaining: number;
|
|
1415
1399
|
}, {
|
|
1416
1400
|
agentContext: string;
|
|
1417
1401
|
fileContext: {
|
|
@@ -1445,8 +1429,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1445
1429
|
messageHistory: (import("ai").CoreMessage & {
|
|
1446
1430
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1447
1431
|
})[];
|
|
1448
|
-
|
|
1449
|
-
agentStepsRemaining?: number | undefined;
|
|
1432
|
+
agentStepsRemaining: number;
|
|
1450
1433
|
}>;
|
|
1451
1434
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1452
1435
|
name: z.ZodString;
|
|
@@ -1468,7 +1451,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1468
1451
|
type: "prompt";
|
|
1469
1452
|
promptId: string;
|
|
1470
1453
|
fingerprintId: string;
|
|
1471
|
-
costMode: "
|
|
1454
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
1472
1455
|
agentState: {
|
|
1473
1456
|
agentContext: string;
|
|
1474
1457
|
fileContext: {
|
|
@@ -1502,18 +1485,17 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1502
1485
|
messageHistory: (import("ai").CoreMessage & {
|
|
1503
1486
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1504
1487
|
})[];
|
|
1505
|
-
|
|
1506
|
-
agentStepsRemaining?: number | undefined;
|
|
1488
|
+
agentStepsRemaining: number;
|
|
1507
1489
|
};
|
|
1508
1490
|
toolResults: {
|
|
1509
1491
|
name: string;
|
|
1510
1492
|
id: string;
|
|
1511
1493
|
result: string;
|
|
1512
1494
|
}[];
|
|
1513
|
-
|
|
1495
|
+
cwd?: string | undefined;
|
|
1514
1496
|
prompt?: string | undefined;
|
|
1515
1497
|
authToken?: string | undefined;
|
|
1516
|
-
|
|
1498
|
+
model?: string | undefined;
|
|
1517
1499
|
repoUrl?: string | undefined;
|
|
1518
1500
|
}, {
|
|
1519
1501
|
type: "prompt";
|
|
@@ -1552,19 +1534,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1552
1534
|
messageHistory: (import("ai").CoreMessage & {
|
|
1553
1535
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1554
1536
|
})[];
|
|
1555
|
-
|
|
1556
|
-
agentStepsRemaining?: number | undefined;
|
|
1537
|
+
agentStepsRemaining: number;
|
|
1557
1538
|
};
|
|
1558
1539
|
toolResults: {
|
|
1559
1540
|
name: string;
|
|
1560
1541
|
id: string;
|
|
1561
1542
|
result: string;
|
|
1562
1543
|
}[];
|
|
1563
|
-
|
|
1544
|
+
cwd?: string | undefined;
|
|
1564
1545
|
prompt?: string | undefined;
|
|
1565
1546
|
authToken?: string | undefined;
|
|
1566
|
-
costMode?: "
|
|
1567
|
-
|
|
1547
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
1548
|
+
model?: string | undefined;
|
|
1568
1549
|
repoUrl?: string | undefined;
|
|
1569
1550
|
}>, z.ZodObject<{
|
|
1570
1551
|
type: z.ZodLiteral<"manager-prompt">;
|
|
@@ -1691,8 +1672,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1691
1672
|
}, {
|
|
1692
1673
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1693
1674
|
}>>, "many">;
|
|
1694
|
-
|
|
1695
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
1675
|
+
agentStepsRemaining: z.ZodNumber;
|
|
1696
1676
|
}, "strip", z.ZodTypeAny, {
|
|
1697
1677
|
agentContext: string;
|
|
1698
1678
|
fileContext: {
|
|
@@ -1726,8 +1706,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1726
1706
|
messageHistory: (import("ai").CoreMessage & {
|
|
1727
1707
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1728
1708
|
})[];
|
|
1729
|
-
|
|
1730
|
-
agentStepsRemaining?: number | undefined;
|
|
1709
|
+
agentStepsRemaining: number;
|
|
1731
1710
|
}, {
|
|
1732
1711
|
agentContext: string;
|
|
1733
1712
|
fileContext: {
|
|
@@ -1761,8 +1740,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1761
1740
|
messageHistory: (import("ai").CoreMessage & {
|
|
1762
1741
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1763
1742
|
})[];
|
|
1764
|
-
|
|
1765
|
-
agentStepsRemaining?: number | undefined;
|
|
1743
|
+
agentStepsRemaining: number;
|
|
1766
1744
|
}>;
|
|
1767
1745
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1768
1746
|
name: z.ZodString;
|
|
@@ -1787,7 +1765,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1787
1765
|
type: "manager-prompt";
|
|
1788
1766
|
promptId: string;
|
|
1789
1767
|
fingerprintId: string;
|
|
1790
|
-
costMode: "
|
|
1768
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
1791
1769
|
agentState: {
|
|
1792
1770
|
agentContext: string;
|
|
1793
1771
|
fileContext: {
|
|
@@ -1821,18 +1799,17 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1821
1799
|
messageHistory: (import("ai").CoreMessage & {
|
|
1822
1800
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1823
1801
|
})[];
|
|
1824
|
-
|
|
1825
|
-
agentStepsRemaining?: number | undefined;
|
|
1802
|
+
agentStepsRemaining: number;
|
|
1826
1803
|
};
|
|
1827
1804
|
toolResults: {
|
|
1828
1805
|
name: string;
|
|
1829
1806
|
id: string;
|
|
1830
1807
|
result: string;
|
|
1831
1808
|
}[];
|
|
1832
|
-
|
|
1809
|
+
cwd?: string | undefined;
|
|
1833
1810
|
prompt?: string | undefined;
|
|
1834
1811
|
authToken?: string | undefined;
|
|
1835
|
-
|
|
1812
|
+
model?: string | undefined;
|
|
1836
1813
|
repoName?: string | undefined;
|
|
1837
1814
|
}, {
|
|
1838
1815
|
type: "manager-prompt";
|
|
@@ -1871,19 +1848,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1871
1848
|
messageHistory: (import("ai").CoreMessage & {
|
|
1872
1849
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1873
1850
|
})[];
|
|
1874
|
-
|
|
1875
|
-
agentStepsRemaining?: number | undefined;
|
|
1851
|
+
agentStepsRemaining: number;
|
|
1876
1852
|
};
|
|
1877
1853
|
toolResults: {
|
|
1878
1854
|
name: string;
|
|
1879
1855
|
id: string;
|
|
1880
1856
|
result: string;
|
|
1881
1857
|
}[];
|
|
1882
|
-
|
|
1858
|
+
cwd?: string | undefined;
|
|
1883
1859
|
prompt?: string | undefined;
|
|
1884
1860
|
authToken?: string | undefined;
|
|
1885
|
-
costMode?: "
|
|
1886
|
-
|
|
1861
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
1862
|
+
model?: string | undefined;
|
|
1887
1863
|
repoName?: string | undefined;
|
|
1888
1864
|
}>, z.ZodObject<{
|
|
1889
1865
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -2016,7 +1992,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2016
1992
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
2017
1993
|
}, "strip", z.ZodTypeAny, {
|
|
2018
1994
|
type: "init";
|
|
2019
|
-
fingerprintId: string;
|
|
2020
1995
|
fileContext: {
|
|
2021
1996
|
currentWorkingDirectory: string;
|
|
2022
1997
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2045,11 +2020,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2045
2020
|
content: string;
|
|
2046
2021
|
}[][] | undefined;
|
|
2047
2022
|
};
|
|
2023
|
+
fingerprintId: string;
|
|
2048
2024
|
authToken?: string | undefined;
|
|
2049
2025
|
repoUrl?: string | undefined;
|
|
2050
2026
|
}, {
|
|
2051
2027
|
type: "init";
|
|
2052
|
-
fingerprintId: string;
|
|
2053
2028
|
fileContext: {
|
|
2054
2029
|
currentWorkingDirectory: string;
|
|
2055
2030
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2078,6 +2053,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2078
2053
|
content: string;
|
|
2079
2054
|
}[][] | undefined;
|
|
2080
2055
|
};
|
|
2056
|
+
fingerprintId: string;
|
|
2081
2057
|
authToken?: string | undefined;
|
|
2082
2058
|
repoUrl?: string | undefined;
|
|
2083
2059
|
}>, z.ZodObject<{
|
|
@@ -2097,11 +2073,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2097
2073
|
authToken?: string | undefined;
|
|
2098
2074
|
}>]>;
|
|
2099
2075
|
}, "strip", z.ZodTypeAny, {
|
|
2076
|
+
type: "action";
|
|
2100
2077
|
data: {
|
|
2101
2078
|
type: "prompt";
|
|
2102
2079
|
promptId: string;
|
|
2103
2080
|
fingerprintId: string;
|
|
2104
|
-
costMode: "
|
|
2081
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
2105
2082
|
agentState: {
|
|
2106
2083
|
agentContext: string;
|
|
2107
2084
|
fileContext: {
|
|
@@ -2135,24 +2112,23 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2135
2112
|
messageHistory: (import("ai").CoreMessage & {
|
|
2136
2113
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2137
2114
|
})[];
|
|
2138
|
-
|
|
2139
|
-
agentStepsRemaining?: number | undefined;
|
|
2115
|
+
agentStepsRemaining: number;
|
|
2140
2116
|
};
|
|
2141
2117
|
toolResults: {
|
|
2142
2118
|
name: string;
|
|
2143
2119
|
id: string;
|
|
2144
2120
|
result: string;
|
|
2145
2121
|
}[];
|
|
2146
|
-
|
|
2122
|
+
cwd?: string | undefined;
|
|
2147
2123
|
prompt?: string | undefined;
|
|
2148
2124
|
authToken?: string | undefined;
|
|
2149
|
-
|
|
2125
|
+
model?: string | undefined;
|
|
2150
2126
|
repoUrl?: string | undefined;
|
|
2151
2127
|
} | {
|
|
2152
2128
|
type: "manager-prompt";
|
|
2153
2129
|
promptId: string;
|
|
2154
2130
|
fingerprintId: string;
|
|
2155
|
-
costMode: "
|
|
2131
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
2156
2132
|
agentState: {
|
|
2157
2133
|
agentContext: string;
|
|
2158
2134
|
fileContext: {
|
|
@@ -2186,18 +2162,17 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2186
2162
|
messageHistory: (import("ai").CoreMessage & {
|
|
2187
2163
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2188
2164
|
})[];
|
|
2189
|
-
|
|
2190
|
-
agentStepsRemaining?: number | undefined;
|
|
2165
|
+
agentStepsRemaining: number;
|
|
2191
2166
|
};
|
|
2192
2167
|
toolResults: {
|
|
2193
2168
|
name: string;
|
|
2194
2169
|
id: string;
|
|
2195
2170
|
result: string;
|
|
2196
2171
|
}[];
|
|
2197
|
-
|
|
2172
|
+
cwd?: string | undefined;
|
|
2198
2173
|
prompt?: string | undefined;
|
|
2199
2174
|
authToken?: string | undefined;
|
|
2200
|
-
|
|
2175
|
+
model?: string | undefined;
|
|
2201
2176
|
repoName?: string | undefined;
|
|
2202
2177
|
} | {
|
|
2203
2178
|
type: "read-files-response";
|
|
@@ -2205,7 +2180,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2205
2180
|
requestId?: string | undefined;
|
|
2206
2181
|
} | {
|
|
2207
2182
|
type: "init";
|
|
2208
|
-
fingerprintId: string;
|
|
2209
2183
|
fileContext: {
|
|
2210
2184
|
currentWorkingDirectory: string;
|
|
2211
2185
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2234,6 +2208,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2234
2208
|
content: string;
|
|
2235
2209
|
}[][] | undefined;
|
|
2236
2210
|
};
|
|
2211
|
+
fingerprintId: string;
|
|
2237
2212
|
authToken?: string | undefined;
|
|
2238
2213
|
repoUrl?: string | undefined;
|
|
2239
2214
|
} | {
|
|
@@ -2242,9 +2217,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2242
2217
|
stagedChanges: string;
|
|
2243
2218
|
authToken?: string | undefined;
|
|
2244
2219
|
};
|
|
2245
|
-
type: "action";
|
|
2246
2220
|
txid: number;
|
|
2247
2221
|
}, {
|
|
2222
|
+
type: "action";
|
|
2248
2223
|
data: {
|
|
2249
2224
|
type: "prompt";
|
|
2250
2225
|
promptId: string;
|
|
@@ -2282,19 +2257,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2282
2257
|
messageHistory: (import("ai").CoreMessage & {
|
|
2283
2258
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2284
2259
|
})[];
|
|
2285
|
-
|
|
2286
|
-
agentStepsRemaining?: number | undefined;
|
|
2260
|
+
agentStepsRemaining: number;
|
|
2287
2261
|
};
|
|
2288
2262
|
toolResults: {
|
|
2289
2263
|
name: string;
|
|
2290
2264
|
id: string;
|
|
2291
2265
|
result: string;
|
|
2292
2266
|
}[];
|
|
2293
|
-
|
|
2267
|
+
cwd?: string | undefined;
|
|
2294
2268
|
prompt?: string | undefined;
|
|
2295
2269
|
authToken?: string | undefined;
|
|
2296
|
-
costMode?: "
|
|
2297
|
-
|
|
2270
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
2271
|
+
model?: string | undefined;
|
|
2298
2272
|
repoUrl?: string | undefined;
|
|
2299
2273
|
} | {
|
|
2300
2274
|
type: "manager-prompt";
|
|
@@ -2333,19 +2307,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2333
2307
|
messageHistory: (import("ai").CoreMessage & {
|
|
2334
2308
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2335
2309
|
})[];
|
|
2336
|
-
|
|
2337
|
-
agentStepsRemaining?: number | undefined;
|
|
2310
|
+
agentStepsRemaining: number;
|
|
2338
2311
|
};
|
|
2339
2312
|
toolResults: {
|
|
2340
2313
|
name: string;
|
|
2341
2314
|
id: string;
|
|
2342
2315
|
result: string;
|
|
2343
2316
|
}[];
|
|
2344
|
-
|
|
2317
|
+
cwd?: string | undefined;
|
|
2345
2318
|
prompt?: string | undefined;
|
|
2346
2319
|
authToken?: string | undefined;
|
|
2347
|
-
costMode?: "
|
|
2348
|
-
|
|
2320
|
+
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
2321
|
+
model?: string | undefined;
|
|
2349
2322
|
repoName?: string | undefined;
|
|
2350
2323
|
} | {
|
|
2351
2324
|
type: "read-files-response";
|
|
@@ -2353,7 +2326,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2353
2326
|
requestId?: string | undefined;
|
|
2354
2327
|
} | {
|
|
2355
2328
|
type: "init";
|
|
2356
|
-
fingerprintId: string;
|
|
2357
2329
|
fileContext: {
|
|
2358
2330
|
currentWorkingDirectory: string;
|
|
2359
2331
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2382,6 +2354,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2382
2354
|
content: string;
|
|
2383
2355
|
}[][] | undefined;
|
|
2384
2356
|
};
|
|
2357
|
+
fingerprintId: string;
|
|
2385
2358
|
authToken?: string | undefined;
|
|
2386
2359
|
repoUrl?: string | undefined;
|
|
2387
2360
|
} | {
|
|
@@ -2390,7 +2363,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2390
2363
|
stagedChanges: string;
|
|
2391
2364
|
authToken?: string | undefined;
|
|
2392
2365
|
};
|
|
2393
|
-
type: "action";
|
|
2394
2366
|
txid: number;
|
|
2395
2367
|
}>]>;
|
|
2396
2368
|
export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
|
|
@@ -2435,12 +2407,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2435
2407
|
path: z.ZodString;
|
|
2436
2408
|
content: z.ZodString;
|
|
2437
2409
|
}, "strip", z.ZodTypeAny, {
|
|
2438
|
-
type: "patch" | "file";
|
|
2439
2410
|
path: string;
|
|
2411
|
+
type: "patch" | "file";
|
|
2440
2412
|
content: string;
|
|
2441
2413
|
}, {
|
|
2442
|
-
type: "patch" | "file";
|
|
2443
2414
|
path: string;
|
|
2415
|
+
type: "patch" | "file";
|
|
2444
2416
|
content: string;
|
|
2445
2417
|
}>, "many">;
|
|
2446
2418
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2448,12 +2420,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2448
2420
|
path: z.ZodString;
|
|
2449
2421
|
content: z.ZodString;
|
|
2450
2422
|
}, "strip", z.ZodTypeAny, {
|
|
2451
|
-
type: "patch" | "file";
|
|
2452
2423
|
path: string;
|
|
2424
|
+
type: "patch" | "file";
|
|
2453
2425
|
content: string;
|
|
2454
2426
|
}, {
|
|
2455
|
-
type: "patch" | "file";
|
|
2456
2427
|
path: string;
|
|
2428
|
+
type: "patch" | "file";
|
|
2457
2429
|
content: string;
|
|
2458
2430
|
}>, "many">;
|
|
2459
2431
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2468,23 +2440,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2468
2440
|
}>, "many">;
|
|
2469
2441
|
resetFileVersions: z.ZodBoolean;
|
|
2470
2442
|
}, {
|
|
2471
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2472
2443
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2473
2444
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2474
2445
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
2446
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2475
2447
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2476
2448
|
}>, "strip", z.ZodTypeAny, {
|
|
2477
2449
|
type: "response-complete";
|
|
2478
|
-
response: string;
|
|
2479
2450
|
userInputId: string;
|
|
2451
|
+
response: string;
|
|
2480
2452
|
changes: {
|
|
2481
|
-
type: "patch" | "file";
|
|
2482
2453
|
path: string;
|
|
2454
|
+
type: "patch" | "file";
|
|
2483
2455
|
content: string;
|
|
2484
2456
|
}[];
|
|
2485
2457
|
changesAlreadyApplied: {
|
|
2486
|
-
type: "patch" | "file";
|
|
2487
2458
|
path: string;
|
|
2459
|
+
type: "patch" | "file";
|
|
2488
2460
|
content: string;
|
|
2489
2461
|
}[];
|
|
2490
2462
|
addedFileVersions: {
|
|
@@ -2492,23 +2464,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2492
2464
|
content: string;
|
|
2493
2465
|
}[];
|
|
2494
2466
|
resetFileVersions: boolean;
|
|
2495
|
-
next_quota_reset?: Date | null | undefined;
|
|
2496
2467
|
usage?: number | undefined;
|
|
2497
2468
|
remainingBalance?: number | undefined;
|
|
2498
2469
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2470
|
+
next_quota_reset?: Date | null | undefined;
|
|
2499
2471
|
autoTopupAdded?: number | undefined;
|
|
2500
2472
|
}, {
|
|
2501
2473
|
type: "response-complete";
|
|
2502
|
-
response: string;
|
|
2503
2474
|
userInputId: string;
|
|
2475
|
+
response: string;
|
|
2504
2476
|
changes: {
|
|
2505
|
-
type: "patch" | "file";
|
|
2506
2477
|
path: string;
|
|
2478
|
+
type: "patch" | "file";
|
|
2507
2479
|
content: string;
|
|
2508
2480
|
}[];
|
|
2509
2481
|
changesAlreadyApplied: {
|
|
2510
|
-
type: "patch" | "file";
|
|
2511
2482
|
path: string;
|
|
2483
|
+
type: "patch" | "file";
|
|
2512
2484
|
content: string;
|
|
2513
2485
|
}[];
|
|
2514
2486
|
addedFileVersions: {
|
|
@@ -2516,10 +2488,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2516
2488
|
content: string;
|
|
2517
2489
|
}[];
|
|
2518
2490
|
resetFileVersions: boolean;
|
|
2519
|
-
next_quota_reset?: Date | null | undefined;
|
|
2520
2491
|
usage?: number | undefined;
|
|
2521
2492
|
remainingBalance?: number | undefined;
|
|
2522
2493
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2494
|
+
next_quota_reset?: Date | null | undefined;
|
|
2523
2495
|
autoTopupAdded?: number | undefined;
|
|
2524
2496
|
}>, z.ZodObject<{
|
|
2525
2497
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -2645,8 +2617,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2645
2617
|
}, {
|
|
2646
2618
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2647
2619
|
}>>, "many">;
|
|
2648
|
-
|
|
2649
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
2620
|
+
agentStepsRemaining: z.ZodNumber;
|
|
2650
2621
|
}, "strip", z.ZodTypeAny, {
|
|
2651
2622
|
agentContext: string;
|
|
2652
2623
|
fileContext: {
|
|
@@ -2680,8 +2651,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2680
2651
|
messageHistory: (import("ai").CoreMessage & {
|
|
2681
2652
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2682
2653
|
})[];
|
|
2683
|
-
|
|
2684
|
-
agentStepsRemaining?: number | undefined;
|
|
2654
|
+
agentStepsRemaining: number;
|
|
2685
2655
|
}, {
|
|
2686
2656
|
agentContext: string;
|
|
2687
2657
|
fileContext: {
|
|
@@ -2715,8 +2685,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2715
2685
|
messageHistory: (import("ai").CoreMessage & {
|
|
2716
2686
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2717
2687
|
})[];
|
|
2718
|
-
|
|
2719
|
-
agentStepsRemaining?: number | undefined;
|
|
2688
|
+
agentStepsRemaining: number;
|
|
2720
2689
|
}>;
|
|
2721
2690
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
2722
2691
|
name: z.ZodString;
|
|
@@ -2724,12 +2693,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2724
2693
|
id: z.ZodString;
|
|
2725
2694
|
}, "strip", z.ZodTypeAny, {
|
|
2726
2695
|
name: string;
|
|
2727
|
-
id: string;
|
|
2728
2696
|
parameters: Record<string, string>;
|
|
2697
|
+
id: string;
|
|
2729
2698
|
}, {
|
|
2730
2699
|
name: string;
|
|
2731
|
-
id: string;
|
|
2732
2700
|
parameters: Record<string, string>;
|
|
2701
|
+
id: string;
|
|
2733
2702
|
}>, "many">;
|
|
2734
2703
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2735
2704
|
name: z.ZodString;
|
|
@@ -2780,8 +2749,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2780
2749
|
messageHistory: (import("ai").CoreMessage & {
|
|
2781
2750
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2782
2751
|
})[];
|
|
2783
|
-
|
|
2784
|
-
agentStepsRemaining?: number | undefined;
|
|
2752
|
+
agentStepsRemaining: number;
|
|
2785
2753
|
};
|
|
2786
2754
|
toolResults: {
|
|
2787
2755
|
name: string;
|
|
@@ -2790,8 +2758,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2790
2758
|
}[];
|
|
2791
2759
|
toolCalls: {
|
|
2792
2760
|
name: string;
|
|
2793
|
-
id: string;
|
|
2794
2761
|
parameters: Record<string, string>;
|
|
2762
|
+
id: string;
|
|
2795
2763
|
}[];
|
|
2796
2764
|
}, {
|
|
2797
2765
|
type: "prompt-response";
|
|
@@ -2829,8 +2797,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2829
2797
|
messageHistory: (import("ai").CoreMessage & {
|
|
2830
2798
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2831
2799
|
})[];
|
|
2832
|
-
|
|
2833
|
-
agentStepsRemaining?: number | undefined;
|
|
2800
|
+
agentStepsRemaining: number;
|
|
2834
2801
|
};
|
|
2835
2802
|
toolResults: {
|
|
2836
2803
|
name: string;
|
|
@@ -2839,8 +2806,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2839
2806
|
}[];
|
|
2840
2807
|
toolCalls: {
|
|
2841
2808
|
name: string;
|
|
2842
|
-
id: string;
|
|
2843
2809
|
parameters: Record<string, string>;
|
|
2810
|
+
id: string;
|
|
2844
2811
|
}[];
|
|
2845
2812
|
}>, z.ZodObject<{
|
|
2846
2813
|
type: z.ZodLiteral<"manager-prompt-response">;
|
|
@@ -2966,8 +2933,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2966
2933
|
}, {
|
|
2967
2934
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2968
2935
|
}>>, "many">;
|
|
2969
|
-
|
|
2970
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
2936
|
+
agentStepsRemaining: z.ZodNumber;
|
|
2971
2937
|
}, "strip", z.ZodTypeAny, {
|
|
2972
2938
|
agentContext: string;
|
|
2973
2939
|
fileContext: {
|
|
@@ -3001,8 +2967,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3001
2967
|
messageHistory: (import("ai").CoreMessage & {
|
|
3002
2968
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3003
2969
|
})[];
|
|
3004
|
-
|
|
3005
|
-
agentStepsRemaining?: number | undefined;
|
|
2970
|
+
agentStepsRemaining: number;
|
|
3006
2971
|
}, {
|
|
3007
2972
|
agentContext: string;
|
|
3008
2973
|
fileContext: {
|
|
@@ -3036,8 +3001,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3036
3001
|
messageHistory: (import("ai").CoreMessage & {
|
|
3037
3002
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3038
3003
|
})[];
|
|
3039
|
-
|
|
3040
|
-
agentStepsRemaining?: number | undefined;
|
|
3004
|
+
agentStepsRemaining: number;
|
|
3041
3005
|
}>;
|
|
3042
3006
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
3043
3007
|
name: z.ZodString;
|
|
@@ -3045,12 +3009,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3045
3009
|
id: z.ZodString;
|
|
3046
3010
|
}, "strip", z.ZodTypeAny, {
|
|
3047
3011
|
name: string;
|
|
3048
|
-
id: string;
|
|
3049
3012
|
parameters: Record<string, string>;
|
|
3013
|
+
id: string;
|
|
3050
3014
|
}, {
|
|
3051
3015
|
name: string;
|
|
3052
|
-
id: string;
|
|
3053
3016
|
parameters: Record<string, string>;
|
|
3017
|
+
id: string;
|
|
3054
3018
|
}>, "many">;
|
|
3055
3019
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
3056
3020
|
name: z.ZodString;
|
|
@@ -3101,8 +3065,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3101
3065
|
messageHistory: (import("ai").CoreMessage & {
|
|
3102
3066
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3103
3067
|
})[];
|
|
3104
|
-
|
|
3105
|
-
agentStepsRemaining?: number | undefined;
|
|
3068
|
+
agentStepsRemaining: number;
|
|
3106
3069
|
};
|
|
3107
3070
|
toolResults: {
|
|
3108
3071
|
name: string;
|
|
@@ -3111,8 +3074,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3111
3074
|
}[];
|
|
3112
3075
|
toolCalls: {
|
|
3113
3076
|
name: string;
|
|
3114
|
-
id: string;
|
|
3115
3077
|
parameters: Record<string, string>;
|
|
3078
|
+
id: string;
|
|
3116
3079
|
}[];
|
|
3117
3080
|
}, {
|
|
3118
3081
|
type: "manager-prompt-response";
|
|
@@ -3150,8 +3113,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3150
3113
|
messageHistory: (import("ai").CoreMessage & {
|
|
3151
3114
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3152
3115
|
})[];
|
|
3153
|
-
|
|
3154
|
-
agentStepsRemaining?: number | undefined;
|
|
3116
|
+
agentStepsRemaining: number;
|
|
3155
3117
|
};
|
|
3156
3118
|
toolResults: {
|
|
3157
3119
|
name: string;
|
|
@@ -3160,8 +3122,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3160
3122
|
}[];
|
|
3161
3123
|
toolCalls: {
|
|
3162
3124
|
name: string;
|
|
3163
|
-
id: string;
|
|
3164
3125
|
parameters: Record<string, string>;
|
|
3126
|
+
id: string;
|
|
3165
3127
|
}[];
|
|
3166
3128
|
}>, z.ZodObject<{
|
|
3167
3129
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3197,12 +3159,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3197
3159
|
path: z.ZodString;
|
|
3198
3160
|
content: z.ZodString;
|
|
3199
3161
|
}, "strip", z.ZodTypeAny, {
|
|
3200
|
-
type: "patch" | "file";
|
|
3201
3162
|
path: string;
|
|
3163
|
+
type: "patch" | "file";
|
|
3202
3164
|
content: string;
|
|
3203
3165
|
}, {
|
|
3204
|
-
type: "patch" | "file";
|
|
3205
3166
|
path: string;
|
|
3167
|
+
type: "patch" | "file";
|
|
3206
3168
|
content: string;
|
|
3207
3169
|
}>, "many">;
|
|
3208
3170
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3210,12 +3172,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3210
3172
|
path: z.ZodString;
|
|
3211
3173
|
content: z.ZodString;
|
|
3212
3174
|
}, "strip", z.ZodTypeAny, {
|
|
3213
|
-
type: "patch" | "file";
|
|
3214
3175
|
path: string;
|
|
3176
|
+
type: "patch" | "file";
|
|
3215
3177
|
content: string;
|
|
3216
3178
|
}, {
|
|
3217
|
-
type: "patch" | "file";
|
|
3218
3179
|
path: string;
|
|
3180
|
+
type: "patch" | "file";
|
|
3219
3181
|
content: string;
|
|
3220
3182
|
}>, "many">;
|
|
3221
3183
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3230,22 +3192,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3230
3192
|
}>, "many">;
|
|
3231
3193
|
resetFileVersions: z.ZodBoolean;
|
|
3232
3194
|
}, "strip", z.ZodTypeAny, {
|
|
3233
|
-
data: {
|
|
3234
|
-
name: string;
|
|
3235
|
-
id: string;
|
|
3236
|
-
input: Record<string, any>;
|
|
3237
|
-
};
|
|
3238
3195
|
type: "tool-call";
|
|
3239
|
-
response: string;
|
|
3240
3196
|
userInputId: string;
|
|
3197
|
+
response: string;
|
|
3241
3198
|
changes: {
|
|
3242
|
-
type: "patch" | "file";
|
|
3243
3199
|
path: string;
|
|
3200
|
+
type: "patch" | "file";
|
|
3244
3201
|
content: string;
|
|
3245
3202
|
}[];
|
|
3246
3203
|
changesAlreadyApplied: {
|
|
3247
|
-
type: "patch" | "file";
|
|
3248
3204
|
path: string;
|
|
3205
|
+
type: "patch" | "file";
|
|
3249
3206
|
content: string;
|
|
3250
3207
|
}[];
|
|
3251
3208
|
addedFileVersions: {
|
|
@@ -3253,23 +3210,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3253
3210
|
content: string;
|
|
3254
3211
|
}[];
|
|
3255
3212
|
resetFileVersions: boolean;
|
|
3256
|
-
}, {
|
|
3257
3213
|
data: {
|
|
3258
3214
|
name: string;
|
|
3259
3215
|
id: string;
|
|
3260
3216
|
input: Record<string, any>;
|
|
3261
3217
|
};
|
|
3218
|
+
}, {
|
|
3262
3219
|
type: "tool-call";
|
|
3263
|
-
response: string;
|
|
3264
3220
|
userInputId: string;
|
|
3221
|
+
response: string;
|
|
3265
3222
|
changes: {
|
|
3266
|
-
type: "patch" | "file";
|
|
3267
3223
|
path: string;
|
|
3224
|
+
type: "patch" | "file";
|
|
3268
3225
|
content: string;
|
|
3269
3226
|
}[];
|
|
3270
3227
|
changesAlreadyApplied: {
|
|
3271
|
-
type: "patch" | "file";
|
|
3272
3228
|
path: string;
|
|
3229
|
+
type: "patch" | "file";
|
|
3273
3230
|
content: string;
|
|
3274
3231
|
}[];
|
|
3275
3232
|
addedFileVersions: {
|
|
@@ -3277,6 +3234,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3277
3234
|
content: string;
|
|
3278
3235
|
}[];
|
|
3279
3236
|
resetFileVersions: boolean;
|
|
3237
|
+
data: {
|
|
3238
|
+
name: string;
|
|
3239
|
+
id: string;
|
|
3240
|
+
input: Record<string, any>;
|
|
3241
|
+
};
|
|
3280
3242
|
}>, z.ZodObject<{
|
|
3281
3243
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
3282
3244
|
userInputId: z.ZodString;
|
|
@@ -3311,17 +3273,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3311
3273
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3312
3274
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3313
3275
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
3314
|
-
next_quota_reset: Date | null;
|
|
3315
3276
|
type: "init-response";
|
|
3316
3277
|
usage: number;
|
|
3317
3278
|
remainingBalance: number;
|
|
3279
|
+
next_quota_reset: Date | null;
|
|
3318
3280
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3319
3281
|
autoTopupAdded?: number | undefined;
|
|
3320
3282
|
}, {
|
|
3321
|
-
next_quota_reset: Date | null;
|
|
3322
3283
|
type: "init-response";
|
|
3323
3284
|
usage: number;
|
|
3324
3285
|
remainingBalance: number;
|
|
3286
|
+
next_quota_reset: Date | null;
|
|
3325
3287
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3326
3288
|
autoTopupAdded?: number | undefined;
|
|
3327
3289
|
}>, z.ZodObject<{
|
|
@@ -3332,17 +3294,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3332
3294
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3333
3295
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3334
3296
|
}, "strip", z.ZodTypeAny, {
|
|
3335
|
-
next_quota_reset: Date | null;
|
|
3336
3297
|
type: "usage-response";
|
|
3337
3298
|
usage: number;
|
|
3338
3299
|
remainingBalance: number;
|
|
3300
|
+
next_quota_reset: Date | null;
|
|
3339
3301
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3340
3302
|
autoTopupAdded?: number | undefined;
|
|
3341
3303
|
}, {
|
|
3342
|
-
next_quota_reset: Date | null;
|
|
3343
3304
|
type: "usage-response";
|
|
3344
3305
|
usage: number;
|
|
3345
3306
|
remainingBalance: number;
|
|
3307
|
+
next_quota_reset: Date | null;
|
|
3346
3308
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3347
3309
|
autoTopupAdded?: number | undefined;
|
|
3348
3310
|
}>, z.ZodObject<{
|
|
@@ -3351,25 +3313,25 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3351
3313
|
credits: z.ZodNumber;
|
|
3352
3314
|
}, "strip", z.ZodTypeAny, {
|
|
3353
3315
|
type: "message-cost-response";
|
|
3354
|
-
credits: number;
|
|
3355
3316
|
promptId: string;
|
|
3317
|
+
credits: number;
|
|
3356
3318
|
}, {
|
|
3357
3319
|
type: "message-cost-response";
|
|
3358
|
-
credits: number;
|
|
3359
3320
|
promptId: string;
|
|
3321
|
+
credits: number;
|
|
3360
3322
|
}>, z.ZodObject<{
|
|
3361
3323
|
type: z.ZodLiteral<"action-error">;
|
|
3362
3324
|
message: z.ZodString;
|
|
3363
3325
|
error: z.ZodOptional<z.ZodString>;
|
|
3364
3326
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3365
3327
|
}, "strip", z.ZodTypeAny, {
|
|
3366
|
-
type: "action-error";
|
|
3367
3328
|
message: string;
|
|
3329
|
+
type: "action-error";
|
|
3368
3330
|
remainingBalance?: number | undefined;
|
|
3369
3331
|
error?: string | undefined;
|
|
3370
3332
|
}, {
|
|
3371
|
-
type: "action-error";
|
|
3372
3333
|
message: string;
|
|
3334
|
+
type: "action-error";
|
|
3373
3335
|
remainingBalance?: number | undefined;
|
|
3374
3336
|
error?: string | undefined;
|
|
3375
3337
|
}>, z.ZodObject<{
|
|
@@ -3389,32 +3351,33 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3389
3351
|
type: "request-reconnect";
|
|
3390
3352
|
}>]>;
|
|
3391
3353
|
}, "strip", z.ZodTypeAny, {
|
|
3354
|
+
type: "action";
|
|
3392
3355
|
data: {
|
|
3393
|
-
next_quota_reset: Date | null;
|
|
3394
3356
|
type: "usage-response";
|
|
3395
3357
|
usage: number;
|
|
3396
3358
|
remainingBalance: number;
|
|
3359
|
+
next_quota_reset: Date | null;
|
|
3397
3360
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3398
3361
|
autoTopupAdded?: number | undefined;
|
|
3399
3362
|
} | {
|
|
3400
|
-
next_quota_reset: Date | null;
|
|
3401
3363
|
type: "init-response";
|
|
3402
3364
|
usage: number;
|
|
3403
3365
|
remainingBalance: number;
|
|
3366
|
+
next_quota_reset: Date | null;
|
|
3404
3367
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3405
3368
|
autoTopupAdded?: number | undefined;
|
|
3406
3369
|
} | {
|
|
3407
3370
|
type: "response-complete";
|
|
3408
|
-
response: string;
|
|
3409
3371
|
userInputId: string;
|
|
3372
|
+
response: string;
|
|
3410
3373
|
changes: {
|
|
3411
|
-
type: "patch" | "file";
|
|
3412
3374
|
path: string;
|
|
3375
|
+
type: "patch" | "file";
|
|
3413
3376
|
content: string;
|
|
3414
3377
|
}[];
|
|
3415
3378
|
changesAlreadyApplied: {
|
|
3416
|
-
type: "patch" | "file";
|
|
3417
3379
|
path: string;
|
|
3380
|
+
type: "patch" | "file";
|
|
3418
3381
|
content: string;
|
|
3419
3382
|
}[];
|
|
3420
3383
|
addedFileVersions: {
|
|
@@ -3422,15 +3385,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3422
3385
|
content: string;
|
|
3423
3386
|
}[];
|
|
3424
3387
|
resetFileVersions: boolean;
|
|
3425
|
-
next_quota_reset?: Date | null | undefined;
|
|
3426
3388
|
usage?: number | undefined;
|
|
3427
3389
|
remainingBalance?: number | undefined;
|
|
3428
3390
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3391
|
+
next_quota_reset?: Date | null | undefined;
|
|
3429
3392
|
autoTopupAdded?: number | undefined;
|
|
3430
3393
|
} | {
|
|
3431
3394
|
type: "message-cost-response";
|
|
3432
|
-
credits: number;
|
|
3433
3395
|
promptId: string;
|
|
3396
|
+
credits: number;
|
|
3434
3397
|
} | {
|
|
3435
3398
|
type: "prompt-response";
|
|
3436
3399
|
promptId: string;
|
|
@@ -3467,8 +3430,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3467
3430
|
messageHistory: (import("ai").CoreMessage & {
|
|
3468
3431
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3469
3432
|
})[];
|
|
3470
|
-
|
|
3471
|
-
agentStepsRemaining?: number | undefined;
|
|
3433
|
+
agentStepsRemaining: number;
|
|
3472
3434
|
};
|
|
3473
3435
|
toolResults: {
|
|
3474
3436
|
name: string;
|
|
@@ -3477,8 +3439,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3477
3439
|
}[];
|
|
3478
3440
|
toolCalls: {
|
|
3479
3441
|
name: string;
|
|
3480
|
-
id: string;
|
|
3481
3442
|
parameters: Record<string, string>;
|
|
3443
|
+
id: string;
|
|
3482
3444
|
}[];
|
|
3483
3445
|
} | {
|
|
3484
3446
|
type: "manager-prompt-response";
|
|
@@ -3516,8 +3478,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3516
3478
|
messageHistory: (import("ai").CoreMessage & {
|
|
3517
3479
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3518
3480
|
})[];
|
|
3519
|
-
|
|
3520
|
-
agentStepsRemaining?: number | undefined;
|
|
3481
|
+
agentStepsRemaining: number;
|
|
3521
3482
|
};
|
|
3522
3483
|
toolResults: {
|
|
3523
3484
|
name: string;
|
|
@@ -3526,8 +3487,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3526
3487
|
}[];
|
|
3527
3488
|
toolCalls: {
|
|
3528
3489
|
name: string;
|
|
3529
|
-
id: string;
|
|
3530
3490
|
parameters: Record<string, string>;
|
|
3491
|
+
id: string;
|
|
3531
3492
|
}[];
|
|
3532
3493
|
} | {
|
|
3533
3494
|
type: "response-chunk";
|
|
@@ -3538,22 +3499,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3538
3499
|
requestId: string;
|
|
3539
3500
|
filePaths: string[];
|
|
3540
3501
|
} | {
|
|
3541
|
-
data: {
|
|
3542
|
-
name: string;
|
|
3543
|
-
id: string;
|
|
3544
|
-
input: Record<string, any>;
|
|
3545
|
-
};
|
|
3546
3502
|
type: "tool-call";
|
|
3547
|
-
response: string;
|
|
3548
3503
|
userInputId: string;
|
|
3504
|
+
response: string;
|
|
3549
3505
|
changes: {
|
|
3550
|
-
type: "patch" | "file";
|
|
3551
3506
|
path: string;
|
|
3507
|
+
type: "patch" | "file";
|
|
3552
3508
|
content: string;
|
|
3553
3509
|
}[];
|
|
3554
3510
|
changesAlreadyApplied: {
|
|
3555
|
-
type: "patch" | "file";
|
|
3556
3511
|
path: string;
|
|
3512
|
+
type: "patch" | "file";
|
|
3557
3513
|
content: string;
|
|
3558
3514
|
}[];
|
|
3559
3515
|
addedFileVersions: {
|
|
@@ -3561,6 +3517,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3561
3517
|
content: string;
|
|
3562
3518
|
}[];
|
|
3563
3519
|
resetFileVersions: boolean;
|
|
3520
|
+
data: {
|
|
3521
|
+
name: string;
|
|
3522
|
+
id: string;
|
|
3523
|
+
input: Record<string, any>;
|
|
3524
|
+
};
|
|
3564
3525
|
} | {
|
|
3565
3526
|
type: "terminal-command-result";
|
|
3566
3527
|
result: string;
|
|
@@ -3570,8 +3531,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3570
3531
|
isUpToDate: boolean;
|
|
3571
3532
|
latestVersion: string;
|
|
3572
3533
|
} | {
|
|
3573
|
-
type: "action-error";
|
|
3574
3534
|
message: string;
|
|
3535
|
+
type: "action-error";
|
|
3575
3536
|
remainingBalance?: number | undefined;
|
|
3576
3537
|
error?: string | undefined;
|
|
3577
3538
|
} | {
|
|
@@ -3580,34 +3541,34 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3580
3541
|
} | {
|
|
3581
3542
|
type: "request-reconnect";
|
|
3582
3543
|
};
|
|
3583
|
-
type: "action";
|
|
3584
3544
|
}, {
|
|
3545
|
+
type: "action";
|
|
3585
3546
|
data: {
|
|
3586
|
-
next_quota_reset: Date | null;
|
|
3587
3547
|
type: "usage-response";
|
|
3588
3548
|
usage: number;
|
|
3589
3549
|
remainingBalance: number;
|
|
3550
|
+
next_quota_reset: Date | null;
|
|
3590
3551
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3591
3552
|
autoTopupAdded?: number | undefined;
|
|
3592
3553
|
} | {
|
|
3593
|
-
next_quota_reset: Date | null;
|
|
3594
3554
|
type: "init-response";
|
|
3595
3555
|
usage: number;
|
|
3596
3556
|
remainingBalance: number;
|
|
3557
|
+
next_quota_reset: Date | null;
|
|
3597
3558
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3598
3559
|
autoTopupAdded?: number | undefined;
|
|
3599
3560
|
} | {
|
|
3600
3561
|
type: "response-complete";
|
|
3601
|
-
response: string;
|
|
3602
3562
|
userInputId: string;
|
|
3563
|
+
response: string;
|
|
3603
3564
|
changes: {
|
|
3604
|
-
type: "patch" | "file";
|
|
3605
3565
|
path: string;
|
|
3566
|
+
type: "patch" | "file";
|
|
3606
3567
|
content: string;
|
|
3607
3568
|
}[];
|
|
3608
3569
|
changesAlreadyApplied: {
|
|
3609
|
-
type: "patch" | "file";
|
|
3610
3570
|
path: string;
|
|
3571
|
+
type: "patch" | "file";
|
|
3611
3572
|
content: string;
|
|
3612
3573
|
}[];
|
|
3613
3574
|
addedFileVersions: {
|
|
@@ -3615,15 +3576,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3615
3576
|
content: string;
|
|
3616
3577
|
}[];
|
|
3617
3578
|
resetFileVersions: boolean;
|
|
3618
|
-
next_quota_reset?: Date | null | undefined;
|
|
3619
3579
|
usage?: number | undefined;
|
|
3620
3580
|
remainingBalance?: number | undefined;
|
|
3621
3581
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3582
|
+
next_quota_reset?: Date | null | undefined;
|
|
3622
3583
|
autoTopupAdded?: number | undefined;
|
|
3623
3584
|
} | {
|
|
3624
3585
|
type: "message-cost-response";
|
|
3625
|
-
credits: number;
|
|
3626
3586
|
promptId: string;
|
|
3587
|
+
credits: number;
|
|
3627
3588
|
} | {
|
|
3628
3589
|
type: "prompt-response";
|
|
3629
3590
|
promptId: string;
|
|
@@ -3660,8 +3621,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3660
3621
|
messageHistory: (import("ai").CoreMessage & {
|
|
3661
3622
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3662
3623
|
})[];
|
|
3663
|
-
|
|
3664
|
-
agentStepsRemaining?: number | undefined;
|
|
3624
|
+
agentStepsRemaining: number;
|
|
3665
3625
|
};
|
|
3666
3626
|
toolResults: {
|
|
3667
3627
|
name: string;
|
|
@@ -3670,8 +3630,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3670
3630
|
}[];
|
|
3671
3631
|
toolCalls: {
|
|
3672
3632
|
name: string;
|
|
3673
|
-
id: string;
|
|
3674
3633
|
parameters: Record<string, string>;
|
|
3634
|
+
id: string;
|
|
3675
3635
|
}[];
|
|
3676
3636
|
} | {
|
|
3677
3637
|
type: "manager-prompt-response";
|
|
@@ -3709,8 +3669,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3709
3669
|
messageHistory: (import("ai").CoreMessage & {
|
|
3710
3670
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3711
3671
|
})[];
|
|
3712
|
-
|
|
3713
|
-
agentStepsRemaining?: number | undefined;
|
|
3672
|
+
agentStepsRemaining: number;
|
|
3714
3673
|
};
|
|
3715
3674
|
toolResults: {
|
|
3716
3675
|
name: string;
|
|
@@ -3719,8 +3678,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3719
3678
|
}[];
|
|
3720
3679
|
toolCalls: {
|
|
3721
3680
|
name: string;
|
|
3722
|
-
id: string;
|
|
3723
3681
|
parameters: Record<string, string>;
|
|
3682
|
+
id: string;
|
|
3724
3683
|
}[];
|
|
3725
3684
|
} | {
|
|
3726
3685
|
type: "response-chunk";
|
|
@@ -3731,22 +3690,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3731
3690
|
requestId: string;
|
|
3732
3691
|
filePaths: string[];
|
|
3733
3692
|
} | {
|
|
3734
|
-
data: {
|
|
3735
|
-
name: string;
|
|
3736
|
-
id: string;
|
|
3737
|
-
input: Record<string, any>;
|
|
3738
|
-
};
|
|
3739
3693
|
type: "tool-call";
|
|
3740
|
-
response: string;
|
|
3741
3694
|
userInputId: string;
|
|
3695
|
+
response: string;
|
|
3742
3696
|
changes: {
|
|
3743
|
-
type: "patch" | "file";
|
|
3744
3697
|
path: string;
|
|
3698
|
+
type: "patch" | "file";
|
|
3745
3699
|
content: string;
|
|
3746
3700
|
}[];
|
|
3747
3701
|
changesAlreadyApplied: {
|
|
3748
|
-
type: "patch" | "file";
|
|
3749
3702
|
path: string;
|
|
3703
|
+
type: "patch" | "file";
|
|
3750
3704
|
content: string;
|
|
3751
3705
|
}[];
|
|
3752
3706
|
addedFileVersions: {
|
|
@@ -3754,6 +3708,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3754
3708
|
content: string;
|
|
3755
3709
|
}[];
|
|
3756
3710
|
resetFileVersions: boolean;
|
|
3711
|
+
data: {
|
|
3712
|
+
name: string;
|
|
3713
|
+
id: string;
|
|
3714
|
+
input: Record<string, any>;
|
|
3715
|
+
};
|
|
3757
3716
|
} | {
|
|
3758
3717
|
type: "terminal-command-result";
|
|
3759
3718
|
result: string;
|
|
@@ -3763,8 +3722,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3763
3722
|
isUpToDate: boolean;
|
|
3764
3723
|
latestVersion: string;
|
|
3765
3724
|
} | {
|
|
3766
|
-
type: "action-error";
|
|
3767
3725
|
message: string;
|
|
3726
|
+
type: "action-error";
|
|
3768
3727
|
remainingBalance?: number | undefined;
|
|
3769
3728
|
error?: string | undefined;
|
|
3770
3729
|
} | {
|
|
@@ -3773,7 +3732,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3773
3732
|
} | {
|
|
3774
3733
|
type: "request-reconnect";
|
|
3775
3734
|
};
|
|
3776
|
-
type: "action";
|
|
3777
3735
|
}>;
|
|
3778
3736
|
};
|
|
3779
3737
|
export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
@@ -3814,12 +3772,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3814
3772
|
path: z.ZodString;
|
|
3815
3773
|
content: z.ZodString;
|
|
3816
3774
|
}, "strip", z.ZodTypeAny, {
|
|
3817
|
-
type: "patch" | "file";
|
|
3818
3775
|
path: string;
|
|
3776
|
+
type: "patch" | "file";
|
|
3819
3777
|
content: string;
|
|
3820
3778
|
}, {
|
|
3821
|
-
type: "patch" | "file";
|
|
3822
3779
|
path: string;
|
|
3780
|
+
type: "patch" | "file";
|
|
3823
3781
|
content: string;
|
|
3824
3782
|
}>, "many">;
|
|
3825
3783
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3827,12 +3785,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3827
3785
|
path: z.ZodString;
|
|
3828
3786
|
content: z.ZodString;
|
|
3829
3787
|
}, "strip", z.ZodTypeAny, {
|
|
3830
|
-
type: "patch" | "file";
|
|
3831
3788
|
path: string;
|
|
3789
|
+
type: "patch" | "file";
|
|
3832
3790
|
content: string;
|
|
3833
3791
|
}, {
|
|
3834
|
-
type: "patch" | "file";
|
|
3835
3792
|
path: string;
|
|
3793
|
+
type: "patch" | "file";
|
|
3836
3794
|
content: string;
|
|
3837
3795
|
}>, "many">;
|
|
3838
3796
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3847,23 +3805,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3847
3805
|
}>, "many">;
|
|
3848
3806
|
resetFileVersions: z.ZodBoolean;
|
|
3849
3807
|
}, {
|
|
3850
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3851
3808
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
3852
3809
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3853
3810
|
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
3811
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3854
3812
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3855
3813
|
}>, "strip", z.ZodTypeAny, {
|
|
3856
3814
|
type: "response-complete";
|
|
3857
|
-
response: string;
|
|
3858
3815
|
userInputId: string;
|
|
3816
|
+
response: string;
|
|
3859
3817
|
changes: {
|
|
3860
|
-
type: "patch" | "file";
|
|
3861
3818
|
path: string;
|
|
3819
|
+
type: "patch" | "file";
|
|
3862
3820
|
content: string;
|
|
3863
3821
|
}[];
|
|
3864
3822
|
changesAlreadyApplied: {
|
|
3865
|
-
type: "patch" | "file";
|
|
3866
3823
|
path: string;
|
|
3824
|
+
type: "patch" | "file";
|
|
3867
3825
|
content: string;
|
|
3868
3826
|
}[];
|
|
3869
3827
|
addedFileVersions: {
|
|
@@ -3871,23 +3829,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3871
3829
|
content: string;
|
|
3872
3830
|
}[];
|
|
3873
3831
|
resetFileVersions: boolean;
|
|
3874
|
-
next_quota_reset?: Date | null | undefined;
|
|
3875
3832
|
usage?: number | undefined;
|
|
3876
3833
|
remainingBalance?: number | undefined;
|
|
3877
3834
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3835
|
+
next_quota_reset?: Date | null | undefined;
|
|
3878
3836
|
autoTopupAdded?: number | undefined;
|
|
3879
3837
|
}, {
|
|
3880
3838
|
type: "response-complete";
|
|
3881
|
-
response: string;
|
|
3882
3839
|
userInputId: string;
|
|
3840
|
+
response: string;
|
|
3883
3841
|
changes: {
|
|
3884
|
-
type: "patch" | "file";
|
|
3885
3842
|
path: string;
|
|
3843
|
+
type: "patch" | "file";
|
|
3886
3844
|
content: string;
|
|
3887
3845
|
}[];
|
|
3888
3846
|
changesAlreadyApplied: {
|
|
3889
|
-
type: "patch" | "file";
|
|
3890
3847
|
path: string;
|
|
3848
|
+
type: "patch" | "file";
|
|
3891
3849
|
content: string;
|
|
3892
3850
|
}[];
|
|
3893
3851
|
addedFileVersions: {
|
|
@@ -3895,10 +3853,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3895
3853
|
content: string;
|
|
3896
3854
|
}[];
|
|
3897
3855
|
resetFileVersions: boolean;
|
|
3898
|
-
next_quota_reset?: Date | null | undefined;
|
|
3899
3856
|
usage?: number | undefined;
|
|
3900
3857
|
remainingBalance?: number | undefined;
|
|
3901
3858
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3859
|
+
next_quota_reset?: Date | null | undefined;
|
|
3902
3860
|
autoTopupAdded?: number | undefined;
|
|
3903
3861
|
}>, z.ZodObject<{
|
|
3904
3862
|
type: z.ZodLiteral<"prompt-response">;
|
|
@@ -4024,8 +3982,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4024
3982
|
}, {
|
|
4025
3983
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4026
3984
|
}>>, "many">;
|
|
4027
|
-
|
|
4028
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
3985
|
+
agentStepsRemaining: z.ZodNumber;
|
|
4029
3986
|
}, "strip", z.ZodTypeAny, {
|
|
4030
3987
|
agentContext: string;
|
|
4031
3988
|
fileContext: {
|
|
@@ -4059,8 +4016,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4059
4016
|
messageHistory: (import("ai").CoreMessage & {
|
|
4060
4017
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4061
4018
|
})[];
|
|
4062
|
-
|
|
4063
|
-
agentStepsRemaining?: number | undefined;
|
|
4019
|
+
agentStepsRemaining: number;
|
|
4064
4020
|
}, {
|
|
4065
4021
|
agentContext: string;
|
|
4066
4022
|
fileContext: {
|
|
@@ -4094,8 +4050,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4094
4050
|
messageHistory: (import("ai").CoreMessage & {
|
|
4095
4051
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4096
4052
|
})[];
|
|
4097
|
-
|
|
4098
|
-
agentStepsRemaining?: number | undefined;
|
|
4053
|
+
agentStepsRemaining: number;
|
|
4099
4054
|
}>;
|
|
4100
4055
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
4101
4056
|
name: z.ZodString;
|
|
@@ -4103,12 +4058,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4103
4058
|
id: z.ZodString;
|
|
4104
4059
|
}, "strip", z.ZodTypeAny, {
|
|
4105
4060
|
name: string;
|
|
4106
|
-
id: string;
|
|
4107
4061
|
parameters: Record<string, string>;
|
|
4062
|
+
id: string;
|
|
4108
4063
|
}, {
|
|
4109
4064
|
name: string;
|
|
4110
|
-
id: string;
|
|
4111
4065
|
parameters: Record<string, string>;
|
|
4066
|
+
id: string;
|
|
4112
4067
|
}>, "many">;
|
|
4113
4068
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4114
4069
|
name: z.ZodString;
|
|
@@ -4159,8 +4114,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4159
4114
|
messageHistory: (import("ai").CoreMessage & {
|
|
4160
4115
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4161
4116
|
})[];
|
|
4162
|
-
|
|
4163
|
-
agentStepsRemaining?: number | undefined;
|
|
4117
|
+
agentStepsRemaining: number;
|
|
4164
4118
|
};
|
|
4165
4119
|
toolResults: {
|
|
4166
4120
|
name: string;
|
|
@@ -4169,8 +4123,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4169
4123
|
}[];
|
|
4170
4124
|
toolCalls: {
|
|
4171
4125
|
name: string;
|
|
4172
|
-
id: string;
|
|
4173
4126
|
parameters: Record<string, string>;
|
|
4127
|
+
id: string;
|
|
4174
4128
|
}[];
|
|
4175
4129
|
}, {
|
|
4176
4130
|
type: "prompt-response";
|
|
@@ -4208,8 +4162,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4208
4162
|
messageHistory: (import("ai").CoreMessage & {
|
|
4209
4163
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4210
4164
|
})[];
|
|
4211
|
-
|
|
4212
|
-
agentStepsRemaining?: number | undefined;
|
|
4165
|
+
agentStepsRemaining: number;
|
|
4213
4166
|
};
|
|
4214
4167
|
toolResults: {
|
|
4215
4168
|
name: string;
|
|
@@ -4218,8 +4171,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4218
4171
|
}[];
|
|
4219
4172
|
toolCalls: {
|
|
4220
4173
|
name: string;
|
|
4221
|
-
id: string;
|
|
4222
4174
|
parameters: Record<string, string>;
|
|
4175
|
+
id: string;
|
|
4223
4176
|
}[];
|
|
4224
4177
|
}>, z.ZodObject<{
|
|
4225
4178
|
type: z.ZodLiteral<"manager-prompt-response">;
|
|
@@ -4345,8 +4298,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4345
4298
|
}, {
|
|
4346
4299
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4347
4300
|
}>>, "many">;
|
|
4348
|
-
|
|
4349
|
-
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
4301
|
+
agentStepsRemaining: z.ZodNumber;
|
|
4350
4302
|
}, "strip", z.ZodTypeAny, {
|
|
4351
4303
|
agentContext: string;
|
|
4352
4304
|
fileContext: {
|
|
@@ -4380,8 +4332,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4380
4332
|
messageHistory: (import("ai").CoreMessage & {
|
|
4381
4333
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4382
4334
|
})[];
|
|
4383
|
-
|
|
4384
|
-
agentStepsRemaining?: number | undefined;
|
|
4335
|
+
agentStepsRemaining: number;
|
|
4385
4336
|
}, {
|
|
4386
4337
|
agentContext: string;
|
|
4387
4338
|
fileContext: {
|
|
@@ -4415,8 +4366,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4415
4366
|
messageHistory: (import("ai").CoreMessage & {
|
|
4416
4367
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4417
4368
|
})[];
|
|
4418
|
-
|
|
4419
|
-
agentStepsRemaining?: number | undefined;
|
|
4369
|
+
agentStepsRemaining: number;
|
|
4420
4370
|
}>;
|
|
4421
4371
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
4422
4372
|
name: z.ZodString;
|
|
@@ -4424,12 +4374,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4424
4374
|
id: z.ZodString;
|
|
4425
4375
|
}, "strip", z.ZodTypeAny, {
|
|
4426
4376
|
name: string;
|
|
4427
|
-
id: string;
|
|
4428
4377
|
parameters: Record<string, string>;
|
|
4378
|
+
id: string;
|
|
4429
4379
|
}, {
|
|
4430
4380
|
name: string;
|
|
4431
|
-
id: string;
|
|
4432
4381
|
parameters: Record<string, string>;
|
|
4382
|
+
id: string;
|
|
4433
4383
|
}>, "many">;
|
|
4434
4384
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4435
4385
|
name: z.ZodString;
|
|
@@ -4480,8 +4430,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4480
4430
|
messageHistory: (import("ai").CoreMessage & {
|
|
4481
4431
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4482
4432
|
})[];
|
|
4483
|
-
|
|
4484
|
-
agentStepsRemaining?: number | undefined;
|
|
4433
|
+
agentStepsRemaining: number;
|
|
4485
4434
|
};
|
|
4486
4435
|
toolResults: {
|
|
4487
4436
|
name: string;
|
|
@@ -4490,8 +4439,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4490
4439
|
}[];
|
|
4491
4440
|
toolCalls: {
|
|
4492
4441
|
name: string;
|
|
4493
|
-
id: string;
|
|
4494
4442
|
parameters: Record<string, string>;
|
|
4443
|
+
id: string;
|
|
4495
4444
|
}[];
|
|
4496
4445
|
}, {
|
|
4497
4446
|
type: "manager-prompt-response";
|
|
@@ -4529,8 +4478,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4529
4478
|
messageHistory: (import("ai").CoreMessage & {
|
|
4530
4479
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4531
4480
|
})[];
|
|
4532
|
-
|
|
4533
|
-
agentStepsRemaining?: number | undefined;
|
|
4481
|
+
agentStepsRemaining: number;
|
|
4534
4482
|
};
|
|
4535
4483
|
toolResults: {
|
|
4536
4484
|
name: string;
|
|
@@ -4539,8 +4487,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4539
4487
|
}[];
|
|
4540
4488
|
toolCalls: {
|
|
4541
4489
|
name: string;
|
|
4542
|
-
id: string;
|
|
4543
4490
|
parameters: Record<string, string>;
|
|
4491
|
+
id: string;
|
|
4544
4492
|
}[];
|
|
4545
4493
|
}>, z.ZodObject<{
|
|
4546
4494
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4576,12 +4524,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4576
4524
|
path: z.ZodString;
|
|
4577
4525
|
content: z.ZodString;
|
|
4578
4526
|
}, "strip", z.ZodTypeAny, {
|
|
4579
|
-
type: "patch" | "file";
|
|
4580
4527
|
path: string;
|
|
4528
|
+
type: "patch" | "file";
|
|
4581
4529
|
content: string;
|
|
4582
4530
|
}, {
|
|
4583
|
-
type: "patch" | "file";
|
|
4584
4531
|
path: string;
|
|
4532
|
+
type: "patch" | "file";
|
|
4585
4533
|
content: string;
|
|
4586
4534
|
}>, "many">;
|
|
4587
4535
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4589,12 +4537,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4589
4537
|
path: z.ZodString;
|
|
4590
4538
|
content: z.ZodString;
|
|
4591
4539
|
}, "strip", z.ZodTypeAny, {
|
|
4592
|
-
type: "patch" | "file";
|
|
4593
4540
|
path: string;
|
|
4541
|
+
type: "patch" | "file";
|
|
4594
4542
|
content: string;
|
|
4595
4543
|
}, {
|
|
4596
|
-
type: "patch" | "file";
|
|
4597
4544
|
path: string;
|
|
4545
|
+
type: "patch" | "file";
|
|
4598
4546
|
content: string;
|
|
4599
4547
|
}>, "many">;
|
|
4600
4548
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4609,22 +4557,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4609
4557
|
}>, "many">;
|
|
4610
4558
|
resetFileVersions: z.ZodBoolean;
|
|
4611
4559
|
}, "strip", z.ZodTypeAny, {
|
|
4612
|
-
data: {
|
|
4613
|
-
name: string;
|
|
4614
|
-
id: string;
|
|
4615
|
-
input: Record<string, any>;
|
|
4616
|
-
};
|
|
4617
4560
|
type: "tool-call";
|
|
4618
|
-
response: string;
|
|
4619
4561
|
userInputId: string;
|
|
4562
|
+
response: string;
|
|
4620
4563
|
changes: {
|
|
4621
|
-
type: "patch" | "file";
|
|
4622
4564
|
path: string;
|
|
4565
|
+
type: "patch" | "file";
|
|
4623
4566
|
content: string;
|
|
4624
4567
|
}[];
|
|
4625
4568
|
changesAlreadyApplied: {
|
|
4626
|
-
type: "patch" | "file";
|
|
4627
4569
|
path: string;
|
|
4570
|
+
type: "patch" | "file";
|
|
4628
4571
|
content: string;
|
|
4629
4572
|
}[];
|
|
4630
4573
|
addedFileVersions: {
|
|
@@ -4632,23 +4575,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4632
4575
|
content: string;
|
|
4633
4576
|
}[];
|
|
4634
4577
|
resetFileVersions: boolean;
|
|
4635
|
-
}, {
|
|
4636
4578
|
data: {
|
|
4637
4579
|
name: string;
|
|
4638
4580
|
id: string;
|
|
4639
4581
|
input: Record<string, any>;
|
|
4640
4582
|
};
|
|
4583
|
+
}, {
|
|
4641
4584
|
type: "tool-call";
|
|
4642
|
-
response: string;
|
|
4643
4585
|
userInputId: string;
|
|
4586
|
+
response: string;
|
|
4644
4587
|
changes: {
|
|
4645
|
-
type: "patch" | "file";
|
|
4646
4588
|
path: string;
|
|
4589
|
+
type: "patch" | "file";
|
|
4647
4590
|
content: string;
|
|
4648
4591
|
}[];
|
|
4649
4592
|
changesAlreadyApplied: {
|
|
4650
|
-
type: "patch" | "file";
|
|
4651
4593
|
path: string;
|
|
4594
|
+
type: "patch" | "file";
|
|
4652
4595
|
content: string;
|
|
4653
4596
|
}[];
|
|
4654
4597
|
addedFileVersions: {
|
|
@@ -4656,6 +4599,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4656
4599
|
content: string;
|
|
4657
4600
|
}[];
|
|
4658
4601
|
resetFileVersions: boolean;
|
|
4602
|
+
data: {
|
|
4603
|
+
name: string;
|
|
4604
|
+
id: string;
|
|
4605
|
+
input: Record<string, any>;
|
|
4606
|
+
};
|
|
4659
4607
|
}>, z.ZodObject<{
|
|
4660
4608
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
4661
4609
|
userInputId: z.ZodString;
|
|
@@ -4690,17 +4638,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4690
4638
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4691
4639
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4692
4640
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
4693
|
-
next_quota_reset: Date | null;
|
|
4694
4641
|
type: "init-response";
|
|
4695
4642
|
usage: number;
|
|
4696
4643
|
remainingBalance: number;
|
|
4644
|
+
next_quota_reset: Date | null;
|
|
4697
4645
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4698
4646
|
autoTopupAdded?: number | undefined;
|
|
4699
4647
|
}, {
|
|
4700
|
-
next_quota_reset: Date | null;
|
|
4701
4648
|
type: "init-response";
|
|
4702
4649
|
usage: number;
|
|
4703
4650
|
remainingBalance: number;
|
|
4651
|
+
next_quota_reset: Date | null;
|
|
4704
4652
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4705
4653
|
autoTopupAdded?: number | undefined;
|
|
4706
4654
|
}>, z.ZodObject<{
|
|
@@ -4711,17 +4659,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4711
4659
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4712
4660
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4713
4661
|
}, "strip", z.ZodTypeAny, {
|
|
4714
|
-
next_quota_reset: Date | null;
|
|
4715
4662
|
type: "usage-response";
|
|
4716
4663
|
usage: number;
|
|
4717
4664
|
remainingBalance: number;
|
|
4665
|
+
next_quota_reset: Date | null;
|
|
4718
4666
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4719
4667
|
autoTopupAdded?: number | undefined;
|
|
4720
4668
|
}, {
|
|
4721
|
-
next_quota_reset: Date | null;
|
|
4722
4669
|
type: "usage-response";
|
|
4723
4670
|
usage: number;
|
|
4724
4671
|
remainingBalance: number;
|
|
4672
|
+
next_quota_reset: Date | null;
|
|
4725
4673
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4726
4674
|
autoTopupAdded?: number | undefined;
|
|
4727
4675
|
}>, z.ZodObject<{
|
|
@@ -4730,25 +4678,25 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4730
4678
|
credits: z.ZodNumber;
|
|
4731
4679
|
}, "strip", z.ZodTypeAny, {
|
|
4732
4680
|
type: "message-cost-response";
|
|
4733
|
-
credits: number;
|
|
4734
4681
|
promptId: string;
|
|
4682
|
+
credits: number;
|
|
4735
4683
|
}, {
|
|
4736
4684
|
type: "message-cost-response";
|
|
4737
|
-
credits: number;
|
|
4738
4685
|
promptId: string;
|
|
4686
|
+
credits: number;
|
|
4739
4687
|
}>, z.ZodObject<{
|
|
4740
4688
|
type: z.ZodLiteral<"action-error">;
|
|
4741
4689
|
message: z.ZodString;
|
|
4742
4690
|
error: z.ZodOptional<z.ZodString>;
|
|
4743
4691
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4744
4692
|
}, "strip", z.ZodTypeAny, {
|
|
4745
|
-
type: "action-error";
|
|
4746
4693
|
message: string;
|
|
4694
|
+
type: "action-error";
|
|
4747
4695
|
remainingBalance?: number | undefined;
|
|
4748
4696
|
error?: string | undefined;
|
|
4749
4697
|
}, {
|
|
4750
|
-
type: "action-error";
|
|
4751
4698
|
message: string;
|
|
4699
|
+
type: "action-error";
|
|
4752
4700
|
remainingBalance?: number | undefined;
|
|
4753
4701
|
error?: string | undefined;
|
|
4754
4702
|
}>, z.ZodObject<{
|
|
@@ -4768,32 +4716,33 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4768
4716
|
type: "request-reconnect";
|
|
4769
4717
|
}>]>;
|
|
4770
4718
|
}, "strip", z.ZodTypeAny, {
|
|
4719
|
+
type: "action";
|
|
4771
4720
|
data: {
|
|
4772
|
-
next_quota_reset: Date | null;
|
|
4773
4721
|
type: "usage-response";
|
|
4774
4722
|
usage: number;
|
|
4775
4723
|
remainingBalance: number;
|
|
4724
|
+
next_quota_reset: Date | null;
|
|
4776
4725
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4777
4726
|
autoTopupAdded?: number | undefined;
|
|
4778
4727
|
} | {
|
|
4779
|
-
next_quota_reset: Date | null;
|
|
4780
4728
|
type: "init-response";
|
|
4781
4729
|
usage: number;
|
|
4782
4730
|
remainingBalance: number;
|
|
4731
|
+
next_quota_reset: Date | null;
|
|
4783
4732
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4784
4733
|
autoTopupAdded?: number | undefined;
|
|
4785
4734
|
} | {
|
|
4786
4735
|
type: "response-complete";
|
|
4787
|
-
response: string;
|
|
4788
4736
|
userInputId: string;
|
|
4737
|
+
response: string;
|
|
4789
4738
|
changes: {
|
|
4790
|
-
type: "patch" | "file";
|
|
4791
4739
|
path: string;
|
|
4740
|
+
type: "patch" | "file";
|
|
4792
4741
|
content: string;
|
|
4793
4742
|
}[];
|
|
4794
4743
|
changesAlreadyApplied: {
|
|
4795
|
-
type: "patch" | "file";
|
|
4796
4744
|
path: string;
|
|
4745
|
+
type: "patch" | "file";
|
|
4797
4746
|
content: string;
|
|
4798
4747
|
}[];
|
|
4799
4748
|
addedFileVersions: {
|
|
@@ -4801,15 +4750,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4801
4750
|
content: string;
|
|
4802
4751
|
}[];
|
|
4803
4752
|
resetFileVersions: boolean;
|
|
4804
|
-
next_quota_reset?: Date | null | undefined;
|
|
4805
4753
|
usage?: number | undefined;
|
|
4806
4754
|
remainingBalance?: number | undefined;
|
|
4807
4755
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4756
|
+
next_quota_reset?: Date | null | undefined;
|
|
4808
4757
|
autoTopupAdded?: number | undefined;
|
|
4809
4758
|
} | {
|
|
4810
4759
|
type: "message-cost-response";
|
|
4811
|
-
credits: number;
|
|
4812
4760
|
promptId: string;
|
|
4761
|
+
credits: number;
|
|
4813
4762
|
} | {
|
|
4814
4763
|
type: "prompt-response";
|
|
4815
4764
|
promptId: string;
|
|
@@ -4846,8 +4795,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4846
4795
|
messageHistory: (import("ai").CoreMessage & {
|
|
4847
4796
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4848
4797
|
})[];
|
|
4849
|
-
|
|
4850
|
-
agentStepsRemaining?: number | undefined;
|
|
4798
|
+
agentStepsRemaining: number;
|
|
4851
4799
|
};
|
|
4852
4800
|
toolResults: {
|
|
4853
4801
|
name: string;
|
|
@@ -4856,8 +4804,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4856
4804
|
}[];
|
|
4857
4805
|
toolCalls: {
|
|
4858
4806
|
name: string;
|
|
4859
|
-
id: string;
|
|
4860
4807
|
parameters: Record<string, string>;
|
|
4808
|
+
id: string;
|
|
4861
4809
|
}[];
|
|
4862
4810
|
} | {
|
|
4863
4811
|
type: "manager-prompt-response";
|
|
@@ -4895,8 +4843,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4895
4843
|
messageHistory: (import("ai").CoreMessage & {
|
|
4896
4844
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4897
4845
|
})[];
|
|
4898
|
-
|
|
4899
|
-
agentStepsRemaining?: number | undefined;
|
|
4846
|
+
agentStepsRemaining: number;
|
|
4900
4847
|
};
|
|
4901
4848
|
toolResults: {
|
|
4902
4849
|
name: string;
|
|
@@ -4905,8 +4852,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4905
4852
|
}[];
|
|
4906
4853
|
toolCalls: {
|
|
4907
4854
|
name: string;
|
|
4908
|
-
id: string;
|
|
4909
4855
|
parameters: Record<string, string>;
|
|
4856
|
+
id: string;
|
|
4910
4857
|
}[];
|
|
4911
4858
|
} | {
|
|
4912
4859
|
type: "response-chunk";
|
|
@@ -4917,22 +4864,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4917
4864
|
requestId: string;
|
|
4918
4865
|
filePaths: string[];
|
|
4919
4866
|
} | {
|
|
4920
|
-
data: {
|
|
4921
|
-
name: string;
|
|
4922
|
-
id: string;
|
|
4923
|
-
input: Record<string, any>;
|
|
4924
|
-
};
|
|
4925
4867
|
type: "tool-call";
|
|
4926
|
-
response: string;
|
|
4927
4868
|
userInputId: string;
|
|
4869
|
+
response: string;
|
|
4928
4870
|
changes: {
|
|
4929
|
-
type: "patch" | "file";
|
|
4930
4871
|
path: string;
|
|
4872
|
+
type: "patch" | "file";
|
|
4931
4873
|
content: string;
|
|
4932
4874
|
}[];
|
|
4933
4875
|
changesAlreadyApplied: {
|
|
4934
|
-
type: "patch" | "file";
|
|
4935
4876
|
path: string;
|
|
4877
|
+
type: "patch" | "file";
|
|
4936
4878
|
content: string;
|
|
4937
4879
|
}[];
|
|
4938
4880
|
addedFileVersions: {
|
|
@@ -4940,6 +4882,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4940
4882
|
content: string;
|
|
4941
4883
|
}[];
|
|
4942
4884
|
resetFileVersions: boolean;
|
|
4885
|
+
data: {
|
|
4886
|
+
name: string;
|
|
4887
|
+
id: string;
|
|
4888
|
+
input: Record<string, any>;
|
|
4889
|
+
};
|
|
4943
4890
|
} | {
|
|
4944
4891
|
type: "terminal-command-result";
|
|
4945
4892
|
result: string;
|
|
@@ -4949,8 +4896,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4949
4896
|
isUpToDate: boolean;
|
|
4950
4897
|
latestVersion: string;
|
|
4951
4898
|
} | {
|
|
4952
|
-
type: "action-error";
|
|
4953
4899
|
message: string;
|
|
4900
|
+
type: "action-error";
|
|
4954
4901
|
remainingBalance?: number | undefined;
|
|
4955
4902
|
error?: string | undefined;
|
|
4956
4903
|
} | {
|
|
@@ -4959,34 +4906,34 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4959
4906
|
} | {
|
|
4960
4907
|
type: "request-reconnect";
|
|
4961
4908
|
};
|
|
4962
|
-
type: "action";
|
|
4963
4909
|
}, {
|
|
4910
|
+
type: "action";
|
|
4964
4911
|
data: {
|
|
4965
|
-
next_quota_reset: Date | null;
|
|
4966
4912
|
type: "usage-response";
|
|
4967
4913
|
usage: number;
|
|
4968
4914
|
remainingBalance: number;
|
|
4915
|
+
next_quota_reset: Date | null;
|
|
4969
4916
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4970
4917
|
autoTopupAdded?: number | undefined;
|
|
4971
4918
|
} | {
|
|
4972
|
-
next_quota_reset: Date | null;
|
|
4973
4919
|
type: "init-response";
|
|
4974
4920
|
usage: number;
|
|
4975
4921
|
remainingBalance: number;
|
|
4922
|
+
next_quota_reset: Date | null;
|
|
4976
4923
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4977
4924
|
autoTopupAdded?: number | undefined;
|
|
4978
4925
|
} | {
|
|
4979
4926
|
type: "response-complete";
|
|
4980
|
-
response: string;
|
|
4981
4927
|
userInputId: string;
|
|
4928
|
+
response: string;
|
|
4982
4929
|
changes: {
|
|
4983
|
-
type: "patch" | "file";
|
|
4984
4930
|
path: string;
|
|
4931
|
+
type: "patch" | "file";
|
|
4985
4932
|
content: string;
|
|
4986
4933
|
}[];
|
|
4987
4934
|
changesAlreadyApplied: {
|
|
4988
|
-
type: "patch" | "file";
|
|
4989
4935
|
path: string;
|
|
4936
|
+
type: "patch" | "file";
|
|
4990
4937
|
content: string;
|
|
4991
4938
|
}[];
|
|
4992
4939
|
addedFileVersions: {
|
|
@@ -4994,15 +4941,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4994
4941
|
content: string;
|
|
4995
4942
|
}[];
|
|
4996
4943
|
resetFileVersions: boolean;
|
|
4997
|
-
next_quota_reset?: Date | null | undefined;
|
|
4998
4944
|
usage?: number | undefined;
|
|
4999
4945
|
remainingBalance?: number | undefined;
|
|
5000
4946
|
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4947
|
+
next_quota_reset?: Date | null | undefined;
|
|
5001
4948
|
autoTopupAdded?: number | undefined;
|
|
5002
4949
|
} | {
|
|
5003
4950
|
type: "message-cost-response";
|
|
5004
|
-
credits: number;
|
|
5005
4951
|
promptId: string;
|
|
4952
|
+
credits: number;
|
|
5006
4953
|
} | {
|
|
5007
4954
|
type: "prompt-response";
|
|
5008
4955
|
promptId: string;
|
|
@@ -5039,8 +4986,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5039
4986
|
messageHistory: (import("ai").CoreMessage & {
|
|
5040
4987
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
5041
4988
|
})[];
|
|
5042
|
-
|
|
5043
|
-
agentStepsRemaining?: number | undefined;
|
|
4989
|
+
agentStepsRemaining: number;
|
|
5044
4990
|
};
|
|
5045
4991
|
toolResults: {
|
|
5046
4992
|
name: string;
|
|
@@ -5049,8 +4995,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5049
4995
|
}[];
|
|
5050
4996
|
toolCalls: {
|
|
5051
4997
|
name: string;
|
|
5052
|
-
id: string;
|
|
5053
4998
|
parameters: Record<string, string>;
|
|
4999
|
+
id: string;
|
|
5054
5000
|
}[];
|
|
5055
5001
|
} | {
|
|
5056
5002
|
type: "manager-prompt-response";
|
|
@@ -5088,8 +5034,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5088
5034
|
messageHistory: (import("ai").CoreMessage & {
|
|
5089
5035
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
5090
5036
|
})[];
|
|
5091
|
-
|
|
5092
|
-
agentStepsRemaining?: number | undefined;
|
|
5037
|
+
agentStepsRemaining: number;
|
|
5093
5038
|
};
|
|
5094
5039
|
toolResults: {
|
|
5095
5040
|
name: string;
|
|
@@ -5098,8 +5043,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5098
5043
|
}[];
|
|
5099
5044
|
toolCalls: {
|
|
5100
5045
|
name: string;
|
|
5101
|
-
id: string;
|
|
5102
5046
|
parameters: Record<string, string>;
|
|
5047
|
+
id: string;
|
|
5103
5048
|
}[];
|
|
5104
5049
|
} | {
|
|
5105
5050
|
type: "response-chunk";
|
|
@@ -5110,22 +5055,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5110
5055
|
requestId: string;
|
|
5111
5056
|
filePaths: string[];
|
|
5112
5057
|
} | {
|
|
5113
|
-
data: {
|
|
5114
|
-
name: string;
|
|
5115
|
-
id: string;
|
|
5116
|
-
input: Record<string, any>;
|
|
5117
|
-
};
|
|
5118
5058
|
type: "tool-call";
|
|
5119
|
-
response: string;
|
|
5120
5059
|
userInputId: string;
|
|
5060
|
+
response: string;
|
|
5121
5061
|
changes: {
|
|
5122
|
-
type: "patch" | "file";
|
|
5123
5062
|
path: string;
|
|
5063
|
+
type: "patch" | "file";
|
|
5124
5064
|
content: string;
|
|
5125
5065
|
}[];
|
|
5126
5066
|
changesAlreadyApplied: {
|
|
5127
|
-
type: "patch" | "file";
|
|
5128
5067
|
path: string;
|
|
5068
|
+
type: "patch" | "file";
|
|
5129
5069
|
content: string;
|
|
5130
5070
|
}[];
|
|
5131
5071
|
addedFileVersions: {
|
|
@@ -5133,6 +5073,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5133
5073
|
content: string;
|
|
5134
5074
|
}[];
|
|
5135
5075
|
resetFileVersions: boolean;
|
|
5076
|
+
data: {
|
|
5077
|
+
name: string;
|
|
5078
|
+
id: string;
|
|
5079
|
+
input: Record<string, any>;
|
|
5080
|
+
};
|
|
5136
5081
|
} | {
|
|
5137
5082
|
type: "terminal-command-result";
|
|
5138
5083
|
result: string;
|
|
@@ -5142,8 +5087,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5142
5087
|
isUpToDate: boolean;
|
|
5143
5088
|
latestVersion: string;
|
|
5144
5089
|
} | {
|
|
5145
|
-
type: "action-error";
|
|
5146
5090
|
message: string;
|
|
5091
|
+
type: "action-error";
|
|
5147
5092
|
remainingBalance?: number | undefined;
|
|
5148
5093
|
error?: string | undefined;
|
|
5149
5094
|
} | {
|
|
@@ -5152,7 +5097,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5152
5097
|
} | {
|
|
5153
5098
|
type: "request-reconnect";
|
|
5154
5099
|
};
|
|
5155
|
-
type: "action";
|
|
5156
5100
|
}>]>;
|
|
5157
5101
|
export type ServerMessageType = keyof typeof SERVER_MESSAGE_SCHEMAS;
|
|
5158
5102
|
export type ServerMessage<T extends ServerMessageType = ServerMessageType> = z.infer<(typeof SERVER_MESSAGE_SCHEMAS)[T]>;
|