Skip to content

Commit 28186ae

Browse files
committed
fix: remove dead re-exports, dead state check, add device next step params
- Remove unused re-exports from build-settings.ts barrel - Remove unreachable "Available (WiFi)" check from isAvailableState - Add ctx.nextStepParams to list_devices for consistency with list_sims
1 parent 0a974c9 commit 28186ae

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/mcp/tools/device/build-settings.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
import { XcodePlatform } from '../../../types/common.ts';
22

3-
export {
4-
getBuildSettingsDestination,
5-
extractAppPathFromBuildSettingsOutput,
6-
resolveAppPathFromBuildSettings,
7-
} from '../../../utils/app-path-resolver.ts';
8-
9-
export type { ResolveAppPathFromBuildSettingsParams } from '../../../utils/app-path-resolver.ts';
10-
113
export type DevicePlatform = 'iOS' | 'watchOS' | 'tvOS' | 'visionOS';
124

135
export function mapDevicePlatform(platform?: DevicePlatform): XcodePlatform {

src/mcp/tools/device/list_devices.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const listDevicesSchema = z.object({});
1515
type ListDevicesParams = z.infer<typeof listDevicesSchema>;
1616

1717
function isAvailableState(state: string): boolean {
18-
return state === 'Available' || state === 'Available (WiFi)' || state === 'Connected';
18+
return state === 'Available' || state === 'Connected';
1919
}
2020

2121
const PLATFORM_KEYWORDS: Array<{ keywords: string[]; label: string }> = [
@@ -339,6 +339,10 @@ export async function list_devicesLogic(
339339
for (const event of events) {
340340
ctx.emit(event);
341341
}
342+
ctx.nextStepParams = {
343+
build_device: { scheme: 'YOUR_SCHEME', deviceId: 'UUID_FROM_ABOVE' },
344+
install_app_device: { deviceId: 'UUID_FROM_ABOVE', appPath: 'PATH_TO_APP' },
345+
};
342346
},
343347
{
344348
header: headerEvent,

0 commit comments

Comments
 (0)