fix(intelligence): 精确化 dead_code 标注并实现 LLM 上下文压缩
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- 将 intelligence/llm/memory/browser 模块的 dead_code 注释从模糊的 "reserved for future" 改为明确说明 Tauri invoke_handler 运行时注册机制 - 为 identity.rs 中 3 个真正未使用的方法添加 #[allow(dead_code)] - 实现 compactor use_llm: true 功能:新增 compact_with_llm 方法和 compactor_compact_llm Tauri 命令,支持 LLM 驱动的对话摘要生成 - 将 pipeline_commands.rs 中 40+ 处 println!/eprintln! 调试输出替换为 tracing::debug!/warn!/error! 结构化日志 - 移除 intelligence/mod.rs 中不必要的 #[allow(unused_imports)]
This commit is contained in:
@@ -11,7 +11,10 @@
|
||||
//!
|
||||
//! NOTE: Some methods are reserved for future self-improvement features.
|
||||
|
||||
#![allow(dead_code)] // Methods reserved for future self-improvement features
|
||||
// NOTE: #[tauri::command] functions are registered via invoke_handler! at runtime,
|
||||
// which the Rust compiler does not track as "use". Module-level allow required
|
||||
// for Tauri-commanded functions. Genuinely unused methods annotated individually.
|
||||
#![allow(dead_code)]
|
||||
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
@@ -445,6 +448,7 @@ impl ReflectionEngine {
|
||||
}
|
||||
|
||||
/// Get last reflection result
|
||||
#[allow(dead_code)] // Reserved: no Tauri command yet
|
||||
pub fn get_last_result(&self) -> Option<&ReflectionResult> {
|
||||
self.history.last()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user