Major WHOOSH system refactoring and feature enhancements

- Migrated from HIVE branding to WHOOSH across all components
- Enhanced backend API with new services: AI models, BZZZ integration, templates, members
- Added comprehensive testing suite with security, performance, and integration tests
- Improved frontend with new components for project setup, AI models, and team management
- Updated MCP server implementation with WHOOSH-specific tools and resources
- Enhanced deployment configurations with production-ready Docker setups
- Added comprehensive documentation and setup guides
- Implemented age encryption service and UCXL integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-08-27 08:34:48 +10:00
parent 0e9844ef13
commit 268214d971
399 changed files with 57390 additions and 2045 deletions

View File

@@ -4,37 +4,37 @@
* Test MCP Server CLI Agent Integration
*/
const { HiveClient } = require('../../mcp-server/dist/hive-client.js');
const { HiveTools } = require('../../mcp-server/dist/hive-tools.js');
const { WHOOSHClient } = require('../../mcp-server/dist/whoosh-client.js');
const { WHOOSHTools } = require('../../mcp-server/dist/whoosh-tools.js');
async function testMCPIntegration() {
console.log('🧪 Testing MCP Server CLI Agent Integration...\n');
try {
// Initialize Hive client
const hiveClient = new HiveClient({
baseUrl: 'https://hive.home.deepblack.cloud/api',
wsUrl: 'wss://hive.home.deepblack.cloud/socket.io',
// Initialize WHOOSH client
const whooshClient = new WHOOSHClient({
baseUrl: 'https://whoosh.home.deepblack.cloud/api',
wsUrl: 'wss://whoosh.home.deepblack.cloud/socket.io',
timeout: 15000
});
console.log('✅ HiveClient initialized');
console.log('✅ WHOOSHClient initialized');
// Test connection
try {
await hiveClient.testConnection();
console.log('✅ Connection to Hive backend successful');
await whooshClient.testConnection();
console.log('✅ Connection to WHOOSH backend successful');
} catch (error) {
console.log('⚠️ Connection test failed (backend may be offline):', error.message);
console.log(' Continuing with tool definition tests...\n');
}
// Initialize tools
const hiveTools = new HiveTools(hiveClient);
console.log('✅ HiveTools initialized');
const whooshTools = new WHOOSHTools(whooshClient);
console.log('✅ WHOOSHTools initialized');
// Test tool definitions
const tools = hiveTools.getAllTools();
const tools = whooshTools.getAllTools();
console.log(`✅ Loaded ${tools.length} MCP tools\n`);
// Check for CLI agent tools
@@ -49,9 +49,9 @@ async function testMCPIntegration() {
});
// Test tool schema validation
const registerCliTool = tools.find(t => t.name === 'hive_register_cli_agent');
const registerCliTool = tools.find(t => t.name === 'whoosh_register_cli_agent');
if (registerCliTool) {
console.log('\n✅ hive_register_cli_agent tool found');
console.log('\n✅ whoosh_register_cli_agent tool found');
console.log(' Required fields:', registerCliTool.inputSchema.required);
const properties = registerCliTool.inputSchema.properties;
@@ -61,7 +61,7 @@ async function testMCPIntegration() {
console.log('❌ CLI agent tool schema missing required properties');
}
} else {
console.log('❌ hive_register_cli_agent tool not found');
console.log('❌ whoosh_register_cli_agent tool not found');
}
// Test agent enumeration