mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-11-25 23:33:49 +03:00
Add the server foundation contracts for SQL execution order, outbound SSRF protection, deployment and role route isolation, and client version control: - Add the ordered SQL manifest (`packages/backend/server-db/sql-manifest.json`) and check manifest coverage and SHA-256 digests in `check-l0-tier-a.mjs`. - Add `server_domain::safe_fetch` with pinned DNS resolution, per-origin private network allowlist, redirect header filtering, cross-origin body replay blocking, and legacy error envelope mapping. - Add `RouteMountMatrix` across `(DeploymentMode, dev_mode, ServerRole)` with modular REST and GraphQL route wiring and `ServerExtension` isolation. - Enforce `client.versionControl` with cached `AppConfigService` snapshots, anonymous fast-path short-circuiting, npm semver range parsing, named guard coverage on public auth endpoints, and read-only cookie session resolution with TTR refresh.