- Remove lib/metadata.ts (superseded by MetadataService + core metadata)
- Remove lib/metadata.test.ts (18 tests for removed code)
- Remove findAvailablePort from port.ts (superseded by PortManager)
- Streamline port.ts to single isPortAvailable function
- Mark Phase 6 complete in REFACTORING_PLAN.md
All 6 phases of the service-layer refactoring are now complete.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add PortManager real-ports test (6 tests) — verifies port conflict handling
with actual port binding, no mocks
- Add metadata lifecycle integration test (13 tests) — full CRUD cycle,
concurrent writes, path traversal validation, dashboardPort serialization
- Add config→metadata service integration test (5 tests) — hash-based
directory calculation, multi-project isolation, origin validation
- Update REFACTORING_PLAN.md with Phase 5 completion status
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>