packfs-core
Version:
Semantic filesystem operations for LLM agent frameworks with natural language understanding. See LLM_AGENT_GUIDE.md for copy-paste examples.
37 lines • 1.14 kB
TypeScript
/**
* Security configuration types for Mastra integration
*/
/**
* Security configuration for Mastra tools
*/
export interface SecurityConfig {
/** Root path that all operations must stay within */
rootPath: string;
/** Maximum file size that can be processed (bytes) */
maxFileSize?: number;
/** List of allowed file extensions (with dots, e.g., ['.txt', '.md']) */
allowedExtensions?: string[];
/** List of path segments that are blocked (e.g., ['.git', 'node_modules']) */
blockedPaths?: string[];
/** Rate limiting configuration */
rateLimiting?: {
/** Maximum number of requests allowed in the time window */
maxRequests: number;
/** Time window in milliseconds */
windowMs: number;
};
}
/**
* Validation result structure
*/
export interface ValidationResult {
/** Whether the validation passed */
valid: boolean;
/** Reason for validation failure (if any) */
reason?: string;
}
/**
* Default security configuration values
*/
export declare const DEFAULT_SECURITY_CONFIG: Partial<SecurityConfig>;
//# sourceMappingURL=config.d.ts.map