import { keyHint, keyText, rawKeyHint, theme } from "@sheason/pi-coding-agent";
export { keyHint, keyText, rawKeyHint };
export function buildForkedStartupHelp(capabilities) {
    const expandedHints = [
        keyHint("app.interrupt", "to interrupt"),
        keyHint("app.clear", "to clear"),
        rawKeyHint(`${keyText("app.clear")} twice`, "to exit"),
        keyHint("app.exit", "to exit (empty)"),
        keyHint("app.message.followUp", "to queue follow-up"),
        keyHint("app.message.dequeue", "to edit all queued messages"),
        rawKeyHint("/", "for commands"),
        keyHint("tui.editor.deleteToLineEnd", "to delete to end"),
        keyHint("app.tools.expand", "to expand tools"),
    ];
    if (capabilities.supportsSettings !== false) {
        expandedHints.push(keyHint("app.thinking.cycle", "to cycle thinking level"));
        expandedHints.push(keyHint("app.thinking.toggle", "to expand thinking"));
    }
    if (capabilities.supportsModelSelection) {
        expandedHints.push(keyHint("app.model.select", "to select model"));
        expandedHints.push(rawKeyHint(`${keyText("app.model.cycleForward")}/${keyText("app.model.cycleBackward")}`, "to cycle models"));
    }
    if (capabilities.supportsCompact) {
        expandedHints.push(rawKeyHint("/compact", "to compact the session"));
    }
    if (capabilities.supportsReload) {
        expandedHints.push(rawKeyHint("/reload", "to reload hub resources"));
    }
    const compactHints = [
        keyHint("app.interrupt", "interrupt"),
        rawKeyHint(`${keyText("app.clear")}/${keyText("app.exit")}`, "clear/exit"),
        rawKeyHint("/", "commands"),
        keyHint("app.tools.expand", "more"),
    ];
    if (capabilities.supportsModelSelection) {
        compactHints.push(rawKeyHint(keyText("app.model.select"), "model"));
    }
    if (capabilities.supportsCompact) {
        compactHints.push(rawKeyHint("/compact", "compact"));
    }
    if (capabilities.supportsReload) {
        compactHints.push(rawKeyHint("/reload", "reload"));
    }
    return {
        expanded: expandedHints.join("\n"),
        compact: compactHints.join(theme.fg("muted", " · ")),
    };
}
//# sourceMappingURL=keybinding-hints.js.map