Expand description
Engine-level command results — TUI-agnostic outcomes of slash commands.
The engine processes a command and returns a CommandResult.
Renderers (TUI, headless) decide how to display the result.
Structs§
- Session
Summary - Summary of a session for listing.
Enums§
- Command
Result - Result of processing a slash command in the engine.
- Modal
Request - TUI-specific modals the engine can request.
Functions§
- evaluate_
engine_ command - Pure command → result mapping (no runtime mutation). Split out of
handle_engine_commandso dispatch can be unit-tested without a Runtime. - handle_
engine_ command - Process commands that are pure engine logic — no TUI state needed. Returns None if the command needs TUI-level handling.
- parse_
command - Parse a slash command into (command, arg).
- parse_
thinking_ arg - Parse a
/thinkingargument into a canonical (level, budget) pair. - persist_
to_ config - Persist a config key and return an honest, user-visible status suffix — never claims “(saved to config)” unless the write actually succeeded.
- thinking_
config_ value - Config-file value for a thinking change: the canonical level name when it
is one config.rs can parse back, otherwise the raw budget number (which
parse_thinking_budgetalso accepts; 0 is the adaptive sentinel).