mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 14:28:41 +01:00
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>