Add input detection before message injection
Merged
KH
6mo ago+2707+2707+0123456789012345678901234567890123456789-5-5-0123456789
- Add isInputClear() to detect empty input buffer via prompt pattern matching
- Add getCursorX() to get cursor position for stability detection
- Add waitForClearInput() loop-wait mechanism that polls until input is clear
- Integrate input detection into injectNextMessage() - waits for clear input
before injecting, falls back to forceful clear only on timeout - Add configurable inputWaitTimeoutMs and inputWaitPollMs options
- Add dev:local, dev:unlink, dev:rebuild npm scripts for local development