@simonyea/holysheep-cli 1.5.1 → 1.5.2

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": "@simonyea/holysheep-cli",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "一键配置所有 AI 编程工具接入 HolySheep API — Claude Code / Codex / Gemini CLI / OpenCode / OpenClaw / Aider / Cursor",
5
5
  "keywords": [
6
6
  "claude",
@@ -156,7 +156,15 @@ async function setup(options) {
156
156
  if (doInstall) {
157
157
  for (const tool of needInstall) {
158
158
  const ok = await tryAutoInstall(tool)
159
- if (ok) justInstalled.add(tool.id)
159
+ if (ok) {
160
+ justInstalled.add(tool.id)
161
+ } else if (tool.id === 'openclaw') {
162
+ // openclaw 安装失败时(如无 git),改用 npx 模式继续配置
163
+ // checkInstalled() 里已有 npx fallback,标记为已安装
164
+ console.log(chalk.yellow(` ⚠️ 全局安装失败,将使用 npx openclaw 代替`))
165
+ tool._useNpx = true
166
+ justInstalled.add(tool.id)
167
+ }
160
168
  }
161
169
  console.log()
162
170
  }