You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Unified schema: XOR between projectPath and workspacePath
28
16
constbaseSchemaObject=z.object({
@@ -78,7 +66,7 @@ export default {
78
66
"Builds an app from a project or workspace for a physical Apple device. Provide exactly one of projectPath or workspacePath. Example: build_device({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })",
// Unified schema: XOR between projectPath and workspacePath, sharing common options
29
17
constbaseOptions={
@@ -89,8 +77,11 @@ export async function get_device_app_pathLogic(
89
77
// Add the project or workspace
90
78
if(params.projectPath){
91
79
command.push('-project',params.projectPath);
80
+
}elseif(params.workspacePath){
81
+
command.push('-workspace',params.workspacePath);
92
82
}else{
93
-
command.push('-workspace',params.workspacePath!);
83
+
// This should never happen due to schema validation
84
+
thrownewError('Neither projectPath nor workspacePath provided');
94
85
}
95
86
96
87
// Add the scheme and configuration
@@ -170,7 +161,7 @@ export default {
170
161
"Gets the app bundle path for a physical device application (iOS, watchOS, tvOS, visionOS) using either a project or workspace. Provide exactly one of projectPath or workspacePath. Example: get_device_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme' })",
// Unified schema: XOR between projectPath and workspacePath
36
24
constbaseSchemaObject=z.object({
@@ -265,7 +253,7 @@ export default {
265
253
'Runs tests for an Apple project or workspace on a physical device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) using xcodebuild test and parses xcresult output. Provide exactly one of projectPath or workspacePath. IMPORTANT: Requires scheme and deviceId. Example: test_device({ projectPath: "/path/to/MyProject.xcodeproj", scheme: "MyScheme", deviceId: "device-uuid" })',
// Unified schema: XOR between projectPath and workspacePath
39
27
constbaseSchemaObject=z.object({
40
28
projectPath: z.string().optional().describe('Path to the .xcodeproj file'),
@@ -104,7 +92,7 @@ export default {
104
92
"Builds a macOS app using xcodebuild from a project or workspace. Provide exactly one of projectPath or workspacePath. Example: build_macos({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })",
// Unified schema: XOR between projectPath and workspacePath
30
18
constbaseSchemaObject=z.object({
@@ -222,7 +210,7 @@ export default {
222
210
"Builds and runs a macOS app from a project or workspace in one step. Provide exactly one of projectPath or workspacePath. Example: build_run_macos({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })",
// Unified schema: XOR between projectPath and workspacePath, sharing common options
28
16
constbaseOptions={
@@ -82,8 +70,11 @@ export async function get_macos_app_pathLogic(
82
70
// Add the project or workspace
83
71
if(params.projectPath){
84
72
command.push('-project',params.projectPath);
73
+
}elseif(params.workspacePath){
74
+
command.push('-workspace',params.workspacePath);
85
75
}else{
86
-
command.push('-workspace',params.workspacePath!);
76
+
// This should never happen due to schema validation
77
+
thrownewError('Neither projectPath nor workspacePath provided');
87
78
}
88
79
89
80
// Add the scheme and configuration
@@ -194,7 +185,7 @@ export default {
194
185
"Gets the app bundle path for a macOS application using either a project or workspace. Provide exactly one of projectPath or workspacePath. Example: get_macos_app_path({ projectPath: '/path/to/project.xcodeproj', scheme: 'MyScheme' })",
0 commit comments