codebuff 1.0.329 → 1.0.330
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/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +350 -96
- package/dist/common/actions.d.ts.map +1 -1
- package/dist/common/actions.js +0 -1
- package/dist/common/actions.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +45 -7
- package/dist/common/types/agent-state.d.ts.map +1 -1
- package/dist/common/types/agent-state.js +10 -1
- package/dist/common/types/agent-state.js.map +1 -1
- package/dist/common/util/file.d.ts +6 -3
- package/dist/common/util/file.d.ts.map +1 -1
- package/dist/common/util/file.js +2 -1
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +628 -176
- package/dist/common/websockets/websocket-schema.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/project-files.d.ts +2 -1
- package/dist/project-files.js +3 -2
- package/dist/project-files.js.map +1 -1
- package/dist/terminal/base.js +1 -1
- package/dist/terminal/base.js.map +1 -1
- package/package.json +1 -1
|
@@ -62,7 +62,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
62
62
|
agentState: z.ZodObject<{
|
|
63
63
|
agentContext: z.ZodString;
|
|
64
64
|
fileContext: z.ZodObject<{
|
|
65
|
-
|
|
65
|
+
projectRoot: z.ZodString;
|
|
66
|
+
cwd: z.ZodString;
|
|
66
67
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
67
68
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
68
69
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -119,7 +120,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
119
120
|
content: string;
|
|
120
121
|
}>, "many">, "many">>;
|
|
121
122
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
|
|
123
|
+
projectRoot: string;
|
|
124
|
+
cwd: string;
|
|
123
125
|
fileTree: import("../util/file").FileTreeNode[];
|
|
124
126
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
125
127
|
knowledgeFiles: Record<string, string>;
|
|
@@ -146,7 +148,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
146
148
|
content: string;
|
|
147
149
|
}[][] | undefined;
|
|
148
150
|
}, {
|
|
149
|
-
|
|
151
|
+
projectRoot: string;
|
|
152
|
+
cwd: string;
|
|
150
153
|
fileTree: import("../util/file").FileTreeNode[];
|
|
151
154
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
152
155
|
knowledgeFiles: Record<string, string>;
|
|
@@ -180,11 +183,23 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
180
183
|
}, {
|
|
181
184
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
182
185
|
}>>, "many">;
|
|
186
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
187
|
+
agentId: string;
|
|
188
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
189
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
190
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
191
|
+
}, z.ZodTypeDef, {
|
|
192
|
+
agentId: string;
|
|
193
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
194
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
195
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
196
|
+
}>, "many">>;
|
|
183
197
|
agentStepsRemaining: z.ZodNumber;
|
|
184
198
|
}, "strip", z.ZodTypeAny, {
|
|
185
199
|
agentContext: string;
|
|
186
200
|
fileContext: {
|
|
187
|
-
|
|
201
|
+
projectRoot: string;
|
|
202
|
+
cwd: string;
|
|
188
203
|
fileTree: import("../util/file").FileTreeNode[];
|
|
189
204
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
190
205
|
knowledgeFiles: Record<string, string>;
|
|
@@ -214,11 +229,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
214
229
|
messageHistory: (import("ai").CoreMessage & {
|
|
215
230
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
216
231
|
})[];
|
|
232
|
+
agents: {
|
|
233
|
+
agentId: string;
|
|
234
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
235
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
236
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
237
|
+
}[];
|
|
217
238
|
agentStepsRemaining: number;
|
|
218
239
|
}, {
|
|
219
240
|
agentContext: string;
|
|
220
241
|
fileContext: {
|
|
221
|
-
|
|
242
|
+
projectRoot: string;
|
|
243
|
+
cwd: string;
|
|
222
244
|
fileTree: import("../util/file").FileTreeNode[];
|
|
223
245
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
224
246
|
knowledgeFiles: Record<string, string>;
|
|
@@ -249,6 +271,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
249
271
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
250
272
|
})[];
|
|
251
273
|
agentStepsRemaining: number;
|
|
274
|
+
agents?: {
|
|
275
|
+
agentId: string;
|
|
276
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
277
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
278
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
279
|
+
}[] | undefined;
|
|
252
280
|
}>;
|
|
253
281
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
254
282
|
name: z.ZodString;
|
|
@@ -264,7 +292,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
264
292
|
result: string;
|
|
265
293
|
}>, "many">;
|
|
266
294
|
model: z.ZodOptional<z.ZodString>;
|
|
267
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
268
295
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
269
296
|
}, "strip", z.ZodTypeAny, {
|
|
270
297
|
type: "prompt";
|
|
@@ -274,7 +301,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
274
301
|
agentState: {
|
|
275
302
|
agentContext: string;
|
|
276
303
|
fileContext: {
|
|
277
|
-
|
|
304
|
+
projectRoot: string;
|
|
305
|
+
cwd: string;
|
|
278
306
|
fileTree: import("../util/file").FileTreeNode[];
|
|
279
307
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
280
308
|
knowledgeFiles: Record<string, string>;
|
|
@@ -304,6 +332,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
304
332
|
messageHistory: (import("ai").CoreMessage & {
|
|
305
333
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
306
334
|
})[];
|
|
335
|
+
agents: {
|
|
336
|
+
agentId: string;
|
|
337
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
338
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
339
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
340
|
+
}[];
|
|
307
341
|
agentStepsRemaining: number;
|
|
308
342
|
};
|
|
309
343
|
toolResults: {
|
|
@@ -311,7 +345,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
311
345
|
id: string;
|
|
312
346
|
result: string;
|
|
313
347
|
}[];
|
|
314
|
-
cwd?: string | undefined;
|
|
315
348
|
prompt?: string | undefined;
|
|
316
349
|
authToken?: string | undefined;
|
|
317
350
|
model?: string | undefined;
|
|
@@ -323,7 +356,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
323
356
|
agentState: {
|
|
324
357
|
agentContext: string;
|
|
325
358
|
fileContext: {
|
|
326
|
-
|
|
359
|
+
projectRoot: string;
|
|
360
|
+
cwd: string;
|
|
327
361
|
fileTree: import("../util/file").FileTreeNode[];
|
|
328
362
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
329
363
|
knowledgeFiles: Record<string, string>;
|
|
@@ -354,13 +388,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
354
388
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
355
389
|
})[];
|
|
356
390
|
agentStepsRemaining: number;
|
|
391
|
+
agents?: {
|
|
392
|
+
agentId: string;
|
|
393
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
394
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
395
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
396
|
+
}[] | undefined;
|
|
357
397
|
};
|
|
358
398
|
toolResults: {
|
|
359
399
|
name: string;
|
|
360
400
|
id: string;
|
|
361
401
|
result: string;
|
|
362
402
|
}[];
|
|
363
|
-
cwd?: string | undefined;
|
|
364
403
|
prompt?: string | undefined;
|
|
365
404
|
authToken?: string | undefined;
|
|
366
405
|
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
@@ -373,7 +412,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
373
412
|
agentState: z.ZodObject<{
|
|
374
413
|
agentContext: z.ZodString;
|
|
375
414
|
fileContext: z.ZodObject<{
|
|
376
|
-
|
|
415
|
+
projectRoot: z.ZodString;
|
|
416
|
+
cwd: z.ZodString;
|
|
377
417
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
378
418
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
379
419
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -430,7 +470,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
430
470
|
content: string;
|
|
431
471
|
}>, "many">, "many">>;
|
|
432
472
|
}, "strip", z.ZodTypeAny, {
|
|
433
|
-
|
|
473
|
+
projectRoot: string;
|
|
474
|
+
cwd: string;
|
|
434
475
|
fileTree: import("../util/file").FileTreeNode[];
|
|
435
476
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
436
477
|
knowledgeFiles: Record<string, string>;
|
|
@@ -457,7 +498,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
457
498
|
content: string;
|
|
458
499
|
}[][] | undefined;
|
|
459
500
|
}, {
|
|
460
|
-
|
|
501
|
+
projectRoot: string;
|
|
502
|
+
cwd: string;
|
|
461
503
|
fileTree: import("../util/file").FileTreeNode[];
|
|
462
504
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
463
505
|
knowledgeFiles: Record<string, string>;
|
|
@@ -491,11 +533,23 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
491
533
|
}, {
|
|
492
534
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
493
535
|
}>>, "many">;
|
|
536
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
537
|
+
agentId: string;
|
|
538
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
539
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
540
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
541
|
+
}, z.ZodTypeDef, {
|
|
542
|
+
agentId: string;
|
|
543
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
544
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
545
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
546
|
+
}>, "many">>;
|
|
494
547
|
agentStepsRemaining: z.ZodNumber;
|
|
495
548
|
}, "strip", z.ZodTypeAny, {
|
|
496
549
|
agentContext: string;
|
|
497
550
|
fileContext: {
|
|
498
|
-
|
|
551
|
+
projectRoot: string;
|
|
552
|
+
cwd: string;
|
|
499
553
|
fileTree: import("../util/file").FileTreeNode[];
|
|
500
554
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
501
555
|
knowledgeFiles: Record<string, string>;
|
|
@@ -525,11 +579,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
525
579
|
messageHistory: (import("ai").CoreMessage & {
|
|
526
580
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
527
581
|
})[];
|
|
582
|
+
agents: {
|
|
583
|
+
agentId: string;
|
|
584
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
585
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
586
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
587
|
+
}[];
|
|
528
588
|
agentStepsRemaining: number;
|
|
529
589
|
}, {
|
|
530
590
|
agentContext: string;
|
|
531
591
|
fileContext: {
|
|
532
|
-
|
|
592
|
+
projectRoot: string;
|
|
593
|
+
cwd: string;
|
|
533
594
|
fileTree: import("../util/file").FileTreeNode[];
|
|
534
595
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
535
596
|
knowledgeFiles: Record<string, string>;
|
|
@@ -560,6 +621,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
560
621
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
561
622
|
})[];
|
|
562
623
|
agentStepsRemaining: number;
|
|
624
|
+
agents?: {
|
|
625
|
+
agentId: string;
|
|
626
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
627
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
628
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
629
|
+
}[] | undefined;
|
|
563
630
|
}>;
|
|
564
631
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
565
632
|
name: z.ZodString;
|
|
@@ -588,7 +655,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
588
655
|
agentState: {
|
|
589
656
|
agentContext: string;
|
|
590
657
|
fileContext: {
|
|
591
|
-
|
|
658
|
+
projectRoot: string;
|
|
659
|
+
cwd: string;
|
|
592
660
|
fileTree: import("../util/file").FileTreeNode[];
|
|
593
661
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
594
662
|
knowledgeFiles: Record<string, string>;
|
|
@@ -618,6 +686,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
618
686
|
messageHistory: (import("ai").CoreMessage & {
|
|
619
687
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
620
688
|
})[];
|
|
689
|
+
agents: {
|
|
690
|
+
agentId: string;
|
|
691
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
692
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
693
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
694
|
+
}[];
|
|
621
695
|
agentStepsRemaining: number;
|
|
622
696
|
};
|
|
623
697
|
toolResults: {
|
|
@@ -637,7 +711,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
637
711
|
agentState: {
|
|
638
712
|
agentContext: string;
|
|
639
713
|
fileContext: {
|
|
640
|
-
|
|
714
|
+
projectRoot: string;
|
|
715
|
+
cwd: string;
|
|
641
716
|
fileTree: import("../util/file").FileTreeNode[];
|
|
642
717
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
643
718
|
knowledgeFiles: Record<string, string>;
|
|
@@ -668,6 +743,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
668
743
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
669
744
|
})[];
|
|
670
745
|
agentStepsRemaining: number;
|
|
746
|
+
agents?: {
|
|
747
|
+
agentId: string;
|
|
748
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
749
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
750
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
751
|
+
}[] | undefined;
|
|
671
752
|
};
|
|
672
753
|
toolResults: {
|
|
673
754
|
name: string;
|
|
@@ -697,7 +778,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
697
778
|
fingerprintId: z.ZodString;
|
|
698
779
|
authToken: z.ZodOptional<z.ZodString>;
|
|
699
780
|
fileContext: z.ZodObject<{
|
|
700
|
-
|
|
781
|
+
projectRoot: z.ZodString;
|
|
782
|
+
cwd: z.ZodString;
|
|
701
783
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
702
784
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
703
785
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -754,7 +836,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
754
836
|
content: string;
|
|
755
837
|
}>, "many">, "many">>;
|
|
756
838
|
}, "strip", z.ZodTypeAny, {
|
|
757
|
-
|
|
839
|
+
projectRoot: string;
|
|
840
|
+
cwd: string;
|
|
758
841
|
fileTree: import("../util/file").FileTreeNode[];
|
|
759
842
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
760
843
|
knowledgeFiles: Record<string, string>;
|
|
@@ -781,7 +864,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
781
864
|
content: string;
|
|
782
865
|
}[][] | undefined;
|
|
783
866
|
}, {
|
|
784
|
-
|
|
867
|
+
projectRoot: string;
|
|
868
|
+
cwd: string;
|
|
785
869
|
fileTree: import("../util/file").FileTreeNode[];
|
|
786
870
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
787
871
|
knowledgeFiles: Record<string, string>;
|
|
@@ -811,8 +895,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
811
895
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
812
896
|
}, "strip", z.ZodTypeAny, {
|
|
813
897
|
type: "init";
|
|
898
|
+
fingerprintId: string;
|
|
814
899
|
fileContext: {
|
|
815
|
-
|
|
900
|
+
projectRoot: string;
|
|
901
|
+
cwd: string;
|
|
816
902
|
fileTree: import("../util/file").FileTreeNode[];
|
|
817
903
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
818
904
|
knowledgeFiles: Record<string, string>;
|
|
@@ -839,13 +925,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
839
925
|
content: string;
|
|
840
926
|
}[][] | undefined;
|
|
841
927
|
};
|
|
842
|
-
fingerprintId: string;
|
|
843
928
|
authToken?: string | undefined;
|
|
844
929
|
repoUrl?: string | undefined;
|
|
845
930
|
}, {
|
|
846
931
|
type: "init";
|
|
932
|
+
fingerprintId: string;
|
|
847
933
|
fileContext: {
|
|
848
|
-
|
|
934
|
+
projectRoot: string;
|
|
935
|
+
cwd: string;
|
|
849
936
|
fileTree: import("../util/file").FileTreeNode[];
|
|
850
937
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
851
938
|
knowledgeFiles: Record<string, string>;
|
|
@@ -872,7 +959,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
872
959
|
content: string;
|
|
873
960
|
}[][] | undefined;
|
|
874
961
|
};
|
|
875
|
-
fingerprintId: string;
|
|
876
962
|
authToken?: string | undefined;
|
|
877
963
|
repoUrl?: string | undefined;
|
|
878
964
|
}>, z.ZodObject<{
|
|
@@ -901,7 +987,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
901
987
|
agentState: {
|
|
902
988
|
agentContext: string;
|
|
903
989
|
fileContext: {
|
|
904
|
-
|
|
990
|
+
projectRoot: string;
|
|
991
|
+
cwd: string;
|
|
905
992
|
fileTree: import("../util/file").FileTreeNode[];
|
|
906
993
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
907
994
|
knowledgeFiles: Record<string, string>;
|
|
@@ -931,6 +1018,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
931
1018
|
messageHistory: (import("ai").CoreMessage & {
|
|
932
1019
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
933
1020
|
})[];
|
|
1021
|
+
agents: {
|
|
1022
|
+
agentId: string;
|
|
1023
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1024
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1025
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1026
|
+
}[];
|
|
934
1027
|
agentStepsRemaining: number;
|
|
935
1028
|
};
|
|
936
1029
|
toolResults: {
|
|
@@ -938,7 +1031,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
938
1031
|
id: string;
|
|
939
1032
|
result: string;
|
|
940
1033
|
}[];
|
|
941
|
-
cwd?: string | undefined;
|
|
942
1034
|
prompt?: string | undefined;
|
|
943
1035
|
authToken?: string | undefined;
|
|
944
1036
|
model?: string | undefined;
|
|
@@ -951,7 +1043,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
951
1043
|
agentState: {
|
|
952
1044
|
agentContext: string;
|
|
953
1045
|
fileContext: {
|
|
954
|
-
|
|
1046
|
+
projectRoot: string;
|
|
1047
|
+
cwd: string;
|
|
955
1048
|
fileTree: import("../util/file").FileTreeNode[];
|
|
956
1049
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
957
1050
|
knowledgeFiles: Record<string, string>;
|
|
@@ -981,6 +1074,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
981
1074
|
messageHistory: (import("ai").CoreMessage & {
|
|
982
1075
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
983
1076
|
})[];
|
|
1077
|
+
agents: {
|
|
1078
|
+
agentId: string;
|
|
1079
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1080
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1081
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1082
|
+
}[];
|
|
984
1083
|
agentStepsRemaining: number;
|
|
985
1084
|
};
|
|
986
1085
|
toolResults: {
|
|
@@ -999,8 +1098,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
999
1098
|
requestId?: string | undefined;
|
|
1000
1099
|
} | {
|
|
1001
1100
|
type: "init";
|
|
1101
|
+
fingerprintId: string;
|
|
1002
1102
|
fileContext: {
|
|
1003
|
-
|
|
1103
|
+
projectRoot: string;
|
|
1104
|
+
cwd: string;
|
|
1004
1105
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1005
1106
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1006
1107
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1027,7 +1128,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1027
1128
|
content: string;
|
|
1028
1129
|
}[][] | undefined;
|
|
1029
1130
|
};
|
|
1030
|
-
fingerprintId: string;
|
|
1031
1131
|
authToken?: string | undefined;
|
|
1032
1132
|
repoUrl?: string | undefined;
|
|
1033
1133
|
} | {
|
|
@@ -1046,7 +1146,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1046
1146
|
agentState: {
|
|
1047
1147
|
agentContext: string;
|
|
1048
1148
|
fileContext: {
|
|
1049
|
-
|
|
1149
|
+
projectRoot: string;
|
|
1150
|
+
cwd: string;
|
|
1050
1151
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1051
1152
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1052
1153
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1077,13 +1178,18 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1077
1178
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1078
1179
|
})[];
|
|
1079
1180
|
agentStepsRemaining: number;
|
|
1181
|
+
agents?: {
|
|
1182
|
+
agentId: string;
|
|
1183
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1184
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1185
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1186
|
+
}[] | undefined;
|
|
1080
1187
|
};
|
|
1081
1188
|
toolResults: {
|
|
1082
1189
|
name: string;
|
|
1083
1190
|
id: string;
|
|
1084
1191
|
result: string;
|
|
1085
1192
|
}[];
|
|
1086
|
-
cwd?: string | undefined;
|
|
1087
1193
|
prompt?: string | undefined;
|
|
1088
1194
|
authToken?: string | undefined;
|
|
1089
1195
|
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
@@ -1096,7 +1202,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1096
1202
|
agentState: {
|
|
1097
1203
|
agentContext: string;
|
|
1098
1204
|
fileContext: {
|
|
1099
|
-
|
|
1205
|
+
projectRoot: string;
|
|
1206
|
+
cwd: string;
|
|
1100
1207
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1101
1208
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1102
1209
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1127,6 +1234,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1127
1234
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1128
1235
|
})[];
|
|
1129
1236
|
agentStepsRemaining: number;
|
|
1237
|
+
agents?: {
|
|
1238
|
+
agentId: string;
|
|
1239
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1240
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1241
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1242
|
+
}[] | undefined;
|
|
1130
1243
|
};
|
|
1131
1244
|
toolResults: {
|
|
1132
1245
|
name: string;
|
|
@@ -1145,8 +1258,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1145
1258
|
requestId?: string | undefined;
|
|
1146
1259
|
} | {
|
|
1147
1260
|
type: "init";
|
|
1261
|
+
fingerprintId: string;
|
|
1148
1262
|
fileContext: {
|
|
1149
|
-
|
|
1263
|
+
projectRoot: string;
|
|
1264
|
+
cwd: string;
|
|
1150
1265
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1151
1266
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1152
1267
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1173,7 +1288,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1173
1288
|
content: string;
|
|
1174
1289
|
}[][] | undefined;
|
|
1175
1290
|
};
|
|
1176
|
-
fingerprintId: string;
|
|
1177
1291
|
authToken?: string | undefined;
|
|
1178
1292
|
repoUrl?: string | undefined;
|
|
1179
1293
|
} | {
|
|
@@ -1243,7 +1357,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1243
1357
|
agentState: z.ZodObject<{
|
|
1244
1358
|
agentContext: z.ZodString;
|
|
1245
1359
|
fileContext: z.ZodObject<{
|
|
1246
|
-
|
|
1360
|
+
projectRoot: z.ZodString;
|
|
1361
|
+
cwd: z.ZodString;
|
|
1247
1362
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1248
1363
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1249
1364
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -1300,7 +1415,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1300
1415
|
content: string;
|
|
1301
1416
|
}>, "many">, "many">>;
|
|
1302
1417
|
}, "strip", z.ZodTypeAny, {
|
|
1303
|
-
|
|
1418
|
+
projectRoot: string;
|
|
1419
|
+
cwd: string;
|
|
1304
1420
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1305
1421
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1306
1422
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1327,7 +1443,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1327
1443
|
content: string;
|
|
1328
1444
|
}[][] | undefined;
|
|
1329
1445
|
}, {
|
|
1330
|
-
|
|
1446
|
+
projectRoot: string;
|
|
1447
|
+
cwd: string;
|
|
1331
1448
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1332
1449
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1333
1450
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1361,11 +1478,23 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1361
1478
|
}, {
|
|
1362
1479
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1363
1480
|
}>>, "many">;
|
|
1481
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
1482
|
+
agentId: string;
|
|
1483
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1484
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1485
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1486
|
+
}, z.ZodTypeDef, {
|
|
1487
|
+
agentId: string;
|
|
1488
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1489
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1490
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1491
|
+
}>, "many">>;
|
|
1364
1492
|
agentStepsRemaining: z.ZodNumber;
|
|
1365
1493
|
}, "strip", z.ZodTypeAny, {
|
|
1366
1494
|
agentContext: string;
|
|
1367
1495
|
fileContext: {
|
|
1368
|
-
|
|
1496
|
+
projectRoot: string;
|
|
1497
|
+
cwd: string;
|
|
1369
1498
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1370
1499
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1371
1500
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1395,11 +1524,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1395
1524
|
messageHistory: (import("ai").CoreMessage & {
|
|
1396
1525
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1397
1526
|
})[];
|
|
1527
|
+
agents: {
|
|
1528
|
+
agentId: string;
|
|
1529
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1530
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1531
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1532
|
+
}[];
|
|
1398
1533
|
agentStepsRemaining: number;
|
|
1399
1534
|
}, {
|
|
1400
1535
|
agentContext: string;
|
|
1401
1536
|
fileContext: {
|
|
1402
|
-
|
|
1537
|
+
projectRoot: string;
|
|
1538
|
+
cwd: string;
|
|
1403
1539
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1404
1540
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1405
1541
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1430,6 +1566,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1430
1566
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1431
1567
|
})[];
|
|
1432
1568
|
agentStepsRemaining: number;
|
|
1569
|
+
agents?: {
|
|
1570
|
+
agentId: string;
|
|
1571
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1572
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1573
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1574
|
+
}[] | undefined;
|
|
1433
1575
|
}>;
|
|
1434
1576
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1435
1577
|
name: z.ZodString;
|
|
@@ -1445,7 +1587,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1445
1587
|
result: string;
|
|
1446
1588
|
}>, "many">;
|
|
1447
1589
|
model: z.ZodOptional<z.ZodString>;
|
|
1448
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
1449
1590
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
1450
1591
|
}, "strip", z.ZodTypeAny, {
|
|
1451
1592
|
type: "prompt";
|
|
@@ -1455,7 +1596,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1455
1596
|
agentState: {
|
|
1456
1597
|
agentContext: string;
|
|
1457
1598
|
fileContext: {
|
|
1458
|
-
|
|
1599
|
+
projectRoot: string;
|
|
1600
|
+
cwd: string;
|
|
1459
1601
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1460
1602
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1461
1603
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1485,6 +1627,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1485
1627
|
messageHistory: (import("ai").CoreMessage & {
|
|
1486
1628
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1487
1629
|
})[];
|
|
1630
|
+
agents: {
|
|
1631
|
+
agentId: string;
|
|
1632
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1633
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1634
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1635
|
+
}[];
|
|
1488
1636
|
agentStepsRemaining: number;
|
|
1489
1637
|
};
|
|
1490
1638
|
toolResults: {
|
|
@@ -1492,7 +1640,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1492
1640
|
id: string;
|
|
1493
1641
|
result: string;
|
|
1494
1642
|
}[];
|
|
1495
|
-
cwd?: string | undefined;
|
|
1496
1643
|
prompt?: string | undefined;
|
|
1497
1644
|
authToken?: string | undefined;
|
|
1498
1645
|
model?: string | undefined;
|
|
@@ -1504,7 +1651,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1504
1651
|
agentState: {
|
|
1505
1652
|
agentContext: string;
|
|
1506
1653
|
fileContext: {
|
|
1507
|
-
|
|
1654
|
+
projectRoot: string;
|
|
1655
|
+
cwd: string;
|
|
1508
1656
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1509
1657
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1510
1658
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1535,13 +1683,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1535
1683
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1536
1684
|
})[];
|
|
1537
1685
|
agentStepsRemaining: number;
|
|
1686
|
+
agents?: {
|
|
1687
|
+
agentId: string;
|
|
1688
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1689
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1690
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1691
|
+
}[] | undefined;
|
|
1538
1692
|
};
|
|
1539
1693
|
toolResults: {
|
|
1540
1694
|
name: string;
|
|
1541
1695
|
id: string;
|
|
1542
1696
|
result: string;
|
|
1543
1697
|
}[];
|
|
1544
|
-
cwd?: string | undefined;
|
|
1545
1698
|
prompt?: string | undefined;
|
|
1546
1699
|
authToken?: string | undefined;
|
|
1547
1700
|
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
@@ -1554,7 +1707,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1554
1707
|
agentState: z.ZodObject<{
|
|
1555
1708
|
agentContext: z.ZodString;
|
|
1556
1709
|
fileContext: z.ZodObject<{
|
|
1557
|
-
|
|
1710
|
+
projectRoot: z.ZodString;
|
|
1711
|
+
cwd: z.ZodString;
|
|
1558
1712
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1559
1713
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1560
1714
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -1611,7 +1765,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1611
1765
|
content: string;
|
|
1612
1766
|
}>, "many">, "many">>;
|
|
1613
1767
|
}, "strip", z.ZodTypeAny, {
|
|
1614
|
-
|
|
1768
|
+
projectRoot: string;
|
|
1769
|
+
cwd: string;
|
|
1615
1770
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1616
1771
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1617
1772
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1638,7 +1793,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1638
1793
|
content: string;
|
|
1639
1794
|
}[][] | undefined;
|
|
1640
1795
|
}, {
|
|
1641
|
-
|
|
1796
|
+
projectRoot: string;
|
|
1797
|
+
cwd: string;
|
|
1642
1798
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1643
1799
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1644
1800
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1672,11 +1828,23 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1672
1828
|
}, {
|
|
1673
1829
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1674
1830
|
}>>, "many">;
|
|
1831
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
1832
|
+
agentId: string;
|
|
1833
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1834
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1835
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1836
|
+
}, z.ZodTypeDef, {
|
|
1837
|
+
agentId: string;
|
|
1838
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1839
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1840
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1841
|
+
}>, "many">>;
|
|
1675
1842
|
agentStepsRemaining: z.ZodNumber;
|
|
1676
1843
|
}, "strip", z.ZodTypeAny, {
|
|
1677
1844
|
agentContext: string;
|
|
1678
1845
|
fileContext: {
|
|
1679
|
-
|
|
1846
|
+
projectRoot: string;
|
|
1847
|
+
cwd: string;
|
|
1680
1848
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1681
1849
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1682
1850
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1706,11 +1874,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1706
1874
|
messageHistory: (import("ai").CoreMessage & {
|
|
1707
1875
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1708
1876
|
})[];
|
|
1877
|
+
agents: {
|
|
1878
|
+
agentId: string;
|
|
1879
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1880
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1881
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1882
|
+
}[];
|
|
1709
1883
|
agentStepsRemaining: number;
|
|
1710
1884
|
}, {
|
|
1711
1885
|
agentContext: string;
|
|
1712
1886
|
fileContext: {
|
|
1713
|
-
|
|
1887
|
+
projectRoot: string;
|
|
1888
|
+
cwd: string;
|
|
1714
1889
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1715
1890
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1716
1891
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1741,6 +1916,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1741
1916
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1742
1917
|
})[];
|
|
1743
1918
|
agentStepsRemaining: number;
|
|
1919
|
+
agents?: {
|
|
1920
|
+
agentId: string;
|
|
1921
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1922
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1923
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1924
|
+
}[] | undefined;
|
|
1744
1925
|
}>;
|
|
1745
1926
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1746
1927
|
name: z.ZodString;
|
|
@@ -1769,7 +1950,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1769
1950
|
agentState: {
|
|
1770
1951
|
agentContext: string;
|
|
1771
1952
|
fileContext: {
|
|
1772
|
-
|
|
1953
|
+
projectRoot: string;
|
|
1954
|
+
cwd: string;
|
|
1773
1955
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1774
1956
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1775
1957
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1799,6 +1981,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1799
1981
|
messageHistory: (import("ai").CoreMessage & {
|
|
1800
1982
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1801
1983
|
})[];
|
|
1984
|
+
agents: {
|
|
1985
|
+
agentId: string;
|
|
1986
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
1987
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
1988
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1989
|
+
}[];
|
|
1802
1990
|
agentStepsRemaining: number;
|
|
1803
1991
|
};
|
|
1804
1992
|
toolResults: {
|
|
@@ -1818,7 +2006,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1818
2006
|
agentState: {
|
|
1819
2007
|
agentContext: string;
|
|
1820
2008
|
fileContext: {
|
|
1821
|
-
|
|
2009
|
+
projectRoot: string;
|
|
2010
|
+
cwd: string;
|
|
1822
2011
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1823
2012
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1824
2013
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1849,6 +2038,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1849
2038
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1850
2039
|
})[];
|
|
1851
2040
|
agentStepsRemaining: number;
|
|
2041
|
+
agents?: {
|
|
2042
|
+
agentId: string;
|
|
2043
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2044
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2045
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2046
|
+
}[] | undefined;
|
|
1852
2047
|
};
|
|
1853
2048
|
toolResults: {
|
|
1854
2049
|
name: string;
|
|
@@ -1878,7 +2073,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1878
2073
|
fingerprintId: z.ZodString;
|
|
1879
2074
|
authToken: z.ZodOptional<z.ZodString>;
|
|
1880
2075
|
fileContext: z.ZodObject<{
|
|
1881
|
-
|
|
2076
|
+
projectRoot: z.ZodString;
|
|
2077
|
+
cwd: z.ZodString;
|
|
1882
2078
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1883
2079
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1884
2080
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -1935,7 +2131,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1935
2131
|
content: string;
|
|
1936
2132
|
}>, "many">, "many">>;
|
|
1937
2133
|
}, "strip", z.ZodTypeAny, {
|
|
1938
|
-
|
|
2134
|
+
projectRoot: string;
|
|
2135
|
+
cwd: string;
|
|
1939
2136
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1940
2137
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1941
2138
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1962,7 +2159,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1962
2159
|
content: string;
|
|
1963
2160
|
}[][] | undefined;
|
|
1964
2161
|
}, {
|
|
1965
|
-
|
|
2162
|
+
projectRoot: string;
|
|
2163
|
+
cwd: string;
|
|
1966
2164
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1967
2165
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1968
2166
|
knowledgeFiles: Record<string, string>;
|
|
@@ -1992,8 +2190,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1992
2190
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
1993
2191
|
}, "strip", z.ZodTypeAny, {
|
|
1994
2192
|
type: "init";
|
|
2193
|
+
fingerprintId: string;
|
|
1995
2194
|
fileContext: {
|
|
1996
|
-
|
|
2195
|
+
projectRoot: string;
|
|
2196
|
+
cwd: string;
|
|
1997
2197
|
fileTree: import("../util/file").FileTreeNode[];
|
|
1998
2198
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1999
2199
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2020,13 +2220,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2020
2220
|
content: string;
|
|
2021
2221
|
}[][] | undefined;
|
|
2022
2222
|
};
|
|
2023
|
-
fingerprintId: string;
|
|
2024
2223
|
authToken?: string | undefined;
|
|
2025
2224
|
repoUrl?: string | undefined;
|
|
2026
2225
|
}, {
|
|
2027
2226
|
type: "init";
|
|
2227
|
+
fingerprintId: string;
|
|
2028
2228
|
fileContext: {
|
|
2029
|
-
|
|
2229
|
+
projectRoot: string;
|
|
2230
|
+
cwd: string;
|
|
2030
2231
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2031
2232
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2032
2233
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2053,7 +2254,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2053
2254
|
content: string;
|
|
2054
2255
|
}[][] | undefined;
|
|
2055
2256
|
};
|
|
2056
|
-
fingerprintId: string;
|
|
2057
2257
|
authToken?: string | undefined;
|
|
2058
2258
|
repoUrl?: string | undefined;
|
|
2059
2259
|
}>, z.ZodObject<{
|
|
@@ -2082,7 +2282,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2082
2282
|
agentState: {
|
|
2083
2283
|
agentContext: string;
|
|
2084
2284
|
fileContext: {
|
|
2085
|
-
|
|
2285
|
+
projectRoot: string;
|
|
2286
|
+
cwd: string;
|
|
2086
2287
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2087
2288
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2088
2289
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2112,6 +2313,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2112
2313
|
messageHistory: (import("ai").CoreMessage & {
|
|
2113
2314
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2114
2315
|
})[];
|
|
2316
|
+
agents: {
|
|
2317
|
+
agentId: string;
|
|
2318
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2319
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2320
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2321
|
+
}[];
|
|
2115
2322
|
agentStepsRemaining: number;
|
|
2116
2323
|
};
|
|
2117
2324
|
toolResults: {
|
|
@@ -2119,7 +2326,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2119
2326
|
id: string;
|
|
2120
2327
|
result: string;
|
|
2121
2328
|
}[];
|
|
2122
|
-
cwd?: string | undefined;
|
|
2123
2329
|
prompt?: string | undefined;
|
|
2124
2330
|
authToken?: string | undefined;
|
|
2125
2331
|
model?: string | undefined;
|
|
@@ -2132,7 +2338,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2132
2338
|
agentState: {
|
|
2133
2339
|
agentContext: string;
|
|
2134
2340
|
fileContext: {
|
|
2135
|
-
|
|
2341
|
+
projectRoot: string;
|
|
2342
|
+
cwd: string;
|
|
2136
2343
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2137
2344
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2138
2345
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2162,6 +2369,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2162
2369
|
messageHistory: (import("ai").CoreMessage & {
|
|
2163
2370
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2164
2371
|
})[];
|
|
2372
|
+
agents: {
|
|
2373
|
+
agentId: string;
|
|
2374
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2375
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2376
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2377
|
+
}[];
|
|
2165
2378
|
agentStepsRemaining: number;
|
|
2166
2379
|
};
|
|
2167
2380
|
toolResults: {
|
|
@@ -2180,8 +2393,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2180
2393
|
requestId?: string | undefined;
|
|
2181
2394
|
} | {
|
|
2182
2395
|
type: "init";
|
|
2396
|
+
fingerprintId: string;
|
|
2183
2397
|
fileContext: {
|
|
2184
|
-
|
|
2398
|
+
projectRoot: string;
|
|
2399
|
+
cwd: string;
|
|
2185
2400
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2186
2401
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2187
2402
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2208,7 +2423,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2208
2423
|
content: string;
|
|
2209
2424
|
}[][] | undefined;
|
|
2210
2425
|
};
|
|
2211
|
-
fingerprintId: string;
|
|
2212
2426
|
authToken?: string | undefined;
|
|
2213
2427
|
repoUrl?: string | undefined;
|
|
2214
2428
|
} | {
|
|
@@ -2227,7 +2441,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2227
2441
|
agentState: {
|
|
2228
2442
|
agentContext: string;
|
|
2229
2443
|
fileContext: {
|
|
2230
|
-
|
|
2444
|
+
projectRoot: string;
|
|
2445
|
+
cwd: string;
|
|
2231
2446
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2232
2447
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2233
2448
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2258,13 +2473,18 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2258
2473
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2259
2474
|
})[];
|
|
2260
2475
|
agentStepsRemaining: number;
|
|
2476
|
+
agents?: {
|
|
2477
|
+
agentId: string;
|
|
2478
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2479
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2480
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2481
|
+
}[] | undefined;
|
|
2261
2482
|
};
|
|
2262
2483
|
toolResults: {
|
|
2263
2484
|
name: string;
|
|
2264
2485
|
id: string;
|
|
2265
2486
|
result: string;
|
|
2266
2487
|
}[];
|
|
2267
|
-
cwd?: string | undefined;
|
|
2268
2488
|
prompt?: string | undefined;
|
|
2269
2489
|
authToken?: string | undefined;
|
|
2270
2490
|
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
@@ -2277,7 +2497,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2277
2497
|
agentState: {
|
|
2278
2498
|
agentContext: string;
|
|
2279
2499
|
fileContext: {
|
|
2280
|
-
|
|
2500
|
+
projectRoot: string;
|
|
2501
|
+
cwd: string;
|
|
2281
2502
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2282
2503
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2283
2504
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2308,6 +2529,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2308
2529
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2309
2530
|
})[];
|
|
2310
2531
|
agentStepsRemaining: number;
|
|
2532
|
+
agents?: {
|
|
2533
|
+
agentId: string;
|
|
2534
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2535
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2536
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2537
|
+
}[] | undefined;
|
|
2311
2538
|
};
|
|
2312
2539
|
toolResults: {
|
|
2313
2540
|
name: string;
|
|
@@ -2326,8 +2553,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2326
2553
|
requestId?: string | undefined;
|
|
2327
2554
|
} | {
|
|
2328
2555
|
type: "init";
|
|
2556
|
+
fingerprintId: string;
|
|
2329
2557
|
fileContext: {
|
|
2330
|
-
|
|
2558
|
+
projectRoot: string;
|
|
2559
|
+
cwd: string;
|
|
2331
2560
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2332
2561
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2333
2562
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2354,7 +2583,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2354
2583
|
content: string;
|
|
2355
2584
|
}[][] | undefined;
|
|
2356
2585
|
};
|
|
2357
|
-
fingerprintId: string;
|
|
2358
2586
|
authToken?: string | undefined;
|
|
2359
2587
|
repoUrl?: string | undefined;
|
|
2360
2588
|
} | {
|
|
@@ -2408,12 +2636,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2408
2636
|
content: z.ZodString;
|
|
2409
2637
|
}, "strip", z.ZodTypeAny, {
|
|
2410
2638
|
path: string;
|
|
2411
|
-
type: "patch" | "file";
|
|
2412
2639
|
content: string;
|
|
2640
|
+
type: "file" | "patch";
|
|
2413
2641
|
}, {
|
|
2414
2642
|
path: string;
|
|
2415
|
-
type: "patch" | "file";
|
|
2416
2643
|
content: string;
|
|
2644
|
+
type: "file" | "patch";
|
|
2417
2645
|
}>, "many">;
|
|
2418
2646
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2419
2647
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -2421,12 +2649,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2421
2649
|
content: z.ZodString;
|
|
2422
2650
|
}, "strip", z.ZodTypeAny, {
|
|
2423
2651
|
path: string;
|
|
2424
|
-
type: "patch" | "file";
|
|
2425
2652
|
content: string;
|
|
2653
|
+
type: "file" | "patch";
|
|
2426
2654
|
}, {
|
|
2427
2655
|
path: string;
|
|
2428
|
-
type: "patch" | "file";
|
|
2429
2656
|
content: string;
|
|
2657
|
+
type: "file" | "patch";
|
|
2430
2658
|
}>, "many">;
|
|
2431
2659
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2432
2660
|
path: z.ZodString;
|
|
@@ -2451,13 +2679,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2451
2679
|
response: string;
|
|
2452
2680
|
changes: {
|
|
2453
2681
|
path: string;
|
|
2454
|
-
type: "patch" | "file";
|
|
2455
2682
|
content: string;
|
|
2683
|
+
type: "file" | "patch";
|
|
2456
2684
|
}[];
|
|
2457
2685
|
changesAlreadyApplied: {
|
|
2458
2686
|
path: string;
|
|
2459
|
-
type: "patch" | "file";
|
|
2460
2687
|
content: string;
|
|
2688
|
+
type: "file" | "patch";
|
|
2461
2689
|
}[];
|
|
2462
2690
|
addedFileVersions: {
|
|
2463
2691
|
path: string;
|
|
@@ -2475,13 +2703,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2475
2703
|
response: string;
|
|
2476
2704
|
changes: {
|
|
2477
2705
|
path: string;
|
|
2478
|
-
type: "patch" | "file";
|
|
2479
2706
|
content: string;
|
|
2707
|
+
type: "file" | "patch";
|
|
2480
2708
|
}[];
|
|
2481
2709
|
changesAlreadyApplied: {
|
|
2482
2710
|
path: string;
|
|
2483
|
-
type: "patch" | "file";
|
|
2484
2711
|
content: string;
|
|
2712
|
+
type: "file" | "patch";
|
|
2485
2713
|
}[];
|
|
2486
2714
|
addedFileVersions: {
|
|
2487
2715
|
path: string;
|
|
@@ -2499,7 +2727,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2499
2727
|
agentState: z.ZodObject<{
|
|
2500
2728
|
agentContext: z.ZodString;
|
|
2501
2729
|
fileContext: z.ZodObject<{
|
|
2502
|
-
|
|
2730
|
+
projectRoot: z.ZodString;
|
|
2731
|
+
cwd: z.ZodString;
|
|
2503
2732
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
2504
2733
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2505
2734
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -2556,7 +2785,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2556
2785
|
content: string;
|
|
2557
2786
|
}>, "many">, "many">>;
|
|
2558
2787
|
}, "strip", z.ZodTypeAny, {
|
|
2559
|
-
|
|
2788
|
+
projectRoot: string;
|
|
2789
|
+
cwd: string;
|
|
2560
2790
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2561
2791
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2562
2792
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2583,7 +2813,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2583
2813
|
content: string;
|
|
2584
2814
|
}[][] | undefined;
|
|
2585
2815
|
}, {
|
|
2586
|
-
|
|
2816
|
+
projectRoot: string;
|
|
2817
|
+
cwd: string;
|
|
2587
2818
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2588
2819
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2589
2820
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2617,11 +2848,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2617
2848
|
}, {
|
|
2618
2849
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2619
2850
|
}>>, "many">;
|
|
2851
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
2852
|
+
agentId: string;
|
|
2853
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2854
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2855
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2856
|
+
}, z.ZodTypeDef, {
|
|
2857
|
+
agentId: string;
|
|
2858
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2859
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2860
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2861
|
+
}>, "many">>;
|
|
2620
2862
|
agentStepsRemaining: z.ZodNumber;
|
|
2621
2863
|
}, "strip", z.ZodTypeAny, {
|
|
2622
2864
|
agentContext: string;
|
|
2623
2865
|
fileContext: {
|
|
2624
|
-
|
|
2866
|
+
projectRoot: string;
|
|
2867
|
+
cwd: string;
|
|
2625
2868
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2626
2869
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2627
2870
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2651,11 +2894,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2651
2894
|
messageHistory: (import("ai").CoreMessage & {
|
|
2652
2895
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2653
2896
|
})[];
|
|
2897
|
+
agents: {
|
|
2898
|
+
agentId: string;
|
|
2899
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2900
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2901
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2902
|
+
}[];
|
|
2654
2903
|
agentStepsRemaining: number;
|
|
2655
2904
|
}, {
|
|
2656
2905
|
agentContext: string;
|
|
2657
2906
|
fileContext: {
|
|
2658
|
-
|
|
2907
|
+
projectRoot: string;
|
|
2908
|
+
cwd: string;
|
|
2659
2909
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2660
2910
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2661
2911
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2686,6 +2936,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2686
2936
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2687
2937
|
})[];
|
|
2688
2938
|
agentStepsRemaining: number;
|
|
2939
|
+
agents?: {
|
|
2940
|
+
agentId: string;
|
|
2941
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
2942
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
2943
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
2944
|
+
}[] | undefined;
|
|
2689
2945
|
}>;
|
|
2690
2946
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
2691
2947
|
name: z.ZodString;
|
|
@@ -2693,12 +2949,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2693
2949
|
id: z.ZodString;
|
|
2694
2950
|
}, "strip", z.ZodTypeAny, {
|
|
2695
2951
|
name: string;
|
|
2696
|
-
parameters: Record<string, string>;
|
|
2697
2952
|
id: string;
|
|
2953
|
+
parameters: Record<string, string>;
|
|
2698
2954
|
}, {
|
|
2699
2955
|
name: string;
|
|
2700
|
-
parameters: Record<string, string>;
|
|
2701
2956
|
id: string;
|
|
2957
|
+
parameters: Record<string, string>;
|
|
2702
2958
|
}>, "many">;
|
|
2703
2959
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2704
2960
|
name: z.ZodString;
|
|
@@ -2719,7 +2975,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2719
2975
|
agentState: {
|
|
2720
2976
|
agentContext: string;
|
|
2721
2977
|
fileContext: {
|
|
2722
|
-
|
|
2978
|
+
projectRoot: string;
|
|
2979
|
+
cwd: string;
|
|
2723
2980
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2724
2981
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2725
2982
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2749,6 +3006,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2749
3006
|
messageHistory: (import("ai").CoreMessage & {
|
|
2750
3007
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2751
3008
|
})[];
|
|
3009
|
+
agents: {
|
|
3010
|
+
agentId: string;
|
|
3011
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3012
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3013
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3014
|
+
}[];
|
|
2752
3015
|
agentStepsRemaining: number;
|
|
2753
3016
|
};
|
|
2754
3017
|
toolResults: {
|
|
@@ -2758,8 +3021,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2758
3021
|
}[];
|
|
2759
3022
|
toolCalls: {
|
|
2760
3023
|
name: string;
|
|
2761
|
-
parameters: Record<string, string>;
|
|
2762
3024
|
id: string;
|
|
3025
|
+
parameters: Record<string, string>;
|
|
2763
3026
|
}[];
|
|
2764
3027
|
}, {
|
|
2765
3028
|
type: "prompt-response";
|
|
@@ -2767,7 +3030,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2767
3030
|
agentState: {
|
|
2768
3031
|
agentContext: string;
|
|
2769
3032
|
fileContext: {
|
|
2770
|
-
|
|
3033
|
+
projectRoot: string;
|
|
3034
|
+
cwd: string;
|
|
2771
3035
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2772
3036
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2773
3037
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2798,6 +3062,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2798
3062
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2799
3063
|
})[];
|
|
2800
3064
|
agentStepsRemaining: number;
|
|
3065
|
+
agents?: {
|
|
3066
|
+
agentId: string;
|
|
3067
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3068
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3069
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3070
|
+
}[] | undefined;
|
|
2801
3071
|
};
|
|
2802
3072
|
toolResults: {
|
|
2803
3073
|
name: string;
|
|
@@ -2806,8 +3076,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2806
3076
|
}[];
|
|
2807
3077
|
toolCalls: {
|
|
2808
3078
|
name: string;
|
|
2809
|
-
parameters: Record<string, string>;
|
|
2810
3079
|
id: string;
|
|
3080
|
+
parameters: Record<string, string>;
|
|
2811
3081
|
}[];
|
|
2812
3082
|
}>, z.ZodObject<{
|
|
2813
3083
|
type: z.ZodLiteral<"manager-prompt-response">;
|
|
@@ -2815,7 +3085,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2815
3085
|
agentState: z.ZodObject<{
|
|
2816
3086
|
agentContext: z.ZodString;
|
|
2817
3087
|
fileContext: z.ZodObject<{
|
|
2818
|
-
|
|
3088
|
+
projectRoot: z.ZodString;
|
|
3089
|
+
cwd: z.ZodString;
|
|
2819
3090
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
2820
3091
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2821
3092
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -2872,7 +3143,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2872
3143
|
content: string;
|
|
2873
3144
|
}>, "many">, "many">>;
|
|
2874
3145
|
}, "strip", z.ZodTypeAny, {
|
|
2875
|
-
|
|
3146
|
+
projectRoot: string;
|
|
3147
|
+
cwd: string;
|
|
2876
3148
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2877
3149
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2878
3150
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2899,7 +3171,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2899
3171
|
content: string;
|
|
2900
3172
|
}[][] | undefined;
|
|
2901
3173
|
}, {
|
|
2902
|
-
|
|
3174
|
+
projectRoot: string;
|
|
3175
|
+
cwd: string;
|
|
2903
3176
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2904
3177
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2905
3178
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2933,11 +3206,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2933
3206
|
}, {
|
|
2934
3207
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2935
3208
|
}>>, "many">;
|
|
3209
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
3210
|
+
agentId: string;
|
|
3211
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3212
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3213
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3214
|
+
}, z.ZodTypeDef, {
|
|
3215
|
+
agentId: string;
|
|
3216
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3217
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3218
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3219
|
+
}>, "many">>;
|
|
2936
3220
|
agentStepsRemaining: z.ZodNumber;
|
|
2937
3221
|
}, "strip", z.ZodTypeAny, {
|
|
2938
3222
|
agentContext: string;
|
|
2939
3223
|
fileContext: {
|
|
2940
|
-
|
|
3224
|
+
projectRoot: string;
|
|
3225
|
+
cwd: string;
|
|
2941
3226
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2942
3227
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2943
3228
|
knowledgeFiles: Record<string, string>;
|
|
@@ -2967,11 +3252,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2967
3252
|
messageHistory: (import("ai").CoreMessage & {
|
|
2968
3253
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2969
3254
|
})[];
|
|
3255
|
+
agents: {
|
|
3256
|
+
agentId: string;
|
|
3257
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3258
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3259
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3260
|
+
}[];
|
|
2970
3261
|
agentStepsRemaining: number;
|
|
2971
3262
|
}, {
|
|
2972
3263
|
agentContext: string;
|
|
2973
3264
|
fileContext: {
|
|
2974
|
-
|
|
3265
|
+
projectRoot: string;
|
|
3266
|
+
cwd: string;
|
|
2975
3267
|
fileTree: import("../util/file").FileTreeNode[];
|
|
2976
3268
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
2977
3269
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3002,6 +3294,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3002
3294
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3003
3295
|
})[];
|
|
3004
3296
|
agentStepsRemaining: number;
|
|
3297
|
+
agents?: {
|
|
3298
|
+
agentId: string;
|
|
3299
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3300
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3301
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3302
|
+
}[] | undefined;
|
|
3005
3303
|
}>;
|
|
3006
3304
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
3007
3305
|
name: z.ZodString;
|
|
@@ -3009,12 +3307,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3009
3307
|
id: z.ZodString;
|
|
3010
3308
|
}, "strip", z.ZodTypeAny, {
|
|
3011
3309
|
name: string;
|
|
3012
|
-
parameters: Record<string, string>;
|
|
3013
3310
|
id: string;
|
|
3311
|
+
parameters: Record<string, string>;
|
|
3014
3312
|
}, {
|
|
3015
3313
|
name: string;
|
|
3016
|
-
parameters: Record<string, string>;
|
|
3017
3314
|
id: string;
|
|
3315
|
+
parameters: Record<string, string>;
|
|
3018
3316
|
}>, "many">;
|
|
3019
3317
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
3020
3318
|
name: z.ZodString;
|
|
@@ -3035,7 +3333,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3035
3333
|
agentState: {
|
|
3036
3334
|
agentContext: string;
|
|
3037
3335
|
fileContext: {
|
|
3038
|
-
|
|
3336
|
+
projectRoot: string;
|
|
3337
|
+
cwd: string;
|
|
3039
3338
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3040
3339
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3041
3340
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3065,6 +3364,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3065
3364
|
messageHistory: (import("ai").CoreMessage & {
|
|
3066
3365
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3067
3366
|
})[];
|
|
3367
|
+
agents: {
|
|
3368
|
+
agentId: string;
|
|
3369
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3370
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3371
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3372
|
+
}[];
|
|
3068
3373
|
agentStepsRemaining: number;
|
|
3069
3374
|
};
|
|
3070
3375
|
toolResults: {
|
|
@@ -3074,8 +3379,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3074
3379
|
}[];
|
|
3075
3380
|
toolCalls: {
|
|
3076
3381
|
name: string;
|
|
3077
|
-
parameters: Record<string, string>;
|
|
3078
3382
|
id: string;
|
|
3383
|
+
parameters: Record<string, string>;
|
|
3079
3384
|
}[];
|
|
3080
3385
|
}, {
|
|
3081
3386
|
type: "manager-prompt-response";
|
|
@@ -3083,7 +3388,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3083
3388
|
agentState: {
|
|
3084
3389
|
agentContext: string;
|
|
3085
3390
|
fileContext: {
|
|
3086
|
-
|
|
3391
|
+
projectRoot: string;
|
|
3392
|
+
cwd: string;
|
|
3087
3393
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3088
3394
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3089
3395
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3114,6 +3420,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3114
3420
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3115
3421
|
})[];
|
|
3116
3422
|
agentStepsRemaining: number;
|
|
3423
|
+
agents?: {
|
|
3424
|
+
agentId: string;
|
|
3425
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3426
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3427
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3428
|
+
}[] | undefined;
|
|
3117
3429
|
};
|
|
3118
3430
|
toolResults: {
|
|
3119
3431
|
name: string;
|
|
@@ -3122,8 +3434,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3122
3434
|
}[];
|
|
3123
3435
|
toolCalls: {
|
|
3124
3436
|
name: string;
|
|
3125
|
-
parameters: Record<string, string>;
|
|
3126
3437
|
id: string;
|
|
3438
|
+
parameters: Record<string, string>;
|
|
3127
3439
|
}[];
|
|
3128
3440
|
}>, z.ZodObject<{
|
|
3129
3441
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3160,12 +3472,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3160
3472
|
content: z.ZodString;
|
|
3161
3473
|
}, "strip", z.ZodTypeAny, {
|
|
3162
3474
|
path: string;
|
|
3163
|
-
type: "patch" | "file";
|
|
3164
3475
|
content: string;
|
|
3476
|
+
type: "file" | "patch";
|
|
3165
3477
|
}, {
|
|
3166
3478
|
path: string;
|
|
3167
|
-
type: "patch" | "file";
|
|
3168
3479
|
content: string;
|
|
3480
|
+
type: "file" | "patch";
|
|
3169
3481
|
}>, "many">;
|
|
3170
3482
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3171
3483
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3173,12 +3485,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3173
3485
|
content: z.ZodString;
|
|
3174
3486
|
}, "strip", z.ZodTypeAny, {
|
|
3175
3487
|
path: string;
|
|
3176
|
-
type: "patch" | "file";
|
|
3177
3488
|
content: string;
|
|
3489
|
+
type: "file" | "patch";
|
|
3178
3490
|
}, {
|
|
3179
3491
|
path: string;
|
|
3180
|
-
type: "patch" | "file";
|
|
3181
3492
|
content: string;
|
|
3493
|
+
type: "file" | "patch";
|
|
3182
3494
|
}>, "many">;
|
|
3183
3495
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3184
3496
|
path: z.ZodString;
|
|
@@ -3197,13 +3509,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3197
3509
|
response: string;
|
|
3198
3510
|
changes: {
|
|
3199
3511
|
path: string;
|
|
3200
|
-
type: "patch" | "file";
|
|
3201
3512
|
content: string;
|
|
3513
|
+
type: "file" | "patch";
|
|
3202
3514
|
}[];
|
|
3203
3515
|
changesAlreadyApplied: {
|
|
3204
3516
|
path: string;
|
|
3205
|
-
type: "patch" | "file";
|
|
3206
3517
|
content: string;
|
|
3518
|
+
type: "file" | "patch";
|
|
3207
3519
|
}[];
|
|
3208
3520
|
addedFileVersions: {
|
|
3209
3521
|
path: string;
|
|
@@ -3221,13 +3533,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3221
3533
|
response: string;
|
|
3222
3534
|
changes: {
|
|
3223
3535
|
path: string;
|
|
3224
|
-
type: "patch" | "file";
|
|
3225
3536
|
content: string;
|
|
3537
|
+
type: "file" | "patch";
|
|
3226
3538
|
}[];
|
|
3227
3539
|
changesAlreadyApplied: {
|
|
3228
3540
|
path: string;
|
|
3229
|
-
type: "patch" | "file";
|
|
3230
3541
|
content: string;
|
|
3542
|
+
type: "file" | "patch";
|
|
3231
3543
|
}[];
|
|
3232
3544
|
addedFileVersions: {
|
|
3233
3545
|
path: string;
|
|
@@ -3372,13 +3684,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3372
3684
|
response: string;
|
|
3373
3685
|
changes: {
|
|
3374
3686
|
path: string;
|
|
3375
|
-
type: "patch" | "file";
|
|
3376
3687
|
content: string;
|
|
3688
|
+
type: "file" | "patch";
|
|
3377
3689
|
}[];
|
|
3378
3690
|
changesAlreadyApplied: {
|
|
3379
3691
|
path: string;
|
|
3380
|
-
type: "patch" | "file";
|
|
3381
3692
|
content: string;
|
|
3693
|
+
type: "file" | "patch";
|
|
3382
3694
|
}[];
|
|
3383
3695
|
addedFileVersions: {
|
|
3384
3696
|
path: string;
|
|
@@ -3400,7 +3712,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3400
3712
|
agentState: {
|
|
3401
3713
|
agentContext: string;
|
|
3402
3714
|
fileContext: {
|
|
3403
|
-
|
|
3715
|
+
projectRoot: string;
|
|
3716
|
+
cwd: string;
|
|
3404
3717
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3405
3718
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3406
3719
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3430,6 +3743,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3430
3743
|
messageHistory: (import("ai").CoreMessage & {
|
|
3431
3744
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3432
3745
|
})[];
|
|
3746
|
+
agents: {
|
|
3747
|
+
agentId: string;
|
|
3748
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3749
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3750
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3751
|
+
}[];
|
|
3433
3752
|
agentStepsRemaining: number;
|
|
3434
3753
|
};
|
|
3435
3754
|
toolResults: {
|
|
@@ -3439,8 +3758,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3439
3758
|
}[];
|
|
3440
3759
|
toolCalls: {
|
|
3441
3760
|
name: string;
|
|
3442
|
-
parameters: Record<string, string>;
|
|
3443
3761
|
id: string;
|
|
3762
|
+
parameters: Record<string, string>;
|
|
3444
3763
|
}[];
|
|
3445
3764
|
} | {
|
|
3446
3765
|
type: "manager-prompt-response";
|
|
@@ -3448,7 +3767,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3448
3767
|
agentState: {
|
|
3449
3768
|
agentContext: string;
|
|
3450
3769
|
fileContext: {
|
|
3451
|
-
|
|
3770
|
+
projectRoot: string;
|
|
3771
|
+
cwd: string;
|
|
3452
3772
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3453
3773
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3454
3774
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3478,6 +3798,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3478
3798
|
messageHistory: (import("ai").CoreMessage & {
|
|
3479
3799
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3480
3800
|
})[];
|
|
3801
|
+
agents: {
|
|
3802
|
+
agentId: string;
|
|
3803
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3804
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3805
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3806
|
+
}[];
|
|
3481
3807
|
agentStepsRemaining: number;
|
|
3482
3808
|
};
|
|
3483
3809
|
toolResults: {
|
|
@@ -3487,8 +3813,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3487
3813
|
}[];
|
|
3488
3814
|
toolCalls: {
|
|
3489
3815
|
name: string;
|
|
3490
|
-
parameters: Record<string, string>;
|
|
3491
3816
|
id: string;
|
|
3817
|
+
parameters: Record<string, string>;
|
|
3492
3818
|
}[];
|
|
3493
3819
|
} | {
|
|
3494
3820
|
type: "response-chunk";
|
|
@@ -3504,13 +3830,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3504
3830
|
response: string;
|
|
3505
3831
|
changes: {
|
|
3506
3832
|
path: string;
|
|
3507
|
-
type: "patch" | "file";
|
|
3508
3833
|
content: string;
|
|
3834
|
+
type: "file" | "patch";
|
|
3509
3835
|
}[];
|
|
3510
3836
|
changesAlreadyApplied: {
|
|
3511
3837
|
path: string;
|
|
3512
|
-
type: "patch" | "file";
|
|
3513
3838
|
content: string;
|
|
3839
|
+
type: "file" | "patch";
|
|
3514
3840
|
}[];
|
|
3515
3841
|
addedFileVersions: {
|
|
3516
3842
|
path: string;
|
|
@@ -3563,13 +3889,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3563
3889
|
response: string;
|
|
3564
3890
|
changes: {
|
|
3565
3891
|
path: string;
|
|
3566
|
-
type: "patch" | "file";
|
|
3567
3892
|
content: string;
|
|
3893
|
+
type: "file" | "patch";
|
|
3568
3894
|
}[];
|
|
3569
3895
|
changesAlreadyApplied: {
|
|
3570
3896
|
path: string;
|
|
3571
|
-
type: "patch" | "file";
|
|
3572
3897
|
content: string;
|
|
3898
|
+
type: "file" | "patch";
|
|
3573
3899
|
}[];
|
|
3574
3900
|
addedFileVersions: {
|
|
3575
3901
|
path: string;
|
|
@@ -3591,7 +3917,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3591
3917
|
agentState: {
|
|
3592
3918
|
agentContext: string;
|
|
3593
3919
|
fileContext: {
|
|
3594
|
-
|
|
3920
|
+
projectRoot: string;
|
|
3921
|
+
cwd: string;
|
|
3595
3922
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3596
3923
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3597
3924
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3622,6 +3949,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3622
3949
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3623
3950
|
})[];
|
|
3624
3951
|
agentStepsRemaining: number;
|
|
3952
|
+
agents?: {
|
|
3953
|
+
agentId: string;
|
|
3954
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
3955
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
3956
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
3957
|
+
}[] | undefined;
|
|
3625
3958
|
};
|
|
3626
3959
|
toolResults: {
|
|
3627
3960
|
name: string;
|
|
@@ -3630,8 +3963,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3630
3963
|
}[];
|
|
3631
3964
|
toolCalls: {
|
|
3632
3965
|
name: string;
|
|
3633
|
-
parameters: Record<string, string>;
|
|
3634
3966
|
id: string;
|
|
3967
|
+
parameters: Record<string, string>;
|
|
3635
3968
|
}[];
|
|
3636
3969
|
} | {
|
|
3637
3970
|
type: "manager-prompt-response";
|
|
@@ -3639,7 +3972,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3639
3972
|
agentState: {
|
|
3640
3973
|
agentContext: string;
|
|
3641
3974
|
fileContext: {
|
|
3642
|
-
|
|
3975
|
+
projectRoot: string;
|
|
3976
|
+
cwd: string;
|
|
3643
3977
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3644
3978
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3645
3979
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3670,6 +4004,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3670
4004
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3671
4005
|
})[];
|
|
3672
4006
|
agentStepsRemaining: number;
|
|
4007
|
+
agents?: {
|
|
4008
|
+
agentId: string;
|
|
4009
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4010
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4011
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4012
|
+
}[] | undefined;
|
|
3673
4013
|
};
|
|
3674
4014
|
toolResults: {
|
|
3675
4015
|
name: string;
|
|
@@ -3678,8 +4018,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3678
4018
|
}[];
|
|
3679
4019
|
toolCalls: {
|
|
3680
4020
|
name: string;
|
|
3681
|
-
parameters: Record<string, string>;
|
|
3682
4021
|
id: string;
|
|
4022
|
+
parameters: Record<string, string>;
|
|
3683
4023
|
}[];
|
|
3684
4024
|
} | {
|
|
3685
4025
|
type: "response-chunk";
|
|
@@ -3695,13 +4035,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3695
4035
|
response: string;
|
|
3696
4036
|
changes: {
|
|
3697
4037
|
path: string;
|
|
3698
|
-
type: "patch" | "file";
|
|
3699
4038
|
content: string;
|
|
4039
|
+
type: "file" | "patch";
|
|
3700
4040
|
}[];
|
|
3701
4041
|
changesAlreadyApplied: {
|
|
3702
4042
|
path: string;
|
|
3703
|
-
type: "patch" | "file";
|
|
3704
4043
|
content: string;
|
|
4044
|
+
type: "file" | "patch";
|
|
3705
4045
|
}[];
|
|
3706
4046
|
addedFileVersions: {
|
|
3707
4047
|
path: string;
|
|
@@ -3773,12 +4113,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3773
4113
|
content: z.ZodString;
|
|
3774
4114
|
}, "strip", z.ZodTypeAny, {
|
|
3775
4115
|
path: string;
|
|
3776
|
-
type: "patch" | "file";
|
|
3777
4116
|
content: string;
|
|
4117
|
+
type: "file" | "patch";
|
|
3778
4118
|
}, {
|
|
3779
4119
|
path: string;
|
|
3780
|
-
type: "patch" | "file";
|
|
3781
4120
|
content: string;
|
|
4121
|
+
type: "file" | "patch";
|
|
3782
4122
|
}>, "many">;
|
|
3783
4123
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3784
4124
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3786,12 +4126,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3786
4126
|
content: z.ZodString;
|
|
3787
4127
|
}, "strip", z.ZodTypeAny, {
|
|
3788
4128
|
path: string;
|
|
3789
|
-
type: "patch" | "file";
|
|
3790
4129
|
content: string;
|
|
4130
|
+
type: "file" | "patch";
|
|
3791
4131
|
}, {
|
|
3792
4132
|
path: string;
|
|
3793
|
-
type: "patch" | "file";
|
|
3794
4133
|
content: string;
|
|
4134
|
+
type: "file" | "patch";
|
|
3795
4135
|
}>, "many">;
|
|
3796
4136
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3797
4137
|
path: z.ZodString;
|
|
@@ -3816,13 +4156,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3816
4156
|
response: string;
|
|
3817
4157
|
changes: {
|
|
3818
4158
|
path: string;
|
|
3819
|
-
type: "patch" | "file";
|
|
3820
4159
|
content: string;
|
|
4160
|
+
type: "file" | "patch";
|
|
3821
4161
|
}[];
|
|
3822
4162
|
changesAlreadyApplied: {
|
|
3823
4163
|
path: string;
|
|
3824
|
-
type: "patch" | "file";
|
|
3825
4164
|
content: string;
|
|
4165
|
+
type: "file" | "patch";
|
|
3826
4166
|
}[];
|
|
3827
4167
|
addedFileVersions: {
|
|
3828
4168
|
path: string;
|
|
@@ -3840,13 +4180,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3840
4180
|
response: string;
|
|
3841
4181
|
changes: {
|
|
3842
4182
|
path: string;
|
|
3843
|
-
type: "patch" | "file";
|
|
3844
4183
|
content: string;
|
|
4184
|
+
type: "file" | "patch";
|
|
3845
4185
|
}[];
|
|
3846
4186
|
changesAlreadyApplied: {
|
|
3847
4187
|
path: string;
|
|
3848
|
-
type: "patch" | "file";
|
|
3849
4188
|
content: string;
|
|
4189
|
+
type: "file" | "patch";
|
|
3850
4190
|
}[];
|
|
3851
4191
|
addedFileVersions: {
|
|
3852
4192
|
path: string;
|
|
@@ -3864,7 +4204,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3864
4204
|
agentState: z.ZodObject<{
|
|
3865
4205
|
agentContext: z.ZodString;
|
|
3866
4206
|
fileContext: z.ZodObject<{
|
|
3867
|
-
|
|
4207
|
+
projectRoot: z.ZodString;
|
|
4208
|
+
cwd: z.ZodString;
|
|
3868
4209
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
3869
4210
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3870
4211
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -3921,7 +4262,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3921
4262
|
content: string;
|
|
3922
4263
|
}>, "many">, "many">>;
|
|
3923
4264
|
}, "strip", z.ZodTypeAny, {
|
|
3924
|
-
|
|
4265
|
+
projectRoot: string;
|
|
4266
|
+
cwd: string;
|
|
3925
4267
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3926
4268
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3927
4269
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3948,7 +4290,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3948
4290
|
content: string;
|
|
3949
4291
|
}[][] | undefined;
|
|
3950
4292
|
}, {
|
|
3951
|
-
|
|
4293
|
+
projectRoot: string;
|
|
4294
|
+
cwd: string;
|
|
3952
4295
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3953
4296
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3954
4297
|
knowledgeFiles: Record<string, string>;
|
|
@@ -3982,11 +4325,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3982
4325
|
}, {
|
|
3983
4326
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3984
4327
|
}>>, "many">;
|
|
4328
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
4329
|
+
agentId: string;
|
|
4330
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4331
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4332
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4333
|
+
}, z.ZodTypeDef, {
|
|
4334
|
+
agentId: string;
|
|
4335
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4336
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4337
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4338
|
+
}>, "many">>;
|
|
3985
4339
|
agentStepsRemaining: z.ZodNumber;
|
|
3986
4340
|
}, "strip", z.ZodTypeAny, {
|
|
3987
4341
|
agentContext: string;
|
|
3988
4342
|
fileContext: {
|
|
3989
|
-
|
|
4343
|
+
projectRoot: string;
|
|
4344
|
+
cwd: string;
|
|
3990
4345
|
fileTree: import("../util/file").FileTreeNode[];
|
|
3991
4346
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
3992
4347
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4016,11 +4371,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4016
4371
|
messageHistory: (import("ai").CoreMessage & {
|
|
4017
4372
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4018
4373
|
})[];
|
|
4374
|
+
agents: {
|
|
4375
|
+
agentId: string;
|
|
4376
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4377
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4378
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4379
|
+
}[];
|
|
4019
4380
|
agentStepsRemaining: number;
|
|
4020
4381
|
}, {
|
|
4021
4382
|
agentContext: string;
|
|
4022
4383
|
fileContext: {
|
|
4023
|
-
|
|
4384
|
+
projectRoot: string;
|
|
4385
|
+
cwd: string;
|
|
4024
4386
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4025
4387
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4026
4388
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4051,6 +4413,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4051
4413
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4052
4414
|
})[];
|
|
4053
4415
|
agentStepsRemaining: number;
|
|
4416
|
+
agents?: {
|
|
4417
|
+
agentId: string;
|
|
4418
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4419
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4420
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4421
|
+
}[] | undefined;
|
|
4054
4422
|
}>;
|
|
4055
4423
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
4056
4424
|
name: z.ZodString;
|
|
@@ -4058,12 +4426,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4058
4426
|
id: z.ZodString;
|
|
4059
4427
|
}, "strip", z.ZodTypeAny, {
|
|
4060
4428
|
name: string;
|
|
4061
|
-
parameters: Record<string, string>;
|
|
4062
4429
|
id: string;
|
|
4430
|
+
parameters: Record<string, string>;
|
|
4063
4431
|
}, {
|
|
4064
4432
|
name: string;
|
|
4065
|
-
parameters: Record<string, string>;
|
|
4066
4433
|
id: string;
|
|
4434
|
+
parameters: Record<string, string>;
|
|
4067
4435
|
}>, "many">;
|
|
4068
4436
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4069
4437
|
name: z.ZodString;
|
|
@@ -4084,7 +4452,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4084
4452
|
agentState: {
|
|
4085
4453
|
agentContext: string;
|
|
4086
4454
|
fileContext: {
|
|
4087
|
-
|
|
4455
|
+
projectRoot: string;
|
|
4456
|
+
cwd: string;
|
|
4088
4457
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4089
4458
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4090
4459
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4114,6 +4483,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4114
4483
|
messageHistory: (import("ai").CoreMessage & {
|
|
4115
4484
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4116
4485
|
})[];
|
|
4486
|
+
agents: {
|
|
4487
|
+
agentId: string;
|
|
4488
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4489
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4490
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4491
|
+
}[];
|
|
4117
4492
|
agentStepsRemaining: number;
|
|
4118
4493
|
};
|
|
4119
4494
|
toolResults: {
|
|
@@ -4123,8 +4498,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4123
4498
|
}[];
|
|
4124
4499
|
toolCalls: {
|
|
4125
4500
|
name: string;
|
|
4126
|
-
parameters: Record<string, string>;
|
|
4127
4501
|
id: string;
|
|
4502
|
+
parameters: Record<string, string>;
|
|
4128
4503
|
}[];
|
|
4129
4504
|
}, {
|
|
4130
4505
|
type: "prompt-response";
|
|
@@ -4132,7 +4507,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4132
4507
|
agentState: {
|
|
4133
4508
|
agentContext: string;
|
|
4134
4509
|
fileContext: {
|
|
4135
|
-
|
|
4510
|
+
projectRoot: string;
|
|
4511
|
+
cwd: string;
|
|
4136
4512
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4137
4513
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4138
4514
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4163,6 +4539,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4163
4539
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4164
4540
|
})[];
|
|
4165
4541
|
agentStepsRemaining: number;
|
|
4542
|
+
agents?: {
|
|
4543
|
+
agentId: string;
|
|
4544
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4545
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4546
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4547
|
+
}[] | undefined;
|
|
4166
4548
|
};
|
|
4167
4549
|
toolResults: {
|
|
4168
4550
|
name: string;
|
|
@@ -4171,8 +4553,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4171
4553
|
}[];
|
|
4172
4554
|
toolCalls: {
|
|
4173
4555
|
name: string;
|
|
4174
|
-
parameters: Record<string, string>;
|
|
4175
4556
|
id: string;
|
|
4557
|
+
parameters: Record<string, string>;
|
|
4176
4558
|
}[];
|
|
4177
4559
|
}>, z.ZodObject<{
|
|
4178
4560
|
type: z.ZodLiteral<"manager-prompt-response">;
|
|
@@ -4180,7 +4562,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4180
4562
|
agentState: z.ZodObject<{
|
|
4181
4563
|
agentContext: z.ZodString;
|
|
4182
4564
|
fileContext: z.ZodObject<{
|
|
4183
|
-
|
|
4565
|
+
projectRoot: z.ZodString;
|
|
4566
|
+
cwd: z.ZodString;
|
|
4184
4567
|
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
4185
4568
|
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4186
4569
|
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
@@ -4237,7 +4620,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4237
4620
|
content: string;
|
|
4238
4621
|
}>, "many">, "many">>;
|
|
4239
4622
|
}, "strip", z.ZodTypeAny, {
|
|
4240
|
-
|
|
4623
|
+
projectRoot: string;
|
|
4624
|
+
cwd: string;
|
|
4241
4625
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4242
4626
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4243
4627
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4264,7 +4648,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4264
4648
|
content: string;
|
|
4265
4649
|
}[][] | undefined;
|
|
4266
4650
|
}, {
|
|
4267
|
-
|
|
4651
|
+
projectRoot: string;
|
|
4652
|
+
cwd: string;
|
|
4268
4653
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4269
4654
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4270
4655
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4298,11 +4683,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4298
4683
|
}, {
|
|
4299
4684
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4300
4685
|
}>>, "many">;
|
|
4686
|
+
agents: z.ZodDefault<z.ZodArray<z.ZodType<{
|
|
4687
|
+
agentId: string;
|
|
4688
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4689
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4690
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4691
|
+
}, z.ZodTypeDef, {
|
|
4692
|
+
agentId: string;
|
|
4693
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4694
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4695
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4696
|
+
}>, "many">>;
|
|
4301
4697
|
agentStepsRemaining: z.ZodNumber;
|
|
4302
4698
|
}, "strip", z.ZodTypeAny, {
|
|
4303
4699
|
agentContext: string;
|
|
4304
4700
|
fileContext: {
|
|
4305
|
-
|
|
4701
|
+
projectRoot: string;
|
|
4702
|
+
cwd: string;
|
|
4306
4703
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4307
4704
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4308
4705
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4332,11 +4729,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4332
4729
|
messageHistory: (import("ai").CoreMessage & {
|
|
4333
4730
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4334
4731
|
})[];
|
|
4732
|
+
agents: {
|
|
4733
|
+
agentId: string;
|
|
4734
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4735
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4736
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4737
|
+
}[];
|
|
4335
4738
|
agentStepsRemaining: number;
|
|
4336
4739
|
}, {
|
|
4337
4740
|
agentContext: string;
|
|
4338
4741
|
fileContext: {
|
|
4339
|
-
|
|
4742
|
+
projectRoot: string;
|
|
4743
|
+
cwd: string;
|
|
4340
4744
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4341
4745
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4342
4746
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4367,6 +4771,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4367
4771
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4368
4772
|
})[];
|
|
4369
4773
|
agentStepsRemaining: number;
|
|
4774
|
+
agents?: {
|
|
4775
|
+
agentId: string;
|
|
4776
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4777
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4778
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4779
|
+
}[] | undefined;
|
|
4370
4780
|
}>;
|
|
4371
4781
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
4372
4782
|
name: z.ZodString;
|
|
@@ -4374,12 +4784,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4374
4784
|
id: z.ZodString;
|
|
4375
4785
|
}, "strip", z.ZodTypeAny, {
|
|
4376
4786
|
name: string;
|
|
4377
|
-
parameters: Record<string, string>;
|
|
4378
4787
|
id: string;
|
|
4788
|
+
parameters: Record<string, string>;
|
|
4379
4789
|
}, {
|
|
4380
4790
|
name: string;
|
|
4381
|
-
parameters: Record<string, string>;
|
|
4382
4791
|
id: string;
|
|
4792
|
+
parameters: Record<string, string>;
|
|
4383
4793
|
}>, "many">;
|
|
4384
4794
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4385
4795
|
name: z.ZodString;
|
|
@@ -4400,7 +4810,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4400
4810
|
agentState: {
|
|
4401
4811
|
agentContext: string;
|
|
4402
4812
|
fileContext: {
|
|
4403
|
-
|
|
4813
|
+
projectRoot: string;
|
|
4814
|
+
cwd: string;
|
|
4404
4815
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4405
4816
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4406
4817
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4430,6 +4841,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4430
4841
|
messageHistory: (import("ai").CoreMessage & {
|
|
4431
4842
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4432
4843
|
})[];
|
|
4844
|
+
agents: {
|
|
4845
|
+
agentId: string;
|
|
4846
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4847
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4848
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4849
|
+
}[];
|
|
4433
4850
|
agentStepsRemaining: number;
|
|
4434
4851
|
};
|
|
4435
4852
|
toolResults: {
|
|
@@ -4439,8 +4856,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4439
4856
|
}[];
|
|
4440
4857
|
toolCalls: {
|
|
4441
4858
|
name: string;
|
|
4442
|
-
parameters: Record<string, string>;
|
|
4443
4859
|
id: string;
|
|
4860
|
+
parameters: Record<string, string>;
|
|
4444
4861
|
}[];
|
|
4445
4862
|
}, {
|
|
4446
4863
|
type: "manager-prompt-response";
|
|
@@ -4448,7 +4865,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4448
4865
|
agentState: {
|
|
4449
4866
|
agentContext: string;
|
|
4450
4867
|
fileContext: {
|
|
4451
|
-
|
|
4868
|
+
projectRoot: string;
|
|
4869
|
+
cwd: string;
|
|
4452
4870
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4453
4871
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4454
4872
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4479,6 +4897,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4479
4897
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4480
4898
|
})[];
|
|
4481
4899
|
agentStepsRemaining: number;
|
|
4900
|
+
agents?: {
|
|
4901
|
+
agentId: string;
|
|
4902
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
4903
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
4904
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
4905
|
+
}[] | undefined;
|
|
4482
4906
|
};
|
|
4483
4907
|
toolResults: {
|
|
4484
4908
|
name: string;
|
|
@@ -4487,8 +4911,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4487
4911
|
}[];
|
|
4488
4912
|
toolCalls: {
|
|
4489
4913
|
name: string;
|
|
4490
|
-
parameters: Record<string, string>;
|
|
4491
4914
|
id: string;
|
|
4915
|
+
parameters: Record<string, string>;
|
|
4492
4916
|
}[];
|
|
4493
4917
|
}>, z.ZodObject<{
|
|
4494
4918
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4525,12 +4949,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4525
4949
|
content: z.ZodString;
|
|
4526
4950
|
}, "strip", z.ZodTypeAny, {
|
|
4527
4951
|
path: string;
|
|
4528
|
-
type: "patch" | "file";
|
|
4529
4952
|
content: string;
|
|
4953
|
+
type: "file" | "patch";
|
|
4530
4954
|
}, {
|
|
4531
4955
|
path: string;
|
|
4532
|
-
type: "patch" | "file";
|
|
4533
4956
|
content: string;
|
|
4957
|
+
type: "file" | "patch";
|
|
4534
4958
|
}>, "many">;
|
|
4535
4959
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4536
4960
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -4538,12 +4962,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4538
4962
|
content: z.ZodString;
|
|
4539
4963
|
}, "strip", z.ZodTypeAny, {
|
|
4540
4964
|
path: string;
|
|
4541
|
-
type: "patch" | "file";
|
|
4542
4965
|
content: string;
|
|
4966
|
+
type: "file" | "patch";
|
|
4543
4967
|
}, {
|
|
4544
4968
|
path: string;
|
|
4545
|
-
type: "patch" | "file";
|
|
4546
4969
|
content: string;
|
|
4970
|
+
type: "file" | "patch";
|
|
4547
4971
|
}>, "many">;
|
|
4548
4972
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4549
4973
|
path: z.ZodString;
|
|
@@ -4562,13 +4986,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4562
4986
|
response: string;
|
|
4563
4987
|
changes: {
|
|
4564
4988
|
path: string;
|
|
4565
|
-
type: "patch" | "file";
|
|
4566
4989
|
content: string;
|
|
4990
|
+
type: "file" | "patch";
|
|
4567
4991
|
}[];
|
|
4568
4992
|
changesAlreadyApplied: {
|
|
4569
4993
|
path: string;
|
|
4570
|
-
type: "patch" | "file";
|
|
4571
4994
|
content: string;
|
|
4995
|
+
type: "file" | "patch";
|
|
4572
4996
|
}[];
|
|
4573
4997
|
addedFileVersions: {
|
|
4574
4998
|
path: string;
|
|
@@ -4586,13 +5010,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4586
5010
|
response: string;
|
|
4587
5011
|
changes: {
|
|
4588
5012
|
path: string;
|
|
4589
|
-
type: "patch" | "file";
|
|
4590
5013
|
content: string;
|
|
5014
|
+
type: "file" | "patch";
|
|
4591
5015
|
}[];
|
|
4592
5016
|
changesAlreadyApplied: {
|
|
4593
5017
|
path: string;
|
|
4594
|
-
type: "patch" | "file";
|
|
4595
5018
|
content: string;
|
|
5019
|
+
type: "file" | "patch";
|
|
4596
5020
|
}[];
|
|
4597
5021
|
addedFileVersions: {
|
|
4598
5022
|
path: string;
|
|
@@ -4737,13 +5161,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4737
5161
|
response: string;
|
|
4738
5162
|
changes: {
|
|
4739
5163
|
path: string;
|
|
4740
|
-
type: "patch" | "file";
|
|
4741
5164
|
content: string;
|
|
5165
|
+
type: "file" | "patch";
|
|
4742
5166
|
}[];
|
|
4743
5167
|
changesAlreadyApplied: {
|
|
4744
5168
|
path: string;
|
|
4745
|
-
type: "patch" | "file";
|
|
4746
5169
|
content: string;
|
|
5170
|
+
type: "file" | "patch";
|
|
4747
5171
|
}[];
|
|
4748
5172
|
addedFileVersions: {
|
|
4749
5173
|
path: string;
|
|
@@ -4765,7 +5189,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4765
5189
|
agentState: {
|
|
4766
5190
|
agentContext: string;
|
|
4767
5191
|
fileContext: {
|
|
4768
|
-
|
|
5192
|
+
projectRoot: string;
|
|
5193
|
+
cwd: string;
|
|
4769
5194
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4770
5195
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4771
5196
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4795,6 +5220,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4795
5220
|
messageHistory: (import("ai").CoreMessage & {
|
|
4796
5221
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4797
5222
|
})[];
|
|
5223
|
+
agents: {
|
|
5224
|
+
agentId: string;
|
|
5225
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
5226
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
5227
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
5228
|
+
}[];
|
|
4798
5229
|
agentStepsRemaining: number;
|
|
4799
5230
|
};
|
|
4800
5231
|
toolResults: {
|
|
@@ -4804,8 +5235,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4804
5235
|
}[];
|
|
4805
5236
|
toolCalls: {
|
|
4806
5237
|
name: string;
|
|
4807
|
-
parameters: Record<string, string>;
|
|
4808
5238
|
id: string;
|
|
5239
|
+
parameters: Record<string, string>;
|
|
4809
5240
|
}[];
|
|
4810
5241
|
} | {
|
|
4811
5242
|
type: "manager-prompt-response";
|
|
@@ -4813,7 +5244,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4813
5244
|
agentState: {
|
|
4814
5245
|
agentContext: string;
|
|
4815
5246
|
fileContext: {
|
|
4816
|
-
|
|
5247
|
+
projectRoot: string;
|
|
5248
|
+
cwd: string;
|
|
4817
5249
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4818
5250
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4819
5251
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4843,6 +5275,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4843
5275
|
messageHistory: (import("ai").CoreMessage & {
|
|
4844
5276
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4845
5277
|
})[];
|
|
5278
|
+
agents: {
|
|
5279
|
+
agentId: string;
|
|
5280
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
5281
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
5282
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
5283
|
+
}[];
|
|
4846
5284
|
agentStepsRemaining: number;
|
|
4847
5285
|
};
|
|
4848
5286
|
toolResults: {
|
|
@@ -4852,8 +5290,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4852
5290
|
}[];
|
|
4853
5291
|
toolCalls: {
|
|
4854
5292
|
name: string;
|
|
4855
|
-
parameters: Record<string, string>;
|
|
4856
5293
|
id: string;
|
|
5294
|
+
parameters: Record<string, string>;
|
|
4857
5295
|
}[];
|
|
4858
5296
|
} | {
|
|
4859
5297
|
type: "response-chunk";
|
|
@@ -4869,13 +5307,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4869
5307
|
response: string;
|
|
4870
5308
|
changes: {
|
|
4871
5309
|
path: string;
|
|
4872
|
-
type: "patch" | "file";
|
|
4873
5310
|
content: string;
|
|
5311
|
+
type: "file" | "patch";
|
|
4874
5312
|
}[];
|
|
4875
5313
|
changesAlreadyApplied: {
|
|
4876
5314
|
path: string;
|
|
4877
|
-
type: "patch" | "file";
|
|
4878
5315
|
content: string;
|
|
5316
|
+
type: "file" | "patch";
|
|
4879
5317
|
}[];
|
|
4880
5318
|
addedFileVersions: {
|
|
4881
5319
|
path: string;
|
|
@@ -4928,13 +5366,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4928
5366
|
response: string;
|
|
4929
5367
|
changes: {
|
|
4930
5368
|
path: string;
|
|
4931
|
-
type: "patch" | "file";
|
|
4932
5369
|
content: string;
|
|
5370
|
+
type: "file" | "patch";
|
|
4933
5371
|
}[];
|
|
4934
5372
|
changesAlreadyApplied: {
|
|
4935
5373
|
path: string;
|
|
4936
|
-
type: "patch" | "file";
|
|
4937
5374
|
content: string;
|
|
5375
|
+
type: "file" | "patch";
|
|
4938
5376
|
}[];
|
|
4939
5377
|
addedFileVersions: {
|
|
4940
5378
|
path: string;
|
|
@@ -4956,7 +5394,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4956
5394
|
agentState: {
|
|
4957
5395
|
agentContext: string;
|
|
4958
5396
|
fileContext: {
|
|
4959
|
-
|
|
5397
|
+
projectRoot: string;
|
|
5398
|
+
cwd: string;
|
|
4960
5399
|
fileTree: import("../util/file").FileTreeNode[];
|
|
4961
5400
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
4962
5401
|
knowledgeFiles: Record<string, string>;
|
|
@@ -4987,6 +5426,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4987
5426
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4988
5427
|
})[];
|
|
4989
5428
|
agentStepsRemaining: number;
|
|
5429
|
+
agents?: {
|
|
5430
|
+
agentId: string;
|
|
5431
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
5432
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
5433
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
5434
|
+
}[] | undefined;
|
|
4990
5435
|
};
|
|
4991
5436
|
toolResults: {
|
|
4992
5437
|
name: string;
|
|
@@ -4995,8 +5440,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4995
5440
|
}[];
|
|
4996
5441
|
toolCalls: {
|
|
4997
5442
|
name: string;
|
|
4998
|
-
parameters: Record<string, string>;
|
|
4999
5443
|
id: string;
|
|
5444
|
+
parameters: Record<string, string>;
|
|
5000
5445
|
}[];
|
|
5001
5446
|
} | {
|
|
5002
5447
|
type: "manager-prompt-response";
|
|
@@ -5004,7 +5449,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5004
5449
|
agentState: {
|
|
5005
5450
|
agentContext: string;
|
|
5006
5451
|
fileContext: {
|
|
5007
|
-
|
|
5452
|
+
projectRoot: string;
|
|
5453
|
+
cwd: string;
|
|
5008
5454
|
fileTree: import("../util/file").FileTreeNode[];
|
|
5009
5455
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
5010
5456
|
knowledgeFiles: Record<string, string>;
|
|
@@ -5035,6 +5481,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5035
5481
|
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
5036
5482
|
})[];
|
|
5037
5483
|
agentStepsRemaining: number;
|
|
5484
|
+
agents?: {
|
|
5485
|
+
agentId: string;
|
|
5486
|
+
agentName: import("../types/agent-state").AgentTemplateName;
|
|
5487
|
+
agents: import("../types/agent-state").SubagentState[];
|
|
5488
|
+
messageHistory: import("../types/message").CodebuffMessage[];
|
|
5489
|
+
}[] | undefined;
|
|
5038
5490
|
};
|
|
5039
5491
|
toolResults: {
|
|
5040
5492
|
name: string;
|
|
@@ -5043,8 +5495,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5043
5495
|
}[];
|
|
5044
5496
|
toolCalls: {
|
|
5045
5497
|
name: string;
|
|
5046
|
-
parameters: Record<string, string>;
|
|
5047
5498
|
id: string;
|
|
5499
|
+
parameters: Record<string, string>;
|
|
5048
5500
|
}[];
|
|
5049
5501
|
} | {
|
|
5050
5502
|
type: "response-chunk";
|
|
@@ -5060,13 +5512,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5060
5512
|
response: string;
|
|
5061
5513
|
changes: {
|
|
5062
5514
|
path: string;
|
|
5063
|
-
type: "patch" | "file";
|
|
5064
5515
|
content: string;
|
|
5516
|
+
type: "file" | "patch";
|
|
5065
5517
|
}[];
|
|
5066
5518
|
changesAlreadyApplied: {
|
|
5067
5519
|
path: string;
|
|
5068
|
-
type: "patch" | "file";
|
|
5069
5520
|
content: string;
|
|
5521
|
+
type: "file" | "patch";
|
|
5070
5522
|
}[];
|
|
5071
5523
|
addedFileVersions: {
|
|
5072
5524
|
path: string;
|