agent-swarm-kit 1.1.7 → 1.1.8

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/build/index.cjs CHANGED
@@ -3639,6 +3639,7 @@ const mapMcpToolCall = ({ name, description = name, inputSchema }, self) => {
3639
3639
  self.params.logger.debug(`ClientAgent agentName=${self.params.agentName} clientId=${self.params.clientId} calling MCP tool toolName=${name}`);
3640
3640
  await self.params.mcp.callTool(name, dto);
3641
3641
  },
3642
+ validate: () => true,
3642
3643
  };
3643
3644
  };
3644
3645
  /**
package/build/index.mjs CHANGED
@@ -3637,6 +3637,7 @@ const mapMcpToolCall = ({ name, description = name, inputSchema }, self) => {
3637
3637
  self.params.logger.debug(`ClientAgent agentName=${self.params.agentName} clientId=${self.params.clientId} calling MCP tool toolName=${name}`);
3638
3638
  await self.params.mcp.callTool(name, dto);
3639
3639
  },
3640
+ validate: () => true,
3640
3641
  };
3641
3642
  };
3642
3643
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
package/types.d.ts CHANGED
@@ -2893,6 +2893,7 @@ interface IWikiSchema {
2893
2893
  */
2894
2894
  type WikiName = string;
2895
2895
 
2896
+ type MCPToolValue = unknown;
2896
2897
  type MCPToolProperties = {
2897
2898
  [key: string]: {
2898
2899
  type: string;
@@ -2900,7 +2901,7 @@ type MCPToolProperties = {
2900
2901
  description?: string;
2901
2902
  };
2902
2903
  };
2903
- interface IMCPToolCallDto<T = Record<string, ToolValue>> {
2904
+ interface IMCPToolCallDto<T = Record<string, MCPToolValue>> {
2904
2905
  toolId: string;
2905
2906
  clientId: string;
2906
2907
  agentName: AgentName;
@@ -2921,19 +2922,19 @@ interface IMCPTool<Properties = MCPToolProperties> {
2921
2922
  interface IMCP {
2922
2923
  listTools(clientId: string): Promise<IMCPTool[]>;
2923
2924
  hasTool(toolName: string, clientId: string): Promise<boolean>;
2924
- callTool<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
2925
+ callTool<T = Record<string, MCPToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
2925
2926
  }
2926
2927
  interface IMCPCallbacks {
2927
2928
  onInit(): void;
2928
2929
  onDispose(clientId: string): void;
2929
2930
  onFetch(clientId: string): void;
2930
2931
  onList(clientId: string): void;
2931
- onCall<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): void;
2932
+ onCall<T = Record<string, MCPToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): void;
2932
2933
  }
2933
2934
  interface IMCPSchema {
2934
2935
  mcpName: MCPName;
2935
2936
  listTools: (clientId: string) => Promise<IMCPTool<unknown>[]>;
2936
- callTool: <T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<void>;
2937
+ callTool: <T = Record<string, MCPToolValue>>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<void>;
2937
2938
  callbacks?: Partial<IMCPCallbacks>;
2938
2939
  }
2939
2940
  interface IMCPParams extends IMCPSchema {
@@ -8749,7 +8750,7 @@ declare class ClientMCP implements IMCP {
8749
8750
  private fetchTools;
8750
8751
  listTools(clientId: string): Promise<IMCPTool<MCPToolProperties>[]>;
8751
8752
  hasTool(toolName: string, clientId: string): Promise<boolean>;
8752
- callTool<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8753
+ callTool<T = Record<string, MCPToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8753
8754
  dispose(clientId: string): void;
8754
8755
  }
8755
8756
 
@@ -8761,7 +8762,7 @@ declare class MCPConnectionService implements IMCP {
8761
8762
  getMCP: ((mcpName: MCPName) => ClientMCP) & functools_kit.IClearableMemoize<string> & functools_kit.IControlMemoize<string, ClientMCP>;
8762
8763
  listTools(clientId: string): Promise<IMCPTool[]>;
8763
8764
  hasTool(toolName: string, clientId: string): Promise<boolean>;
8764
- callTool<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8765
+ callTool<T = Record<string, MCPToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8765
8766
  }
8766
8767
 
8767
8768
  declare class MCPSchemaService {
@@ -8786,7 +8787,7 @@ declare class MCPPublicService implements TMCPConnectionService {
8786
8787
  private readonly mcpConnectionService;
8787
8788
  listTools(methodName: string, clientId: string, mcpName: string): Promise<IMCPTool[]>;
8788
8789
  hasTool(methodName: string, clientId: string, mcpName: string, toolName: string): Promise<boolean>;
8789
- callTool<T = Record<string, ToolValue>>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8790
+ callTool<T = Record<string, MCPToolValue>>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8790
8791
  }
8791
8792
 
8792
8793
  declare class MCPValidationService {