@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.
- package/CHANGELOG.md +10 -0
- package/dist/{chunk-I5VNKUWI.mjs → chunk-5OSQ6CM5.mjs} +2 -2
- package/dist/{chunk-IMZSBLG7.mjs → chunk-7WC4OMOL.mjs} +2 -2
- package/dist/{chunk-HB5Z72TJ.mjs → chunk-NV4PTNDU.mjs} +2 -2
- package/dist/{chunk-Z5WUVWW7.mjs → chunk-VOCP3OKE.mjs} +2 -2
- package/dist/{chunk-X76SZ4PE.mjs → chunk-YBAPVMN4.mjs} +8 -5
- package/dist/chunk-YBAPVMN4.mjs.map +1 -0
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +7 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +1 -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 +1 -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 +1 -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 +1 -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 +4 -4
- package/src/lib/runtime/agui-action.ts +5 -0
- package/src/lib/runtime/remote-actions.ts +1 -0
- package/dist/chunk-X76SZ4PE.mjs.map +0 -1
- /package/dist/{chunk-I5VNKUWI.mjs.map → chunk-5OSQ6CM5.mjs.map} +0 -0
- /package/dist/{chunk-IMZSBLG7.mjs.map → chunk-7WC4OMOL.mjs.map} +0 -0
- /package/dist/{chunk-HB5Z72TJ.mjs.map → chunk-NV4PTNDU.mjs.map} +0 -0
- /package/dist/{chunk-Z5WUVWW7.mjs.map → chunk-VOCP3OKE.mjs.map} +0 -0
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.
|
|
47
|
+
version: "1.10.0-next.1",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -6344,7 +6344,7 @@ var import_shared26 = require("@copilotkit/shared");
|
|
|
6344
6344
|
|
|
6345
6345
|
// src/lib/runtime/agui-action.ts
|
|
6346
6346
|
var import_shared24 = require("@copilotkit/shared");
|
|
6347
|
-
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
|
|
6347
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName, graphqlContext }) {
|
|
6348
6348
|
const action = {
|
|
6349
6349
|
name: agent.agentId,
|
|
6350
6350
|
description: agent.description,
|
|
@@ -6390,7 +6390,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
6390
6390
|
} : {},
|
|
6391
6391
|
...nodeName ? {
|
|
6392
6392
|
nodeName
|
|
6393
|
-
} : {}
|
|
6393
|
+
} : {},
|
|
6394
|
+
// Forward properties from the graphql context to the agent, e.g Authorization token
|
|
6395
|
+
...graphqlContext.properties
|
|
6394
6396
|
};
|
|
6395
6397
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
6396
6398
|
tools,
|
|
@@ -6572,7 +6574,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
6572
6574
|
agent,
|
|
6573
6575
|
metaEvents,
|
|
6574
6576
|
threadMetadata,
|
|
6575
|
-
nodeName
|
|
6577
|
+
nodeName,
|
|
6578
|
+
graphqlContext
|
|
6576
6579
|
}));
|
|
6577
6580
|
}
|
|
6578
6581
|
return result.flat();
|