All checks were successful
Push & PR Check / check (push) Successful in 50s
批量分发实调反噬实锤:分支策略表/Agent 按钮清单/降级约定/启动协议 第 4 条曾写在 MANAGED 托管块内,v1.6.0/1.11.0 块升级原位覆盖时被抹。 全部恢复至块外「炼境自身约定」区,教训入决策记录(本地定制严禁写 进托管块)。顺带:块外与块内重复的通用约束去重(单一事实来源)、 lefthook 补齐 blueprint-gate/conventional/feature-confirmed 检查段 (verify_onboarding 复验 7/7)、收编 envoy/blueprint-gate 接入产物。 Rules-Applied: R13
19 lines
869 B
YAML
19 lines
869 B
YAML
# 炼境自身 lefthook 配置(对齐接入包模板的检查段键名,verify_onboarding 按键自省检测)
|
||
pre-commit:
|
||
parallel: true
|
||
commands:
|
||
typecheck:
|
||
glob: "src/**/*.{ts,tsx}"
|
||
run: pnpm typecheck
|
||
blueprint-gate:
|
||
run: node .claude/hooks/blueprint-gate.cjs || true
|
||
|
||
commit-msg:
|
||
commands:
|
||
conventional:
|
||
run: "head -1 .git/COMMIT_EDITMSG | grep -qE '^(feat|fix|docs|chore|refactor|ci|perf|style|test|build|revert)(\\(.+\\))?!?: .+' || exit 1"
|
||
feature-confirmed:
|
||
run: |
|
||
head -1 .git/COMMIT_EDITMSG | grep -qE '^feat' || exit 0
|
||
grep -q 'Feature-Confirmed: true' .git/COMMIT_EDITMSG || { printf '\n⚠️ feat: 提交须含 Feature-Confirmed: true trailer\n 在 commit message 末尾加一行:Feature-Confirmed: true\n (确认卡已与用户对齐,方可提交)\n\n' >&2; exit 1; }
|