Repository navigation
Phase P6: last flag, tree tests, help and docs - #2346
Merged
neuromechanist merged 7 commits intoNov 24, 2026
Merged
neuromechanist merged 7 commits into
neuromechanist merged 7 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2346Version: 🤖 Updated on each push. |
neuromechanist
merged commit Nov 24, 2026
8056f21
into
feature/issue-2307-epic-admin-tree
51 of 53 checks passed
This was referenced Nov 24, 2026
This branch was previously deployed
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
Phase P6 of the admin command tree restructure (ADR 0135), the last one: the last write flag, a test of the tree's shape, the help without its fold, the release note generated from the moved-command table, and the remaining in-repo pointers.
Closes #2314
Part of epic #2307
Changes
admin neurobagel regenerate:--applywrites;--executeis a hidden alias (the request field staysexecute).test/admin-write-flag.unit.test.ts, walking the real Commander tree: no visible option underadminis--execute,--writeor--fix; every visible top-level entry is a group exceptnotifyanddocs; the top level is the fourteen groups of decision 1; no path is deeper than three belowadmin; and a group past the cap of twelve visible children is one listed with its reason.adminitself (14, the fourteen groups decision 1 names) andmail(14, support tickets, left unchanged by the restructure).usersanddatasetsit exactly at 12,compute jobsat 11. Both over-cap groups are listed in the test with their reason; a new one fails until it is decided.help-groups.ts: theadminentry is removed, so plainnemar admin --helplists all fourteen groups with their descriptions (before: five led and nine folded onto "More commands"). The stale "43" comments inhelp.tsandhelp-groups.tsare rewritten.test/help-tiers.unit.test.tspins the unfolded admin help.### Admin command tree (epic #2307, ADR 0135)section under## Unreleased, with the release note (announce a week ahead withnemar admin notice set, update the CLI before following new mail text, the stubs stay until the second minor version after this release and then go in one change with its own note, the outside repositories ship together, the nemarDatasets fallback goes after release), every moved and retired path, the--applyunification with its hidden aliases, and the three defaults.MOVED_COMMANDSbyscripts/moved-commands-changelog.ts(--writerewrites it between two marker comments);test/moved-commands-changelog.unit.test.tsfails when the list and the table disagree.rework,import,repullandfleetand states the--applyrule; current.contextnotes and ascripts/seed-dev-db.sqlcomment name the new paths. Historical plans and ADRs are left as written.nemar admin --help, before and afterBefore:
After: all fourteen, each with its description (
compute,dataset|repo,docs,fleet,import,mail,neurobagel,notice,notify,oidc,pr-reviews,repull,rework,users) and no "More commands" line.Outside this repository
One pull request per repository, none merged; each merges with this epic's release:
dataset|repogroup) and every hand-written pagenemar admin dataset doctor fix missing-manifest --applydocs/import-failure-procedure.md(dataset withdraw,rework recover,import openneuro); the onboard workflow's fallback stays until after the releasecliApproveCommandkeepsadmin repo publish approve, which works before and after)nemar admin fleet e2e-testTest plan
bun run lint,bun run typecheck,biome checkon every new and changed test filetest/admin-write-flag.unit.test.ts(6 pass),test/moved-commands-changelog.unit.test.ts(3 pass),test/help-tiers.unit.test.ts(9 pass),test/admin-neurobagel-cli.test.ts(27 pass), withchangelog-format,moved-commands.unit,admin-restructure,completion-candidates.unit,apply-flag.unit,adr-index: 780 pass, 0 failtest/cli.test.tsandapprove-publication-probehelp tests run locally (30 pass, 7 skip needing keys)--applyaliases visible (drop.hideHelp()inapply-flag.ts) fails the write-flag test and names all eight commandsbun testnot run (runs at epic to dev)