codebuff 1.0.175 → 1.0.176
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 +2 -1
- package/dist/checkpoints.js +6 -3
- package/dist/checkpoints.js.map +1 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +23 -48
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +7 -6
- package/dist/client.js +8 -1
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +155 -155
- package/dist/common/browser-actions.d.ts +28 -28
- package/dist/common/constants.d.ts +0 -1
- package/dist/common/constants.js +1 -44
- package/dist/common/constants.js.map +1 -1
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +7 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/project-file-tree.d.ts +1 -0
- package/dist/common/project-file-tree.js +3 -1
- package/dist/common/project-file-tree.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +20 -20
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/constants.d.ts +1 -0
- package/dist/common/util/constants.js +7 -0
- package/dist/common/util/constants.js.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.d.ts +4 -4
- package/dist/common/util/helpers.d.ts +1 -0
- package/dist/common/util/helpers.js +6 -0
- package/dist/common/util/helpers.js.map +1 -0
- package/dist/common/util/token-counter.d.ts +3 -0
- package/dist/common/util/token-counter.js +27 -0
- package/dist/common/util/token-counter.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +444 -444
- package/dist/index.js +1 -1
- package/dist/project-files.d.ts +2 -2
- package/dist/tool-handlers.d.ts +2 -1
- package/dist/tool-handlers.js +3 -3
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/terminal.js +4 -40
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +14 -2
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +1 -1
|
@@ -35,8 +35,8 @@ export declare const LogSchema: z.ZodObject<{
|
|
|
35
35
|
level: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
source: z.ZodDefault<z.ZodEnum<["browser", "tool"]>>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
39
38
|
message: string;
|
|
39
|
+
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
40
40
|
source: "browser" | "tool";
|
|
41
41
|
timestamp: number;
|
|
42
42
|
location?: string | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const LogSchema: z.ZodObject<{
|
|
|
44
44
|
category?: string | undefined;
|
|
45
45
|
level?: number | undefined;
|
|
46
46
|
}, {
|
|
47
|
-
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
48
47
|
message: string;
|
|
48
|
+
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
49
49
|
timestamp: number;
|
|
50
50
|
source?: "browser" | "tool" | undefined;
|
|
51
51
|
location?: string | undefined;
|
|
@@ -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
|
-
data: string;
|
|
254
253
|
id: string;
|
|
254
|
+
data: string;
|
|
255
255
|
total: number;
|
|
256
256
|
index: number;
|
|
257
257
|
}, {
|
|
258
|
-
data: string;
|
|
259
258
|
id: string;
|
|
259
|
+
data: string;
|
|
260
260
|
total: number;
|
|
261
261
|
index: number;
|
|
262
262
|
}>;
|
|
@@ -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>;
|
|
@@ -304,8 +304,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
304
304
|
level: z.ZodOptional<z.ZodNumber>;
|
|
305
305
|
source: z.ZodDefault<z.ZodEnum<["browser", "tool"]>>;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
308
307
|
message: string;
|
|
308
|
+
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
309
309
|
source: "browser" | "tool";
|
|
310
310
|
timestamp: number;
|
|
311
311
|
location?: string | undefined;
|
|
@@ -313,8 +313,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
|
|
|
313
313
|
category?: string | undefined;
|
|
314
314
|
level?: number | undefined;
|
|
315
315
|
}, {
|
|
316
|
-
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
317
316
|
message: string;
|
|
317
|
+
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
318
318
|
timestamp: number;
|
|
319
319
|
source?: "browser" | "tool" | undefined;
|
|
320
320
|
location?: string | undefined;
|
|
@@ -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,24 +468,24 @@ 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
|
}>>;
|
|
484
484
|
}, "strip", z.ZodTypeAny, {
|
|
485
485
|
success: boolean;
|
|
486
486
|
logs: {
|
|
487
|
-
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
488
487
|
message: string;
|
|
488
|
+
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
489
489
|
source: "browser" | "tool";
|
|
490
490
|
timestamp: number;
|
|
491
491
|
location?: string | undefined;
|
|
@@ -522,24 +522,24 @@ 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;
|
|
538
538
|
}, {
|
|
539
539
|
success: boolean;
|
|
540
540
|
logs: {
|
|
541
|
-
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
542
541
|
message: string;
|
|
542
|
+
type: "error" | "warning" | "info" | "debug" | "verbose";
|
|
543
543
|
timestamp: number;
|
|
544
544
|
source?: "browser" | "tool" | undefined;
|
|
545
545
|
location?: string | undefined;
|
|
@@ -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;
|
|
@@ -2,7 +2,6 @@ export declare const STOP_MARKER: string;
|
|
|
2
2
|
export declare const FIND_FILES_MARKER: string;
|
|
3
3
|
export declare const EXISTING_CODE_MARKER = "[[**REPLACE_WITH_EXISTING_CODE**]]";
|
|
4
4
|
export declare const DEFAULT_IGNORED_FILES: string[];
|
|
5
|
-
export declare const SKIPPED_TERMINAL_COMMANDS: string[];
|
|
6
5
|
export declare const REQUEST_CREDIT_SHOW_THRESHOLD = 1;
|
|
7
6
|
export declare const MAX_DATE: Date;
|
|
8
7
|
export declare const BILLING_PERIOD_DAYS = 30;
|
package/dist/common/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TEST_USER_ID = exports.models = exports.deepseekModels = exports.geminiModels = exports.openaiModels = exports.claudeModels = exports.getModelForMode = exports.costModes = exports.CREDITS_USAGE_LIMITS = exports.PLAN_CONFIGS = exports.UsageLimits = exports.getUsageLimitFromPlanName = exports.getPlanDisplayName = exports.CREDITS_REFERRAL_BONUS = exports.OVERAGE_RATE_MOAR_PRO = exports.OVERAGE_RATE_PRO = exports.BILLING_PERIOD_DAYS = exports.MAX_DATE = exports.REQUEST_CREDIT_SHOW_THRESHOLD = exports.
|
|
3
|
+
exports.TEST_USER_ID = exports.models = exports.deepseekModels = exports.geminiModels = exports.openaiModels = exports.claudeModels = exports.getModelForMode = exports.costModes = exports.CREDITS_USAGE_LIMITS = exports.PLAN_CONFIGS = exports.UsageLimits = exports.getUsageLimitFromPlanName = exports.getPlanDisplayName = exports.CREDITS_REFERRAL_BONUS = exports.OVERAGE_RATE_MOAR_PRO = exports.OVERAGE_RATE_PRO = exports.BILLING_PERIOD_DAYS = exports.MAX_DATE = exports.REQUEST_CREDIT_SHOW_THRESHOLD = exports.DEFAULT_IGNORED_FILES = exports.EXISTING_CODE_MARKER = exports.FIND_FILES_MARKER = exports.STOP_MARKER = void 0;
|
|
4
4
|
exports.STOP_MARKER = '[' + 'END]';
|
|
5
5
|
exports.FIND_FILES_MARKER = '[' + 'FIND_FILES_PLEASE]';
|
|
6
6
|
exports.EXISTING_CODE_MARKER = '[[**REPLACE_WITH_EXISTING_CODE**]]';
|
|
@@ -27,49 +27,6 @@ exports.DEFAULT_IGNORED_FILES = [
|
|
|
27
27
|
'package-lock.json',
|
|
28
28
|
'bun.lockb',
|
|
29
29
|
];
|
|
30
|
-
exports.SKIPPED_TERMINAL_COMMANDS = [
|
|
31
|
-
'continue',
|
|
32
|
-
'date',
|
|
33
|
-
'head',
|
|
34
|
-
'history',
|
|
35
|
-
'if',
|
|
36
|
-
'jobs',
|
|
37
|
-
'less',
|
|
38
|
-
'man',
|
|
39
|
-
'more',
|
|
40
|
-
'nice',
|
|
41
|
-
'read',
|
|
42
|
-
'set',
|
|
43
|
-
'sort',
|
|
44
|
-
'split',
|
|
45
|
-
'tail',
|
|
46
|
-
'test',
|
|
47
|
-
'time',
|
|
48
|
-
'top',
|
|
49
|
-
'touch',
|
|
50
|
-
'type',
|
|
51
|
-
'unset',
|
|
52
|
-
'what',
|
|
53
|
-
'which',
|
|
54
|
-
'where',
|
|
55
|
-
'who',
|
|
56
|
-
'write',
|
|
57
|
-
'yes',
|
|
58
|
-
'help',
|
|
59
|
-
'find',
|
|
60
|
-
'add',
|
|
61
|
-
'hey',
|
|
62
|
-
'diff',
|
|
63
|
-
'make',
|
|
64
|
-
'please',
|
|
65
|
-
'apply',
|
|
66
|
-
'look',
|
|
67
|
-
'do',
|
|
68
|
-
'break',
|
|
69
|
-
'install',
|
|
70
|
-
'print',
|
|
71
|
-
'go',
|
|
72
|
-
];
|
|
73
30
|
exports.REQUEST_CREDIT_SHOW_THRESHOLD = 1;
|
|
74
31
|
exports.MAX_DATE = new Date(86399999999999);
|
|
75
32
|
exports.BILLING_PERIOD_DAYS = 30;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,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,cAA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AM,EAAE,oBAAoB;IAC5B,aAAa,EACX,sEAAsE;CAChE,CAAA;AAGG,QAAA,YAAY,GAAG;IAC1B,YAAY,EAAE,sBAAsB;CAC5B,CAAA;AAGG,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;CAC7B,CAAA;AAGG,QAAA,MAAM,GAAG;IACpB,GAAG,oBAAY;IACf,GAAG,oBAAY;IACf,GAAG,oBAAY;IACf,GAAG,sBAAc;CACT,CAAA;AAIG,QAAA,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withLoggerContext(context: any, logger: any, callback: () => Promise<any>): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;AAAA,8CAEC;AAFD,SAAgB,iBAAiB,CAAC,OAAY,EAAE,MAAW,EAAE,QAA4B;IACvF,OAAO,QAAQ,EAAE,CAAA;AACnB,CAAC"}
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DEFAULT_MAX_FILES = void 0;
|
|
29
30
|
exports.getProjectFileTree = getProjectFileTree;
|
|
30
31
|
exports.parseGitignore = parseGitignore;
|
|
31
32
|
exports.getAllFilePaths = getAllFilePaths;
|
|
@@ -37,7 +38,8 @@ const os_1 = __importDefault(require("os"));
|
|
|
37
38
|
const ignore = __importStar(require("ignore"));
|
|
38
39
|
const lodash_1 = require("lodash");
|
|
39
40
|
const constants_1 = require("./constants");
|
|
40
|
-
|
|
41
|
+
exports.DEFAULT_MAX_FILES = 10_000;
|
|
42
|
+
function getProjectFileTree(projectRoot, { maxFiles = exports.DEFAULT_MAX_FILES } = {}) {
|
|
41
43
|
const defaultIgnore = ignore.default();
|
|
42
44
|
for (const pattern of constants_1.DEFAULT_IGNORED_FILES) {
|
|
43
45
|
defaultIgnore.add(pattern);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-file-tree.js","sourceRoot":"","sources":["../src/project-file-tree.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-file-tree.js","sourceRoot":"","sources":["../src/project-file-tree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,gDAoFC;AAED,wCA+BC;AAED,0CAUC;AAED,kCAOC;AAED,oDAWC;AAjKD,4CAAmB;AACnB,gDAAuB;AACvB,4CAAmB;AACnB,+CAAgC;AAEhC,mCAA+B;AAC/B,2CAAmD;AAEtC,QAAA,iBAAiB,GAAG,MAAM,CAAA;AAEvC,SAAgB,kBAAkB,CAChC,WAAmB,EACnB,EAAE,QAAQ,GAAG,yBAAiB,KAA4B,EAAE;IAE5D,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,EAAE,CAAA;IACtC,KAAK,MAAM,OAAO,IAAI,iCAAqB,EAAE,CAAC;QAC5C,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAC5B,CAAC;IAED,IAAI,WAAW,KAAK,YAAE,CAAC,OAAO,EAAE,EAAE,CAAC;QACjC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACvB,QAAQ,GAAG,IAAI,CAAA;IACjB,CAAC;IAED,MAAM,IAAI,GAAkB;QAC1B,IAAI,EAAE,cAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;QAChC,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;KACb,CAAA;IACD,MAAM,KAAK,GAIL;QACJ;YACE,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,WAAW;YACrB,MAAM,EAAE,aAAa;SACtB;KACF,CAAA;IACD,IAAI,UAAU,GAAG,CAAC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QAAQ,IAAI,EAAE,EAAE,cAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAC7E,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,SAAgB,WAAW,CAAC,KAAqB;IAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5B,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACzB,OAAO,CAAC,IAAI,CAAC,CAAA;QACf,CAAC;QACD,OAAO,WAAW,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAClC,cAA8B,EAC9B,KAAa;IAEb,OAAO,IAAA,eAAM,EACX,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,EAClD,cAAc,CACf;SACE,OAAO,EAAE;SACT,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;SACf,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;AACjC,CAAC"}
|
|
@@ -42,13 +42,13 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
42
42
|
diffCached: z.ZodString;
|
|
43
43
|
lastCommitMessages: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
diff: string;
|
|
46
45
|
status: string;
|
|
46
|
+
diff: string;
|
|
47
47
|
diffCached: string;
|
|
48
48
|
lastCommitMessages: string;
|
|
49
49
|
}, {
|
|
50
|
-
diff: string;
|
|
51
50
|
status: string;
|
|
51
|
+
diff: string;
|
|
52
52
|
diffCached: string;
|
|
53
53
|
lastCommitMessages: string;
|
|
54
54
|
}>;
|
|
@@ -92,8 +92,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
92
92
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
93
93
|
knowledgeFiles: Record<string, string>;
|
|
94
94
|
gitChanges: {
|
|
95
|
-
diff: string;
|
|
96
95
|
status: string;
|
|
96
|
+
diff: string;
|
|
97
97
|
diffCached: string;
|
|
98
98
|
lastCommitMessages: string;
|
|
99
99
|
};
|
|
@@ -118,8 +118,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
118
118
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
119
119
|
knowledgeFiles: Record<string, string>;
|
|
120
120
|
gitChanges: {
|
|
121
|
-
diff: string;
|
|
122
121
|
status: string;
|
|
122
|
+
diff: string;
|
|
123
123
|
diffCached: string;
|
|
124
124
|
lastCommitMessages: string;
|
|
125
125
|
};
|
|
@@ -203,15 +203,15 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
203
203
|
type: "ephemeral";
|
|
204
204
|
}>>;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
type: "tool_result";
|
|
207
206
|
content: string;
|
|
207
|
+
type: "tool_result";
|
|
208
208
|
tool_use_id: string;
|
|
209
209
|
cache_control?: {
|
|
210
210
|
type: "ephemeral";
|
|
211
211
|
} | undefined;
|
|
212
212
|
}, {
|
|
213
|
-
type: "tool_result";
|
|
214
213
|
content: string;
|
|
214
|
+
type: "tool_result";
|
|
215
215
|
tool_use_id: string;
|
|
216
216
|
cache_control?: {
|
|
217
217
|
type: "ephemeral";
|
|
@@ -224,12 +224,12 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
224
224
|
data: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
type: "base64";
|
|
227
|
-
data: string;
|
|
228
227
|
media_type: "image/jpeg";
|
|
228
|
+
data: string;
|
|
229
229
|
}, {
|
|
230
230
|
type: "base64";
|
|
231
|
-
data: string;
|
|
232
231
|
media_type: "image/jpeg";
|
|
232
|
+
data: string;
|
|
233
233
|
}>;
|
|
234
234
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
235
235
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -242,8 +242,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
242
242
|
type: "image";
|
|
243
243
|
source: {
|
|
244
244
|
type: "base64";
|
|
245
|
-
data: string;
|
|
246
245
|
media_type: "image/jpeg";
|
|
246
|
+
data: string;
|
|
247
247
|
};
|
|
248
248
|
cache_control?: {
|
|
249
249
|
type: "ephemeral";
|
|
@@ -252,8 +252,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
252
252
|
type: "image";
|
|
253
253
|
source: {
|
|
254
254
|
type: "base64";
|
|
255
|
-
data: string;
|
|
256
255
|
media_type: "image/jpeg";
|
|
256
|
+
data: string;
|
|
257
257
|
};
|
|
258
258
|
cache_control?: {
|
|
259
259
|
type: "ephemeral";
|
|
@@ -275,8 +275,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
275
275
|
type: "ephemeral";
|
|
276
276
|
} | undefined;
|
|
277
277
|
} | {
|
|
278
|
-
type: "tool_result";
|
|
279
278
|
content: string;
|
|
279
|
+
type: "tool_result";
|
|
280
280
|
tool_use_id: string;
|
|
281
281
|
cache_control?: {
|
|
282
282
|
type: "ephemeral";
|
|
@@ -285,8 +285,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
285
285
|
type: "image";
|
|
286
286
|
source: {
|
|
287
287
|
type: "base64";
|
|
288
|
-
data: string;
|
|
289
288
|
media_type: "image/jpeg";
|
|
289
|
+
data: string;
|
|
290
290
|
};
|
|
291
291
|
cache_control?: {
|
|
292
292
|
type: "ephemeral";
|
|
@@ -309,8 +309,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
309
309
|
type: "ephemeral";
|
|
310
310
|
} | undefined;
|
|
311
311
|
} | {
|
|
312
|
-
type: "tool_result";
|
|
313
312
|
content: string;
|
|
313
|
+
type: "tool_result";
|
|
314
314
|
tool_use_id: string;
|
|
315
315
|
cache_control?: {
|
|
316
316
|
type: "ephemeral";
|
|
@@ -319,8 +319,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
319
319
|
type: "image";
|
|
320
320
|
source: {
|
|
321
321
|
type: "base64";
|
|
322
|
-
data: string;
|
|
323
322
|
media_type: "image/jpeg";
|
|
323
|
+
data: string;
|
|
324
324
|
};
|
|
325
325
|
cache_control?: {
|
|
326
326
|
type: "ephemeral";
|
|
@@ -336,8 +336,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
336
336
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
337
337
|
knowledgeFiles: Record<string, string>;
|
|
338
338
|
gitChanges: {
|
|
339
|
-
diff: string;
|
|
340
339
|
status: string;
|
|
340
|
+
diff: string;
|
|
341
341
|
diffCached: string;
|
|
342
342
|
lastCommitMessages: string;
|
|
343
343
|
};
|
|
@@ -373,8 +373,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
373
373
|
type: "ephemeral";
|
|
374
374
|
} | undefined;
|
|
375
375
|
} | {
|
|
376
|
-
type: "tool_result";
|
|
377
376
|
content: string;
|
|
377
|
+
type: "tool_result";
|
|
378
378
|
tool_use_id: string;
|
|
379
379
|
cache_control?: {
|
|
380
380
|
type: "ephemeral";
|
|
@@ -383,8 +383,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
383
383
|
type: "image";
|
|
384
384
|
source: {
|
|
385
385
|
type: "base64";
|
|
386
|
-
data: string;
|
|
387
386
|
media_type: "image/jpeg";
|
|
387
|
+
data: string;
|
|
388
388
|
};
|
|
389
389
|
cache_control?: {
|
|
390
390
|
type: "ephemeral";
|
|
@@ -400,8 +400,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
400
400
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
401
401
|
knowledgeFiles: Record<string, string>;
|
|
402
402
|
gitChanges: {
|
|
403
|
-
diff: string;
|
|
404
403
|
status: string;
|
|
404
|
+
diff: string;
|
|
405
405
|
diffCached: string;
|
|
406
406
|
lastCommitMessages: string;
|
|
407
407
|
};
|
|
@@ -437,8 +437,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
437
437
|
type: "ephemeral";
|
|
438
438
|
} | undefined;
|
|
439
439
|
} | {
|
|
440
|
-
type: "tool_result";
|
|
441
440
|
content: string;
|
|
441
|
+
type: "tool_result";
|
|
442
442
|
tool_use_id: string;
|
|
443
443
|
cache_control?: {
|
|
444
444
|
type: "ephemeral";
|
|
@@ -447,8 +447,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
447
447
|
type: "image";
|
|
448
448
|
source: {
|
|
449
449
|
type: "base64";
|
|
450
|
-
data: string;
|
|
451
450
|
media_type: "image/jpeg";
|
|
451
|
+
data: string;
|
|
452
452
|
};
|
|
453
453
|
cache_control?: {
|
|
454
454
|
type: "ephemeral";
|