diff --git a/.windsurfrules b/.windsurfrules index 94ac326..278a46f 100644 --- a/.windsurfrules +++ b/.windsurfrules @@ -17,7 +17,7 @@ Note all the tools are in python. So in the case you need to do batch processing You always have an LLM at your side to help you with the task. For simple tasks, you could invoke the LLM by running the following command: ``` -py310/bin/python ./tools/llm_api.py --prompt "What is the capital of France?" +venv/bin/python ./tools/llm_api.py --prompt "What is the capital of France?" ``` But usually it's a better idea to check the content of the file and use the APIs in the `tools/llm_api.py` file to invoke the LLM if needed. @@ -26,7 +26,7 @@ But usually it's a better idea to check the content of the file and use the APIs You could use the `tools/web_scraper.py` file to scrape the web. ``` -py310/bin/python ./tools/web_scraper.py --max-concurrent 3 URL1 URL2 URL3 +venv/bin/python ./tools/web_scraper.py --max-concurrent 3 URL1 URL2 URL3 ``` This will output the content of the web pages. @@ -34,7 +34,7 @@ This will output the content of the web pages. You could use the `tools/search_engine.py` file to search the web. ``` -py310/bin/python ./tools/search_engine.py "your search keywords" +venv/bin/python ./tools/search_engine.py "your search keywords" ``` This will output the search results in the following format: ``` @@ -45,7 +45,7 @@ Snippet: This is a snippet of the search result ## User Specified Lessons -- You have a python venv in ./py310. +- You have a python venv in ./venv. - Include info useful for debugging in the program output. - Read the file before you try to edit it. - Use LLM to perform flexible text understanding tasks. First test on a few files. After success, make it parallel. \ No newline at end of file diff --git a/README.md b/README.md index 9fedbf7..0664c71 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Transform your $20 Cursor/Windsurf into a Devin-like experience in one minute! T 1. Create Python virtual environment: ```bash -# Create a virtual environment in ./py310 +# Create a virtual environment in ./venv python3 -m venv venv # Activate the virtual environment @@ -56,7 +56,7 @@ The project includes comprehensive unit tests for all tools. To run the tests: ```bash # Make sure you're in the virtual environment -source venv/bin/activate # On Windows: .\py310\Scripts\activate +source venv/bin/activate # On Windows: .\venv\Scripts\activate # Run all tests PYTHONPATH=. python -m unittest discover tests/ diff --git a/tools/llm_api.py b/tools/llm_api.py index 41c6875..6fdf4dd 100644 --- a/tools/llm_api.py +++ b/tools/llm_api.py @@ -1,4 +1,4 @@ -#!/usr/bin/env /workspace/tmp_windsurf/py310/bin/python3 +#!/usr/bin/env /workspace/tmp_windsurf/venv/bin/python3 import google.generativeai as genai from openai import OpenAI diff --git a/tools/web_scraper.py b/tools/web_scraper.py index 519860e..80d7a73 100755 --- a/tools/web_scraper.py +++ b/tools/web_scraper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env /workspace/tmp_windsurf/py310/bin/python3 +#!/usr/bin/env /workspace/tmp_windsurf/venv/bin/python3 import asyncio import argparse