@copilotkit/runtime 1.7.1-next.0 → 1.7.2-next.0

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 +14 -0
  2. package/dist/{chunk-LOGYVH7X.mjs → chunk-5O7B3OFK.mjs} +2 -2
  3. package/dist/{chunk-SJPSYQ4P.mjs → chunk-DUBBA5SG.mjs} +2 -2
  4. package/dist/{chunk-5PFBYGDX.mjs → chunk-VNHNOXCI.mjs} +2 -2
  5. package/dist/{chunk-ANTSN7W3.mjs → chunk-ZLGWN57Q.mjs} +5 -7
  6. package/dist/{chunk-ANTSN7W3.mjs.map → chunk-ZLGWN57Q.mjs.map} +1 -1
  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-LOGYVH7X.mjs.map → chunk-5O7B3OFK.mjs.map} +0 -0
  28. /package/dist/{chunk-SJPSYQ4P.mjs.map → chunk-DUBBA5SG.mjs.map} +0 -0
  29. /package/dist/{chunk-5PFBYGDX.mjs.map → chunk-VNHNOXCI.mjs.map} +0 -0
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.7.1-next.0",
47
+ version: "1.7.2-next.0",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -4012,12 +4012,10 @@ var CopilotRuntime = class {
4012
4012
  observability;
4013
4013
  constructor(params) {
4014
4014
  var _a, _b;
4015
- if ((params == null ? void 0 : params.actions) && (params == null ? void 0 : params.remoteEndpoints)) {
4016
- console.warn("Actions set in runtime instance will be ignored when remote endpoints are set");
4017
- this.actions = [];
4018
- } else {
4019
- this.actions = (params == null ? void 0 : params.actions) || [];
4015
+ if ((params == null ? void 0 : params.actions) && (params == null ? void 0 : params.remoteEndpoints) && (params == null ? void 0 : params.remoteEndpoints.some((e) => e.type === EndpointType.LangGraphPlatform))) {
4016
+ console.warn("Actions set in runtime instance will not be available for the agent");
4020
4017
  }
4018
+ this.actions = (params == null ? void 0 : params.actions) || [];
4021
4019
  for (const chain of (params == null ? void 0 : params.langserve) || []) {
4022
4020
  const remoteChain = new RemoteChain(chain);
4023
4021
  this.langserve.push(remoteChain.toAction());