@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/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.9.2-next.
|
|
12
|
+
"version": "1.9.2-next.17",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"rxjs": "7.8.1",
|
|
67
67
|
"type-graphql": "2.0.0-rc.1",
|
|
68
68
|
"zod": "^3.23.3",
|
|
69
|
-
"@copilotkit/shared": "1.9.2-next.
|
|
69
|
+
"@copilotkit/shared": "1.9.2-next.17"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@ag-ui/client": ">=0.0.28",
|
|
@@ -23,6 +23,7 @@ export function constructAGUIRemoteAction({
|
|
|
23
23
|
agent,
|
|
24
24
|
metaEvents,
|
|
25
25
|
threadMetadata,
|
|
26
|
+
nodeName,
|
|
26
27
|
}: {
|
|
27
28
|
logger: Logger;
|
|
28
29
|
messages: Message[];
|
|
@@ -30,6 +31,7 @@ export function constructAGUIRemoteAction({
|
|
|
30
31
|
agent: AbstractAgent;
|
|
31
32
|
metaEvents?: MetaEventInput[];
|
|
32
33
|
threadMetadata?: Record<string, any>;
|
|
34
|
+
nodeName?: string;
|
|
33
35
|
}) {
|
|
34
36
|
const action = {
|
|
35
37
|
name: agent.agentId,
|
|
@@ -72,6 +74,7 @@ export function constructAGUIRemoteAction({
|
|
|
72
74
|
const forwardedProps = {
|
|
73
75
|
...(metaEvents?.length ? { command: { resume: metaEvents[0]?.response } } : {}),
|
|
74
76
|
...(threadMetadata ? { threadMetadata } : {}),
|
|
77
|
+
...(nodeName ? { nodeName } : {}),
|
|
75
78
|
};
|
|
76
79
|
|
|
77
80
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
@@ -131,6 +131,7 @@ export async function setupRemoteActions({
|
|
|
131
131
|
frontendUrl,
|
|
132
132
|
agents,
|
|
133
133
|
metaEvents,
|
|
134
|
+
nodeName,
|
|
134
135
|
}: {
|
|
135
136
|
remoteEndpointDefinitions: EndpointDefinition[];
|
|
136
137
|
graphqlContext: GraphQLContext;
|
|
@@ -139,6 +140,7 @@ export async function setupRemoteActions({
|
|
|
139
140
|
frontendUrl?: string;
|
|
140
141
|
agents: Record<string, AbstractAgent>;
|
|
141
142
|
metaEvents?: MetaEventInput[];
|
|
143
|
+
nodeName?: string;
|
|
142
144
|
}): Promise<Action[]> {
|
|
143
145
|
const logger = graphqlContext.logger.child({ component: "remote-actions.fetchRemoteActions" });
|
|
144
146
|
logger.debug({ remoteEndpointDefinitions }, "Fetching from remote endpoints");
|
|
@@ -207,6 +209,7 @@ export async function setupRemoteActions({
|
|
|
207
209
|
agent: agent,
|
|
208
210
|
metaEvents,
|
|
209
211
|
threadMetadata,
|
|
212
|
+
nodeName,
|
|
210
213
|
}),
|
|
211
214
|
);
|
|
212
215
|
}
|