@copilotkit/runtime 1.8.10 → 1.8.11-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 (39) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-5EMHHQ4P.mjs → chunk-IYF3PJG5.mjs} +14 -14
  3. package/dist/chunk-IYF3PJG5.mjs.map +1 -0
  4. package/dist/{chunk-LSELEGWC.mjs → chunk-KY2KPEXS.mjs} +2 -2
  5. package/dist/{chunk-DBY2YRE7.mjs → chunk-POEBLTPP.mjs} +2 -2
  6. package/dist/{chunk-KFZJJYUQ.mjs → chunk-T5O3LCUA.mjs} +2 -2
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +3 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +6 -6
  11. package/dist/lib/index.d.ts +1 -1
  12. package/dist/lib/index.js +3 -3
  13. package/dist/lib/index.js.map +1 -1
  14. package/dist/lib/index.mjs +6 -6
  15. package/dist/lib/integrations/index.d.ts +2 -2
  16. package/dist/lib/integrations/index.js +1 -1
  17. package/dist/lib/integrations/index.js.map +1 -1
  18. package/dist/lib/integrations/index.mjs +6 -6
  19. package/dist/lib/integrations/nest/index.d.ts +1 -1
  20. package/dist/lib/integrations/nest/index.js +1 -1
  21. package/dist/lib/integrations/nest/index.js.map +1 -1
  22. package/dist/lib/integrations/nest/index.mjs +4 -4
  23. package/dist/lib/integrations/node-express/index.d.ts +1 -1
  24. package/dist/lib/integrations/node-express/index.js +1 -1
  25. package/dist/lib/integrations/node-express/index.js.map +1 -1
  26. package/dist/lib/integrations/node-express/index.mjs +4 -4
  27. package/dist/lib/integrations/node-http/index.d.ts +1 -1
  28. package/dist/lib/integrations/node-http/index.js +1 -1
  29. package/dist/lib/integrations/node-http/index.js.map +1 -1
  30. package/dist/lib/integrations/node-http/index.mjs +3 -3
  31. package/dist/{shared-ede87417.d.ts → shared-0c31d7c5.d.ts} +1 -1
  32. package/package.json +2 -2
  33. package/src/lib/runtime/remote-action-constructors.ts +3 -1
  34. package/src/lib/runtime/remote-actions.ts +1 -1
  35. package/src/lib/runtime/remote-lg-action.ts +4 -2
  36. package/dist/chunk-5EMHHQ4P.mjs.map +0 -1
  37. /package/dist/{chunk-LSELEGWC.mjs.map → chunk-KY2KPEXS.mjs.map} +0 -0
  38. /package/dist/{chunk-DBY2YRE7.mjs.map → chunk-POEBLTPP.mjs.map} +0 -0
  39. /package/dist/{chunk-KFZJJYUQ.mjs.map → chunk-T5O3LCUA.mjs.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  copilotRuntimeNodeHttpEndpoint
3
- } from "../../../chunk-5EMHHQ4P.mjs";
4
- import "../../../chunk-SHBDMA63.mjs";
5
- import "../../../chunk-2OZAGFV3.mjs";
3
+ } from "../../../chunk-IYF3PJG5.mjs";
6
4
  import "../../../chunk-EY6RUVB7.mjs";
7
5
  import "../../../chunk-5BIEM2UU.mjs";
6
+ import "../../../chunk-SHBDMA63.mjs";
7
+ import "../../../chunk-2OZAGFV3.mjs";
8
8
  import "../../../chunk-FHD4JECV.mjs";
9
9
  export {
10
10
  copilotRuntimeNodeHttpEndpoint
@@ -42,7 +42,7 @@ interface LangGraphPlatformAgent {
42
42
  }
43
43
  interface LangGraphPlatformEndpoint extends BaseEndpointDefinition<EndpointType.LangGraphPlatform> {
44
44
  deploymentUrl: string;
45
- langsmithApiKey?: string;
45
+ langsmithApiKey?: string | null;
46
46
  agents: LangGraphPlatformAgent[];
47
47
  }
48
48
 
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.8.10",
12
+ "version": "1.8.11-next.1",
13
13
  "sideEffects": false,
14
14
  "main": "./dist/index.js",
15
15
  "module": "./dist/index.mjs",
@@ -63,7 +63,7 @@
63
63
  "rxjs": "^7.8.1",
64
64
  "type-graphql": "2.0.0-rc.1",
65
65
  "zod": "^3.23.3",
66
- "@copilotkit/shared": "1.8.10"
66
+ "@copilotkit/shared": "1.8.11-next.1"
67
67
  },
68
68
  "keywords": [
69
69
  "copilotkit",
@@ -53,7 +53,9 @@ export function constructLGCRemoteAction({
53
53
  agentExecution: true,
54
54
  type: "langgraph-platform",
55
55
  agentsAmount: endpoint.agents.length,
56
- hashedLgcKey: createHash("sha256").update(endpoint.langsmithApiKey).digest("hex"),
56
+ hashedLgcKey: endpoint.langsmithApiKey
57
+ ? createHash("sha256").update(endpoint.langsmithApiKey).digest("hex")
58
+ : null,
57
59
  });
58
60
 
59
61
  let state = {};
@@ -47,7 +47,7 @@ export interface LangGraphPlatformAgent {
47
47
  export interface LangGraphPlatformEndpoint
48
48
  extends BaseEndpointDefinition<EndpointType.LangGraphPlatform> {
49
49
  deploymentUrl: string;
50
- langsmithApiKey?: string;
50
+ langsmithApiKey?: string | null;
51
51
  agents: LangGraphPlatformAgent[];
52
52
  }
53
53
 
@@ -214,9 +214,11 @@ async function streamEvents(controller: ReadableStreamDefaultController, args: E
214
214
  provider?: string;
215
215
  langGraphHost?: string;
216
216
  langGraphVersion?: string;
217
- hashedLgcKey: string;
217
+ hashedLgcKey?: string | null;
218
218
  } = {
219
- hashedLgcKey: createHash("sha256").update(langsmithApiKey).digest("hex"),
219
+ hashedLgcKey: langsmithApiKey
220
+ ? createHash("sha256").update(langsmithApiKey).digest("hex")
221
+ : null,
220
222
  };
221
223
 
222
224
  const assistants = await client.assistants.search();