@xpert-ai/contracts 3.21.0 → 3.21.2
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/index.cjs.js +367 -107
- package/index.esm.js +481 -235
- package/package.json +2 -2
- package/src/agent-plugin.d.ts +10 -3
- package/src/ai/assistant-task-context.model.d.ts +26 -0
- package/src/ai/chat-group.model.d.ts +40 -0
- package/src/ai/clawxpert-recovery.model.d.ts +10 -0
- package/src/ai/copilot-model.model.d.ts +13 -0
- package/src/ai/copilot-provider.model.d.ts +9 -2
- package/src/ai/execution-activity.model.d.ts +10 -10
- package/src/ai/index.d.ts +3 -0
- package/src/ai/model-discovery.model.d.ts +363 -0
- package/src/ai/project-task-runtime.model.d.ts +385 -5
- package/src/ai/realtime-voice.model.d.ts +2 -2
- package/src/ai/xpert-project.model.d.ts +1 -0
- package/src/ai/xpert-template.model.d.ts +2 -13
- package/src/index.d.ts +1 -1
- package/src/plugin-application.d.ts +2 -1
- package/src/plugin-management.d.ts +3 -0
- package/src/plugin.d.ts +9 -1
- package/src/runtime-control.d.ts +10 -2
- package/src/storage-file.model.d.ts +5 -0
|
@@ -607,25 +607,34 @@ export declare const projectTaskDispatchReceiptSchema: z.ZodObject<{
|
|
|
607
607
|
invocationId: z.ZodString;
|
|
608
608
|
status: z.ZodEnum<["queued", "running", "waiting", "cancelling", "succeeded", "failed", "cancelled", "unknown"]>;
|
|
609
609
|
}, "strict", z.ZodTypeAny, {
|
|
610
|
-
status?: "
|
|
610
|
+
status?: "unknown" | "succeeded" | "failed" | "running" | "queued" | "waiting" | "cancelled" | "cancelling";
|
|
611
611
|
projectId?: string;
|
|
612
612
|
invocationId?: string;
|
|
613
613
|
projectTaskId?: string;
|
|
614
614
|
taskExecutionId?: string;
|
|
615
615
|
}, {
|
|
616
|
-
status?: "
|
|
616
|
+
status?: "unknown" | "succeeded" | "failed" | "running" | "queued" | "waiting" | "cancelled" | "cancelling";
|
|
617
617
|
projectId?: string;
|
|
618
618
|
invocationId?: string;
|
|
619
619
|
projectTaskId?: string;
|
|
620
620
|
taskExecutionId?: string;
|
|
621
621
|
}>;
|
|
622
622
|
export type ProjectTaskDispatchReceipt = z.output<typeof projectTaskDispatchReceiptSchema>;
|
|
623
|
-
|
|
624
|
-
export declare const projectTaskDispatchInputSchema: z.ZodObject<{
|
|
623
|
+
export declare const projectTaskDispatchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
625
624
|
requestId: z.ZodString;
|
|
626
625
|
taskId: z.ZodString;
|
|
627
626
|
expectedRevision: z.ZodNumber;
|
|
628
|
-
bindingId: z.ZodString
|
|
627
|
+
bindingId: z.ZodOptional<z.ZodString>;
|
|
628
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
629
|
+
type: z.ZodLiteral<"group_member">;
|
|
630
|
+
participantId: z.ZodString;
|
|
631
|
+
}, "strict", z.ZodTypeAny, {
|
|
632
|
+
type?: "group_member";
|
|
633
|
+
participantId?: string;
|
|
634
|
+
}, {
|
|
635
|
+
type?: "group_member";
|
|
636
|
+
participantId?: string;
|
|
637
|
+
}>>;
|
|
629
638
|
purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
630
639
|
type: z.ZodLiteral<"implementation">;
|
|
631
640
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -739,6 +748,10 @@ export declare const projectTaskDispatchInputSchema: z.ZodObject<{
|
|
|
739
748
|
instructions: z.ZodDefault<z.ZodString>;
|
|
740
749
|
}, "strict", z.ZodTypeAny, {
|
|
741
750
|
requestId?: string;
|
|
751
|
+
target?: {
|
|
752
|
+
type?: "group_member";
|
|
753
|
+
participantId?: string;
|
|
754
|
+
};
|
|
742
755
|
instructions?: string;
|
|
743
756
|
taskId?: string;
|
|
744
757
|
purpose?: {
|
|
@@ -775,6 +788,373 @@ export declare const projectTaskDispatchInputSchema: z.ZodObject<{
|
|
|
775
788
|
};
|
|
776
789
|
}, {
|
|
777
790
|
requestId?: string;
|
|
791
|
+
target?: {
|
|
792
|
+
type?: "group_member";
|
|
793
|
+
participantId?: string;
|
|
794
|
+
};
|
|
795
|
+
instructions?: string;
|
|
796
|
+
taskId?: string;
|
|
797
|
+
purpose?: {
|
|
798
|
+
type?: "implementation";
|
|
799
|
+
} | {
|
|
800
|
+
type?: "review";
|
|
801
|
+
implementationExecutionId?: string;
|
|
802
|
+
implementationInvocationId?: string;
|
|
803
|
+
specificationDigest?: string;
|
|
804
|
+
evidence?: ({
|
|
805
|
+
type?: "artifact";
|
|
806
|
+
versionId?: string;
|
|
807
|
+
artifactId?: string;
|
|
808
|
+
} | {
|
|
809
|
+
type?: "invocation_result";
|
|
810
|
+
revision?: number;
|
|
811
|
+
invocationId?: string;
|
|
812
|
+
} | {
|
|
813
|
+
type?: "workspace_snapshot";
|
|
814
|
+
digest?: string;
|
|
815
|
+
snapshotId?: string;
|
|
816
|
+
})[];
|
|
817
|
+
};
|
|
818
|
+
expectedRevision?: number;
|
|
819
|
+
bindingId?: string;
|
|
820
|
+
delivery?: {
|
|
821
|
+
mode?: "none";
|
|
822
|
+
} | {
|
|
823
|
+
mode?: "files";
|
|
824
|
+
paths?: string[];
|
|
825
|
+
} | {
|
|
826
|
+
mode?: "archive";
|
|
827
|
+
paths?: string[];
|
|
828
|
+
};
|
|
829
|
+
}>, {
|
|
830
|
+
requestId?: string;
|
|
831
|
+
target?: {
|
|
832
|
+
type?: "group_member";
|
|
833
|
+
participantId?: string;
|
|
834
|
+
};
|
|
835
|
+
instructions?: string;
|
|
836
|
+
taskId?: string;
|
|
837
|
+
purpose?: {
|
|
838
|
+
type?: "implementation";
|
|
839
|
+
} | {
|
|
840
|
+
type?: "review";
|
|
841
|
+
implementationExecutionId?: string;
|
|
842
|
+
implementationInvocationId?: string;
|
|
843
|
+
specificationDigest?: string;
|
|
844
|
+
evidence?: ({
|
|
845
|
+
type?: "artifact";
|
|
846
|
+
versionId?: string;
|
|
847
|
+
artifactId?: string;
|
|
848
|
+
} | {
|
|
849
|
+
type?: "invocation_result";
|
|
850
|
+
revision?: number;
|
|
851
|
+
invocationId?: string;
|
|
852
|
+
} | {
|
|
853
|
+
type?: "workspace_snapshot";
|
|
854
|
+
digest?: string;
|
|
855
|
+
snapshotId?: string;
|
|
856
|
+
})[];
|
|
857
|
+
};
|
|
858
|
+
expectedRevision?: number;
|
|
859
|
+
bindingId?: string;
|
|
860
|
+
delivery?: {
|
|
861
|
+
mode?: "none";
|
|
862
|
+
} | {
|
|
863
|
+
mode?: "files";
|
|
864
|
+
paths?: string[];
|
|
865
|
+
} | {
|
|
866
|
+
mode?: "archive";
|
|
867
|
+
paths?: string[];
|
|
868
|
+
};
|
|
869
|
+
}, {
|
|
870
|
+
requestId?: string;
|
|
871
|
+
target?: {
|
|
872
|
+
type?: "group_member";
|
|
873
|
+
participantId?: string;
|
|
874
|
+
};
|
|
875
|
+
instructions?: string;
|
|
876
|
+
taskId?: string;
|
|
877
|
+
purpose?: {
|
|
878
|
+
type?: "implementation";
|
|
879
|
+
} | {
|
|
880
|
+
type?: "review";
|
|
881
|
+
implementationExecutionId?: string;
|
|
882
|
+
implementationInvocationId?: string;
|
|
883
|
+
specificationDigest?: string;
|
|
884
|
+
evidence?: ({
|
|
885
|
+
type?: "artifact";
|
|
886
|
+
versionId?: string;
|
|
887
|
+
artifactId?: string;
|
|
888
|
+
} | {
|
|
889
|
+
type?: "invocation_result";
|
|
890
|
+
revision?: number;
|
|
891
|
+
invocationId?: string;
|
|
892
|
+
} | {
|
|
893
|
+
type?: "workspace_snapshot";
|
|
894
|
+
digest?: string;
|
|
895
|
+
snapshotId?: string;
|
|
896
|
+
})[];
|
|
897
|
+
};
|
|
898
|
+
expectedRevision?: number;
|
|
899
|
+
bindingId?: string;
|
|
900
|
+
delivery?: {
|
|
901
|
+
mode?: "none";
|
|
902
|
+
} | {
|
|
903
|
+
mode?: "files";
|
|
904
|
+
paths?: string[];
|
|
905
|
+
} | {
|
|
906
|
+
mode?: "archive";
|
|
907
|
+
paths?: string[];
|
|
908
|
+
};
|
|
909
|
+
}>;
|
|
910
|
+
export declare const projectTaskDispatchToolInputSchema: z.ZodEffects<z.ZodObject<Omit<{
|
|
911
|
+
requestId: z.ZodString;
|
|
912
|
+
taskId: z.ZodString;
|
|
913
|
+
expectedRevision: z.ZodNumber;
|
|
914
|
+
bindingId: z.ZodOptional<z.ZodString>;
|
|
915
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
916
|
+
type: z.ZodLiteral<"group_member">;
|
|
917
|
+
participantId: z.ZodString;
|
|
918
|
+
}, "strict", z.ZodTypeAny, {
|
|
919
|
+
type?: "group_member";
|
|
920
|
+
participantId?: string;
|
|
921
|
+
}, {
|
|
922
|
+
type?: "group_member";
|
|
923
|
+
participantId?: string;
|
|
924
|
+
}>>;
|
|
925
|
+
purpose: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
926
|
+
type: z.ZodLiteral<"implementation">;
|
|
927
|
+
}, "strict", z.ZodTypeAny, {
|
|
928
|
+
type?: "implementation";
|
|
929
|
+
}, {
|
|
930
|
+
type?: "implementation";
|
|
931
|
+
}>, z.ZodObject<{
|
|
932
|
+
type: z.ZodLiteral<"review">;
|
|
933
|
+
implementationExecutionId: z.ZodString;
|
|
934
|
+
implementationInvocationId: z.ZodString;
|
|
935
|
+
specificationDigest: z.ZodString;
|
|
936
|
+
evidence: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
937
|
+
type: z.ZodLiteral<"artifact">;
|
|
938
|
+
artifactId: z.ZodString;
|
|
939
|
+
versionId: z.ZodString;
|
|
940
|
+
}, "strict", z.ZodTypeAny, {
|
|
941
|
+
type?: "artifact";
|
|
942
|
+
versionId?: string;
|
|
943
|
+
artifactId?: string;
|
|
944
|
+
}, {
|
|
945
|
+
type?: "artifact";
|
|
946
|
+
versionId?: string;
|
|
947
|
+
artifactId?: string;
|
|
948
|
+
}>, z.ZodObject<{
|
|
949
|
+
type: z.ZodLiteral<"invocation_result">;
|
|
950
|
+
invocationId: z.ZodString;
|
|
951
|
+
revision: z.ZodNumber;
|
|
952
|
+
}, "strict", z.ZodTypeAny, {
|
|
953
|
+
type?: "invocation_result";
|
|
954
|
+
revision?: number;
|
|
955
|
+
invocationId?: string;
|
|
956
|
+
}, {
|
|
957
|
+
type?: "invocation_result";
|
|
958
|
+
revision?: number;
|
|
959
|
+
invocationId?: string;
|
|
960
|
+
}>, z.ZodObject<{
|
|
961
|
+
type: z.ZodLiteral<"workspace_snapshot">;
|
|
962
|
+
snapshotId: z.ZodString;
|
|
963
|
+
digest: z.ZodString;
|
|
964
|
+
}, "strict", z.ZodTypeAny, {
|
|
965
|
+
type?: "workspace_snapshot";
|
|
966
|
+
digest?: string;
|
|
967
|
+
snapshotId?: string;
|
|
968
|
+
}, {
|
|
969
|
+
type?: "workspace_snapshot";
|
|
970
|
+
digest?: string;
|
|
971
|
+
snapshotId?: string;
|
|
972
|
+
}>]>, "many">;
|
|
973
|
+
}, "strict", z.ZodTypeAny, {
|
|
974
|
+
type?: "review";
|
|
975
|
+
implementationExecutionId?: string;
|
|
976
|
+
implementationInvocationId?: string;
|
|
977
|
+
specificationDigest?: string;
|
|
978
|
+
evidence?: ({
|
|
979
|
+
type?: "artifact";
|
|
980
|
+
versionId?: string;
|
|
981
|
+
artifactId?: string;
|
|
982
|
+
} | {
|
|
983
|
+
type?: "invocation_result";
|
|
984
|
+
revision?: number;
|
|
985
|
+
invocationId?: string;
|
|
986
|
+
} | {
|
|
987
|
+
type?: "workspace_snapshot";
|
|
988
|
+
digest?: string;
|
|
989
|
+
snapshotId?: string;
|
|
990
|
+
})[];
|
|
991
|
+
}, {
|
|
992
|
+
type?: "review";
|
|
993
|
+
implementationExecutionId?: string;
|
|
994
|
+
implementationInvocationId?: string;
|
|
995
|
+
specificationDigest?: string;
|
|
996
|
+
evidence?: ({
|
|
997
|
+
type?: "artifact";
|
|
998
|
+
versionId?: string;
|
|
999
|
+
artifactId?: string;
|
|
1000
|
+
} | {
|
|
1001
|
+
type?: "invocation_result";
|
|
1002
|
+
revision?: number;
|
|
1003
|
+
invocationId?: string;
|
|
1004
|
+
} | {
|
|
1005
|
+
type?: "workspace_snapshot";
|
|
1006
|
+
digest?: string;
|
|
1007
|
+
snapshotId?: string;
|
|
1008
|
+
})[];
|
|
1009
|
+
}>]>>;
|
|
1010
|
+
delivery: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1011
|
+
mode: z.ZodLiteral<"none">;
|
|
1012
|
+
}, "strict", z.ZodTypeAny, {
|
|
1013
|
+
mode?: "none";
|
|
1014
|
+
}, {
|
|
1015
|
+
mode?: "none";
|
|
1016
|
+
}>, z.ZodObject<{
|
|
1017
|
+
mode: z.ZodLiteral<"files">;
|
|
1018
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
1019
|
+
}, "strict", z.ZodTypeAny, {
|
|
1020
|
+
mode?: "files";
|
|
1021
|
+
paths?: string[];
|
|
1022
|
+
}, {
|
|
1023
|
+
mode?: "files";
|
|
1024
|
+
paths?: string[];
|
|
1025
|
+
}>, z.ZodObject<{
|
|
1026
|
+
mode: z.ZodLiteral<"archive">;
|
|
1027
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
1028
|
+
}, "strict", z.ZodTypeAny, {
|
|
1029
|
+
mode?: "archive";
|
|
1030
|
+
paths?: string[];
|
|
1031
|
+
}, {
|
|
1032
|
+
mode?: "archive";
|
|
1033
|
+
paths?: string[];
|
|
1034
|
+
}>]>>;
|
|
1035
|
+
instructions: z.ZodDefault<z.ZodString>;
|
|
1036
|
+
}, "requestId">, "strict", z.ZodTypeAny, {
|
|
1037
|
+
target?: {
|
|
1038
|
+
type?: "group_member";
|
|
1039
|
+
participantId?: string;
|
|
1040
|
+
};
|
|
1041
|
+
instructions?: string;
|
|
1042
|
+
taskId?: string;
|
|
1043
|
+
purpose?: {
|
|
1044
|
+
type?: "implementation";
|
|
1045
|
+
} | {
|
|
1046
|
+
type?: "review";
|
|
1047
|
+
implementationExecutionId?: string;
|
|
1048
|
+
implementationInvocationId?: string;
|
|
1049
|
+
specificationDigest?: string;
|
|
1050
|
+
evidence?: ({
|
|
1051
|
+
type?: "artifact";
|
|
1052
|
+
versionId?: string;
|
|
1053
|
+
artifactId?: string;
|
|
1054
|
+
} | {
|
|
1055
|
+
type?: "invocation_result";
|
|
1056
|
+
revision?: number;
|
|
1057
|
+
invocationId?: string;
|
|
1058
|
+
} | {
|
|
1059
|
+
type?: "workspace_snapshot";
|
|
1060
|
+
digest?: string;
|
|
1061
|
+
snapshotId?: string;
|
|
1062
|
+
})[];
|
|
1063
|
+
};
|
|
1064
|
+
expectedRevision?: number;
|
|
1065
|
+
bindingId?: string;
|
|
1066
|
+
delivery?: {
|
|
1067
|
+
mode?: "none";
|
|
1068
|
+
} | {
|
|
1069
|
+
mode?: "files";
|
|
1070
|
+
paths?: string[];
|
|
1071
|
+
} | {
|
|
1072
|
+
mode?: "archive";
|
|
1073
|
+
paths?: string[];
|
|
1074
|
+
};
|
|
1075
|
+
}, {
|
|
1076
|
+
target?: {
|
|
1077
|
+
type?: "group_member";
|
|
1078
|
+
participantId?: string;
|
|
1079
|
+
};
|
|
1080
|
+
instructions?: string;
|
|
1081
|
+
taskId?: string;
|
|
1082
|
+
purpose?: {
|
|
1083
|
+
type?: "implementation";
|
|
1084
|
+
} | {
|
|
1085
|
+
type?: "review";
|
|
1086
|
+
implementationExecutionId?: string;
|
|
1087
|
+
implementationInvocationId?: string;
|
|
1088
|
+
specificationDigest?: string;
|
|
1089
|
+
evidence?: ({
|
|
1090
|
+
type?: "artifact";
|
|
1091
|
+
versionId?: string;
|
|
1092
|
+
artifactId?: string;
|
|
1093
|
+
} | {
|
|
1094
|
+
type?: "invocation_result";
|
|
1095
|
+
revision?: number;
|
|
1096
|
+
invocationId?: string;
|
|
1097
|
+
} | {
|
|
1098
|
+
type?: "workspace_snapshot";
|
|
1099
|
+
digest?: string;
|
|
1100
|
+
snapshotId?: string;
|
|
1101
|
+
})[];
|
|
1102
|
+
};
|
|
1103
|
+
expectedRevision?: number;
|
|
1104
|
+
bindingId?: string;
|
|
1105
|
+
delivery?: {
|
|
1106
|
+
mode?: "none";
|
|
1107
|
+
} | {
|
|
1108
|
+
mode?: "files";
|
|
1109
|
+
paths?: string[];
|
|
1110
|
+
} | {
|
|
1111
|
+
mode?: "archive";
|
|
1112
|
+
paths?: string[];
|
|
1113
|
+
};
|
|
1114
|
+
}>, {
|
|
1115
|
+
target?: {
|
|
1116
|
+
type?: "group_member";
|
|
1117
|
+
participantId?: string;
|
|
1118
|
+
};
|
|
1119
|
+
instructions?: string;
|
|
1120
|
+
taskId?: string;
|
|
1121
|
+
purpose?: {
|
|
1122
|
+
type?: "implementation";
|
|
1123
|
+
} | {
|
|
1124
|
+
type?: "review";
|
|
1125
|
+
implementationExecutionId?: string;
|
|
1126
|
+
implementationInvocationId?: string;
|
|
1127
|
+
specificationDigest?: string;
|
|
1128
|
+
evidence?: ({
|
|
1129
|
+
type?: "artifact";
|
|
1130
|
+
versionId?: string;
|
|
1131
|
+
artifactId?: string;
|
|
1132
|
+
} | {
|
|
1133
|
+
type?: "invocation_result";
|
|
1134
|
+
revision?: number;
|
|
1135
|
+
invocationId?: string;
|
|
1136
|
+
} | {
|
|
1137
|
+
type?: "workspace_snapshot";
|
|
1138
|
+
digest?: string;
|
|
1139
|
+
snapshotId?: string;
|
|
1140
|
+
})[];
|
|
1141
|
+
};
|
|
1142
|
+
expectedRevision?: number;
|
|
1143
|
+
bindingId?: string;
|
|
1144
|
+
delivery?: {
|
|
1145
|
+
mode?: "none";
|
|
1146
|
+
} | {
|
|
1147
|
+
mode?: "files";
|
|
1148
|
+
paths?: string[];
|
|
1149
|
+
} | {
|
|
1150
|
+
mode?: "archive";
|
|
1151
|
+
paths?: string[];
|
|
1152
|
+
};
|
|
1153
|
+
}, {
|
|
1154
|
+
target?: {
|
|
1155
|
+
type?: "group_member";
|
|
1156
|
+
participantId?: string;
|
|
1157
|
+
};
|
|
778
1158
|
instructions?: string;
|
|
779
1159
|
taskId?: string;
|
|
780
1160
|
purpose?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TCopilotModel } from './copilot-model.model';
|
|
1
|
+
import type { ModelSelectionMetadata, TCopilotModel } from './copilot-model.model';
|
|
2
2
|
import type { VoiceTaskStatus } from './realtime-voice.transport';
|
|
3
3
|
/** Realtime is a separate model capability, not the Assistant's reasoning model. */
|
|
4
4
|
export interface RealtimeVoiceFeature {
|
|
@@ -18,7 +18,7 @@ export interface RealtimeModelMetadata {
|
|
|
18
18
|
defaultVoice: string;
|
|
19
19
|
notification: 'text' | 'next-turn';
|
|
20
20
|
}
|
|
21
|
-
export interface RealtimeModelOption extends RealtimeModelMetadata {
|
|
21
|
+
export interface RealtimeModelOption extends RealtimeModelMetadata, ModelSelectionMetadata {
|
|
22
22
|
id: string;
|
|
23
23
|
label: string;
|
|
24
24
|
copilotModel: TCopilotModel;
|
|
@@ -168,6 +168,7 @@ export interface IXpertProject extends TXpertProject, IBasePerTenantAndOrganizat
|
|
|
168
168
|
xperts?: IXpert[];
|
|
169
169
|
toolsets?: IXpertToolset[];
|
|
170
170
|
knowledges?: IKnowledgebase[];
|
|
171
|
+
/** @deprecated Legacy relation. Use memberships and the Project membership API for access management. */
|
|
171
172
|
members?: IUser[];
|
|
172
173
|
memberships?: IXpertProjectMembership[];
|
|
173
174
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBasePerTenantEntityModel } from '../base-entity.model';
|
|
2
2
|
import { IconDefinition, TAvatar } from '../types';
|
|
3
|
-
import { TCopilotModel } from './copilot-model.model';
|
|
3
|
+
import { ModelSelectionMetadata, TCopilotModel } from './copilot-model.model';
|
|
4
4
|
import { ModelFeature } from './ai-model.model';
|
|
5
5
|
import { MCPServerType, TMCPServer } from './xpert-tool-mcp.model';
|
|
6
6
|
import { XpertTypeEnum } from './xpert.model';
|
|
@@ -125,23 +125,12 @@ export interface AssistantCapabilityDeclaration {
|
|
|
125
125
|
required?: boolean;
|
|
126
126
|
}
|
|
127
127
|
/** Public model metadata for capability setup; never includes provider credentials or model configuration. */
|
|
128
|
-
export interface XpertTemplateModelOption {
|
|
128
|
+
export interface XpertTemplateModelOption extends ModelSelectionMetadata {
|
|
129
129
|
/** Opaque selection key; clients must submit it unchanged rather than reconstructing it. */
|
|
130
130
|
id: string;
|
|
131
131
|
label: string;
|
|
132
132
|
/** Model reference for installation; setup responses only project copilotId, model and modelType. */
|
|
133
133
|
copilotModel: TCopilotModel;
|
|
134
|
-
/** Display grouping by provider, not a credential scope. Optional for older setup endpoints. */
|
|
135
|
-
provider?: {
|
|
136
|
-
id: string;
|
|
137
|
-
label: string;
|
|
138
|
-
};
|
|
139
|
-
/** Display name that distinguishes multiple configured connections for the same provider. */
|
|
140
|
-
connectionName?: string;
|
|
141
|
-
/** Declared model features for badges/recommendations; installation still validates compatibility. */
|
|
142
|
-
features?: ModelFeature[];
|
|
143
|
-
/** Context capacity in tokens, not usage; omitted when the provider does not declare it. */
|
|
144
|
-
contextWindow?: number;
|
|
145
134
|
}
|
|
146
135
|
export interface XpertTemplateSetup {
|
|
147
136
|
/** ID of a compatible organization default in `models`; absent if none qualifies. */
|
package/src/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export * from './plain-object.model';
|
|
|
63
63
|
export * from './plugin';
|
|
64
64
|
export * from './view-extension';
|
|
65
65
|
export * from './runtime-control';
|
|
66
|
-
export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult } from './agent-plugin';
|
|
66
|
+
export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReference, RuntimeResourcesSelection, AgentPluginDiagnostic, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult, InstalledAgentPlugin } from './agent-plugin';
|
|
67
67
|
export * from './desktop-shell.model';
|
|
68
68
|
export * from './ai/agent-output-delivery.model';
|
|
69
69
|
export * from './ai/execution-activity.model';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AiModelTypeEnum } from './agent';
|
|
2
|
+
import type { ModelSelectionMetadata } from './ai/copilot-model.model';
|
|
2
3
|
import type { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
|
|
3
4
|
import type { PluginMarketplaceCategory } from './plugin';
|
|
4
5
|
import type { IconDefinition, I18nObject } from './types';
|
|
@@ -149,7 +150,7 @@ export interface IPluginApplicationInstallation extends IBasePerTenantAndOrganiz
|
|
|
149
150
|
errorMessage?: string | null;
|
|
150
151
|
}
|
|
151
152
|
/** Host-authorized model choice returned by application initialization preflight. */
|
|
152
|
-
export interface PluginApplicationModelOption {
|
|
153
|
+
export interface PluginApplicationModelOption extends ModelSelectionMetadata {
|
|
153
154
|
id: string;
|
|
154
155
|
copilotId: string;
|
|
155
156
|
model: string;
|
|
@@ -11,6 +11,9 @@ export interface IPlugin extends IBasePerTenantAndOrganizationEntityModel {
|
|
|
11
11
|
source?: PluginSource;
|
|
12
12
|
sourceConfig?: PluginSourceConfig | null;
|
|
13
13
|
level?: PluginLevel;
|
|
14
|
+
meta?: PluginMeta | null;
|
|
15
|
+
/** Persisted installation intent; live runtime reports determine actual availability. */
|
|
16
|
+
pendingRestart?: boolean;
|
|
14
17
|
config: Record<string, any>;
|
|
15
18
|
configurationStatus?: PluginConfigurationStatus | null;
|
|
16
19
|
configurationError?: string | null;
|
package/src/plugin.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const PLUGIN_CONFIGURATION_STATUS: {
|
|
|
29
29
|
};
|
|
30
30
|
export declare const PLUGIN_LOAD_STATUS: {
|
|
31
31
|
readonly LOADED: "loaded";
|
|
32
|
+
readonly PENDING_RESTART: "pending_restart";
|
|
32
33
|
readonly FAILED: "failed";
|
|
33
34
|
};
|
|
34
35
|
export declare const PLUGIN_COMPONENT_TYPE: {
|
|
@@ -72,7 +73,7 @@ export declare const PLUGIN_RESOURCE_ERROR_CODE: {
|
|
|
72
73
|
/**
|
|
73
74
|
* Classifies plugin scope and governance.
|
|
74
75
|
* - `system`: built-in/platform-managed plugin that users cannot install/uninstall from org APIs.
|
|
75
|
-
* - `tenant`: tenant-owned plugin
|
|
76
|
+
* - `tenant`: tenant-owned plugin shared across organizations in its owning tenant.
|
|
76
77
|
* - `organization`: tenant/org-managed plugin that can be installed and removed per organization.
|
|
77
78
|
*/
|
|
78
79
|
export type PluginLevel = (typeof PLUGIN_LEVEL)[keyof typeof PLUGIN_LEVEL];
|
|
@@ -309,7 +310,14 @@ export interface PluginCodeSourceConfig {
|
|
|
309
310
|
export interface PluginSourceConfig extends PluginCodeSourceConfig {
|
|
310
311
|
[key: string]: unknown;
|
|
311
312
|
}
|
|
313
|
+
export interface PluginRuntimePolicy {
|
|
314
|
+
install: 'hot' | 'restart';
|
|
315
|
+
update: 'hot' | 'restart';
|
|
316
|
+
uninstall: 'hot' | 'restart';
|
|
317
|
+
}
|
|
312
318
|
export interface PluginMeta {
|
|
319
|
+
/** Explicit lifecycle support, independent of scope. Declared in package.json xpert.plugin. */
|
|
320
|
+
runtimePolicy?: PluginRuntimePolicy;
|
|
313
321
|
name: PluginName;
|
|
314
322
|
version: string;
|
|
315
323
|
/**
|
package/src/runtime-control.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export declare const RUNTIME_RESTART_CONFIRMATION: "RESTART";
|
|
2
|
+
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */
|
|
3
|
+
export declare const RUNTIME_STREAM_INTERRUPTED_EVENT: "runtime-interrupted";
|
|
4
|
+
export interface IRuntimeStreamInterruption {
|
|
5
|
+
code: 'RUNTIME_RESTARTING';
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
2
8
|
export type RuntimeRestartMode = 'self-signal' | 'rolling-self-signal';
|
|
3
|
-
export type RuntimeRestartStatus = 'in_progress' | 'completed' | 'failed';
|
|
9
|
+
export type RuntimeRestartStatus = 'in_progress' | 'completed' | 'failed' | 'awaiting_restart';
|
|
4
10
|
export interface IRuntimePluginRequirement {
|
|
5
11
|
scopeKey: string;
|
|
6
12
|
pluginName: string;
|
|
@@ -23,6 +29,8 @@ export interface IRuntimeRestartRequest {
|
|
|
23
29
|
confirmation: typeof RUNTIME_RESTART_CONFIRMATION;
|
|
24
30
|
/** Optional non-sensitive reason written to the structured server audit log. */
|
|
25
31
|
reason?: string;
|
|
32
|
+
/** Explicitly permit restarting the last healthy replica during an operator-approved outage. Defaults to false. */
|
|
33
|
+
allowDowntime?: boolean;
|
|
26
34
|
/** Plugin runtime state that every replacement process must confirm after boot. */
|
|
27
35
|
runtimeRequirements?: IRuntimePluginRequirement[];
|
|
28
36
|
}
|
|
@@ -58,7 +66,7 @@ export interface IPluginRuntimeConvergenceStatus {
|
|
|
58
66
|
error?: string;
|
|
59
67
|
}
|
|
60
68
|
export interface IRuntimeReadiness {
|
|
61
|
-
status: 'ready' | 'draining';
|
|
69
|
+
status: 'ready' | 'draining' | 'unready';
|
|
62
70
|
instanceId: string;
|
|
63
71
|
activeRequests: number;
|
|
64
72
|
restartId?: string;
|
|
@@ -3,6 +3,11 @@ import { _TFile } from './types';
|
|
|
3
3
|
export type TFile = _TFile & {
|
|
4
4
|
fileType?: string;
|
|
5
5
|
contents?: string;
|
|
6
|
+
/** Authority resolved by the file service for this request, never inferred from MIME or identity. */
|
|
7
|
+
capabilities?: {
|
|
8
|
+
canRead: boolean;
|
|
9
|
+
canWrite: boolean;
|
|
10
|
+
};
|
|
6
11
|
previewText?: string;
|
|
7
12
|
description?: string;
|
|
8
13
|
size?: number;
|