codecane 1.0.170 → 1.0.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkpoints.d.ts +5 -3
- package/dist/checkpoints.js +16 -3
- package/dist/checkpoints.js.map +1 -1
- package/dist/cli.d.ts +3 -4
- package/dist/cli.js +62 -63
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +12 -12
- package/dist/client.js +40 -22
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +140 -171
- package/dist/common/browser-actions.d.ts +44 -44
- package/dist/common/types/agent-state.d.ts +22 -27
- package/dist/common/types/message.d.ts +22 -22
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.d.ts +0 -3
- package/dist/common/util/file.js +0 -1
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/saxy.d.ts +150 -0
- package/dist/common/util/saxy.js +474 -0
- package/dist/common/util/saxy.js.map +1 -0
- package/dist/common/util/string.d.ts +8 -0
- package/dist/common/util/string.js +11 -2
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +272 -336
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/project-files.d.ts +1 -3
- package/dist/project-files.js +1 -2
- package/dist/project-files.js.map +1 -1
- package/dist/utils/__tests__/xml-stream-parser.test.d.ts +1 -0
- package/dist/utils/__tests__/xml-stream-parser.test.js +155 -0
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -0
- package/dist/utils/xml-stream-parser.d.ts +19 -0
- package/dist/utils/xml-stream-parser.js +202 -0
- package/dist/utils/xml-stream-parser.js.map +1 -0
- package/dist/worker-script-project-context.js +1 -1
- package/dist/worker-script-project-context.js.map +1 -1
- package/package.json +1 -1
- package/dist/utils/process-xml-chunks.d.ts +0 -31
- package/dist/utils/process-xml-chunks.js +0 -235
- package/dist/utils/process-xml-chunks.js.map +0 -1
|
@@ -250,13 +250,13 @@ export declare const BrowserResponseChunkSchema: z.ZodObject<{
|
|
|
250
250
|
index: z.ZodNumber;
|
|
251
251
|
data: z.ZodString;
|
|
252
252
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
id: string;
|
|
254
253
|
data: string;
|
|
254
|
+
id: string;
|
|
255
255
|
total: number;
|
|
256
256
|
index: number;
|
|
257
257
|
}, {
|
|
258
|
-
id: string;
|
|
259
258
|
data: string;
|
|
259
|
+
id: string;
|
|
260
260
|
total: number;
|
|
261
261
|
index: number;
|
|
262
262
|
}>;
|
|
@@ -267,27 +267,27 @@ export declare const ImageContentSchema: z.ZodObject<{
|
|
|
267
267
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
268
268
|
data: z.ZodString;
|
|
269
269
|
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
data: string;
|
|
270
271
|
type: "base64";
|
|
271
272
|
media_type: "image/jpeg";
|
|
272
|
-
data: string;
|
|
273
273
|
}, {
|
|
274
|
+
data: string;
|
|
274
275
|
type: "base64";
|
|
275
276
|
media_type: "image/jpeg";
|
|
276
|
-
data: string;
|
|
277
277
|
}>;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
279
|
type: "image";
|
|
280
280
|
source: {
|
|
281
|
+
data: string;
|
|
281
282
|
type: "base64";
|
|
282
283
|
media_type: "image/jpeg";
|
|
283
|
-
data: string;
|
|
284
284
|
};
|
|
285
285
|
}, {
|
|
286
286
|
type: "image";
|
|
287
287
|
source: {
|
|
288
|
+
data: string;
|
|
288
289
|
type: "base64";
|
|
289
290
|
media_type: "image/jpeg";
|
|
290
|
-
data: string;
|
|
291
291
|
};
|
|
292
292
|
}>;
|
|
293
293
|
export type ImageContent = z.infer<typeof ImageContentSchema>;
|
|
@@ -393,27 +393,27 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
393
393
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
394
394
|
data: z.ZodString;
|
|
395
395
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
data: string;
|
|
396
397
|
type: "base64";
|
|
397
398
|
media_type: "image/jpeg";
|
|
398
|
-
data: string;
|
|
399
399
|
}, {
|
|
400
|
+
data: string;
|
|
400
401
|
type: "base64";
|
|
401
402
|
media_type: "image/jpeg";
|
|
402
|
-
data: string;
|
|
403
403
|
}>;
|
|
404
404
|
}, "strip", z.ZodTypeAny, {
|
|
405
405
|
type: "image";
|
|
406
406
|
source: {
|
|
407
|
+
data: string;
|
|
407
408
|
type: "base64";
|
|
408
409
|
media_type: "image/jpeg";
|
|
409
|
-
data: string;
|
|
410
410
|
};
|
|
411
411
|
}, {
|
|
412
412
|
type: "image";
|
|
413
413
|
source: {
|
|
414
|
+
data: string;
|
|
414
415
|
type: "base64";
|
|
415
416
|
media_type: "image/jpeg";
|
|
416
|
-
data: string;
|
|
417
417
|
};
|
|
418
418
|
}>>;
|
|
419
419
|
post: z.ZodObject<{
|
|
@@ -423,61 +423,61 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
423
423
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
424
424
|
data: z.ZodString;
|
|
425
425
|
}, "strip", z.ZodTypeAny, {
|
|
426
|
+
data: string;
|
|
426
427
|
type: "base64";
|
|
427
428
|
media_type: "image/jpeg";
|
|
428
|
-
data: string;
|
|
429
429
|
}, {
|
|
430
|
+
data: string;
|
|
430
431
|
type: "base64";
|
|
431
432
|
media_type: "image/jpeg";
|
|
432
|
-
data: string;
|
|
433
433
|
}>;
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
435
|
type: "image";
|
|
436
436
|
source: {
|
|
437
|
+
data: string;
|
|
437
438
|
type: "base64";
|
|
438
439
|
media_type: "image/jpeg";
|
|
439
|
-
data: string;
|
|
440
440
|
};
|
|
441
441
|
}, {
|
|
442
442
|
type: "image";
|
|
443
443
|
source: {
|
|
444
|
+
data: string;
|
|
444
445
|
type: "base64";
|
|
445
446
|
media_type: "image/jpeg";
|
|
446
|
-
data: string;
|
|
447
447
|
};
|
|
448
448
|
}>;
|
|
449
449
|
}, "strip", z.ZodTypeAny, {
|
|
450
450
|
post: {
|
|
451
451
|
type: "image";
|
|
452
452
|
source: {
|
|
453
|
+
data: string;
|
|
453
454
|
type: "base64";
|
|
454
455
|
media_type: "image/jpeg";
|
|
455
|
-
data: string;
|
|
456
456
|
};
|
|
457
457
|
};
|
|
458
458
|
pre?: {
|
|
459
459
|
type: "image";
|
|
460
460
|
source: {
|
|
461
|
+
data: string;
|
|
461
462
|
type: "base64";
|
|
462
463
|
media_type: "image/jpeg";
|
|
463
|
-
data: string;
|
|
464
464
|
};
|
|
465
465
|
} | undefined;
|
|
466
466
|
}, {
|
|
467
467
|
post: {
|
|
468
468
|
type: "image";
|
|
469
469
|
source: {
|
|
470
|
+
data: string;
|
|
470
471
|
type: "base64";
|
|
471
472
|
media_type: "image/jpeg";
|
|
472
|
-
data: string;
|
|
473
473
|
};
|
|
474
474
|
};
|
|
475
475
|
pre?: {
|
|
476
476
|
type: "image";
|
|
477
477
|
source: {
|
|
478
|
+
data: string;
|
|
478
479
|
type: "base64";
|
|
479
480
|
media_type: "image/jpeg";
|
|
480
|
-
data: string;
|
|
481
481
|
};
|
|
482
482
|
} | undefined;
|
|
483
483
|
}>>;
|
|
@@ -521,17 +521,17 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
521
521
|
post: {
|
|
522
522
|
type: "image";
|
|
523
523
|
source: {
|
|
524
|
+
data: string;
|
|
524
525
|
type: "base64";
|
|
525
526
|
media_type: "image/jpeg";
|
|
526
|
-
data: string;
|
|
527
527
|
};
|
|
528
528
|
};
|
|
529
529
|
pre?: {
|
|
530
530
|
type: "image";
|
|
531
531
|
source: {
|
|
532
|
+
data: string;
|
|
532
533
|
type: "base64";
|
|
533
534
|
media_type: "image/jpeg";
|
|
534
|
-
data: string;
|
|
535
535
|
};
|
|
536
536
|
} | undefined;
|
|
537
537
|
} | undefined;
|
|
@@ -575,17 +575,17 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
575
575
|
post: {
|
|
576
576
|
type: "image";
|
|
577
577
|
source: {
|
|
578
|
+
data: string;
|
|
578
579
|
type: "base64";
|
|
579
580
|
media_type: "image/jpeg";
|
|
580
|
-
data: string;
|
|
581
581
|
};
|
|
582
582
|
};
|
|
583
583
|
pre?: {
|
|
584
584
|
type: "image";
|
|
585
585
|
source: {
|
|
586
|
+
data: string;
|
|
586
587
|
type: "base64";
|
|
587
588
|
media_type: "image/jpeg";
|
|
588
|
-
data: string;
|
|
589
589
|
};
|
|
590
590
|
} | undefined;
|
|
591
591
|
} | undefined;
|
|
@@ -832,12 +832,12 @@ export declare const RequiredBrowserTypeActionSchema: z.ZodObject<{
|
|
|
832
832
|
selector: z.ZodString;
|
|
833
833
|
text: z.ZodString;
|
|
834
834
|
}, "strip", z.ZodTypeAny, {
|
|
835
|
-
type: "type";
|
|
836
835
|
text: string;
|
|
836
|
+
type: "type";
|
|
837
837
|
selector: string;
|
|
838
838
|
}, {
|
|
839
|
-
type: "type";
|
|
840
839
|
text: string;
|
|
840
|
+
type: "type";
|
|
841
841
|
selector: string;
|
|
842
842
|
}>;
|
|
843
843
|
export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -876,8 +876,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
876
876
|
}>, {
|
|
877
877
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
878
878
|
}>, "strip", z.ZodTypeAny, {
|
|
879
|
-
type: "type";
|
|
880
879
|
text: string;
|
|
880
|
+
type: "type";
|
|
881
881
|
selector: string;
|
|
882
882
|
debug?: boolean | undefined;
|
|
883
883
|
timeout?: number | undefined;
|
|
@@ -893,8 +893,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
893
893
|
} | undefined;
|
|
894
894
|
delay?: number | undefined;
|
|
895
895
|
}, {
|
|
896
|
-
type: "type";
|
|
897
896
|
text: string;
|
|
897
|
+
type: "type";
|
|
898
898
|
selector: string;
|
|
899
899
|
debug?: boolean | undefined;
|
|
900
900
|
timeout?: number | undefined;
|
|
@@ -1380,8 +1380,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1380
1380
|
}>, {
|
|
1381
1381
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
1382
1382
|
}>, "strip", z.ZodTypeAny, {
|
|
1383
|
-
type: "type";
|
|
1384
1383
|
text: string;
|
|
1384
|
+
type: "type";
|
|
1385
1385
|
selector: string;
|
|
1386
1386
|
debug?: boolean | undefined;
|
|
1387
1387
|
timeout?: number | undefined;
|
|
@@ -1397,8 +1397,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1397
1397
|
} | undefined;
|
|
1398
1398
|
delay?: number | undefined;
|
|
1399
1399
|
}, {
|
|
1400
|
-
type: "type";
|
|
1401
1400
|
text: string;
|
|
1401
|
+
type: "type";
|
|
1402
1402
|
selector: string;
|
|
1403
1403
|
debug?: boolean | undefined;
|
|
1404
1404
|
timeout?: number | undefined;
|
|
@@ -1665,8 +1665,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1665
1665
|
visualVerify?: boolean | undefined;
|
|
1666
1666
|
visualThreshold?: number | undefined;
|
|
1667
1667
|
} | {
|
|
1668
|
-
type: "type";
|
|
1669
1668
|
text: string;
|
|
1669
|
+
type: "type";
|
|
1670
1670
|
selector: string;
|
|
1671
1671
|
debug?: boolean | undefined;
|
|
1672
1672
|
timeout?: number | undefined;
|
|
@@ -1787,8 +1787,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
|
|
|
1787
1787
|
visualVerify?: boolean | undefined;
|
|
1788
1788
|
visualThreshold?: number | undefined;
|
|
1789
1789
|
} | {
|
|
1790
|
-
type: "type";
|
|
1791
1790
|
text: string;
|
|
1791
|
+
type: "type";
|
|
1792
1792
|
selector: string;
|
|
1793
1793
|
debug?: boolean | undefined;
|
|
1794
1794
|
timeout?: number | undefined;
|
|
@@ -2132,8 +2132,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2132
2132
|
}>, {
|
|
2133
2133
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
2134
2134
|
}>, "strip", z.ZodTypeAny, {
|
|
2135
|
-
type: "type";
|
|
2136
2135
|
text: string;
|
|
2136
|
+
type: "type";
|
|
2137
2137
|
selector: string;
|
|
2138
2138
|
debug?: boolean | undefined;
|
|
2139
2139
|
timeout?: number | undefined;
|
|
@@ -2149,8 +2149,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2149
2149
|
} | undefined;
|
|
2150
2150
|
delay?: number | undefined;
|
|
2151
2151
|
}, {
|
|
2152
|
-
type: "type";
|
|
2153
2152
|
text: string;
|
|
2153
|
+
type: "type";
|
|
2154
2154
|
selector: string;
|
|
2155
2155
|
debug?: boolean | undefined;
|
|
2156
2156
|
timeout?: number | undefined;
|
|
@@ -2417,8 +2417,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2417
2417
|
visualVerify?: boolean | undefined;
|
|
2418
2418
|
visualThreshold?: number | undefined;
|
|
2419
2419
|
} | {
|
|
2420
|
-
type: "type";
|
|
2421
2420
|
text: string;
|
|
2421
|
+
type: "type";
|
|
2422
2422
|
selector: string;
|
|
2423
2423
|
debug?: boolean | undefined;
|
|
2424
2424
|
timeout?: number | undefined;
|
|
@@ -2539,8 +2539,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2539
2539
|
visualVerify?: boolean | undefined;
|
|
2540
2540
|
visualThreshold?: number | undefined;
|
|
2541
2541
|
} | {
|
|
2542
|
-
type: "type";
|
|
2543
2542
|
text: string;
|
|
2543
|
+
type: "type";
|
|
2544
2544
|
selector: string;
|
|
2545
2545
|
debug?: boolean | undefined;
|
|
2546
2546
|
timeout?: number | undefined;
|
|
@@ -2667,8 +2667,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2667
2667
|
visualVerify?: boolean | undefined;
|
|
2668
2668
|
visualThreshold?: number | undefined;
|
|
2669
2669
|
} | {
|
|
2670
|
-
type: "type";
|
|
2671
2670
|
text: string;
|
|
2671
|
+
type: "type";
|
|
2672
2672
|
selector: string;
|
|
2673
2673
|
debug?: boolean | undefined;
|
|
2674
2674
|
timeout?: number | undefined;
|
|
@@ -2807,8 +2807,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
|
|
|
2807
2807
|
visualVerify?: boolean | undefined;
|
|
2808
2808
|
visualThreshold?: number | undefined;
|
|
2809
2809
|
} | {
|
|
2810
|
-
type: "type";
|
|
2811
2810
|
text: string;
|
|
2811
|
+
type: "type";
|
|
2812
2812
|
selector: string;
|
|
2813
2813
|
debug?: boolean | undefined;
|
|
2814
2814
|
timeout?: number | undefined;
|
|
@@ -3136,8 +3136,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3136
3136
|
}>, {
|
|
3137
3137
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
3138
3138
|
}>, "strip", z.ZodTypeAny, {
|
|
3139
|
-
type: "type";
|
|
3140
3139
|
text: string;
|
|
3140
|
+
type: "type";
|
|
3141
3141
|
selector: string;
|
|
3142
3142
|
debug?: boolean | undefined;
|
|
3143
3143
|
timeout?: number | undefined;
|
|
@@ -3153,8 +3153,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3153
3153
|
} | undefined;
|
|
3154
3154
|
delay?: number | undefined;
|
|
3155
3155
|
}, {
|
|
3156
|
-
type: "type";
|
|
3157
3156
|
text: string;
|
|
3157
|
+
type: "type";
|
|
3158
3158
|
selector: string;
|
|
3159
3159
|
debug?: boolean | undefined;
|
|
3160
3160
|
timeout?: number | undefined;
|
|
@@ -3638,8 +3638,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3638
3638
|
}>, {
|
|
3639
3639
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
3640
3640
|
}>, "strip", z.ZodTypeAny, {
|
|
3641
|
-
type: "type";
|
|
3642
3641
|
text: string;
|
|
3642
|
+
type: "type";
|
|
3643
3643
|
selector: string;
|
|
3644
3644
|
debug?: boolean | undefined;
|
|
3645
3645
|
timeout?: number | undefined;
|
|
@@ -3655,8 +3655,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3655
3655
|
} | undefined;
|
|
3656
3656
|
delay?: number | undefined;
|
|
3657
3657
|
}, {
|
|
3658
|
-
type: "type";
|
|
3659
3658
|
text: string;
|
|
3659
|
+
type: "type";
|
|
3660
3660
|
selector: string;
|
|
3661
3661
|
debug?: boolean | undefined;
|
|
3662
3662
|
timeout?: number | undefined;
|
|
@@ -3923,8 +3923,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
3923
3923
|
visualVerify?: boolean | undefined;
|
|
3924
3924
|
visualThreshold?: number | undefined;
|
|
3925
3925
|
} | {
|
|
3926
|
-
type: "type";
|
|
3927
3926
|
text: string;
|
|
3927
|
+
type: "type";
|
|
3928
3928
|
selector: string;
|
|
3929
3929
|
debug?: boolean | undefined;
|
|
3930
3930
|
timeout?: number | undefined;
|
|
@@ -4045,8 +4045,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4045
4045
|
visualVerify?: boolean | undefined;
|
|
4046
4046
|
visualThreshold?: number | undefined;
|
|
4047
4047
|
} | {
|
|
4048
|
-
type: "type";
|
|
4049
4048
|
text: string;
|
|
4049
|
+
type: "type";
|
|
4050
4050
|
selector: string;
|
|
4051
4051
|
debug?: boolean | undefined;
|
|
4052
4052
|
timeout?: number | undefined;
|
|
@@ -4173,8 +4173,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4173
4173
|
visualVerify?: boolean | undefined;
|
|
4174
4174
|
visualThreshold?: number | undefined;
|
|
4175
4175
|
} | {
|
|
4176
|
-
type: "type";
|
|
4177
4176
|
text: string;
|
|
4177
|
+
type: "type";
|
|
4178
4178
|
selector: string;
|
|
4179
4179
|
debug?: boolean | undefined;
|
|
4180
4180
|
timeout?: number | undefined;
|
|
@@ -4313,8 +4313,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
4313
4313
|
visualVerify?: boolean | undefined;
|
|
4314
4314
|
visualThreshold?: number | undefined;
|
|
4315
4315
|
} | {
|
|
4316
|
-
type: "type";
|
|
4317
4316
|
text: string;
|
|
4317
|
+
type: "type";
|
|
4318
4318
|
selector: string;
|
|
4319
4319
|
debug?: boolean | undefined;
|
|
4320
4320
|
timeout?: number | undefined;
|
|
@@ -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<{
|
|
@@ -86,7 +86,6 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
86
86
|
path: string;
|
|
87
87
|
content: string;
|
|
88
88
|
}>, "many">, "many">;
|
|
89
|
-
prevFileVersions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
90
89
|
}, "strip", z.ZodTypeAny, {
|
|
91
90
|
currentWorkingDirectory: string;
|
|
92
91
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -112,7 +111,6 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
112
111
|
path: string;
|
|
113
112
|
content: string;
|
|
114
113
|
}[][];
|
|
115
|
-
prevFileVersions: Record<string, string | null>;
|
|
116
114
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
117
115
|
}, {
|
|
118
116
|
currentWorkingDirectory: string;
|
|
@@ -139,7 +137,6 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
139
137
|
path: string;
|
|
140
138
|
content: string;
|
|
141
139
|
}[][];
|
|
142
|
-
prevFileVersions: Record<string, string | null>;
|
|
143
140
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
144
141
|
}>;
|
|
145
142
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -155,14 +152,14 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
155
152
|
type: "ephemeral";
|
|
156
153
|
}>>;
|
|
157
154
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
type: "text";
|
|
159
155
|
text: string;
|
|
156
|
+
type: "text";
|
|
160
157
|
cache_control?: {
|
|
161
158
|
type: "ephemeral";
|
|
162
159
|
} | undefined;
|
|
163
160
|
}, {
|
|
164
|
-
type: "text";
|
|
165
161
|
text: string;
|
|
162
|
+
type: "text";
|
|
166
163
|
cache_control?: {
|
|
167
164
|
type: "ephemeral";
|
|
168
165
|
} | undefined;
|
|
@@ -206,15 +203,15 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
206
203
|
type: "ephemeral";
|
|
207
204
|
}>>;
|
|
208
205
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
content: string;
|
|
210
206
|
type: "tool_result";
|
|
207
|
+
content: string;
|
|
211
208
|
tool_use_id: string;
|
|
212
209
|
cache_control?: {
|
|
213
210
|
type: "ephemeral";
|
|
214
211
|
} | undefined;
|
|
215
212
|
}, {
|
|
216
|
-
content: string;
|
|
217
213
|
type: "tool_result";
|
|
214
|
+
content: string;
|
|
218
215
|
tool_use_id: string;
|
|
219
216
|
cache_control?: {
|
|
220
217
|
type: "ephemeral";
|
|
@@ -226,13 +223,13 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
226
223
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
227
224
|
data: z.ZodString;
|
|
228
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
+
data: string;
|
|
229
227
|
type: "base64";
|
|
230
228
|
media_type: "image/jpeg";
|
|
231
|
-
data: string;
|
|
232
229
|
}, {
|
|
230
|
+
data: string;
|
|
233
231
|
type: "base64";
|
|
234
232
|
media_type: "image/jpeg";
|
|
235
|
-
data: string;
|
|
236
233
|
}>;
|
|
237
234
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
238
235
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -244,9 +241,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
244
241
|
}, "strip", z.ZodTypeAny, {
|
|
245
242
|
type: "image";
|
|
246
243
|
source: {
|
|
244
|
+
data: string;
|
|
247
245
|
type: "base64";
|
|
248
246
|
media_type: "image/jpeg";
|
|
249
|
-
data: string;
|
|
250
247
|
};
|
|
251
248
|
cache_control?: {
|
|
252
249
|
type: "ephemeral";
|
|
@@ -254,9 +251,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
254
251
|
}, {
|
|
255
252
|
type: "image";
|
|
256
253
|
source: {
|
|
254
|
+
data: string;
|
|
257
255
|
type: "base64";
|
|
258
256
|
media_type: "image/jpeg";
|
|
259
|
-
data: string;
|
|
260
257
|
};
|
|
261
258
|
cache_control?: {
|
|
262
259
|
type: "ephemeral";
|
|
@@ -264,8 +261,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
264
261
|
}>]>, "many">]>;
|
|
265
262
|
}, "strip", z.ZodTypeAny, {
|
|
266
263
|
content: string | ({
|
|
267
|
-
type: "text";
|
|
268
264
|
text: string;
|
|
265
|
+
type: "text";
|
|
269
266
|
cache_control?: {
|
|
270
267
|
type: "ephemeral";
|
|
271
268
|
} | undefined;
|
|
@@ -278,8 +275,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
278
275
|
type: "ephemeral";
|
|
279
276
|
} | undefined;
|
|
280
277
|
} | {
|
|
281
|
-
content: string;
|
|
282
278
|
type: "tool_result";
|
|
279
|
+
content: string;
|
|
283
280
|
tool_use_id: string;
|
|
284
281
|
cache_control?: {
|
|
285
282
|
type: "ephemeral";
|
|
@@ -287,9 +284,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
287
284
|
} | {
|
|
288
285
|
type: "image";
|
|
289
286
|
source: {
|
|
287
|
+
data: string;
|
|
290
288
|
type: "base64";
|
|
291
289
|
media_type: "image/jpeg";
|
|
292
|
-
data: string;
|
|
293
290
|
};
|
|
294
291
|
cache_control?: {
|
|
295
292
|
type: "ephemeral";
|
|
@@ -298,8 +295,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
298
295
|
role: "user" | "assistant";
|
|
299
296
|
}, {
|
|
300
297
|
content: string | ({
|
|
301
|
-
type: "text";
|
|
302
298
|
text: string;
|
|
299
|
+
type: "text";
|
|
303
300
|
cache_control?: {
|
|
304
301
|
type: "ephemeral";
|
|
305
302
|
} | undefined;
|
|
@@ -312,8 +309,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
312
309
|
type: "ephemeral";
|
|
313
310
|
} | undefined;
|
|
314
311
|
} | {
|
|
315
|
-
content: string;
|
|
316
312
|
type: "tool_result";
|
|
313
|
+
content: string;
|
|
317
314
|
tool_use_id: string;
|
|
318
315
|
cache_control?: {
|
|
319
316
|
type: "ephemeral";
|
|
@@ -321,9 +318,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
321
318
|
} | {
|
|
322
319
|
type: "image";
|
|
323
320
|
source: {
|
|
321
|
+
data: string;
|
|
324
322
|
type: "base64";
|
|
325
323
|
media_type: "image/jpeg";
|
|
326
|
-
data: string;
|
|
327
324
|
};
|
|
328
325
|
cache_control?: {
|
|
329
326
|
type: "ephemeral";
|
|
@@ -358,13 +355,12 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
358
355
|
path: string;
|
|
359
356
|
content: string;
|
|
360
357
|
}[][];
|
|
361
|
-
prevFileVersions: Record<string, string | null>;
|
|
362
358
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
363
359
|
};
|
|
364
360
|
messageHistory: {
|
|
365
361
|
content: string | ({
|
|
366
|
-
type: "text";
|
|
367
362
|
text: string;
|
|
363
|
+
type: "text";
|
|
368
364
|
cache_control?: {
|
|
369
365
|
type: "ephemeral";
|
|
370
366
|
} | undefined;
|
|
@@ -377,8 +373,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
377
373
|
type: "ephemeral";
|
|
378
374
|
} | undefined;
|
|
379
375
|
} | {
|
|
380
|
-
content: string;
|
|
381
376
|
type: "tool_result";
|
|
377
|
+
content: string;
|
|
382
378
|
tool_use_id: string;
|
|
383
379
|
cache_control?: {
|
|
384
380
|
type: "ephemeral";
|
|
@@ -386,9 +382,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
386
382
|
} | {
|
|
387
383
|
type: "image";
|
|
388
384
|
source: {
|
|
385
|
+
data: string;
|
|
389
386
|
type: "base64";
|
|
390
387
|
media_type: "image/jpeg";
|
|
391
|
-
data: string;
|
|
392
388
|
};
|
|
393
389
|
cache_control?: {
|
|
394
390
|
type: "ephemeral";
|
|
@@ -423,13 +419,12 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
423
419
|
path: string;
|
|
424
420
|
content: string;
|
|
425
421
|
}[][];
|
|
426
|
-
prevFileVersions: Record<string, string | null>;
|
|
427
422
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
428
423
|
};
|
|
429
424
|
messageHistory: {
|
|
430
425
|
content: string | ({
|
|
431
|
-
type: "text";
|
|
432
426
|
text: string;
|
|
427
|
+
type: "text";
|
|
433
428
|
cache_control?: {
|
|
434
429
|
type: "ephemeral";
|
|
435
430
|
} | undefined;
|
|
@@ -442,8 +437,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
442
437
|
type: "ephemeral";
|
|
443
438
|
} | undefined;
|
|
444
439
|
} | {
|
|
445
|
-
content: string;
|
|
446
440
|
type: "tool_result";
|
|
441
|
+
content: string;
|
|
447
442
|
tool_use_id: string;
|
|
448
443
|
cache_control?: {
|
|
449
444
|
type: "ephemeral";
|
|
@@ -451,9 +446,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
451
446
|
} | {
|
|
452
447
|
type: "image";
|
|
453
448
|
source: {
|
|
449
|
+
data: string;
|
|
454
450
|
type: "base64";
|
|
455
451
|
media_type: "image/jpeg";
|
|
456
|
-
data: string;
|
|
457
452
|
};
|
|
458
453
|
cache_control?: {
|
|
459
454
|
type: "ephemeral";
|