A lightweight system monitoring agent that: - Collects metrics via configurable shell commands - Publishes to MQTT with Home Assistant auto-discovery - Supports entity types: sensor, binary_sensor, light, switch, button - Responds to commands over MQTT for controllable entities Architecture: - src/config.ts: TOML config loading and validation - src/mqtt.ts: MQTT client with HA discovery - src/entities.ts: Entity state polling and command handling - index.ts: CLI entry point (run, check, once commands) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
398 B
398 B
/build
Build the systant CLI binary.
Instructions
- Run type checking first:
bunx tsc --noEmit - If types pass, build the binary:
bun build index.ts --compile --outfile dist/systant - Report the binary size and location
- If there are errors, show them clearly and suggest fixes
Success Criteria
- No TypeScript errors
- Binary created at
dist/systant - Binary is executable