tern
fix(store): retry the journal lock while Windows releases it
main
Document the three layers
Merge branch feat/conflicts
tern sync command
CI on three platforms
HTTP client with retry
Upload queue and note hashing
Journal tests
Add the journal and its lock
Initial commit
fix(store): retry the journal lock while Windows releases it
Reopening the journal right after close could land while the previous .tern/lock was still pending delete, and open(path, 'wx') failed with EPERM or EBUSY. acquireLock() now retries those two codes with a short backoff and rethrows everything else. Adds lock.test.ts for the held-lock and rapid reacquire cases. ---
Files3