@copilotkit/core 1.55.3-canary.1776260990 → 1.56.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.
package/dist/index.cjs CHANGED
@@ -534,6 +534,7 @@ var ProxiedCopilotRuntimeAgent = class ProxiedCopilotRuntimeAgent extends _ag_ui
534
534
  this.runtimeMode = config.runtimeMode ?? _copilotkit_shared.RUNTIME_MODE_SSE;
535
535
  this.intelligence = config.intelligence;
536
536
  this._capabilities = config.capabilities;
537
+ if (config.debug) this.debug = config.debug;
537
538
  if (this.transport === "single") this.singleEndpointUrl = this.runtimeUrl;
538
539
  }
539
540
  get capabilities() {
@@ -670,7 +671,8 @@ var ProxiedCopilotRuntimeAgent = class ProxiedCopilotRuntimeAgent extends _ag_ui
670
671
  transport: this.transport,
671
672
  runtimeMode: this.runtimeMode,
672
673
  intelligence: this.intelligence,
673
- capabilities: this._capabilities
674
+ capabilities: this._capabilities,
675
+ debug: this.debug
674
676
  });
675
677
  cloned.threadId = this.threadId;
676
678
  cloned.setState(this.state);
@@ -972,6 +974,7 @@ var AgentRegistry = class {
972
974
  const runtimeInfoResponse = await this.fetchRuntimeInfo();
973
975
  const { version, ...runtimeInfo } = runtimeInfoResponse;
974
976
  const credentials = this.core.credentials;
977
+ const rawDebug = this.core.debug;
975
978
  this.remoteAgents = Object.fromEntries(Object.entries(runtimeInfo.agents).map(([id, { description, capabilities }]) => {
976
979
  const agent = new ProxiedCopilotRuntimeAgent({
977
980
  runtimeUrl: this.runtimeUrl,
@@ -981,7 +984,8 @@ var AgentRegistry = class {
981
984
  credentials,
982
985
  runtimeMode: runtimeInfoResponse.mode ?? _copilotkit_shared.RUNTIME_MODE_SSE,
983
986
  intelligence: runtimeInfoResponse.intelligence,
984
- capabilities
987
+ capabilities,
988
+ debug: rawDebug ? (0, _copilotkit_shared.resolveDebugConfig)(rawDebug) : void 0
985
989
  });
986
990
  this.applyHeadersToAgent(agent);
987
991
  return [id, agent];
@@ -2316,16 +2320,18 @@ var CopilotKitCore = class {
2316
2320
  _credentials;
2317
2321
  _properties;
2318
2322
  _defaultThrottleMs;
2323
+ _debug;
2319
2324
  subscribers = /* @__PURE__ */ new Set();
2320
2325
  agentRegistry;
2321
2326
  contextStore;
2322
2327
  suggestionEngine;
2323
2328
  runHandler;
2324
2329
  stateManager;
2325
- constructor({ runtimeUrl, runtimeTransport = "auto", headers = {}, credentials, properties = {}, agents__unsafe_dev_only = {}, tools = [], suggestionsConfig = [] }) {
2330
+ constructor({ runtimeUrl, runtimeTransport = "auto", headers = {}, credentials, properties = {}, agents__unsafe_dev_only = {}, tools = [], suggestionsConfig = [], debug }) {
2326
2331
  this._headers = headers;
2327
2332
  this._credentials = credentials;
2328
2333
  this._properties = properties;
2334
+ this._debug = debug;
2329
2335
  this.agentRegistry = new AgentRegistry(this);
2330
2336
  this.contextStore = new ContextStore(this);
2331
2337
  this.suggestionEngine = new SuggestionEngine(this);
@@ -2418,6 +2424,12 @@ var CopilotKitCore = class {
2418
2424
  }
2419
2425
  this._defaultThrottleMs = value;
2420
2426
  }
2427
+ get debug() {
2428
+ return this._debug;
2429
+ }
2430
+ setDebug(debug) {
2431
+ this._debug = debug;
2432
+ }
2421
2433
  get runtimeConnectionStatus() {
2422
2434
  return this.agentRegistry.runtimeConnectionStatus;
2423
2435
  }