georesearch-dsh/georesearch-dsh--packages-runtime-lease1

@georesearch/dsh-runtime-lease

用于托管 GeoResearch 安装的跨进程运行时排他租约

AI 分析

核心用途是防止在运行时活跃时写入不完整的安装生成。适合需要通过 Windows 命名互斥锁或 Unix 套接字确保安装器事务排他性的系统维护任务。

套件
@georesearch/dsh-runtime-lease
版本
0.1.0
授權
MIT
最近更新
2026年8月28日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

@georesearch/dsh-runtime-lease

Holds a process-scoped lease while a normal GeoResearch Profile is active. Installer mutations acquire the same lease before creating a transaction, so an active runtime is rejected without publishing a partial generation. A validated maintenance probe skips the runtime lease because its parent installer already owns it and the installation guard has consumed the bound nonce.

Windows uses a named mutex. Other platforms use a local Unix socket whose kernel-owned listener disappears when the process exits; stale socket paths are removed only after a failed connection probe.