codebuff 1.0.173 → 1.0.175
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/checkpoint-file-manager.d.ts +26 -3
- package/dist/checkpoint-file-manager.js +138 -76
- package/dist/checkpoint-file-manager.js.map +1 -1
- package/dist/checkpoints.d.ts +3 -1
- package/dist/checkpoints.js +25 -27
- package/dist/checkpoints.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -2
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +40 -40
- package/dist/common/browser-actions.d.ts +48 -48
- package/dist/common/constants.d.ts +3 -3
- package/dist/common/constants.js +1 -8
- package/dist/common/constants.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/util/file.d.ts +4 -4
- package/dist/common/websockets/websocket-schema.d.ts +80 -80
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/project-files.d.ts +2 -2
- package/dist/worker-script-project-context.js +4 -0
- package/dist/worker-script-project-context.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/advanced-analyzer.d.ts +0 -19
- package/dist/common/advanced-analyzer.js +0 -140
- package/dist/common/advanced-analyzer.js.map +0 -1
- package/dist/common/message-image-handling.d.ts +0 -41
- package/dist/common/message-image-handling.js +0 -57
- package/dist/common/message-image-handling.js.map +0 -1
- package/dist/common/util/process-stream.d.ts +0 -8
- package/dist/common/util/process-stream.js +0 -102
- package/dist/common/util/process-stream.js.map +0 -1
|
@@ -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
|
-
status: string;
|
|
46
45
|
diff: string;
|
|
46
|
+
status: string;
|
|
47
47
|
diffCached: string;
|
|
48
48
|
lastCommitMessages: string;
|
|
49
49
|
}, {
|
|
50
|
-
status: string;
|
|
51
50
|
diff: string;
|
|
51
|
+
status: 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
|
-
status: string;
|
|
96
95
|
diff: string;
|
|
96
|
+
status: 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
|
-
status: string;
|
|
122
121
|
diff: string;
|
|
122
|
+
status: string;
|
|
123
123
|
diffCached: string;
|
|
124
124
|
lastCommitMessages: string;
|
|
125
125
|
};
|
|
@@ -152,14 +152,14 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
152
152
|
type: "ephemeral";
|
|
153
153
|
}>>;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
text: string;
|
|
156
155
|
type: "text";
|
|
156
|
+
text: string;
|
|
157
157
|
cache_control?: {
|
|
158
158
|
type: "ephemeral";
|
|
159
159
|
} | undefined;
|
|
160
160
|
}, {
|
|
161
|
-
text: string;
|
|
162
161
|
type: "text";
|
|
162
|
+
text: string;
|
|
163
163
|
cache_control?: {
|
|
164
164
|
type: "ephemeral";
|
|
165
165
|
} | undefined;
|
|
@@ -223,12 +223,12 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
223
223
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
224
224
|
data: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
data: string;
|
|
227
226
|
type: "base64";
|
|
227
|
+
data: string;
|
|
228
228
|
media_type: "image/jpeg";
|
|
229
229
|
}, {
|
|
230
|
-
data: string;
|
|
231
230
|
type: "base64";
|
|
231
|
+
data: string;
|
|
232
232
|
media_type: "image/jpeg";
|
|
233
233
|
}>;
|
|
234
234
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
@@ -241,8 +241,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
241
241
|
}, "strip", z.ZodTypeAny, {
|
|
242
242
|
type: "image";
|
|
243
243
|
source: {
|
|
244
|
-
data: string;
|
|
245
244
|
type: "base64";
|
|
245
|
+
data: string;
|
|
246
246
|
media_type: "image/jpeg";
|
|
247
247
|
};
|
|
248
248
|
cache_control?: {
|
|
@@ -251,8 +251,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
251
251
|
}, {
|
|
252
252
|
type: "image";
|
|
253
253
|
source: {
|
|
254
|
-
data: string;
|
|
255
254
|
type: "base64";
|
|
255
|
+
data: string;
|
|
256
256
|
media_type: "image/jpeg";
|
|
257
257
|
};
|
|
258
258
|
cache_control?: {
|
|
@@ -261,8 +261,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
261
261
|
}>]>, "many">]>;
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
263
|
content: string | ({
|
|
264
|
-
text: string;
|
|
265
264
|
type: "text";
|
|
265
|
+
text: string;
|
|
266
266
|
cache_control?: {
|
|
267
267
|
type: "ephemeral";
|
|
268
268
|
} | undefined;
|
|
@@ -284,8 +284,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
284
284
|
} | {
|
|
285
285
|
type: "image";
|
|
286
286
|
source: {
|
|
287
|
-
data: string;
|
|
288
287
|
type: "base64";
|
|
288
|
+
data: string;
|
|
289
289
|
media_type: "image/jpeg";
|
|
290
290
|
};
|
|
291
291
|
cache_control?: {
|
|
@@ -295,8 +295,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
295
295
|
role: "user" | "assistant";
|
|
296
296
|
}, {
|
|
297
297
|
content: string | ({
|
|
298
|
-
text: string;
|
|
299
298
|
type: "text";
|
|
299
|
+
text: string;
|
|
300
300
|
cache_control?: {
|
|
301
301
|
type: "ephemeral";
|
|
302
302
|
} | undefined;
|
|
@@ -318,8 +318,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
318
318
|
} | {
|
|
319
319
|
type: "image";
|
|
320
320
|
source: {
|
|
321
|
-
data: string;
|
|
322
321
|
type: "base64";
|
|
322
|
+
data: string;
|
|
323
323
|
media_type: "image/jpeg";
|
|
324
324
|
};
|
|
325
325
|
cache_control?: {
|
|
@@ -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
|
-
status: string;
|
|
340
339
|
diff: string;
|
|
340
|
+
status: string;
|
|
341
341
|
diffCached: string;
|
|
342
342
|
lastCommitMessages: string;
|
|
343
343
|
};
|
|
@@ -359,8 +359,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
359
359
|
};
|
|
360
360
|
messageHistory: {
|
|
361
361
|
content: string | ({
|
|
362
|
-
text: string;
|
|
363
362
|
type: "text";
|
|
363
|
+
text: string;
|
|
364
364
|
cache_control?: {
|
|
365
365
|
type: "ephemeral";
|
|
366
366
|
} | undefined;
|
|
@@ -382,8 +382,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
382
382
|
} | {
|
|
383
383
|
type: "image";
|
|
384
384
|
source: {
|
|
385
|
-
data: string;
|
|
386
385
|
type: "base64";
|
|
386
|
+
data: string;
|
|
387
387
|
media_type: "image/jpeg";
|
|
388
388
|
};
|
|
389
389
|
cache_control?: {
|
|
@@ -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
|
-
status: string;
|
|
404
403
|
diff: string;
|
|
404
|
+
status: string;
|
|
405
405
|
diffCached: string;
|
|
406
406
|
lastCommitMessages: string;
|
|
407
407
|
};
|
|
@@ -423,8 +423,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
423
423
|
};
|
|
424
424
|
messageHistory: {
|
|
425
425
|
content: string | ({
|
|
426
|
-
text: string;
|
|
427
426
|
type: "text";
|
|
427
|
+
text: string;
|
|
428
428
|
cache_control?: {
|
|
429
429
|
type: "ephemeral";
|
|
430
430
|
} | undefined;
|
|
@@ -446,8 +446,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
446
446
|
} | {
|
|
447
447
|
type: "image";
|
|
448
448
|
source: {
|
|
449
|
-
data: string;
|
|
450
449
|
type: "base64";
|
|
450
|
+
data: string;
|
|
451
451
|
media_type: "image/jpeg";
|
|
452
452
|
};
|
|
453
453
|
cache_control?: {
|
|
@@ -10,14 +10,14 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
10
10
|
type: "ephemeral";
|
|
11
11
|
}>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
text: string;
|
|
14
13
|
type: "text";
|
|
14
|
+
text: string;
|
|
15
15
|
cache_control?: {
|
|
16
16
|
type: "ephemeral";
|
|
17
17
|
} | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
text: string;
|
|
20
19
|
type: "text";
|
|
20
|
+
text: string;
|
|
21
21
|
cache_control?: {
|
|
22
22
|
type: "ephemeral";
|
|
23
23
|
} | undefined;
|
|
@@ -81,12 +81,12 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
81
81
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
82
82
|
data: z.ZodString;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
data: string;
|
|
85
84
|
type: "base64";
|
|
85
|
+
data: string;
|
|
86
86
|
media_type: "image/jpeg";
|
|
87
87
|
}, {
|
|
88
|
-
data: string;
|
|
89
88
|
type: "base64";
|
|
89
|
+
data: string;
|
|
90
90
|
media_type: "image/jpeg";
|
|
91
91
|
}>;
|
|
92
92
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
@@ -99,8 +99,8 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
type: "image";
|
|
101
101
|
source: {
|
|
102
|
-
data: string;
|
|
103
102
|
type: "base64";
|
|
103
|
+
data: string;
|
|
104
104
|
media_type: "image/jpeg";
|
|
105
105
|
};
|
|
106
106
|
cache_control?: {
|
|
@@ -109,8 +109,8 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
109
109
|
}, {
|
|
110
110
|
type: "image";
|
|
111
111
|
source: {
|
|
112
|
-
data: string;
|
|
113
112
|
type: "base64";
|
|
113
|
+
data: string;
|
|
114
114
|
media_type: "image/jpeg";
|
|
115
115
|
};
|
|
116
116
|
cache_control?: {
|
|
@@ -130,14 +130,14 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
130
130
|
type: "ephemeral";
|
|
131
131
|
}>>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
text: string;
|
|
134
133
|
type: "text";
|
|
134
|
+
text: string;
|
|
135
135
|
cache_control?: {
|
|
136
136
|
type: "ephemeral";
|
|
137
137
|
} | undefined;
|
|
138
138
|
}, {
|
|
139
|
-
text: string;
|
|
140
139
|
type: "text";
|
|
140
|
+
text: string;
|
|
141
141
|
cache_control?: {
|
|
142
142
|
type: "ephemeral";
|
|
143
143
|
} | undefined;
|
|
@@ -201,12 +201,12 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
201
201
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
202
202
|
data: z.ZodString;
|
|
203
203
|
}, "strip", z.ZodTypeAny, {
|
|
204
|
-
data: string;
|
|
205
204
|
type: "base64";
|
|
205
|
+
data: string;
|
|
206
206
|
media_type: "image/jpeg";
|
|
207
207
|
}, {
|
|
208
|
-
data: string;
|
|
209
208
|
type: "base64";
|
|
209
|
+
data: string;
|
|
210
210
|
media_type: "image/jpeg";
|
|
211
211
|
}>;
|
|
212
212
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
@@ -219,8 +219,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
219
219
|
}, "strip", z.ZodTypeAny, {
|
|
220
220
|
type: "image";
|
|
221
221
|
source: {
|
|
222
|
-
data: string;
|
|
223
222
|
type: "base64";
|
|
223
|
+
data: string;
|
|
224
224
|
media_type: "image/jpeg";
|
|
225
225
|
};
|
|
226
226
|
cache_control?: {
|
|
@@ -229,8 +229,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
229
229
|
}, {
|
|
230
230
|
type: "image";
|
|
231
231
|
source: {
|
|
232
|
-
data: string;
|
|
233
232
|
type: "base64";
|
|
233
|
+
data: string;
|
|
234
234
|
media_type: "image/jpeg";
|
|
235
235
|
};
|
|
236
236
|
cache_control?: {
|
|
@@ -239,8 +239,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
239
239
|
}>]>, "many">]>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
241
|
content: string | ({
|
|
242
|
-
text: string;
|
|
243
242
|
type: "text";
|
|
243
|
+
text: string;
|
|
244
244
|
cache_control?: {
|
|
245
245
|
type: "ephemeral";
|
|
246
246
|
} | undefined;
|
|
@@ -262,8 +262,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
262
262
|
} | {
|
|
263
263
|
type: "image";
|
|
264
264
|
source: {
|
|
265
|
-
data: string;
|
|
266
265
|
type: "base64";
|
|
266
|
+
data: string;
|
|
267
267
|
media_type: "image/jpeg";
|
|
268
268
|
};
|
|
269
269
|
cache_control?: {
|
|
@@ -273,8 +273,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
273
273
|
role: "user" | "assistant";
|
|
274
274
|
}, {
|
|
275
275
|
content: string | ({
|
|
276
|
-
text: string;
|
|
277
276
|
type: "text";
|
|
277
|
+
text: string;
|
|
278
278
|
cache_control?: {
|
|
279
279
|
type: "ephemeral";
|
|
280
280
|
} | undefined;
|
|
@@ -296,8 +296,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
296
296
|
} | {
|
|
297
297
|
type: "image";
|
|
298
298
|
source: {
|
|
299
|
-
data: string;
|
|
300
299
|
type: "base64";
|
|
300
|
+
data: string;
|
|
301
301
|
media_type: "image/jpeg";
|
|
302
302
|
};
|
|
303
303
|
cache_control?: {
|
|
@@ -38,13 +38,13 @@ export declare const ProjectFileContextSchema: z.ZodObject<{
|
|
|
38
38
|
diffCached: z.ZodString;
|
|
39
39
|
lastCommitMessages: z.ZodString;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
status: string;
|
|
42
41
|
diff: string;
|
|
42
|
+
status: string;
|
|
43
43
|
diffCached: string;
|
|
44
44
|
lastCommitMessages: string;
|
|
45
45
|
}, {
|
|
46
|
-
status: string;
|
|
47
46
|
diff: string;
|
|
47
|
+
status: string;
|
|
48
48
|
diffCached: string;
|
|
49
49
|
lastCommitMessages: string;
|
|
50
50
|
}>;
|
|
@@ -88,8 +88,8 @@ export declare const ProjectFileContextSchema: z.ZodObject<{
|
|
|
88
88
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
89
89
|
knowledgeFiles: Record<string, string>;
|
|
90
90
|
gitChanges: {
|
|
91
|
-
status: string;
|
|
92
91
|
diff: string;
|
|
92
|
+
status: string;
|
|
93
93
|
diffCached: string;
|
|
94
94
|
lastCommitMessages: string;
|
|
95
95
|
};
|
|
@@ -114,8 +114,8 @@ export declare const ProjectFileContextSchema: z.ZodObject<{
|
|
|
114
114
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
115
115
|
knowledgeFiles: Record<string, string>;
|
|
116
116
|
gitChanges: {
|
|
117
|
-
status: string;
|
|
118
117
|
diff: string;
|
|
118
|
+
status: string;
|
|
119
119
|
diffCached: string;
|
|
120
120
|
lastCommitMessages: string;
|
|
121
121
|
};
|