diff options
Diffstat (limited to 'continuedev')
| -rw-r--r-- | continuedev/README.md | 15 | ||||
| -rw-r--r-- | continuedev/pyproject.toml | 1 | ||||
| -rw-r--r-- | continuedev/src/continuedev/core/abstract_sdk.py | 6 | ||||
| -rw-r--r-- | continuedev/src/continuedev/core/sdk.py | 4 | ||||
| -rw-r--r-- | continuedev/src/continuedev/steps/core/core.py | 4 | 
5 files changed, 15 insertions, 15 deletions
diff --git a/continuedev/README.md b/continuedev/README.md index e27cf3ae..b7967ddd 100644 --- a/continuedev/README.md +++ b/continuedev/README.md @@ -6,13 +6,14 @@ Continue is a Python library for automating repetitive sequences of software dev  ## Continue Server -The Continue server acts as a bridge between the Continue React app and your IDE, running your recipes and acting on the codebase. Start it by running the following commands: - -- `cd continuedev` -- Make sure packages are installed with `poetry install` -- `poetry shell` -- `cd ..` -- `python3 -m continuedev.src.continuedev.server.main` +The Continue server acts as a bridge between the Continue React app and your IDE, running your recipes and acting on the codebase.  + +Start it by running the following commands: +1. `cd continuedev` +2. Make sure packages are installed with `poetry install` +3. `poetry shell` +4. `cd ..` +5. `python3 -m continuedev.src.continuedev.server.main`  ## Scripts diff --git a/continuedev/pyproject.toml b/continuedev/pyproject.toml index 83a287c8..631742ec 100644 --- a/continuedev/pyproject.toml +++ b/continuedev/pyproject.toml @@ -18,7 +18,6 @@ nest-asyncio = "^1.5.6"  websockets = "^11.0.2"  urllib3 = "1.26.15"  gpt-index = "^0.6.8" -setuptools = "^67.7.2"  posthog = "^3.0.1"  [tool.poetry.scripts] diff --git a/continuedev/src/continuedev/core/abstract_sdk.py b/continuedev/src/continuedev/core/abstract_sdk.py index 9278f873..1c800875 100644 --- a/continuedev/src/continuedev/core/abstract_sdk.py +++ b/continuedev/src/continuedev/core/abstract_sdk.py @@ -1,5 +1,5 @@  from abc import ABC, abstractmethod -from typing import Coroutine, List +from typing import Coroutine, List, Union  from .config import ContinueConfig  from ..models.filesystem_edit import FileSystemEdit @@ -45,7 +45,7 @@ class AbstractContinueSDK(ABC):          pass      @abstractmethod -    async def run(self, commands: List[str] | str, cwd: str = None): +    async def run(self, commands: Union[List[str], str], cwd: str = None):          pass      @abstractmethod @@ -57,7 +57,7 @@ class AbstractContinueSDK(ABC):          pass      @abstractmethod -    async def add_file(self, filename: str, content: str | None): +    async def add_file(self, filename: str, content: Union[str, None]):          pass      @abstractmethod diff --git a/continuedev/src/continuedev/core/sdk.py b/continuedev/src/continuedev/core/sdk.py index de14ee3c..f9f3679e 100644 --- a/continuedev/src/continuedev/core/sdk.py +++ b/continuedev/src/continuedev/core/sdk.py @@ -73,7 +73,7 @@ class ContinueSDK(AbstractContinueSDK):      async def wait_for_user_confirmation(self, prompt: str):          return await self.run_step(WaitForUserConfirmationStep(prompt=prompt)) -    async def run(self, commands: List[str] | str, cwd: str = None): +    async def run(self, commands: Union[List[str], str], cwd: str = None):          commands = commands if isinstance(commands, List) else [commands]          return await self.run_step(ShellCommandsStep(cmds=commands, cwd=cwd)) @@ -93,7 +93,7 @@ class ContinueSDK(AbstractContinueSDK):          file_edit = FileEdit.from_append(filepath, previous_content, content)          await self.ide.applyFileSystemEdit(file_edit) -    async def add_file(self, filename: str, content: str | None): +    async def add_file(self, filename: str, content: Union[str, None]):          filepath = await self._ensure_absolute_path(filename)          return await self.run_step(FileSystemEditStep(edit=AddFile(filename=filename, content=content))) diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py index d7f7a307..fdcd9837 100644 --- a/continuedev/src/continuedev/steps/core/core.py +++ b/continuedev/src/continuedev/steps/core/core.py @@ -40,10 +40,10 @@ class FileSystemEditStep(ReversibleStep):  class ShellCommandsStep(Step):      cmds: List[str] -    cwd: str | None = None +    cwd: Union[str, None] = None      name: str = "Run Shell Commands" -    _err_text: str | None = None +    _err_text: Union[str, None] = None      async def describe(self, models: Models) -> Coroutine[str, None, None]:          if self._err_text is not None:  | 
