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