mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 05:55:16 +08:00
core/cli: resume sessions, history, editline Tab, higher tool rounds
Default to file SQLite DB and latest session; /history and /rounds; bind Tab for libedit; max tool rounds default 32.
This commit is contained in:
@@ -70,12 +70,13 @@ Module-level `@tool` handlers. Call `set_workspace_root()` before use.
|
||||
|
||||
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 chat`**: provider/model selection (flags or interactive), SQLite sessions via config `[database]` (file DB under user data if unset/`:memory:`), resumes latest session by default (`--new` / `--session`).
|
||||
- Slash: `/history`, `/sessions`, `/resume`, `/rounds`, …
|
||||
- **`plyngent providers`**: list config providers.
|
||||
- **`plyngent config path|edit`**: print or open config in `$EDITOR` (`shlex`-split, e.g. `codium --wait`).
|
||||
- If no providers and `$EDITOR` is set, chat/providers prompt to edit config then reload.
|
||||
- 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`).
|
||||
- Tools default on (`--tools` / `--no-tools`); workspace defaults to cwd; `--max-rounds` default 32.
|
||||
- Readline/editline: Tab completion; input history file under platformdirs user data (`repl_history`).
|
||||
|
||||
### Composition utility: `Forward` descriptor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user