summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useCompletion.ts
diff options
context:
space:
mode:
authorAllen Hutchison <[email protected]>2025-04-29 15:39:36 -0700
committerGitHub <[email protected]>2025-04-29 15:39:36 -0700
commit889200d400c4dec60de0d7b5cdd77261bbb63edb (patch)
treee107628611d870d4a00435731d2754305888128f /packages/cli/src/ui/hooks/useCompletion.ts
parentc1b23c008a378c6c4b7f50fabc0ebf0280e0e5ad (diff)
Add @ command handling to useGeminiStream (#217)
* First integration of at commands into useGeminiStream.ts * feat: Integrate @ command for file/directory reading - Adds support for `@<path>` commands in the CLI UI to read file or directory contents using the `read_many_files` tool. - Refactors `useGeminiStream` hook to handle slash, passthrough, and @ commands before sending queries to the Gemini API. - Improves history item ID generation to prevent React duplicate key warnings. * fix: Handle additional text after @ command path - Modifies the `@` command processor to parse text following the file/directory path (e.g., `@README.md explain this`). - Includes both the fetched file content and the subsequent text in the query sent to the Gemini API. - Resolves the TODO item in `atCommandProcessor.ts`. * feat: Allow @ command anywhere in query and fix build - Update `atCommandProcessor` to correctly parse `@<path>` commands regardless of their position in the input string using regex. This enables queries like "Explain @README.md to me". - Fix build error in `useGeminiStream` by importing the missing `findSafeSplitPoint` function. * rename isPotentiallyAtCommand to isAtCommand * respond to review comments.
Diffstat (limited to 'packages/cli/src/ui/hooks/useCompletion.ts')
0 files changed, 0 insertions, 0 deletions