@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
@@ -2,7 +2,7 @@ import {
2
2
  getCommonConfig,
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";
@@ -77,4 +77,4 @@ export {
77
77
  config,
78
78
  copilotRuntimeNextJSPagesRouterEndpoint
79
79
  };
80
- //# sourceMappingURL=chunk-QAPB44C7.mjs.map
80
+ //# sourceMappingURL=chunk-KHL2SKIB.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.8.2-next.0",
47
+ version: "1.8.2-next.1",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -4217,8 +4217,22 @@ please use an LLM adapter instead.`
4217
4217
  ...propertyHeaders
4218
4218
  }
4219
4219
  });
4220
- const data = await client.assistants.search();
4221
- const endpointAgents = (data ?? []).map((entry) => ({
4220
+ let data = [];
4221
+ try {
4222
+ data = await client.assistants.search();
4223
+ if (data && "detail" in data && data.detail.toLowerCase() === "not found") {
4224
+ throw new import_shared20.CopilotKitAgentDiscoveryError();
4225
+ }
4226
+ } catch (e) {
4227
+ throw new import_shared20.CopilotKitMisuseError({
4228
+ message: `
4229
+ Failed to find or contact remote endpoint at url ${endpoint.deploymentUrl}.
4230
+ Make sure the API is running and that it's indeed a LangGraph platform url.
4231
+
4232
+ See more: https://docs.copilotkit.ai/troubleshooting/common-issues`
4233
+ });
4234
+ }
4235
+ const endpointAgents = data.map((entry) => ({
4222
4236
  name: entry.graph_id,
4223
4237
  id: entry.assistant_id,
4224
4238
  description: "",