agent-source-repository 0.1.0

Agent Source Repository local context registry for coding agents
Documentation
#[derive(Debug, Clone)]
pub struct AsrError {
    pub code: &'static str,
    pub message: String,
    pub path: Option<String>,
}

impl AsrError {
    pub fn new(code: &'static str, message: impl Into<String>) -> Self {
        Self {
            code,
            message: message.into(),
            path: None,
        }
    }

    pub fn with_path(
        code: &'static str,
        message: impl Into<String>,
        path: impl Into<String>,
    ) -> Self {
        Self {
            code,
            message: message.into(),
            path: Some(path.into()),
        }
    }
}