@copilotkit/runtime 1.9.2-next.16 → 1.9.2-next.17
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 +7 -0
- package/dist/{chunk-4ODT32DV.mjs → chunk-6QK2NO6W.mjs} +2 -2
- package/dist/{chunk-RBG2A675.mjs → chunk-7EDOHCIU.mjs} +2 -2
- package/dist/{chunk-R22NGLLV.mjs → chunk-CORCJNXR.mjs} +2 -2
- package/dist/{chunk-7F4BIRQF.mjs → chunk-H3ML2MWF.mjs} +13 -8
- package/dist/chunk-H3ML2MWF.mjs.map +1 -0
- package/dist/{chunk-BCDAWNNK.mjs → chunk-WXNKOOVD.mjs} +2 -2
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +12 -7
- 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 +2 -2
- package/src/lib/runtime/agui-action.ts +3 -0
- package/src/lib/runtime/copilot-runtime.ts +1 -0
- package/src/lib/runtime/remote-actions.ts +3 -0
- package/dist/chunk-7F4BIRQF.mjs.map +0 -1
- /package/dist/{chunk-4ODT32DV.mjs.map → chunk-6QK2NO6W.mjs.map} +0 -0
- /package/dist/{chunk-RBG2A675.mjs.map → chunk-7EDOHCIU.mjs.map} +0 -0
- /package/dist/{chunk-R22NGLLV.mjs.map → chunk-CORCJNXR.mjs.map} +0 -0
- /package/dist/{chunk-BCDAWNNK.mjs.map → chunk-WXNKOOVD.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CustomEventNames,
|
|
3
3
|
LangGraphAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CORCJNXR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
config,
|
|
7
7
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
8
8
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7EDOHCIU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNestEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WXNKOOVD.mjs";
|
|
13
13
|
import {
|
|
14
14
|
copilotRuntimeNodeExpressEndpoint
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6QK2NO6W.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CopilotRuntime,
|
|
18
18
|
addCustomHeaderPlugin,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
getCommonConfig,
|
|
29
29
|
langGraphPlatformEndpoint,
|
|
30
30
|
resolveEndpointType
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-H3ML2MWF.mjs";
|
|
32
32
|
import "./chunk-SHBDMA63.mjs";
|
|
33
33
|
import {
|
|
34
34
|
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.9.2-next.
|
|
47
|
+
version: "1.9.2-next.17",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -5052,7 +5052,7 @@ please use an LLM adapter instead.`
|
|
|
5052
5052
|
}
|
|
5053
5053
|
}
|
|
5054
5054
|
async getServerSideActions(request) {
|
|
5055
|
-
var _a, _b;
|
|
5055
|
+
var _a, _b, _c;
|
|
5056
5056
|
const { graphqlContext, messages: rawMessages, agentStates, url } = request;
|
|
5057
5057
|
const inputMessages = convertGqlInputToMessages(rawMessages);
|
|
5058
5058
|
const langserveFunctions = [];
|
|
@@ -5075,7 +5075,8 @@ please use an LLM adapter instead.`
|
|
|
5075
5075
|
agentStates,
|
|
5076
5076
|
frontendUrl: url,
|
|
5077
5077
|
agents: this.agents,
|
|
5078
|
-
metaEvents: request.metaEvents
|
|
5078
|
+
metaEvents: request.metaEvents,
|
|
5079
|
+
nodeName: (_a = request.agentSession) == null ? void 0 : _a.nodeName
|
|
5079
5080
|
});
|
|
5080
5081
|
const configuredActions = typeof this.actions === "function" ? this.actions({
|
|
5081
5082
|
properties: graphqlContext.properties,
|
|
@@ -5084,7 +5085,7 @@ please use an LLM adapter instead.`
|
|
|
5084
5085
|
const requestSpecificMCPActions = [];
|
|
5085
5086
|
if (this.createMCPClientImpl) {
|
|
5086
5087
|
const baseEndpoints = this.mcpServersConfig || [];
|
|
5087
|
-
const requestEndpoints = ((
|
|
5088
|
+
const requestEndpoints = ((_b = graphqlContext.properties) == null ? void 0 : _b.mcpServers) || ((_c = graphqlContext.properties) == null ? void 0 : _c.mcpEndpoints) || [];
|
|
5088
5089
|
const effectiveEndpointsMap = /* @__PURE__ */ new Map();
|
|
5089
5090
|
[
|
|
5090
5091
|
...baseEndpoints
|
|
@@ -5818,7 +5819,7 @@ var import_shared23 = require("@copilotkit/shared");
|
|
|
5818
5819
|
|
|
5819
5820
|
// src/lib/runtime/agui-action.ts
|
|
5820
5821
|
var import_shared21 = require("@copilotkit/shared");
|
|
5821
|
-
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata }) {
|
|
5822
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
|
|
5822
5823
|
const action = {
|
|
5823
5824
|
name: agent.agentId,
|
|
5824
5825
|
description: agent.description,
|
|
@@ -5861,6 +5862,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
5861
5862
|
} : {},
|
|
5862
5863
|
...threadMetadata ? {
|
|
5863
5864
|
threadMetadata
|
|
5865
|
+
} : {},
|
|
5866
|
+
...nodeName ? {
|
|
5867
|
+
nodeName
|
|
5864
5868
|
} : {}
|
|
5865
5869
|
};
|
|
5866
5870
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
@@ -5976,7 +5980,7 @@ async function fetchRemoteInfo({ url, onBeforeRequest, graphqlContext, logger: l
|
|
|
5976
5980
|
}
|
|
5977
5981
|
}
|
|
5978
5982
|
__name(fetchRemoteInfo, "fetchRemoteInfo");
|
|
5979
|
-
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents }) {
|
|
5983
|
+
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents, nodeName }) {
|
|
5980
5984
|
var _a;
|
|
5981
5985
|
const logger2 = graphqlContext.logger.child({
|
|
5982
5986
|
component: "remote-actions.fetchRemoteActions"
|
|
@@ -6042,7 +6046,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
6042
6046
|
agentStates,
|
|
6043
6047
|
agent,
|
|
6044
6048
|
metaEvents,
|
|
6045
|
-
threadMetadata
|
|
6049
|
+
threadMetadata,
|
|
6050
|
+
nodeName
|
|
6046
6051
|
}));
|
|
6047
6052
|
}
|
|
6048
6053
|
return result.flat();
|