import type { OpenClawPluginApi } from "openclaw/plugin-sdk"; import type { SessionDoctorConfig, NotificationQueue } from "../types.js"; interface CheckResult { ok: boolean; level: "info" | "warn" | "error"; category: string; message: string; fixCommand?: string; } interface TrajectoryFile { path: string; agent: string; sessionId: string; sizeBytes: number; sizeMB: number; mtimeMs: number; mtimeDaysAgo: number; } /** * 只读扫 ~/.openclaw/agents//sessions/*.trajectory.jsonl * 仅取文件大小 + mtime,不读内容(避免自己也踩 JSON.parse 大文件的坑) */ export declare function scanTrajectories(openclawDir: string): TrajectoryFile[]; export declare function checkTrajectories(openclawDir: string, options?: SessionDoctorConfig): CheckResult[]; export declare function registerSessionDoctor(api: OpenClawPluginApi, config: SessionDoctorConfig | undefined, notifyQueue: NotificationQueue | null): void; export {};