feat: add psql shell and username-to-shell routing
Add a PostgreSQL psql interactive terminal shell with backslash meta-commands, SQL statement handling with multi-line buffering, and canned responses for common queries. Add username-based shell routing via [shell.username_routes] config (second priority after credential- specific shell, before random selection). Bump version to 0.13.0. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
PLAN.md
10
PLAN.md
@@ -171,7 +171,15 @@ Goal: Add the entertaining shell implementations.
|
||||
### 3.5 Banking TUI Shell ✅
|
||||
- 80s-style green-on-black bank terminal
|
||||
|
||||
### 3.6 Other Shell Ideas (Future)
|
||||
### 3.6 PostgreSQL psql Shell ✅
|
||||
- Simulates psql interactive terminal with `db_name` and `pg_version` config
|
||||
- Backslash meta-commands: `\q`, `\dt`, `\d <table>`, `\l`, `\du`, `\conninfo`, `\?`, `\h`
|
||||
- SQL statement handling with multi-line buffering (semicolon-terminated)
|
||||
- Canned responses for common queries (SELECT version(), current_database(), etc.)
|
||||
- DDL/DML acknowledgments (CREATE TABLE, INSERT, UPDATE, DELETE, etc.)
|
||||
- Username-to-shell routing: configurable `[shell.username_routes]` maps usernames to shells
|
||||
|
||||
### 3.7 Other Shell Ideas (Future)
|
||||
- **Nuclear launch terminal:** "ENTER LAUNCH AUTHORIZATION CODE"
|
||||
- **ELIZA therapist:** every response is a therapy question
|
||||
- **Pizza ordering terminal:** "Welcome to PizzaNet v2.3"
|
||||
|
||||
Reference in New Issue
Block a user