Phase 9, part 1: editions and their settings

SUPERMARKET_MODE picks local (the default), server or multi. internal/config
reads and checks every setting the editions need (database, secret key,
storage, the app's own mail, an https address), reporting all problems at
once. supermarket config prints them without passwords; supermarket
secret-key makes a key. Settings -> About shows the edition. Server and
multi-tenant are checked but refuse to start until they're built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 06:55:30 -07:00
co-authored by Claude Opus 5.5
parent 338eaa2c79
commit 7a857c7346
12 changed files with 671 additions and 9 deletions
+2 -1
View File
@@ -19,6 +19,7 @@ Usage: supermarket [command]
hermes Set up, or repair, Hermes' connection to your Core's MCP hub
token Print the token agents use to reach Supermarket's MCP endpoint
data Print where its data is kept
config Show its edition and settings, and any problems with them
backup [note] Back up the database now (it also backs up daily)
backup --with-secrets The same, with your keys and tokens, for moving
to another computer (keep the file safe)
@@ -63,7 +64,7 @@ case "${1:-open}" in
logs) compose logs -f --tail 200 ;;
hermes) shift; bash "$REPO/hermes/setup.sh" "$@" ;;
token) cat "$DATA/mcp-token" ;;
backup|backups)
backup|backups|config)
if ! docker exec supermarket true 2> /dev/null; then
echo "Supermarket isn't running: start it first (supermarket start)."
exit 1