diff --git a/.agent/skills/tmux-screenshot/SKILL.md b/.agent/skills/tmux-screenshot/SKILL.md index 545a653..89cfc3e 100644 --- a/.agent/skills/tmux-screenshot/SKILL.md +++ b/.agent/skills/tmux-screenshot/SKILL.md @@ -42,9 +42,10 @@ Required on FreeBSD host: ## Canonical paths - Script: `.agent/skills/tmux-screenshot/tmux-screenshot.py` -- Output dir: `/home/clawdie/clawdie-ai/tmp/screenshots/` +- Output dir: `/usr/local/www/clawdie/screenshots/` +- Served at: `https://clawdie.si/screenshots/` - Fonts: `/usr/local/share/fonts/dejavu/DejaVuSansMono.ttf` -- Manifest: `{outdir}/manifest.json` +- Manifest: `/usr/local/www/clawdie/screenshots/manifest.json` ## Workflow diff --git a/.agent/skills/tmux-screenshot/tmux-screenshot.py b/.agent/skills/tmux-screenshot/tmux-screenshot.py index 2f5fb3d..12137f3 100755 --- a/.agent/skills/tmux-screenshot/tmux-screenshot.py +++ b/.agent/skills/tmux-screenshot/tmux-screenshot.py @@ -34,8 +34,8 @@ BG_COLOR = (18, 18, 28) DEFAULT_FG = (228, 228, 228) DEFAULT_SESSION = "0" -DEFAULT_OUTDIR = Path("/home/clawdie/clawdie-ai/tmp/screenshots") -BASE_URL = "https://ai.clawdie.si/screenshots/viewer.html" +DEFAULT_OUTDIR = Path("/usr/local/www/clawdie/screenshots") +BASE_URL = "https://clawdie.si/screenshots" # ═─ signature database ──────────────────────────────────────────────────────── # Each signature has: @@ -769,7 +769,7 @@ def capture_screenshot(session: str, outdir: Path) -> dict: print(f"Verification failed: {e}", file=sys.stderr) return {'success': False, 'error': str(e)} - url = f"{BASE_URL}?u={uuid}" + url = f"{BASE_URL}/{uuid}.png" print(f"\nScreenshot saved: {uuid}") print(f" PNG: {png_path} ({img.width}x{img.height}px)") print(f" TXT: {txt_path}")