@copilotkit/runtime 1.9.3-next.4 → 1.10.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{chunk-VM2GXVSW.mjs → chunk-HB5Z72TJ.mjs} +2 -2
  3. package/dist/{chunk-TOTCMKGV.mjs → chunk-I5VNKUWI.mjs} +2 -2
  4. package/dist/{chunk-M52XCCYL.mjs → chunk-IMZSBLG7.mjs} +2 -2
  5. package/dist/{chunk-UNXHBYJH.mjs → chunk-X76SZ4PE.mjs} +3 -2
  6. package/dist/chunk-X76SZ4PE.mjs.map +1 -0
  7. package/dist/{chunk-L5XBPLH4.mjs → chunk-Z5WUVWW7.mjs} +2 -2
  8. package/dist/index.js +2 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +2 -1
  12. package/dist/lib/index.js.map +1 -1
  13. package/dist/lib/index.mjs +5 -5
  14. package/dist/lib/integrations/index.js +1 -1
  15. package/dist/lib/integrations/index.js.map +1 -1
  16. package/dist/lib/integrations/index.mjs +4 -4
  17. package/dist/lib/integrations/nest/index.js +1 -1
  18. package/dist/lib/integrations/nest/index.js.map +1 -1
  19. package/dist/lib/integrations/nest/index.mjs +2 -2
  20. package/dist/lib/integrations/node-express/index.js +1 -1
  21. package/dist/lib/integrations/node-express/index.js.map +1 -1
  22. package/dist/lib/integrations/node-express/index.mjs +2 -2
  23. package/dist/lib/integrations/node-http/index.js +1 -1
  24. package/dist/lib/integrations/node-http/index.js.map +1 -1
  25. package/dist/lib/integrations/node-http/index.mjs +1 -1
  26. package/package.json +2 -2
  27. package/src/lib/streaming.ts +1 -0
  28. package/dist/chunk-UNXHBYJH.mjs.map +0 -1
  29. /package/dist/{chunk-VM2GXVSW.mjs.map → chunk-HB5Z72TJ.mjs.map} +0 -0
  30. /package/dist/{chunk-TOTCMKGV.mjs.map → chunk-I5VNKUWI.mjs.map} +0 -0
  31. /package/dist/{chunk-M52XCCYL.mjs.map → chunk-IMZSBLG7.mjs.map} +0 -0
  32. /package/dist/{chunk-L5XBPLH4.mjs.map → chunk-Z5WUVWW7.mjs.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-UNXHBYJH.mjs";
5
+ } from "./chunk-X76SZ4PE.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-L5XBPLH4.mjs.map
25
+ //# sourceMappingURL=chunk-Z5WUVWW7.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.3-next.4",
47
+ version: "1.10.0-next.0",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -3831,6 +3831,7 @@ function convertStreamingErrorToStructured(error) {
3831
3831
  var _a, _b, _c, _d, _e, _f, _g;
3832
3832
  let helpfulMessage = generateHelpfulErrorMessage(error);
3833
3833
  if (((_a = error == null ? void 0 : error.message) == null ? void 0 : _a.includes("fetch failed")) || ((_b = error == null ? void 0 : error.message) == null ? void 0 : _b.includes("ECONNREFUSED")) || ((_c = error == null ? void 0 : error.message) == null ? void 0 : _c.includes("ENOTFOUND")) || ((_d = error == null ? void 0 : error.message) == null ? void 0 : _d.includes("ETIMEDOUT")) || ((_e = error == null ? void 0 : error.message) == null ? void 0 : _e.includes("terminated")) || ((_f = error == null ? void 0 : error.cause) == null ? void 0 : _f.code) === "UND_ERR_SOCKET" || ((_g = error == null ? void 0 : error.message) == null ? void 0 : _g.includes("other side closed")) || (error == null ? void 0 : error.code) === "UND_ERR_SOCKET") {
3834
+ console.log("error", error);
3834
3835
  return new import_shared15.CopilotKitLowLevelError({
3835
3836
  error: error instanceof Error ? error : new Error(String(error)),
3836
3837
  url: "streaming connection",