fix: resolve speed test functionality issue after IPC migration #4221, #4218 (#4228)

* chore(deps): update cargo dependencies

* fix: sysinfo crate use limit features

* fix: update headers-core dependency and kode-bridge version; enhance system monitor status validation

* fix: extend overall_status type in ISystemMonitorOverview to include 'healthy'

* refactor: update URL encoding strategy in IpcManager and cmdGetProxyDelay function

* fix: resolve speed test functionality issue after IPC migration

* fix: resolve speed test functionality issue after IPC migration #4221, #4218

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
Tunglies
2025-07-27 02:07:00 +08:00
committed by GitHub
parent 02e19bb132
commit 4905b44c8a
7 changed files with 72 additions and 94 deletions

View File

@@ -138,7 +138,7 @@ export class SystemMonitorValidator implements ISystemMonitorOverviewValidator {
private validateOverallStatus(status: any): boolean {
return (
typeof status === "string" &&
["active", "inactive", "error", "unknown"].includes(status)
["active", "inactive", "error", "unknown", "healthy"].includes(status)
);
}
@@ -190,12 +190,12 @@ export class SystemMonitorValidator implements ISystemMonitorOverviewValidator {
private sanitizeOverallStatus(
status: any,
): "active" | "inactive" | "error" | "unknown" {
): "active" | "inactive" | "error" | "unknown" | "healthy" {
if (
typeof status === "string" &&
["active", "inactive", "error", "unknown"].includes(status)
["active", "inactive", "error", "unknown", "healthy"].includes(status)
) {
return status as "active" | "inactive" | "error" | "unknown";
return status as "active" | "inactive" | "error" | "unknown" | "healthy";
}
return "unknown";
}