UNPKG

@openguardrails/moltguard

Version:

AI agent security plugin for OpenClaw: prompt injection detection, PII sanitization, and monitoring dashboard

35 lines 1.01 kB
/** * Workspace MD File Scanner * * Scans OpenClaw workspace for all .md files and categorizes them: * - soul.md (agent personality) * - agent.md (agent configuration) * - memories/*.md (conversation memories) * - heartbeat.md (task scheduler) * - Other md files in workspace root */ export type FileType = "soul" | "agent" | "memory" | "task" | "skill" | "plugin" | "other"; export interface WorkspaceFile { path: string; absolutePath: string; content: string; type: FileType; sizeBytes: number; } /** * Scan workspace for all .md files */ export declare function scanWorkspaceMdFiles(): Promise<WorkspaceFile[]>; /** * Scan specific file types */ export declare function scanFilesByType(types: FileType[]): Promise<WorkspaceFile[]>; /** * Get summary of workspace files */ export declare function getWorkspaceSummary(): Promise<{ totalFiles: number; byType: Record<FileType, number>; totalSizeBytes: number; }>; //# sourceMappingURL=workspace-scanner.d.ts.map