mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 23:49:41 +02:00
feat(web): gesture-control overlay integration (Phase 5, opt-in via CODEMAN_GESTURE=1)
Loads a hand-tracking overlay into the dashboard that detaches a session by pinch-grabbing its tab and pulling it out — driving the existing app.detachSession(id) hook. Bundle (src/web/public/gesture/gesture-codeman.js) is built from the codeman-gesture-control project's src/codeman/entry.ts (esbuild, MediaPipe included) and served same-origin. OFF by default — guarded entirely by CODEMAN_GESTURE=1: - server.ts: injects the module script into the dashboard HTML only (not solo /session/:id popups, which have no tab strip). - auth.ts: widens CSP only under the flag — adds 'wasm-unsafe-eval' (MediaPipe WASM) and the pinned MediaPipe CDNs (cdn.jsdelivr.net wasm, storage.googleapis.com model) to connect-src, plus worker-src 'self' blob:. Production CSP is unchanged when the flag is off. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user