Skip to main content

Module user_message

Module user_message 

Source
Expand description

Public UserMessage and Attachment types plus the internal prepare_user_message pipeline that turns them into a motosan_agent_loop::Message for provider dispatch.

See spec §2 / §3 in docs/superpowers/specs/2026-05-20-capo-v0.6-design.md.

Structs§

UserMessage
A user message comprising a text body and zero-or-more attachments.

Enums§

Attachment
A user-message attachment. non_exhaustive because future variants (inline-bytes, skill, mention) must not break downstream pattern-match.
AttachmentError
Why prepare_user_message rejected an attachment.
AttachmentErrorKind
Discriminator for AttachmentError. Carried over the wire on UiEvent::AttachmentError so RPC clients can branch programmatically.