#!/usr/bin/env node /** * LexMap Merge Tool * * Combines scanner outputs from multiple language scanners into a single unified view. * * Usage: * lexmap merge scanner1.json scanner2.json ... > merged.json * * Philosophy: * This tool MERGES scanner outputs, it does NOT enforce policy. * Policy enforcement happens AFTER merge, using lexmap.policy.json. * * Flow: * 1. Read all scanner output JSON files * 2. Validate each against scanner-output.schema.json * 3. Merge file lists (deduplicating by path) * 4. Output unified scanner-output.json * * Next Step: * Feed merged output to policy checker which: * - Resolves file paths → module_scope (using lexmap.policy.json) * - Checks allowed_callers vs actual imports * - Reports violations * * Author: LexMap * License: MIT */ export {};