@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/CHANGELOG.md
CHANGED
|
@@ -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(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNodeExpressEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-6QK2NO6W.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
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";
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
config,
|
|
78
78
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-7EDOHCIU.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LangGraphEventTypes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H3ML2MWF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
CustomEventNames,
|
|
156
156
|
LangGraphAgent
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-CORCJNXR.mjs.map
|
|
@@ -40,7 +40,7 @@ var require_package = __commonJS({
|
|
|
40
40
|
publishConfig: {
|
|
41
41
|
access: "public"
|
|
42
42
|
},
|
|
43
|
-
version: "1.9.2-next.
|
|
43
|
+
version: "1.9.2-next.17",
|
|
44
44
|
sideEffects: false,
|
|
45
45
|
main: "./dist/index.js",
|
|
46
46
|
module: "./dist/index.mjs",
|
|
@@ -3536,7 +3536,7 @@ please use an LLM adapter instead.`
|
|
|
3536
3536
|
}
|
|
3537
3537
|
}
|
|
3538
3538
|
async getServerSideActions(request) {
|
|
3539
|
-
var _a, _b;
|
|
3539
|
+
var _a, _b, _c;
|
|
3540
3540
|
const { graphqlContext, messages: rawMessages, agentStates, url } = request;
|
|
3541
3541
|
const inputMessages = convertGqlInputToMessages(rawMessages);
|
|
3542
3542
|
const langserveFunctions = [];
|
|
@@ -3559,7 +3559,8 @@ please use an LLM adapter instead.`
|
|
|
3559
3559
|
agentStates,
|
|
3560
3560
|
frontendUrl: url,
|
|
3561
3561
|
agents: this.agents,
|
|
3562
|
-
metaEvents: request.metaEvents
|
|
3562
|
+
metaEvents: request.metaEvents,
|
|
3563
|
+
nodeName: (_a = request.agentSession) == null ? void 0 : _a.nodeName
|
|
3563
3564
|
});
|
|
3564
3565
|
const configuredActions = typeof this.actions === "function" ? this.actions({
|
|
3565
3566
|
properties: graphqlContext.properties,
|
|
@@ -3568,7 +3569,7 @@ please use an LLM adapter instead.`
|
|
|
3568
3569
|
const requestSpecificMCPActions = [];
|
|
3569
3570
|
if (this.createMCPClientImpl) {
|
|
3570
3571
|
const baseEndpoints = this.mcpServersConfig || [];
|
|
3571
|
-
const requestEndpoints = ((
|
|
3572
|
+
const requestEndpoints = ((_b = graphqlContext.properties) == null ? void 0 : _b.mcpServers) || ((_c = graphqlContext.properties) == null ? void 0 : _c.mcpEndpoints) || [];
|
|
3572
3573
|
const effectiveEndpointsMap = /* @__PURE__ */ new Map();
|
|
3573
3574
|
[
|
|
3574
3575
|
...baseEndpoints
|
|
@@ -4302,7 +4303,7 @@ import { CopilotKitLowLevelError as CopilotKitLowLevelError6, ResolvedCopilotKit
|
|
|
4302
4303
|
|
|
4303
4304
|
// src/lib/runtime/agui-action.ts
|
|
4304
4305
|
import { parseJson as parseJson3 } from "@copilotkit/shared";
|
|
4305
|
-
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata }) {
|
|
4306
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata, nodeName }) {
|
|
4306
4307
|
const action = {
|
|
4307
4308
|
name: agent.agentId,
|
|
4308
4309
|
description: agent.description,
|
|
@@ -4345,6 +4346,9 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
4345
4346
|
} : {},
|
|
4346
4347
|
...threadMetadata ? {
|
|
4347
4348
|
threadMetadata
|
|
4349
|
+
} : {},
|
|
4350
|
+
...nodeName ? {
|
|
4351
|
+
nodeName
|
|
4348
4352
|
} : {}
|
|
4349
4353
|
};
|
|
4350
4354
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
@@ -4460,7 +4464,7 @@ async function fetchRemoteInfo({ url, onBeforeRequest, graphqlContext, logger: l
|
|
|
4460
4464
|
}
|
|
4461
4465
|
}
|
|
4462
4466
|
__name(fetchRemoteInfo, "fetchRemoteInfo");
|
|
4463
|
-
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents }) {
|
|
4467
|
+
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents, nodeName }) {
|
|
4464
4468
|
var _a;
|
|
4465
4469
|
const logger2 = graphqlContext.logger.child({
|
|
4466
4470
|
component: "remote-actions.fetchRemoteActions"
|
|
@@ -4526,7 +4530,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
4526
4530
|
agentStates,
|
|
4527
4531
|
agent,
|
|
4528
4532
|
metaEvents,
|
|
4529
|
-
threadMetadata
|
|
4533
|
+
threadMetadata,
|
|
4534
|
+
nodeName
|
|
4530
4535
|
}));
|
|
4531
4536
|
}
|
|
4532
4537
|
return result.flat();
|
|
@@ -5819,4 +5824,4 @@ export {
|
|
|
5819
5824
|
getCommonConfig,
|
|
5820
5825
|
copilotRuntimeNodeHttpEndpoint
|
|
5821
5826
|
};
|
|
5822
|
-
//# sourceMappingURL=chunk-
|
|
5827
|
+
//# sourceMappingURL=chunk-H3ML2MWF.mjs.map
|