mirror of
https://github.com/garrytan/gstack.git
synced 2026-08-24 06:52:31 +02:00
fix(ios-qa): recover device tunnels safely after relaunch
This commit is contained in:
@@ -13,7 +13,10 @@ export interface DeviceEntry {
|
||||
identifier: string;
|
||||
name: string;
|
||||
model: string;
|
||||
platform: string; // "iOS" | "iPadOS" | "visionOS" | ...
|
||||
deviceType: string; // "iPhone" | "iPad" | "realityDevice" | ...
|
||||
state: string; // "connected" | "available" | "available (paired)" | ...
|
||||
transport: string; // "wired" on USB devices; empty for stale/unavailable entries
|
||||
paired: boolean;
|
||||
}
|
||||
|
||||
@@ -83,7 +86,10 @@ export function listDevices(spawn: SpawnImpl = defaultSpawn): DeviceEntry[] {
|
||||
identifier: String(d.identifier ?? ''),
|
||||
name: String(props?.name ?? 'unknown'),
|
||||
model: String(hw?.productType ?? 'unknown'),
|
||||
platform: String(hw?.platform ?? ''),
|
||||
deviceType: String(hw?.deviceType ?? ''),
|
||||
state: String(conn?.tunnelState ?? 'unknown'),
|
||||
transport: String(conn?.transportType ?? ''),
|
||||
paired: pairingState === 'paired',
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user