Skip to main content

Module work_media

Module work_media 

Source
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§

MediaCall 🔒
What a task call carries about media.
MediaRef 🔒
A file already uploaded, as a task call names it.
UploadQuery 🔒

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 update on a UI task with no media yet, when it links a PR (mid-work, so not a refusal).
refusal_text 🔒
submit_refusal 🔒
What submit asks of a UI task that waits for the operator (§5): media from this attempt, or a reason there is none. None lets it through.
upload_into 🔒