@copilotkit/runtime 1.8.1 → 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.
- package/CHANGELOG.md +13 -0
- package/dist/{chunk-O33RXDDY.mjs → chunk-C6HNX5KB.mjs} +2 -2
- package/dist/{chunk-6276MKXI.mjs → chunk-CKEC4T6B.mjs} +2 -2
- package/dist/{chunk-WN6OJX5I.mjs → chunk-HLUPHHYT.mjs} +18 -4
- package/dist/chunk-HLUPHHYT.mjs.map +1 -0
- package/dist/{chunk-34PLTABO.mjs → chunk-KHL2SKIB.mjs} +2 -2
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +17 -3
- 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/copilot-runtime.ts +16 -4
- package/dist/chunk-WN6OJX5I.mjs.map +0 -1
- /package/dist/{chunk-O33RXDDY.mjs.map → chunk-C6HNX5KB.mjs.map} +0 -0
- /package/dist/{chunk-6276MKXI.mjs.map → chunk-CKEC4T6B.mjs.map} +0 -0
- /package/dist/{chunk-34PLTABO.mjs.map → chunk-KHL2SKIB.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.8.1",
|
|
12
|
+
"version": "1.8.2-next.1",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"rxjs": "^7.8.1",
|
|
60
60
|
"type-graphql": "2.0.0-rc.1",
|
|
61
61
|
"zod": "^3.23.3",
|
|
62
|
-
"@copilotkit/shared": "1.8.1"
|
|
62
|
+
"@copilotkit/shared": "1.8.2-next.1"
|
|
63
63
|
},
|
|
64
64
|
"keywords": [
|
|
65
65
|
"copilotkit",
|
|
@@ -493,11 +493,23 @@ please use an LLM adapter instead.`,
|
|
|
493
493
|
apiKey: endpoint.langsmithApiKey,
|
|
494
494
|
defaultHeaders: { ...propertyHeaders },
|
|
495
495
|
});
|
|
496
|
+
let data: Array<{ assistant_id: string; graph_id: string }> | { detail: string } = [];
|
|
497
|
+
try {
|
|
498
|
+
data = await client.assistants.search();
|
|
496
499
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
500
|
+
if (data && "detail" in data && (data.detail as string).toLowerCase() === "not found") {
|
|
501
|
+
throw new CopilotKitAgentDiscoveryError();
|
|
502
|
+
}
|
|
503
|
+
} catch (e) {
|
|
504
|
+
throw new CopilotKitMisuseError({
|
|
505
|
+
message: `
|
|
506
|
+
Failed to find or contact remote endpoint at url ${endpoint.deploymentUrl}.
|
|
507
|
+
Make sure the API is running and that it's indeed a LangGraph platform url.
|
|
508
|
+
|
|
509
|
+
See more: https://docs.copilotkit.ai/troubleshooting/common-issues`,
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
const endpointAgents = data.map((entry) => ({
|
|
501
513
|
name: entry.graph_id,
|
|
502
514
|
id: entry.assistant_id,
|
|
503
515
|
description: "",
|