pi-flash 0.6.5 → 0.7.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.
package/README.md CHANGED
@@ -22,6 +22,10 @@ npm install -g pi-flash@<旧版本> # 回滚
22
22
  npx pi-flash@latest # 不常驻安装直接跑
23
23
  ```
24
24
 
25
+ > **npm 11.6+ / 12 用户注意**:npm 默认不再执行第三方包的 install 脚本(供应链防护)。
26
+ > 安装时若见 `install scripts not yet covered by allowScripts` 警告属**预期行为**——
27
+ > 载荷会在首次运行 `pi-flash` 时自动补齐(带下载进度与 SHA-256 校验),完成后正常启动。
28
+
25
29
  ## 环境变量
26
30
 
27
31
  | 变量 | 作用 |
package/bin/pi-flash.js CHANGED
@@ -46,6 +46,7 @@ if (!isNodeVersionSupported(process.versions.node)) {
46
46
 
47
47
  if (!payloadOk(tag)) {
48
48
  console.error(` 载荷缺失或版本不符,正在补齐(v${pkgVersion})…`);
49
+ console.error(` (npm 11.6+ 默认不跑安装脚本,首次运行自动补载属正常流程)`);
49
50
  try {
50
51
  await ensure();
51
52
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-flash",
3
- "version": "0.6.5",
3
+ "version": "0.7.0",
4
4
  "description": "Pi-Flash (PF) — 极速 pi coding agent 桌面端。npm 薄壳包:安装时从 GitHub Releases 拉取平台载荷。",
5
5
  "homepage": "https://github.com/danielbill/pi-flash#readme",
6
6
  "repository": {