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,5 +1,5 @@
-- Cluster Registration Migration
-- Implements the registration-based cluster architecture for Hive-Bzzz integration
-- Implements the registration-based cluster architecture for WHOOSH-Bzzz integration
-- Version: 1.0
-- Date: 2025-07-31
@@ -196,7 +196,7 @@ $$ LANGUAGE plpgsql;
-- Insert development cluster token
INSERT INTO cluster_tokens (token, description, created_by)
VALUES (
'hive_dev_cluster_token_12345678901234567890123456789012',
'whoosh_dev_cluster_token_12345678901234567890123456789012',
'Development cluster token for testing',
(SELECT id FROM users WHERE username = 'admin' LIMIT 1)
) ON CONFLICT (token) DO NOTHING;
@@ -204,7 +204,7 @@ VALUES (
-- Insert production cluster token (should be changed in production)
INSERT INTO cluster_tokens (token, description, created_by, expires_at)
VALUES (
'hive_prod_cluster_token_98765432109876543210987654321098',
'whoosh_prod_cluster_token_98765432109876543210987654321098',
'Production cluster token - CHANGE THIS IN PRODUCTION',
(SELECT id FROM users WHERE username = 'admin' LIMIT 1),
NOW() + INTERVAL '1 year'
@@ -214,12 +214,12 @@ VALUES (
-- COMMENTS AND DOCUMENTATION
-- =============================================================================
COMMENT ON TABLE cluster_tokens IS 'Registration tokens for cluster nodes to join the Hive cluster';
COMMENT ON TABLE cluster_tokens IS 'Registration tokens for cluster nodes to join the WHOOSH cluster';
COMMENT ON TABLE cluster_nodes IS 'Dynamically registered cluster nodes with hardware and capability information';
COMMENT ON TABLE node_heartbeats IS 'Heartbeat history for performance monitoring and status tracking';
COMMENT ON TABLE node_registration_attempts IS 'Security log of all node registration attempts';
COMMENT ON COLUMN cluster_tokens.token IS 'Unique token for node registration, format: hive_[env]_cluster_token_[random]';
COMMENT ON COLUMN cluster_tokens.token IS 'Unique token for node registration, format: whoosh_[env]_cluster_token_[random]';
COMMENT ON COLUMN cluster_tokens.max_registrations IS 'Maximum number of nodes that can use this token (NULL = unlimited)';
COMMENT ON COLUMN cluster_tokens.allowed_ip_ranges IS 'CIDR ranges that can use this token (NULL = any IP)';
@@ -234,8 +234,8 @@ COMMENT ON COLUMN cluster_nodes.capabilities IS 'Node capabilities: {"models": [
DO $$
BEGIN
RAISE NOTICE 'Cluster registration migration completed successfully!';
RAISE NOTICE 'Development token: hive_dev_cluster_token_12345678901234567890123456789012';
RAISE NOTICE 'Production token: hive_prod_cluster_token_98765432109876543210987654321098';
RAISE NOTICE 'Development token: whoosh_dev_cluster_token_12345678901234567890123456789012';
RAISE NOTICE 'Production token: whoosh_prod_cluster_token_98765432109876543210987654321098';
RAISE NOTICE 'SECURITY WARNING: Change production tokens before deployment!';
END
$$;