"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveGlobPatterns = void 0;
const glob_1 = require("glob");
const resolveGlobPatterns = (directory, patterns) => {
    const resolvedFiles = patterns.flatMap(pattern => (0, glob_1.globSync)(pattern, { cwd: directory }));
    const filePatterns = [...new Set(resolvedFiles.filter(f => f.endsWith('.md') || f.endsWith('.markdown')))];
    return { directory, globPatterns: patterns, filePatterns };
};
exports.resolveGlobPatterns = resolveGlobPatterns;
