@copilotkit/core 1.56.0 → 1.56.2

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
@@ -858,6 +858,7 @@ var AgentRegistry = class {
858
858
  initialize(agents) {
859
859
  this.localAgents = this.assignAgentIds(agents);
860
860
  this.applyHeadersToAgents(this.localAgents);
861
+ this.applyCredentialsToAgents(this.localAgents);
861
862
  this._agents = this.localAgents;
862
863
  }
863
864
  /**
@@ -887,6 +888,7 @@ var AgentRegistry = class {
887
888
  ...this.remoteAgents
888
889
  };
889
890
  this.applyHeadersToAgents(this._agents);
891
+ this.applyCredentialsToAgents(this._agents);
890
892
  this.notifyAgentsChanged();
891
893
  }
892
894
  /**
@@ -896,6 +898,7 @@ var AgentRegistry = class {
896
898
  this.validateAndAssignAgentId(id, agent);
897
899
  this.localAgents[id] = agent;
898
900
  this.applyHeadersToAgent(agent);
901
+ this.applyCredentialsToAgent(agent);
899
902
  this._agents = {
900
903
  ...this.localAgents,
901
904
  ...this.remoteAgents
@@ -1956,7 +1959,7 @@ var RunHandler = class {
1956
1959
  * Build frontend tools for an agent
1957
1960
  */
1958
1961
  buildFrontendTools(agentId) {
1959
- return this._tools.filter((tool) => tool.available !== false && (!tool.agentId || tool.agentId === agentId)).map((tool) => ({
1962
+ return this._tools.filter((tool) => tool.available !== false && tool.available !== "disabled" && (!tool.agentId || tool.agentId === agentId)).map((tool) => ({
1960
1963
  name: tool.name,
1961
1964
  description: tool.description ?? "",
1962
1965
  parameters: createToolSchema(tool)