7 Commits

Author SHA1 Message Date
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
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