mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 19:25:56 +00:00
Phase 10a: diagnostics, managed-file verification, redacted diagnostic package export
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1609c4f6bf
commit
ce1861d88b
7 files changed
+423
-2
No files matched your search
@@ -236,6 +236,13 @@ export interface InternetCheck {
|
||||
router_found: boolean;
|
||||
}
|
||||
|
||||
export interface DiagCheck {
|
||||
id: string;
|
||||
title: string;
|
||||
level: "ok" | "warn" | "fail";
|
||||
detail: string;
|
||||
}
|
||||
|
||||
export const api = {
|
||||
defaultInstallDir: () => invoke<string>("default_install_dir"),
|
||||
scan: (path: string) => invoke<ScanReport>("scan_server", { path }),
|
||||
@@ -277,6 +284,9 @@ export const api = {
|
||||
friendsEnable: (id: string, mode: FriendsMode, host?: string, useUpnp = false) =>
|
||||
invoke<{ host: string; restart_required: boolean; note: string | null }>("friends_enable", { id, mode, host: host ?? null, useUpnp }),
|
||||
friendsPackage: (id: string) => invoke<string>("friends_package", { id }),
|
||||
runDiagnostics: (id: string) => invoke<{ checks: DiagCheck[]; problems: number }>("run_diagnostics", { id }),
|
||||
verifyFiles: (id: string) => invoke<{ path: string; kind: "missing" | "changed" }[]>("verify_files", { id }),
|
||||
exportDiagnostics: (id: string) => invoke<string>("export_diagnostics", { id }),
|
||||
previewPreset: (id: string, scope: Scope, preset: string) => invoke<PresetPreview>("preview_preset", { id, scope, preset }),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user