π English Documentation Hub
Welcome to the conceptual documentation for codex-bot. This section explains the "Why" and "How" behind the framework's architecture.
πΊοΈ Architecture Map
| Section | Description |
|---|---|
| π¦ Base | Core DTOs and the abstract Orchestrator. |
| π§ Director | Cross-feature transition coordinator. |
| βοΈ Engine | Router assembly, discovery, and bot factory. |
| π§ FSM | State management and Garbage Collector. |
| π Redis | Redis Stream integration and background processing. |
| π€ Sender | UI message delivery and synchronization. |
| π οΈ CLI | Scaffolding commands for feature creation. |
| β¨ Animation | Waiting animations for Telegram UI. |
| π URL Signer | HMAC-signed URLs for Mini Apps. |
| π§° Helper | Context extraction and utility helpers. |
π Core Philosophy
codex-bot is built on three main pillars:
- Feature-based Isolation: Every feature is a self-contained module with its own logic, UI, and resources.
- Stateless Orchestrators: Orchestrators do not store user state in
self. All context is passed through theDirector. - UI Persistence: The framework manages two persistent messages (Menu and Content) to minimize chat clutter.
Last Updated: 2025-02-07