compose.server.yaml runs Supermarket behind Caddy (HTTPS from Let's
Encrypt, Caddy's own CA or the team's), with Postgres on an internal
network and a nightly pg_dump kept two weeks. install-server.sh asks for
the domain, certificate and mail server, makes the secret key and database
password, starts it all and prints the setup link. Settings → Backups lists
the dumps on a server, and how the operator restores one. Checked end to
end in Docker.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the old Go TUI with a web app (port 8470) that runs in a
container as a CoreDesktop sibling:
- cmd/supermarket server with htmx web UI: dashboard, company profile,
inventory (partners/competitors), AI and credential settings, and a
Core & Hermes page
- SQLite storage and a secrets store under ~/.local/share/supermarket
- AI providers (Anthropic, OpenAI-compatible) behind one interface
- MCP server and a Hermes bridge to the Federated Core MCP hub
- Import of the old Coremarketing TUI's state
- install.sh / update.sh / lib.sh, Dockerfile, compose.yaml, the
bin/supermarket launcher and hermes/setup.sh
Posting is not wired back up yet; that comes in Phase 1. See PLAN.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Untrack config.yaml (now gitignored) and add config.example.yaml with
blank credentials; install.sh copies the example and sets mode 600
- Reserve room for the appended source link when asking Claude for a
post, count length the way X does, and refuse over-length tweets
before posting
- Return https://x.com/i/status/<id> for posted tweets
- Track which platforms each queued post reached so a partial failure
can be retried without double-posting
- Write config, state, posts and dismissed files atomically with 0600
- Keep refreshed Twitter tokens in memory if saving them fails, and log
the failure instead of writing to the hidden stderr
- Exit with a clear message on corrupt data files instead of panicking
- Surface save errors in the UI; show status/error messages on home
- Add tests for X length counting, the post store, and token updates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>