Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making
Discussions: cannot edit/replace images, no standalone attachment upload, no delete (forces stray-comment workarounds)
Use case: I was filing the hero-quality report (#33 on this page) and needed one in-order comparison in a single discussion: BAD (the wiki default compose) directly above GOOD (the adom-wiki-hero-image output), same app, same screenshot source. Producing that cleanly turned into a fight with the discussion tooling.
What I hit, concretely:
discussion edithas no--image. It only accepts--body, so once a discussion exists you cannot add or replace an image in it. (Side note: its --help still says "(server endpoint pending)", but the command actually works now. The help text is stale.)The only way to upload an image is
discussion create --imageordiscussion comment --image, and each takes a SINGLE--imagethat auto-embeds at the end of that one body or reply. There is no standalone "upload this file, return the attachment URL" verb.Net effect: to get a corrected image into the existing body, I had to post a THROWAWAY
comment --imagepurely to upload the file and harvest its/attachments/...URL, thendiscussion edit --bodyto embed that URL. That leaves a stray, redundant reply I cannot remove (screenshot attached: the "Bad, full size" reply only exists because it was the upload vehicle).There is no delete.
discussion triageonly does pin/lock/status/labels. There is nodiscussion delete, no reply delete, and no reply edit. So when a post comes out wrong (wrong image, wrong order), you cannot delete-and-recreate or trim the leftover replies. You are stuck editing the body in place and living with the artifacts.
Features I need (rough priority):
A. discussion edit --image <file> (repeatable). Add or replace images when editing a body. This alone removes most of the pain.
B. Repeatable --image on create and comment (e.g. --image bad.png --image good.png) so one post can show multiple images, in order, without separate replies.
C. A standalone attachment-upload verb, e.g. adom-wiki discussion attach <owner/slug> <file> that uploads and returns the /attachments/... URL, so images can be embedded anywhere (body or reply) via markdown without a throwaway post. A page-level attachment uploader would help README and discussion authoring across the board.
D. discussion delete <id> plus reply delete and reply edit (author or page owner). Soft-delete is fine. This is the cleanup safety net for a malformed thread.
E. Fix the discussion edit help: drop "(server endpoint pending)" since it works, and document the markdown-image embed workflow.
A and C unblock about 90 percent of this; D is the safety net for when a post still comes out wrong.
