export const command = {
    name: 'communities',
    description: 'Detect natural module boundaries using Louvain community detection',
    queryOpts: true,
    options: [
        ['--functions', 'Function-level instead of file-level'],
        ['--resolution <n>', 'Louvain resolution parameter (default 1.0)', '1.0'],
        ['--drift', 'Show only drift analysis'],
    ],
    async execute(_args, opts, ctx) {
        const { communities } = await import('../../presentation/communities.js');
        communities(opts.db, {
            functions: opts.functions,
            resolution: parseFloat(opts.resolution),
            drift: opts.drift,
            ...ctx.resolveQueryOpts(opts),
        });
    },
};
//# sourceMappingURL=communities.js.map