From 5f8e879af041d2b574d3c7a190f1733242ef6c1c Mon Sep 17 00:00:00 2001 From: James Date: Sat, 28 Feb 2026 06:01:39 -0500 Subject: [PATCH] chore: auto-commit uncommitted changes --- TOOLS.md | 2 +- memory/claude-usage.db | Bin 49152 -> 49152 bytes memory/claude-usage.json | 12 ++++++------ memory/infrastructure.md | 16 ++++++++++------ skills/screenshot/SKILL.md | 26 +++++++++++++------------- 5 files changed, 30 insertions(+), 26 deletions(-) diff --git a/TOOLS.md b/TOOLS.md index 89f706d..d011169 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -314,7 +314,7 @@ scripts/browser-setup.sh stop # Stop all - **Note:** Created via BotFather from Johan's @johanjongsma account ### Commands -- `/screenshot` → Pull latest screenshot from Mac desktop (uses screenshot skill) +- `/screenshot` or `/capture` → Capture live screenshot of Mac display 2 (uses screenshot skill, POST /capture?display=2 on port 9123) ### Uptime Kuma (Zurich) - **URL:** https://kuma.inou.com (DNS → zurich 82.22.36.202, Caddy reverse proxy → localhost:3001) diff --git a/memory/claude-usage.db b/memory/claude-usage.db index 3968b6147eae032e40b154d5a32496b09222c463..a6823ed0f173024624d1672b5d4ca74293014c38 100644 GIT binary patch delta 415 zcmZo@U~Xt&o*>Qmc%qCmj=m+CxGNRkmU_5LGlKcQM|me z&G8u84J<&?hDK4G5}dNlahUSvQ0?qo><+Tcv6u?XzzQs)*qGU5n`1ELO`!&`F|lo4 zvM7O-|WW>Y34|H0kQ_yAo7=5)sU=rS-zGu}g& Zfw`9PE?ha218f4MlLw&Lv4O+^v!tS64FqQe WiU5-;aL%!Tv;>pxv=6hHwPy-36&i^E diff --git a/memory/claude-usage.json b/memory/claude-usage.json index be93dae..6325436 100644 --- a/memory/claude-usage.json +++ b/memory/claude-usage.json @@ -1,9 +1,9 @@ { - "last_updated": "2026-02-28T05:00:02.062946Z", + "last_updated": "2026-02-28T11:00:01.973763Z", "source": "api", - "session_percent": 2, - "session_resets": "2026-02-28T09:00:00.482298+00:00", - "weekly_percent": 6, - "weekly_resets": "2026-03-06T03:00:00.482316+00:00", - "sonnet_percent": 6 + "session_percent": 71, + "session_resets": "2026-02-28T14:00:00.481126+00:00", + "weekly_percent": 22, + "weekly_resets": "2026-03-06T03:00:00.481148+00:00", + "sonnet_percent": 18 } \ No newline at end of file diff --git a/memory/infrastructure.md b/memory/infrastructure.md index 8d39d81..7cb07e4 100644 --- a/memory/infrastructure.md +++ b/memory/infrastructure.md @@ -57,12 +57,16 @@ - **Hardened:** UFW, fail2ban, key-only SSH, services on localhost - **Updated:** 2026-02-19 -### amsterdam — DECOMMISSIONED 2026-02-21 -- **IP:** 82.24.174.112 (HostKey VPS, server ID 53643) -- **Status:** ⚰️ All services removed. Cancellation submitted via HostKey invapi. DNS record amsterdam.inou.com deleted. -- **What was here:** Mail (Stalwart, migrated to Zurich 2026-02-19), Kuma, Vaultwarden, ntfy, Shannon security scanner — all removed -- **Git repos:** alert-dashboard, dealroom, message-center — all already mirrored on Zurich (confirmed) -- **HostKey panel:** https://panel.hostkey.com/controlpanel.html?key=639551e73029b90f-c061af4412951b2e (confirm cancellation if needed) +### shannon/dealspace — 82.24.174.112 +- Role: Dealspace dev/staging server +- IP: 82.24.174.112 (HostKey VPS, server ID 53643 — formerly amsterdam) +- Paid until: 2026-04-09 +- Specs: 4 vCore / 6GB RAM / 120GB SSD +- OS: Ubuntu 24.04 (reinstalled 2026-02-28) +- SSH: root@82.24.174.112 (key auth only, james@forge key) +- Services: (to be deployed — Dealspace) +- Hardened: UFW, fail2ban, key-only SSH, Caddy installed, Tailscale installed (needs auth) +- Updated: 2026-02-28 ## Network Notes - Home LAN: 192.168.1.0/24 (main), 192.168.100.0/24 (prod), 192.168.2.0/24 (IoT), 192.168.3.0/24 (?) diff --git a/skills/screenshot/SKILL.md b/skills/screenshot/SKILL.md index 657eb49..def491f 100644 --- a/skills/screenshot/SKILL.md +++ b/skills/screenshot/SKILL.md @@ -1,34 +1,34 @@ --- name: screenshot -description: Pull latest screenshot from Mac desktop via HTTP server +description: Pull latest screenshot from Mac desktop --- # Skill: Pull Latest Screenshot from Mac -Fetches the most recent screenshot from Johan's Mac desktop via HTTP server (Go binary on port 9123). +Captures a screenshot of Johan's Mac display and shows it. ## Usage -When you need to see what Johan is looking at, or when asked `/screenshot`. +Run `/screenshot` to capture and display a screenshot. ## Instructions -1. Fetch the screenshot: +1. Capture a fresh screenshot from the Mac: ```bash -curl -s http://192.168.1.14:9123/screenshot -o /tmp/latest_screenshot.png +curl -sf -X POST 'http://192.168.1.14:9123/capture?display=2' -o /tmp/latest_screenshot.png ``` -2. Display using the Read tool on `/tmp/latest_screenshot.png` +2. **Check the exit code.** If curl failed (non-zero exit), do NOT try to Read the file. Instead tell the user: "Could not capture screenshot. Check if the screenshot server is running on the Mac." + +3. Only if curl succeeded (exit code 0), use the Read tool on `/tmp/latest_screenshot.png` to display it. ## Error Handling -- 404: No screenshots on Desktop — take one with Cmd+Shift+4 -- Connection refused: Server not running — start with `./screenshot-server` in `~/dev/screenshot-server` -- Health check: `curl http://192.168.1.14:9123/health` → "ok" +- If curl fails to connect: the screenshot server may not be running on the Mac +- NEVER try to Read the output file if curl failed ## Notes -- Server auto-deletes screenshot after serving (one-time fetch) -- Screenshots: Cmd+Shift+4 (selection) or Cmd+Shift+3 (full screen) -- Server location: `~/dev/screenshot-server` on Mac Mini (.14) -- Port: 9123 +- Uses the `/capture` endpoint which takes a live screenshot via `screencapture` +- The file is automatically cleaned up server-side after serving +- Use `?display=2` to capture a different display