selfware 0.6.0

Your personal AI workshop — software you own, software that lasts
Documentation
use selfware::evolve::actions::{Action, ActionEngine};

#[test]
fn test_action_engine_creates_branch_name() {
    let action = Action::Extend {
        component: "agent".to_string(),
    };
    let name = ActionEngine::branch_name(&action);
    assert!(name.starts_with("evolve/extend-agent-"));
}

#[test]
fn test_action_engine_sanitizes_graph_ids_for_git_refs() {
    let action = Action::Extend {
        component: "crate::evolve/server".to_string(),
    };
    let name = ActionEngine::branch_name(&action);
    assert!(name.starts_with("evolve/extend-crate-evolve-server-"));
    assert!(!name.contains(':'));
}