@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.
Files changed (33) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-MZSUT6FW.mjs → chunk-BV7WYSOF.mjs} +2 -2
  3. package/dist/{chunk-5FDI6FH6.mjs → chunk-EQX4WXGG.mjs} +2 -2
  4. package/dist/{chunk-YLRGZOEQ.mjs → chunk-IZAPLBCH.mjs} +26 -7
  5. package/dist/chunk-IZAPLBCH.mjs.map +1 -0
  6. package/dist/{chunk-RM7LK6G2.mjs → chunk-JH3OA44N.mjs} +2 -2
  7. package/dist/index.js +25 -6
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +4 -4
  10. package/dist/lib/index.js +25 -6
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/index.mjs +4 -4
  13. package/dist/lib/integrations/index.js +44 -1
  14. package/dist/lib/integrations/index.js.map +1 -1
  15. package/dist/lib/integrations/index.mjs +4 -4
  16. package/dist/lib/integrations/nest/index.js +44 -1
  17. package/dist/lib/integrations/nest/index.js.map +1 -1
  18. package/dist/lib/integrations/nest/index.mjs +2 -2
  19. package/dist/lib/integrations/node-express/index.js +44 -1
  20. package/dist/lib/integrations/node-express/index.js.map +1 -1
  21. package/dist/lib/integrations/node-express/index.mjs +2 -2
  22. package/dist/lib/integrations/node-http/index.js +44 -1
  23. package/dist/lib/integrations/node-http/index.js.map +1 -1
  24. package/dist/lib/integrations/node-http/index.mjs +1 -1
  25. package/package.json +2 -2
  26. package/src/graphql/resolvers/copilot.resolver.ts +14 -0
  27. package/src/lib/runtime/agui-action.ts +8 -0
  28. package/src/lib/runtime/copilot-runtime.ts +1 -0
  29. package/src/lib/runtime/remote-actions.ts +3 -0
  30. package/dist/chunk-YLRGZOEQ.mjs.map +0 -1
  31. /package/dist/{chunk-MZSUT6FW.mjs.map → chunk-BV7WYSOF.mjs.map} +0 -0
  32. /package/dist/{chunk-5FDI6FH6.mjs.map → chunk-EQX4WXGG.mjs.map} +0 -0
  33. /package/dist/{chunk-RM7LK6G2.mjs.map → chunk-JH3OA44N.mjs.map} +0 -0
@@ -2,20 +2,20 @@ import {
2
2
  config,
3
3
  copilotRuntimeNextJSAppRouterEndpoint,
4
4
  copilotRuntimeNextJSPagesRouterEndpoint
5
- } from "../../chunk-5FDI6FH6.mjs";
5
+ } from "../../chunk-EQX4WXGG.mjs";
6
6
  import {
7
7
  copilotRuntimeNestEndpoint
8
- } from "../../chunk-RM7LK6G2.mjs";
8
+ } from "../../chunk-JH3OA44N.mjs";
9
9
  import {
10
10
  copilotRuntimeNodeExpressEndpoint
11
- } from "../../chunk-MZSUT6FW.mjs";
11
+ } from "../../chunk-BV7WYSOF.mjs";
12
12
  import {
13
13
  addCustomHeaderPlugin,
14
14
  buildSchema,
15
15
  copilotRuntimeNodeHttpEndpoint,
16
16
  createContext,
17
17
  getCommonConfig
18
- } from "../../chunk-YLRGZOEQ.mjs";
18
+ } from "../../chunk-IZAPLBCH.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.2",
47
+ version: "1.8.14-next.4",
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,