diff --git a/merico/ask-code/ask-code.py b/merico/ask-code/ask-code.py index b21baa8..fcb57a8 100644 --- a/merico/ask-code/ask-code.py +++ b/merico/ask-code/ask-code.py @@ -3,10 +3,7 @@ import sys from chat.ask_codebase.chains.smart_qa import SmartQA -sys.path.append(os.path.join(os.path.dirname(__file__), "..", "libs")) -sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "libs")) - -from ide_services import IDEService # noqa: E402 +from lib.ide_service import IDEService def query(question, lsp_brige_port): diff --git a/merico/ask-code/command.yml b/merico/ask-code/command.yml index bbeece4..18cbd81 100644 --- a/merico/ask-code/command.yml +++ b/merico/ask-code/command.yml @@ -1,4 +1,8 @@ description: Ask questions about the current project's codebase, which requires proactive acquisition of additional context information to answer. input: required +workflow_python: + env_name: ask-code-123 + version: 3.11.0 + dependencies: requirements.txt steps: - - run: $command_python $command_path/ask-code.py query "$input" \ No newline at end of file + - run: $workflow_python $command_path/ask-code.py query "$input" diff --git a/merico/ask-code/prompt.txt b/merico/ask-code/prompt.txt deleted file mode 100644 index e69de29..0000000 diff --git a/merico/ask-code/requirements.txt b/merico/ask-code/requirements.txt new file mode 100644 index 0000000..2af98b1 --- /dev/null +++ b/merico/ask-code/requirements.txt @@ -0,0 +1 @@ +devchat-ask>=0.1.11,<0.2