Spaces:
Running
Running
| # Controllers | |
| Business logic and orchestration layer | |
| ## Purpose | |
| - Handle all business logic and state mutations | |
| - Coordinate between services and stores | |
| - Centralize complex operations | |
| ## Layout | |
| ``` | |
| controllers/ | |
| βββ context.md # This file | |
| βββ chat-controller.ts # Chat operations and state management | |
| ``` | |
| ## Scope | |
| - In-scope: Business logic, state orchestration | |
| - Out-of-scope: UI rendering, direct store access from components | |
| ## Entrypoints | |
| - `chatController` - All chat operations | |
| ## Dependencies | |
| - Stores for state updates | |
| - Services for external operations | |