aodw-skill 0.7.25-beta.1 → 0.7.25

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/README.md CHANGED
@@ -122,6 +122,7 @@ npx aodw-skill enable-guard-hook
122
122
  默认行为(更自动):
123
123
  - `npx aodw-skill init` 时会自动尝试安装 guard hook(若无自定义 hook 冲突)
124
124
  - 提交时自动执行 `guard --auto-fix --stage-audit`
125
+ - 若 `latest` 版本尚未包含 `guard` 命令,hook 会自动回退尝试 `aodw-skill@beta`
125
126
 
126
127
  在当前项目安装 `pre-commit` guard,自动处理:
127
128
  - 改了代码目录(如 `cli/`、`templates/`、`src/` 等)
@@ -16,7 +16,11 @@ if [ -x "./node_modules/.bin/aodw-skill" ]; then
16
16
  exit $?
17
17
  fi
18
18
 
19
- npx --yes aodw-skill guard --auto-fix --stage-audit
19
+ # Fallback strategy:
20
+ # 1) Try latest installed/resolved aodw-skill
21
+ # 2) If command not found in that version, fallback to beta channel
22
+ npx --yes aodw-skill guard --auto-fix --stage-audit && exit 0
23
+ npx --yes aodw-skill@beta guard --auto-fix --stage-audit
20
24
  exit $?
21
25
  `;
22
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aodw-skill",
3
- "version": "0.7.25-beta.1",
3
+ "version": "0.7.25",
4
4
  "description": "Next-channel CLI tool to scaffold AODW in your project",
5
5
  "main": "bin/aodw.js",
6
6
  "files": [