@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 +1 -1
- package/src/commands/setup.js +9 -1
package/package.json
CHANGED
package/src/commands/setup.js
CHANGED
|
@@ -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)
|
|
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
|
}
|