/** * @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 }) => ( {/* Basics */} Basics: Add context : Use{' '} @ {' '} to specify files for context (e.g.,{' '} @src/myFile.ts ) to target specific files or folders. Shell mode : Execute shell commands via{' '} ! {' '} (e.g.,{' '} !npm run start ) or use natural language (e.g.{' '} start server ). {/* Commands */} Commands: {commands .filter((command) => command.description) .map((command: SlashCommand) => ( {' '} /{command.name} {command.description && ' - ' + command.description} ))} {' '} !{' '} - shell command {/* Shortcuts */} Keyboard Shortcuts: Enter {' '} - Send message Shift+Enter {' '} - New line Up/Down {' '} - Cycle through your prompt history Alt+Left/Right {' '} - Jump through words in the input Esc {' '} - Cancel operation Ctrl+C {' '} - Quit application );