Add input detection before message injection

Merged
KH
6mo ago
+2707-5
  • 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