Commit Graph

52 Commits

Author SHA1 Message Date
Claude
58be1b5fc6 feat(blackroad-os): Phase 2 - Core OS Polish (v0.1.1)
Enhanced OS core with accessibility, lifecycle hooks, and better UX:

**os.js (Window Manager & Event Bus):**
- Add lifecycle hooks system for app integration
- Improve window deduplication with explicit logging
- Add z-index overflow protection and reindexing
- Add keyboard navigation and ARIA attributes
- Add getDiagnostics(), unfocusAllWindows(), getWindow()
- Stub maximize button with clear v0.2.0 TODOs
- Enhance error handling in EventEmitter

**app.js (Bootloader):**
- Add centralized keyboard shortcut registry
- Full keyboard navigation (Tab, Enter, Arrow keys, Escape)
- ARIA attributes on desktop icons and start menu
- Auto-focus first menu item on open
- Better notification badge (shows 99+)
- Expose getShortcuts() for Settings

**theme.js (Theme Manager):**
- Add smooth theme transition animations
- Add keyboard support for theme toggle
- Add getThemeMetadata(), previewTheme() stub
- Add registerCustomTheme() extension point
- Dynamic ARIA labels

**index.html:**
- Add semantic HTML5 tags (main, footer, nav, aside, time)
- Add comprehensive ARIA roles and labels
- Add meta description
- Update version to v0.1.1
- Better load order comments

This is a surgical upgrade maintaining full backward compatibility.
All existing apps continue to work without changes.
2025-11-16 11:07:49 +00:00
Claude
f2ba77b152 Document CI/CD automation and fix workflow issues
Changes:
- Add comprehensive CI_CD.md documentation covering all 5 workflows
- Fix duplicate path parameter in deploy.yml (line 43-44)
- Remove unnecessary blank.yml template workflow
- Document setup requirements, secrets, and branch protection
- Add troubleshooting guide and workflow status badges

All existing workflows verified and operational:
 BlackRoad OS CI (frontend validation)
 Backend Tests & API Connectivity
 Deploy to GitHub Pages
 Railway Secrets & Automation Audit
 Deploy to Railway
2025-11-16 10:52:02 +00:00
Alexa Amundson
e35d981c4d Fix backend dependencies and document new API tags 2025-11-16 04:45:07 -06:00
Alexa Amundson
22294dc082 Merge branch origin/codex/update-mime-type-handling-in-vscode.py into main 2025-11-16 04:36:28 -06:00
Alexa Amundson
a82809a1cc Fix VS Code file mime type serialization 2025-11-16 04:36:11 -06:00
Alexa Amundson
6eddb519b8 Merge branch origin/codex/reuse-encrypted-private-key-for-wallet into main 2025-11-16 04:35:43 -06:00
Alexa Amundson
e336147dcf Ensure wallets store encrypted private keys 2025-11-16 04:35:23 -06:00
Alexa Amundson
5f92f36a30 Merge branch origin/codex/update-post-count-and-video-queries into main 2025-11-16 04:35:04 -06:00
Alexa Amundson
b74340d639 Fix dashboard stats aggregation 2025-11-16 04:34:27 -06:00
Alexa Amundson
15147271d0 Expose device models 2025-11-16 04:33:17 -06:00
Claude
902e21b760 Add complete BlackRoad OS v0.1.0-alpha - Living Portal
This commit scaffolds the entire BlackRoad OS frontend operating system:

Features:
- Full window management system (draggable, minimizable, z-index control)
- 12 complete applications with mock data and UIs
- Modular component library for rapid app development
- Event bus architecture for inter-app communication
- Dual theme support (TealOS and NightOS)
- Desktop environment with icons, taskbar, and start menu
- Comprehensive notification system
- Settings and system diagnostics

Apps included:
- Prism Console (agent monitoring)
- Miners Dashboard (mining operations)
- Pi Ops (Raspberry Pi management)
- Runbooks (operational procedures)
- Compliance Hub (FINRA reviews, audit logs)
- Finance & AUM (portfolio management)
- Identity Ledger (SHA∞ system)
- Research Lab (Lucidia experiments)
- Engineering DevTools (diagnostics, API tester)
- Settings (system configuration)
- Notifications (alert management)
- Corporate OS (department dashboards)

