Commit 137dd13
Merge refactor/deepen-architecture: deepen settings, session, providers, search
Three-phase architecture refactor (net -245 lines), build + lint green: Phase 1 unified the settings schema behind one module with per-request resolveSettings; Phase 2 added the prepareSession module and a single prompt builder, fixing the mid-session stale-prompt bug; Phase 3 added a shared provider streaming core and a SearchProvider seam, deleting the dead TogetherAIStream.ts. Also fixes a pre-existing react-hooks/exhaustive-deps warning in Chat.tsx.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>28 files changed
Lines changed: 1279 additions & 1524 deletions
File tree
- app
- api
- getChat
- getSources
- settings
- summariseSources
- settings
- components
- docs
- utils
- providers
- search
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
34 | 14 | | |
35 | 15 | | |
36 | 16 | | |
37 | 17 | | |
38 | 18 | | |
39 | | - | |
| 19 | + | |
40 | 20 | | |
41 | 21 | | |
42 | 22 | | |
| |||
0 commit comments