Commit 7e5b2ab
committed
feat(vis): read Rust-engine sessions from SQLite (records-based wire view)
vis was stranded after the engine switched to SQLite persistence (no more
wire.jsonl). Restore it from the engine's own stores:
- server: sqlite-store.ts read-only reader (node:sqlite, zero deps) for
sessions.db/agent_tasks.db — list/detail/state/context snapshot/tasks/
cron/agents (flat); KIMI_VIS_SOURCE=legacy|sqlite|auto (auto = engine
home readable); routes branch on detail.source
- server: sqlite-records.ts projects records rows into the wire view —
message.append -> context.append_message (normalized camelCase), tool
call/result -> append_loop_event (pairing/hover/duration work as-is),
usage/goal mapped, unknown types fall back to generic records;
empty records return 200 + warnings instead of 404; context route
rebuilds the full timeline (history=full semantics) from message.append
- web: unknown-type generic rendering + search-crash fix, sqlite source
badge on list/detail (i18n en/zh)
- tests: vis/server 165 (incl. records fixture + wire projection),
vis/web 20; root vitest 1168 green1 parent 74768ea commit 7e5b2ab
31 files changed
Lines changed: 2239 additions & 23 deletions
File tree
- apps/vis
- server
- src
- lib
- routes
- test
- fixtures
- lib
- routes
- web
- src
- components
- sessions
- wire
- i18n/locales
- pages
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| |||
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
177 | 197 | | |
178 | 198 | | |
179 | 199 | | |
180 | 200 | | |
181 | | - | |
| 201 | + | |
182 | 202 | | |
183 | 203 | | |
184 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
42 | 53 | | |
43 | 54 | | |
44 | 55 | | |
| |||
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
72 | 86 | | |
73 | 87 | | |
74 | 88 | | |
| |||
159 | 173 | | |
160 | 174 | | |
161 | 175 | | |
162 | | - | |
| 176 | + | |
163 | 177 | | |
164 | 178 | | |
165 | 179 | | |
| |||
294 | 308 | | |
295 | 309 | | |
296 | 310 | | |
297 | | - | |
| 311 | + | |
298 | 312 | | |
299 | 313 | | |
300 | 314 | | |
| |||
0 commit comments