codebuff 1.0.304 → 1.0.306
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/README.md +6 -24
- package/dist/chat-storage.d.ts +2 -2
- package/dist/chat-storage.js.map +1 -1
- package/dist/cli-definitions.js +6 -0
- package/dist/cli-definitions.js.map +1 -1
- package/dist/cli.js +14 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -49
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts +12 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts.map +1 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.js +14 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.js.map +1 -0
- package/dist/code-map/jest.config.d.ts +4 -0
- package/dist/code-map/jest.config.d.ts.map +1 -0
- package/dist/code-map/jest.config.js +18 -0
- package/dist/code-map/jest.config.js.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.cjs +27 -0
- package/dist/code-map/scripts/tree-sitter-test.cjs.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.d.cts +2 -0
- package/dist/code-map/scripts/tree-sitter-test.d.cts.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.d.ts +2 -0
- package/dist/code-map/scripts/tree-sitter-test.d.ts.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.js +54 -0
- package/dist/code-map/scripts/tree-sitter-test.js.map +1 -0
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +72 -30
- package/dist/common/browser-actions.d.ts +48 -48
- package/dist/common/constants.d.ts +4 -0
- package/dist/common/constants.js +9 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +15 -5
- package/dist/common/types/agent-state.js +2 -2
- package/dist/common/types/agent-state.js.map +1 -1
- package/dist/common/types/message.d.ts +18 -11
- package/dist/common/types/message.js +7 -1
- package/dist/common/types/message.js.map +1 -1
- package/dist/common/util/messages.d.ts +2 -2
- package/dist/common/util/messages.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +146 -74
- package/dist/index.js +5 -14
- package/dist/index.js.map +1 -1
- package/dist/menu.js +13 -1
- package/dist/menu.js.map +1 -1
- package/package.json +3 -2
|
@@ -37,8 +37,8 @@ export declare const LogSchema: z.ZodObject<{
|
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
message: string;
|
|
39
39
|
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
40
|
-
timestamp: number;
|
|
41
40
|
source: "browser" | "tool";
|
|
41
|
+
timestamp: number;
|
|
42
42
|
level?: number | undefined;
|
|
43
43
|
location?: string | undefined;
|
|
44
44
|
stack?: string | undefined;
|
|
@@ -47,11 +47,11 @@ export declare const LogSchema: z.ZodObject<{
|
|
|
47
47
|
message: string;
|
|
48
48
|
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
49
49
|
timestamp: number;
|
|
50
|
+
source?: "browser" | "tool" | undefined;
|
|
50
51
|
level?: number | undefined;
|
|
51
52
|
location?: string | undefined;
|
|
52
53
|
stack?: string | undefined;
|
|
53
54
|
category?: string | undefined;
|
|
54
|
-
source?: "browser" | "tool" | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
export type Log = z.infer<typeof LogSchema>;
|
|
57
57
|
export declare const MetricsSchema: z.ZodObject<{
|
|
@@ -268,26 +268,26 @@ export declare const ImageContentSchema: z.ZodObject<{
|
|
|
268
268
|
data: z.ZodString;
|
|
269
269
|
}, "strip", z.ZodTypeAny, {
|
|
270
270
|
type: "base64";
|
|
271
|
-
data: string;
|
|
272
271
|
media_type: "image/jpeg";
|
|
272
|
+
data: string;
|
|
273
273
|
}, {
|
|
274
274
|
type: "base64";
|
|
275
|
-
data: string;
|
|
276
275
|
media_type: "image/jpeg";
|
|
276
|
+
data: string;
|
|
277
277
|
}>;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
279
|
type: "image";
|
|
280
280
|
source: {
|
|
281
281
|
type: "base64";
|
|
282
|
-
data: string;
|
|
283
282
|
media_type: "image/jpeg";
|
|
283
|
+
data: string;
|
|
284
284
|
};
|
|
285
285
|
}, {
|
|
286
286
|
type: "image";
|
|
287
287
|
source: {
|
|
288
288
|
type: "base64";
|
|
289
|
-
data: string;
|
|
290
289
|
media_type: "image/jpeg";
|
|
290
|
+
data: string;
|
|
291
291
|
};
|
|
292
292
|
}>;
|
|
293
293
|
export type ImageContent = z.infer<typeof ImageContentSchema>;
|
|
@@ -306,8 +306,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
307
|
message: string;
|
|
308
308
|
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
309
|
-
timestamp: number;
|
|
310
309
|
source: "browser" | "tool";
|
|
310
|
+
timestamp: number;
|
|
311
311
|
level?: number | undefined;
|
|
312
312
|
location?: string | undefined;
|
|
313
313
|
stack?: string | undefined;
|
|
@@ -316,11 +316,11 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
316
316
|
message: string;
|
|
317
317
|
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
318
318
|
timestamp: number;
|
|
319
|
+
source?: "browser" | "tool" | undefined;
|
|
319
320
|
level?: number | undefined;
|
|
320
321
|
location?: string | undefined;
|
|
321
322
|
stack?: string | undefined;
|
|
322
323
|
category?: string | undefined;
|
|
323
|
-
source?: "browser" | "tool" | undefined;
|
|
324
324
|
}>, "many">;
|
|
325
325
|
logFilter: z.ZodOptional<z.ZodObject<{
|
|
326
326
|
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["error", "warning", "info", "debug", "verbose"]>, "many">>;
|
|
@@ -394,26 +394,26 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
394
394
|
data: z.ZodString;
|
|
395
395
|
}, "strip", z.ZodTypeAny, {
|
|
396
396
|
type: "base64";
|
|
397
|
-
data: string;
|
|
398
397
|
media_type: "image/jpeg";
|
|
398
|
+
data: string;
|
|
399
399
|
}, {
|
|
400
400
|
type: "base64";
|
|
401
|
-
data: string;
|
|
402
401
|
media_type: "image/jpeg";
|
|
402
|
+
data: string;
|
|
403
403
|
}>;
|
|
404
404
|
}, "strip", z.ZodTypeAny, {
|
|
405
405
|
type: "image";
|
|
406
406
|
source: {
|
|
407
407
|
type: "base64";
|
|
408
|
-
data: string;
|
|
409
408
|
media_type: "image/jpeg";
|
|
409
|
+
data: string;
|
|
410
410
|
};
|
|
411
411
|
}, {
|
|
412
412
|
type: "image";
|
|
413
413
|
source: {
|
|
414
414
|
type: "base64";
|
|
415
|
-
data: string;
|
|
416
415
|
media_type: "image/jpeg";
|
|
416
|
+
data: string;
|
|
417
417
|
};
|
|
418
418
|
}>>;
|
|
419
419
|
post: z.ZodObject<{
|
|
@@ -424,26 +424,26 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
424
424
|
data: z.ZodString;
|
|
425
425
|
}, "strip", z.ZodTypeAny, {
|
|
426
426
|
type: "base64";
|
|
427
|
-
data: string;
|
|
428
427
|
media_type: "image/jpeg";
|
|
428
|
+
data: string;
|
|
429
429
|
}, {
|
|
430
430
|
type: "base64";
|
|
431
|
-
data: string;
|
|
432
431
|
media_type: "image/jpeg";
|
|
432
|
+
data: string;
|
|
433
433
|
}>;
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
435
|
type: "image";
|
|
436
436
|
source: {
|
|
437
437
|
type: "base64";
|
|
438
|
-
data: string;
|
|
439
438
|
media_type: "image/jpeg";
|
|
439
|
+
data: string;
|
|
440
440
|
};
|
|
441
441
|
}, {
|
|
442
442
|
type: "image";
|
|
443
443
|
source: {
|
|
444
444
|
type: "base64";
|
|
445
|
-
data: string;
|
|
446
445
|
media_type: "image/jpeg";
|
|
446
|
+
data: string;
|
|
447
447
|
};
|
|
448
448
|
}>;
|
|
449
449
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -451,16 +451,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
451
451
|
type: "image";
|
|
452
452
|
source: {
|
|
453
453
|
type: "base64";
|
|
454
|
-
data: string;
|
|
455
454
|
media_type: "image/jpeg";
|
|
455
|
+
data: string;
|
|
456
456
|
};
|
|
457
457
|
};
|
|
458
458
|
pre?: {
|
|
459
459
|
type: "image";
|
|
460
460
|
source: {
|
|
461
461
|
type: "base64";
|
|
462
|
-
data: string;
|
|
463
462
|
media_type: "image/jpeg";
|
|
463
|
+
data: string;
|
|
464
464
|
};
|
|
465
465
|
} | undefined;
|
|
466
466
|
}, {
|
|
@@ -468,16 +468,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
468
468
|
type: "image";
|
|
469
469
|
source: {
|
|
470
470
|
type: "base64";
|
|
471
|
-
data: string;
|
|
472
471
|
media_type: "image/jpeg";
|
|
472
|
+
data: string;
|
|
473
473
|
};
|
|
474
474
|
};
|
|
475
475
|
pre?: {
|
|
476
476
|
type: "image";
|
|
477
477
|
source: {
|
|
478
478
|
type: "base64";
|
|
479
|
-
data: string;
|
|
480
479
|
media_type: "image/jpeg";
|
|
480
|
+
data: string;
|
|
481
481
|
};
|
|
482
482
|
} | undefined;
|
|
483
483
|
}>>;
|
|
@@ -486,8 +486,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
486
486
|
logs: {
|
|
487
487
|
message: string;
|
|
488
488
|
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
489
|
-
timestamp: number;
|
|
490
489
|
source: "browser" | "tool";
|
|
490
|
+
timestamp: number;
|
|
491
491
|
level?: number | undefined;
|
|
492
492
|
location?: string | undefined;
|
|
493
493
|
stack?: string | undefined;
|
|
@@ -522,16 +522,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
522
522
|
type: "image";
|
|
523
523
|
source: {
|
|
524
524
|
type: "base64";
|
|
525
|
-
data: string;
|
|
526
525
|
media_type: "image/jpeg";
|
|
526
|
+
data: string;
|
|
527
527
|
};
|
|
528
528
|
};
|
|
529
529
|
pre?: {
|
|
530
530
|
type: "image";
|
|
531
531
|
source: {
|
|
532
532
|
type: "base64";
|
|
533
|
-
data: string;
|
|
534
533
|
media_type: "image/jpeg";
|
|
534
|
+
data: string;
|
|
535
535
|
};
|
|
536
536
|
} | undefined;
|
|
537
537
|
} | undefined;
|
|
@@ -541,11 +541,11 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
541
541
|
message: string;
|
|
542
542
|
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
543
543
|
timestamp: number;
|
|
544
|
+
source?: "browser" | "tool" | undefined;
|
|
544
545
|
level?: number | undefined;
|
|
545
546
|
location?: string | undefined;
|
|
546
547
|
stack?: string | undefined;
|
|
547
548
|
category?: string | undefined;
|
|
548
|
-
source?: "browser" | "tool" | undefined;
|
|
549
549
|
}[];
|
|
550
550
|
error?: string | undefined;
|
|
551
551
|
logFilter?: {
|
|
@@ -576,16 +576,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
576
576
|
type: "image";
|
|
577
577
|
source: {
|
|
578
578
|
type: "base64";
|
|
579
|
-
data: string;
|
|
580
579
|
media_type: "image/jpeg";
|
|
580
|
+
data: string;
|
|
581
581
|
};
|
|
582
582
|
};
|
|
583
583
|
pre?: {
|
|
584
584
|
type: "image";
|
|
585
585
|
source: {
|
|
586
586
|
type: "base64";
|
|
587
|
-
data: string;
|
|
588
587
|
media_type: "image/jpeg";
|
|
588
|
+
data: string;
|
|
589
589
|
};
|
|
590
590
|
} | undefined;
|
|
591
591
|
} | undefined;
|
|
@@ -833,12 +833,12 @@ export declare const RequiredBrowserTypeActionSchema: z.ZodObject<{
|
|
|
833
833
|
text: z.ZodString;
|
|
834
834
|
}, "strip", z.ZodTypeAny, {
|
|
835
835
|
type: "type";
|
|
836
|
-
selector: string;
|
|
837
836
|
text: string;
|
|
837
|
+
selector: string;
|
|
838
838
|
}, {
|
|
839
839
|
type: "type";
|
|
840
|
-
selector: string;
|
|
841
840
|
text: string;
|
|
841
|
+
selector: string;
|
|
842
842
|
}>;
|
|
843
843
|
export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
844
844
|
type: z.ZodLiteral<"type">;
|
|
@@ -877,8 +877,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
877
877
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
878
878
|
}>, "strip", z.ZodTypeAny, {
|
|
879
879
|
type: "type";
|
|
880
|
-
selector: string;
|
|
881
880
|
text: string;
|
|
881
|
+
selector: string;
|
|
882
882
|
debug?: boolean | undefined;
|
|
883
883
|
timeout?: number | undefined;
|
|
884
884
|
retryOptions?: {
|
|
@@ -894,8 +894,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
894
894
|
delay?: number | undefined;
|
|
895
895
|
}, {
|
|
896
896
|
type: "type";
|
|
897
|
-
selector: string;
|
|
898
897
|
text: string;
|
|
898
|
+
selector: string;
|
|
899
899
|
debug?: boolean | undefined;
|
|
900
900
|
timeout?: number | undefined;
|
|
901
901
|
retryOptions?: {
|
|
@@ -1381,8 +1381,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1381
1381
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
1382
1382
|
}>, "strip", z.ZodTypeAny, {
|
|
1383
1383
|
type: "type";
|
|
1384
|
-
selector: string;
|
|
1385
1384
|
text: string;
|
|
1385
|
+
selector: string;
|
|
1386
1386
|
debug?: boolean | undefined;
|
|
1387
1387
|
timeout?: number | undefined;
|
|
1388
1388
|
retryOptions?: {
|
|
@@ -1398,8 +1398,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1398
1398
|
delay?: number | undefined;
|
|
1399
1399
|
}, {
|
|
1400
1400
|
type: "type";
|
|
1401
|
-
selector: string;
|
|
1402
1401
|
text: string;
|
|
1402
|
+
selector: string;
|
|
1403
1403
|
debug?: boolean | undefined;
|
|
1404
1404
|
timeout?: number | undefined;
|
|
1405
1405
|
retryOptions?: {
|
|
@@ -1666,8 +1666,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1666
1666
|
visualThreshold?: number | undefined;
|
|
1667
1667
|
} | {
|
|
1668
1668
|
type: "type";
|
|
1669
|
-
selector: string;
|
|
1670
1669
|
text: string;
|
|
1670
|
+
selector: string;
|
|
1671
1671
|
debug?: boolean | undefined;
|
|
1672
1672
|
timeout?: number | undefined;
|
|
1673
1673
|
retryOptions?: {
|
|
@@ -1788,8 +1788,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1788
1788
|
visualThreshold?: number | undefined;
|
|
1789
1789
|
} | {
|
|
1790
1790
|
type: "type";
|
|
1791
|
-
selector: string;
|
|
1792
1791
|
text: string;
|
|
1792
|
+
selector: string;
|
|
1793
1793
|
debug?: boolean | undefined;
|
|
1794
1794
|
timeout?: number | undefined;
|
|
1795
1795
|
retryOptions?: {
|
|
@@ -2133,8 +2133,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2133
2133
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
2134
2134
|
}>, "strip", z.ZodTypeAny, {
|
|
2135
2135
|
type: "type";
|
|
2136
|
-
selector: string;
|
|
2137
2136
|
text: string;
|
|
2137
|
+
selector: string;
|
|
2138
2138
|
debug?: boolean | undefined;
|
|
2139
2139
|
timeout?: number | undefined;
|
|
2140
2140
|
retryOptions?: {
|
|
@@ -2150,8 +2150,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2150
2150
|
delay?: number | undefined;
|
|
2151
2151
|
}, {
|
|
2152
2152
|
type: "type";
|
|
2153
|
-
selector: string;
|
|
2154
2153
|
text: string;
|
|
2154
|
+
selector: string;
|
|
2155
2155
|
debug?: boolean | undefined;
|
|
2156
2156
|
timeout?: number | undefined;
|
|
2157
2157
|
retryOptions?: {
|
|
@@ -2418,8 +2418,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2418
2418
|
visualThreshold?: number | undefined;
|
|
2419
2419
|
} | {
|
|
2420
2420
|
type: "type";
|
|
2421
|
-
selector: string;
|
|
2422
2421
|
text: string;
|
|
2422
|
+
selector: string;
|
|
2423
2423
|
debug?: boolean | undefined;
|
|
2424
2424
|
timeout?: number | undefined;
|
|
2425
2425
|
retryOptions?: {
|
|
@@ -2540,8 +2540,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2540
2540
|
visualThreshold?: number | undefined;
|
|
2541
2541
|
} | {
|
|
2542
2542
|
type: "type";
|
|
2543
|
-
selector: string;
|
|
2544
2543
|
text: string;
|
|
2544
|
+
selector: string;
|
|
2545
2545
|
debug?: boolean | undefined;
|
|
2546
2546
|
timeout?: number | undefined;
|
|
2547
2547
|
retryOptions?: {
|
|
@@ -2668,8 +2668,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2668
2668
|
visualThreshold?: number | undefined;
|
|
2669
2669
|
} | {
|
|
2670
2670
|
type: "type";
|
|
2671
|
-
selector: string;
|
|
2672
2671
|
text: string;
|
|
2672
|
+
selector: string;
|
|
2673
2673
|
debug?: boolean | undefined;
|
|
2674
2674
|
timeout?: number | undefined;
|
|
2675
2675
|
retryOptions?: {
|
|
@@ -2808,8 +2808,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2808
2808
|
visualThreshold?: number | undefined;
|
|
2809
2809
|
} | {
|
|
2810
2810
|
type: "type";
|
|
2811
|
-
selector: string;
|
|
2812
2811
|
text: string;
|
|
2812
|
+
selector: string;
|
|
2813
2813
|
debug?: boolean | undefined;
|
|
2814
2814
|
timeout?: number | undefined;
|
|
2815
2815
|
retryOptions?: {
|
|
@@ -3137,8 +3137,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3137
3137
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
3138
3138
|
}>, "strip", z.ZodTypeAny, {
|
|
3139
3139
|
type: "type";
|
|
3140
|
-
selector: string;
|
|
3141
3140
|
text: string;
|
|
3141
|
+
selector: string;
|
|
3142
3142
|
debug?: boolean | undefined;
|
|
3143
3143
|
timeout?: number | undefined;
|
|
3144
3144
|
retryOptions?: {
|
|
@@ -3154,8 +3154,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3154
3154
|
delay?: number | undefined;
|
|
3155
3155
|
}, {
|
|
3156
3156
|
type: "type";
|
|
3157
|
-
selector: string;
|
|
3158
3157
|
text: string;
|
|
3158
|
+
selector: string;
|
|
3159
3159
|
debug?: boolean | undefined;
|
|
3160
3160
|
timeout?: number | undefined;
|
|
3161
3161
|
retryOptions?: {
|
|
@@ -3639,8 +3639,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3639
3639
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
3640
3640
|
}>, "strip", z.ZodTypeAny, {
|
|
3641
3641
|
type: "type";
|
|
3642
|
-
selector: string;
|
|
3643
3642
|
text: string;
|
|
3643
|
+
selector: string;
|
|
3644
3644
|
debug?: boolean | undefined;
|
|
3645
3645
|
timeout?: number | undefined;
|
|
3646
3646
|
retryOptions?: {
|
|
@@ -3656,8 +3656,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3656
3656
|
delay?: number | undefined;
|
|
3657
3657
|
}, {
|
|
3658
3658
|
type: "type";
|
|
3659
|
-
selector: string;
|
|
3660
3659
|
text: string;
|
|
3660
|
+
selector: string;
|
|
3661
3661
|
debug?: boolean | undefined;
|
|
3662
3662
|
timeout?: number | undefined;
|
|
3663
3663
|
retryOptions?: {
|
|
@@ -3924,8 +3924,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3924
3924
|
visualThreshold?: number | undefined;
|
|
3925
3925
|
} | {
|
|
3926
3926
|
type: "type";
|
|
3927
|
-
selector: string;
|
|
3928
3927
|
text: string;
|
|
3928
|
+
selector: string;
|
|
3929
3929
|
debug?: boolean | undefined;
|
|
3930
3930
|
timeout?: number | undefined;
|
|
3931
3931
|
retryOptions?: {
|
|
@@ -4046,8 +4046,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4046
4046
|
visualThreshold?: number | undefined;
|
|
4047
4047
|
} | {
|
|
4048
4048
|
type: "type";
|
|
4049
|
-
selector: string;
|
|
4050
4049
|
text: string;
|
|
4050
|
+
selector: string;
|
|
4051
4051
|
debug?: boolean | undefined;
|
|
4052
4052
|
timeout?: number | undefined;
|
|
4053
4053
|
retryOptions?: {
|
|
@@ -4174,8 +4174,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4174
4174
|
visualThreshold?: number | undefined;
|
|
4175
4175
|
} | {
|
|
4176
4176
|
type: "type";
|
|
4177
|
-
selector: string;
|
|
4178
4177
|
text: string;
|
|
4178
|
+
selector: string;
|
|
4179
4179
|
debug?: boolean | undefined;
|
|
4180
4180
|
timeout?: number | undefined;
|
|
4181
4181
|
retryOptions?: {
|
|
@@ -4314,8 +4314,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4314
4314
|
visualThreshold?: number | undefined;
|
|
4315
4315
|
} | {
|
|
4316
4316
|
type: "type";
|
|
4317
|
-
selector: string;
|
|
4318
4317
|
text: string;
|
|
4318
|
+
selector: string;
|
|
4319
4319
|
debug?: boolean | undefined;
|
|
4320
4320
|
timeout?: number | undefined;
|
|
4321
4321
|
retryOptions?: {
|
|
@@ -78,11 +78,15 @@ export type DeepseekModel = (typeof deepseekModels)[keyof typeof deepseekModels]
|
|
|
78
78
|
export declare const finetunedVertexModels: {
|
|
79
79
|
readonly ft_filepicker_003: "196166068534771712";
|
|
80
80
|
readonly ft_filepicker_005: "8493203957034778624";
|
|
81
|
+
readonly ft_filepicker_007: "2589952415784501248";
|
|
82
|
+
readonly ft_filepicker_topk_001: "3676445825887633408";
|
|
81
83
|
};
|
|
82
84
|
export type FinetunedVertexModel = (typeof finetunedVertexModels)[keyof typeof finetunedVertexModels];
|
|
83
85
|
export declare const models: {
|
|
84
86
|
readonly ft_filepicker_003: "196166068534771712";
|
|
85
87
|
readonly ft_filepicker_005: "8493203957034778624";
|
|
88
|
+
readonly ft_filepicker_007: "2589952415784501248";
|
|
89
|
+
readonly ft_filepicker_topk_001: "3676445825887633408";
|
|
86
90
|
readonly openrouter_gemini2_5_pro_exp: "google/gemini-2.5-pro-exp-03-25:free";
|
|
87
91
|
readonly openrouter_gemini2_5_pro_preview: "google/gemini-2.5-pro-preview-03-25";
|
|
88
92
|
readonly openrouter_gemini2_5_flash: "google/gemini-2.5-flash-preview";
|
package/dist/common/constants.js
CHANGED
|
@@ -88,7 +88,13 @@ function getUserState(isLoggedIn, credits) {
|
|
|
88
88
|
return exports.UserState.CRITICAL;
|
|
89
89
|
return exports.UserState.DEPLETED;
|
|
90
90
|
}
|
|
91
|
-
exports.costModes = [
|
|
91
|
+
exports.costModes = [
|
|
92
|
+
'lite',
|
|
93
|
+
'normal',
|
|
94
|
+
'max',
|
|
95
|
+
'experimental',
|
|
96
|
+
'ask',
|
|
97
|
+
];
|
|
92
98
|
const getModelForMode = (costMode, operation) => {
|
|
93
99
|
if (operation === 'agent') {
|
|
94
100
|
return {
|
|
@@ -156,6 +162,8 @@ exports.deepseekModels = {
|
|
|
156
162
|
exports.finetunedVertexModels = {
|
|
157
163
|
ft_filepicker_003: '196166068534771712',
|
|
158
164
|
ft_filepicker_005: '8493203957034778624',
|
|
165
|
+
ft_filepicker_007: '2589952415784501248',
|
|
166
|
+
ft_filepicker_topk_001: '3676445825887633408',
|
|
159
167
|
};
|
|
160
168
|
exports.models = {
|
|
161
169
|
...exports.claudeModels,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAsDA,wCAKC;AA4BD,oCAOC;AA9FY,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,SAAS;IACT,cAAc;IACd,MAAM;IACN,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,aAAa;IACb,OAAO;IACP,WAAW;IACX,eAAe;IACf,aAAa;IACb,aAAa;IACb,OAAO;IACP,mBAAmB;IACnB,WAAW;CACZ,CAAA;AAED,iEAAiE;AACpD,QAAA,YAAY,GAAG,cAAc,CAAA;AAC7B,QAAA,iBAAiB,GAAG,mBAAmB,CAAA;AACvC,QAAA,aAAa,GAAG,EAAW,CAAA;AAC3B,QAAA,eAAe,GAAG;IAC7B,GAAG,qBAAa;IAChB,oBAAY;IACZ,yBAAiB;CACT,CAAA;AAEG,QAAA,gBAAgB,GAAG;IAC9B,cAAc,EAAE,uBAAuB;IACvC,OAAO,EAAE,gDAAgD;IACzD,eAAe,EAAE,wBAAwB;IACzC,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,mBAAmB;CAClB,CAAA;AAEG,QAAA,uBAAuB,GAAG;IACrC,wBAAgB,CAAC,cAAc;IAC/B,wBAAgB,CAAC,OAAO;IACxB,wBAAgB,CAAC,eAAe;IAChC,wBAAgB,CAAC,SAAS;IAC1B,wBAAgB,CAAC,KAAK;CACvB,CAAA;AAED,SAAgB,cAAc,CAAC,IAAmB;IAChD,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,IAAI,CAAA;IAC9B,OAAO,+BAAuB,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C,eAAe,CAAC,EAAE,QAAQ;IAClC,CAAC,cAAM,CAAC,wBAAwB,CAAC,EAAE,QAAQ;IAC3C,CAAC,cAAM,CAAC,KAAK,CAAC,EAAE,WAAW;IAC3B,CAAC,cAAM,CAAC,SAAS,CAAC,EAAE,WAAW;IAC/B,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,WAAW;IAC5B,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;IACzB,CAAC,cAAM,CAAC,KAAK,CAAC,EAAE,QAAQ;IACxB,CAAC,cAAM,CAAC,SAAS,CAAC,EAAE,QAAQ;IAC5B,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;IACzB,CAAC,cAAM,CAAC,EAAE,CAAC,EAAE,QAAQ;IACrB,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;CAC1B,CAAA;AAIY,QAAA,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -6,12 +6,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
name: string;
|
|
9
|
-
parameters: Record<string, string>;
|
|
10
9
|
id: string;
|
|
10
|
+
parameters: Record<string, string>;
|
|
11
11
|
}, {
|
|
12
12
|
name: string;
|
|
13
|
-
parameters: Record<string, string>;
|
|
14
13
|
id: string;
|
|
14
|
+
parameters: Record<string, string>;
|
|
15
15
|
}>;
|
|
16
16
|
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
17
17
|
export declare const ToolResultSchema: z.ZodObject<{
|
|
@@ -142,7 +142,13 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
142
142
|
content: string;
|
|
143
143
|
}[][] | undefined;
|
|
144
144
|
}>;
|
|
145
|
-
messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>,
|
|
145
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
146
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
151
|
+
}>>, "many">;
|
|
146
152
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
147
153
|
}, "strip", z.ZodTypeAny, {
|
|
148
154
|
agentContext: string;
|
|
@@ -174,7 +180,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
174
180
|
content: string;
|
|
175
181
|
}[][] | undefined;
|
|
176
182
|
};
|
|
177
|
-
messageHistory: import("ai").CoreMessage
|
|
183
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
184
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
185
|
+
})[];
|
|
178
186
|
consecutiveAssistantMessages?: number | undefined;
|
|
179
187
|
}, {
|
|
180
188
|
agentContext: string;
|
|
@@ -206,7 +214,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
206
214
|
content: string;
|
|
207
215
|
}[][] | undefined;
|
|
208
216
|
};
|
|
209
|
-
messageHistory: import("ai").CoreMessage
|
|
217
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
218
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
219
|
+
})[];
|
|
210
220
|
consecutiveAssistantMessages?: number | undefined;
|
|
211
221
|
}>;
|
|
212
222
|
export type AgentState = z.infer<typeof AgentStateSchema>;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgentStateSchema = exports.ToolResultSchema = exports.ToolCallSchema = void 0;
|
|
4
4
|
exports.getInitialAgentState = getInitialAgentState;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
-
const ai_1 = require("ai");
|
|
7
6
|
const file_1 = require("../util/file");
|
|
7
|
+
const message_1 = require("./message");
|
|
8
8
|
exports.ToolCallSchema = zod_1.z.object({
|
|
9
9
|
name: zod_1.z.string(),
|
|
10
10
|
parameters: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
@@ -18,7 +18,7 @@ exports.ToolResultSchema = zod_1.z.object({
|
|
|
18
18
|
exports.AgentStateSchema = zod_1.z.object({
|
|
19
19
|
agentContext: zod_1.z.string(),
|
|
20
20
|
fileContext: file_1.ProjectFileContextSchema,
|
|
21
|
-
messageHistory: zod_1.z.array(
|
|
21
|
+
messageHistory: zod_1.z.array(message_1.CodebuffMessageSchema),
|
|
22
22
|
consecutiveAssistantMessages: zod_1.z.number().optional(),
|
|
23
23
|
});
|
|
24
24
|
function getInitialAgentState(fileContext) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-state.js","sourceRoot":"","sources":["../../src/types/agent-state.ts"],"names":[],"mappings":";;;AA0BA,oDASC;AAnCD,6BAAuB;AAEvB,
|
|
1
|
+
{"version":3,"file":"agent-state.js","sourceRoot":"","sources":["../../src/types/agent-state.ts"],"names":[],"mappings":";;;AA0BA,oDASC;AAnCD,6BAAuB;AAEvB,uCAA2E;AAC3E,uCAAiD;AAEpC,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC;IAC5C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAA;AAEW,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAA;AAGW,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,+BAAwB;IACrC,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAqB,CAAC;IAC9C,4BAA4B,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAA;AAGF,SAAgB,oBAAoB,CAClC,WAA+B;IAE/B,OAAO;QACL,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,EAAE;QAClB,WAAW;QACX,4BAA4B,EAAE,CAAC;KAChC,CAAA;AACH,CAAC"}
|