Commit graph

164 commits

Author SHA1 Message Date
Paul Gauthier
d03a209ed0 WIP: Added file creation and loading messages 2023-05-08 20:42:38 -07:00
Paul Gauthier
d279f9751f lint 2023-05-08 20:31:01 -07:00
Paul Gauthier
aba0b96904 Moved new imports to the top of the file. 2023-05-08 17:37:42 -07:00
Paul Gauthier
06351d3205 Handle openai.error.RateLimitError and retry requests with a delay. 2023-05-08 17:36:53 -07:00
Paul Gauthier
a85cc59120 Added saved_message variable to tell gpt the git hash/msg 2023-05-08 17:35:46 -07:00
Paul Gauthier
e5cbc5cc4c Refactor commit method to accept history parameter. 2023-05-08 17:21:36 -07:00
Paul Gauthier
8b920f778e show hash and message on commit 2023-05-08 17:17:41 -07:00
Paul Gauthier
e2e21fc68e Added ability to customize commit message when prompted. 2023-05-08 17:17:02 -07:00
Paul Gauthier
4be0c6945b Refactor Confirm.ask message in coder.py. 2023-05-08 17:12:54 -07:00
Paul Gauthier
e162f053c8 Print diffs and commit message separately. 2023-05-08 17:11:20 -07:00
Paul Gauthier
ea63f9b31f Add dump function call to main function. 2023-05-08 17:06:02 -07:00
Paul Gauthier
a096c6e5e4 Add --commit flag to commit dirty files without confirmation 2023-05-08 17:04:49 -07:00
Paul Gauthier
f9569e7645 Added ability to commit only dirty files. 2023-05-08 17:00:15 -07:00
Paul Gauthier
e824dd1c68 wip commit 2023-05-08 16:55:15 -07:00
Paul Gauthier
4311b2117a fixed pattern to handle files without extensions 2023-05-08 14:28:37 -07:00
Paul Gauthier
c02501d690 commit wip 2023-05-08 14:16:22 -07:00
Paul Gauthier
1dc8b3cd31 fix send() output 2023-05-08 11:44:51 -07:00
Paul Gauthier
0f040949c4 commit wip 2023-05-08 11:41:51 -07:00
Paul Gauthier
b0d2fafdd5 commit wip 2023-05-08 10:41:54 -07:00
Paul Gauthier
71103dd87f red 2023-05-08 10:32:17 -07:00
Paul Gauthier
387da4beab cleanup 2023-05-08 10:30:17 -07:00
Paul Gauthier
502d6b22d4 fixed regex 2023-05-08 10:23:07 -07:00
Paul Gauthier
557bf5ae76 prompt for new files 2023-05-08 10:17:42 -07:00
Paul Gauthier
1b72656618 Tighter regex to find the filename 2023-05-08 09:18:14 -07:00
Paul Gauthier
943a789874 added --apply arg 2023-05-08 09:05:12 -07:00
Paul Gauthier
8ac27839df Gracefully handle ^C and let gpt see that the user interrupted it 2023-05-08 08:49:28 -07:00
Paul Gauthier
e1fd8b0edc fully implement --no-pretty 2023-05-08 08:29:14 -07:00
Paul Gauthier
936c5043fa use colorama to work around buggy rich input 2023-05-08 08:13:52 -07:00
Paul Gauthier
5ec57a221b switch to --no-colorize 2023-05-08 07:50:44 -07:00
Paul Gauthier
e6137a78cf added --colorize 2023-05-08 07:49:03 -07:00
Paul Gauthier
ef3a5eedbe added --colorize 2023-05-08 07:48:19 -07:00
Paul Gauthier
e01d05c614 More pretty 2023-05-07 22:48:51 -07:00
Paul Gauthier
008bb1cffa try and better parse the new prettier quoted ORIGINAL/UPDATED blocks 2023-05-07 22:23:39 -07:00
Paul Gauthier
1d0d3c700e added flake8 2023-05-07 22:13:57 -07:00
Paul Gauthier
6a87dc6037 prettier console and colors 2023-05-07 22:04:42 -07:00
Paul Gauthier
8fa8f6560d more prompt engineering nonsense 2023-05-07 21:19:21 -07:00
Paul Gauthier
1313a3f36b Add a system prompt to remind gpt about the output format 2023-05-07 21:04:04 -07:00
Paul Gauthier
257b58ba86 note all file edits in the chat history, apart from the message with the current file contents 2023-05-07 21:00:51 -07:00
Paul Gauthier
e9f0c0ced2 different user msgs for initial, local and gpt edits 2023-05-07 20:40:17 -07:00
Paul Gauthier
d61ab51a74 black 2023-05-07 20:24:59 -07:00
Paul Gauthier
eb79dd2760 cleanup 2023-05-07 20:22:37 -07:00
Paul Gauthier
2b76aa0153 straight port of file change camping from camp-on-files 2023-05-07 16:04:42 -07:00
Paul Gauthier
9380d11d29 added argparse and -3 2023-05-07 15:46:43 -07:00
Paul Gauthier
16d3ae0bf9 create empty file 2023-05-06 10:57:32 -07:00
Paul Gauthier
cfd415c8f2 Handle the case of first populating an empty file 2023-05-06 10:32:52 -07:00
Paul Gauthier
d50b4c4de2 gpt-4 2023-05-02 19:31:15 -07:00
Paul Gauthier
65d118e64b gpt4, disabled stopping generation if ``` detected 2023-04-29 15:59:28 -07:00
Paul Gauthier
9e4ba5ee4b fixed regex 2023-04-19 06:17:52 -07:00
Paul Gauthier
4840cb0966 ugh 2023-04-11 13:08:21 -07:00
Paul Gauthier
4feb57e9c9 noop 2023-04-11 12:53:56 -07:00