@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.
- package/CHANGELOG.md +17 -0
- package/dist/{chunk-IMZSBLG7.mjs → chunk-5AK2NTQ7.mjs} +2 -2
- package/dist/{chunk-Z5WUVWW7.mjs → chunk-66U5NEKM.mjs} +2 -2
- package/dist/{chunk-X76SZ4PE.mjs → chunk-MQNB5R6D.mjs} +8 -7
- package/dist/chunk-MQNB5R6D.mjs.map +1 -0
- package/dist/{chunk-I5VNKUWI.mjs → chunk-MVGREU3Y.mjs} +2 -2
- package/dist/{chunk-HB5Z72TJ.mjs → chunk-UT7SO2JE.mjs} +2 -2
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +7 -6
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +1 -3
- 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 -3
- 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 -3
- 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 -3
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +2 -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-IMZSBLG7.mjs.map → chunk-5AK2NTQ7.mjs.map} +0 -0
- /package/dist/{chunk-Z5WUVWW7.mjs.map → chunk-66U5NEKM.mjs.map} +0 -0
- /package/dist/{chunk-I5VNKUWI.mjs.map → chunk-MVGREU3Y.mjs.map} +0 -0
- /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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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();
|