@copilotkit/runtime 1.5.15-next.6 → 1.5.15-next.8
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/CHANGELOG.md +16 -0
- package/__snapshots__/schema/schema.graphql +14 -1
- package/dist/{chunk-AJWO2KBE.mjs → chunk-253HES6R.mjs} +2 -2
- package/dist/{chunk-MKC4PI66.mjs → chunk-5EJIMI36.mjs} +2 -2
- package/dist/{chunk-EMZY3B5S.mjs → chunk-HG6ZQKQW.mjs} +551 -425
- package/dist/chunk-HG6ZQKQW.mjs.map +1 -0
- package/dist/{chunk-OI2VCNPX.mjs → chunk-R7GOSVTA.mjs} +2 -2
- package/dist/{copilot-runtime-a113045f.d.ts → copilot-runtime-3e7f1c7b.d.ts} +5 -4
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/{groq-adapter-248058e8.d.ts → groq-adapter-3b894689.d.ts} +1 -1
- package/dist/{index-a7f37670.d.ts → index-f6d1f30b.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1296 -1170
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-9580bd66.d.ts → langserve-3a591089.d.ts} +11 -3
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +1296 -1170
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +493 -400
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +3 -3
- package/dist/lib/integrations/nest/index.js +493 -400
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +3 -3
- package/dist/lib/integrations/node-express/index.js +493 -400
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +3 -3
- package/dist/lib/integrations/node-http/index.js +493 -400
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +4 -4
- package/package.json +2 -2
- package/src/agents/langgraph/event-source.ts +7 -0
- package/src/agents/langgraph/events.ts +11 -1
- package/src/graphql/inputs/meta-event.input.ts +4 -3
- package/src/graphql/resolvers/copilot.resolver.ts +44 -1
- package/src/graphql/types/copilot-response.type.ts +1 -3
- package/src/graphql/types/meta-events.type.ts +41 -1
- package/src/lib/runtime/copilot-runtime.ts +18 -9
- package/src/lib/runtime/remote-lg-action.ts +44 -19
- package/src/service-adapters/events.ts +8 -2
- package/dist/chunk-EMZY3B5S.mjs.map +0 -1
- /package/dist/{chunk-AJWO2KBE.mjs.map → chunk-253HES6R.mjs.map} +0 -0
- /package/dist/{chunk-MKC4PI66.mjs.map → chunk-5EJIMI36.mjs.map} +0 -0
- /package/dist/{chunk-OI2VCNPX.mjs.map → chunk-R7GOSVTA.mjs.map} +0 -0
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.15-next.
|
|
47
|
+
version: "1.5.15-next.8",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -137,7 +137,7 @@ var import_type_graphql20 = require("type-graphql");
|
|
|
137
137
|
var import_rxjs3 = require("rxjs");
|
|
138
138
|
|
|
139
139
|
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
140
|
-
var
|
|
140
|
+
var import_type_graphql18 = require("type-graphql");
|
|
141
141
|
|
|
142
142
|
// src/graphql/inputs/message.input.ts
|
|
143
143
|
var import_type_graphql3 = require("type-graphql");
|
|
@@ -779,9 +779,15 @@ OpenAIApiAssistantAPIInput = _ts_decorate10([
|
|
|
779
779
|
], OpenAIApiAssistantAPIInput);
|
|
780
780
|
|
|
781
781
|
// src/graphql/inputs/meta-event.input.ts
|
|
782
|
-
var
|
|
782
|
+
var import_type_graphql17 = require("type-graphql");
|
|
783
783
|
|
|
784
784
|
// src/graphql/types/meta-events.type.ts
|
|
785
|
+
var import_type_graphql16 = require("type-graphql");
|
|
786
|
+
|
|
787
|
+
// src/graphql/types/copilot-response.type.ts
|
|
788
|
+
var import_type_graphql15 = require("type-graphql");
|
|
789
|
+
|
|
790
|
+
// src/graphql/types/message-status.type.ts
|
|
785
791
|
var import_type_graphql12 = require("type-graphql");
|
|
786
792
|
function _ts_decorate11(decorators, target, key, desc) {
|
|
787
793
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -799,292 +805,52 @@ function _ts_metadata11(k, v) {
|
|
|
799
805
|
return Reflect.metadata(k, v);
|
|
800
806
|
}
|
|
801
807
|
__name(_ts_metadata11, "_ts_metadata");
|
|
802
|
-
var MetaEventName;
|
|
803
|
-
(function(MetaEventName2) {
|
|
804
|
-
MetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
805
|
-
})(MetaEventName || (MetaEventName = {}));
|
|
806
|
-
(0, import_type_graphql12.registerEnumType)(MetaEventName, {
|
|
807
|
-
name: "MetaEventName",
|
|
808
|
-
description: "Meta event types"
|
|
809
|
-
});
|
|
810
|
-
var BaseMetaEvent = class {
|
|
811
|
-
type = "MetaEvent";
|
|
812
|
-
name;
|
|
813
|
-
};
|
|
814
|
-
__name(BaseMetaEvent, "BaseMetaEvent");
|
|
815
|
-
_ts_decorate11([
|
|
816
|
-
(0, import_type_graphql12.Field)(() => String),
|
|
817
|
-
_ts_metadata11("design:type", String)
|
|
818
|
-
], BaseMetaEvent.prototype, "type", void 0);
|
|
819
|
-
_ts_decorate11([
|
|
820
|
-
(0, import_type_graphql12.Field)(() => MetaEventName),
|
|
821
|
-
_ts_metadata11("design:type", String)
|
|
822
|
-
], BaseMetaEvent.prototype, "name", void 0);
|
|
823
|
-
BaseMetaEvent = _ts_decorate11([
|
|
824
|
-
(0, import_type_graphql12.InterfaceType)()
|
|
825
|
-
], BaseMetaEvent);
|
|
826
|
-
var LangGraphInterruptEvent = class {
|
|
827
|
-
name = "LangGraphInterruptEvent";
|
|
828
|
-
value;
|
|
829
|
-
response;
|
|
830
|
-
};
|
|
831
|
-
__name(LangGraphInterruptEvent, "LangGraphInterruptEvent");
|
|
832
|
-
_ts_decorate11([
|
|
833
|
-
(0, import_type_graphql12.Field)(() => MetaEventName),
|
|
834
|
-
_ts_metadata11("design:type", typeof MetaEventName === "undefined" || false ? Object : "LangGraphInterruptEvent")
|
|
835
|
-
], LangGraphInterruptEvent.prototype, "name", void 0);
|
|
836
|
-
_ts_decorate11([
|
|
837
|
-
(0, import_type_graphql12.Field)(() => String),
|
|
838
|
-
_ts_metadata11("design:type", String)
|
|
839
|
-
], LangGraphInterruptEvent.prototype, "value", void 0);
|
|
840
|
-
_ts_decorate11([
|
|
841
|
-
(0, import_type_graphql12.Field)(() => String, {
|
|
842
|
-
nullable: true
|
|
843
|
-
}),
|
|
844
|
-
_ts_metadata11("design:type", String)
|
|
845
|
-
], LangGraphInterruptEvent.prototype, "response", void 0);
|
|
846
|
-
LangGraphInterruptEvent = _ts_decorate11([
|
|
847
|
-
(0, import_type_graphql12.ObjectType)({
|
|
848
|
-
implements: BaseMetaEvent
|
|
849
|
-
})
|
|
850
|
-
], LangGraphInterruptEvent);
|
|
851
|
-
|
|
852
|
-
// src/graphql/inputs/meta-event.input.ts
|
|
853
|
-
function _ts_decorate12(decorators, target, key, desc) {
|
|
854
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
855
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
856
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
857
|
-
else
|
|
858
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
859
|
-
if (d = decorators[i])
|
|
860
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
861
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
862
|
-
}
|
|
863
|
-
__name(_ts_decorate12, "_ts_decorate");
|
|
864
|
-
function _ts_metadata12(k, v) {
|
|
865
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
866
|
-
return Reflect.metadata(k, v);
|
|
867
|
-
}
|
|
868
|
-
__name(_ts_metadata12, "_ts_metadata");
|
|
869
|
-
var MetaEventInput = class {
|
|
870
|
-
type = "MetaEvent";
|
|
871
|
-
name;
|
|
872
|
-
value;
|
|
873
|
-
response;
|
|
874
|
-
};
|
|
875
|
-
__name(MetaEventInput, "MetaEventInput");
|
|
876
|
-
_ts_decorate12([
|
|
877
|
-
(0, import_type_graphql13.Field)(() => String),
|
|
878
|
-
_ts_metadata12("design:type", String)
|
|
879
|
-
], MetaEventInput.prototype, "type", void 0);
|
|
880
|
-
_ts_decorate12([
|
|
881
|
-
(0, import_type_graphql13.Field)(() => MetaEventName),
|
|
882
|
-
_ts_metadata12("design:type", typeof MetaEventName === "undefined" ? Object : MetaEventName)
|
|
883
|
-
], MetaEventInput.prototype, "name", void 0);
|
|
884
|
-
_ts_decorate12([
|
|
885
|
-
(0, import_type_graphql13.Field)(() => String),
|
|
886
|
-
_ts_metadata12("design:type", String)
|
|
887
|
-
], MetaEventInput.prototype, "value", void 0);
|
|
888
|
-
_ts_decorate12([
|
|
889
|
-
(0, import_type_graphql13.Field)(() => String, {
|
|
890
|
-
nullable: true
|
|
891
|
-
}),
|
|
892
|
-
_ts_metadata12("design:type", String)
|
|
893
|
-
], MetaEventInput.prototype, "response", void 0);
|
|
894
|
-
MetaEventInput = _ts_decorate12([
|
|
895
|
-
(0, import_type_graphql13.InputType)()
|
|
896
|
-
], MetaEventInput);
|
|
897
|
-
|
|
898
|
-
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
899
|
-
function _ts_decorate13(decorators, target, key, desc) {
|
|
900
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
901
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
902
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
903
|
-
else
|
|
904
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
905
|
-
if (d = decorators[i])
|
|
906
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
907
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
908
|
-
}
|
|
909
|
-
__name(_ts_decorate13, "_ts_decorate");
|
|
910
|
-
function _ts_metadata13(k, v) {
|
|
911
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
912
|
-
return Reflect.metadata(k, v);
|
|
913
|
-
}
|
|
914
|
-
__name(_ts_metadata13, "_ts_metadata");
|
|
915
|
-
var GenerateCopilotResponseMetadataInput = class {
|
|
916
|
-
requestType;
|
|
917
|
-
};
|
|
918
|
-
__name(GenerateCopilotResponseMetadataInput, "GenerateCopilotResponseMetadataInput");
|
|
919
|
-
_ts_decorate13([
|
|
920
|
-
(0, import_type_graphql14.Field)(() => CopilotRequestType, {
|
|
921
|
-
nullable: true
|
|
922
|
-
}),
|
|
923
|
-
_ts_metadata13("design:type", typeof CopilotRequestType === "undefined" ? Object : CopilotRequestType)
|
|
924
|
-
], GenerateCopilotResponseMetadataInput.prototype, "requestType", void 0);
|
|
925
|
-
GenerateCopilotResponseMetadataInput = _ts_decorate13([
|
|
926
|
-
(0, import_type_graphql14.InputType)()
|
|
927
|
-
], GenerateCopilotResponseMetadataInput);
|
|
928
|
-
var GenerateCopilotResponseInput = class {
|
|
929
|
-
metadata;
|
|
930
|
-
threadId;
|
|
931
|
-
runId;
|
|
932
|
-
messages;
|
|
933
|
-
frontend;
|
|
934
|
-
cloud;
|
|
935
|
-
forwardedParameters;
|
|
936
|
-
agentSession;
|
|
937
|
-
agentState;
|
|
938
|
-
agentStates;
|
|
939
|
-
extensions;
|
|
940
|
-
metaEvents;
|
|
941
|
-
};
|
|
942
|
-
__name(GenerateCopilotResponseInput, "GenerateCopilotResponseInput");
|
|
943
|
-
_ts_decorate13([
|
|
944
|
-
(0, import_type_graphql14.Field)(() => GenerateCopilotResponseMetadataInput, {
|
|
945
|
-
nullable: false
|
|
946
|
-
}),
|
|
947
|
-
_ts_metadata13("design:type", typeof GenerateCopilotResponseMetadataInput === "undefined" ? Object : GenerateCopilotResponseMetadataInput)
|
|
948
|
-
], GenerateCopilotResponseInput.prototype, "metadata", void 0);
|
|
949
|
-
_ts_decorate13([
|
|
950
|
-
(0, import_type_graphql14.Field)(() => String, {
|
|
951
|
-
nullable: true
|
|
952
|
-
}),
|
|
953
|
-
_ts_metadata13("design:type", String)
|
|
954
|
-
], GenerateCopilotResponseInput.prototype, "threadId", void 0);
|
|
955
|
-
_ts_decorate13([
|
|
956
|
-
(0, import_type_graphql14.Field)(() => String, {
|
|
957
|
-
nullable: true
|
|
958
|
-
}),
|
|
959
|
-
_ts_metadata13("design:type", String)
|
|
960
|
-
], GenerateCopilotResponseInput.prototype, "runId", void 0);
|
|
961
|
-
_ts_decorate13([
|
|
962
|
-
(0, import_type_graphql14.Field)(() => [
|
|
963
|
-
MessageInput
|
|
964
|
-
]),
|
|
965
|
-
_ts_metadata13("design:type", Array)
|
|
966
|
-
], GenerateCopilotResponseInput.prototype, "messages", void 0);
|
|
967
|
-
_ts_decorate13([
|
|
968
|
-
(0, import_type_graphql14.Field)(() => FrontendInput),
|
|
969
|
-
_ts_metadata13("design:type", typeof FrontendInput === "undefined" ? Object : FrontendInput)
|
|
970
|
-
], GenerateCopilotResponseInput.prototype, "frontend", void 0);
|
|
971
|
-
_ts_decorate13([
|
|
972
|
-
(0, import_type_graphql14.Field)(() => CloudInput, {
|
|
973
|
-
nullable: true
|
|
974
|
-
}),
|
|
975
|
-
_ts_metadata13("design:type", typeof CloudInput === "undefined" ? Object : CloudInput)
|
|
976
|
-
], GenerateCopilotResponseInput.prototype, "cloud", void 0);
|
|
977
|
-
_ts_decorate13([
|
|
978
|
-
(0, import_type_graphql14.Field)(() => ForwardedParametersInput, {
|
|
979
|
-
nullable: true
|
|
980
|
-
}),
|
|
981
|
-
_ts_metadata13("design:type", typeof ForwardedParametersInput === "undefined" ? Object : ForwardedParametersInput)
|
|
982
|
-
], GenerateCopilotResponseInput.prototype, "forwardedParameters", void 0);
|
|
983
|
-
_ts_decorate13([
|
|
984
|
-
(0, import_type_graphql14.Field)(() => AgentSessionInput, {
|
|
985
|
-
nullable: true
|
|
986
|
-
}),
|
|
987
|
-
_ts_metadata13("design:type", typeof AgentSessionInput === "undefined" ? Object : AgentSessionInput)
|
|
988
|
-
], GenerateCopilotResponseInput.prototype, "agentSession", void 0);
|
|
989
|
-
_ts_decorate13([
|
|
990
|
-
(0, import_type_graphql14.Field)(() => AgentStateInput, {
|
|
991
|
-
nullable: true
|
|
992
|
-
}),
|
|
993
|
-
_ts_metadata13("design:type", typeof AgentStateInput === "undefined" ? Object : AgentStateInput)
|
|
994
|
-
], GenerateCopilotResponseInput.prototype, "agentState", void 0);
|
|
995
|
-
_ts_decorate13([
|
|
996
|
-
(0, import_type_graphql14.Field)(() => [
|
|
997
|
-
AgentStateInput
|
|
998
|
-
], {
|
|
999
|
-
nullable: true
|
|
1000
|
-
}),
|
|
1001
|
-
_ts_metadata13("design:type", Array)
|
|
1002
|
-
], GenerateCopilotResponseInput.prototype, "agentStates", void 0);
|
|
1003
|
-
_ts_decorate13([
|
|
1004
|
-
(0, import_type_graphql14.Field)(() => ExtensionsInput, {
|
|
1005
|
-
nullable: true
|
|
1006
|
-
}),
|
|
1007
|
-
_ts_metadata13("design:type", typeof ExtensionsInput === "undefined" ? Object : ExtensionsInput)
|
|
1008
|
-
], GenerateCopilotResponseInput.prototype, "extensions", void 0);
|
|
1009
|
-
_ts_decorate13([
|
|
1010
|
-
(0, import_type_graphql14.Field)(() => [
|
|
1011
|
-
MetaEventInput
|
|
1012
|
-
], {
|
|
1013
|
-
nullable: true
|
|
1014
|
-
}),
|
|
1015
|
-
_ts_metadata13("design:type", Array)
|
|
1016
|
-
], GenerateCopilotResponseInput.prototype, "metaEvents", void 0);
|
|
1017
|
-
GenerateCopilotResponseInput = _ts_decorate13([
|
|
1018
|
-
(0, import_type_graphql14.InputType)()
|
|
1019
|
-
], GenerateCopilotResponseInput);
|
|
1020
|
-
|
|
1021
|
-
// src/graphql/types/copilot-response.type.ts
|
|
1022
|
-
var import_type_graphql18 = require("type-graphql");
|
|
1023
|
-
|
|
1024
|
-
// src/graphql/types/message-status.type.ts
|
|
1025
|
-
var import_type_graphql15 = require("type-graphql");
|
|
1026
|
-
function _ts_decorate14(decorators, target, key, desc) {
|
|
1027
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1028
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1029
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
1030
|
-
else
|
|
1031
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1032
|
-
if (d = decorators[i])
|
|
1033
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1034
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1035
|
-
}
|
|
1036
|
-
__name(_ts_decorate14, "_ts_decorate");
|
|
1037
|
-
function _ts_metadata14(k, v) {
|
|
1038
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1039
|
-
return Reflect.metadata(k, v);
|
|
1040
|
-
}
|
|
1041
|
-
__name(_ts_metadata14, "_ts_metadata");
|
|
1042
808
|
var MessageStatusCode;
|
|
1043
809
|
(function(MessageStatusCode2) {
|
|
1044
810
|
MessageStatusCode2["Pending"] = "pending";
|
|
1045
811
|
MessageStatusCode2["Success"] = "success";
|
|
1046
812
|
MessageStatusCode2["Failed"] = "failed";
|
|
1047
813
|
})(MessageStatusCode || (MessageStatusCode = {}));
|
|
1048
|
-
(0,
|
|
814
|
+
(0, import_type_graphql12.registerEnumType)(MessageStatusCode, {
|
|
1049
815
|
name: "MessageStatusCode"
|
|
1050
816
|
});
|
|
1051
817
|
var BaseMessageStatus = /* @__PURE__ */ __name(class BaseMessageStatus2 {
|
|
1052
818
|
code;
|
|
1053
819
|
}, "BaseMessageStatus");
|
|
1054
|
-
|
|
1055
|
-
(0,
|
|
1056
|
-
|
|
820
|
+
_ts_decorate11([
|
|
821
|
+
(0, import_type_graphql12.Field)(() => MessageStatusCode),
|
|
822
|
+
_ts_metadata11("design:type", String)
|
|
1057
823
|
], BaseMessageStatus.prototype, "code", void 0);
|
|
1058
|
-
BaseMessageStatus =
|
|
1059
|
-
(0,
|
|
824
|
+
BaseMessageStatus = _ts_decorate11([
|
|
825
|
+
(0, import_type_graphql12.ObjectType)()
|
|
1060
826
|
], BaseMessageStatus);
|
|
1061
827
|
var PendingMessageStatus = class extends BaseMessageStatus {
|
|
1062
828
|
code = "pending";
|
|
1063
829
|
};
|
|
1064
830
|
__name(PendingMessageStatus, "PendingMessageStatus");
|
|
1065
|
-
PendingMessageStatus =
|
|
1066
|
-
(0,
|
|
831
|
+
PendingMessageStatus = _ts_decorate11([
|
|
832
|
+
(0, import_type_graphql12.ObjectType)()
|
|
1067
833
|
], PendingMessageStatus);
|
|
1068
834
|
var SuccessMessageStatus = class extends BaseMessageStatus {
|
|
1069
835
|
code = "success";
|
|
1070
836
|
};
|
|
1071
837
|
__name(SuccessMessageStatus, "SuccessMessageStatus");
|
|
1072
|
-
SuccessMessageStatus =
|
|
1073
|
-
(0,
|
|
838
|
+
SuccessMessageStatus = _ts_decorate11([
|
|
839
|
+
(0, import_type_graphql12.ObjectType)()
|
|
1074
840
|
], SuccessMessageStatus);
|
|
1075
841
|
var FailedMessageStatus = class extends BaseMessageStatus {
|
|
1076
842
|
code = "failed";
|
|
1077
843
|
reason;
|
|
1078
844
|
};
|
|
1079
845
|
__name(FailedMessageStatus, "FailedMessageStatus");
|
|
1080
|
-
|
|
1081
|
-
(0,
|
|
1082
|
-
|
|
846
|
+
_ts_decorate11([
|
|
847
|
+
(0, import_type_graphql12.Field)(() => String),
|
|
848
|
+
_ts_metadata11("design:type", String)
|
|
1083
849
|
], FailedMessageStatus.prototype, "reason", void 0);
|
|
1084
|
-
FailedMessageStatus =
|
|
1085
|
-
(0,
|
|
850
|
+
FailedMessageStatus = _ts_decorate11([
|
|
851
|
+
(0, import_type_graphql12.ObjectType)()
|
|
1086
852
|
], FailedMessageStatus);
|
|
1087
|
-
var MessageStatusUnion = (0,
|
|
853
|
+
var MessageStatusUnion = (0, import_type_graphql12.createUnionType)({
|
|
1088
854
|
name: "MessageStatus",
|
|
1089
855
|
types: () => [
|
|
1090
856
|
PendingMessageStatus,
|
|
@@ -1095,8 +861,8 @@ var MessageStatusUnion = (0, import_type_graphql15.createUnionType)({
|
|
|
1095
861
|
|
|
1096
862
|
// src/graphql/types/response-status.type.ts
|
|
1097
863
|
var import_graphql_scalars = require("graphql-scalars");
|
|
1098
|
-
var
|
|
1099
|
-
function
|
|
864
|
+
var import_type_graphql13 = require("type-graphql");
|
|
865
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
1100
866
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1101
867
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1102
868
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1106,30 +872,30 @@ function _ts_decorate15(decorators, target, key, desc) {
|
|
|
1106
872
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1107
873
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1108
874
|
}
|
|
1109
|
-
__name(
|
|
1110
|
-
function
|
|
875
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
876
|
+
function _ts_metadata12(k, v) {
|
|
1111
877
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1112
878
|
return Reflect.metadata(k, v);
|
|
1113
879
|
}
|
|
1114
|
-
__name(
|
|
880
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
1115
881
|
var ResponseStatusCode;
|
|
1116
882
|
(function(ResponseStatusCode2) {
|
|
1117
883
|
ResponseStatusCode2["Pending"] = "pending";
|
|
1118
884
|
ResponseStatusCode2["Success"] = "success";
|
|
1119
885
|
ResponseStatusCode2["Failed"] = "failed";
|
|
1120
886
|
})(ResponseStatusCode || (ResponseStatusCode = {}));
|
|
1121
|
-
(0,
|
|
887
|
+
(0, import_type_graphql13.registerEnumType)(ResponseStatusCode, {
|
|
1122
888
|
name: "ResponseStatusCode"
|
|
1123
889
|
});
|
|
1124
890
|
var BaseResponseStatus = /* @__PURE__ */ __name(class BaseResponseStatus2 {
|
|
1125
891
|
code;
|
|
1126
892
|
}, "BaseResponseStatus");
|
|
1127
|
-
|
|
1128
|
-
(0,
|
|
1129
|
-
|
|
893
|
+
_ts_decorate12([
|
|
894
|
+
(0, import_type_graphql13.Field)(() => ResponseStatusCode),
|
|
895
|
+
_ts_metadata12("design:type", String)
|
|
1130
896
|
], BaseResponseStatus.prototype, "code", void 0);
|
|
1131
|
-
BaseResponseStatus =
|
|
1132
|
-
(0,
|
|
897
|
+
BaseResponseStatus = _ts_decorate12([
|
|
898
|
+
(0, import_type_graphql13.InterfaceType)({
|
|
1133
899
|
resolveType(value) {
|
|
1134
900
|
if (value.code === "success") {
|
|
1135
901
|
return SuccessResponseStatus;
|
|
@@ -1141,14 +907,14 @@ BaseResponseStatus = _ts_decorate15([
|
|
|
1141
907
|
return void 0;
|
|
1142
908
|
}
|
|
1143
909
|
}),
|
|
1144
|
-
(0,
|
|
910
|
+
(0, import_type_graphql13.ObjectType)()
|
|
1145
911
|
], BaseResponseStatus);
|
|
1146
912
|
var PendingResponseStatus = class extends BaseResponseStatus {
|
|
1147
913
|
code = "pending";
|
|
1148
914
|
};
|
|
1149
915
|
__name(PendingResponseStatus, "PendingResponseStatus");
|
|
1150
|
-
PendingResponseStatus =
|
|
1151
|
-
(0,
|
|
916
|
+
PendingResponseStatus = _ts_decorate12([
|
|
917
|
+
(0, import_type_graphql13.ObjectType)({
|
|
1152
918
|
implements: BaseResponseStatus
|
|
1153
919
|
})
|
|
1154
920
|
], PendingResponseStatus);
|
|
@@ -1156,8 +922,8 @@ var SuccessResponseStatus = class extends BaseResponseStatus {
|
|
|
1156
922
|
code = "success";
|
|
1157
923
|
};
|
|
1158
924
|
__name(SuccessResponseStatus, "SuccessResponseStatus");
|
|
1159
|
-
SuccessResponseStatus =
|
|
1160
|
-
(0,
|
|
925
|
+
SuccessResponseStatus = _ts_decorate12([
|
|
926
|
+
(0, import_type_graphql13.ObjectType)({
|
|
1161
927
|
implements: BaseResponseStatus
|
|
1162
928
|
})
|
|
1163
929
|
], SuccessResponseStatus);
|
|
@@ -1167,7 +933,7 @@ var FailedResponseStatusReason;
|
|
|
1167
933
|
FailedResponseStatusReason2["MESSAGE_STREAM_INTERRUPTED"] = "MESSAGE_STREAM_INTERRUPTED";
|
|
1168
934
|
FailedResponseStatusReason2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
1169
935
|
})(FailedResponseStatusReason || (FailedResponseStatusReason = {}));
|
|
1170
|
-
(0,
|
|
936
|
+
(0, import_type_graphql13.registerEnumType)(FailedResponseStatusReason, {
|
|
1171
937
|
name: "FailedResponseStatusReason"
|
|
1172
938
|
});
|
|
1173
939
|
var FailedResponseStatus = class extends BaseResponseStatus {
|
|
@@ -1176,22 +942,22 @@ var FailedResponseStatus = class extends BaseResponseStatus {
|
|
|
1176
942
|
details = null;
|
|
1177
943
|
};
|
|
1178
944
|
__name(FailedResponseStatus, "FailedResponseStatus");
|
|
1179
|
-
|
|
1180
|
-
(0,
|
|
1181
|
-
|
|
945
|
+
_ts_decorate12([
|
|
946
|
+
(0, import_type_graphql13.Field)(() => FailedResponseStatusReason),
|
|
947
|
+
_ts_metadata12("design:type", String)
|
|
1182
948
|
], FailedResponseStatus.prototype, "reason", void 0);
|
|
1183
|
-
|
|
1184
|
-
(0,
|
|
949
|
+
_ts_decorate12([
|
|
950
|
+
(0, import_type_graphql13.Field)(() => import_graphql_scalars.GraphQLJSON, {
|
|
1185
951
|
nullable: true
|
|
1186
952
|
}),
|
|
1187
|
-
|
|
953
|
+
_ts_metadata12("design:type", typeof Record === "undefined" ? Object : Record)
|
|
1188
954
|
], FailedResponseStatus.prototype, "details", void 0);
|
|
1189
|
-
FailedResponseStatus =
|
|
1190
|
-
(0,
|
|
955
|
+
FailedResponseStatus = _ts_decorate12([
|
|
956
|
+
(0, import_type_graphql13.ObjectType)({
|
|
1191
957
|
implements: BaseResponseStatus
|
|
1192
958
|
})
|
|
1193
959
|
], FailedResponseStatus);
|
|
1194
|
-
var ResponseStatusUnion = (0,
|
|
960
|
+
var ResponseStatusUnion = (0, import_type_graphql13.createUnionType)({
|
|
1195
961
|
name: "ResponseStatus",
|
|
1196
962
|
types: () => [
|
|
1197
963
|
PendingResponseStatus,
|
|
@@ -1201,8 +967,8 @@ var ResponseStatusUnion = (0, import_type_graphql16.createUnionType)({
|
|
|
1201
967
|
});
|
|
1202
968
|
|
|
1203
969
|
// src/graphql/types/extensions-response.type.ts
|
|
1204
|
-
var
|
|
1205
|
-
function
|
|
970
|
+
var import_type_graphql14 = require("type-graphql");
|
|
971
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
1206
972
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1207
973
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1208
974
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1212,48 +978,48 @@ function _ts_decorate16(decorators, target, key, desc) {
|
|
|
1212
978
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1213
979
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1214
980
|
}
|
|
1215
|
-
__name(
|
|
1216
|
-
function
|
|
981
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
982
|
+
function _ts_metadata13(k, v) {
|
|
1217
983
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1218
984
|
return Reflect.metadata(k, v);
|
|
1219
985
|
}
|
|
1220
|
-
__name(
|
|
986
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
1221
987
|
var ExtensionsResponse = class {
|
|
1222
988
|
openaiAssistantAPI;
|
|
1223
989
|
};
|
|
1224
990
|
__name(ExtensionsResponse, "ExtensionsResponse");
|
|
1225
|
-
|
|
1226
|
-
(0,
|
|
991
|
+
_ts_decorate13([
|
|
992
|
+
(0, import_type_graphql14.Field)(() => OpenAIApiAssistantAPIResponse, {
|
|
1227
993
|
nullable: true
|
|
1228
994
|
}),
|
|
1229
|
-
|
|
995
|
+
_ts_metadata13("design:type", typeof OpenAIApiAssistantAPIResponse === "undefined" ? Object : OpenAIApiAssistantAPIResponse)
|
|
1230
996
|
], ExtensionsResponse.prototype, "openaiAssistantAPI", void 0);
|
|
1231
|
-
ExtensionsResponse =
|
|
1232
|
-
(0,
|
|
997
|
+
ExtensionsResponse = _ts_decorate13([
|
|
998
|
+
(0, import_type_graphql14.ObjectType)()
|
|
1233
999
|
], ExtensionsResponse);
|
|
1234
1000
|
var OpenAIApiAssistantAPIResponse = class {
|
|
1235
1001
|
runId;
|
|
1236
1002
|
threadId;
|
|
1237
1003
|
};
|
|
1238
1004
|
__name(OpenAIApiAssistantAPIResponse, "OpenAIApiAssistantAPIResponse");
|
|
1239
|
-
|
|
1240
|
-
(0,
|
|
1005
|
+
_ts_decorate13([
|
|
1006
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
1241
1007
|
nullable: true
|
|
1242
1008
|
}),
|
|
1243
|
-
|
|
1009
|
+
_ts_metadata13("design:type", String)
|
|
1244
1010
|
], OpenAIApiAssistantAPIResponse.prototype, "runId", void 0);
|
|
1245
|
-
|
|
1246
|
-
(0,
|
|
1011
|
+
_ts_decorate13([
|
|
1012
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
1247
1013
|
nullable: true
|
|
1248
1014
|
}),
|
|
1249
|
-
|
|
1015
|
+
_ts_metadata13("design:type", String)
|
|
1250
1016
|
], OpenAIApiAssistantAPIResponse.prototype, "threadId", void 0);
|
|
1251
|
-
OpenAIApiAssistantAPIResponse =
|
|
1252
|
-
(0,
|
|
1017
|
+
OpenAIApiAssistantAPIResponse = _ts_decorate13([
|
|
1018
|
+
(0, import_type_graphql14.ObjectType)()
|
|
1253
1019
|
], OpenAIApiAssistantAPIResponse);
|
|
1254
1020
|
|
|
1255
1021
|
// src/graphql/types/copilot-response.type.ts
|
|
1256
|
-
function
|
|
1022
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
1257
1023
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1258
1024
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1259
1025
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1263,32 +1029,32 @@ function _ts_decorate17(decorators, target, key, desc) {
|
|
|
1263
1029
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1264
1030
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1265
1031
|
}
|
|
1266
|
-
__name(
|
|
1267
|
-
function
|
|
1032
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
1033
|
+
function _ts_metadata14(k, v) {
|
|
1268
1034
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1269
1035
|
return Reflect.metadata(k, v);
|
|
1270
1036
|
}
|
|
1271
|
-
__name(
|
|
1037
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
1272
1038
|
var BaseMessageOutput = class {
|
|
1273
1039
|
id;
|
|
1274
1040
|
createdAt;
|
|
1275
1041
|
status;
|
|
1276
1042
|
};
|
|
1277
1043
|
__name(BaseMessageOutput, "BaseMessageOutput");
|
|
1278
|
-
|
|
1279
|
-
(0,
|
|
1280
|
-
|
|
1044
|
+
_ts_decorate14([
|
|
1045
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1046
|
+
_ts_metadata14("design:type", String)
|
|
1281
1047
|
], BaseMessageOutput.prototype, "id", void 0);
|
|
1282
|
-
|
|
1283
|
-
(0,
|
|
1284
|
-
|
|
1048
|
+
_ts_decorate14([
|
|
1049
|
+
(0, import_type_graphql15.Field)(() => Date),
|
|
1050
|
+
_ts_metadata14("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1285
1051
|
], BaseMessageOutput.prototype, "createdAt", void 0);
|
|
1286
|
-
|
|
1287
|
-
(0,
|
|
1288
|
-
|
|
1052
|
+
_ts_decorate14([
|
|
1053
|
+
(0, import_type_graphql15.Field)(() => MessageStatusUnion),
|
|
1054
|
+
_ts_metadata14("design:type", Object)
|
|
1289
1055
|
], BaseMessageOutput.prototype, "status", void 0);
|
|
1290
|
-
BaseMessageOutput =
|
|
1291
|
-
(0,
|
|
1056
|
+
BaseMessageOutput = _ts_decorate14([
|
|
1057
|
+
(0, import_type_graphql15.InterfaceType)({
|
|
1292
1058
|
resolveType(value) {
|
|
1293
1059
|
if (value.hasOwnProperty("content")) {
|
|
1294
1060
|
return TextMessageOutput;
|
|
@@ -1298,8 +1064,6 @@ BaseMessageOutput = _ts_decorate17([
|
|
|
1298
1064
|
return ResultMessageOutput;
|
|
1299
1065
|
} else if (value.hasOwnProperty("state")) {
|
|
1300
1066
|
return AgentStateMessageOutput;
|
|
1301
|
-
} else if (value.name === MetaEventName.LangGraphInterruptEvent) {
|
|
1302
|
-
return LangGraphInterruptEvent;
|
|
1303
1067
|
}
|
|
1304
1068
|
return void 0;
|
|
1305
1069
|
}
|
|
@@ -1311,24 +1075,24 @@ var TextMessageOutput = class {
|
|
|
1311
1075
|
parentMessageId;
|
|
1312
1076
|
};
|
|
1313
1077
|
__name(TextMessageOutput, "TextMessageOutput");
|
|
1314
|
-
|
|
1315
|
-
(0,
|
|
1316
|
-
|
|
1078
|
+
_ts_decorate14([
|
|
1079
|
+
(0, import_type_graphql15.Field)(() => MessageRole),
|
|
1080
|
+
_ts_metadata14("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
1317
1081
|
], TextMessageOutput.prototype, "role", void 0);
|
|
1318
|
-
|
|
1319
|
-
(0,
|
|
1082
|
+
_ts_decorate14([
|
|
1083
|
+
(0, import_type_graphql15.Field)(() => [
|
|
1320
1084
|
String
|
|
1321
1085
|
]),
|
|
1322
|
-
|
|
1086
|
+
_ts_metadata14("design:type", Array)
|
|
1323
1087
|
], TextMessageOutput.prototype, "content", void 0);
|
|
1324
|
-
|
|
1325
|
-
(0,
|
|
1088
|
+
_ts_decorate14([
|
|
1089
|
+
(0, import_type_graphql15.Field)(() => String, {
|
|
1326
1090
|
nullable: true
|
|
1327
1091
|
}),
|
|
1328
|
-
|
|
1092
|
+
_ts_metadata14("design:type", String)
|
|
1329
1093
|
], TextMessageOutput.prototype, "parentMessageId", void 0);
|
|
1330
|
-
TextMessageOutput =
|
|
1331
|
-
(0,
|
|
1094
|
+
TextMessageOutput = _ts_decorate14([
|
|
1095
|
+
(0, import_type_graphql15.ObjectType)({
|
|
1332
1096
|
implements: BaseMessageOutput
|
|
1333
1097
|
})
|
|
1334
1098
|
], TextMessageOutput);
|
|
@@ -1339,31 +1103,31 @@ var ActionExecutionMessageOutput = class {
|
|
|
1339
1103
|
parentMessageId;
|
|
1340
1104
|
};
|
|
1341
1105
|
__name(ActionExecutionMessageOutput, "ActionExecutionMessageOutput");
|
|
1342
|
-
|
|
1343
|
-
(0,
|
|
1344
|
-
|
|
1106
|
+
_ts_decorate14([
|
|
1107
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1108
|
+
_ts_metadata14("design:type", String)
|
|
1345
1109
|
], ActionExecutionMessageOutput.prototype, "name", void 0);
|
|
1346
|
-
|
|
1347
|
-
(0,
|
|
1110
|
+
_ts_decorate14([
|
|
1111
|
+
(0, import_type_graphql15.Field)(() => String, {
|
|
1348
1112
|
nullable: true,
|
|
1349
1113
|
deprecationReason: "This field will be removed in a future version"
|
|
1350
1114
|
}),
|
|
1351
|
-
|
|
1115
|
+
_ts_metadata14("design:type", String)
|
|
1352
1116
|
], ActionExecutionMessageOutput.prototype, "scope", void 0);
|
|
1353
|
-
|
|
1354
|
-
(0,
|
|
1117
|
+
_ts_decorate14([
|
|
1118
|
+
(0, import_type_graphql15.Field)(() => [
|
|
1355
1119
|
String
|
|
1356
1120
|
]),
|
|
1357
|
-
|
|
1121
|
+
_ts_metadata14("design:type", Array)
|
|
1358
1122
|
], ActionExecutionMessageOutput.prototype, "arguments", void 0);
|
|
1359
|
-
|
|
1360
|
-
(0,
|
|
1123
|
+
_ts_decorate14([
|
|
1124
|
+
(0, import_type_graphql15.Field)(() => String, {
|
|
1361
1125
|
nullable: true
|
|
1362
1126
|
}),
|
|
1363
|
-
|
|
1127
|
+
_ts_metadata14("design:type", String)
|
|
1364
1128
|
], ActionExecutionMessageOutput.prototype, "parentMessageId", void 0);
|
|
1365
|
-
ActionExecutionMessageOutput =
|
|
1366
|
-
(0,
|
|
1129
|
+
ActionExecutionMessageOutput = _ts_decorate14([
|
|
1130
|
+
(0, import_type_graphql15.ObjectType)({
|
|
1367
1131
|
implements: BaseMessageOutput
|
|
1368
1132
|
})
|
|
1369
1133
|
], ActionExecutionMessageOutput);
|
|
@@ -1373,20 +1137,20 @@ var ResultMessageOutput = class {
|
|
|
1373
1137
|
result;
|
|
1374
1138
|
};
|
|
1375
1139
|
__name(ResultMessageOutput, "ResultMessageOutput");
|
|
1376
|
-
|
|
1377
|
-
(0,
|
|
1378
|
-
|
|
1140
|
+
_ts_decorate14([
|
|
1141
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1142
|
+
_ts_metadata14("design:type", String)
|
|
1379
1143
|
], ResultMessageOutput.prototype, "actionExecutionId", void 0);
|
|
1380
|
-
|
|
1381
|
-
(0,
|
|
1382
|
-
|
|
1144
|
+
_ts_decorate14([
|
|
1145
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1146
|
+
_ts_metadata14("design:type", String)
|
|
1383
1147
|
], ResultMessageOutput.prototype, "actionName", void 0);
|
|
1384
|
-
|
|
1385
|
-
(0,
|
|
1386
|
-
|
|
1148
|
+
_ts_decorate14([
|
|
1149
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1150
|
+
_ts_metadata14("design:type", String)
|
|
1387
1151
|
], ResultMessageOutput.prototype, "result", void 0);
|
|
1388
|
-
ResultMessageOutput =
|
|
1389
|
-
(0,
|
|
1152
|
+
ResultMessageOutput = _ts_decorate14([
|
|
1153
|
+
(0, import_type_graphql15.ObjectType)({
|
|
1390
1154
|
implements: BaseMessageOutput
|
|
1391
1155
|
})
|
|
1392
1156
|
], ResultMessageOutput);
|
|
@@ -1401,40 +1165,40 @@ var AgentStateMessageOutput = class {
|
|
|
1401
1165
|
running;
|
|
1402
1166
|
};
|
|
1403
1167
|
__name(AgentStateMessageOutput, "AgentStateMessageOutput");
|
|
1404
|
-
|
|
1405
|
-
(0,
|
|
1406
|
-
|
|
1168
|
+
_ts_decorate14([
|
|
1169
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1170
|
+
_ts_metadata14("design:type", String)
|
|
1407
1171
|
], AgentStateMessageOutput.prototype, "threadId", void 0);
|
|
1408
|
-
|
|
1409
|
-
(0,
|
|
1410
|
-
|
|
1172
|
+
_ts_decorate14([
|
|
1173
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1174
|
+
_ts_metadata14("design:type", String)
|
|
1411
1175
|
], AgentStateMessageOutput.prototype, "agentName", void 0);
|
|
1412
|
-
|
|
1413
|
-
(0,
|
|
1414
|
-
|
|
1176
|
+
_ts_decorate14([
|
|
1177
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1178
|
+
_ts_metadata14("design:type", String)
|
|
1415
1179
|
], AgentStateMessageOutput.prototype, "nodeName", void 0);
|
|
1416
|
-
|
|
1417
|
-
(0,
|
|
1418
|
-
|
|
1180
|
+
_ts_decorate14([
|
|
1181
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1182
|
+
_ts_metadata14("design:type", String)
|
|
1419
1183
|
], AgentStateMessageOutput.prototype, "runId", void 0);
|
|
1420
|
-
|
|
1421
|
-
(0,
|
|
1422
|
-
|
|
1184
|
+
_ts_decorate14([
|
|
1185
|
+
(0, import_type_graphql15.Field)(() => Boolean),
|
|
1186
|
+
_ts_metadata14("design:type", Boolean)
|
|
1423
1187
|
], AgentStateMessageOutput.prototype, "active", void 0);
|
|
1424
|
-
|
|
1425
|
-
(0,
|
|
1426
|
-
|
|
1188
|
+
_ts_decorate14([
|
|
1189
|
+
(0, import_type_graphql15.Field)(() => MessageRole),
|
|
1190
|
+
_ts_metadata14("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
1427
1191
|
], AgentStateMessageOutput.prototype, "role", void 0);
|
|
1428
|
-
|
|
1429
|
-
(0,
|
|
1430
|
-
|
|
1192
|
+
_ts_decorate14([
|
|
1193
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1194
|
+
_ts_metadata14("design:type", String)
|
|
1431
1195
|
], AgentStateMessageOutput.prototype, "state", void 0);
|
|
1432
|
-
|
|
1433
|
-
(0,
|
|
1434
|
-
|
|
1196
|
+
_ts_decorate14([
|
|
1197
|
+
(0, import_type_graphql15.Field)(() => Boolean),
|
|
1198
|
+
_ts_metadata14("design:type", Boolean)
|
|
1435
1199
|
], AgentStateMessageOutput.prototype, "running", void 0);
|
|
1436
|
-
AgentStateMessageOutput =
|
|
1437
|
-
(0,
|
|
1200
|
+
AgentStateMessageOutput = _ts_decorate14([
|
|
1201
|
+
(0, import_type_graphql15.ObjectType)({
|
|
1438
1202
|
implements: BaseMessageOutput
|
|
1439
1203
|
})
|
|
1440
1204
|
], AgentStateMessageOutput);
|
|
@@ -1447,43 +1211,337 @@ var CopilotResponse = class {
|
|
|
1447
1211
|
metaEvents;
|
|
1448
1212
|
};
|
|
1449
1213
|
__name(CopilotResponse, "CopilotResponse");
|
|
1450
|
-
|
|
1451
|
-
(0,
|
|
1452
|
-
|
|
1214
|
+
_ts_decorate14([
|
|
1215
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1216
|
+
_ts_metadata14("design:type", String)
|
|
1453
1217
|
], CopilotResponse.prototype, "threadId", void 0);
|
|
1454
|
-
|
|
1455
|
-
(0,
|
|
1456
|
-
|
|
1218
|
+
_ts_decorate14([
|
|
1219
|
+
(0, import_type_graphql15.Field)(() => ResponseStatusUnion),
|
|
1220
|
+
_ts_metadata14("design:type", Object)
|
|
1457
1221
|
], CopilotResponse.prototype, "status", void 0);
|
|
1222
|
+
_ts_decorate14([
|
|
1223
|
+
(0, import_type_graphql15.Field)({
|
|
1224
|
+
nullable: true
|
|
1225
|
+
}),
|
|
1226
|
+
_ts_metadata14("design:type", String)
|
|
1227
|
+
], CopilotResponse.prototype, "runId", void 0);
|
|
1228
|
+
_ts_decorate14([
|
|
1229
|
+
(0, import_type_graphql15.Field)(() => [
|
|
1230
|
+
BaseMessageOutput
|
|
1231
|
+
]),
|
|
1232
|
+
_ts_metadata14("design:type", Array)
|
|
1233
|
+
], CopilotResponse.prototype, "messages", void 0);
|
|
1234
|
+
_ts_decorate14([
|
|
1235
|
+
(0, import_type_graphql15.Field)(() => ExtensionsResponse, {
|
|
1236
|
+
nullable: true
|
|
1237
|
+
}),
|
|
1238
|
+
_ts_metadata14("design:type", typeof ExtensionsResponse === "undefined" ? Object : ExtensionsResponse)
|
|
1239
|
+
], CopilotResponse.prototype, "extensions", void 0);
|
|
1240
|
+
_ts_decorate14([
|
|
1241
|
+
(0, import_type_graphql15.Field)(() => [
|
|
1242
|
+
BaseMetaEvent
|
|
1243
|
+
], {
|
|
1244
|
+
nullable: true
|
|
1245
|
+
}),
|
|
1246
|
+
_ts_metadata14("design:type", Array)
|
|
1247
|
+
], CopilotResponse.prototype, "metaEvents", void 0);
|
|
1248
|
+
CopilotResponse = _ts_decorate14([
|
|
1249
|
+
(0, import_type_graphql15.ObjectType)()
|
|
1250
|
+
], CopilotResponse);
|
|
1251
|
+
|
|
1252
|
+
// src/graphql/types/meta-events.type.ts
|
|
1253
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
1254
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1255
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1256
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1257
|
+
else
|
|
1258
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1259
|
+
if (d = decorators[i])
|
|
1260
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1261
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1262
|
+
}
|
|
1263
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
1264
|
+
function _ts_metadata15(k, v) {
|
|
1265
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1266
|
+
return Reflect.metadata(k, v);
|
|
1267
|
+
}
|
|
1268
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
1269
|
+
var MetaEventName;
|
|
1270
|
+
(function(MetaEventName2) {
|
|
1271
|
+
MetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1272
|
+
MetaEventName2["CopilotKitLangGraphInterruptEvent"] = "CopilotKitLangGraphInterruptEvent";
|
|
1273
|
+
})(MetaEventName || (MetaEventName = {}));
|
|
1274
|
+
(0, import_type_graphql16.registerEnumType)(MetaEventName, {
|
|
1275
|
+
name: "MetaEventName",
|
|
1276
|
+
description: "Meta event types"
|
|
1277
|
+
});
|
|
1278
|
+
var BaseMetaEvent = class {
|
|
1279
|
+
type = "MetaEvent";
|
|
1280
|
+
name;
|
|
1281
|
+
};
|
|
1282
|
+
__name(BaseMetaEvent, "BaseMetaEvent");
|
|
1283
|
+
_ts_decorate15([
|
|
1284
|
+
(0, import_type_graphql16.Field)(() => String),
|
|
1285
|
+
_ts_metadata15("design:type", String)
|
|
1286
|
+
], BaseMetaEvent.prototype, "type", void 0);
|
|
1287
|
+
_ts_decorate15([
|
|
1288
|
+
(0, import_type_graphql16.Field)(() => MetaEventName),
|
|
1289
|
+
_ts_metadata15("design:type", String)
|
|
1290
|
+
], BaseMetaEvent.prototype, "name", void 0);
|
|
1291
|
+
BaseMetaEvent = _ts_decorate15([
|
|
1292
|
+
(0, import_type_graphql16.InterfaceType)({
|
|
1293
|
+
resolveType(value) {
|
|
1294
|
+
if (value.name === "LangGraphInterruptEvent") {
|
|
1295
|
+
return LangGraphInterruptEvent;
|
|
1296
|
+
} else if (value.name === "CopilotKitLangGraphInterruptEvent") {
|
|
1297
|
+
return CopilotKitLangGraphInterruptEvent;
|
|
1298
|
+
}
|
|
1299
|
+
return void 0;
|
|
1300
|
+
}
|
|
1301
|
+
}),
|
|
1302
|
+
(0, import_type_graphql16.InterfaceType)()
|
|
1303
|
+
], BaseMetaEvent);
|
|
1304
|
+
var CopilotKitLangGraphInterruptEventData = class {
|
|
1305
|
+
value;
|
|
1306
|
+
messages;
|
|
1307
|
+
};
|
|
1308
|
+
__name(CopilotKitLangGraphInterruptEventData, "CopilotKitLangGraphInterruptEventData");
|
|
1309
|
+
_ts_decorate15([
|
|
1310
|
+
(0, import_type_graphql16.Field)(() => String),
|
|
1311
|
+
_ts_metadata15("design:type", String)
|
|
1312
|
+
], CopilotKitLangGraphInterruptEventData.prototype, "value", void 0);
|
|
1313
|
+
_ts_decorate15([
|
|
1314
|
+
(0, import_type_graphql16.Field)(() => [
|
|
1315
|
+
BaseMessageOutput
|
|
1316
|
+
]),
|
|
1317
|
+
_ts_metadata15("design:type", Array)
|
|
1318
|
+
], CopilotKitLangGraphInterruptEventData.prototype, "messages", void 0);
|
|
1319
|
+
CopilotKitLangGraphInterruptEventData = _ts_decorate15([
|
|
1320
|
+
(0, import_type_graphql16.ObjectType)()
|
|
1321
|
+
], CopilotKitLangGraphInterruptEventData);
|
|
1322
|
+
var LangGraphInterruptEvent = class {
|
|
1323
|
+
name = "LangGraphInterruptEvent";
|
|
1324
|
+
value;
|
|
1325
|
+
response;
|
|
1326
|
+
};
|
|
1327
|
+
__name(LangGraphInterruptEvent, "LangGraphInterruptEvent");
|
|
1328
|
+
_ts_decorate15([
|
|
1329
|
+
(0, import_type_graphql16.Field)(() => MetaEventName),
|
|
1330
|
+
_ts_metadata15("design:type", typeof MetaEventName === "undefined" || false ? Object : "LangGraphInterruptEvent")
|
|
1331
|
+
], LangGraphInterruptEvent.prototype, "name", void 0);
|
|
1332
|
+
_ts_decorate15([
|
|
1333
|
+
(0, import_type_graphql16.Field)(() => String),
|
|
1334
|
+
_ts_metadata15("design:type", String)
|
|
1335
|
+
], LangGraphInterruptEvent.prototype, "value", void 0);
|
|
1336
|
+
_ts_decorate15([
|
|
1337
|
+
(0, import_type_graphql16.Field)(() => String, {
|
|
1338
|
+
nullable: true
|
|
1339
|
+
}),
|
|
1340
|
+
_ts_metadata15("design:type", String)
|
|
1341
|
+
], LangGraphInterruptEvent.prototype, "response", void 0);
|
|
1342
|
+
LangGraphInterruptEvent = _ts_decorate15([
|
|
1343
|
+
(0, import_type_graphql16.ObjectType)({
|
|
1344
|
+
implements: BaseMetaEvent
|
|
1345
|
+
})
|
|
1346
|
+
], LangGraphInterruptEvent);
|
|
1347
|
+
var CopilotKitLangGraphInterruptEvent = class {
|
|
1348
|
+
name = "CopilotKitLangGraphInterruptEvent";
|
|
1349
|
+
data;
|
|
1350
|
+
response;
|
|
1351
|
+
};
|
|
1352
|
+
__name(CopilotKitLangGraphInterruptEvent, "CopilotKitLangGraphInterruptEvent");
|
|
1353
|
+
_ts_decorate15([
|
|
1354
|
+
(0, import_type_graphql16.Field)(() => MetaEventName),
|
|
1355
|
+
_ts_metadata15("design:type", typeof MetaEventName === "undefined" || false ? Object : "CopilotKitLangGraphInterruptEvent")
|
|
1356
|
+
], CopilotKitLangGraphInterruptEvent.prototype, "name", void 0);
|
|
1357
|
+
_ts_decorate15([
|
|
1358
|
+
(0, import_type_graphql16.Field)(() => CopilotKitLangGraphInterruptEventData),
|
|
1359
|
+
_ts_metadata15("design:type", typeof CopilotKitLangGraphInterruptEventData === "undefined" ? Object : CopilotKitLangGraphInterruptEventData)
|
|
1360
|
+
], CopilotKitLangGraphInterruptEvent.prototype, "data", void 0);
|
|
1361
|
+
_ts_decorate15([
|
|
1362
|
+
(0, import_type_graphql16.Field)(() => String, {
|
|
1363
|
+
nullable: true
|
|
1364
|
+
}),
|
|
1365
|
+
_ts_metadata15("design:type", String)
|
|
1366
|
+
], CopilotKitLangGraphInterruptEvent.prototype, "response", void 0);
|
|
1367
|
+
CopilotKitLangGraphInterruptEvent = _ts_decorate15([
|
|
1368
|
+
(0, import_type_graphql16.ObjectType)({
|
|
1369
|
+
implements: BaseMetaEvent
|
|
1370
|
+
})
|
|
1371
|
+
], CopilotKitLangGraphInterruptEvent);
|
|
1372
|
+
|
|
1373
|
+
// src/graphql/inputs/meta-event.input.ts
|
|
1374
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
1375
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1376
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1377
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1378
|
+
else
|
|
1379
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1380
|
+
if (d = decorators[i])
|
|
1381
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1382
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1383
|
+
}
|
|
1384
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
1385
|
+
function _ts_metadata16(k, v) {
|
|
1386
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1387
|
+
return Reflect.metadata(k, v);
|
|
1388
|
+
}
|
|
1389
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
1390
|
+
var MetaEventInput = class {
|
|
1391
|
+
name;
|
|
1392
|
+
value;
|
|
1393
|
+
response;
|
|
1394
|
+
messages;
|
|
1395
|
+
};
|
|
1396
|
+
__name(MetaEventInput, "MetaEventInput");
|
|
1397
|
+
_ts_decorate16([
|
|
1398
|
+
(0, import_type_graphql17.Field)(() => MetaEventName),
|
|
1399
|
+
_ts_metadata16("design:type", typeof MetaEventName === "undefined" ? Object : MetaEventName)
|
|
1400
|
+
], MetaEventInput.prototype, "name", void 0);
|
|
1401
|
+
_ts_decorate16([
|
|
1402
|
+
(0, import_type_graphql17.Field)(() => String),
|
|
1403
|
+
_ts_metadata16("design:type", String)
|
|
1404
|
+
], MetaEventInput.prototype, "value", void 0);
|
|
1405
|
+
_ts_decorate16([
|
|
1406
|
+
(0, import_type_graphql17.Field)(() => String, {
|
|
1407
|
+
nullable: true
|
|
1408
|
+
}),
|
|
1409
|
+
_ts_metadata16("design:type", String)
|
|
1410
|
+
], MetaEventInput.prototype, "response", void 0);
|
|
1411
|
+
_ts_decorate16([
|
|
1412
|
+
(0, import_type_graphql17.Field)(() => [
|
|
1413
|
+
MessageInput
|
|
1414
|
+
], {
|
|
1415
|
+
nullable: true
|
|
1416
|
+
}),
|
|
1417
|
+
_ts_metadata16("design:type", Array)
|
|
1418
|
+
], MetaEventInput.prototype, "messages", void 0);
|
|
1419
|
+
MetaEventInput = _ts_decorate16([
|
|
1420
|
+
(0, import_type_graphql17.InputType)()
|
|
1421
|
+
], MetaEventInput);
|
|
1422
|
+
|
|
1423
|
+
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
1424
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
1425
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1426
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1427
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1428
|
+
else
|
|
1429
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1430
|
+
if (d = decorators[i])
|
|
1431
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1432
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1433
|
+
}
|
|
1434
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
1435
|
+
function _ts_metadata17(k, v) {
|
|
1436
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1437
|
+
return Reflect.metadata(k, v);
|
|
1438
|
+
}
|
|
1439
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
1440
|
+
var GenerateCopilotResponseMetadataInput = class {
|
|
1441
|
+
requestType;
|
|
1442
|
+
};
|
|
1443
|
+
__name(GenerateCopilotResponseMetadataInput, "GenerateCopilotResponseMetadataInput");
|
|
1444
|
+
_ts_decorate17([
|
|
1445
|
+
(0, import_type_graphql18.Field)(() => CopilotRequestType, {
|
|
1446
|
+
nullable: true
|
|
1447
|
+
}),
|
|
1448
|
+
_ts_metadata17("design:type", typeof CopilotRequestType === "undefined" ? Object : CopilotRequestType)
|
|
1449
|
+
], GenerateCopilotResponseMetadataInput.prototype, "requestType", void 0);
|
|
1450
|
+
GenerateCopilotResponseMetadataInput = _ts_decorate17([
|
|
1451
|
+
(0, import_type_graphql18.InputType)()
|
|
1452
|
+
], GenerateCopilotResponseMetadataInput);
|
|
1453
|
+
var GenerateCopilotResponseInput = class {
|
|
1454
|
+
metadata;
|
|
1455
|
+
threadId;
|
|
1456
|
+
runId;
|
|
1457
|
+
messages;
|
|
1458
|
+
frontend;
|
|
1459
|
+
cloud;
|
|
1460
|
+
forwardedParameters;
|
|
1461
|
+
agentSession;
|
|
1462
|
+
agentState;
|
|
1463
|
+
agentStates;
|
|
1464
|
+
extensions;
|
|
1465
|
+
metaEvents;
|
|
1466
|
+
};
|
|
1467
|
+
__name(GenerateCopilotResponseInput, "GenerateCopilotResponseInput");
|
|
1468
|
+
_ts_decorate17([
|
|
1469
|
+
(0, import_type_graphql18.Field)(() => GenerateCopilotResponseMetadataInput, {
|
|
1470
|
+
nullable: false
|
|
1471
|
+
}),
|
|
1472
|
+
_ts_metadata17("design:type", typeof GenerateCopilotResponseMetadataInput === "undefined" ? Object : GenerateCopilotResponseMetadataInput)
|
|
1473
|
+
], GenerateCopilotResponseInput.prototype, "metadata", void 0);
|
|
1458
1474
|
_ts_decorate17([
|
|
1459
|
-
(0, import_type_graphql18.Field)({
|
|
1475
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
1460
1476
|
nullable: true
|
|
1461
1477
|
}),
|
|
1462
1478
|
_ts_metadata17("design:type", String)
|
|
1463
|
-
],
|
|
1479
|
+
], GenerateCopilotResponseInput.prototype, "threadId", void 0);
|
|
1480
|
+
_ts_decorate17([
|
|
1481
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
1482
|
+
nullable: true
|
|
1483
|
+
}),
|
|
1484
|
+
_ts_metadata17("design:type", String)
|
|
1485
|
+
], GenerateCopilotResponseInput.prototype, "runId", void 0);
|
|
1464
1486
|
_ts_decorate17([
|
|
1465
1487
|
(0, import_type_graphql18.Field)(() => [
|
|
1466
|
-
|
|
1488
|
+
MessageInput
|
|
1467
1489
|
]),
|
|
1468
1490
|
_ts_metadata17("design:type", Array)
|
|
1469
|
-
],
|
|
1491
|
+
], GenerateCopilotResponseInput.prototype, "messages", void 0);
|
|
1492
|
+
_ts_decorate17([
|
|
1493
|
+
(0, import_type_graphql18.Field)(() => FrontendInput),
|
|
1494
|
+
_ts_metadata17("design:type", typeof FrontendInput === "undefined" ? Object : FrontendInput)
|
|
1495
|
+
], GenerateCopilotResponseInput.prototype, "frontend", void 0);
|
|
1470
1496
|
_ts_decorate17([
|
|
1471
|
-
(0, import_type_graphql18.Field)(() =>
|
|
1497
|
+
(0, import_type_graphql18.Field)(() => CloudInput, {
|
|
1472
1498
|
nullable: true
|
|
1473
1499
|
}),
|
|
1474
|
-
_ts_metadata17("design:type", typeof
|
|
1475
|
-
],
|
|
1500
|
+
_ts_metadata17("design:type", typeof CloudInput === "undefined" ? Object : CloudInput)
|
|
1501
|
+
], GenerateCopilotResponseInput.prototype, "cloud", void 0);
|
|
1502
|
+
_ts_decorate17([
|
|
1503
|
+
(0, import_type_graphql18.Field)(() => ForwardedParametersInput, {
|
|
1504
|
+
nullable: true
|
|
1505
|
+
}),
|
|
1506
|
+
_ts_metadata17("design:type", typeof ForwardedParametersInput === "undefined" ? Object : ForwardedParametersInput)
|
|
1507
|
+
], GenerateCopilotResponseInput.prototype, "forwardedParameters", void 0);
|
|
1508
|
+
_ts_decorate17([
|
|
1509
|
+
(0, import_type_graphql18.Field)(() => AgentSessionInput, {
|
|
1510
|
+
nullable: true
|
|
1511
|
+
}),
|
|
1512
|
+
_ts_metadata17("design:type", typeof AgentSessionInput === "undefined" ? Object : AgentSessionInput)
|
|
1513
|
+
], GenerateCopilotResponseInput.prototype, "agentSession", void 0);
|
|
1514
|
+
_ts_decorate17([
|
|
1515
|
+
(0, import_type_graphql18.Field)(() => AgentStateInput, {
|
|
1516
|
+
nullable: true
|
|
1517
|
+
}),
|
|
1518
|
+
_ts_metadata17("design:type", typeof AgentStateInput === "undefined" ? Object : AgentStateInput)
|
|
1519
|
+
], GenerateCopilotResponseInput.prototype, "agentState", void 0);
|
|
1476
1520
|
_ts_decorate17([
|
|
1477
1521
|
(0, import_type_graphql18.Field)(() => [
|
|
1478
|
-
|
|
1522
|
+
AgentStateInput
|
|
1479
1523
|
], {
|
|
1480
1524
|
nullable: true
|
|
1481
1525
|
}),
|
|
1482
1526
|
_ts_metadata17("design:type", Array)
|
|
1483
|
-
],
|
|
1484
|
-
|
|
1485
|
-
(0, import_type_graphql18.
|
|
1486
|
-
|
|
1527
|
+
], GenerateCopilotResponseInput.prototype, "agentStates", void 0);
|
|
1528
|
+
_ts_decorate17([
|
|
1529
|
+
(0, import_type_graphql18.Field)(() => ExtensionsInput, {
|
|
1530
|
+
nullable: true
|
|
1531
|
+
}),
|
|
1532
|
+
_ts_metadata17("design:type", typeof ExtensionsInput === "undefined" ? Object : ExtensionsInput)
|
|
1533
|
+
], GenerateCopilotResponseInput.prototype, "extensions", void 0);
|
|
1534
|
+
_ts_decorate17([
|
|
1535
|
+
(0, import_type_graphql18.Field)(() => [
|
|
1536
|
+
MetaEventInput
|
|
1537
|
+
], {
|
|
1538
|
+
nullable: true
|
|
1539
|
+
}),
|
|
1540
|
+
_ts_metadata17("design:type", Array)
|
|
1541
|
+
], GenerateCopilotResponseInput.prototype, "metaEvents", void 0);
|
|
1542
|
+
GenerateCopilotResponseInput = _ts_decorate17([
|
|
1543
|
+
(0, import_type_graphql18.InputType)()
|
|
1544
|
+
], GenerateCopilotResponseInput);
|
|
1487
1545
|
|
|
1488
1546
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1489
1547
|
var import_graphql_yoga = require("graphql-yoga");
|
|
@@ -1702,6 +1760,7 @@ var RuntimeMetaEventName;
|
|
|
1702
1760
|
(function(RuntimeMetaEventName2) {
|
|
1703
1761
|
RuntimeMetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1704
1762
|
RuntimeMetaEventName2["LangGraphInterruptResumeEvent"] = "LangGraphInterruptResumeEvent";
|
|
1763
|
+
RuntimeMetaEventName2["CopilotKitLangGraphInterruptEvent"] = "CopilotKitLangGraphInterruptEvent";
|
|
1705
1764
|
})(RuntimeMetaEventName || (RuntimeMetaEventName = {}));
|
|
1706
1765
|
|
|
1707
1766
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
@@ -1979,6 +2038,40 @@ var CopilotResolver = class {
|
|
|
1979
2038
|
value: event.value
|
|
1980
2039
|
}));
|
|
1981
2040
|
break;
|
|
2041
|
+
case RuntimeMetaEventName.CopilotKitLangGraphInterruptEvent:
|
|
2042
|
+
push((0, import_class_transformer2.plainToInstance)(CopilotKitLangGraphInterruptEvent, {
|
|
2043
|
+
type: event.type,
|
|
2044
|
+
name: event.name,
|
|
2045
|
+
data: {
|
|
2046
|
+
value: typeof event.data.value === "string" ? event.data.value : JSON.stringify(event.data.value),
|
|
2047
|
+
messages: event.data.messages.map((message) => {
|
|
2048
|
+
if (message.type === "TextMessage" || "content" in message && "role" in message) {
|
|
2049
|
+
return (0, import_class_transformer2.plainToInstance)(TextMessage, {
|
|
2050
|
+
id: message.id,
|
|
2051
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
2052
|
+
content: [
|
|
2053
|
+
message.content
|
|
2054
|
+
],
|
|
2055
|
+
role: message.role,
|
|
2056
|
+
status: new SuccessMessageStatus()
|
|
2057
|
+
});
|
|
2058
|
+
}
|
|
2059
|
+
if ("arguments" in message) {
|
|
2060
|
+
return (0, import_class_transformer2.plainToInstance)(ActionExecutionMessage, {
|
|
2061
|
+
name: message.name,
|
|
2062
|
+
id: message.id,
|
|
2063
|
+
arguments: [
|
|
2064
|
+
JSON.stringify(message.arguments)
|
|
2065
|
+
],
|
|
2066
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
2067
|
+
status: new SuccessMessageStatus()
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
throw new Error("Unknown message in metaEvents copilot resolver");
|
|
2071
|
+
})
|
|
2072
|
+
}
|
|
2073
|
+
}));
|
|
2074
|
+
break;
|
|
1982
2075
|
}
|
|
1983
2076
|
},
|
|
1984
2077
|
error: (err) => {
|