opencrabs 0.3.58

The autonomous, self-improving AI agent. Single Rust binary. Every channel. Install with: cargo install opencrabs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::brain::self_update::*;
use std::path::PathBuf;

#[test]
fn test_new() {
    let updater = SelfUpdater::new(
        PathBuf::from("/tmp/project"),
        PathBuf::from("/tmp/project/target/release/opencrabs"),
    );
    assert_eq!(updater.project_root(), std::path::Path::new("/tmp/project"));
    assert_eq!(
        updater.binary_path(),
        std::path::Path::new("/tmp/project/target/release/opencrabs")
    );
}