Complete migration to Rust implementation

- Migrate optimization from optimize.sh to src/optimization/
- Remove all Python files (analytics/, server/, hooks/, pyproject.toml)
- Add optimization module: optimizer.rs, parser.rs, mod.rs
- Implement all missing MCP tool handlers (35 total tools)
- Add handle_patch_set_file handler
- Clean up orphan files: .venv/, __pycache__, test files
- Move test_rcp_server.sh to tests/integration_test.sh
- Add Rust integration tests in tests/integration_tests.rs
- Fix all compiler warnings with #[allow(dead_code)]
- Update test fixtures and structure
This commit is contained in:
Devid HW
2026-04-18 15:57:28 +07:00
parent a3b046c68f
commit 331b7fbb73
29 changed files with 1405 additions and 5401 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use chrono::{DateTime, Datelike, NaiveDateTime};
use chrono::{DateTime, NaiveDateTime};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
@@ -392,7 +392,7 @@ impl DealAnalyzer {
let mut peak = 0;
let mut peak_time = String::new();
for (dt, delta, deal) in events {
for (_dt, delta, deal) in events {
count = (count + delta).max(0);
if count > peak {
peak = count;
+3
View File
@@ -277,8 +277,11 @@ impl ReportExtractor {
pub struct ExtractionResult {
pub metrics: Metrics,
pub deals: Vec<Deal>,
#[allow(dead_code)]
pub metrics_path: PathBuf,
#[allow(dead_code)]
pub deals_csv_path: PathBuf,
#[allow(dead_code)]
pub deals_json_path: PathBuf,
}