Class DoctorRepairAiService
java.lang.Object
com.shaft.doctor.repair.DoctorRepairAiService
Generates optional schema-constrained file patches through the shared AI boundary.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a service using the configured shared provider registry. -
Method Summary
-
Constructor Details
-
DoctorRepairAiService
public DoctorRepairAiService()Creates a service using the configured shared provider registry.
-
-
Method Details
-
generate
public DoctorRepairPatchResult generate(Path repositoryRoot, Diagnosis diagnosis, List<String> allowedPaths, DoctorRepairAiRequest request) Requests structured file patches without applying them or executing provider commands.- Parameters:
repositoryRoot- approved repository rootdiagnosis- deterministic Doctor diagnosisallowedPaths- exact approved source file pathsrequest- explicit provider policy- Returns:
- validated patches or an empty safe fallback
-