Add Python agent, WebSocket relay, real viewer, enrollment tokens

- WebSocket relay service (FastAPI) bridges agents and viewers
- Python agent with screen capture (mss), input control (pynput),
  script execution, and auto-reconnect
- Windows service wrapper, PyInstaller spec, NSIS installer for
  silent mass deployment (RemoteLink-Setup.exe /S /SERVER= /ENROLL=)
- Enrollment token system: admin generates tokens, agents self-register
- Real WebSocket viewer replaces simulated canvas
- Linux agent binary served from /downloads/remotelink-agent-linux
- DB migration 0002: viewer_token on sessions, enrollment_tokens table
- Sign-up pages cleaned up (invite-only redirect)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
monoadmin
2026-04-10 16:25:10 -07:00
parent b2be19ed14
commit e16a2fa978
28 changed files with 1953 additions and 343 deletions

View File

@@ -5,27 +5,27 @@ import { Signal, Clock, Gauge } from 'lucide-react'
interface ConnectionStatusProps {
quality: 'high' | 'medium' | 'low'
fps?: number
}
export function ConnectionStatus({ quality }: ConnectionStatusProps) {
export function ConnectionStatus({ quality, fps: realFps }: ConnectionStatusProps) {
const [stats, setStats] = useState({
latency: 45,
fps: 60,
bitrate: 8.5,
latency: 0,
fps: 0,
bitrate: 0,
})
// Simulate varying connection stats
useEffect(() => {
const interval = setInterval(() => {
setStats({
setStats((prev) => ({
latency: Math.floor(35 + Math.random() * 20),
fps: quality === 'high' ? 60 : quality === 'medium' ? 30 : 15,
fps: realFps ?? prev.fps,
bitrate: quality === 'high' ? 8 + Math.random() * 2 : quality === 'medium' ? 4 + Math.random() : 1 + Math.random() * 0.5,
})
}))
}, 1000)
return () => clearInterval(interval)
}, [quality])
}, [quality, realFps])
return (
<div className="flex items-center justify-center gap-6 h-8 bg-card/80 backdrop-blur border-t border-border/50 text-xs text-muted-foreground">