pub struct InlineHandle { /* private fields */ }Implementations§
Source§impl InlineHandle
impl InlineHandle
pub fn new_for_tests(sender: UnboundedSender<InlineCommand>) -> InlineHandle
Sourcepub fn defer_event(&self, event: InlineEvent) -> Result<(), Error>
pub fn defer_event(&self, event: InlineEvent) -> Result<(), Error>
Defer an input event until the current transient overlay closes.
pub fn has_deferred_event(&self) -> bool
pub fn append_line(&self, kind: InlineMessageKind, segments: Vec<InlineSegment>)
pub fn append_pasted_message( &self, kind: InlineMessageKind, text: String, line_count: usize, )
pub fn inline(&self, kind: InlineMessageKind, segment: InlineSegment)
pub fn replace_last( &self, count: usize, kind: InlineMessageKind, lines: Vec<Vec<InlineSegment>>, )
pub fn replace_last_with_links( &self, count: usize, kind: InlineMessageKind, lines: Vec<Vec<InlineSegment>>, link_ranges: Vec<Vec<InlineLinkRange>>, )
pub fn suspend_event_loop(&self)
pub fn resume_event_loop(&self)
pub fn clear_input_queue(&self)
pub fn stop_event_stream(&self)
pub fn start_event_stream(&self)
pub fn set_prompt(&self, prefix: String, style: InlineTextStyle)
pub fn set_placeholder(&self, hint: Option<String>)
pub fn set_header_context(&self, context: InlineHeaderContext)
pub fn set_input_status(&self, left: Option<String>, right: Option<String>)
Sourcepub fn set_configured_input_status(
&self,
left: Option<String>,
right: Option<String>,
)
pub fn set_configured_input_status( &self, left: Option<String>, right: Option<String>, )
Set the configured status line, retained while progress occupies the transcript.
pub fn update_progress(&self, update: ProgressUpdate)
pub fn program_status(&self, update: ProgramStatusUpdate)
pub fn program_status_wait( &self, kind: InteractionKind, ) -> ProgramStatusWaitGuard
pub fn set_activity_state(&self, state: ActivityState)
pub fn set_terminal_title_items(&self, items: Option<Vec<String>>)
pub fn set_terminal_title_thread_label(&self, label: Option<String>)
pub fn set_terminal_title_git_branch(&self, branch: Option<String>)
pub fn set_theme(&self, theme: InlineTheme)
pub fn set_color_scheme_auto(&self, enabled: bool)
pub fn set_appearance(&self, appearance: AppearanceConfig)
pub fn set_fullscreen_interaction( &self, interaction: FullscreenInteractionSettings, )
pub fn set_vim_mode_enabled(&self, enabled: bool)
pub fn set_queued_inputs(&self, entries: Vec<String>)
pub fn set_subprocess_entries(&self, entries: Vec<String>)
pub fn set_subagent_preview(&self, text: Option<String>)
pub fn set_primary_agent(&self, name: Option<String>, color: Option<String>)
pub fn set_cursor_visible(&self, visible: bool)
pub fn set_input_enabled(&self, enabled: bool)
pub fn set_image_input_enabled(&self, enabled: bool)
pub fn set_input(&self, content: String)
pub fn restore_input_draft(&self, input: SubmittedInput)
pub fn apply_suggested_prompt(&self, content: String)
pub fn set_inline_prompt_suggestion( &self, suggestion: String, llm_generated: bool, )
pub fn clear_inline_prompt_suggestion(&self)
pub fn clear_input(&self)
pub fn force_redraw(&self)
pub fn shutdown(&self)
pub fn clear_screen(&self)
pub fn set_skip_confirmations(&self, skip: bool)
pub fn set_reasoning_stage(&self, stage: Option<String>)
Sourcepub fn begin_progress(&self, phase: ProgressPhase) -> ProgressGuard
pub fn begin_progress(&self, phase: ProgressPhase) -> ProgressGuard
Own a transient row through completion, errors and cancellation.
Sourcepub fn resume_progress(&self, phase: ProgressPhase) -> ProgressGuard
pub fn resume_progress(&self, phase: ProgressPhase) -> ProgressGuard
Resume ownership after the interaction loop transfers a submitted turn.
pub fn current_progress_operation(&self) -> Option<ProgressOperation>
pub fn set_progress_phase(&self, phase: ProgressPhase)
Sourcepub fn replace_progress_phase(
&self,
phase: ProgressPhase,
) -> Option<ProgressUpdate>
pub fn replace_progress_phase( &self, phase: ProgressPhase, ) -> Option<ProgressUpdate>
Update the current owner in place and retain its previous phase for scoped work.
pub fn record_tool_output(&self, lines: Vec<String>) -> u64
Sourcepub fn review_evidence(&self, lines: Vec<String>) -> bool
pub fn review_evidence(&self, lines: Vec<String>) -> bool
Display retained canonical evidence using the existing review geometry.
pub fn append_tool_output_line( &self, id: u64, kind: InlineMessageKind, segments: Vec<InlineSegment>, )
pub fn append_compact_activity(&self, activity: CompactActivityMetadata)
pub fn record_diff_review(&self, anchor: DiffReviewAnchor)
pub fn replace_compact_activity(&self, activity: CompactActivityMetadata)
pub fn collapse_pty_block(&self, activity: CompactActivityMetadata)
pub fn set_message_labels(&self, agent: Option<String>, user: Option<String>)
Sourcepub fn agent_label_frame_width(&self) -> usize
pub fn agent_label_frame_width(&self) -> usize
Return the display width of the current agent label and its separator.
pub fn set_key_bindings(&self, bindings: HashMap<String, Vec<String>>)
pub fn set_local_agents(&self, entries: Vec<LocalAgentEntry>)
pub fn set_archived_history(&self, entries: Vec<ArchivedPromptEntry>)
pub fn show_transient(&self, request: TransientRequest)
pub fn show_modal( &self, title: String, lines: Vec<String>, secure_prompt: Option<SecurePromptConfig>, )
pub fn show_list_modal( &self, title: String, lines: Vec<String>, items: Vec<InlineListItem>, selected: Option<InlineListSelection>, search: Option<InlineListSearchConfig>, )
Sourcepub fn show_list_modal_with_status(
&self,
title: String,
lines: Vec<String>,
items: Vec<InlineListItem>,
selected: Option<InlineListSelection>,
search: Option<InlineListSearchConfig>,
footer_hint: Option<String>,
status: Option<InlineStatus>,
)
pub fn show_list_modal_with_status( &self, title: String, lines: Vec<String>, items: Vec<InlineListItem>, selected: Option<InlineListSelection>, search: Option<InlineListSearchConfig>, footer_hint: Option<String>, status: Option<InlineStatus>, )
Show a list modal with an optional status strip (last action feedback).
pub fn configure_file_palette(&self, workspace: PathBuf, dir_lister: DirLister)
Sourcepub fn set_file_palette_search_index(&self, files: Vec<String>)
pub fn set_file_palette_search_index(&self, files: Vec<String>)
Push the full recursive file list discovered in the background so Search mode has a corpus to match against. Browse mode does not require it.
Sourcepub fn set_slash_commands(&self, commands: Vec<SlashCommandItem>)
pub fn set_slash_commands(&self, commands: Vec<SlashCommandItem>)
Replace slash palette commands after background template discovery.
pub fn configure_agent_palette(&self, agents: Vec<AgentPaletteItem>)
pub fn show_history_picker(&self)
pub fn show_task_panel(&self)
pub fn show_local_agents(&self)
pub fn hide_local_agents(&self)
pub fn hide_task_panel(&self)
pub fn update_task_panel(&self, lines: Vec<String>)
pub fn update_task_panel_with_metadata( &self, lines: Vec<String>, metadata: Option<TaskPanelMetadata>, )
Sourcepub fn update_task_panel_with_statuses(
&self,
lines: Vec<String>,
statuses: Vec<TaskItemStatus>,
current: Option<usize>,
metadata: Option<TaskPanelMetadata>,
)
pub fn update_task_panel_with_statuses( &self, lines: Vec<String>, statuses: Vec<TaskItemStatus>, current: Option<usize>, metadata: Option<TaskPanelMetadata>, )
Update the panel body with per-row statuses for text-styling.
statuses runs parallel to lines; current is the focused-row
index for accent emphasis. Length mismatches fall back to the uniform
base style so legacy callers keep working.
pub fn close_transient(&self)
pub fn close_modal(&self)
Trait Implementations§
Source§impl Clone for InlineHandle
impl Clone for InlineHandle
Source§fn clone(&self) -> InlineHandle
fn clone(&self) -> InlineHandle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for InlineHandle
impl RefUnwindSafe for InlineHandle
impl Send for InlineHandle
impl Sync for InlineHandle
impl Unpin for InlineHandle
impl UnsafeUnpin for InlineHandle
impl UnwindSafe for InlineHandle
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
impl<T> CacheValue for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more