feat(ui): expose first-entry verification and explicit legacy mod recovery

This commit is contained in:
Codex
2026-09-09 18:59:21 +03:00
parent 22a78530c0
commit 189068be63
15 changed files with 318 additions and 74 deletions
+24 -1
View File
@@ -34,8 +34,28 @@ export interface ProfileInspection {
missingFiles: number
mismatchedFiles: number
upToDate: boolean
staleFiles?: number
conflicts?: string[]
pendingUpdate?: boolean
legacyFiles?: number
}
export interface ProfileMetadata {
snapshot: string
minecraftVersion: string
loaderKind: string
loaderVersion: string
javaMajor: number
}
export interface PreparationResult {
inspection: ProfileInspection
metadata: ProfileMetadata
onboarding: LinkChallenge | null
}
export interface LegacyMod { path: string; size: number; sha256: string; reason: string }
export interface LegacySelection { path: string; sha256: string }
export interface LegacyBackup { backupRoot: string; files: string[] }
export interface SyncResult {
root: string
downloadedFiles: number
@@ -57,6 +77,9 @@ export interface LinkChallenge {
challenge_id: number
expires_in_seconds: number
registered_on_server: boolean
proof_code: string
mc_username: string
player_uuid: string
}
export interface LinkStatus {
@@ -71,7 +94,7 @@ export interface ServerStatus {
}
export interface InstallProgressPayload {
stage: 'java' | 'neoforge' | 'libraries' | 'assets'
stage: 'mods' | 'java' | 'neoforge' | 'libraries' | 'assets' | 'launch'
currentBytes: number
totalBytes: number
}