57 Commits

Author SHA1 Message Date
bobo.yang
86f21ef03e support more llm models 2023-09-26 14:46:14 +08:00
bobo.yang
21b07f44db update api key setting 2023-09-22 23:08:19 +08:00
bobo.yang
3d1229784f set claude-2 as default model 2023-09-15 13:28:17 +08:00
bobo.yang
452e8c3757 load api key from command secret and env 2023-09-14 20:17:55 +08:00
bobo.yang
0b4e2c25ed fix getUserAccessKey error 2023-09-14 16:44:41 +08:00
bobo.yang
a2699cfa64 set default model for first install devchat 2023-09-14 16:44:41 +08:00
bobo.yang
78804f3386 add sample config to guide how to config devchat 2023-09-13 10:08:16 +08:00
bobo.yang
dd1bef5539 Add function to update configuration for version 0.9.12
- Added a new function `configUpdateTo_0912` to update the configuration for the 'devchat' extension.
- The function retrieves the 'DevChat', 'Api_Key_OpenAI', and 'API_ENDPOINT' configurations and creates a new configuration object.
- If the 'Model.gpt-4' configuration does not exist and the new configuration object is not empty, it updates the 'Model.gpt-3-5', 'Model.gpt-3-5-16k', and 'Model.gpt-4' configurations.
- The function is called during the activation of the extension.
2023-09-13 10:08:16 +08:00
bobo.yang
650281059c reg command to update valid chat models 2023-09-13 10:08:16 +08:00
bobo.yang
a7bb815df5 Use access key set by command while no valid key 2023-09-13 10:08:16 +08:00
bobo.yang
63fbb1289d Add InstallCommands functionality to DevChat
- Added a new command "InstallCommands" to the package.json file.
- Created a new function "registerInstallCommandsCommand" in commands.ts to handle the execution of the new command.
- The function checks for a directory in the user's home directory, if it exists it performs a git pull, if not it clones a git repository.
- The function is registered in the extension.ts file.
- Added a function "sendCommandListByDevChatRun" in regCommandList.ts to send the command list.
- The new command is executed in the statusBarView.ts file.
- Updated the InputMessage component to register a handler for the 'regCommandList' message.
- Updated the InputStore to handle the new commands and removed the old "regCommandMenus" function.
2023-08-30 16:39:47 +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
6713a98df9 Add commands for DevChat
- Added commands for adding context and summary to DevChat.
- Updated the package.json file to include the new commands.
- Added command handlers for indexing and describing codebase summaries.
- Created a new file, askcode_summary_index.py, for indexing and describing codebase summaries.
- Added a new setting file, _setting_.json, for the summary action in the auto_command workflow.
- Added a new handler file, handler.py, for the summary action in the auto_command workflow.
2023-08-21 11:52:00 +08:00
bobo.yang
6b96d911f0 Implement updateLastModifyTime function and status bar item
- Added a new function updateLastModifyTime in askCodeUtil.ts to update the last modification time of files.
- The function ignores hidden files and directories (those starting with '.').
- The function creates the directory if it does not exist before writing the file.
- Added a new status bar item for AskCode in statusBarView.ts.
- The status bar item checks the indexing status every 10 seconds and updates its tooltip and command accordingly.
2023-08-21 11:52:00 +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
e2e761fd16 Separate handling for OpenAI and DevChat API keys
- Renamed and split the API key settings in package.json into DevChat and OpenAI specific keys.
- Updated the commands for setting API keys to handle OpenAI and DevChat keys separately.
- Modified the ApiKeyManager to handle and validate OpenAI and DevChat keys separately.
- Updated the status bar view to use the DevChat access key command.
- Adjusted the tests to reflect the new handling of API keys.
2023-08-03 15:09:34 +08:00
bobo.yang
892c3638cc Add command to set Python Path in DevChat configuration
- Added a new command 'devchat.PythonPath' in commands.ts.
- This command prompts the user to input a Python Path and updates the DevChat configuration with the provided path.
- The new command is registered in the extension.ts file.
2023-07-06 07:42:44 +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
562a125902 handle vscode 2023-05-31 16:10:53 +08:00
bobo.yang
cad2bbb69d refactor code 2023-05-31 16:10:53 +08:00
bobo.yang
44f3db43b2 Truncate topic label to 20 characters in delete confirmation dialog
- Check if item.label exists and use item.label.label or 'Unknown Topic'.
- Truncate the label to 20 characters and add ellipsis if needed.
- Update the confirmation message to display the truncated label.
2023-05-28 22:01:32 +08:00
bobo.yang
ceafac1362 Add confirmation dialog before deleting a topic
- Replace the previous deleteTopic command with a new callback function.
- Use vscode.window.showWarningMessage to display a confirmation dialog.
- Execute the delete operation only if the user confirms.
2023-05-28 21:46:44 +08:00
bobo.yang
2393091dc1 Add isVersionChangeCompare flag to extension.ts
- Added a new flag isVersionChangeCompare to prevent duplicate version checks.
- Updated the condition to check for version changes only when the flag is false.
2023-05-28 14:30:39 +08:00
bobo.yang
f326cf9ef3 Update key names in secretStorage
- Replace "devchat_version_old" with "DevChatVersionOld".
- Update related variable names and function calls.
2023-05-28 14:03:03 +08:00
boob.yang
23277e2b85
Merge pull request #118 from covespace/Change-access-key-prefix-'dc-'-to-'DC.'
Change access key prefix 'dc ' to 'dc.'
2023-05-28 13:13:30 +08:00
bobo.yang
a9fa1c7abb Improve secretStorage usage and pipx installation
- Add await keyword to secretStorage.store call in extension.ts.
- Set statusBarItem.command to undefined instead of an empty string.
- Force pipx installation in install.py by adding --force flag.
2023-05-28 09:58:53 +08:00
Jinglei Ren
50b8ae8185 Unify naming convension ('openai'/'Openai', no 'openAi'/'openAI') 2023-05-28 08:32:12 +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
a1294110f0 update devchat while vscode update 2023-05-19 20:07:34 +08:00
bobo.yang
94413e6f1f install by pipx 2023-05-19 13:09:58 +08:00
bobo.yang
846bcecd71 update tip info 2023-05-19 09:20:48 +08:00
bobo.yang
31a15216a5 fix pip install bug 2023-05-18 23:02:19 +08:00
bobo.yang
e3c9f69822 Update package version and improve installation process
- Bump package version from 0.0.34 to 0.0.38.
- Change pip3 install command to include --upgrade flag.
- Add check for DevChatPath configuration before setting status to ready.
2023-05-18 22:25:29 +08:00
bobo.yang
219a69015e apply diff actions to source file 2023-05-18 15:25:46 +08:00
bobo.yang
0b6d783fb1 Update DevChat commands and webview options
- Change DevChat.OPENAI_API_KEY title and add category
- Replace devchat.openChatPanel command with devchat-view.focus
- Update statusBarItem.command to devcaht.onStatusBarClick
- Set webviewOptions with retainContextWhenHidden: true for DevChatViewProvider
2023-05-16 17:49:13 +08:00
bobo.yang
6695bf1ae7 save work 2023-05-16 14:35:37 +08:00
bobo.yang
2f7d3a99a2 open DevChat by sidebar 2023-05-16 14:35:01 +08:00
bobo.yang
fa3c0a38be Support status item action 2023-05-16 14:24:24 +08:00
bobo.yang
7fcf57772e Update package.json and commands for Chinese support
- Add activationEvents to package.json for better extension activation
- Add Chinese commands for addConext, askForCode, and askForFile
- Register Chinese commands in contributes/commands.ts
- Set isChineseLocale context based on the user's locale
2023-05-16 10:40:57 +08:00
bobo.yang
eca629b4f3 check dependence only once 2023-05-11 10:27:54 +08:00
bobo.yang
da89e38ffa User utf8 as file code. Copy .chat . 2023-05-10 18:30:17 +08:00
bobo.yang
7f2a869f3f Update .gitignore and refactor code
- Add DevChat related files to .gitignore
- Refactor package.json and settings
- Update commandManager.ts and remove example commands
- Implement customCommand.ts for handling custom commands
- Remove commitMessageCommand.ts and example commands
- Update chatConfig.ts and chatPanel.ts for new command handling
- Add new workflows for code and commit_message
2023-05-10 14:31:17 +08:00
bobo.yang
2eca8ee438 create log channel 2023-05-09 08:52:07 +08:00
bobo.yang
bac73dadb1 refactor code 2023-05-05 21:27:40 +08:00
bobo.yang
0d59445cef add context implementation 2023-05-04 17:47:57 +08:00
bobo.yang
2799d30c08 don't copy instructions again 2023-05-04 17:46:06 +08:00
bobo.yang
06215450ad support user definded instructions 2023-05-04 17:46:06 +08:00
bobo.yang
101638b161 add doCommit message 2023-05-04 17:38:07 +08:00
bobo.yang
ed4b55a8f3 support commitmsg code block 2023-05-04 17:38:07 +08:00