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
describe('Export Field Validation (Literal)',()=>{
14
19
it('should have correct name',()=>{
15
20
expect(plugin.name).toBe('list_schemes');
16
21
});
17
22
18
23
it('should have correct description',()=>{
19
-
expect(plugin.description).toBe(
20
-
"Lists available schemes for either a project or a workspace. Provide exactly one of projectPath or workspacePath. Example: list_schemes({ projectPath: '/path/to/MyProject.xcodeproj' })",
21
-
);
24
+
expect(plugin.description).toBe('Lists schemes for a project or workspace.');
22
25
});
23
26
24
27
it('should have handler function',()=>{
25
28
expect(typeofplugin.handler).toBe('function');
26
29
});
27
30
28
-
it('should validate schema with valid inputs',()=>{
describe('Export Field Validation (Literal)',()=>{
8
12
it('should have correct name',()=>{
9
13
expect(plugin.name).toBe('show_build_settings');
10
14
});
11
15
12
16
it('should have correct description',()=>{
13
-
expect(plugin.description).toBe(
14
-
"Shows build settings from either a project or workspace using xcodebuild. Provide exactly one of projectPath or workspacePath, plus scheme. Example: show_build_settings({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })",
// Unified schema: XOR between projectPath and workspacePath
@@ -109,14 +109,22 @@ export async function listSchemesLogic(
109
109
}
110
110
}
111
111
112
+
constpublicSchemaObject=baseSchemaObject.omit({
113
+
projectPath: true,
114
+
workspacePath: true,
115
+
}asconst);
116
+
112
117
exportdefault{
113
118
name: 'list_schemes',
114
-
description:
115
-
"Lists available schemes for either a project or a workspace. Provide exactly one of projectPath or workspacePath. Example: list_schemes({ projectPath: '/path/to/MyProject.xcodeproj' })",
116
-
schema: baseSchemaObject.shape,
117
-
handler: createTypedTool<ListSchemesParams>(
118
-
listSchemesSchemaasz.ZodType<ListSchemesParams>,
119
-
listSchemesLogic,
120
-
getDefaultCommandExecutor,
121
-
),
119
+
description: 'Lists schemes for a project or workspace.',
// Unified schema: XOR between projectPath and workspacePath
@@ -102,14 +102,24 @@ export async function showBuildSettingsLogic(
102
102
}
103
103
}
104
104
105
+
constpublicSchemaObject=baseSchemaObject.omit({
106
+
projectPath: true,
107
+
workspacePath: true,
108
+
scheme: true,
109
+
}asconst);
110
+
105
111
exportdefault{
106
112
name: 'show_build_settings',
107
-
description:
108
-
"Shows build settings from either a project or workspace using xcodebuild. Provide exactly one of projectPath or workspacePath, plus scheme. Example: show_build_settings({ projectPath: '/path/to/MyProject.xcodeproj', scheme: 'MyScheme' })",
0 commit comments