@rizom/brain 0.2.0-alpha.121 → 0.2.0-alpha.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brain.js +731 -731
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +103 -103
- package/dist/plugins.js +45 -45
- package/dist/plugins.js.map +4 -4
- package/dist/site.js +40 -40
- package/dist/site.js.map +5 -5
- package/package.json +1 -1
package/dist/plugins.d.ts
CHANGED
|
@@ -558,11 +558,11 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
558
558
|
kind: z.ZodString;
|
|
559
559
|
id: z.ZodString;
|
|
560
560
|
}, "strip", z.ZodTypeAny, {
|
|
561
|
-
kind: string;
|
|
562
561
|
id: string;
|
|
563
|
-
}, {
|
|
564
562
|
kind: string;
|
|
563
|
+
}, {
|
|
565
564
|
id: string;
|
|
565
|
+
kind: string;
|
|
566
566
|
}>>;
|
|
567
567
|
}, "strip", z.ZodTypeAny, {
|
|
568
568
|
kind: "text";
|
|
@@ -571,8 +571,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
571
571
|
content: string;
|
|
572
572
|
sizeBytes?: number | undefined;
|
|
573
573
|
source?: {
|
|
574
|
-
kind: string;
|
|
575
574
|
id: string;
|
|
575
|
+
kind: string;
|
|
576
576
|
} | undefined;
|
|
577
577
|
}, {
|
|
578
578
|
kind: "text";
|
|
@@ -581,8 +581,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
581
581
|
content: string;
|
|
582
582
|
sizeBytes?: number | undefined;
|
|
583
583
|
source?: {
|
|
584
|
-
kind: string;
|
|
585
584
|
id: string;
|
|
585
|
+
kind: string;
|
|
586
586
|
} | undefined;
|
|
587
587
|
}>, z.ZodObject<{
|
|
588
588
|
kind: z.ZodLiteral<"file">;
|
|
@@ -594,11 +594,11 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
594
594
|
kind: z.ZodString;
|
|
595
595
|
id: z.ZodString;
|
|
596
596
|
}, "strip", z.ZodTypeAny, {
|
|
597
|
-
kind: string;
|
|
598
597
|
id: string;
|
|
599
|
-
}, {
|
|
600
598
|
kind: string;
|
|
599
|
+
}, {
|
|
601
600
|
id: string;
|
|
601
|
+
kind: string;
|
|
602
602
|
}>>;
|
|
603
603
|
}, "strip", z.ZodTypeAny, {
|
|
604
604
|
kind: "file";
|
|
@@ -607,8 +607,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
607
607
|
data: Uint8Array<ArrayBufferLike>;
|
|
608
608
|
sizeBytes?: number | undefined;
|
|
609
609
|
source?: {
|
|
610
|
-
kind: string;
|
|
611
610
|
id: string;
|
|
611
|
+
kind: string;
|
|
612
612
|
} | undefined;
|
|
613
613
|
}, {
|
|
614
614
|
kind: "file";
|
|
@@ -617,8 +617,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
617
617
|
data: Uint8Array<ArrayBufferLike>;
|
|
618
618
|
sizeBytes?: number | undefined;
|
|
619
619
|
source?: {
|
|
620
|
-
kind: string;
|
|
621
620
|
id: string;
|
|
621
|
+
kind: string;
|
|
622
622
|
} | undefined;
|
|
623
623
|
}>]>, "many">>;
|
|
624
624
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -649,8 +649,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
649
649
|
content: string;
|
|
650
650
|
sizeBytes?: number | undefined;
|
|
651
651
|
source?: {
|
|
652
|
-
kind: string;
|
|
653
652
|
id: string;
|
|
653
|
+
kind: string;
|
|
654
654
|
} | undefined;
|
|
655
655
|
} | {
|
|
656
656
|
kind: "file";
|
|
@@ -659,8 +659,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
659
659
|
data: Uint8Array<ArrayBufferLike>;
|
|
660
660
|
sizeBytes?: number | undefined;
|
|
661
661
|
source?: {
|
|
662
|
-
kind: string;
|
|
663
662
|
id: string;
|
|
663
|
+
kind: string;
|
|
664
664
|
} | undefined;
|
|
665
665
|
})[] | undefined;
|
|
666
666
|
}, {
|
|
@@ -691,8 +691,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
691
691
|
content: string;
|
|
692
692
|
sizeBytes?: number | undefined;
|
|
693
693
|
source?: {
|
|
694
|
-
kind: string;
|
|
695
694
|
id: string;
|
|
695
|
+
kind: string;
|
|
696
696
|
} | undefined;
|
|
697
697
|
} | {
|
|
698
698
|
kind: "file";
|
|
@@ -701,8 +701,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
701
701
|
data: Uint8Array<ArrayBufferLike>;
|
|
702
702
|
sizeBytes?: number | undefined;
|
|
703
703
|
source?: {
|
|
704
|
-
kind: string;
|
|
705
704
|
id: string;
|
|
705
|
+
kind: string;
|
|
706
706
|
} | undefined;
|
|
707
707
|
})[] | undefined;
|
|
708
708
|
}>;
|
|
@@ -777,27 +777,27 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
777
777
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
778
778
|
error: z.ZodOptional<z.ZodString>;
|
|
779
779
|
}, "strip", z.ZodTypeAny, {
|
|
780
|
-
kind: "tool-approval";
|
|
781
780
|
id: string;
|
|
781
|
+
kind: "tool-approval";
|
|
782
782
|
toolName: string;
|
|
783
783
|
summary: string;
|
|
784
784
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
785
|
+
error?: string | undefined;
|
|
785
786
|
toolCallId?: string | undefined;
|
|
786
787
|
preview?: string | undefined;
|
|
787
788
|
input?: Record<string, unknown> | undefined;
|
|
788
789
|
output?: unknown;
|
|
789
|
-
error?: string | undefined;
|
|
790
790
|
}, {
|
|
791
|
-
kind: "tool-approval";
|
|
792
791
|
id: string;
|
|
792
|
+
kind: "tool-approval";
|
|
793
793
|
toolName: string;
|
|
794
794
|
summary: string;
|
|
795
795
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
796
|
+
error?: string | undefined;
|
|
796
797
|
toolCallId?: string | undefined;
|
|
797
798
|
preview?: string | undefined;
|
|
798
799
|
input?: Record<string, unknown> | undefined;
|
|
799
800
|
output?: unknown;
|
|
800
|
-
error?: string | undefined;
|
|
801
801
|
}>, z.ZodObject<{
|
|
802
802
|
kind: z.ZodLiteral<"attachment">;
|
|
803
803
|
id: z.ZodString;
|
|
@@ -825,8 +825,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
825
825
|
attachmentType?: string | undefined;
|
|
826
826
|
}>>;
|
|
827
827
|
}, "strip", z.ZodTypeAny, {
|
|
828
|
-
mediaType: string;
|
|
829
828
|
url: string;
|
|
829
|
+
mediaType: string;
|
|
830
830
|
filename?: string | undefined;
|
|
831
831
|
sizeBytes?: number | undefined;
|
|
832
832
|
source?: {
|
|
@@ -837,8 +837,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
837
837
|
downloadUrl?: string | undefined;
|
|
838
838
|
previewUrl?: string | undefined;
|
|
839
839
|
}, {
|
|
840
|
-
mediaType: string;
|
|
841
840
|
url: string;
|
|
841
|
+
mediaType: string;
|
|
842
842
|
filename?: string | undefined;
|
|
843
843
|
sizeBytes?: number | undefined;
|
|
844
844
|
source?: {
|
|
@@ -850,11 +850,11 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
850
850
|
previewUrl?: string | undefined;
|
|
851
851
|
}>;
|
|
852
852
|
}, "strip", z.ZodTypeAny, {
|
|
853
|
-
kind: "attachment";
|
|
854
853
|
id: string;
|
|
854
|
+
kind: "attachment";
|
|
855
855
|
attachment: {
|
|
856
|
-
mediaType: string;
|
|
857
856
|
url: string;
|
|
857
|
+
mediaType: string;
|
|
858
858
|
filename?: string | undefined;
|
|
859
859
|
sizeBytes?: number | undefined;
|
|
860
860
|
source?: {
|
|
@@ -866,14 +866,14 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
866
866
|
previewUrl?: string | undefined;
|
|
867
867
|
};
|
|
868
868
|
title: string;
|
|
869
|
-
jobId?: string | undefined;
|
|
870
869
|
description?: string | undefined;
|
|
870
|
+
jobId?: string | undefined;
|
|
871
871
|
}, {
|
|
872
|
-
kind: "attachment";
|
|
873
872
|
id: string;
|
|
873
|
+
kind: "attachment";
|
|
874
874
|
attachment: {
|
|
875
|
-
mediaType: string;
|
|
876
875
|
url: string;
|
|
876
|
+
mediaType: string;
|
|
877
877
|
filename?: string | undefined;
|
|
878
878
|
sizeBytes?: number | undefined;
|
|
879
879
|
source?: {
|
|
@@ -885,8 +885,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
885
885
|
previewUrl?: string | undefined;
|
|
886
886
|
};
|
|
887
887
|
title: string;
|
|
888
|
-
jobId?: string | undefined;
|
|
889
888
|
description?: string | undefined;
|
|
889
|
+
jobId?: string | undefined;
|
|
890
890
|
}>, z.ZodObject<{
|
|
891
891
|
kind: z.ZodLiteral<"sources">;
|
|
892
892
|
id: z.ZodString;
|
|
@@ -904,8 +904,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
904
904
|
id: string;
|
|
905
905
|
source: string;
|
|
906
906
|
entityType?: string | undefined;
|
|
907
|
-
entityId?: string | undefined;
|
|
908
907
|
url?: string | undefined;
|
|
908
|
+
entityId?: string | undefined;
|
|
909
909
|
title?: string | undefined;
|
|
910
910
|
excerpt?: string | undefined;
|
|
911
911
|
provenance?: Record<string, unknown> | undefined;
|
|
@@ -913,35 +913,35 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
913
913
|
id: string;
|
|
914
914
|
source: string;
|
|
915
915
|
entityType?: string | undefined;
|
|
916
|
-
entityId?: string | undefined;
|
|
917
916
|
url?: string | undefined;
|
|
917
|
+
entityId?: string | undefined;
|
|
918
918
|
title?: string | undefined;
|
|
919
919
|
excerpt?: string | undefined;
|
|
920
920
|
provenance?: Record<string, unknown> | undefined;
|
|
921
921
|
}>, "many">;
|
|
922
922
|
}, "strip", z.ZodTypeAny, {
|
|
923
|
-
kind: "sources";
|
|
924
923
|
id: string;
|
|
924
|
+
kind: "sources";
|
|
925
925
|
sources: {
|
|
926
926
|
id: string;
|
|
927
927
|
source: string;
|
|
928
928
|
entityType?: string | undefined;
|
|
929
|
-
entityId?: string | undefined;
|
|
930
929
|
url?: string | undefined;
|
|
930
|
+
entityId?: string | undefined;
|
|
931
931
|
title?: string | undefined;
|
|
932
932
|
excerpt?: string | undefined;
|
|
933
933
|
provenance?: Record<string, unknown> | undefined;
|
|
934
934
|
}[];
|
|
935
935
|
title?: string | undefined;
|
|
936
936
|
}, {
|
|
937
|
-
kind: "sources";
|
|
938
937
|
id: string;
|
|
938
|
+
kind: "sources";
|
|
939
939
|
sources: {
|
|
940
940
|
id: string;
|
|
941
941
|
source: string;
|
|
942
942
|
entityType?: string | undefined;
|
|
943
|
-
entityId?: string | undefined;
|
|
944
943
|
url?: string | undefined;
|
|
944
|
+
entityId?: string | undefined;
|
|
945
945
|
title?: string | undefined;
|
|
946
946
|
excerpt?: string | undefined;
|
|
947
947
|
provenance?: Record<string, unknown> | undefined;
|
|
@@ -959,16 +959,16 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
959
959
|
prompt: z.ZodString;
|
|
960
960
|
description: z.ZodOptional<z.ZodString>;
|
|
961
961
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
id: string;
|
|
963
962
|
type: "prompt";
|
|
964
|
-
prompt: string;
|
|
965
963
|
label: string;
|
|
964
|
+
id: string;
|
|
965
|
+
prompt: string;
|
|
966
966
|
description?: string | undefined;
|
|
967
967
|
}, {
|
|
968
|
-
id: string;
|
|
969
968
|
type: "prompt";
|
|
970
|
-
prompt: string;
|
|
971
969
|
label: string;
|
|
970
|
+
id: string;
|
|
971
|
+
prompt: string;
|
|
972
972
|
description?: string | undefined;
|
|
973
973
|
}>, z.ZodObject<{
|
|
974
974
|
type: z.ZodLiteral<"event">;
|
|
@@ -977,49 +977,49 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
977
977
|
event: z.ZodString;
|
|
978
978
|
description: z.ZodOptional<z.ZodString>;
|
|
979
979
|
}, "strip", z.ZodTypeAny, {
|
|
980
|
-
id: string;
|
|
981
980
|
type: "event";
|
|
982
981
|
label: string;
|
|
982
|
+
id: string;
|
|
983
983
|
event: string;
|
|
984
984
|
description?: string | undefined;
|
|
985
985
|
}, {
|
|
986
|
-
id: string;
|
|
987
986
|
type: "event";
|
|
988
987
|
label: string;
|
|
988
|
+
id: string;
|
|
989
989
|
event: string;
|
|
990
990
|
description?: string | undefined;
|
|
991
991
|
}>]>, "many">;
|
|
992
992
|
}, "strip", z.ZodTypeAny, {
|
|
993
|
-
kind: "actions";
|
|
994
993
|
id: string;
|
|
994
|
+
kind: "actions";
|
|
995
995
|
actions: ({
|
|
996
|
-
id: string;
|
|
997
996
|
type: "prompt";
|
|
998
|
-
prompt: string;
|
|
999
997
|
label: string;
|
|
998
|
+
id: string;
|
|
999
|
+
prompt: string;
|
|
1000
1000
|
description?: string | undefined;
|
|
1001
1001
|
} | {
|
|
1002
|
-
id: string;
|
|
1003
1002
|
type: "event";
|
|
1004
1003
|
label: string;
|
|
1004
|
+
id: string;
|
|
1005
1005
|
event: string;
|
|
1006
1006
|
description?: string | undefined;
|
|
1007
1007
|
})[];
|
|
1008
1008
|
title?: string | undefined;
|
|
1009
1009
|
defaultOpen?: boolean | undefined;
|
|
1010
1010
|
}, {
|
|
1011
|
-
kind: "actions";
|
|
1012
1011
|
id: string;
|
|
1012
|
+
kind: "actions";
|
|
1013
1013
|
actions: ({
|
|
1014
|
-
id: string;
|
|
1015
1014
|
type: "prompt";
|
|
1016
|
-
prompt: string;
|
|
1017
1015
|
label: string;
|
|
1016
|
+
id: string;
|
|
1017
|
+
prompt: string;
|
|
1018
1018
|
description?: string | undefined;
|
|
1019
1019
|
} | {
|
|
1020
|
-
id: string;
|
|
1021
1020
|
type: "event";
|
|
1022
1021
|
label: string;
|
|
1022
|
+
id: string;
|
|
1023
1023
|
event: string;
|
|
1024
1024
|
description?: string | undefined;
|
|
1025
1025
|
})[];
|
|
@@ -1075,22 +1075,22 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1075
1075
|
jobId?: string | undefined;
|
|
1076
1076
|
}[] | undefined;
|
|
1077
1077
|
cards?: ({
|
|
1078
|
-
kind: "tool-approval";
|
|
1079
1078
|
id: string;
|
|
1079
|
+
kind: "tool-approval";
|
|
1080
1080
|
toolName: string;
|
|
1081
1081
|
summary: string;
|
|
1082
1082
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
1083
|
+
error?: string | undefined;
|
|
1083
1084
|
toolCallId?: string | undefined;
|
|
1084
1085
|
preview?: string | undefined;
|
|
1085
1086
|
input?: Record<string, unknown> | undefined;
|
|
1086
1087
|
output?: unknown;
|
|
1087
|
-
error?: string | undefined;
|
|
1088
1088
|
} | {
|
|
1089
|
-
kind: "attachment";
|
|
1090
1089
|
id: string;
|
|
1090
|
+
kind: "attachment";
|
|
1091
1091
|
attachment: {
|
|
1092
|
-
mediaType: string;
|
|
1093
1092
|
url: string;
|
|
1093
|
+
mediaType: string;
|
|
1094
1094
|
filename?: string | undefined;
|
|
1095
1095
|
sizeBytes?: number | undefined;
|
|
1096
1096
|
source?: {
|
|
@@ -1102,35 +1102,35 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1102
1102
|
previewUrl?: string | undefined;
|
|
1103
1103
|
};
|
|
1104
1104
|
title: string;
|
|
1105
|
-
jobId?: string | undefined;
|
|
1106
1105
|
description?: string | undefined;
|
|
1106
|
+
jobId?: string | undefined;
|
|
1107
1107
|
} | {
|
|
1108
|
-
kind: "sources";
|
|
1109
1108
|
id: string;
|
|
1109
|
+
kind: "sources";
|
|
1110
1110
|
sources: {
|
|
1111
1111
|
id: string;
|
|
1112
1112
|
source: string;
|
|
1113
1113
|
entityType?: string | undefined;
|
|
1114
|
-
entityId?: string | undefined;
|
|
1115
1114
|
url?: string | undefined;
|
|
1115
|
+
entityId?: string | undefined;
|
|
1116
1116
|
title?: string | undefined;
|
|
1117
1117
|
excerpt?: string | undefined;
|
|
1118
1118
|
provenance?: Record<string, unknown> | undefined;
|
|
1119
1119
|
}[];
|
|
1120
1120
|
title?: string | undefined;
|
|
1121
1121
|
} | {
|
|
1122
|
-
kind: "actions";
|
|
1123
1122
|
id: string;
|
|
1123
|
+
kind: "actions";
|
|
1124
1124
|
actions: ({
|
|
1125
|
-
id: string;
|
|
1126
1125
|
type: "prompt";
|
|
1127
|
-
prompt: string;
|
|
1128
1126
|
label: string;
|
|
1127
|
+
id: string;
|
|
1128
|
+
prompt: string;
|
|
1129
1129
|
description?: string | undefined;
|
|
1130
1130
|
} | {
|
|
1131
|
-
id: string;
|
|
1132
1131
|
type: "event";
|
|
1133
1132
|
label: string;
|
|
1133
|
+
id: string;
|
|
1134
1134
|
event: string;
|
|
1135
1135
|
description?: string | undefined;
|
|
1136
1136
|
})[];
|
|
@@ -1159,22 +1159,22 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1159
1159
|
jobId?: string | undefined;
|
|
1160
1160
|
}[] | undefined;
|
|
1161
1161
|
cards?: ({
|
|
1162
|
-
kind: "tool-approval";
|
|
1163
1162
|
id: string;
|
|
1163
|
+
kind: "tool-approval";
|
|
1164
1164
|
toolName: string;
|
|
1165
1165
|
summary: string;
|
|
1166
1166
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
1167
|
+
error?: string | undefined;
|
|
1167
1168
|
toolCallId?: string | undefined;
|
|
1168
1169
|
preview?: string | undefined;
|
|
1169
1170
|
input?: Record<string, unknown> | undefined;
|
|
1170
1171
|
output?: unknown;
|
|
1171
|
-
error?: string | undefined;
|
|
1172
1172
|
} | {
|
|
1173
|
-
kind: "attachment";
|
|
1174
1173
|
id: string;
|
|
1174
|
+
kind: "attachment";
|
|
1175
1175
|
attachment: {
|
|
1176
|
-
mediaType: string;
|
|
1177
1176
|
url: string;
|
|
1177
|
+
mediaType: string;
|
|
1178
1178
|
filename?: string | undefined;
|
|
1179
1179
|
sizeBytes?: number | undefined;
|
|
1180
1180
|
source?: {
|
|
@@ -1186,35 +1186,35 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1186
1186
|
previewUrl?: string | undefined;
|
|
1187
1187
|
};
|
|
1188
1188
|
title: string;
|
|
1189
|
-
jobId?: string | undefined;
|
|
1190
1189
|
description?: string | undefined;
|
|
1190
|
+
jobId?: string | undefined;
|
|
1191
1191
|
} | {
|
|
1192
|
-
kind: "sources";
|
|
1193
1192
|
id: string;
|
|
1193
|
+
kind: "sources";
|
|
1194
1194
|
sources: {
|
|
1195
1195
|
id: string;
|
|
1196
1196
|
source: string;
|
|
1197
1197
|
entityType?: string | undefined;
|
|
1198
|
-
entityId?: string | undefined;
|
|
1199
1198
|
url?: string | undefined;
|
|
1199
|
+
entityId?: string | undefined;
|
|
1200
1200
|
title?: string | undefined;
|
|
1201
1201
|
excerpt?: string | undefined;
|
|
1202
1202
|
provenance?: Record<string, unknown> | undefined;
|
|
1203
1203
|
}[];
|
|
1204
1204
|
title?: string | undefined;
|
|
1205
1205
|
} | {
|
|
1206
|
-
kind: "actions";
|
|
1207
1206
|
id: string;
|
|
1207
|
+
kind: "actions";
|
|
1208
1208
|
actions: ({
|
|
1209
|
-
id: string;
|
|
1210
1209
|
type: "prompt";
|
|
1211
|
-
prompt: string;
|
|
1212
1210
|
label: string;
|
|
1211
|
+
id: string;
|
|
1212
|
+
prompt: string;
|
|
1213
1213
|
description?: string | undefined;
|
|
1214
1214
|
} | {
|
|
1215
|
-
id: string;
|
|
1216
1215
|
type: "event";
|
|
1217
1216
|
label: string;
|
|
1217
|
+
id: string;
|
|
1218
1218
|
event: string;
|
|
1219
1219
|
description?: string | undefined;
|
|
1220
1220
|
})[];
|
|
@@ -1233,7 +1233,7 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1233
1233
|
type AgentResponse = z.infer<typeof AgentResponseSchema>;
|
|
1234
1234
|
interface AgentNamespace {
|
|
1235
1235
|
chat(message: string, conversationId: string, context?: ChatContext): Promise<AgentResponse>;
|
|
1236
|
-
confirmPendingAction(conversationId: string, confirmed: boolean, approvalId: string): Promise<AgentResponse>;
|
|
1236
|
+
confirmPendingAction(conversationId: string, confirmed: boolean, approvalId: string, context: ChatContext): Promise<AgentResponse>;
|
|
1237
1237
|
invalidate(): void;
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
@@ -1273,12 +1273,12 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1273
1273
|
lastCheck: z.ZodOptional<z.ZodString>;
|
|
1274
1274
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1275
1275
|
}, "strip", z.ZodTypeAny, {
|
|
1276
|
-
status: "unknown" | "
|
|
1276
|
+
status: "unknown" | "healthy" | "warning" | "error";
|
|
1277
1277
|
message?: string | undefined;
|
|
1278
1278
|
lastCheck?: string | undefined;
|
|
1279
1279
|
details?: Record<string, unknown> | undefined;
|
|
1280
1280
|
}, {
|
|
1281
|
-
status: "unknown" | "
|
|
1281
|
+
status: "unknown" | "healthy" | "warning" | "error";
|
|
1282
1282
|
message?: string | undefined;
|
|
1283
1283
|
lastCheck?: string | undefined;
|
|
1284
1284
|
details?: Record<string, unknown> | undefined;
|
|
@@ -1288,7 +1288,7 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1288
1288
|
name: string;
|
|
1289
1289
|
pluginId: string;
|
|
1290
1290
|
health?: {
|
|
1291
|
-
status: "unknown" | "
|
|
1291
|
+
status: "unknown" | "healthy" | "warning" | "error";
|
|
1292
1292
|
message?: string | undefined;
|
|
1293
1293
|
lastCheck?: string | undefined;
|
|
1294
1294
|
details?: Record<string, unknown> | undefined;
|
|
@@ -1298,7 +1298,7 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1298
1298
|
name: string;
|
|
1299
1299
|
pluginId: string;
|
|
1300
1300
|
health?: {
|
|
1301
|
-
status: "unknown" | "
|
|
1301
|
+
status: "unknown" | "healthy" | "warning" | "error";
|
|
1302
1302
|
message?: string | undefined;
|
|
1303
1303
|
lastCheck?: string | undefined;
|
|
1304
1304
|
details?: Record<string, unknown> | undefined;
|
|
@@ -1311,15 +1311,15 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1311
1311
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
1312
1312
|
visibility: z.ZodDefault<z.ZodEnum<["anchor", "trusted", "public"]>>;
|
|
1313
1313
|
}, "strip", z.ZodTypeAny, {
|
|
1314
|
-
url: string;
|
|
1315
|
-
label: string;
|
|
1316
1314
|
pluginId: string;
|
|
1315
|
+
label: string;
|
|
1316
|
+
url: string;
|
|
1317
1317
|
priority: number;
|
|
1318
1318
|
visibility: "anchor" | "trusted" | "public";
|
|
1319
1319
|
}, {
|
|
1320
|
-
url: string;
|
|
1321
|
-
label: string;
|
|
1322
1320
|
pluginId: string;
|
|
1321
|
+
label: string;
|
|
1322
|
+
url: string;
|
|
1323
1323
|
priority?: number | undefined;
|
|
1324
1324
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1325
1325
|
}>, "many">;
|
|
@@ -1334,25 +1334,25 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1334
1334
|
visibility: z.ZodDefault<z.ZodEnum<["anchor", "trusted", "public"]>>;
|
|
1335
1335
|
status: z.ZodDefault<z.ZodEnum<["available", "coming-soon", "disabled"]>>;
|
|
1336
1336
|
}, "strip", z.ZodTypeAny, {
|
|
1337
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1338
|
-
id: string;
|
|
1339
1337
|
status: "available" | "coming-soon" | "disabled";
|
|
1340
|
-
label: string;
|
|
1341
1338
|
pluginId: string;
|
|
1339
|
+
label: string;
|
|
1342
1340
|
priority: number;
|
|
1343
1341
|
visibility: "anchor" | "trusted" | "public";
|
|
1342
|
+
id: string;
|
|
1344
1343
|
href: string;
|
|
1344
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1345
1345
|
description?: string | undefined;
|
|
1346
1346
|
}, {
|
|
1347
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1348
|
-
id: string;
|
|
1349
|
-
label: string;
|
|
1350
1347
|
pluginId: string;
|
|
1348
|
+
label: string;
|
|
1349
|
+
id: string;
|
|
1351
1350
|
href: string;
|
|
1351
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1352
1352
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
1353
|
-
description?: string | undefined;
|
|
1354
1353
|
priority?: number | undefined;
|
|
1355
1354
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1355
|
+
description?: string | undefined;
|
|
1356
1356
|
}>, "many">;
|
|
1357
1357
|
}, "strip", z.ZodTypeAny, {
|
|
1358
1358
|
model: string;
|
|
@@ -1373,28 +1373,28 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1373
1373
|
name: string;
|
|
1374
1374
|
pluginId: string;
|
|
1375
1375
|
health?: {
|
|
1376
|
-
status: "unknown" | "
|
|
1376
|
+
status: "unknown" | "healthy" | "warning" | "error";
|
|
1377
1377
|
message?: string | undefined;
|
|
1378
1378
|
lastCheck?: string | undefined;
|
|
1379
1379
|
details?: Record<string, unknown> | undefined;
|
|
1380
1380
|
} | undefined;
|
|
1381
1381
|
}[];
|
|
1382
1382
|
endpoints: {
|
|
1383
|
-
url: string;
|
|
1384
|
-
label: string;
|
|
1385
1383
|
pluginId: string;
|
|
1384
|
+
label: string;
|
|
1385
|
+
url: string;
|
|
1386
1386
|
priority: number;
|
|
1387
1387
|
visibility: "anchor" | "trusted" | "public";
|
|
1388
1388
|
}[];
|
|
1389
1389
|
interactions: {
|
|
1390
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1391
|
-
id: string;
|
|
1392
1390
|
status: "available" | "coming-soon" | "disabled";
|
|
1393
|
-
label: string;
|
|
1394
1391
|
pluginId: string;
|
|
1392
|
+
label: string;
|
|
1395
1393
|
priority: number;
|
|
1396
1394
|
visibility: "anchor" | "trusted" | "public";
|
|
1395
|
+
id: string;
|
|
1397
1396
|
href: string;
|
|
1397
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1398
1398
|
description?: string | undefined;
|
|
1399
1399
|
}[];
|
|
1400
1400
|
}, {
|
|
@@ -1416,29 +1416,29 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1416
1416
|
name: string;
|
|
1417
1417
|
pluginId: string;
|
|
1418
1418
|
health?: {
|
|
1419
|
-
status: "unknown" | "
|
|
1419
|
+
status: "unknown" | "healthy" | "warning" | "error";
|
|
1420
1420
|
message?: string | undefined;
|
|
1421
1421
|
lastCheck?: string | undefined;
|
|
1422
1422
|
details?: Record<string, unknown> | undefined;
|
|
1423
1423
|
} | undefined;
|
|
1424
1424
|
}[];
|
|
1425
1425
|
endpoints: {
|
|
1426
|
-
url: string;
|
|
1427
|
-
label: string;
|
|
1428
1426
|
pluginId: string;
|
|
1427
|
+
label: string;
|
|
1428
|
+
url: string;
|
|
1429
1429
|
priority?: number | undefined;
|
|
1430
1430
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1431
1431
|
}[];
|
|
1432
1432
|
interactions: {
|
|
1433
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1434
|
-
id: string;
|
|
1435
|
-
label: string;
|
|
1436
1433
|
pluginId: string;
|
|
1434
|
+
label: string;
|
|
1435
|
+
id: string;
|
|
1437
1436
|
href: string;
|
|
1437
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1438
1438
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
1439
|
-
description?: string | undefined;
|
|
1440
1439
|
priority?: number | undefined;
|
|
1441
1440
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1441
|
+
description?: string | undefined;
|
|
1442
1442
|
}[];
|
|
1443
1443
|
}>;
|
|
1444
1444
|
type AppInfo = z.infer<typeof AppInfoSchema>;
|
|
@@ -1509,13 +1509,13 @@ declare const BrainCharacterSchema: z.ZodObject<{
|
|
|
1509
1509
|
values: z.ZodArray<z.ZodString, "many">;
|
|
1510
1510
|
}, "strip", z.ZodTypeAny, {
|
|
1511
1511
|
values: string[];
|
|
1512
|
-
role: string;
|
|
1513
1512
|
name: string;
|
|
1513
|
+
role: string;
|
|
1514
1514
|
purpose: string;
|
|
1515
1515
|
}, {
|
|
1516
1516
|
values: string[];
|
|
1517
|
-
role: string;
|
|
1518
1517
|
name: string;
|
|
1518
|
+
role: string;
|
|
1519
1519
|
purpose: string;
|
|
1520
1520
|
}>;
|
|
1521
1521
|
type BrainCharacter = z.infer<typeof BrainCharacterSchema>;
|
|
@@ -1541,8 +1541,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
|
|
|
1541
1541
|
label?: string | undefined;
|
|
1542
1542
|
}>, "many">>;
|
|
1543
1543
|
}, "strip", z.ZodTypeAny, {
|
|
1544
|
-
kind: "professional" | "team" | "collective";
|
|
1545
1544
|
name: string;
|
|
1545
|
+
kind: "professional" | "team" | "collective";
|
|
1546
1546
|
description?: string | undefined;
|
|
1547
1547
|
organization?: string | undefined;
|
|
1548
1548
|
avatar?: string | undefined;
|
|
@@ -1554,8 +1554,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
|
|
|
1554
1554
|
label?: string | undefined;
|
|
1555
1555
|
}[] | undefined;
|
|
1556
1556
|
}, {
|
|
1557
|
-
kind: "professional" | "team" | "collective";
|
|
1558
1557
|
name: string;
|
|
1558
|
+
kind: "professional" | "team" | "collective";
|
|
1559
1559
|
description?: string | undefined;
|
|
1560
1560
|
organization?: string | undefined;
|
|
1561
1561
|
avatar?: string | undefined;
|
|
@@ -1585,12 +1585,12 @@ declare const MessageResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1585
1585
|
error: z.ZodOptional<z.ZodString>;
|
|
1586
1586
|
}, "strip", z.ZodTypeAny, {
|
|
1587
1587
|
success: boolean;
|
|
1588
|
-
data?: unknown;
|
|
1589
1588
|
error?: string | undefined;
|
|
1589
|
+
data?: unknown;
|
|
1590
1590
|
}, {
|
|
1591
1591
|
success: boolean;
|
|
1592
|
-
data?: unknown;
|
|
1593
1592
|
error?: string | undefined;
|
|
1593
|
+
data?: unknown;
|
|
1594
1594
|
}>, z.ZodObject<{
|
|
1595
1595
|
noop: z.ZodLiteral<true>;
|
|
1596
1596
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1614,15 +1614,15 @@ declare const BaseMessageSchema: z.ZodObject<{
|
|
|
1614
1614
|
target: z.ZodOptional<z.ZodString>;
|
|
1615
1615
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1616
1616
|
}, "strip", z.ZodTypeAny, {
|
|
1617
|
-
id: string;
|
|
1618
1617
|
type: string;
|
|
1618
|
+
id: string;
|
|
1619
1619
|
source: string;
|
|
1620
1620
|
timestamp: string;
|
|
1621
1621
|
metadata?: Record<string, unknown> | undefined;
|
|
1622
1622
|
target?: string | undefined;
|
|
1623
1623
|
}, {
|
|
1624
|
-
id: string;
|
|
1625
1624
|
type: string;
|
|
1625
|
+
id: string;
|
|
1626
1626
|
source: string;
|
|
1627
1627
|
timestamp: string;
|
|
1628
1628
|
metadata?: Record<string, unknown> | undefined;
|