@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.10.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a31443c: removed unused dependency on ip module
|
|
8
|
+
- @copilotkit/shared@1.10.0-next.2
|
|
9
|
+
|
|
10
|
+
## 1.10.0-next.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 1abcecf: - fix: add graphqlContext to constructAGUIRemoteAction for enhanced agent properties
|
|
15
|
+
|
|
16
|
+
- Updated constructAGUIRemoteAction to accept graphqlContext, allowing forwarding of properties like Authorization token to the agent.
|
|
17
|
+
- Modified setupRemoteActions to include graphqlContext in the parameters.
|
|
18
|
+
- @copilotkit/shared@1.10.0-next.1
|
|
19
|
+
|
|
3
20
|
## 1.10.0-next.0
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
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";
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
config,
|
|
78
78
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-5AK2NTQ7.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(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNestEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-66U5NEKM.mjs.map
|
|
@@ -40,7 +40,7 @@ var require_package = __commonJS({
|
|
|
40
40
|
publishConfig: {
|
|
41
41
|
access: "public"
|
|
42
42
|
},
|
|
43
|
-
version: "1.10.0-next.
|
|
43
|
+
version: "1.10.0-next.2",
|
|
44
44
|
sideEffects: false,
|
|
45
45
|
main: "./dist/index.js",
|
|
46
46
|
module: "./dist/index.mjs",
|
|
@@ -93,7 +93,6 @@ var require_package = __commonJS({
|
|
|
93
93
|
"@langchain/langgraph-sdk": "^0.0.70",
|
|
94
94
|
"@langchain/openai": "^0.4.2",
|
|
95
95
|
"@scarf/scarf": "^1.3.0",
|
|
96
|
-
"@types/ip": "^1.1.3",
|
|
97
96
|
"class-transformer": "^0.5.1",
|
|
98
97
|
"class-validator": "^0.14.1",
|
|
99
98
|
express: "^4.19.2",
|
|
@@ -101,7 +100,6 @@ var require_package = __commonJS({
|
|
|
101
100
|
"graphql-scalars": "^1.23.0",
|
|
102
101
|
"graphql-yoga": "^5.3.1",
|
|
103
102
|
"groq-sdk": "^0.5.0",
|
|
104
|
-
ip: "^2.0.1",
|
|
105
103
|
langchain: "^0.3.3",
|
|
106
104
|
openai: "^4.85.1",
|
|
107
105
|
"partial-json": "^0.1.7",
|
|
@@ -4372,7 +4370,7 @@ import { CopilotKitLowLevelError as CopilotKitLowLevelError6, ResolvedCopilotKit
|
|
|
4372
4370
|
|
|
4373
4371
|
// src/lib/runtime/agui-action.ts
|
|
4374
4372
|
import { parseJson as parseJson3 } from "@copilotkit/shared";
|
|
4375
|
-
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
|
|
4373
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName, graphqlContext }) {
|
|
4376
4374
|
const action = {
|
|
4377
4375
|
name: agent.agentId,
|
|
4378
4376
|
description: agent.description,
|
|
@@ -4418,7 +4416,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
4418
4416
|
} : {},
|
|
4419
4417
|
...nodeName ? {
|
|
4420
4418
|
nodeName
|
|
4421
|
-
} : {}
|
|
4419
|
+
} : {},
|
|
4420
|
+
// Forward properties from the graphql context to the agent, e.g Authorization token
|
|
4421
|
+
...graphqlContext.properties
|
|
4422
4422
|
};
|
|
4423
4423
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
4424
4424
|
tools,
|
|
@@ -4600,7 +4600,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
4600
4600
|
agent,
|
|
4601
4601
|
metaEvents,
|
|
4602
4602
|
threadMetadata,
|
|
4603
|
-
nodeName
|
|
4603
|
+
nodeName,
|
|
4604
|
+
graphqlContext
|
|
4604
4605
|
}));
|
|
4605
4606
|
}
|
|
4606
4607
|
return result.flat();
|
|
@@ -5919,4 +5920,4 @@ export {
|
|
|
5919
5920
|
getCommonConfig,
|
|
5920
5921
|
copilotRuntimeNodeHttpEndpoint
|
|
5921
5922
|
};
|
|
5922
|
-
//# sourceMappingURL=chunk-
|
|
5923
|
+
//# sourceMappingURL=chunk-MQNB5R6D.mjs.map
|