yymaxapi 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. package/bin/yymaxapi.js +1 -1
  2. package/package.json +1 -1
package/bin/yymaxapi.js CHANGED
@@ -630,7 +630,7 @@ function getWslCliBinary() {
630
630
  if (_wslCliBinaryCache !== undefined) return _wslCliBinaryCache;
631
631
  for (const name of ['openclaw', 'clawdbot', 'moltbot']) {
632
632
  try {
633
- const result = execFileSync('wsl', ['bash', '-c', `which ${name} 2>/dev/null`], { encoding: 'utf8', timeout: 5000 }).trim();
633
+ const result = execFileSync('wsl', ['bash', '-lc', `which ${name} 2>/dev/null`], { encoding: 'utf8', timeout: 5000 }).trim();
634
634
  if (result && result.startsWith('/')) {
635
635
  _wslCliBinaryCache = result;
636
636
  return _wslCliBinaryCache;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yymaxapi",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "跨平台 OpenClaw/Clawdbot 配置管理工具 - 管理中转地址、模型切换、API Keys、测速优化",
5
5
  "main": "bin/yymaxapi.js",
6
6
  "bin": {