@copilotkit/runtime 1.8.14-next.2 → 1.8.14-next.4
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 +14 -0
- package/dist/{chunk-MZSUT6FW.mjs → chunk-BV7WYSOF.mjs} +2 -2
- package/dist/{chunk-5FDI6FH6.mjs → chunk-EQX4WXGG.mjs} +2 -2
- package/dist/{chunk-YLRGZOEQ.mjs → chunk-IZAPLBCH.mjs} +26 -7
- package/dist/chunk-IZAPLBCH.mjs.map +1 -0
- package/dist/{chunk-RM7LK6G2.mjs → chunk-JH3OA44N.mjs} +2 -2
- package/dist/index.js +25 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +25 -6
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.js +44 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +44 -1
- 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.js +44 -1
- 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.js +44 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +2 -2
- package/src/graphql/resolvers/copilot.resolver.ts +14 -0
- package/src/lib/runtime/agui-action.ts +8 -0
- package/src/lib/runtime/copilot-runtime.ts +1 -0
- package/src/lib/runtime/remote-actions.ts +3 -0
- package/dist/chunk-YLRGZOEQ.mjs.map +0 -1
- /package/dist/{chunk-MZSUT6FW.mjs.map → chunk-BV7WYSOF.mjs.map} +0 -0
- /package/dist/{chunk-5FDI6FH6.mjs.map → chunk-EQX4WXGG.mjs.map} +0 -0
- /package/dist/{chunk-RM7LK6G2.mjs.map → chunk-JH3OA44N.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeExpressEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-BV7WYSOF.mjs";
|
|
4
|
+
import "../../../chunk-IZAPLBCH.mjs";
|
|
5
5
|
import "../../../chunk-MVKCCH5U.mjs";
|
|
6
6
|
import "../../../chunk-5BIEM2UU.mjs";
|
|
7
7
|
import "../../../chunk-SHBDMA63.mjs";
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.8.14-next.
|
|
47
|
+
version: "1.8.14-next.4",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -1642,6 +1642,39 @@ var import_shared4 = require("@copilotkit/shared");
|
|
|
1642
1642
|
|
|
1643
1643
|
// src/lib/runtime/remote-actions.ts
|
|
1644
1644
|
var import_shared = require("@copilotkit/shared");
|
|
1645
|
+
|
|
1646
|
+
// src/agents/langgraph/events.ts
|
|
1647
|
+
var LangGraphEventTypes;
|
|
1648
|
+
(function(LangGraphEventTypes2) {
|
|
1649
|
+
LangGraphEventTypes2["OnChainStart"] = "on_chain_start";
|
|
1650
|
+
LangGraphEventTypes2["OnChainStream"] = "on_chain_stream";
|
|
1651
|
+
LangGraphEventTypes2["OnChainEnd"] = "on_chain_end";
|
|
1652
|
+
LangGraphEventTypes2["OnChatModelStart"] = "on_chat_model_start";
|
|
1653
|
+
LangGraphEventTypes2["OnChatModelStream"] = "on_chat_model_stream";
|
|
1654
|
+
LangGraphEventTypes2["OnChatModelEnd"] = "on_chat_model_end";
|
|
1655
|
+
LangGraphEventTypes2["OnToolStart"] = "on_tool_start";
|
|
1656
|
+
LangGraphEventTypes2["OnToolEnd"] = "on_tool_end";
|
|
1657
|
+
LangGraphEventTypes2["OnCopilotKitStateSync"] = "on_copilotkit_state_sync";
|
|
1658
|
+
LangGraphEventTypes2["OnCopilotKitEmitMessage"] = "on_copilotkit_emit_message";
|
|
1659
|
+
LangGraphEventTypes2["OnCopilotKitEmitToolCall"] = "on_copilotkit_emit_tool_call";
|
|
1660
|
+
LangGraphEventTypes2["OnCustomEvent"] = "on_custom_event";
|
|
1661
|
+
LangGraphEventTypes2["OnInterrupt"] = "on_interrupt";
|
|
1662
|
+
LangGraphEventTypes2["OnCopilotKitInterrupt"] = "on_copilotkit_interrupt";
|
|
1663
|
+
})(LangGraphEventTypes || (LangGraphEventTypes = {}));
|
|
1664
|
+
var MetaEventNames;
|
|
1665
|
+
(function(MetaEventNames2) {
|
|
1666
|
+
MetaEventNames2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1667
|
+
MetaEventNames2["CopilotKitLangGraphInterruptEvent"] = "CopilotKitLangGraphInterruptEvent";
|
|
1668
|
+
})(MetaEventNames || (MetaEventNames = {}));
|
|
1669
|
+
var CustomEventNames;
|
|
1670
|
+
(function(CustomEventNames2) {
|
|
1671
|
+
CustomEventNames2["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
|
|
1672
|
+
CustomEventNames2["CopilotKitManuallyEmitToolCall"] = "copilotkit_manually_emit_tool_call";
|
|
1673
|
+
CustomEventNames2["CopilotKitManuallyEmitIntermediateState"] = "copilotkit_manually_emit_intermediate_state";
|
|
1674
|
+
CustomEventNames2["CopilotKitExit"] = "copilotkit_exit";
|
|
1675
|
+
})(CustomEventNames || (CustomEventNames = {}));
|
|
1676
|
+
|
|
1677
|
+
// src/lib/runtime/remote-actions.ts
|
|
1645
1678
|
var import_shared2 = require("@copilotkit/shared");
|
|
1646
1679
|
var EndpointType;
|
|
1647
1680
|
(function(EndpointType2) {
|
|
@@ -2125,6 +2158,16 @@ var CopilotResolver = class {
|
|
|
2125
2158
|
return;
|
|
2126
2159
|
}
|
|
2127
2160
|
switch (event.name) {
|
|
2161
|
+
case LangGraphEventTypes.OnInterrupt:
|
|
2162
|
+
push((0, import_class_transformer2.plainToInstance)(LangGraphInterruptEvent, {
|
|
2163
|
+
// @ts-ignore
|
|
2164
|
+
type: event.type,
|
|
2165
|
+
// @ts-ignore
|
|
2166
|
+
name: RuntimeMetaEventName.LangGraphInterruptEvent,
|
|
2167
|
+
// @ts-ignore
|
|
2168
|
+
value: event.value
|
|
2169
|
+
}));
|
|
2170
|
+
break;
|
|
2128
2171
|
case RuntimeMetaEventName.LangGraphInterruptEvent:
|
|
2129
2172
|
push((0, import_class_transformer2.plainToInstance)(LangGraphInterruptEvent, {
|
|
2130
2173
|
type: event.type,
|