/** * BSO M9-5 — `skillfm doctor` 诊断命令 * * Refs: docs/prd/PRD-BSO-M9-HARNESS-HOOKS.md §3.6 * * 三层自检: * L1 LLM 层:priming block 是否已注入到目标文件 * L2 harness 层:hooks / MCP 配置是否已注册 * L3 sidecar 层:sidecar 是否在跑、guard 端点是否可达 * * 输出:人类可读(中文),每项 ✅ / ⚠️ / ❌。 */ import { type Harness } from './harness/detector.js'; interface CheckItem { layer: 'L1' | 'L2' | 'L3'; status: 'ok' | 'warn' | 'fail'; title: string; detail: string; fix?: string; } export interface DoctorReport { harness: Harness; detect_source: string; detect_reason: string; items: CheckItem[]; } export declare function runDoctor(cwd?: string): Promise; export declare function renderDoctorReport(r: DoctorReport): string; import { detectPrimaryHost } from './harness/kernels/registry.js'; import type { DiagnoseResult } from './harness/kernels/types.js'; export interface DoctorV3Report { architecture: 'v3-three-layer'; host: ReturnType; layer1: { name: 'SKILL.md 标准化'; items: Array<{ status: 'ok' | 'warn' | 'fail'; title: string; detail?: string; fix?: string; }>; }; layer2: { name: 'MCP Protocol-Reject'; diagnose: DiagnoseResult; }; layer3: { name: '机制内核 adapter'; diagnoses: DiagnoseResult[]; }; } export declare function runDoctorV3(cwd?: string): Promise; export declare function renderDoctorV3Report(r: DoctorV3Report): string; export declare function renderDisableHooksReport(r: DoctorV3Report): string; export {}; //# sourceMappingURL=doctor.d.ts.map