Repository navigation
v1.1.2 - Complete Refactoring & Critical Fixes
🚀 What's New in v1.1.2
🏗️ Architectural Refactoring (5 Phases)
We have completely restructured the core of ComposeBridge for better maintainability, scalability, and performance:
- Split Monolithic Files: 4 massive files were broken down into 25+ specialized modules:
source_analyzer.py: 2,116 lines → 72 linesstate_editor.py: 1,146 lines → 86 linesmcp_server.py: 1,209 lines → 59 linesserver.py: 1,493 lines → 67 lines
- New Modules: Introduced
common/,analysis/,editor/,mcp/,network/,handlers/, andcli/packages. - Zero Circular Imports: Cleaned up all interdependent imports.
🔧 Critical Bug Fixes (P0)
- Text Editing Fixed: Resolved the issue where text editing failed after refactoring due to relative imports in
text_editor.py. - AppStrings Resolution: Fixed text extraction that was showing
AppStrings.Dainstead of the actual rendered text. - Multi-Registry Dimensions: You can now edit padding/dimensions on lines that contain multiple
BridgeDimensionRegistry.getcalls. - Release Builds: Created a lightweight
composebridge-runtimemodule to ensureassembleReleaseworks flawlessly without duplicate classes. - Auth Token: Added a dynamic token system with a
--dev-tokenfallback for local testing. - Theme Indexer: Now dynamically discovers
AppStrings.ktandDesignSystem.ktinstead of relying on hardcoded paths. - Port Conflict: Unified all ports to
8711to prevent connection drops.
✅ Verification
- 100% of Python files compile without errors.
- 15/15 Unit Tests passing.
- End-to-End (E2E) integration tests passed 100%.
- Verified text and dimension editing directly from the phone.