summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
AgeCommit message (Collapse)AuthorLines
2024-04-20feat: ctrlc won't exit repl and remove `ctrlc_exit` config (#419)sigoden-18/+3
2024-04-18feat: add config `buffer_editor` (#417)sigoden-2/+2
2024-04-10feat: `-f/--file` take one value and no enter REPL (#399)sigoden-1/+1
2024-04-09feat: use ctrl+enter to enter newline in REPL (#394)sigoden-2/+7
2024-04-08refactor: change ctrlc message textsigoden-4/+8
2024-04-09feat: add `ctrlc_exit` option to control REPL exit by ctrl+c (#391)sigoden-3/+4
2024-03-27feat: add repl command `.save session` (#382)sigoden-4/+26
2024-03-27refactor: config add in_repl property (#381)sigoden-1/+3
2024-03-27feat: add `save_session` config item and `--save-session` cli option (#370)Patrick Jackson-1/+1
* fix: sessions should save when exiting * feat: improve save sessions * feat: do not allow saving the temp session name * feat: allow creating a session without interactive use * feat: add `save_session` config and `--save-session` option --------- Co-authored-by: sigoden <sigoden@gmail.com>
2024-03-17refactor: cleanup the deprecated repl commands (#355)sigoden-12/+0
2024-03-10feat: allow use of temporary role in a session (#348)sigoden-26/+15
2024-03-09fix: erratic behaviour when using temp role in a session (#347)sigoden-9/+14
2024-03-07chore: fix typossigoden-1/+1
2024-03-04feat: compress session automaticlly (#333)sigoden-0/+20
* feat: compress session automaticlly * non-block * update field description * set compress_threshold * update session::clear_messages * able to override session compress_threshold * enable compress_threshold by default * make session compress_threshold optional
2024-03-03feat: add `.clear messages` to clear session messages (#332)sigoden-3/+10
2024-03-03chore: improve code quanity on ReplCommand/Statesigoden-34/+22
2024-03-02refactor: auto_copy works when executing command (#328)sigoden-4/+2
2024-02-23chore: update deps and readmesigoden-1/+1
2024-02-20feat: edit current prompt on $VISUAL/$EDITOR (#314)sigoden-1/+10
2024-01-13feat: supports model capabilities (#297)sigoden-2/+3
1. automatically switch to the model that has the necessary capabilities. 2. throw an error if the client does not have a model with the necessary capabilities
2024-01-13fix: deprecation warning of .read command (#296)Nicola Coretti-1/+1
2023-11-27feat: allow shift-tab to select prev in completion menu (#254)sigoden-0/+5
2023-11-27feat: state-aware completer (#251)sigoden-18/+66
2023-11-27chore: upgrade deps (#250)sigoden-3/+2
2023-11-27feat: support vision (#249)sigoden-26/+20
* feat: support vision * clippy * implement vision * resolve data url to local file * add model openai:gpt-4-vision-preview * use newline to concate embeded text files * set max_tokens for gpt-4-vision-preview
2023-11-13feat: extend `.read` to support files and messages (#242)sigoden-8/+21
2023-11-08refactor: improve render (#235)sigoden-14/+3
* refactor: redesign render - if stdout is not terminal, just write reply text to stdout - rename repl_render_stream to markdown_stream - deprecate cmd_render_stream - use raw_stream to just print streaming reply text * optimize rendering error * optimize render_stream
2023-11-08refactor: use ::: as multipline input indicator, deprecate """ (#232)sigoden-4/+4
2023-11-08refactor: output info includes auto_copy and light_theme (#230)sigoden-1/+1
2023-11-07feat: temporarily use a role to send a message (#227)sigoden-4/+18
2023-11-07feat: deprecate `.edit`, use """ instead (#225)sigoden-20/+27
2023-11-07feat: add `config.prelude` to allow setting default role/session (#224)sigoden-1/+1
2023-11-07fix: unable to build on android using termux (#222)sigoden-14/+3
2023-11-07refactor: use &GlobalConfig to avoid clone (#217)sigoden-5/+5
2023-11-02chore: add one newline when caught repl errorsigoden-0/+1
2023-11-02refactor: improve repl completer (#199)sigoden-45/+45
2023-11-02refactor: improve code quanity (#197)sigoden-7/+5
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-56/+221
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-10-31feat: support custom theme (#187)sigoden-1/+0
2023-10-30feat: add `.info role` and `.info session` (#183)sigoden-11/+18
2023-10-30feat: deprecate .clear command (#180)sigoden-28/+38
2023-10-30feat: deprecate history file (#179)sigoden-17/+2
2023-10-30fix: bugs between sesison/role (#178)sigoden-1/+1
2023-10-30feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)sigoden-10/+1
2023-10-29chore: improve code quanitysigoden-2/+2
2023-10-28feat: enhance session/conversation (#162)sigoden-6/+7
* feat: enhance session/conversation * updates * updates * cut version v0.9.0-rc2 * add .session name completion
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-7/+18
2023-10-26refactor: improve code quanitysigoden-1/+1
2023-10-26feat: add .read command (#145)Leo Bergnéhr-1/+6