Commit graph

2 commits

Author SHA1 Message Date
kite
d2c6f616c7 feat: add async background auto-update mechanism
When users run any ocr command, the Node.js shim spawns a detached
background process that checks GitHub Releases for newer versions and
atomically replaces the binary. This ensures users stay on recent
versions without blocking their current command execution.

- Cooldown: checks at most once per hour (configurable via OCR_UPDATE_INTERVAL)
- Disable: set OCR_NO_UPDATE=1 to skip entirely
- Safety: PID lock prevents concurrent updates, SHA-256 checksum verification,
  atomic rename ensures running processes are unaffected
2026-05-22 16:15:51 +08:00
kite
7c8b8562aa feat: init 2026-05-20 22:03:52 +08:00