voicemode
voicemode copied to clipboard
feat(VM-523): Add --wait flag to service status for synchronous startup checking
Summary
Adds --wait and --timeout parameters to the VoiceMode service status MCP tool, allowing scripts and agents to block until a service is ready instead of implementing their own polling loops.
Key changes:
- Added
wait(bool, default: false) andtimeout(int, default: 60s) params toservice()MCP tool - New helper functions:
get_service_port(),is_service_ready(),wait_for_service() - Progress indication with dots to stderr during wait
- Status prefixes: ✅ success, ⏱️ timeout, ❌ error
Usage
# Wait for Kokoro to be ready (default 60s timeout)
service("kokoro", "status", wait=True)
# Custom timeout
service("whisper", "status", wait=True, timeout=120)
Test plan
- [x] Unit tests for
get_service_port()- returns correct ports - [x] Unit tests for
is_service_ready()- handles all states - [x] Unit tests for
wait_for_service()- immediate/timeout/delayed - [x] Unit tests for
service()integration - params and defaults - [x] Manual testing: Whisper/VoiceMode wait works
- [x] All 47 existing service tests pass
Documentation
- Updated
docs/reference/cli/service-commands.md - Updated
.claude/skills/voicemode/SKILL.md
🤖 Generated with Claude Code