Metadata-Version: 2.4
Name: svc-dash
Version: 0.3.0
Summary: Startup-services terminal dashboard (login-time view of units, timers, proxies, and local LLM endpoints)
Project-URL: Homepage, https://github.com/boundring/svc-dash
Project-URL: Repository, https://github.com/boundring/svc-dash
License-Expression: AGPL-3.0-or-later
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.11
Requires-Dist: textual>=1.0
Provides-Extra: test
Requires-Dist: pytest-asyncio>=0.23; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# svc-dash

Startup-services terminal dashboard for this machine's login stack: systemd --user
units/timers, the llmtrim interceptor, and the unsloth local LLM endpoint, in one
auto-refreshing Textual panel. Aesthetic follows llmtrim's boxed terminal style.

Run:

```sh
cd ~/Projects/etc/svc-dash
uv run --with textual python -m svc_dash.app
# or after `uv pip install -e .`:
svc-dash
```

Config: `~/.config/svc-dash/config.toml` (falls back to the built-in default).
Services are `kind = "unit"` (systemctl --user is-enabled/is-active) or
`kind = "port"` (TCP connect probe).

Tests: `uv run --with textual --with pytest --with pytest-asyncio python -m pytest tests/ -q`
(headless Textual pilot smoke tests).

Origin: milestone M1 of the hngh+gbd dogfood program
(`~/Projects/etc/sysconfig_mgmt/.omc/plans/hngh-gbd-dogfood-program.md`).
Reuses the systemd-status pattern from gbd's `src/git_back_dots/systemd.py`.
Long-term this dashboard is absorbed by hngh's `dashboard-tui` (M6).

Long-term this dashboard is absorbed by hngh's `dashboard-tui` (M6).

## Features (v0.3)

- Services table from `~/.config/svc-dash/config.toml` (units: enabled/active; ports: listening/DOWN); 5s auto-refresh.
- **Detail screen** (Enter on a row): `s` start / `x` stop / `r` restart (`unit_action`, bounded, never raises), `j` journal view, `f` log-follow (journal refreshed every 2s, timer cancels cleanly on exit).
- **Sparkline panels**: unsloth panel shows resident model + context with a block-char sparkline of loaded-model count; llmtrim panel shows savings with a sparkline of dollars saved. `history_length` is config-driven (default 15).
- **Mission control**: svc-dash runs as the dashboard pane in `mc` (see `~/Projects/etc/hngh/docs/guides/mission-control.md`).

Detail keys: `esc` back · `s` start · `x` stop · `r` restart · `j` journal · `f` follow.