feat: enhance service status reporting with JSON output and add related tests
This commit is contained in:
@@ -51,13 +51,14 @@ The first version can shell out to:
|
||||
|
||||
```bash
|
||||
python3 scripts/aiw/services.py status --profile fidelity
|
||||
python3 scripts/aiw/services.py status --profile fidelity --json
|
||||
python3 scripts/aiw/services.py doctor --profile fidelity --json
|
||||
python3 scripts/aiw/services.py start --profile fidelity
|
||||
python3 scripts/aiw/services.py stop --profile fidelity
|
||||
python3 scripts/aiw/services.py restart aiw-context-mcp --profile fidelity
|
||||
```
|
||||
|
||||
Longer term, prefer a small local daemon HTTP/Unix-socket API so the UI does not parse terminal text except `doctor --json`.
|
||||
Use `status --json` for frequent UI refreshes and `doctor --json` for explicit diagnostics. Longer term, prefer a small local daemon HTTP/Unix-socket API so the UI does not parse terminal text.
|
||||
|
||||
## Production-Ready Rules
|
||||
|
||||
@@ -70,7 +71,7 @@ Longer term, prefer a small local daemon HTTP/Unix-socket API so the UI does not
|
||||
|
||||
## Implementation Phases
|
||||
|
||||
1. CLI-backed SwiftUI menu bar app using `doctor --json` for status.
|
||||
1. CLI-backed SwiftUI menu bar app using `status --json` for live status and `doctor --json` for diagnostics.
|
||||
2. Add profile selector and service action buttons.
|
||||
3. Add LaunchAgent support for start at login.
|
||||
4. Replace shell parsing with a daemon API if daily use proves stable.
|
||||
|
||||
Reference in New Issue
Block a user