ruchy-notebook 1.95.1

Interactive notebook runtime for Ruchy programming language
Documentation
// Standalone TDD test to verify server works without circular dependencies
use ruchy_notebook::server::start_server;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("๐Ÿงช TDD: Testing standalone notebook server");
    
    // Start server on port 9999 to avoid conflicts
    tokio::spawn(async {
        if let Err(e) = start_server(9999).await {
            println!("โŒ Server failed: {}", e);
        }
    });
    
    // Give server time to start
    tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
    
    // Test API endpoint
    let client = reqwest::Client::new();
    let response = client
        .post("http://127.0.0.1:9999/api/execute")
        .json(&serde_json::json!({"code": "2 + 2"}))
        .send()
        .await?;
    
    println!("๐Ÿ” Response status: {}", response.status());
    
    if response.status().is_success() {
        let body: serde_json::Value = response.json().await?;
        println!("โœ… TDD SUCCESS: {}", body);
    } else {
        println!("โŒ TDD FAILED: {}", response.status());
    }
    
    Ok(())
}