diff --git a/.github/workflows/README.md b/.github/workflows/README.md index fda0858d6..13ed02067 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -6,7 +6,7 @@ When merging to `preview`: - all of the artifacts are downloaded (and the Apple Silicon downloaded from S3 bucket) and pushed to the store/registry all at once, as pre-releases. - the version is bumped and this change is commited to preview -# main +## main When merging to `main`: > Make sure to sh build.sh m1 and push to the S3 bucket before merging to main, so that the newest Apple Silicon binary is available to package with the extension. diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 949446156..dbf5bca77 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -58,16 +58,25 @@ jobs: with: python-version: "3.10.8" - - name: Install Pyinstaller + - name: Install dependencies run: | - pip install pyinstaller + python -m pip install --upgrade pip + pip install poetry - name: Install Dependencies run: | pip install -r server/requirements.txt - - name: Build PyInstaller Executable - run: pyinstaller run.spec + # 1.25 Publish to PyPI + + - name: Configure Poetry Token + run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + + - name: Bump the version + run: cd server && poetry version patch + + - name: Build and publish the package + run: cd server && poetry publish --build # 1.5 Place the binary in extension/exe directory - name: Make sure extension/exe directory exists @@ -96,7 +105,7 @@ jobs: path: extension/exe/run - uses: actions/upload-artifact@v2 - if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' + if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' with: name: LinuxBinary path: extension/exe/run @@ -238,7 +247,7 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "ci: 💚 Update package.json version [skip ci]" + git commit -am "ci: 🏷 Update PyPI version [skip ci]" - name: Push changes uses: ad-m/github-push-action@master @@ -265,23 +274,14 @@ jobs: name: WindowsBinary path: exe/windows - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-west-1 + # - name: Set up Python + # uses: actions/setup-python@v4 + # with: + # python-version: "3.10.8" - - name: Upload binaries to S3 (continue-server-binaries) - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read --follow-symlinks - env: - AWS_S3_BUCKET: continue-server-binaries - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: "us-west-1" - SOURCE_DIR: "exe" + # - name: Install Pyinstaller + # run: | + # pip install pyinstaller - name: Upload binaries to S3 (s3.continue.dev) uses: jakejarvis/s3-sync-action@master diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 796e65f2b..ea810aa0e 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -65,8 +65,24 @@ jobs: run: | pip install -r server/requirements.txt + - name: Install tiktoken vocab file + run: | + mkdir .tiktoken_cache + curl -o .tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 https://s3.us-west-1.amazonaws.com/s3.continue.dev/tiktoken/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 + - name: Build PyInstaller Executable - run: pyinstaller run.spec + run: pyinstaller continue_server.spec + + # 1.25 Publish to PyPI + + - name: Configure Poetry Token + run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + + - name: Bump the version + run: cd server && poetry version patch + + - name: Build and publish the package + run: cd server && poetry publish --build # 1.5 Place the binary in extension/exe directory - name: Make sure extension/exe directory exists @@ -75,36 +91,36 @@ jobs: - name: Copy binary to extension (non-Windows) run: | - cp dist/run extension/exe/run + cp dist/continue_server extension/exe/continue_server if: matrix.os != 'windows-latest' - name: Copy binary to extension (Windows) run: | - cp dist/run.exe extension/exe/run.exe + cp dist/continue_server.exe extension/exe/continue_server.exe if: matrix.os == 'windows-latest' # 1.8 Set permissions and upload binary - name: Set permissions run: | - chmod 777 extension/exe/run + chmod 777 extension/exe/continue_server - uses: actions/upload-artifact@v2 if: matrix.os == 'macos-latest' && matrix.arch == 'x64' with: name: macOSBinary - path: extension/exe/run + path: extension/exe/continue_server - uses: actions/upload-artifact@v2 - if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' + if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' with: name: LinuxBinary - path: extension/exe/run + path: extension/exe/continue_server - uses: actions/upload-artifact@v2 if: matrix.os == 'windows-latest' && matrix.arch == 'x64' with: name: WindowsBinary - path: extension/exe/run.exe + path: extension/exe/continue_server.exe # 2. Install npm dependencies - name: Use Node.js 19.0.0 @@ -163,15 +179,15 @@ jobs: # 3.5 If on Apple Silicon, download the binary from S3 bucket - name: Remove existing binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: rm extension/exe/run + run: rm extension/exe/continue_server - name: Download Apple Silicon Binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: curl -o extension/exe/run https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/run + run: curl -o extension/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/continue_server - name: Set permissions run: | - chmod -R 777 extension/exe/run + chmod -R 777 extension/exe/continue_server # 4. Package the extension - shell: pwsh diff --git a/build.cmd b/build.cmd index cedfc7696..7e3128c58 100644 --- a/build.cmd +++ b/build.cmd @@ -16,7 +16,7 @@ pip install -r server\requirements.txt pip install pyinstaller REM 4. Call PyInstaller from within the virtual environment -env\Scripts\pyinstaller run.spec +env\Scripts\pyinstaller continue_server.spec REM 5. Deactivate the virtual environment call env\Scripts\deactivate.bat diff --git a/build.sh b/build.sh index 6b811ddb4..927d22d80 100755 --- a/build.sh +++ b/build.sh @@ -17,18 +17,18 @@ pip install pyinstaller # 4. Detect M1 architecture or allow manual override if [ "$1" = "m1" ]; then echo "Building for M1 architecture" - SPEC_FILE="run.m1.spec" + SPEC_FILE="continue_server.m1.spec" elif [ "$1" = "regular" ]; then echo "Building for regular architecture" - SPEC_FILE="run.spec" + SPEC_FILE="continue_server.spec" else ARCH=$(uname -m) if [ "$ARCH" = "arm64" ]; then echo "$ARCH architecture detected, using M1 spec file" - SPEC_FILE="run.m1.spec" + SPEC_FILE="continue_server.m1.spec" else echo "$ARCH architecture detected, using regular spec file" - SPEC_FILE="run.spec" + SPEC_FILE="continue_server.spec" fi fi diff --git a/continue_server.m1.spec b/continue_server.m1.spec new file mode 100644 index 000000000..80ee652df --- /dev/null +++ b/continue_server.m1.spec @@ -0,0 +1,81 @@ +# -*- mode: python ; coding: utf-8 -*- +import certifi +import os +from PyInstaller.utils.hooks import copy_metadata + +block_cipher = None + +import subprocess +def find_package_location(package_name): + try: + # Run the 'pip show' command and capture its output + result = subprocess.run(['pip', 'show', package_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True) + output = result.stdout + + # Split the output into lines and find the 'Location' field + for line in output.splitlines(): + if line.startswith('Location:'): + # Extract the path after the 'Location:' prefix + location = line.split(':', 1)[1].strip() + return location + + except subprocess.CalledProcessError as e: + print(f"Error: {e.stderr}") + + return None + +chroma_path = find_package_location('chromadb') +chroma_toc = list(map(lambda x: (x[1], os.path.dirname(x[0])), Tree(f'{chroma_path}/chromadb/migrations', prefix="chromadb/migrations"))) + +a = Analysis( + ['continue_server.py'], + pathex=[], + binaries=[], + datas=[ + ('server/continuedev', 'continuedev'), + (certifi.where(), 'ca_bundle'), + ('.tiktoken_cache', 'tiktoken_cache') + ] + copy_metadata('replicate') + chroma_toc, + hiddenimports=[ + 'anthropic', 'github', 'ripgrepy', 'bs4', 'redbaron', + 'chromadb', 'onnxruntime', + 'chromadb.telemetry.posthog', + 'chromadb.api.segment', 'chromadb.db.impl', + 'chromadb.db.impl.sqlite', 'chromadb.migrations', + 'chromadb.migrations.embeddings_queue', 'chromadb.migrations.sysdb', + 'chromadb.migrations.metadb', 'chromadb.segment.impl', + 'chromadb.segment.impl.manager', 'chromadb.segment.impl.manager.local', + 'chromadb.segment.impl.metadata', 'chromadb.segment.impl.metadata.sqlite' + ], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='continue_server', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch="arm64", + codesign_identity=None, + entitlements_file=None, +) diff --git a/run.py b/continue_server.py similarity index 100% rename from run.py rename to continue_server.py diff --git a/continue_server.spec b/continue_server.spec new file mode 100644 index 000000000..04dd0a6ef --- /dev/null +++ b/continue_server.spec @@ -0,0 +1,82 @@ +# -*- mode: python ; coding: utf-8 -*- +import certifi +import os +from PyInstaller.utils.hooks import copy_metadata + +block_cipher = None + + +import subprocess +def find_package_location(package_name): + try: + # Run the 'pip show' command and capture its output + result = subprocess.run(['pip', 'show', package_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True) + output = result.stdout + + # Split the output into lines and find the 'Location' field + for line in output.splitlines(): + if line.startswith('Location:'): + # Extract the path after the 'Location:' prefix + location = line.split(':', 1)[1].strip() + return location + + except subprocess.CalledProcessError as e: + print(f"Error: {e.stderr}") + + return None + +chroma_path = find_package_location('chromadb') +chroma_toc = list(map(lambda x: (x[1], os.path.dirname(x[0])), Tree(f'{chroma_path}/chromadb/migrations', prefix="chromadb/migrations"))) + +a = Analysis( + ['continue_server.py'], + pathex=[], + binaries=[], + datas=[ + ('server/continuedev', 'continuedev'), + (certifi.where(), 'ca_bundle'), + ('.tiktoken_cache', 'tiktoken_cache') + ] + copy_metadata('replicate') + chroma_toc, + hiddenimports=[ + 'anthropic', 'github', 'ripgrepy', 'bs4', 'redbaron', + 'chromadb', 'onnxruntime', + 'chromadb.telemetry.posthog', + 'chromadb.api.segment', 'chromadb.db.impl', + 'chromadb.db.impl.sqlite', 'chromadb.migrations', + 'chromadb.migrations.embeddings_queue', 'chromadb.migrations.sysdb', + 'chromadb.migrations.metadb', 'chromadb.segment.impl', + 'chromadb.segment.impl.manager', 'chromadb.segment.impl.manager.local', + 'chromadb.segment.impl.metadata', 'chromadb.segment.impl.metadata.sqlite' + ], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='continue_server', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) diff --git a/docs/docs/walkthroughs/codebase-embeddings.md b/docs/docs/walkthroughs/codebase-embeddings.md index 66e7bc1b2..449557df1 100644 --- a/docs/docs/walkthroughs/codebase-embeddings.md +++ b/docs/docs/walkthroughs/codebase-embeddings.md @@ -35,7 +35,7 @@ config=ContinueConfig( "n_retrieve": 20, "n_final": 10, "use_reranking": True, - "sentence_transformers_model": "openai" + "openai_api_key": "" }, ), ] @@ -50,4 +50,4 @@ config=ContinueConfig( After retrieving the top `n_retrieve` results from the vector database, an additional re-reranking step uses 2 LLM calls to select the top `n_final` results to use to answer the question. If you want to increase the speed of the query at the cost of relevancy, you can skip the re-ranking step by setting `use_reranking` to `False`. Then the top `n_final` results will just be directly calculated from the vector database. -The `sentence_transformers_model` parameter allows you to select a custom embeddings model from the list [here](https://www.sbert.net/docs/pretrained_models.html). The default value is "openai", but if you don't include your OpenAI API key, it will fall back to using the `all-MiniLM-L6-v2` sentence transformers model. +It is optional to set your `openai_api_key` parameter. If you do, we will use their Ada embeddings. Otherwise, a sentence transformers model will be run locally to calculate the embeddings. \ No newline at end of file diff --git a/docs/docs/walkthroughs/manually-run-continue.md b/docs/docs/walkthroughs/manually-run-continue.md index 1a24fcf73..101e2a95f 100644 --- a/docs/docs/walkthroughs/manually-run-continue.md +++ b/docs/docs/walkthroughs/manually-run-continue.md @@ -32,7 +32,7 @@ If you'd like to use a pre-built binary, you can download manually from our S3 b - [Windows](https://continue-server-binaries.s3.us-west-1.amazonaws.com/windows/run.exe) - [Linux](https://continue-server-binaries.s3.us-west-1.amazonaws.com/linux/run) -Once downloaded, start the binary by running `./run` (MacOS/Linux) or `./run.exe` (Windows) in the directory where you downloaded it. You should see that it begins listening on port 65432. +Once downloaded, start the binary by running `./continue_server` (MacOS/Linux) or `./continue_server.exe` (Windows) in the directory where you downloaded it. You should see that it begins listening on port 65432. ## Build the server binary from source @@ -41,7 +41,7 @@ If you don't want to use the PyPI package, but need a version of Continue that w 1. Clone the [Continue repo](https://github.com/continuedev/continue) 2. Change directories into the repo: `cd continue` 3. Run the build script: `sh build.sh` (or `sh build.sh m1` if building for an M1 Mac, or `build.cmd` if on Windows without WSL) -4. Now that the binary is outputted in the `./dist` folder, start the server by running `./dist/run`. You should see that it begins listening on port 65432. +4. Now that the binary is outputted in the `./dist` folder, start the server by running `./dist/continue_server`. You should see that it begins listening on port 65432. ## Run the server from source diff --git a/extension/package-lock.json b/extension/package-lock.json index 6a6b0ade1..f88f5ba7f 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.1.16", + "version": "0.1.18", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "continue", - "version": "0.1.16", + "version": "0.1.18", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extension/package.json b/extension/package.json index 4413adb10..6893bd7fd 100644 --- a/extension/package.json +++ b/extension/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.1.16", + "version": "0.1.18", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx index 637896c62..7f9c77a84 100644 --- a/extension/react-app/src/pages/gui.tsx +++ b/extension/react-app/src/pages/gui.tsx @@ -281,9 +281,9 @@ function GUI(props: GUIProps) { return; } - // cmd+enter to /edit + // cmd+enter to /codebase if (event && isMetaEquivalentKeyPressed(event)) { - input = `/edit ${input}`; + input = `/codebase ${input}`; } (mainTextInputRef.current as any).setInputValue(""); if (!client) { diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 4c47fba60..031f99746 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -79,7 +79,7 @@ function serverBinaryPath(): string { return path.join( serverPath(), "exe", - `run${os.platform() === "win32" ? ".exe" : ""}` + `continue_server${os.platform() === "win32" ? ".exe" : ""}` ); } @@ -117,7 +117,7 @@ async function checkOrKillRunningServer( // Try again, on Windows. This time with taskkill if (os.platform() === "win32") { try { - await runCommand(`taskkill /F /IM run.exe`); + await runCommand(`taskkill /F /IM continue_server.exe`); } catch (e: any) { console.log( "Failed to kill old server second time on windows with taskkill:", @@ -209,7 +209,7 @@ function includedBinaryPath(): string { return path.join( extensionPath, "exe", - `run${os.platform() === "win32" ? ".exe" : ""}` + `continue_server${os.platform() === "win32" ? ".exe" : ""}` ); } @@ -290,12 +290,12 @@ async function setupWithS3Download(redownload: boolean, serverUrl: string) { const bucket = "continue-server-binaries"; const fileName = os.platform() === "win32" - ? "windows/run.exe" + ? "windows/continue_server.exe" : os.platform() === "darwin" ? os.arch() === "arm64" - ? "apple-silicon/run" - : "mac/run" - : "linux/run"; + ? "apple-silicon/continue_server" + : "mac/continue_server" + : "linux/continue_server"; const destination = serverBinaryPath(); diff --git a/run.m1.spec b/run.m1.spec deleted file mode 100644 index a1aa61613..000000000 --- a/run.m1.spec +++ /dev/null @@ -1,48 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- -import certifi -from PyInstaller.utils.hooks import copy_metadata - -block_cipher = None - - -a = Analysis( - ['run.py'], - pathex=[], - binaries=[], - datas=[ - ('server/continuedev', 'continuedev'), - (certifi.where(), 'ca_bundle'), - ] + copy_metadata('replicate'), - hiddenimports=['anthropic', 'github', 'ripgrepy', 'bs4', 'redbaron'], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=['numpy'], - win_no_prefer_redirects=False, - win_private_assemblies=False, - cipher=block_cipher, - noarchive=False, -) -pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) - -exe = EXE( - pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, - [], - name='run', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch="arm64", - codesign_identity=None, - entitlements_file=None, -) diff --git a/run.spec b/run.spec deleted file mode 100644 index c50c80b04..000000000 --- a/run.spec +++ /dev/null @@ -1,48 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- -import certifi -from PyInstaller.utils.hooks import copy_metadata - -block_cipher = None - - -a = Analysis( - ['run.py'], - pathex=[], - binaries=[], - datas=[ - ('server/continuedev', 'continuedev'), - (certifi.where(), 'ca_bundle') - ] + copy_metadata('replicate'), - hiddenimports=['anthropic', 'github', 'ripgrepy', 'bs4', 'redbaron'], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=['numpy'], - win_no_prefer_redirects=False, - win_private_assemblies=False, - cipher=block_cipher, - noarchive=False, -) -pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) - -exe = EXE( - pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, - [], - name='run', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, -) diff --git a/server/continuedev/core/main.py b/server/continuedev/core/main.py index 617a5aaa2..f9bb89844 100644 --- a/server/continuedev/core/main.py +++ b/server/continuedev/core/main.py @@ -102,7 +102,7 @@ def step_to_fn_call_arguments(step: "Step") -> str: class HistoryNode(ContinueBaseModel): """A point in history, a list of which make up History""" - step: "Step" + step: Any observation: Union[Observation, None] depth: int deleted: bool = False diff --git a/server/continuedev/core/sdk.py b/server/continuedev/core/sdk.py index 097d36fa9..ea65664a5 100644 --- a/server/continuedev/core/sdk.py +++ b/server/continuedev/core/sdk.py @@ -28,6 +28,7 @@ from .lsp import ContinueLSPClient from .main import ( ChatMessage, Context, + ContextItem, ContinueCustomException, History, HistoryNode, @@ -278,6 +279,9 @@ class ContinueSDK(AbstractContinueSDK): ) return [c.rif for c in context] + async def add_context_item(self, item: ContextItem): + await self.__autopilot.context_manager.manually_add_context_item(item) + def set_loading_message(self, message: str): # self.__autopilot.set_loading_message(message) raise NotImplementedError() diff --git a/server/continuedev/libs/chroma/query.py b/server/continuedev/libs/chroma/query.py index d77cce49b..11cac3dda 100644 --- a/server/continuedev/libs/chroma/query.py +++ b/server/continuedev/libs/chroma/query.py @@ -1,54 +1,132 @@ +import asyncio import json import os import subprocess from functools import cached_property from typing import List, Tuple -from llama_index import ( - Document, - GPTVectorStoreIndex, - StorageContext, - load_index_from_storage, -) -from llama_index.langchain_helpers.text_splitter import TokenTextSplitter +import chromadb +from chromadb.config import Settings +from chromadb.utils import embedding_functions +from dotenv import load_dotenv +from openai.error import RateLimitError +from ...core.sdk import ContinueSDK +from ..util.filter_files import DEFAULT_IGNORE_PATTERNS, should_filter_path from ..util.logging import logger -from .update import filter_ignored_files, load_gpt_index_documents +from ..util.paths import getEmbeddingsPathForBranch +from .update import filter_ignored_files + +load_dotenv() + +IGNORE_PATTERNS_FOR_CHROMA = [ + # File Names + "**/.DS_Store", + "**/package-lock.json", + "**/yarn.lock", + # File Types + "*.log", + "*.ttf", + "*.png", + "*.jpg", + "*.jpeg", + "*.gif", + "*.mp4", + "*.svg", + "*.ico", + "*.pdf", + "*.zip", + "*.gz", + "*.tar", + "*.tgz", + "*.rar", + "*.7z", + "*.exe", + "*.dll", + "*.obj", + "*.o", + "*.a", + "*.lib", + "*.so", + "*.dylib", + "*.ncb", + "*.sdf", +] + + +def chunk_document(document: str, max_length: int = 1000) -> List[str]: + """Chunk a document into smaller pieces.""" + chunks = [] + chunk = "" + for line in document.split("\n"): + if len(chunk) + len(line) > max_length: + chunks.append(chunk) + chunk = "" + chunk += line + "\n" + chunks.append(chunk) + return chunks + + +# Mapping of workspace_dir to chromadb collection +collections = {} class ChromaIndexManager: workspace_dir: str + client: chromadb.Client + openai_api_key: str = None - def __init__(self, workspace_dir: str): + def __init__( + self, + workspace_dir: str, + openai_api_key: str = None, + ): self.workspace_dir = workspace_dir + self.client = chromadb.PersistentClient( + path=os.path.join( + getEmbeddingsPathForBranch(self.workspace_dir, self.current_branch), + "chroma", + ), + settings=Settings(anonymized_telemetry=False), + ) + self.openai_api_key = openai_api_key + os.environ.setdefault("TOKENIZERS_PARALLELISM", "true") @cached_property def current_commit(self) -> str: """Get the current commit.""" - return ( - subprocess.check_output( - ["git", "rev-parse", "HEAD"], cwd=self.workspace_dir + try: + return ( + subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=self.workspace_dir + ) + .decode("utf-8") + .strip() ) - .decode("utf-8") - .strip() - ) + except subprocess.CalledProcessError: + return "NONE" @cached_property def current_branch(self) -> str: """Get the current branch.""" - return ( - subprocess.check_output( - ["git", "rev-parse", "--abbrev-ref", "HEAD"], cwd=self.workspace_dir + try: + return ( + subprocess.check_output( + ["git", "rev-parse", "--abbrev-ref", "HEAD"], cwd=self.workspace_dir + ) + .decode("utf-8") + .strip() ) - .decode("utf-8") - .strip() - ) + except subprocess.CalledProcessError: + return "NONE" @cached_property def index_dir(self) -> str: - return os.path.join( - self.workspace_dir, ".continue", "chroma", self.current_branch - ) + return getEmbeddingsPathForBranch(self.workspace_dir, self.current_branch) + + @property + def index_name(self) -> str: + return f"{self.workspace_dir}/{self.current_branch}" @cached_property def git_root_dir(self): @@ -67,43 +145,97 @@ class ChromaIndexManager: def check_index_exists(self): return os.path.exists(os.path.join(self.index_dir, "metadata.json")) - def create_codebase_index(self): + @property + def collection(self): + if self.workspace_dir in collections: + return collections[self.workspace_dir] + + kwargs = { + "name": self.current_branch, + } + if ( + self.openai_api_key is not None + ): + kwargs["embedding_function"] = embedding_functions.OpenAIEmbeddingFunction( + api_key=self.openai_api_key, + model_name="text-embedding-ada-002", + ) + + return self.client.get_or_create_collection(**kwargs) + + async def create_codebase_index( + self, sdk: ContinueSDK, ignore_files: List[str] = [] + ): """Create a new index for the current branch.""" - if not self.check_index_exists(): - os.makedirs(self.index_dir) - else: + collections[self.workspace_dir] = self.collection + + if self.check_index_exists(): return - documents = load_gpt_index_documents(self.workspace_dir) + files = await sdk.ide.listDirectoryContents(sdk.ide.workspace_directory, True) - chunks = {} - doc_chunks = [] - for doc in documents: - text_splitter = TokenTextSplitter() + # Filter from ignore_directories + files = list( + filter( + lambda file: not should_filter_path( + file, + ignore_files + DEFAULT_IGNORE_PATTERNS + IGNORE_PATTERNS_FOR_CHROMA, + ), + files, + ) + ) + + tasks = [] + for file in files: + tasks.append(sdk.ide.readFile(file)) + + documents = await asyncio.gather(*tasks) + + chunks = [chunk_document(document) for document in documents] + + flattened_chunks = [] + flattened_metadata = [] + flattened_ids = [] + for i in range(len(chunks)): + for j in range(len(chunks[i])): + flattened_chunks.append(chunks[i][j]) + flattened_metadata.append({"filepath": files[i]}) + flattened_ids.append(f"{files[i]}::{j}") + + for i in range(len(flattened_chunks)): + if len(flattened_chunks[i]) == 0: + flattened_chunks[i] = "EMPTY" + elif len(flattened_chunks[i]) > 6000: + flattened_chunks[i] = flattened_chunks[i][:6000] + + # Attempt to avoid rate-limiting + i = 0 + wait_time = 4.0 + while i < len(flattened_chunks): try: - text_chunks = text_splitter.split_text(doc.text) - except: - logger.warning(f"ERROR (probably found special token): {doc.text}") - continue # lol - filename = doc.extra_info["filename"] - chunks[filename] = len(text_chunks) - for i, text in enumerate(text_chunks): - doc_chunks.append(Document(text, doc_id=f"{filename}::{i}")) + self.collection.add( + documents=flattened_chunks[i : i + 100], + metadatas=flattened_metadata[i : i + 100], + ids=flattened_ids[i : i + 100], + ) + i += 100 + await asyncio.sleep(0.5) + except RateLimitError as e: + logger.debug(f"Rate limit exceeded, waiting {wait_time} seconds") + await asyncio.sleep(wait_time) + wait_time *= 2 + if wait_time > 2**10: + raise e with open(f"{self.index_dir}/metadata.json", "w") as f: - json.dump({"commit": self.current_commit, "chunks": chunks}, f, indent=4) - - index = GPTVectorStoreIndex([]) - - for chunk in doc_chunks: - index.insert(chunk) - - # d = 1536 # Dimension of text-ada-embedding-002 - # faiss_index = faiss.IndexFlatL2(d) - # index = GPTFaissIndex(documents, faiss_index=faiss_index) - # index.save_to_disk(f"{index_dir_for(branch)}/index.json", faiss_index_save_path=f"{index_dir_for(branch)}/index_faiss_core.index") - - index.storage_context.persist(persist_dir=self.index_dir) + json.dump( + { + "commit": self.current_commit, + "chunks": {files[i]: len(chunks[i]) for i in range(len(files))}, + }, + f, + indent=4, + ) logger.debug("Codebase index created") @@ -113,13 +245,17 @@ class ChromaIndexManager: with open(metadata, "r") as f: previous_commit = json.load(f)["commit"] - modified_deleted_files = ( - subprocess.check_output( - ["git", "diff", "--name-only", previous_commit, self.current_commit] + try: + modified_deleted_files = ( + subprocess.check_output( + ["git", "diff", "--name-only", previous_commit, self.current_commit] + ) + .decode("utf-8") + .strip() ) - .decode("utf-8") - .strip() - ) + except subprocess.CalledProcessError: + return [], [] + modified_deleted_files = modified_deleted_files.split("\n") modified_deleted_files = [f for f in modified_deleted_files if f] @@ -144,8 +280,6 @@ class ChromaIndexManager: if not self.check_index_exists(): self.create_codebase_index() else: - # index = GPTFaissIndex.load_from_disk(f"{index_dir_for(branch)}/index.json", faiss_index_save_path=f"{index_dir_for(branch)}/index_faiss_core.index") - index = GPTVectorStoreIndex.load_from_disk(f"{self.index_dir}/index.json") modified_files, deleted_files = self.get_modified_deleted_files() with open(f"{self.index_dir}/metadata.json", "r") as f: @@ -154,7 +288,7 @@ class ChromaIndexManager: for file in deleted_files: num_chunks = metadata["chunks"][file] for i in range(num_chunks): - index.delete(f"{file}::{i}") + self.collection.delete(file) del metadata["chunks"][file] @@ -165,20 +299,17 @@ class ChromaIndexManager: num_chunks = metadata["chunks"][file] for i in range(num_chunks): - index.delete(f"{file}::{i}") + self.collection.delete(file) logger.debug(f"Deleted old version of {file}") with open(file, "r") as f: - text = f.read() + f.read() - text_splitter = TokenTextSplitter() - text_chunks = text_splitter.split_text(text) + # for i, text in enumerate(text_chunks): + # index.insert(Document(text=text, doc_id=f"{file}::{i}")) - for i, text in enumerate(text_chunks): - index.insert(Document(text, doc_id=f"{file}::{i}")) - - metadata["chunks"][file] = len(text_chunks) + # metadata["chunks"][file] = len(text_chunks) logger.debug(f"Inserted new version of {file}") @@ -189,30 +320,12 @@ class ChromaIndexManager: logger.debug("Codebase index updated") - def query_codebase_index(self, query: str) -> str: + def query_codebase_index(self, query: str, n: int = 4) -> str: """Query the codebase index.""" if not self.check_index_exists(): logger.debug(f"No index found for the codebase at {self.index_dir}") - return "" + return [] - storage_context = StorageContext.from_defaults(persist_dir=self.index_dir) - index = load_index_from_storage(storage_context) - # index = GPTVectorStoreIndex.load_from_disk(path) - engine = index.as_query_engine() - return engine.query(query) + results = self.collection.query(query_texts=[query], n_results=n) - def query_additional_index(self, query: str) -> str: - """Query the additional index.""" - index = GPTVectorStoreIndex.load_from_disk( - os.path.join(self.index_dir, "additional_index.json") - ) - return index.query(query) - - def replace_additional_index(self, info: str): - """Replace the additional index with the given info.""" - with open(f"{self.index_dir}/additional_context.txt", "w") as f: - f.write(info) - documents = [Document(info)] - index = GPTVectorStoreIndex(documents) - index.save_to_disk(f"{self.index_dir}/additional_index.json") - logger.debug("Additional index replaced") + return results diff --git a/server/continuedev/libs/chroma/update.py b/server/continuedev/libs/chroma/update.py index 7a1217f97..041586767 100644 --- a/server/continuedev/libs/chroma/update.py +++ b/server/continuedev/libs/chroma/update.py @@ -4,7 +4,6 @@ import subprocess from typing import List from dotenv import load_dotenv -from llama_index import Document, SimpleDirectoryReader load_dotenv() @@ -52,15 +51,3 @@ def get_input_files(root_dir: str): all_files = set(get_all_files(root_dir)) nonignored_files = all_files - ignored_files return filter_ignored_files(nonignored_files, root_dir) - - -def load_gpt_index_documents(root: str) -> List[Document]: - """Loads a list of GPTIndex Documents, respecting .gitignore files.""" - # Get input files - input_files = get_input_files(root) - # Use SimpleDirectoryReader to load the files into Documents - return SimpleDirectoryReader( - root, - input_files=input_files, - file_metadata=lambda filename: {"filename": filename}, - ).load_data() diff --git a/server/continuedev/libs/util/count_tokens.py b/server/continuedev/libs/util/count_tokens.py index 37330b50a..a84d24fd5 100644 --- a/server/continuedev/libs/util/count_tokens.py +++ b/server/continuedev/libs/util/count_tokens.py @@ -1,4 +1,6 @@ import json +import os +import sys from typing import Dict, List, Union from ...core.main import ChatMessage @@ -25,8 +27,13 @@ def encoding_for_model(model_name: str): global already_saw_import_err if already_saw_import_err: return None - + try: + if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): + tiktoken_cache = os.path.join(sys._MEIPASS, "tiktoken_cache") + if os.path.exists(tiktoken_cache): + os.environ["TIKTOKEN_CACHE_DIR"] = tiktoken_cache + import tiktoken from tiktoken_ext import openai_public # noqa: F401 @@ -61,7 +68,7 @@ def count_chat_message_tokens(model_name: str, chat_message: ChatMessage) -> int def prune_raw_prompt_from_top( model_name: str, context_length: int, prompt: str, tokens_for_completion: int ): - max_tokens = context_length - tokens_for_completion + max_tokens = context_length - tokens_for_completion - TOKEN_BUFFER_FOR_SAFETY encoding = encoding_for_model(model_name) if encoding is None: diff --git a/server/continuedev/libs/util/create_async_task.py b/server/continuedev/libs/util/create_async_task.py index 232d3fa1a..94201685a 100644 --- a/server/continuedev/libs/util/create_async_task.py +++ b/server/continuedev/libs/util/create_async_task.py @@ -2,12 +2,12 @@ import asyncio import traceback from typing import Callable, Coroutine, Optional -import nest_asyncio +# import nest_asyncio from .logging import logger from .telemetry import posthog_logger -nest_asyncio.apply() +# nest_asyncio.apply() def create_async_task( diff --git a/server/continuedev/libs/util/paths.py b/server/continuedev/libs/util/paths.py index d32505057..81537de32 100644 --- a/server/continuedev/libs/util/paths.py +++ b/server/continuedev/libs/util/paths.py @@ -45,6 +45,34 @@ def getDiffsFolderPath(): return path +def getEmbeddingsFolderPath(): + path = os.path.join(getGlobalFolderPath(), "embeddings") + os.makedirs(path, exist_ok=True) + return path + + +def decode_escaped_path(path: str) -> str: + """We use a custom escaping scheme to record the full path of a file as a + corresponding basename, but withut URL encoding, because then the URI just gets + interpreted as a full path again.""" + return path.replace("$f$", "/").replace("$b$", "\\") + + +def encode_escaped_path(path: str) -> str: + """We use a custom escaping scheme to record the full path of a file as a + corresponding basename, but withut URL encoding, because then the URI just gets + interpreted as a full path again.""" + return path.replace("/", "$f$").replace("\\", "$b$") + + +def getEmbeddingsPathForBranch(workspace_dir: str, branch_name: str): + path = os.path.join( + getEmbeddingsFolderPath(), encode_escaped_path(workspace_dir), branch_name + ) + os.makedirs(path, exist_ok=True) + return path + + def getDevDataFilePath(table_name: str): filepath = os.path.join(getDevDataFolderPath(), f"{table_name}.jsonl") if not os.path.exists(filepath): diff --git a/server/continuedev/plugins/steps/chroma.py b/server/continuedev/plugins/steps/chroma.py index f357a8726..28eea11e8 100644 --- a/server/continuedev/plugins/steps/chroma.py +++ b/server/continuedev/plugins/steps/chroma.py @@ -1,79 +1,311 @@ -from textwrap import dedent -from typing import Coroutine, Union +import asyncio +import os +from typing import Coroutine, Dict, List, Optional, Union -from ...core.main import Step +from pydantic import Field + +from ...core.main import ContextItem, ContextItemDescription, ContextItemId, Step from ...core.observation import Observation from ...core.sdk import ContinueSDK -from ...core.steps import EditFileStep +from ...core.steps import EditFileStep, UserInputStep from ...libs.chroma.query import ChromaIndexManager +from ..context_providers.util import remove_meilisearch_disallowed_chars +from .chat import SimpleChatStep +from ...core.steps import EditFileStep class CreateCodebaseIndexChroma(Step): name: str = "Create Codebase Index" hide: bool = True + description: str = "Generating codebase embeddings..." + openai_api_key: Optional[str] = None - async def describe(self, llm) -> Coroutine[str, None, None]: - return "Indexing the codebase..." + ignore_files: List[str] = Field( + [], + description="Files to ignore when indexing the codebase. You can use glob patterns, such as **/*.py. This is useful for directories that contain generated code, or other directories that are not relevant to the codebase.", + ) + + async def describe(self, models) -> Coroutine[str, None, None]: + return "Generated codebase embeddings" async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - index = ChromaIndexManager(await sdk.ide.getWorkspaceDirectory()) + index = ChromaIndexManager( + sdk.ide.workspace_directory, + openai_api_key=self.openai_api_key, + ) if not index.check_index_exists(): self.hide = False - index.create_codebase_index() + + await index.create_codebase_index(sdk, ignore_files=self.ignore_files) + + +async def rerank_chroma_results_group( + results: Dict[str, str], user_input: str, n: int, sdk: ContinueSDK +): + """ + Reranks the results from the codebase index based on the user input + """ + results_prompt = "\n\n".join( + map( + lambda kv: f"{kv[0]}\n```\n{kv[1][:500]}\n```", + results.items(), + ) + ) + include_prompt = f"""\ +You will be asked to select the most relevant results from a list. You should choose the results that will be most useful in answering the user's request. For each result that you think is important, you should simply say its title on a new line. Here is an example input: +\"\"\" +add.py::0 +``` +def add(a, b): + return a + b +``` + +multiply.py::0 +``` +def multiply(a, b): + return a * b +``` + +subtract.py::0 +``` +def subtract(a, b): + return a - b +``` +\"\"\" +And here is the output you would give if you thought that add.py and subtract.py were the most relevant results: +\"\"\" +add.py::0 +subtract.py::0 +\"\"\" + +Now for the real task, here are the top {len(results)} results from the codebase for the user request, "{user_input}": + +{results_prompt} + +Here are the {n} most relevant results listed in the same format from the example:""" + + remove_prompt = f"""\ +You will be asked to select items from a list that are irrelevant to the given request. For each result that is unrelated, you should simply say its title on a new line. Here is an example input: +\"\"\" +add.py::0 +``` +def add(a, b): + return a + b +``` + +multiply.py::0 +``` +def multiply(a, b): + return a * b +``` + +subtract.py::0 +``` +def subtract(a, b): + return a - b +``` +\"\"\" +And here is the output you would give if you thought that add.py and subtract.py were not useful to answer the given request: +\"\"\" +add.py::0 +subtract.py::0 +\"\"\" + +Now for the real task, here are the top {len(results)} results from the codebase for the user request, "{user_input}": + +{results_prompt} + +List the results that are not useful in answering the request, using in the same format from the example. Only choose those that are completely unrelated, and no more than {n // 2}:""" + + include = sdk.models.summarize.complete(include_prompt, log=False) + remove = sdk.models.summarize.complete(remove_prompt, log=False) + include_completion, remove_completion = await asyncio.gather(include, remove) + + return include_completion.split("\n"), remove_completion.split("\n") + + +async def rerank_chroma_results( + results: Dict[str, str], user_input: str, n: int, sdk: ContinueSDK +): + """ + Reranks the results from the codebase index based on the user input + """ + # Split the results into groups + groups = [] + group = {} + keys = list(results.keys()) + for i in range(len(keys)): + if len(group) == 10: + groups.append(group) + group = {} + group[keys[i]] = results[keys[i]] + + if len(group) > 0: + groups.append(group) + + # Gather the include/remove results from each group + include = set([]) + remove = set([]) + + tasks = [] + for group in groups: + tasks.append(rerank_chroma_results_group(group, user_input, n, sdk)) + + reranking_results = await asyncio.gather(*tasks) + for rr in reranking_results: + include.update(rr[0]) + remove.update(rr[1]) + + # Use these results to whittle down the results + counts_per_files = {} + for id in results: + filename = id.split("::")[0] + if filename not in counts_per_files: + counts_per_files[filename] = 0 + counts_per_files[filename] += 1 + + repeated_files = set(filter(lambda x: counts_per_files[x] > 1, counts_per_files)) + + selected = { + key: value + for key, value in results.items() + if key not in remove or key.split("::")[0] in repeated_files + } + selected = {key: value for key, value in selected.items() if key in include} + + for key in selected: + del results[key] + + additional = n - len(selected) + for i in range(additional): + if len(results) == 0: + break + + # Get an item from the results + key = list(results.keys())[0] + selected[key] = results[key] + del results[key] + + if additional < 0: + # We need to remove some items + additional = -additional + for i in range(additional): + if len(selected) == 0: + break + + # Get an item from the results + key = list(selected.keys())[0] + del selected[key] + + return selected + + +def shorten_filepaths(filepaths: List[str]) -> List[str]: + """ + Shortens the filepaths to just the filename, + unless directory names are needed for uniqueness + """ + basenames = list(map(os.path.basename, filepaths)) + if len(basenames) == len(filepaths): + return list(basenames) + + basename_counts = {} + for filepath in filepaths: + basename = os.path.basename(filepath) + if basename not in basename_counts: + basename_counts[basename] = 0 + basename_counts[basename] += 1 + + for i in range(0, len(filepaths)): + basename = os.path.basename(filepaths[i]) + if basename_counts[basename] <= 1: + filepaths[i] = basename + else: + filepaths[i] = os.path.join( + os.path.basename(os.path.dirname(filepaths[i])), basename + ) + + return filepaths class AnswerQuestionChroma(Step): - question: str + user_input: str _answer: Union[str, None] = None name: str = "Answer Question" + n_retrieve: Optional[int] = Field( + 20, description="Number of results to initially retrieve from vector database" + ) + n_final: Optional[int] = Field( + 10, description="Final number of results to use after re-ranking" + ) + + use_reranking: bool = Field( + True, + description="Whether to use re-ranking, which will allow initial selection of n_retrieve results, then will use an LLM to select the top n_final results", + ) + + hide: bool = True + async def describe(self, llm) -> Coroutine[str, None, None]: if self._answer is None: - return f"Answering the question: {self.question}" + return f"Answering the question: {self.user_input}" else: return self._answer async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - index = ChromaIndexManager(await sdk.ide.getWorkspaceDirectory()) - results = index.query_codebase_index(self.question) - - code_snippets = "" - - files = [] - for node in results.source_nodes: - resource_name = list(node.node.relationships.values())[0] - filepath = resource_name[: resource_name.index("::")] - files.append(filepath) - code_snippets += f"""{filepath}```\n{node.node.text}\n```\n\n""" - - prompt = dedent( - f"""Here are a few snippets of code that might be useful in answering the question: - - {code_snippets} - - Here is the question to answer: - - {self.question} - - Here is the answer:""" + index = ChromaIndexManager(sdk.ide.workspace_directory) + self.description = f"Reading from {self.n_retrieve} files..." + await sdk.update_ui() + results = index.query_codebase_index( + self.user_input, n=self.n_retrieve if self.use_reranking else self.n_final ) - answer = await sdk.models.summarize.complete(prompt) - # Make paths relative to the workspace directory - answer = answer.replace(await sdk.ide.getWorkspaceDirectory(), "") + shortened_filepaths = shorten_filepaths(results["ids"][0]) + results_dict = { + filename: document + for filename, document in zip(shortened_filepaths, results["documents"][0]) + if document.strip() != "" + } - self._answer = answer + if self.use_reranking: + results_dict = await rerank_chroma_results( + results_dict, self.user_input, self.n_final, sdk + ) - await sdk.ide.setFileOpen(files[0]) + filepaths = set([]) + for id, document in results_dict.items(): + filename = id.split("::")[0] + filepath = results["ids"][0][shortened_filepaths.index(id)].split("::")[0] + if filepath in filepaths: + continue + + await sdk.add_context_item( + ContextItem( + content=document, + description=ContextItemDescription( + name=filename, + description=filepath, + id=ContextItemId( + provider_title="file", + item_id=remove_meilisearch_disallowed_chars(filepath), + ), + ), + ) + ) + filepaths.add(filepath) + + await sdk.update_ui() + await sdk.run_step(SimpleChatStep(name="Answer Question")) class EditFileChroma(Step): - request: str + user_input: str hide: bool = True async def run(self, sdk: ContinueSDK) -> Coroutine[Observation, None, None]: - index = ChromaIndexManager(await sdk.ide.getWorkspaceDirectory()) - results = index.query_codebase_index(self.request) + index = ChromaIndexManager(sdk.ide.workspace_directory) + results = index.query_codebase_index(self.user_input) resource_name = list(results.source_nodes[0].node.relationships.values())[0] filepath = resource_name[: resource_name.index("::")] @@ -81,6 +313,6 @@ class EditFileChroma(Step): await sdk.run_step( EditFileStep( filepath=filepath, - prompt=f"Here is the code:\n\n{{code}}\n\nHere is the user request:\n\n{self.request}\n\nHere is the code after making the requested changes:\n", + prompt=f"Here is the code:\n\n{{code}}\n\nHere is the user request:\n\n{self.user_input}\n\nHere is the code after making the requested changes:\n", ) ) diff --git a/server/continuedev/plugins/steps/main.py b/server/continuedev/plugins/steps/main.py index 936fd7e0f..e13351f0e 100644 --- a/server/continuedev/plugins/steps/main.py +++ b/server/continuedev/plugins/steps/main.py @@ -12,6 +12,7 @@ from ...libs.llm.base import LLM from ...libs.llm.prompt_utils import MarkdownStyleEncoderDecoder from ...libs.util.calculate_diff import calculate_diff2 from ...libs.util.logging import logger +from ...libs.util.paths import decode_escaped_path, encode_escaped_path from ...models.filesystem import RangeInFile, RangeInFileWithContents from ...models.filesystem_edit import EditDiff, FileEdit from ...models.main import Range, Traceback @@ -235,20 +236,6 @@ class StarCoderEditHighlightedCodeStep(Step): await sdk.ide.setFileOpen(rif.filepath) -def decode_escaped_path(path: str) -> str: - """We use a custom escaping scheme to record the full path of a file as a - corresponding basename, but withut URL encoding, because then the URI just gets - interpreted as a full path again.""" - return path.replace("$f$", "/").replace("$b$", "\\") - - -def encode_escaped_path(path: str) -> str: - """We use a custom escaping scheme to record the full path of a file as a - corresponding basename, but withut URL encoding, because then the URI just gets - interpreted as a full path again.""" - return path.replace("/", "$f$").replace("\\", "$b$") - - class EditAlreadyEditedRangeStep(Step): hide = True model: Optional[LLM] = None diff --git a/server/continuedev/plugins/steps/steps_on_startup.py b/server/continuedev/plugins/steps/steps_on_startup.py index 58d56703b..5e029d920 100644 --- a/server/continuedev/plugins/steps/steps_on_startup.py +++ b/server/continuedev/plugins/steps/steps_on_startup.py @@ -12,8 +12,8 @@ class StepsOnStartupStep(Step): steps_on_startup = sdk.config.steps_on_startup for step_type in steps_on_startup: - if isinstance(step_type, Step): - step = step_type - else: + if isinstance(step_type, type): step = step_type() + else: + step = step_type await sdk.run_step(step) diff --git a/server/poetry.lock b/server/poetry.lock index 23ff9094b..772d64f85 100644 --- a/server/poetry.lock +++ b/server/poetry.lock @@ -238,6 +238,40 @@ files = [ [package.dependencies] rply = "*" +[[package]] +name = "bcrypt" +version = "4.0.1" +description = "Modern password hashing for your software and your servers" +optional = false +python-versions = ">=3.6" +files = [ + {file = "bcrypt-4.0.1-cp36-abi3-macosx_10_10_universal2.whl", hash = "sha256:b1023030aec778185a6c16cf70f359cbb6e0c289fd564a7cfa29e727a1c38f8f"}, + {file = "bcrypt-4.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl", hash = "sha256:08d2947c490093a11416df18043c27abe3921558d2c03e2076ccb28a116cb6d0"}, + {file = "bcrypt-4.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0eaa47d4661c326bfc9d08d16debbc4edf78778e6aaba29c1bc7ce67214d4410"}, + {file = "bcrypt-4.0.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ae88eca3024bb34bb3430f964beab71226e761f51b912de5133470b649d82344"}, + {file = "bcrypt-4.0.1-cp36-abi3-manylinux_2_24_x86_64.whl", hash = "sha256:a522427293d77e1c29e303fc282e2d71864579527a04ddcfda6d4f8396c6c36a"}, + {file = "bcrypt-4.0.1-cp36-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:fbdaec13c5105f0c4e5c52614d04f0bca5f5af007910daa8b6b12095edaa67b3"}, + {file = "bcrypt-4.0.1-cp36-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:ca3204d00d3cb2dfed07f2d74a25f12fc12f73e606fcaa6975d1f7ae69cacbb2"}, + {file = "bcrypt-4.0.1-cp36-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:089098effa1bc35dc055366740a067a2fc76987e8ec75349eb9484061c54f535"}, + {file = "bcrypt-4.0.1-cp36-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:e9a51bbfe7e9802b5f3508687758b564069ba937748ad7b9e890086290d2f79e"}, + {file = "bcrypt-4.0.1-cp36-abi3-win32.whl", hash = "sha256:2caffdae059e06ac23fce178d31b4a702f2a3264c20bfb5ff541b338194d8fab"}, + {file = "bcrypt-4.0.1-cp36-abi3-win_amd64.whl", hash = "sha256:8a68f4341daf7522fe8d73874de8906f3a339048ba406be6ddc1b3ccb16fc0d9"}, + {file = "bcrypt-4.0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf4fa8b2ca74381bb5442c089350f09a3f17797829d958fad058d6e44d9eb83c"}, + {file = "bcrypt-4.0.1-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:67a97e1c405b24f19d08890e7ae0c4f7ce1e56a712a016746c8b2d7732d65d4b"}, + {file = "bcrypt-4.0.1-pp37-pypy37_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:b3b85202d95dd568efcb35b53936c5e3b3600c7cdcc6115ba461df3a8e89f38d"}, + {file = "bcrypt-4.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cbb03eec97496166b704ed663a53680ab57c5084b2fc98ef23291987b525cb7d"}, + {file = "bcrypt-4.0.1-pp38-pypy38_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:5ad4d32a28b80c5fa6671ccfb43676e8c1cc232887759d1cd7b6f56ea4355215"}, + {file = "bcrypt-4.0.1-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:b57adba8a1444faf784394de3436233728a1ecaeb6e07e8c22c8848f179b893c"}, + {file = "bcrypt-4.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:705b2cea8a9ed3d55b4491887ceadb0106acf7c6387699fca771af56b1cdeeda"}, + {file = "bcrypt-4.0.1-pp39-pypy39_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:2b3ac11cf45161628f1f3733263e63194f22664bf4d0c0f3ab34099c02134665"}, + {file = "bcrypt-4.0.1-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:3100851841186c25f127731b9fa11909ab7b1df6fc4b9f8353f4f1fd952fbf71"}, + {file = "bcrypt-4.0.1.tar.gz", hash = "sha256:27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd"}, +] + +[package.extras] +tests = ["pytest (>=3.2.1,!=3.3.0)"] +typecheck = ["mypy"] + [[package]] name = "beautifulsoup4" version = "4.12.2" @@ -476,6 +510,74 @@ files = [ {file = "chevron-0.14.0.tar.gz", hash = "sha256:87613aafdf6d77b6a90ff073165a61ae5086e21ad49057aa0e53681601800ebf"}, ] +[[package]] +name = "chroma-hnswlib" +version = "0.7.3" +description = "Chromas fork of hnswlib" +optional = false +python-versions = "*" +files = [ + {file = "chroma-hnswlib-0.7.3.tar.gz", hash = "sha256:b6137bedde49fffda6af93b0297fe00429fc61e5a072b1ed9377f909ed95a932"}, + {file = "chroma_hnswlib-0.7.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:59d6a7c6f863c67aeb23e79a64001d537060b6995c3eca9a06e349ff7b0998ca"}, + {file = "chroma_hnswlib-0.7.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d71a3f4f232f537b6152947006bd32bc1629a8686df22fd97777b70f416c127a"}, + {file = "chroma_hnswlib-0.7.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c92dc1ebe062188e53970ba13f6b07e0ae32e64c9770eb7f7ffa83f149d4210"}, + {file = "chroma_hnswlib-0.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49da700a6656fed8753f68d44b8cc8ae46efc99fc8a22a6d970dc1697f49b403"}, + {file = "chroma_hnswlib-0.7.3-cp310-cp310-win_amd64.whl", hash = "sha256:108bc4c293d819b56476d8f7865803cb03afd6ca128a2a04d678fffc139af029"}, + {file = "chroma_hnswlib-0.7.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:11e7ca93fb8192214ac2b9c0943641ac0daf8f9d4591bb7b73be808a83835667"}, + {file = "chroma_hnswlib-0.7.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6f552e4d23edc06cdeb553cdc757d2fe190cdeb10d43093d6a3319f8d4bf1c6b"}, + {file = "chroma_hnswlib-0.7.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f96f4d5699e486eb1fb95849fe35ab79ab0901265805be7e60f4eaa83ce263ec"}, + {file = "chroma_hnswlib-0.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:368e57fe9ebae05ee5844840fa588028a023d1182b0cfdb1d13f607c9ea05756"}, + {file = "chroma_hnswlib-0.7.3-cp311-cp311-win_amd64.whl", hash = "sha256:b7dca27b8896b494456db0fd705b689ac6b73af78e186eb6a42fea2de4f71c6f"}, + {file = "chroma_hnswlib-0.7.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:70f897dc6218afa1d99f43a9ad5eb82f392df31f57ff514ccf4eeadecd62f544"}, + {file = "chroma_hnswlib-0.7.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5aef10b4952708f5a1381c124a29aead0c356f8d7d6e0b520b778aaa62a356f4"}, + {file = "chroma_hnswlib-0.7.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ee2d8d1529fca3898d512079144ec3e28a81d9c17e15e0ea4665697a7923253"}, + {file = "chroma_hnswlib-0.7.3-cp37-cp37m-win_amd64.whl", hash = "sha256:a4021a70e898783cd6f26e00008b494c6249a7babe8774e90ce4766dd288c8ba"}, + {file = "chroma_hnswlib-0.7.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a8f61fa1d417fda848e3ba06c07671f14806a2585272b175ba47501b066fe6b1"}, + {file = "chroma_hnswlib-0.7.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:d7563be58bc98e8f0866907368e22ae218d6060601b79c42f59af4eccbbd2e0a"}, + {file = "chroma_hnswlib-0.7.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:51b8d411486ee70d7b66ec08cc8b9b6620116b650df9c19076d2d8b6ce2ae914"}, + {file = "chroma_hnswlib-0.7.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d706782b628e4f43f1b8a81e9120ac486837fbd9bcb8ced70fe0d9b95c72d77"}, + {file = "chroma_hnswlib-0.7.3-cp38-cp38-win_amd64.whl", hash = "sha256:54f053dedc0e3ba657f05fec6e73dd541bc5db5b09aa8bc146466ffb734bdc86"}, + {file = "chroma_hnswlib-0.7.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e607c5a71c610a73167a517062d302c0827ccdd6e259af6e4869a5c1306ffb5d"}, + {file = "chroma_hnswlib-0.7.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c2358a795870156af6761890f9eb5ca8cade57eb10c5f046fe94dae1faa04b9e"}, + {file = "chroma_hnswlib-0.7.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7cea425df2e6b8a5e201fff0d922a1cc1d165b3cfe762b1408075723c8892218"}, + {file = "chroma_hnswlib-0.7.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:454df3dd3e97aa784fba7cf888ad191e0087eef0fd8c70daf28b753b3b591170"}, + {file = "chroma_hnswlib-0.7.3-cp39-cp39-win_amd64.whl", hash = "sha256:df587d15007ca701c6de0ee7d5585dd5e976b7edd2b30ac72bc376b3c3f85882"}, +] + +[package.dependencies] +numpy = "*" + +[[package]] +name = "chromadb" +version = "0.4.12" +description = "Chroma." +optional = false +python-versions = ">=3.7" +files = [ + {file = "chromadb-0.4.12-py3-none-any.whl", hash = "sha256:2a9d99945c25049ce8b8d2896ef296909f42ba2f5dca983a496adae0a0deb64a"}, + {file = "chromadb-0.4.12.tar.gz", hash = "sha256:430585725e1f2f43f51ef3d0d7a41d99d0cdc4635264e75aaf1e303ab48ae616"}, +] + +[package.dependencies] +bcrypt = ">=4.0.1" +chroma-hnswlib = "0.7.3" +fastapi = ">=0.95.2,<0.100.0" +graphlib-backport = {version = ">=1.0.3", markers = "python_version < \"3.9\""} +importlib-resources = "*" +numpy = {version = ">=1.22.5", markers = "python_version >= \"3.8\""} +onnxruntime = ">=1.14.1" +overrides = ">=7.3.1" +posthog = ">=2.4.0" +pulsar-client = ">=3.1.0" +pydantic = ">=1.9,<2.0" +pypika = ">=0.48.9" +requests = ">=2.28" +tokenizers = ">=0.13.2" +tqdm = ">=4.65.0" +typer = ">=0.9.0" +typing-extensions = ">=4.5.0" +uvicorn = {version = ">=0.18.3", extras = ["standard"]} + [[package]] name = "click" version = "8.1.7" @@ -501,6 +603,23 @@ files = [ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] +[[package]] +name = "coloredlogs" +version = "15.0.1" +description = "Colored terminal output for Python's logging module" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +files = [ + {file = "coloredlogs-15.0.1-py2.py3-none-any.whl", hash = "sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934"}, + {file = "coloredlogs-15.0.1.tar.gz", hash = "sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0"}, +] + +[package.dependencies] +humanfriendly = ">=9.1" + +[package.extras] +cron = ["capturer (>=2.4)"] + [[package]] name = "cryptography" version = "41.0.3" @@ -652,6 +771,17 @@ typing-extensions = {version = ">=4.7.1", markers = "python_version < \"3.11\""} docs = ["furo (>=2023.7.26)", "sphinx (>=7.1.2)", "sphinx-autodoc-typehints (>=1.24)"] testing = ["covdefaults (>=2.3)", "coverage (>=7.3)", "diff-cover (>=7.7)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)", "pytest-timeout (>=2.1)"] +[[package]] +name = "flatbuffers" +version = "23.5.26" +description = "The FlatBuffers serialization format for Python" +optional = false +python-versions = "*" +files = [ + {file = "flatbuffers-23.5.26-py2.py3-none-any.whl", hash = "sha256:c0ff356da363087b915fde4b8b45bdda73432fc17cddb3c8157472eab1422ad1"}, + {file = "flatbuffers-23.5.26.tar.gz", hash = "sha256:9ea1144cac05ce5d86e2859f431c6cd5e66cd9c78c558317c7955fb8d4c78d89"}, +] + [[package]] name = "frozenlist" version = "1.4.0" @@ -757,6 +887,17 @@ smb = ["smbprotocol"] ssh = ["paramiko"] tqdm = ["tqdm"] +[[package]] +name = "graphlib-backport" +version = "1.0.3" +description = "Backport of the Python 3.9 graphlib module for Python 3.6+" +optional = false +python-versions = ">=3.6,<4.0" +files = [ + {file = "graphlib_backport-1.0.3-py3-none-any.whl", hash = "sha256:24246967b9e7e6a91550bc770e6169585d35aa32790258579a8a3899a8c18fde"}, + {file = "graphlib_backport-1.0.3.tar.gz", hash = "sha256:7bb8fc7757b8ae4e6d8000a26cd49e9232aaa9a3aa57edb478474b8424bfaae2"}, +] + [[package]] name = "h11" version = "0.14.0" @@ -789,6 +930,53 @@ sniffio = "==1.*" http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] +[[package]] +name = "httptools" +version = "0.6.0" +description = "A collection of framework independent HTTP protocol utils." +optional = false +python-versions = ">=3.5.0" +files = [ + {file = "httptools-0.6.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:818325afee467d483bfab1647a72054246d29f9053fd17cc4b86cda09cc60339"}, + {file = "httptools-0.6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:72205730bf1be875003692ca54a4a7c35fac77b4746008966061d9d41a61b0f5"}, + {file = "httptools-0.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:33eb1d4e609c835966e969a31b1dedf5ba16b38cab356c2ce4f3e33ffa94cad3"}, + {file = "httptools-0.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6bdc6675ec6cb79d27e0575750ac6e2b47032742e24eed011b8db73f2da9ed40"}, + {file = "httptools-0.6.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:463c3bc5ef64b9cf091be9ac0e0556199503f6e80456b790a917774a616aff6e"}, + {file = "httptools-0.6.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:82f228b88b0e8c6099a9c4757ce9fdbb8b45548074f8d0b1f0fc071e35655d1c"}, + {file = "httptools-0.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:0781fedc610293a2716bc7fa142d4c85e6776bc59d617a807ff91246a95dea35"}, + {file = "httptools-0.6.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:721e503245d591527cddd0f6fd771d156c509e831caa7a57929b55ac91ee2b51"}, + {file = "httptools-0.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:274bf20eeb41b0956e34f6a81f84d26ed57c84dd9253f13dcb7174b27ccd8aaf"}, + {file = "httptools-0.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:259920bbae18740a40236807915def554132ad70af5067e562f4660b62c59b90"}, + {file = "httptools-0.6.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03bfd2ae8a2d532952ac54445a2fb2504c804135ed28b53fefaf03d3a93eb1fd"}, + {file = "httptools-0.6.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f959e4770b3fc8ee4dbc3578fd910fab9003e093f20ac8c621452c4d62e517cb"}, + {file = "httptools-0.6.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:6e22896b42b95b3237eccc42278cd72c0df6f23247d886b7ded3163452481e38"}, + {file = "httptools-0.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:38f3cafedd6aa20ae05f81f2e616ea6f92116c8a0f8dcb79dc798df3356836e2"}, + {file = "httptools-0.6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:47043a6e0ea753f006a9d0dd076a8f8c99bc0ecae86a0888448eb3076c43d717"}, + {file = "httptools-0.6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35a541579bed0270d1ac10245a3e71e5beeb1903b5fbbc8d8b4d4e728d48ff1d"}, + {file = "httptools-0.6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:65d802e7b2538a9756df5acc062300c160907b02e15ed15ba035b02bce43e89c"}, + {file = "httptools-0.6.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:26326e0a8fe56829f3af483200d914a7cd16d8d398d14e36888b56de30bec81a"}, + {file = "httptools-0.6.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:e41ccac9e77cd045f3e4ee0fc62cbf3d54d7d4b375431eb855561f26ee7a9ec4"}, + {file = "httptools-0.6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:4e748fc0d5c4a629988ef50ac1aef99dfb5e8996583a73a717fc2cac4ab89932"}, + {file = "httptools-0.6.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:cf8169e839a0d740f3d3c9c4fa630ac1a5aaf81641a34575ca6773ed7ce041a1"}, + {file = "httptools-0.6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:5dcc14c090ab57b35908d4a4585ec5c0715439df07be2913405991dbb37e049d"}, + {file = "httptools-0.6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d0b0571806a5168013b8c3d180d9f9d6997365a4212cb18ea20df18b938aa0b"}, + {file = "httptools-0.6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fb4a608c631f7dcbdf986f40af7a030521a10ba6bc3d36b28c1dc9e9035a3c0"}, + {file = "httptools-0.6.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:93f89975465133619aea8b1952bc6fa0e6bad22a447c6d982fc338fbb4c89649"}, + {file = "httptools-0.6.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:73e9d66a5a28b2d5d9fbd9e197a31edd02be310186db423b28e6052472dc8201"}, + {file = "httptools-0.6.0-cp38-cp38-win_amd64.whl", hash = "sha256:22c01fcd53648162730a71c42842f73b50f989daae36534c818b3f5050b54589"}, + {file = "httptools-0.6.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:3f96d2a351b5625a9fd9133c95744e8ca06f7a4f8f0b8231e4bbaae2c485046a"}, + {file = "httptools-0.6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:72ec7c70bd9f95ef1083d14a755f321d181f046ca685b6358676737a5fecd26a"}, + {file = "httptools-0.6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b703d15dbe082cc23266bf5d9448e764c7cb3fcfe7cb358d79d3fd8248673ef9"}, + {file = "httptools-0.6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:82c723ed5982f8ead00f8e7605c53e55ffe47c47465d878305ebe0082b6a1755"}, + {file = "httptools-0.6.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b0a816bb425c116a160fbc6f34cece097fd22ece15059d68932af686520966bd"}, + {file = "httptools-0.6.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:dea66d94e5a3f68c5e9d86e0894653b87d952e624845e0b0e3ad1c733c6cc75d"}, + {file = "httptools-0.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:23b09537086a5a611fad5696fc8963d67c7e7f98cb329d38ee114d588b0b74cd"}, + {file = "httptools-0.6.0.tar.gz", hash = "sha256:9fc6e409ad38cbd68b177cd5158fc4042c796b82ca88d99ec78f07bed6c6b796"}, +] + +[package.extras] +test = ["Cython (>=0.29.24,<0.30.0)"] + [[package]] name = "httpx" version = "0.24.1" @@ -844,6 +1032,20 @@ testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "gradio", "jed torch = ["torch"] typing = ["pydantic", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3"] +[[package]] +name = "humanfriendly" +version = "10.0" +description = "Human friendly output for text interfaces using Python" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +files = [ + {file = "humanfriendly-10.0-py2.py3-none-any.whl", hash = "sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477"}, + {file = "humanfriendly-10.0.tar.gz", hash = "sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc"}, +] + +[package.dependencies] +pyreadline3 = {version = "*", markers = "sys_platform == \"win32\" and python_version >= \"3.8\""} + [[package]] name = "idna" version = "3.4" @@ -981,6 +1183,23 @@ files = [ {file = "monotonic-1.6.tar.gz", hash = "sha256:3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7"}, ] +[[package]] +name = "mpmath" +version = "1.3.0" +description = "Python library for arbitrary-precision floating-point arithmetic" +optional = false +python-versions = "*" +files = [ + {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"}, + {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"}, +] + +[package.extras] +develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"] +docs = ["sphinx"] +gmpy = ["gmpy2 (>=2.1.0a4)"] +tests = ["pytest (>=4.6)"] + [[package]] name = "multidict" version = "6.0.4" @@ -1075,6 +1294,84 @@ files = [ {file = "nest_asyncio-1.5.7.tar.gz", hash = "sha256:6a80f7b98f24d9083ed24608977c09dd608d83f91cccc24c9d2cba6d10e01c10"}, ] +[[package]] +name = "numpy" +version = "1.24.4" +description = "Fundamental package for array computing in Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "numpy-1.24.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0bfb52d2169d58c1cdb8cc1f16989101639b34c7d3ce60ed70b19c63eba0b64"}, + {file = "numpy-1.24.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ed094d4f0c177b1b8e7aa9cba7d6ceed51c0e569a5318ac0ca9a090680a6a1b1"}, + {file = "numpy-1.24.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:79fc682a374c4a8ed08b331bef9c5f582585d1048fa6d80bc6c35bc384eee9b4"}, + {file = "numpy-1.24.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ffe43c74893dbf38c2b0a1f5428760a1a9c98285553c89e12d70a96a7f3a4d6"}, + {file = "numpy-1.24.4-cp310-cp310-win32.whl", hash = "sha256:4c21decb6ea94057331e111a5bed9a79d335658c27ce2adb580fb4d54f2ad9bc"}, + {file = "numpy-1.24.4-cp310-cp310-win_amd64.whl", hash = "sha256:b4bea75e47d9586d31e892a7401f76e909712a0fd510f58f5337bea9572c571e"}, + {file = "numpy-1.24.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f136bab9c2cfd8da131132c2cf6cc27331dd6fae65f95f69dcd4ae3c3639c810"}, + {file = "numpy-1.24.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e2926dac25b313635e4d6cf4dc4e51c8c0ebfed60b801c799ffc4c32bf3d1254"}, + {file = "numpy-1.24.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:222e40d0e2548690405b0b3c7b21d1169117391c2e82c378467ef9ab4c8f0da7"}, + {file = "numpy-1.24.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7215847ce88a85ce39baf9e89070cb860c98fdddacbaa6c0da3ffb31b3350bd5"}, + {file = "numpy-1.24.4-cp311-cp311-win32.whl", hash = "sha256:4979217d7de511a8d57f4b4b5b2b965f707768440c17cb70fbf254c4b225238d"}, + {file = "numpy-1.24.4-cp311-cp311-win_amd64.whl", hash = "sha256:b7b1fc9864d7d39e28f41d089bfd6353cb5f27ecd9905348c24187a768c79694"}, + {file = "numpy-1.24.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1452241c290f3e2a312c137a9999cdbf63f78864d63c79039bda65ee86943f61"}, + {file = "numpy-1.24.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:04640dab83f7c6c85abf9cd729c5b65f1ebd0ccf9de90b270cd61935eef0197f"}, + {file = "numpy-1.24.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5425b114831d1e77e4b5d812b69d11d962e104095a5b9c3b641a218abcc050e"}, + {file = "numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd80e219fd4c71fc3699fc1dadac5dcf4fd882bfc6f7ec53d30fa197b8ee22dc"}, + {file = "numpy-1.24.4-cp38-cp38-win32.whl", hash = "sha256:4602244f345453db537be5314d3983dbf5834a9701b7723ec28923e2889e0bb2"}, + {file = "numpy-1.24.4-cp38-cp38-win_amd64.whl", hash = "sha256:692f2e0f55794943c5bfff12b3f56f99af76f902fc47487bdfe97856de51a706"}, + {file = "numpy-1.24.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:2541312fbf09977f3b3ad449c4e5f4bb55d0dbf79226d7724211acc905049400"}, + {file = "numpy-1.24.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9667575fb6d13c95f1b36aca12c5ee3356bf001b714fc354eb5465ce1609e62f"}, + {file = "numpy-1.24.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f3a86ed21e4f87050382c7bc96571755193c4c1392490744ac73d660e8f564a9"}, + {file = "numpy-1.24.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d11efb4dbecbdf22508d55e48d9c8384db795e1b7b51ea735289ff96613ff74d"}, + {file = "numpy-1.24.4-cp39-cp39-win32.whl", hash = "sha256:6620c0acd41dbcb368610bb2f4d83145674040025e5536954782467100aa8835"}, + {file = "numpy-1.24.4-cp39-cp39-win_amd64.whl", hash = "sha256:befe2bf740fd8373cf56149a5c23a0f601e82869598d41f8e188a0e9869926f8"}, + {file = "numpy-1.24.4-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:31f13e25b4e304632a4619d0e0777662c2ffea99fcae2029556b17d8ff958aef"}, + {file = "numpy-1.24.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95f7ac6540e95bc440ad77f56e520da5bf877f87dca58bd095288dce8940532a"}, + {file = "numpy-1.24.4-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:e98f220aa76ca2a977fe435f5b04d7b3470c0a2e6312907b37ba6068f26787f2"}, + {file = "numpy-1.24.4.tar.gz", hash = "sha256:80f5e3a4e498641401868df4208b74581206afbee7cf7b8329daae82676d9463"}, +] + +[[package]] +name = "onnxruntime" +version = "1.16.0" +description = "ONNX Runtime is a runtime accelerator for Machine Learning models" +optional = false +python-versions = "*" +files = [ + {file = "onnxruntime-1.16.0-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:69c86ba3d90c166944c4a3c8a5b2a24a7bc45e68ae5997d83279af21ffd0f5f3"}, + {file = "onnxruntime-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:604a46aa2ad6a51f2fc4df1a984ea571a43aa02424aea93464c32ce02d23b3bb"}, + {file = "onnxruntime-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a40660516b382031279fb690fc3d068ad004173c2bd12bbdc0bd0fe01ef8b7c3"}, + {file = "onnxruntime-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:349fd9c7875c1a76609d45b079484f8059adfb1fb87a30506934fb667ceab249"}, + {file = "onnxruntime-1.16.0-cp310-cp310-win32.whl", hash = "sha256:22c9e2f1a1f15b41b01195cd2520c013c22228efc4795ae4118048ea4118aad2"}, + {file = "onnxruntime-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:b9667a131abfd226a728cc1c1ecf5cc5afa4fff37422f95a84bc22f7c175b57f"}, + {file = "onnxruntime-1.16.0-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:f7b292726a1f3fa4a483d7e902da083a5889a86a860dbc3a6479988cad342578"}, + {file = "onnxruntime-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:61eaf288a2482c5561f620fb686c80c32709e92724bbb59a5e4a0d349429e205"}, + {file = "onnxruntime-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fe2239d5821d5501eecccfe5c408485591b5d73eb76a61491a8f78179c2e65a"}, + {file = "onnxruntime-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5a4924604fcdf1704b7f7e087b4c0b0e181c58367a687da55b1aec2705631943"}, + {file = "onnxruntime-1.16.0-cp311-cp311-win32.whl", hash = "sha256:55d8456f1ab28c32aec9c478b7638ed145102b03bb9b719b79e065ffc5de9c72"}, + {file = "onnxruntime-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:c2a53ffd456187028c841ac7ed0d83b4c2b7e48bd2b1cf2a42d253ecf1e97cb3"}, + {file = "onnxruntime-1.16.0-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:bf5769aa4095cfe2503307867fa95b5f73732909ee21b67fe24da443af445925"}, + {file = "onnxruntime-1.16.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:c0974deadf11ddab201d915a10517be00fa9d6816def56fa374e4c1a0008985a"}, + {file = "onnxruntime-1.16.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:99dccf1d2eba5ecd7b6c0e8e80d92d0030291f3506726c156e018a4d7a187c6f"}, + {file = "onnxruntime-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0170ed05d3a8a7c24fe01fc262a6bc603837751f3bb273df7006a2da73f37fff"}, + {file = "onnxruntime-1.16.0-cp38-cp38-win32.whl", hash = "sha256:5ecd38e98ccdcbbaa7e529e96852f4c1c136559802354b76378d9a19532018ee"}, + {file = "onnxruntime-1.16.0-cp38-cp38-win_amd64.whl", hash = "sha256:1c585c60e9541a9bd4fb319ba9a3ef6122a28dcf4f3dbcdf014df44570cad6f8"}, + {file = "onnxruntime-1.16.0-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:efe59c1e51ad647fb18860233f5971e309961d09ca10697170ef9b7d9fa728f4"}, + {file = "onnxruntime-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e3c9a9cccab8f6512a0c0207b2816dd8864f2f720f6e9df5cf01e30c4f80194f"}, + {file = "onnxruntime-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dcf16a252308ec6e0737db7028b63fed0ac28fbad134f86216c0dfb051a31f38"}, + {file = "onnxruntime-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f533aa90ee7189e88b6b612d6adae7d290971090598cfd47ce034ab0d106fc9c"}, + {file = "onnxruntime-1.16.0-cp39-cp39-win32.whl", hash = "sha256:306c7f5d8a0c24c65afb34f7deb0bc526defde2249e53538f1dce083945a2d6e"}, + {file = "onnxruntime-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:df8a00a7b057ba497e2822175cc68731d84b89a6d50a3a2a3ec51e98e9c91125"}, +] + +[package.dependencies] +coloredlogs = "*" +flatbuffers = "*" +numpy = ">=1.21.6" +packaging = "*" +protobuf = "*" +sympy = "*" + [[package]] name = "openai" version = "0.27.10" @@ -1097,6 +1394,17 @@ dev = ["black (>=21.6b0,<22.0)", "pytest (==6.*)", "pytest-asyncio", "pytest-moc embeddings = ["matplotlib", "numpy", "openpyxl (>=3.0.7)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)", "plotly", "scikit-learn (>=1.0.2)", "scipy", "tenacity (>=8.0.1)"] wandb = ["numpy", "openpyxl (>=3.0.7)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)", "wandb"] +[[package]] +name = "overrides" +version = "7.4.0" +description = "A decorator to automatically detect mismatch when overriding a method." +optional = false +python-versions = ">=3.6" +files = [ + {file = "overrides-7.4.0-py3-none-any.whl", hash = "sha256:3ad24583f86d6d7a49049695efe9933e67ba62f0c7625d53c59fa832ce4b8b7d"}, + {file = "overrides-7.4.0.tar.gz", hash = "sha256:9502a3cca51f4fac40b5feca985b6703a5c1f6ad815588a7ca9e285b9dca6757"}, +] + [[package]] name = "packaging" version = "23.1" @@ -1172,6 +1480,28 @@ dev = ["black", "flake8", "flake8-print", "isort", "pre-commit"] sentry = ["django", "sentry-sdk"] test = ["coverage", "flake8", "freezegun (==0.3.15)", "mock (>=2.0.0)", "pylint", "pytest"] +[[package]] +name = "protobuf" +version = "4.24.3" +description = "" +optional = false +python-versions = ">=3.7" +files = [ + {file = "protobuf-4.24.3-cp310-abi3-win32.whl", hash = "sha256:20651f11b6adc70c0f29efbe8f4a94a74caf61b6200472a9aea6e19898f9fcf4"}, + {file = "protobuf-4.24.3-cp310-abi3-win_amd64.whl", hash = "sha256:3d42e9e4796a811478c783ef63dc85b5a104b44aaaca85d4864d5b886e4b05e3"}, + {file = "protobuf-4.24.3-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:6e514e8af0045be2b56e56ae1bb14f43ce7ffa0f68b1c793670ccbe2c4fc7d2b"}, + {file = "protobuf-4.24.3-cp37-abi3-manylinux2014_aarch64.whl", hash = "sha256:ba53c2f04798a326774f0e53b9c759eaef4f6a568ea7072ec6629851c8435959"}, + {file = "protobuf-4.24.3-cp37-abi3-manylinux2014_x86_64.whl", hash = "sha256:f6ccbcf027761a2978c1406070c3788f6de4a4b2cc20800cc03d52df716ad675"}, + {file = "protobuf-4.24.3-cp37-cp37m-win32.whl", hash = "sha256:1b182c7181a2891e8f7f3a1b5242e4ec54d1f42582485a896e4de81aa17540c2"}, + {file = "protobuf-4.24.3-cp37-cp37m-win_amd64.whl", hash = "sha256:b0271a701e6782880d65a308ba42bc43874dabd1a0a0f41f72d2dac3b57f8e76"}, + {file = "protobuf-4.24.3-cp38-cp38-win32.whl", hash = "sha256:e29d79c913f17a60cf17c626f1041e5288e9885c8579832580209de8b75f2a52"}, + {file = "protobuf-4.24.3-cp38-cp38-win_amd64.whl", hash = "sha256:067f750169bc644da2e1ef18c785e85071b7c296f14ac53e0900e605da588719"}, + {file = "protobuf-4.24.3-cp39-cp39-win32.whl", hash = "sha256:2da777d34b4f4f7613cdf85c70eb9a90b1fbef9d36ae4a0ccfe014b0b07906f1"}, + {file = "protobuf-4.24.3-cp39-cp39-win_amd64.whl", hash = "sha256:f631bb982c5478e0c1c70eab383af74a84be66945ebf5dd6b06fc90079668d0b"}, + {file = "protobuf-4.24.3-py3-none-any.whl", hash = "sha256:f6f8dc65625dadaad0c8545319c2e2f0424fede988368893ca3844261342c11a"}, + {file = "protobuf-4.24.3.tar.gz", hash = "sha256:12e9ad2ec079b833176d2921be2cb24281fa591f0b119b208b788adc48c2561d"}, +] + [[package]] name = "psutil" version = "5.9.5" @@ -1198,6 +1528,53 @@ files = [ [package.extras] test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"] +[[package]] +name = "pulsar-client" +version = "3.3.0" +description = "Apache Pulsar Python client library" +optional = false +python-versions = "*" +files = [ + {file = "pulsar_client-3.3.0-cp310-cp310-macosx_10_15_universal2.whl", hash = "sha256:c31afd3e67a044ff93177df89e08febf214cc965e95ede097d9fe8755af00e01"}, + {file = "pulsar_client-3.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f66982284571674b215324cc26b5c2f7c56c7043113c47a7084cb70d67a8afb"}, + {file = "pulsar_client-3.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fe50a06f81c48a75a9b95c27a6446260039adca71d9face273740de96b2efca"}, + {file = "pulsar_client-3.3.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:d4c46a4b96a6e9919cfe220156d69a2ede8053d9ea1add4ada108abcf2ba9775"}, + {file = "pulsar_client-3.3.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:1e4b5d44b992c9b036286b483f3588c10b89c6047fb59d80c7474445997f4e10"}, + {file = "pulsar_client-3.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:497a59ac6b650835a3b2c502f53477e5c98e5226998ca3f17c0b0a3eb4d67d08"}, + {file = "pulsar_client-3.3.0-cp311-cp311-macosx_10_15_universal2.whl", hash = "sha256:386e78ff52058d881780bae1f6e84ac9434ae0b01a8581755ca8cc0dc844a332"}, + {file = "pulsar_client-3.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e4ecb780df58bcfd3918590bd3ff31ed79bccfbef3a1a60370642eb1e14a9d2"}, + {file = "pulsar_client-3.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ce1e215c252f22a6f26ca5e9076826041a04d88dc213b92c86b524be2774a64"}, + {file = "pulsar_client-3.3.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:88b0fd5be73a4103986b9dbe3a66468cf8829371e34af87ff8f216e3980f4cbe"}, + {file = "pulsar_client-3.3.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:33656450536d83eed1563ff09692c2c415fb199d88e9ed97d701ca446a119e1b"}, + {file = "pulsar_client-3.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:ce33de700b06583df8777e139d68cb4b4b3d0a2eac168d74278d8935f357fb10"}, + {file = "pulsar_client-3.3.0-cp37-cp37m-macosx_10_15_universal2.whl", hash = "sha256:7b5dd25cf778d6c980d36c53081e843ea272afe7af4f0ad6394ae9513f94641b"}, + {file = "pulsar_client-3.3.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:33c4e6865fda62a2e460f823dce4d49ac2973a4459b8ff99eda5fdd6aaaebf46"}, + {file = "pulsar_client-3.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f1810ddc623c8de2675d17405ce47057a9a2b92298e708ce4d9564847f5ad904"}, + {file = "pulsar_client-3.3.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:8259c3b856eb6deaa1f93dce893ab18d99d36d102da5612c8e97a4fb41b70ab1"}, + {file = "pulsar_client-3.3.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:5e7a48b2e505cde758fd51a601b5da0671fa98c9baee38362aaaa3ab2b930c28"}, + {file = "pulsar_client-3.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:ede264385d47257b2f2b08ecde9181ec5338bea5639cc543d1856f01736778d2"}, + {file = "pulsar_client-3.3.0-cp38-cp38-macosx_10_15_universal2.whl", hash = "sha256:0f64c62746ccd5b65a0c505f5f40b9af1f147eb1fa2d8f9c90cd5c8b92dd8597"}, + {file = "pulsar_client-3.3.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b84a20c9012e3c4ef1b7085acd7467197118c090b378dec27d773fb79d91556"}, + {file = "pulsar_client-3.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c4e15fa696e275ccb66d0791fdc19c4dea0420d81349c8055e485b134125e14f"}, + {file = "pulsar_client-3.3.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:72cbb1bdcba2dd1265296b5ba65331622ee89c16db75edaad46dd7b90c6dd447"}, + {file = "pulsar_client-3.3.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:d54dd12955bf587dd46d9184444af5e853d9da2a14bbfb739ed2c7c3b78ce280"}, + {file = "pulsar_client-3.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:43f98afdf0334b2b957a4d96f97a1fe8a7f7fd1e2631d40c3f00b4162f396485"}, + {file = "pulsar_client-3.3.0-cp39-cp39-macosx_10_15_universal2.whl", hash = "sha256:efe7c1e6a96daccc522c3567b6847ffa54c13e0f510d9a427b4aeff9fbebe54b"}, + {file = "pulsar_client-3.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f28e94420090fceeb38e23fc744f3edf8710e48314ef5927d2b674a1d1e43ee0"}, + {file = "pulsar_client-3.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42c8f3eaa98e2351805ecb6efb6d5fedf47a314a3ce6af0e05ea1449ea7244ed"}, + {file = "pulsar_client-3.3.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:5e69750f8ae57e55fddf97b459ce0d8b38b2bb85f464a71e871ee6a86d893be7"}, + {file = "pulsar_client-3.3.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:7e147e5ba460c1818bc05254279a885b4e552bcafb8961d40e31f98d5ff46628"}, + {file = "pulsar_client-3.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:694530af1d6c75fb81456fb509778c1868adee31e997ddece6e21678200182ea"}, +] + +[package.dependencies] +certifi = "*" + +[package.extras] +all = ["apache-bookkeeper-client (>=4.16.1)", "fastavro (==1.7.3)", "grpcio (>=1.8.2)", "prometheus-client", "protobuf (>=3.6.1,<=3.20.3)", "ratelimit"] +avro = ["fastavro (==1.7.3)"] +functions = ["apache-bookkeeper-client (>=4.16.1)", "grpcio (>=1.8.2)", "prometheus-client", "protobuf (>=3.6.1,<=3.20.3)", "ratelimit"] + [[package]] name = "pycparser" version = "2.21" @@ -1324,6 +1701,27 @@ cffi = ">=1.4.1" docs = ["sphinx (>=1.6.5)", "sphinx-rtd-theme"] tests = ["hypothesis (>=3.27.0)", "pytest (>=3.2.1,!=3.3.0)"] +[[package]] +name = "pypika" +version = "0.48.9" +description = "A SQL query builder API for Python" +optional = false +python-versions = "*" +files = [ + {file = "PyPika-0.48.9.tar.gz", hash = "sha256:838836a61747e7c8380cd1b7ff638694b7a7335345d0f559b04b2cd832ad5378"}, +] + +[[package]] +name = "pyreadline3" +version = "3.4.1" +description = "A python implementation of GNU readline." +optional = false +python-versions = "*" +files = [ + {file = "pyreadline3-3.4.1-py3-none-any.whl", hash = "sha256:b0efb6516fd4fb07b45949053826a62fa4cb353db5be2bbb4a7aa1fdd1e345fb"}, + {file = "pyreadline3-3.4.1.tar.gz", hash = "sha256:6f3d1f7b8a31ba32b73917cefc1f28cc660562f39aea8646d30bd6eff21f7bae"}, +] + [[package]] name = "pytest" version = "7.4.1" @@ -1878,6 +2276,20 @@ typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\"" [package.extras] full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart", "pyyaml"] +[[package]] +name = "sympy" +version = "1.12" +description = "Computer algebra system (CAS) in Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "sympy-1.12-py3-none-any.whl", hash = "sha256:c3588cd4295d0c0f603d0f2ae780587e64e2efeedb3521e46b9bb1d08d184fa5"}, + {file = "sympy-1.12.tar.gz", hash = "sha256:ebf595c8dac3e0fdc4152c51878b498396ec7f30e7a914d6071e674d49420fb8"}, +] + +[package.dependencies] +mpmath = ">=0.19" + [[package]] name = "tiktoken" version = "0.4.0" @@ -2010,23 +2422,24 @@ telegram = ["requests"] [[package]] name = "typer" -version = "0.7.0" +version = "0.9.0" description = "Typer, build great CLIs. Easy to code. Based on Python type hints." optional = false python-versions = ">=3.6" files = [ - {file = "typer-0.7.0-py3-none-any.whl", hash = "sha256:b5e704f4e48ec263de1c0b3a2387cd405a13767d2f907f44c1a08cbad96f606d"}, - {file = "typer-0.7.0.tar.gz", hash = "sha256:ff797846578a9f2a201b53442aedeb543319466870fbe1c701eab66dd7681165"}, + {file = "typer-0.9.0-py3-none-any.whl", hash = "sha256:5d96d986a21493606a358cae4461bd8cdf83cbf33a5aa950ae629ca3b51467ee"}, + {file = "typer-0.9.0.tar.gz", hash = "sha256:50922fd79aea2f4751a8e0408ff10d2662bd0c8bbfa84755a699f3bada2978b2"}, ] [package.dependencies] click = ">=7.1.1,<9.0.0" +typing-extensions = ">=3.7.4.3" [package.extras] -all = ["colorama (>=0.4.3,<0.5.0)", "rich (>=10.11.0,<13.0.0)", "shellingham (>=1.3.0,<2.0.0)"] +all = ["colorama (>=0.4.3,<0.5.0)", "rich (>=10.11.0,<14.0.0)", "shellingham (>=1.3.0,<2.0.0)"] dev = ["autoflake (>=1.3.1,<2.0.0)", "flake8 (>=3.8.3,<4.0.0)", "pre-commit (>=2.17.0,<3.0.0)"] doc = ["cairosvg (>=2.5.2,<3.0.0)", "mdx-include (>=1.4.1,<2.0.0)", "mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=8.1.4,<9.0.0)", "pillow (>=9.3.0,<10.0.0)"] -test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6.0.0)", "mypy (==0.910)", "pytest (>=4.4.0,<8.0.0)", "pytest-cov (>=2.10.0,<5.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "pytest-xdist (>=1.32.0,<4.0.0)", "rich (>=10.11.0,<13.0.0)", "shellingham (>=1.3.0,<2.0.0)"] +test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6.0.0)", "mypy (==0.910)", "pytest (>=4.4.0,<8.0.0)", "pytest-cov (>=2.10.0,<5.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "pytest-xdist (>=1.32.0,<4.0.0)", "rich (>=10.11.0,<14.0.0)", "shellingham (>=1.3.0,<2.0.0)"] [[package]] name = "typing-extensions" @@ -2138,11 +2551,96 @@ files = [ [package.dependencies] click = ">=7.0" +colorama = {version = ">=0.4", optional = true, markers = "sys_platform == \"win32\" and extra == \"standard\""} h11 = ">=0.8" +httptools = {version = ">=0.5.0", optional = true, markers = "extra == \"standard\""} +python-dotenv = {version = ">=0.13", optional = true, markers = "extra == \"standard\""} +pyyaml = {version = ">=5.1", optional = true, markers = "extra == \"standard\""} +uvloop = {version = ">=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1", optional = true, markers = "(sys_platform != \"win32\" and sys_platform != \"cygwin\") and platform_python_implementation != \"PyPy\" and extra == \"standard\""} +watchfiles = {version = ">=0.13", optional = true, markers = "extra == \"standard\""} +websockets = {version = ">=10.4", optional = true, markers = "extra == \"standard\""} [package.extras] standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"] +[[package]] +name = "uvloop" +version = "0.17.0" +description = "Fast implementation of asyncio event loop on top of libuv" +optional = false +python-versions = ">=3.7" +files = [ + {file = "uvloop-0.17.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ce9f61938d7155f79d3cb2ffa663147d4a76d16e08f65e2c66b77bd41b356718"}, + {file = "uvloop-0.17.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:68532f4349fd3900b839f588972b3392ee56042e440dd5873dfbbcd2cc67617c"}, + {file = "uvloop-0.17.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0949caf774b9fcefc7c5756bacbbbd3fc4c05a6b7eebc7c7ad6f825b23998d6d"}, + {file = "uvloop-0.17.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff3d00b70ce95adce264462c930fbaecb29718ba6563db354608f37e49e09024"}, + {file = "uvloop-0.17.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:a5abddb3558d3f0a78949c750644a67be31e47936042d4f6c888dd6f3c95f4aa"}, + {file = "uvloop-0.17.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:8efcadc5a0003d3a6e887ccc1fb44dec25594f117a94e3127954c05cf144d811"}, + {file = "uvloop-0.17.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:3378eb62c63bf336ae2070599e49089005771cc651c8769aaad72d1bd9385a7c"}, + {file = "uvloop-0.17.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6aafa5a78b9e62493539456f8b646f85abc7093dd997f4976bb105537cf2635e"}, + {file = "uvloop-0.17.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c686a47d57ca910a2572fddfe9912819880b8765e2f01dc0dd12a9bf8573e539"}, + {file = "uvloop-0.17.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:864e1197139d651a76c81757db5eb199db8866e13acb0dfe96e6fc5d1cf45fc4"}, + {file = "uvloop-0.17.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:2a6149e1defac0faf505406259561bc14b034cdf1d4711a3ddcdfbaa8d825a05"}, + {file = "uvloop-0.17.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:6708f30db9117f115eadc4f125c2a10c1a50d711461699a0cbfaa45b9a78e376"}, + {file = "uvloop-0.17.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:23609ca361a7fc587031429fa25ad2ed7242941adec948f9d10c045bfecab06b"}, + {file = "uvloop-0.17.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2deae0b0fb00a6af41fe60a675cec079615b01d68beb4cc7b722424406b126a8"}, + {file = "uvloop-0.17.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45cea33b208971e87a31c17622e4b440cac231766ec11e5d22c76fab3bf9df62"}, + {file = "uvloop-0.17.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:9b09e0f0ac29eee0451d71798878eae5a4e6a91aa275e114037b27f7db72702d"}, + {file = "uvloop-0.17.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:dbbaf9da2ee98ee2531e0c780455f2841e4675ff580ecf93fe5c48fe733b5667"}, + {file = "uvloop-0.17.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:a4aee22ece20958888eedbad20e4dbb03c37533e010fb824161b4f05e641f738"}, + {file = "uvloop-0.17.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:307958f9fc5c8bb01fad752d1345168c0abc5d62c1b72a4a8c6c06f042b45b20"}, + {file = "uvloop-0.17.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ebeeec6a6641d0adb2ea71dcfb76017602ee2bfd8213e3fcc18d8f699c5104f"}, + {file = "uvloop-0.17.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1436c8673c1563422213ac6907789ecb2b070f5939b9cbff9ef7113f2b531595"}, + {file = "uvloop-0.17.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:8887d675a64cfc59f4ecd34382e5b4f0ef4ae1da37ed665adba0c2badf0d6578"}, + {file = "uvloop-0.17.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:3db8de10ed684995a7f34a001f15b374c230f7655ae840964d51496e2f8a8474"}, + {file = "uvloop-0.17.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7d37dccc7ae63e61f7b96ee2e19c40f153ba6ce730d8ba4d3b4e9738c1dccc1b"}, + {file = "uvloop-0.17.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:cbbe908fda687e39afd6ea2a2f14c2c3e43f2ca88e3a11964b297822358d0e6c"}, + {file = "uvloop-0.17.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3d97672dc709fa4447ab83276f344a165075fd9f366a97b712bdd3fee05efae8"}, + {file = "uvloop-0.17.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f1e507c9ee39c61bfddd79714e4f85900656db1aec4d40c6de55648e85c2799c"}, + {file = "uvloop-0.17.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c092a2c1e736086d59ac8e41f9c98f26bbf9b9222a76f21af9dfe949b99b2eb9"}, + {file = "uvloop-0.17.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:30babd84706115626ea78ea5dbc7dd8d0d01a2e9f9b306d24ca4ed5796c66ded"}, + {file = "uvloop-0.17.0.tar.gz", hash = "sha256:0ddf6baf9cf11a1a22c71487f39f15b2cf78eb5bde7e5b45fbb99e8a9d91b9e1"}, +] + +[package.extras] +dev = ["Cython (>=0.29.32,<0.30.0)", "Sphinx (>=4.1.2,<4.2.0)", "aiohttp", "flake8 (>=3.9.2,<3.10.0)", "mypy (>=0.800)", "psutil", "pyOpenSSL (>=22.0.0,<22.1.0)", "pycodestyle (>=2.7.0,<2.8.0)", "pytest (>=3.6.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)"] +docs = ["Sphinx (>=4.1.2,<4.2.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)"] +test = ["Cython (>=0.29.32,<0.30.0)", "aiohttp", "flake8 (>=3.9.2,<3.10.0)", "mypy (>=0.800)", "psutil", "pyOpenSSL (>=22.0.0,<22.1.0)", "pycodestyle (>=2.7.0,<2.8.0)"] + +[[package]] +name = "watchfiles" +version = "0.20.0" +description = "Simple, modern and high performance file watching and code reload in python." +optional = false +python-versions = ">=3.7" +files = [ + {file = "watchfiles-0.20.0-cp37-abi3-macosx_10_7_x86_64.whl", hash = "sha256:3796312bd3587e14926013612b23066912cf45a14af71cf2b20db1c12dadf4e9"}, + {file = "watchfiles-0.20.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:d0002d81c89a662b595645fb684a371b98ff90a9c7d8f8630c82f0fde8310458"}, + {file = "watchfiles-0.20.0-cp37-abi3-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:570848706440373b4cd8017f3e850ae17f76dbdf1e9045fc79023b11e1afe490"}, + {file = "watchfiles-0.20.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9a0351d20d03c6f7ad6b2e8a226a5efafb924c7755ee1e34f04c77c3682417fa"}, + {file = "watchfiles-0.20.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:007dcc4a401093010b389c044e81172c8a2520dba257c88f8828b3d460c6bb38"}, + {file = "watchfiles-0.20.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0d82dbc1832da83e441d112069833eedd4cf583d983fb8dd666fbefbea9d99c0"}, + {file = "watchfiles-0.20.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:99f4c65fd2fce61a571b2a6fcf747d6868db0bef8a934e8ca235cc8533944d95"}, + {file = "watchfiles-0.20.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5392dd327a05f538c56edb1c6ebba6af91afc81b40822452342f6da54907bbdf"}, + {file = "watchfiles-0.20.0-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:08dc702529bb06a2b23859110c214db245455532da5eaea602921687cfcd23db"}, + {file = "watchfiles-0.20.0-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:7d4e66a857621584869cfbad87039e65dadd7119f0d9bb9dbc957e089e32c164"}, + {file = "watchfiles-0.20.0-cp37-abi3-win32.whl", hash = "sha256:a03d1e6feb7966b417f43c3e3783188167fd69c2063e86bad31e62c4ea794cc5"}, + {file = "watchfiles-0.20.0-cp37-abi3-win_amd64.whl", hash = "sha256:eccc8942bcdc7d638a01435d915b913255bbd66f018f1af051cd8afddb339ea3"}, + {file = "watchfiles-0.20.0-cp37-abi3-win_arm64.whl", hash = "sha256:b17d4176c49d207865630da5b59a91779468dd3e08692fe943064da260de2c7c"}, + {file = "watchfiles-0.20.0-pp38-pypy38_pp73-macosx_10_7_x86_64.whl", hash = "sha256:d97db179f7566dcf145c5179ddb2ae2a4450e3a634eb864b09ea04e68c252e8e"}, + {file = "watchfiles-0.20.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:835df2da7a5df5464c4a23b2d963e1a9d35afa422c83bf4ff4380b3114603644"}, + {file = "watchfiles-0.20.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:608cd94a8767f49521901aff9ae0c92cc8f5a24d528db7d6b0295290f9d41193"}, + {file = "watchfiles-0.20.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89d1de8218874925bce7bb2ae9657efc504411528930d7a83f98b1749864f2ef"}, + {file = "watchfiles-0.20.0-pp39-pypy39_pp73-macosx_10_7_x86_64.whl", hash = "sha256:13f995d5152a8ba4ed7c2bbbaeee4e11a5944defc7cacd0ccb4dcbdcfd78029a"}, + {file = "watchfiles-0.20.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:9b5c8d3be7b502f8c43a33c63166ada8828dbb0c6d49c8f9ce990a96de2f5a49"}, + {file = "watchfiles-0.20.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e43af4464daa08723c04b43cf978ab86cc55c684c16172622bdac64b34e36af0"}, + {file = "watchfiles-0.20.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87d9e1f75c4f86c93d73b5bd1ebe667558357548f11b4f8af4e0e272f79413ce"}, + {file = "watchfiles-0.20.0.tar.gz", hash = "sha256:728575b6b94c90dd531514677201e8851708e6e4b5fe7028ac506a200b622019"}, +] + +[package.dependencies] +anyio = ">=3.0.0" + [[package]] name = "websockets" version = "11.0.3" @@ -2411,4 +2909,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "85e02897d3dd2c8b9bce7e15985eb7aecbd52c166478fceca445787fdde2d60b" +content-hash = "52b918568321ba9bb5289ce45bd2be5f29ef4cc900bfcf3019b0b524d2d19404" diff --git a/server/pyproject.toml b/server/pyproject.toml index 4085306de..5918cc0be 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -1,14 +1,12 @@ [tool.poetry] name = "continuedev" -version = "0.1.42" +version = "0.1.49" description = "" authors = ["Nate Sesti "] readme = "README.md" [tool.poetry.dependencies] python = "^3.8.1" -fastapi = "^0.95.1" -typer = "^0.7.0" openai = "^0.27.5" boltons = "^23.0.0" pydantic = "^1.10.7" @@ -34,6 +32,9 @@ replicate = "^0.11.0" redbaron = "^0.9.2" python-lsp-server = "^1.7.4" huggingface-hub = "^0.16.4" +typer = "^0.9.0" +chromadb = "^0.4.12" +fastapi = "0.95.2" [tool.poetry.scripts] typegen = "continuedev.models.generate_json_schema:main" diff --git a/server/requirements.txt b/server/requirements.txt index d430f20d3..c3e2d5df2 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -1,5 +1,5 @@ -fastapi==0.95.1 -typer==0.7.0 +fastapi==0.95.2 +typer==0.9.0 openai==0.27.5 boltons==23.0.0 pydantic==1.10.7 @@ -24,4 +24,5 @@ replicate==0.11.0 bs4==0.0.1 redbaron==0.9.2 python-lsp-server[websockets]==1.8.0 -huggingface-hub==0.16.4 \ No newline at end of file +huggingface-hub==0.16.4 +chromadb==0.4.12 \ No newline at end of file