@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/dist/index.mjs
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
CustomEventNames,
|
|
3
3
|
LangGraphAgent,
|
|
4
4
|
LangGraphHttpAgent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MVGREU3Y.mjs";
|
|
6
6
|
import {
|
|
7
7
|
config,
|
|
8
8
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
9
9
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5AK2NTQ7.mjs";
|
|
11
11
|
import {
|
|
12
12
|
copilotRuntimeNestEndpoint
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-66U5NEKM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
copilotRuntimeNodeExpressEndpoint
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UT7SO2JE.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-
|
|
32
|
+
} from "./chunk-MQNB5R6D.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.
|
|
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",
|
|
@@ -5890,7 +5888,7 @@ var import_shared23 = require("@copilotkit/shared");
|
|
|
5890
5888
|
|
|
5891
5889
|
// src/lib/runtime/agui-action.ts
|
|
5892
5890
|
var import_shared21 = require("@copilotkit/shared");
|
|
5893
|
-
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
|
|
5891
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName, graphqlContext }) {
|
|
5894
5892
|
const action = {
|
|
5895
5893
|
name: agent.agentId,
|
|
5896
5894
|
description: agent.description,
|
|
@@ -5936,7 +5934,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
5936
5934
|
} : {},
|
|
5937
5935
|
...nodeName ? {
|
|
5938
5936
|
nodeName
|
|
5939
|
-
} : {}
|
|
5937
|
+
} : {},
|
|
5938
|
+
// Forward properties from the graphql context to the agent, e.g Authorization token
|
|
5939
|
+
...graphqlContext.properties
|
|
5940
5940
|
};
|
|
5941
5941
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
5942
5942
|
tools,
|
|
@@ -6118,7 +6118,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
6118
6118
|
agent,
|
|
6119
6119
|
metaEvents,
|
|
6120
6120
|
threadMetadata,
|
|
6121
|
-
nodeName
|
|
6121
|
+
nodeName,
|
|
6122
|
+
graphqlContext
|
|
6122
6123
|
}));
|
|
6123
6124
|
}
|
|
6124
6125
|
return result.flat();
|