/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { Box, Text } from 'ink'; import { Colors } from '../colors.js'; import { SlashCommand } from '../hooks/slashCommandProcessor.js'; interface Help { commands: SlashCommand[]; } export const Help: React.FC = ({ commands }) => ( Abilities: * Use tools to read and write files {' '} * Semantically search and explain code * Execute bash commands Commands: {commands .filter((command) => command.description) .map((command: SlashCommand) => ( {' '} /{command.name} {command.description && ' - ' + command.description} ))} {' '} !{' '} shell command );