fix: handle elevated proxy pool services and Windows output

This commit is contained in:
Codex
2026-10-11 14:58:22 +08:00
parent 646e60a256
commit 8001cd86b1
9 changed files with 781 additions and 30 deletions
+29
View File
@@ -106,6 +106,35 @@ export type Proxy = {
error: string;
proxies: { url: string; failed: boolean; active: boolean }[];
};
export type PoolServiceStatus = {
api_ready: boolean;
items: {
name: string;
label: string;
pid: number | null;
state:
| "running"
| "restricted"
| "stopped"
| "external"
| "unknown"
| "invalid"
| "conflict";
verified: boolean;
elevated: boolean;
detail: string;
}[];
can_stop: boolean;
warning: string;
admin_command: string;
};
export type PoolManageResult = {
ok: boolean;
output: string;
message: string;
changed: boolean;
status: PoolServiceStatus;
};
export type Auth = {
saved: boolean;
valid: boolean;