Skip to main content

Module textdraft

Module textdraft 

Source
Expand description

A text drafted by an AI agent (sioul mcp, draft_text; docs/mcp.md, “Texts”): it waits in the Texts page, in its conversation, until you use it (its words go in the box, and sending stays your Send) or discard it. Never sent: a draft is no request (texts::Request), and nothing reads this file to send.

Kept on this device only, never shared: drafts.jsonl in the texts’ private folder (texts::private_folder), each line sealed as the texts’ own lines are (texts::Sealer), so that a draft is unreadable without the key, as the texts it answers are.

Structs§

TextDraft
One draft waiting.

Constants§

FILE
The file’s name in the texts’ private folder.

Functions§

add
add_in
A draft added, its words sealed; never over another (a new id).
all
all_in
Every draft of the file that opens, oldest first.
path
Where the drafts are kept.
remove
remove_in
A draft taken out (used, or discarded): the file written again without it, under its lock, private, beside then put in place. Lines that do not open stay as they were. Whether it was there.