Refactor copilot.service.ts - split into focused sub-services #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context:
copilot.service.tsis 2,758 lines - a monolithic service handling scheduling, reporting, utilization, fleet management, and more. This makes it hard to maintain and test.File:
backend/src/copilot/copilot.service.tsSuggested fix:
CopilotCoreService- message handling, tool dispatch, system promptCopilotScheduleService- schedule-related tool implementationsCopilotReportService- reporting and analytics toolsCopilotFleetService- vehicle/driver management toolsEffort: Medium
Split copilot.service.ts (2758 lines) into 5 focused files: copilot.service.ts (orchestrator), copilot-schedule.service.ts, copilot-reports.service.ts, copilot-fleet.service.ts, copilot-vip.service.ts.