Create three services that consolidate scattered logic: - ConfigService: singleton config loader with caching, eliminates repeated findConfigFile() + loadConfig() calls across commands - PortManager: centralized port allocation with conflict prevention, tracks allocated ports to avoid double-allocation - DashboardManager: unified dashboard lifecycle (start/stop/isRunning), eliminates duplicated spawn logic between start.ts and dashboard.ts All services are additive (non-breaking). Existing commands are unchanged — migration to use services happens in Phase 3. 28 new tests covering all service functionality. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| src | ||
| templates/rules | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||