mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 09:10:22 +08:00
fix: #13 按 npm/yarn/pnpm 实际布局找插件根,无效 DSH_BASE 写明原因
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2a1d37c97a
commit
76d86fafb1
3 files changed
+210
-10
No files matched your search
+3
-3
@@ -22,7 +22,7 @@ function printStatus(state) {
|
||||
out.push(` ${key.padEnd(22)} ${fp}`);
|
||||
}
|
||||
} else {
|
||||
out.push(" 插件根 / root NOT FOUND (set DSH_BASE)");
|
||||
out.push(" 插件根 / root " + core.missingAiBaseMessage());
|
||||
}
|
||||
out.push(` shim 目录 ${state.shim_dir || "未定位 / not found"}`);
|
||||
out.push(` 备份 / backup ${state.has_backup ? "有 / yes" : "无 / no"}`);
|
||||
@@ -59,8 +59,8 @@ async function main() {
|
||||
|
||||
if (mode === "--apply") {
|
||||
if (!state.ai_base) {
|
||||
console.log("[ERROR] 未找到 @deepseek-ai 插件根");
|
||||
console.log(" fix: 设置 DSH_BASE=完整路径");
|
||||
console.log("[ERROR] " + core.missingAiBaseMessage());
|
||||
console.log(" fix: 把 DSH_BASE 指到含 dsh-agent-instructions/lib 的 @deepseek-ai 目录");
|
||||
process.exit(1);
|
||||
}
|
||||
const { made, errors } = await core.backupAll(state.ai_base);
|
||||
|
||||
Reference in new issue
Block a user