dirge-agent 0.13.0

Minimalistic coding agent written in Rust, optimized for memory footprint and performance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::semantic::types::{ByteRange, ExtractedFile};

pub trait LanguageAdapter: Send + Sync {
    fn extensions(&self) -> &[&str];

    fn extract(&self, file_path: &std::path::Path, source: &str) -> Result<ExtractedFile, String>;

    fn find_callees_in_range(
        &self,
        source: &str,
        file_path: &std::path::Path,
        range: ByteRange,
    ) -> Result<Vec<String>, String>;
}