hatchery-session-events 0.2.36

Session event layer: per-provider live PTY parsers (pluggable trait) that turn the terminal byte stream into typed events, plus an ACP adapter behind the same event type
Documentation
use super::common::*;
use super::{Parsed, ProviderParser};

pub struct GenericParser;

const PROFILE: Profile = Profile {
    answer_markers: &['●', '⏺', '•'],
    thought_markers: &['∴'],
    result_markers: &['⎿', '└'],
    tool_verbs: &["Ran", "Edited", "Read"],
    working_needles: &["esc to interrupt"],
    banner_needles: &["Welcome to "],
    prompts: &[],
};

impl ProviderParser for GenericParser {
    fn provider(&self) -> &'static str { "generic" }
    fn parse(&mut self, rows: &[String]) -> Parsed { scan(rows, &PROFILE) }
}