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>
29 lines
735 B
Markdown
29 lines
735 B
Markdown
# /release
|
|
|
|
Prepare a release of systant.
|
|
|
|
## Instructions
|
|
|
|
1. Ensure working directory is clean (`git status`)
|
|
2. Run tests: `bun test`
|
|
3. Type check: `bunx tsc --noEmit`
|
|
4. Build binary: `bun build index.ts --compile --outfile dist/systant`
|
|
5. Ask user for version bump type (patch/minor/major)
|
|
6. Update version in package.json
|
|
7. Create git commit with message: "release: v{version}"
|
|
8. Create git tag: `v{version}`
|
|
9. 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
|