@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
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H3ML2MWF.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-WXNKOOVD.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.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",
|
|
@@ -5506,7 +5506,7 @@ please use an LLM adapter instead.`
|
|
|
5506
5506
|
}
|
|
5507
5507
|
}
|
|
5508
5508
|
async getServerSideActions(request) {
|
|
5509
|
-
var _a, _b;
|
|
5509
|
+
var _a, _b, _c;
|
|
5510
5510
|
const { graphqlContext, messages: rawMessages, agentStates, url } = request;
|
|
5511
5511
|
const inputMessages = convertGqlInputToMessages(rawMessages);
|
|
5512
5512
|
const langserveFunctions = [];
|
|
@@ -5529,7 +5529,8 @@ please use an LLM adapter instead.`
|
|
|
5529
5529
|
agentStates,
|
|
5530
5530
|
frontendUrl: url,
|
|
5531
5531
|
agents: this.agents,
|
|
5532
|
-
metaEvents: request.metaEvents
|
|
5532
|
+
metaEvents: request.metaEvents,
|
|
5533
|
+
nodeName: (_a = request.agentSession) == null ? void 0 : _a.nodeName
|
|
5533
5534
|
});
|
|
5534
5535
|
const configuredActions = typeof this.actions === "function" ? this.actions({
|
|
5535
5536
|
properties: graphqlContext.properties,
|
|
@@ -5538,7 +5539,7 @@ please use an LLM adapter instead.`
|
|
|
5538
5539
|
const requestSpecificMCPActions = [];
|
|
5539
5540
|
if (this.createMCPClientImpl) {
|
|
5540
5541
|
const baseEndpoints = this.mcpServersConfig || [];
|
|
5541
|
-
const requestEndpoints = ((
|
|
5542
|
+
const requestEndpoints = ((_b = graphqlContext.properties) == null ? void 0 : _b.mcpServers) || ((_c = graphqlContext.properties) == null ? void 0 : _c.mcpEndpoints) || [];
|
|
5542
5543
|
const effectiveEndpointsMap = /* @__PURE__ */ new Map();
|
|
5543
5544
|
[
|
|
5544
5545
|
...baseEndpoints
|
|
@@ -6272,7 +6273,7 @@ var import_shared26 = require("@copilotkit/shared");
|
|
|
6272
6273
|
|
|
6273
6274
|
// src/lib/runtime/agui-action.ts
|
|
6274
6275
|
var import_shared24 = require("@copilotkit/shared");
|
|
6275
|
-
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata }) {
|
|
6276
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
|
|
6276
6277
|
const action = {
|
|
6277
6278
|
name: agent.agentId,
|
|
6278
6279
|
description: agent.description,
|
|
@@ -6315,6 +6316,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
6315
6316
|
} : {},
|
|
6316
6317
|
...threadMetadata ? {
|
|
6317
6318
|
threadMetadata
|
|
6319
|
+
} : {},
|
|
6320
|
+
...nodeName ? {
|
|
6321
|
+
nodeName
|
|
6318
6322
|
} : {}
|
|
6319
6323
|
};
|
|
6320
6324
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
@@ -6430,7 +6434,7 @@ async function fetchRemoteInfo({ url, onBeforeRequest, graphqlContext, logger: l
|
|
|
6430
6434
|
}
|
|
6431
6435
|
}
|
|
6432
6436
|
__name(fetchRemoteInfo, "fetchRemoteInfo");
|
|
6433
|
-
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents }) {
|
|
6437
|
+
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents, nodeName }) {
|
|
6434
6438
|
var _a;
|
|
6435
6439
|
const logger2 = graphqlContext.logger.child({
|
|
6436
6440
|
component: "remote-actions.fetchRemoteActions"
|
|
@@ -6496,7 +6500,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
6496
6500
|
agentStates,
|
|
6497
6501
|
agent,
|
|
6498
6502
|
metaEvents,
|
|
6499
|
-
threadMetadata
|
|
6503
|
+
threadMetadata,
|
|
6504
|
+
nodeName
|
|
6500
6505
|
}));
|
|
6501
6506
|
}
|
|
6502
6507
|
return result.flat();
|