Commit Graph

5 Commits

Author SHA1 Message Date
nicolargo
ee24b03742 feat(v5): TUI separator rule between header and top row (─ default, [outputs] separator)
Mirror v4: a horizontal rule now sits between the header line (system/uptime)
and the top row, in addition to the existing top↔body rule. Both use the ─
box-drawing glyph by default (v4 paints curses.ACS_HLINE). The [outputs]
separator config key (default True) governs both; when False the rule rows
are left blank rather than collapsed, preserving the vertical rhythm.
2026-06-06 19:19:39 +02:00
nicolargo
896eeca58f docs(v5): G3-MCP plan — port the MCP endpoint to v5 via an adapter
Plan covers 6 tasks: adapter, mount in webserver_v5 (gated by
[outputs] enable_mcp), CLI overlay propagation, explicit gap docs
(history + missing plugins), conf + architecture doc, final sweep.

Scope contract: do NOT rewrite GlancesMcpServer. Introduce a thin
McpStatsAdapter / McpPluginView in glances/outputs/mcp_adapter_v5.py
that exposes the v4-style stats interface (getPluginsList,
get_plugin(name), get_raw, get_limits, ...) over StatsStoreV5 +
plugin registry + GlancesAlerts.

Surfaces v5 gaps explicitly:
- no history → adapter returns {} + WARN log (1× per plugin);
- processlist/fs/diskio/memswap not in v5 → get_plugin returns None,
  MCP raises the canonical "Plugin not found" ValueError;
- auth+SSE: middleware must not buffer; verify or port v4
  GlancesMcpAuthMiddleware pattern.

Decision logged: alert schema = v5-native (option a, no v4 translation).
2026-05-15 12:08:07 +02:00
nicolargo
47c9d8241c chore(v5): G2 Task 4 — Makefile targets for the new mode dispatch
- ``run-v5``: TUI mode (the new default — help string updated to
  reflect it no longer binds a socket).
- ``run-v5-debug``: TUI mode + ``-d``.
- ``run-v5-server`` (new): REST API mode (``-s``), headless.
- ``run-v5-server-debug`` (new): REST mode + ``-d``.
- ``run-v5-mcp`` (new): REST + ``--enable-mcp``. The flag is accepted +
  validated today but the MCP mount is not yet wired into v5 — see the
  plan footer (Task 2 dropped, deferred to a dedicated G3-MCP plan).

Also updates the plan file: marks Task 2 (MCP gate) as DROPPED with a
rationale section explaining that MCP is not yet wired into v5
``webserver_v5``, so there is nothing to gate. The CLI flag + validation
shipped in Task 1 are kept; the actual mount + gate will land in
G3-MCP.
2026-05-15 11:25:39 +02:00
nicolargo
cdf4515a9b docs(v5): add Phase 2 G1 plan — per-plugin renderers for mem/load/network/percpu
One commit per plugin, each replicating its v4 msg_curse layout. Each
task starts by reading the v4 source + catalogue (project memory rule
`feedback-tui-v5-must-mirror-v4`).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 14:45:59 +02:00
nicolargo
5187a8d735 Add plan for Phase 2 / G0 2026-05-12 17:34:12 +02:00