AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(platform/featureflags): Setting up feature flagging (#8718)
Aarushi4b8087c067dd
diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/api_key/key_manager.py b/autogpt_platform/autogpt_libs/autogpt_libs/api_key/key_manager.pyindex 637d5da353..257250a753 100644--- a/autogpt_platform/autogpt_libs/autogpt_libs/api_key/key_manager.py+++ b/autogpt_platform/autogpt_libs/autogpt_libs/api_key/key_manager.py@@ -1,14 +1,17 @@-from typing import NamedTuple-import secretsimport hashlib+import secrets+from typing import NamedTuple+class APIKeyContainer(NamedTuple):"""Container for API key parts."""+raw: strprefix: strpostfix: strhash: str+class APIKeyManager:PREFIX: str = "agpt_"PREFIX_LENGTH: int = 8@@ -19,9 +22,9 @@ class APIKeyManager:raw_key = f"{self.PREFIX}{secrets.token_urlsafe(32)}"return APIKeyContainer(raw=raw_key,- prefix=raw_key[:self.PREFIX_LENGTH],- postfix=raw_key[-self.POSTFIX_LENGTH:],- hash=hashlib.sha256(raw_key.encode()).hexdigest()+ prefix=raw_key[: self.PREFIX_LENGTH],+ postfix=raw_key[-self.POSTFIX_LENGTH :],+ hash=hashlib.sha256(raw_key.encode()).hexdigest(),)def verify_api_key(self, provided_key: str, stored_hash: str) -> bool:diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/auth/depends.py b/autogpt_platform/autogpt_libs/autogpt_libs/auth/depends.pyindex fa1a385011..55fa427366 100644--- a/autogpt_platform/autogpt_libs/autogpt_libs/auth/depends.py+++ b/autogpt_platform/autogpt_libs/autogpt_libs/auth/depends.py@@ -1,8 +1,8 @@import fastapi-from .middleware import auth_middleware-from .models import User, DEFAULT_USER_ID, DEFAULT_EMAILfrom .config import Settings+from .middleware import auth_middleware+from .models import DEFAULT_USER_ID, Userdef requires_user(payload: dict = fastapi.Depends(auth_middleware)) -> User:diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/__init__.py b/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/client.py b/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/client.pynew file mode 100644index 0000000000..d9f081e5cb--- /dev/null+++ b/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/client.py@@ -0,0 +1,167 @@+import asyncio+import contextlib+import logging+from functools import wraps+from typing import Any, Awaitable, Callable, Dict, Optional, TypeVar, Union, cast++import ldclient+from fastapi import HTTPException+from ldclient import Context, LDClient+from ldclient.config import Config+from typing_extensions import ParamSpec++from .config import SETTINGS++logger = logging.getLogger(__name__)+logging.basicConfig(level=logging.DEBUG)++P = ParamSpec("P")+T = TypeVar("T")+++def get_client() -> LDClient:+ """Get the LaunchDarkly client singleton."""+ return ldclient.get()+++def initialize_launchdarkly() -> None:+ sdk_key = SETTINGS.launch_darkly_sdk_key+ logger.debug(+ f"Initializing LaunchDarkly with SDK key: {'present' if sdk_key else 'missing'}"+ )++ if not sdk_key:+ logger.warning("LaunchDarkly SDK key not configured")+ return++ config = Config(sdk_key)+ ldclient.set_config(config)++ if ldclient.get().is_initialized():+ logger.info("LaunchDarkly client initialized successfully")+ else:+ logger.error("LaunchDarkly client failed to initialize")+++def shutdown_launchdarkly() -> None:+ """Shutdown the LaunchDarkly client."""+ if ldclient.get().is_initialized():+ ldclient.get().close()+ logger.info("LaunchDarkly client closed successfully")+++def create_context(+ user_id: str, additional_attributes: Optional[Dict[str, Any]] = None+) -> Context:+ """Create LaunchDarkly context with optional additional attributes."""+ builder = Context.builder(str(user_id)).kind("user")+ if additional_attributes:+ for key, value in additional_attributes.items():+ builder.set(key, value)+ return builder.build()+++def feature_flag(+ flag_key: str,+ default: bool = False,+) -> Callable[+ [Callable[P, Union[T, Awaitable[T]]]], Callable[P, Union[T, Awaitable[T]]]+]:+ """+ Decorator for feature flag protected endpoints.+ """++ def decorator(+ func: Callable[P, Union[T, Awaitable[T]]]+ ) -> Callable[P, Union[T, Awaitable[T]]]:+ @wraps(func)+ async def async_wrapper(*args: P.args, **kwargs: P.kwargs) -> T:+ try:+ user_id = kwargs.get("user_id")+ if not user_id:+ raise ValueError("user_id is required")++ if not get_client().is_initialized():+ logger.warning(+ f"LaunchDarkly not initialized, using default={default}"+ )+ is_enabled = default+ else:+ context = create_context(str(user_id))+ is_enabled = get_client().variation(flag_key, context, default)++ if not is_enabled:+ raise HTTPException(status_code=404, detail="Feature not available")++ result = func(*args, **kwargs)+ if asyncio.iscoroutine(result):+ return await result+ return cast(T, result)+ except Exception as e:+ logger.error(f"Error evaluating feature flag {flag_key}: {e}")+ raise++ @wraps(func)+ def sync_wrapper(*args: P.args, **kwargs: P.kwargs) -> T:+ try:+ user_id = kwargs.get("user_id")+ if not user_id:+ raise ValueError("user_id is required")++ if not get_client().is_initialized():+ logger.warning(+ f"LaunchDarkly not initialized, using default={default}"+ )+ is_enabled = default+ else:+ context = create_context(str(user_id))+ is_enabled = get_client().variation(flag_key, context, default)++ if not is_enabled:+ raise HTTPException(status_code=404, detail="Feature not available")++ return cast(T, func(*args, **kwargs))+ except Exception as e:+ logger.error(f"Error evaluating feature flag {flag_key}: {e}")+ raise++ return cast(+ Callable[P, Union[T, Awaitable[T]]],+ async_wrapper if asyncio.iscoroutinefunction(func) else sync_wrapper,+ )++ return decorator+++def percentage_rollout(+ flag_key: str,+ default: bool = False,+) -> Callable[+ [Callable[P, Union[T, Awaitable[T]]]], Callable[P, Union[T, Awaitable[T]]]+]:+ """Decorator for percentage-based rollouts."""+ return feature_flag(flag_key, default)+++def beta_feature(+ flag_key: Optional[str] = None,+ unauthorized_response: Any = {"message": "Not available in beta"},+) -> Callable[+ [Callable[P, Union[T, Awaitable[T]]]], Callable[P, Union[T, Awaitable[T]]]+]:+ """Decorator for beta features."""+ actual_key = f"beta-{flag_key}" if flag_key else "beta"+ return feature_flag(actual_key, False)+++def mock_flag_variation(flag_key: str, return_value: Any):+ """Context manager for testing feature flags."""+ original_variation = get_client().variation+ get_client().variation = lambda key, context, default: (+ return_value if key == flag_key else original_variation(key, context, default)+ )+ try:+ yield+ finally:+ get_client().variation = original_variationdiff --git a/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/client_test.py b/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/client_test.pynew file mode 100644index 0000000000..b9d1e5c96a--- /dev/null+++ b/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/client_test.py@@ -0,0 +1,44 @@+import pytest+from autogpt_libs.feature_flag.client import feature_flag, mock_flag_variation+from ldclient import LDClient+++def ld_client(mocker):+ client = mocker.Mock(spec=LDClient)+ mocker.patch("ldclient.get", return_value=client)+ client.is_initialized.return_value = True+ return client+++async def test_feature_flag_enabled(ld_client):+ ld_client.variation.return_value = True++ @feature_flag("test-flag")+ async def test_function(user_id: str):+ return "success"++ result = test_function(user_id="test-user")+ assert result == "success"+ ld_client.variation.assert_called_once()+++async def test_feature_flag_unauthorized_response(ld_client):+ ld_client.variation.return_value = False++ @feature_flag("test-flag")+ async def test_function(user_id: str):+ return "success"++ result = test_function(user_id="test-user")+ assert result == {"error": "disabled"}+++def test_mock_flag_variation(ld_client):+ with mock_flag_variation("test-flag", True):+ assert ld_client.variation("test-flag", None, False)++ with mock_flag_variation("test-flag", False):+ assert ld_client.variation("test-flag", None, False)diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/config.py b/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/config.pynew file mode 100644index 0000000000..c8040a41bb--- /dev/null+++ b/autogpt_platform/autogpt_libs/autogpt_libs/feature_flag/config.py@@ -0,0 +1,15 @@+from pydantic import Field+from pydantic_settings import BaseSettings, SettingsConfigDict+++class Settings(BaseSettings):+ launch_darkly_sdk_key: str = Field(+ default="",+ description="The Launch Darkly SDK key",+ validation_alias="LAUNCH_DARKLY_SDK_KEY"+ )++ model_config = SettingsConfigDict(case_sensitive=True, extra="ignore")+++SETTINGS = Settings()diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/logging/config.py b/autogpt_platform/autogpt_libs/autogpt_libs/logging/config.pyindex 29df3d10f4..523f6cf8ec 100644--- a/autogpt_platform/autogpt_libs/autogpt_libs/logging/config.py+++ b/autogpt_platform/autogpt_libs/autogpt_libs/logging/config.py@@ -6,6 +6,7 @@ from pathlib import Pathfrom pydantic import Field, field_validatorfrom pydantic_settings import BaseSettings, SettingsConfigDict+from .filters import BelowLevelFilterfrom .formatters import AGPTFormatter, StructuredLoggingFormatterdiff --git a/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/__init__.py b/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/__init__.pyindex f957198eb7..bae73dfbf2 100644--- a/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/__init__.py+++ b/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/__init__.py@@ -1,5 +1,5 @@from .store import SupabaseIntegrationCredentialsStore-from .types import Credentials, APIKeyCredentials, OAuth2Credentials+from .types import APIKeyCredentials, Credentials, OAuth2Credentials__all__ = ["SupabaseIntegrationCredentialsStore",diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/store.py b/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/store.pyindex 001ab9a352..c4167b3173 100644--- a/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/store.py+++ b/autogpt_platform/autogpt_libs/autogpt_libs/supabase_integration_credentials_store/store.py@@ -5,12 +5,14 @@ from typing import TYPE_CHECKINGfrom pydantic import SecretStrif TYPE_CHECKING:- from redis import Redisfrom backend.executor.database import DatabaseManager+ from redis import Redisfrom autogpt_libs.utils.cache import thread_cachedfrom autogpt_libs.utils.synchronize import RedisKeyedMutex+from backend.util.settings import Settings+from .types import (APIKeyCredentials,Credentials,@@ -19,8 +21,6 @@ from .types import (UserIntegrations,)-from backend.util.settings import Settings-settings = Settings()revid_credentials = APIKeyCredentials(diff --git a/autogpt_platform/autogpt_libs/autogpt_libs/utils/cache.py b/autogpt_platform/autogpt_libs/autogpt_libs/utils/cache.pyindex 9c69da9411..5c0241c258 100644--- a/autogpt_platform/autogpt_libs/autogpt_libs/utils/cache.py+++ b/autogpt_platform/autogpt_libs/autogpt_libs/utils/cache.py@@ -1,5 +1,5 @@-from typing import Callable, TypeVar, ParamSpecimport threading+from typing import Callable, ParamSpec, TypeVarP = ParamSpec("P")R = TypeVar("R")diff --git a/autogpt_platform/autogpt_libs/poetry.lock b/autogpt_platform/autogpt_libs/poetry.lockindex 847c9418f2..970d64a652 100644--- a/autogpt_platform/autogpt_libs/poetry.lock+++ b/autogpt_platform/autogpt_libs/poetry.lock@@ -854,6 +854,17 @@ doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linkeperf = ["ipython"]test = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-perf (>=0.9.2)", "pytest-ruff (>=0.2.1)"]+[[package]]+name = "iniconfig"+version = "2.0.0"+description = "brain-dead simple config-ini parsing"+optional = false+python-versions = ">=3.7"+files = [+ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"},+ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"},+]+[[package]]name = "multidict"version = "6.1.0"@@ -984,6 +995,21 @@ files = [{file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"},]+[[package]]+name = "pluggy"+version = "1.5.0"+description = "plugin and hook calling mechanisms for python"+optional = false+python-versions = ">=3.8"+files = [+ {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"},+ {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"},+]++[package.extras]+dev = ["pre-commit", "tox"]+testing = ["pytest", "pytest-benchmark"]+[[package]]name = "postgrest"version = "0.18.0"@@ -1224,6 +1250,63 @@ dev = ["coverage[toml] (==5.0.4)", "cryptography (>=3.4.0)", "pre-commit", "pytedocs = ["sphinx", "sphinx-rtd-theme", "zope.interface"]tests = ["coverage[toml] (==5.0.4)", "pytest (>=6.0.0,<7.0.0)"]+[[package]]+name = "pytest"+version = "8.3.3"+description = "pytest: simple powerful testing with Python"+optional = false+python-versions = ">=3.8"+files = [+ {file = "pytest-8.3.3-py3-none-any.whl", hash = "sha256:a6853c7375b2663155079443d2e45de913a911a11d669df02a50814944db57b2"},+ {file = "pytest-8.3.3.tar.gz", hash = "sha256:70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181"},+]++[package.dependencies]+colorama = {version = "*", markers = "sys_platform == \"win32\""}+exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""}+iniconfig = "*"+packaging = "*"+pluggy = ">=1.5,<2"+tomli = {version = ">=1", markers = "python_version < \"3.11\""}++[package.extras]+dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]++[[package]]+name = "pytest-asyncio"+version = "0.24.0"+description = "Pytest support for asyncio"+optional = false+python-versions = ">=3.8"+files = [+ {file = "pytest_asyncio-0.24.0-py3-none-any.whl", hash = "sha256:a811296ed596b69bf0b6f3dc40f83bcaf341b155a269052d82efa2b25ac7037b"},+ {file = "pytest_asyncio-0.24.0.tar.gz", hash = "sha256:d081d828e576d85f875399194281e92bf8a68d60d72d1a2faf2feddb6c46b276"},+]++[package.dependencies]+pytest = ">=8.2,<9"++[package.extras]+docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"]+testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"]++[[package]]+name = "pytest-mock"+version = "3.14.0"+description = "Thin-wrapper around the mock package for easier use with pytest"+optional = false+python-versions = ">=3.8"+files = [+ {file = "pytest-mock-3.14.0.tar.gz", hash = "sha256:2719255a1efeceadbc056d6bf3df3d1c5015530fb40cf347c0f9afac88410bd0"},+ {file = "pytest_mock-3.14.0-py3-none-any.whl", hash = "sha256:0b72c38033392a5f4621342fe11e9219ac11ec9d375f8e2a0c164539e0d70f6f"},+]++[package.dependencies]+pytest = ">=6.2.5"++[package.extras]+dev = ["pre-commit", "pytest-asyncio", "tox"]+[[package]]name = "python-dateutil"version = "2.9.0.post0"@@ -1435,6 +1518,17 @@ files = [[package.dependencies]httpx = {version = ">=0.26,<0.28", extras = ["http2"]}+[[package]]+name = "tomli"+version = "2.1.0"+description = "A lil' TOML parser"+optional = false+python-versions = ">=3.8"+files = [+ {file = "tomli-2.1.0-py3-none-any.whl", hash = "sha256:a5c57c3d1c56f5ccdf89f6523458f60ef716e210fc47c4cfb188c5ba473e0391"},+ {file = "tomli-2.1.0.tar.gz", hash = "sha256:3f646cae2aec94e17d04973e4249548320197cfabdf130015d023de4b74d8ab8"},+]+[[package]]name = "typing-extensions"version = "4.12.2"@@ -1750,4 +1844,4 @@ type = ["pytest-mypy"][metadata]lock-version = "2.0"python-versions = ">=3.10,<4.0"-content-hash = "8cd9e3cd56544dc826b545b47b79fe6d20bb6ac84660770c436d1347418d4028"+content-hash = "856e38a5c7e1af2144942a78afaf00c7fc947ba763e90472f594b394d81cf73e"diff --git a/autogpt_platform/autogpt_libs/pyproject.toml b/autogpt_platform/autogpt_libs/pyproject.tomlindex d8268a86a0..1a52989c78 100644--- a/autogpt_platform/autogpt_libs/pyproject.toml+++ b/autogpt_platform/autogpt_libs/pyproject.toml@@ -13,6 +13,8 @@ google-cloud-logging = "^3.11.3"pydantic = "^2.9.2"pydantic-settings = "^2.6.1"pyjwt = "^2.10.0"+pytest-asyncio = "^0.24.0"+pytest-mock = "^3.14.0"python = ">=3.10,<4.0"python-dotenv = "^1.0.1"supabase = "^2.10.0"diff --git a/autogpt_platform/backend/backend/server/rest_api.py b/autogpt_platform/backend/backend/server/rest_api.pyindex 06e7dc64a8..d0ba73f65a 100644--- a/autogpt_platform/backend/backend/server/rest_api.py+++ b/autogpt_platform/backend/backend/server/rest_api.py@@ -6,6 +6,10 @@ import fastapiimport fastapi.responsesimport starlette.middleware.corsimport uvicorn+from autogpt_libs.feature_flag.client import (+ initialize_launchdarkly,+ shutdown_launchdarkly,+)import backend.data.blockimport backend.data.db@@ -18,6 +22,8 @@ import backend.util.settingssettings = backend.util.settings.Settings()logger = logging.getLogger(__name__)+logging.getLogger("autogpt_libs").setLevel(logging.INFO)+@contextlib.asynccontextmanagerasync def lifespan_context(app: fastapi.FastAPI):@@ -25,7 +31,9 @@ async def lifespan_context(app: fastapi.FastAPI):await backend.data.block.initialize_blocks()await backend.data.user.migrate_and_encrypt_user_integrations()await backend.data.graph.fix_llm_provider_credentials()+ initialize_launchdarkly()yield+ shutdown_launchdarkly()await backend.data.db.disconnect()diff --git a/autogpt_platform/backend/backend/server/routers/v1.py b/autogpt_platform/backend/backend/server/routers/v1.pyindex f1f1fda385..31a777a572 100644--- a/autogpt_platform/backend/backend/server/routers/v1.py+++ b/autogpt_platform/backend/backend/server/routers/v1.py@@ -5,6 +5,7 @@ from typing import TYPE_CHECKING, Annotated, Any, Sequenceimport pydanticfrom autogpt_libs.auth.middleware import auth_middleware+from autogpt_libs.feature_flag.client import feature_flagfrom autogpt_libs.utils.cache import thread_cachedfrom fastapi import APIRouter, Depends, HTTPExceptionfrom typing_extensions import Optional, TypedDict@@ -563,10 +564,11 @@ def get_execution_schedules(@v1_router.post("/api-keys",- response_model=CreateAPIKeyResponse,+ response_model=list[CreateAPIKeyResponse] | dict[str, str],tags=["api-keys"],dependencies=[Depends(auth_middleware)],)+@feature_flag("api-keys-enabled")async def create_api_key(request: CreateAPIKeyRequest, user_id: Annotated[str, Depends(get_user_id)]) -> CreateAPIKeyResponse:@@ -586,10 +588,11 @@ async def create_api_key(@v1_router.get("/api-keys",- response_model=list[APIKeyWithoutHash],+ response_model=list[APIKeyWithoutHash] | dict[str, str],tags=["api-keys"],dependencies=[Depends(auth_middleware)],)+@feature_flag("api-keys-enabled")async def get_api_keys(user_id: Annotated[str, Depends(get_user_id)]) -> list[APIKeyWithoutHash]:@@ -603,10 +606,11 @@ async def get_api_keys(@v1_router.get("/api-keys/{key_id}",- response_model=APIKeyWithoutHash,+ response_model=list[APIKeyWithoutHash] | dict[str, str],tags=["api-keys"],dependencies=[Depends(auth_middleware)],)+@feature_flag("api-keys-enabled")async def get_api_key(key_id: str, user_id: Annotated[str, Depends(get_user_id)]) -> APIKeyWithoutHash:@@ -623,10 +627,11 @@ async def get_api_key(@v1_router.delete("/api-keys/{key_id}",- response_model=APIKeyWithoutHash,+ response_model=list[APIKeyWithoutHash] | dict[str, str],tags=["api-keys"],dependencies=[Depends(auth_middleware)],)+@feature_flag("api-keys-enabled")async def delete_api_key(key_id: str, user_id: Annotated[str, Depends(get_user_id)]) -> Optional[APIKeyWithoutHash]:@@ -644,10 +649,11 @@ async def delete_api_key(@v1_router.post("/api-keys/{key_id}/suspend",- response_model=APIKeyWithoutHash,+ response_model=list[APIKeyWithoutHash] | dict[str, str],tags=["api-keys"],dependencies=[Depends(auth_middleware)],)+@feature_flag("api-keys-enabled")async def suspend_key(key_id: str, user_id: Annotated[str, Depends(get_user_id)]) -> Optional[APIKeyWithoutHash]:@@ -665,10 +671,11 @@ async def suspend_key(@v1_router.put("/api-keys/{key_id}/permissions",- response_model=APIKeyWithoutHash,+ response_model=list[APIKeyWithoutHash] | dict[str, str],tags=["api-keys"],dependencies=[Depends(auth_middleware)],)+@feature_flag("api-keys-enabled")async def update_permissions(key_id: str,request: UpdatePermissionsRequest,diff --git a/autogpt_platform/backend/poetry.lock b/autogpt_platform/backend/poetry.lockindex 12524c19c0..02674c24ec 100644--- a/autogpt_platform/backend/poetry.lock+++ b/autogpt_platform/backend/poetry.lock@@ -1,4 +1,4 @@-# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand.+# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.[[package]]name = "aio-pika"@@ -298,6 +298,8 @@ google-cloud-logging = "^3.11.3"pydantic = "^2.9.2"pydantic-settings = "^2.6.1"pyjwt = "^2.10.0"+pytest-asyncio = "^0.24.0"+pytest-mock = "^3.14.0"python-dotenv = "^1.0.1"supabase = "^2.10.0"@@ -642,20 +644,20 @@ test-randomorder = ["pytest-randomly"][[package]]name = "deprecated"-version = "1.2.14"+version = "1.2.15"description = "Python @deprecated decorator to deprecate old python classes, functions or methods."optional = false-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7"files = [- {file = "Deprecated-1.2.14-py2.py3-none-any.whl", hash = "sha256:6fac8b097794a90302bdbb17b9b815e732d3c4720583ff1b198499d78470466c"},- {file = "Deprecated-1.2.14.tar.gz", hash = "sha256:e5323eb936458dccc2582dc6f9c322c852a775a27065ff2b0c4970b9d53d01b3"},+ {file = "Deprecated-1.2.15-py2.py3-none-any.whl", hash = "sha256:353bc4a8ac4bfc96800ddab349d89c25dec1079f65fd53acdcc1e0b975b21320"},+ {file = "deprecated-1.2.15.tar.gz", hash = "sha256:683e561a90de76239796e6b6feac66b99030d2dd3fcf61ef996330f14bbb9b0d"},][package.dependencies]wrapt = ">=1.10,<2"[package.extras]-dev = ["PyTest", "PyTest-Cov", "bump2version (<1)", "sphinx (<2)", "tox"]+dev = ["PyTest", "PyTest-Cov", "bump2version (<1)", "jinja2 (>=3.0.3,<3.1.0)", "setuptools", "sphinx (<2)", "tox"][[package]]name = "deprecation"@@ -973,19 +975,22 @@ tool = ["click (>=6.0.0)"][[package]]name = "google-cloud-appengine-logging"-version = "1.4.5"+version = "1.5.0"description = "Google Cloud Appengine Logging API client library"optional = falsepython-versions = ">=3.7"files = [- {file = "google_cloud_appengine_logging-1.4.5-py2.py3-none-any.whl", hash = "sha256:344e0244404049b42164e4d6dc718ca2c81b393d066956e7cb85fd9407ed9c48"},- {file = "google_cloud_appengine_logging-1.4.5.tar.gz", hash = "sha256:de7d766e5d67b19fc5833974b505b32d2a5bbdfb283fd941e320e7cfdae4cb83"},+ {file = "google_cloud_appengine_logging-1.5.0-py2.py3-none-any.whl", hash = "sha256:81e36606e13c377c4898c918542888abb7a6896837ac5f559011c7729fc63d8a"},+ {file = "google_cloud_appengine_logging-1.5.0.tar.gz", hash = "sha256:39a2df694d97981ed00ef5df541f7cfcca920a92496707557f2b07bb7ba9d67a"},][package.dependencies]google-api-core = {version = ">=1.34.1,<2.0.dev0 || >=2.11.dev0,<3.0.0dev", extras = ["grpc"]}google-auth = ">=2.14.1,<2.24.0 || >2.24.0,<2.25.0 || >2.25.0,<3.0.0dev"-proto-plus = ">=1.22.3,<2.0.0dev"+proto-plus = [+ {version = ">=1.22.3,<2.0.0dev", markers = "python_version < \"3.13\""},+ {version = ">=1.25.0,<2.0.0dev", markers = "python_version >= \"3.13\""},+]protobuf = ">=3.20.2,<4.21.0 || >4.21.0,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4.21.4 || >4.21.4,<4.21.5 || >4.21.5,<6.0.0dev"[[package]]@@ -1215,85 +1220,85 @@ protobuf = ">=3.20.2,<4.21.1 || >4.21.1,<4.21.2 || >4.21.2,<4.21.3 || >4.21.3,<4[[package]]name = "grpcio"-version = "1.66.2"+version = "1.68.0"description = "HTTP/2-based RPC framework"optional = falsepython-versions = ">=3.8"files = [- {file = "grpcio-1.66.2-cp310-cp310-linux_armv7l.whl", hash = "sha256:fe96281713168a3270878255983d2cb1a97e034325c8c2c25169a69289d3ecfa"},- {file = "grpcio-1.66.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:73fc8f8b9b5c4a03e802b3cd0c18b2b06b410d3c1dcbef989fdeb943bd44aff7"},- {file = "grpcio-1.66.2-cp310-cp310-manylinux_2_17_aarch64.whl", hash = "sha256:03b0b307ba26fae695e067b94cbb014e27390f8bc5ac7a3a39b7723fed085604"},- {file = "grpcio-1.66.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7d69ce1f324dc2d71e40c9261d3fdbe7d4c9d60f332069ff9b2a4d8a257c7b2b"},- {file = "grpcio-1.66.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:05bc2ceadc2529ab0b227b1310d249d95d9001cd106aa4d31e8871ad3c428d73"},- {file = "grpcio-1.66.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8ac475e8da31484efa25abb774674d837b343afb78bb3bcdef10f81a93e3d6bf"},- {file = "grpcio-1.66.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:0be4e0490c28da5377283861bed2941d1d20ec017ca397a5df4394d1c31a9b50"},- {file = "grpcio-1.66.2-cp310-cp310-win32.whl", hash = "sha256:4e504572433f4e72b12394977679161d495c4c9581ba34a88d843eaf0f2fbd39"},- {file = "grpcio-1.66.2-cp310-cp310-win_amd64.whl", hash = "sha256:2018b053aa15782db2541ca01a7edb56a0bf18c77efed975392583725974b249"},- {file = "grpcio-1.66.2-cp311-cp311-linux_armv7l.whl", hash = "sha256:2335c58560a9e92ac58ff2bc5649952f9b37d0735608242973c7a8b94a6437d8"},- {file = "grpcio-1.66.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:45a3d462826f4868b442a6b8fdbe8b87b45eb4f5b5308168c156b21eca43f61c"},- {file = "grpcio-1.66.2-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:a9539f01cb04950fd4b5ab458e64a15f84c2acc273670072abe49a3f29bbad54"},- {file = "grpcio-1.66.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ce89f5876662f146d4c1f695dda29d4433a5d01c8681fbd2539afff535da14d4"},- {file = "grpcio-1.66.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d25a14af966438cddf498b2e338f88d1c9706f3493b1d73b93f695c99c5f0e2a"},- {file = "grpcio-1.66.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:6001e575b8bbd89eee11960bb640b6da6ae110cf08113a075f1e2051cc596cae"},- {file = "grpcio-1.66.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:4ea1d062c9230278793820146c95d038dc0f468cbdd172eec3363e42ff1c7d01"},- {file = "grpcio-1.66.2-cp311-cp311-win32.whl", hash = "sha256:38b68498ff579a3b1ee8f93a05eb48dc2595795f2f62716e797dc24774c1aaa8"},- {file = "grpcio-1.66.2-cp311-cp311-win_amd64.whl", hash = "sha256:6851de821249340bdb100df5eacfecfc4e6075fa85c6df7ee0eb213170ec8e5d"},- {file = "grpcio-1.66.2-cp312-cp312-linux_armv7l.whl", hash = "sha256:802d84fd3d50614170649853d121baaaa305de7b65b3e01759247e768d691ddf"},- {file = "grpcio-1.66.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:80fd702ba7e432994df208f27514280b4b5c6843e12a48759c9255679ad38db8"},- {file = "grpcio-1.66.2-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:12fda97ffae55e6526825daf25ad0fa37483685952b5d0f910d6405c87e3adb6"},- {file = "grpcio-1.66.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:950da58d7d80abd0ea68757769c9db0a95b31163e53e5bb60438d263f4bed7b7"},- {file = "grpcio-1.66.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e636ce23273683b00410f1971d209bf3689238cf5538d960adc3cdfe80dd0dbd"},- {file = "grpcio-1.66.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:a917d26e0fe980b0ac7bfcc1a3c4ad6a9a4612c911d33efb55ed7833c749b0ee"},- {file = "grpcio-1.66.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:49f0ca7ae850f59f828a723a9064cadbed90f1ece179d375966546499b8a2c9c"},- {file = "grpcio-1.66.2-cp312-cp312-win32.whl", hash = "sha256:31fd163105464797a72d901a06472860845ac157389e10f12631025b3e4d0453"},- {file = "grpcio-1.66.2-cp312-cp312-win_amd64.whl", hash = "sha256:ff1f7882e56c40b0d33c4922c15dfa30612f05fb785074a012f7cda74d1c3679"},- {file = "grpcio-1.66.2-cp313-cp313-linux_armv7l.whl", hash = "sha256:3b00efc473b20d8bf83e0e1ae661b98951ca56111feb9b9611df8efc4fe5d55d"},- {file = "grpcio-1.66.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:1caa38fb22a8578ab8393da99d4b8641e3a80abc8fd52646f1ecc92bcb8dee34"},- {file = "grpcio-1.66.2-cp313-cp313-manylinux_2_17_aarch64.whl", hash = "sha256:c408f5ef75cfffa113cacd8b0c0e3611cbfd47701ca3cdc090594109b9fcbaed"},- {file = "grpcio-1.66.2-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c806852deaedee9ce8280fe98955c9103f62912a5b2d5ee7e3eaa284a6d8d8e7"},- {file = "grpcio-1.66.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f145cc21836c332c67baa6fc81099d1d27e266401565bf481948010d6ea32d46"},- {file = "grpcio-1.66.2-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:73e3b425c1e155730273f73e419de3074aa5c5e936771ee0e4af0814631fb30a"},- {file = "grpcio-1.66.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:9c509a4f78114cbc5f0740eb3d7a74985fd2eff022971bc9bc31f8bc93e66a3b"},- {file = "grpcio-1.66.2-cp313-cp313-win32.whl", hash = "sha256:20657d6b8cfed7db5e11b62ff7dfe2e12064ea78e93f1434d61888834bc86d75"},- {file = "grpcio-1.66.2-cp313-cp313-win_amd64.whl", hash = "sha256:fb70487c95786e345af5e854ffec8cb8cc781bcc5df7930c4fbb7feaa72e1cdf"},- {file = "grpcio-1.66.2-cp38-cp38-linux_armv7l.whl", hash = "sha256:a18e20d8321c6400185b4263e27982488cb5cdd62da69147087a76a24ef4e7e3"},- {file = "grpcio-1.66.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:02697eb4a5cbe5a9639f57323b4c37bcb3ab2d48cec5da3dc2f13334d72790dd"},- {file = "grpcio-1.66.2-cp38-cp38-manylinux_2_17_aarch64.whl", hash = "sha256:99a641995a6bc4287a6315989ee591ff58507aa1cbe4c2e70d88411c4dcc0839"},- {file = "grpcio-1.66.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3ed71e81782966ffead60268bbda31ea3f725ebf8aa73634d5dda44f2cf3fb9c"},- {file = "grpcio-1.66.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bbd27c24a4cc5e195a7f56cfd9312e366d5d61b86e36d46bbe538457ea6eb8dd"},- {file = "grpcio-1.66.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:d9a9724a156c8ec6a379869b23ba3323b7ea3600851c91489b871e375f710bc8"},- {file = "grpcio-1.66.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:d8d4732cc5052e92cea2f78b233c2e2a52998ac40cd651f40e398893ad0d06ec"},- {file = "grpcio-1.66.2-cp38-cp38-win32.whl", hash = "sha256:7b2c86457145ce14c38e5bf6bdc19ef88e66c5fee2c3d83285c5aef026ba93b3"},- {file = "grpcio-1.66.2-cp38-cp38-win_amd64.whl", hash = "sha256:e88264caad6d8d00e7913996030bac8ad5f26b7411495848cc218bd3a9040b6c"},- {file = "grpcio-1.66.2-cp39-cp39-linux_armv7l.whl", hash = "sha256:c400ba5675b67025c8a9f48aa846f12a39cf0c44df5cd060e23fda5b30e9359d"},- {file = "grpcio-1.66.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:66a0cd8ba6512b401d7ed46bb03f4ee455839957f28b8d61e7708056a806ba6a"},- {file = "grpcio-1.66.2-cp39-cp39-manylinux_2_17_aarch64.whl", hash = "sha256:06de8ec0bd71be123eec15b0e0d457474931c2c407869b6c349bd9bed4adbac3"},- {file = "grpcio-1.66.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fb57870449dfcfac428afbb5a877829fcb0d6db9d9baa1148705739e9083880e"},- {file = "grpcio-1.66.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b672abf90a964bfde2d0ecbce30f2329a47498ba75ce6f4da35a2f4532b7acbc"},- {file = "grpcio-1.66.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ad2efdbe90c73b0434cbe64ed372e12414ad03c06262279b104a029d1889d13e"},- {file = "grpcio-1.66.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9c3a99c519f4638e700e9e3f83952e27e2ea10873eecd7935823dab0c1c9250e"},- {file = "grpcio-1.66.2-cp39-cp39-win32.whl", hash = "sha256:78fa51ebc2d9242c0fc5db0feecc57a9943303b46664ad89921f5079e2e4ada7"},- {file = "grpcio-1.66.2-cp39-cp39-win_amd64.whl", hash = "sha256:728bdf36a186e7f51da73be7f8d09457a03061be848718d0edf000e709418987"},- {file = "grpcio-1.66.2.tar.gz", hash = "sha256:563588c587b75c34b928bc428548e5b00ea38c46972181a4d8b75ba7e3f24231"},-]--[package.extras]-protobuf = ["grpcio-tools (>=1.66.2)"]+ {file = "grpcio-1.68.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:619b5d0f29f4f5351440e9343224c3e19912c21aeda44e0c49d0d147a8d01544"},+ {file = "grpcio-1.68.0-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:a59f5822f9459bed098ffbceb2713abbf7c6fd13f2b9243461da5c338d0cd6c3"},+ {file = "grpcio-1.68.0-cp310-cp310-manylinux_2_17_aarch64.whl", hash = "sha256:c03d89df516128febc5a7e760d675b478ba25802447624edf7aa13b1e7b11e2a"},+ {file = "grpcio-1.68.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:44bcbebb24363d587472089b89e2ea0ab2e2b4df0e4856ba4c0b087c82412121"},+ {file = "grpcio-1.68.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:79f81b7fbfb136247b70465bd836fa1733043fdee539cd6031cb499e9608a110"},+ {file = "grpcio-1.68.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:88fb2925789cfe6daa20900260ef0a1d0a61283dfb2d2fffe6194396a354c618"},+ {file = "grpcio-1.68.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:99f06232b5c9138593ae6f2e355054318717d32a9c09cdc5a2885540835067a1"},+ {file = "grpcio-1.68.0-cp310-cp310-win32.whl", hash = "sha256:a6213d2f7a22c3c30a479fb5e249b6b7e648e17f364598ff64d08a5136fe488b"},+ {file = "grpcio-1.68.0-cp310-cp310-win_amd64.whl", hash = "sha256:15327ab81131ef9b94cb9f45b5bd98803a179c7c61205c8c0ac9aff9d6c4e82a"},+ {file = "grpcio-1.68.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:3b2b559beb2d433129441783e5f42e3be40a9e1a89ec906efabf26591c5cd415"},+ {file = "grpcio-1.68.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e46541de8425a4d6829ac6c5d9b16c03c292105fe9ebf78cb1c31e8d242f9155"},+ {file = "grpcio-1.68.0-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:c1245651f3c9ea92a2db4f95d37b7597db6b246d5892bca6ee8c0e90d76fb73c"},+ {file = "grpcio-1.68.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f1931c7aa85be0fa6cea6af388e576f3bf6baee9e5d481c586980c774debcb4"},+ {file = "grpcio-1.68.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8b0ff09c81e3aded7a183bc6473639b46b6caa9c1901d6f5e2cba24b95e59e30"},+ {file = "grpcio-1.68.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:8c73f9fbbaee1a132487e31585aa83987ddf626426d703ebcb9a528cf231c9b1"},+ {file = "grpcio-1.68.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:6b2f98165ea2790ea159393a2246b56f580d24d7da0d0342c18a085299c40a75"},+ {file = "grpcio-1.68.0-cp311-cp311-win32.whl", hash = "sha256:e1e7ed311afb351ff0d0e583a66fcb39675be112d61e7cfd6c8269884a98afbc"},+ {file = "grpcio-1.68.0-cp311-cp311-win_amd64.whl", hash = "sha256:e0d2f68eaa0a755edd9a47d40e50dba6df2bceda66960dee1218da81a2834d27"},+ {file = "grpcio-1.68.0-cp312-cp312-linux_armv7l.whl", hash = "sha256:8af6137cc4ae8e421690d276e7627cfc726d4293f6607acf9ea7260bd8fc3d7d"},+ {file = "grpcio-1.68.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:4028b8e9a3bff6f377698587d642e24bd221810c06579a18420a17688e421af7"},+ {file = "grpcio-1.68.0-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:f60fa2adf281fd73ae3a50677572521edca34ba373a45b457b5ebe87c2d01e1d"},+ {file = "grpcio-1.68.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e18589e747c1e70b60fab6767ff99b2d0c359ea1db8a2cb524477f93cdbedf5b"},+ {file = "grpcio-1.68.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e0d30f3fee9372796f54d3100b31ee70972eaadcc87314be369360248a3dcffe"},+ {file = "grpcio-1.68.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:7e0a3e72c0e9a1acab77bef14a73a416630b7fd2cbd893c0a873edc47c42c8cd"},+ {file = "grpcio-1.68.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a831dcc343440969aaa812004685ed322cdb526cd197112d0db303b0da1e8659"},+ {file = "grpcio-1.68.0-cp312-cp312-win32.whl", hash = "sha256:5a180328e92b9a0050958ced34dddcb86fec5a8b332f5a229e353dafc16cd332"},+ {file = "grpcio-1.68.0-cp312-cp312-win_amd64.whl", hash = "sha256:2bddd04a790b69f7a7385f6a112f46ea0b34c4746f361ebafe9ca0be567c78e9"},+ {file = "grpcio-1.68.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:fc05759ffbd7875e0ff2bd877be1438dfe97c9312bbc558c8284a9afa1d0f40e"},+ {file = "grpcio-1.68.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:15fa1fe25d365a13bc6d52fcac0e3ee1f9baebdde2c9b3b2425f8a4979fccea1"},+ {file = "grpcio-1.68.0-cp313-cp313-manylinux_2_17_aarch64.whl", hash = "sha256:32a9cb4686eb2e89d97022ecb9e1606d132f85c444354c17a7dbde4a455e4a3b"},+ {file = "grpcio-1.68.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dba037ff8d284c8e7ea9a510c8ae0f5b016004f13c3648f72411c464b67ff2fb"},+ {file = "grpcio-1.68.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0efbbd849867e0e569af09e165363ade75cf84f5229b2698d53cf22c7a4f9e21"},+ {file = "grpcio-1.68.0-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:4e300e6978df0b65cc2d100c54e097c10dfc7018b9bd890bbbf08022d47f766d"},+ {file = "grpcio-1.68.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:6f9c7ad1a23e1047f827385f4713b5b8c6c7d325705be1dd3e31fb00dcb2f665"},+ {file = "grpcio-1.68.0-cp313-cp313-win32.whl", hash = "sha256:3ac7f10850fd0487fcce169c3c55509101c3bde2a3b454869639df2176b60a03"},+ {file = "grpcio-1.68.0-cp313-cp313-win_amd64.whl", hash = "sha256:afbf45a62ba85a720491bfe9b2642f8761ff348006f5ef67e4622621f116b04a"},+ {file = "grpcio-1.68.0-cp38-cp38-linux_armv7l.whl", hash = "sha256:f8f695d9576ce836eab27ba7401c60acaf9ef6cf2f70dfe5462055ba3df02cc3"},+ {file = "grpcio-1.68.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:9fe1b141cda52f2ca73e17d2d3c6a9f3f3a0c255c216b50ce616e9dca7e3441d"},+ {file = "grpcio-1.68.0-cp38-cp38-manylinux_2_17_aarch64.whl", hash = "sha256:4df81d78fd1646bf94ced4fb4cd0a7fe2e91608089c522ef17bc7db26e64effd"},+ {file = "grpcio-1.68.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:46a2d74d4dd8993151c6cd585594c082abe74112c8e4175ddda4106f2ceb022f"},+ {file = "grpcio-1.68.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a17278d977746472698460c63abf333e1d806bd41f2224f90dbe9460101c9796"},+ {file = "grpcio-1.68.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:15377bce516b1c861c35e18eaa1c280692bf563264836cece693c0f169b48829"},+ {file = "grpcio-1.68.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:cc5f0a4f5904b8c25729a0498886b797feb817d1fd3812554ffa39551112c161"},+ {file = "grpcio-1.68.0-cp38-cp38-win32.whl", hash = "sha256:def1a60a111d24376e4b753db39705adbe9483ef4ca4761f825639d884d5da78"},+ {file = "grpcio-1.68.0-cp38-cp38-win_amd64.whl", hash = "sha256:55d3b52fd41ec5772a953612db4e70ae741a6d6ed640c4c89a64f017a1ac02b5"},+ {file = "grpcio-1.68.0-cp39-cp39-linux_armv7l.whl", hash = "sha256:0d230852ba97654453d290e98d6aa61cb48fa5fafb474fb4c4298d8721809354"},+ {file = "grpcio-1.68.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:50992f214264e207e07222703c17d9cfdcc2c46ed5a1ea86843d440148ebbe10"},+ {file = "grpcio-1.68.0-cp39-cp39-manylinux_2_17_aarch64.whl", hash = "sha256:14331e5c27ed3545360464a139ed279aa09db088f6e9502e95ad4bfa852bb116"},+ {file = "grpcio-1.68.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f84890b205692ea813653ece4ac9afa2139eae136e419231b0eec7c39fdbe4c2"},+ {file = "grpcio-1.68.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b0cf343c6f4f6aa44863e13ec9ddfe299e0be68f87d68e777328bff785897b05"},+ {file = "grpcio-1.68.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:fd2c2d47969daa0e27eadaf15c13b5e92605c5e5953d23c06d0b5239a2f176d3"},+ {file = "grpcio-1.68.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:18668e36e7f4045820f069997834e94e8275910b1f03e078a6020bd464cb2363"},+ {file = "grpcio-1.68.0-cp39-cp39-win32.whl", hash = "sha256:2af76ab7c427aaa26aa9187c3e3c42f38d3771f91a20f99657d992afada2294a"},+ {file = "grpcio-1.68.0-cp39-cp39-win_amd64.whl", hash = "sha256:e694b5928b7b33ca2d3b4d5f9bf8b5888906f181daff6b406f4938f3a997a490"},+ {file = "grpcio-1.68.0.tar.gz", hash = "sha256:7e7483d39b4a4fddb9906671e9ea21aaad4f031cdfc349fec76bdfa1e404543a"},+]++[package.extras]+protobuf = ["grpcio-tools (>=1.68.0)"][[package]]name = "grpcio-status"-version = "1.66.2"+version = "1.68.0"description = "Status proto mapping for gRPC"optional = falsepython-versions = ">=3.8"files = [- {file = "grpcio_status-1.66.2-py3-none-any.whl", hash = "sha256:e5fe189f6897d12aa9cd74408a17ca41e44fad30871cf84f5cbd17bd713d2455"},- {file = "grpcio_status-1.66.2.tar.gz", hash = "sha256:fb55cbb5c2e67062f7a4d5c99e489d074fb57e98678d5c3c6692a2d74d89e9ae"},+ {file = "grpcio_status-1.68.0-py3-none-any.whl", hash = "sha256:0a71b15d989f02df803b4ba85c5bf1f43aeaa58ac021e5f9974b8cadc41f784d"},+ {file = "grpcio_status-1.68.0.tar.gz", hash = "sha256:8369823de22ab6a2cddb3804669c149ae7a71819e127c2dca7c2322028d52bea"},][package.dependencies]googleapis-common-protos = ">=1.5.5"-grpcio = ">=1.66.2"+grpcio = ">=1.68.0"protobuf = ">=5.26.1,<6.0dev"[[package]]@@ -1476,22 +1481,26 @@ all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2[[package]]name = "importlib-metadata"-version = "8.4.0"+version = "8.5.0"description = "Read metadata from Python packages"optional = falsepython-versions = ">=3.8"files = [- {file = "importlib_metadata-8.4.0-py3-none-any.whl", hash = "sha256:66f342cc6ac9818fc6ff340576acd24d65ba0b3efabb2b4ac08b598965a4a2f1"},- {file = "importlib_metadata-8.4.0.tar.gz", hash = "sha256:9a547d3bc3608b025f93d403fdd1aae741c24fbb8314df4b155675742ce303c5"},+ {file = "importlib_metadata-8.5.0-py3-none-any.whl", hash = "sha256:45e54197d28b7a7f1559e60b95e7c567032b602131fbd588f1497f47880aa68b"},+ {file = "importlib_metadata-8.5.0.tar.gz", hash = "sha256:71522656f0abace1d072b9e5481a48f07c138e00f079c38c8f883823f9c26bd7"},][package.dependencies]-zipp = ">=0.5"+zipp = ">=3.20"[package.extras]+check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"]+cover = ["pytest-cov"]doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]+enabler = ["pytest-enabler (>=2.2)"]perf = ["ipython"]-test = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-perf (>=0.9.2)", "pytest-ruff (>=0.2.1)"]+test = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-perf (>=0.9.2)"]+type = ["pytest-mypy"][[package]]name = "iniconfig"@@ -1651,6 +1660,45 @@ files = [[package.dependencies]referencing = ">=0.31.0"+[[package]]+name = "launchdarkly-eventsource"+version = "1.2.0"+description = "LaunchDarkly SSE Client"+optional = false+python-versions = ">=3.8"+files = [+ {file = "launchdarkly_eventsource-1.2.0-py3-none-any.whl", hash = "sha256:9b5ec7149e2ad9995be22ad5361deb480c229701e6b0cc799e94aa14f067b77b"},+ {file = "launchdarkly_eventsource-1.2.0.tar.gz", hash = "sha256:8cb3301ec0daeb5e17eaa37b3b65f6660fab851b317e69271185ef2fb42c2fde"},+]++[package.dependencies]+urllib3 = ">=1.26.0,<3"++[[package]]+name = "launchdarkly-server-sdk"+version = "9.8.0"+description = "LaunchDarkly SDK for Python"+optional = false+python-versions = ">=3.8"+files = [+ {file = "launchdarkly_server_sdk-9.8.0-py3-none-any.whl", hash = "sha256:8cb72f3cd283bd3b1954d59b8197f1467b35d5c10449904aaf560d59d4ceb368"},+ {file = "launchdarkly_server_sdk-9.8.0.tar.gz", hash = "sha256:e50a5eef770a5d0c609cf823c60ad9526f2f645e67efc638af31e7582ff62050"},+]++[package.dependencies]+certifi = ">=2018.4.16"+expiringdict = ">=1.1.4"+launchdarkly-eventsource = ">=1.1.0,<2.0.0"+pyRFC3339 = ">=1.0"+semver = ">=2.10.2"+urllib3 = ">=1.26.0,<3"++[package.extras]+consul = ["python-consul (>=1.0.1)"]+dynamodb = ["boto3 (>=1.9.71)"]+redis = ["redis (>=2.10.5)"]+test-filesource = ["pyyaml (>=5.3.1)", "watchdog (>=3.0.0)"]+[[package]]name = "markupsafe"version = "2.1.5"@@ -1914,18 +1962,18 @@ datalib = ["numpy (>=1)", "pandas (>=1.2.3)", "pandas-stubs (>=1.1.0.11)"][[package]]name = "opentelemetry-api"-version = "1.27.0"+version = "1.28.2"description = "OpenTelemetry Python API"optional = falsepython-versions = ">=3.8"files = [- {file = "opentelemetry_api-1.27.0-py3-none-any.whl", hash = "sha256:953d5871815e7c30c81b56d910c707588000fff7a3ca1c73e6531911d53065e7"},- {file = "opentelemetry_api-1.27.0.tar.gz", hash = "sha256:ed673583eaa5f81b5ce5e86ef7cdaf622f88ef65f0b9aab40b843dcae5bef342"},+ {file = "opentelemetry_api-1.28.2-py3-none-any.whl", hash = "sha256:6fcec89e265beb258fe6b1acaaa3c8c705a934bd977b9f534a2b7c0d2d4275a6"},+ {file = "opentelemetry_api-1.28.2.tar.gz", hash = "sha256:ecdc70c7139f17f9b0cf3742d57d7020e3e8315d6cffcdf1a12a905d45b19cc0"},][package.dependencies]deprecated = ">=1.2.6"-importlib-metadata = ">=6.0,<=8.4.0"+importlib-metadata = ">=6.0,<=8.5.0"[[package]]name = "packaging"@@ -2164,13 +2212,13 @@ node = ["nodejs-bin"][[package]]name = "proto-plus"-version = "1.24.0"+version = "1.25.0"description = "Beautiful, Pythonic protocol buffers."optional = falsepython-versions = ">=3.7"files = [- {file = "proto-plus-1.24.0.tar.gz", hash = "sha256:30b72a5ecafe4406b0d339db35b56c4059064e69227b8c3bda7462397f966445"},- {file = "proto_plus-1.24.0-py3-none-any.whl", hash = "sha256:402576830425e5f6ce4c2a6702400ac79897dab0b4343821aa5188b0fab81a12"},+ {file = "proto_plus-1.25.0-py3-none-any.whl", hash = "sha256:c91fc4a65074ade8e458e95ef8bac34d4008daa7cce4a12d6707066fca648961"},+ {file = "proto_plus-1.25.0.tar.gz", hash = "sha256:fbb17f57f7bd05a68b7707e745e26528b0b3c34e378db91eef93912c54982d91"},][package.dependencies]@@ -2538,6 +2586,17 @@ files = [[package.extras]diagrams = ["jinja2", "railroad-diagrams"]+[[package]]+name = "pyrfc3339"+version = "2.0.1"+description = "Generate and parse RFC 3339 timestamps"+optional = false+python-versions = "*"+files = [+ {file = "pyRFC3339-2.0.1-py3-none-any.whl", hash = "sha256:30b70a366acac3df7386b558c21af871522560ed7f3f73cf344b8c2cbb8b0c9d"},+ {file = "pyrfc3339-2.0.1.tar.gz", hash = "sha256:e47843379ea35c1296c3b6c67a948a1a490ae0584edfcbdea0eaffb5dd29960b"},+]+[[package]]name = "pyright"version = "1.1.389"@@ -2612,6 +2671,23 @@ pytest = ">=8.2,<9"docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"]testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"]+[[package]]+name = "pytest-mock"+version = "3.14.0"+description = "Thin-wrapper around the mock package for easier use with pytest"+optional = false+python-versions = ">=3.8"+files = [+ {file = "pytest-mock-3.14.0.tar.gz", hash = "sha256:2719255a1efeceadbc056d6bf3df3d1c5015530fb40cf347c0f9afac88410bd0"},+ {file = "pytest_mock-3.14.0-py3-none-any.whl", hash = "sha256:0b72c38033392a5f4621342fe11e9219ac11ec9d375f8e2a0c164539e0d70f6f"},+]++[package.dependencies]+pytest = ">=6.2.5"++[package.extras]+dev = ["pre-commit", "pytest-asyncio", "tox"]+[[package]]name = "pytest-watcher"version = "0.4.3"@@ -2987,6 +3063,17 @@ files = [{file = "ruff-0.8.0.tar.gz", hash = "sha256:a7ccfe6331bf8c8dad715753e157457faf7351c2b69f62f32c165c2dbcbacd44"},]+[[package]]+name = "semver"+version = "3.0.2"+description = "Python helper for Semantic Versioning (https://semver.org)"+optional = false+python-versions = ">=3.7"+files = [+ {file = "semver-3.0.2-py3-none-any.whl", hash = "sha256:b1ea4686fe70b981f85359eda33199d60c53964284e0cfb4977d243e37cf4bf4"},+ {file = "semver-3.0.2.tar.gz", hash = "sha256:6253adb39c70f6e51afed2fa7152bcd414c411286088fb4b9effb133885ab4cc"},+]+[[package]]name = "sentry-sdk"version = "2.19.0"@@ -3921,13 +4008,13 @@ requests = "*"[[package]]name = "zipp"-version = "3.20.2"+version = "3.21.0"description = "Backport of pathlib-compatible object wrapper for zip files"optional = false-python-versions = ">=3.8"+python-versions = ">=3.9"files = [- {file = "zipp-3.20.2-py3-none-any.whl", hash = "sha256:a817ac80d6cf4b23bf7f2828b7cabf326f15a001bea8b1f9b49631780ba28350"},- {file = "zipp-3.20.2.tar.gz", hash = "sha256:bc9eb26f4506fda01b81bcde0ca78103b6e62f991b381fec825435c836edbc29"},+ {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"},+ {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"},][package.extras]@@ -3941,4 +4028,4 @@ type = ["pytest-mypy"][metadata]lock-version = "2.0"python-versions = "^3.10"-content-hash = "cc9fe99da36b8b62d1616a8276f807fd8573cb5f8144af8d0724138e3e9b8086"+content-hash = "5bc61641d782791b76f39b18625560a6652b02f3ad788f110e0258293032c34a"diff --git a/autogpt_platform/backend/pyproject.toml b/autogpt_platform/backend/pyproject.tomlindex 9d068b9954..bcfe089c07 100644--- a/autogpt_platform/backend/pyproject.toml+++ b/autogpt_platform/backend/pyproject.toml@@ -50,6 +50,7 @@ pinecone = "^5.3.1"cryptography = "^43.0.3"sqlalchemy = "^2.0.36"psycopg2-binary = "^2.9.10"+launchdarkly-server-sdk = "^9.8.0"[tool.poetry.group.dev.dependencies]poethepoet = "^0.31.0"httpx = "^0.27.0"