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
The agent plugin registers `POST /api/agent` (OpenAI Responses API format with SSE streaming). The chat plugin registers routes under `/api/chat/` for streaming chat, history, feedback, and more.
71
+
This starts a server with the agent backend, chat API, and a pre-built chat UI served at `/`. The agent plugin registers `POST /api/agent` (OpenAI Responses API format with SSE streaming). The chat plugin registers routes under `/api/chat/` for streaming chat, history, feedback, and more.
72
72
73
73
## Environment Variables
74
74
@@ -319,6 +319,32 @@ All routes are mounted under `/api/chat/`.
319
319
|`DELETE`|`/:id`| required+ACL | Delete a chat |
320
320
|`POST`|`/`| required | Main chat handler (streaming) |
321
321
322
+
## Bundled Chat UI
323
+
324
+
The package includes a pre-built React chat application in `dist/chat-client/`. It provides a full-featured chat experience with conversation history sidebar, message editing, code syntax highlighting, MCP tool approval, file attachments, reasoning display, and theme toggle.
325
+
326
+
### Serving the UI
327
+
328
+
Pass `chat.staticAssetsPath` to the server plugin's `staticPath` option:
329
+
330
+
```typescript
331
+
server({ staticPath: chat.staticAssetsPath })
332
+
```
333
+
334
+
The chat UI communicates with the chat plugin's `/api/chat/` endpoints automatically. No additional configuration is needed.
335
+
336
+
### UI path customization
337
+
338
+
By default the chat plugin also mounts the UI at `/chat` via its built-in `mountUI` method. To change or disable this:
0 commit comments