Skip to content

feat(module): add powerstat, dstat, ifstat, nmap monitoring modules - #382

Merged
ycpss91255 merged 2 commits into
mainfrom
auto/modules-monitoring-b2
Jul 11, 2026
Merged

feat(module): add powerstat, dstat, ifstat, nmap monitoring modules#382
ycpss91255 merged 2 commits into
mainfrom
auto/modules-monitoring-b2

Conversation

@ycpss91255

Copy link
Copy Markdown
Owner

Summary

Four apt-archetype monitoring modules for the small-tools modularization
program, mirroring the just-added btop module's style. Each is an
independently installable / removable module.

Module apt pkg doctor probe
powerstat powerstat command -v powerstat
dstat dstat command -v dstat
ifstat ifstat command -v ifstat
nmap nmap nmap --version

All four are optional modules tagged monitoring, wired via
module_use_apt_archetype with module-defined detect() / is_recommended()
and a real doctor(). Each declares an en + zh-TW DESCRIPTION,
SUPPORTED_UBUNTU=("22.04" "24.04" "26.04"), and a TEST_VERIFY_CMD matching
its doctor probe. Both standalone- and engine-invocable; all satisfy the
10-function module contract (ADR-0002, enforced by the #305
contract-conformance meta-test).

Changes

  • module/{powerstat,dstat,ifstat,nmap}.module.sh — the four modules.
  • test/unit/module/{powerstat,dstat,ifstat,nmap}_spec.bats — a per-module
    unit spec each (smoke / metadata / lifecycle dry-run / no-side-effects /
    sidecar lifecycle / idempotency / standalone CLI / real doctor probe).
  • doc/module/INDEX.md — regenerated (58 modules).
  • doc/changelog/CHANGELOG.md[Unreleased] → Added entry.

Test plan

Run inside Docker only (ADR-0004), all three gates blocking-foreground green:

  • just -f justfile.ci test-unit — full unit tree (1401 tests) green,
    including the test(module): module-iterating contract conformance meta-test #305 contract-conformance meta-test that dynamically
    discovers and validates every module against the 10-function contract.
  • just -f justfile.ci test-integration — 24 tests green.
  • just -f justfile.ci coverage — kcov merged-coverage gate (AC-17) green.

Generated with Claude Code

https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s

ycpss91255 and others added 2 commits July 11, 2026 20:50
Four apt-archetype monitoring modules for the small-tools modularization
program, mirroring the btop module style:

- powerstat — power consumption measurement; apt powerstat; doctor probes
  command -v powerstat.
- dstat — versatile system resource statistics; apt dstat; doctor probes
  command -v dstat.
- ifstat — network interface bandwidth statistics; apt ifstat; doctor
  probes command -v ifstat.
- nmap — network mapper / port scanner; apt nmap; doctor runs nmap
  --version.

All four are optional modules tagged monitoring, wired via
module_use_apt_archetype with module-defined detect()/is_recommended() and
a real doctor(), each declaring en + zh-TW DESCRIPTION,
SUPPORTED_UBUNTU=(22.04 24.04 26.04), and a TEST_VERIFY_CMD matching its
doctor probe. Both standalone- and engine-invocable; all satisfy the
10-function module contract (ADR-0002, #305 conformance). Adds a per-module
unit spec each, regenerates doc/module/INDEX.md (58 modules), and records a
CHANGELOG entry.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s
# Conflicts:
#	doc/module/INDEX.md
@ycpss91255
ycpss91255 enabled auto-merge (squash) July 11, 2026 12:52
@ycpss91255
ycpss91255 merged commit 5d4f7b0 into main Jul 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant