Skip to main content

ralph_workflow/json_parser/
opencode.rs

1//! `OpenCode` event parser implementation
2//!
3//! This module handles parsing and displaying `OpenCode` NDJSON event streams.
4
5pub mod io;
6
7use crate::common::truncate_text;
8use crate::config::Verbosity;
9use crate::logger::{Colors, CHECK, CROSS};
10use std::io::{BufRead, Write};
11use std::path::Path;
12
13use super::delta_display::{DeltaRenderer, TextDeltaRenderer};
14use super::health::HealthMonitor;
15#[cfg(feature = "test-utils")]
16use super::health::StreamingQualityMetrics;
17use super::terminal::TerminalMode;
18use super::types::{format_tool_input, format_unknown_json_event, ContentType};
19
20include!("opencode/event_types.rs");
21include!("opencode/parser_core.rs");
22include!("opencode/parser_stream.rs");
23include!("opencode/formatting.rs");
24include!("opencode/tests.rs");