feat: real-time live data integration

- lib/live-data.ts: Shared TypeScript client for blackroad-live-data Worker
- components/live-stats.tsx: LiveStatsBar, RecentRepos, AgentStatusGrid components
- app/page.tsx: Import LiveStatsBar in main page header

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Alexa Amundson
2026-02-24 14:18:59 -06:00
parent 263f9f171e
commit 458c2c044b
97 changed files with 8715 additions and 1701 deletions

21
app/api/health/route.ts Normal file
View File

@@ -0,0 +1,21 @@
import { NextResponse } from 'next/server';
export const runtime = 'edge';
export async function GET() {
const health = {
status: 'healthy',
service: 'blackroad-os-web',
version: process.env.npm_package_version || '0.1.0',
timestamp: new Date().toISOString(),
uptime: process.uptime ? process.uptime() : null,
environment: process.env.NODE_ENV || 'development',
};
return NextResponse.json(health, {
status: 200,
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
},
});
}