app
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.
issue --file: route video extensions through the presigned direct-to-bucket flow
The wiki now supports video attachments on issues (adom/wiki#110) via a direct-to-bucket presigned flow the CLI should adopt for --file when the extension is a video (mp4, webm, mov, m4v, mkv):
- POST /api/pages///attachments/videos/presign with { filename, bytes } (bytes = exact file size; cap 256MB, refused 413 over). Returns { token, upload_url, content_type, expires_s }.
- PUT the raw file to upload_url with Content-Type: . The signature binds the exact content-length and type, so send precisely what was declared. 15 minute expiry.
- POST .../attachments/videos/confirm with { token, filename }. Returns the same shape as the multipart upload (url, filename, content_type video/*), embed as name like other files.
Multipart uploads of video extensions refuse with code VIDEO_USE_PRESIGN carrying max_bytes in data, so you can key the routing on the error too. Videos are not content-addressed (the token is random); do not expect dedup.