@copilotkit/runtime 1.9.2-next.14 → 1.9.2-next.16
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 +13 -0
- package/dist/{chunk-OXUJLGHK.mjs → chunk-4ODT32DV.mjs} +2 -2
- package/dist/{chunk-J7IKWG2M.mjs → chunk-7F4BIRQF.mjs} +17 -9
- package/dist/chunk-7F4BIRQF.mjs.map +1 -0
- package/dist/{chunk-LHHL56Z2.mjs → chunk-BCDAWNNK.mjs} +2 -2
- package/dist/{chunk-55VUNE6C.mjs → chunk-R22NGLLV.mjs} +2 -2
- package/dist/{chunk-LLFNFIOQ.mjs → chunk-RBG2A675.mjs} +2 -2
- package/dist/index.js +16 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +16 -8
- 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 +6 -3
- package/src/lib/runtime/remote-actions.ts +3 -0
- package/dist/chunk-J7IKWG2M.mjs.map +0 -1
- /package/dist/{chunk-OXUJLGHK.mjs.map → chunk-4ODT32DV.mjs.map} +0 -0
- /package/dist/{chunk-LHHL56Z2.mjs.map → chunk-BCDAWNNK.mjs.map} +0 -0
- /package/dist/{chunk-55VUNE6C.mjs.map → chunk-R22NGLLV.mjs.map} +0 -0
- /package/dist/{chunk-LLFNFIOQ.mjs.map → chunk-RBG2A675.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7F4BIRQF.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-BCDAWNNK.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LangGraphEventTypes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7F4BIRQF.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-R22NGLLV.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7F4BIRQF.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-RBG2A675.mjs.map
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.9.2-next.
|
|
47
|
+
version: "1.9.2-next.16",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -6272,7 +6272,7 @@ var import_shared26 = require("@copilotkit/shared");
|
|
|
6272
6272
|
|
|
6273
6273
|
// src/lib/runtime/agui-action.ts
|
|
6274
6274
|
var import_shared24 = require("@copilotkit/shared");
|
|
6275
|
-
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents }) {
|
|
6275
|
+
function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, agent, metaEvents, threadMetadata }) {
|
|
6276
6276
|
const action = {
|
|
6277
6277
|
name: agent.agentId,
|
|
6278
6278
|
description: agent.description,
|
|
@@ -6307,11 +6307,16 @@ function constructAGUIRemoteAction({ logger: logger2, messages, agentStates, age
|
|
|
6307
6307
|
parameters: JSON.parse(input.jsonSchema)
|
|
6308
6308
|
};
|
|
6309
6309
|
});
|
|
6310
|
-
const forwardedProps =
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6310
|
+
const forwardedProps = {
|
|
6311
|
+
...(metaEvents == null ? void 0 : metaEvents.length) ? {
|
|
6312
|
+
command: {
|
|
6313
|
+
resume: (_a = metaEvents[0]) == null ? void 0 : _a.response
|
|
6314
|
+
}
|
|
6315
|
+
} : {},
|
|
6316
|
+
...threadMetadata ? {
|
|
6317
|
+
threadMetadata
|
|
6318
|
+
} : {}
|
|
6319
|
+
};
|
|
6315
6320
|
return agent.legacy_to_be_removed_runAgentBridged({
|
|
6316
6321
|
tools,
|
|
6317
6322
|
forwardedProps
|
|
@@ -6426,12 +6431,14 @@ async function fetchRemoteInfo({ url, onBeforeRequest, graphqlContext, logger: l
|
|
|
6426
6431
|
}
|
|
6427
6432
|
__name(fetchRemoteInfo, "fetchRemoteInfo");
|
|
6428
6433
|
async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, messages, agentStates, frontendUrl, agents, metaEvents }) {
|
|
6434
|
+
var _a;
|
|
6429
6435
|
const logger2 = graphqlContext.logger.child({
|
|
6430
6436
|
component: "remote-actions.fetchRemoteActions"
|
|
6431
6437
|
});
|
|
6432
6438
|
logger2.debug({
|
|
6433
6439
|
remoteEndpointDefinitions
|
|
6434
6440
|
}, "Fetching from remote endpoints");
|
|
6441
|
+
const threadMetadata = ((_a = graphqlContext.properties) == null ? void 0 : _a.threadMetadata) || {};
|
|
6435
6442
|
const filtered = remoteEndpointDefinitions.filter((value, index, self) => {
|
|
6436
6443
|
if (value.type === "langgraph-platform") {
|
|
6437
6444
|
return value;
|
|
@@ -6488,7 +6495,8 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
|
|
|
6488
6495
|
messages,
|
|
6489
6496
|
agentStates,
|
|
6490
6497
|
agent,
|
|
6491
|
-
metaEvents
|
|
6498
|
+
metaEvents,
|
|
6499
|
+
threadMetadata
|
|
6492
6500
|
}));
|
|
6493
6501
|
}
|
|
6494
6502
|
return result.flat();
|