@copilotkit/runtime 1.8.14-next.1 → 1.8.14-next.3
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-F4NU7EVL.mjs → chunk-6P6VMQLZ.mjs} +28 -14
- package/dist/chunk-6P6VMQLZ.mjs.map +1 -0
- package/dist/{chunk-KTTUYDBP.mjs → chunk-BMA7V5T7.mjs} +2 -2
- package/dist/{chunk-WUBMXNOG.mjs → chunk-C7XHY7LW.mjs} +2 -2
- package/dist/{chunk-JJBN24EK.mjs → chunk-T2RKWYXN.mjs} +2 -2
- package/dist/index.js +27 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +27 -13
- 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/{agentwire-action.ts → agui-action.ts} +13 -8
- package/src/lib/runtime/copilot-runtime.ts +11 -2
- package/src/lib/runtime/remote-actions.ts +5 -2
- package/dist/chunk-F4NU7EVL.mjs.map +0 -1
- /package/dist/{chunk-KTTUYDBP.mjs.map → chunk-BMA7V5T7.mjs.map} +0 -0
- /package/dist/{chunk-WUBMXNOG.mjs.map → chunk-C7XHY7LW.mjs.map} +0 -0
- /package/dist/{chunk-JJBN24EK.mjs.map → chunk-T2RKWYXN.mjs.map} +0 -0
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
config,
|
|
3
3
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
4
4
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-T2RKWYXN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
copilotRuntimeNestEndpoint
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-C7XHY7LW.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copilotRuntimeNodeExpressEndpoint
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-BMA7V5T7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addCustomHeaderPlugin,
|
|
14
14
|
buildSchema,
|
|
15
15
|
copilotRuntimeNodeHttpEndpoint,
|
|
16
16
|
createContext,
|
|
17
17
|
getCommonConfig
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-6P6VMQLZ.mjs";
|
|
19
19
|
import "../../chunk-MVKCCH5U.mjs";
|
|
20
20
|
import "../../chunk-5BIEM2UU.mjs";
|
|
21
21
|
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.3",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -1644,6 +1644,39 @@ var import_shared4 = require("@copilotkit/shared");
|
|
|
1644
1644
|
|
|
1645
1645
|
// src/lib/runtime/remote-actions.ts
|
|
1646
1646
|
var import_shared = require("@copilotkit/shared");
|
|
1647
|
+
|
|
1648
|
+
// src/agents/langgraph/events.ts
|
|
1649
|
+
var LangGraphEventTypes;
|
|
1650
|
+
(function(LangGraphEventTypes2) {
|
|
1651
|
+
LangGraphEventTypes2["OnChainStart"] = "on_chain_start";
|
|
1652
|
+
LangGraphEventTypes2["OnChainStream"] = "on_chain_stream";
|
|
1653
|
+
LangGraphEventTypes2["OnChainEnd"] = "on_chain_end";
|
|
1654
|
+
LangGraphEventTypes2["OnChatModelStart"] = "on_chat_model_start";
|
|
1655
|
+
LangGraphEventTypes2["OnChatModelStream"] = "on_chat_model_stream";
|
|
1656
|
+
LangGraphEventTypes2["OnChatModelEnd"] = "on_chat_model_end";
|
|
1657
|
+
LangGraphEventTypes2["OnToolStart"] = "on_tool_start";
|
|
1658
|
+
LangGraphEventTypes2["OnToolEnd"] = "on_tool_end";
|
|
1659
|
+
LangGraphEventTypes2["OnCopilotKitStateSync"] = "on_copilotkit_state_sync";
|
|
1660
|
+
LangGraphEventTypes2["OnCopilotKitEmitMessage"] = "on_copilotkit_emit_message";
|
|
1661
|
+
LangGraphEventTypes2["OnCopilotKitEmitToolCall"] = "on_copilotkit_emit_tool_call";
|
|
1662
|
+
LangGraphEventTypes2["OnCustomEvent"] = "on_custom_event";
|
|
1663
|
+
LangGraphEventTypes2["OnInterrupt"] = "on_interrupt";
|
|
1664
|
+
LangGraphEventTypes2["OnCopilotKitInterrupt"] = "on_copilotkit_interrupt";
|
|
1665
|
+
})(LangGraphEventTypes || (LangGraphEventTypes = {}));
|
|
1666
|
+
var MetaEventNames;
|
|
1667
|
+
(function(MetaEventNames2) {
|
|
1668
|
+
MetaEventNames2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1669
|
+
MetaEventNames2["CopilotKitLangGraphInterruptEvent"] = "CopilotKitLangGraphInterruptEvent";
|
|
1670
|
+
})(MetaEventNames || (MetaEventNames = {}));
|
|
1671
|
+
var CustomEventNames;
|
|
1672
|
+
(function(CustomEventNames2) {
|
|
1673
|
+
CustomEventNames2["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
|
|
1674
|
+
CustomEventNames2["CopilotKitManuallyEmitToolCall"] = "copilotkit_manually_emit_tool_call";
|
|
1675
|
+
CustomEventNames2["CopilotKitManuallyEmitIntermediateState"] = "copilotkit_manually_emit_intermediate_state";
|
|
1676
|
+
CustomEventNames2["CopilotKitExit"] = "copilotkit_exit";
|
|
1677
|
+
})(CustomEventNames || (CustomEventNames = {}));
|
|
1678
|
+
|
|
1679
|
+
// src/lib/runtime/remote-actions.ts
|
|
1647
1680
|
var import_shared2 = require("@copilotkit/shared");
|
|
1648
1681
|
var EndpointType;
|
|
1649
1682
|
(function(EndpointType2) {
|
|
@@ -2127,6 +2160,16 @@ var CopilotResolver = class {
|
|
|
2127
2160
|
return;
|
|
2128
2161
|
}
|
|
2129
2162
|
switch (event.name) {
|
|
2163
|
+
case LangGraphEventTypes.OnInterrupt:
|
|
2164
|
+
push((0, import_class_transformer2.plainToInstance)(LangGraphInterruptEvent, {
|
|
2165
|
+
// @ts-ignore
|
|
2166
|
+
type: event.type,
|
|
2167
|
+
// @ts-ignore
|
|
2168
|
+
name: RuntimeMetaEventName.LangGraphInterruptEvent,
|
|
2169
|
+
// @ts-ignore
|
|
2170
|
+
value: event.value
|
|
2171
|
+
}));
|
|
2172
|
+
break;
|
|
2130
2173
|
case RuntimeMetaEventName.LangGraphInterruptEvent:
|
|
2131
2174
|
push((0, import_class_transformer2.plainToInstance)(LangGraphInterruptEvent, {
|
|
2132
2175
|
type: event.type,
|