qiyu-cli 0.2.2 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qiyu-cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "网易七鱼开放 API 的命令行封装,主要用户是 AI Agent:默认输出机器可读 JSON,用退出码表达意图,危险操作有硬门禁",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "build": "tsc && node scripts/copy-assets.mjs",
37
37
  "check:pack": "node scripts/check-pack.mjs",
38
38
  "prepare": "npm run build",
39
- "postinstall": "node dist/postinstall.js || exit 0",
39
+ "postinstall": "node -e \"const f=require('node:fs'),c=require('node:child_process'),p='dist/postinstall.js';if(f.existsSync(p))try{c.execFileSync(process.execPath,[p],{stdio:'inherit'})}catch{}\" || exit 0",
40
40
  "test": "node scripts/test-shards.mjs",
41
41
  "test:single": "vitest run --maxWorkers=1 --no-file-parallelism",
42
42
  "typecheck": "tsc -p tsconfig.test.json"