refactor: 清理未使用代码并添加未来功能标记
Some checks failed
CI / Rust Check (push) Has been cancelled
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

style: 统一代码格式和注释风格

docs: 更新多个功能文档的完整度和状态

feat(runtime): 添加路径验证工具支持

fix(pipeline): 改进条件判断和变量解析逻辑

test(types): 为ID类型添加全面测试用例

chore: 更新依赖项和Cargo.lock文件

perf(mcp): 优化MCP协议传输和错误处理
This commit is contained in:
iven
2026-03-25 21:55:12 +08:00
parent aa6a9cbd84
commit bf6d81f9c6
109 changed files with 12271 additions and 815 deletions

View File

@@ -9,6 +9,11 @@
//! - `compactor` - Context compaction for infinite-length conversations
//! - `reflection` - Agent self-improvement through conversation analysis
//! - `identity` - Agent identity file management (SOUL.md, AGENTS.md, USER.md)
//! - `pattern_detector` - Behavior pattern detection for adaptive mesh
//! - `recommender` - Workflow recommendation engine
//! - `mesh` - Adaptive Intelligence Mesh coordinator
//! - `trigger_evaluator` - Context-aware hand triggers with semantic matching
//! - `persona_evolver` - Memory-powered persona evolution system
//!
//! ## Migration Status
//!
@@ -18,8 +23,13 @@
//! | Context Compactor | ✅ Phase 2 | Complete |
//! | Reflection Engine | ✅ Phase 3 | Complete |
//! | Agent Identity | ✅ Phase 3 | Complete |
//! | Agent Swarm | 🚧 Phase 3 | TODO |
//! | Vector Memory | 📋 Phase 4 | Planned |
//! | Pattern Detector | Phase 4 | Complete |
//! | Workflow Recommender | Phase 4 | Complete |
//! | Adaptive Mesh | ✅ Phase 4 | Complete |
//! | Trigger Evaluator | ✅ Phase 4 | Complete |
//! | Persona Evolver | ✅ Phase 4 | Complete |
//! | Agent Swarm | 🚧 Phase 4 | TODO |
//! | Vector Memory | 📋 Phase 5 | Planned |
//!
//! Reference: docs/plans/INTELLIGENCE-LAYER-MIGRATION.md
@@ -27,12 +37,47 @@ pub mod heartbeat;
pub mod compactor;
pub mod reflection;
pub mod identity;
pub mod pattern_detector;
pub mod recommender;
pub mod mesh;
pub mod trigger_evaluator;
pub mod persona_evolver;
pub mod validation;
// Re-export main types for convenience
// These exports are reserved for external use and future integration
#[allow(unused_imports)]
pub use heartbeat::HeartbeatEngineState;
#[allow(unused_imports)]
pub use reflection::{
ReflectionEngine, ReflectionEngineState,
};
#[allow(unused_imports)]
pub use identity::{
AgentIdentityManager, IdentityManagerState,
};
#[allow(unused_imports)]
pub use pattern_detector::{
BehaviorPattern, PatternContext, PatternDetector, PatternDetectorConfig, PatternType,
};
#[allow(unused_imports)]
pub use recommender::{
PipelineMetadata, RecommendationRule, RecommenderConfig, WorkflowRecommender,
};
#[allow(unused_imports)]
pub use mesh::{
ActivityType, MeshAnalysisResult, MeshConfig, MeshCoordinator, MeshCoordinatorState,
WorkflowRecommendation,
};
#[allow(unused_imports)] // Module not yet integrated - exports reserved for future use
pub use trigger_evaluator::{
ComparisonOperator, ConditionCombination, ContextConditionClause, ContextConditionConfig,
ContextField, ExtendedTriggerType, IdentityFile, IdentityStateConfig,
MemoryQueryConfig, CompositeTriggerConfig, TriggerContextCache, TriggerEvaluator,
};
#[allow(unused_imports)]
pub use persona_evolver::{
PersonaEvolver, PersonaEvolverConfig, PersonaEvolverState, PersonaEvolverStateHandle,
EvolutionResult, EvolutionProposal, EvolutionChangeType, EvolutionInsight,
ProfileUpdate, InsightCategory,
};