codecane 1.0.178 → 1.0.180
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/chat-storage.d.ts +1 -26
- package/dist/chat-storage.js +56 -132
- package/dist/chat-storage.js.map +1 -1
- package/dist/checkpoint-file-manager.d.ts +8 -0
- package/dist/checkpoint-file-manager.js +115 -0
- package/dist/checkpoint-file-manager.js.map +1 -0
- package/dist/checkpoints.d.ts +3 -6
- package/dist/checkpoints.js +35 -21
- package/dist/checkpoints.js.map +1 -1
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +22 -46
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +10 -13
- package/dist/client.js +19 -35
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +195 -195
- package/dist/common/constants/tools.d.ts +13 -2
- package/dist/common/constants/tools.js +18 -12
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/util/saxy.d.ts +9 -1
- package/dist/common/util/saxy.js +45 -72
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +528 -528
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/project-files.d.ts +2 -3
- package/dist/project-files.js +17 -27
- package/dist/project-files.js.map +1 -1
- package/dist/utils/xml-stream-parser.js +2 -1
- package/dist/utils/xml-stream-parser.js.map +1 -1
- package/dist/worker-script-project-context.js +1 -1
- package/dist/worker-script-project-context.js.map +1 -1
- package/package.json +2 -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
package/dist/common/actions.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
type: "patch" | "file";
|
|
8
7
|
path: string;
|
|
8
|
+
type: "file" | "patch";
|
|
9
9
|
content: string;
|
|
10
10
|
}, {
|
|
11
|
-
type: "patch" | "file";
|
|
12
11
|
path: string;
|
|
12
|
+
type: "file" | "patch";
|
|
13
13
|
content: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
@@ -18,12 +18,12 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
18
18
|
path: z.ZodString;
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
type: "patch" | "file";
|
|
22
21
|
path: string;
|
|
22
|
+
type: "file" | "patch";
|
|
23
23
|
content: string;
|
|
24
24
|
}, {
|
|
25
|
-
type: "patch" | "file";
|
|
26
25
|
path: string;
|
|
26
|
+
type: "file" | "patch";
|
|
27
27
|
content: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
@@ -59,14 +59,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
59
59
|
type: "ephemeral";
|
|
60
60
|
}>>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
type: "text";
|
|
63
62
|
text: string;
|
|
63
|
+
type: "text";
|
|
64
64
|
cache_control?: {
|
|
65
65
|
type: "ephemeral";
|
|
66
66
|
} | undefined;
|
|
67
67
|
}, {
|
|
68
|
-
type: "text";
|
|
69
68
|
text: string;
|
|
69
|
+
type: "text";
|
|
70
70
|
cache_control?: {
|
|
71
71
|
type: "ephemeral";
|
|
72
72
|
} | undefined;
|
|
@@ -130,13 +130,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
130
130
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
131
131
|
data: z.ZodString;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
data: string;
|
|
133
134
|
type: "base64";
|
|
134
135
|
media_type: "image/jpeg";
|
|
135
|
-
data: string;
|
|
136
136
|
}, {
|
|
137
|
+
data: string;
|
|
137
138
|
type: "base64";
|
|
138
139
|
media_type: "image/jpeg";
|
|
139
|
-
data: string;
|
|
140
140
|
}>;
|
|
141
141
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
142
142
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -148,9 +148,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
149
|
type: "image";
|
|
150
150
|
source: {
|
|
151
|
+
data: string;
|
|
151
152
|
type: "base64";
|
|
152
153
|
media_type: "image/jpeg";
|
|
153
|
-
data: string;
|
|
154
154
|
};
|
|
155
155
|
cache_control?: {
|
|
156
156
|
type: "ephemeral";
|
|
@@ -158,9 +158,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
158
158
|
}, {
|
|
159
159
|
type: "image";
|
|
160
160
|
source: {
|
|
161
|
+
data: string;
|
|
161
162
|
type: "base64";
|
|
162
163
|
media_type: "image/jpeg";
|
|
163
|
-
data: string;
|
|
164
164
|
};
|
|
165
165
|
cache_control?: {
|
|
166
166
|
type: "ephemeral";
|
|
@@ -168,8 +168,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
168
168
|
}>]>, "many">]>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
170
|
content: string | ({
|
|
171
|
-
type: "text";
|
|
172
171
|
text: string;
|
|
172
|
+
type: "text";
|
|
173
173
|
cache_control?: {
|
|
174
174
|
type: "ephemeral";
|
|
175
175
|
} | undefined;
|
|
@@ -191,9 +191,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "image";
|
|
193
193
|
source: {
|
|
194
|
+
data: string;
|
|
194
195
|
type: "base64";
|
|
195
196
|
media_type: "image/jpeg";
|
|
196
|
-
data: string;
|
|
197
197
|
};
|
|
198
198
|
cache_control?: {
|
|
199
199
|
type: "ephemeral";
|
|
@@ -202,8 +202,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
202
202
|
role: "user" | "assistant";
|
|
203
203
|
}, {
|
|
204
204
|
content: string | ({
|
|
205
|
-
type: "text";
|
|
206
205
|
text: string;
|
|
206
|
+
type: "text";
|
|
207
207
|
cache_control?: {
|
|
208
208
|
type: "ephemeral";
|
|
209
209
|
} | undefined;
|
|
@@ -225,9 +225,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
225
225
|
} | {
|
|
226
226
|
type: "image";
|
|
227
227
|
source: {
|
|
228
|
+
data: string;
|
|
228
229
|
type: "base64";
|
|
229
230
|
media_type: "image/jpeg";
|
|
230
|
-
data: string;
|
|
231
231
|
};
|
|
232
232
|
cache_control?: {
|
|
233
233
|
type: "ephemeral";
|
|
@@ -247,13 +247,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
247
247
|
diffCached: z.ZodString;
|
|
248
248
|
lastCommitMessages: z.ZodString;
|
|
249
249
|
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
diff: string;
|
|
251
250
|
status: string;
|
|
251
|
+
diff: string;
|
|
252
252
|
diffCached: string;
|
|
253
253
|
lastCommitMessages: string;
|
|
254
254
|
}, {
|
|
255
|
-
diff: string;
|
|
256
255
|
status: string;
|
|
256
|
+
diff: string;
|
|
257
257
|
diffCached: string;
|
|
258
258
|
lastCommitMessages: string;
|
|
259
259
|
}>;
|
|
@@ -297,8 +297,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
297
297
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
298
298
|
knowledgeFiles: Record<string, string>;
|
|
299
299
|
gitChanges: {
|
|
300
|
-
diff: string;
|
|
301
300
|
status: string;
|
|
301
|
+
diff: string;
|
|
302
302
|
diffCached: string;
|
|
303
303
|
lastCommitMessages: string;
|
|
304
304
|
};
|
|
@@ -323,8 +323,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
323
323
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
324
324
|
knowledgeFiles: Record<string, string>;
|
|
325
325
|
gitChanges: {
|
|
326
|
-
diff: string;
|
|
327
326
|
status: string;
|
|
327
|
+
diff: string;
|
|
328
328
|
diffCached: string;
|
|
329
329
|
lastCommitMessages: string;
|
|
330
330
|
};
|
|
@@ -349,23 +349,50 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
349
349
|
path: z.ZodString;
|
|
350
350
|
content: z.ZodString;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
type: "patch" | "file";
|
|
353
352
|
path: string;
|
|
353
|
+
type: "file" | "patch";
|
|
354
354
|
content: string;
|
|
355
355
|
}, {
|
|
356
|
-
type: "patch" | "file";
|
|
357
356
|
path: string;
|
|
357
|
+
type: "file" | "patch";
|
|
358
358
|
content: string;
|
|
359
359
|
}>, "many">;
|
|
360
360
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
362
362
|
type: "user-input";
|
|
363
|
+
fileContext: {
|
|
364
|
+
currentWorkingDirectory: string;
|
|
365
|
+
fileTree: import("./util/file").FileTreeNode[];
|
|
366
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
367
|
+
knowledgeFiles: Record<string, string>;
|
|
368
|
+
gitChanges: {
|
|
369
|
+
status: string;
|
|
370
|
+
diff: string;
|
|
371
|
+
diffCached: string;
|
|
372
|
+
lastCommitMessages: string;
|
|
373
|
+
};
|
|
374
|
+
changesSinceLastChat: Record<string, string>;
|
|
375
|
+
shellConfigFiles: Record<string, string>;
|
|
376
|
+
systemInfo: {
|
|
377
|
+
platform: string;
|
|
378
|
+
shell: string;
|
|
379
|
+
nodeVersion: string;
|
|
380
|
+
arch: string;
|
|
381
|
+
homedir: string;
|
|
382
|
+
cpus: number;
|
|
383
|
+
};
|
|
384
|
+
fileVersions: {
|
|
385
|
+
path: string;
|
|
386
|
+
content: string;
|
|
387
|
+
}[][];
|
|
388
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
389
|
+
};
|
|
363
390
|
fingerprintId: string;
|
|
364
391
|
userInputId: string;
|
|
365
392
|
messages: {
|
|
366
393
|
content: string | ({
|
|
367
|
-
type: "text";
|
|
368
394
|
text: string;
|
|
395
|
+
type: "text";
|
|
369
396
|
cache_control?: {
|
|
370
397
|
type: "ephemeral";
|
|
371
398
|
} | undefined;
|
|
@@ -387,9 +414,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
387
414
|
} | {
|
|
388
415
|
type: "image";
|
|
389
416
|
source: {
|
|
417
|
+
data: string;
|
|
390
418
|
type: "base64";
|
|
391
419
|
media_type: "image/jpeg";
|
|
392
|
-
data: string;
|
|
393
420
|
};
|
|
394
421
|
cache_control?: {
|
|
395
422
|
type: "ephemeral";
|
|
@@ -397,14 +424,23 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
397
424
|
})[];
|
|
398
425
|
role: "user" | "assistant";
|
|
399
426
|
}[];
|
|
427
|
+
changesAlreadyApplied: {
|
|
428
|
+
path: string;
|
|
429
|
+
type: "file" | "patch";
|
|
430
|
+
content: string;
|
|
431
|
+
}[];
|
|
432
|
+
costMode: "max" | "lite" | "normal";
|
|
433
|
+
authToken?: string | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
type: "user-input";
|
|
400
436
|
fileContext: {
|
|
401
437
|
currentWorkingDirectory: string;
|
|
402
438
|
fileTree: import("./util/file").FileTreeNode[];
|
|
403
439
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
404
440
|
knowledgeFiles: Record<string, string>;
|
|
405
441
|
gitChanges: {
|
|
406
|
-
diff: string;
|
|
407
442
|
status: string;
|
|
443
|
+
diff: string;
|
|
408
444
|
diffCached: string;
|
|
409
445
|
lastCommitMessages: string;
|
|
410
446
|
};
|
|
@@ -424,21 +460,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
424
460
|
}[][];
|
|
425
461
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
426
462
|
};
|
|
427
|
-
changesAlreadyApplied: {
|
|
428
|
-
type: "patch" | "file";
|
|
429
|
-
path: string;
|
|
430
|
-
content: string;
|
|
431
|
-
}[];
|
|
432
|
-
costMode: "lite" | "normal" | "max";
|
|
433
|
-
authToken?: string | undefined;
|
|
434
|
-
}, {
|
|
435
|
-
type: "user-input";
|
|
436
463
|
fingerprintId: string;
|
|
437
464
|
userInputId: string;
|
|
438
465
|
messages: {
|
|
439
466
|
content: string | ({
|
|
440
|
-
type: "text";
|
|
441
467
|
text: string;
|
|
468
|
+
type: "text";
|
|
442
469
|
cache_control?: {
|
|
443
470
|
type: "ephemeral";
|
|
444
471
|
} | undefined;
|
|
@@ -460,9 +487,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
460
487
|
} | {
|
|
461
488
|
type: "image";
|
|
462
489
|
source: {
|
|
490
|
+
data: string;
|
|
463
491
|
type: "base64";
|
|
464
492
|
media_type: "image/jpeg";
|
|
465
|
-
data: string;
|
|
466
493
|
};
|
|
467
494
|
cache_control?: {
|
|
468
495
|
type: "ephemeral";
|
|
@@ -470,40 +497,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
470
497
|
})[];
|
|
471
498
|
role: "user" | "assistant";
|
|
472
499
|
}[];
|
|
473
|
-
fileContext: {
|
|
474
|
-
currentWorkingDirectory: string;
|
|
475
|
-
fileTree: import("./util/file").FileTreeNode[];
|
|
476
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
477
|
-
knowledgeFiles: Record<string, string>;
|
|
478
|
-
gitChanges: {
|
|
479
|
-
diff: string;
|
|
480
|
-
status: string;
|
|
481
|
-
diffCached: string;
|
|
482
|
-
lastCommitMessages: string;
|
|
483
|
-
};
|
|
484
|
-
changesSinceLastChat: Record<string, string>;
|
|
485
|
-
shellConfigFiles: Record<string, string>;
|
|
486
|
-
systemInfo: {
|
|
487
|
-
platform: string;
|
|
488
|
-
shell: string;
|
|
489
|
-
nodeVersion: string;
|
|
490
|
-
arch: string;
|
|
491
|
-
homedir: string;
|
|
492
|
-
cpus: number;
|
|
493
|
-
};
|
|
494
|
-
fileVersions: {
|
|
495
|
-
path: string;
|
|
496
|
-
content: string;
|
|
497
|
-
}[][];
|
|
498
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
499
|
-
};
|
|
500
500
|
changesAlreadyApplied: {
|
|
501
|
-
type: "patch" | "file";
|
|
502
501
|
path: string;
|
|
502
|
+
type: "file" | "patch";
|
|
503
503
|
content: string;
|
|
504
504
|
}[];
|
|
505
505
|
authToken?: string | undefined;
|
|
506
|
-
costMode?: "
|
|
506
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
507
507
|
}>, z.ZodObject<{
|
|
508
508
|
type: z.ZodLiteral<"prompt">;
|
|
509
509
|
promptId: z.ZodString;
|
|
@@ -525,13 +525,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
525
525
|
diffCached: z.ZodString;
|
|
526
526
|
lastCommitMessages: z.ZodString;
|
|
527
527
|
}, "strip", z.ZodTypeAny, {
|
|
528
|
-
diff: string;
|
|
529
528
|
status: string;
|
|
529
|
+
diff: string;
|
|
530
530
|
diffCached: string;
|
|
531
531
|
lastCommitMessages: string;
|
|
532
532
|
}, {
|
|
533
|
-
diff: string;
|
|
534
533
|
status: string;
|
|
534
|
+
diff: string;
|
|
535
535
|
diffCached: string;
|
|
536
536
|
lastCommitMessages: string;
|
|
537
537
|
}>;
|
|
@@ -575,8 +575,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
575
575
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
576
576
|
knowledgeFiles: Record<string, string>;
|
|
577
577
|
gitChanges: {
|
|
578
|
-
diff: string;
|
|
579
578
|
status: string;
|
|
579
|
+
diff: string;
|
|
580
580
|
diffCached: string;
|
|
581
581
|
lastCommitMessages: string;
|
|
582
582
|
};
|
|
@@ -601,8 +601,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
601
601
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
602
602
|
knowledgeFiles: Record<string, string>;
|
|
603
603
|
gitChanges: {
|
|
604
|
-
diff: string;
|
|
605
604
|
status: string;
|
|
605
|
+
diff: string;
|
|
606
606
|
diffCached: string;
|
|
607
607
|
lastCommitMessages: string;
|
|
608
608
|
};
|
|
@@ -635,14 +635,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
635
635
|
type: "ephemeral";
|
|
636
636
|
}>>;
|
|
637
637
|
}, "strip", z.ZodTypeAny, {
|
|
638
|
-
type: "text";
|
|
639
638
|
text: string;
|
|
639
|
+
type: "text";
|
|
640
640
|
cache_control?: {
|
|
641
641
|
type: "ephemeral";
|
|
642
642
|
} | undefined;
|
|
643
643
|
}, {
|
|
644
|
-
type: "text";
|
|
645
644
|
text: string;
|
|
645
|
+
type: "text";
|
|
646
646
|
cache_control?: {
|
|
647
647
|
type: "ephemeral";
|
|
648
648
|
} | undefined;
|
|
@@ -706,13 +706,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
706
706
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
707
707
|
data: z.ZodString;
|
|
708
708
|
}, "strip", z.ZodTypeAny, {
|
|
709
|
+
data: string;
|
|
709
710
|
type: "base64";
|
|
710
711
|
media_type: "image/jpeg";
|
|
711
|
-
data: string;
|
|
712
712
|
}, {
|
|
713
|
+
data: string;
|
|
713
714
|
type: "base64";
|
|
714
715
|
media_type: "image/jpeg";
|
|
715
|
-
data: string;
|
|
716
716
|
}>;
|
|
717
717
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
718
718
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -724,9 +724,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
724
724
|
}, "strip", z.ZodTypeAny, {
|
|
725
725
|
type: "image";
|
|
726
726
|
source: {
|
|
727
|
+
data: string;
|
|
727
728
|
type: "base64";
|
|
728
729
|
media_type: "image/jpeg";
|
|
729
|
-
data: string;
|
|
730
730
|
};
|
|
731
731
|
cache_control?: {
|
|
732
732
|
type: "ephemeral";
|
|
@@ -734,9 +734,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
734
734
|
}, {
|
|
735
735
|
type: "image";
|
|
736
736
|
source: {
|
|
737
|
+
data: string;
|
|
737
738
|
type: "base64";
|
|
738
739
|
media_type: "image/jpeg";
|
|
739
|
-
data: string;
|
|
740
740
|
};
|
|
741
741
|
cache_control?: {
|
|
742
742
|
type: "ephemeral";
|
|
@@ -744,8 +744,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
744
744
|
}>]>, "many">]>;
|
|
745
745
|
}, "strip", z.ZodTypeAny, {
|
|
746
746
|
content: string | ({
|
|
747
|
-
type: "text";
|
|
748
747
|
text: string;
|
|
748
|
+
type: "text";
|
|
749
749
|
cache_control?: {
|
|
750
750
|
type: "ephemeral";
|
|
751
751
|
} | undefined;
|
|
@@ -767,9 +767,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
767
767
|
} | {
|
|
768
768
|
type: "image";
|
|
769
769
|
source: {
|
|
770
|
+
data: string;
|
|
770
771
|
type: "base64";
|
|
771
772
|
media_type: "image/jpeg";
|
|
772
|
-
data: string;
|
|
773
773
|
};
|
|
774
774
|
cache_control?: {
|
|
775
775
|
type: "ephemeral";
|
|
@@ -778,8 +778,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
778
778
|
role: "user" | "assistant";
|
|
779
779
|
}, {
|
|
780
780
|
content: string | ({
|
|
781
|
-
type: "text";
|
|
782
781
|
text: string;
|
|
782
|
+
type: "text";
|
|
783
783
|
cache_control?: {
|
|
784
784
|
type: "ephemeral";
|
|
785
785
|
} | undefined;
|
|
@@ -801,9 +801,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
801
801
|
} | {
|
|
802
802
|
type: "image";
|
|
803
803
|
source: {
|
|
804
|
+
data: string;
|
|
804
805
|
type: "base64";
|
|
805
806
|
media_type: "image/jpeg";
|
|
806
|
-
data: string;
|
|
807
807
|
};
|
|
808
808
|
cache_control?: {
|
|
809
809
|
type: "ephemeral";
|
|
@@ -812,14 +812,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
812
812
|
role: "user" | "assistant";
|
|
813
813
|
}>, "many">;
|
|
814
814
|
}, "strip", z.ZodTypeAny, {
|
|
815
|
+
agentContext: string;
|
|
815
816
|
fileContext: {
|
|
816
817
|
currentWorkingDirectory: string;
|
|
817
818
|
fileTree: import("./util/file").FileTreeNode[];
|
|
818
819
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
819
820
|
knowledgeFiles: Record<string, string>;
|
|
820
821
|
gitChanges: {
|
|
821
|
-
diff: string;
|
|
822
822
|
status: string;
|
|
823
|
+
diff: string;
|
|
823
824
|
diffCached: string;
|
|
824
825
|
lastCommitMessages: string;
|
|
825
826
|
};
|
|
@@ -839,11 +840,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
839
840
|
}[][];
|
|
840
841
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
841
842
|
};
|
|
842
|
-
agentContext: string;
|
|
843
843
|
messageHistory: {
|
|
844
844
|
content: string | ({
|
|
845
|
-
type: "text";
|
|
846
845
|
text: string;
|
|
846
|
+
type: "text";
|
|
847
847
|
cache_control?: {
|
|
848
848
|
type: "ephemeral";
|
|
849
849
|
} | undefined;
|
|
@@ -865,9 +865,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
865
865
|
} | {
|
|
866
866
|
type: "image";
|
|
867
867
|
source: {
|
|
868
|
+
data: string;
|
|
868
869
|
type: "base64";
|
|
869
870
|
media_type: "image/jpeg";
|
|
870
|
-
data: string;
|
|
871
871
|
};
|
|
872
872
|
cache_control?: {
|
|
873
873
|
type: "ephemeral";
|
|
@@ -876,14 +876,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
876
876
|
role: "user" | "assistant";
|
|
877
877
|
}[];
|
|
878
878
|
}, {
|
|
879
|
+
agentContext: string;
|
|
879
880
|
fileContext: {
|
|
880
881
|
currentWorkingDirectory: string;
|
|
881
882
|
fileTree: import("./util/file").FileTreeNode[];
|
|
882
883
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
883
884
|
knowledgeFiles: Record<string, string>;
|
|
884
885
|
gitChanges: {
|
|
885
|
-
diff: string;
|
|
886
886
|
status: string;
|
|
887
|
+
diff: string;
|
|
887
888
|
diffCached: string;
|
|
888
889
|
lastCommitMessages: string;
|
|
889
890
|
};
|
|
@@ -903,11 +904,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
903
904
|
}[][];
|
|
904
905
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
905
906
|
};
|
|
906
|
-
agentContext: string;
|
|
907
907
|
messageHistory: {
|
|
908
908
|
content: string | ({
|
|
909
|
-
type: "text";
|
|
910
909
|
text: string;
|
|
910
|
+
type: "text";
|
|
911
911
|
cache_control?: {
|
|
912
912
|
type: "ephemeral";
|
|
913
913
|
} | undefined;
|
|
@@ -929,9 +929,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
929
929
|
} | {
|
|
930
930
|
type: "image";
|
|
931
931
|
source: {
|
|
932
|
+
data: string;
|
|
932
933
|
type: "base64";
|
|
933
934
|
media_type: "image/jpeg";
|
|
934
|
-
data: string;
|
|
935
935
|
};
|
|
936
936
|
cache_control?: {
|
|
937
937
|
type: "ephemeral";
|
|
@@ -956,17 +956,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
956
956
|
}, "strip", z.ZodTypeAny, {
|
|
957
957
|
type: "prompt";
|
|
958
958
|
fingerprintId: string;
|
|
959
|
-
costMode: "
|
|
959
|
+
costMode: "max" | "lite" | "normal";
|
|
960
960
|
promptId: string;
|
|
961
961
|
agentState: {
|
|
962
|
+
agentContext: string;
|
|
962
963
|
fileContext: {
|
|
963
964
|
currentWorkingDirectory: string;
|
|
964
965
|
fileTree: import("./util/file").FileTreeNode[];
|
|
965
966
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
966
967
|
knowledgeFiles: Record<string, string>;
|
|
967
968
|
gitChanges: {
|
|
968
|
-
diff: string;
|
|
969
969
|
status: string;
|
|
970
|
+
diff: string;
|
|
970
971
|
diffCached: string;
|
|
971
972
|
lastCommitMessages: string;
|
|
972
973
|
};
|
|
@@ -986,11 +987,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
986
987
|
}[][];
|
|
987
988
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
988
989
|
};
|
|
989
|
-
agentContext: string;
|
|
990
990
|
messageHistory: {
|
|
991
991
|
content: string | ({
|
|
992
|
-
type: "text";
|
|
993
992
|
text: string;
|
|
993
|
+
type: "text";
|
|
994
994
|
cache_control?: {
|
|
995
995
|
type: "ephemeral";
|
|
996
996
|
} | undefined;
|
|
@@ -1012,9 +1012,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1012
1012
|
} | {
|
|
1013
1013
|
type: "image";
|
|
1014
1014
|
source: {
|
|
1015
|
+
data: string;
|
|
1015
1016
|
type: "base64";
|
|
1016
1017
|
media_type: "image/jpeg";
|
|
1017
|
-
data: string;
|
|
1018
1018
|
};
|
|
1019
1019
|
cache_control?: {
|
|
1020
1020
|
type: "ephemeral";
|
|
@@ -1035,14 +1035,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1035
1035
|
fingerprintId: string;
|
|
1036
1036
|
promptId: string;
|
|
1037
1037
|
agentState: {
|
|
1038
|
+
agentContext: string;
|
|
1038
1039
|
fileContext: {
|
|
1039
1040
|
currentWorkingDirectory: string;
|
|
1040
1041
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1041
1042
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1042
1043
|
knowledgeFiles: Record<string, string>;
|
|
1043
1044
|
gitChanges: {
|
|
1044
|
-
diff: string;
|
|
1045
1045
|
status: string;
|
|
1046
|
+
diff: string;
|
|
1046
1047
|
diffCached: string;
|
|
1047
1048
|
lastCommitMessages: string;
|
|
1048
1049
|
};
|
|
@@ -1062,11 +1063,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1062
1063
|
}[][];
|
|
1063
1064
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1064
1065
|
};
|
|
1065
|
-
agentContext: string;
|
|
1066
1066
|
messageHistory: {
|
|
1067
1067
|
content: string | ({
|
|
1068
|
-
type: "text";
|
|
1069
1068
|
text: string;
|
|
1069
|
+
type: "text";
|
|
1070
1070
|
cache_control?: {
|
|
1071
1071
|
type: "ephemeral";
|
|
1072
1072
|
} | undefined;
|
|
@@ -1088,9 +1088,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1088
1088
|
} | {
|
|
1089
1089
|
type: "image";
|
|
1090
1090
|
source: {
|
|
1091
|
+
data: string;
|
|
1091
1092
|
type: "base64";
|
|
1092
1093
|
media_type: "image/jpeg";
|
|
1093
|
-
data: string;
|
|
1094
1094
|
};
|
|
1095
1095
|
cache_control?: {
|
|
1096
1096
|
type: "ephemeral";
|
|
@@ -1105,7 +1105,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1105
1105
|
result: string;
|
|
1106
1106
|
}[];
|
|
1107
1107
|
authToken?: string | undefined;
|
|
1108
|
-
costMode?: "
|
|
1108
|
+
costMode?: "max" | "lite" | "normal" | undefined;
|
|
1109
1109
|
prompt?: string | undefined;
|
|
1110
1110
|
}>, z.ZodObject<{
|
|
1111
1111
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -1135,13 +1135,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1135
1135
|
diffCached: z.ZodString;
|
|
1136
1136
|
lastCommitMessages: z.ZodString;
|
|
1137
1137
|
}, "strip", z.ZodTypeAny, {
|
|
1138
|
-
diff: string;
|
|
1139
1138
|
status: string;
|
|
1139
|
+
diff: string;
|
|
1140
1140
|
diffCached: string;
|
|
1141
1141
|
lastCommitMessages: string;
|
|
1142
1142
|
}, {
|
|
1143
|
-
diff: string;
|
|
1144
1143
|
status: string;
|
|
1144
|
+
diff: string;
|
|
1145
1145
|
diffCached: string;
|
|
1146
1146
|
lastCommitMessages: string;
|
|
1147
1147
|
}>;
|
|
@@ -1185,8 +1185,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1185
1185
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1186
1186
|
knowledgeFiles: Record<string, string>;
|
|
1187
1187
|
gitChanges: {
|
|
1188
|
-
diff: string;
|
|
1189
1188
|
status: string;
|
|
1189
|
+
diff: string;
|
|
1190
1190
|
diffCached: string;
|
|
1191
1191
|
lastCommitMessages: string;
|
|
1192
1192
|
};
|
|
@@ -1211,8 +1211,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1211
1211
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1212
1212
|
knowledgeFiles: Record<string, string>;
|
|
1213
1213
|
gitChanges: {
|
|
1214
|
-
diff: string;
|
|
1215
1214
|
status: string;
|
|
1215
|
+
diff: string;
|
|
1216
1216
|
diffCached: string;
|
|
1217
1217
|
lastCommitMessages: string;
|
|
1218
1218
|
};
|
|
@@ -1234,15 +1234,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1234
1234
|
}>;
|
|
1235
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1236
1236
|
type: "init";
|
|
1237
|
-
fingerprintId: string;
|
|
1238
1237
|
fileContext: {
|
|
1239
1238
|
currentWorkingDirectory: string;
|
|
1240
1239
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1241
1240
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1242
1241
|
knowledgeFiles: Record<string, string>;
|
|
1243
1242
|
gitChanges: {
|
|
1244
|
-
diff: string;
|
|
1245
1243
|
status: string;
|
|
1244
|
+
diff: string;
|
|
1246
1245
|
diffCached: string;
|
|
1247
1246
|
lastCommitMessages: string;
|
|
1248
1247
|
};
|
|
@@ -1262,18 +1261,18 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1262
1261
|
}[][];
|
|
1263
1262
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1264
1263
|
};
|
|
1264
|
+
fingerprintId: string;
|
|
1265
1265
|
authToken?: string | undefined;
|
|
1266
1266
|
}, {
|
|
1267
1267
|
type: "init";
|
|
1268
|
-
fingerprintId: string;
|
|
1269
1268
|
fileContext: {
|
|
1270
1269
|
currentWorkingDirectory: string;
|
|
1271
1270
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1272
1271
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1273
1272
|
knowledgeFiles: Record<string, string>;
|
|
1274
1273
|
gitChanges: {
|
|
1275
|
-
diff: string;
|
|
1276
1274
|
status: string;
|
|
1275
|
+
diff: string;
|
|
1277
1276
|
diffCached: string;
|
|
1278
1277
|
lastCommitMessages: string;
|
|
1279
1278
|
};
|
|
@@ -1293,6 +1292,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1293
1292
|
}[][];
|
|
1294
1293
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1295
1294
|
};
|
|
1295
|
+
fingerprintId: string;
|
|
1296
1296
|
authToken?: string | undefined;
|
|
1297
1297
|
}>, z.ZodObject<{
|
|
1298
1298
|
type: z.ZodLiteral<"usage">;
|
|
@@ -1386,12 +1386,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1386
1386
|
path: z.ZodString;
|
|
1387
1387
|
content: z.ZodString;
|
|
1388
1388
|
}, "strip", z.ZodTypeAny, {
|
|
1389
|
-
type: "patch" | "file";
|
|
1390
1389
|
path: string;
|
|
1390
|
+
type: "file" | "patch";
|
|
1391
1391
|
content: string;
|
|
1392
1392
|
}, {
|
|
1393
|
-
type: "patch" | "file";
|
|
1394
1393
|
path: string;
|
|
1394
|
+
type: "file" | "patch";
|
|
1395
1395
|
content: string;
|
|
1396
1396
|
}>, "many">;
|
|
1397
1397
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1399,12 +1399,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1399
1399
|
path: z.ZodString;
|
|
1400
1400
|
content: z.ZodString;
|
|
1401
1401
|
}, "strip", z.ZodTypeAny, {
|
|
1402
|
-
type: "patch" | "file";
|
|
1403
1402
|
path: string;
|
|
1403
|
+
type: "file" | "patch";
|
|
1404
1404
|
content: string;
|
|
1405
1405
|
}, {
|
|
1406
|
-
type: "patch" | "file";
|
|
1407
1406
|
path: string;
|
|
1407
|
+
type: "file" | "patch";
|
|
1408
1408
|
content: string;
|
|
1409
1409
|
}>, "many">;
|
|
1410
1410
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1429,14 +1429,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1429
1429
|
type: "response-complete";
|
|
1430
1430
|
userInputId: string;
|
|
1431
1431
|
changesAlreadyApplied: {
|
|
1432
|
-
type: "patch" | "file";
|
|
1433
1432
|
path: string;
|
|
1433
|
+
type: "file" | "patch";
|
|
1434
1434
|
content: string;
|
|
1435
1435
|
}[];
|
|
1436
1436
|
response: string;
|
|
1437
1437
|
changes: {
|
|
1438
|
-
type: "patch" | "file";
|
|
1439
1438
|
path: string;
|
|
1439
|
+
type: "file" | "patch";
|
|
1440
1440
|
content: string;
|
|
1441
1441
|
}[];
|
|
1442
1442
|
addedFileVersions: {
|
|
@@ -1454,14 +1454,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1454
1454
|
type: "response-complete";
|
|
1455
1455
|
userInputId: string;
|
|
1456
1456
|
changesAlreadyApplied: {
|
|
1457
|
-
type: "patch" | "file";
|
|
1458
1457
|
path: string;
|
|
1458
|
+
type: "file" | "patch";
|
|
1459
1459
|
content: string;
|
|
1460
1460
|
}[];
|
|
1461
1461
|
response: string;
|
|
1462
1462
|
changes: {
|
|
1463
|
-
type: "patch" | "file";
|
|
1464
1463
|
path: string;
|
|
1464
|
+
type: "file" | "patch";
|
|
1465
1465
|
content: string;
|
|
1466
1466
|
}[];
|
|
1467
1467
|
addedFileVersions: {
|
|
@@ -1493,13 +1493,13 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1493
1493
|
diffCached: z.ZodString;
|
|
1494
1494
|
lastCommitMessages: z.ZodString;
|
|
1495
1495
|
}, "strip", z.ZodTypeAny, {
|
|
1496
|
-
diff: string;
|
|
1497
1496
|
status: string;
|
|
1497
|
+
diff: string;
|
|
1498
1498
|
diffCached: string;
|
|
1499
1499
|
lastCommitMessages: string;
|
|
1500
1500
|
}, {
|
|
1501
|
-
diff: string;
|
|
1502
1501
|
status: string;
|
|
1502
|
+
diff: string;
|
|
1503
1503
|
diffCached: string;
|
|
1504
1504
|
lastCommitMessages: string;
|
|
1505
1505
|
}>;
|
|
@@ -1543,8 +1543,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1543
1543
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1544
1544
|
knowledgeFiles: Record<string, string>;
|
|
1545
1545
|
gitChanges: {
|
|
1546
|
-
diff: string;
|
|
1547
1546
|
status: string;
|
|
1547
|
+
diff: string;
|
|
1548
1548
|
diffCached: string;
|
|
1549
1549
|
lastCommitMessages: string;
|
|
1550
1550
|
};
|
|
@@ -1569,8 +1569,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1569
1569
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1570
1570
|
knowledgeFiles: Record<string, string>;
|
|
1571
1571
|
gitChanges: {
|
|
1572
|
-
diff: string;
|
|
1573
1572
|
status: string;
|
|
1573
|
+
diff: string;
|
|
1574
1574
|
diffCached: string;
|
|
1575
1575
|
lastCommitMessages: string;
|
|
1576
1576
|
};
|
|
@@ -1603,14 +1603,14 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1603
1603
|
type: "ephemeral";
|
|
1604
1604
|
}>>;
|
|
1605
1605
|
}, "strip", z.ZodTypeAny, {
|
|
1606
|
-
type: "text";
|
|
1607
1606
|
text: string;
|
|
1607
|
+
type: "text";
|
|
1608
1608
|
cache_control?: {
|
|
1609
1609
|
type: "ephemeral";
|
|
1610
1610
|
} | undefined;
|
|
1611
1611
|
}, {
|
|
1612
|
-
type: "text";
|
|
1613
1612
|
text: string;
|
|
1613
|
+
type: "text";
|
|
1614
1614
|
cache_control?: {
|
|
1615
1615
|
type: "ephemeral";
|
|
1616
1616
|
} | undefined;
|
|
@@ -1674,13 +1674,13 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1674
1674
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1675
1675
|
data: z.ZodString;
|
|
1676
1676
|
}, "strip", z.ZodTypeAny, {
|
|
1677
|
+
data: string;
|
|
1677
1678
|
type: "base64";
|
|
1678
1679
|
media_type: "image/jpeg";
|
|
1679
|
-
data: string;
|
|
1680
1680
|
}, {
|
|
1681
|
+
data: string;
|
|
1681
1682
|
type: "base64";
|
|
1682
1683
|
media_type: "image/jpeg";
|
|
1683
|
-
data: string;
|
|
1684
1684
|
}>;
|
|
1685
1685
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1686
1686
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1692,9 +1692,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1692
1692
|
}, "strip", z.ZodTypeAny, {
|
|
1693
1693
|
type: "image";
|
|
1694
1694
|
source: {
|
|
1695
|
+
data: string;
|
|
1695
1696
|
type: "base64";
|
|
1696
1697
|
media_type: "image/jpeg";
|
|
1697
|
-
data: string;
|
|
1698
1698
|
};
|
|
1699
1699
|
cache_control?: {
|
|
1700
1700
|
type: "ephemeral";
|
|
@@ -1702,9 +1702,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1702
1702
|
}, {
|
|
1703
1703
|
type: "image";
|
|
1704
1704
|
source: {
|
|
1705
|
+
data: string;
|
|
1705
1706
|
type: "base64";
|
|
1706
1707
|
media_type: "image/jpeg";
|
|
1707
|
-
data: string;
|
|
1708
1708
|
};
|
|
1709
1709
|
cache_control?: {
|
|
1710
1710
|
type: "ephemeral";
|
|
@@ -1712,8 +1712,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1712
1712
|
}>]>, "many">]>;
|
|
1713
1713
|
}, "strip", z.ZodTypeAny, {
|
|
1714
1714
|
content: string | ({
|
|
1715
|
-
type: "text";
|
|
1716
1715
|
text: string;
|
|
1716
|
+
type: "text";
|
|
1717
1717
|
cache_control?: {
|
|
1718
1718
|
type: "ephemeral";
|
|
1719
1719
|
} | undefined;
|
|
@@ -1735,9 +1735,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1735
1735
|
} | {
|
|
1736
1736
|
type: "image";
|
|
1737
1737
|
source: {
|
|
1738
|
+
data: string;
|
|
1738
1739
|
type: "base64";
|
|
1739
1740
|
media_type: "image/jpeg";
|
|
1740
|
-
data: string;
|
|
1741
1741
|
};
|
|
1742
1742
|
cache_control?: {
|
|
1743
1743
|
type: "ephemeral";
|
|
@@ -1746,8 +1746,8 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1746
1746
|
role: "user" | "assistant";
|
|
1747
1747
|
}, {
|
|
1748
1748
|
content: string | ({
|
|
1749
|
-
type: "text";
|
|
1750
1749
|
text: string;
|
|
1750
|
+
type: "text";
|
|
1751
1751
|
cache_control?: {
|
|
1752
1752
|
type: "ephemeral";
|
|
1753
1753
|
} | undefined;
|
|
@@ -1769,9 +1769,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1769
1769
|
} | {
|
|
1770
1770
|
type: "image";
|
|
1771
1771
|
source: {
|
|
1772
|
+
data: string;
|
|
1772
1773
|
type: "base64";
|
|
1773
1774
|
media_type: "image/jpeg";
|
|
1774
|
-
data: string;
|
|
1775
1775
|
};
|
|
1776
1776
|
cache_control?: {
|
|
1777
1777
|
type: "ephemeral";
|
|
@@ -1780,14 +1780,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1780
1780
|
role: "user" | "assistant";
|
|
1781
1781
|
}>, "many">;
|
|
1782
1782
|
}, "strip", z.ZodTypeAny, {
|
|
1783
|
+
agentContext: string;
|
|
1783
1784
|
fileContext: {
|
|
1784
1785
|
currentWorkingDirectory: string;
|
|
1785
1786
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1786
1787
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1787
1788
|
knowledgeFiles: Record<string, string>;
|
|
1788
1789
|
gitChanges: {
|
|
1789
|
-
diff: string;
|
|
1790
1790
|
status: string;
|
|
1791
|
+
diff: string;
|
|
1791
1792
|
diffCached: string;
|
|
1792
1793
|
lastCommitMessages: string;
|
|
1793
1794
|
};
|
|
@@ -1807,11 +1808,10 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1807
1808
|
}[][];
|
|
1808
1809
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1809
1810
|
};
|
|
1810
|
-
agentContext: string;
|
|
1811
1811
|
messageHistory: {
|
|
1812
1812
|
content: string | ({
|
|
1813
|
-
type: "text";
|
|
1814
1813
|
text: string;
|
|
1814
|
+
type: "text";
|
|
1815
1815
|
cache_control?: {
|
|
1816
1816
|
type: "ephemeral";
|
|
1817
1817
|
} | undefined;
|
|
@@ -1833,9 +1833,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1833
1833
|
} | {
|
|
1834
1834
|
type: "image";
|
|
1835
1835
|
source: {
|
|
1836
|
+
data: string;
|
|
1836
1837
|
type: "base64";
|
|
1837
1838
|
media_type: "image/jpeg";
|
|
1838
|
-
data: string;
|
|
1839
1839
|
};
|
|
1840
1840
|
cache_control?: {
|
|
1841
1841
|
type: "ephemeral";
|
|
@@ -1844,14 +1844,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1844
1844
|
role: "user" | "assistant";
|
|
1845
1845
|
}[];
|
|
1846
1846
|
}, {
|
|
1847
|
+
agentContext: string;
|
|
1847
1848
|
fileContext: {
|
|
1848
1849
|
currentWorkingDirectory: string;
|
|
1849
1850
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1850
1851
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1851
1852
|
knowledgeFiles: Record<string, string>;
|
|
1852
1853
|
gitChanges: {
|
|
1853
|
-
diff: string;
|
|
1854
1854
|
status: string;
|
|
1855
|
+
diff: string;
|
|
1855
1856
|
diffCached: string;
|
|
1856
1857
|
lastCommitMessages: string;
|
|
1857
1858
|
};
|
|
@@ -1871,11 +1872,10 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1871
1872
|
}[][];
|
|
1872
1873
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1873
1874
|
};
|
|
1874
|
-
agentContext: string;
|
|
1875
1875
|
messageHistory: {
|
|
1876
1876
|
content: string | ({
|
|
1877
|
-
type: "text";
|
|
1878
1877
|
text: string;
|
|
1878
|
+
type: "text";
|
|
1879
1879
|
cache_control?: {
|
|
1880
1880
|
type: "ephemeral";
|
|
1881
1881
|
} | undefined;
|
|
@@ -1897,9 +1897,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1897
1897
|
} | {
|
|
1898
1898
|
type: "image";
|
|
1899
1899
|
source: {
|
|
1900
|
+
data: string;
|
|
1900
1901
|
type: "base64";
|
|
1901
1902
|
media_type: "image/jpeg";
|
|
1902
|
-
data: string;
|
|
1903
1903
|
};
|
|
1904
1904
|
cache_control?: {
|
|
1905
1905
|
type: "ephemeral";
|
|
@@ -1945,14 +1945,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1945
1945
|
type: "prompt-response";
|
|
1946
1946
|
promptId: string;
|
|
1947
1947
|
agentState: {
|
|
1948
|
+
agentContext: string;
|
|
1948
1949
|
fileContext: {
|
|
1949
1950
|
currentWorkingDirectory: string;
|
|
1950
1951
|
fileTree: import("./util/file").FileTreeNode[];
|
|
1951
1952
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1952
1953
|
knowledgeFiles: Record<string, string>;
|
|
1953
1954
|
gitChanges: {
|
|
1954
|
-
diff: string;
|
|
1955
1955
|
status: string;
|
|
1956
|
+
diff: string;
|
|
1956
1957
|
diffCached: string;
|
|
1957
1958
|
lastCommitMessages: string;
|
|
1958
1959
|
};
|
|
@@ -1972,11 +1973,10 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1972
1973
|
}[][];
|
|
1973
1974
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1974
1975
|
};
|
|
1975
|
-
agentContext: string;
|
|
1976
1976
|
messageHistory: {
|
|
1977
1977
|
content: string | ({
|
|
1978
|
-
type: "text";
|
|
1979
1978
|
text: string;
|
|
1979
|
+
type: "text";
|
|
1980
1980
|
cache_control?: {
|
|
1981
1981
|
type: "ephemeral";
|
|
1982
1982
|
} | undefined;
|
|
@@ -1998,9 +1998,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
1998
1998
|
} | {
|
|
1999
1999
|
type: "image";
|
|
2000
2000
|
source: {
|
|
2001
|
+
data: string;
|
|
2001
2002
|
type: "base64";
|
|
2002
2003
|
media_type: "image/jpeg";
|
|
2003
|
-
data: string;
|
|
2004
2004
|
};
|
|
2005
2005
|
cache_control?: {
|
|
2006
2006
|
type: "ephemeral";
|
|
@@ -2029,14 +2029,15 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2029
2029
|
type: "prompt-response";
|
|
2030
2030
|
promptId: string;
|
|
2031
2031
|
agentState: {
|
|
2032
|
+
agentContext: string;
|
|
2032
2033
|
fileContext: {
|
|
2033
2034
|
currentWorkingDirectory: string;
|
|
2034
2035
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2035
2036
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2036
2037
|
knowledgeFiles: Record<string, string>;
|
|
2037
2038
|
gitChanges: {
|
|
2038
|
-
diff: string;
|
|
2039
2039
|
status: string;
|
|
2040
|
+
diff: string;
|
|
2040
2041
|
diffCached: string;
|
|
2041
2042
|
lastCommitMessages: string;
|
|
2042
2043
|
};
|
|
@@ -2056,11 +2057,10 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2056
2057
|
}[][];
|
|
2057
2058
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2058
2059
|
};
|
|
2059
|
-
agentContext: string;
|
|
2060
2060
|
messageHistory: {
|
|
2061
2061
|
content: string | ({
|
|
2062
|
-
type: "text";
|
|
2063
2062
|
text: string;
|
|
2063
|
+
type: "text";
|
|
2064
2064
|
cache_control?: {
|
|
2065
2065
|
type: "ephemeral";
|
|
2066
2066
|
} | undefined;
|
|
@@ -2082,9 +2082,9 @@ export declare const PromptResponseSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
2082
2082
|
} | {
|
|
2083
2083
|
type: "image";
|
|
2084
2084
|
source: {
|
|
2085
|
+
data: string;
|
|
2085
2086
|
type: "base64";
|
|
2086
2087
|
media_type: "image/jpeg";
|
|
2087
|
-
data: string;
|
|
2088
2088
|
};
|
|
2089
2089
|
cache_control?: {
|
|
2090
2090
|
type: "ephemeral";
|
|
@@ -2132,12 +2132,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2132
2132
|
path: z.ZodString;
|
|
2133
2133
|
content: z.ZodString;
|
|
2134
2134
|
}, "strip", z.ZodTypeAny, {
|
|
2135
|
-
type: "patch" | "file";
|
|
2136
2135
|
path: string;
|
|
2136
|
+
type: "file" | "patch";
|
|
2137
2137
|
content: string;
|
|
2138
2138
|
}, {
|
|
2139
|
-
type: "patch" | "file";
|
|
2140
2139
|
path: string;
|
|
2140
|
+
type: "file" | "patch";
|
|
2141
2141
|
content: string;
|
|
2142
2142
|
}>, "many">;
|
|
2143
2143
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2145,12 +2145,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2145
2145
|
path: z.ZodString;
|
|
2146
2146
|
content: z.ZodString;
|
|
2147
2147
|
}, "strip", z.ZodTypeAny, {
|
|
2148
|
-
type: "patch" | "file";
|
|
2149
2148
|
path: string;
|
|
2149
|
+
type: "file" | "patch";
|
|
2150
2150
|
content: string;
|
|
2151
2151
|
}, {
|
|
2152
|
-
type: "patch" | "file";
|
|
2153
2152
|
path: string;
|
|
2153
|
+
type: "file" | "patch";
|
|
2154
2154
|
content: string;
|
|
2155
2155
|
}>, "many">;
|
|
2156
2156
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2175,14 +2175,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2175
2175
|
type: "response-complete";
|
|
2176
2176
|
userInputId: string;
|
|
2177
2177
|
changesAlreadyApplied: {
|
|
2178
|
-
type: "patch" | "file";
|
|
2179
2178
|
path: string;
|
|
2179
|
+
type: "file" | "patch";
|
|
2180
2180
|
content: string;
|
|
2181
2181
|
}[];
|
|
2182
2182
|
response: string;
|
|
2183
2183
|
changes: {
|
|
2184
|
-
type: "patch" | "file";
|
|
2185
2184
|
path: string;
|
|
2185
|
+
type: "file" | "patch";
|
|
2186
2186
|
content: string;
|
|
2187
2187
|
}[];
|
|
2188
2188
|
addedFileVersions: {
|
|
@@ -2200,14 +2200,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2200
2200
|
type: "response-complete";
|
|
2201
2201
|
userInputId: string;
|
|
2202
2202
|
changesAlreadyApplied: {
|
|
2203
|
-
type: "patch" | "file";
|
|
2204
2203
|
path: string;
|
|
2204
|
+
type: "file" | "patch";
|
|
2205
2205
|
content: string;
|
|
2206
2206
|
}[];
|
|
2207
2207
|
response: string;
|
|
2208
2208
|
changes: {
|
|
2209
|
-
type: "patch" | "file";
|
|
2210
2209
|
path: string;
|
|
2210
|
+
type: "file" | "patch";
|
|
2211
2211
|
content: string;
|
|
2212
2212
|
}[];
|
|
2213
2213
|
addedFileVersions: {
|
|
@@ -2238,13 +2238,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2238
2238
|
diffCached: z.ZodString;
|
|
2239
2239
|
lastCommitMessages: z.ZodString;
|
|
2240
2240
|
}, "strip", z.ZodTypeAny, {
|
|
2241
|
-
diff: string;
|
|
2242
2241
|
status: string;
|
|
2242
|
+
diff: string;
|
|
2243
2243
|
diffCached: string;
|
|
2244
2244
|
lastCommitMessages: string;
|
|
2245
2245
|
}, {
|
|
2246
|
-
diff: string;
|
|
2247
2246
|
status: string;
|
|
2247
|
+
diff: string;
|
|
2248
2248
|
diffCached: string;
|
|
2249
2249
|
lastCommitMessages: string;
|
|
2250
2250
|
}>;
|
|
@@ -2288,8 +2288,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2288
2288
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2289
2289
|
knowledgeFiles: Record<string, string>;
|
|
2290
2290
|
gitChanges: {
|
|
2291
|
-
diff: string;
|
|
2292
2291
|
status: string;
|
|
2292
|
+
diff: string;
|
|
2293
2293
|
diffCached: string;
|
|
2294
2294
|
lastCommitMessages: string;
|
|
2295
2295
|
};
|
|
@@ -2314,8 +2314,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2314
2314
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2315
2315
|
knowledgeFiles: Record<string, string>;
|
|
2316
2316
|
gitChanges: {
|
|
2317
|
-
diff: string;
|
|
2318
2317
|
status: string;
|
|
2318
|
+
diff: string;
|
|
2319
2319
|
diffCached: string;
|
|
2320
2320
|
lastCommitMessages: string;
|
|
2321
2321
|
};
|
|
@@ -2348,14 +2348,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2348
2348
|
type: "ephemeral";
|
|
2349
2349
|
}>>;
|
|
2350
2350
|
}, "strip", z.ZodTypeAny, {
|
|
2351
|
-
type: "text";
|
|
2352
2351
|
text: string;
|
|
2352
|
+
type: "text";
|
|
2353
2353
|
cache_control?: {
|
|
2354
2354
|
type: "ephemeral";
|
|
2355
2355
|
} | undefined;
|
|
2356
2356
|
}, {
|
|
2357
|
-
type: "text";
|
|
2358
2357
|
text: string;
|
|
2358
|
+
type: "text";
|
|
2359
2359
|
cache_control?: {
|
|
2360
2360
|
type: "ephemeral";
|
|
2361
2361
|
} | undefined;
|
|
@@ -2419,13 +2419,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2419
2419
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
2420
2420
|
data: z.ZodString;
|
|
2421
2421
|
}, "strip", z.ZodTypeAny, {
|
|
2422
|
+
data: string;
|
|
2422
2423
|
type: "base64";
|
|
2423
2424
|
media_type: "image/jpeg";
|
|
2424
|
-
data: string;
|
|
2425
2425
|
}, {
|
|
2426
|
+
data: string;
|
|
2426
2427
|
type: "base64";
|
|
2427
2428
|
media_type: "image/jpeg";
|
|
2428
|
-
data: string;
|
|
2429
2429
|
}>;
|
|
2430
2430
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2431
2431
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -2437,9 +2437,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2437
2437
|
}, "strip", z.ZodTypeAny, {
|
|
2438
2438
|
type: "image";
|
|
2439
2439
|
source: {
|
|
2440
|
+
data: string;
|
|
2440
2441
|
type: "base64";
|
|
2441
2442
|
media_type: "image/jpeg";
|
|
2442
|
-
data: string;
|
|
2443
2443
|
};
|
|
2444
2444
|
cache_control?: {
|
|
2445
2445
|
type: "ephemeral";
|
|
@@ -2447,9 +2447,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2447
2447
|
}, {
|
|
2448
2448
|
type: "image";
|
|
2449
2449
|
source: {
|
|
2450
|
+
data: string;
|
|
2450
2451
|
type: "base64";
|
|
2451
2452
|
media_type: "image/jpeg";
|
|
2452
|
-
data: string;
|
|
2453
2453
|
};
|
|
2454
2454
|
cache_control?: {
|
|
2455
2455
|
type: "ephemeral";
|
|
@@ -2457,8 +2457,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2457
2457
|
}>]>, "many">]>;
|
|
2458
2458
|
}, "strip", z.ZodTypeAny, {
|
|
2459
2459
|
content: string | ({
|
|
2460
|
-
type: "text";
|
|
2461
2460
|
text: string;
|
|
2461
|
+
type: "text";
|
|
2462
2462
|
cache_control?: {
|
|
2463
2463
|
type: "ephemeral";
|
|
2464
2464
|
} | undefined;
|
|
@@ -2480,9 +2480,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2480
2480
|
} | {
|
|
2481
2481
|
type: "image";
|
|
2482
2482
|
source: {
|
|
2483
|
+
data: string;
|
|
2483
2484
|
type: "base64";
|
|
2484
2485
|
media_type: "image/jpeg";
|
|
2485
|
-
data: string;
|
|
2486
2486
|
};
|
|
2487
2487
|
cache_control?: {
|
|
2488
2488
|
type: "ephemeral";
|
|
@@ -2491,8 +2491,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2491
2491
|
role: "user" | "assistant";
|
|
2492
2492
|
}, {
|
|
2493
2493
|
content: string | ({
|
|
2494
|
-
type: "text";
|
|
2495
2494
|
text: string;
|
|
2495
|
+
type: "text";
|
|
2496
2496
|
cache_control?: {
|
|
2497
2497
|
type: "ephemeral";
|
|
2498
2498
|
} | undefined;
|
|
@@ -2514,9 +2514,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2514
2514
|
} | {
|
|
2515
2515
|
type: "image";
|
|
2516
2516
|
source: {
|
|
2517
|
+
data: string;
|
|
2517
2518
|
type: "base64";
|
|
2518
2519
|
media_type: "image/jpeg";
|
|
2519
|
-
data: string;
|
|
2520
2520
|
};
|
|
2521
2521
|
cache_control?: {
|
|
2522
2522
|
type: "ephemeral";
|
|
@@ -2525,14 +2525,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2525
2525
|
role: "user" | "assistant";
|
|
2526
2526
|
}>, "many">;
|
|
2527
2527
|
}, "strip", z.ZodTypeAny, {
|
|
2528
|
+
agentContext: string;
|
|
2528
2529
|
fileContext: {
|
|
2529
2530
|
currentWorkingDirectory: string;
|
|
2530
2531
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2531
2532
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2532
2533
|
knowledgeFiles: Record<string, string>;
|
|
2533
2534
|
gitChanges: {
|
|
2534
|
-
diff: string;
|
|
2535
2535
|
status: string;
|
|
2536
|
+
diff: string;
|
|
2536
2537
|
diffCached: string;
|
|
2537
2538
|
lastCommitMessages: string;
|
|
2538
2539
|
};
|
|
@@ -2552,11 +2553,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2552
2553
|
}[][];
|
|
2553
2554
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2554
2555
|
};
|
|
2555
|
-
agentContext: string;
|
|
2556
2556
|
messageHistory: {
|
|
2557
2557
|
content: string | ({
|
|
2558
|
-
type: "text";
|
|
2559
2558
|
text: string;
|
|
2559
|
+
type: "text";
|
|
2560
2560
|
cache_control?: {
|
|
2561
2561
|
type: "ephemeral";
|
|
2562
2562
|
} | undefined;
|
|
@@ -2578,9 +2578,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2578
2578
|
} | {
|
|
2579
2579
|
type: "image";
|
|
2580
2580
|
source: {
|
|
2581
|
+
data: string;
|
|
2581
2582
|
type: "base64";
|
|
2582
2583
|
media_type: "image/jpeg";
|
|
2583
|
-
data: string;
|
|
2584
2584
|
};
|
|
2585
2585
|
cache_control?: {
|
|
2586
2586
|
type: "ephemeral";
|
|
@@ -2589,14 +2589,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2589
2589
|
role: "user" | "assistant";
|
|
2590
2590
|
}[];
|
|
2591
2591
|
}, {
|
|
2592
|
+
agentContext: string;
|
|
2592
2593
|
fileContext: {
|
|
2593
2594
|
currentWorkingDirectory: string;
|
|
2594
2595
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2595
2596
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2596
2597
|
knowledgeFiles: Record<string, string>;
|
|
2597
2598
|
gitChanges: {
|
|
2598
|
-
diff: string;
|
|
2599
2599
|
status: string;
|
|
2600
|
+
diff: string;
|
|
2600
2601
|
diffCached: string;
|
|
2601
2602
|
lastCommitMessages: string;
|
|
2602
2603
|
};
|
|
@@ -2616,11 +2617,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2616
2617
|
}[][];
|
|
2617
2618
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2618
2619
|
};
|
|
2619
|
-
agentContext: string;
|
|
2620
2620
|
messageHistory: {
|
|
2621
2621
|
content: string | ({
|
|
2622
|
-
type: "text";
|
|
2623
2622
|
text: string;
|
|
2623
|
+
type: "text";
|
|
2624
2624
|
cache_control?: {
|
|
2625
2625
|
type: "ephemeral";
|
|
2626
2626
|
} | undefined;
|
|
@@ -2642,9 +2642,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2642
2642
|
} | {
|
|
2643
2643
|
type: "image";
|
|
2644
2644
|
source: {
|
|
2645
|
+
data: string;
|
|
2645
2646
|
type: "base64";
|
|
2646
2647
|
media_type: "image/jpeg";
|
|
2647
|
-
data: string;
|
|
2648
2648
|
};
|
|
2649
2649
|
cache_control?: {
|
|
2650
2650
|
type: "ephemeral";
|
|
@@ -2690,14 +2690,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2690
2690
|
type: "prompt-response";
|
|
2691
2691
|
promptId: string;
|
|
2692
2692
|
agentState: {
|
|
2693
|
+
agentContext: string;
|
|
2693
2694
|
fileContext: {
|
|
2694
2695
|
currentWorkingDirectory: string;
|
|
2695
2696
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2696
2697
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2697
2698
|
knowledgeFiles: Record<string, string>;
|
|
2698
2699
|
gitChanges: {
|
|
2699
|
-
diff: string;
|
|
2700
2700
|
status: string;
|
|
2701
|
+
diff: string;
|
|
2701
2702
|
diffCached: string;
|
|
2702
2703
|
lastCommitMessages: string;
|
|
2703
2704
|
};
|
|
@@ -2717,11 +2718,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2717
2718
|
}[][];
|
|
2718
2719
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2719
2720
|
};
|
|
2720
|
-
agentContext: string;
|
|
2721
2721
|
messageHistory: {
|
|
2722
2722
|
content: string | ({
|
|
2723
|
-
type: "text";
|
|
2724
2723
|
text: string;
|
|
2724
|
+
type: "text";
|
|
2725
2725
|
cache_control?: {
|
|
2726
2726
|
type: "ephemeral";
|
|
2727
2727
|
} | undefined;
|
|
@@ -2743,9 +2743,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2743
2743
|
} | {
|
|
2744
2744
|
type: "image";
|
|
2745
2745
|
source: {
|
|
2746
|
+
data: string;
|
|
2746
2747
|
type: "base64";
|
|
2747
2748
|
media_type: "image/jpeg";
|
|
2748
|
-
data: string;
|
|
2749
2749
|
};
|
|
2750
2750
|
cache_control?: {
|
|
2751
2751
|
type: "ephemeral";
|
|
@@ -2774,14 +2774,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2774
2774
|
type: "prompt-response";
|
|
2775
2775
|
promptId: string;
|
|
2776
2776
|
agentState: {
|
|
2777
|
+
agentContext: string;
|
|
2777
2778
|
fileContext: {
|
|
2778
2779
|
currentWorkingDirectory: string;
|
|
2779
2780
|
fileTree: import("./util/file").FileTreeNode[];
|
|
2780
2781
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2781
2782
|
knowledgeFiles: Record<string, string>;
|
|
2782
2783
|
gitChanges: {
|
|
2783
|
-
diff: string;
|
|
2784
2784
|
status: string;
|
|
2785
|
+
diff: string;
|
|
2785
2786
|
diffCached: string;
|
|
2786
2787
|
lastCommitMessages: string;
|
|
2787
2788
|
};
|
|
@@ -2801,11 +2802,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2801
2802
|
}[][];
|
|
2802
2803
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2803
2804
|
};
|
|
2804
|
-
agentContext: string;
|
|
2805
2805
|
messageHistory: {
|
|
2806
2806
|
content: string | ({
|
|
2807
|
-
type: "text";
|
|
2808
2807
|
text: string;
|
|
2808
|
+
type: "text";
|
|
2809
2809
|
cache_control?: {
|
|
2810
2810
|
type: "ephemeral";
|
|
2811
2811
|
} | undefined;
|
|
@@ -2827,9 +2827,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2827
2827
|
} | {
|
|
2828
2828
|
type: "image";
|
|
2829
2829
|
source: {
|
|
2830
|
+
data: string;
|
|
2830
2831
|
type: "base64";
|
|
2831
2832
|
media_type: "image/jpeg";
|
|
2832
|
-
data: string;
|
|
2833
2833
|
};
|
|
2834
2834
|
cache_control?: {
|
|
2835
2835
|
type: "ephemeral";
|
|
@@ -2888,12 +2888,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2888
2888
|
path: z.ZodString;
|
|
2889
2889
|
content: z.ZodString;
|
|
2890
2890
|
}, "strip", z.ZodTypeAny, {
|
|
2891
|
-
type: "patch" | "file";
|
|
2892
2891
|
path: string;
|
|
2892
|
+
type: "file" | "patch";
|
|
2893
2893
|
content: string;
|
|
2894
2894
|
}, {
|
|
2895
|
-
type: "patch" | "file";
|
|
2896
2895
|
path: string;
|
|
2896
|
+
type: "file" | "patch";
|
|
2897
2897
|
content: string;
|
|
2898
2898
|
}>, "many">;
|
|
2899
2899
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2901,12 +2901,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2901
2901
|
path: z.ZodString;
|
|
2902
2902
|
content: z.ZodString;
|
|
2903
2903
|
}, "strip", z.ZodTypeAny, {
|
|
2904
|
-
type: "patch" | "file";
|
|
2905
2904
|
path: string;
|
|
2905
|
+
type: "file" | "patch";
|
|
2906
2906
|
content: string;
|
|
2907
2907
|
}, {
|
|
2908
|
-
type: "patch" | "file";
|
|
2909
2908
|
path: string;
|
|
2909
|
+
type: "file" | "patch";
|
|
2910
2910
|
content: string;
|
|
2911
2911
|
}>, "many">;
|
|
2912
2912
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2921,22 +2921,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2921
2921
|
}>, "many">;
|
|
2922
2922
|
resetFileVersions: z.ZodBoolean;
|
|
2923
2923
|
}, "strip", z.ZodTypeAny, {
|
|
2924
|
-
type: "tool-call";
|
|
2925
|
-
userInputId: string;
|
|
2926
2924
|
data: {
|
|
2927
2925
|
name: string;
|
|
2928
2926
|
id: string;
|
|
2929
2927
|
input: Record<string, any>;
|
|
2930
2928
|
};
|
|
2929
|
+
type: "tool-call";
|
|
2930
|
+
userInputId: string;
|
|
2931
2931
|
changesAlreadyApplied: {
|
|
2932
|
-
type: "patch" | "file";
|
|
2933
2932
|
path: string;
|
|
2933
|
+
type: "file" | "patch";
|
|
2934
2934
|
content: string;
|
|
2935
2935
|
}[];
|
|
2936
2936
|
response: string;
|
|
2937
2937
|
changes: {
|
|
2938
|
-
type: "patch" | "file";
|
|
2939
2938
|
path: string;
|
|
2939
|
+
type: "file" | "patch";
|
|
2940
2940
|
content: string;
|
|
2941
2941
|
}[];
|
|
2942
2942
|
addedFileVersions: {
|
|
@@ -2945,22 +2945,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2945
2945
|
}[];
|
|
2946
2946
|
resetFileVersions: boolean;
|
|
2947
2947
|
}, {
|
|
2948
|
-
type: "tool-call";
|
|
2949
|
-
userInputId: string;
|
|
2950
2948
|
data: {
|
|
2951
2949
|
name: string;
|
|
2952
2950
|
id: string;
|
|
2953
2951
|
input: Record<string, any>;
|
|
2954
2952
|
};
|
|
2953
|
+
type: "tool-call";
|
|
2954
|
+
userInputId: string;
|
|
2955
2955
|
changesAlreadyApplied: {
|
|
2956
|
-
type: "patch" | "file";
|
|
2957
2956
|
path: string;
|
|
2957
|
+
type: "file" | "patch";
|
|
2958
2958
|
content: string;
|
|
2959
2959
|
}[];
|
|
2960
2960
|
response: string;
|
|
2961
2961
|
changes: {
|
|
2962
|
-
type: "patch" | "file";
|
|
2963
2962
|
path: string;
|
|
2963
|
+
type: "file" | "patch";
|
|
2964
2964
|
content: string;
|
|
2965
2965
|
}[];
|
|
2966
2966
|
addedFileVersions: {
|
|
@@ -2974,12 +2974,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2974
2974
|
result: z.ZodString;
|
|
2975
2975
|
}, "strip", z.ZodTypeAny, {
|
|
2976
2976
|
type: "terminal-command-result";
|
|
2977
|
-
userInputId: string;
|
|
2978
2977
|
result: string;
|
|
2978
|
+
userInputId: string;
|
|
2979
2979
|
}, {
|
|
2980
2980
|
type: "terminal-command-result";
|
|
2981
|
-
userInputId: string;
|
|
2982
2981
|
result: string;
|
|
2982
|
+
userInputId: string;
|
|
2983
2983
|
}>, z.ZodObject<{
|
|
2984
2984
|
type: z.ZodLiteral<"npm-version-status">;
|
|
2985
2985
|
isUpToDate: z.ZodBoolean;
|
|
@@ -3046,11 +3046,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
3046
3046
|
type: z.ZodLiteral<"action-error">;
|
|
3047
3047
|
message: z.ZodString;
|
|
3048
3048
|
}, "strip", z.ZodTypeAny, {
|
|
3049
|
-
type: "action-error";
|
|
3050
3049
|
message: string;
|
|
3051
|
-
}, {
|
|
3052
3050
|
type: "action-error";
|
|
3051
|
+
}, {
|
|
3053
3052
|
message: string;
|
|
3053
|
+
type: "action-error";
|
|
3054
3054
|
}>, z.ZodObject<{
|
|
3055
3055
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3056
3056
|
commitMessage: z.ZodString;
|