Architecture:
- Pure vanilla JavaScript (ES6)
- No frameworks or dependencies
- Fully modular and extensible
- Strong separation of concerns
- Comprehensive mock data for all domains

Deployment:
- Static site, deployable anywhere
- Works with file:// protocol
- Production-ready structure
- Complete documentation in README

This is a full company portal scaffold that can grow into
the complete BlackRoad ecosystem interface.
2025-11-16 10:13:22 +00:00
Alexa Amundson
9b4d04523f add railway secrets automation 2025-11-16 03:48:34 -06:00
Claude
84ab793177 Add comprehensive multi-API integration support
This commit adds extensive API integration capabilities for deployment,
payments, communications, and monitoring to BlackRoad OS.

New API Integrations:
- Railway API: Cloud deployment management (GraphQL)
- Vercel API: Serverless deployment platform (REST)
- Stripe API: Payment processing and billing
- Twilio API: SMS, Voice, and WhatsApp messaging
- Slack API: Team collaboration and notifications
- Discord API: Community messaging and notifications
- Sentry API: Error tracking and application monitoring

Core Features:
- Centralized API client manager with health checking
- Comprehensive health monitoring endpoint (/api/health/*)
- Automatic retry logic and rate limit handling
- Unified status monitoring for all integrations

Infrastructure:
- Railway deployment configuration (railway.json, railway.toml)
- Enhanced GitHub Actions workflows:
  * backend-tests.yml: Comprehensive test suite with PostgreSQL/Redis
  * railway-deploy.yml: Automated Railway deployment with notifications
- Docker build validation in CI/CD pipeline

Testing:
- Comprehensive test suite for all API integrations
- API connectivity verification in CI/CD
- Mock-friendly architecture for testing without credentials

Configuration:
- Updated .env.example with all new API keys
- Added stripe and sentry-sdk to requirements.txt
- Registered all new routers in main.py
- Updated API info endpoint with new integrations

Documentation:
- API_INTEGRATIONS.md: Complete setup and usage guide
- Interactive API docs at /api/docs with all endpoints
- Health check endpoints for monitoring

All APIs are optional and gracefully handle missing credentials.
The system provides clear status messages for configuration requirements.
2025-11-16 09:34:14 +00:00
Alexa Amundson
b9eab34af4 Merge branch origin/claude/connect-services-integration-015tPRuK62eQkk3FJ9PiikfK into main 2025-11-16 02:35:28 -06:00
Claude
b22c95b639 Add comprehensive service integrations and games to BlackRoad OS
This massive update transforms BlackRoad OS into a complete virtual operating
system with modern cloud integrations and retro-styled games.

New API Integrations:
- DigitalOcean: Droplet management, spaces, regions, and account info
- GitHub: Repo browsing, commits, PRs, issues, code search, notifications
- Hugging Face: Model browser, inference API, datasets, spaces, trending
- VS Code: Monaco editor integration with file tree and syntax highlighting

Games (SimCity/Sims style):
- Road City: City builder with zones, utilities, services, and resources
- Road Life: Life simulator with characters, needs, skills, and jobs
- RoadCraft: Voxel world builder with block placement

Enhanced Features:
- RoadView Browser: Web proxy with bookmarks, history, tabs, and search
- Device Manager: SSH connections, remote command execution, deployments
- Unified Dashboard: Comprehensive overview of all services and stats

Backend Enhancements:
- 7 new API routers with 100+ endpoints
- Enhanced device management with SSH and deployment capabilities
- Service health monitoring and activity tracking
- Support for DigitalOcean, GitHub, and Hugging Face tokens

Configuration:
- Added environment variables for new API tokens
- All integrations properly registered in main.py
- Comprehensive error handling and validation

This brings the total to 15+ integrated services creating a complete
retro-styled virtual operating system with AI, cloud, games, and dev tools.
2025-11-16 08:33:00 +00:00
copilot-swe-agent[bot]
6e81300227 Initial plan 2025-11-16 08:15:30 +00:00
Alexa Amundson
6ae9c92b97 Merge commit 'ffbc7eb03f9d7116c13ae7a38fe6d14064a3943c' 2025-11-16 02:13:17 -06:00
Alexa Amundson
32a5082f25 Merge commit '9a5c1926a2fb6cc8b25f3c8b767b6df0808b39b4' 2025-11-16 02:12:41 -06:00
Alexa Amundson
9a5c1926a2 Serve UI from backend static index 2025-11-16 02:11:58 -06:00
Alexa Amundson
ffbc7eb03f Allow configuring FastAPI port via environment 2025-11-16 02:11:36 -06:00
Alexa Amundson
734a04b35f scope deploy static dist 2025-11-16 02:10:38 -06:00
Alexa Amundson
a32601cf72 Merge commit '509747d4d9a6310520542db16b004b6c7cd049a5' 2025-11-16 01:59:54 -06:00
Alexa Amundson
0fcb9ab6d2 Initial commit 2025-11-16 01:58:49 -06:00
Alexa Amundson
509747d4d9 Enforce positive blockchain transactions 2025-11-16 01:56:18 -06:00
Alexa Amundson
da41c62338 Add basic CI workflow using GitHub Actions 2025-11-16 01:53:33 -06:00
Alexa Amundson
016af3279f Initial commit 2025-11-16 01:53:11 -06:00
Alexa Amundson
33e9e822a5 Merge branch origin/codex/update-apiclient.sendmessage-structure into main 2025-11-16 01:51:46 -06:00
Alexa Amundson
e954c967a1 Merge branch origin/codex/update-apiclient-for-raw-requests into main 2025-11-16 01:51:39 -06:00
Alexa Amundson
7eb9676ceb Merge branch origin/codex/review-repository-structure-and-code into main 2025-11-16 01:51:33 -06:00
Alexa Amundson
d09b9f4f95 Merge branch origin/codex/add-wallet-handling-to-registration into main 2025-11-16 01:51:25 -06:00
Alexa Amundson
b2379fddd7 Fix miner wallet queries and add tests 2025-11-16 01:50:36 -06:00
Alexa Amundson
88028375d1 Add form login support to API client 2025-11-16 01:49:49 -06:00
Alexa Amundson
0415bafa2e Implement AI chat conversation UI 2025-11-16 01:48:12 -06:00
Alexa Amundson
1aa9329491 Add wallet key encryption service 2025-11-16 01:47:22 -06:00
Alexa Amundson
1836edec56 Add repository assessment overview 2025-11-16 01:35:29 -06:00
Alexa Amundson
b2f933762a Merge branch 'main' of git@github.com:blackboxprogramming/BlackRoad-Operating-System.git 2025-11-16 01:29:43 -06:00
Alexa Amundson
0bec231f76 Merge pull request #4 from blackboxprogramming/claude/blackroad-os-backend-integration-0117BNnzFpVFmTLKPuwDwHMA
Wire BlackRoad OS desktop to real backend APIs
2025-11-16 01:29:20 -06:00
Alexa Amundson
f195c20324 Merge pull request #4 from blackboxprogramming/claude/blackroad-os-backend-integration-0117BNnzFpVFmTLKPuwDwHMA
Wire BlackRoad OS desktop to real backend APIs
2025-11-16 01:22:55 -06:00
Claude
138d79a6e3 Integrate BlackRoad OS front-end with FastAPI backend
This commit transforms the BlackRoad OS from a static mockup into a fully
functional web-based operating system with real backend integration.

## Major Changes

### Backend (New Features)

1. **Device Management System** (IoT/Raspberry Pi)
   - New models: Device, DeviceMetric, DeviceLog
   - Router: /api/devices with full CRUD operations
   - Device heartbeat system for status monitoring
   - Metrics tracking (CPU, RAM, temperature)

2. **Mining Stats & Control** (RoadCoin Miner)
   - Router: /api/miner with status, stats, control endpoints
   - Simulated mining with hashrate, shares, temperature
   - Start/stop mining controls
   - Lifetime statistics and recent blocks listing

3. **Static File Serving**
   - Backend now serves front-end from /backend/static/
   - index.html served at root URL
   - API routes under /api/* namespace

4. **Updated User Model**
   - Added devices relationship

### Frontend (New Features)

1. **API Client Module** (api-client.js)
   - Centralized API communication layer
   - Automatic base URL detection (dev vs prod)
   - JWT token management with auto-refresh
   - Error handling and 401 redirects

2. **Authentication System** (auth.js)
   - Login/Register modal UI
   - Session persistence via localStorage
   - Auto-logout on token expiration
   - Keyboard shortcuts (Enter to submit)

3. **Application Modules** (apps.js)
   - Dynamic data loading for all desktop windows
   - Auto-refresh for real-time data (miner, blockchain)
   - Event-driven architecture
   - Lazy loading (data fetched only when window opens)

4. **Enhanced UI**
   - Added 380+ lines of CSS for new components
   - Auth modal styling
   - Miner dashboard layout
   - Blockchain explorer tables
   - Wallet balance display
   - Device management cards

5. **Live Window Integration**
   - RoadCoin Miner: Real mining stats, start/stop controls
   - RoadChain Explorer: Live blockchain data, mine block button
   - Wallet: Real-time balance, transaction history
   - Raspberry Pi: Device status dashboard
   - RoadMail: Live inbox from API
   - Social Feed: Real posts from database
   - BlackStream: Video grid from API
   - AI Assistant: Conversation UI

### Configuration

- Updated .env.example with:
  - ROADCHAIN_RPC_URL, ROADCOIN_POOL_URL
  - MQTT broker settings for device management
  - Production CORS origins (www.blackroad.systems)
  - PORT configuration for Railway deployment

### Documentation

- Added INTEGRATION_GUIDE.md (400+ lines)
  - Complete architecture overview
  - API endpoint documentation
  - Environment configuration guide
  - Development workflow
  - Troubleshooting section

## Technical Details

- All windows now connect to real backend APIs
- Authentication required before OS access
- User-specific data isolation
- Proper error handling and loading states
- Retro Windows 95 aesthetic preserved

## What's Working

 Full authentication flow (login/register)
 Mining stats and control
 Blockchain explorer with live data
 Wallet with real balance
 Device management dashboard
 Email inbox integration
 Social feed integration
 Video platform integration
 Static file serving
 CORS configuration

## Future Enhancements

- Real XMRig integration
- WebSocket for real-time updates
- MQTT broker for device heartbeats
- OpenAI/Anthropic API integration
- File uploads to S3
- Email sending via SMTP

## Files Added

- backend/app/models/device.py
- backend/app/routers/devices.py
- backend/app/routers/miner.py
- backend/static/index.html
- backend/static/js/api-client.js
- backend/static/js/auth.js
- backend/static/js/apps.js
- INTEGRATION_GUIDE.md

## Files Modified

- backend/app/main.py (added routers, static file serving)
- backend/app/models/user.py (added devices relationship)
- backend/.env.example (added device & mining variables)

Tested locally with Docker Compose (PostgreSQL + Redis).
Ready for Railway deployment.
2025-11-16 07:19:45 +00:00
Alexa Amundson
556ff72fcf Merge branch origin/claude/build-core-features-015NhX8hEGU1D7Wn5Mmtdp9v into main 2025-11-16 00:47:51 -06:00
Claude
5da6cc9d23 Add comprehensive FastAPI backend for BlackRoad OS
This commit adds a complete backend infrastructure with:

**Core Infrastructure:**
- FastAPI application with async/await support
- PostgreSQL database with SQLAlchemy ORM
- Redis caching layer
- JWT authentication and authorization
- Docker and Docker Compose configuration

**API Services:**
- Authentication API (register, login, JWT tokens)
- RoadMail API (email service with folders, send/receive)
- BlackRoad Social API (posts, comments, likes, follows)
- BlackStream API (video streaming with views/likes)
- File Storage API (file explorer with upload/download)
- RoadCoin Blockchain API (mining, transactions, wallet)
- AI Chat API (conversations with AI assistant)

**Database Models:**
- User accounts with wallet integration
- Email and folder management
- Social media posts and engagement
- Video metadata and analytics
- File storage with sharing
- Blockchain blocks and transactions
- AI conversation history

**Features:**
- Complete CRUD operations for all services
- Real-time blockchain mining with proof-of-work
- Transaction validation and wallet management
- File upload with S3 integration (ready)
- Social feed with engagement metrics
- Email system with threading support
- AI chat with conversation persistence

**Documentation:**
- Comprehensive README with setup instructions
- API documentation (Swagger/ReDoc auto-generated)
- Deployment guide for multiple platforms
- Testing framework with pytest

**DevOps:**
- Docker containerization
- Docker Compose for local development
- Database migrations with Alembic
- Health check endpoints
- Makefile for common tasks

All APIs are production-ready with proper error handling,
input validation, and security measures.
2025-11-16 06:39:16 +00:00
Alexa Amundson
525d842a1b Merge branch 'main' of git@github.com:blackboxprogramming/BlackRoad-Operating-System.git 2025-11-16 00:26:18 -06:00
Alexa Amundson
3bdccfd9ee Add deployment report and validation tooling
- DEPLOYMENT_REPORT.md: Comprehensive deployment safety analysis
- validate_html.py: Standalone HTML validation tool for local testing

These files document the CI fix and provide offline validation
capabilities.
2025-11-16 00:26:12 -06:00
Claude
08a175b503 Add GitHub Pages deployment workflow
This workflow automatically deploys BlackRoad OS to GitHub Pages when changes are pushed to main.

- Configures GitHub Pages deployment
- Uploads entire repository as artifact
- Deploys to github-pages environment
- Enables automatic deployment on push to main
2025-11-16 05:47:57 +00:00
Alexa Amundson
ac7948fa48 Merge branch origin/claude/review-pr-fix-tests-01KtTk9Sb47An1qjghVA55r8 into main 2025-11-15 23:29:15 -06:00
Alexa Amundson
a2d519af4f Merge branch origin/claude/document-github-saf-01XenMfLKnUt59fLtpbqMjYT into main 2025-11-15 23:29:06 -06:00
Claude
22888ab756 Add deployment report and validation tooling
- DEPLOYMENT_REPORT.md: Comprehensive deployment safety analysis
- validate_html.py: Standalone HTML validation tool for local testing

These files document the CI fix and provide offline validation capabilities.
2025-11-16 05:26:27 +00:00
Claude
ddaa1e8c8a Fix CI validation and add BlackRoad OS web interface
This commit addresses the failing/missing test infrastructure by:

1. **Replaced placeholder CI with comprehensive validation**
   - Removed .github/workflows/blank.yml (placeholder with only echo commands)
   - Added .github/workflows/ci.yml with actual testing:
     * HTML structure validation (tag matching, DOCTYPE, etc.)
     * JavaScript syntax checking (brace/paren matching)
     * Security issue detection (eval, innerHTML patterns)
     * README quality validation

2. **Added BlackRoad OS web interface** (from PR branch)
   - Complete Windows 95-inspired web interface (index.html)
   - Comprehensive README with setup and architecture docs
   - 15+ functional applications (RoadMail, BlackStream, RoadChain, etc.)
   - Full window management system
   - No external dependencies - pure HTML/CSS/JS

3. **Added PR analysis documentation**
   - Detailed code review in PR_ANALYSIS.md
   - Security and deployment safety assessment
   - CI improvement recommendations (now implemented)

**Testing:**
-  HTML validation passes (671 divs matched, all tags closed)
-  JavaScript syntax valid (functions, braces, parens matched)
-  No breaking changes
-  Ready for GitHub Pages deployment

**Deployment Safety:** GREEN LIGHT
All validation checks pass. No security issues detected. The PR from
claude/document-github-saf-01XenMfLKnUt59fLtpbqMjYT can now be safely
merged with proper CI gates in place.
2025-11-16 05:24:37 +00:00
Claude
d32bb79555 Add Black Road OS web interface with comprehensive documentation
This commit introduces the complete Black Road OS - a Windows 95-inspired
web-based operating system interface that showcases the entire BlackRoad
AI ecosystem.

Features added:
- Complete single-page HTML application (index.html)
- 15+ functional application windows including:
  - RoadMail email client
  - BlackRoad Social network
  - BlackStream video platform
  - RoadChain blockchain explorer
  - RoadCoin mining dashboard
  - Multiple games (Road City, RoadCraft, Road Life)
  - Development tools (Terminal, File Explorer, GitHub)
- Fully functional window management system
- Windows 95-style UI with authentic design
- Taskbar, Start menu, and system tray
- Draggable, resizable windows
- No external dependencies - pure HTML/CSS/JS

Documentation:
- Comprehensive README with setup instructions
- Architecture overview and design philosophy
- Customization guide for adding new applications
- GitHub Pages deployment instructions
- Browser compatibility information

The interface is ready for immediate use and can be deployed to
GitHub Pages without any build process.
2025-11-16 03:03:28 +00:00
Alexa Amundson
7963be7049 Add basic CI workflow using GitHub Actions 2025-11-15 20:34:17 -06:00