Commit 881a7bd
fix(cli): the stack-value guard sat at one door, and RELEASING still said 7
Both from the same independent review of the previous session's commits.
**`meta agent-docs` still silently dropped an unknown `--server` value.**
`assertKnownStackValues` was added to `initCommand`'s arg parse only, and
`agent-docs` calls `init()` directly. Side by side:
meta init --docs-only --server klingon → exit 2, names the value
meta agent-docs --server klingon → exit 0, "Scaffolded … (11 files)",
manifest records "servers": []
That is the worse of the two doors to miss: `index.ts` labels `agent-docs` the
"canonical redirect target for all language ports", so the four non-TS ports
were the ones using the unguarded one. And the failure does not degrade — a
non-empty override array suppresses BOTH the prior manifest's stack and
detection, so a dropped value inverts three statements in the artifact whose
whole job is to orient an agent correctly.
The guard now lives in `init()`, the shared function every door goes through,
refusing before anything is written. `initCommand` keeps its own call so a bad
flag stays a usage error (exit 2) rather than the exit 1 an init failure gets.
Gated at both doors plus the programmatic one, proved by removing the shared
guard.
**`docs/RELEASING.md` still hardcoded Maven major 7 in three places**, one
release before the cut that makes it 8. `663f67d87` consolidated the derivation
into `scripts/maven-coordinate.mjs` and named the un-executed door as "the
hardest of the four to catch: nothing executes it" — then left the document
that instruction points at. It now states the offset as permanent, names
`8.0.0` for the 1.0 cut explicitly, and says not to type a literal `7.`
anywhere, because at the cut that asks Central for a version BELOW the last
release.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTcEKXTQMYt84fAjuw5A2M1 parent e4dbede commit 881a7bd
3 files changed
Lines changed: 62 additions & 8 deletions
File tree
- docs
- server/typescript/packages/cli
- src/commands
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
164 | | - | |
| 167 | + | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| |||
662 | 666 | | |
663 | 667 | | |
664 | 668 | | |
665 | | - | |
666 | | - | |
| 669 | + | |
| 670 | + | |
667 | 671 | | |
668 | 672 | | |
669 | 673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
606 | 616 | | |
607 | 617 | | |
608 | 618 | | |
| |||
1138 | 1148 | | |
1139 | 1149 | | |
1140 | 1150 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
| 1151 | + | |
| 1152 | + | |
1145 | 1153 | | |
1146 | 1154 | | |
1147 | 1155 | | |
| |||
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
0 commit comments