pub struct KimiPtySessionIdentityExtractor { /* private fields */ }Expand description
Extracts the one explicit Kimi terminal identity label without treating arbitrary output, prompt echo, or an internal PTY UUID as provider truth.
Implementations§
Source§impl KimiPtySessionIdentityExtractor
impl KimiPtySessionIdentityExtractor
pub fn push(&mut self, chunk: &str) -> Option<ProviderSessionIdentity>
Sourcepub fn reset_stream(&mut self)
pub fn reset_stream(&mut self)
A transport gap invalidates partial ANSI and line state, but an already observed identity remains authoritative for the session lifetime.
Sourcepub fn observe_screen(
&mut self,
screen: &str,
) -> Option<ProviderSessionIdentity>
pub fn observe_screen( &mut self, screen: &str, ) -> Option<ProviderSessionIdentity>
Reads Kimi’s own rendered welcome or /status panel. The status panel
intentionally uses Session session_* without a colon and is accepted
only from a terminal screen snapshot, never from arbitrary raw output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KimiPtySessionIdentityExtractor
impl RefUnwindSafe for KimiPtySessionIdentityExtractor
impl Send for KimiPtySessionIdentityExtractor
impl Sync for KimiPtySessionIdentityExtractor
impl Unpin for KimiPtySessionIdentityExtractor
impl UnsafeUnpin for KimiPtySessionIdentityExtractor
impl UnwindSafe for KimiPtySessionIdentityExtractor
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
Mutably borrows from an owned value. Read more