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

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 +10 -0
  2. package/dist/{chunk-I5VNKUWI.mjs → chunk-5OSQ6CM5.mjs} +2 -2
  3. package/dist/{chunk-IMZSBLG7.mjs → chunk-7WC4OMOL.mjs} +2 -2
  4. package/dist/{chunk-HB5Z72TJ.mjs → chunk-NV4PTNDU.mjs} +2 -2
  5. package/dist/{chunk-Z5WUVWW7.mjs → chunk-VOCP3OKE.mjs} +2 -2
  6. package/dist/{chunk-X76SZ4PE.mjs → chunk-YBAPVMN4.mjs} +8 -5
  7. package/dist/chunk-YBAPVMN4.mjs.map +1 -0
  8. package/dist/index.js +7 -4
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +7 -4
  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 -1
  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 -1
  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 -1
  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 -1
  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 -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-I5VNKUWI.mjs.map → chunk-5OSQ6CM5.mjs.map} +0 -0
  31. /package/dist/{chunk-IMZSBLG7.mjs.map → chunk-7WC4OMOL.mjs.map} +0 -0
  32. /package/dist/{chunk-HB5Z72TJ.mjs.map → chunk-NV4PTNDU.mjs.map} +0 -0
  33. /package/dist/{chunk-Z5WUVWW7.mjs.map → chunk-VOCP3OKE.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-I5VNKUWI.mjs";
5
+ } from "./chunk-5OSQ6CM5.mjs";
6
6
  import {
7
7
  config,
8
8
  copilotRuntimeNextJSAppRouterEndpoint,
9
9
  copilotRuntimeNextJSPagesRouterEndpoint
10
- } from "./chunk-IMZSBLG7.mjs";
10
+ } from "./chunk-7WC4OMOL.mjs";
11
11
  import {
12
12
  copilotRuntimeNestEndpoint
13
- } from "./chunk-Z5WUVWW7.mjs";
13
+ } from "./chunk-VOCP3OKE.mjs";
14
14
  import {
15
15
  copilotRuntimeNodeExpressEndpoint
16
- } from "./chunk-HB5Z72TJ.mjs";
16
+ } from "./chunk-NV4PTNDU.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-X76SZ4PE.mjs";
32
+ } from "./chunk-YBAPVMN4.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.0",
47
+ version: "1.10.0-next.1",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -5890,7 +5890,7 @@ var import_shared23 = require("@copilotkit/shared");
5890
5890
 
5891
5891
  // src/lib/runtime/agui-action.ts
5892
5892
  var import_shared21 = require("@copilotkit/shared");
5893
- function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
5893
+ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName, graphqlContext }) {
5894
5894
  const action = {
5895
5895
  name: agent.agentId,
5896
5896
  description: agent.description,
@@ -5936,7 +5936,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
5936
5936
  } : {},
5937
5937
  ...nodeName ? {
5938
5938
  nodeName
5939
- } : {}
5939
+ } : {},
5940
+ // Forward properties from the graphql context to the agent, e.g Authorization token
5941
+ ...graphqlContext.properties
5940
5942
  };
5941
5943
  return agent.legacy_to_be_removed_runAgentBridged({
5942
5944
  tools,
@@ -6118,7 +6120,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
6118
6120
  agent,
6119
6121
  metaEvents,
6120
6122
  threadMetadata,
6121
- nodeName
6123
+ nodeName,
6124
+ graphqlContext
6122
6125
  }));
6123
6126
  }
6124
6127
  return result.flat();