feat: add managed database capture and operator restore

PostgreSQL and MySQL backups run through paired outposts, with operator sign-in, off-site copies, and legacy import. Retention stays on each orbit, so the unused retention console is removed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-10 23:26:49 +07:00
parent 30a1a9b8f0
commit 6320b6f244
96 changed files with 11061 additions and 725 deletions

View File

@@ -103,3 +103,16 @@ export function spiralPoint(source: Vec2, progress: number): Vec2 {
const radius = Math.hypot(source.x, source.y) * (1 - u ** 1.4);
return { x: Math.cos(angle) * radius, y: Math.sin(angle) * radius };
}
export const CAPTURE_HIGHLIGHT_START = 0.94;
export function capturePhases(progress: number) {
const stage = (start: number, end: number) => Math.min(1, Math.max(0, (progress - start) / (end - start)));
return {
flare: stage(0, 0.06) * (1 - stage(0.08, 0.24)),
flight: stage(0.09, 0.79),
absorption: stage(0.76, 0.84) * (1 - stage(0.85, CAPTURE_HIGHLIGHT_START)),
highlight: stage(CAPTURE_HIGHLIGHT_START, 0.97) * (1 - stage(0.97, 0.998)),
failure: stage(0, 0.15) * (1 - stage(0.17, 0.9)),
};
}