lingeebuild-cli 0.0.364 → 0.0.365

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # 更新日志
2
2
 
3
+ ## 0.0.365 - 2026-11-24
4
+
5
+ ### 修复
6
+
7
+ - 修复 Linux x64 和 x64-baseline 安装包未随带 `libstdc++.so.6`,在 GCC 10 等较老系统上可能出现 `GLIBCXX_3.4.31 not found` 的问题;Linux glibc 包现在会随带兼容库,并在启动时注入库搜索路径。
8
+ - 修复非 Windows 平台安装后 `rg` 未链接到 CLI 外壳包 `bin` 目录,导致 `doctor` 报告 `bundled rg` 缺失的问题。
9
+ - 修复多个进程同时启动时,内置技能和专家资源并发解包可能相互删除目录并出现 `EINVAL` 的问题;现在通过跨进程锁协调解包,并在等待后复核资源版本。
10
+ - 修复 macOS 专家脚本对外部 Node.js 的依赖,统一复用 CLI 内置的 Bun 运行时。
11
+
12
+ ### 优化
13
+
14
+ - 优化文件搜索稳定性,增加搜索缓存和进程限制,并禁止跟随目录符号链接,降低异常目录结构导致的重复扫描和资源占用。
15
+
16
+ ### 已知限制
17
+
18
+ - 本次 Windows npm 包未包含 `lingee-sandbox-helper.exe`,Windows 受限沙箱功能不可用,其他 CLI 功能不受影响。
19
+
3
20
  ## 0.0.364 - 2026-11-23
4
21
 
5
22
  ### 新增
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
package/package.json CHANGED
@@ -7,20 +7,20 @@
7
7
  "scripts": {
8
8
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
9
9
  },
10
- "version": "0.0.364",
10
+ "version": "0.0.365",
11
11
  "license": "MIT",
12
12
  "optionalDependencies": {
13
- "lingeebuild-linux-x64-musl": "0.0.364",
14
- "lingeebuild-linux-x64-baseline": "0.0.364",
15
- "lingeebuild-darwin-arm64": "0.0.364",
16
- "lingeebuild-linux-arm64": "0.0.364",
17
- "lingeebuild-windows-x64": "0.0.364",
18
- "lingeebuild-darwin-x64-baseline": "0.0.364",
19
- "lingeebuild-darwin-x64": "0.0.364",
20
- "lingeebuild-windows-arm64": "0.0.364",
21
- "lingeebuild-linux-x64": "0.0.364",
22
- "lingeebuild-linux-arm64-musl": "0.0.364",
23
- "lingeebuild-linux-x64-baseline-musl": "0.0.364",
24
- "lingeebuild-windows-x64-baseline": "0.0.364"
13
+ "lingeebuild-linux-x64-musl": "0.0.365",
14
+ "lingeebuild-linux-x64-baseline": "0.0.365",
15
+ "lingeebuild-darwin-arm64": "0.0.365",
16
+ "lingeebuild-linux-arm64": "0.0.365",
17
+ "lingeebuild-windows-x64": "0.0.365",
18
+ "lingeebuild-darwin-x64-baseline": "0.0.365",
19
+ "lingeebuild-darwin-x64": "0.0.365",
20
+ "lingeebuild-windows-arm64": "0.0.365",
21
+ "lingeebuild-linux-x64": "0.0.365",
22
+ "lingeebuild-linux-arm64-musl": "0.0.365",
23
+ "lingeebuild-linux-x64-baseline-musl": "0.0.365",
24
+ "lingeebuild-windows-x64-baseline": "0.0.365"
25
25
  }
26
26
  }
package/postinstall.mjs CHANGED
@@ -68,6 +68,16 @@ function findBinary() {
68
68
  }
69
69
  }
70
70
 
71
+ function linkExecutable(source, target) {
72
+ if (fs.existsSync(target)) fs.unlinkSync(target)
73
+ try {
74
+ fs.linkSync(source, target)
75
+ } catch {
76
+ fs.copyFileSync(source, target)
77
+ }
78
+ fs.chmodSync(target, 0o755)
79
+ }
80
+
71
81
  async function main() {
72
82
  try {
73
83
  if (os.platform() === "win32") {
@@ -81,13 +91,12 @@ async function main() {
81
91
  // Don't replace the wrapper script - it handles binary execution
82
92
  const { binaryPath, packageDir } = findBinary()
83
93
  const target = path.join(__dirname, "bin", ".lingeebuild")
84
- if (fs.existsSync(target)) fs.unlinkSync(target)
85
- try {
86
- fs.linkSync(binaryPath, target)
87
- } catch {
88
- fs.copyFileSync(binaryPath, target)
89
- }
90
- fs.chmodSync(target, 0o755)
94
+ linkExecutable(binaryPath, target)
95
+
96
+ // process.execPath points at bin/.lingeebuild, so both doctor and the runtime
97
+ // resolve the bundled rg next to it rather than inside the platform package.
98
+ const ripgrep = path.join(packageDir, "bin", "rg")
99
+ if (fs.existsSync(ripgrep)) linkExecutable(ripgrep, path.join(__dirname, "bin", "rg"))
91
100
 
92
101
  // 平台包 bin/lib 随带兼容老发行版的 libstdc++;复制到 wrapper 的 bin/lib,
93
102
  // wrapper 启动二进制时注入 LD_LIBRARY_PATH(硬链接路径下同样生效)。