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>
23 lines
459 B
Markdown
23 lines
459 B
Markdown
# /test
|
|
|
|
Run the test suite.
|
|
|
|
## Instructions
|
|
|
|
1. Run `bun test` to execute all tests
|
|
2. If tests fail:
|
|
- Analyze the failure messages
|
|
- Identify the root cause
|
|
- Suggest specific fixes
|
|
3. If tests pass, report the summary
|
|
|
|
## Options
|
|
|
|
- `/test <pattern>` - Run tests matching a pattern (e.g., `/test metrics`)
|
|
- `/test --watch` - Run in watch mode
|
|
|
|
## Success Criteria
|
|
|
|
- All tests pass
|
|
- Clear reporting of any failures with actionable suggestions
|