"""The authoring API: the model's help while someone writes. Three endpoints under `/documents`, all owner-scoped: refine the section at the cursor (streamed), suggest a title for a finished draft, and suggest which existing document a capture should extend. What they share is `grounding` — the permission-filtered look at what the company already wrote. `suggest-similar` has a static path and is registered before the refine module so it cannot be read as a document id. """ from fastapi import APIRouter from app.api.authoring import refine, suggest router = APIRouter() router.include_router(suggest.router) router.include_router(refine.router)