@copilotkit/runtime 1.10.0-next.0 → 1.10.0-next.2

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 +17 -0
  2. package/dist/{chunk-IMZSBLG7.mjs → chunk-5AK2NTQ7.mjs} +2 -2
  3. package/dist/{chunk-Z5WUVWW7.mjs → chunk-66U5NEKM.mjs} +2 -2
  4. package/dist/{chunk-X76SZ4PE.mjs → chunk-MQNB5R6D.mjs} +8 -7
  5. package/dist/chunk-MQNB5R6D.mjs.map +1 -0
  6. package/dist/{chunk-I5VNKUWI.mjs → chunk-MVGREU3Y.mjs} +2 -2
  7. package/dist/{chunk-HB5Z72TJ.mjs → chunk-UT7SO2JE.mjs} +2 -2
  8. package/dist/index.js +7 -6
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +7 -6
  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 +2 -4
  27. package/src/lib/runtime/agui-action.ts +5 -0
  28. package/src/lib/runtime/remote-actions.ts +1 -0
  29. package/dist/chunk-X76SZ4PE.mjs.map +0 -1
  30. /package/dist/{chunk-IMZSBLG7.mjs.map → chunk-5AK2NTQ7.mjs.map} +0 -0
  31. /package/dist/{chunk-Z5WUVWW7.mjs.map → chunk-66U5NEKM.mjs.map} +0 -0
  32. /package/dist/{chunk-I5VNKUWI.mjs.map → chunk-MVGREU3Y.mjs.map} +0 -0
  33. /package/dist/{chunk-HB5Z72TJ.mjs.map → chunk-UT7SO2JE.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LangGraphEventTypes
3
- } from "./chunk-X76SZ4PE.mjs";
3
+ } from "./chunk-MQNB5R6D.mjs";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-FHD4JECV.mjs";
@@ -156,4 +156,4 @@ export {
156
156
  CustomEventNames,
157
157
  LangGraphAgent
158
158
  };
159
- //# sourceMappingURL=chunk-I5VNKUWI.mjs.map
159
+ //# sourceMappingURL=chunk-MVGREU3Y.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-X76SZ4PE.mjs";
5
+ } from "./chunk-MQNB5R6D.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-FHD4JECV.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
22
22
  export {
23
23
  copilotRuntimeNodeExpressEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-HB5Z72TJ.mjs.map
25
+ //# sourceMappingURL=chunk-UT7SO2JE.mjs.map
package/dist/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.0",
47
+ version: "1.10.0-next.2",
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",
@@ -6344,7 +6342,7 @@ var import_shared26 = require("@copilotkit/shared");
6344
6342
 
6345
6343
  // src/lib/runtime/agui-action.ts
6346
6344
  var import_shared24 = require("@copilotkit/shared");
6347
- function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
6345
+ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName, graphqlContext }) {
6348
6346
  const action = {
6349
6347
  name: agent.agentId,
6350
6348
  description: agent.description,
@@ -6390,7 +6388,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
6390
6388
  } : {},
6391
6389
  ...nodeName ? {
6392
6390
  nodeName
6393
- } : {}
6391
+ } : {},
6392
+ // Forward properties from the graphql context to the agent, e.g Authorization token
6393
+ ...graphqlContext.properties
6394
6394
  };
6395
6395
  return agent.legacy_to_be_removed_runAgentBridged({
6396
6396
  tools,
@@ -6572,7 +6572,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
6572
6572
  agent,
6573
6573
  metaEvents,
6574
6574
  threadMetadata,
6575
- nodeName
6575
+ nodeName,
6576
+ graphqlContext
6576
6577
  }));
6577
6578
  }
6578
6579
  return result.flat();