import React from "react";
import { HelpPanel } from "../../components/HelpPanel.js";
import { formatCommandHelp } from "../format.js";
export function createHelpCommand(getCommands) {
    return {
        name: "help",
        aliases: ["?"],
        description: "Show DeepSeekCode commands.",
        execute() {
            const commands = getCommands();
            return {
                message: `DeepSeekCode help\n${formatCommandHelp(commands)}`,
                display: React.createElement(HelpPanel, { commands }),
            };
        },
    };
}
