@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.8.14-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1af7333: - docs: updates ag-ui agent interface
|
|
8
|
+
- @copilotkit/shared@1.8.14-next.2
|
|
9
|
+
|
|
10
|
+
## 1.8.14-next.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [34a78d8]
|
|
15
|
+
- @copilotkit/shared@1.8.14-next.1
|
|
16
|
+
|
|
3
17
|
## 1.8.14-next.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YLRGZOEQ.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-5FDI6FH6.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YLRGZOEQ.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-MZSUT6FW.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YLRGZOEQ.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-RM7LK6G2.mjs.map
|
|
@@ -40,7 +40,7 @@ var require_package = __commonJS({
|
|
|
40
40
|
publishConfig: {
|
|
41
41
|
access: "public"
|
|
42
42
|
},
|
|
43
|
-
version: "1.8.14-next.
|
|
43
|
+
version: "1.8.14-next.2",
|
|
44
44
|
sideEffects: false,
|
|
45
45
|
main: "./dist/index.js",
|
|
46
46
|
module: "./dist/index.mjs",
|
|
@@ -2696,9 +2696,9 @@ __name(createHeaders, "createHeaders");
|
|
|
2696
2696
|
// src/lib/runtime/remote-actions.ts
|
|
2697
2697
|
import { CopilotKitLowLevelError as CopilotKitLowLevelError2, ResolvedCopilotKitError as ResolvedCopilotKitError2, CopilotKitError as CopilotKitError2 } from "@copilotkit/shared";
|
|
2698
2698
|
|
|
2699
|
-
// src/lib/runtime/
|
|
2699
|
+
// src/lib/runtime/agui-action.ts
|
|
2700
2700
|
import { parseJson as parseJson3 } from "@copilotkit/shared";
|
|
2701
|
-
function
|
|
2701
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent }) {
|
|
2702
2702
|
const action = {
|
|
2703
2703
|
name: agent.agentId,
|
|
2704
2704
|
description: agent.description,
|
|
@@ -2709,7 +2709,7 @@ function constructAgentWireRemoteAction({ logger: logger2, messages, agentStates
|
|
|
2709
2709
|
logger2.debug({
|
|
2710
2710
|
actionName: agent.agentId
|
|
2711
2711
|
}, "Executing remote agent");
|
|
2712
|
-
const agentWireMessages =
|
|
2712
|
+
const agentWireMessages = convertMessagesToAGUIMessage(messages);
|
|
2713
2713
|
agent.messages = agentWireMessages;
|
|
2714
2714
|
agent.threadId = threadId;
|
|
2715
2715
|
telemetry_client_default.capture("oss.runtime.remote_action_executed", {
|
|
@@ -2741,8 +2741,8 @@ function constructAgentWireRemoteAction({ logger: logger2, messages, agentStates
|
|
|
2741
2741
|
action
|
|
2742
2742
|
];
|
|
2743
2743
|
}
|
|
2744
|
-
__name(
|
|
2745
|
-
function
|
|
2744
|
+
__name(constructAGUIRemoteAction, "constructAGUIRemoteAction");
|
|
2745
|
+
function convertMessagesToAGUIMessage(messages) {
|
|
2746
2746
|
const result = [];
|
|
2747
2747
|
for (const message of messages) {
|
|
2748
2748
|
if (message.isTextMessage()) {
|
|
@@ -2786,7 +2786,7 @@ function convertMessagesToAgentWire(messages) {
|
|
|
2786
2786
|
}
|
|
2787
2787
|
return result;
|
|
2788
2788
|
}
|
|
2789
|
-
__name(
|
|
2789
|
+
__name(convertMessagesToAGUIMessage, "convertMessagesToAGUIMessage");
|
|
2790
2790
|
|
|
2791
2791
|
// src/lib/runtime/remote-actions.ts
|
|
2792
2792
|
var EndpointType;
|
|
@@ -2902,7 +2902,7 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
2902
2902
|
} else if (agent.agentId === void 0) {
|
|
2903
2903
|
agent.agentId = key;
|
|
2904
2904
|
}
|
|
2905
|
-
result.push(
|
|
2905
|
+
result.push(constructAGUIRemoteAction({
|
|
2906
2906
|
logger: logger2,
|
|
2907
2907
|
messages,
|
|
2908
2908
|
agentStates,
|
|
@@ -3186,7 +3186,6 @@ var CopilotRuntime = class {
|
|
|
3186
3186
|
}
|
|
3187
3187
|
return newMessages;
|
|
3188
3188
|
}
|
|
3189
|
-
// --- MCP Instruction Injection Method ---
|
|
3190
3189
|
async processRuntimeRequest(request) {
|
|
3191
3190
|
var _a, _b, _c, _d, _e;
|
|
3192
3191
|
const { serviceAdapter, messages: rawMessages, actions: clientSideActionsInput, threadId, runId, outputMessagesPromise, graphqlContext, forwardedParameters, url, extensions, agentSession, agentStates, publicApiKey } = request;
|
|
@@ -5080,4 +5079,4 @@ export {
|
|
|
5080
5079
|
getCommonConfig,
|
|
5081
5080
|
copilotRuntimeNodeHttpEndpoint
|
|
5082
5081
|
};
|
|
5083
|
-
//# sourceMappingURL=chunk-
|
|
5082
|
+
//# sourceMappingURL=chunk-YLRGZOEQ.mjs.map
|