summaryrefslogtreecommitdiffstats
path: root/src/repl
AgeCommit message (Collapse)AuthorLines
2023-10-30fix: bugs between sesison/role (#178)sigoden-2/+2
2023-10-30feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)sigoden-15/+1
2023-10-30chore: remove unnecessary clippy macrossigoden-6/+0
2023-10-30feat: support textwrap (#171)sigoden-40/+17
* feat: support textwrap * improve cmd_render_stream * done cmd_render_stream * add `-w` alias to `--wrap` * done repl_render_stream * add `config.wrap_code` * remove cached config.wrap_width * fix unxpected duplicate lines on kitty * refactor markdown render * improve render * fix test
2023-10-29chore: improve code quanitysigoden-2/+2
2023-10-28feat: enhance session/conversation (#162)sigoden-27/+31
* feat: enhance session/conversation * updates * updates * cut version v0.9.0-rc2 * add .session name completion
2023-10-27fix: .copy don't works on some linux distro (#161)sigoden-4/+18
2023-10-27feat: change config.vi_keybindings to config.keybindings (#158)sigoden-1/+1
2023-10-27chore: change left-prompt for conversation (#157)sigoden-1/+1
2023-10-27fix: parse command fails if command following newline (#153)sigoden-19/+13
2023-10-26feat: add .edit command for multi-line editing (#151)sigoden-19/+30
2023-10-26refactor: improve code quanitysigoden-2/+3
2023-10-26feat: add .read command (#145)Leo Bergnéhr-1/+15
2023-10-26refactor: improve code quanitysigoden-12/+6
remove tokio::runtime::Runtime from client
2023-10-26feat: support multi bots and custom url (#150)sigoden-6/+6
2023-10-24feat: suppport vi keybindings (#148)sigoden-7/+21
2023-10-24feat: use backslash at end of line for multiline text (#147)sigoden-57/+2
BREAKING CHANGE: use backslash at end of line for multiline text ``` 〉.set dry_run true 〉abc \ def \ ijk >>> The following message consumes 12 tokens. abc def ijk ``` Deprecate old {}/() multi-line editing
2023-10-17chore: update depssigoden-3/+3
2023-07-10fix: minor code cleanup and pedantic lints (#134)Anthony Rubick-41/+45
2023-05-04feat: add `.copy` command (#119)sigoden-2/+14
2023-05-04feat: add `config.auto_copy` (#102)shane s-0/+1
* added config option to copy all ChatGPT output to clipboard * formatted with * updates --------- Co-authored-by: sigoden <sigoden@gmail.com>
2023-05-04chore: trivial updatessigoden-1/+1
2023-05-04feat: support backeted paste (#117)sigoden-3/+6
2023-03-20feat: check token usage in dry_run mode (#82)sigoden-0/+1
2023-03-16feat: support multiple models (#71)sigoden-4/+14
2023-03-13feat: support role args (#69)sigoden-1/+2
* feat: support role args We can use role args to pass some additional arguments to the prompt. ``` - name: convert:json:yaml prompt: convert __ARG1__ below to __ARG2__ ``` `:json:yaml` is `role args`. It has two args: - arg1 `json`, it will replace __ARG1__ in prompt - arg2 `yaml`, it will replace __ARG2__ in prompt ``` 〉.role convert:json:yaml name: convert:json:yaml prompt: convert json below to yaml temperature: null 〉.role convert:yaml:json name: convert:yaml:json prompt: convert yaml below to json temperature: null ``` different role args, will generate different prompts. * small updates
2023-03-12chore: optimize readline multilinesigoden-4/+66
2023-03-11feat: add support for NO_COLOR (#67)sigoden-47/+164
2023-03-11feat: support light theme (#65)sigoden-7/+28
There are two ways to enable the light theme: - add `light_theme: true` to config.yaml - use `AICHAT_LIGHT_THEME=true` env var
2023-03-11feat: provide `--prompt` for adding a prompt from cli (#62)sigoden-1/+1
2023-03-10chore: update `.help` output textsigoden-2/+6
2023-03-10feat: type `{` `[` `(` to enter multi-line editing mode (#58)sigoden-88/+80
Abandon `.editor` command, it's too complicated.
2023-03-10chore: improve code quality, omit head 2 newlines in handler but in not clientsigoden-1/+4
2023-03-10fix: forbid .clear role in middle of conversationsigoden-1/+1
2023-03-10chore: improve code quality, split rep/prompt.rs from repl/init.rssigoden-62/+72
2023-03-09feat: add remain tokens indicator and max tokens guard (#50)sigoden-3/+8
2023-03-09fix: abort by ctrlc unexpectedly prints error message (#49)sigoden-4/+15
2023-03-09feat: support conversation (#48)sigoden-17/+33
2023-03-09feat: add role info to readline indicator (#47)sigoden-16/+57
``` coder〉 ```
2023-03-09refactor: imports order and groupsigoden-7/+6
2023-03-09refactor: replace Arc<Refcell<Config>> with Arc<Mutex<Config>> (#46)sigoden-8/+8
2023-03-09refactor: extra spaces are allowed around repl commandsigoden-4/+6
2023-03-08chore: optimize newline again (#43)sigoden-1/+13
* chore: optimize newline again command mode: should no extra newline chat mode: should have one newline * fix windows newline * fix macos newline
2023-03-08chore: improve code by getting prompt from config (#39)sigoden-2/+0
2023-03-08chore: no longer ignore any errorsigoden-5/+9
2023-03-08chore: optimize output newlinesigoden-4/+2
2023-03-08refactor: replace dump with print_now! (#35)sigoden-28/+31
2023-03-08fix: repl set save true not work if not rerun(#34)sigoden-20/+6
2023-03-07feat: command mode supports stream out (#31)sigoden-34/+19
* feat: command mode supports stream out * update cli
2023-03-07refactor: adjust repl (#30)sigoden-38/+35
- abandon .copy - rename .multiple => .editor - if command successed, do not output `Done` - if command failed, output `Error: <error message>`