29 Commits

Author SHA1 Message Date
bobo.yang
1574253e85 Implement various enhancements and fixes across multiple files
- In runVSCodeCommand.ts, added a condition to convert the first argument to a Uri if the command is 'vscode.open'.
- In sendMessage.ts, added logic to prepend the previous command to the message text if the message starts with '/'.
- In commonUtil.ts, modified the spawnAsync function to replace arguments starting with '$' with their corresponding environment variable values.
- In handler.py, added code to create parent directories for a new file if they don't exist.
2023-08-31 15:15:12 +08:00
Rankin Zheng
70887c471d
Merge pull request #274 from devchat-ai/update-ui-text
Refine context command descriptions
2023-08-30 21:18:54 -05:00
bobo.yang
2c525de04d move command to independent git repo 2023-08-31 09:55:39 +08:00
Jinglei Ren
91d2fd8549 Refine context command descriptions 2023-08-29 23:20:10 +08:00
bobo.yang
158039ff37 Remove unnecessary command 2023-08-25 10:30:14 +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
94c0b39950 Refactor handler.py
- Move the 'get_app_data_dir' function to the top of the file.
- Add comments to explain the purpose of the function.
- Initialize the 'supportedFileTypes' variable.
- Update the file path for 'STORAGE_FILE' to use the 'get_app_data_dir' function.
2023-08-21 11:52:00 +08:00
bobo.yang
cea47a47a3 Rename and update 'query_data' action to 'ask_codebase'
- Renamed 'query_data' action to 'ask_codebase' in the workflows.
- Updated the description of the action to "Ask question about codebase".
- Updated the action name in the handler to 'ask_codebase'.
2023-08-21 11:52:00 +08:00
bobo.yang
b837365427 Add PythonVirtualEnv configuration and improve error handling
- Added PythonVirtualEnv configuration to customAction.ts.
- Improved error handling in doCommand.ts by using logger instead of console.error.
- Updated sendMessage.ts to handle askCode command and improved error handling.
- Added environment variables for OPENAI_API_KEY and OPENAI_API_BASE in commonUtil.ts.
- Created new action 'query_data' in _setting_.json and its handler in handler.py.
2023-08-21 11:52:00 +08:00
bobo.yang
c794e27c02 Update and add new actions in auto_command workflow
- Renamed and updated the get_project_tree action to use a Python handler.
- Added a new action load_file to load file content with a Python handler.
- Renamed and updated the new_document action to new_file with a Python handler.
- Added a new action search_text to search text in all files within the project.
- Removed the old load_file action from the extension_demo workflow.
2023-08-09 00:16:03 +08:00
bobo.yang
598f91f5ea Update and add new action settings in workflows
- Added new action setting 'finish_task' in auto_command workflow.
- Updated the description in 'new_file' action setting in auto_command workflow.
- Modified 'run_shell_file' action setting in auto_command workflow to clarify it runs a shell script file.
- Added new action settings 'get_project_tree' and 'load_file' in extension_demo workflow.
2023-07-24 00:11:56 +08:00
bobo.yang
cda646f830 Support GPT-4-0613 function calls 2023-07-24 00:11:56 +08:00
bobo.yang
3363250305 Add extension creation instructions and settings
- Create _setting_.json for extension command.
- Add instruct.txt with detailed instructions for creating extensions.
- Include context, command, and action extension examples.
2023-07-24 00:11:56 +08:00
bobo.yang
2be4e52a0a Add new actions and settings for auto_command workflow
- Add new_file action for creating or replacing files.
- Add run_shell action for running shell scripts.
- Add run_shell_file action for running shell script files.
- Add update_file action for replacing file content.
- Add default command action settings for auto pattern.
2023-07-24 00:11:56 +08:00
bobo.yang
adec218709 Update instructions in code and commit_message workflows
- Clarify response guidelines in code/instruct.txt.
- Add more details to commit_message/instruct.txt.
- Emphasize the importance of diff output in <context>.
2023-06-09 11:16:12 +08:00
bobo.yang
ad9ec2291c Fix tree command in tree context _setting_.json
- Update tree command to properly exclude __pycache__ and .pytest_cache directories.
2023-06-09 10:46:44 +08:00
bobo.yang
d998dbd71d Add edit functionality to custom contexts
- Add edit property to CustomContext interface.
- Implement edit functionality in CustomContexts class.
- Update _setting_.json files for git_log_for_releasenote and tree contexts.
2023-06-09 08:56:42 +08:00
bobo.yang
59ba922472 add git log context fore relase note command 2023-06-07 08:16:22 +08:00
bobo.yang
71a3125999 add release_note command 2023-06-07 07:34:31 +08:00
bobo.yang
6d57aaeb1f add tree context 2023-06-02 13:12:23 +08:00
bobo.yang
b2ba9e148d Support env var and prompt input for command 2023-06-02 09:58:44 +08:00
bobo.yang
a3ee988167 add modify_actions command to test diff 2023-05-23 10:55:53 +08:00
bobo.yang
829be553ee remove /code_action 2023-05-19 08:56:46 +08:00
bobo.yang
ac84cb4d62 remove $ 2023-05-19 08:12:01 +08:00
bobo.yang
6a24056604 update instruction file 2023-05-19 07:38:15 +08:00
bobo.yang
5d74f87528 Update pattern values in workflow settings
- Change pattern value in _setting_.json for code workflow
- Update pattern value in _setting_.json for code_actions workflow
- Modify pattern value in _setting_.json for commit_message workflow
2023-05-18 15:38:59 +08:00
bobo.yang
219a69015e apply diff actions to source file 2023-05-18 15:25:46 +08:00
bobo.yang
537626b3c8 update devchat 2023-05-11 13:55:16 +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