@copilotkit/runtime 1.9.2-next.15 → 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 +14 -0
- package/dist/{chunk-SBSDOLSI.mjs → chunk-6QK2NO6W.mjs} +2 -2
- package/dist/{chunk-WRTZZ52D.mjs → chunk-7EDOHCIU.mjs} +2 -2
- package/dist/{chunk-XJBX2ZN2.mjs → chunk-CORCJNXR.mjs} +2 -2
- package/dist/{chunk-SLTWS4D3.mjs → chunk-H3ML2MWF.mjs} +26 -13
- package/dist/chunk-H3ML2MWF.mjs.map +1 -0
- package/dist/{chunk-7ZBTD5PN.mjs → chunk-WXNKOOVD.mjs} +2 -2
- package/dist/index.js +25 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +25 -12
- 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 +9 -3
- package/src/lib/runtime/copilot-runtime.ts +1 -0
- package/src/lib/runtime/remote-actions.ts +6 -0
- package/dist/chunk-SLTWS4D3.mjs.map +0 -1
- /package/dist/{chunk-SBSDOLSI.mjs.map → chunk-6QK2NO6W.mjs.map} +0 -0
- /package/dist/{chunk-WRTZZ52D.mjs.map → chunk-7EDOHCIU.mjs.map} +0 -0
- /package/dist/{chunk-XJBX2ZN2.mjs.map → chunk-CORCJNXR.mjs.map} +0 -0
- /package/dist/{chunk-7ZBTD5PN.mjs.map → chunk-WXNKOOVD.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.9.2-next.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7ca7023: - feat: send node name to agui agent
|
|
8
|
+
- @copilotkit/shared@1.9.2-next.17
|
|
9
|
+
|
|
10
|
+
## 1.9.2-next.16
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- fe9009c: - feat(langgraph): new thread metadata
|
|
15
|
+
- @copilotkit/shared@1.9.2-next.16
|
|
16
|
+
|
|
3
17
|
## 1.9.2-next.15
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -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 }) {
|
|
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,
|
|
@@ -4337,11 +4338,19 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
4337
4338
|
parameters: JSON.parse(input.jsonSchema)
|
|
4338
4339
|
};
|
|
4339
4340
|
});
|
|
4340
|
-
const forwardedProps =
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4341
|
+
const forwardedProps = {
|
|
4342
|
+
...(metaEvents == null ? void 0 : metaEvents.length) ? {
|
|
4343
|
+
command: {
|
|
4344
|
+
resume: (_a = metaEvents[0]) == null ? void 0 : _a.response
|
|
4345
|
+
}
|
|
4346
|
+
} : {},
|
|
4347
|
+
...threadMetadata ? {
|
|
4348
|
+
threadMetadata
|
|
4349
|
+
} : {},
|
|
4350
|
+
...nodeName ? {
|
|
4351
|
+
nodeName
|
|
4352
|
+
} : {}
|
|
4353
|
+
};
|
|
4345
4354
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
4346
4355
|
tools,
|
|
4347
4356
|
forwardedProps
|
|
@@ -4455,13 +4464,15 @@ async function fetchRemoteInfo({ url, onBeforeRequest, graphqlContext, logger: l
|
|
|
4455
4464
|
}
|
|
4456
4465
|
}
|
|
4457
4466
|
__name(fetchRemoteInfo, "fetchRemoteInfo");
|
|
4458
|
-
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents }) {
|
|
4467
|
+
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents, nodeName }) {
|
|
4468
|
+
var _a;
|
|
4459
4469
|
const logger2 = graphqlContext.logger.child({
|
|
4460
4470
|
component: "remote-actions.fetchRemoteActions"
|
|
4461
4471
|
});
|
|
4462
4472
|
logger2.debug({
|
|
4463
4473
|
remoteEndpointDefinitions
|
|
4464
4474
|
}, "Fetching from remote endpoints");
|
|
4475
|
+
const threadMetadata = ((_a = graphqlContext.properties) == null ? void 0 : _a.threadMetadata) || {};
|
|
4465
4476
|
const filtered = remoteEndpointDefinitions.filter((value, index, self) => {
|
|
4466
4477
|
if (value.type === "langgraph-platform") {
|
|
4467
4478
|
return value;
|
|
@@ -4518,7 +4529,9 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
4518
4529
|
messages,
|
|
4519
4530
|
agentStates,
|
|
4520
4531
|
agent,
|
|
4521
|
-
metaEvents
|
|
4532
|
+
metaEvents,
|
|
4533
|
+
threadMetadata,
|
|
4534
|
+
nodeName
|
|
4522
4535
|
}));
|
|
4523
4536
|
}
|
|
4524
4537
|
return result.flat();
|
|
@@ -5811,4 +5824,4 @@ export {
|
|
|
5811
5824
|
getCommonConfig,
|
|
5812
5825
|
copilotRuntimeNodeHttpEndpoint
|
|
5813
5826
|
};
|
|
5814
|
-
//# sourceMappingURL=chunk-
|
|
5827
|
+
//# sourceMappingURL=chunk-H3ML2MWF.mjs.map
|