@copilotkit/runtime 1.9.2-next.0 → 1.9.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 (31) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-ESXPDYNT.mjs → chunk-C3SWOFLO.mjs} +2 -2
  3. package/dist/{chunk-YXL4PSJM.mjs → chunk-KPFOAXRX.mjs} +2 -2
  4. package/dist/{chunk-44FYLJJJ.mjs → chunk-RIPQZJB5.mjs} +2 -2
  5. package/dist/{chunk-YMIOUUPV.mjs → chunk-XGBY45FP.mjs} +7 -2
  6. package/dist/{chunk-YMIOUUPV.mjs.map → chunk-XGBY45FP.mjs.map} +1 -1
  7. package/dist/{chunk-O6KXX5R5.mjs → chunk-YV3YXRMR.mjs} +2 -2
  8. package/dist/index.js +6 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +6 -1
  12. package/dist/lib/index.js.map +1 -1
  13. package/dist/lib/index.mjs +5 -5
  14. package/dist/lib/integrations/index.js +1 -1
  15. package/dist/lib/integrations/index.js.map +1 -1
  16. package/dist/lib/integrations/index.mjs +4 -4
  17. package/dist/lib/integrations/nest/index.js +1 -1
  18. package/dist/lib/integrations/nest/index.js.map +1 -1
  19. package/dist/lib/integrations/nest/index.mjs +2 -2
  20. package/dist/lib/integrations/node-express/index.js +1 -1
  21. package/dist/lib/integrations/node-express/index.js.map +1 -1
  22. package/dist/lib/integrations/node-express/index.mjs +2 -2
  23. package/dist/lib/integrations/node-http/index.js +1 -1
  24. package/dist/lib/integrations/node-http/index.js.map +1 -1
  25. package/dist/lib/integrations/node-http/index.mjs +1 -1
  26. package/package.json +2 -2
  27. package/src/lib/runtime/copilot-runtime.ts +8 -0
  28. /package/dist/{chunk-ESXPDYNT.mjs.map → chunk-C3SWOFLO.mjs.map} +0 -0
  29. /package/dist/{chunk-YXL4PSJM.mjs.map → chunk-KPFOAXRX.mjs.map} +0 -0
  30. /package/dist/{chunk-44FYLJJJ.mjs.map → chunk-RIPQZJB5.mjs.map} +0 -0
  31. /package/dist/{chunk-O6KXX5R5.mjs.map → chunk-YV3YXRMR.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.9.2-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f295375: - fix: remove all agents as tools when there is an active agent session
8
+ - fix formatting
9
+ - @copilotkit/shared@1.9.2-next.1
10
+
3
11
  ## 1.9.2-next.0
4
12
 
5
13
  ### Patch Changes
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-YMIOUUPV.mjs";
5
+ } from "./chunk-XGBY45FP.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-FHD4JECV.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
22
22
  export {
23
23
  copilotRuntimeNestEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-ESXPDYNT.mjs.map
25
+ //# sourceMappingURL=chunk-C3SWOFLO.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-YMIOUUPV.mjs";
5
+ } from "./chunk-XGBY45FP.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-FHD4JECV.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
22
22
  export {
23
23
  copilotRuntimeNodeExpressEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-YXL4PSJM.mjs.map
25
+ //# sourceMappingURL=chunk-KPFOAXRX.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  getCommonConfig,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-YMIOUUPV.mjs";
5
+ } from "./chunk-XGBY45FP.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-44FYLJJJ.mjs.map
80
+ //# sourceMappingURL=chunk-RIPQZJB5.mjs.map
@@ -40,7 +40,7 @@ var require_package = __commonJS({
40
40
  publishConfig: {
41
41
  access: "public"
42
42
  },
43
- version: "1.9.2-next.0",
43
+ version: "1.9.2-next.1",
44
44
  sideEffects: false,
45
45
  main: "./dist/index.js",
46
46
  module: "./dist/index.mjs",
@@ -3322,6 +3322,11 @@ var CopilotRuntime = class {
3322
3322
  const requestStartTime = Date.now();
3323
3323
  const streamedChunks = [];
3324
3324
  try {
3325
+ if (Object.keys(this.agents).length && (agentSession == null ? void 0 : agentSession.agentName) && !this.delegateAgentProcessingToServiceAdapter) {
3326
+ this.agents = {
3327
+ [agentSession.agentName]: this.agents[agentSession.agentName]
3328
+ };
3329
+ }
3325
3330
  if (agentSession && !this.delegateAgentProcessingToServiceAdapter) {
3326
3331
  return await this.processAgentRequest(request);
3327
3332
  }
@@ -5320,4 +5325,4 @@ export {
5320
5325
  getCommonConfig,
5321
5326
  copilotRuntimeNodeHttpEndpoint
5322
5327
  };
5323
- //# sourceMappingURL=chunk-YMIOUUPV.mjs.map
5328
+ //# sourceMappingURL=chunk-XGBY45FP.mjs.map