@shirayner/ace 0.1.7 → 0.1.8-SNAPSHOT.1

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.
Files changed (43) hide show
  1. package/README.md +55 -19
  2. package/bin/ace.js +1 -0
  3. package/package.json +1 -1
  4. package/plugin/.claude-plugin/plugin.json +1 -1
  5. package/plugin/skills/auto-goal/SKILL.md +131 -87
  6. package/plugin/skills/auto-goal/references/recovery.md +29 -0
  7. package/plugin/skills/auto-goal/references/state-template.md +97 -0
  8. package/src/commands/doctor.js +12 -5
  9. package/src/commands/init.js +9 -5
  10. package/src/commands/list.js +26 -0
  11. package/src/commands/spec.js +57 -0
  12. package/src/commands/uninstall.js +65 -31
  13. package/src/core/constants.js +23 -20
  14. package/src/core/installer.js +84 -4
  15. package/src/core/merger.js +15 -3
  16. package/src/core/team-installer.js +96 -0
  17. package/src/core/ui.js +0 -1
  18. package/templates/CLAUDE.md +28 -14
  19. package/templates/ace/rules/git.md +50 -0
  20. package/templates/ace/rules/gitflow.md +109 -0
  21. package/templates/{rules/ace → ace/rules}/thinking.md +5 -0
  22. package/templates/hooks/ace.bash-guard.sh +71 -0
  23. package/templates/hooks/ace.content-guard.sh +68 -0
  24. package/templates/hooks/ace.file-guard.sh +29 -0
  25. package/templates/hooks/ace.java-compile-check.sh +4 -2
  26. package/templates/hooks/ace.stop-verify.sh +28 -0
  27. package/templates/scripts/statusline-command.sh +2 -0
  28. package/templates/scripts/statusline.py +32 -0
  29. package/templates/settings.json +58 -2
  30. package/templates/hookify/hookify.ace.block-dangerous-ops.local.md +0 -16
  31. package/templates/hookify/hookify.ace.code-quality-gate.local.md +0 -45
  32. package/templates/hookify/hookify.ace.dangerous-commands.local.md +0 -20
  33. package/templates/hookify/hookify.ace.protect-secrets.local.md +0 -17
  34. package/templates/hookify/hookify.ace.require-verification.local.md +0 -13
  35. package/templates/hookify/hookify.ace.safe-git-commands.local.md +0 -38
  36. package/templates/hookify/hookify.ace.sensitive-data.local.md +0 -22
  37. /package/templates/{rules/ace → ace/rules}/clean-code.md +0 -0
  38. /package/templates/{rules/ace → ace/rules}/code-quality.md +0 -0
  39. /package/templates/{rules/ace → ace/rules}/context-hygiene.md +0 -0
  40. /package/templates/{rules/ace → ace/rules}/interactive-clarify.md +0 -0
  41. /package/templates/{rules/ace → ace/rules}/memory-policy.md +0 -0
  42. /package/templates/{rules/ace → ace/rules}/reporting.md +0 -0
  43. /package/templates/{rules/ace → ace/rules}/task-recovery.md +0 -0
@@ -1,38 +0,0 @@
1
- ---
2
- name: safe-git-commands
3
- enabled: true
4
- event: bash
5
- pattern: git\s+push\s+.*(-f|--force)|git\s+reset\s+--hard|git\s+clean\s+-fd|git\s+rebase\s+-i|git\s+commit\s+--amend
6
- action: warn
7
- ---
8
-
9
- **Git 危险操作警告!**
10
-
11
- 即将执行可能影响团队协作的 Git 命令,请确认:
12
-
13
- ## 受保护命令
14
-
15
- ### Force Push (`git push --force`)
16
- ⚠️ 这会覆盖远程分支历史,可能影响其他协作者
17
- - **建议**: 使用 `git push --force-with-lease`
18
- - **确认**: 已通知团队成员,无人基于此分支工作
19
-
20
- ### Reset Hard (`git reset --hard`)
21
- ⚠️ 这会丢弃所有未提交的更改
22
- - **建议**: 先用 `git stash` 保存更改
23
- - **确认**: 已备份重要修改
24
-
25
- ### Clean Force (`git clean -fd`)
26
- ⚠️ 这会删除未跟踪的文件和目录
27
- - **建议**: 先用 `git clean -n` 预览将被删除的文件
28
- - **确认**: 不会误删重要文件
29
-
30
- ### Interactive Rebase (`git rebase -i`)
31
- ⚠️ 修改已发布的提交会改变历史
32
- - **建议**: 仅对本地未推送的提交使用
33
- - **确认**: 了解变基后需要 force push
34
-
35
- ### Amend Commit (`git commit --amend`)
36
- ⚠️ 修改已推送的提交需要 force push
37
- - **建议**: 仅修改本地最新提交
38
- - **确认**: 尚未推送到远程
@@ -1,22 +0,0 @@
1
- ---
2
- name: warn-sensitive-data
3
- enabled: true
4
- event: file
5
- action: warn
6
- conditions:
7
- - field: new_text
8
- operator: regex_match
9
- pattern: (API_KEY|SECRET|TOKEN|PASSWORD|PWD)\s*[=:]\s*["'][^"']+["']
10
- ---
11
-
12
- **敏感信息 detected!**
13
-
14
- 文件内容可能包含硬编码凭证:
15
- - API_KEY / API_SECRET
16
- - TOKEN / ACCESS_TOKEN
17
- - PASSWORD / PWD
18
-
19
- 建议:
20
- 1. 使用环境变量替代硬编码
21
- 2. 确认文件已在 .gitignore 中
22
- 3. 考虑使用密钥管理服务
File without changes