@copilotkit/runtime 1.9.3 → 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.
- package/CHANGELOG.md +7 -0
- package/dist/{chunk-27ICMTNV.mjs → chunk-HB5Z72TJ.mjs} +2 -2
- package/dist/{chunk-YKUWJR33.mjs → chunk-I5VNKUWI.mjs} +2 -2
- package/dist/{chunk-TPT4AKCH.mjs → chunk-IMZSBLG7.mjs} +2 -2
- package/dist/{chunk-IWD3ZNTV.mjs → chunk-X76SZ4PE.mjs} +3 -2
- package/dist/chunk-X76SZ4PE.mjs.map +1 -0
- package/dist/{chunk-DC55PN5M.mjs → chunk-Z5WUVWW7.mjs} +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +2 -1
- 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/streaming.ts +1 -0
- package/dist/chunk-IWD3ZNTV.mjs.map +0 -1
- /package/dist/{chunk-27ICMTNV.mjs.map → chunk-HB5Z72TJ.mjs.map} +0 -0
- /package/dist/{chunk-YKUWJR33.mjs.map → chunk-I5VNKUWI.mjs.map} +0 -0
- /package/dist/{chunk-TPT4AKCH.mjs.map → chunk-IMZSBLG7.mjs.map} +0 -0
- /package/dist/{chunk-DC55PN5M.mjs.map → chunk-Z5WUVWW7.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
CustomEventNames,
|
|
3
3
|
LangGraphAgent,
|
|
4
4
|
LangGraphHttpAgent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I5VNKUWI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
config,
|
|
8
8
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
9
9
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IMZSBLG7.mjs";
|
|
11
11
|
import {
|
|
12
12
|
copilotRuntimeNestEndpoint
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Z5WUVWW7.mjs";
|
|
14
14
|
import {
|
|
15
15
|
copilotRuntimeNodeExpressEndpoint
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HB5Z72TJ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
CopilotRuntime,
|
|
19
19
|
addCustomHeaderPlugin,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
getCommonConfig,
|
|
30
30
|
langGraphPlatformEndpoint,
|
|
31
31
|
resolveEndpointType
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-X76SZ4PE.mjs";
|
|
33
33
|
import "./chunk-SHBDMA63.mjs";
|
|
34
34
|
import {
|
|
35
35
|
AnthropicAdapter,
|
package/dist/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.
|
|
47
|
+
version: "1.10.0-next.0",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -3377,6 +3377,7 @@ function convertStreamingErrorToStructured(error) {
|
|
|
3377
3377
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
3378
3378
|
let helpfulMessage = generateHelpfulErrorMessage(error);
|
|
3379
3379
|
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") {
|
|
3380
|
+
console.log("error", error);
|
|
3380
3381
|
return new import_shared12.CopilotKitLowLevelError({
|
|
3381
3382
|
error: error instanceof Error ? error : new Error(String(error)),
|
|
3382
3383
|
url: "streaming connection",
|