feat: add interactive AI TUI mode (xsql-ai & xsql ai) - #65
Open
zx06 wants to merge 75 commits into
Open
Conversation
…l sanitization and width truncation
…anual-Approve modes
…mn scrolling via left/right arrow keys
…able height to 12 rows for optimal viewport visibility
…istorical query tables
…Ctrl+E expansion toggle
…t table border breaking
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #65 +/- ##
==========================================
- Coverage 82.50% 81.95% -0.55%
==========================================
Files 51 62 +11
Lines 4259 5687 +1428
==========================================
+ Hits 3514 4661 +1147
- Misses 563 773 +210
- Partials 182 253 +71
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
… inside ToolCallItem
…d multi-tool call navigation
…de auto table rendering
…dering with Glamour
…nd dark terminal themes
…ing rules in prompt
…l environment specification
…nd subtle dividers
…emove manual SQL edit mode
…wline to Alt+Enter
…ile switching with AI schema sync
…tains valid connection state
…to boost coverage
…rage for TUI model
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Summary
This PR introduces the interactive AI TUI mode to
xsqlwith a standalone binarycmd/xsql-aiand subcommandxsql ai.Key Features:
←/→arrow keys.PgUp/PgDnand full untruncated vertical view toggle viaCtrl+E(psql \xstyle).Shift+Tab.