docs(spec): drop residual OpenRouter mentions
Browse filesThree references slipped through the HF Inference migration:
the system diagram, the API route table (/api/chat description)
and the agent sequence diagram all still named OpenRouter as the
LLM backend. Replace them with HF Inference (Providers) to match
the actual implementation in stream-handler.ts.
Co-authored-by: Cursor <cursoragent@cursor.com>
- docs/SPECIFICATION.md +3 -3
docs/SPECIFICATION.md
CHANGED
|
@@ -22,7 +22,7 @@ graph TB
|
|
| 22 |
Express["Express HTTP"]
|
| 23 |
Hocuspocus["Hocuspocus<br/>WebSocket"]
|
| 24 |
Publisher["Publisher Pipeline<br/>HTML + PDF"]
|
| 25 |
-
Agent["AI Agent<br/>
|
| 26 |
Auth["HF OAuth"]
|
| 27 |
end
|
| 28 |
|
|
@@ -72,7 +72,7 @@ All types are concurrently editable by multiple users and persist to `data/defau
|
|
| 72 |
| `GET` | `/oauth/authorize` | Public | Redirect to HF OAuth |
|
| 73 |
| `GET` | `/auth/callback` | Public (CSRF state) | Exchange code, set cookie, redirect to `/editor` |
|
| 74 |
| `GET` | `/api/auth/status` | Cookie | Return `{ authenticated, canEdit, user }` |
|
| 75 |
-
| `POST` | `/api/chat` |
|
| 76 |
| `POST` | `/api/publish` | OAuth (canEdit) | Run publish pipeline, generate HTML/PDF |
|
| 77 |
| `POST` | `/api/admin/reset-document` | OAuth (canEdit) | Delete local `.yjs`, close connections |
|
| 78 |
| `POST` | `/api/upload` | None (uses cookie for HF) | Upload image (multipart, max 10MB) |
|
|
@@ -378,7 +378,7 @@ sequenceDiagram
|
|
| 378 |
participant User as Chat Panel
|
| 379 |
participant Hook as useAgentChat
|
| 380 |
participant API as POST /api/chat
|
| 381 |
-
participant LLM as
|
| 382 |
|
| 383 |
User->>Hook: sendMessage(text)
|
| 384 |
Hook->>Hook: Build context (doc, selection, frontmatter)
|
|
|
|
| 22 |
Express["Express HTTP"]
|
| 23 |
Hocuspocus["Hocuspocus<br/>WebSocket"]
|
| 24 |
Publisher["Publisher Pipeline<br/>HTML + PDF"]
|
| 25 |
+
Agent["AI Agent<br/>HF Inference"]
|
| 26 |
Auth["HF OAuth"]
|
| 27 |
end
|
| 28 |
|
|
|
|
| 72 |
| `GET` | `/oauth/authorize` | Public | Redirect to HF OAuth |
|
| 73 |
| `GET` | `/auth/callback` | Public (CSRF state) | Exchange code, set cookie, redirect to `/editor` |
|
| 74 |
| `GET` | `/api/auth/status` | Cookie | Return `{ authenticated, canEdit, user }` |
|
| 75 |
+
| `POST` | `/api/chat` | OAuth (optional) | Stream AI agent responses (HF Inference Providers) |
|
| 76 |
| `POST` | `/api/publish` | OAuth (canEdit) | Run publish pipeline, generate HTML/PDF |
|
| 77 |
| `POST` | `/api/admin/reset-document` | OAuth (canEdit) | Delete local `.yjs`, close connections |
|
| 78 |
| `POST` | `/api/upload` | None (uses cookie for HF) | Upload image (multipart, max 10MB) |
|
|
|
|
| 378 |
participant User as Chat Panel
|
| 379 |
participant Hook as useAgentChat
|
| 380 |
participant API as POST /api/chat
|
| 381 |
+
participant LLM as HF Inference
|
| 382 |
|
| 383 |
User->>Hook: sendMessage(text)
|
| 384 |
Hook->>Hook: Build context (doc, selection, frontmatter)
|