pub enum Request {
Show 13 variants
Open {
path: PathBuf,
opened: Sender<String>,
},
CommentsTaken,
Agent(AgentEvent),
Test(TestRun),
Pane(String),
Reply {
id: u32,
author: String,
text: String,
found: Sender<bool>,
},
Suggest {
file: String,
line: usize,
kind: String,
quote: String,
text: String,
author: String,
made: Sender<u32>,
},
Threads(Sender<String>),
TakeThreads(Sender<String>),
Waiting(Sender<String>),
Alone {
key: u64,
reply: Sender<bool>,
},
Plan {
path: PathBuf,
reply: Sender<Decision>,
},
Team {
asked: Asked,
reply: Sender<String>,
},
}Expand description
Requests that need the app itself, drained on its next tick.
Variants§
Open
An agent showing the person a file. opened has what came of it, for the agent to
read: it said “ok” before the app had even tried, and an agent took that as “on screen”.
CommentsTaken
The socket thread already emptied the shared list.
Agent(AgentEvent)
Test(TestRun)
Pane(String)
Input for a Cellix running as a pane, as the mod’s JSON.
Reply
An agent answering a comment.
Fields
Suggest
An agent suggesting a comment the reviewer didn’t make. Answers with its number.
Threads(Sender<String>)
Wants the comments on the project, as JSON.
TakeThreads(Sender<String>)
Wants the comments no agent has seen, as JSON, and marks them seen.
Waiting(Sender<String>)
Wants everything no agent has had yet, as JSON comments, and takes nothing: the review’s comments on code and the comments on documents, which are threads.
Alone
Asks whether the prompt with this key (prompt_key) is one Cellix typed in to go on
its own, as Ask Agent on one comment’s card does, so the prompt hook hands it nothing
else. Answered once: a second prompt with the same words is an ordinary one.
Plan
A plan is waiting. The connection stays open until reply is answered or dropped.
Team
An agent starting, messaging or waiting for another. The connection stays open until
reply has the answer’s line, which may be a while for a wait.