@rizom/brain 0.2.0-alpha.123 → 0.2.0-alpha.124
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 +933 -926
- package/dist/entities.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/migrations/runtime-state/0000_tidy_jackal.sql +10 -0
- package/dist/migrations/runtime-state/meta/0000_snapshot.json +74 -0
- package/dist/migrations/runtime-state/meta/_journal.json +13 -0
- package/dist/plugins.d.ts +114 -102
- package/dist/plugins.js +2 -2
- package/dist/plugins.js.map +6 -6
- package/dist/services.js.map +1 -1
- package/dist/site.js +127 -127
- package/dist/site.js.map +11 -11
- package/package.json +1 -1
package/dist/plugins.d.ts
CHANGED
|
@@ -253,6 +253,16 @@ type CreateInterceptionResult = {
|
|
|
253
253
|
input: CreateInput;
|
|
254
254
|
};
|
|
255
255
|
type CreateInterceptor = (input: CreateInput, executionContext: CreateExecutionContext) => Promise<CreateInterceptionResult>;
|
|
256
|
+
interface UploadSaveInput {
|
|
257
|
+
upload: CreateFromUploadInput;
|
|
258
|
+
title?: string;
|
|
259
|
+
}
|
|
260
|
+
type UploadSaveHandler = (input: UploadSaveInput, executionContext: CreateExecutionContext) => Promise<CreateResult>;
|
|
261
|
+
interface UploadSaveHandlerRegistration {
|
|
262
|
+
entityType: string;
|
|
263
|
+
mediaTypes: string[];
|
|
264
|
+
handler: UploadSaveHandler;
|
|
265
|
+
}
|
|
256
266
|
/**
|
|
257
267
|
* Interface for entity adapter - handles conversion between entities and markdown
|
|
258
268
|
* following the hybrid storage model
|
|
@@ -460,6 +470,8 @@ interface IEntitiesNamespace {
|
|
|
460
470
|
registerDataSource(dataSource: DataSource): void;
|
|
461
471
|
/** Register a create interceptor for this plugin's entity type */
|
|
462
472
|
registerCreateInterceptor(entityType: string, interceptor: CreateInterceptor): void;
|
|
473
|
+
/** Register a raw-upload durable save handler for this plugin's entity type */
|
|
474
|
+
registerUploadSaveHandler(registration: UploadSaveHandlerRegistration): void;
|
|
463
475
|
}
|
|
464
476
|
interface EntityService extends ICoreEntityService {
|
|
465
477
|
createEntity<T extends BaseEntity>(request: CreateEntityRequest<T>): Promise<EntityMutationResult>;
|
|
@@ -558,11 +570,11 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
558
570
|
kind: z.ZodString;
|
|
559
571
|
id: z.ZodString;
|
|
560
572
|
}, "strip", z.ZodTypeAny, {
|
|
561
|
-
id: string;
|
|
562
573
|
kind: string;
|
|
563
|
-
}, {
|
|
564
574
|
id: string;
|
|
575
|
+
}, {
|
|
565
576
|
kind: string;
|
|
577
|
+
id: string;
|
|
566
578
|
}>>;
|
|
567
579
|
}, "strip", z.ZodTypeAny, {
|
|
568
580
|
kind: "text";
|
|
@@ -571,8 +583,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
571
583
|
content: string;
|
|
572
584
|
sizeBytes?: number | undefined;
|
|
573
585
|
source?: {
|
|
574
|
-
id: string;
|
|
575
586
|
kind: string;
|
|
587
|
+
id: string;
|
|
576
588
|
} | undefined;
|
|
577
589
|
}, {
|
|
578
590
|
kind: "text";
|
|
@@ -581,8 +593,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
581
593
|
content: string;
|
|
582
594
|
sizeBytes?: number | undefined;
|
|
583
595
|
source?: {
|
|
584
|
-
id: string;
|
|
585
596
|
kind: string;
|
|
597
|
+
id: string;
|
|
586
598
|
} | undefined;
|
|
587
599
|
}>, z.ZodObject<{
|
|
588
600
|
kind: z.ZodLiteral<"file">;
|
|
@@ -594,11 +606,11 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
594
606
|
kind: z.ZodString;
|
|
595
607
|
id: z.ZodString;
|
|
596
608
|
}, "strip", z.ZodTypeAny, {
|
|
597
|
-
id: string;
|
|
598
609
|
kind: string;
|
|
599
|
-
}, {
|
|
600
610
|
id: string;
|
|
611
|
+
}, {
|
|
601
612
|
kind: string;
|
|
613
|
+
id: string;
|
|
602
614
|
}>>;
|
|
603
615
|
}, "strip", z.ZodTypeAny, {
|
|
604
616
|
kind: "file";
|
|
@@ -607,8 +619,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
607
619
|
data: Uint8Array<ArrayBufferLike>;
|
|
608
620
|
sizeBytes?: number | undefined;
|
|
609
621
|
source?: {
|
|
610
|
-
id: string;
|
|
611
622
|
kind: string;
|
|
623
|
+
id: string;
|
|
612
624
|
} | undefined;
|
|
613
625
|
}, {
|
|
614
626
|
kind: "file";
|
|
@@ -617,8 +629,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
617
629
|
data: Uint8Array<ArrayBufferLike>;
|
|
618
630
|
sizeBytes?: number | undefined;
|
|
619
631
|
source?: {
|
|
620
|
-
id: string;
|
|
621
632
|
kind: string;
|
|
633
|
+
id: string;
|
|
622
634
|
} | undefined;
|
|
623
635
|
}>]>, "many">>;
|
|
624
636
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -649,8 +661,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
649
661
|
content: string;
|
|
650
662
|
sizeBytes?: number | undefined;
|
|
651
663
|
source?: {
|
|
652
|
-
id: string;
|
|
653
664
|
kind: string;
|
|
665
|
+
id: string;
|
|
654
666
|
} | undefined;
|
|
655
667
|
} | {
|
|
656
668
|
kind: "file";
|
|
@@ -659,8 +671,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
659
671
|
data: Uint8Array<ArrayBufferLike>;
|
|
660
672
|
sizeBytes?: number | undefined;
|
|
661
673
|
source?: {
|
|
662
|
-
id: string;
|
|
663
674
|
kind: string;
|
|
675
|
+
id: string;
|
|
664
676
|
} | undefined;
|
|
665
677
|
})[] | undefined;
|
|
666
678
|
}, {
|
|
@@ -691,8 +703,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
691
703
|
content: string;
|
|
692
704
|
sizeBytes?: number | undefined;
|
|
693
705
|
source?: {
|
|
694
|
-
id: string;
|
|
695
706
|
kind: string;
|
|
707
|
+
id: string;
|
|
696
708
|
} | undefined;
|
|
697
709
|
} | {
|
|
698
710
|
kind: "file";
|
|
@@ -701,8 +713,8 @@ declare const ChatContextSchema: z.ZodObject<{
|
|
|
701
713
|
data: Uint8Array<ArrayBufferLike>;
|
|
702
714
|
sizeBytes?: number | undefined;
|
|
703
715
|
source?: {
|
|
704
|
-
id: string;
|
|
705
716
|
kind: string;
|
|
717
|
+
id: string;
|
|
706
718
|
} | undefined;
|
|
707
719
|
})[] | undefined;
|
|
708
720
|
}>;
|
|
@@ -777,27 +789,27 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
777
789
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
778
790
|
error: z.ZodOptional<z.ZodString>;
|
|
779
791
|
}, "strip", z.ZodTypeAny, {
|
|
780
|
-
id: string;
|
|
781
792
|
kind: "tool-approval";
|
|
793
|
+
id: string;
|
|
782
794
|
toolName: string;
|
|
783
795
|
summary: string;
|
|
784
796
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
785
|
-
error?: string | undefined;
|
|
786
797
|
toolCallId?: string | undefined;
|
|
787
798
|
preview?: string | undefined;
|
|
788
799
|
input?: Record<string, unknown> | undefined;
|
|
789
800
|
output?: unknown;
|
|
801
|
+
error?: string | undefined;
|
|
790
802
|
}, {
|
|
791
|
-
id: string;
|
|
792
803
|
kind: "tool-approval";
|
|
804
|
+
id: string;
|
|
793
805
|
toolName: string;
|
|
794
806
|
summary: string;
|
|
795
807
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
796
|
-
error?: string | undefined;
|
|
797
808
|
toolCallId?: string | undefined;
|
|
798
809
|
preview?: string | undefined;
|
|
799
810
|
input?: Record<string, unknown> | undefined;
|
|
800
811
|
output?: unknown;
|
|
812
|
+
error?: string | undefined;
|
|
801
813
|
}>, z.ZodObject<{
|
|
802
814
|
kind: z.ZodLiteral<"attachment">;
|
|
803
815
|
id: z.ZodString;
|
|
@@ -825,8 +837,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
825
837
|
attachmentType?: string | undefined;
|
|
826
838
|
}>>;
|
|
827
839
|
}, "strip", z.ZodTypeAny, {
|
|
828
|
-
url: string;
|
|
829
840
|
mediaType: string;
|
|
841
|
+
url: string;
|
|
830
842
|
filename?: string | undefined;
|
|
831
843
|
sizeBytes?: number | undefined;
|
|
832
844
|
source?: {
|
|
@@ -837,8 +849,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
837
849
|
downloadUrl?: string | undefined;
|
|
838
850
|
previewUrl?: string | undefined;
|
|
839
851
|
}, {
|
|
840
|
-
url: string;
|
|
841
852
|
mediaType: string;
|
|
853
|
+
url: string;
|
|
842
854
|
filename?: string | undefined;
|
|
843
855
|
sizeBytes?: number | undefined;
|
|
844
856
|
source?: {
|
|
@@ -850,11 +862,11 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
850
862
|
previewUrl?: string | undefined;
|
|
851
863
|
}>;
|
|
852
864
|
}, "strip", z.ZodTypeAny, {
|
|
853
|
-
id: string;
|
|
854
865
|
kind: "attachment";
|
|
866
|
+
id: string;
|
|
855
867
|
attachment: {
|
|
856
|
-
url: string;
|
|
857
868
|
mediaType: string;
|
|
869
|
+
url: string;
|
|
858
870
|
filename?: string | undefined;
|
|
859
871
|
sizeBytes?: number | undefined;
|
|
860
872
|
source?: {
|
|
@@ -866,14 +878,14 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
866
878
|
previewUrl?: string | undefined;
|
|
867
879
|
};
|
|
868
880
|
title: string;
|
|
869
|
-
description?: string | undefined;
|
|
870
881
|
jobId?: string | undefined;
|
|
882
|
+
description?: string | undefined;
|
|
871
883
|
}, {
|
|
872
|
-
id: string;
|
|
873
884
|
kind: "attachment";
|
|
885
|
+
id: string;
|
|
874
886
|
attachment: {
|
|
875
|
-
url: string;
|
|
876
887
|
mediaType: string;
|
|
888
|
+
url: string;
|
|
877
889
|
filename?: string | undefined;
|
|
878
890
|
sizeBytes?: number | undefined;
|
|
879
891
|
source?: {
|
|
@@ -885,8 +897,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
885
897
|
previewUrl?: string | undefined;
|
|
886
898
|
};
|
|
887
899
|
title: string;
|
|
888
|
-
description?: string | undefined;
|
|
889
900
|
jobId?: string | undefined;
|
|
901
|
+
description?: string | undefined;
|
|
890
902
|
}>, z.ZodObject<{
|
|
891
903
|
kind: z.ZodLiteral<"sources">;
|
|
892
904
|
id: z.ZodString;
|
|
@@ -904,8 +916,8 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
904
916
|
id: string;
|
|
905
917
|
source: string;
|
|
906
918
|
entityType?: string | undefined;
|
|
907
|
-
url?: string | undefined;
|
|
908
919
|
entityId?: string | undefined;
|
|
920
|
+
url?: string | undefined;
|
|
909
921
|
title?: string | undefined;
|
|
910
922
|
excerpt?: string | undefined;
|
|
911
923
|
provenance?: Record<string, unknown> | undefined;
|
|
@@ -913,35 +925,35 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
913
925
|
id: string;
|
|
914
926
|
source: string;
|
|
915
927
|
entityType?: string | undefined;
|
|
916
|
-
url?: string | undefined;
|
|
917
928
|
entityId?: string | undefined;
|
|
929
|
+
url?: string | undefined;
|
|
918
930
|
title?: string | undefined;
|
|
919
931
|
excerpt?: string | undefined;
|
|
920
932
|
provenance?: Record<string, unknown> | undefined;
|
|
921
933
|
}>, "many">;
|
|
922
934
|
}, "strip", z.ZodTypeAny, {
|
|
923
|
-
id: string;
|
|
924
935
|
kind: "sources";
|
|
936
|
+
id: string;
|
|
925
937
|
sources: {
|
|
926
938
|
id: string;
|
|
927
939
|
source: string;
|
|
928
940
|
entityType?: string | undefined;
|
|
929
|
-
url?: string | undefined;
|
|
930
941
|
entityId?: string | undefined;
|
|
942
|
+
url?: string | undefined;
|
|
931
943
|
title?: string | undefined;
|
|
932
944
|
excerpt?: string | undefined;
|
|
933
945
|
provenance?: Record<string, unknown> | undefined;
|
|
934
946
|
}[];
|
|
935
947
|
title?: string | undefined;
|
|
936
948
|
}, {
|
|
937
|
-
id: string;
|
|
938
949
|
kind: "sources";
|
|
950
|
+
id: string;
|
|
939
951
|
sources: {
|
|
940
952
|
id: string;
|
|
941
953
|
source: string;
|
|
942
954
|
entityType?: string | undefined;
|
|
943
|
-
url?: string | undefined;
|
|
944
955
|
entityId?: string | undefined;
|
|
956
|
+
url?: string | undefined;
|
|
945
957
|
title?: string | undefined;
|
|
946
958
|
excerpt?: string | undefined;
|
|
947
959
|
provenance?: Record<string, unknown> | undefined;
|
|
@@ -959,16 +971,16 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
959
971
|
prompt: z.ZodString;
|
|
960
972
|
description: z.ZodOptional<z.ZodString>;
|
|
961
973
|
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
type: "prompt";
|
|
963
|
-
label: string;
|
|
964
974
|
id: string;
|
|
975
|
+
type: "prompt";
|
|
965
976
|
prompt: string;
|
|
977
|
+
label: string;
|
|
966
978
|
description?: string | undefined;
|
|
967
979
|
}, {
|
|
968
|
-
type: "prompt";
|
|
969
|
-
label: string;
|
|
970
980
|
id: string;
|
|
981
|
+
type: "prompt";
|
|
971
982
|
prompt: string;
|
|
983
|
+
label: string;
|
|
972
984
|
description?: string | undefined;
|
|
973
985
|
}>, z.ZodObject<{
|
|
974
986
|
type: z.ZodLiteral<"event">;
|
|
@@ -977,49 +989,49 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
977
989
|
event: z.ZodString;
|
|
978
990
|
description: z.ZodOptional<z.ZodString>;
|
|
979
991
|
}, "strip", z.ZodTypeAny, {
|
|
992
|
+
id: string;
|
|
980
993
|
type: "event";
|
|
981
994
|
label: string;
|
|
982
|
-
id: string;
|
|
983
995
|
event: string;
|
|
984
996
|
description?: string | undefined;
|
|
985
997
|
}, {
|
|
998
|
+
id: string;
|
|
986
999
|
type: "event";
|
|
987
1000
|
label: string;
|
|
988
|
-
id: string;
|
|
989
1001
|
event: string;
|
|
990
1002
|
description?: string | undefined;
|
|
991
1003
|
}>]>, "many">;
|
|
992
1004
|
}, "strip", z.ZodTypeAny, {
|
|
993
|
-
id: string;
|
|
994
1005
|
kind: "actions";
|
|
1006
|
+
id: string;
|
|
995
1007
|
actions: ({
|
|
996
|
-
type: "prompt";
|
|
997
|
-
label: string;
|
|
998
1008
|
id: string;
|
|
1009
|
+
type: "prompt";
|
|
999
1010
|
prompt: string;
|
|
1011
|
+
label: string;
|
|
1000
1012
|
description?: string | undefined;
|
|
1001
1013
|
} | {
|
|
1014
|
+
id: string;
|
|
1002
1015
|
type: "event";
|
|
1003
1016
|
label: string;
|
|
1004
|
-
id: string;
|
|
1005
1017
|
event: string;
|
|
1006
1018
|
description?: string | undefined;
|
|
1007
1019
|
})[];
|
|
1008
1020
|
title?: string | undefined;
|
|
1009
1021
|
defaultOpen?: boolean | undefined;
|
|
1010
1022
|
}, {
|
|
1011
|
-
id: string;
|
|
1012
1023
|
kind: "actions";
|
|
1024
|
+
id: string;
|
|
1013
1025
|
actions: ({
|
|
1014
|
-
type: "prompt";
|
|
1015
|
-
label: string;
|
|
1016
1026
|
id: string;
|
|
1027
|
+
type: "prompt";
|
|
1017
1028
|
prompt: string;
|
|
1029
|
+
label: string;
|
|
1018
1030
|
description?: string | undefined;
|
|
1019
1031
|
} | {
|
|
1032
|
+
id: string;
|
|
1020
1033
|
type: "event";
|
|
1021
1034
|
label: string;
|
|
1022
|
-
id: string;
|
|
1023
1035
|
event: string;
|
|
1024
1036
|
description?: string | undefined;
|
|
1025
1037
|
})[];
|
|
@@ -1075,22 +1087,22 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1075
1087
|
jobId?: string | undefined;
|
|
1076
1088
|
}[] | undefined;
|
|
1077
1089
|
cards?: ({
|
|
1078
|
-
id: string;
|
|
1079
1090
|
kind: "tool-approval";
|
|
1091
|
+
id: string;
|
|
1080
1092
|
toolName: string;
|
|
1081
1093
|
summary: string;
|
|
1082
1094
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
1083
|
-
error?: string | undefined;
|
|
1084
1095
|
toolCallId?: string | undefined;
|
|
1085
1096
|
preview?: string | undefined;
|
|
1086
1097
|
input?: Record<string, unknown> | undefined;
|
|
1087
1098
|
output?: unknown;
|
|
1099
|
+
error?: string | undefined;
|
|
1088
1100
|
} | {
|
|
1089
|
-
id: string;
|
|
1090
1101
|
kind: "attachment";
|
|
1102
|
+
id: string;
|
|
1091
1103
|
attachment: {
|
|
1092
|
-
url: string;
|
|
1093
1104
|
mediaType: string;
|
|
1105
|
+
url: string;
|
|
1094
1106
|
filename?: string | undefined;
|
|
1095
1107
|
sizeBytes?: number | undefined;
|
|
1096
1108
|
source?: {
|
|
@@ -1102,35 +1114,35 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1102
1114
|
previewUrl?: string | undefined;
|
|
1103
1115
|
};
|
|
1104
1116
|
title: string;
|
|
1105
|
-
description?: string | undefined;
|
|
1106
1117
|
jobId?: string | undefined;
|
|
1118
|
+
description?: string | undefined;
|
|
1107
1119
|
} | {
|
|
1108
|
-
id: string;
|
|
1109
1120
|
kind: "sources";
|
|
1121
|
+
id: string;
|
|
1110
1122
|
sources: {
|
|
1111
1123
|
id: string;
|
|
1112
1124
|
source: string;
|
|
1113
1125
|
entityType?: string | undefined;
|
|
1114
|
-
url?: string | undefined;
|
|
1115
1126
|
entityId?: string | undefined;
|
|
1127
|
+
url?: string | undefined;
|
|
1116
1128
|
title?: string | undefined;
|
|
1117
1129
|
excerpt?: string | undefined;
|
|
1118
1130
|
provenance?: Record<string, unknown> | undefined;
|
|
1119
1131
|
}[];
|
|
1120
1132
|
title?: string | undefined;
|
|
1121
1133
|
} | {
|
|
1122
|
-
id: string;
|
|
1123
1134
|
kind: "actions";
|
|
1135
|
+
id: string;
|
|
1124
1136
|
actions: ({
|
|
1125
|
-
type: "prompt";
|
|
1126
|
-
label: string;
|
|
1127
1137
|
id: string;
|
|
1138
|
+
type: "prompt";
|
|
1128
1139
|
prompt: string;
|
|
1140
|
+
label: string;
|
|
1129
1141
|
description?: string | undefined;
|
|
1130
1142
|
} | {
|
|
1143
|
+
id: string;
|
|
1131
1144
|
type: "event";
|
|
1132
1145
|
label: string;
|
|
1133
|
-
id: string;
|
|
1134
1146
|
event: string;
|
|
1135
1147
|
description?: string | undefined;
|
|
1136
1148
|
})[];
|
|
@@ -1159,22 +1171,22 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1159
1171
|
jobId?: string | undefined;
|
|
1160
1172
|
}[] | undefined;
|
|
1161
1173
|
cards?: ({
|
|
1162
|
-
id: string;
|
|
1163
1174
|
kind: "tool-approval";
|
|
1175
|
+
id: string;
|
|
1164
1176
|
toolName: string;
|
|
1165
1177
|
summary: string;
|
|
1166
1178
|
state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
|
|
1167
|
-
error?: string | undefined;
|
|
1168
1179
|
toolCallId?: string | undefined;
|
|
1169
1180
|
preview?: string | undefined;
|
|
1170
1181
|
input?: Record<string, unknown> | undefined;
|
|
1171
1182
|
output?: unknown;
|
|
1183
|
+
error?: string | undefined;
|
|
1172
1184
|
} | {
|
|
1173
|
-
id: string;
|
|
1174
1185
|
kind: "attachment";
|
|
1186
|
+
id: string;
|
|
1175
1187
|
attachment: {
|
|
1176
|
-
url: string;
|
|
1177
1188
|
mediaType: string;
|
|
1189
|
+
url: string;
|
|
1178
1190
|
filename?: string | undefined;
|
|
1179
1191
|
sizeBytes?: number | undefined;
|
|
1180
1192
|
source?: {
|
|
@@ -1186,35 +1198,35 @@ declare const AgentResponseSchema: z.ZodObject<{
|
|
|
1186
1198
|
previewUrl?: string | undefined;
|
|
1187
1199
|
};
|
|
1188
1200
|
title: string;
|
|
1189
|
-
description?: string | undefined;
|
|
1190
1201
|
jobId?: string | undefined;
|
|
1202
|
+
description?: string | undefined;
|
|
1191
1203
|
} | {
|
|
1192
|
-
id: string;
|
|
1193
1204
|
kind: "sources";
|
|
1205
|
+
id: string;
|
|
1194
1206
|
sources: {
|
|
1195
1207
|
id: string;
|
|
1196
1208
|
source: string;
|
|
1197
1209
|
entityType?: string | undefined;
|
|
1198
|
-
url?: string | undefined;
|
|
1199
1210
|
entityId?: string | undefined;
|
|
1211
|
+
url?: string | undefined;
|
|
1200
1212
|
title?: string | undefined;
|
|
1201
1213
|
excerpt?: string | undefined;
|
|
1202
1214
|
provenance?: Record<string, unknown> | undefined;
|
|
1203
1215
|
}[];
|
|
1204
1216
|
title?: string | undefined;
|
|
1205
1217
|
} | {
|
|
1206
|
-
id: string;
|
|
1207
1218
|
kind: "actions";
|
|
1219
|
+
id: string;
|
|
1208
1220
|
actions: ({
|
|
1209
|
-
type: "prompt";
|
|
1210
|
-
label: string;
|
|
1211
1221
|
id: string;
|
|
1222
|
+
type: "prompt";
|
|
1212
1223
|
prompt: string;
|
|
1224
|
+
label: string;
|
|
1213
1225
|
description?: string | undefined;
|
|
1214
1226
|
} | {
|
|
1227
|
+
id: string;
|
|
1215
1228
|
type: "event";
|
|
1216
1229
|
label: string;
|
|
1217
|
-
id: string;
|
|
1218
1230
|
event: string;
|
|
1219
1231
|
description?: string | undefined;
|
|
1220
1232
|
})[];
|
|
@@ -1273,12 +1285,12 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1273
1285
|
lastCheck: z.ZodOptional<z.ZodString>;
|
|
1274
1286
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1275
1287
|
}, "strip", z.ZodTypeAny, {
|
|
1276
|
-
status: "unknown" | "
|
|
1288
|
+
status: "unknown" | "error" | "healthy" | "warning";
|
|
1277
1289
|
message?: string | undefined;
|
|
1278
1290
|
lastCheck?: string | undefined;
|
|
1279
1291
|
details?: Record<string, unknown> | undefined;
|
|
1280
1292
|
}, {
|
|
1281
|
-
status: "unknown" | "
|
|
1293
|
+
status: "unknown" | "error" | "healthy" | "warning";
|
|
1282
1294
|
message?: string | undefined;
|
|
1283
1295
|
lastCheck?: string | undefined;
|
|
1284
1296
|
details?: Record<string, unknown> | undefined;
|
|
@@ -1288,7 +1300,7 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1288
1300
|
name: string;
|
|
1289
1301
|
pluginId: string;
|
|
1290
1302
|
health?: {
|
|
1291
|
-
status: "unknown" | "
|
|
1303
|
+
status: "unknown" | "error" | "healthy" | "warning";
|
|
1292
1304
|
message?: string | undefined;
|
|
1293
1305
|
lastCheck?: string | undefined;
|
|
1294
1306
|
details?: Record<string, unknown> | undefined;
|
|
@@ -1298,7 +1310,7 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1298
1310
|
name: string;
|
|
1299
1311
|
pluginId: string;
|
|
1300
1312
|
health?: {
|
|
1301
|
-
status: "unknown" | "
|
|
1313
|
+
status: "unknown" | "error" | "healthy" | "warning";
|
|
1302
1314
|
message?: string | undefined;
|
|
1303
1315
|
lastCheck?: string | undefined;
|
|
1304
1316
|
details?: Record<string, unknown> | undefined;
|
|
@@ -1311,15 +1323,15 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1311
1323
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
1312
1324
|
visibility: z.ZodDefault<z.ZodEnum<["anchor", "trusted", "public"]>>;
|
|
1313
1325
|
}, "strip", z.ZodTypeAny, {
|
|
1314
|
-
pluginId: string;
|
|
1315
|
-
label: string;
|
|
1316
1326
|
url: string;
|
|
1327
|
+
label: string;
|
|
1328
|
+
pluginId: string;
|
|
1317
1329
|
priority: number;
|
|
1318
1330
|
visibility: "anchor" | "trusted" | "public";
|
|
1319
1331
|
}, {
|
|
1320
|
-
pluginId: string;
|
|
1321
|
-
label: string;
|
|
1322
1332
|
url: string;
|
|
1333
|
+
label: string;
|
|
1334
|
+
pluginId: string;
|
|
1323
1335
|
priority?: number | undefined;
|
|
1324
1336
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1325
1337
|
}>, "many">;
|
|
@@ -1334,25 +1346,25 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1334
1346
|
visibility: z.ZodDefault<z.ZodEnum<["anchor", "trusted", "public"]>>;
|
|
1335
1347
|
status: z.ZodDefault<z.ZodEnum<["available", "coming-soon", "disabled"]>>;
|
|
1336
1348
|
}, "strip", z.ZodTypeAny, {
|
|
1349
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1350
|
+
id: string;
|
|
1337
1351
|
status: "available" | "coming-soon" | "disabled";
|
|
1338
|
-
pluginId: string;
|
|
1339
1352
|
label: string;
|
|
1353
|
+
pluginId: string;
|
|
1340
1354
|
priority: number;
|
|
1341
1355
|
visibility: "anchor" | "trusted" | "public";
|
|
1342
|
-
id: string;
|
|
1343
1356
|
href: string;
|
|
1344
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1345
1357
|
description?: string | undefined;
|
|
1346
1358
|
}, {
|
|
1347
|
-
|
|
1348
|
-
label: string;
|
|
1359
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1349
1360
|
id: string;
|
|
1361
|
+
label: string;
|
|
1362
|
+
pluginId: string;
|
|
1350
1363
|
href: string;
|
|
1351
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1352
1364
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
1365
|
+
description?: string | undefined;
|
|
1353
1366
|
priority?: number | undefined;
|
|
1354
1367
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1355
|
-
description?: string | undefined;
|
|
1356
1368
|
}>, "many">;
|
|
1357
1369
|
}, "strip", z.ZodTypeAny, {
|
|
1358
1370
|
model: string;
|
|
@@ -1373,28 +1385,28 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1373
1385
|
name: string;
|
|
1374
1386
|
pluginId: string;
|
|
1375
1387
|
health?: {
|
|
1376
|
-
status: "unknown" | "
|
|
1388
|
+
status: "unknown" | "error" | "healthy" | "warning";
|
|
1377
1389
|
message?: string | undefined;
|
|
1378
1390
|
lastCheck?: string | undefined;
|
|
1379
1391
|
details?: Record<string, unknown> | undefined;
|
|
1380
1392
|
} | undefined;
|
|
1381
1393
|
}[];
|
|
1382
1394
|
endpoints: {
|
|
1383
|
-
pluginId: string;
|
|
1384
|
-
label: string;
|
|
1385
1395
|
url: string;
|
|
1396
|
+
label: string;
|
|
1397
|
+
pluginId: string;
|
|
1386
1398
|
priority: number;
|
|
1387
1399
|
visibility: "anchor" | "trusted" | "public";
|
|
1388
1400
|
}[];
|
|
1389
1401
|
interactions: {
|
|
1402
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1403
|
+
id: string;
|
|
1390
1404
|
status: "available" | "coming-soon" | "disabled";
|
|
1391
|
-
pluginId: string;
|
|
1392
1405
|
label: string;
|
|
1406
|
+
pluginId: string;
|
|
1393
1407
|
priority: number;
|
|
1394
1408
|
visibility: "anchor" | "trusted" | "public";
|
|
1395
|
-
id: string;
|
|
1396
1409
|
href: string;
|
|
1397
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1398
1410
|
description?: string | undefined;
|
|
1399
1411
|
}[];
|
|
1400
1412
|
}, {
|
|
@@ -1416,29 +1428,29 @@ declare const AppInfoSchema: z.ZodObject<{
|
|
|
1416
1428
|
name: string;
|
|
1417
1429
|
pluginId: string;
|
|
1418
1430
|
health?: {
|
|
1419
|
-
status: "unknown" | "
|
|
1431
|
+
status: "unknown" | "error" | "healthy" | "warning";
|
|
1420
1432
|
message?: string | undefined;
|
|
1421
1433
|
lastCheck?: string | undefined;
|
|
1422
1434
|
details?: Record<string, unknown> | undefined;
|
|
1423
1435
|
} | undefined;
|
|
1424
1436
|
}[];
|
|
1425
1437
|
endpoints: {
|
|
1426
|
-
pluginId: string;
|
|
1427
|
-
label: string;
|
|
1428
1438
|
url: string;
|
|
1439
|
+
label: string;
|
|
1440
|
+
pluginId: string;
|
|
1429
1441
|
priority?: number | undefined;
|
|
1430
1442
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1431
1443
|
}[];
|
|
1432
1444
|
interactions: {
|
|
1433
|
-
|
|
1434
|
-
label: string;
|
|
1445
|
+
kind: "human" | "agent" | "admin" | "protocol";
|
|
1435
1446
|
id: string;
|
|
1447
|
+
label: string;
|
|
1448
|
+
pluginId: string;
|
|
1436
1449
|
href: string;
|
|
1437
|
-
kind: "human" | "agent" | "admin" | "protocol";
|
|
1438
1450
|
status?: "available" | "coming-soon" | "disabled" | undefined;
|
|
1451
|
+
description?: string | undefined;
|
|
1439
1452
|
priority?: number | undefined;
|
|
1440
1453
|
visibility?: "anchor" | "trusted" | "public" | undefined;
|
|
1441
|
-
description?: string | undefined;
|
|
1442
1454
|
}[];
|
|
1443
1455
|
}>;
|
|
1444
1456
|
type AppInfo = z.infer<typeof AppInfoSchema>;
|
|
@@ -1509,13 +1521,13 @@ declare const BrainCharacterSchema: z.ZodObject<{
|
|
|
1509
1521
|
values: z.ZodArray<z.ZodString, "many">;
|
|
1510
1522
|
}, "strip", z.ZodTypeAny, {
|
|
1511
1523
|
values: string[];
|
|
1512
|
-
name: string;
|
|
1513
1524
|
role: string;
|
|
1525
|
+
name: string;
|
|
1514
1526
|
purpose: string;
|
|
1515
1527
|
}, {
|
|
1516
1528
|
values: string[];
|
|
1517
|
-
name: string;
|
|
1518
1529
|
role: string;
|
|
1530
|
+
name: string;
|
|
1519
1531
|
purpose: string;
|
|
1520
1532
|
}>;
|
|
1521
1533
|
type BrainCharacter = z.infer<typeof BrainCharacterSchema>;
|
|
@@ -1541,8 +1553,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
|
|
|
1541
1553
|
label?: string | undefined;
|
|
1542
1554
|
}>, "many">>;
|
|
1543
1555
|
}, "strip", z.ZodTypeAny, {
|
|
1544
|
-
name: string;
|
|
1545
1556
|
kind: "professional" | "team" | "collective";
|
|
1557
|
+
name: string;
|
|
1546
1558
|
description?: string | undefined;
|
|
1547
1559
|
organization?: string | undefined;
|
|
1548
1560
|
avatar?: string | undefined;
|
|
@@ -1554,8 +1566,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
|
|
|
1554
1566
|
label?: string | undefined;
|
|
1555
1567
|
}[] | undefined;
|
|
1556
1568
|
}, {
|
|
1557
|
-
name: string;
|
|
1558
1569
|
kind: "professional" | "team" | "collective";
|
|
1570
|
+
name: string;
|
|
1559
1571
|
description?: string | undefined;
|
|
1560
1572
|
organization?: string | undefined;
|
|
1561
1573
|
avatar?: string | undefined;
|
|
@@ -1585,12 +1597,12 @@ declare const MessageResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1585
1597
|
error: z.ZodOptional<z.ZodString>;
|
|
1586
1598
|
}, "strip", z.ZodTypeAny, {
|
|
1587
1599
|
success: boolean;
|
|
1588
|
-
error?: string | undefined;
|
|
1589
1600
|
data?: unknown;
|
|
1601
|
+
error?: string | undefined;
|
|
1590
1602
|
}, {
|
|
1591
1603
|
success: boolean;
|
|
1592
|
-
error?: string | undefined;
|
|
1593
1604
|
data?: unknown;
|
|
1605
|
+
error?: string | undefined;
|
|
1594
1606
|
}>, z.ZodObject<{
|
|
1595
1607
|
noop: z.ZodLiteral<true>;
|
|
1596
1608
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1614,15 +1626,15 @@ declare const BaseMessageSchema: z.ZodObject<{
|
|
|
1614
1626
|
target: z.ZodOptional<z.ZodString>;
|
|
1615
1627
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1616
1628
|
}, "strip", z.ZodTypeAny, {
|
|
1617
|
-
type: string;
|
|
1618
1629
|
id: string;
|
|
1630
|
+
type: string;
|
|
1619
1631
|
source: string;
|
|
1620
1632
|
timestamp: string;
|
|
1621
1633
|
metadata?: Record<string, unknown> | undefined;
|
|
1622
1634
|
target?: string | undefined;
|
|
1623
1635
|
}, {
|
|
1624
|
-
type: string;
|
|
1625
1636
|
id: string;
|
|
1637
|
+
type: string;
|
|
1626
1638
|
source: string;
|
|
1627
1639
|
timestamp: string;
|
|
1628
1640
|
metadata?: Record<string, unknown> | undefined;
|