graph TD
classDef client fill:#18192a,stroke:#8b5cf6,stroke-width:2px,color:#fff;
classDef core fill:#111220,stroke:#06b6d4,stroke-width:2px,color:#fff;
classDef native fill:#0e0f1a,stroke:#10b981,stroke-width:2px,color:#fff;
subgraph 前端与工坊工作流 [React 18 + Zustand + CSS Modules]
AH[1. 素材拆条工坊 Asset Hub]:::client --> SS[2. 剧本研磨工坊 Script Studio]:::client
SS --> WS[3. 5轨剪辑工作台 Workspace]:::client
WS --> EH[4. 消重发布工坊 Export Hub]:::client
end
subgraph 核心服务与驱动 [src/core & src/shared]
AFD[AtomicProjectFileDriver 原子防竞态持久化]:::core
MAP[Multi-Agent Drama Pipeline]:::core
US[UpdaterService 智能版本检测]:::core
end
subgraph 宿主与原生引擎 [Tauri 2 + Rust + 本地 AI]
RUST[Tauri IPC / SQLite / 资源池治理]:::native
FFMPEG[FFmpeg 硬件编解码 & 音画混流]:::native
WHISPER[faster-whisper 本地语音识别]:::native
DRAFT[剪映草稿逆向引擎 CapCut Draft Engine]:::native
end
AH -.-> AFD
SS -.-> MAP
WS -.-> RUST
EH -.-> DRAFT
AFD --> RUST
MAP --> RUST
RUST --> FFMPEG
RUST --> WHISPER