@easbot/types 0.3.27 → 0.3.29
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/README.en.md +2 -8
- package/README.md +2 -8
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2394 -117
- package/dist/index.d.ts +2394 -117
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import z, { z as z$1 } from 'zod';
|
|
1
2
|
import { EasbotClient } from '@easbot/sdk';
|
|
2
|
-
import { z } from 'zod';
|
|
3
3
|
import { EmbeddingModel, LanguageModel, RerankingModel } from 'ai';
|
|
4
4
|
|
|
5
5
|
interface ErrorInfo {
|
|
@@ -305,7 +305,7 @@ interface AgentStatistics {
|
|
|
305
305
|
interface AgentExecutionResult extends ApiResult<any> {
|
|
306
306
|
agentId: string;
|
|
307
307
|
task: string;
|
|
308
|
-
status: '
|
|
308
|
+
status: 'in_progress' | 'completed' | 'failed' | 'timeout' | 'cancelled';
|
|
309
309
|
result?: any;
|
|
310
310
|
error?: string;
|
|
311
311
|
startTime: string;
|
|
@@ -395,21 +395,6 @@ interface SessionUpdate {
|
|
|
395
395
|
metadata?: Record<string, any>;
|
|
396
396
|
config?: Record<string, any>;
|
|
397
397
|
}
|
|
398
|
-
interface SessionInfo {
|
|
399
|
-
id: string;
|
|
400
|
-
title: string;
|
|
401
|
-
description?: string;
|
|
402
|
-
status: SessionStatus;
|
|
403
|
-
agentId?: string;
|
|
404
|
-
userId?: string;
|
|
405
|
-
createdAt: string;
|
|
406
|
-
updatedAt: string;
|
|
407
|
-
lastActivityAt: string;
|
|
408
|
-
closedAt?: string;
|
|
409
|
-
metadata: Record<string, any>;
|
|
410
|
-
config: Record<string, any>;
|
|
411
|
-
statistics?: SessionStatistics;
|
|
412
|
-
}
|
|
413
398
|
interface SessionStatistics {
|
|
414
399
|
messageCount: number;
|
|
415
400
|
totalTokens: number;
|
|
@@ -528,7 +513,7 @@ interface TaskStep {
|
|
|
528
513
|
id: string;
|
|
529
514
|
taskId: string;
|
|
530
515
|
name: string;
|
|
531
|
-
status: 'pending' | '
|
|
516
|
+
status: 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
532
517
|
startTime?: string;
|
|
533
518
|
endTime?: string;
|
|
534
519
|
output?: any;
|
|
@@ -546,6 +531,1000 @@ interface TaskExecutionResult {
|
|
|
546
531
|
logs: TaskLog[];
|
|
547
532
|
}
|
|
548
533
|
|
|
534
|
+
declare const Brand: {
|
|
535
|
+
readonly id: "easbot";
|
|
536
|
+
readonly displayName: "EASBot";
|
|
537
|
+
readonly description: "多 Agent 协作生态系统(自学习 / 自进化 / 持续改进的 AI Agent 平台)";
|
|
538
|
+
readonly url: "https://www.easbot.cn";
|
|
539
|
+
readonly domain: "easbot.cn";
|
|
540
|
+
readonly xdgAppName: "easbot";
|
|
541
|
+
readonly envPrefix: "EASBOT";
|
|
542
|
+
readonly dataDirName: "easbot";
|
|
543
|
+
readonly cacheDirName: "easbot";
|
|
544
|
+
readonly configDirName: "easbot";
|
|
545
|
+
};
|
|
546
|
+
type Brand = typeof Brand;
|
|
547
|
+
declare function brandEnv(suffix: string): string;
|
|
548
|
+
|
|
549
|
+
declare const PermissionActionSchema: z.ZodEnum<{
|
|
550
|
+
allow: "allow";
|
|
551
|
+
deny: "deny";
|
|
552
|
+
ask: "ask";
|
|
553
|
+
}>;
|
|
554
|
+
type PermissionActionType = z.infer<typeof PermissionActionSchema>;
|
|
555
|
+
declare const PermissionObjectSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
556
|
+
allow: "allow";
|
|
557
|
+
deny: "deny";
|
|
558
|
+
ask: "ask";
|
|
559
|
+
}>>;
|
|
560
|
+
type PermissionObjectType = z.infer<typeof PermissionObjectSchema>;
|
|
561
|
+
declare const PermissionRuleSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
562
|
+
allow: "allow";
|
|
563
|
+
deny: "deny";
|
|
564
|
+
ask: "ask";
|
|
565
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
566
|
+
allow: "allow";
|
|
567
|
+
deny: "deny";
|
|
568
|
+
ask: "ask";
|
|
569
|
+
}>>]>;
|
|
570
|
+
type PermissionRuleType = z.infer<typeof PermissionRuleSchema>;
|
|
571
|
+
declare const PermissionConfigSchema: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
|
|
572
|
+
__originalKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
573
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
574
|
+
allow: "allow";
|
|
575
|
+
deny: "deny";
|
|
576
|
+
ask: "ask";
|
|
577
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
578
|
+
allow: "allow";
|
|
579
|
+
deny: "deny";
|
|
580
|
+
ask: "ask";
|
|
581
|
+
}>>]>>;
|
|
582
|
+
edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
583
|
+
allow: "allow";
|
|
584
|
+
deny: "deny";
|
|
585
|
+
ask: "ask";
|
|
586
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
587
|
+
allow: "allow";
|
|
588
|
+
deny: "deny";
|
|
589
|
+
ask: "ask";
|
|
590
|
+
}>>]>>;
|
|
591
|
+
glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
592
|
+
allow: "allow";
|
|
593
|
+
deny: "deny";
|
|
594
|
+
ask: "ask";
|
|
595
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
596
|
+
allow: "allow";
|
|
597
|
+
deny: "deny";
|
|
598
|
+
ask: "ask";
|
|
599
|
+
}>>]>>;
|
|
600
|
+
grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
601
|
+
allow: "allow";
|
|
602
|
+
deny: "deny";
|
|
603
|
+
ask: "ask";
|
|
604
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
605
|
+
allow: "allow";
|
|
606
|
+
deny: "deny";
|
|
607
|
+
ask: "ask";
|
|
608
|
+
}>>]>>;
|
|
609
|
+
list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
610
|
+
allow: "allow";
|
|
611
|
+
deny: "deny";
|
|
612
|
+
ask: "ask";
|
|
613
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
614
|
+
allow: "allow";
|
|
615
|
+
deny: "deny";
|
|
616
|
+
ask: "ask";
|
|
617
|
+
}>>]>>;
|
|
618
|
+
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
619
|
+
allow: "allow";
|
|
620
|
+
deny: "deny";
|
|
621
|
+
ask: "ask";
|
|
622
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
623
|
+
allow: "allow";
|
|
624
|
+
deny: "deny";
|
|
625
|
+
ask: "ask";
|
|
626
|
+
}>>]>>;
|
|
627
|
+
task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
628
|
+
allow: "allow";
|
|
629
|
+
deny: "deny";
|
|
630
|
+
ask: "ask";
|
|
631
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
632
|
+
allow: "allow";
|
|
633
|
+
deny: "deny";
|
|
634
|
+
ask: "ask";
|
|
635
|
+
}>>]>>;
|
|
636
|
+
external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
637
|
+
allow: "allow";
|
|
638
|
+
deny: "deny";
|
|
639
|
+
ask: "ask";
|
|
640
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
641
|
+
allow: "allow";
|
|
642
|
+
deny: "deny";
|
|
643
|
+
ask: "ask";
|
|
644
|
+
}>>]>>;
|
|
645
|
+
todo: z.ZodOptional<z.ZodEnum<{
|
|
646
|
+
allow: "allow";
|
|
647
|
+
deny: "deny";
|
|
648
|
+
ask: "ask";
|
|
649
|
+
}>>;
|
|
650
|
+
question: z.ZodOptional<z.ZodEnum<{
|
|
651
|
+
allow: "allow";
|
|
652
|
+
deny: "deny";
|
|
653
|
+
ask: "ask";
|
|
654
|
+
}>>;
|
|
655
|
+
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
656
|
+
allow: "allow";
|
|
657
|
+
deny: "deny";
|
|
658
|
+
ask: "ask";
|
|
659
|
+
}>>;
|
|
660
|
+
websearch: z.ZodOptional<z.ZodEnum<{
|
|
661
|
+
allow: "allow";
|
|
662
|
+
deny: "deny";
|
|
663
|
+
ask: "ask";
|
|
664
|
+
}>>;
|
|
665
|
+
codesearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
666
|
+
allow: "allow";
|
|
667
|
+
deny: "deny";
|
|
668
|
+
ask: "ask";
|
|
669
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
670
|
+
allow: "allow";
|
|
671
|
+
deny: "deny";
|
|
672
|
+
ask: "ask";
|
|
673
|
+
}>>]>>;
|
|
674
|
+
lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
675
|
+
allow: "allow";
|
|
676
|
+
deny: "deny";
|
|
677
|
+
ask: "ask";
|
|
678
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
679
|
+
allow: "allow";
|
|
680
|
+
deny: "deny";
|
|
681
|
+
ask: "ask";
|
|
682
|
+
}>>]>>;
|
|
683
|
+
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
684
|
+
allow: "allow";
|
|
685
|
+
deny: "deny";
|
|
686
|
+
ask: "ask";
|
|
687
|
+
}>>;
|
|
688
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
689
|
+
allow: "allow";
|
|
690
|
+
deny: "deny";
|
|
691
|
+
ask: "ask";
|
|
692
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
693
|
+
allow: "allow";
|
|
694
|
+
deny: "deny";
|
|
695
|
+
ask: "ask";
|
|
696
|
+
}>>]>>;
|
|
697
|
+
pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
698
|
+
allow: "allow";
|
|
699
|
+
deny: "deny";
|
|
700
|
+
ask: "ask";
|
|
701
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
702
|
+
allow: "allow";
|
|
703
|
+
deny: "deny";
|
|
704
|
+
ask: "ask";
|
|
705
|
+
}>>]>>;
|
|
706
|
+
pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
707
|
+
allow: "allow";
|
|
708
|
+
deny: "deny";
|
|
709
|
+
ask: "ask";
|
|
710
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
711
|
+
allow: "allow";
|
|
712
|
+
deny: "deny";
|
|
713
|
+
ask: "ask";
|
|
714
|
+
}>>]>>;
|
|
715
|
+
write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
716
|
+
allow: "allow";
|
|
717
|
+
deny: "deny";
|
|
718
|
+
ask: "ask";
|
|
719
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
720
|
+
allow: "allow";
|
|
721
|
+
deny: "deny";
|
|
722
|
+
ask: "ask";
|
|
723
|
+
}>>]>>;
|
|
724
|
+
multiedit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
725
|
+
allow: "allow";
|
|
726
|
+
deny: "deny";
|
|
727
|
+
ask: "ask";
|
|
728
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
729
|
+
allow: "allow";
|
|
730
|
+
deny: "deny";
|
|
731
|
+
ask: "ask";
|
|
732
|
+
}>>]>>;
|
|
733
|
+
note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
734
|
+
allow: "allow";
|
|
735
|
+
deny: "deny";
|
|
736
|
+
ask: "ask";
|
|
737
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
738
|
+
allow: "allow";
|
|
739
|
+
deny: "deny";
|
|
740
|
+
ask: "ask";
|
|
741
|
+
}>>]>>;
|
|
742
|
+
memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
743
|
+
allow: "allow";
|
|
744
|
+
deny: "deny";
|
|
745
|
+
ask: "ask";
|
|
746
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
747
|
+
allow: "allow";
|
|
748
|
+
deny: "deny";
|
|
749
|
+
ask: "ask";
|
|
750
|
+
}>>]>>;
|
|
751
|
+
codebase: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
752
|
+
allow: "allow";
|
|
753
|
+
deny: "deny";
|
|
754
|
+
ask: "ask";
|
|
755
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
756
|
+
allow: "allow";
|
|
757
|
+
deny: "deny";
|
|
758
|
+
ask: "ask";
|
|
759
|
+
}>>]>>;
|
|
760
|
+
agent_client: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
761
|
+
allow: "allow";
|
|
762
|
+
deny: "deny";
|
|
763
|
+
ask: "ask";
|
|
764
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
765
|
+
allow: "allow";
|
|
766
|
+
deny: "deny";
|
|
767
|
+
ask: "ask";
|
|
768
|
+
}>>]>>;
|
|
769
|
+
gateway: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
770
|
+
allow: "allow";
|
|
771
|
+
deny: "deny";
|
|
772
|
+
ask: "ask";
|
|
773
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
774
|
+
allow: "allow";
|
|
775
|
+
deny: "deny";
|
|
776
|
+
ask: "ask";
|
|
777
|
+
}>>]>>;
|
|
778
|
+
apply_patch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
779
|
+
allow: "allow";
|
|
780
|
+
deny: "deny";
|
|
781
|
+
ask: "ask";
|
|
782
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
783
|
+
allow: "allow";
|
|
784
|
+
deny: "deny";
|
|
785
|
+
ask: "ask";
|
|
786
|
+
}>>]>>;
|
|
787
|
+
batch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
788
|
+
allow: "allow";
|
|
789
|
+
deny: "deny";
|
|
790
|
+
ask: "ask";
|
|
791
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
792
|
+
allow: "allow";
|
|
793
|
+
deny: "deny";
|
|
794
|
+
ask: "ask";
|
|
795
|
+
}>>]>>;
|
|
796
|
+
plan: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
797
|
+
allow: "allow";
|
|
798
|
+
deny: "deny";
|
|
799
|
+
ask: "ask";
|
|
800
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
801
|
+
allow: "allow";
|
|
802
|
+
deny: "deny";
|
|
803
|
+
ask: "ask";
|
|
804
|
+
}>>]>>;
|
|
805
|
+
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
|
|
806
|
+
allow: "allow";
|
|
807
|
+
deny: "deny";
|
|
808
|
+
ask: "ask";
|
|
809
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
810
|
+
allow: "allow";
|
|
811
|
+
deny: "deny";
|
|
812
|
+
ask: "ask";
|
|
813
|
+
}>>]>>>, z.ZodEnum<{
|
|
814
|
+
allow: "allow";
|
|
815
|
+
deny: "deny";
|
|
816
|
+
ask: "ask";
|
|
817
|
+
}>]>>, z.ZodTransform<Record<string, "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">>, "allow" | "deny" | "ask" | {
|
|
818
|
+
[x: string]: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">;
|
|
819
|
+
__originalKeys?: string[] | undefined;
|
|
820
|
+
read?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
821
|
+
edit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
822
|
+
glob?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
823
|
+
grep?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
824
|
+
list?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
825
|
+
bash?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
826
|
+
task?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
827
|
+
external_directory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
828
|
+
todo?: "allow" | "deny" | "ask" | undefined;
|
|
829
|
+
question?: "allow" | "deny" | "ask" | undefined;
|
|
830
|
+
webfetch?: "allow" | "deny" | "ask" | undefined;
|
|
831
|
+
websearch?: "allow" | "deny" | "ask" | undefined;
|
|
832
|
+
codesearch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
833
|
+
lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
834
|
+
doom_loop?: "allow" | "deny" | "ask" | undefined;
|
|
835
|
+
skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
836
|
+
pty_session?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
837
|
+
pty_manage?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
838
|
+
write?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
839
|
+
multiedit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
840
|
+
note?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
841
|
+
memory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
842
|
+
codebase?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
843
|
+
agent_client?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
844
|
+
gateway?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
845
|
+
apply_patch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
846
|
+
batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
847
|
+
plan?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
848
|
+
}>>;
|
|
849
|
+
type PermissionConfigType = z.infer<typeof PermissionConfigSchema>;
|
|
850
|
+
declare const AgentPermissionSchema: z.ZodObject<{
|
|
851
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
852
|
+
allow: "allow";
|
|
853
|
+
deny: "deny";
|
|
854
|
+
ask: "ask";
|
|
855
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
856
|
+
allow: "allow";
|
|
857
|
+
deny: "deny";
|
|
858
|
+
ask: "ask";
|
|
859
|
+
}>>]>>;
|
|
860
|
+
edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
861
|
+
allow: "allow";
|
|
862
|
+
deny: "deny";
|
|
863
|
+
ask: "ask";
|
|
864
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
865
|
+
allow: "allow";
|
|
866
|
+
deny: "deny";
|
|
867
|
+
ask: "ask";
|
|
868
|
+
}>>]>>;
|
|
869
|
+
write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
870
|
+
allow: "allow";
|
|
871
|
+
deny: "deny";
|
|
872
|
+
ask: "ask";
|
|
873
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
874
|
+
allow: "allow";
|
|
875
|
+
deny: "deny";
|
|
876
|
+
ask: "ask";
|
|
877
|
+
}>>]>>;
|
|
878
|
+
glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
879
|
+
allow: "allow";
|
|
880
|
+
deny: "deny";
|
|
881
|
+
ask: "ask";
|
|
882
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
883
|
+
allow: "allow";
|
|
884
|
+
deny: "deny";
|
|
885
|
+
ask: "ask";
|
|
886
|
+
}>>]>>;
|
|
887
|
+
grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
888
|
+
allow: "allow";
|
|
889
|
+
deny: "deny";
|
|
890
|
+
ask: "ask";
|
|
891
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
892
|
+
allow: "allow";
|
|
893
|
+
deny: "deny";
|
|
894
|
+
ask: "ask";
|
|
895
|
+
}>>]>>;
|
|
896
|
+
list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
897
|
+
allow: "allow";
|
|
898
|
+
deny: "deny";
|
|
899
|
+
ask: "ask";
|
|
900
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
901
|
+
allow: "allow";
|
|
902
|
+
deny: "deny";
|
|
903
|
+
ask: "ask";
|
|
904
|
+
}>>]>>;
|
|
905
|
+
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
906
|
+
allow: "allow";
|
|
907
|
+
deny: "deny";
|
|
908
|
+
ask: "ask";
|
|
909
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
910
|
+
allow: "allow";
|
|
911
|
+
deny: "deny";
|
|
912
|
+
ask: "ask";
|
|
913
|
+
}>>]>>;
|
|
914
|
+
webfetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
915
|
+
allow: "allow";
|
|
916
|
+
deny: "deny";
|
|
917
|
+
ask: "ask";
|
|
918
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
919
|
+
allow: "allow";
|
|
920
|
+
deny: "deny";
|
|
921
|
+
ask: "ask";
|
|
922
|
+
}>>]>>;
|
|
923
|
+
websearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
924
|
+
allow: "allow";
|
|
925
|
+
deny: "deny";
|
|
926
|
+
ask: "ask";
|
|
927
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
928
|
+
allow: "allow";
|
|
929
|
+
deny: "deny";
|
|
930
|
+
ask: "ask";
|
|
931
|
+
}>>]>>;
|
|
932
|
+
task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
933
|
+
allow: "allow";
|
|
934
|
+
deny: "deny";
|
|
935
|
+
ask: "ask";
|
|
936
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
937
|
+
allow: "allow";
|
|
938
|
+
deny: "deny";
|
|
939
|
+
ask: "ask";
|
|
940
|
+
}>>]>>;
|
|
941
|
+
todo: z.ZodOptional<z.ZodEnum<{
|
|
942
|
+
allow: "allow";
|
|
943
|
+
deny: "deny";
|
|
944
|
+
ask: "ask";
|
|
945
|
+
}>>;
|
|
946
|
+
question: z.ZodOptional<z.ZodEnum<{
|
|
947
|
+
allow: "allow";
|
|
948
|
+
deny: "deny";
|
|
949
|
+
ask: "ask";
|
|
950
|
+
}>>;
|
|
951
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
952
|
+
allow: "allow";
|
|
953
|
+
deny: "deny";
|
|
954
|
+
ask: "ask";
|
|
955
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
956
|
+
allow: "allow";
|
|
957
|
+
deny: "deny";
|
|
958
|
+
ask: "ask";
|
|
959
|
+
}>>]>>;
|
|
960
|
+
memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
961
|
+
allow: "allow";
|
|
962
|
+
deny: "deny";
|
|
963
|
+
ask: "ask";
|
|
964
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
965
|
+
allow: "allow";
|
|
966
|
+
deny: "deny";
|
|
967
|
+
ask: "ask";
|
|
968
|
+
}>>]>>;
|
|
969
|
+
note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
970
|
+
allow: "allow";
|
|
971
|
+
deny: "deny";
|
|
972
|
+
ask: "ask";
|
|
973
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
974
|
+
allow: "allow";
|
|
975
|
+
deny: "deny";
|
|
976
|
+
ask: "ask";
|
|
977
|
+
}>>]>>;
|
|
978
|
+
pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
979
|
+
allow: "allow";
|
|
980
|
+
deny: "deny";
|
|
981
|
+
ask: "ask";
|
|
982
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
983
|
+
allow: "allow";
|
|
984
|
+
deny: "deny";
|
|
985
|
+
ask: "ask";
|
|
986
|
+
}>>]>>;
|
|
987
|
+
pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
988
|
+
allow: "allow";
|
|
989
|
+
deny: "deny";
|
|
990
|
+
ask: "ask";
|
|
991
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
992
|
+
allow: "allow";
|
|
993
|
+
deny: "deny";
|
|
994
|
+
ask: "ask";
|
|
995
|
+
}>>]>>;
|
|
996
|
+
external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
997
|
+
allow: "allow";
|
|
998
|
+
deny: "deny";
|
|
999
|
+
ask: "ask";
|
|
1000
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1001
|
+
allow: "allow";
|
|
1002
|
+
deny: "deny";
|
|
1003
|
+
ask: "ask";
|
|
1004
|
+
}>>]>>;
|
|
1005
|
+
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
1006
|
+
allow: "allow";
|
|
1007
|
+
deny: "deny";
|
|
1008
|
+
ask: "ask";
|
|
1009
|
+
}>>;
|
|
1010
|
+
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1011
|
+
allow: "allow";
|
|
1012
|
+
deny: "deny";
|
|
1013
|
+
ask: "ask";
|
|
1014
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1015
|
+
allow: "allow";
|
|
1016
|
+
deny: "deny";
|
|
1017
|
+
ask: "ask";
|
|
1018
|
+
}>>]>>>;
|
|
1019
|
+
type AgentPermissionType = z.infer<typeof AgentPermissionSchema>;
|
|
1020
|
+
declare const PermissionRuntimeRuleSchema: z.ZodObject<{
|
|
1021
|
+
permission: z.ZodString;
|
|
1022
|
+
pattern: z.ZodString;
|
|
1023
|
+
action: z.ZodEnum<{
|
|
1024
|
+
allow: "allow";
|
|
1025
|
+
deny: "deny";
|
|
1026
|
+
ask: "ask";
|
|
1027
|
+
}>;
|
|
1028
|
+
}, z.core.$strip>;
|
|
1029
|
+
type PermissionRuntimeRuleType = z.infer<typeof PermissionRuntimeRuleSchema>;
|
|
1030
|
+
declare const PermissionRulesetSchema: z.ZodArray<z.ZodObject<{
|
|
1031
|
+
permission: z.ZodString;
|
|
1032
|
+
pattern: z.ZodString;
|
|
1033
|
+
action: z.ZodEnum<{
|
|
1034
|
+
allow: "allow";
|
|
1035
|
+
deny: "deny";
|
|
1036
|
+
ask: "ask";
|
|
1037
|
+
}>;
|
|
1038
|
+
}, z.core.$strip>>;
|
|
1039
|
+
type PermissionRulesetType = z.infer<typeof PermissionRulesetSchema>;
|
|
1040
|
+
declare const Permission: {
|
|
1041
|
+
readonly Action: z.ZodEnum<{
|
|
1042
|
+
allow: "allow";
|
|
1043
|
+
deny: "deny";
|
|
1044
|
+
ask: "ask";
|
|
1045
|
+
}>;
|
|
1046
|
+
readonly Object: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1047
|
+
allow: "allow";
|
|
1048
|
+
deny: "deny";
|
|
1049
|
+
ask: "ask";
|
|
1050
|
+
}>>;
|
|
1051
|
+
readonly Rule: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1052
|
+
allow: "allow";
|
|
1053
|
+
deny: "deny";
|
|
1054
|
+
ask: "ask";
|
|
1055
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1056
|
+
allow: "allow";
|
|
1057
|
+
deny: "deny";
|
|
1058
|
+
ask: "ask";
|
|
1059
|
+
}>>]>;
|
|
1060
|
+
readonly AgentPermissionSchema: z.ZodObject<{
|
|
1061
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1062
|
+
allow: "allow";
|
|
1063
|
+
deny: "deny";
|
|
1064
|
+
ask: "ask";
|
|
1065
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1066
|
+
allow: "allow";
|
|
1067
|
+
deny: "deny";
|
|
1068
|
+
ask: "ask";
|
|
1069
|
+
}>>]>>;
|
|
1070
|
+
edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1071
|
+
allow: "allow";
|
|
1072
|
+
deny: "deny";
|
|
1073
|
+
ask: "ask";
|
|
1074
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1075
|
+
allow: "allow";
|
|
1076
|
+
deny: "deny";
|
|
1077
|
+
ask: "ask";
|
|
1078
|
+
}>>]>>;
|
|
1079
|
+
write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1080
|
+
allow: "allow";
|
|
1081
|
+
deny: "deny";
|
|
1082
|
+
ask: "ask";
|
|
1083
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1084
|
+
allow: "allow";
|
|
1085
|
+
deny: "deny";
|
|
1086
|
+
ask: "ask";
|
|
1087
|
+
}>>]>>;
|
|
1088
|
+
glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1089
|
+
allow: "allow";
|
|
1090
|
+
deny: "deny";
|
|
1091
|
+
ask: "ask";
|
|
1092
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1093
|
+
allow: "allow";
|
|
1094
|
+
deny: "deny";
|
|
1095
|
+
ask: "ask";
|
|
1096
|
+
}>>]>>;
|
|
1097
|
+
grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1098
|
+
allow: "allow";
|
|
1099
|
+
deny: "deny";
|
|
1100
|
+
ask: "ask";
|
|
1101
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1102
|
+
allow: "allow";
|
|
1103
|
+
deny: "deny";
|
|
1104
|
+
ask: "ask";
|
|
1105
|
+
}>>]>>;
|
|
1106
|
+
list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1107
|
+
allow: "allow";
|
|
1108
|
+
deny: "deny";
|
|
1109
|
+
ask: "ask";
|
|
1110
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1111
|
+
allow: "allow";
|
|
1112
|
+
deny: "deny";
|
|
1113
|
+
ask: "ask";
|
|
1114
|
+
}>>]>>;
|
|
1115
|
+
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1116
|
+
allow: "allow";
|
|
1117
|
+
deny: "deny";
|
|
1118
|
+
ask: "ask";
|
|
1119
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1120
|
+
allow: "allow";
|
|
1121
|
+
deny: "deny";
|
|
1122
|
+
ask: "ask";
|
|
1123
|
+
}>>]>>;
|
|
1124
|
+
webfetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1125
|
+
allow: "allow";
|
|
1126
|
+
deny: "deny";
|
|
1127
|
+
ask: "ask";
|
|
1128
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1129
|
+
allow: "allow";
|
|
1130
|
+
deny: "deny";
|
|
1131
|
+
ask: "ask";
|
|
1132
|
+
}>>]>>;
|
|
1133
|
+
websearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1134
|
+
allow: "allow";
|
|
1135
|
+
deny: "deny";
|
|
1136
|
+
ask: "ask";
|
|
1137
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1138
|
+
allow: "allow";
|
|
1139
|
+
deny: "deny";
|
|
1140
|
+
ask: "ask";
|
|
1141
|
+
}>>]>>;
|
|
1142
|
+
task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1143
|
+
allow: "allow";
|
|
1144
|
+
deny: "deny";
|
|
1145
|
+
ask: "ask";
|
|
1146
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1147
|
+
allow: "allow";
|
|
1148
|
+
deny: "deny";
|
|
1149
|
+
ask: "ask";
|
|
1150
|
+
}>>]>>;
|
|
1151
|
+
todo: z.ZodOptional<z.ZodEnum<{
|
|
1152
|
+
allow: "allow";
|
|
1153
|
+
deny: "deny";
|
|
1154
|
+
ask: "ask";
|
|
1155
|
+
}>>;
|
|
1156
|
+
question: z.ZodOptional<z.ZodEnum<{
|
|
1157
|
+
allow: "allow";
|
|
1158
|
+
deny: "deny";
|
|
1159
|
+
ask: "ask";
|
|
1160
|
+
}>>;
|
|
1161
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1162
|
+
allow: "allow";
|
|
1163
|
+
deny: "deny";
|
|
1164
|
+
ask: "ask";
|
|
1165
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1166
|
+
allow: "allow";
|
|
1167
|
+
deny: "deny";
|
|
1168
|
+
ask: "ask";
|
|
1169
|
+
}>>]>>;
|
|
1170
|
+
memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1171
|
+
allow: "allow";
|
|
1172
|
+
deny: "deny";
|
|
1173
|
+
ask: "ask";
|
|
1174
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1175
|
+
allow: "allow";
|
|
1176
|
+
deny: "deny";
|
|
1177
|
+
ask: "ask";
|
|
1178
|
+
}>>]>>;
|
|
1179
|
+
note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1180
|
+
allow: "allow";
|
|
1181
|
+
deny: "deny";
|
|
1182
|
+
ask: "ask";
|
|
1183
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1184
|
+
allow: "allow";
|
|
1185
|
+
deny: "deny";
|
|
1186
|
+
ask: "ask";
|
|
1187
|
+
}>>]>>;
|
|
1188
|
+
pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1189
|
+
allow: "allow";
|
|
1190
|
+
deny: "deny";
|
|
1191
|
+
ask: "ask";
|
|
1192
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1193
|
+
allow: "allow";
|
|
1194
|
+
deny: "deny";
|
|
1195
|
+
ask: "ask";
|
|
1196
|
+
}>>]>>;
|
|
1197
|
+
pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1198
|
+
allow: "allow";
|
|
1199
|
+
deny: "deny";
|
|
1200
|
+
ask: "ask";
|
|
1201
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1202
|
+
allow: "allow";
|
|
1203
|
+
deny: "deny";
|
|
1204
|
+
ask: "ask";
|
|
1205
|
+
}>>]>>;
|
|
1206
|
+
external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1207
|
+
allow: "allow";
|
|
1208
|
+
deny: "deny";
|
|
1209
|
+
ask: "ask";
|
|
1210
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1211
|
+
allow: "allow";
|
|
1212
|
+
deny: "deny";
|
|
1213
|
+
ask: "ask";
|
|
1214
|
+
}>>]>>;
|
|
1215
|
+
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
1216
|
+
allow: "allow";
|
|
1217
|
+
deny: "deny";
|
|
1218
|
+
ask: "ask";
|
|
1219
|
+
}>>;
|
|
1220
|
+
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1221
|
+
allow: "allow";
|
|
1222
|
+
deny: "deny";
|
|
1223
|
+
ask: "ask";
|
|
1224
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1225
|
+
allow: "allow";
|
|
1226
|
+
deny: "deny";
|
|
1227
|
+
ask: "ask";
|
|
1228
|
+
}>>]>>>;
|
|
1229
|
+
readonly Config: z.ZodPipe<z.ZodPreprocess<z.ZodUnion<[z.ZodObject<{
|
|
1230
|
+
__originalKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1231
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1232
|
+
allow: "allow";
|
|
1233
|
+
deny: "deny";
|
|
1234
|
+
ask: "ask";
|
|
1235
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1236
|
+
allow: "allow";
|
|
1237
|
+
deny: "deny";
|
|
1238
|
+
ask: "ask";
|
|
1239
|
+
}>>]>>;
|
|
1240
|
+
edit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1241
|
+
allow: "allow";
|
|
1242
|
+
deny: "deny";
|
|
1243
|
+
ask: "ask";
|
|
1244
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1245
|
+
allow: "allow";
|
|
1246
|
+
deny: "deny";
|
|
1247
|
+
ask: "ask";
|
|
1248
|
+
}>>]>>;
|
|
1249
|
+
glob: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1250
|
+
allow: "allow";
|
|
1251
|
+
deny: "deny";
|
|
1252
|
+
ask: "ask";
|
|
1253
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1254
|
+
allow: "allow";
|
|
1255
|
+
deny: "deny";
|
|
1256
|
+
ask: "ask";
|
|
1257
|
+
}>>]>>;
|
|
1258
|
+
grep: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1259
|
+
allow: "allow";
|
|
1260
|
+
deny: "deny";
|
|
1261
|
+
ask: "ask";
|
|
1262
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1263
|
+
allow: "allow";
|
|
1264
|
+
deny: "deny";
|
|
1265
|
+
ask: "ask";
|
|
1266
|
+
}>>]>>;
|
|
1267
|
+
list: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1268
|
+
allow: "allow";
|
|
1269
|
+
deny: "deny";
|
|
1270
|
+
ask: "ask";
|
|
1271
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1272
|
+
allow: "allow";
|
|
1273
|
+
deny: "deny";
|
|
1274
|
+
ask: "ask";
|
|
1275
|
+
}>>]>>;
|
|
1276
|
+
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1277
|
+
allow: "allow";
|
|
1278
|
+
deny: "deny";
|
|
1279
|
+
ask: "ask";
|
|
1280
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1281
|
+
allow: "allow";
|
|
1282
|
+
deny: "deny";
|
|
1283
|
+
ask: "ask";
|
|
1284
|
+
}>>]>>;
|
|
1285
|
+
task: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1286
|
+
allow: "allow";
|
|
1287
|
+
deny: "deny";
|
|
1288
|
+
ask: "ask";
|
|
1289
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1290
|
+
allow: "allow";
|
|
1291
|
+
deny: "deny";
|
|
1292
|
+
ask: "ask";
|
|
1293
|
+
}>>]>>;
|
|
1294
|
+
external_directory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1295
|
+
allow: "allow";
|
|
1296
|
+
deny: "deny";
|
|
1297
|
+
ask: "ask";
|
|
1298
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1299
|
+
allow: "allow";
|
|
1300
|
+
deny: "deny";
|
|
1301
|
+
ask: "ask";
|
|
1302
|
+
}>>]>>;
|
|
1303
|
+
todo: z.ZodOptional<z.ZodEnum<{
|
|
1304
|
+
allow: "allow";
|
|
1305
|
+
deny: "deny";
|
|
1306
|
+
ask: "ask";
|
|
1307
|
+
}>>;
|
|
1308
|
+
question: z.ZodOptional<z.ZodEnum<{
|
|
1309
|
+
allow: "allow";
|
|
1310
|
+
deny: "deny";
|
|
1311
|
+
ask: "ask";
|
|
1312
|
+
}>>;
|
|
1313
|
+
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
1314
|
+
allow: "allow";
|
|
1315
|
+
deny: "deny";
|
|
1316
|
+
ask: "ask";
|
|
1317
|
+
}>>;
|
|
1318
|
+
websearch: z.ZodOptional<z.ZodEnum<{
|
|
1319
|
+
allow: "allow";
|
|
1320
|
+
deny: "deny";
|
|
1321
|
+
ask: "ask";
|
|
1322
|
+
}>>;
|
|
1323
|
+
codesearch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1324
|
+
allow: "allow";
|
|
1325
|
+
deny: "deny";
|
|
1326
|
+
ask: "ask";
|
|
1327
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1328
|
+
allow: "allow";
|
|
1329
|
+
deny: "deny";
|
|
1330
|
+
ask: "ask";
|
|
1331
|
+
}>>]>>;
|
|
1332
|
+
lsp: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1333
|
+
allow: "allow";
|
|
1334
|
+
deny: "deny";
|
|
1335
|
+
ask: "ask";
|
|
1336
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1337
|
+
allow: "allow";
|
|
1338
|
+
deny: "deny";
|
|
1339
|
+
ask: "ask";
|
|
1340
|
+
}>>]>>;
|
|
1341
|
+
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
1342
|
+
allow: "allow";
|
|
1343
|
+
deny: "deny";
|
|
1344
|
+
ask: "ask";
|
|
1345
|
+
}>>;
|
|
1346
|
+
skill: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1347
|
+
allow: "allow";
|
|
1348
|
+
deny: "deny";
|
|
1349
|
+
ask: "ask";
|
|
1350
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1351
|
+
allow: "allow";
|
|
1352
|
+
deny: "deny";
|
|
1353
|
+
ask: "ask";
|
|
1354
|
+
}>>]>>;
|
|
1355
|
+
pty_session: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1356
|
+
allow: "allow";
|
|
1357
|
+
deny: "deny";
|
|
1358
|
+
ask: "ask";
|
|
1359
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1360
|
+
allow: "allow";
|
|
1361
|
+
deny: "deny";
|
|
1362
|
+
ask: "ask";
|
|
1363
|
+
}>>]>>;
|
|
1364
|
+
pty_manage: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1365
|
+
allow: "allow";
|
|
1366
|
+
deny: "deny";
|
|
1367
|
+
ask: "ask";
|
|
1368
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1369
|
+
allow: "allow";
|
|
1370
|
+
deny: "deny";
|
|
1371
|
+
ask: "ask";
|
|
1372
|
+
}>>]>>;
|
|
1373
|
+
write: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1374
|
+
allow: "allow";
|
|
1375
|
+
deny: "deny";
|
|
1376
|
+
ask: "ask";
|
|
1377
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1378
|
+
allow: "allow";
|
|
1379
|
+
deny: "deny";
|
|
1380
|
+
ask: "ask";
|
|
1381
|
+
}>>]>>;
|
|
1382
|
+
multiedit: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1383
|
+
allow: "allow";
|
|
1384
|
+
deny: "deny";
|
|
1385
|
+
ask: "ask";
|
|
1386
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1387
|
+
allow: "allow";
|
|
1388
|
+
deny: "deny";
|
|
1389
|
+
ask: "ask";
|
|
1390
|
+
}>>]>>;
|
|
1391
|
+
note: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1392
|
+
allow: "allow";
|
|
1393
|
+
deny: "deny";
|
|
1394
|
+
ask: "ask";
|
|
1395
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1396
|
+
allow: "allow";
|
|
1397
|
+
deny: "deny";
|
|
1398
|
+
ask: "ask";
|
|
1399
|
+
}>>]>>;
|
|
1400
|
+
memory: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1401
|
+
allow: "allow";
|
|
1402
|
+
deny: "deny";
|
|
1403
|
+
ask: "ask";
|
|
1404
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1405
|
+
allow: "allow";
|
|
1406
|
+
deny: "deny";
|
|
1407
|
+
ask: "ask";
|
|
1408
|
+
}>>]>>;
|
|
1409
|
+
codebase: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1410
|
+
allow: "allow";
|
|
1411
|
+
deny: "deny";
|
|
1412
|
+
ask: "ask";
|
|
1413
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1414
|
+
allow: "allow";
|
|
1415
|
+
deny: "deny";
|
|
1416
|
+
ask: "ask";
|
|
1417
|
+
}>>]>>;
|
|
1418
|
+
agent_client: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1419
|
+
allow: "allow";
|
|
1420
|
+
deny: "deny";
|
|
1421
|
+
ask: "ask";
|
|
1422
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1423
|
+
allow: "allow";
|
|
1424
|
+
deny: "deny";
|
|
1425
|
+
ask: "ask";
|
|
1426
|
+
}>>]>>;
|
|
1427
|
+
gateway: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1428
|
+
allow: "allow";
|
|
1429
|
+
deny: "deny";
|
|
1430
|
+
ask: "ask";
|
|
1431
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1432
|
+
allow: "allow";
|
|
1433
|
+
deny: "deny";
|
|
1434
|
+
ask: "ask";
|
|
1435
|
+
}>>]>>;
|
|
1436
|
+
apply_patch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1437
|
+
allow: "allow";
|
|
1438
|
+
deny: "deny";
|
|
1439
|
+
ask: "ask";
|
|
1440
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1441
|
+
allow: "allow";
|
|
1442
|
+
deny: "deny";
|
|
1443
|
+
ask: "ask";
|
|
1444
|
+
}>>]>>;
|
|
1445
|
+
batch: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1446
|
+
allow: "allow";
|
|
1447
|
+
deny: "deny";
|
|
1448
|
+
ask: "ask";
|
|
1449
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1450
|
+
allow: "allow";
|
|
1451
|
+
deny: "deny";
|
|
1452
|
+
ask: "ask";
|
|
1453
|
+
}>>]>>;
|
|
1454
|
+
plan: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1455
|
+
allow: "allow";
|
|
1456
|
+
deny: "deny";
|
|
1457
|
+
ask: "ask";
|
|
1458
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1459
|
+
allow: "allow";
|
|
1460
|
+
deny: "deny";
|
|
1461
|
+
ask: "ask";
|
|
1462
|
+
}>>]>>;
|
|
1463
|
+
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1464
|
+
allow: "allow";
|
|
1465
|
+
deny: "deny";
|
|
1466
|
+
ask: "ask";
|
|
1467
|
+
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1468
|
+
allow: "allow";
|
|
1469
|
+
deny: "deny";
|
|
1470
|
+
ask: "ask";
|
|
1471
|
+
}>>]>>>, z.ZodEnum<{
|
|
1472
|
+
allow: "allow";
|
|
1473
|
+
deny: "deny";
|
|
1474
|
+
ask: "ask";
|
|
1475
|
+
}>]>>, z.ZodTransform<Record<string, "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">>, "allow" | "deny" | "ask" | {
|
|
1476
|
+
[x: string]: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask">;
|
|
1477
|
+
__originalKeys?: string[] | undefined;
|
|
1478
|
+
read?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1479
|
+
edit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1480
|
+
glob?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1481
|
+
grep?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1482
|
+
list?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1483
|
+
bash?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1484
|
+
task?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1485
|
+
external_directory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1486
|
+
todo?: "allow" | "deny" | "ask" | undefined;
|
|
1487
|
+
question?: "allow" | "deny" | "ask" | undefined;
|
|
1488
|
+
webfetch?: "allow" | "deny" | "ask" | undefined;
|
|
1489
|
+
websearch?: "allow" | "deny" | "ask" | undefined;
|
|
1490
|
+
codesearch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1491
|
+
lsp?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1492
|
+
doom_loop?: "allow" | "deny" | "ask" | undefined;
|
|
1493
|
+
skill?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1494
|
+
pty_session?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1495
|
+
pty_manage?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1496
|
+
write?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1497
|
+
multiedit?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1498
|
+
note?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1499
|
+
memory?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1500
|
+
codebase?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1501
|
+
agent_client?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1502
|
+
gateway?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1503
|
+
apply_patch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1504
|
+
batch?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1505
|
+
plan?: "allow" | "deny" | "ask" | Record<string, "allow" | "deny" | "ask"> | undefined;
|
|
1506
|
+
}>>;
|
|
1507
|
+
readonly RuntimeRule: z.ZodObject<{
|
|
1508
|
+
permission: z.ZodString;
|
|
1509
|
+
pattern: z.ZodString;
|
|
1510
|
+
action: z.ZodEnum<{
|
|
1511
|
+
allow: "allow";
|
|
1512
|
+
deny: "deny";
|
|
1513
|
+
ask: "ask";
|
|
1514
|
+
}>;
|
|
1515
|
+
}, z.core.$strip>;
|
|
1516
|
+
readonly Ruleset: z.ZodArray<z.ZodObject<{
|
|
1517
|
+
permission: z.ZodString;
|
|
1518
|
+
pattern: z.ZodString;
|
|
1519
|
+
action: z.ZodEnum<{
|
|
1520
|
+
allow: "allow";
|
|
1521
|
+
deny: "deny";
|
|
1522
|
+
ask: "ask";
|
|
1523
|
+
}>;
|
|
1524
|
+
}, z.core.$strip>>;
|
|
1525
|
+
};
|
|
1526
|
+
type Permission = typeof Permission;
|
|
1527
|
+
|
|
549
1528
|
interface AgentModel {
|
|
550
1529
|
modelId: string;
|
|
551
1530
|
providerId: string;
|
|
@@ -563,7 +1542,7 @@ type AgentPromptPart = {
|
|
|
563
1542
|
mime?: string;
|
|
564
1543
|
} | {
|
|
565
1544
|
type: 'memory';
|
|
566
|
-
status: 'pending' | '
|
|
1545
|
+
status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'skipped';
|
|
567
1546
|
time: {
|
|
568
1547
|
start: number;
|
|
569
1548
|
end?: number;
|
|
@@ -583,10 +1562,10 @@ interface AgentInput {
|
|
|
583
1562
|
title: string;
|
|
584
1563
|
agent?: string;
|
|
585
1564
|
model?: AgentModel;
|
|
586
|
-
tools?: Record<string, boolean>;
|
|
587
1565
|
system?: string;
|
|
588
1566
|
parts: AgentPromptPart[];
|
|
589
1567
|
metadata?: Record<string, unknown>;
|
|
1568
|
+
temperature?: number;
|
|
590
1569
|
}
|
|
591
1570
|
interface AgentResult {
|
|
592
1571
|
title: string;
|
|
@@ -600,7 +1579,7 @@ interface AgentResultMetadata {
|
|
|
600
1579
|
type AgentCallback = (result: AgentResult) => Promise<void>;
|
|
601
1580
|
interface AgentToolCall {
|
|
602
1581
|
name: string;
|
|
603
|
-
status: 'completed' | '
|
|
1582
|
+
status: 'completed' | 'failed';
|
|
604
1583
|
output?: unknown;
|
|
605
1584
|
error?: string;
|
|
606
1585
|
}
|
|
@@ -623,77 +1602,6 @@ interface AgentMessage {
|
|
|
623
1602
|
};
|
|
624
1603
|
}
|
|
625
1604
|
|
|
626
|
-
type RunMode = 'ephemeral' | 'persistent';
|
|
627
|
-
type TransportType = 'stdio' | 'http' | 'websocket' | 'cli';
|
|
628
|
-
type SubAgentStatus = 'idle' | 'starting' | 'running' | 'busy' | 'stopping' | 'stopped' | 'error';
|
|
629
|
-
interface SubAgentInput extends AgentInput {
|
|
630
|
-
agent: string;
|
|
631
|
-
sessionId?: string;
|
|
632
|
-
syncMessages?: boolean;
|
|
633
|
-
config?: Partial<SubAgentConfig>;
|
|
634
|
-
}
|
|
635
|
-
interface SubAgentResult extends AgentResult {
|
|
636
|
-
userMessage?: unknown;
|
|
637
|
-
assistantMessage?: unknown;
|
|
638
|
-
}
|
|
639
|
-
interface ISubAgentRunner {
|
|
640
|
-
run(input: SubAgentInput): Promise<SubAgentResult>;
|
|
641
|
-
}
|
|
642
|
-
interface SubAgentConfig {
|
|
643
|
-
name: string;
|
|
644
|
-
role: string;
|
|
645
|
-
transport: TransportType;
|
|
646
|
-
runMode: RunMode;
|
|
647
|
-
uri?: string;
|
|
648
|
-
command?: string;
|
|
649
|
-
args?: string[];
|
|
650
|
-
env?: Record<string, string | undefined>;
|
|
651
|
-
timeout?: number;
|
|
652
|
-
maxConcurrent?: number;
|
|
653
|
-
cwd?: string;
|
|
654
|
-
mcpServers?: string[];
|
|
655
|
-
agentConfig?: {
|
|
656
|
-
model?: AgentModel;
|
|
657
|
-
system?: string;
|
|
658
|
-
tools?: Record<string, boolean>;
|
|
659
|
-
};
|
|
660
|
-
}
|
|
661
|
-
interface SubAgentInstance {
|
|
662
|
-
id: string;
|
|
663
|
-
config: SubAgentConfig;
|
|
664
|
-
status: SubAgentStatus;
|
|
665
|
-
sessionId?: string;
|
|
666
|
-
process?: unknown;
|
|
667
|
-
createdAt: number;
|
|
668
|
-
lastActiveAt: number;
|
|
669
|
-
error?: string;
|
|
670
|
-
}
|
|
671
|
-
interface SubAgentEvent {
|
|
672
|
-
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
673
|
-
instanceId: string;
|
|
674
|
-
data?: unknown;
|
|
675
|
-
error?: Error;
|
|
676
|
-
timestamp: number;
|
|
677
|
-
}
|
|
678
|
-
interface SubAgentEvent {
|
|
679
|
-
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
680
|
-
instanceId: string;
|
|
681
|
-
data?: unknown;
|
|
682
|
-
error?: Error;
|
|
683
|
-
timestamp: number;
|
|
684
|
-
}
|
|
685
|
-
interface SubAgentExecuteOptions {
|
|
686
|
-
onMessage?: (message: AgentMessage) => Promise<void> | void;
|
|
687
|
-
}
|
|
688
|
-
interface SubAgentHandler {
|
|
689
|
-
start(config: SubAgentConfig): Promise<void>;
|
|
690
|
-
stop(): Promise<void>;
|
|
691
|
-
isRunning(): boolean;
|
|
692
|
-
execute(input: SubAgentInput, options?: SubAgentExecuteOptions): Promise<SubAgentResult>;
|
|
693
|
-
interrupt(): Promise<void>;
|
|
694
|
-
checkHealth?(): Promise<boolean>;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
1605
|
type LocalAgentInput = AgentInput;
|
|
698
1606
|
type LocalAgentResult = AgentResult;
|
|
699
1607
|
type GatewayMessagePromptPart = AgentPromptPart;
|
|
@@ -847,15 +1755,6 @@ interface ILocalAgentRunner {
|
|
|
847
1755
|
run(input: LocalAgentInput): Promise<LocalAgentResult>;
|
|
848
1756
|
}
|
|
849
1757
|
interface AgentAdapter {
|
|
850
|
-
subAgentRunner: ISubAgentRunner;
|
|
851
|
-
localAgentRunner: ILocalAgentRunner;
|
|
852
|
-
hookRegistry: {
|
|
853
|
-
triggerEvent<T = unknown>(event: string, input: T, context?: Record<string, unknown>): Promise<{
|
|
854
|
-
success: boolean;
|
|
855
|
-
output: T;
|
|
856
|
-
modified: boolean;
|
|
857
|
-
}>;
|
|
858
|
-
};
|
|
859
1758
|
global: IGlobal;
|
|
860
1759
|
instance: IInstance;
|
|
861
1760
|
sdk: EasbotClient;
|
|
@@ -870,9 +1769,163 @@ interface IGatewayServer {
|
|
|
870
1769
|
connections?: number;
|
|
871
1770
|
};
|
|
872
1771
|
}
|
|
1772
|
+
type AgentHealthStatus = 'healthy' | 'unhealthy' | 'offline';
|
|
1773
|
+
interface AgentRegistration {
|
|
1774
|
+
id: string;
|
|
1775
|
+
name: string;
|
|
1776
|
+
capabilities: string[];
|
|
1777
|
+
address: string;
|
|
1778
|
+
status: AgentHealthStatus;
|
|
1779
|
+
lastHeartbeat: number;
|
|
1780
|
+
registeredAt: number;
|
|
1781
|
+
connectionCount: number;
|
|
1782
|
+
metadata?: Record<string, unknown>;
|
|
1783
|
+
}
|
|
1784
|
+
type AgentRegistrationRequest = Omit<AgentRegistration, 'registeredAt' | 'lastHeartbeat' | 'connectionCount' | 'status'>;
|
|
1785
|
+
type AgentSelectionStrategy = 'random' | 'round-robin' | 'least-connections';
|
|
1786
|
+
interface AgentSelectionOptions {
|
|
1787
|
+
strategy: AgentSelectionStrategy;
|
|
1788
|
+
capabilities?: string[];
|
|
1789
|
+
healthyOnly?: boolean;
|
|
1790
|
+
}
|
|
1791
|
+
interface AgentHeartbeat {
|
|
1792
|
+
agentId: string;
|
|
1793
|
+
timestamp: number;
|
|
1794
|
+
status: AgentHealthStatus;
|
|
1795
|
+
metrics?: {
|
|
1796
|
+
cpuUsage?: number;
|
|
1797
|
+
memoryUsage?: number;
|
|
1798
|
+
connectionCount?: number;
|
|
1799
|
+
messageQueueLength?: number;
|
|
1800
|
+
};
|
|
1801
|
+
}
|
|
1802
|
+
interface AgentSelectionRecord {
|
|
1803
|
+
sessionId: string;
|
|
1804
|
+
messageId: string;
|
|
1805
|
+
agentId: string;
|
|
1806
|
+
selectedAt: number;
|
|
1807
|
+
strategy: AgentSelectionStrategy;
|
|
1808
|
+
}
|
|
1809
|
+
interface AgentRegistryStats {
|
|
1810
|
+
totalAgents: number;
|
|
1811
|
+
healthyAgents: number;
|
|
1812
|
+
unhealthyAgents: number;
|
|
1813
|
+
offlineAgents: number;
|
|
1814
|
+
totalConnections: number;
|
|
1815
|
+
}
|
|
1816
|
+
interface AgentSyncInfo {
|
|
1817
|
+
id: string;
|
|
1818
|
+
name: string;
|
|
1819
|
+
sourceGatewayId: string;
|
|
1820
|
+
address: string;
|
|
1821
|
+
capabilities: string[];
|
|
1822
|
+
status: AgentHealthStatus;
|
|
1823
|
+
updatedAt: number;
|
|
1824
|
+
metadata?: Record<string, unknown>;
|
|
1825
|
+
}
|
|
1826
|
+
type AgentSyncMode = 'pull' | 'push' | 'both';
|
|
1827
|
+
type AgentSyncPushEventType = 'register' | 'deregister' | 'heartbeat' | 'status_change';
|
|
1828
|
+
type AgentSyncConflictResolutionStrategy = 'latest' | 'local' | 'remote';
|
|
1829
|
+
interface AgentListRequestMessage {
|
|
1830
|
+
type: 'agent_list_request';
|
|
1831
|
+
requestId: string;
|
|
1832
|
+
sourceNodeId: string;
|
|
1833
|
+
timestamp: number;
|
|
1834
|
+
incremental?: boolean;
|
|
1835
|
+
lastSyncAt?: number;
|
|
1836
|
+
}
|
|
1837
|
+
interface AgentListResponseMessage {
|
|
1838
|
+
type: 'agent_list_response';
|
|
1839
|
+
requestId: string;
|
|
1840
|
+
sourceNodeId: string;
|
|
1841
|
+
timestamp: number;
|
|
1842
|
+
agents: AgentSyncInfo[];
|
|
1843
|
+
fullList: boolean;
|
|
1844
|
+
syncAt: number;
|
|
1845
|
+
}
|
|
1846
|
+
interface AgentRegisterMessage {
|
|
1847
|
+
type: 'agent_register';
|
|
1848
|
+
sourceNodeId: string;
|
|
1849
|
+
timestamp: number;
|
|
1850
|
+
agent: AgentSyncInfo;
|
|
1851
|
+
}
|
|
1852
|
+
interface AgentDeregisterMessage {
|
|
1853
|
+
type: 'agent_deregister';
|
|
1854
|
+
sourceNodeId: string;
|
|
1855
|
+
timestamp: number;
|
|
1856
|
+
agentId: string;
|
|
1857
|
+
}
|
|
1858
|
+
interface AgentHeartbeatSyncMessage {
|
|
1859
|
+
type: 'agent_heartbeat';
|
|
1860
|
+
sourceNodeId: string;
|
|
1861
|
+
timestamp: number;
|
|
1862
|
+
agentId: string;
|
|
1863
|
+
heartbeatAt: number;
|
|
1864
|
+
status: AgentHealthStatus;
|
|
1865
|
+
}
|
|
1866
|
+
interface AgentStatusChangeMessage {
|
|
1867
|
+
type: 'agent_status_change';
|
|
1868
|
+
sourceNodeId: string;
|
|
1869
|
+
timestamp: number;
|
|
1870
|
+
agentId: string;
|
|
1871
|
+
oldStatus: AgentHealthStatus;
|
|
1872
|
+
newStatus: AgentHealthStatus;
|
|
1873
|
+
changedAt: number;
|
|
1874
|
+
}
|
|
1875
|
+
type AgentSyncMessage = AgentListRequestMessage | AgentListResponseMessage | AgentRegisterMessage | AgentDeregisterMessage | AgentHeartbeatSyncMessage | AgentStatusChangeMessage;
|
|
1876
|
+
interface GatewayNodeInfo {
|
|
1877
|
+
id: string;
|
|
1878
|
+
name: string;
|
|
1879
|
+
address: string;
|
|
1880
|
+
port: number;
|
|
1881
|
+
lastSyncAt: number;
|
|
1882
|
+
status: 'online' | 'offline' | 'unknown';
|
|
1883
|
+
metadata?: Record<string, unknown>;
|
|
1884
|
+
}
|
|
1885
|
+
interface AgentSyncState {
|
|
1886
|
+
localNodeId: string;
|
|
1887
|
+
remoteNodes: Map<string, {
|
|
1888
|
+
info: GatewayNodeInfo;
|
|
1889
|
+
lastSyncAt: number;
|
|
1890
|
+
status: 'syncing' | 'synced' | 'error';
|
|
1891
|
+
error?: string;
|
|
1892
|
+
}>;
|
|
1893
|
+
localAgents: Map<string, AgentSyncInfo>;
|
|
1894
|
+
remoteAgents: Map<string, AgentSyncInfo>;
|
|
1895
|
+
}
|
|
1896
|
+
interface AgentSyncStats {
|
|
1897
|
+
localAgentCount: number;
|
|
1898
|
+
remoteAgentCount: number;
|
|
1899
|
+
totalAgentCount: number;
|
|
1900
|
+
onlineNodeCount: number;
|
|
1901
|
+
offlineNodeCount: number;
|
|
1902
|
+
lastSyncAt: number | null;
|
|
1903
|
+
}
|
|
1904
|
+
type GatewaySubscriberType = 'subagent' | 'tui' | 'desktop' | 'browser' | 'mobile' | 'api' | 'acp';
|
|
873
1905
|
|
|
874
1906
|
type gateway_AgentAdapter = AgentAdapter;
|
|
1907
|
+
type gateway_AgentDeregisterMessage = AgentDeregisterMessage;
|
|
1908
|
+
type gateway_AgentHealthStatus = AgentHealthStatus;
|
|
1909
|
+
type gateway_AgentHeartbeat = AgentHeartbeat;
|
|
1910
|
+
type gateway_AgentHeartbeatSyncMessage = AgentHeartbeatSyncMessage;
|
|
875
1911
|
type gateway_AgentInfo = AgentInfo;
|
|
1912
|
+
type gateway_AgentListRequestMessage = AgentListRequestMessage;
|
|
1913
|
+
type gateway_AgentListResponseMessage = AgentListResponseMessage;
|
|
1914
|
+
type gateway_AgentRegisterMessage = AgentRegisterMessage;
|
|
1915
|
+
type gateway_AgentRegistration = AgentRegistration;
|
|
1916
|
+
type gateway_AgentRegistrationRequest = AgentRegistrationRequest;
|
|
1917
|
+
type gateway_AgentRegistryStats = AgentRegistryStats;
|
|
1918
|
+
type gateway_AgentSelectionOptions = AgentSelectionOptions;
|
|
1919
|
+
type gateway_AgentSelectionRecord = AgentSelectionRecord;
|
|
1920
|
+
type gateway_AgentSelectionStrategy = AgentSelectionStrategy;
|
|
1921
|
+
type gateway_AgentStatusChangeMessage = AgentStatusChangeMessage;
|
|
1922
|
+
type gateway_AgentSyncConflictResolutionStrategy = AgentSyncConflictResolutionStrategy;
|
|
1923
|
+
type gateway_AgentSyncInfo = AgentSyncInfo;
|
|
1924
|
+
type gateway_AgentSyncMessage = AgentSyncMessage;
|
|
1925
|
+
type gateway_AgentSyncMode = AgentSyncMode;
|
|
1926
|
+
type gateway_AgentSyncPushEventType = AgentSyncPushEventType;
|
|
1927
|
+
type gateway_AgentSyncState = AgentSyncState;
|
|
1928
|
+
type gateway_AgentSyncStats = AgentSyncStats;
|
|
876
1929
|
type gateway_ChannelInfo = ChannelInfo;
|
|
877
1930
|
type gateway_ChannelListResponse = ChannelListResponse;
|
|
878
1931
|
type gateway_ChannelPluginInfo = ChannelPluginInfo;
|
|
@@ -884,7 +1937,9 @@ type gateway_GatewayMessagePromptPart = GatewayMessagePromptPart;
|
|
|
884
1937
|
type gateway_GatewayMessageReadInput = GatewayMessageReadInput;
|
|
885
1938
|
type gateway_GatewayMessageReceiveInput = GatewayMessageReceiveInput;
|
|
886
1939
|
type gateway_GatewayMessageSendInput = GatewayMessageSendInput;
|
|
1940
|
+
type gateway_GatewayNodeInfo = GatewayNodeInfo;
|
|
887
1941
|
type gateway_GatewayServerConfig = GatewayServerConfig;
|
|
1942
|
+
type gateway_GatewaySubscriberType = GatewaySubscriberType;
|
|
888
1943
|
type gateway_IGatewayServer = IGatewayServer;
|
|
889
1944
|
type gateway_IGlobal = IGlobal;
|
|
890
1945
|
type gateway_IHookRegistry = IHookRegistry;
|
|
@@ -898,9 +1953,378 @@ type gateway_MessageStorage = MessageStorage;
|
|
|
898
1953
|
type gateway_MessageType = MessageType;
|
|
899
1954
|
type gateway_PlatformType = PlatformType;
|
|
900
1955
|
declare namespace gateway {
|
|
901
|
-
export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentInfo as AgentInfo, gateway_ChannelInfo as ChannelInfo, gateway_ChannelListResponse as ChannelListResponse, gateway_ChannelPluginInfo as ChannelPluginInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessageDeliveredInput as GatewayMessageDeliveredInput, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReadInput as GatewayMessageReadInput, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayMessageSendInput as GatewayMessageSendInput, gateway_GatewayServerConfig as GatewayServerConfig, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_ILocalAgentRunner as ILocalAgentRunner, gateway_LocalAgentInput as LocalAgentInput, gateway_LocalAgentResult as LocalAgentResult, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
|
|
1956
|
+
export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentDeregisterMessage as AgentDeregisterMessage, gateway_AgentHealthStatus as AgentHealthStatus, gateway_AgentHeartbeat as AgentHeartbeat, gateway_AgentHeartbeatSyncMessage as AgentHeartbeatSyncMessage, gateway_AgentInfo as AgentInfo, gateway_AgentListRequestMessage as AgentListRequestMessage, gateway_AgentListResponseMessage as AgentListResponseMessage, gateway_AgentRegisterMessage as AgentRegisterMessage, gateway_AgentRegistration as AgentRegistration, gateway_AgentRegistrationRequest as AgentRegistrationRequest, gateway_AgentRegistryStats as AgentRegistryStats, gateway_AgentSelectionOptions as AgentSelectionOptions, gateway_AgentSelectionRecord as AgentSelectionRecord, gateway_AgentSelectionStrategy as AgentSelectionStrategy, gateway_AgentStatusChangeMessage as AgentStatusChangeMessage, gateway_AgentSyncConflictResolutionStrategy as AgentSyncConflictResolutionStrategy, gateway_AgentSyncInfo as AgentSyncInfo, gateway_AgentSyncMessage as AgentSyncMessage, gateway_AgentSyncMode as AgentSyncMode, gateway_AgentSyncPushEventType as AgentSyncPushEventType, gateway_AgentSyncState as AgentSyncState, gateway_AgentSyncStats as AgentSyncStats, gateway_ChannelInfo as ChannelInfo, gateway_ChannelListResponse as ChannelListResponse, gateway_ChannelPluginInfo as ChannelPluginInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessageDeliveredInput as GatewayMessageDeliveredInput, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReadInput as GatewayMessageReadInput, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayMessageSendInput as GatewayMessageSendInput, gateway_GatewayNodeInfo as GatewayNodeInfo, gateway_GatewayServerConfig as GatewayServerConfig, gateway_GatewaySubscriberType as GatewaySubscriberType, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_ILocalAgentRunner as ILocalAgentRunner, gateway_LocalAgentInput as LocalAgentInput, gateway_LocalAgentResult as LocalAgentResult, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
|
|
902
1957
|
}
|
|
903
1958
|
|
|
1959
|
+
declare const ProjectIconSchema: z.ZodObject<{
|
|
1960
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1961
|
+
override: z.ZodOptional<z.ZodString>;
|
|
1962
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1963
|
+
}, z.core.$strip>;
|
|
1964
|
+
type ProjectIcon = z.infer<typeof ProjectIconSchema>;
|
|
1965
|
+
declare const ProjectCommandsSchema: z.ZodObject<{
|
|
1966
|
+
start: z.ZodOptional<z.ZodString>;
|
|
1967
|
+
}, z.core.$strip>;
|
|
1968
|
+
type ProjectCommands = z.infer<typeof ProjectCommandsSchema>;
|
|
1969
|
+
declare const ProjectTimeSchema: z.ZodObject<{
|
|
1970
|
+
created: z.ZodNumber;
|
|
1971
|
+
updated: z.ZodNumber;
|
|
1972
|
+
initialized: z.ZodOptional<z.ZodNumber>;
|
|
1973
|
+
}, z.core.$strip>;
|
|
1974
|
+
type ProjectTime = z.infer<typeof ProjectTimeSchema>;
|
|
1975
|
+
declare const ProjectInfoSchema: z.ZodObject<{
|
|
1976
|
+
id: z.ZodString;
|
|
1977
|
+
worktree: z.ZodString;
|
|
1978
|
+
vcs: z.ZodOptional<z.ZodLiteral<"git">>;
|
|
1979
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1980
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
1981
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
override: z.ZodOptional<z.ZodString>;
|
|
1983
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
}, z.core.$strip>>;
|
|
1985
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
1986
|
+
start: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
}, z.core.$strip>>;
|
|
1988
|
+
time: z.ZodObject<{
|
|
1989
|
+
created: z.ZodNumber;
|
|
1990
|
+
updated: z.ZodNumber;
|
|
1991
|
+
initialized: z.ZodOptional<z.ZodNumber>;
|
|
1992
|
+
}, z.core.$strip>;
|
|
1993
|
+
sandboxes: z.ZodArray<z.ZodString>;
|
|
1994
|
+
}, z.core.$strip>;
|
|
1995
|
+
type ProjectInfo = z.infer<typeof ProjectInfoSchema>;
|
|
1996
|
+
|
|
1997
|
+
declare const SessionInfoSchema: z.ZodObject<{
|
|
1998
|
+
id: z.ZodString;
|
|
1999
|
+
slug: z.ZodString;
|
|
2000
|
+
providerId: z.ZodString;
|
|
2001
|
+
directory: z.ZodString;
|
|
2002
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2003
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2004
|
+
general: "general";
|
|
2005
|
+
coder: "coder";
|
|
2006
|
+
}>>;
|
|
2007
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2008
|
+
additions: z.ZodNumber;
|
|
2009
|
+
deletions: z.ZodNumber;
|
|
2010
|
+
files: z.ZodNumber;
|
|
2011
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2012
|
+
file: z.ZodString;
|
|
2013
|
+
before: z.ZodString;
|
|
2014
|
+
after: z.ZodString;
|
|
2015
|
+
additions: z.ZodNumber;
|
|
2016
|
+
deletions: z.ZodNumber;
|
|
2017
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2018
|
+
added: "added";
|
|
2019
|
+
modified: "modified";
|
|
2020
|
+
deleted: "deleted";
|
|
2021
|
+
renamed: "renamed";
|
|
2022
|
+
}>>;
|
|
2023
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
}, z.core.$strip>>>;
|
|
2025
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2026
|
+
"no-messages": "no-messages";
|
|
2027
|
+
"missing-from": "missing-from";
|
|
2028
|
+
"missing-to": "missing-to";
|
|
2029
|
+
}>>;
|
|
2030
|
+
}, z.core.$strip>>;
|
|
2031
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2032
|
+
url: z.ZodString;
|
|
2033
|
+
}, z.core.$strip>>;
|
|
2034
|
+
title: z.ZodString;
|
|
2035
|
+
version: z.ZodString;
|
|
2036
|
+
time: z.ZodObject<{
|
|
2037
|
+
created: z.ZodNumber;
|
|
2038
|
+
updated: z.ZodNumber;
|
|
2039
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2040
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2041
|
+
}, z.core.$strip>;
|
|
2042
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2043
|
+
permission: z.ZodString;
|
|
2044
|
+
pattern: z.ZodString;
|
|
2045
|
+
action: z.ZodEnum<{
|
|
2046
|
+
allow: "allow";
|
|
2047
|
+
deny: "deny";
|
|
2048
|
+
ask: "ask";
|
|
2049
|
+
}>;
|
|
2050
|
+
}, z.core.$strip>>>;
|
|
2051
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2052
|
+
messageId: z.ZodString;
|
|
2053
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2054
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2055
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2056
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2057
|
+
original: z.ZodString;
|
|
2058
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2059
|
+
}, z.core.$strip>>>;
|
|
2060
|
+
}, z.core.$strip>>;
|
|
2061
|
+
}, z.core.$strip>;
|
|
2062
|
+
type SessionInfo = z.infer<typeof SessionInfoSchema>;
|
|
2063
|
+
declare const GlobalSessionInfoSchema: z.ZodObject<{
|
|
2064
|
+
id: z.ZodString;
|
|
2065
|
+
slug: z.ZodString;
|
|
2066
|
+
providerId: z.ZodString;
|
|
2067
|
+
directory: z.ZodString;
|
|
2068
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2069
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2070
|
+
general: "general";
|
|
2071
|
+
coder: "coder";
|
|
2072
|
+
}>>;
|
|
2073
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2074
|
+
additions: z.ZodNumber;
|
|
2075
|
+
deletions: z.ZodNumber;
|
|
2076
|
+
files: z.ZodNumber;
|
|
2077
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2078
|
+
file: z.ZodString;
|
|
2079
|
+
before: z.ZodString;
|
|
2080
|
+
after: z.ZodString;
|
|
2081
|
+
additions: z.ZodNumber;
|
|
2082
|
+
deletions: z.ZodNumber;
|
|
2083
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2084
|
+
added: "added";
|
|
2085
|
+
modified: "modified";
|
|
2086
|
+
deleted: "deleted";
|
|
2087
|
+
renamed: "renamed";
|
|
2088
|
+
}>>;
|
|
2089
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2090
|
+
}, z.core.$strip>>>;
|
|
2091
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2092
|
+
"no-messages": "no-messages";
|
|
2093
|
+
"missing-from": "missing-from";
|
|
2094
|
+
"missing-to": "missing-to";
|
|
2095
|
+
}>>;
|
|
2096
|
+
}, z.core.$strip>>;
|
|
2097
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2098
|
+
url: z.ZodString;
|
|
2099
|
+
}, z.core.$strip>>;
|
|
2100
|
+
title: z.ZodString;
|
|
2101
|
+
version: z.ZodString;
|
|
2102
|
+
time: z.ZodObject<{
|
|
2103
|
+
created: z.ZodNumber;
|
|
2104
|
+
updated: z.ZodNumber;
|
|
2105
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2106
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2107
|
+
}, z.core.$strip>;
|
|
2108
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2109
|
+
permission: z.ZodString;
|
|
2110
|
+
pattern: z.ZodString;
|
|
2111
|
+
action: z.ZodEnum<{
|
|
2112
|
+
allow: "allow";
|
|
2113
|
+
deny: "deny";
|
|
2114
|
+
ask: "ask";
|
|
2115
|
+
}>;
|
|
2116
|
+
}, z.core.$strip>>>;
|
|
2117
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2118
|
+
messageId: z.ZodString;
|
|
2119
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2120
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2122
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2123
|
+
original: z.ZodString;
|
|
2124
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
}, z.core.$strip>>>;
|
|
2126
|
+
}, z.core.$strip>>;
|
|
2127
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
2128
|
+
id: z.ZodString;
|
|
2129
|
+
worktree: z.ZodString;
|
|
2130
|
+
vcs: z.ZodOptional<z.ZodLiteral<"git">>;
|
|
2131
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
2133
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
override: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
}, z.core.$strip>>;
|
|
2137
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
2138
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
}, z.core.$strip>>;
|
|
2140
|
+
time: z.ZodObject<{
|
|
2141
|
+
created: z.ZodNumber;
|
|
2142
|
+
updated: z.ZodNumber;
|
|
2143
|
+
initialized: z.ZodOptional<z.ZodNumber>;
|
|
2144
|
+
}, z.core.$strip>;
|
|
2145
|
+
sandboxes: z.ZodArray<z.ZodString>;
|
|
2146
|
+
}, z.core.$strip>>;
|
|
2147
|
+
}, z.core.$strip>;
|
|
2148
|
+
type GlobalSessionInfo = z.infer<typeof GlobalSessionInfoSchema>;
|
|
2149
|
+
declare const SessionShareInfoSchema: z.ZodObject<{
|
|
2150
|
+
secret: z.ZodString;
|
|
2151
|
+
url: z.ZodString;
|
|
2152
|
+
}, z.core.$strip>;
|
|
2153
|
+
type SessionShareInfo = z.infer<typeof SessionShareInfoSchema>;
|
|
2154
|
+
declare const Session: {
|
|
2155
|
+
readonly ContextModeValues: ("general" | "coder")[];
|
|
2156
|
+
readonly Info: z.ZodObject<{
|
|
2157
|
+
id: z.ZodString;
|
|
2158
|
+
slug: z.ZodString;
|
|
2159
|
+
providerId: z.ZodString;
|
|
2160
|
+
directory: z.ZodString;
|
|
2161
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2163
|
+
general: "general";
|
|
2164
|
+
coder: "coder";
|
|
2165
|
+
}>>;
|
|
2166
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2167
|
+
additions: z.ZodNumber;
|
|
2168
|
+
deletions: z.ZodNumber;
|
|
2169
|
+
files: z.ZodNumber;
|
|
2170
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2171
|
+
file: z.ZodString;
|
|
2172
|
+
before: z.ZodString;
|
|
2173
|
+
after: z.ZodString;
|
|
2174
|
+
additions: z.ZodNumber;
|
|
2175
|
+
deletions: z.ZodNumber;
|
|
2176
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2177
|
+
added: "added";
|
|
2178
|
+
modified: "modified";
|
|
2179
|
+
deleted: "deleted";
|
|
2180
|
+
renamed: "renamed";
|
|
2181
|
+
}>>;
|
|
2182
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2183
|
+
}, z.core.$strip>>>;
|
|
2184
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2185
|
+
"no-messages": "no-messages";
|
|
2186
|
+
"missing-from": "missing-from";
|
|
2187
|
+
"missing-to": "missing-to";
|
|
2188
|
+
}>>;
|
|
2189
|
+
}, z.core.$strip>>;
|
|
2190
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2191
|
+
url: z.ZodString;
|
|
2192
|
+
}, z.core.$strip>>;
|
|
2193
|
+
title: z.ZodString;
|
|
2194
|
+
version: z.ZodString;
|
|
2195
|
+
time: z.ZodObject<{
|
|
2196
|
+
created: z.ZodNumber;
|
|
2197
|
+
updated: z.ZodNumber;
|
|
2198
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2199
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2200
|
+
}, z.core.$strip>;
|
|
2201
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2202
|
+
permission: z.ZodString;
|
|
2203
|
+
pattern: z.ZodString;
|
|
2204
|
+
action: z.ZodEnum<{
|
|
2205
|
+
allow: "allow";
|
|
2206
|
+
deny: "deny";
|
|
2207
|
+
ask: "ask";
|
|
2208
|
+
}>;
|
|
2209
|
+
}, z.core.$strip>>>;
|
|
2210
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2211
|
+
messageId: z.ZodString;
|
|
2212
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2213
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2215
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2216
|
+
original: z.ZodString;
|
|
2217
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
}, z.core.$strip>>>;
|
|
2219
|
+
}, z.core.$strip>>;
|
|
2220
|
+
}, z.core.$strip>;
|
|
2221
|
+
readonly GlobalInfo: z.ZodObject<{
|
|
2222
|
+
id: z.ZodString;
|
|
2223
|
+
slug: z.ZodString;
|
|
2224
|
+
providerId: z.ZodString;
|
|
2225
|
+
directory: z.ZodString;
|
|
2226
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
contextMode: z.ZodOptional<z.ZodEnum<{
|
|
2228
|
+
general: "general";
|
|
2229
|
+
coder: "coder";
|
|
2230
|
+
}>>;
|
|
2231
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2232
|
+
additions: z.ZodNumber;
|
|
2233
|
+
deletions: z.ZodNumber;
|
|
2234
|
+
files: z.ZodNumber;
|
|
2235
|
+
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2236
|
+
file: z.ZodString;
|
|
2237
|
+
before: z.ZodString;
|
|
2238
|
+
after: z.ZodString;
|
|
2239
|
+
additions: z.ZodNumber;
|
|
2240
|
+
deletions: z.ZodNumber;
|
|
2241
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2242
|
+
added: "added";
|
|
2243
|
+
modified: "modified";
|
|
2244
|
+
deleted: "deleted";
|
|
2245
|
+
renamed: "renamed";
|
|
2246
|
+
}>>;
|
|
2247
|
+
oldPath: z.ZodOptional<z.ZodString>;
|
|
2248
|
+
}, z.core.$strip>>>;
|
|
2249
|
+
noSnapshotReason: z.ZodOptional<z.ZodEnum<{
|
|
2250
|
+
"no-messages": "no-messages";
|
|
2251
|
+
"missing-from": "missing-from";
|
|
2252
|
+
"missing-to": "missing-to";
|
|
2253
|
+
}>>;
|
|
2254
|
+
}, z.core.$strip>>;
|
|
2255
|
+
share: z.ZodOptional<z.ZodObject<{
|
|
2256
|
+
url: z.ZodString;
|
|
2257
|
+
}, z.core.$strip>>;
|
|
2258
|
+
title: z.ZodString;
|
|
2259
|
+
version: z.ZodString;
|
|
2260
|
+
time: z.ZodObject<{
|
|
2261
|
+
created: z.ZodNumber;
|
|
2262
|
+
updated: z.ZodNumber;
|
|
2263
|
+
compacting: z.ZodOptional<z.ZodNumber>;
|
|
2264
|
+
archived: z.ZodOptional<z.ZodNumber>;
|
|
2265
|
+
}, z.core.$strip>;
|
|
2266
|
+
permission: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2267
|
+
permission: z.ZodString;
|
|
2268
|
+
pattern: z.ZodString;
|
|
2269
|
+
action: z.ZodEnum<{
|
|
2270
|
+
allow: "allow";
|
|
2271
|
+
deny: "deny";
|
|
2272
|
+
ask: "ask";
|
|
2273
|
+
}>;
|
|
2274
|
+
}, z.core.$strip>>>;
|
|
2275
|
+
revert: z.ZodOptional<z.ZodObject<{
|
|
2276
|
+
messageId: z.ZodString;
|
|
2277
|
+
partId: z.ZodOptional<z.ZodString>;
|
|
2278
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
2279
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
backups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2281
|
+
original: z.ZodString;
|
|
2282
|
+
backup: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
}, z.core.$strip>>>;
|
|
2284
|
+
}, z.core.$strip>>;
|
|
2285
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
2286
|
+
id: z.ZodString;
|
|
2287
|
+
worktree: z.ZodString;
|
|
2288
|
+
vcs: z.ZodOptional<z.ZodLiteral<"git">>;
|
|
2289
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2290
|
+
icon: z.ZodOptional<z.ZodObject<{
|
|
2291
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
override: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2294
|
+
}, z.core.$strip>>;
|
|
2295
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
2296
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2297
|
+
}, z.core.$strip>>;
|
|
2298
|
+
time: z.ZodObject<{
|
|
2299
|
+
created: z.ZodNumber;
|
|
2300
|
+
updated: z.ZodNumber;
|
|
2301
|
+
initialized: z.ZodOptional<z.ZodNumber>;
|
|
2302
|
+
}, z.core.$strip>;
|
|
2303
|
+
sandboxes: z.ZodArray<z.ZodString>;
|
|
2304
|
+
}, z.core.$strip>>;
|
|
2305
|
+
}, z.core.$strip>;
|
|
2306
|
+
readonly ShareInfo: z.ZodObject<{
|
|
2307
|
+
secret: z.ZodString;
|
|
2308
|
+
url: z.ZodString;
|
|
2309
|
+
}, z.core.$strip>;
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
type ContextMode = 'general' | 'coder';
|
|
2313
|
+
declare const ContextModeEnum: {
|
|
2314
|
+
readonly General: "general";
|
|
2315
|
+
readonly Coder: "coder";
|
|
2316
|
+
};
|
|
2317
|
+
declare const ContextModeValues: ContextMode[];
|
|
2318
|
+
declare const DefaultContextMode: ContextMode;
|
|
2319
|
+
declare const ScopeEnum: {
|
|
2320
|
+
readonly General: "general";
|
|
2321
|
+
readonly Coder: "coder";
|
|
2322
|
+
readonly All: "all";
|
|
2323
|
+
};
|
|
2324
|
+
type Scope = (typeof ScopeEnum)[keyof typeof ScopeEnum];
|
|
2325
|
+
declare const ScopeValues: Scope[];
|
|
2326
|
+
declare const DefaultScope: Scope;
|
|
2327
|
+
|
|
904
2328
|
type ShellFunction = (input: Uint8Array) => Uint8Array;
|
|
905
2329
|
type ShellExpression = {
|
|
906
2330
|
toString(): string;
|
|
@@ -926,6 +2350,7 @@ interface EasbotShellPromise extends Promise<EasbotShellOutput> {
|
|
|
926
2350
|
json(): Promise<unknown>;
|
|
927
2351
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
928
2352
|
blob(): Promise<Blob>;
|
|
2353
|
+
stdinData(data: string | Buffer): this;
|
|
929
2354
|
nothrow(): this;
|
|
930
2355
|
throws(shouldThrow: boolean): this;
|
|
931
2356
|
}
|
|
@@ -962,28 +2387,28 @@ type ToolContext = {
|
|
|
962
2387
|
};
|
|
963
2388
|
type ToolFunction = {
|
|
964
2389
|
description: string;
|
|
965
|
-
args: Record<string, z.ZodTypeAny>;
|
|
2390
|
+
args: Record<string, z$1.ZodTypeAny>;
|
|
966
2391
|
execute(args: Record<string, unknown>, context: ToolContext): Promise<string>;
|
|
967
2392
|
};
|
|
968
2393
|
interface ToolDefinition {
|
|
969
2394
|
description: string;
|
|
970
|
-
args: Record<string, z.ZodTypeAny>;
|
|
2395
|
+
args: Record<string, z$1.ZodTypeAny>;
|
|
971
2396
|
execute?: (args: Record<string, unknown>, context: ToolContext) => Promise<string>;
|
|
972
2397
|
}
|
|
973
|
-
declare function createTool<Args extends Record<string, z.ZodTypeAny>>(input: {
|
|
2398
|
+
declare function createTool<Args extends Record<string, z$1.ZodTypeAny>>(input: {
|
|
974
2399
|
description: string;
|
|
975
2400
|
args: Args;
|
|
976
|
-
execute(args: z.infer<z.ZodObject<Args>>, context: ToolContext): Promise<string>;
|
|
2401
|
+
execute(args: z$1.infer<z$1.ZodObject<Args>>, context: ToolContext): Promise<string>;
|
|
977
2402
|
}): ToolDefinition & {
|
|
978
2403
|
args: Args;
|
|
979
2404
|
};
|
|
980
|
-
declare const toolSchema: typeof z;
|
|
981
|
-
declare function buildToolArgs<T extends Record<string, z.ZodTypeAny>>(schema: T): z.ZodObject<T>;
|
|
2405
|
+
declare const toolSchema: typeof z$1;
|
|
2406
|
+
declare function buildToolArgs<T extends Record<string, z$1.ZodTypeAny>>(schema: T): z$1.ZodObject<T>;
|
|
982
2407
|
interface ITool {
|
|
983
2408
|
id: string;
|
|
984
2409
|
name: string;
|
|
985
2410
|
description: string;
|
|
986
|
-
args: Record<string, z.ZodTypeAny>;
|
|
2411
|
+
args: Record<string, z$1.ZodTypeAny>;
|
|
987
2412
|
execute(args: Record<string, unknown>, context: ToolContext): Promise<string>;
|
|
988
2413
|
}
|
|
989
2414
|
|
|
@@ -1074,11 +2499,6 @@ interface NoteKnowledgeConfig extends BaseKnowledgeConfig {
|
|
|
1074
2499
|
graph?: GraphLlmConfig;
|
|
1075
2500
|
rerank?: RerankLlmConfig;
|
|
1076
2501
|
}
|
|
1077
|
-
declare const DEFAULT_NOTE_CHUNK_CONFIG: {
|
|
1078
|
-
readonly chunkSize: 1024;
|
|
1079
|
-
readonly chunkOverlap: 102;
|
|
1080
|
-
readonly minChunkLength: 100;
|
|
1081
|
-
};
|
|
1082
2502
|
interface NoteKnowledgeConfigWithModels extends NoteKnowledgeConfig {
|
|
1083
2503
|
embeddingLlm?: EmbeddingModel;
|
|
1084
2504
|
graphLlm?: LanguageModel;
|
|
@@ -1093,8 +2513,6 @@ interface CodebaseKnowledgeConfigWithModels extends CodebaseKnowledgeConfig {
|
|
|
1093
2513
|
embeddingLlm: EmbeddingModel;
|
|
1094
2514
|
graphLlm?: LanguageModel;
|
|
1095
2515
|
}
|
|
1096
|
-
declare function getDefaultDatabasePath(xdgData: string, dbName: string): string;
|
|
1097
|
-
declare function getWorkspaceDatabasePath(workspaceDir: string, dbName: string): string;
|
|
1098
2516
|
type KnowledgeSearchSource = 'vector' | 'fts' | 'graph' | 'hybrid' | 'reranked';
|
|
1099
2517
|
interface KnowledgeSearchOptions {
|
|
1100
2518
|
maxResults?: number;
|
|
@@ -1269,6 +2687,865 @@ declare const KNOWLEDGE_DOCTOR_PUBLIC_CHECKS: readonly ["database", "fts", "vect
|
|
|
1269
2687
|
type KnowledgeDoctorPublicCheck = (typeof KNOWLEDGE_DOCTOR_PUBLIC_CHECKS)[number];
|
|
1270
2688
|
declare const EMBEDDING_DIMS_CONSISTENCY_CHECK: "embeddingDims_consistency";
|
|
1271
2689
|
|
|
2690
|
+
type RunMode = 'ephemeral' | 'persistent';
|
|
2691
|
+
type TransportType = 'stdio' | 'http' | 'websocket' | 'cli';
|
|
2692
|
+
type SubAgentStatus = 'idle' | 'starting' | 'running' | 'busy' | 'stopping' | 'stopped' | 'error';
|
|
2693
|
+
interface SubAgentInput extends AgentInput {
|
|
2694
|
+
agent: string;
|
|
2695
|
+
sessionId?: string;
|
|
2696
|
+
syncMessages?: boolean;
|
|
2697
|
+
config?: Partial<SubAgentConfig>;
|
|
2698
|
+
}
|
|
2699
|
+
interface SubAgentResult extends AgentResult {
|
|
2700
|
+
userMessage?: unknown;
|
|
2701
|
+
assistantMessage?: unknown;
|
|
2702
|
+
}
|
|
2703
|
+
interface ISubAgentRunner {
|
|
2704
|
+
run(input: SubAgentInput): Promise<SubAgentResult>;
|
|
2705
|
+
}
|
|
2706
|
+
interface SubAgentConfig {
|
|
2707
|
+
name: string;
|
|
2708
|
+
role: string;
|
|
2709
|
+
transport: TransportType;
|
|
2710
|
+
runMode: RunMode;
|
|
2711
|
+
uri?: string;
|
|
2712
|
+
command?: string;
|
|
2713
|
+
args?: string[];
|
|
2714
|
+
env?: Record<string, string | undefined>;
|
|
2715
|
+
timeout?: number;
|
|
2716
|
+
maxConcurrent?: number;
|
|
2717
|
+
cwd?: string;
|
|
2718
|
+
mcpServers?: string[];
|
|
2719
|
+
agentConfig?: {
|
|
2720
|
+
agent?: string;
|
|
2721
|
+
model?: string;
|
|
2722
|
+
system?: string;
|
|
2723
|
+
tools?: Record<string, boolean>;
|
|
2724
|
+
};
|
|
2725
|
+
}
|
|
2726
|
+
interface SubAgentInstance {
|
|
2727
|
+
id: string;
|
|
2728
|
+
config: SubAgentConfig;
|
|
2729
|
+
status: SubAgentStatus;
|
|
2730
|
+
sessionId?: string;
|
|
2731
|
+
process?: unknown;
|
|
2732
|
+
createdAt: number;
|
|
2733
|
+
lastActiveAt: number;
|
|
2734
|
+
error?: string;
|
|
2735
|
+
}
|
|
2736
|
+
interface SubAgentEvent {
|
|
2737
|
+
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
2738
|
+
instanceId: string;
|
|
2739
|
+
data?: unknown;
|
|
2740
|
+
error?: Error;
|
|
2741
|
+
timestamp: number;
|
|
2742
|
+
}
|
|
2743
|
+
interface SubAgentEvent {
|
|
2744
|
+
type: 'start' | 'message' | 'delta' | 'complete' | 'error' | 'interrupt';
|
|
2745
|
+
instanceId: string;
|
|
2746
|
+
data?: unknown;
|
|
2747
|
+
error?: Error;
|
|
2748
|
+
timestamp: number;
|
|
2749
|
+
}
|
|
2750
|
+
interface SubAgentExecuteOptions {
|
|
2751
|
+
onMessage?: (message: AgentMessage) => Promise<void> | void;
|
|
2752
|
+
}
|
|
2753
|
+
interface SubAgentHandler {
|
|
2754
|
+
start(config: SubAgentConfig): Promise<void>;
|
|
2755
|
+
stop(): Promise<void>;
|
|
2756
|
+
isRunning(): boolean;
|
|
2757
|
+
execute(input: SubAgentInput, options?: SubAgentExecuteOptions): Promise<SubAgentResult>;
|
|
2758
|
+
interrupt(): Promise<void>;
|
|
2759
|
+
checkHealth?(): Promise<boolean>;
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
declare enum ChannelType {
|
|
2763
|
+
STDIO = "stdio",
|
|
2764
|
+
HTTP = "http",
|
|
2765
|
+
WS = "websocket"
|
|
2766
|
+
}
|
|
2767
|
+
declare const ACPStdioConnectionConfigSchema: z$1.ZodObject<{
|
|
2768
|
+
command: z$1.ZodString;
|
|
2769
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2770
|
+
}, z$1.core.$strip>;
|
|
2771
|
+
declare const ACPHttpConnectionConfigSchema: z$1.ZodObject<{
|
|
2772
|
+
baseUrl: z$1.ZodString;
|
|
2773
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2774
|
+
}, z$1.core.$strip>;
|
|
2775
|
+
declare const ACPWebSocketConnectionConfigSchema: z$1.ZodObject<{
|
|
2776
|
+
url: z$1.ZodString;
|
|
2777
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2778
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2779
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2780
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2781
|
+
}, z$1.core.$strip>;
|
|
2782
|
+
declare const ACPConnectionConfigSchema: z$1.ZodObject<{
|
|
2783
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
2784
|
+
command: z$1.ZodString;
|
|
2785
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2786
|
+
}, z$1.core.$strip>>;
|
|
2787
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
2788
|
+
baseUrl: z$1.ZodString;
|
|
2789
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2790
|
+
}, z$1.core.$strip>>;
|
|
2791
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
2792
|
+
url: z$1.ZodString;
|
|
2793
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2794
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2795
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2796
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2797
|
+
}, z$1.core.$strip>>;
|
|
2798
|
+
}, z$1.core.$strip>;
|
|
2799
|
+
declare const ACPModelConfigSchema: z$1.ZodObject<{
|
|
2800
|
+
id: z$1.ZodString;
|
|
2801
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2802
|
+
}, z$1.core.$strip>;
|
|
2803
|
+
declare const ACPAgentRuntimeConfigSchema: z$1.ZodObject<{
|
|
2804
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
2805
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2806
|
+
id: z$1.ZodString;
|
|
2807
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2808
|
+
}, z$1.core.$strip>>;
|
|
2809
|
+
}, z$1.core.$strip>;
|
|
2810
|
+
declare const ACPServerConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
2811
|
+
directory: z$1.ZodDefault<z$1.ZodString>;
|
|
2812
|
+
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2813
|
+
channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
|
|
2814
|
+
http: "http";
|
|
2815
|
+
websocket: "websocket";
|
|
2816
|
+
stdio: "stdio";
|
|
2817
|
+
}>>>;
|
|
2818
|
+
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2819
|
+
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
2820
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2821
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2822
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
2823
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
2824
|
+
command: z$1.ZodString;
|
|
2825
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2826
|
+
}, z$1.core.$strip>>;
|
|
2827
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
2828
|
+
baseUrl: z$1.ZodString;
|
|
2829
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2830
|
+
}, z$1.core.$strip>>;
|
|
2831
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
2832
|
+
url: z$1.ZodString;
|
|
2833
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2834
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2835
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2836
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2837
|
+
}, z$1.core.$strip>>;
|
|
2838
|
+
agent: z$1.ZodOptional<z$1.ZodObject<{
|
|
2839
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
2840
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
2841
|
+
id: z$1.ZodString;
|
|
2842
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
2843
|
+
}, z$1.core.$strip>>;
|
|
2844
|
+
}, z$1.core.$strip>>;
|
|
2845
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
2846
|
+
channel: ChannelType;
|
|
2847
|
+
directory: string;
|
|
2848
|
+
enabled: boolean;
|
|
2849
|
+
port: number;
|
|
2850
|
+
hostname: string;
|
|
2851
|
+
timeout: number;
|
|
2852
|
+
name?: string | undefined;
|
|
2853
|
+
agentId?: string | undefined;
|
|
2854
|
+
stdio?: {
|
|
2855
|
+
command: string;
|
|
2856
|
+
args: string[];
|
|
2857
|
+
} | undefined;
|
|
2858
|
+
http?: {
|
|
2859
|
+
baseUrl: string;
|
|
2860
|
+
timeout: number;
|
|
2861
|
+
} | undefined;
|
|
2862
|
+
ws?: {
|
|
2863
|
+
url: string;
|
|
2864
|
+
timeout: number;
|
|
2865
|
+
batchSize: number;
|
|
2866
|
+
batchInterval: number;
|
|
2867
|
+
heartbeatInterval: number;
|
|
2868
|
+
} | undefined;
|
|
2869
|
+
agent?: {
|
|
2870
|
+
agent?: string | undefined;
|
|
2871
|
+
model?: {
|
|
2872
|
+
id: string;
|
|
2873
|
+
options?: Record<string, unknown> | undefined;
|
|
2874
|
+
} | undefined;
|
|
2875
|
+
} | undefined;
|
|
2876
|
+
}, {
|
|
2877
|
+
directory: string;
|
|
2878
|
+
enabled: boolean;
|
|
2879
|
+
channel: "http" | "websocket" | "stdio";
|
|
2880
|
+
port: number;
|
|
2881
|
+
hostname: string;
|
|
2882
|
+
timeout: number;
|
|
2883
|
+
name?: string | undefined;
|
|
2884
|
+
agentId?: string | undefined;
|
|
2885
|
+
stdio?: {
|
|
2886
|
+
command: string;
|
|
2887
|
+
args: string[];
|
|
2888
|
+
} | undefined;
|
|
2889
|
+
http?: {
|
|
2890
|
+
baseUrl: string;
|
|
2891
|
+
timeout: number;
|
|
2892
|
+
} | undefined;
|
|
2893
|
+
ws?: {
|
|
2894
|
+
url: string;
|
|
2895
|
+
timeout: number;
|
|
2896
|
+
batchSize: number;
|
|
2897
|
+
batchInterval: number;
|
|
2898
|
+
heartbeatInterval: number;
|
|
2899
|
+
} | undefined;
|
|
2900
|
+
agent?: {
|
|
2901
|
+
agent?: string | undefined;
|
|
2902
|
+
model?: {
|
|
2903
|
+
id: string;
|
|
2904
|
+
options?: Record<string, unknown> | undefined;
|
|
2905
|
+
} | undefined;
|
|
2906
|
+
} | undefined;
|
|
2907
|
+
}>>;
|
|
2908
|
+
declare const ACPClientConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
2909
|
+
id: z$1.ZodString;
|
|
2910
|
+
type: z$1.ZodEnum<{
|
|
2911
|
+
custom: "custom";
|
|
2912
|
+
easbot: "easbot";
|
|
2913
|
+
}>;
|
|
2914
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2915
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
2916
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
2917
|
+
http: "http";
|
|
2918
|
+
websocket: "websocket";
|
|
2919
|
+
stdio: "stdio";
|
|
2920
|
+
}>>;
|
|
2921
|
+
connection: z$1.ZodObject<{
|
|
2922
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
2923
|
+
command: z$1.ZodString;
|
|
2924
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
2925
|
+
}, z$1.core.$strip>>;
|
|
2926
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
2927
|
+
baseUrl: z$1.ZodString;
|
|
2928
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2929
|
+
}, z$1.core.$strip>>;
|
|
2930
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
2931
|
+
url: z$1.ZodString;
|
|
2932
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2933
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2934
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2935
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2936
|
+
}, z$1.core.$strip>>;
|
|
2937
|
+
}, z$1.core.$strip>;
|
|
2938
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
2939
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
2940
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
2941
|
+
channel: ChannelType;
|
|
2942
|
+
id: string;
|
|
2943
|
+
type: "custom" | "easbot";
|
|
2944
|
+
connection: {
|
|
2945
|
+
stdio?: {
|
|
2946
|
+
command: string;
|
|
2947
|
+
args: string[];
|
|
2948
|
+
} | undefined;
|
|
2949
|
+
http?: {
|
|
2950
|
+
baseUrl: string;
|
|
2951
|
+
timeout: number;
|
|
2952
|
+
} | undefined;
|
|
2953
|
+
ws?: {
|
|
2954
|
+
url: string;
|
|
2955
|
+
timeout: number;
|
|
2956
|
+
batchSize: number;
|
|
2957
|
+
batchInterval: number;
|
|
2958
|
+
heartbeatInterval: number;
|
|
2959
|
+
} | undefined;
|
|
2960
|
+
};
|
|
2961
|
+
autoConnect: boolean;
|
|
2962
|
+
priority: number;
|
|
2963
|
+
name?: string | undefined;
|
|
2964
|
+
agentId?: string | undefined;
|
|
2965
|
+
}, {
|
|
2966
|
+
id: string;
|
|
2967
|
+
type: "custom" | "easbot";
|
|
2968
|
+
connection: {
|
|
2969
|
+
stdio?: {
|
|
2970
|
+
command: string;
|
|
2971
|
+
args: string[];
|
|
2972
|
+
} | undefined;
|
|
2973
|
+
http?: {
|
|
2974
|
+
baseUrl: string;
|
|
2975
|
+
timeout: number;
|
|
2976
|
+
} | undefined;
|
|
2977
|
+
ws?: {
|
|
2978
|
+
url: string;
|
|
2979
|
+
timeout: number;
|
|
2980
|
+
batchSize: number;
|
|
2981
|
+
batchInterval: number;
|
|
2982
|
+
heartbeatInterval: number;
|
|
2983
|
+
} | undefined;
|
|
2984
|
+
};
|
|
2985
|
+
autoConnect: boolean;
|
|
2986
|
+
priority: number;
|
|
2987
|
+
name?: string | undefined;
|
|
2988
|
+
agentId?: string | undefined;
|
|
2989
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
2990
|
+
}>>;
|
|
2991
|
+
declare const ACPClientsConfigSchema: z$1.ZodObject<{
|
|
2992
|
+
clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
|
|
2993
|
+
id: z$1.ZodString;
|
|
2994
|
+
type: z$1.ZodEnum<{
|
|
2995
|
+
custom: "custom";
|
|
2996
|
+
easbot: "easbot";
|
|
2997
|
+
}>;
|
|
2998
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
2999
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3000
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3001
|
+
http: "http";
|
|
3002
|
+
websocket: "websocket";
|
|
3003
|
+
stdio: "stdio";
|
|
3004
|
+
}>>;
|
|
3005
|
+
connection: z$1.ZodObject<{
|
|
3006
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3007
|
+
command: z$1.ZodString;
|
|
3008
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3009
|
+
}, z$1.core.$strip>>;
|
|
3010
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3011
|
+
baseUrl: z$1.ZodString;
|
|
3012
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3013
|
+
}, z$1.core.$strip>>;
|
|
3014
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3015
|
+
url: z$1.ZodString;
|
|
3016
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3017
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3018
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3019
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3020
|
+
}, z$1.core.$strip>>;
|
|
3021
|
+
}, z$1.core.$strip>;
|
|
3022
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3023
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3024
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3025
|
+
channel: ChannelType;
|
|
3026
|
+
id: string;
|
|
3027
|
+
type: "custom" | "easbot";
|
|
3028
|
+
connection: {
|
|
3029
|
+
stdio?: {
|
|
3030
|
+
command: string;
|
|
3031
|
+
args: string[];
|
|
3032
|
+
} | undefined;
|
|
3033
|
+
http?: {
|
|
3034
|
+
baseUrl: string;
|
|
3035
|
+
timeout: number;
|
|
3036
|
+
} | undefined;
|
|
3037
|
+
ws?: {
|
|
3038
|
+
url: string;
|
|
3039
|
+
timeout: number;
|
|
3040
|
+
batchSize: number;
|
|
3041
|
+
batchInterval: number;
|
|
3042
|
+
heartbeatInterval: number;
|
|
3043
|
+
} | undefined;
|
|
3044
|
+
};
|
|
3045
|
+
autoConnect: boolean;
|
|
3046
|
+
priority: number;
|
|
3047
|
+
name?: string | undefined;
|
|
3048
|
+
agentId?: string | undefined;
|
|
3049
|
+
}, {
|
|
3050
|
+
id: string;
|
|
3051
|
+
type: "custom" | "easbot";
|
|
3052
|
+
connection: {
|
|
3053
|
+
stdio?: {
|
|
3054
|
+
command: string;
|
|
3055
|
+
args: string[];
|
|
3056
|
+
} | undefined;
|
|
3057
|
+
http?: {
|
|
3058
|
+
baseUrl: string;
|
|
3059
|
+
timeout: number;
|
|
3060
|
+
} | undefined;
|
|
3061
|
+
ws?: {
|
|
3062
|
+
url: string;
|
|
3063
|
+
timeout: number;
|
|
3064
|
+
batchSize: number;
|
|
3065
|
+
batchInterval: number;
|
|
3066
|
+
heartbeatInterval: number;
|
|
3067
|
+
} | undefined;
|
|
3068
|
+
};
|
|
3069
|
+
autoConnect: boolean;
|
|
3070
|
+
priority: number;
|
|
3071
|
+
name?: string | undefined;
|
|
3072
|
+
agentId?: string | undefined;
|
|
3073
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
3074
|
+
}>>>;
|
|
3075
|
+
defaultClientId: z$1.ZodOptional<z$1.ZodString>;
|
|
3076
|
+
}, z$1.core.$strip>;
|
|
3077
|
+
declare const ACPInfoACPServerConfigSchema: z$1.ZodObject<{
|
|
3078
|
+
server: z$1.ZodPipe<z$1.ZodObject<{
|
|
3079
|
+
directory: z$1.ZodDefault<z$1.ZodString>;
|
|
3080
|
+
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3081
|
+
channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
|
|
3082
|
+
http: "http";
|
|
3083
|
+
websocket: "websocket";
|
|
3084
|
+
stdio: "stdio";
|
|
3085
|
+
}>>>;
|
|
3086
|
+
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3087
|
+
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
3088
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3089
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3090
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3091
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3092
|
+
command: z$1.ZodString;
|
|
3093
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3094
|
+
}, z$1.core.$strip>>;
|
|
3095
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3096
|
+
baseUrl: z$1.ZodString;
|
|
3097
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3098
|
+
}, z$1.core.$strip>>;
|
|
3099
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3100
|
+
url: z$1.ZodString;
|
|
3101
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3102
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3103
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3104
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3105
|
+
}, z$1.core.$strip>>;
|
|
3106
|
+
agent: z$1.ZodOptional<z$1.ZodObject<{
|
|
3107
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
3108
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
3109
|
+
id: z$1.ZodString;
|
|
3110
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3111
|
+
}, z$1.core.$strip>>;
|
|
3112
|
+
}, z$1.core.$strip>>;
|
|
3113
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3114
|
+
channel: ChannelType;
|
|
3115
|
+
directory: string;
|
|
3116
|
+
enabled: boolean;
|
|
3117
|
+
port: number;
|
|
3118
|
+
hostname: string;
|
|
3119
|
+
timeout: number;
|
|
3120
|
+
name?: string | undefined;
|
|
3121
|
+
agentId?: string | undefined;
|
|
3122
|
+
stdio?: {
|
|
3123
|
+
command: string;
|
|
3124
|
+
args: string[];
|
|
3125
|
+
} | undefined;
|
|
3126
|
+
http?: {
|
|
3127
|
+
baseUrl: string;
|
|
3128
|
+
timeout: number;
|
|
3129
|
+
} | undefined;
|
|
3130
|
+
ws?: {
|
|
3131
|
+
url: string;
|
|
3132
|
+
timeout: number;
|
|
3133
|
+
batchSize: number;
|
|
3134
|
+
batchInterval: number;
|
|
3135
|
+
heartbeatInterval: number;
|
|
3136
|
+
} | undefined;
|
|
3137
|
+
agent?: {
|
|
3138
|
+
agent?: string | undefined;
|
|
3139
|
+
model?: {
|
|
3140
|
+
id: string;
|
|
3141
|
+
options?: Record<string, unknown> | undefined;
|
|
3142
|
+
} | undefined;
|
|
3143
|
+
} | undefined;
|
|
3144
|
+
}, {
|
|
3145
|
+
directory: string;
|
|
3146
|
+
enabled: boolean;
|
|
3147
|
+
channel: "http" | "websocket" | "stdio";
|
|
3148
|
+
port: number;
|
|
3149
|
+
hostname: string;
|
|
3150
|
+
timeout: number;
|
|
3151
|
+
name?: string | undefined;
|
|
3152
|
+
agentId?: string | undefined;
|
|
3153
|
+
stdio?: {
|
|
3154
|
+
command: string;
|
|
3155
|
+
args: string[];
|
|
3156
|
+
} | undefined;
|
|
3157
|
+
http?: {
|
|
3158
|
+
baseUrl: string;
|
|
3159
|
+
timeout: number;
|
|
3160
|
+
} | undefined;
|
|
3161
|
+
ws?: {
|
|
3162
|
+
url: string;
|
|
3163
|
+
timeout: number;
|
|
3164
|
+
batchSize: number;
|
|
3165
|
+
batchInterval: number;
|
|
3166
|
+
heartbeatInterval: number;
|
|
3167
|
+
} | undefined;
|
|
3168
|
+
agent?: {
|
|
3169
|
+
agent?: string | undefined;
|
|
3170
|
+
model?: {
|
|
3171
|
+
id: string;
|
|
3172
|
+
options?: Record<string, unknown> | undefined;
|
|
3173
|
+
} | undefined;
|
|
3174
|
+
} | undefined;
|
|
3175
|
+
}>>;
|
|
3176
|
+
}, z$1.core.$strip>;
|
|
3177
|
+
declare const ACPInfoACPClientsConfigSchema: z$1.ZodObject<{
|
|
3178
|
+
clients: z$1.ZodObject<{
|
|
3179
|
+
clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
|
|
3180
|
+
id: z$1.ZodString;
|
|
3181
|
+
type: z$1.ZodEnum<{
|
|
3182
|
+
custom: "custom";
|
|
3183
|
+
easbot: "easbot";
|
|
3184
|
+
}>;
|
|
3185
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3186
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3187
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3188
|
+
http: "http";
|
|
3189
|
+
websocket: "websocket";
|
|
3190
|
+
stdio: "stdio";
|
|
3191
|
+
}>>;
|
|
3192
|
+
connection: z$1.ZodObject<{
|
|
3193
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3194
|
+
command: z$1.ZodString;
|
|
3195
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3196
|
+
}, z$1.core.$strip>>;
|
|
3197
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3198
|
+
baseUrl: z$1.ZodString;
|
|
3199
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3200
|
+
}, z$1.core.$strip>>;
|
|
3201
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3202
|
+
url: z$1.ZodString;
|
|
3203
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3204
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3205
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3206
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3207
|
+
}, z$1.core.$strip>>;
|
|
3208
|
+
}, z$1.core.$strip>;
|
|
3209
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3210
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3211
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3212
|
+
channel: ChannelType;
|
|
3213
|
+
id: string;
|
|
3214
|
+
type: "custom" | "easbot";
|
|
3215
|
+
connection: {
|
|
3216
|
+
stdio?: {
|
|
3217
|
+
command: string;
|
|
3218
|
+
args: string[];
|
|
3219
|
+
} | undefined;
|
|
3220
|
+
http?: {
|
|
3221
|
+
baseUrl: string;
|
|
3222
|
+
timeout: number;
|
|
3223
|
+
} | undefined;
|
|
3224
|
+
ws?: {
|
|
3225
|
+
url: string;
|
|
3226
|
+
timeout: number;
|
|
3227
|
+
batchSize: number;
|
|
3228
|
+
batchInterval: number;
|
|
3229
|
+
heartbeatInterval: number;
|
|
3230
|
+
} | undefined;
|
|
3231
|
+
};
|
|
3232
|
+
autoConnect: boolean;
|
|
3233
|
+
priority: number;
|
|
3234
|
+
name?: string | undefined;
|
|
3235
|
+
agentId?: string | undefined;
|
|
3236
|
+
}, {
|
|
3237
|
+
id: string;
|
|
3238
|
+
type: "custom" | "easbot";
|
|
3239
|
+
connection: {
|
|
3240
|
+
stdio?: {
|
|
3241
|
+
command: string;
|
|
3242
|
+
args: string[];
|
|
3243
|
+
} | undefined;
|
|
3244
|
+
http?: {
|
|
3245
|
+
baseUrl: string;
|
|
3246
|
+
timeout: number;
|
|
3247
|
+
} | undefined;
|
|
3248
|
+
ws?: {
|
|
3249
|
+
url: string;
|
|
3250
|
+
timeout: number;
|
|
3251
|
+
batchSize: number;
|
|
3252
|
+
batchInterval: number;
|
|
3253
|
+
heartbeatInterval: number;
|
|
3254
|
+
} | undefined;
|
|
3255
|
+
};
|
|
3256
|
+
autoConnect: boolean;
|
|
3257
|
+
priority: number;
|
|
3258
|
+
name?: string | undefined;
|
|
3259
|
+
agentId?: string | undefined;
|
|
3260
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
3261
|
+
}>>>;
|
|
3262
|
+
defaultClientId: z$1.ZodOptional<z$1.ZodString>;
|
|
3263
|
+
}, z$1.core.$strip>;
|
|
3264
|
+
}, z$1.core.$strip>;
|
|
3265
|
+
declare const ACPClientRegisterConfigSchema: z$1.ZodOptional<z$1.ZodObject<{
|
|
3266
|
+
autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3267
|
+
gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
3268
|
+
}, z$1.core.$strip>>;
|
|
3269
|
+
type ACPInfoACPConfigInput = {
|
|
3270
|
+
server: ACPServerConfig;
|
|
3271
|
+
clients?: z$1.infer<typeof ACPClientsConfigSchema>;
|
|
3272
|
+
client?: z$1.infer<typeof ACPClientRegisterConfigSchema>;
|
|
3273
|
+
};
|
|
3274
|
+
declare const ACPInfoACPConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
|
|
3275
|
+
server: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodObject<{
|
|
3276
|
+
directory: z$1.ZodDefault<z$1.ZodString>;
|
|
3277
|
+
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3278
|
+
channel: z$1.ZodDefault<z$1.ZodPreprocess<z$1.ZodEnum<{
|
|
3279
|
+
http: "http";
|
|
3280
|
+
websocket: "websocket";
|
|
3281
|
+
stdio: "stdio";
|
|
3282
|
+
}>>>;
|
|
3283
|
+
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3284
|
+
hostname: z$1.ZodDefault<z$1.ZodString>;
|
|
3285
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3286
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3287
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3288
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3289
|
+
command: z$1.ZodString;
|
|
3290
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3291
|
+
}, z$1.core.$strip>>;
|
|
3292
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3293
|
+
baseUrl: z$1.ZodString;
|
|
3294
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3295
|
+
}, z$1.core.$strip>>;
|
|
3296
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3297
|
+
url: z$1.ZodString;
|
|
3298
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3299
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3300
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3301
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3302
|
+
}, z$1.core.$strip>>;
|
|
3303
|
+
agent: z$1.ZodOptional<z$1.ZodObject<{
|
|
3304
|
+
agent: z$1.ZodOptional<z$1.ZodString>;
|
|
3305
|
+
model: z$1.ZodOptional<z$1.ZodObject<{
|
|
3306
|
+
id: z$1.ZodString;
|
|
3307
|
+
options: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3308
|
+
}, z$1.core.$strip>>;
|
|
3309
|
+
}, z$1.core.$strip>>;
|
|
3310
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3311
|
+
channel: ChannelType;
|
|
3312
|
+
directory: string;
|
|
3313
|
+
enabled: boolean;
|
|
3314
|
+
port: number;
|
|
3315
|
+
hostname: string;
|
|
3316
|
+
timeout: number;
|
|
3317
|
+
name?: string | undefined;
|
|
3318
|
+
agentId?: string | undefined;
|
|
3319
|
+
stdio?: {
|
|
3320
|
+
command: string;
|
|
3321
|
+
args: string[];
|
|
3322
|
+
} | undefined;
|
|
3323
|
+
http?: {
|
|
3324
|
+
baseUrl: string;
|
|
3325
|
+
timeout: number;
|
|
3326
|
+
} | undefined;
|
|
3327
|
+
ws?: {
|
|
3328
|
+
url: string;
|
|
3329
|
+
timeout: number;
|
|
3330
|
+
batchSize: number;
|
|
3331
|
+
batchInterval: number;
|
|
3332
|
+
heartbeatInterval: number;
|
|
3333
|
+
} | undefined;
|
|
3334
|
+
agent?: {
|
|
3335
|
+
agent?: string | undefined;
|
|
3336
|
+
model?: {
|
|
3337
|
+
id: string;
|
|
3338
|
+
options?: Record<string, unknown> | undefined;
|
|
3339
|
+
} | undefined;
|
|
3340
|
+
} | undefined;
|
|
3341
|
+
}, {
|
|
3342
|
+
directory: string;
|
|
3343
|
+
enabled: boolean;
|
|
3344
|
+
channel: "http" | "websocket" | "stdio";
|
|
3345
|
+
port: number;
|
|
3346
|
+
hostname: string;
|
|
3347
|
+
timeout: number;
|
|
3348
|
+
name?: string | undefined;
|
|
3349
|
+
agentId?: string | undefined;
|
|
3350
|
+
stdio?: {
|
|
3351
|
+
command: string;
|
|
3352
|
+
args: string[];
|
|
3353
|
+
} | undefined;
|
|
3354
|
+
http?: {
|
|
3355
|
+
baseUrl: string;
|
|
3356
|
+
timeout: number;
|
|
3357
|
+
} | undefined;
|
|
3358
|
+
ws?: {
|
|
3359
|
+
url: string;
|
|
3360
|
+
timeout: number;
|
|
3361
|
+
batchSize: number;
|
|
3362
|
+
batchInterval: number;
|
|
3363
|
+
heartbeatInterval: number;
|
|
3364
|
+
} | undefined;
|
|
3365
|
+
agent?: {
|
|
3366
|
+
agent?: string | undefined;
|
|
3367
|
+
model?: {
|
|
3368
|
+
id: string;
|
|
3369
|
+
options?: Record<string, unknown> | undefined;
|
|
3370
|
+
} | undefined;
|
|
3371
|
+
} | undefined;
|
|
3372
|
+
}>>>;
|
|
3373
|
+
clients: z$1.ZodOptional<z$1.ZodObject<{
|
|
3374
|
+
clients: z$1.ZodArray<z$1.ZodPipe<z$1.ZodObject<{
|
|
3375
|
+
id: z$1.ZodString;
|
|
3376
|
+
type: z$1.ZodEnum<{
|
|
3377
|
+
custom: "custom";
|
|
3378
|
+
easbot: "easbot";
|
|
3379
|
+
}>;
|
|
3380
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
3381
|
+
agentId: z$1.ZodOptional<z$1.ZodString>;
|
|
3382
|
+
channel: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3383
|
+
http: "http";
|
|
3384
|
+
websocket: "websocket";
|
|
3385
|
+
stdio: "stdio";
|
|
3386
|
+
}>>;
|
|
3387
|
+
connection: z$1.ZodObject<{
|
|
3388
|
+
stdio: z$1.ZodOptional<z$1.ZodObject<{
|
|
3389
|
+
command: z$1.ZodString;
|
|
3390
|
+
args: z$1.ZodArray<z$1.ZodString>;
|
|
3391
|
+
}, z$1.core.$strip>>;
|
|
3392
|
+
http: z$1.ZodOptional<z$1.ZodObject<{
|
|
3393
|
+
baseUrl: z$1.ZodString;
|
|
3394
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3395
|
+
}, z$1.core.$strip>>;
|
|
3396
|
+
ws: z$1.ZodOptional<z$1.ZodObject<{
|
|
3397
|
+
url: z$1.ZodString;
|
|
3398
|
+
timeout: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3399
|
+
batchSize: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3400
|
+
batchInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3401
|
+
heartbeatInterval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3402
|
+
}, z$1.core.$strip>>;
|
|
3403
|
+
}, z$1.core.$strip>;
|
|
3404
|
+
autoConnect: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3405
|
+
priority: z$1.ZodDefault<z$1.ZodNumber>;
|
|
3406
|
+
}, z$1.core.$strip>, z$1.ZodTransform<{
|
|
3407
|
+
channel: ChannelType;
|
|
3408
|
+
id: string;
|
|
3409
|
+
type: "custom" | "easbot";
|
|
3410
|
+
connection: {
|
|
3411
|
+
stdio?: {
|
|
3412
|
+
command: string;
|
|
3413
|
+
args: string[];
|
|
3414
|
+
} | undefined;
|
|
3415
|
+
http?: {
|
|
3416
|
+
baseUrl: string;
|
|
3417
|
+
timeout: number;
|
|
3418
|
+
} | undefined;
|
|
3419
|
+
ws?: {
|
|
3420
|
+
url: string;
|
|
3421
|
+
timeout: number;
|
|
3422
|
+
batchSize: number;
|
|
3423
|
+
batchInterval: number;
|
|
3424
|
+
heartbeatInterval: number;
|
|
3425
|
+
} | undefined;
|
|
3426
|
+
};
|
|
3427
|
+
autoConnect: boolean;
|
|
3428
|
+
priority: number;
|
|
3429
|
+
name?: string | undefined;
|
|
3430
|
+
agentId?: string | undefined;
|
|
3431
|
+
}, {
|
|
3432
|
+
id: string;
|
|
3433
|
+
type: "custom" | "easbot";
|
|
3434
|
+
connection: {
|
|
3435
|
+
stdio?: {
|
|
3436
|
+
command: string;
|
|
3437
|
+
args: string[];
|
|
3438
|
+
} | undefined;
|
|
3439
|
+
http?: {
|
|
3440
|
+
baseUrl: string;
|
|
3441
|
+
timeout: number;
|
|
3442
|
+
} | undefined;
|
|
3443
|
+
ws?: {
|
|
3444
|
+
url: string;
|
|
3445
|
+
timeout: number;
|
|
3446
|
+
batchSize: number;
|
|
3447
|
+
batchInterval: number;
|
|
3448
|
+
heartbeatInterval: number;
|
|
3449
|
+
} | undefined;
|
|
3450
|
+
};
|
|
3451
|
+
autoConnect: boolean;
|
|
3452
|
+
priority: number;
|
|
3453
|
+
name?: string | undefined;
|
|
3454
|
+
agentId?: string | undefined;
|
|
3455
|
+
channel?: "http" | "websocket" | "stdio" | undefined;
|
|
3456
|
+
}>>>;
|
|
3457
|
+
defaultClientId: z$1.ZodOptional<z$1.ZodString>;
|
|
3458
|
+
}, z$1.core.$strip>>;
|
|
3459
|
+
client: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
3460
|
+
autoRegister: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3461
|
+
gatewayUrl: z$1.ZodOptional<z$1.ZodURL>;
|
|
3462
|
+
}, z$1.core.$strip>>>;
|
|
3463
|
+
}, z$1.core.$strip>, z$1.ZodTransform<ACPInfoACPConfigInput, {
|
|
3464
|
+
server?: {
|
|
3465
|
+
channel: ChannelType;
|
|
3466
|
+
directory: string;
|
|
3467
|
+
enabled: boolean;
|
|
3468
|
+
port: number;
|
|
3469
|
+
hostname: string;
|
|
3470
|
+
timeout: number;
|
|
3471
|
+
name?: string | undefined;
|
|
3472
|
+
agentId?: string | undefined;
|
|
3473
|
+
stdio?: {
|
|
3474
|
+
command: string;
|
|
3475
|
+
args: string[];
|
|
3476
|
+
} | undefined;
|
|
3477
|
+
http?: {
|
|
3478
|
+
baseUrl: string;
|
|
3479
|
+
timeout: number;
|
|
3480
|
+
} | undefined;
|
|
3481
|
+
ws?: {
|
|
3482
|
+
url: string;
|
|
3483
|
+
timeout: number;
|
|
3484
|
+
batchSize: number;
|
|
3485
|
+
batchInterval: number;
|
|
3486
|
+
heartbeatInterval: number;
|
|
3487
|
+
} | undefined;
|
|
3488
|
+
agent?: {
|
|
3489
|
+
agent?: string | undefined;
|
|
3490
|
+
model?: {
|
|
3491
|
+
id: string;
|
|
3492
|
+
options?: Record<string, unknown> | undefined;
|
|
3493
|
+
} | undefined;
|
|
3494
|
+
} | undefined;
|
|
3495
|
+
} | undefined;
|
|
3496
|
+
clients?: {
|
|
3497
|
+
clients: {
|
|
3498
|
+
channel: ChannelType;
|
|
3499
|
+
id: string;
|
|
3500
|
+
type: "custom" | "easbot";
|
|
3501
|
+
connection: {
|
|
3502
|
+
stdio?: {
|
|
3503
|
+
command: string;
|
|
3504
|
+
args: string[];
|
|
3505
|
+
} | undefined;
|
|
3506
|
+
http?: {
|
|
3507
|
+
baseUrl: string;
|
|
3508
|
+
timeout: number;
|
|
3509
|
+
} | undefined;
|
|
3510
|
+
ws?: {
|
|
3511
|
+
url: string;
|
|
3512
|
+
timeout: number;
|
|
3513
|
+
batchSize: number;
|
|
3514
|
+
batchInterval: number;
|
|
3515
|
+
heartbeatInterval: number;
|
|
3516
|
+
} | undefined;
|
|
3517
|
+
};
|
|
3518
|
+
autoConnect: boolean;
|
|
3519
|
+
priority: number;
|
|
3520
|
+
name?: string | undefined;
|
|
3521
|
+
agentId?: string | undefined;
|
|
3522
|
+
}[];
|
|
3523
|
+
defaultClientId?: string | undefined;
|
|
3524
|
+
} | undefined;
|
|
3525
|
+
client?: {
|
|
3526
|
+
autoRegister: boolean;
|
|
3527
|
+
gatewayUrl?: string | undefined;
|
|
3528
|
+
} | undefined;
|
|
3529
|
+
}>>;
|
|
3530
|
+
type ACPChannelType = ChannelType;
|
|
3531
|
+
type ACPStdioConnectionConfig = z$1.infer<typeof ACPStdioConnectionConfigSchema>;
|
|
3532
|
+
type ACPHttpConnectionConfig = z$1.infer<typeof ACPHttpConnectionConfigSchema>;
|
|
3533
|
+
type ACPWebSocketConnectionConfig = z$1.infer<typeof ACPWebSocketConnectionConfigSchema>;
|
|
3534
|
+
type ACPConnectionConfig = z$1.infer<typeof ACPConnectionConfigSchema>;
|
|
3535
|
+
type ACPModelConfig = z$1.infer<typeof ACPModelConfigSchema>;
|
|
3536
|
+
type ACPAgentRuntimeConfig = z$1.infer<typeof ACPAgentRuntimeConfigSchema>;
|
|
3537
|
+
type ACPServerConfig = z$1.infer<typeof ACPServerConfigSchema>;
|
|
3538
|
+
type ACPClientConfig = z$1.infer<typeof ACPClientConfigSchema>;
|
|
3539
|
+
type ACPClientsConfig = z$1.infer<typeof ACPClientsConfigSchema>;
|
|
3540
|
+
type ACPInfoACPServerConfig = z$1.infer<typeof ACPInfoACPServerConfigSchema>;
|
|
3541
|
+
type ACPInfoACPClientsConfig = z$1.infer<typeof ACPInfoACPClientsConfigSchema>;
|
|
3542
|
+
type ACPClientRegisterConfig = z$1.infer<typeof ACPClientRegisterConfigSchema>;
|
|
3543
|
+
type ACPInfoACPConfig = ACPInfoACPConfigInput;
|
|
3544
|
+
declare const ACP_DEFAULT_SERVER_CONFIG: ACPServerConfig;
|
|
3545
|
+
declare const ACP_DEFAULT_CLIENT_CONFIG: Partial<ACPClientConfig>;
|
|
3546
|
+
declare function ACPValidateConfig(config: unknown): ACPInfoACPConfig;
|
|
3547
|
+
declare function ACPParsePartialConfig(partial: unknown): ACPInfoACPConfig;
|
|
3548
|
+
|
|
1272
3549
|
type PromptPart = {
|
|
1273
3550
|
type: 'text';
|
|
1274
3551
|
text: string;
|
|
@@ -1280,4 +3557,4 @@ type PromptPart = {
|
|
|
1280
3557
|
mime?: string;
|
|
1281
3558
|
};
|
|
1282
3559
|
|
|
1283
|
-
export { type AgentAction, type AgentAdapter, type AgentCallback, AgentCapability, type AgentCreate, type AgentExecute, type AgentExecutionResult, type AgentInfo, type AgentInput, type AgentMessage, type AgentModel, type AgentPromptPart, type AgentQuery, type AgentResult, type AgentResultMetadata, AgentState, type AgentStatistics, type AgentStatusInfo, type AgentToolCall, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, type ChannelInfo, type ChannelListResponse, type ChannelPluginInfo, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, type CodebaseStatus, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG,
|
|
3560
|
+
export { type ACPAgentRuntimeConfig, ACPAgentRuntimeConfigSchema, type ACPChannelType, type ACPClientConfig, ACPClientConfigSchema, type ACPClientRegisterConfig, ACPClientRegisterConfigSchema, type ACPClientsConfig, ACPClientsConfigSchema, type ACPConnectionConfig, ACPConnectionConfigSchema, type ACPHttpConnectionConfig, ACPHttpConnectionConfigSchema, type ACPInfoACPClientsConfig, ACPInfoACPClientsConfigSchema, type ACPInfoACPConfig, ACPInfoACPConfigSchema, type ACPInfoACPServerConfig, ACPInfoACPServerConfigSchema, type ACPModelConfig, ACPModelConfigSchema, ACPParsePartialConfig, type ACPServerConfig, ACPServerConfigSchema, type ACPStdioConnectionConfig, ACPStdioConnectionConfigSchema, ACPValidateConfig, type ACPWebSocketConnectionConfig, ACPWebSocketConnectionConfigSchema, ACP_DEFAULT_CLIENT_CONFIG, ACP_DEFAULT_SERVER_CONFIG, type AgentAction, type AgentAdapter, type AgentCallback, AgentCapability, type AgentCreate, type AgentDeregisterMessage, type AgentExecute, type AgentExecutionResult, type AgentHealthStatus, type AgentHeartbeat, type AgentHeartbeatSyncMessage, type AgentInfo, type AgentInput, type AgentListRequestMessage, type AgentListResponseMessage, type AgentMessage, type AgentModel, AgentPermissionSchema as AgentPermission, AgentPermissionSchema, type AgentPermissionType, type AgentPromptPart, type AgentQuery, type AgentRegisterMessage, type AgentRegistration, type AgentRegistrationRequest, type AgentRegistryStats, type AgentResult, type AgentResultMetadata, type AgentSelectionOptions, type AgentSelectionRecord, type AgentSelectionStrategy, AgentState, type AgentStatistics, type AgentStatusChangeMessage, type AgentStatusInfo, type AgentSyncConflictResolutionStrategy, type AgentSyncInfo, type AgentSyncMessage, type AgentSyncMode, type AgentSyncPushEventType, type AgentSyncState, type AgentSyncStats, type AgentToolCall, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, Brand, Brand as BrandType, type ChannelInfo, type ChannelListResponse, type ChannelPluginInfo, ChannelType, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, type CodebaseStatus, type ContextMode, ContextModeEnum, ContextModeValues, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, DefaultContextMode, DefaultScope, EMBEDDING_DIMS_CONSISTENCY_CHECK, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type ErrorDetails, type ErrorMessageMode, type ErrorResponse, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayConfig, type GatewayHookHandler, type GatewayMessage, type GatewayMessageDeliveredInput, type GatewayMessagePromptPart, type GatewayMessageReadInput, type GatewayMessageReceiveInput, type GatewayMessageSendInput, type GatewayNodeInfo, type GatewayServerConfig, type GatewaySubscriberType, gateway as GatewayTypes, type GlobalSessionInfo, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IGatewayServer, type IGlobal, type IHookRegistry, type IInstance, type ISubAgentRunner, type ITool, type IndexerConfig, KNOWLEDGE_DOCTOR_PUBLIC_CHECKS, type KnowledgeBackend, type KnowledgeDoctorCheck, type KnowledgeDoctorPublicCheck, type KnowledgeDoctorResult, type KnowledgeIndexState, type KnowledgeIssue, type KnowledgeLlmCapabilities, type KnowledgeLlmStatus, type KnowledgeSearchOptions, type KnowledgeSearchSource, type KnowledgeSeverity, type KnowledgeStatus, type Language, type LlmConfig, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MemoryStatus, type MessageAttachment, type MessageContext, type MessageMetadata, type MessageQuery, type MessageReaction, type MessageSend, MessageSender, type MessageStorage, MessageType$1 as MessageType, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type NoteStatus, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, Permission, PermissionActionSchema as PermissionAction, PermissionActionSchema, type PermissionActionType, PermissionConfigSchema as PermissionConfig, PermissionConfigSchema, type PermissionConfigType, PermissionObjectSchema as PermissionObject, PermissionObjectSchema, type PermissionObjectType, PermissionRuleSchema as PermissionRule, PermissionRuleSchema, type PermissionRuleType, PermissionRulesetSchema as PermissionRuleset, PermissionRulesetSchema, type PermissionRulesetType, PermissionRuntimeRuleSchema as PermissionRuntimeRule, PermissionRuntimeRuleSchema, type PermissionRuntimeRuleType, Permission as PermissionType, type PlatformType, type ProjectCommands, ProjectCommandsSchema, type ProjectIcon, ProjectIconSchema, type ProjectInfo, ProjectInfoSchema, type ProjectTime, ProjectTimeSchema, type PromptPart, Protocol, type RequestOptions, type RerankLlmConfig, type RetryRequest, type RunMode, type Scope, ScopeEnum, ScopeValues, type SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionShareInfo, type SessionStatistics, SessionStatus, Session as SessionTypes, type SessionUpdate, type ShellExpression, type ShellFunction, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentExecuteOptions, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentResult, type SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type ToolContext, type ToolDefinition, type ToolFunction, type TransportType, type UploadFileParams, type UploadFileResult, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, brandEnv, buildToolArgs, createTool, toolSchema };
|