UNPKG

@hivetechs/hive-ai

Version:

Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API

48 lines 1.96 kB
/** * Tools index file * * This file exports all the tools available in the hive-tools platform. * It serves as the central registry for tools that can be used via the CLI. */ // Import all tools // Old consensus import removed - using new SOURCE_OF_TRUTH system // import * as consensusTool from './hiveai/consensus.js'; import * as providerConfig from './hiveai/provider-config.js'; // modelRegistry removed - OpenRouter handles all model discovery import * as licenseConfiguration from './hiveai/license-configuration.js'; // Export all tools export const tools = { // License management tools license_configuration: licenseConfiguration.runLicenseConfigurationTool, // Provider management tools list_providers: providerConfig.runListProvidersTool, configure_provider: providerConfig.runConfigureProviderTool, test_providers: providerConfig.runTestProvidersTool, // Pipeline management tools - these may need to be implemented // list_profiles: providerConfig.runListProfilesTool, // configure_pipeline: providerConfig.runConfigurePipelineTool, // set_default_profile: providerConfig.runSetDefaultProfileTool, // Model registry tools removed - OpenRouter handles all model management // Consensus tools // consensus: consensusTool.runHiveConsensusTool // Removed - using new SOURCE_OF_TRUTH system }; /** * Execute a tool by name with the given arguments * @param toolName The name of the tool to execute * @param args The arguments to pass to the tool * @returns The result of the tool execution */ export async function executeTool(toolName, args) { // Check if the tool exists if (!tools[toolName]) { throw new Error(`Tool not found: ${toolName}`); } // Execute the tool with the given arguments return await tools[toolName](args); } // Export default object for CommonJS compatibility export default { tools, executeTool }; //# sourceMappingURL=index.js.map