"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.diagnose = diagnose;
/**
 * Programmatic API for mycontext doctor
 *
 * Usage:
 *   import { diagnose } from "./doctor/api";
 *   const result = await diagnose("./path/to/project");
 *   console.log(result.score);
 */
const DoctorEngine_1 = require("./DoctorEngine");
async function diagnose(directory, options = {}) {
    return (0, DoctorEngine_1.runDoctor)(directory, {
        category: options.category,
        project: options.project,
    });
}
//# sourceMappingURL=api.js.map