184 Commits

Author SHA1 Message Date
Jinglei Ren
fdc65c998c Refine comments 2023-05-28 08:18:14 +08:00
Jinglei Ren
6ccfa14824 Rename 'Setted' to 'Set' 2023-05-28 07:54:53 +08:00
Jinglei Ren
5f438c0b6c
Replace 'dc-' with 'DC.' in historyMessages.ts
Update related message text as well.
2023-05-28 07:43:41 +08:00
bobo.yang
dbc0b46bd1 Improve showDiff.ts functionality and readability
- Add fs and util imports for file handling.
- Refactor diffView function to support tarFile parameter.
- Implement getFileContent function for reading file content.
- Update getNewCode function to handle message.fileName.
- Adjust showDiff and blockApply functions to use message.fileName.
2023-05-25 14:13:30 +08:00
bobo.yang
08d4eedaa9 Add topic management features to DevChat extension
- Implement Topic and TopicManager classes.
- Add TopicTreeDataProvider and TopicTreeItem classes.
- Register new commands for topic management.
- Update package.json with new commands and dependencies.
2023-05-24 13:04:15 +08:00
bobo.yang
daf106c629 add regeneration message 2023-05-23 11:20:23 +08:00
bobo.yang
42fec8a6cc update handler to user stop message 2023-05-23 11:20:17 +08:00
bobo.yang
25915cec29 update apply diff logic 2023-05-23 08:59:42 +08:00
Jinglei Ren
bc9bf7ff5b
Update historyMessages.ts 2023-05-18 22:35:07 +08:00
Jinglei Ren
188690ca38
Update historyMessages.ts 2023-05-18 22:28:38 +08:00
bobo.yang
c890db19b3 add command to commit all changes 2023-05-18 16:44:08 +08:00
bobo.yang
219a69015e apply diff actions to source file 2023-05-18 15:25:46 +08:00
bobo.yang
0a8873333c Add diff view and apply code changes functionality
- Implement getDocumentText function to retrieve text from the editor
- Update diffView function to handle temp files and diff view
- Add getNewCode function to handle code changes
- Implement applyCodeChanges and isValidActionString functions
2023-05-18 08:57:13 +08:00
bobo.yang
ec700c710d Improve handling of missing or invalid OPENAI_API_KEY
This commit enhances the handling of missing or invalid OPENAI_API_KEY
by adding validation checks and providing clear error messages to the
user. It also stores the valid API key in the secret storage and
displays a welcome message when the key is set correctly.
2023-05-17 16:52:52 +08:00
bobo.yang
87e044e396 save 2023-05-17 16:18:04 +08:00
bobo.yang
0742e54f98 Add welcome.html for displaying when no Git repo is open
This commit adds a new welcome.html file to display a message to the
user when no Git repository is open. The message informs the user that
DevChat is designed for answering questions about Git repositories and
asks them to open a Git repository folder to start using DevChat.
2023-05-16 22:06:43 +08:00
bobo.yang
2f7d3a99a2 open DevChat by sidebar 2023-05-16 14:35:01 +08:00
bobo.yang
0056c3ce52 don't return error while user stop devchat 2023-05-11 14:51:18 +08:00
bobo.yang
93714a2255 filter ``\ncommitmsg to ``commitmsg 2023-05-11 10:26:13 +08:00
bobo.yang
5c7c273b20 reg message type info for debug 2023-05-10 17:56:56 +08:00
bobo.yang
a59ee8f9fd fix instruction path error 2023-05-10 15:57:02 +08:00
bobo.yang
08be9a52dc commitmsg
Add configuration options for log count and skip

- Added new configuration options in package.json for maxLogCount and logSkip
- Updated historyMessages.ts to handle the new configuration options
- Modified devchat.ts to use the new configuration options when fetching logs
2023-05-09 20:46:57 +08:00
bobo.yang
2624d2f77c Merge branch 'main' of https://github.com/covespace/devchat-vscode 2023-05-09 17:23:38 +08:00
bobo.yang
4154af657b commitmsg
Enhance loadHandlers.ts with detailed comments

- Add comments to describe the purpose of each registered handler
- Explain the response messages for each handler
2023-05-09 17:17:31 +08:00
bobo.yang
36bef1c8ea Add message history to chat panel
- Create MessageHistory class in src/util/messageHistory.ts
- Add message history to sendMessage function in src/handler/sendMessage.ts
- Add message history to ChatPanel class in src/panel/chatPanel.ts
- Update parent hash handling in sendMessage function
2023-05-09 16:05:49 +08:00
bobo.yang
95bb1161f1 Add stopDevChat function and move spawnAsync to DevChat class
- Import stopDevChat in loadHandlers.ts and register it as a handler
- Move spawnAsync function from devchat.ts to DevChat class as a method
- Add stop method to DevChat class to kill the child process
- Update sendMessage.ts to use a single instance of DevChat
2023-05-09 14:08:18 +08:00
bobo.yang
13c4453651 Refactor sendMessage and improve DevChat response handling
- Import ChatResponse from DevChat in sendMessage.ts
- Update sendMessage function to handle parent_hash and partial responses
- Refactor DevChat.chat to parse response data and handle partial stdout
- Remove unused lastPromptHash variable
2023-05-09 13:24:33 +08:00
bobo.yang
59d1a0eb3e add log 2023-05-09 10:34:33 +08:00
bobo.yang
93b1939bc3 fix parent hash error 2023-05-08 16:57:20 +08:00
bobo.yang
84c9852167 apply code to specified file 2023-05-08 14:03:29 +08:00
bobo.yang
5ed230a071 add file field for contextDetailResponse message 2023-05-08 13:16:34 +08:00
bobo.yang
22e334e1f6 save context as json 2023-05-08 12:48:59 +08:00
bobo.yang
4465d75c5a filter invalid editor 2023-05-08 12:09:52 +08:00
bobo.yang
bac73dadb1 refactor code 2023-05-05 21:27:40 +08:00