fix(attachment-refs): correct routesFactory return type to Router
routesFactory is synchronous (no await; it returns the Router directly)
and its only caller passes the result straight to app.use, but it was
annotated Promise<Router>. tsgo flagged this (TS2322), which made
`pnpm lint:typecheck` and the package's .d.ts build step fail. Annotate
it as Router to match the actual synchronous return.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>