@hupan56/wlkj 3.4.8 → 3.4.9
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 +3 -8
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -27,16 +27,11 @@ const PROTECTED_FILES = new Set([
|
|
|
27
27
|
]);
|
|
28
28
|
|
|
29
29
|
// 引擎产物目录:强制覆盖(不走三路快照保护)
|
|
30
|
-
//
|
|
31
|
-
//
|
|
30
|
+
// commands+skills 是纯引擎定义文件,用户不该改,强制覆盖安全
|
|
31
|
+
// scripts/rules/hooks/contracts/templates 走三路快照(可能被另一个会话/用户改过)
|
|
32
32
|
const FORCE_OVERWRITE_DIRS = new Set([
|
|
33
|
-
"commands", // /wl-*.md
|
|
33
|
+
"commands", // /wl-*.md 命令定义(引擎产物,MCP铁律等)
|
|
34
34
|
"skills", // SKILL.md 技能定义(AI读这个决定流程)
|
|
35
|
-
"scripts", // .py 引擎脚本
|
|
36
|
-
"rules", // 规则文件
|
|
37
|
-
"hooks", // hook 脚本
|
|
38
|
-
"contracts", // 模块契约
|
|
39
|
-
"templates", // 原型/PRD模板
|
|
40
35
|
]);
|
|
41
36
|
|
|
42
37
|
// 本地状态文件(升级时也绝不碰,但不算"受保护配置",不提示合并)
|