@zhushanwen/pi-file-lock
Shared sync cross-process file lock for Pi extensions — zero-dependency self-implemented mkdir lock (protocol-compatible with proper-lockfile 4.1.2) with stale takeover and busy-wait retry, aligned with the runtime-side lock protocol (shared library, not
Package details
Install @zhushanwen/pi-file-lock from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@zhushanwen/pi-file-lock- Package
@zhushanwen/pi-file-lock- Version
0.4.1- Published
- Sep 18, 2026
- Downloads
- 1,462/mo · 369/wk
- Author
- zhushanwen321
- License
- MIT
- Types
- package
- Size
- 35.2 KB
- Dependencies
- 1 dependency · 0 peers
Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.