Commit b7e9fab
committed
refactor: complete focused facade architecture implementation
## Summary
- Finalize the focused facade architecture by fixing remaining inconsistent imports
- Remove the deprecated utils/index.ts barrel file completely
- Ensure all imports use proper focused facades throughout the codebase
## Changes Made
### Import Consistency Fixes
- Fix build_device.ts to use utils/build/index.ts instead of direct build-utils.ts import
- Fix test-common.ts to use utils/build/index.ts for executeXcodeBuildCommand import
- Update test files to use utils/responses/index.ts for SystemError imports instead of barrel
- Update scaffold project files to use proper focused facades for dynamic imports
### Architecture Completion
- **REMOVED**: src/utils/index.ts - deprecated barrel file completely deleted
- All imports now consistently use focused facades (build/, responses/, execution/, etc.)
- No more barrel imports anywhere in the codebase
## Technical Benefits
- **Improved tree-shaking**: Bundlers can better eliminate unused code
- **Clearer dependencies**: Import paths explicitly show what functionality is needed
- **Prevention of circular dependencies**: Focused facades reduce coupling risks
- **Better performance**: Eliminates loading of unused modules during startup
- **Architectural consistency**: Single pattern enforced across entire codebase
## Validation
- ✅ TypeScript compilation: No errors
- ✅ ESLint: Only 1 minor unrelated warning
- ✅ Prettier: All files properly formatted
- ✅ Tests: 1046 tests passing
- ✅ Build: Successful compilation with all tools working
The focused facade architecture is now fully implemented and enforced.1 parent 21c65b9 commit b7e9fab
7 files changed
Lines changed: 6 additions & 28 deletions
File tree
- src
- mcp/tools
- device
- project-scaffolding
- __tests__
- simulator/__tests__
- ui-testing/__tests__
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | | - | |
462 | 461 | | |
463 | 462 | | |
464 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | | - | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
391 | | - | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments