feat(cli): Enhance codegraph index with a sophisticated TUI
#19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
codegraph indexcommand's terminal user interface (TUI) has been significantly improved to provide a more sophisticated and informative user experience. The previous implementation relied on simple text logs, which could be cluttered and difficult to follow. This change introduces a rich TUI with progress bars for each stage of the indexing process and a detailed summary of statistics at the end.Key improvements include:
indicatifandtracing-indicatifcrates have been integrated to display progress bars for each step of the indexing process, including file collection, parsing, embedding generation, and node storage.handle_indexfunction, preventing interference with other commands and tests.startandstopnow check if they are running in an interactive TTY before printing to the console, ensuring that tests are not broken by the TUI improvements.PR created automatically by Jules for task 2795575221537677804