@copilotkit/runtime 1.7.1 → 1.7.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 (30) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{chunk-ZRT6C4KZ.mjs → chunk-GJYZGROG.mjs} +2 -2
  3. package/dist/{chunk-I32ZVLQF.mjs → chunk-H5ENI62O.mjs} +2 -2
  4. package/dist/{chunk-IJGSJSXO.mjs → chunk-OXYXA374.mjs} +5 -7
  5. package/dist/chunk-OXYXA374.mjs.map +1 -0
  6. package/dist/{chunk-UIQ6VQVO.mjs → chunk-Y4JWBQJJ.mjs} +2 -2
  7. package/dist/index.js +4 -6
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +4 -4
  10. package/dist/lib/index.js +4 -6
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/index.mjs +4 -4
  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 +4 -4
  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 +2 -2
  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 +2 -2
  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 +1 -1
  25. package/package.json +2 -2
  26. package/src/lib/runtime/copilot-runtime.ts +7 -6
  27. package/dist/chunk-IJGSJSXO.mjs.map +0 -1
  28. /package/dist/{chunk-ZRT6C4KZ.mjs.map → chunk-GJYZGROG.mjs.map} +0 -0
  29. /package/dist/{chunk-I32ZVLQF.mjs.map → chunk-H5ENI62O.mjs.map} +0 -0
  30. /package/dist/{chunk-UIQ6VQVO.mjs.map → chunk-Y4JWBQJJ.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  copilotRuntimeNodeHttpEndpoint
3
- } from "../../../chunk-IJGSJSXO.mjs";
3
+ } from "../../../chunk-OXYXA374.mjs";
4
4
  import "../../../chunk-FZJAYGIR.mjs";
5
5
  import "../../../chunk-5BIEM2UU.mjs";
6
6
  import "../../../chunk-RTFJTJMA.mjs";
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.7.1",
12
+ "version": "1.7.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.7.1"
62
+ "@copilotkit/shared": "1.7.2-next.1"
63
63
  },
64
64
  "keywords": [
65
65
  "copilotkit",
@@ -220,13 +220,14 @@ export class CopilotRuntime<const T extends Parameter[] | [] = []> {
220
220
  private observability?: CopilotObservabilityConfig;
221
221
 
222
222
  constructor(params?: CopilotRuntimeConstructorParams<T>) {
223
- // Do not register actions if endpoints are set
224
- if (params?.actions && params?.remoteEndpoints) {
225
- console.warn("Actions set in runtime instance will be ignored when remote endpoints are set");
226
- this.actions = [];
227
- } else {
228
- this.actions = params?.actions || [];
223
+ if (
224
+ params?.actions &&
225
+ params?.remoteEndpoints &&
226
+ params?.remoteEndpoints.some((e) => e.type === EndpointType.LangGraphPlatform)
227
+ ) {
228
+ console.warn("Actions set in runtime instance will not be available for the agent");
229
229
  }
230
+ this.actions = params?.actions || [];
230
231
 
231
232
  for (const chain of params?.langserve || []) {
232
233
  const remoteChain = new RemoteChain(chain);