pub fn parse_opencode_output(
stdout: &str,
) -> Result<(String, f64, u64), AppError>Expand description
Parse the NDJSON output from opencode run --format json.
The output has 3 event types:
step_start: ignoredtext:.part.textcontains the LLM response textstep_finish:.part.tokensand.part.costfor accounting
Returns (response_text, cost, tokens).