UNPKG

packfs-core

Version:

Semantic filesystem operations for LLM agent frameworks with natural language understanding. See LLM_AGENT_GUIDE.md for copy-paste examples.

29 lines 761 B
/** * Security engine for filesystem operations */ import type { SecurityConfig } from './types.js'; export declare class SecurityEngine { private readonly config; constructor(config: SecurityConfig); /** * Validate if a file operation is allowed */ validateOperation(path: string, _operation: 'read' | 'write' | 'delete'): boolean; /** * Check if path is in blocked list */ private isBlockedPath; /** * Validate path format and security */ private isValidPath; /** * Check if file extension is allowed */ isAllowedExtension(filename: string): boolean; /** * Validate file size */ isValidFileSize(size: number): boolean; } //# sourceMappingURL=security.d.ts.map