@copilotkit/runtime 1.10.0-next.1 → 1.10.0-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.
Files changed (32) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-7WC4OMOL.mjs → chunk-EYRFVD7R.mjs} +2 -2
  3. package/dist/{chunk-NV4PTNDU.mjs → chunk-O4NP7TTT.mjs} +2 -2
  4. package/dist/{chunk-VOCP3OKE.mjs → chunk-VYLNRLFK.mjs} +2 -2
  5. package/dist/{chunk-YBAPVMN4.mjs → chunk-W6MHATLY.mjs} +5 -4
  6. package/dist/chunk-W6MHATLY.mjs.map +1 -0
  7. package/dist/{chunk-5OSQ6CM5.mjs → chunk-Z2GU7KFR.mjs} +2 -2
  8. package/dist/index.js +4 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +4 -3
  12. package/dist/lib/index.js.map +1 -1
  13. package/dist/lib/index.mjs +5 -5
  14. package/dist/lib/integrations/index.js +1 -3
  15. package/dist/lib/integrations/index.js.map +1 -1
  16. package/dist/lib/integrations/index.mjs +4 -4
  17. package/dist/lib/integrations/nest/index.js +1 -3
  18. package/dist/lib/integrations/nest/index.js.map +1 -1
  19. package/dist/lib/integrations/nest/index.mjs +2 -2
  20. package/dist/lib/integrations/node-express/index.js +1 -3
  21. package/dist/lib/integrations/node-express/index.js.map +1 -1
  22. package/dist/lib/integrations/node-express/index.mjs +2 -2
  23. package/dist/lib/integrations/node-http/index.js +1 -3
  24. package/dist/lib/integrations/node-http/index.js.map +1 -1
  25. package/dist/lib/integrations/node-http/index.mjs +1 -1
  26. package/package.json +4 -6
  27. package/src/lib/runtime/agui-action.ts +3 -0
  28. package/dist/chunk-YBAPVMN4.mjs.map +0 -1
  29. /package/dist/{chunk-7WC4OMOL.mjs.map → chunk-EYRFVD7R.mjs.map} +0 -0
  30. /package/dist/{chunk-NV4PTNDU.mjs.map → chunk-O4NP7TTT.mjs.map} +0 -0
  31. /package/dist/{chunk-VOCP3OKE.mjs.map → chunk-VYLNRLFK.mjs.map} +0 -0
  32. /package/dist/{chunk-5OSQ6CM5.mjs.map → chunk-Z2GU7KFR.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -2,18 +2,18 @@ import {
2
2
  CustomEventNames,
3
3
  LangGraphAgent,
4
4
  LangGraphHttpAgent
5
- } from "./chunk-5OSQ6CM5.mjs";
5
+ } from "./chunk-Z2GU7KFR.mjs";
6
6
  import {
7
7
  config,
8
8
  copilotRuntimeNextJSAppRouterEndpoint,
9
9
  copilotRuntimeNextJSPagesRouterEndpoint
10
- } from "./chunk-7WC4OMOL.mjs";
10
+ } from "./chunk-EYRFVD7R.mjs";
11
11
  import {
12
12
  copilotRuntimeNestEndpoint
13
- } from "./chunk-VOCP3OKE.mjs";
13
+ } from "./chunk-VYLNRLFK.mjs";
14
14
  import {
15
15
  copilotRuntimeNodeExpressEndpoint
16
- } from "./chunk-NV4PTNDU.mjs";
16
+ } from "./chunk-O4NP7TTT.mjs";
17
17
  import {
18
18
  CopilotRuntime,
19
19
  addCustomHeaderPlugin,
@@ -29,7 +29,7 @@ import {
29
29
  getCommonConfig,
30
30
  langGraphPlatformEndpoint,
31
31
  resolveEndpointType
32
- } from "./chunk-YBAPVMN4.mjs";
32
+ } from "./chunk-W6MHATLY.mjs";
33
33
  import "./chunk-SHBDMA63.mjs";
34
34
  import {
35
35
  AnthropicAdapter,
package/dist/lib/index.js CHANGED
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.10.0-next.1",
47
+ version: "1.10.0-next.3",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -97,7 +97,6 @@ var require_package = __commonJS({
97
97
  "@langchain/langgraph-sdk": "^0.0.70",
98
98
  "@langchain/openai": "^0.4.2",
99
99
  "@scarf/scarf": "^1.3.0",
100
- "@types/ip": "^1.1.3",
101
100
  "class-transformer": "^0.5.1",
102
101
  "class-validator": "^0.14.1",
103
102
  express: "^4.19.2",
@@ -105,7 +104,6 @@ var require_package = __commonJS({
105
104
  "graphql-scalars": "^1.23.0",
106
105
  "graphql-yoga": "^5.3.1",
107
106
  "groq-sdk": "^0.5.0",
108
- ip: "^2.0.1",
109
107
  langchain: "^0.3.3",
110
108
  openai: "^4.85.1",
111
109
  "partial-json": "^0.1.7",
@@ -5911,10 +5909,12 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
5911
5909
  agentsAmount: 1
5912
5910
  });
5913
5911
  let state = {};
5912
+ let config2 = {};
5914
5913
  if (agentStates) {
5915
5914
  const jsonState = agentStates.find((state2) => state2.agentName === agent.agentId);
5916
5915
  if (jsonState) {
5917
5916
  state = (0, import_shared21.parseJson)(jsonState.state, {});
5917
+ config2 = (0, import_shared21.parseJson)(jsonState.config, {});
5918
5918
  }
5919
5919
  }
5920
5920
  agent.state = state;
@@ -5926,6 +5926,7 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
5926
5926
  };
5927
5927
  });
5928
5928
  const forwardedProps = {
5929
+ config: config2,
5929
5930
  ...(metaEvents == null ? void 0 : metaEvents.length) ? {
5930
5931
  command: {
5931
5932
  resume: (_a = metaEvents[0]) == null ? void 0 : _a.response