9 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
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
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