Commit f1d9dc3
fix(cli): allow single-char function names in docs reference WRITE_GLOBS (wheels-dev#2469)
The View Helpers agent run (PR wheels-dev#2465) hit a tool-layer constraint when
trying to author the reference example for `h()`: the WRITE_GLOBS
regex in tools/docs-validation/lib/tools.mjs required filenames
matching `[a-z][a-z0-9]+\\.txt` (2+ chars), so `h.txt` got rejected.
The agent stopped cleanly with status=needs_human, diagnosed the
exact regex line that needed fixing, and drafted the reference body.
This change:
1. Tightens `+` to `*` in the WRITE_GLOBS regex so single-char
function names work (`h`, `e`, `q`, etc.)
2. Writes the agent's drafted content to
vendor/wheels/public/docs/reference/controller/h.txt
3. Flips the state.json entry for `h` from needs_human to done with
notes describing the manual resolution
Closes the last gap from the v4 API docs validation rollout. With
this in, all 8 sections × 378 functions are status=done.
https://claude.ai/code/session_014puccJJixwdjRgMx7mPLmz
Co-authored-by: Claude <noreply@anthropic.com>1 parent c583010 commit f1d9dc3
3 files changed
Lines changed: 24 additions & 7 deletions
File tree
- tools/docs-validation
- lib
- vendor/wheels/public/docs/reference/controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5734 | 5734 | | |
5735 | 5735 | | |
5736 | 5736 | | |
5737 | | - | |
5738 | | - | |
5739 | | - | |
5740 | | - | |
5741 | | - | |
5742 | | - | |
| 5737 | + | |
| 5738 | + | |
| 5739 | + | |
| 5740 | + | |
| 5741 | + | |
| 5742 | + | |
| 5743 | + | |
| 5744 | + | |
| 5745 | + | |
5743 | 5746 | | |
5744 | 5747 | | |
5745 | 5748 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments