Commit 28eb299
committed
fix(spec): keep the hook-body capability table out of the strictness block's way
check:docs failed on the previous commit (inside the "TypeScript Type Check"
job — tsc itself was clean). The regenerated reference page had REPLACED the
whole capability-token table in content/docs/references/data/hook-body.mdx with
one line: "Keys `ExpressionBodySchema` declares (drift-guarded by ...)".
build-docs.ts takes the FIRST JSDoc in a module as that page's blurb. Putting
the strictness constants — which carry `/** … */` per the approval.zod.ts house
style — above `HookBodyCapability` handed its documentation slot to a private
constant, silently deleting the `api.read` / `api.write` / `api.transaction` /
`crypto.*` / `log` reference table authors actually read.
Moved the block below `HookBodyCapability` and left a placement note so the next
person adding a documented constant to this file does not rediscover it. Regenerating
now leaves content/docs/references untouched; check:docs passes.
The other two files were never at risk — their first JSDoc sits above the imports,
so the inserted block could not take the slot. That is also why only this one page
moved.
Verified: check:docs green, full spec suite 7136 green.
Refs #4001
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147tNF4Snk7Ry1KGt4a5PY41 parent af6afda commit 28eb299
1 file changed
Lines changed: 35 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
6 | 35 | | |
7 | 36 | | |
8 | 37 | | |
| |||
21 | 50 | | |
22 | 51 | | |
23 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
24 | 59 | | |
25 | 60 | | |
26 | 61 | | |
| |||
65 | 100 | | |
66 | 101 | | |
67 | 102 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
| |||
0 commit comments