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
- 创建 types.ts 定义完整的类型系统 - 重写 DocumentRenderer.tsx 修复语法错误 - 重写 QuizRenderer.tsx 修复语法错误 - 重写 PresentationContainer.tsx 添加类型守卫 - 重写 TypeSwitcher.tsx 修复类型引用 - 更新 index.ts 移除不存在的 ChartRenderer 导出 审计结果: - 类型检查: 通过 - 单元测试: 222 passed - 构建: 成功
29 lines
709 B
Rust
29 lines
709 B
Rust
//! Smart Presentation Layer
|
|
//!
|
|
//! Analyzes pipeline output and recommends the best presentation format.
|
|
//! Supports multiple renderers: Chart, Quiz, Slideshow, Document, Whiteboard.
|
|
//!
|
|
//! # Flow
|
|
//!
|
|
//! ```text
|
|
//! Pipeline Output
|
|
//! ↓
|
|
//! Structure Detection (fast, < 5ms)
|
|
//! ├─→ Has slides/sections? → Slideshow
|
|
//! ├─→ Has questions/options? → Quiz
|
|
//! ├─→ Has chart/data arrays? → Chart
|
|
//! └─→ Default → Document
|
|
//! ↓
|
|
//! LLM Analysis (optional, ~300ms)
|
|
//! ↓
|
|
//! Recommendation with confidence score
|
|
//! ```
|
|
|
|
pub mod types;
|
|
pub mod analyzer;
|
|
pub mod registry;
|
|
|
|
pub use types::*;
|
|
pub use analyzer::*;
|
|
pub use registry::*;
|