@copilotkit/runtime 1.6.0-next.9 → 1.6.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/{chunk-4HQ5OZXN.mjs → chunk-2RP2NR4F.mjs} +2 -2
  3. package/dist/{chunk-L7OTGCAG.mjs → chunk-DUW72ZZB.mjs} +18 -9
  4. package/dist/chunk-DUW72ZZB.mjs.map +1 -0
  5. package/dist/{chunk-5ZBUMQE2.mjs → chunk-MPI4JZZR.mjs} +2 -2
  6. package/dist/{chunk-7BCFHZLY.mjs → chunk-WUMAYJP3.mjs} +2 -2
  7. package/dist/index.js +17 -8
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +4 -4
  10. package/dist/lib/index.js +17 -8
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/index.mjs +4 -4
  13. package/dist/lib/integrations/index.js +3 -3
  14. package/dist/lib/integrations/index.js.map +1 -1
  15. package/dist/lib/integrations/index.mjs +4 -4
  16. package/dist/lib/integrations/nest/index.js +3 -3
  17. package/dist/lib/integrations/nest/index.js.map +1 -1
  18. package/dist/lib/integrations/nest/index.mjs +2 -2
  19. package/dist/lib/integrations/node-express/index.js +3 -3
  20. package/dist/lib/integrations/node-express/index.js.map +1 -1
  21. package/dist/lib/integrations/node-express/index.mjs +2 -2
  22. package/dist/lib/integrations/node-http/index.js +3 -3
  23. package/dist/lib/integrations/node-http/index.js.map +1 -1
  24. package/dist/lib/integrations/node-http/index.mjs +1 -1
  25. package/package.json +2 -2
  26. package/src/agents/langgraph/event-source.ts +11 -4
  27. package/src/lib/runtime/copilot-runtime.ts +9 -3
  28. package/src/lib/telemetry-client.ts +3 -1
  29. package/dist/chunk-L7OTGCAG.mjs.map +0 -1
  30. /package/dist/{chunk-4HQ5OZXN.mjs.map → chunk-2RP2NR4F.mjs.map} +0 -0
  31. /package/dist/{chunk-5ZBUMQE2.mjs.map → chunk-MPI4JZZR.mjs.map} +0 -0
  32. /package/dist/{chunk-7BCFHZLY.mjs.map → chunk-WUMAYJP3.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  copilotRuntimeNestEndpoint
3
- } from "../../../chunk-5ZBUMQE2.mjs";
4
- import "../../../chunk-L7OTGCAG.mjs";
3
+ } from "../../../chunk-MPI4JZZR.mjs";
4
+ import "../../../chunk-DUW72ZZB.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.6.0-next.9",
47
+ version: "1.6.0",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -1697,7 +1697,7 @@ var import_rxjs = require("rxjs");
1697
1697
  var import_langgraph_sdk = require("@langchain/langgraph-sdk");
1698
1698
  function resolveEndpointType(endpoint) {
1699
1699
  if (!endpoint.type) {
1700
- if ("langsmithApiKey" in endpoint && "deploymentUrl" in endpoint && "agents" in endpoint) {
1700
+ if ("deploymentUrl" in endpoint && "agents" in endpoint) {
1701
1701
  return EndpointType.LangGraphPlatform;
1702
1702
  } else {
1703
1703
  return EndpointType.CopilotKit;
@@ -1733,7 +1733,7 @@ function getRuntimeInstanceTelemetryInfo(runtime) {
1733
1733
  info = {
1734
1734
  ...info,
1735
1735
  agentsAmount: ep.agents.length,
1736
- hashedKey: (0, import_node_crypto.createHash)("sha256").update(ep.langsmithApiKey).digest("hex")
1736
+ hashedKey: ep.langsmithApiKey ? (0, import_node_crypto.createHash)("sha256").update(ep.langsmithApiKey).digest("hex") : null
1737
1737
  };
1738
1738
  }
1739
1739
  return info;