#!/usr/bin/env cargo +nightly -Zscript
#[cfg(feature = "codex-dreams")]
use std::sync::Arc;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("🧠 Testing Codex Dreams Implementation");
println!("======================================");
#[cfg(feature = "codex-dreams")]
{
use codex_memory::insights::{
processor::ProcessorConfig,
models::{InsightType, Insight},
storage::InsightStorage,
};
use codex_memory::memory::MemoryRepository;
println!("✅ Successfully imported codex-dreams modules");
let config = ProcessorConfig {
max_retries: 3,
circuit_breaker_threshold: 5,
circuit_breaker_recovery_timeout: 60,
min_confidence_threshold: 0.6,
max_insights_per_batch: 10,
};
println!("✅ ProcessorConfig created with confidence threshold: {}", config.min_confidence_threshold);
let insight_types = vec![
InsightType::Learning,
InsightType::Connection,
InsightType::Pattern,
InsightType::MentalModel,
];
println!("✅ InsightType variants available: {:?}", insight_types);
return Ok(());
}
#[cfg(not(feature = "codex-dreams"))]
{
println!("❌ codex-dreams feature not enabled");
return Err("Feature not enabled".into());
}
}