@hupan56/wlkj 3.4.7 → 3.4.8
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/bin/cli.js +12 -3
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -26,9 +26,18 @@ const PROTECTED_FILES = new Set([
|
|
|
26
26
|
"settings.json", // 本地权限/hook 配置
|
|
27
27
|
]);
|
|
28
28
|
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
|
|
29
|
+
// 引擎产物目录:强制覆盖(不走三路快照保护)
|
|
30
|
+
// 这些是引擎文件(类似 npm 包代码),用户不该改;三路快照误保护导致新版到不了用户
|
|
31
|
+
// 只保护用户数据:config.yaml / settings.json / .developer / workspace/ / data/
|
|
32
|
+
const FORCE_OVERWRITE_DIRS = new Set([
|
|
33
|
+
"commands", // /wl-*.md 命令定义
|
|
34
|
+
"skills", // SKILL.md 技能定义(AI读这个决定流程)
|
|
35
|
+
"scripts", // .py 引擎脚本
|
|
36
|
+
"rules", // 规则文件
|
|
37
|
+
"hooks", // hook 脚本
|
|
38
|
+
"contracts", // 模块契约
|
|
39
|
+
"templates", // 原型/PRD模板
|
|
40
|
+
]);
|
|
32
41
|
|
|
33
42
|
// 本地状态文件(升级时也绝不碰,但不算"受保护配置",不提示合并)
|
|
34
43
|
const LOCAL_STATE_FILES = new Set([
|