cmx-core 0.3.0

Embeddable core for installing agent skills across platforms — cmx-aware lockfile tracking, plan/apply installs, version guards
Documentation
1
2
3
4
5
6
7
8
9
10
11
use anyhow::Result;
use std::path::Path;

/// Abstraction over git operations used by cmx.
///
/// The real implementation delegates to `git` via `std::process::Command`.
/// Tests inject a fake that records calls without running git.
pub trait GitClient {
    fn clone_repo(&self, url: &str, dest: &Path) -> Result<()>;
    fn pull(&self, repo_path: &Path) -> Result<()>;
}