Files
loki/scripts
g-butandClaude Sonnet 4.6 a2480b8a75 feat(daemon): add command bridge — API routes + local polling daemon script
Adds the missing link between cloud dispatch and local execution:
- GET /api/control/commands — claim next pending command (daemon auth via bearer token)
- PATCH /api/control/commands/[id] — mark command executed with result
- scripts/cockpit-daemon.sh — polls Vercel every 5s, executes inject/focus_tab via zellij

The daemon authenticates with COCKPIT_DAEMON_TOKEN. COCKPIT_DAEMON_USER_ID lets it
claim commands without a session cookie so it can run headlessly as a background service.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 14:50:14 +02:00
..