magi-code 0.63.4

Repository-aware CLI coding agent for terminal work
Documentation
use super::*;
use crate::{output::ContextUsageSource, providers::ProviderRequest, providers::Usage};
use std::{fs, path::Path};
use tempfile::TempDir;

fn append_test_event(
    session: &crate::sessions::Session,
    cwd: &Path,
    event_type: &str,
    payload: Value,
) {
    session
        .append(&SessionEvent::new(
            event_type,
            session.id().to_string(),
            cwd.to_path_buf(),
            payload,
        ))
        .unwrap();
}

fn replay_material(replay: &ConversationReplay) -> String {
    conversation_cache_material("p", "m", "sys", &replay.items)
}

mod cache;
mod replay;
mod tokens;