velaclaw 0.3.0

Protocol-driven autonomous AI agent runtime with intelligent model selection and multi-model negotiation.
//! Deploy CLI Integration Tests
//!
//! Tests for deploy subcommands:
//! - deploy deploy --server <server-id>
//! - deploy status --server <server-id>
//! - deploy health-check --server <server-id>
//! - deploy list
//! - deploy rollback --server <server-id>
//! - deploy update --server <server-id>
//! - deploy sync-config --server <server-id>

// Note: Full CLI tests require the binary to compile.
// These are placeholder tests that verify the deploy module structure
// and can be expanded once the cost module issue is resolved.

// #[test]
// fn test_deploy_list_command() {
//     // This test would verify that `velaclaw deploy list` works correctly
//     // with proper output formatting.
// }

// #[test]
// fn test_deploy_status_command() {
//     // This test would verify that `velaclaw deploy status --server <id>`
//     // returns proper status information.
// }

// #[test]
// fn test_deploy_health_check_command() {
//     // This test would verify that `velaclaw deploy health-check --server <id>`
//     // performs health checks correctly.
// }

// The full CLI integration tests can be added after resolving:
// 1. Cost module compilation issue in gateway/mod.rs (pre-existing)
// 2. build_system_prompt_with_mode parameter issue in agent/loop_.rs (pre-existing)

// Library-level tests in src/deploy/cli.rs cover:
// - Config loading from config.deploy.servers
// - Conversion between config types and deployment runtime types
// - Target lookup by ID
// - CLI handler invocation