chore: auto-commit uncommitted changes
This commit is contained in:
parent
22e7884416
commit
5f8e879af0
2
TOOLS.md
2
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)
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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 (?)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue