@copilotkit/runtime 1.6.0-next.9 → 1.7.0-next.0
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 +59 -0
- package/dist/{chunk-5ZBUMQE2.mjs → chunk-2BN7NZNC.mjs} +2 -2
- package/dist/{chunk-L7OTGCAG.mjs → chunk-34Y5DNNJ.mjs} +104 -74
- package/dist/chunk-34Y5DNNJ.mjs.map +1 -0
- package/dist/{chunk-7BCFHZLY.mjs → chunk-PH24IU7T.mjs} +2 -2
- package/dist/{chunk-4HQ5OZXN.mjs → chunk-ZYFN76KV.mjs} +2 -2
- package/dist/index.js +103 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +103 -73
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.js +6 -3
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +6 -3
- 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 +6 -3
- 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 +6 -3
- 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/agents/langgraph/event-source.ts +11 -4
- package/src/graphql/resolvers/copilot.resolver.ts +4 -0
- package/src/lib/runtime/__tests__/remote-action-constructors.test.ts +45 -35
- package/src/lib/runtime/copilot-runtime.ts +23 -17
- package/src/lib/runtime/remote-action-constructors.ts +28 -68
- package/src/lib/runtime/remote-actions.ts +5 -5
- package/src/lib/streaming.ts +59 -0
- package/src/lib/telemetry-client.ts +3 -1
- package/src/service-adapters/events.ts +3 -3
- package/dist/chunk-L7OTGCAG.mjs.map +0 -1
- /package/dist/{chunk-5ZBUMQE2.mjs.map → chunk-2BN7NZNC.mjs.map} +0 -0
- /package/dist/{chunk-7BCFHZLY.mjs.map → chunk-PH24IU7T.mjs.map} +0 -0
- /package/dist/{chunk-4HQ5OZXN.mjs.map → chunk-ZYFN76KV.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeExpressEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-ZYFN76KV.mjs";
|
|
4
|
+
import "../../../chunk-34Y5DNNJ.mjs";
|
|
5
5
|
import "../../../chunk-FZJAYGIR.mjs";
|
|
6
6
|
import "../../../chunk-5BIEM2UU.mjs";
|
|
7
7
|
import "../../../chunk-RTFJTJMA.mjs";
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.
|
|
47
|
+
version: "1.7.0-next.0",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -1695,7 +1695,7 @@ var import_rxjs = require("rxjs");
|
|
|
1695
1695
|
var import_langgraph_sdk = require("@langchain/langgraph-sdk");
|
|
1696
1696
|
function resolveEndpointType(endpoint) {
|
|
1697
1697
|
if (!endpoint.type) {
|
|
1698
|
-
if ("
|
|
1698
|
+
if ("deploymentUrl" in endpoint && "agents" in endpoint) {
|
|
1699
1699
|
return EndpointType.LangGraphPlatform;
|
|
1700
1700
|
} else {
|
|
1701
1701
|
return EndpointType.CopilotKit;
|
|
@@ -1731,7 +1731,7 @@ function getRuntimeInstanceTelemetryInfo(runtime) {
|
|
|
1731
1731
|
info = {
|
|
1732
1732
|
...info,
|
|
1733
1733
|
agentsAmount: ep.agents.length,
|
|
1734
|
-
hashedKey: (0, import_node_crypto.createHash)("sha256").update(ep.langsmithApiKey).digest("hex")
|
|
1734
|
+
hashedKey: ep.langsmithApiKey ? (0, import_node_crypto.createHash)("sha256").update(ep.langsmithApiKey).digest("hex") : null
|
|
1735
1735
|
};
|
|
1736
1736
|
}
|
|
1737
1737
|
return info;
|
|
@@ -1993,6 +1993,9 @@ var CopilotResolver = class {
|
|
|
1993
1993
|
resolveOutputMessagesPromise = resolve;
|
|
1994
1994
|
rejectOutputMessagesPromise = reject;
|
|
1995
1995
|
});
|
|
1996
|
+
if (copilotCloudPublicApiKey) {
|
|
1997
|
+
ctx.properties["copilotCloudPublicApiKey"] = copilotCloudPublicApiKey;
|
|
1998
|
+
}
|
|
1996
1999
|
logger2.debug("Processing");
|
|
1997
2000
|
const { eventSource, threadId = (0, import_shared5.randomId)(), runId, serverSideActions, actionInputsWithoutAgents, extensions } = await copilotRuntime.processRuntimeRequest({
|
|
1998
2001
|
serviceAdapter,
|