a2c-smcp 0.2.3

A2C-SMCP Rust SDK - Agent, Computer, and Server implementation
Documentation
//! Full stack integration tests for Agent + Computer + Server
//!
//! This test verifies that all components can work together

mod common;
use common::find_available_port;

#[tokio::test]
#[cfg_attr(not(feature = "full"), ignore)]
async fn test_full_stack_integration() {
    // This is a placeholder for a full-stack test
    // In a real implementation, you would:
    // 1. Start a server with smcp-server-hyper
    // 2. Connect a computer client
    // 3. Connect an agent client
    // 4. Perform tool calls through the agent
    // 5. Verify the computer receives and executes them

    println!("Full stack integration test placeholder");

    // Example of finding an available port for the test server
    let _port = find_available_port().await;

    // TODO: Implement actual full-stack test
    // This will require:
    // - Server setup with Socket.IO
    // - Computer client registration
    // - Agent client connection
    // - Tool call flow verification
}

#[tokio::test]
#[cfg_attr(not(all(feature = "agent", feature = "computer")), ignore)]
async fn test_agent_computer_communication() {
    // Test that agent can communicate with computer through server
    println!("Agent-Computer communication test placeholder");

    // TODO: Implement agent-computer communication test
}

#[tokio::test]
#[cfg_attr(not(feature = "server"), ignore)]
async fn test_server_broadcast_mechanism() {
    // Test server's broadcast/notify mechanism
    println!("Server broadcast mechanism test placeholder");

    // TODO: Implement server broadcast test
}