open-code-review/scripts
kite c2312f9744 fix(npm): improve binary staging for zero-downtime auto-upgrade
Replace the simple binary cache with a proper staged binary mechanism:

- Add version.json metadata tracking (version, timestamp, platform)
- Add platform validation to prevent cross-platform misuse
- Add file integrity checks (exists, non-empty) in resolveStagedBinary()
- Notify users via dim stderr message when running from staged binary
- Refresh staged binary after successful upgrade for next-time protection
- Reuse STATE_DIR from platform.js to eliminate path duplication
- Always write version.json to avoid orphan binaries on disk

Resolution priority: platform package > staged binary > legacy path.
2026-08-04 16:58:21 +08:00
..
github-actions fix(action): group 422 fallback inline comments into a single review (#661) 2026-08-01 11:03:09 +08:00
publish fix: support scope override for platform packages on internal registry 2026-06-17 14:17:03 +08:00
install.js feat: add platform-specific npm packages to eliminate postinstall download 2026-06-17 14:17:03 +08:00
platform.js fix(npm): improve binary staging for zero-downtime auto-upgrade 2026-08-04 16:58:21 +08:00
update.js fix(npm): improve binary staging for zero-downtime auto-upgrade 2026-08-04 16:58:21 +08:00