[S8/YAO-155] 附录 C 补齐 27 个 Hook 事件 trigger/payload#81
Merged
Conversation
- 新增 scripts/data/hooks-trigger-map.json 手工库,覆盖全部 27 个 HOOK_EVENTS 的触发时机、payload 字段、schema_source、dispatch_source、call_sites, source_commit 锁定 290fdc9481a70612bc5823aa4ed225c52c52aad3。 - 改造 scripts/gen-hooks-table.ts:合并手工库渲染 4 列表格 (事件名/触发时机/Payload 字段/源码位置),并新增漂移检测——当 source_commit 不一致或 HOOK_EVENTS 与手工库出现增删时打印 warning, 让 CI gen:appendix drift 闸把住后续源码升级。 - 重生成 docs/appendix/C.md 与 manifest,TODO 占位全部清零 (已补齐 trigger/payload:27/27)。 Co-authored-by: multica-agent <github@multica.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/data/hooks-trigger-map.json手工库,覆盖全部 27 个HOOK_EVENTS的触发时机、payload 字段、schema_source、dispatch_source、call_sites,source_commit锁定290fdc9481a70612bc5823aa4ed225c52c52aad3。scripts/gen-hooks-table.ts:合并手工库渲染 4 列表格(事件名 / 触发时机 / Payload 字段 / 源码位置),并新增漂移检测——当source_commit不一致或 HOOK_EVENTS 与手工库出现增删时打印 warning,让 CIgen:appendixdrift 闸把住后续源码升级。docs/appendix/C.md与C.manifest.json,TODO 占位全部清零(已补齐 trigger/payload:27/27)。派发点真实性证据(
rg -n来自 source_commit 290fdc9)生成脚本输出
Local checks (
bun run check:docs)全部通过:
check:source-commits、check:no-fuzzy、check:no-revision-codenames、check:no-frontmatter、check:no-spec-jargon、check:prose-diff、check:headings、check:code-ratio、check:section-titles、check:orphans。Test plan
bun scripts/gen-hooks-table.ts无 drift warningbun run check:docs通过v2-style-guard通过(gen:appendix drift 闸)🤖 Generated with Claude Code