Add visual console command for terminal-based database table browsing#1
Closed
Add visual console command for terminal-based database table browsing#1
Conversation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add console for database table visualization
Add visual console command for terminal-based database table browsing
Jan 10, 2026
hotlong
approved these changes
Jan 11, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements a terminal-based visual console command (objectql console) as an alternative to the REPL for browsing database tables. The feature addresses a user requirement for a visual interface to operate database tables without writing code.
Changes:
- Added new
consolecommand to CLI with blessed-based TUI featuring split-pane layout, pagination, and keyboard navigation - Added comprehensive documentation including user guide, demo screenshots, and updated CLI documentation
- Included example initialization script for sample data to demonstrate the console functionality
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/cli/src/commands/console.ts | Core implementation of visual console with blessed UI framework (426 lines) |
| packages/cli/src/index.ts | Command registration for new console command with alias 'c' |
| packages/cli/package.json | Added blessed and blessed-contrib dependencies for terminal UI |
| packages/cli/README.md | Documentation for console command usage and keyboard shortcuts |
| docs/console.md | Comprehensive user guide for visual console feature |
| docs/console-demo.md | ASCII art demo screenshots showing console interface |
| docs/guide/cli.md | Updated CLI guide with console command section |
| examples/basic-app/init-data.ts | Sample data initialization script for testing console |
| examples/basic-app/package.json | Added console script and ts-node dependency |
| README.md | Updated roadmap to mark Phase 4.5 (Visual Console) as complete |
| CONSOLE_IMPLEMENTATION.md | Implementation summary and technical details |
| pnpm-lock.yaml | Lock file updates for new blessed dependencies |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
19 tasks
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.
Implements a terminal UI alternative to REPL for browsing database tables without writing code. Addresses user requirement: "提供一个极简的控制台,让用户可以可视化的操作数据库里面的表,而不是用repl"
Implementation
New Command
objectql console(alias:c) - Launches blessed-based TUI with split-pane layout↑↓/jknavigate,Tabswitch panes,n/ppage,rrefresh,?helpArchitecture
ObjectRepositorywith system context (same privilege model as REPL)objectql.config.ts/js)Dependencies
blessed@^0.1.81andblessed-contrib@^4.11.0to CLI packageUsage
Files Changed
packages/cli/src/commands/console.ts- Core implementation (426 lines)packages/cli/src/index.ts- Command registrationpackages/cli/package.json- Dependenciesdocs/console.md,docs/guide/cli.md, READMEsVisual comparison: REPL requires JavaScript knowledge; console exposes data through direct visual browsing.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.