@copilotkit/runtime 1.8.2-next.0 → 1.8.2-next.1

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 (29) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{chunk-UGVXD6KK.mjs → chunk-C6HNX5KB.mjs} +2 -2
  3. package/dist/{chunk-TNMBPY25.mjs → chunk-CKEC4T6B.mjs} +2 -2
  4. package/dist/{chunk-QZFOLVUA.mjs → chunk-HLUPHHYT.mjs} +27 -13
  5. package/dist/{chunk-QZFOLVUA.mjs.map → chunk-HLUPHHYT.mjs.map} +1 -1
  6. package/dist/{chunk-QAPB44C7.mjs → chunk-KHL2SKIB.mjs} +2 -2
  7. package/dist/index.js +17 -3
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +6 -6
  10. package/dist/lib/index.js +17 -3
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/index.mjs +6 -6
  13. package/dist/lib/integrations/index.js +1 -1
  14. package/dist/lib/integrations/index.js.map +1 -1
  15. package/dist/lib/integrations/index.mjs +6 -6
  16. package/dist/lib/integrations/nest/index.js +1 -1
  17. package/dist/lib/integrations/nest/index.js.map +1 -1
  18. package/dist/lib/integrations/nest/index.mjs +4 -4
  19. package/dist/lib/integrations/node-express/index.js +1 -1
  20. package/dist/lib/integrations/node-express/index.js.map +1 -1
  21. package/dist/lib/integrations/node-express/index.mjs +4 -4
  22. package/dist/lib/integrations/node-http/index.js +1 -1
  23. package/dist/lib/integrations/node-http/index.js.map +1 -1
  24. package/dist/lib/integrations/node-http/index.mjs +3 -3
  25. package/package.json +4 -4
  26. package/src/lib/runtime/copilot-runtime.ts +16 -4
  27. /package/dist/{chunk-UGVXD6KK.mjs.map → chunk-C6HNX5KB.mjs.map} +0 -0
  28. /package/dist/{chunk-TNMBPY25.mjs.map → chunk-CKEC4T6B.mjs.map} +0 -0
  29. /package/dist/{chunk-QAPB44C7.mjs.map → chunk-KHL2SKIB.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.8.2-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e95bb0e: - fix: clarify difference between lgp endpoints to fastapi endpoints
8
+ - @copilotkit/shared@1.8.2-next.1
9
+
3
10
  ## 1.8.2-next.0
4
11
 
5
12
  ### Patch Changes
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-QZFOLVUA.mjs";
5
+ } from "./chunk-HLUPHHYT.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-UGVXD6KK.mjs.map
25
+ //# sourceMappingURL=chunk-C6HNX5KB.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-QZFOLVUA.mjs";
5
+ } from "./chunk-HLUPHHYT.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-FHD4JECV.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
22
22
  export {
23
23
  copilotRuntimeNodeExpressEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-TNMBPY25.mjs.map
25
+ //# sourceMappingURL=chunk-CKEC4T6B.mjs.map
@@ -1,12 +1,3 @@
1
- import {
2
- ActionExecutionMessage,
3
- AgentStateMessage,
4
- ResultMessage,
5
- TextMessage
6
- } from "./chunk-RTFJTJMA.mjs";
7
- import {
8
- BaseMessageInput
9
- } from "./chunk-2OZAGFV3.mjs";
10
1
  import {
11
2
  EmptyAdapter,
12
3
  RemoteChain,
@@ -19,6 +10,15 @@ import {
19
10
  SuccessResponseStatus,
20
11
  UnknownErrorResponse
21
12
  } from "./chunk-5BIEM2UU.mjs";
13
+ import {
14
+ ActionExecutionMessage,
15
+ AgentStateMessage,
16
+ ResultMessage,
17
+ TextMessage
18
+ } from "./chunk-RTFJTJMA.mjs";
19
+ import {
20
+ BaseMessageInput
21
+ } from "./chunk-2OZAGFV3.mjs";
22
22
  import {
23
23
  __commonJS,
24
24
  __name,
@@ -39,7 +39,7 @@ var require_package = __commonJS({
39
39
  publishConfig: {
40
40
  access: "public"
41
41
  },
42
- version: "1.8.2-next.0",
42
+ version: "1.8.2-next.1",
43
43
  sideEffects: false,
44
44
  main: "./dist/index.js",
45
45
  module: "./dist/index.mjs",
@@ -2920,8 +2920,22 @@ please use an LLM adapter instead.`
2920
2920
  ...propertyHeaders
2921
2921
  }
2922
2922
  });
2923
- const data = await client.assistants.search();
2924
- const endpointAgents = (data ?? []).map((entry) => ({
2923
+ let data = [];
2924
+ try {
2925
+ data = await client.assistants.search();
2926
+ if (data && "detail" in data && data.detail.toLowerCase() === "not found") {
2927
+ throw new CopilotKitAgentDiscoveryError();
2928
+ }
2929
+ } catch (e) {
2930
+ throw new CopilotKitMisuseError({
2931
+ message: `
2932
+ Failed to find or contact remote endpoint at url ${endpoint.deploymentUrl}.
2933
+ Make sure the API is running and that it's indeed a LangGraph platform url.
2934
+
2935
+ See more: https://docs.copilotkit.ai/troubleshooting/common-issues`
2936
+ });
2937
+ }
2938
+ const endpointAgents = data.map((entry) => ({
2925
2939
  name: entry.graph_id,
2926
2940
  id: entry.assistant_id,
2927
2941
  description: "",
@@ -4555,4 +4569,4 @@ export {
4555
4569
  getCommonConfig,
4556
4570
  copilotRuntimeNodeHttpEndpoint
4557
4571
  };
4558
- //# sourceMappingURL=chunk-QZFOLVUA.mjs.map
4572
+ //# sourceMappingURL=chunk-HLUPHHYT.mjs.map