/** * omk doctor 引擎入口。 * * runDoctor() 接受 target(单文件 / 目录 / null=cwd 默认),解析出 Artifact 列表, * 对每个 artifact 顺序跑全部 rules,聚合为 DoctorReport。 * * fatal-fail 不中断后续 rule 执行(让用户一次看到全貌),但 report.outcome='failed', * CLI 据此 exit 1 / abort eval。 */ import type { Artifact, DoctorReport, DoctorRunOptions } from '../types/index.js'; /** * 把 doctor 的 target 参数解析成 Artifact 列表。 * - null/undefined: 默认在 cwd/skills 下批量;若不存在则在 cwd 自身找 * - 文件 (.md): 单 artifact,用 file-path 模式 * - 目录: discoverVariants 后批量 */ export declare function resolveDoctorTargets(target: string | null | undefined, cwd: string): Artifact[]; export declare function runDoctor(opts: DoctorRunOptions): Promise;