fix: use readiness endpoint for health checks instead of port check

The waitForHealth function now checks /api/readiness which returns 503
until background initialization completes, rather than just checking if
the port is in use. This ensures callers wait for full worker readiness.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alex Newman
2025-12-26 20:56:14 -05:00
parent def01790ea
commit 84a23450c8
2 changed files with 42 additions and 35 deletions
File diff suppressed because one or more lines are too long