@copilotkit/runtime 1.8.14-next.2 → 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 +7 -0
- package/dist/{chunk-YLRGZOEQ.mjs → chunk-6P6VMQLZ.mjs} +22 -7
- package/dist/chunk-6P6VMQLZ.mjs.map +1 -0
- package/dist/{chunk-MZSUT6FW.mjs → chunk-BMA7V5T7.mjs} +2 -2
- package/dist/{chunk-RM7LK6G2.mjs → chunk-C7XHY7LW.mjs} +2 -2
- package/dist/{chunk-5FDI6FH6.mjs → chunk-T2RKWYXN.mjs} +2 -2
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +21 -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 +5 -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-BMA7V5T7.mjs.map} +0 -0
- /package/dist/{chunk-RM7LK6G2.mjs.map → chunk-C7XHY7LW.mjs.map} +0 -0
- /package/dist/{chunk-5FDI6FH6.mjs.map → chunk-T2RKWYXN.mjs.map} +0 -0
package/dist/lib/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-T2RKWYXN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-C7XHY7LW.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-BMA7V5T7.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
addCustomHeaderPlugin,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getCommonConfig,
|
|
26
26
|
langGraphPlatformEndpoint,
|
|
27
27
|
resolveEndpointType
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-6P6VMQLZ.mjs";
|
|
29
29
|
import {
|
|
30
30
|
GoogleGenerativeAIAdapter,
|
|
31
31
|
GroqAdapter,
|
|
@@ -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",
|
|
@@ -1650,6 +1650,39 @@ var import_shared4 = require("@copilotkit/shared");
|
|
|
1650
1650
|
|
|
1651
1651
|
// src/lib/runtime/remote-actions.ts
|
|
1652
1652
|
var import_shared = require("@copilotkit/shared");
|
|
1653
|
+
|
|
1654
|
+
// src/agents/langgraph/events.ts
|
|
1655
|
+
var LangGraphEventTypes;
|
|
1656
|
+
(function(LangGraphEventTypes2) {
|
|
1657
|
+
LangGraphEventTypes2["OnChainStart"] = "on_chain_start";
|
|
1658
|
+
LangGraphEventTypes2["OnChainStream"] = "on_chain_stream";
|
|
1659
|
+
LangGraphEventTypes2["OnChainEnd"] = "on_chain_end";
|
|
1660
|
+
LangGraphEventTypes2["OnChatModelStart"] = "on_chat_model_start";
|
|
1661
|
+
LangGraphEventTypes2["OnChatModelStream"] = "on_chat_model_stream";
|
|
1662
|
+
LangGraphEventTypes2["OnChatModelEnd"] = "on_chat_model_end";
|
|
1663
|
+
LangGraphEventTypes2["OnToolStart"] = "on_tool_start";
|
|
1664
|
+
LangGraphEventTypes2["OnToolEnd"] = "on_tool_end";
|
|
1665
|
+
LangGraphEventTypes2["OnCopilotKitStateSync"] = "on_copilotkit_state_sync";
|
|
1666
|
+
LangGraphEventTypes2["OnCopilotKitEmitMessage"] = "on_copilotkit_emit_message";
|
|
1667
|
+
LangGraphEventTypes2["OnCopilotKitEmitToolCall"] = "on_copilotkit_emit_tool_call";
|
|
1668
|
+
LangGraphEventTypes2["OnCustomEvent"] = "on_custom_event";
|
|
1669
|
+
LangGraphEventTypes2["OnInterrupt"] = "on_interrupt";
|
|
1670
|
+
LangGraphEventTypes2["OnCopilotKitInterrupt"] = "on_copilotkit_interrupt";
|
|
1671
|
+
})(LangGraphEventTypes || (LangGraphEventTypes = {}));
|
|
1672
|
+
var MetaEventNames;
|
|
1673
|
+
(function(MetaEventNames2) {
|
|
1674
|
+
MetaEventNames2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1675
|
+
MetaEventNames2["CopilotKitLangGraphInterruptEvent"] = "CopilotKitLangGraphInterruptEvent";
|
|
1676
|
+
})(MetaEventNames || (MetaEventNames = {}));
|
|
1677
|
+
var CustomEventNames;
|
|
1678
|
+
(function(CustomEventNames2) {
|
|
1679
|
+
CustomEventNames2["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
|
|
1680
|
+
CustomEventNames2["CopilotKitManuallyEmitToolCall"] = "copilotkit_manually_emit_tool_call";
|
|
1681
|
+
CustomEventNames2["CopilotKitManuallyEmitIntermediateState"] = "copilotkit_manually_emit_intermediate_state";
|
|
1682
|
+
CustomEventNames2["CopilotKitExit"] = "copilotkit_exit";
|
|
1683
|
+
})(CustomEventNames || (CustomEventNames = {}));
|
|
1684
|
+
|
|
1685
|
+
// src/lib/runtime/remote-actions.ts
|
|
1653
1686
|
var import_shared2 = require("@copilotkit/shared");
|
|
1654
1687
|
var EndpointType;
|
|
1655
1688
|
(function(EndpointType2) {
|
|
@@ -2133,6 +2166,16 @@ var CopilotResolver = class {
|
|
|
2133
2166
|
return;
|
|
2134
2167
|
}
|
|
2135
2168
|
switch (event.name) {
|
|
2169
|
+
case LangGraphEventTypes.OnInterrupt:
|
|
2170
|
+
push((0, import_class_transformer2.plainToInstance)(LangGraphInterruptEvent, {
|
|
2171
|
+
// @ts-ignore
|
|
2172
|
+
type: event.type,
|
|
2173
|
+
// @ts-ignore
|
|
2174
|
+
name: RuntimeMetaEventName.LangGraphInterruptEvent,
|
|
2175
|
+
// @ts-ignore
|
|
2176
|
+
value: event.value
|
|
2177
|
+
}));
|
|
2178
|
+
break;
|
|
2136
2179
|
case RuntimeMetaEventName.LangGraphInterruptEvent:
|
|
2137
2180
|
push((0, import_class_transformer2.plainToInstance)(LangGraphInterruptEvent, {
|
|
2138
2181
|
type: event.type,
|