chore: remove legacy TUI configurator; surface last config gap in GUI (#45)

Audit confirmed the Rich TUI (`meshai --config`) is a strict subset of the
dashboard GUI (covers FEWER sections) and nothing depends on it for bootstrap.
Strip it so the dashboard is the single config surface.

- delete meshai/cli/configurator.py (~1435 lines); cli/__init__ minimal
- main.py: drop --config + run_configurator dispatch (keep --config-file);
  bootstrap log now points to config.example.yaml / the dashboard
- docker-entrypoint.sh: remove the ttyd `meshai --config` block on :7682
  (default-config heredoc + bot exec loop untouched)
- docker-compose.yml + Dockerfile: drop the 7682 port + ttyd install (EXPOSE 8080)
- README / config.py header / config.example.yaml: de-reference the TUI
- drop `rich` from pyproject + requirements (grep-verified unused)

Close the only GUI config gap the audit found:
- Config.tsx weather tab: add openmeteo.url + wttr.url inputs (backend already
  round-trips the nested WeatherConfig dataclasses)

Bootstrap intact: config.example.yaml copy, entrypoint default-config write,
and defaulted Config() when no file exists all remain. `python3 -m meshai`
and `--config-file` unchanged. TS/import validated at Docker build.

Co-authored-by: Matt Johnson <mj@k7zvx.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
malice 2026-07-05 16:21:32 -06:00 committed by GitHub
commit 5de683f7a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 30 additions and 1483 deletions

View file

@ -1137,6 +1137,20 @@ function WeatherSection({ data, onChange }: { data: WeatherConfig; onChange: (d:
placeholder="Your city, state"
helper="Location when none specified"
/>
<TextInput
label="Open-Meteo base URL (advanced)"
value={data.openmeteo.url}
onChange={(v) => onChange({ ...data, openmeteo: { ...data.openmeteo, url: v } })}
placeholder="https://api.open-meteo.com/v1"
helper="Override the Open-Meteo API endpoint (leave default unless self-hosting)"
/>
<TextInput
label="wttr.in base URL (advanced)"
value={data.wttr.url}
onChange={(v) => onChange({ ...data, wttr: { ...data.wttr, url: v } })}
placeholder="https://wttr.in"
helper="Override the wttr.in endpoint (leave default unless self-hosting)"
/>
</div>
)
}