Expand description
The composer’s verbs, executed on the server (#254).
A line the table serves for Front::Web never reaches the model. chat() parses it first and
this module answers it: one row in the transcript, no turn, no tokens, and nothing written to
the session store except the one column a verb names (/archive’s flag).
Three rules hold it together. One implementation. A verb that changes something calls the
same apply_* function its API route calls — /model and the picker are one function, so a
pick in one shows in the other. The table decides what exists. Nothing here names a command
that COMMANDS does not mark Web; a word this module has no arm for is a bug the table’s own
test cannot see, so the other arm says so instead of guessing. A refusal is a row too.
/resume in the browser says where it lives rather than becoming a question about resuming.
Structs§
- Answer
- What a served command answers with: the row, whether it is a refusal, and whether the page
should forget the session it is holding (only
/newdoes).
Functions§
- bang_
refusal - The composer’s
!lines, refused (#283). - serve
- Run one command and answer it.
argis the text after the word, trimmed, exactly asparsegives it;sessionis the session the composer is holding, if any.