pub enum AppCommand {
Show 29 variants
Quit,
Send {
text: String,
},
Cancel {
task: Option<u64>,
},
Steer {
text: String,
},
AnswerGate {
text: String,
},
NewSession,
Compact,
OpenSessionPicker,
OpenSpacePicker,
OpenModelPicker,
OpenLogin,
OpenSwarm,
OpenSettings,
SetTheme {
mode: String,
},
OpenCopyMenu,
OpenSkills,
OpenFiles {
tab: FilesTab,
},
OpenApps,
RunResearch {
topic: String,
gated: bool,
},
Export,
ToggleWeb,
Incognito {
on: bool,
},
Watch {
topic: Option<String>,
},
OpenUsage,
ArmSkill {
name: String,
rest: Option<String>,
},
SwitchSpace {
name: String,
},
ResolveSession {
id: String,
},
SetModel {
id: String,
},
SetSetting {
key: String,
value: String,
},
}Expand description
One user intent, in the seam’s own words. Parsed from the /-command
line (App::parse_command) or synthesized by the TUI keys, the CLI, or
the Phase 4 host; App::execute is the only mutation path.
Serde: POST /v1/command ships this enum directly — every payload is
plain (strings, bools, optionals, FilesTab), so the
seam itself is the wire type; no mirror needed.
Variants§
Quit
/quit — exit the app.
Send
Send a chat message (the composer’s Enter, host messages).
Cancel
Cancel an in-flight chat response; None = the active one (Esc).
Steer
/steer — queue an extra instruction for the running research job.
AnswerGate
Reply to the parked survey/plan gate.
NewSession
/new — fresh session.
Compact
/compact — compact the session transcript.
OpenSessionPicker
/session — the session picker.
OpenSpacePicker
/space — the space picker.
OpenModelPicker
/model — the model picker.
OpenLogin
/login — the provider login popup.
OpenSwarm
/swarm — the swarm roster popup.
OpenSettings
/config — the nerd-config popup.
SetTheme
/theme [opaque|transparent] — configure the TUI background.
OpenCopyMenu
/copy — the copy menu.
OpenSkills
/skills — the skills popup.
OpenFiles
/files, /image, /script — the file popup on a tab.
OpenApps
/apps — the apps popup.
RunResearch
/research [topic] — gated: false skips the plan-approval gate
(/research!); an empty topic distills one from recent chat.
Export
/export — print the latest report + sources.
ToggleWeb
/web — toggle web-answer mode.
Incognito
/incognito — toggle (on is absolute for the host).
Watch
/watch [topic] — open the watch picker, or create a watch.
OpenUsage
/usage — the analytics popup.
ArmSkill
/<skill-name> [text] — arm a skill; text sends it immediately.
SwitchSpace
Switch the active space (CLI --space, host).
ResolveSession
Resolve and open a session by id/slug/prefix (CLI open, host).
SetModel
Set the active model (CLI --model, host).
SetSetting
Set one named setting by key (host).
Trait Implementations§
Source§impl Clone for AppCommand
impl Clone for AppCommand
Source§fn clone(&self) -> AppCommand
fn clone(&self) -> AppCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AppCommand
impl Debug for AppCommand
Source§impl<'de> Deserialize<'de> for AppCommand
impl<'de> Deserialize<'de> for AppCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AppCommand
Source§impl PartialEq for AppCommand
impl PartialEq for AppCommand
Source§impl Serialize for AppCommand
impl Serialize for AppCommand
impl StructuralPartialEq for AppCommand
Auto Trait Implementations§
impl Freeze for AppCommand
impl RefUnwindSafe for AppCommand
impl Send for AppCommand
impl Sync for AppCommand
impl Unpin for AppCommand
impl UnsafeUnpin for AppCommand
impl UnwindSafe for AppCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.