@co0ontty/wand 2.9.1 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
- "commit": "c465983c0a953654202c2ac3eaabe107afe887e6",
3
- "builtAt": "2026-07-11T13:37:55.952Z",
4
- "version": "2.9.1",
2
+ "commit": "db52f6b57aefdb3ae9007231aa2b1aedad1bc354",
3
+ "builtAt": "2026-07-11T23:51:00.317Z",
4
+ "version": "2.10.0",
5
5
  "channel": "stable"
6
6
  }
@@ -42,6 +42,12 @@ export declare function cleanupNpmLeftovers(): {
42
42
  removed: string[];
43
43
  errors: string[];
44
44
  };
45
+ /**
46
+ * 更新时同时存在旧包备份、npm 正在解包的新版本和下载/回滚余量。
47
+ * 旧包大小按三倍计(安全备份、新包、回滚 staging),再保留 512 MiB,
48
+ * 避免 ENOSPC 把全局 CLI 拆成半包。
49
+ */
50
+ export declare function requiredUpdateFreeBytes(currentInstallBytes: number): number;
45
51
  /**
46
52
  * 异步版本的全局安装:
47
53
  * 1. 清理残留
@@ -75,3 +81,8 @@ export declare function installPackageGloballySync(pkg: string, timeoutMs: numbe
75
81
  * (npm 全局 bin 里的符号链接,node 跟随软链一样能跑)。都找不到返回 null。
76
82
  */
77
83
  export declare function resolveGlobalWandCli(): string | null;
84
+ /**
85
+ * 返回 npm 全局命令 shim 的稳定路径。服务 unit 应固定到这个入口,而不是包目录内的
86
+ * dist/cli.js;更新回滚期间 shim 会临时指向同盘安全备份,始终保持可启动。
87
+ */
88
+ export declare function resolveGlobalWandBin(): string | null;