feat: AI Copilot Terminal User Interface (TUI) Implementation#1327
Closed
Makeepan-dev wants to merge 2 commits intocybertec-postgresql:masterfrom
Closed
feat: AI Copilot Terminal User Interface (TUI) Implementation#1327Makeepan-dev wants to merge 2 commits intocybertec-postgresql:masterfrom
Makeepan-dev wants to merge 2 commits intocybertec-postgresql:masterfrom
Conversation
Contributor
Author
|
Hi @pashagolub (Pavlo),
|
|
@Makeepan-dev I think you mistyped someone's else username |
Contributor
Author
Sorry |
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.
Description
Following the feedback in #1318 regarding the WebUI scope, I have pivoted the AI copilot implementation to a native Terminal User Interface (TUI). This allows for a powerful, interactive assistant that functions within CLI-driven environments, keeping the WebUI dedicated to administrative tasks.
Fixes
TUI entry point: Created internal/cmd/copilot/main.go using the charmbracelet/bubbletea library.
Architecture: Implemented the Model-View-Update (MVU) pattern for smooth asynchronous terminal interactions.
Sidecar Backend: Integrated Python gPRC logic within internal/cmd/copilot/python/ to handle AI analysis logic separately from the Go collector.
Standards Compliance: Adhered to the internal/cmd project structure for standalone utilities.
Motivation:
To provide a lightweight, high performance assistant for database metrics analysis that aligns with the maintainers' vision for the pgwatch ecosystem.
AI & Automation Policy
AI/automation tools used (leave blank if none):
Gemini: Used to draft the initial TUI structural template and ensure the Go gRPC client boilerplate follows patterns.
All logic, state management and file pathing have been manually reviewed, refined and tested on my local environment (Windows/Linux)
internal/cmd/copilot
Checklist