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

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
"""
Auto-Discovery Agent Registration Script for Hive
Auto-Discovery Agent Registration Script for WHOOSH
Automatically discovers Ollama endpoints on the subnet and registers them as agents
"""
@@ -15,7 +15,7 @@ from typing import Dict, List, Optional, Tuple
import time
# Configuration
HIVE_API_URL = "https://hive.home.deepblack.cloud"
WHOOSH_API_URL = "https://whoosh.home.deepblack.cloud"
SUBNET_BASE = "192.168.1"
OLLAMA_PORT = 11434
DISCOVERY_TIMEOUT = 3
@@ -171,7 +171,7 @@ class AgentDiscovery:
model_str = " ".join(models).lower()
hostname_lower = hostname.lower()
# Check hostname patterns - map to valid Hive AgentType values
# Check hostname patterns - map to valid WHOOSH AgentType values
if "walnut" in hostname_lower:
return "pytorch_dev" # Full-stack development
elif "acacia" in hostname_lower:
@@ -232,7 +232,7 @@ class AgentDiscovery:
return capability_map.get(specialty, ["general_development", "code_assistance"])
async def register_agent(self, agent_info: Dict) -> bool:
"""Register a discovered agent with Hive"""
"""Register a discovered agent with WHOOSH"""
try:
hostname = agent_info["system_info"]["hostname"]
specialty = self.determine_agent_specialty(agent_info["models"], hostname)
@@ -258,7 +258,7 @@ class AgentDiscovery:
}
async with self.session.post(
f"{HIVE_API_URL}/api/agents",
f"{WHOOSH_API_URL}/api/agents",
json=agent_data,
headers={"Content-Type": "application/json"}
) as response:
@@ -275,29 +275,29 @@ class AgentDiscovery:
print(f" ❌ Error registering {agent_info['host']}: {e}")
return False
async def test_hive_connection(self) -> bool:
"""Test connection to Hive API"""
async def test_whoosh_connection(self) -> bool:
"""Test connection to WHOOSH API"""
try:
async with self.session.get(f"{HIVE_API_URL}/health") as response:
async with self.session.get(f"{WHOOSH_API_URL}/health") as response:
if response.status == 200:
print("✅ Connected to Hive API")
print("✅ Connected to WHOOSH API")
return True
else:
print(f"Hive API returned status {response.status}")
print(f"WHOOSH API returned status {response.status}")
return False
except Exception as e:
print(f"❌ Failed to connect to Hive API: {e}")
print(f"❌ Failed to connect to WHOOSH API: {e}")
return False
async def main():
"""Main discovery and registration process"""
print("🐝 Hive Agent Auto-Discovery Script")
print("🐝 WHOOSH Agent Auto-Discovery Script")
print("=" * 50)
async with AgentDiscovery() as discovery:
# Test Hive connection
if not await discovery.test_hive_connection():
print("❌ Cannot connect to Hive API. Make sure Hive is running.")
# Test WHOOSH connection
if not await discovery.test_whoosh_connection():
print("❌ Cannot connect to WHOOSH API. Make sure WHOOSH is running.")
sys.exit(1)
# Discover agents