import { SlashCommandParser } from '../../parser.js';
import { slashMessageResult } from '../results.js';
export function createCompactionSlashCommandModule() {
    return {
        id: 'compaction',
        hints: [
            { command: '/compact', description: 'compact earlier session history for the next run' },
        ],
        commands: [
            {
                id: 'compaction.compact',
                syntax: '/compact',
                description: 'compact earlier session history for the next run',
                match: SlashCommandParser.matchesExact('/compact'),
                run: async (context) => slashMessageResult(await context.compaction.compactActive()),
            },
        ],
    };
}
//# sourceMappingURL=compaction-commands.js.map