codebuff 1.0.330 → 1.0.332
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/background-process-manager.js +2 -2
- package/dist/background-process-manager.js.map +1 -1
- package/dist/cli-definitions.js +0 -6
- package/dist/cli-definitions.js.map +1 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +2 -5
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +22 -235
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +409 -1497
- package/dist/common/actions.d.ts.map +1 -1
- package/dist/common/actions.js +5 -31
- package/dist/common/actions.js.map +1 -1
- package/dist/common/constants/tools.d.ts +0 -2
- package/dist/common/constants/tools.d.ts.map +1 -1
- package/dist/common/constants/tools.js +0 -3
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/constants.d.ts +0 -5
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/constants.js +1 -15
- package/dist/common/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +23 -20
- package/dist/common/types/agent-state.d.ts.map +1 -1
- package/dist/common/types/agent-state.js +17 -10
- package/dist/common/types/agent-state.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +748 -2624
- package/dist/common/websockets/websocket-schema.d.ts.map +1 -1
- package/dist/index.js +7 -12
- package/dist/index.js.map +1 -1
- package/dist/json-config/hooks.js +2 -2
- package/dist/json-config/hooks.js.map +1 -1
- package/dist/terminal/base.d.ts +1 -8
- package/dist/terminal/base.js +3 -117
- package/dist/terminal/base.js.map +1 -1
- package/dist/tool-handlers.d.ts +5 -9
- package/dist/tool-handlers.js +8 -36
- package/dist/tool-handlers.js.map +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/utils/analytics.js +35 -9
- package/dist/utils/analytics.js.map +1 -1
- package/dist/utils/tool-renderers.js +0 -6
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +1 -2
- package/dist/code-map/test-langs/test.d.ts +0 -12
- package/dist/code-map/test-langs/test.d.ts.map +0 -1
- package/dist/code-map/test-langs/test.js +0 -23
- package/dist/code-map/test-langs/test.js.map +0 -1
|
@@ -279,16 +279,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
279
279
|
}[] | undefined;
|
|
280
280
|
}>;
|
|
281
281
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
282
|
-
|
|
282
|
+
toolName: z.ZodString;
|
|
283
|
+
toolCallId: z.ZodString;
|
|
283
284
|
result: z.ZodString;
|
|
284
|
-
id: z.ZodString;
|
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
toolName: string;
|
|
287
|
+
toolCallId: string;
|
|
288
288
|
result: string;
|
|
289
289
|
}, {
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
toolName: string;
|
|
291
|
+
toolCallId: string;
|
|
292
292
|
result: string;
|
|
293
293
|
}>, "many">;
|
|
294
294
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -341,8 +341,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
341
341
|
agentStepsRemaining: number;
|
|
342
342
|
};
|
|
343
343
|
toolResults: {
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
toolName: string;
|
|
345
|
+
toolCallId: string;
|
|
346
346
|
result: string;
|
|
347
347
|
}[];
|
|
348
348
|
prompt?: string | undefined;
|
|
@@ -396,8 +396,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
396
396
|
}[] | undefined;
|
|
397
397
|
};
|
|
398
398
|
toolResults: {
|
|
399
|
-
|
|
400
|
-
|
|
399
|
+
toolName: string;
|
|
400
|
+
toolCallId: string;
|
|
401
401
|
result: string;
|
|
402
402
|
}[];
|
|
403
403
|
prompt?: string | undefined;
|
|
@@ -406,446 +406,90 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
406
406
|
model?: string | undefined;
|
|
407
407
|
repoUrl?: string | undefined;
|
|
408
408
|
}>, z.ZodObject<{
|
|
409
|
-
type: z.ZodLiteral<"
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}>;
|
|
438
|
-
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
439
|
-
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
440
|
-
systemInfo: z.ZodObject<{
|
|
441
|
-
platform: z.ZodString;
|
|
442
|
-
shell: z.ZodString;
|
|
443
|
-
nodeVersion: z.ZodString;
|
|
444
|
-
arch: z.ZodString;
|
|
445
|
-
homedir: z.ZodString;
|
|
446
|
-
cpus: z.ZodNumber;
|
|
447
|
-
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
platform: string;
|
|
449
|
-
shell: string;
|
|
450
|
-
nodeVersion: string;
|
|
451
|
-
arch: string;
|
|
452
|
-
homedir: string;
|
|
453
|
-
cpus: number;
|
|
454
|
-
}, {
|
|
455
|
-
platform: string;
|
|
456
|
-
shell: string;
|
|
457
|
-
nodeVersion: string;
|
|
458
|
-
arch: string;
|
|
459
|
-
homedir: string;
|
|
460
|
-
cpus: number;
|
|
461
|
-
}>;
|
|
462
|
-
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
463
|
-
path: z.ZodString;
|
|
464
|
-
content: z.ZodString;
|
|
465
|
-
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
path: string;
|
|
467
|
-
content: string;
|
|
468
|
-
}, {
|
|
469
|
-
path: string;
|
|
470
|
-
content: string;
|
|
471
|
-
}>, "many">, "many">>;
|
|
409
|
+
type: z.ZodLiteral<"read-files-response">;
|
|
410
|
+
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
411
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
type: "read-files-response";
|
|
414
|
+
files: Record<string, string | null>;
|
|
415
|
+
requestId?: string | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
type: "read-files-response";
|
|
418
|
+
files: Record<string, string | null>;
|
|
419
|
+
requestId?: string | undefined;
|
|
420
|
+
}>, z.ZodObject<{
|
|
421
|
+
type: z.ZodLiteral<"init">;
|
|
422
|
+
fingerprintId: z.ZodString;
|
|
423
|
+
authToken: z.ZodOptional<z.ZodString>;
|
|
424
|
+
fileContext: z.ZodObject<{
|
|
425
|
+
projectRoot: z.ZodString;
|
|
426
|
+
cwd: z.ZodString;
|
|
427
|
+
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
428
|
+
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
429
|
+
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
430
|
+
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
431
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
432
|
+
gitChanges: z.ZodObject<{
|
|
433
|
+
status: z.ZodString;
|
|
434
|
+
diff: z.ZodString;
|
|
435
|
+
diffCached: z.ZodString;
|
|
436
|
+
lastCommitMessages: z.ZodString;
|
|
472
437
|
}, "strip", z.ZodTypeAny, {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
knowledgeFiles: Record<string, string>;
|
|
478
|
-
gitChanges: {
|
|
479
|
-
status: string;
|
|
480
|
-
diff: string;
|
|
481
|
-
diffCached: string;
|
|
482
|
-
lastCommitMessages: string;
|
|
483
|
-
};
|
|
484
|
-
changesSinceLastChat: Record<string, string>;
|
|
485
|
-
shellConfigFiles: Record<string, string>;
|
|
486
|
-
systemInfo: {
|
|
487
|
-
platform: string;
|
|
488
|
-
shell: string;
|
|
489
|
-
nodeVersion: string;
|
|
490
|
-
arch: string;
|
|
491
|
-
homedir: string;
|
|
492
|
-
cpus: number;
|
|
493
|
-
};
|
|
494
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
495
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
496
|
-
fileVersions?: {
|
|
497
|
-
path: string;
|
|
498
|
-
content: string;
|
|
499
|
-
}[][] | undefined;
|
|
438
|
+
status: string;
|
|
439
|
+
diff: string;
|
|
440
|
+
diffCached: string;
|
|
441
|
+
lastCommitMessages: string;
|
|
500
442
|
}, {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
knowledgeFiles: Record<string, string>;
|
|
506
|
-
gitChanges: {
|
|
507
|
-
status: string;
|
|
508
|
-
diff: string;
|
|
509
|
-
diffCached: string;
|
|
510
|
-
lastCommitMessages: string;
|
|
511
|
-
};
|
|
512
|
-
changesSinceLastChat: Record<string, string>;
|
|
513
|
-
shellConfigFiles: Record<string, string>;
|
|
514
|
-
systemInfo: {
|
|
515
|
-
platform: string;
|
|
516
|
-
shell: string;
|
|
517
|
-
nodeVersion: string;
|
|
518
|
-
arch: string;
|
|
519
|
-
homedir: string;
|
|
520
|
-
cpus: number;
|
|
521
|
-
};
|
|
522
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
523
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
524
|
-
fileVersions?: {
|
|
525
|
-
path: string;
|
|
526
|
-
content: string;
|
|
527
|
-
}[][] | undefined;
|
|
443
|
+
status: string;
|
|
444
|
+
diff: string;
|
|
445
|
+
diffCached: string;
|
|
446
|
+
lastCommitMessages: string;
|
|
528
447
|
}>;
|
|
529
|
-
|
|
530
|
-
|
|
448
|
+
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
449
|
+
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
450
|
+
systemInfo: z.ZodObject<{
|
|
451
|
+
platform: z.ZodString;
|
|
452
|
+
shell: z.ZodString;
|
|
453
|
+
nodeVersion: z.ZodString;
|
|
454
|
+
arch: z.ZodString;
|
|
455
|
+
homedir: z.ZodString;
|
|
456
|
+
cpus: z.ZodNumber;
|
|
531
457
|
}, "strip", z.ZodTypeAny, {
|
|
532
|
-
|
|
458
|
+
platform: string;
|
|
459
|
+
shell: string;
|
|
460
|
+
nodeVersion: string;
|
|
461
|
+
arch: string;
|
|
462
|
+
homedir: string;
|
|
463
|
+
cpus: number;
|
|
533
464
|
}, {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
465
|
+
platform: string;
|
|
466
|
+
shell: string;
|
|
467
|
+
nodeVersion: string;
|
|
468
|
+
arch: string;
|
|
469
|
+
homedir: string;
|
|
470
|
+
cpus: number;
|
|
471
|
+
}>;
|
|
472
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
473
|
+
path: z.ZodString;
|
|
474
|
+
content: z.ZodString;
|
|
475
|
+
}, "strip", z.ZodTypeAny, {
|
|
476
|
+
path: string;
|
|
477
|
+
content: string;
|
|
478
|
+
}, {
|
|
479
|
+
path: string;
|
|
480
|
+
content: string;
|
|
481
|
+
}>, "many">, "many">>;
|
|
548
482
|
}, "strip", z.ZodTypeAny, {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
diffCached: string;
|
|
560
|
-
lastCommitMessages: string;
|
|
561
|
-
};
|
|
562
|
-
changesSinceLastChat: Record<string, string>;
|
|
563
|
-
shellConfigFiles: Record<string, string>;
|
|
564
|
-
systemInfo: {
|
|
565
|
-
platform: string;
|
|
566
|
-
shell: string;
|
|
567
|
-
nodeVersion: string;
|
|
568
|
-
arch: string;
|
|
569
|
-
homedir: string;
|
|
570
|
-
cpus: number;
|
|
571
|
-
};
|
|
572
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
573
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
574
|
-
fileVersions?: {
|
|
575
|
-
path: string;
|
|
576
|
-
content: string;
|
|
577
|
-
}[][] | undefined;
|
|
578
|
-
};
|
|
579
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
580
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
588
|
-
agentStepsRemaining: number;
|
|
589
|
-
}, {
|
|
590
|
-
agentContext: string;
|
|
591
|
-
fileContext: {
|
|
592
|
-
projectRoot: string;
|
|
593
|
-
cwd: string;
|
|
594
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
595
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
596
|
-
knowledgeFiles: Record<string, string>;
|
|
597
|
-
gitChanges: {
|
|
598
|
-
status: string;
|
|
599
|
-
diff: string;
|
|
600
|
-
diffCached: string;
|
|
601
|
-
lastCommitMessages: string;
|
|
602
|
-
};
|
|
603
|
-
changesSinceLastChat: Record<string, string>;
|
|
604
|
-
shellConfigFiles: Record<string, string>;
|
|
605
|
-
systemInfo: {
|
|
606
|
-
platform: string;
|
|
607
|
-
shell: string;
|
|
608
|
-
nodeVersion: string;
|
|
609
|
-
arch: string;
|
|
610
|
-
homedir: string;
|
|
611
|
-
cpus: number;
|
|
612
|
-
};
|
|
613
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
614
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
615
|
-
fileVersions?: {
|
|
616
|
-
path: string;
|
|
617
|
-
content: string;
|
|
618
|
-
}[][] | undefined;
|
|
619
|
-
};
|
|
620
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
621
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
622
|
-
})[];
|
|
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;
|
|
630
|
-
}>;
|
|
631
|
-
toolResults: z.ZodArray<z.ZodObject<{
|
|
632
|
-
name: z.ZodString;
|
|
633
|
-
result: z.ZodString;
|
|
634
|
-
id: z.ZodString;
|
|
635
|
-
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
name: string;
|
|
637
|
-
id: string;
|
|
638
|
-
result: string;
|
|
639
|
-
}, {
|
|
640
|
-
name: string;
|
|
641
|
-
id: string;
|
|
642
|
-
result: string;
|
|
643
|
-
}>, "many">;
|
|
644
|
-
fingerprintId: z.ZodString;
|
|
645
|
-
authToken: z.ZodOptional<z.ZodString>;
|
|
646
|
-
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max", "experimental", "ask"]>>>;
|
|
647
|
-
model: z.ZodOptional<z.ZodString>;
|
|
648
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
649
|
-
repoName: z.ZodOptional<z.ZodString>;
|
|
650
|
-
}, "strip", z.ZodTypeAny, {
|
|
651
|
-
type: "manager-prompt";
|
|
652
|
-
promptId: string;
|
|
653
|
-
fingerprintId: string;
|
|
654
|
-
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
655
|
-
agentState: {
|
|
656
|
-
agentContext: string;
|
|
657
|
-
fileContext: {
|
|
658
|
-
projectRoot: string;
|
|
659
|
-
cwd: string;
|
|
660
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
661
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
662
|
-
knowledgeFiles: Record<string, string>;
|
|
663
|
-
gitChanges: {
|
|
664
|
-
status: string;
|
|
665
|
-
diff: string;
|
|
666
|
-
diffCached: string;
|
|
667
|
-
lastCommitMessages: string;
|
|
668
|
-
};
|
|
669
|
-
changesSinceLastChat: Record<string, string>;
|
|
670
|
-
shellConfigFiles: Record<string, string>;
|
|
671
|
-
systemInfo: {
|
|
672
|
-
platform: string;
|
|
673
|
-
shell: string;
|
|
674
|
-
nodeVersion: string;
|
|
675
|
-
arch: string;
|
|
676
|
-
homedir: string;
|
|
677
|
-
cpus: number;
|
|
678
|
-
};
|
|
679
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
680
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
681
|
-
fileVersions?: {
|
|
682
|
-
path: string;
|
|
683
|
-
content: string;
|
|
684
|
-
}[][] | undefined;
|
|
685
|
-
};
|
|
686
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
687
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
695
|
-
agentStepsRemaining: number;
|
|
696
|
-
};
|
|
697
|
-
toolResults: {
|
|
698
|
-
name: string;
|
|
699
|
-
id: string;
|
|
700
|
-
result: string;
|
|
701
|
-
}[];
|
|
702
|
-
cwd?: string | undefined;
|
|
703
|
-
prompt?: string | undefined;
|
|
704
|
-
authToken?: string | undefined;
|
|
705
|
-
model?: string | undefined;
|
|
706
|
-
repoName?: string | undefined;
|
|
707
|
-
}, {
|
|
708
|
-
type: "manager-prompt";
|
|
709
|
-
promptId: string;
|
|
710
|
-
fingerprintId: string;
|
|
711
|
-
agentState: {
|
|
712
|
-
agentContext: string;
|
|
713
|
-
fileContext: {
|
|
714
|
-
projectRoot: string;
|
|
715
|
-
cwd: string;
|
|
716
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
717
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
718
|
-
knowledgeFiles: Record<string, string>;
|
|
719
|
-
gitChanges: {
|
|
720
|
-
status: string;
|
|
721
|
-
diff: string;
|
|
722
|
-
diffCached: string;
|
|
723
|
-
lastCommitMessages: string;
|
|
724
|
-
};
|
|
725
|
-
changesSinceLastChat: Record<string, string>;
|
|
726
|
-
shellConfigFiles: Record<string, string>;
|
|
727
|
-
systemInfo: {
|
|
728
|
-
platform: string;
|
|
729
|
-
shell: string;
|
|
730
|
-
nodeVersion: string;
|
|
731
|
-
arch: string;
|
|
732
|
-
homedir: string;
|
|
733
|
-
cpus: number;
|
|
734
|
-
};
|
|
735
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
736
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
737
|
-
fileVersions?: {
|
|
738
|
-
path: string;
|
|
739
|
-
content: string;
|
|
740
|
-
}[][] | undefined;
|
|
741
|
-
};
|
|
742
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
743
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
744
|
-
})[];
|
|
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;
|
|
752
|
-
};
|
|
753
|
-
toolResults: {
|
|
754
|
-
name: string;
|
|
755
|
-
id: string;
|
|
756
|
-
result: string;
|
|
757
|
-
}[];
|
|
758
|
-
cwd?: string | undefined;
|
|
759
|
-
prompt?: string | undefined;
|
|
760
|
-
authToken?: string | undefined;
|
|
761
|
-
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
762
|
-
model?: string | undefined;
|
|
763
|
-
repoName?: string | undefined;
|
|
764
|
-
}>, z.ZodObject<{
|
|
765
|
-
type: z.ZodLiteral<"read-files-response">;
|
|
766
|
-
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
767
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
768
|
-
}, "strip", z.ZodTypeAny, {
|
|
769
|
-
type: "read-files-response";
|
|
770
|
-
files: Record<string, string | null>;
|
|
771
|
-
requestId?: string | undefined;
|
|
772
|
-
}, {
|
|
773
|
-
type: "read-files-response";
|
|
774
|
-
files: Record<string, string | null>;
|
|
775
|
-
requestId?: string | undefined;
|
|
776
|
-
}>, z.ZodObject<{
|
|
777
|
-
type: z.ZodLiteral<"init">;
|
|
778
|
-
fingerprintId: z.ZodString;
|
|
779
|
-
authToken: z.ZodOptional<z.ZodString>;
|
|
780
|
-
fileContext: z.ZodObject<{
|
|
781
|
-
projectRoot: z.ZodString;
|
|
782
|
-
cwd: z.ZodString;
|
|
783
|
-
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
784
|
-
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
785
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
786
|
-
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
787
|
-
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
788
|
-
gitChanges: z.ZodObject<{
|
|
789
|
-
status: z.ZodString;
|
|
790
|
-
diff: z.ZodString;
|
|
791
|
-
diffCached: z.ZodString;
|
|
792
|
-
lastCommitMessages: z.ZodString;
|
|
793
|
-
}, "strip", z.ZodTypeAny, {
|
|
794
|
-
status: string;
|
|
795
|
-
diff: string;
|
|
796
|
-
diffCached: string;
|
|
797
|
-
lastCommitMessages: string;
|
|
798
|
-
}, {
|
|
799
|
-
status: string;
|
|
800
|
-
diff: string;
|
|
801
|
-
diffCached: string;
|
|
802
|
-
lastCommitMessages: string;
|
|
803
|
-
}>;
|
|
804
|
-
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
805
|
-
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
806
|
-
systemInfo: z.ZodObject<{
|
|
807
|
-
platform: z.ZodString;
|
|
808
|
-
shell: z.ZodString;
|
|
809
|
-
nodeVersion: z.ZodString;
|
|
810
|
-
arch: z.ZodString;
|
|
811
|
-
homedir: z.ZodString;
|
|
812
|
-
cpus: z.ZodNumber;
|
|
813
|
-
}, "strip", z.ZodTypeAny, {
|
|
814
|
-
platform: string;
|
|
815
|
-
shell: string;
|
|
816
|
-
nodeVersion: string;
|
|
817
|
-
arch: string;
|
|
818
|
-
homedir: string;
|
|
819
|
-
cpus: number;
|
|
820
|
-
}, {
|
|
821
|
-
platform: string;
|
|
822
|
-
shell: string;
|
|
823
|
-
nodeVersion: string;
|
|
824
|
-
arch: string;
|
|
825
|
-
homedir: string;
|
|
826
|
-
cpus: number;
|
|
827
|
-
}>;
|
|
828
|
-
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
829
|
-
path: z.ZodString;
|
|
830
|
-
content: z.ZodString;
|
|
831
|
-
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
path: string;
|
|
833
|
-
content: string;
|
|
834
|
-
}, {
|
|
835
|
-
path: string;
|
|
836
|
-
content: string;
|
|
837
|
-
}>, "many">, "many">>;
|
|
838
|
-
}, "strip", z.ZodTypeAny, {
|
|
839
|
-
projectRoot: string;
|
|
840
|
-
cwd: string;
|
|
841
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
842
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
843
|
-
knowledgeFiles: Record<string, string>;
|
|
844
|
-
gitChanges: {
|
|
845
|
-
status: string;
|
|
846
|
-
diff: string;
|
|
847
|
-
diffCached: string;
|
|
848
|
-
lastCommitMessages: string;
|
|
483
|
+
projectRoot: string;
|
|
484
|
+
cwd: string;
|
|
485
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
486
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
487
|
+
knowledgeFiles: Record<string, string>;
|
|
488
|
+
gitChanges: {
|
|
489
|
+
status: string;
|
|
490
|
+
diff: string;
|
|
491
|
+
diffCached: string;
|
|
492
|
+
lastCommitMessages: string;
|
|
849
493
|
};
|
|
850
494
|
changesSinceLastChat: Record<string, string>;
|
|
851
495
|
shellConfigFiles: Record<string, string>;
|
|
@@ -895,7 +539,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
895
539
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
896
540
|
}, "strip", z.ZodTypeAny, {
|
|
897
541
|
type: "init";
|
|
898
|
-
fingerprintId: string;
|
|
899
542
|
fileContext: {
|
|
900
543
|
projectRoot: string;
|
|
901
544
|
cwd: string;
|
|
@@ -925,11 +568,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
925
568
|
content: string;
|
|
926
569
|
}[][] | undefined;
|
|
927
570
|
};
|
|
571
|
+
fingerprintId: string;
|
|
928
572
|
authToken?: string | undefined;
|
|
929
573
|
repoUrl?: string | undefined;
|
|
930
574
|
}, {
|
|
931
575
|
type: "init";
|
|
932
|
-
fingerprintId: string;
|
|
933
576
|
fileContext: {
|
|
934
577
|
projectRoot: string;
|
|
935
578
|
cwd: string;
|
|
@@ -959,6 +602,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
959
602
|
content: string;
|
|
960
603
|
}[][] | undefined;
|
|
961
604
|
};
|
|
605
|
+
fingerprintId: string;
|
|
962
606
|
authToken?: string | undefined;
|
|
963
607
|
repoUrl?: string | undefined;
|
|
964
608
|
}>, z.ZodObject<{
|
|
@@ -1027,78 +671,20 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1027
671
|
agentStepsRemaining: number;
|
|
1028
672
|
};
|
|
1029
673
|
toolResults: {
|
|
1030
|
-
|
|
1031
|
-
|
|
674
|
+
toolName: string;
|
|
675
|
+
toolCallId: string;
|
|
1032
676
|
result: string;
|
|
1033
677
|
}[];
|
|
1034
678
|
prompt?: string | undefined;
|
|
1035
679
|
authToken?: string | undefined;
|
|
1036
680
|
model?: string | undefined;
|
|
1037
681
|
repoUrl?: string | undefined;
|
|
1038
|
-
} | {
|
|
1039
|
-
type: "manager-prompt";
|
|
1040
|
-
promptId: string;
|
|
1041
|
-
fingerprintId: string;
|
|
1042
|
-
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
1043
|
-
agentState: {
|
|
1044
|
-
agentContext: string;
|
|
1045
|
-
fileContext: {
|
|
1046
|
-
projectRoot: string;
|
|
1047
|
-
cwd: string;
|
|
1048
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1049
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1050
|
-
knowledgeFiles: Record<string, string>;
|
|
1051
|
-
gitChanges: {
|
|
1052
|
-
status: string;
|
|
1053
|
-
diff: string;
|
|
1054
|
-
diffCached: string;
|
|
1055
|
-
lastCommitMessages: string;
|
|
1056
|
-
};
|
|
1057
|
-
changesSinceLastChat: Record<string, string>;
|
|
1058
|
-
shellConfigFiles: Record<string, string>;
|
|
1059
|
-
systemInfo: {
|
|
1060
|
-
platform: string;
|
|
1061
|
-
shell: string;
|
|
1062
|
-
nodeVersion: string;
|
|
1063
|
-
arch: string;
|
|
1064
|
-
homedir: string;
|
|
1065
|
-
cpus: number;
|
|
1066
|
-
};
|
|
1067
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1068
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1069
|
-
fileVersions?: {
|
|
1070
|
-
path: string;
|
|
1071
|
-
content: string;
|
|
1072
|
-
}[][] | undefined;
|
|
1073
|
-
};
|
|
1074
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
1075
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
1083
|
-
agentStepsRemaining: number;
|
|
1084
|
-
};
|
|
1085
|
-
toolResults: {
|
|
1086
|
-
name: string;
|
|
1087
|
-
id: string;
|
|
1088
|
-
result: string;
|
|
1089
|
-
}[];
|
|
1090
|
-
cwd?: string | undefined;
|
|
1091
|
-
prompt?: string | undefined;
|
|
1092
|
-
authToken?: string | undefined;
|
|
1093
|
-
model?: string | undefined;
|
|
1094
|
-
repoName?: string | undefined;
|
|
1095
682
|
} | {
|
|
1096
683
|
type: "read-files-response";
|
|
1097
684
|
files: Record<string, string | null>;
|
|
1098
685
|
requestId?: string | undefined;
|
|
1099
686
|
} | {
|
|
1100
687
|
type: "init";
|
|
1101
|
-
fingerprintId: string;
|
|
1102
688
|
fileContext: {
|
|
1103
689
|
projectRoot: string;
|
|
1104
690
|
cwd: string;
|
|
@@ -1128,6 +714,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1128
714
|
content: string;
|
|
1129
715
|
}[][] | undefined;
|
|
1130
716
|
};
|
|
717
|
+
fingerprintId: string;
|
|
1131
718
|
authToken?: string | undefined;
|
|
1132
719
|
repoUrl?: string | undefined;
|
|
1133
720
|
} | {
|
|
@@ -1186,8 +773,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1186
773
|
}[] | undefined;
|
|
1187
774
|
};
|
|
1188
775
|
toolResults: {
|
|
1189
|
-
|
|
1190
|
-
|
|
776
|
+
toolName: string;
|
|
777
|
+
toolCallId: string;
|
|
1191
778
|
result: string;
|
|
1192
779
|
}[];
|
|
1193
780
|
prompt?: string | undefined;
|
|
@@ -1195,70 +782,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1195
782
|
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
1196
783
|
model?: string | undefined;
|
|
1197
784
|
repoUrl?: string | undefined;
|
|
1198
|
-
} | {
|
|
1199
|
-
type: "manager-prompt";
|
|
1200
|
-
promptId: string;
|
|
1201
|
-
fingerprintId: string;
|
|
1202
|
-
agentState: {
|
|
1203
|
-
agentContext: string;
|
|
1204
|
-
fileContext: {
|
|
1205
|
-
projectRoot: string;
|
|
1206
|
-
cwd: string;
|
|
1207
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1208
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1209
|
-
knowledgeFiles: Record<string, string>;
|
|
1210
|
-
gitChanges: {
|
|
1211
|
-
status: string;
|
|
1212
|
-
diff: string;
|
|
1213
|
-
diffCached: string;
|
|
1214
|
-
lastCommitMessages: string;
|
|
1215
|
-
};
|
|
1216
|
-
changesSinceLastChat: Record<string, string>;
|
|
1217
|
-
shellConfigFiles: Record<string, string>;
|
|
1218
|
-
systemInfo: {
|
|
1219
|
-
platform: string;
|
|
1220
|
-
shell: string;
|
|
1221
|
-
nodeVersion: string;
|
|
1222
|
-
arch: string;
|
|
1223
|
-
homedir: string;
|
|
1224
|
-
cpus: number;
|
|
1225
|
-
};
|
|
1226
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1227
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1228
|
-
fileVersions?: {
|
|
1229
|
-
path: string;
|
|
1230
|
-
content: string;
|
|
1231
|
-
}[][] | undefined;
|
|
1232
|
-
};
|
|
1233
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
1234
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1235
|
-
})[];
|
|
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;
|
|
1243
|
-
};
|
|
1244
|
-
toolResults: {
|
|
1245
|
-
name: string;
|
|
1246
|
-
id: string;
|
|
1247
|
-
result: string;
|
|
1248
|
-
}[];
|
|
1249
|
-
cwd?: string | undefined;
|
|
1250
|
-
prompt?: string | undefined;
|
|
1251
|
-
authToken?: string | undefined;
|
|
1252
|
-
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
1253
|
-
model?: string | undefined;
|
|
1254
|
-
repoName?: string | undefined;
|
|
1255
785
|
} | {
|
|
1256
786
|
type: "read-files-response";
|
|
1257
787
|
files: Record<string, string | null>;
|
|
1258
788
|
requestId?: string | undefined;
|
|
1259
789
|
} | {
|
|
1260
790
|
type: "init";
|
|
1261
|
-
fingerprintId: string;
|
|
1262
791
|
fileContext: {
|
|
1263
792
|
projectRoot: string;
|
|
1264
793
|
cwd: string;
|
|
@@ -1288,6 +817,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1288
817
|
content: string;
|
|
1289
818
|
}[][] | undefined;
|
|
1290
819
|
};
|
|
820
|
+
fingerprintId: string;
|
|
1291
821
|
authToken?: string | undefined;
|
|
1292
822
|
repoUrl?: string | undefined;
|
|
1293
823
|
} | {
|
|
@@ -1574,16 +1104,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1574
1104
|
}[] | undefined;
|
|
1575
1105
|
}>;
|
|
1576
1106
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1577
|
-
|
|
1107
|
+
toolName: z.ZodString;
|
|
1108
|
+
toolCallId: z.ZodString;
|
|
1578
1109
|
result: z.ZodString;
|
|
1579
|
-
id: z.ZodString;
|
|
1580
1110
|
}, "strip", z.ZodTypeAny, {
|
|
1581
|
-
|
|
1582
|
-
|
|
1111
|
+
toolName: string;
|
|
1112
|
+
toolCallId: string;
|
|
1583
1113
|
result: string;
|
|
1584
1114
|
}, {
|
|
1585
|
-
|
|
1586
|
-
|
|
1115
|
+
toolName: string;
|
|
1116
|
+
toolCallId: string;
|
|
1587
1117
|
result: string;
|
|
1588
1118
|
}>, "many">;
|
|
1589
1119
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -1636,8 +1166,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1636
1166
|
agentStepsRemaining: number;
|
|
1637
1167
|
};
|
|
1638
1168
|
toolResults: {
|
|
1639
|
-
|
|
1640
|
-
|
|
1169
|
+
toolName: string;
|
|
1170
|
+
toolCallId: string;
|
|
1641
1171
|
result: string;
|
|
1642
1172
|
}[];
|
|
1643
1173
|
prompt?: string | undefined;
|
|
@@ -1691,8 +1221,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1691
1221
|
}[] | undefined;
|
|
1692
1222
|
};
|
|
1693
1223
|
toolResults: {
|
|
1694
|
-
|
|
1695
|
-
|
|
1224
|
+
toolName: string;
|
|
1225
|
+
toolCallId: string;
|
|
1696
1226
|
result: string;
|
|
1697
1227
|
}[];
|
|
1698
1228
|
prompt?: string | undefined;
|
|
@@ -1701,146 +1231,229 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1701
1231
|
model?: string | undefined;
|
|
1702
1232
|
repoUrl?: string | undefined;
|
|
1703
1233
|
}>, z.ZodObject<{
|
|
1704
|
-
type: z.ZodLiteral<"
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
}>;
|
|
1733
|
-
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1734
|
-
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1735
|
-
systemInfo: z.ZodObject<{
|
|
1736
|
-
platform: z.ZodString;
|
|
1737
|
-
shell: z.ZodString;
|
|
1738
|
-
nodeVersion: z.ZodString;
|
|
1739
|
-
arch: z.ZodString;
|
|
1740
|
-
homedir: z.ZodString;
|
|
1741
|
-
cpus: z.ZodNumber;
|
|
1742
|
-
}, "strip", z.ZodTypeAny, {
|
|
1743
|
-
platform: string;
|
|
1744
|
-
shell: string;
|
|
1745
|
-
nodeVersion: string;
|
|
1746
|
-
arch: string;
|
|
1747
|
-
homedir: string;
|
|
1748
|
-
cpus: number;
|
|
1749
|
-
}, {
|
|
1750
|
-
platform: string;
|
|
1751
|
-
shell: string;
|
|
1752
|
-
nodeVersion: string;
|
|
1753
|
-
arch: string;
|
|
1754
|
-
homedir: string;
|
|
1755
|
-
cpus: number;
|
|
1756
|
-
}>;
|
|
1757
|
-
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1758
|
-
path: z.ZodString;
|
|
1759
|
-
content: z.ZodString;
|
|
1760
|
-
}, "strip", z.ZodTypeAny, {
|
|
1761
|
-
path: string;
|
|
1762
|
-
content: string;
|
|
1763
|
-
}, {
|
|
1764
|
-
path: string;
|
|
1765
|
-
content: string;
|
|
1766
|
-
}>, "many">, "many">>;
|
|
1234
|
+
type: z.ZodLiteral<"read-files-response">;
|
|
1235
|
+
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1236
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1237
|
+
}, "strip", z.ZodTypeAny, {
|
|
1238
|
+
type: "read-files-response";
|
|
1239
|
+
files: Record<string, string | null>;
|
|
1240
|
+
requestId?: string | undefined;
|
|
1241
|
+
}, {
|
|
1242
|
+
type: "read-files-response";
|
|
1243
|
+
files: Record<string, string | null>;
|
|
1244
|
+
requestId?: string | undefined;
|
|
1245
|
+
}>, z.ZodObject<{
|
|
1246
|
+
type: z.ZodLiteral<"init">;
|
|
1247
|
+
fingerprintId: z.ZodString;
|
|
1248
|
+
authToken: z.ZodOptional<z.ZodString>;
|
|
1249
|
+
fileContext: z.ZodObject<{
|
|
1250
|
+
projectRoot: z.ZodString;
|
|
1251
|
+
cwd: z.ZodString;
|
|
1252
|
+
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
1253
|
+
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1254
|
+
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
1255
|
+
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1256
|
+
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1257
|
+
gitChanges: z.ZodObject<{
|
|
1258
|
+
status: z.ZodString;
|
|
1259
|
+
diff: z.ZodString;
|
|
1260
|
+
diffCached: z.ZodString;
|
|
1261
|
+
lastCommitMessages: z.ZodString;
|
|
1767
1262
|
}, "strip", z.ZodTypeAny, {
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
knowledgeFiles: Record<string, string>;
|
|
1773
|
-
gitChanges: {
|
|
1774
|
-
status: string;
|
|
1775
|
-
diff: string;
|
|
1776
|
-
diffCached: string;
|
|
1777
|
-
lastCommitMessages: string;
|
|
1778
|
-
};
|
|
1779
|
-
changesSinceLastChat: Record<string, string>;
|
|
1780
|
-
shellConfigFiles: Record<string, string>;
|
|
1781
|
-
systemInfo: {
|
|
1782
|
-
platform: string;
|
|
1783
|
-
shell: string;
|
|
1784
|
-
nodeVersion: string;
|
|
1785
|
-
arch: string;
|
|
1786
|
-
homedir: string;
|
|
1787
|
-
cpus: number;
|
|
1788
|
-
};
|
|
1789
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1790
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1791
|
-
fileVersions?: {
|
|
1792
|
-
path: string;
|
|
1793
|
-
content: string;
|
|
1794
|
-
}[][] | undefined;
|
|
1263
|
+
status: string;
|
|
1264
|
+
diff: string;
|
|
1265
|
+
diffCached: string;
|
|
1266
|
+
lastCommitMessages: string;
|
|
1795
1267
|
}, {
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
knowledgeFiles: Record<string, string>;
|
|
1801
|
-
gitChanges: {
|
|
1802
|
-
status: string;
|
|
1803
|
-
diff: string;
|
|
1804
|
-
diffCached: string;
|
|
1805
|
-
lastCommitMessages: string;
|
|
1806
|
-
};
|
|
1807
|
-
changesSinceLastChat: Record<string, string>;
|
|
1808
|
-
shellConfigFiles: Record<string, string>;
|
|
1809
|
-
systemInfo: {
|
|
1810
|
-
platform: string;
|
|
1811
|
-
shell: string;
|
|
1812
|
-
nodeVersion: string;
|
|
1813
|
-
arch: string;
|
|
1814
|
-
homedir: string;
|
|
1815
|
-
cpus: number;
|
|
1816
|
-
};
|
|
1817
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1818
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1819
|
-
fileVersions?: {
|
|
1820
|
-
path: string;
|
|
1821
|
-
content: string;
|
|
1822
|
-
}[][] | undefined;
|
|
1268
|
+
status: string;
|
|
1269
|
+
diff: string;
|
|
1270
|
+
diffCached: string;
|
|
1271
|
+
lastCommitMessages: string;
|
|
1823
1272
|
}>;
|
|
1824
|
-
|
|
1825
|
-
|
|
1273
|
+
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1274
|
+
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1275
|
+
systemInfo: z.ZodObject<{
|
|
1276
|
+
platform: z.ZodString;
|
|
1277
|
+
shell: z.ZodString;
|
|
1278
|
+
nodeVersion: z.ZodString;
|
|
1279
|
+
arch: z.ZodString;
|
|
1280
|
+
homedir: z.ZodString;
|
|
1281
|
+
cpus: z.ZodNumber;
|
|
1826
1282
|
}, "strip", z.ZodTypeAny, {
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1283
|
+
platform: string;
|
|
1284
|
+
shell: string;
|
|
1285
|
+
nodeVersion: string;
|
|
1286
|
+
arch: string;
|
|
1287
|
+
homedir: string;
|
|
1288
|
+
cpus: number;
|
|
1289
|
+
}, {
|
|
1290
|
+
platform: string;
|
|
1291
|
+
shell: string;
|
|
1292
|
+
nodeVersion: string;
|
|
1293
|
+
arch: string;
|
|
1294
|
+
homedir: string;
|
|
1295
|
+
cpus: number;
|
|
1296
|
+
}>;
|
|
1297
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1298
|
+
path: z.ZodString;
|
|
1299
|
+
content: z.ZodString;
|
|
1300
|
+
}, "strip", z.ZodTypeAny, {
|
|
1301
|
+
path: string;
|
|
1302
|
+
content: string;
|
|
1303
|
+
}, {
|
|
1304
|
+
path: string;
|
|
1305
|
+
content: string;
|
|
1306
|
+
}>, "many">, "many">>;
|
|
1843
1307
|
}, "strip", z.ZodTypeAny, {
|
|
1308
|
+
projectRoot: string;
|
|
1309
|
+
cwd: string;
|
|
1310
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1311
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1312
|
+
knowledgeFiles: Record<string, string>;
|
|
1313
|
+
gitChanges: {
|
|
1314
|
+
status: string;
|
|
1315
|
+
diff: string;
|
|
1316
|
+
diffCached: string;
|
|
1317
|
+
lastCommitMessages: string;
|
|
1318
|
+
};
|
|
1319
|
+
changesSinceLastChat: Record<string, string>;
|
|
1320
|
+
shellConfigFiles: Record<string, string>;
|
|
1321
|
+
systemInfo: {
|
|
1322
|
+
platform: string;
|
|
1323
|
+
shell: string;
|
|
1324
|
+
nodeVersion: string;
|
|
1325
|
+
arch: string;
|
|
1326
|
+
homedir: string;
|
|
1327
|
+
cpus: number;
|
|
1328
|
+
};
|
|
1329
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1330
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1331
|
+
fileVersions?: {
|
|
1332
|
+
path: string;
|
|
1333
|
+
content: string;
|
|
1334
|
+
}[][] | undefined;
|
|
1335
|
+
}, {
|
|
1336
|
+
projectRoot: string;
|
|
1337
|
+
cwd: string;
|
|
1338
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1339
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1340
|
+
knowledgeFiles: Record<string, string>;
|
|
1341
|
+
gitChanges: {
|
|
1342
|
+
status: string;
|
|
1343
|
+
diff: string;
|
|
1344
|
+
diffCached: string;
|
|
1345
|
+
lastCommitMessages: string;
|
|
1346
|
+
};
|
|
1347
|
+
changesSinceLastChat: Record<string, string>;
|
|
1348
|
+
shellConfigFiles: Record<string, string>;
|
|
1349
|
+
systemInfo: {
|
|
1350
|
+
platform: string;
|
|
1351
|
+
shell: string;
|
|
1352
|
+
nodeVersion: string;
|
|
1353
|
+
arch: string;
|
|
1354
|
+
homedir: string;
|
|
1355
|
+
cpus: number;
|
|
1356
|
+
};
|
|
1357
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1358
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1359
|
+
fileVersions?: {
|
|
1360
|
+
path: string;
|
|
1361
|
+
content: string;
|
|
1362
|
+
}[][] | undefined;
|
|
1363
|
+
}>;
|
|
1364
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
1365
|
+
}, "strip", z.ZodTypeAny, {
|
|
1366
|
+
type: "init";
|
|
1367
|
+
fileContext: {
|
|
1368
|
+
projectRoot: string;
|
|
1369
|
+
cwd: string;
|
|
1370
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1371
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1372
|
+
knowledgeFiles: Record<string, string>;
|
|
1373
|
+
gitChanges: {
|
|
1374
|
+
status: string;
|
|
1375
|
+
diff: string;
|
|
1376
|
+
diffCached: string;
|
|
1377
|
+
lastCommitMessages: string;
|
|
1378
|
+
};
|
|
1379
|
+
changesSinceLastChat: Record<string, string>;
|
|
1380
|
+
shellConfigFiles: Record<string, string>;
|
|
1381
|
+
systemInfo: {
|
|
1382
|
+
platform: string;
|
|
1383
|
+
shell: string;
|
|
1384
|
+
nodeVersion: string;
|
|
1385
|
+
arch: string;
|
|
1386
|
+
homedir: string;
|
|
1387
|
+
cpus: number;
|
|
1388
|
+
};
|
|
1389
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1390
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1391
|
+
fileVersions?: {
|
|
1392
|
+
path: string;
|
|
1393
|
+
content: string;
|
|
1394
|
+
}[][] | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
fingerprintId: string;
|
|
1397
|
+
authToken?: string | undefined;
|
|
1398
|
+
repoUrl?: string | undefined;
|
|
1399
|
+
}, {
|
|
1400
|
+
type: "init";
|
|
1401
|
+
fileContext: {
|
|
1402
|
+
projectRoot: string;
|
|
1403
|
+
cwd: string;
|
|
1404
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1405
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1406
|
+
knowledgeFiles: Record<string, string>;
|
|
1407
|
+
gitChanges: {
|
|
1408
|
+
status: string;
|
|
1409
|
+
diff: string;
|
|
1410
|
+
diffCached: string;
|
|
1411
|
+
lastCommitMessages: string;
|
|
1412
|
+
};
|
|
1413
|
+
changesSinceLastChat: Record<string, string>;
|
|
1414
|
+
shellConfigFiles: Record<string, string>;
|
|
1415
|
+
systemInfo: {
|
|
1416
|
+
platform: string;
|
|
1417
|
+
shell: string;
|
|
1418
|
+
nodeVersion: string;
|
|
1419
|
+
arch: string;
|
|
1420
|
+
homedir: string;
|
|
1421
|
+
cpus: number;
|
|
1422
|
+
};
|
|
1423
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1424
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1425
|
+
fileVersions?: {
|
|
1426
|
+
path: string;
|
|
1427
|
+
content: string;
|
|
1428
|
+
}[][] | undefined;
|
|
1429
|
+
};
|
|
1430
|
+
fingerprintId: string;
|
|
1431
|
+
authToken?: string | undefined;
|
|
1432
|
+
repoUrl?: string | undefined;
|
|
1433
|
+
}>, z.ZodObject<{
|
|
1434
|
+
type: z.ZodLiteral<"generate-commit-message">;
|
|
1435
|
+
fingerprintId: z.ZodString;
|
|
1436
|
+
authToken: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
stagedChanges: z.ZodString;
|
|
1438
|
+
}, "strip", z.ZodTypeAny, {
|
|
1439
|
+
type: "generate-commit-message";
|
|
1440
|
+
fingerprintId: string;
|
|
1441
|
+
stagedChanges: string;
|
|
1442
|
+
authToken?: string | undefined;
|
|
1443
|
+
}, {
|
|
1444
|
+
type: "generate-commit-message";
|
|
1445
|
+
fingerprintId: string;
|
|
1446
|
+
stagedChanges: string;
|
|
1447
|
+
authToken?: string | undefined;
|
|
1448
|
+
}>]>;
|
|
1449
|
+
}, "strip", z.ZodTypeAny, {
|
|
1450
|
+
type: "action";
|
|
1451
|
+
data: {
|
|
1452
|
+
type: "prompt";
|
|
1453
|
+
promptId: string;
|
|
1454
|
+
fingerprintId: string;
|
|
1455
|
+
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
1456
|
+
agentState: {
|
|
1844
1457
|
agentContext: string;
|
|
1845
1458
|
fileContext: {
|
|
1846
1459
|
projectRoot: string;
|
|
@@ -1881,7 +1494,68 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1881
1494
|
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1882
1495
|
}[];
|
|
1883
1496
|
agentStepsRemaining: number;
|
|
1884
|
-
}
|
|
1497
|
+
};
|
|
1498
|
+
toolResults: {
|
|
1499
|
+
toolName: string;
|
|
1500
|
+
toolCallId: string;
|
|
1501
|
+
result: string;
|
|
1502
|
+
}[];
|
|
1503
|
+
prompt?: string | undefined;
|
|
1504
|
+
authToken?: string | undefined;
|
|
1505
|
+
model?: string | undefined;
|
|
1506
|
+
repoUrl?: string | undefined;
|
|
1507
|
+
} | {
|
|
1508
|
+
type: "read-files-response";
|
|
1509
|
+
files: Record<string, string | null>;
|
|
1510
|
+
requestId?: string | undefined;
|
|
1511
|
+
} | {
|
|
1512
|
+
type: "init";
|
|
1513
|
+
fileContext: {
|
|
1514
|
+
projectRoot: string;
|
|
1515
|
+
cwd: string;
|
|
1516
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1517
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1518
|
+
knowledgeFiles: Record<string, string>;
|
|
1519
|
+
gitChanges: {
|
|
1520
|
+
status: string;
|
|
1521
|
+
diff: string;
|
|
1522
|
+
diffCached: string;
|
|
1523
|
+
lastCommitMessages: string;
|
|
1524
|
+
};
|
|
1525
|
+
changesSinceLastChat: Record<string, string>;
|
|
1526
|
+
shellConfigFiles: Record<string, string>;
|
|
1527
|
+
systemInfo: {
|
|
1528
|
+
platform: string;
|
|
1529
|
+
shell: string;
|
|
1530
|
+
nodeVersion: string;
|
|
1531
|
+
arch: string;
|
|
1532
|
+
homedir: string;
|
|
1533
|
+
cpus: number;
|
|
1534
|
+
};
|
|
1535
|
+
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1536
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1537
|
+
fileVersions?: {
|
|
1538
|
+
path: string;
|
|
1539
|
+
content: string;
|
|
1540
|
+
}[][] | undefined;
|
|
1541
|
+
};
|
|
1542
|
+
fingerprintId: string;
|
|
1543
|
+
authToken?: string | undefined;
|
|
1544
|
+
repoUrl?: string | undefined;
|
|
1545
|
+
} | {
|
|
1546
|
+
type: "generate-commit-message";
|
|
1547
|
+
fingerprintId: string;
|
|
1548
|
+
stagedChanges: string;
|
|
1549
|
+
authToken?: string | undefined;
|
|
1550
|
+
};
|
|
1551
|
+
txid: number;
|
|
1552
|
+
}, {
|
|
1553
|
+
type: "action";
|
|
1554
|
+
data: {
|
|
1555
|
+
type: "prompt";
|
|
1556
|
+
promptId: string;
|
|
1557
|
+
fingerprintId: string;
|
|
1558
|
+
agentState: {
|
|
1885
1559
|
agentContext: string;
|
|
1886
1560
|
fileContext: {
|
|
1887
1561
|
projectRoot: string;
|
|
@@ -1922,275 +1596,23 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1922
1596
|
agents: import("../types/agent-state").SubagentState[];
|
|
1923
1597
|
messageHistory: import("../types/message").CodebuffMessage[];
|
|
1924
1598
|
}[] | undefined;
|
|
1925
|
-
}
|
|
1926
|
-
toolResults:
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
id: z.ZodString;
|
|
1930
|
-
}, "strip", z.ZodTypeAny, {
|
|
1931
|
-
name: string;
|
|
1932
|
-
id: string;
|
|
1933
|
-
result: string;
|
|
1934
|
-
}, {
|
|
1935
|
-
name: string;
|
|
1936
|
-
id: string;
|
|
1937
|
-
result: string;
|
|
1938
|
-
}>, "many">;
|
|
1939
|
-
fingerprintId: z.ZodString;
|
|
1940
|
-
authToken: z.ZodOptional<z.ZodString>;
|
|
1941
|
-
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max", "experimental", "ask"]>>>;
|
|
1942
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1943
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
1944
|
-
repoName: z.ZodOptional<z.ZodString>;
|
|
1945
|
-
}, "strip", z.ZodTypeAny, {
|
|
1946
|
-
type: "manager-prompt";
|
|
1947
|
-
promptId: string;
|
|
1948
|
-
fingerprintId: string;
|
|
1949
|
-
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
1950
|
-
agentState: {
|
|
1951
|
-
agentContext: string;
|
|
1952
|
-
fileContext: {
|
|
1953
|
-
projectRoot: string;
|
|
1954
|
-
cwd: string;
|
|
1955
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1956
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1957
|
-
knowledgeFiles: Record<string, string>;
|
|
1958
|
-
gitChanges: {
|
|
1959
|
-
status: string;
|
|
1960
|
-
diff: string;
|
|
1961
|
-
diffCached: string;
|
|
1962
|
-
lastCommitMessages: string;
|
|
1963
|
-
};
|
|
1964
|
-
changesSinceLastChat: Record<string, string>;
|
|
1965
|
-
shellConfigFiles: Record<string, string>;
|
|
1966
|
-
systemInfo: {
|
|
1967
|
-
platform: string;
|
|
1968
|
-
shell: string;
|
|
1969
|
-
nodeVersion: string;
|
|
1970
|
-
arch: string;
|
|
1971
|
-
homedir: string;
|
|
1972
|
-
cpus: number;
|
|
1973
|
-
};
|
|
1974
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1975
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1976
|
-
fileVersions?: {
|
|
1977
|
-
path: string;
|
|
1978
|
-
content: string;
|
|
1979
|
-
}[][] | undefined;
|
|
1980
|
-
};
|
|
1981
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
1982
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
1990
|
-
agentStepsRemaining: number;
|
|
1991
|
-
};
|
|
1992
|
-
toolResults: {
|
|
1993
|
-
name: string;
|
|
1994
|
-
id: string;
|
|
1995
|
-
result: string;
|
|
1996
|
-
}[];
|
|
1997
|
-
cwd?: string | undefined;
|
|
1998
|
-
prompt?: string | undefined;
|
|
1999
|
-
authToken?: string | undefined;
|
|
2000
|
-
model?: string | undefined;
|
|
2001
|
-
repoName?: string | undefined;
|
|
2002
|
-
}, {
|
|
2003
|
-
type: "manager-prompt";
|
|
2004
|
-
promptId: string;
|
|
2005
|
-
fingerprintId: string;
|
|
2006
|
-
agentState: {
|
|
2007
|
-
agentContext: string;
|
|
2008
|
-
fileContext: {
|
|
2009
|
-
projectRoot: string;
|
|
2010
|
-
cwd: string;
|
|
2011
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2012
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2013
|
-
knowledgeFiles: Record<string, string>;
|
|
2014
|
-
gitChanges: {
|
|
2015
|
-
status: string;
|
|
2016
|
-
diff: string;
|
|
2017
|
-
diffCached: string;
|
|
2018
|
-
lastCommitMessages: string;
|
|
2019
|
-
};
|
|
2020
|
-
changesSinceLastChat: Record<string, string>;
|
|
2021
|
-
shellConfigFiles: Record<string, string>;
|
|
2022
|
-
systemInfo: {
|
|
2023
|
-
platform: string;
|
|
2024
|
-
shell: string;
|
|
2025
|
-
nodeVersion: string;
|
|
2026
|
-
arch: string;
|
|
2027
|
-
homedir: string;
|
|
2028
|
-
cpus: number;
|
|
2029
|
-
};
|
|
2030
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2031
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2032
|
-
fileVersions?: {
|
|
2033
|
-
path: string;
|
|
2034
|
-
content: string;
|
|
2035
|
-
}[][] | undefined;
|
|
2036
|
-
};
|
|
2037
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
2038
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2039
|
-
})[];
|
|
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;
|
|
2047
|
-
};
|
|
2048
|
-
toolResults: {
|
|
2049
|
-
name: string;
|
|
2050
|
-
id: string;
|
|
1599
|
+
};
|
|
1600
|
+
toolResults: {
|
|
1601
|
+
toolName: string;
|
|
1602
|
+
toolCallId: string;
|
|
2051
1603
|
result: string;
|
|
2052
1604
|
}[];
|
|
2053
|
-
cwd?: string | undefined;
|
|
2054
1605
|
prompt?: string | undefined;
|
|
2055
1606
|
authToken?: string | undefined;
|
|
2056
1607
|
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
2057
1608
|
model?: string | undefined;
|
|
2058
|
-
|
|
2059
|
-
}
|
|
2060
|
-
type: z.ZodLiteral<"read-files-response">;
|
|
2061
|
-
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
2062
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
2063
|
-
}, "strip", z.ZodTypeAny, {
|
|
2064
|
-
type: "read-files-response";
|
|
2065
|
-
files: Record<string, string | null>;
|
|
2066
|
-
requestId?: string | undefined;
|
|
2067
|
-
}, {
|
|
1609
|
+
repoUrl?: string | undefined;
|
|
1610
|
+
} | {
|
|
2068
1611
|
type: "read-files-response";
|
|
2069
1612
|
files: Record<string, string | null>;
|
|
2070
1613
|
requestId?: string | undefined;
|
|
2071
|
-
}
|
|
2072
|
-
type: z.ZodLiteral<"init">;
|
|
2073
|
-
fingerprintId: z.ZodString;
|
|
2074
|
-
authToken: z.ZodOptional<z.ZodString>;
|
|
2075
|
-
fileContext: z.ZodObject<{
|
|
2076
|
-
projectRoot: z.ZodString;
|
|
2077
|
-
cwd: z.ZodString;
|
|
2078
|
-
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
2079
|
-
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2080
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
2081
|
-
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2082
|
-
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2083
|
-
gitChanges: z.ZodObject<{
|
|
2084
|
-
status: z.ZodString;
|
|
2085
|
-
diff: z.ZodString;
|
|
2086
|
-
diffCached: z.ZodString;
|
|
2087
|
-
lastCommitMessages: z.ZodString;
|
|
2088
|
-
}, "strip", z.ZodTypeAny, {
|
|
2089
|
-
status: string;
|
|
2090
|
-
diff: string;
|
|
2091
|
-
diffCached: string;
|
|
2092
|
-
lastCommitMessages: string;
|
|
2093
|
-
}, {
|
|
2094
|
-
status: string;
|
|
2095
|
-
diff: string;
|
|
2096
|
-
diffCached: string;
|
|
2097
|
-
lastCommitMessages: string;
|
|
2098
|
-
}>;
|
|
2099
|
-
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2100
|
-
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2101
|
-
systemInfo: z.ZodObject<{
|
|
2102
|
-
platform: z.ZodString;
|
|
2103
|
-
shell: z.ZodString;
|
|
2104
|
-
nodeVersion: z.ZodString;
|
|
2105
|
-
arch: z.ZodString;
|
|
2106
|
-
homedir: z.ZodString;
|
|
2107
|
-
cpus: z.ZodNumber;
|
|
2108
|
-
}, "strip", z.ZodTypeAny, {
|
|
2109
|
-
platform: string;
|
|
2110
|
-
shell: string;
|
|
2111
|
-
nodeVersion: string;
|
|
2112
|
-
arch: string;
|
|
2113
|
-
homedir: string;
|
|
2114
|
-
cpus: number;
|
|
2115
|
-
}, {
|
|
2116
|
-
platform: string;
|
|
2117
|
-
shell: string;
|
|
2118
|
-
nodeVersion: string;
|
|
2119
|
-
arch: string;
|
|
2120
|
-
homedir: string;
|
|
2121
|
-
cpus: number;
|
|
2122
|
-
}>;
|
|
2123
|
-
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2124
|
-
path: z.ZodString;
|
|
2125
|
-
content: z.ZodString;
|
|
2126
|
-
}, "strip", z.ZodTypeAny, {
|
|
2127
|
-
path: string;
|
|
2128
|
-
content: string;
|
|
2129
|
-
}, {
|
|
2130
|
-
path: string;
|
|
2131
|
-
content: string;
|
|
2132
|
-
}>, "many">, "many">>;
|
|
2133
|
-
}, "strip", z.ZodTypeAny, {
|
|
2134
|
-
projectRoot: string;
|
|
2135
|
-
cwd: string;
|
|
2136
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2137
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2138
|
-
knowledgeFiles: Record<string, string>;
|
|
2139
|
-
gitChanges: {
|
|
2140
|
-
status: string;
|
|
2141
|
-
diff: string;
|
|
2142
|
-
diffCached: string;
|
|
2143
|
-
lastCommitMessages: string;
|
|
2144
|
-
};
|
|
2145
|
-
changesSinceLastChat: Record<string, string>;
|
|
2146
|
-
shellConfigFiles: Record<string, string>;
|
|
2147
|
-
systemInfo: {
|
|
2148
|
-
platform: string;
|
|
2149
|
-
shell: string;
|
|
2150
|
-
nodeVersion: string;
|
|
2151
|
-
arch: string;
|
|
2152
|
-
homedir: string;
|
|
2153
|
-
cpus: number;
|
|
2154
|
-
};
|
|
2155
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2156
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2157
|
-
fileVersions?: {
|
|
2158
|
-
path: string;
|
|
2159
|
-
content: string;
|
|
2160
|
-
}[][] | undefined;
|
|
2161
|
-
}, {
|
|
2162
|
-
projectRoot: string;
|
|
2163
|
-
cwd: string;
|
|
2164
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2165
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2166
|
-
knowledgeFiles: Record<string, string>;
|
|
2167
|
-
gitChanges: {
|
|
2168
|
-
status: string;
|
|
2169
|
-
diff: string;
|
|
2170
|
-
diffCached: string;
|
|
2171
|
-
lastCommitMessages: string;
|
|
2172
|
-
};
|
|
2173
|
-
changesSinceLastChat: Record<string, string>;
|
|
2174
|
-
shellConfigFiles: Record<string, string>;
|
|
2175
|
-
systemInfo: {
|
|
2176
|
-
platform: string;
|
|
2177
|
-
shell: string;
|
|
2178
|
-
nodeVersion: string;
|
|
2179
|
-
arch: string;
|
|
2180
|
-
homedir: string;
|
|
2181
|
-
cpus: number;
|
|
2182
|
-
};
|
|
2183
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2184
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2185
|
-
fileVersions?: {
|
|
2186
|
-
path: string;
|
|
2187
|
-
content: string;
|
|
2188
|
-
}[][] | undefined;
|
|
2189
|
-
}>;
|
|
2190
|
-
repoUrl: z.ZodOptional<z.ZodString>;
|
|
2191
|
-
}, "strip", z.ZodTypeAny, {
|
|
1614
|
+
} | {
|
|
2192
1615
|
type: "init";
|
|
2193
|
-
fingerprintId: string;
|
|
2194
1616
|
fileContext: {
|
|
2195
1617
|
projectRoot: string;
|
|
2196
1618
|
cwd: string;
|
|
@@ -2220,867 +1642,147 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2220
1642
|
content: string;
|
|
2221
1643
|
}[][] | undefined;
|
|
2222
1644
|
};
|
|
1645
|
+
fingerprintId: string;
|
|
2223
1646
|
authToken?: string | undefined;
|
|
2224
1647
|
repoUrl?: string | undefined;
|
|
2225
|
-
}
|
|
2226
|
-
type: "
|
|
1648
|
+
} | {
|
|
1649
|
+
type: "generate-commit-message";
|
|
2227
1650
|
fingerprintId: string;
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
}>]>;
|
|
2275
|
-
}, "strip", z.ZodTypeAny, {
|
|
2276
|
-
type: "action";
|
|
2277
|
-
data: {
|
|
2278
|
-
type: "prompt";
|
|
2279
|
-
promptId: string;
|
|
2280
|
-
fingerprintId: string;
|
|
2281
|
-
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
2282
|
-
agentState: {
|
|
2283
|
-
agentContext: string;
|
|
2284
|
-
fileContext: {
|
|
2285
|
-
projectRoot: string;
|
|
2286
|
-
cwd: string;
|
|
2287
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2288
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2289
|
-
knowledgeFiles: Record<string, string>;
|
|
2290
|
-
gitChanges: {
|
|
2291
|
-
status: string;
|
|
2292
|
-
diff: string;
|
|
2293
|
-
diffCached: string;
|
|
2294
|
-
lastCommitMessages: string;
|
|
2295
|
-
};
|
|
2296
|
-
changesSinceLastChat: Record<string, string>;
|
|
2297
|
-
shellConfigFiles: Record<string, string>;
|
|
2298
|
-
systemInfo: {
|
|
2299
|
-
platform: string;
|
|
2300
|
-
shell: string;
|
|
2301
|
-
nodeVersion: string;
|
|
2302
|
-
arch: string;
|
|
2303
|
-
homedir: string;
|
|
2304
|
-
cpus: number;
|
|
2305
|
-
};
|
|
2306
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2307
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2308
|
-
fileVersions?: {
|
|
2309
|
-
path: string;
|
|
2310
|
-
content: string;
|
|
2311
|
-
}[][] | undefined;
|
|
2312
|
-
};
|
|
2313
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
2314
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
2322
|
-
agentStepsRemaining: number;
|
|
2323
|
-
};
|
|
2324
|
-
toolResults: {
|
|
2325
|
-
name: string;
|
|
2326
|
-
id: string;
|
|
2327
|
-
result: string;
|
|
2328
|
-
}[];
|
|
2329
|
-
prompt?: string | undefined;
|
|
2330
|
-
authToken?: string | undefined;
|
|
2331
|
-
model?: string | undefined;
|
|
2332
|
-
repoUrl?: string | undefined;
|
|
2333
|
-
} | {
|
|
2334
|
-
type: "manager-prompt";
|
|
2335
|
-
promptId: string;
|
|
2336
|
-
fingerprintId: string;
|
|
2337
|
-
costMode: "max" | "lite" | "normal" | "experimental" | "ask";
|
|
2338
|
-
agentState: {
|
|
2339
|
-
agentContext: string;
|
|
2340
|
-
fileContext: {
|
|
2341
|
-
projectRoot: string;
|
|
2342
|
-
cwd: string;
|
|
2343
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2344
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2345
|
-
knowledgeFiles: Record<string, string>;
|
|
2346
|
-
gitChanges: {
|
|
2347
|
-
status: string;
|
|
2348
|
-
diff: string;
|
|
2349
|
-
diffCached: string;
|
|
2350
|
-
lastCommitMessages: string;
|
|
2351
|
-
};
|
|
2352
|
-
changesSinceLastChat: Record<string, string>;
|
|
2353
|
-
shellConfigFiles: Record<string, string>;
|
|
2354
|
-
systemInfo: {
|
|
2355
|
-
platform: string;
|
|
2356
|
-
shell: string;
|
|
2357
|
-
nodeVersion: string;
|
|
2358
|
-
arch: string;
|
|
2359
|
-
homedir: string;
|
|
2360
|
-
cpus: number;
|
|
2361
|
-
};
|
|
2362
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2363
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2364
|
-
fileVersions?: {
|
|
2365
|
-
path: string;
|
|
2366
|
-
content: string;
|
|
2367
|
-
}[][] | undefined;
|
|
2368
|
-
};
|
|
2369
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
2370
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
2378
|
-
agentStepsRemaining: number;
|
|
2379
|
-
};
|
|
2380
|
-
toolResults: {
|
|
2381
|
-
name: string;
|
|
2382
|
-
id: string;
|
|
2383
|
-
result: string;
|
|
2384
|
-
}[];
|
|
2385
|
-
cwd?: string | undefined;
|
|
2386
|
-
prompt?: string | undefined;
|
|
2387
|
-
authToken?: string | undefined;
|
|
2388
|
-
model?: string | undefined;
|
|
2389
|
-
repoName?: string | undefined;
|
|
2390
|
-
} | {
|
|
2391
|
-
type: "read-files-response";
|
|
2392
|
-
files: Record<string, string | null>;
|
|
2393
|
-
requestId?: string | undefined;
|
|
2394
|
-
} | {
|
|
2395
|
-
type: "init";
|
|
2396
|
-
fingerprintId: string;
|
|
2397
|
-
fileContext: {
|
|
2398
|
-
projectRoot: string;
|
|
2399
|
-
cwd: string;
|
|
2400
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2401
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2402
|
-
knowledgeFiles: Record<string, string>;
|
|
2403
|
-
gitChanges: {
|
|
2404
|
-
status: string;
|
|
2405
|
-
diff: string;
|
|
2406
|
-
diffCached: string;
|
|
2407
|
-
lastCommitMessages: string;
|
|
2408
|
-
};
|
|
2409
|
-
changesSinceLastChat: Record<string, string>;
|
|
2410
|
-
shellConfigFiles: Record<string, string>;
|
|
2411
|
-
systemInfo: {
|
|
2412
|
-
platform: string;
|
|
2413
|
-
shell: string;
|
|
2414
|
-
nodeVersion: string;
|
|
2415
|
-
arch: string;
|
|
2416
|
-
homedir: string;
|
|
2417
|
-
cpus: number;
|
|
2418
|
-
};
|
|
2419
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2420
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2421
|
-
fileVersions?: {
|
|
2422
|
-
path: string;
|
|
2423
|
-
content: string;
|
|
2424
|
-
}[][] | undefined;
|
|
2425
|
-
};
|
|
2426
|
-
authToken?: string | undefined;
|
|
2427
|
-
repoUrl?: string | undefined;
|
|
2428
|
-
} | {
|
|
2429
|
-
type: "generate-commit-message";
|
|
2430
|
-
fingerprintId: string;
|
|
2431
|
-
stagedChanges: string;
|
|
2432
|
-
authToken?: string | undefined;
|
|
2433
|
-
};
|
|
2434
|
-
txid: number;
|
|
2435
|
-
}, {
|
|
2436
|
-
type: "action";
|
|
2437
|
-
data: {
|
|
2438
|
-
type: "prompt";
|
|
2439
|
-
promptId: string;
|
|
2440
|
-
fingerprintId: string;
|
|
2441
|
-
agentState: {
|
|
2442
|
-
agentContext: string;
|
|
2443
|
-
fileContext: {
|
|
2444
|
-
projectRoot: string;
|
|
2445
|
-
cwd: string;
|
|
2446
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2447
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2448
|
-
knowledgeFiles: Record<string, string>;
|
|
2449
|
-
gitChanges: {
|
|
2450
|
-
status: string;
|
|
2451
|
-
diff: string;
|
|
2452
|
-
diffCached: string;
|
|
2453
|
-
lastCommitMessages: string;
|
|
2454
|
-
};
|
|
2455
|
-
changesSinceLastChat: Record<string, string>;
|
|
2456
|
-
shellConfigFiles: Record<string, string>;
|
|
2457
|
-
systemInfo: {
|
|
2458
|
-
platform: string;
|
|
2459
|
-
shell: string;
|
|
2460
|
-
nodeVersion: string;
|
|
2461
|
-
arch: string;
|
|
2462
|
-
homedir: string;
|
|
2463
|
-
cpus: number;
|
|
2464
|
-
};
|
|
2465
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2466
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2467
|
-
fileVersions?: {
|
|
2468
|
-
path: string;
|
|
2469
|
-
content: string;
|
|
2470
|
-
}[][] | undefined;
|
|
2471
|
-
};
|
|
2472
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
2473
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2474
|
-
})[];
|
|
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;
|
|
2482
|
-
};
|
|
2483
|
-
toolResults: {
|
|
2484
|
-
name: string;
|
|
2485
|
-
id: string;
|
|
2486
|
-
result: string;
|
|
2487
|
-
}[];
|
|
2488
|
-
prompt?: string | undefined;
|
|
2489
|
-
authToken?: string | undefined;
|
|
2490
|
-
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
2491
|
-
model?: string | undefined;
|
|
2492
|
-
repoUrl?: string | undefined;
|
|
2493
|
-
} | {
|
|
2494
|
-
type: "manager-prompt";
|
|
2495
|
-
promptId: string;
|
|
2496
|
-
fingerprintId: string;
|
|
2497
|
-
agentState: {
|
|
2498
|
-
agentContext: string;
|
|
2499
|
-
fileContext: {
|
|
2500
|
-
projectRoot: string;
|
|
2501
|
-
cwd: string;
|
|
2502
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2503
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2504
|
-
knowledgeFiles: Record<string, string>;
|
|
2505
|
-
gitChanges: {
|
|
2506
|
-
status: string;
|
|
2507
|
-
diff: string;
|
|
2508
|
-
diffCached: string;
|
|
2509
|
-
lastCommitMessages: string;
|
|
2510
|
-
};
|
|
2511
|
-
changesSinceLastChat: Record<string, string>;
|
|
2512
|
-
shellConfigFiles: Record<string, string>;
|
|
2513
|
-
systemInfo: {
|
|
2514
|
-
platform: string;
|
|
2515
|
-
shell: string;
|
|
2516
|
-
nodeVersion: string;
|
|
2517
|
-
arch: string;
|
|
2518
|
-
homedir: string;
|
|
2519
|
-
cpus: number;
|
|
2520
|
-
};
|
|
2521
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2522
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2523
|
-
fileVersions?: {
|
|
2524
|
-
path: string;
|
|
2525
|
-
content: string;
|
|
2526
|
-
}[][] | undefined;
|
|
2527
|
-
};
|
|
2528
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
2529
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2530
|
-
})[];
|
|
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;
|
|
2538
|
-
};
|
|
2539
|
-
toolResults: {
|
|
2540
|
-
name: string;
|
|
2541
|
-
id: string;
|
|
2542
|
-
result: string;
|
|
2543
|
-
}[];
|
|
2544
|
-
cwd?: string | undefined;
|
|
2545
|
-
prompt?: string | undefined;
|
|
2546
|
-
authToken?: string | undefined;
|
|
2547
|
-
costMode?: "max" | "lite" | "normal" | "experimental" | "ask" | undefined;
|
|
2548
|
-
model?: string | undefined;
|
|
2549
|
-
repoName?: string | undefined;
|
|
2550
|
-
} | {
|
|
2551
|
-
type: "read-files-response";
|
|
2552
|
-
files: Record<string, string | null>;
|
|
2553
|
-
requestId?: string | undefined;
|
|
2554
|
-
} | {
|
|
2555
|
-
type: "init";
|
|
2556
|
-
fingerprintId: string;
|
|
2557
|
-
fileContext: {
|
|
2558
|
-
projectRoot: string;
|
|
2559
|
-
cwd: string;
|
|
2560
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2561
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2562
|
-
knowledgeFiles: Record<string, string>;
|
|
2563
|
-
gitChanges: {
|
|
2564
|
-
status: string;
|
|
2565
|
-
diff: string;
|
|
2566
|
-
diffCached: string;
|
|
2567
|
-
lastCommitMessages: string;
|
|
2568
|
-
};
|
|
2569
|
-
changesSinceLastChat: Record<string, string>;
|
|
2570
|
-
shellConfigFiles: Record<string, string>;
|
|
2571
|
-
systemInfo: {
|
|
2572
|
-
platform: string;
|
|
2573
|
-
shell: string;
|
|
2574
|
-
nodeVersion: string;
|
|
2575
|
-
arch: string;
|
|
2576
|
-
homedir: string;
|
|
2577
|
-
cpus: number;
|
|
2578
|
-
};
|
|
2579
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2580
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2581
|
-
fileVersions?: {
|
|
2582
|
-
path: string;
|
|
2583
|
-
content: string;
|
|
2584
|
-
}[][] | undefined;
|
|
2585
|
-
};
|
|
2586
|
-
authToken?: string | undefined;
|
|
2587
|
-
repoUrl?: string | undefined;
|
|
2588
|
-
} | {
|
|
2589
|
-
type: "generate-commit-message";
|
|
2590
|
-
fingerprintId: string;
|
|
2591
|
-
stagedChanges: string;
|
|
2592
|
-
authToken?: string | undefined;
|
|
2593
|
-
};
|
|
2594
|
-
txid: number;
|
|
2595
|
-
}>]>;
|
|
2596
|
-
export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
|
|
2597
|
-
export type ClientMessage<T extends ClientMessageType = ClientMessageType> = z.infer<(typeof CLIENT_MESSAGE_SCHEMAS)[T]>;
|
|
2598
|
-
export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
2599
|
-
ack: z.ZodObject<{
|
|
2600
|
-
type: z.ZodLiteral<"ack">;
|
|
2601
|
-
txid: z.ZodOptional<z.ZodNumber>;
|
|
2602
|
-
success: z.ZodBoolean;
|
|
2603
|
-
error: z.ZodOptional<z.ZodString>;
|
|
2604
|
-
}, "strip", z.ZodTypeAny, {
|
|
2605
|
-
type: "ack";
|
|
2606
|
-
success: boolean;
|
|
2607
|
-
error?: string | undefined;
|
|
2608
|
-
txid?: number | undefined;
|
|
2609
|
-
}, {
|
|
2610
|
-
type: "ack";
|
|
2611
|
-
success: boolean;
|
|
2612
|
-
error?: string | undefined;
|
|
2613
|
-
txid?: number | undefined;
|
|
2614
|
-
}>;
|
|
2615
|
-
action: z.ZodObject<{
|
|
2616
|
-
type: z.ZodLiteral<"action">;
|
|
2617
|
-
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2618
|
-
type: z.ZodLiteral<"response-chunk">;
|
|
2619
|
-
userInputId: z.ZodString;
|
|
2620
|
-
chunk: z.ZodString;
|
|
2621
|
-
}, "strip", z.ZodTypeAny, {
|
|
2622
|
-
type: "response-chunk";
|
|
2623
|
-
userInputId: string;
|
|
2624
|
-
chunk: string;
|
|
2625
|
-
}, {
|
|
2626
|
-
type: "response-chunk";
|
|
2627
|
-
userInputId: string;
|
|
2628
|
-
chunk: string;
|
|
2629
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2630
|
-
type: z.ZodLiteral<"response-complete">;
|
|
2631
|
-
userInputId: z.ZodString;
|
|
2632
|
-
response: z.ZodString;
|
|
2633
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
2634
|
-
type: z.ZodEnum<["patch", "file"]>;
|
|
2635
|
-
path: z.ZodString;
|
|
2636
|
-
content: z.ZodString;
|
|
2637
|
-
}, "strip", z.ZodTypeAny, {
|
|
2638
|
-
path: string;
|
|
2639
|
-
content: string;
|
|
2640
|
-
type: "file" | "patch";
|
|
2641
|
-
}, {
|
|
2642
|
-
path: string;
|
|
2643
|
-
content: string;
|
|
2644
|
-
type: "file" | "patch";
|
|
2645
|
-
}>, "many">;
|
|
2646
|
-
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2647
|
-
type: z.ZodEnum<["patch", "file"]>;
|
|
2648
|
-
path: z.ZodString;
|
|
2649
|
-
content: z.ZodString;
|
|
2650
|
-
}, "strip", z.ZodTypeAny, {
|
|
2651
|
-
path: string;
|
|
2652
|
-
content: string;
|
|
2653
|
-
type: "file" | "patch";
|
|
2654
|
-
}, {
|
|
2655
|
-
path: string;
|
|
2656
|
-
content: string;
|
|
2657
|
-
type: "file" | "patch";
|
|
2658
|
-
}>, "many">;
|
|
2659
|
-
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2660
|
-
path: z.ZodString;
|
|
2661
|
-
content: z.ZodString;
|
|
2662
|
-
}, "strip", z.ZodTypeAny, {
|
|
2663
|
-
path: string;
|
|
2664
|
-
content: string;
|
|
2665
|
-
}, {
|
|
2666
|
-
path: string;
|
|
2667
|
-
content: string;
|
|
2668
|
-
}>, "many">;
|
|
2669
|
-
resetFileVersions: z.ZodBoolean;
|
|
2670
|
-
}, {
|
|
2671
|
-
usage: z.ZodOptional<z.ZodNumber>;
|
|
2672
|
-
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2673
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
2674
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2675
|
-
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2676
|
-
}>, "strip", z.ZodTypeAny, {
|
|
2677
|
-
type: "response-complete";
|
|
2678
|
-
userInputId: string;
|
|
2679
|
-
response: string;
|
|
2680
|
-
changes: {
|
|
2681
|
-
path: string;
|
|
2682
|
-
content: string;
|
|
2683
|
-
type: "file" | "patch";
|
|
2684
|
-
}[];
|
|
2685
|
-
changesAlreadyApplied: {
|
|
2686
|
-
path: string;
|
|
2687
|
-
content: string;
|
|
2688
|
-
type: "file" | "patch";
|
|
2689
|
-
}[];
|
|
2690
|
-
addedFileVersions: {
|
|
2691
|
-
path: string;
|
|
2692
|
-
content: string;
|
|
2693
|
-
}[];
|
|
2694
|
-
resetFileVersions: boolean;
|
|
2695
|
-
usage?: number | undefined;
|
|
2696
|
-
remainingBalance?: number | undefined;
|
|
2697
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2698
|
-
next_quota_reset?: Date | null | undefined;
|
|
2699
|
-
autoTopupAdded?: number | undefined;
|
|
2700
|
-
}, {
|
|
2701
|
-
type: "response-complete";
|
|
2702
|
-
userInputId: string;
|
|
2703
|
-
response: string;
|
|
2704
|
-
changes: {
|
|
2705
|
-
path: string;
|
|
2706
|
-
content: string;
|
|
2707
|
-
type: "file" | "patch";
|
|
2708
|
-
}[];
|
|
2709
|
-
changesAlreadyApplied: {
|
|
2710
|
-
path: string;
|
|
2711
|
-
content: string;
|
|
2712
|
-
type: "file" | "patch";
|
|
2713
|
-
}[];
|
|
2714
|
-
addedFileVersions: {
|
|
2715
|
-
path: string;
|
|
2716
|
-
content: string;
|
|
2717
|
-
}[];
|
|
2718
|
-
resetFileVersions: boolean;
|
|
2719
|
-
usage?: number | undefined;
|
|
2720
|
-
remainingBalance?: number | undefined;
|
|
2721
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2722
|
-
next_quota_reset?: Date | null | undefined;
|
|
2723
|
-
autoTopupAdded?: number | undefined;
|
|
2724
|
-
}>, z.ZodObject<{
|
|
2725
|
-
type: z.ZodLiteral<"prompt-response">;
|
|
2726
|
-
promptId: z.ZodString;
|
|
2727
|
-
agentState: z.ZodObject<{
|
|
2728
|
-
agentContext: z.ZodString;
|
|
2729
|
-
fileContext: z.ZodObject<{
|
|
2730
|
-
projectRoot: z.ZodString;
|
|
2731
|
-
cwd: z.ZodString;
|
|
2732
|
-
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
2733
|
-
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2734
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
2735
|
-
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2736
|
-
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2737
|
-
gitChanges: z.ZodObject<{
|
|
2738
|
-
status: z.ZodString;
|
|
2739
|
-
diff: z.ZodString;
|
|
2740
|
-
diffCached: z.ZodString;
|
|
2741
|
-
lastCommitMessages: z.ZodString;
|
|
2742
|
-
}, "strip", z.ZodTypeAny, {
|
|
2743
|
-
status: string;
|
|
2744
|
-
diff: string;
|
|
2745
|
-
diffCached: string;
|
|
2746
|
-
lastCommitMessages: string;
|
|
2747
|
-
}, {
|
|
2748
|
-
status: string;
|
|
2749
|
-
diff: string;
|
|
2750
|
-
diffCached: string;
|
|
2751
|
-
lastCommitMessages: string;
|
|
2752
|
-
}>;
|
|
2753
|
-
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2754
|
-
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2755
|
-
systemInfo: z.ZodObject<{
|
|
2756
|
-
platform: z.ZodString;
|
|
2757
|
-
shell: z.ZodString;
|
|
2758
|
-
nodeVersion: z.ZodString;
|
|
2759
|
-
arch: z.ZodString;
|
|
2760
|
-
homedir: z.ZodString;
|
|
2761
|
-
cpus: z.ZodNumber;
|
|
2762
|
-
}, "strip", z.ZodTypeAny, {
|
|
2763
|
-
platform: string;
|
|
2764
|
-
shell: string;
|
|
2765
|
-
nodeVersion: string;
|
|
2766
|
-
arch: string;
|
|
2767
|
-
homedir: string;
|
|
2768
|
-
cpus: number;
|
|
2769
|
-
}, {
|
|
2770
|
-
platform: string;
|
|
2771
|
-
shell: string;
|
|
2772
|
-
nodeVersion: string;
|
|
2773
|
-
arch: string;
|
|
2774
|
-
homedir: string;
|
|
2775
|
-
cpus: number;
|
|
2776
|
-
}>;
|
|
2777
|
-
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2778
|
-
path: z.ZodString;
|
|
2779
|
-
content: z.ZodString;
|
|
2780
|
-
}, "strip", z.ZodTypeAny, {
|
|
2781
|
-
path: string;
|
|
2782
|
-
content: string;
|
|
2783
|
-
}, {
|
|
2784
|
-
path: string;
|
|
2785
|
-
content: string;
|
|
2786
|
-
}>, "many">, "many">>;
|
|
2787
|
-
}, "strip", z.ZodTypeAny, {
|
|
2788
|
-
projectRoot: string;
|
|
2789
|
-
cwd: string;
|
|
2790
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2791
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2792
|
-
knowledgeFiles: Record<string, string>;
|
|
2793
|
-
gitChanges: {
|
|
2794
|
-
status: string;
|
|
2795
|
-
diff: string;
|
|
2796
|
-
diffCached: string;
|
|
2797
|
-
lastCommitMessages: string;
|
|
2798
|
-
};
|
|
2799
|
-
changesSinceLastChat: Record<string, string>;
|
|
2800
|
-
shellConfigFiles: Record<string, string>;
|
|
2801
|
-
systemInfo: {
|
|
2802
|
-
platform: string;
|
|
2803
|
-
shell: string;
|
|
2804
|
-
nodeVersion: string;
|
|
2805
|
-
arch: string;
|
|
2806
|
-
homedir: string;
|
|
2807
|
-
cpus: number;
|
|
2808
|
-
};
|
|
2809
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2810
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2811
|
-
fileVersions?: {
|
|
2812
|
-
path: string;
|
|
2813
|
-
content: string;
|
|
2814
|
-
}[][] | undefined;
|
|
2815
|
-
}, {
|
|
2816
|
-
projectRoot: string;
|
|
2817
|
-
cwd: string;
|
|
2818
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2819
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2820
|
-
knowledgeFiles: Record<string, string>;
|
|
2821
|
-
gitChanges: {
|
|
2822
|
-
status: string;
|
|
2823
|
-
diff: string;
|
|
2824
|
-
diffCached: string;
|
|
2825
|
-
lastCommitMessages: string;
|
|
2826
|
-
};
|
|
2827
|
-
changesSinceLastChat: Record<string, string>;
|
|
2828
|
-
shellConfigFiles: Record<string, string>;
|
|
2829
|
-
systemInfo: {
|
|
2830
|
-
platform: string;
|
|
2831
|
-
shell: string;
|
|
2832
|
-
nodeVersion: string;
|
|
2833
|
-
arch: string;
|
|
2834
|
-
homedir: string;
|
|
2835
|
-
cpus: number;
|
|
2836
|
-
};
|
|
2837
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2838
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2839
|
-
fileVersions?: {
|
|
2840
|
-
path: string;
|
|
2841
|
-
content: string;
|
|
2842
|
-
}[][] | undefined;
|
|
2843
|
-
}>;
|
|
2844
|
-
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
2845
|
-
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
2846
|
-
}, "strip", z.ZodTypeAny, {
|
|
2847
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2848
|
-
}, {
|
|
2849
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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">>;
|
|
2862
|
-
agentStepsRemaining: z.ZodNumber;
|
|
1651
|
+
stagedChanges: string;
|
|
1652
|
+
authToken?: string | undefined;
|
|
1653
|
+
};
|
|
1654
|
+
txid: number;
|
|
1655
|
+
}>]>;
|
|
1656
|
+
export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
|
|
1657
|
+
export type ClientMessage<T extends ClientMessageType = ClientMessageType> = z.infer<(typeof CLIENT_MESSAGE_SCHEMAS)[T]>;
|
|
1658
|
+
export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
1659
|
+
ack: z.ZodObject<{
|
|
1660
|
+
type: z.ZodLiteral<"ack">;
|
|
1661
|
+
txid: z.ZodOptional<z.ZodNumber>;
|
|
1662
|
+
success: z.ZodBoolean;
|
|
1663
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
}, "strip", z.ZodTypeAny, {
|
|
1665
|
+
type: "ack";
|
|
1666
|
+
success: boolean;
|
|
1667
|
+
error?: string | undefined;
|
|
1668
|
+
txid?: number | undefined;
|
|
1669
|
+
}, {
|
|
1670
|
+
type: "ack";
|
|
1671
|
+
success: boolean;
|
|
1672
|
+
error?: string | undefined;
|
|
1673
|
+
txid?: number | undefined;
|
|
1674
|
+
}>;
|
|
1675
|
+
action: z.ZodObject<{
|
|
1676
|
+
type: z.ZodLiteral<"action">;
|
|
1677
|
+
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1678
|
+
type: z.ZodLiteral<"response-chunk">;
|
|
1679
|
+
userInputId: z.ZodString;
|
|
1680
|
+
chunk: z.ZodString;
|
|
1681
|
+
}, "strip", z.ZodTypeAny, {
|
|
1682
|
+
type: "response-chunk";
|
|
1683
|
+
userInputId: string;
|
|
1684
|
+
chunk: string;
|
|
1685
|
+
}, {
|
|
1686
|
+
type: "response-chunk";
|
|
1687
|
+
userInputId: string;
|
|
1688
|
+
chunk: string;
|
|
1689
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1690
|
+
type: z.ZodLiteral<"response-complete">;
|
|
1691
|
+
userInputId: z.ZodString;
|
|
1692
|
+
response: z.ZodString;
|
|
1693
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
1694
|
+
type: z.ZodEnum<["patch", "file"]>;
|
|
1695
|
+
path: z.ZodString;
|
|
1696
|
+
content: z.ZodString;
|
|
2863
1697
|
}, "strip", z.ZodTypeAny, {
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
cwd: string;
|
|
2868
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2869
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2870
|
-
knowledgeFiles: Record<string, string>;
|
|
2871
|
-
gitChanges: {
|
|
2872
|
-
status: string;
|
|
2873
|
-
diff: string;
|
|
2874
|
-
diffCached: string;
|
|
2875
|
-
lastCommitMessages: string;
|
|
2876
|
-
};
|
|
2877
|
-
changesSinceLastChat: Record<string, string>;
|
|
2878
|
-
shellConfigFiles: Record<string, string>;
|
|
2879
|
-
systemInfo: {
|
|
2880
|
-
platform: string;
|
|
2881
|
-
shell: string;
|
|
2882
|
-
nodeVersion: string;
|
|
2883
|
-
arch: string;
|
|
2884
|
-
homedir: string;
|
|
2885
|
-
cpus: number;
|
|
2886
|
-
};
|
|
2887
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2888
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2889
|
-
fileVersions?: {
|
|
2890
|
-
path: string;
|
|
2891
|
-
content: string;
|
|
2892
|
-
}[][] | undefined;
|
|
2893
|
-
};
|
|
2894
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
2895
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
2903
|
-
agentStepsRemaining: number;
|
|
1698
|
+
path: string;
|
|
1699
|
+
type: "patch" | "file";
|
|
1700
|
+
content: string;
|
|
2904
1701
|
}, {
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
status: string;
|
|
2914
|
-
diff: string;
|
|
2915
|
-
diffCached: string;
|
|
2916
|
-
lastCommitMessages: string;
|
|
2917
|
-
};
|
|
2918
|
-
changesSinceLastChat: Record<string, string>;
|
|
2919
|
-
shellConfigFiles: Record<string, string>;
|
|
2920
|
-
systemInfo: {
|
|
2921
|
-
platform: string;
|
|
2922
|
-
shell: string;
|
|
2923
|
-
nodeVersion: string;
|
|
2924
|
-
arch: string;
|
|
2925
|
-
homedir: string;
|
|
2926
|
-
cpus: number;
|
|
2927
|
-
};
|
|
2928
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2929
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2930
|
-
fileVersions?: {
|
|
2931
|
-
path: string;
|
|
2932
|
-
content: string;
|
|
2933
|
-
}[][] | undefined;
|
|
2934
|
-
};
|
|
2935
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
2936
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2937
|
-
})[];
|
|
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;
|
|
2945
|
-
}>;
|
|
2946
|
-
toolCalls: z.ZodArray<z.ZodObject<{
|
|
2947
|
-
name: z.ZodString;
|
|
2948
|
-
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2949
|
-
id: z.ZodString;
|
|
1702
|
+
path: string;
|
|
1703
|
+
type: "patch" | "file";
|
|
1704
|
+
content: string;
|
|
1705
|
+
}>, "many">;
|
|
1706
|
+
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1707
|
+
type: z.ZodEnum<["patch", "file"]>;
|
|
1708
|
+
path: z.ZodString;
|
|
1709
|
+
content: z.ZodString;
|
|
2950
1710
|
}, "strip", z.ZodTypeAny, {
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
1711
|
+
path: string;
|
|
1712
|
+
type: "patch" | "file";
|
|
1713
|
+
content: string;
|
|
2954
1714
|
}, {
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
1715
|
+
path: string;
|
|
1716
|
+
type: "patch" | "file";
|
|
1717
|
+
content: string;
|
|
2958
1718
|
}>, "many">;
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
id: z.ZodString;
|
|
1719
|
+
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1720
|
+
path: z.ZodString;
|
|
1721
|
+
content: z.ZodString;
|
|
2963
1722
|
}, "strip", z.ZodTypeAny, {
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
result: string;
|
|
1723
|
+
path: string;
|
|
1724
|
+
content: string;
|
|
2967
1725
|
}, {
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
result: string;
|
|
1726
|
+
path: string;
|
|
1727
|
+
content: string;
|
|
2971
1728
|
}>, "many">;
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
lastCommitMessages: string;
|
|
2988
|
-
};
|
|
2989
|
-
changesSinceLastChat: Record<string, string>;
|
|
2990
|
-
shellConfigFiles: Record<string, string>;
|
|
2991
|
-
systemInfo: {
|
|
2992
|
-
platform: string;
|
|
2993
|
-
shell: string;
|
|
2994
|
-
nodeVersion: string;
|
|
2995
|
-
arch: string;
|
|
2996
|
-
homedir: string;
|
|
2997
|
-
cpus: number;
|
|
2998
|
-
};
|
|
2999
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3000
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3001
|
-
fileVersions?: {
|
|
3002
|
-
path: string;
|
|
3003
|
-
content: string;
|
|
3004
|
-
}[][] | undefined;
|
|
3005
|
-
};
|
|
3006
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
3007
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
3015
|
-
agentStepsRemaining: number;
|
|
3016
|
-
};
|
|
3017
|
-
toolResults: {
|
|
3018
|
-
name: string;
|
|
3019
|
-
id: string;
|
|
3020
|
-
result: string;
|
|
1729
|
+
resetFileVersions: z.ZodBoolean;
|
|
1730
|
+
}, {
|
|
1731
|
+
usage: z.ZodOptional<z.ZodNumber>;
|
|
1732
|
+
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
1733
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
1734
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1735
|
+
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1736
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1737
|
+
type: "response-complete";
|
|
1738
|
+
userInputId: string;
|
|
1739
|
+
response: string;
|
|
1740
|
+
changes: {
|
|
1741
|
+
path: string;
|
|
1742
|
+
type: "patch" | "file";
|
|
1743
|
+
content: string;
|
|
3021
1744
|
}[];
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
1745
|
+
changesAlreadyApplied: {
|
|
1746
|
+
path: string;
|
|
1747
|
+
type: "patch" | "file";
|
|
1748
|
+
content: string;
|
|
1749
|
+
}[];
|
|
1750
|
+
addedFileVersions: {
|
|
1751
|
+
path: string;
|
|
1752
|
+
content: string;
|
|
3026
1753
|
}[];
|
|
1754
|
+
resetFileVersions: boolean;
|
|
1755
|
+
usage?: number | undefined;
|
|
1756
|
+
remainingBalance?: number | undefined;
|
|
1757
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1758
|
+
next_quota_reset?: Date | null | undefined;
|
|
1759
|
+
autoTopupAdded?: number | undefined;
|
|
3027
1760
|
}, {
|
|
3028
|
-
type: "
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3036
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3037
|
-
knowledgeFiles: Record<string, string>;
|
|
3038
|
-
gitChanges: {
|
|
3039
|
-
status: string;
|
|
3040
|
-
diff: string;
|
|
3041
|
-
diffCached: string;
|
|
3042
|
-
lastCommitMessages: string;
|
|
3043
|
-
};
|
|
3044
|
-
changesSinceLastChat: Record<string, string>;
|
|
3045
|
-
shellConfigFiles: Record<string, string>;
|
|
3046
|
-
systemInfo: {
|
|
3047
|
-
platform: string;
|
|
3048
|
-
shell: string;
|
|
3049
|
-
nodeVersion: string;
|
|
3050
|
-
arch: string;
|
|
3051
|
-
homedir: string;
|
|
3052
|
-
cpus: number;
|
|
3053
|
-
};
|
|
3054
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3055
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3056
|
-
fileVersions?: {
|
|
3057
|
-
path: string;
|
|
3058
|
-
content: string;
|
|
3059
|
-
}[][] | undefined;
|
|
3060
|
-
};
|
|
3061
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
3062
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3063
|
-
})[];
|
|
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;
|
|
3071
|
-
};
|
|
3072
|
-
toolResults: {
|
|
3073
|
-
name: string;
|
|
3074
|
-
id: string;
|
|
3075
|
-
result: string;
|
|
1761
|
+
type: "response-complete";
|
|
1762
|
+
userInputId: string;
|
|
1763
|
+
response: string;
|
|
1764
|
+
changes: {
|
|
1765
|
+
path: string;
|
|
1766
|
+
type: "patch" | "file";
|
|
1767
|
+
content: string;
|
|
3076
1768
|
}[];
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
1769
|
+
changesAlreadyApplied: {
|
|
1770
|
+
path: string;
|
|
1771
|
+
type: "patch" | "file";
|
|
1772
|
+
content: string;
|
|
1773
|
+
}[];
|
|
1774
|
+
addedFileVersions: {
|
|
1775
|
+
path: string;
|
|
1776
|
+
content: string;
|
|
3081
1777
|
}[];
|
|
1778
|
+
resetFileVersions: boolean;
|
|
1779
|
+
usage?: number | undefined;
|
|
1780
|
+
remainingBalance?: number | undefined;
|
|
1781
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
1782
|
+
next_quota_reset?: Date | null | undefined;
|
|
1783
|
+
autoTopupAdded?: number | undefined;
|
|
3082
1784
|
}>, z.ZodObject<{
|
|
3083
|
-
type: z.ZodLiteral<"
|
|
1785
|
+
type: z.ZodLiteral<"prompt-response">;
|
|
3084
1786
|
promptId: z.ZodString;
|
|
3085
1787
|
agentState: z.ZodObject<{
|
|
3086
1788
|
agentContext: z.ZodString;
|
|
@@ -3302,33 +2004,33 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3302
2004
|
}[] | undefined;
|
|
3303
2005
|
}>;
|
|
3304
2006
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
2007
|
+
toolName: z.ZodString;
|
|
2008
|
+
args: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2009
|
+
toolCallId: z.ZodString;
|
|
3308
2010
|
}, "strip", z.ZodTypeAny, {
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
2011
|
+
toolName: string;
|
|
2012
|
+
args: Record<string, string>;
|
|
2013
|
+
toolCallId: string;
|
|
3312
2014
|
}, {
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
2015
|
+
toolName: string;
|
|
2016
|
+
args: Record<string, string>;
|
|
2017
|
+
toolCallId: string;
|
|
3316
2018
|
}>, "many">;
|
|
3317
2019
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
3318
|
-
|
|
2020
|
+
toolName: z.ZodString;
|
|
2021
|
+
toolCallId: z.ZodString;
|
|
3319
2022
|
result: z.ZodString;
|
|
3320
|
-
id: z.ZodString;
|
|
3321
2023
|
}, "strip", z.ZodTypeAny, {
|
|
3322
|
-
|
|
3323
|
-
|
|
2024
|
+
toolName: string;
|
|
2025
|
+
toolCallId: string;
|
|
3324
2026
|
result: string;
|
|
3325
2027
|
}, {
|
|
3326
|
-
|
|
3327
|
-
|
|
2028
|
+
toolName: string;
|
|
2029
|
+
toolCallId: string;
|
|
3328
2030
|
result: string;
|
|
3329
2031
|
}>, "many">;
|
|
3330
2032
|
}, "strip", z.ZodTypeAny, {
|
|
3331
|
-
type: "
|
|
2033
|
+
type: "prompt-response";
|
|
3332
2034
|
promptId: string;
|
|
3333
2035
|
agentState: {
|
|
3334
2036
|
agentContext: string;
|
|
@@ -3373,17 +2075,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3373
2075
|
agentStepsRemaining: number;
|
|
3374
2076
|
};
|
|
3375
2077
|
toolResults: {
|
|
3376
|
-
|
|
3377
|
-
|
|
2078
|
+
toolName: string;
|
|
2079
|
+
toolCallId: string;
|
|
3378
2080
|
result: string;
|
|
3379
2081
|
}[];
|
|
3380
2082
|
toolCalls: {
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
2083
|
+
toolName: string;
|
|
2084
|
+
args: Record<string, string>;
|
|
2085
|
+
toolCallId: string;
|
|
3384
2086
|
}[];
|
|
3385
2087
|
}, {
|
|
3386
|
-
type: "
|
|
2088
|
+
type: "prompt-response";
|
|
3387
2089
|
promptId: string;
|
|
3388
2090
|
agentState: {
|
|
3389
2091
|
agentContext: string;
|
|
@@ -3428,14 +2130,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3428
2130
|
}[] | undefined;
|
|
3429
2131
|
};
|
|
3430
2132
|
toolResults: {
|
|
3431
|
-
|
|
3432
|
-
|
|
2133
|
+
toolName: string;
|
|
2134
|
+
toolCallId: string;
|
|
3433
2135
|
result: string;
|
|
3434
2136
|
}[];
|
|
3435
2137
|
toolCalls: {
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
2138
|
+
toolName: string;
|
|
2139
|
+
args: Record<string, string>;
|
|
2140
|
+
toolCallId: string;
|
|
3439
2141
|
}[];
|
|
3440
2142
|
}>, z.ZodObject<{
|
|
3441
2143
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3454,17 +2156,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3454
2156
|
userInputId: z.ZodString;
|
|
3455
2157
|
response: z.ZodString;
|
|
3456
2158
|
data: z.ZodObject<{
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
2159
|
+
toolName: z.ZodString;
|
|
2160
|
+
args: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2161
|
+
toolCallId: z.ZodString;
|
|
3460
2162
|
}, "strip", z.ZodTypeAny, {
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
2163
|
+
toolName: string;
|
|
2164
|
+
args: Record<string, string>;
|
|
2165
|
+
toolCallId: string;
|
|
3464
2166
|
}, {
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
2167
|
+
toolName: string;
|
|
2168
|
+
args: Record<string, string>;
|
|
2169
|
+
toolCallId: string;
|
|
3468
2170
|
}>;
|
|
3469
2171
|
changes: z.ZodArray<z.ZodObject<{
|
|
3470
2172
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3472,12 +2174,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3472
2174
|
content: z.ZodString;
|
|
3473
2175
|
}, "strip", z.ZodTypeAny, {
|
|
3474
2176
|
path: string;
|
|
2177
|
+
type: "patch" | "file";
|
|
3475
2178
|
content: string;
|
|
3476
|
-
type: "file" | "patch";
|
|
3477
2179
|
}, {
|
|
3478
2180
|
path: string;
|
|
2181
|
+
type: "patch" | "file";
|
|
3479
2182
|
content: string;
|
|
3480
|
-
type: "file" | "patch";
|
|
3481
2183
|
}>, "many">;
|
|
3482
2184
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3483
2185
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -3485,12 +2187,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3485
2187
|
content: z.ZodString;
|
|
3486
2188
|
}, "strip", z.ZodTypeAny, {
|
|
3487
2189
|
path: string;
|
|
2190
|
+
type: "patch" | "file";
|
|
3488
2191
|
content: string;
|
|
3489
|
-
type: "file" | "patch";
|
|
3490
2192
|
}, {
|
|
3491
2193
|
path: string;
|
|
2194
|
+
type: "patch" | "file";
|
|
3492
2195
|
content: string;
|
|
3493
|
-
type: "file" | "patch";
|
|
3494
2196
|
}>, "many">;
|
|
3495
2197
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3496
2198
|
path: z.ZodString;
|
|
@@ -3509,13 +2211,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3509
2211
|
response: string;
|
|
3510
2212
|
changes: {
|
|
3511
2213
|
path: string;
|
|
2214
|
+
type: "patch" | "file";
|
|
3512
2215
|
content: string;
|
|
3513
|
-
type: "file" | "patch";
|
|
3514
2216
|
}[];
|
|
3515
2217
|
changesAlreadyApplied: {
|
|
3516
2218
|
path: string;
|
|
2219
|
+
type: "patch" | "file";
|
|
3517
2220
|
content: string;
|
|
3518
|
-
type: "file" | "patch";
|
|
3519
2221
|
}[];
|
|
3520
2222
|
addedFileVersions: {
|
|
3521
2223
|
path: string;
|
|
@@ -3523,9 +2225,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3523
2225
|
}[];
|
|
3524
2226
|
resetFileVersions: boolean;
|
|
3525
2227
|
data: {
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
2228
|
+
toolName: string;
|
|
2229
|
+
args: Record<string, string>;
|
|
2230
|
+
toolCallId: string;
|
|
3529
2231
|
};
|
|
3530
2232
|
}, {
|
|
3531
2233
|
type: "tool-call";
|
|
@@ -3533,13 +2235,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3533
2235
|
response: string;
|
|
3534
2236
|
changes: {
|
|
3535
2237
|
path: string;
|
|
2238
|
+
type: "patch" | "file";
|
|
3536
2239
|
content: string;
|
|
3537
|
-
type: "file" | "patch";
|
|
3538
2240
|
}[];
|
|
3539
2241
|
changesAlreadyApplied: {
|
|
3540
2242
|
path: string;
|
|
2243
|
+
type: "patch" | "file";
|
|
3541
2244
|
content: string;
|
|
3542
|
-
type: "file" | "patch";
|
|
3543
2245
|
}[];
|
|
3544
2246
|
addedFileVersions: {
|
|
3545
2247
|
path: string;
|
|
@@ -3547,9 +2249,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3547
2249
|
}[];
|
|
3548
2250
|
resetFileVersions: boolean;
|
|
3549
2251
|
data: {
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
2252
|
+
toolName: string;
|
|
2253
|
+
args: Record<string, string>;
|
|
2254
|
+
toolCallId: string;
|
|
3553
2255
|
};
|
|
3554
2256
|
}>, z.ZodObject<{
|
|
3555
2257
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
@@ -3684,13 +2386,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3684
2386
|
response: string;
|
|
3685
2387
|
changes: {
|
|
3686
2388
|
path: string;
|
|
2389
|
+
type: "patch" | "file";
|
|
3687
2390
|
content: string;
|
|
3688
|
-
type: "file" | "patch";
|
|
3689
2391
|
}[];
|
|
3690
2392
|
changesAlreadyApplied: {
|
|
3691
2393
|
path: string;
|
|
2394
|
+
type: "patch" | "file";
|
|
3692
2395
|
content: string;
|
|
3693
|
-
type: "file" | "patch";
|
|
3694
2396
|
}[];
|
|
3695
2397
|
addedFileVersions: {
|
|
3696
2398
|
path: string;
|
|
@@ -3752,69 +2454,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3752
2454
|
agentStepsRemaining: number;
|
|
3753
2455
|
};
|
|
3754
2456
|
toolResults: {
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
result: string;
|
|
3758
|
-
}[];
|
|
3759
|
-
toolCalls: {
|
|
3760
|
-
name: string;
|
|
3761
|
-
id: string;
|
|
3762
|
-
parameters: Record<string, string>;
|
|
3763
|
-
}[];
|
|
3764
|
-
} | {
|
|
3765
|
-
type: "manager-prompt-response";
|
|
3766
|
-
promptId: string;
|
|
3767
|
-
agentState: {
|
|
3768
|
-
agentContext: string;
|
|
3769
|
-
fileContext: {
|
|
3770
|
-
projectRoot: string;
|
|
3771
|
-
cwd: string;
|
|
3772
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3773
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3774
|
-
knowledgeFiles: Record<string, string>;
|
|
3775
|
-
gitChanges: {
|
|
3776
|
-
status: string;
|
|
3777
|
-
diff: string;
|
|
3778
|
-
diffCached: string;
|
|
3779
|
-
lastCommitMessages: string;
|
|
3780
|
-
};
|
|
3781
|
-
changesSinceLastChat: Record<string, string>;
|
|
3782
|
-
shellConfigFiles: Record<string, string>;
|
|
3783
|
-
systemInfo: {
|
|
3784
|
-
platform: string;
|
|
3785
|
-
shell: string;
|
|
3786
|
-
nodeVersion: string;
|
|
3787
|
-
arch: string;
|
|
3788
|
-
homedir: string;
|
|
3789
|
-
cpus: number;
|
|
3790
|
-
};
|
|
3791
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3792
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3793
|
-
fileVersions?: {
|
|
3794
|
-
path: string;
|
|
3795
|
-
content: string;
|
|
3796
|
-
}[][] | undefined;
|
|
3797
|
-
};
|
|
3798
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
3799
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
3807
|
-
agentStepsRemaining: number;
|
|
3808
|
-
};
|
|
3809
|
-
toolResults: {
|
|
3810
|
-
name: string;
|
|
3811
|
-
id: string;
|
|
2457
|
+
toolName: string;
|
|
2458
|
+
toolCallId: string;
|
|
3812
2459
|
result: string;
|
|
3813
2460
|
}[];
|
|
3814
2461
|
toolCalls: {
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
2462
|
+
toolName: string;
|
|
2463
|
+
args: Record<string, string>;
|
|
2464
|
+
toolCallId: string;
|
|
3818
2465
|
}[];
|
|
3819
2466
|
} | {
|
|
3820
2467
|
type: "response-chunk";
|
|
@@ -3830,13 +2477,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3830
2477
|
response: string;
|
|
3831
2478
|
changes: {
|
|
3832
2479
|
path: string;
|
|
2480
|
+
type: "patch" | "file";
|
|
3833
2481
|
content: string;
|
|
3834
|
-
type: "file" | "patch";
|
|
3835
2482
|
}[];
|
|
3836
2483
|
changesAlreadyApplied: {
|
|
3837
2484
|
path: string;
|
|
2485
|
+
type: "patch" | "file";
|
|
3838
2486
|
content: string;
|
|
3839
|
-
type: "file" | "patch";
|
|
3840
2487
|
}[];
|
|
3841
2488
|
addedFileVersions: {
|
|
3842
2489
|
path: string;
|
|
@@ -3844,9 +2491,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3844
2491
|
}[];
|
|
3845
2492
|
resetFileVersions: boolean;
|
|
3846
2493
|
data: {
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
2494
|
+
toolName: string;
|
|
2495
|
+
args: Record<string, string>;
|
|
2496
|
+
toolCallId: string;
|
|
3850
2497
|
};
|
|
3851
2498
|
} | {
|
|
3852
2499
|
type: "terminal-command-result";
|
|
@@ -3889,13 +2536,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3889
2536
|
response: string;
|
|
3890
2537
|
changes: {
|
|
3891
2538
|
path: string;
|
|
2539
|
+
type: "patch" | "file";
|
|
3892
2540
|
content: string;
|
|
3893
|
-
type: "file" | "patch";
|
|
3894
2541
|
}[];
|
|
3895
2542
|
changesAlreadyApplied: {
|
|
3896
2543
|
path: string;
|
|
2544
|
+
type: "patch" | "file";
|
|
3897
2545
|
content: string;
|
|
3898
|
-
type: "file" | "patch";
|
|
3899
2546
|
}[];
|
|
3900
2547
|
addedFileVersions: {
|
|
3901
2548
|
path: string;
|
|
@@ -3957,69 +2604,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3957
2604
|
}[] | undefined;
|
|
3958
2605
|
};
|
|
3959
2606
|
toolResults: {
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
result: string;
|
|
3963
|
-
}[];
|
|
3964
|
-
toolCalls: {
|
|
3965
|
-
name: string;
|
|
3966
|
-
id: string;
|
|
3967
|
-
parameters: Record<string, string>;
|
|
3968
|
-
}[];
|
|
3969
|
-
} | {
|
|
3970
|
-
type: "manager-prompt-response";
|
|
3971
|
-
promptId: string;
|
|
3972
|
-
agentState: {
|
|
3973
|
-
agentContext: string;
|
|
3974
|
-
fileContext: {
|
|
3975
|
-
projectRoot: string;
|
|
3976
|
-
cwd: string;
|
|
3977
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3978
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3979
|
-
knowledgeFiles: Record<string, string>;
|
|
3980
|
-
gitChanges: {
|
|
3981
|
-
status: string;
|
|
3982
|
-
diff: string;
|
|
3983
|
-
diffCached: string;
|
|
3984
|
-
lastCommitMessages: string;
|
|
3985
|
-
};
|
|
3986
|
-
changesSinceLastChat: Record<string, string>;
|
|
3987
|
-
shellConfigFiles: Record<string, string>;
|
|
3988
|
-
systemInfo: {
|
|
3989
|
-
platform: string;
|
|
3990
|
-
shell: string;
|
|
3991
|
-
nodeVersion: string;
|
|
3992
|
-
arch: string;
|
|
3993
|
-
homedir: string;
|
|
3994
|
-
cpus: number;
|
|
3995
|
-
};
|
|
3996
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3997
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3998
|
-
fileVersions?: {
|
|
3999
|
-
path: string;
|
|
4000
|
-
content: string;
|
|
4001
|
-
}[][] | undefined;
|
|
4002
|
-
};
|
|
4003
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
4004
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4005
|
-
})[];
|
|
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;
|
|
4013
|
-
};
|
|
4014
|
-
toolResults: {
|
|
4015
|
-
name: string;
|
|
4016
|
-
id: string;
|
|
2607
|
+
toolName: string;
|
|
2608
|
+
toolCallId: string;
|
|
4017
2609
|
result: string;
|
|
4018
2610
|
}[];
|
|
4019
2611
|
toolCalls: {
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
2612
|
+
toolName: string;
|
|
2613
|
+
args: Record<string, string>;
|
|
2614
|
+
toolCallId: string;
|
|
4023
2615
|
}[];
|
|
4024
2616
|
} | {
|
|
4025
2617
|
type: "response-chunk";
|
|
@@ -4035,13 +2627,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4035
2627
|
response: string;
|
|
4036
2628
|
changes: {
|
|
4037
2629
|
path: string;
|
|
2630
|
+
type: "patch" | "file";
|
|
4038
2631
|
content: string;
|
|
4039
|
-
type: "file" | "patch";
|
|
4040
2632
|
}[];
|
|
4041
2633
|
changesAlreadyApplied: {
|
|
4042
2634
|
path: string;
|
|
2635
|
+
type: "patch" | "file";
|
|
4043
2636
|
content: string;
|
|
4044
|
-
type: "file" | "patch";
|
|
4045
2637
|
}[];
|
|
4046
2638
|
addedFileVersions: {
|
|
4047
2639
|
path: string;
|
|
@@ -4049,9 +2641,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4049
2641
|
}[];
|
|
4050
2642
|
resetFileVersions: boolean;
|
|
4051
2643
|
data: {
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
2644
|
+
toolName: string;
|
|
2645
|
+
args: Record<string, string>;
|
|
2646
|
+
toolCallId: string;
|
|
4055
2647
|
};
|
|
4056
2648
|
} | {
|
|
4057
2649
|
type: "terminal-command-result";
|
|
@@ -4100,464 +2692,106 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4100
2692
|
userInputId: string;
|
|
4101
2693
|
chunk: string;
|
|
4102
2694
|
}, {
|
|
4103
|
-
type: "response-chunk";
|
|
4104
|
-
userInputId: string;
|
|
4105
|
-
chunk: string;
|
|
4106
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4107
|
-
type: z.ZodLiteral<"response-complete">;
|
|
4108
|
-
userInputId: z.ZodString;
|
|
4109
|
-
response: z.ZodString;
|
|
4110
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
4111
|
-
type: z.ZodEnum<["patch", "file"]>;
|
|
4112
|
-
path: z.ZodString;
|
|
4113
|
-
content: z.ZodString;
|
|
4114
|
-
}, "strip", z.ZodTypeAny, {
|
|
4115
|
-
path: string;
|
|
4116
|
-
content: string;
|
|
4117
|
-
type: "file" | "patch";
|
|
4118
|
-
}, {
|
|
4119
|
-
path: string;
|
|
4120
|
-
content: string;
|
|
4121
|
-
type: "file" | "patch";
|
|
4122
|
-
}>, "many">;
|
|
4123
|
-
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4124
|
-
type: z.ZodEnum<["patch", "file"]>;
|
|
4125
|
-
path: z.ZodString;
|
|
4126
|
-
content: z.ZodString;
|
|
4127
|
-
}, "strip", z.ZodTypeAny, {
|
|
4128
|
-
path: string;
|
|
4129
|
-
content: string;
|
|
4130
|
-
type: "file" | "patch";
|
|
4131
|
-
}, {
|
|
4132
|
-
path: string;
|
|
4133
|
-
content: string;
|
|
4134
|
-
type: "file" | "patch";
|
|
4135
|
-
}>, "many">;
|
|
4136
|
-
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4137
|
-
path: z.ZodString;
|
|
4138
|
-
content: z.ZodString;
|
|
4139
|
-
}, "strip", z.ZodTypeAny, {
|
|
4140
|
-
path: string;
|
|
4141
|
-
content: string;
|
|
4142
|
-
}, {
|
|
4143
|
-
path: string;
|
|
4144
|
-
content: string;
|
|
4145
|
-
}>, "many">;
|
|
4146
|
-
resetFileVersions: z.ZodBoolean;
|
|
4147
|
-
}, {
|
|
4148
|
-
usage: z.ZodOptional<z.ZodNumber>;
|
|
4149
|
-
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4150
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
4151
|
-
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
4152
|
-
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
4153
|
-
}>, "strip", z.ZodTypeAny, {
|
|
4154
|
-
type: "response-complete";
|
|
4155
|
-
userInputId: string;
|
|
4156
|
-
response: string;
|
|
4157
|
-
changes: {
|
|
4158
|
-
path: string;
|
|
4159
|
-
content: string;
|
|
4160
|
-
type: "file" | "patch";
|
|
4161
|
-
}[];
|
|
4162
|
-
changesAlreadyApplied: {
|
|
4163
|
-
path: string;
|
|
4164
|
-
content: string;
|
|
4165
|
-
type: "file" | "patch";
|
|
4166
|
-
}[];
|
|
4167
|
-
addedFileVersions: {
|
|
4168
|
-
path: string;
|
|
4169
|
-
content: string;
|
|
4170
|
-
}[];
|
|
4171
|
-
resetFileVersions: boolean;
|
|
4172
|
-
usage?: number | undefined;
|
|
4173
|
-
remainingBalance?: number | undefined;
|
|
4174
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4175
|
-
next_quota_reset?: Date | null | undefined;
|
|
4176
|
-
autoTopupAdded?: number | undefined;
|
|
4177
|
-
}, {
|
|
4178
|
-
type: "response-complete";
|
|
2695
|
+
type: "response-chunk";
|
|
4179
2696
|
userInputId: string;
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
2697
|
+
chunk: string;
|
|
2698
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2699
|
+
type: z.ZodLiteral<"response-complete">;
|
|
2700
|
+
userInputId: z.ZodString;
|
|
2701
|
+
response: z.ZodString;
|
|
2702
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2703
|
+
type: z.ZodEnum<["patch", "file"]>;
|
|
2704
|
+
path: z.ZodString;
|
|
2705
|
+
content: z.ZodString;
|
|
2706
|
+
}, "strip", z.ZodTypeAny, {
|
|
4187
2707
|
path: string;
|
|
2708
|
+
type: "patch" | "file";
|
|
4188
2709
|
content: string;
|
|
4189
|
-
|
|
4190
|
-
}[];
|
|
4191
|
-
addedFileVersions: {
|
|
2710
|
+
}, {
|
|
4192
2711
|
path: string;
|
|
2712
|
+
type: "patch" | "file";
|
|
4193
2713
|
content: string;
|
|
4194
|
-
}
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
next_quota_reset?: Date | null | undefined;
|
|
4200
|
-
autoTopupAdded?: number | undefined;
|
|
4201
|
-
}>, z.ZodObject<{
|
|
4202
|
-
type: z.ZodLiteral<"prompt-response">;
|
|
4203
|
-
promptId: z.ZodString;
|
|
4204
|
-
agentState: z.ZodObject<{
|
|
4205
|
-
agentContext: z.ZodString;
|
|
4206
|
-
fileContext: z.ZodObject<{
|
|
4207
|
-
projectRoot: z.ZodString;
|
|
4208
|
-
cwd: z.ZodString;
|
|
4209
|
-
fileTree: z.ZodArray<z.ZodType<import("../util/file").FileTreeNode, z.ZodTypeDef, import("../util/file").FileTreeNode>, "many">;
|
|
4210
|
-
fileTokenScores: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4211
|
-
tokenCallers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
|
|
4212
|
-
knowledgeFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4213
|
-
userKnowledgeFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4214
|
-
gitChanges: z.ZodObject<{
|
|
4215
|
-
status: z.ZodString;
|
|
4216
|
-
diff: z.ZodString;
|
|
4217
|
-
diffCached: z.ZodString;
|
|
4218
|
-
lastCommitMessages: z.ZodString;
|
|
4219
|
-
}, "strip", z.ZodTypeAny, {
|
|
4220
|
-
status: string;
|
|
4221
|
-
diff: string;
|
|
4222
|
-
diffCached: string;
|
|
4223
|
-
lastCommitMessages: string;
|
|
4224
|
-
}, {
|
|
4225
|
-
status: string;
|
|
4226
|
-
diff: string;
|
|
4227
|
-
diffCached: string;
|
|
4228
|
-
lastCommitMessages: string;
|
|
4229
|
-
}>;
|
|
4230
|
-
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4231
|
-
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4232
|
-
systemInfo: z.ZodObject<{
|
|
4233
|
-
platform: z.ZodString;
|
|
4234
|
-
shell: z.ZodString;
|
|
4235
|
-
nodeVersion: z.ZodString;
|
|
4236
|
-
arch: z.ZodString;
|
|
4237
|
-
homedir: z.ZodString;
|
|
4238
|
-
cpus: z.ZodNumber;
|
|
4239
|
-
}, "strip", z.ZodTypeAny, {
|
|
4240
|
-
platform: string;
|
|
4241
|
-
shell: string;
|
|
4242
|
-
nodeVersion: string;
|
|
4243
|
-
arch: string;
|
|
4244
|
-
homedir: string;
|
|
4245
|
-
cpus: number;
|
|
4246
|
-
}, {
|
|
4247
|
-
platform: string;
|
|
4248
|
-
shell: string;
|
|
4249
|
-
nodeVersion: string;
|
|
4250
|
-
arch: string;
|
|
4251
|
-
homedir: string;
|
|
4252
|
-
cpus: number;
|
|
4253
|
-
}>;
|
|
4254
|
-
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
4255
|
-
path: z.ZodString;
|
|
4256
|
-
content: z.ZodString;
|
|
4257
|
-
}, "strip", z.ZodTypeAny, {
|
|
4258
|
-
path: string;
|
|
4259
|
-
content: string;
|
|
4260
|
-
}, {
|
|
4261
|
-
path: string;
|
|
4262
|
-
content: string;
|
|
4263
|
-
}>, "many">, "many">>;
|
|
4264
|
-
}, "strip", z.ZodTypeAny, {
|
|
4265
|
-
projectRoot: string;
|
|
4266
|
-
cwd: string;
|
|
4267
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
4268
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
4269
|
-
knowledgeFiles: Record<string, string>;
|
|
4270
|
-
gitChanges: {
|
|
4271
|
-
status: string;
|
|
4272
|
-
diff: string;
|
|
4273
|
-
diffCached: string;
|
|
4274
|
-
lastCommitMessages: string;
|
|
4275
|
-
};
|
|
4276
|
-
changesSinceLastChat: Record<string, string>;
|
|
4277
|
-
shellConfigFiles: Record<string, string>;
|
|
4278
|
-
systemInfo: {
|
|
4279
|
-
platform: string;
|
|
4280
|
-
shell: string;
|
|
4281
|
-
nodeVersion: string;
|
|
4282
|
-
arch: string;
|
|
4283
|
-
homedir: string;
|
|
4284
|
-
cpus: number;
|
|
4285
|
-
};
|
|
4286
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4287
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4288
|
-
fileVersions?: {
|
|
4289
|
-
path: string;
|
|
4290
|
-
content: string;
|
|
4291
|
-
}[][] | undefined;
|
|
4292
|
-
}, {
|
|
4293
|
-
projectRoot: string;
|
|
4294
|
-
cwd: string;
|
|
4295
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
4296
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
4297
|
-
knowledgeFiles: Record<string, string>;
|
|
4298
|
-
gitChanges: {
|
|
4299
|
-
status: string;
|
|
4300
|
-
diff: string;
|
|
4301
|
-
diffCached: string;
|
|
4302
|
-
lastCommitMessages: string;
|
|
4303
|
-
};
|
|
4304
|
-
changesSinceLastChat: Record<string, string>;
|
|
4305
|
-
shellConfigFiles: Record<string, string>;
|
|
4306
|
-
systemInfo: {
|
|
4307
|
-
platform: string;
|
|
4308
|
-
shell: string;
|
|
4309
|
-
nodeVersion: string;
|
|
4310
|
-
arch: string;
|
|
4311
|
-
homedir: string;
|
|
4312
|
-
cpus: number;
|
|
4313
|
-
};
|
|
4314
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4315
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4316
|
-
fileVersions?: {
|
|
4317
|
-
path: string;
|
|
4318
|
-
content: string;
|
|
4319
|
-
}[][] | undefined;
|
|
4320
|
-
}>;
|
|
4321
|
-
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
4322
|
-
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
4323
|
-
}, "strip", z.ZodTypeAny, {
|
|
4324
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4325
|
-
}, {
|
|
4326
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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">>;
|
|
4339
|
-
agentStepsRemaining: z.ZodNumber;
|
|
4340
|
-
}, "strip", z.ZodTypeAny, {
|
|
4341
|
-
agentContext: string;
|
|
4342
|
-
fileContext: {
|
|
4343
|
-
projectRoot: string;
|
|
4344
|
-
cwd: string;
|
|
4345
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
4346
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
4347
|
-
knowledgeFiles: Record<string, string>;
|
|
4348
|
-
gitChanges: {
|
|
4349
|
-
status: string;
|
|
4350
|
-
diff: string;
|
|
4351
|
-
diffCached: string;
|
|
4352
|
-
lastCommitMessages: string;
|
|
4353
|
-
};
|
|
4354
|
-
changesSinceLastChat: Record<string, string>;
|
|
4355
|
-
shellConfigFiles: Record<string, string>;
|
|
4356
|
-
systemInfo: {
|
|
4357
|
-
platform: string;
|
|
4358
|
-
shell: string;
|
|
4359
|
-
nodeVersion: string;
|
|
4360
|
-
arch: string;
|
|
4361
|
-
homedir: string;
|
|
4362
|
-
cpus: number;
|
|
4363
|
-
};
|
|
4364
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4365
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4366
|
-
fileVersions?: {
|
|
4367
|
-
path: string;
|
|
4368
|
-
content: string;
|
|
4369
|
-
}[][] | undefined;
|
|
4370
|
-
};
|
|
4371
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
4372
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
4380
|
-
agentStepsRemaining: number;
|
|
4381
|
-
}, {
|
|
4382
|
-
agentContext: string;
|
|
4383
|
-
fileContext: {
|
|
4384
|
-
projectRoot: string;
|
|
4385
|
-
cwd: string;
|
|
4386
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
4387
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
4388
|
-
knowledgeFiles: Record<string, string>;
|
|
4389
|
-
gitChanges: {
|
|
4390
|
-
status: string;
|
|
4391
|
-
diff: string;
|
|
4392
|
-
diffCached: string;
|
|
4393
|
-
lastCommitMessages: string;
|
|
4394
|
-
};
|
|
4395
|
-
changesSinceLastChat: Record<string, string>;
|
|
4396
|
-
shellConfigFiles: Record<string, string>;
|
|
4397
|
-
systemInfo: {
|
|
4398
|
-
platform: string;
|
|
4399
|
-
shell: string;
|
|
4400
|
-
nodeVersion: string;
|
|
4401
|
-
arch: string;
|
|
4402
|
-
homedir: string;
|
|
4403
|
-
cpus: number;
|
|
4404
|
-
};
|
|
4405
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4406
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4407
|
-
fileVersions?: {
|
|
4408
|
-
path: string;
|
|
4409
|
-
content: string;
|
|
4410
|
-
}[][] | undefined;
|
|
4411
|
-
};
|
|
4412
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
4413
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4414
|
-
})[];
|
|
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;
|
|
4422
|
-
}>;
|
|
4423
|
-
toolCalls: z.ZodArray<z.ZodObject<{
|
|
4424
|
-
name: z.ZodString;
|
|
4425
|
-
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4426
|
-
id: z.ZodString;
|
|
2714
|
+
}>, "many">;
|
|
2715
|
+
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2716
|
+
type: z.ZodEnum<["patch", "file"]>;
|
|
2717
|
+
path: z.ZodString;
|
|
2718
|
+
content: z.ZodString;
|
|
4427
2719
|
}, "strip", z.ZodTypeAny, {
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
2720
|
+
path: string;
|
|
2721
|
+
type: "patch" | "file";
|
|
2722
|
+
content: string;
|
|
4431
2723
|
}, {
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
2724
|
+
path: string;
|
|
2725
|
+
type: "patch" | "file";
|
|
2726
|
+
content: string;
|
|
4435
2727
|
}>, "many">;
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
id: z.ZodString;
|
|
2728
|
+
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2729
|
+
path: z.ZodString;
|
|
2730
|
+
content: z.ZodString;
|
|
4440
2731
|
}, "strip", z.ZodTypeAny, {
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
result: string;
|
|
2732
|
+
path: string;
|
|
2733
|
+
content: string;
|
|
4444
2734
|
}, {
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
result: string;
|
|
2735
|
+
path: string;
|
|
2736
|
+
content: string;
|
|
4448
2737
|
}>, "many">;
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
lastCommitMessages: string;
|
|
4465
|
-
};
|
|
4466
|
-
changesSinceLastChat: Record<string, string>;
|
|
4467
|
-
shellConfigFiles: Record<string, string>;
|
|
4468
|
-
systemInfo: {
|
|
4469
|
-
platform: string;
|
|
4470
|
-
shell: string;
|
|
4471
|
-
nodeVersion: string;
|
|
4472
|
-
arch: string;
|
|
4473
|
-
homedir: string;
|
|
4474
|
-
cpus: number;
|
|
4475
|
-
};
|
|
4476
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4477
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4478
|
-
fileVersions?: {
|
|
4479
|
-
path: string;
|
|
4480
|
-
content: string;
|
|
4481
|
-
}[][] | undefined;
|
|
4482
|
-
};
|
|
4483
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
4484
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
4492
|
-
agentStepsRemaining: number;
|
|
4493
|
-
};
|
|
4494
|
-
toolResults: {
|
|
4495
|
-
name: string;
|
|
4496
|
-
id: string;
|
|
4497
|
-
result: string;
|
|
2738
|
+
resetFileVersions: z.ZodBoolean;
|
|
2739
|
+
}, {
|
|
2740
|
+
usage: z.ZodOptional<z.ZodNumber>;
|
|
2741
|
+
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2742
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
2743
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2744
|
+
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2745
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2746
|
+
type: "response-complete";
|
|
2747
|
+
userInputId: string;
|
|
2748
|
+
response: string;
|
|
2749
|
+
changes: {
|
|
2750
|
+
path: string;
|
|
2751
|
+
type: "patch" | "file";
|
|
2752
|
+
content: string;
|
|
4498
2753
|
}[];
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
2754
|
+
changesAlreadyApplied: {
|
|
2755
|
+
path: string;
|
|
2756
|
+
type: "patch" | "file";
|
|
2757
|
+
content: string;
|
|
2758
|
+
}[];
|
|
2759
|
+
addedFileVersions: {
|
|
2760
|
+
path: string;
|
|
2761
|
+
content: string;
|
|
4503
2762
|
}[];
|
|
2763
|
+
resetFileVersions: boolean;
|
|
2764
|
+
usage?: number | undefined;
|
|
2765
|
+
remainingBalance?: number | undefined;
|
|
2766
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2767
|
+
next_quota_reset?: Date | null | undefined;
|
|
2768
|
+
autoTopupAdded?: number | undefined;
|
|
4504
2769
|
}, {
|
|
4505
|
-
type: "
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
4513
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
4514
|
-
knowledgeFiles: Record<string, string>;
|
|
4515
|
-
gitChanges: {
|
|
4516
|
-
status: string;
|
|
4517
|
-
diff: string;
|
|
4518
|
-
diffCached: string;
|
|
4519
|
-
lastCommitMessages: string;
|
|
4520
|
-
};
|
|
4521
|
-
changesSinceLastChat: Record<string, string>;
|
|
4522
|
-
shellConfigFiles: Record<string, string>;
|
|
4523
|
-
systemInfo: {
|
|
4524
|
-
platform: string;
|
|
4525
|
-
shell: string;
|
|
4526
|
-
nodeVersion: string;
|
|
4527
|
-
arch: string;
|
|
4528
|
-
homedir: string;
|
|
4529
|
-
cpus: number;
|
|
4530
|
-
};
|
|
4531
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4532
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4533
|
-
fileVersions?: {
|
|
4534
|
-
path: string;
|
|
4535
|
-
content: string;
|
|
4536
|
-
}[][] | undefined;
|
|
4537
|
-
};
|
|
4538
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
4539
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
4540
|
-
})[];
|
|
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;
|
|
4548
|
-
};
|
|
4549
|
-
toolResults: {
|
|
4550
|
-
name: string;
|
|
4551
|
-
id: string;
|
|
4552
|
-
result: string;
|
|
2770
|
+
type: "response-complete";
|
|
2771
|
+
userInputId: string;
|
|
2772
|
+
response: string;
|
|
2773
|
+
changes: {
|
|
2774
|
+
path: string;
|
|
2775
|
+
type: "patch" | "file";
|
|
2776
|
+
content: string;
|
|
4553
2777
|
}[];
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
2778
|
+
changesAlreadyApplied: {
|
|
2779
|
+
path: string;
|
|
2780
|
+
type: "patch" | "file";
|
|
2781
|
+
content: string;
|
|
2782
|
+
}[];
|
|
2783
|
+
addedFileVersions: {
|
|
2784
|
+
path: string;
|
|
2785
|
+
content: string;
|
|
4558
2786
|
}[];
|
|
2787
|
+
resetFileVersions: boolean;
|
|
2788
|
+
usage?: number | undefined;
|
|
2789
|
+
remainingBalance?: number | undefined;
|
|
2790
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2791
|
+
next_quota_reset?: Date | null | undefined;
|
|
2792
|
+
autoTopupAdded?: number | undefined;
|
|
4559
2793
|
}>, z.ZodObject<{
|
|
4560
|
-
type: z.ZodLiteral<"
|
|
2794
|
+
type: z.ZodLiteral<"prompt-response">;
|
|
4561
2795
|
promptId: z.ZodString;
|
|
4562
2796
|
agentState: z.ZodObject<{
|
|
4563
2797
|
agentContext: z.ZodString;
|
|
@@ -4779,33 +3013,33 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4779
3013
|
}[] | undefined;
|
|
4780
3014
|
}>;
|
|
4781
3015
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
3016
|
+
toolName: z.ZodString;
|
|
3017
|
+
args: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3018
|
+
toolCallId: z.ZodString;
|
|
4785
3019
|
}, "strip", z.ZodTypeAny, {
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
3020
|
+
toolName: string;
|
|
3021
|
+
args: Record<string, string>;
|
|
3022
|
+
toolCallId: string;
|
|
4789
3023
|
}, {
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
3024
|
+
toolName: string;
|
|
3025
|
+
args: Record<string, string>;
|
|
3026
|
+
toolCallId: string;
|
|
4793
3027
|
}>, "many">;
|
|
4794
3028
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4795
|
-
|
|
3029
|
+
toolName: z.ZodString;
|
|
3030
|
+
toolCallId: z.ZodString;
|
|
4796
3031
|
result: z.ZodString;
|
|
4797
|
-
id: z.ZodString;
|
|
4798
3032
|
}, "strip", z.ZodTypeAny, {
|
|
4799
|
-
|
|
4800
|
-
|
|
3033
|
+
toolName: string;
|
|
3034
|
+
toolCallId: string;
|
|
4801
3035
|
result: string;
|
|
4802
3036
|
}, {
|
|
4803
|
-
|
|
4804
|
-
|
|
3037
|
+
toolName: string;
|
|
3038
|
+
toolCallId: string;
|
|
4805
3039
|
result: string;
|
|
4806
3040
|
}>, "many">;
|
|
4807
3041
|
}, "strip", z.ZodTypeAny, {
|
|
4808
|
-
type: "
|
|
3042
|
+
type: "prompt-response";
|
|
4809
3043
|
promptId: string;
|
|
4810
3044
|
agentState: {
|
|
4811
3045
|
agentContext: string;
|
|
@@ -4850,17 +3084,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4850
3084
|
agentStepsRemaining: number;
|
|
4851
3085
|
};
|
|
4852
3086
|
toolResults: {
|
|
4853
|
-
|
|
4854
|
-
|
|
3087
|
+
toolName: string;
|
|
3088
|
+
toolCallId: string;
|
|
4855
3089
|
result: string;
|
|
4856
3090
|
}[];
|
|
4857
3091
|
toolCalls: {
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
3092
|
+
toolName: string;
|
|
3093
|
+
args: Record<string, string>;
|
|
3094
|
+
toolCallId: string;
|
|
4861
3095
|
}[];
|
|
4862
3096
|
}, {
|
|
4863
|
-
type: "
|
|
3097
|
+
type: "prompt-response";
|
|
4864
3098
|
promptId: string;
|
|
4865
3099
|
agentState: {
|
|
4866
3100
|
agentContext: string;
|
|
@@ -4905,14 +3139,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4905
3139
|
}[] | undefined;
|
|
4906
3140
|
};
|
|
4907
3141
|
toolResults: {
|
|
4908
|
-
|
|
4909
|
-
|
|
3142
|
+
toolName: string;
|
|
3143
|
+
toolCallId: string;
|
|
4910
3144
|
result: string;
|
|
4911
3145
|
}[];
|
|
4912
3146
|
toolCalls: {
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
3147
|
+
toolName: string;
|
|
3148
|
+
args: Record<string, string>;
|
|
3149
|
+
toolCallId: string;
|
|
4916
3150
|
}[];
|
|
4917
3151
|
}>, z.ZodObject<{
|
|
4918
3152
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4931,17 +3165,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4931
3165
|
userInputId: z.ZodString;
|
|
4932
3166
|
response: z.ZodString;
|
|
4933
3167
|
data: z.ZodObject<{
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
3168
|
+
toolName: z.ZodString;
|
|
3169
|
+
args: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3170
|
+
toolCallId: z.ZodString;
|
|
4937
3171
|
}, "strip", z.ZodTypeAny, {
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
3172
|
+
toolName: string;
|
|
3173
|
+
args: Record<string, string>;
|
|
3174
|
+
toolCallId: string;
|
|
4941
3175
|
}, {
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
3176
|
+
toolName: string;
|
|
3177
|
+
args: Record<string, string>;
|
|
3178
|
+
toolCallId: string;
|
|
4945
3179
|
}>;
|
|
4946
3180
|
changes: z.ZodArray<z.ZodObject<{
|
|
4947
3181
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -4949,12 +3183,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4949
3183
|
content: z.ZodString;
|
|
4950
3184
|
}, "strip", z.ZodTypeAny, {
|
|
4951
3185
|
path: string;
|
|
3186
|
+
type: "patch" | "file";
|
|
4952
3187
|
content: string;
|
|
4953
|
-
type: "file" | "patch";
|
|
4954
3188
|
}, {
|
|
4955
3189
|
path: string;
|
|
3190
|
+
type: "patch" | "file";
|
|
4956
3191
|
content: string;
|
|
4957
|
-
type: "file" | "patch";
|
|
4958
3192
|
}>, "many">;
|
|
4959
3193
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4960
3194
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -4962,12 +3196,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4962
3196
|
content: z.ZodString;
|
|
4963
3197
|
}, "strip", z.ZodTypeAny, {
|
|
4964
3198
|
path: string;
|
|
3199
|
+
type: "patch" | "file";
|
|
4965
3200
|
content: string;
|
|
4966
|
-
type: "file" | "patch";
|
|
4967
3201
|
}, {
|
|
4968
3202
|
path: string;
|
|
3203
|
+
type: "patch" | "file";
|
|
4969
3204
|
content: string;
|
|
4970
|
-
type: "file" | "patch";
|
|
4971
3205
|
}>, "many">;
|
|
4972
3206
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4973
3207
|
path: z.ZodString;
|
|
@@ -4986,13 +3220,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4986
3220
|
response: string;
|
|
4987
3221
|
changes: {
|
|
4988
3222
|
path: string;
|
|
3223
|
+
type: "patch" | "file";
|
|
4989
3224
|
content: string;
|
|
4990
|
-
type: "file" | "patch";
|
|
4991
3225
|
}[];
|
|
4992
3226
|
changesAlreadyApplied: {
|
|
4993
3227
|
path: string;
|
|
3228
|
+
type: "patch" | "file";
|
|
4994
3229
|
content: string;
|
|
4995
|
-
type: "file" | "patch";
|
|
4996
3230
|
}[];
|
|
4997
3231
|
addedFileVersions: {
|
|
4998
3232
|
path: string;
|
|
@@ -5000,9 +3234,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5000
3234
|
}[];
|
|
5001
3235
|
resetFileVersions: boolean;
|
|
5002
3236
|
data: {
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
3237
|
+
toolName: string;
|
|
3238
|
+
args: Record<string, string>;
|
|
3239
|
+
toolCallId: string;
|
|
5006
3240
|
};
|
|
5007
3241
|
}, {
|
|
5008
3242
|
type: "tool-call";
|
|
@@ -5010,13 +3244,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5010
3244
|
response: string;
|
|
5011
3245
|
changes: {
|
|
5012
3246
|
path: string;
|
|
3247
|
+
type: "patch" | "file";
|
|
5013
3248
|
content: string;
|
|
5014
|
-
type: "file" | "patch";
|
|
5015
3249
|
}[];
|
|
5016
3250
|
changesAlreadyApplied: {
|
|
5017
3251
|
path: string;
|
|
3252
|
+
type: "patch" | "file";
|
|
5018
3253
|
content: string;
|
|
5019
|
-
type: "file" | "patch";
|
|
5020
3254
|
}[];
|
|
5021
3255
|
addedFileVersions: {
|
|
5022
3256
|
path: string;
|
|
@@ -5024,9 +3258,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5024
3258
|
}[];
|
|
5025
3259
|
resetFileVersions: boolean;
|
|
5026
3260
|
data: {
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
3261
|
+
toolName: string;
|
|
3262
|
+
args: Record<string, string>;
|
|
3263
|
+
toolCallId: string;
|
|
5030
3264
|
};
|
|
5031
3265
|
}>, z.ZodObject<{
|
|
5032
3266
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
@@ -5161,13 +3395,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5161
3395
|
response: string;
|
|
5162
3396
|
changes: {
|
|
5163
3397
|
path: string;
|
|
3398
|
+
type: "patch" | "file";
|
|
5164
3399
|
content: string;
|
|
5165
|
-
type: "file" | "patch";
|
|
5166
3400
|
}[];
|
|
5167
3401
|
changesAlreadyApplied: {
|
|
5168
3402
|
path: string;
|
|
3403
|
+
type: "patch" | "file";
|
|
5169
3404
|
content: string;
|
|
5170
|
-
type: "file" | "patch";
|
|
5171
3405
|
}[];
|
|
5172
3406
|
addedFileVersions: {
|
|
5173
3407
|
path: string;
|
|
@@ -5229,69 +3463,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5229
3463
|
agentStepsRemaining: number;
|
|
5230
3464
|
};
|
|
5231
3465
|
toolResults: {
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
result: string;
|
|
5235
|
-
}[];
|
|
5236
|
-
toolCalls: {
|
|
5237
|
-
name: string;
|
|
5238
|
-
id: string;
|
|
5239
|
-
parameters: Record<string, string>;
|
|
5240
|
-
}[];
|
|
5241
|
-
} | {
|
|
5242
|
-
type: "manager-prompt-response";
|
|
5243
|
-
promptId: string;
|
|
5244
|
-
agentState: {
|
|
5245
|
-
agentContext: string;
|
|
5246
|
-
fileContext: {
|
|
5247
|
-
projectRoot: string;
|
|
5248
|
-
cwd: string;
|
|
5249
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
5250
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
5251
|
-
knowledgeFiles: Record<string, string>;
|
|
5252
|
-
gitChanges: {
|
|
5253
|
-
status: string;
|
|
5254
|
-
diff: string;
|
|
5255
|
-
diffCached: string;
|
|
5256
|
-
lastCommitMessages: string;
|
|
5257
|
-
};
|
|
5258
|
-
changesSinceLastChat: Record<string, string>;
|
|
5259
|
-
shellConfigFiles: Record<string, string>;
|
|
5260
|
-
systemInfo: {
|
|
5261
|
-
platform: string;
|
|
5262
|
-
shell: string;
|
|
5263
|
-
nodeVersion: string;
|
|
5264
|
-
arch: string;
|
|
5265
|
-
homedir: string;
|
|
5266
|
-
cpus: number;
|
|
5267
|
-
};
|
|
5268
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
5269
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5270
|
-
fileVersions?: {
|
|
5271
|
-
path: string;
|
|
5272
|
-
content: string;
|
|
5273
|
-
}[][] | undefined;
|
|
5274
|
-
};
|
|
5275
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
5276
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
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
|
-
}[];
|
|
5284
|
-
agentStepsRemaining: number;
|
|
5285
|
-
};
|
|
5286
|
-
toolResults: {
|
|
5287
|
-
name: string;
|
|
5288
|
-
id: string;
|
|
3466
|
+
toolName: string;
|
|
3467
|
+
toolCallId: string;
|
|
5289
3468
|
result: string;
|
|
5290
3469
|
}[];
|
|
5291
3470
|
toolCalls: {
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
3471
|
+
toolName: string;
|
|
3472
|
+
args: Record<string, string>;
|
|
3473
|
+
toolCallId: string;
|
|
5295
3474
|
}[];
|
|
5296
3475
|
} | {
|
|
5297
3476
|
type: "response-chunk";
|
|
@@ -5307,13 +3486,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5307
3486
|
response: string;
|
|
5308
3487
|
changes: {
|
|
5309
3488
|
path: string;
|
|
3489
|
+
type: "patch" | "file";
|
|
5310
3490
|
content: string;
|
|
5311
|
-
type: "file" | "patch";
|
|
5312
3491
|
}[];
|
|
5313
3492
|
changesAlreadyApplied: {
|
|
5314
3493
|
path: string;
|
|
3494
|
+
type: "patch" | "file";
|
|
5315
3495
|
content: string;
|
|
5316
|
-
type: "file" | "patch";
|
|
5317
3496
|
}[];
|
|
5318
3497
|
addedFileVersions: {
|
|
5319
3498
|
path: string;
|
|
@@ -5321,9 +3500,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5321
3500
|
}[];
|
|
5322
3501
|
resetFileVersions: boolean;
|
|
5323
3502
|
data: {
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
3503
|
+
toolName: string;
|
|
3504
|
+
args: Record<string, string>;
|
|
3505
|
+
toolCallId: string;
|
|
5327
3506
|
};
|
|
5328
3507
|
} | {
|
|
5329
3508
|
type: "terminal-command-result";
|
|
@@ -5366,13 +3545,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5366
3545
|
response: string;
|
|
5367
3546
|
changes: {
|
|
5368
3547
|
path: string;
|
|
3548
|
+
type: "patch" | "file";
|
|
5369
3549
|
content: string;
|
|
5370
|
-
type: "file" | "patch";
|
|
5371
3550
|
}[];
|
|
5372
3551
|
changesAlreadyApplied: {
|
|
5373
3552
|
path: string;
|
|
3553
|
+
type: "patch" | "file";
|
|
5374
3554
|
content: string;
|
|
5375
|
-
type: "file" | "patch";
|
|
5376
3555
|
}[];
|
|
5377
3556
|
addedFileVersions: {
|
|
5378
3557
|
path: string;
|
|
@@ -5434,69 +3613,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5434
3613
|
}[] | undefined;
|
|
5435
3614
|
};
|
|
5436
3615
|
toolResults: {
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
result: string;
|
|
5440
|
-
}[];
|
|
5441
|
-
toolCalls: {
|
|
5442
|
-
name: string;
|
|
5443
|
-
id: string;
|
|
5444
|
-
parameters: Record<string, string>;
|
|
5445
|
-
}[];
|
|
5446
|
-
} | {
|
|
5447
|
-
type: "manager-prompt-response";
|
|
5448
|
-
promptId: string;
|
|
5449
|
-
agentState: {
|
|
5450
|
-
agentContext: string;
|
|
5451
|
-
fileContext: {
|
|
5452
|
-
projectRoot: string;
|
|
5453
|
-
cwd: string;
|
|
5454
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
5455
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
5456
|
-
knowledgeFiles: Record<string, string>;
|
|
5457
|
-
gitChanges: {
|
|
5458
|
-
status: string;
|
|
5459
|
-
diff: string;
|
|
5460
|
-
diffCached: string;
|
|
5461
|
-
lastCommitMessages: string;
|
|
5462
|
-
};
|
|
5463
|
-
changesSinceLastChat: Record<string, string>;
|
|
5464
|
-
shellConfigFiles: Record<string, string>;
|
|
5465
|
-
systemInfo: {
|
|
5466
|
-
platform: string;
|
|
5467
|
-
shell: string;
|
|
5468
|
-
nodeVersion: string;
|
|
5469
|
-
arch: string;
|
|
5470
|
-
homedir: string;
|
|
5471
|
-
cpus: number;
|
|
5472
|
-
};
|
|
5473
|
-
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
5474
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5475
|
-
fileVersions?: {
|
|
5476
|
-
path: string;
|
|
5477
|
-
content: string;
|
|
5478
|
-
}[][] | undefined;
|
|
5479
|
-
};
|
|
5480
|
-
messageHistory: (import("ai").CoreMessage & {
|
|
5481
|
-
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
5482
|
-
})[];
|
|
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;
|
|
5490
|
-
};
|
|
5491
|
-
toolResults: {
|
|
5492
|
-
name: string;
|
|
5493
|
-
id: string;
|
|
3616
|
+
toolName: string;
|
|
3617
|
+
toolCallId: string;
|
|
5494
3618
|
result: string;
|
|
5495
3619
|
}[];
|
|
5496
3620
|
toolCalls: {
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
3621
|
+
toolName: string;
|
|
3622
|
+
args: Record<string, string>;
|
|
3623
|
+
toolCallId: string;
|
|
5500
3624
|
}[];
|
|
5501
3625
|
} | {
|
|
5502
3626
|
type: "response-chunk";
|
|
@@ -5512,13 +3636,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5512
3636
|
response: string;
|
|
5513
3637
|
changes: {
|
|
5514
3638
|
path: string;
|
|
3639
|
+
type: "patch" | "file";
|
|
5515
3640
|
content: string;
|
|
5516
|
-
type: "file" | "patch";
|
|
5517
3641
|
}[];
|
|
5518
3642
|
changesAlreadyApplied: {
|
|
5519
3643
|
path: string;
|
|
3644
|
+
type: "patch" | "file";
|
|
5520
3645
|
content: string;
|
|
5521
|
-
type: "file" | "patch";
|
|
5522
3646
|
}[];
|
|
5523
3647
|
addedFileVersions: {
|
|
5524
3648
|
path: string;
|
|
@@ -5526,9 +3650,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5526
3650
|
}[];
|
|
5527
3651
|
resetFileVersions: boolean;
|
|
5528
3652
|
data: {
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
3653
|
+
toolName: string;
|
|
3654
|
+
args: Record<string, string>;
|
|
3655
|
+
toolCallId: string;
|
|
5532
3656
|
};
|
|
5533
3657
|
} | {
|
|
5534
3658
|
type: "terminal-command-result";
|