core/cli: readline Tab completion and persistent history

Complete slash commands and provider/model/tools args; store history
under platformdirs user data.
This commit is contained in:
2026-07-14 18:33:34 +08:00
parent 054b2e8837
commit a017adda39
4 changed files with 206 additions and 7 deletions
+1
View File
@@ -73,6 +73,7 @@ Click app + readline REPL. Entry: `plyngent` / `python -m plyngent`.
- **`plyngent chat`**: provider/model selection (flags or interactive), SQLite sessions via config `[database]`, `/help` slash commands.
- **`plyngent providers`**: list config providers.
- Tools default on (`--tools` / `--no-tools`); workspace defaults to cwd.
- Readline: Tab completion for slash commands/args; history file under platformdirs user data (`repl_history`).
### Composition utility: `Forward` descriptor