Skip to content

v0.4.0

Latest

Choose a tag to compare

@pacrox pacrox released this 03 Sep 18:26
· 3 commits to main since this release

v0.4.0

Added

  • Standalone addon CLI: resmon <addon_name> [-i|-h|-s|-d] inspects,
    samples, or live-demos any fetcher or module on its own, without a
    config file; modes are cumulative, an optional fetch./mod. prefix
    disambiguates a name shared by both kinds.
  • Every fetcher/module now carries info/opts metadata (plus ranges
    for fetchers, sample fake-data templates for modules), validated by a
    shared, tightened contract check.
  • src/fake_fetcher.lua: seeded noise generator driving -s/-d fake
    data from each module's sample template; history-graph modules get
    their rolling window pre-filled before a static -s render.
  • NONE sentinel for a fetcher = {...} slot that should stay
    intentionally empty.
  • --list (enumerate every installed fetcher/module), --include <path>
    (additive dev/test directory, takes priority on a name collision),
    -o/--options <{lua-table}> (CLI-side config override), -r/--refresh
    extended to also pace a module's fake-data tick.
  • Global path flags (--config-dir/-c/--config-file/--fetchers-dir/
    --modules-dir) now recognized anywhere on the command line.
  • config/fetcher_addon_sample.lua, config/module_addon_sample.lua,
    config/ADDON-AUTHORING.md: ready-to-copy addon skeletons and a
    walkthrough, installed by both make install-config and the release
    tarball's install.sh.
  • dist/install.sh: detects an existing install and its version;
    automatically migrates a 0.3.0 config/addons to the new naming, or
    backs up and resets config.lua for anything older/unrecognized;
    --upgrade skips the confirmation prompt.

Fixed

  • prefill_module_history no longer re-polls a real (-f-attached)
    fetcher during its synthetic history replay — was hanging on
    pipe-based fetchers and corrupting delta-based ones.
  • -d on a module now actually respects its refresh rate, gated per
    cache slot instead of ticking unconditionally.
  • -d/-s on a fetcher now render nested-table values and
    embedded-JSON string fields legibly instead of skipping/dumping them
    raw.
  • -s pane width now correctly reaches half the terminal width instead
    of being capped too low.
  • -s history prefill now respects an -o-overridden interval
    instead of always using the addon's static default.

Changed

  • Custom module filenames and config mod = "..." values dropped the
    redundant mod_ prefix (mods/clock_graph.lua, mod = "clock_graph");
    fetcher naming is unchanged.
  • Standalone-CLI and --help/--list output reformatted: a single
    banner/trailing-blank-line per invocation, terminal-width-aware
    word-wrapped tables, right-aligned -i/--info metadata,
    [VALID]/[FAULT] dependency markers.
  • README overhauled throughout (new Standalone addon CLI section + demo
    GIF, Built-in Monitors table, Contributing points at the
    addon-authoring samples).