#!/usr/bin/env node /** * AST Validation CLI * * Called by native validators (Python/shell) to perform AST-based content checking. * * Usage: * echo '{"file":"test.ts","content":"...","restriction":"no lodash"}' | node validate-cli.js * * Input (JSON on stdin): * - file: File path (used for language detection) * - content: File content to check * - restriction: The policy description (e.g., "no lodash", "no any") * * Output (JSON on stdout): * - allowed: boolean * - match?: { line, column, text, reason, suggest, ruleId } * - method: 'ast' | 'skipped' */ export {}; //# sourceMappingURL=validate-cli.d.ts.map