UNPKG

ccguard

Version:

Automated enforcement of net-negative LOC, complexity constraints, and quality standards for Claude code

29 lines 898 B
import { BashInput } from '../contracts'; export interface FileOperation { type: 'create' | 'delete' | 'modify' | 'overwrite'; paths: string[]; } export declare class BashCommandParser { /** * Parse a bash command to identify file operations */ parseCommand(input: BashInput): FileOperation[]; private isDeleteCommand; private isCreateCommand; private isOverwriteCommand; private isAppendCommand; private extractPathsFromDelete; private extractPathsFromCreate; private extractPathsFromOverwrite; private extractPathsFromAppend; /** * Simple command tokenizer (doesn't handle all shell quoting rules) */ private tokenizeCommand; private isSpecialToken; /** * Check if a command would affect files */ static wouldAffectFiles(input: BashInput): boolean; } //# sourceMappingURL=bashCommandParser.d.ts.map