Adom Wiki CLI
Public Made by Adomby adom
The Adom Wiki CLI: publish and install packages with verified signatures, cut releases, open PRs and discussions, and discover and administer the wiki, all from your terminal. Replaces adompkg.
1.4.1: every pr verb 404s on the address form its own --help documents (owner/slug#n was documented, never implemented)
Symptom
Every pr verb that takes a PR address returns PR_NOT_FOUND for the address its own --help tells you to use. Affects all nine: view, comment, merge, close, diff, review, revert, ready, reopen. Reproduced on 1.4.1 (windows-x64) against a public, merged PR:
$ adom-wiki pr view adom/kicad-bridge#4
error [PR_NOT_FOUND]: Pull request not found
$ adom-wiki pr view https://wiki.adom.inc/adom/adom-desktop-playwright-bridge/prs/9
error [PR_NOT_FOUND]: Pull request not found
Cause
Commit 92eaa48 (1.4.1, "every argument documented") changed the help text on all nine verbs to:
PR address:
<owner>/<slug>#<n>or a pasted PR URL. Bare numbers are refused, like issues
but no resolver was added. The code path is unchanged from 1.0.x (src/commands/pr/mod.rs):
PrCommand::View { id } => emit_get(client, &format!("/api/prs/{}", enc(&id))).await,
enc() is urlencoding::encode, so adom/kicad-bridge#4 becomes GET /api/prs/adom%2Fkicad-bridge%234 and the server answers 404. The issue verbs have the real parser (discussion/mod.rs:297, rsplit_once('#'), then the page list, then match number to the global id); the PR verbs never got it.
Two consequences:
- The only input that works is the bare global id (
adom-wiki pr view 56returns playwright #9), which is exactly what the new help says is refused. It is not refused; the doc is wrong in both directions. - The global id is only visible in
pr listoutput (id, notnumber), and the help steers users away from it, so anyone following the docs is locked out of the whole PR write surface.
Fix
- Give the nine PR verbs the issue resolver: accept
owner/slug#nandhttps://wiki.adom.inc/<owner>/<slug>/prs/<n>, resolve throughGET /api/pages/{owner}/{slug}/prsmatchingnumber, then call/api/prs/{id}/.... - Keep accepting the bare global id (the server keys on it) instead of refusing it, and say so in the help.
pr commentandpr reviewshould gain--body-file, matchingissue comment; a multi-line body with backticks currently has to go throughadom-wiki api.
Workaround
adom-wiki api -X POST /api/prs/<global-id>/{comments|review|close|merge} --body '{...}' (review payload is {"action":"approve"|"request-changes","body":...}). In Git Bash on Windows set MSYS_NO_PATHCONV=1 first, or the leading /api is rewritten as a Windows path (https://wiki.adom.incC:/Program Files/Git/api/...). Used this way for five PR reviews on 2026-09-07.