You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
Browse filesBrowse the repository at this point in the historyBrowse files
outlndrr
committed
feat(ui): add live SSE debug console
- Replace snapshot polling with session SSE for live chunks
- Log run, tool, and SSE lifecycle for troubleshooting
- Load .env via glenvy for local config
- Fix OpenRouter stream setup and web_search header parsing
Copy file name to clipboardExpand all lines: README.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,16 @@ Health check:
58
58
curl http://localhost:4000/health
59
59
```
60
60
61
+
Optional: create `.env` in project root. Runtime loads it at startup via `glenvy` before config parsing. Real process env still wins over `.env` values.
62
+
63
+
Example:
64
+
65
+
```env
66
+
LUMMY_OPENROUTER_API_KEY=your_key_here
67
+
LUMMY_DEFAULT_PROVIDER_ID=openrouter
68
+
LUMMY_DEFAULT_MODEL_SELECTION=openai/gpt-4o-mini
69
+
```
70
+
61
71
## Quickstart
62
72
63
73
Copy-paste flow:
@@ -137,6 +147,33 @@ curl -X POST http://localhost:4000/api/v1/providers/openrouter/verify \
137
147
-d '{"model":"openai/gpt-4o-mini","prompt":"Say hello in five words."}'
138
148
```
139
149
150
+
## Simple Lustre UI
151
+
152
+
UI source lives in `ui/` and is served by backend at `GET /ui`.
153
+
154
+
Build client once:
155
+
156
+
```sh
157
+
cd ui
158
+
gleam build
159
+
cd ..
160
+
```
161
+
162
+
Then run server and open:
163
+
164
+
```sh
165
+
gleam run
166
+
# browse http://localhost:4000/ui
167
+
```
168
+
169
+
Notes:
170
+
- UI currently targets `openrouter` only
171
+
- UI talks to same-origin backend routes, so no CORS setup needed
172
+
- backend still requires `LUMMY_OPENROUTER_API_KEY`
173
+
- UI opens live session SSE stream at `/api/v1/sessions/:id/events`
174
+
- UI includes debug pane for HTTP actions, SSE status, and streamed events
175
+
- backend now logs request + run/provider/tool lifecycle to Erlang logger
0 commit comments