|
9 | 9 | * - Recursively scanning directories for Xcode projects and workspaces |
10 | 10 | * - Filtering out common directories that should be skipped (build, DerivedData, etc.) |
11 | 11 | * - Respecting maximum depth limits to prevent excessive scanning |
12 | | - * - Providing formatted output with relative paths for discovered files |
| 12 | + * - Providing formatted output with absolute paths for discovered files |
13 | 13 | */ |
14 | 14 |
|
15 | 15 | import { z } from 'zod'; |
@@ -84,12 +84,12 @@ async function _findProjectsRecursive( |
84 | 84 | let isXcodeBundle = false; |
85 | 85 |
|
86 | 86 | if (entry.name.endsWith('.xcodeproj')) { |
87 | | - results.projects.push(relativePath); |
88 | | - log('debug', `Found project: ${relativePath}`); |
| 87 | + results.projects.push(absoluteEntryPath); // Use absolute path |
| 88 | + log('debug', `Found project: ${absoluteEntryPath}`); |
89 | 89 | isXcodeBundle = true; |
90 | 90 | } else if (entry.name.endsWith('.xcworkspace')) { |
91 | | - results.workspaces.push(relativePath); |
92 | | - log('debug', `Found workspace: ${relativePath}`); |
| 91 | + results.workspaces.push(absoluteEntryPath); // Use absolute path |
| 92 | + log('debug', `Found workspace: ${absoluteEntryPath}`); |
93 | 93 | isXcodeBundle = true; |
94 | 94 | } |
95 | 95 |
|
@@ -224,15 +224,15 @@ async function _handleDiscoveryLogic(params: DiscoverProjectsParams): Promise<To |
224 | 224 | if (results.projects.length > 0) { |
225 | 225 | responseContent.push( |
226 | 226 | createTextContent( |
227 | | - `Projects (relative to workspace root):\n - ${results.projects.join('\n - ')}`, |
| 227 | + `Projects found:\n - ${results.projects.join('\n - ')}`, |
228 | 228 | ), |
229 | 229 | ); |
230 | 230 | } |
231 | 231 |
|
232 | 232 | if (results.workspaces.length > 0) { |
233 | 233 | responseContent.push( |
234 | 234 | createTextContent( |
235 | | - `Workspaces (relative to workspace root):\n - ${results.workspaces.join('\n - ')}`, |
| 235 | + `Workspaces found:\n - ${results.workspaces.join('\n - ')}`, |
236 | 236 | ), |
237 | 237 | ); |
238 | 238 | } |
|
0 commit comments