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>
735 B
735 B
/release
Prepare a release of systant.
Instructions
- Ensure working directory is clean (
git status) - Run tests:
bun test - Type check:
bunx tsc --noEmit - Build binary:
bun build index.ts --compile --outfile dist/systant - Ask user for version bump type (patch/minor/major)
- Update version in package.json
- Create git commit with message: "release: v{version}"
- Create git tag:
v{version} - Report next steps (push, publish, etc.)
Prerequisites
- All tests must pass
- No TypeScript errors
- Clean git working directory (or user confirms to proceed)
Success Criteria
- Binary built successfully
- Version bumped in package.json
- Git commit and tag created
- Clear instructions for next steps