pub fn opencode_sqlite_corpus_envelope_text(
db_path: &Path,
limit_sessions: Option<usize>,
) -> Result<String, InterchangeError>Expand description
Combined envelope text spanning every session in db_path (or up to
limit_sessions) — for corpus-style scanning
(the OpenCode SQLite corpus-audit path, PARITY-4).
Safe to concatenate multiple sessions’ records into one text even though
Session::from_opencode_str itself only keeps the LAST session line
(single-session semantics) — the audit line-classifier
(audit_opencode_line) scores each line independently and doesn’t care
about session boundaries. Use Session::from_opencode_sqlite to load
one session as a real Session.