22 Commits

Author SHA1 Message Date
bobo.yang
5aefba5941 chore: Optimize code completion and logging
- Refactor code completion event logging
- Add manual trigger flag to log events
- Implement message logging for code completion
- Update public workflow installation process
2024-11-26 09:42:35 +08:00
bobo.yang
a8e125afab Refactor messageHandler.ts and workflowContextHandler.ts 2024-06-17 21:33:30 +08:00
bobo.yang
87178d1e5e chore: Update logger.trace calls to improve code readability 2024-05-18 15:12:32 +08:00
Rankin Zheng
8c188c6a03 refactor: Simplify message handling in MessageHandler
- Extract message response logic into a new method shouldSendResponse
- Remove redundant try/catch blocks for parsing message text
- Improve readability and maintainability of the handleMessage method
2024-04-15 22:50:51 +08:00
bobo.yang
c52c4339e0 save work 2024-04-01 17:15:44 +08:00
bobo.yang
33a4ee14f1 refactor: Remove usage of deprecated contexts and APIs
- Comment out refDefsContext and defRefsContext usage in loadContexts
- Replace accessKey logic with defaultModel in several files
- Remove unused functions related to API key handling

Closes #286
2024-03-10 16:35:10 +08:00
bobo.yang
dc1836510d remove command and action extension 2023-11-29 23:34:15 +08:00
bobo.yang
44e786ecce remove ask-code command 2023-11-22 17:43:27 +08:00
bobo.yang
9c16bced23 Implement feature toggles for beta commands
- Added feature toggles for beta commands in the package.json file.
- Implemented dynamic registration of commands based on feature toggles.
- Added error messages for users trying to access beta commands without the correct permissions.
- Updated the version of the devchat-ask package based on the feature toggles.
- Created a new featureToggle handler to manage feature toggles.
2023-08-24 10:45:51 +08:00
bobo.yang
fd011ee265 Added AskCode functionality to DevChat
- Added new settings for Python virtual environment and supported file types in package.json.
- Added new commands for starting and stopping AskCode Index in package.json.
- Registered new 'ask-code' command in CommandManager.
- Registered AskCode Index start and stop commands in extension.ts.
- Added 'askCode' handler in loadHandlers.ts and messageHandler.ts.
- Updated messageHandler to check for '/ask-code' in message text and call 'askCode' command.
2023-08-21 11:52:00 +08:00
bobo.yang
4daca83d6b Refactor action application and error handling
- Refactored applyAction to include parentHash in the message.
- Simplified codeFileApply function by removing redundant error handling.
- Enhanced error handling in MessageHandler to include parentHash.
- Added condition to regenerate message only if autox is true.
2023-07-24 08:17:58 +08:00
bobo.yang
dbdf67d19f Implement auto execution of commands in MessageHandler
- Added a global variable 'autox' to control automatic execution of commands.
- Updated the 'sendMessage' function to handle '/autox' in the message text.
- If 'autox' is true and the message contains a command, the command is automatically executed.
- This feature will help in automating tasks and improving efficiency.
2023-07-24 00:11:56 +08:00
bobo.yang
3fc21b920e update log text 2023-06-13 10:45:11 +08:00
bobo.yang
ba097eab26 add unit tests for src 2023-05-31 16:10:53 +08:00
bobo.yang
82faf14eb6 Separate VSCode from core logic for ISSUE #125
- Extract VSCode-related code from core logic.
- Improve modularity for easier unit testing.
2023-05-31 16:10:53 +08:00
bobo.yang
15230c80a3 Refactor messageHandler to check OpenAI API key
- Import checkOpenaiApiKey function from contributes/commands.
- Update sendMessage condition to include checkOpenaiApiKey.
2023-05-28 13:12:05 +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
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
2f7d3a99a2 open DevChat by sidebar 2023-05-16 14:35:01 +08:00
bobo.yang
5c7c273b20 reg message type info for debug 2023-05-10 17:56:56 +08:00
bobo.yang
59d1a0eb3e add log 2023-05-09 10:34:33 +08:00
bobo.yang
bac73dadb1 refactor code 2023-05-05 21:27:40 +08:00