File size: 595 Bytes
bc7e9cd
 
 
 
 
 
 
 
 
 
 
 
 
 
db9635c
 
bc7e9cd
 
 
 
db9635c
bc7e9cd
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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