agentswitch 0.6.0

一个通用的 Code Agent 工具配置切换器,支持将任意 OpenAI/Anthropic 协议模型接入到主流 Code Agent CLI 工具中
use agentswitch::agents::claude_code::ClaudeCodeAdapter;
use agentswitch::agents::AgentAdapter;

#[test]
fn test_adapter_name() {
    let adapter = ClaudeCodeAdapter::new();
    assert_eq!(adapter.name(), "claude-code");
}

#[test]
fn test_config_path() {
    let adapter = ClaudeCodeAdapter::new();
    let path = adapter.config_path().unwrap();
    assert!(path.ends_with(".claude/settings.json"));
}

#[test]
fn test_current_model_none() {
    let adapter = ClaudeCodeAdapter::new();
    let result = adapter.current_model();
    assert!(result.is_ok());
}