Expand description
The files a Kanban task carries, over HTTP (docs/specs/SPEC_KANBAN_TASK_MEDIA_2026_10_25.md §3, §5):
POST /agentmux/work/media?name= — one file, streamed to the store and hashed; answers its hash and kind
and what update and submit do with the media they carry: attach each file to the task, set the
UI-change flag, and, on submit of a UI task that waits for the operator, ask for media.
Structs§
- Media
Call 🔒 - What a task call carries about media.
- Media
Ref 🔒 - A file already uploaded, as a task call names it.
- Upload
Query 🔒
Constants§
- MAX_
CAPTION 🔒 - The longest caption and file name kept.
- MAX_
NAME 🔒
Functions§
- apply 🔒
- Attach the files of a call to a task and set its flag. Every file is checked before anything changes, so a bad one fails the call whole. Returns what was attached.
- attached_
json 🔒 - How the answer lists what was attached.
- bad 🔒
- error 🔒
- file_
name 🔒 - A name for the drawer: the last path segment, no longer than
MAX_NAME. - find_
stored 🔒 - The stored file for a content hash, and what it is, if it is there.
- handle_
work_ 🔒media_ upload POST /agentmux/work/media?name=: the body is one file. → 200{sha256, name, kind, mime, size}· 400 empty · 413 over the size of its kind · 415 not an image or recording.- pr_
reminder 🔒 - A reminder for
updateon a UI task with no media yet, when it links a PR (mid-work, so not a refusal). - refusal_
text 🔒 - submit_
refusal 🔒 - What
submitasks of a UI task that waits for the operator (§5): media from this attempt, or a reason there is none.Nonelets it through. - upload_
into 🔒