@copilotkit/runtime 1.8.14-next.0 → 1.8.14-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 +14 -0
- package/dist/{chunk-OYTCEK6Z.mjs → chunk-5FDI6FH6.mjs} +2 -2
- package/dist/{chunk-USZSBTBI.mjs → chunk-MZSUT6FW.mjs} +2 -2
- package/dist/{chunk-JCPSSHWJ.mjs → chunk-RM7LK6G2.mjs} +2 -2
- package/dist/{chunk-OEMQGRLR.mjs → chunk-YLRGZOEQ.mjs} +9 -10
- package/dist/chunk-YLRGZOEQ.mjs.map +1 -0
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +8 -9
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- 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/{agentwire-action.ts → agui-action.ts} +8 -8
- package/src/lib/runtime/copilot-runtime.ts +10 -2
- package/src/lib/runtime/remote-actions.ts +2 -2
- package/dist/chunk-OEMQGRLR.mjs.map +0 -1
- /package/dist/{chunk-OYTCEK6Z.mjs.map → chunk-5FDI6FH6.mjs.map} +0 -0
- /package/dist/{chunk-USZSBTBI.mjs.map → chunk-MZSUT6FW.mjs.map} +0 -0
- /package/dist/{chunk-JCPSSHWJ.mjs.map → chunk-RM7LK6G2.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5FDI6FH6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RM7LK6G2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MZSUT6FW.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
addCustomHeaderPlugin,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getCommonConfig,
|
|
26
26
|
langGraphPlatformEndpoint,
|
|
27
27
|
resolveEndpointType
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YLRGZOEQ.mjs";
|
|
29
29
|
import {
|
|
30
30
|
AnthropicAdapter,
|
|
31
31
|
EmptyAdapter,
|
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.8.14-next.
|
|
47
|
+
version: "1.8.14-next.2",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -3936,9 +3936,9 @@ __name(createHeaders, "createHeaders");
|
|
|
3936
3936
|
// src/lib/runtime/remote-actions.ts
|
|
3937
3937
|
var import_shared15 = require("@copilotkit/shared");
|
|
3938
3938
|
|
|
3939
|
-
// src/lib/runtime/
|
|
3939
|
+
// src/lib/runtime/agui-action.ts
|
|
3940
3940
|
var import_shared13 = require("@copilotkit/shared");
|
|
3941
|
-
function
|
|
3941
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent }) {
|
|
3942
3942
|
const action = {
|
|
3943
3943
|
name: agent.agentId,
|
|
3944
3944
|
description: agent.description,
|
|
@@ -3949,7 +3949,7 @@ function constructAgentWireRemoteAction({ logger: logger2, messages, agentStates
|
|
|
3949
3949
|
logger2.debug({
|
|
3950
3950
|
actionName: agent.agentId
|
|
3951
3951
|
}, "Executing remote agent");
|
|
3952
|
-
const agentWireMessages =
|
|
3952
|
+
const agentWireMessages = convertMessagesToAGUIMessage(messages);
|
|
3953
3953
|
agent.messages = agentWireMessages;
|
|
3954
3954
|
agent.threadId = threadId;
|
|
3955
3955
|
telemetry_client_default.capture("oss.runtime.remote_action_executed", {
|
|
@@ -3981,8 +3981,8 @@ function constructAgentWireRemoteAction({ logger: logger2, messages, agentStates
|
|
|
3981
3981
|
action
|
|
3982
3982
|
];
|
|
3983
3983
|
}
|
|
3984
|
-
__name(
|
|
3985
|
-
function
|
|
3984
|
+
__name(constructAGUIRemoteAction, "constructAGUIRemoteAction");
|
|
3985
|
+
function convertMessagesToAGUIMessage(messages) {
|
|
3986
3986
|
const result = [];
|
|
3987
3987
|
for (const message of messages) {
|
|
3988
3988
|
if (message.isTextMessage()) {
|
|
@@ -4026,7 +4026,7 @@ function convertMessagesToAgentWire(messages) {
|
|
|
4026
4026
|
}
|
|
4027
4027
|
return result;
|
|
4028
4028
|
}
|
|
4029
|
-
__name(
|
|
4029
|
+
__name(convertMessagesToAGUIMessage, "convertMessagesToAGUIMessage");
|
|
4030
4030
|
|
|
4031
4031
|
// src/lib/runtime/remote-actions.ts
|
|
4032
4032
|
var EndpointType;
|
|
@@ -4142,7 +4142,7 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
4142
4142
|
} else if (agent.agentId === void 0) {
|
|
4143
4143
|
agent.agentId = key;
|
|
4144
4144
|
}
|
|
4145
|
-
result.push(
|
|
4145
|
+
result.push(constructAGUIRemoteAction({
|
|
4146
4146
|
logger: logger2,
|
|
4147
4147
|
messages,
|
|
4148
4148
|
agentStates,
|
|
@@ -4640,7 +4640,6 @@ var CopilotRuntime = class {
|
|
|
4640
4640
|
}
|
|
4641
4641
|
return newMessages;
|
|
4642
4642
|
}
|
|
4643
|
-
// --- MCP Instruction Injection Method ---
|
|
4644
4643
|
async processRuntimeRequest(request) {
|
|
4645
4644
|
var _a, _b, _c, _d, _e;
|
|
4646
4645
|
const { serviceAdapter, messages: rawMessages, actions: clientSideActionsInput, threadId, runId, outputMessagesPromise, graphqlContext, forwardedParameters, url, extensions, agentSession, agentStates, publicApiKey } = request;
|