@copilotkit/runtime 1.8.5-next.3 → 1.8.5-next.4
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-2PVUPC44.mjs → chunk-574FKWP5.mjs} +2 -2
- package/dist/{chunk-UOCZJTXN.mjs → chunk-GGXHVDCG.mjs} +2 -2
- package/dist/{chunk-UTUGZIQI.mjs → chunk-PKO7BUPS.mjs} +24 -7
- package/dist/chunk-PKO7BUPS.mjs.map +1 -0
- package/dist/{chunk-TDPCQIMB.mjs → chunk-WQZQTGHT.mjs} +2 -2
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +18 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- 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/remote-lg-action.ts +24 -2
- package/dist/chunk-UTUGZIQI.mjs.map +0 -1
- /package/dist/{chunk-2PVUPC44.mjs.map → chunk-574FKWP5.mjs.map} +0 -0
- /package/dist/{chunk-UOCZJTXN.mjs.map → chunk-GGXHVDCG.mjs.map} +0 -0
- /package/dist/{chunk-TDPCQIMB.mjs.map → chunk-WQZQTGHT.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GGXHVDCG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WQZQTGHT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-574FKWP5.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
addCustomHeaderPlugin,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
getCommonConfig,
|
|
25
25
|
langGraphPlatformEndpoint,
|
|
26
26
|
resolveEndpointType
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-PKO7BUPS.mjs";
|
|
28
28
|
import {
|
|
29
29
|
AnthropicAdapter,
|
|
30
30
|
EmptyAdapter,
|
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.8.5-next.
|
|
47
|
+
version: "1.8.5-next.4",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -2891,6 +2891,23 @@ async function execute(args) {
|
|
|
2891
2891
|
await streamEvents(controller, args);
|
|
2892
2892
|
controller.close();
|
|
2893
2893
|
} catch (err) {
|
|
2894
|
+
const cause = err == null ? void 0 : err.cause;
|
|
2895
|
+
const errorCode = (cause == null ? void 0 : cause.code) || (err == null ? void 0 : err.code);
|
|
2896
|
+
if (errorCode === "ECONNREFUSED") {
|
|
2897
|
+
throw new import_shared9.CopilotKitMisuseError({
|
|
2898
|
+
message: `
|
|
2899
|
+
The LangGraph client could not connect to the graph. Please further check previous logs, which includes further details.
|
|
2900
|
+
|
|
2901
|
+
See more: https://docs.copilotkit.ai/troubleshooting/common-issues`
|
|
2902
|
+
});
|
|
2903
|
+
} else {
|
|
2904
|
+
throw new import_shared9.CopilotKitMisuseError({
|
|
2905
|
+
message: `
|
|
2906
|
+
The LangGraph client threw unhandled error ${err}.
|
|
2907
|
+
|
|
2908
|
+
See more: https://docs.copilotkit.ai/troubleshooting/common-issues`
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2894
2911
|
}
|
|
2895
2912
|
}
|
|
2896
2913
|
});
|