BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.
Python ai-agentsai-memoryknowledge-graphknowledge-managementknowledge-representationreccomendation-system
feat(misc 2.14.0-dev): - featured anthropic apis for LLMs - mcp tools for non-graph-db setups - metadata search into data - context for observations agent - celery discovery for plugins - fixed loading multiple plugin entry points - plugins installation from TUI
Christian1efd4b45c2e2
diff --git a/README.md b/README.mdindex faa4be2..6f5f9ed 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@<p align="center"><a href="https://discord.gg/VTngQTaeDf"><img src="https://img.shields.io/badge/Discord-Join%20Lumen%20Brain-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord"/></a>- <img src="https://img.shields.io/badge/version-2.13.1--dev-blue?style=for-the-badge" alt="Version"/>+ <img src="https://img.shields.io/badge/version-2.14.0--dev-blue?style=for-the-badge" alt="Version"/><img src="https://img.shields.io/badge/python-3.11+-green?style=for-the-badge&logo=python&logoColor=white" alt="Python"/><img src="https://img.shields.io/badge/license-AGPLv3%20%2B%20Commons%20Clause-purple?style=for-the-badge" alt="License"/></p>@@ -65,7 +65,7 @@ That trace is the difference. Not a similarity score. Not a nearest-neighbour guThe fastest way to run BrainAPI locally is the **`brainapi` TUI** — an interactive CLI that clones the project, creates a Python venv, walks you through configuration, starts backing services, and launches the API.```sh-npm install -g brainapi+npm install -g brainapi-tuibrainapi init # clone, install deps, interactive setupbrainapi start # docker services + API + MCP + worker```diff --git a/poetry.lock b/poetry.lockindex d3104c1..ff531ce 100644--- a/poetry.lock+++ b/poetry.lock@@ -60,6 +60,32 @@ files = [{file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"},]+[[package]]+name = "anthropic"+version = "0.57.1"+description = "The official Python library for the anthropic API"+optional = false+python-versions = ">=3.8"+groups = ["main"]+files = [+ {file = "anthropic-0.57.1-py3-none-any.whl", hash = "sha256:33afc1f395af207d07ff1bffc0a3d1caac53c371793792569c5d2f09283ea306"},+ {file = "anthropic-0.57.1.tar.gz", hash = "sha256:7815dd92245a70d21f65f356f33fc80c5072eada87fb49437767ea2918b2c4b0"},+]++[package.dependencies]+anyio = ">=3.5.0,<5"+distro = ">=1.7.0,<2"+httpx = ">=0.25.0,<1"+jiter = ">=0.4.0,<1"+pydantic = ">=1.9.0,<3"+sniffio = "*"+typing-extensions = ">=4.10,<5"++[package.extras]+aiohttp = ["aiohttp", "httpx-aiohttp (>=0.1.6)"]+bedrock = ["boto3 (>=1.28.57)", "botocore (>=1.31.57)"]+vertex = ["google-auth[requests] (>=2,<3)"]+[[package]]name = "antlr4-python3-runtime"version = "4.9.3"@@ -7782,14 +7808,14 @@ tutorials = ["matplotlib", "pandas", "tabulate"][[package]]name = "typer"-version = "0.14.0"+version = "0.16.1"description = "Typer, build great CLIs. Easy to code. Based on Python type hints."optional = falsepython-versions = ">=3.7"groups = ["main", "docling-ocr"]files = [- {file = "typer-0.14.0-py3-none-any.whl", hash = "sha256:f476233a25770ab3e7b2eebf7c68f3bc702031681a008b20167573a4b7018f09"},- {file = "typer-0.14.0.tar.gz", hash = "sha256:af58f737f8d0c0c37b9f955a6d39000b9ff97813afcbeef56af5e37cf743b45a"},+ {file = "typer-0.16.1-py3-none-any.whl", hash = "sha256:90ee01cb02d9b8395ae21ee3368421faf21fa138cb2a541ed369c08cec5237c9"},+ {file = "typer-0.16.1.tar.gz", hash = "sha256:d358c65a464a7a90f338e3bb7ff0c74ac081449e53884b12ba658cbd72990614"},][package.dependencies]@@ -8747,4 +8773,4 @@ postgresql-backend = ["networkx", "pgvector", "psycopg2-binary"][metadata]lock-version = "2.1"python-versions = ">=3.11,<4.0.0"-content-hash = "8693e34580d951fe9851d43c42cb2f9cf8db391d267ed27c0dc65a20a71add6d"+content-hash = "f59ed72950e889463da8786073dc5d2463e0ae84e85a898c06c6079d466ad923"diff --git a/pyproject.toml b/pyproject.tomlindex a9cdce5..8acd13a 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[project]name = "brainapi2"-version = "2.13.1-dev"+version = "2.14.0-dev"description = "Version 2.x.x of the BrainAPI memory layer."authors = [{name = "Christian",email = "[email protected]"}@@ -35,13 +35,14 @@ dependencies = ["sympy (>=1.12.1,<1.14.0)","numpy (>=1.26.0,<2.0.0)","spacy (>=3.0.0,<4.0.0)",- "typer (>=0.12.0,<0.15.0)",+ "typer (>=0.16.0,<0.17.0)","spacy_langdetect (>=0.1.2,<0.2.0)","langid (>=1.1.6,<2.0.0)","mcp (>=1.26.0,<2.0.0)","boto3 (>=1.40.19,<2.0.0)","langchain-aws (>=1.0.0,<2.0.0)","watchfiles (>=1.2.0,<2.0.0)",+ "anthropic (>=0.57.1,<0.58.0)",][project.optional-dependencies]@@ -88,13 +89,14 @@ python-multipart = ">=0.0.20,<0.0.21"sympy = ">=1.12.1,<1.14.0"numpy = ">=1.26.0,<2.0.0"spacy = ">=3.0.0,<4.0.0"-typer = ">=0.12.0,<0.15.0"+typer = ">=0.16.0,<0.17.0"spacy_langdetect = ">=0.1.2,<0.2.0"langid = ">=1.1.6,<2.0.0"mcp = ">=1.26.0,<2.0.0"boto3 = ">=1.40.19,<2.0.0"langchain-aws = ">=1.0.0,<2.0.0"watchfiles = ">=1.2.0,<2.0.0"+anthropic = ">=0.57.1,<0.58.0"[tool.poetry.group.docling-ocr]optional = truediff --git a/src/adapters/data.py b/src/adapters/data.pyindex bb84be0..dc12088 100644--- a/src/adapters/data.py+++ b/src/adapters/data.py@@ -3,12 +3,12 @@ File: /data.pyCreated Date: Sunday October 19th 2025Author: Christian Nonis <[email protected]>------Last Modified: Thursday February 19th 2026 7:45:12 pm+Last Modified: Wednesday May 20th 2026 8:41:53 pmModified By: Christian Nonis <[email protected]>-----"""-from typing import List, Tuple+from typing import List, Literal, Tuplefrom src.adapters.interfaces.data import DataClient, SearchResultfrom src.constants.data import Brain, KGChanges, Observation, StructuredData, TextChunk@@ -37,7 +37,7 @@ class DataAdapter:def save_observations(self, observations: List[Observation], brain_id: str = "default"- ) -> Observation:+ ) -> List[Observation]:"""Save a list of observations to the data client."""@@ -65,12 +65,19 @@ class DataAdapter:limit: int = 10,skip: int = 0,query_text: str = None,+ metadata_eq: dict[str, str] | None = None,+ order: Literal["asc", "desc"] = "desc",) -> Tuple[List[TextChunk], int]:"""- Get text chunks with pagination and a query text.+ Get text chunks with pagination, optional text search, and metadata equality filters."""return self.data.get_text_chunks(- brain_id=brain_id, limit=limit, skip=skip, query_text=query_text+ brain_id=brain_id,+ limit=limit,+ skip=skip,+ query_text=query_text,+ metadata_eq=metadata_eq,+ order=order,)def save_structured_data(diff --git a/src/adapters/graph.py b/src/adapters/graph.pyindex 4221f0f..99ee4e8 100644--- a/src/adapters/graph.py+++ b/src/adapters/graph.py@@ -25,6 +25,11 @@ from src.adapters.interfaces.embeddings import VectorStoreClientfrom src.adapters.graph_operation_result_serializer import (serialize_graph_operation_result,)+from src.core.search.traverse import (+ MAX_TRAVERSE_DEPTH,+ MAX_TRAVERSE_HOPS,+ flatten_neighborhood,+)from src.utils.normalization.list_reduction import reduce_listfrom src.utils.similarity.vectors import cosine_similarity@@ -715,6 +720,53 @@ class GraphAdapter:"""return self.graph.get_neighborhood(node, depth, brain_id)+ def traverse_graph(+ self,+ *,+ brain_id: str = "default",+ start_uuid: str | None = None,+ start_name: str | None = None,+ start_labels: list[str] | None = None,+ depth: int = 2,+ rel_types: list[str] | None = None,+ node_labels: list[str] | None = None,+ direction: Literal["in", "out", "both"] = "both",+ limit: int = 50,+ ) -> dict:+ depth = max(1, min(depth, MAX_TRAVERSE_DEPTH))+ limit = max(1, min(limit, MAX_TRAVERSE_HOPS))++ if start_uuid:+ start_node = self.get_by_uuid(start_uuid, brain_id)+ elif start_name and start_labels:+ start_node = self.get_by_identification_params(+ IdentificationParams(name=start_name),+ brain_id,+ entity_types=start_labels,+ )+ else:+ return {+ "error": "Provide start_uuid or both start_name and start_labels",+ }++ if start_node is None:+ return {"error": "Start node not found"}++ neighborhood = self.get_neighborhood(start_node.uuid, depth, brain_id)+ hops, truncated = flatten_neighborhood(+ neighborhood,+ rel_types=rel_types,+ node_labels=node_labels,+ direction=direction,+ limit=limit,+ )+ return {+ "start": start_node.model_dump(mode="json"),+ "depth": depth,+ "hops": hops,+ "truncated": truncated,+ }+def get_nexts_by_flow_key(self,predicates: list[PredicateWithFlowKey],diff --git a/src/adapters/interfaces/data.py b/src/adapters/interfaces/data.pyindex 97331aa..80cb8da 100644--- a/src/adapters/interfaces/data.py+++ b/src/adapters/interfaces/data.py@@ -3,13 +3,13 @@ File: /data.pyCreated Date: Sunday October 19th 2025Author: Christian Nonis <[email protected]>------Last Modified: Thursday February 19th 2026 7:45:12 pm+Last Modified: Wednesday May 20th 2026 8:41:53 pmModified By: Christian Nonis <[email protected]>-----"""from abc import ABC, abstractmethod-from typing import List, Optional, Tuple+from typing import List, Literal, Optional, Tuplefrom pydantic import BaseModel@@ -40,7 +40,7 @@ class DataClient(ABC):@abstractmethoddef save_observations(self, observations: List[Observation], brain_id: str- ) -> Observation:+ ) -> List[Observation]:"""Save a list of observations to the data client."""@@ -64,10 +64,16 @@ class DataClient(ABC):@abstractmethoddef get_text_chunks(- self, brain_id: str, limit: int = 10, skip: int = 0, query_text: str = None+ self,+ brain_id: str,+ limit: int = 10,+ skip: int = 0,+ query_text: str = None,+ metadata_eq: dict[str, str] | None = None,+ order: Literal["asc", "desc"] = "desc",) -> Tuple[List[TextChunk], int]:"""- Get text chunks with pagination and a query text.+ Get text chunks with pagination, optional text search, and metadata equality filters."""raise NotImplementedError("get_text_chunks method not implemented")diff --git a/src/config.py b/src/config.pyindex b8352b9..7191019 100644--- a/src/config.py+++ b/src/config.py@@ -94,6 +94,25 @@ class OpenAIConfig:raise ValueError("OpenAI embedding model is not set")+class AnthropicConfig:+ def __init__(self):+ self.api_key = os.getenv("ANTHROPIC_API_KEY")+ self.small_llm_model = os.getenv(+ "ANTHROPIC_SMALL_LLM_MODEL", "claude-3-5-haiku-latest"+ )+ self.large_llm_model = os.getenv(+ "ANTHROPIC_LARGE_LLM_MODEL", "claude-sonnet-4-20250514"+ )++ def validate_llm(self, require_large: bool):+ if not self.api_key:+ raise ValueError("Anthropic API key is not set")+ if not self.small_llm_model:+ raise ValueError("Anthropic small LLM model is not set")+ if require_large and not self.large_llm_model:+ raise ValueError("Anthropic large LLM model is not set")++class GCPConfig:"""Configuration class for the GCP configuration.@@ -389,7 +408,7 @@ class SpacyConfig:_MODES = ("local", "remote")-_PROVIDERS = ("ollama", "azure", "openai", "gcp_vertex", "amazon_bedrock")+_PROVIDERS = ("ollama", "azure", "openai", "anthropic", "gcp_vertex", "amazon_bedrock")class Config:@@ -450,6 +469,11 @@ class Config:)use_openai_large = self.llm_large_provider == "openai"use_openai_embeddings = self.embeddings_provider == "openai"+ use_anthropic_llm = (+ self.llm_small_provider == "anthropic"+ or self.llm_large_provider == "anthropic"+ )+ use_anthropic_large = self.llm_large_provider == "anthropic"use_ollama = (self.llm_small_provider == "ollama"or self.llm_large_provider == "ollama"@@ -484,6 +508,10 @@ class Config:if use_openai_embeddings:self.openai.validate_embeddings()+ self.anthropic = AnthropicConfig() if use_anthropic_llm else None+ if self.anthropic is not None:+ self.anthropic.validate_llm(require_large=use_anthropic_large)+self.ollama = OllamaConfig() if use_ollama else Noneself.embeddings = EmbeddingsConfig(mode=self.models_mode)diff --git a/src/constants/data.py b/src/constants/data.pyindex bb098c9..58f0216 100644--- a/src/constants/data.py+++ b/src/constants/data.py@@ -8,12 +8,19 @@ Modified By: Christian Nonis <[email protected]>-----"""+import tomllib+import uuidfrom datetime import datetimefrom enum import Enum+from pathlib import Pathfrom typing import Annotated, Any, List, Literal, Optional, Union-import uuid+from pydantic import BaseModel, Field+_PYPROJECT_PATH = Path(__file__).resolve().parent.parent.parent / "pyproject.toml"+with _PYPROJECT_PATH.open("rb") as _f:+ BRAIN_VERSION = tomllib.load(_f)["project"]["version"]+class TextChunk(BaseModel):"""diff --git a/src/constants/prompts/architect_agent.py b/src/constants/prompts/architect_agent.pyindex 036299b..efb2839 100644--- a/src/constants/prompts/architect_agent.py+++ b/src/constants/prompts/architect_agent.py@@ -3,7 +3,7 @@ File: /architect_agent.pyCreated Date: Sunday December 21st 2025Author: Christian Nonis <[email protected]>------Last Modified: Thursday February 19th 2026 7:45:12 pm+Last Modified: Sunday March 29th 2026 12:27:28 pmModified By: Christian Nonis <[email protected]>-----"""@@ -195,6 +195,7 @@ You will operate by creating a list of mapping relationships between the entitiethe tool will accept a list of relationships that together compose the meaning of the context, the tool will return 'OK' if the provided relationships are valid,correct and complete or an error message with instructions to fix the relationships.+<START_OF_EXAMPLES>Example provided context:"John went to New York City where he knew 12 new friends. When John went there, Mary was in San Francisco doing meetings with his colleagues."@@ -272,6 +273,7 @@ Example architect_agent_create_relationship tool input 2:]}}Example architect_agent_create_relationship tool output 2:"OK"+</END_OF_EXAMPLES>As you can see above in the example output, all the entities found by the scout are used and your created relationships are atomic, not composite (phrases),also note that we are inferring relationships like the HAPPENED_WITHIN ones ("Mary was in San Francisco when John went to New York City").@@ -397,6 +399,7 @@ Every action must flow through a central **EVENT hub**:- `mark_entities_as_used`: Archive processed entities.- `check_used_entities`: Retrieve archived entities for cross-context bridging.+<START_OF_EXAMPLES>Example provided context:"John went to New York City where he knew 12 new friends. When John went there, Mary was in San Francisco doing meetings with his colleagues."@@ -472,6 +475,7 @@ Example architect_agent_create_relationship tool input 2:"object": "uuid_2"}}]}}+</END_OF_EXAMPLES>Your workflow must be:1. First of all call the architect_agent_get_remaining_entities_to_process tool to get the entities found by the scout.diff --git a/src/constants/prompts/observations_agent.py b/src/constants/prompts/observations_agent.pyindex d392460..3f69dbf 100644--- a/src/constants/prompts/observations_agent.py+++ b/src/constants/prompts/observations_agent.py@@ -4,7 +4,7 @@ Created Date: Friday October 24th 2025Author: Christian Nonis <[email protected]>-----Last Modified: Friday October 24th 2025 6:28:49 pm-Modified By: the developer formerly known as Christian Nonis at <[email protected]>+Modified By: Christian Nonis <[email protected]>-----"""@@ -19,9 +19,11 @@ You must return the text with the hidden, implicit concepts and meanings.Text:{text}-You must look for the following things to observe:{observate_for}+This is the previous information that you can consider about the context where the text you are observing lies in:+{context}+You must return a json list of strings representing the observations you made in the text.["...",diff --git a/src/core/agents/observations_agent.py b/src/core/agents/observations_agent.pyindex a53886a..ae250f1 100644--- a/src/core/agents/observations_agent.py+++ b/src/core/agents/observations_agent.py@@ -4,7 +4,7 @@ Created Date: Thursday October 23rd 2025Author: Christian Nonis <[email protected]>-----Last Modified: Thursday October 23rd 2025 10:11:00 pm-Modified By: the developer formerly known as Christian Nonis at <[email protected]>+Modified By: Christian Nonis <[email protected]>-----"""@@ -23,7 +23,9 @@ class ObservationsAgent:def __init__(self, llm_adapter: LLMAdapter):self.llm_adapter = llm_adapter- def observe(self, text: str, observate_for: Optional[List[str]]) -> str:+ def observe(+ self, text: str, observate_for: Optional[List[str]], context: Optional[str]+ ) -> list[str]:"""Observe the world and update the knowledge graph with new information."""@@ -32,7 +34,13 @@ class ObservationsAgent:prompt_registry.get("OBSERVATIONS_AGENT_SYSTEM_PROMPT", OBSERVATIONS_AGENT_SYSTEM_PROMPT).format(- text=text, observate_for=observate_for+ text=text,+ observate_for=(+ f"You must look for the following things to observe: {observate_for}"+ if observate_for+ else ""+ ),+ context=context if context else "",)),empty_fallback=True,diff --git a/src/core/instances.py b/src/core/instances.pyindex 2619eb7..27e0e18 100644--- a/src/core/instances.py+++ b/src/core/instances.py@@ -19,6 +19,10 @@ def _build_small_llm(provider: str):from src.lib.llm.client_openai import _llm_small_client_openaireturn _llm_small_client_openai+ if provider == "anthropic":+ from src.lib.llm.client_anthropic import _llm_small_client_anthropic++ return _llm_small_client_anthropicif provider == "gcp_vertex":from src.lib.llm.client_small import _llm_small_client@@ -43,6 +47,10 @@ def _build_large_llm(provider: str):from src.lib.llm.client_openai import _llm_large_client_openaireturn _llm_large_client_openai+ if provider == "anthropic":+ from src.lib.llm.client_anthropic import _llm_large_client_anthropic++ return _llm_large_client_anthropicif provider == "gcp_vertex":from src.lib.llm.client_vertex import _llm_large_client_vertexdiff --git a/src/core/plugins/celery_discovery.py b/src/core/plugins/celery_discovery.pynew file mode 100644index 0000000..6805aaf--- /dev/null+++ b/src/core/plugins/celery_discovery.py@@ -0,0 +1,56 @@+from __future__ import annotations++import importlib.util+import os+import sys+from pathlib import Path+++def _load_module(plugin_dir: Path, relative_path: str, module_name: str):+ path = plugin_dir / relative_path+ spec = importlib.util.spec_from_file_location(module_name, path)+ if spec is None or spec.loader is None:+ raise ImportError(f"Cannot load {path}")+ module = importlib.util.module_from_spec(spec)+ spec.loader.exec_module(module)+ return module+++def discover_plugin_celery(plugins_dir: Path) -> tuple[tuple, dict]:+ if not plugins_dir.exists():+ return (), {}++ queues: list = []+ routes: dict = {}++ for child in sorted(plugins_dir.iterdir()):+ if not child.is_dir():+ continue+ celery_module_path = child / "workers" / "celery.py"+ tasks_module_path = child / "workers" / "tasks.py"+ if not celery_module_path.exists() or not tasks_module_path.exists():+ continue++ plugin_dir_str = str(child)+ if plugin_dir_str not in sys.path:+ sys.path.insert(0, plugin_dir_str)++ safe_name = child.name.replace("-", "_")+ celery_mod = _load_module(+ child,+ "workers/celery.py",+ f"brainapi_plugin_{safe_name}_workers_celery",+ )+ _load_module(+ child,+ "workers/tasks.py",+ f"brainapi_plugin_{safe_name}_workers_tasks",+ )+ queues.extend(getattr(celery_mod, "QUEUES", ()))+ routes.update(getattr(celery_mod, "ROUTES", {}))++ return tuple(queues), routes+++def default_plugins_dir(project_root: Path) -> Path:+ return Path(os.getenv("PLUGINS_DIR", str(project_root / "plugins")))diff --git a/src/core/plugins/entrypoints.py b/src/core/plugins/entrypoints.pyindex f5ac2fa..07b84aa 100644--- a/src/core/plugins/entrypoints.py+++ b/src/core/plugins/entrypoints.py@@ -15,3 +15,13 @@ class PluginEntryPointResolver:if module_name == "__init__" or module_name == "":return plugin_dir.namereturn module_name++ def resolve_path(self, entry_point: str, plugin_dir: Path) -> Path:+ normalized = entry_point.strip().replace("\\", "/")+ normalized = normalized.lstrip("./").strip("/")+ if normalized == "":+ return plugin_dir / "__init__.py"+ candidate = plugin_dir / normalized+ if candidate.suffix != ".py":+ candidate = candidate.with_suffix(".py")+ return candidatediff --git a/src/core/plugins/loader.py b/src/core/plugins/loader.pyindex f5ef1d6..7d4cc5b 100644--- a/src/core/plugins/loader.py+++ b/src/core/plugins/loader.py@@ -1,6 +1,6 @@from __future__ import annotations-import importlib+import importlib.utilimport loggingimport shutilimport subprocess@@ -80,26 +80,37 @@ class PluginLoader:return Falseplugin_dir_str = str(plugin_dir)+ added_plugin_path = Falseif plugin_dir_str not in sys.path:sys.path.insert(0, plugin_dir_str)+ added_plugin_path = True+ self._clear_local_plugin_namespaces()module_name = self._entry_point_resolver.resolve(entry_point=manifest.entry_point,plugin_dir=plugin_dir,)+ entrypoint_path = self._entry_point_resolver.resolve_path(+ entry_point=manifest.entry_point,+ plugin_dir=plugin_dir,+ )+ unique_module_name = self._module_name_for_manifest(manifest, module_name)try:- module = importlib.import_module(module_name)+ module = self._import_entrypoint(+ unique_module_name=unique_module_name,+ entrypoint_path=entrypoint_path,+ )except Exception as exc:logger.error("Failed to import plugin '%s' (module: %s): %s", manifest.name, module_name, exc)- if plugin_dir_str in sys.path:+ if added_plugin_path and plugin_dir_str in sys.path:sys.path.remove(plugin_dir_str)return Falseregister_fn = getattr(module, "register", None)if register_fn is None or not callable(register_fn):logger.error("Plugin '%s' has no callable 'register' function in '%s'", manifest.name, module_name)- if plugin_dir_str in sys.path:+ if added_plugin_path and plugin_dir_str in sys.path:sys.path.remove(plugin_dir_str)return False@@ -107,13 +118,57 @@ class PluginLoader:register_fn(self.context)self._loaded[manifest.name] = manifestlogger.info("Plugin '%s' v%s loaded successfully", manifest.name, manifest.version)+ if added_plugin_path and plugin_dir_str in sys.path:+ sys.path.remove(plugin_dir_str)return Trueexcept Exception as exc:logger.error("Plugin '%s' register() raised an exception: %s", manifest.name, exc, exc_info=True)- if plugin_dir_str in sys.path:+ if added_plugin_path and plugin_dir_str in sys.path:sys.path.remove(plugin_dir_str)return False+ def _clear_local_plugin_namespaces(self) -> None:+ namespace_roots = (+ "routes",+ "controllers",+ "adapters",+ "constants",+ "agents",+ "workers",+ "prompts",+ )+ for module_name in list(sys.modules.keys()):+ if any(+ module_name == namespace_root+ or module_name.startswith(f"{namespace_root}.")+ for namespace_root in namespace_roots+ ):+ sys.modules.pop(module_name, None)++ @staticmethod+ def _safe_module_token(value: str) -> str:+ return "".join(ch if ch.isalnum() else "_" for ch in value)++ def _module_name_for_manifest(self, manifest: PluginManifest, module_name: str) -> str:+ plugin_token = self._safe_module_token(manifest.name)+ module_token = self._safe_module_token(module_name)+ return f"brainapi_plugin_{plugin_token}__{module_token}"++ def _import_entrypoint(+ self,+ unique_module_name: str,+ entrypoint_path: Path,+ ):+ if not entrypoint_path.exists():+ raise ModuleNotFoundError(f"Entrypoint file not found: {entrypoint_path}")+ spec = importlib.util.spec_from_file_location(unique_module_name, entrypoint_path)+ if spec is None or spec.loader is None:+ raise ImportError(f"Unable to create module spec for '{entrypoint_path}'")+ module = importlib.util.module_from_spec(spec)+ sys.modules[unique_module_name] = module+ spec.loader.exec_module(module)+ return module+def load_all(self) -> dict[str, bool]:manifests = self.discover()results: dict[str, bool] = {}diff --git a/src/core/plugins/manifest.py b/src/core/plugins/manifest.pyindex c4f7dd6..c960899 100644--- a/src/core/plugins/manifest.py+++ b/src/core/plugins/manifest.py@@ -50,6 +50,9 @@ def parse_manifest(manifest_path: Path) -> PluginManifest:if field_name not in data:raise ValueError(f"Missing required field '{field_name}' in {manifest_path}")+ pip_dependencies = data.get("pip_dependencies") or []+ tags = data.get("tags") or []+return PluginManifest(name=str(data["name"]),version=str(data["version"]),@@ -58,7 +61,7 @@ def parse_manifest(manifest_path: Path) -> PluginManifest:author=str(data.get("author", "")),brainapi_version=str(data.get("brainapi_version", "")),priority=int(data.get("priority", 100)),- pip_dependencies=list(data.get("pip_dependencies", [])),- tags=[str(t) for t in data.get("tags", [])],+ pip_dependencies=list(pip_dependencies),+ tags=[str(t) for t in tags],plugin_dir=manifest_path.parent,)diff --git a/src/core/search/traverse.py b/src/core/search/traverse.pynew file mode 100644index 0000000..1963e32--- /dev/null+++ b/src/core/search/traverse.py@@ -0,0 +1,108 @@+from __future__ import annotations++from typing import Any, Literal++from src.constants.kg import Node, Predicate++MAX_TRAVERSE_DEPTH = 5+MAX_TRAVERSE_HOPS = 100+++def _entity_field(entity: Node | Predicate | dict, field: str, default: Any = None) -> Any:+ if isinstance(entity, (Node, Predicate)):+ return getattr(entity, field, default)+ return entity.get(field, default)+++def _serialize_node(node: Node | dict) -> dict:+ if isinstance(node, Node):+ return node.model_dump(mode="json")+ return dict(node)+++def _serialize_predicate(predicate: Predicate | dict) -> dict:+ if isinstance(predicate, Predicate):+ return predicate.model_dump(mode="json")+ return dict(predicate)+++def _matches_rel_types(predicate: Predicate | dict, rel_types: list[str] | None) -> bool:+ if not rel_types:+ return True+ name = _entity_field(predicate, "name", "")+ return name in rel_types+++def _matches_node_labels(node: Node | dict, filter_labels: list[str] | None) -> bool:+ if not filter_labels:+ return True+ labels = _entity_field(node, "labels", []) or []+ return bool(set(labels) & set(filter_labels))+++def _matches_direction(predicate: Predicate | dict, filter_direction: str) -> bool:+ if filter_direction == "both":+ return True+ direction = _entity_field(predicate, "direction", "neutral")+ return direction == filter_direction+++def flatten_neighborhood(+ neighbors: list[dict],+ *,+ rel_types: list[str] | None,+ node_labels: list[str] | None,+ direction: Literal["in", "out", "both"],+ limit: int,+ current_depth: int = 1,+ via_uuid: str | None = None,+) -> tuple[list[dict], bool]:+ hops: list[dict] = []+ truncated = False++ for entry in neighbors:+ if len(hops) >= limit:+ return hops, True++ predicate = entry["predicate"]+ node = entry["node"]++ if not _matches_rel_types(predicate, rel_types):+ continue+ if not _matches_node_labels(node, node_labels):+ continue+ if not _matches_direction(predicate, direction):+ continue++ hop: dict[str, Any] = {+ "depth": current_depth,+ "predicate": _serialize_predicate(predicate),+ "direction": _entity_field(predicate, "direction", "neutral"),+ "node": _serialize_node(node),+ }+ if via_uuid is not None:+ hop["via_uuid"] = via_uuid+ hops.append(hop)++ nested = entry.get("neighbors") or []+ if nested and len(hops) < limit:+ node_uuid = _entity_field(node, "uuid", "")+ nested_hops, nested_truncated = flatten_neighborhood(+ nested,+ rel_types=rel_types,+ node_labels=node_labels,+ direction=direction,+ limit=limit - len(hops),+ current_depth=current_depth + 1,+ via_uuid=node_uuid,+ )+ hops.extend(nested_hops)+ if nested_truncated:+ truncated = True+ break++ if len(hops) >= limit:+ truncated = True+ break++ return hops, truncateddiff --git a/src/lib/llm/client_anthropic.py b/src/lib/llm/client_anthropic.pynew file mode 100644index 0000000..0e87f46--- /dev/null+++ b/src/lib/llm/client_anthropic.py@@ -0,0 +1,50 @@+import json++from anthropic import Anthropic++from src.adapters.interfaces.llm import LLM+from src.config import config+++class _AnthropicLLMBase(LLM):+ def __init__(self, model: str):+ self.model = model+ self.client = Anthropic(api_key=config.anthropic.api_key)+ self.langchain_model = None++ def generate_text(self, prompt: str, max_new_tokens: int = None) -> str:+ response = self.client.messages.create(+ model=self.model,+ max_tokens=max_new_tokens or 1024,+ messages=[{"role": "user", "content": prompt}],+ )+ parts = [block.text for block in response.content if getattr(block, "text", None)]+ return "".join(parts)++ def generate_json(+ self, prompt: str, max_new_tokens: int = None, max_retries: int = 3+ ) -> dict:+ response = None+ while max_retries > 0 and response is None:+ try:+ raw = self.generate_text(prompt, max_new_tokens=max_new_tokens)+ response = json.loads(raw.strip("```json").strip("```"))+ except Exception as e:+ max_retries -= 1+ if max_retries <= 0:+ raise e+ return response+++class AnthropicLLMClientSmall(_AnthropicLLMBase):+ def __init__(self):+ super().__init__(config.anthropic.small_llm_model)+++class AnthropicLLMClientLarge(_AnthropicLLMBase):+ def __init__(self):+ super().__init__(config.anthropic.large_llm_model)+++_llm_small_client_anthropic = AnthropicLLMClientSmall()+_llm_large_client_anthropic = AnthropicLLMClientLarge()diff --git a/src/lib/mongo/client.py b/src/lib/mongo/client.pyindex 1b645cc..72335ce 100644--- a/src/lib/mongo/client.py+++ b/src/lib/mongo/client.py@@ -3,7 +3,7 @@ File: /client.pyCreated Date: Saturday October 25th 2025Author: Christian Nonis <[email protected]>------Last Modified: Thursday February 19th 2026 7:45:12 pm+Last Modified: Wednesday May 20th 2026 8:41:53 pmModified By: Christian Nonis <[email protected]>-----"""@@ -50,7 +50,7 @@ class MongoClient(DataClient):def save_observations(self, observations: List[Observation], brain_id: str- ) -> Observation:+ ) -> List[Observation]:collection = self.get_collection("observations", database=brain_id)collection.insert_many([o.model_dump(mode="json") for o in observations])return observations@@ -229,7 +229,13 @@ class MongoClient(DataClient):)def get_text_chunks(- self, brain_id: str, limit: int = 10, skip: int = 0, query_text: str = None+ self,+ brain_id: str,+ limit: int = 10,+ skip: int = 0,+ query_text: str = None,+ metadata_eq: dict[str, str] | None = None,+ order: str = "desc",) -> Tuple[List[TextChunk], int]:collection = self.get_collection("text_chunks", database=brain_id)query = {}@@ -239,8 +245,17 @@ class MongoClient(DataClient):{"text": {"$regex": query_text, "$options": "i"}},{"metadata": {"$regex": query_text, "$options": "i"}},]-- results = list(collection.find(query).skip(skip).limit(limit))+ if metadata_eq:+ for key, value in metadata_eq.items():+ query[f"metadata.{key}"] = value++ sort_direction = 1 if order == "asc" else -1+ results = list(+ collection.find(query)+ .sort("inserted_at", sort_direction)+ .skip(skip)+ .limit(limit)+ )total = collection.count_documents(query)return ([TextChunk(**{k: v for k, v in r.items() if k != "_id"}) for r in results],diff --git a/src/lib/postgresql/data.py b/src/lib/postgresql/data.pyindex 75ca9fa..93affcd 100644--- a/src/lib/postgresql/data.py+++ b/src/lib/postgresql/data.py@@ -10,7 +10,7 @@ from __future__ import annotationsfrom contextlib import contextmanagerimport jsonimport threading-from typing import Any, Iterator, List, Optional, Tuple+from typing import Any, Iterator, List, Literal, Optional, Tupleimport psycopg2import psycopg2.extras@@ -500,7 +500,13 @@ class PostgreSQLDataClient(DataClient):)def get_text_chunks(- self, brain_id: str, limit: int = 10, skip: int = 0, query_text: str = None+ self,+ brain_id: str,+ limit: int = 10,+ skip: int = 0,+ query_text: str = None,+ metadata_eq: dict[str, str] | None = None,+ order: Literal["asc", "desc"] = "desc",) -> Tuple[List[TextChunk], int]:clauses: list[str] = []params: list[Any] = []@@ -508,14 +514,19 @@ class PostgreSQLDataClient(DataClient):pattern = _ilike_pattern(query_text)clauses.append("(text ILIKE %s OR metadata::text ILIKE %s)")params.extend([pattern, pattern])+ if metadata_eq:+ for key, value in metadata_eq.items():+ clauses.append("metadata ->> %s = %s")+ params.extend([key, value])where_sql = f"WHERE {' AND '.join(clauses)}" if clauses else ""+ order_sql = "ASC" if order == "asc" else "DESC"with self._brain_connection(brain_id) as conn:with conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor) as cur:cur.execute(f"""SELECT document FROM data_text_chunks{where_sql}- ORDER BY inserted_at DESC+ ORDER BY inserted_at {order_sql}OFFSET %s LIMIT %s""",(*params, skip, limit),diff --git a/src/lib/postgresql/graph_store.py b/src/lib/postgresql/graph_store.pyindex 7e02117..27a5ff7 100644--- a/src/lib/postgresql/graph_store.py+++ b/src/lib/postgresql/graph_store.py@@ -19,6 +19,12 @@ import psycopg2.extrasfrom src.config import configfrom ._provisioning import borrow, ensure_brain_database, get_brain_pool+from .read_query import (+ MAX_READ_QUERY_ROWS,+ READ_QUERY_TIMEOUT_MS,+ ReadQueryValidationError,+ validate_read_only_sql,+)class GraphDatabaseError(Exception):@@ -346,6 +352,30 @@ class PostgreSQLGraphStore:self._ensure_brain_row(database)self._load_brain(database)+ def execute_read_query(+ self,+ brain_id: str,+ query: str,+ max_rows: int = MAX_READ_QUERY_ROWS,+ ) -> dict[str, Any]:+ try:+ sql = validate_read_only_sql(query)+ except ReadQueryValidationError as exc:+ raise GraphDatabaseError(str(exc)) from exc+ self._ensure_brain_schema(brain_id)+ with self._connection(brain_id) as conn:+ with conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor) as cur:+ cur.execute(f"SET LOCAL statement_timeout = {READ_QUERY_TIMEOUT_MS}")+ cur.execute(sql)+ rows = cur.fetchmany(max_rows + 1)+ truncated = len(rows) > max_rows+ if truncated:+ rows = rows[:max_rows]+ return {+ "records": [dict(row) for row in rows],+ "truncated": truncated,+ }+def merge_node(self,brain_id: str,diff --git a/src/lib/postgresql/networkx_client.py b/src/lib/postgresql/networkx_client.pyindex 4adec5e..55cabb9 100644--- a/src/lib/postgresql/networkx_client.py+++ b/src/lib/postgresql/networkx_client.py@@ -43,10 +43,8 @@ class NetworkXGraphClient(GraphClient):self._store.ensure_database(database)def execute_operation(self, operation: str, brain_id: str) -> Any:- raise GraphDatabaseError(- "Ad-hoc Cypher operations are only supported with the Neo4j backend (GRAPH_DB=neo4j). "- "Use the native PostgreSQL+NetworkX graph API instead."- )+ self._store.ensure_database(brain_id)+ return self._store.execute_read_query(brain_id, operation)@propertydef graphdb_type(self) -> str:@@ -55,8 +53,20 @@ class NetworkXGraphClient(GraphClient):@propertydef graphdb_description(self) -> str:return (- "The graph database is PostgreSQL with NetworkX-backed in-memory traversal. "- "Use the native graph API methods; Cypher is not supported on this backend."+ "The graph database is PostgreSQL. Use read-only SQL (SELECT or WITH ... SELECT) "+ "as db_query; Cypher is not supported. "+ "Tables: kg_nodes(uuid TEXT PRIMARY KEY, data JSONB) where data holds name, labels, "+ "description and other node properties; "+ "kg_relationships(uuid TEXT PRIMARY KEY, rel_type TEXT, source_uuid TEXT, "+ "target_uuid TEXT, data JSONB). "+ "Filter nodes by label with data->'labels' ? 'PERSON', by name with data->>'name' ILIKE '%alice%'. "+ "Multi-hop traversal example: WITH RECURSIVE walk AS ("+ "SELECT source_uuid, target_uuid, rel_type, 1 AS depth FROM kg_relationships "+ "WHERE source_uuid = '<uuid>' "+ "UNION ALL SELECT r.source_uuid, r.target_uuid, r.rel_type, w.depth + 1 "+ "FROM walk w JOIN kg_relationships r ON r.source_uuid = w.target_uuid "+ "WHERE w.depth < 3) SELECT * FROM walk LIMIT 50. "+ "Only read queries are allowed; results are capped at 100 rows.")def _clean_labels(self, labels: list[str]) -> list[str]:diff --git a/src/lib/postgresql/read_query.py b/src/lib/postgresql/read_query.pynew file mode 100644index 0000000..aefc8c4--- /dev/null+++ b/src/lib/postgresql/read_query.py@@ -0,0 +1,40 @@+from __future__ import annotations++import re++MAX_READ_QUERY_ROWS = 100+READ_QUERY_TIMEOUT_MS = 10000++_READ_QUERY_START = re.compile(+ r"^\s*(SELECT|WITH|EXPLAIN|TABLE)\b",+ re.IGNORECASE | re.DOTALL,+)+_FORBIDDEN_SQL = re.compile(+ r"\b("+ r"INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE|GRANT|REVOKE|"+ r"COPY|MERGE|CALL|DO|VACUUM|REINDEX|CLUSTER|"+ r"LISTEN|NOTIFY|LOAD|LOCK|DISCARD|RESET"+ r")\b",+ re.IGNORECASE,+)+++class ReadQueryValidationError(Exception):+ pass+++def validate_read_only_sql(query: str) -> str:+ normalized = query.strip()+ if not normalized:+ raise ReadQueryValidationError("Empty query")+ parts = [part.strip() for part in normalized.split(";") if part.strip()]+ if len(parts) != 1:+ raise ReadQueryValidationError("Multiple statements are not allowed")+ normalized = parts[0]+ if _FORBIDDEN_SQL.search(normalized):+ raise ReadQueryValidationError("Only read-only SELECT queries are allowed")+ if not _READ_QUERY_START.match(normalized):+ raise ReadQueryValidationError(+ "Query must start with SELECT, WITH, EXPLAIN, or TABLE"+ )+ return normalizeddiff --git a/src/services/api/controllers/structured_data.py b/src/services/api/controllers/structured_data.pyindex def90f0..5023f82 100644--- a/src/services/api/controllers/structured_data.py+++ b/src/services/api/controllers/structured_data.py@@ -90,10 +90,18 @@ async def get_text_chunks(limit: int = 10,skip: int = 0,query_text: Optional[str] = None,+ metadata_eq: Optional[dict[str, str]] = None,+ order: str = "desc",):"""- Get text chunks by a query text.+ Get text chunks by a query text and optional metadata equality filters."""return await asyncio.to_thread(- data_adapter.get_text_chunks, brain_id, limit, skip, query_text+ data_adapter.get_text_chunks,+ brain_id,+ limit,+ skip,+ query_text,+ metadata_eq,+ order,)diff --git a/src/services/api/routes/retrieve.py b/src/services/api/routes/retrieve.pyindex 0cd3ed3..b265a3c 100644--- a/src/services/api/routes/retrieve.py+++ b/src/services/api/routes/retrieve.py@@ -8,8 +8,9 @@ Modified By: Christian Nonis <[email protected]>-----"""+import jsonfrom typing import List, Literal, Optional-from fastapi import APIRouter, Body, Depends, Query+from fastapi import APIRouter, Body, Depends, HTTPException, Queryfrom fastapi.responses import JSONResponsefrom src.services.api.dependencies import get_brain_idfrom src.services.api.constants.requests import (@@ -276,11 +277,42 @@ async def get_text_chunks(limit: int = 10,skip: int = 0,query_text: Optional[str] = None,+ metadata_eq: Optional[str] = Query(default=None),+ order: Literal["asc", "desc"] = Query(default="desc"),):"""- Get text chunks by a query text.- """- results, total = await get_text_chunks_controller(brain_id, limit, skip, query_text)+ Get text chunks by a query text and optional metadata equality filters.+ """+ metadata_eq_filters: Optional[dict[str, str]] = None+ if metadata_eq:+ try:+ parsed_metadata_eq = json.loads(metadata_eq)+ except json.JSONDecodeError as exc:+ raise HTTPException(+ status_code=422,+ detail="metadata_eq must be a valid JSON object string",+ ) from exc++ if not isinstance(parsed_metadata_eq, dict):+ raise HTTPException(+ status_code=422,+ detail="metadata_eq must be a JSON object string",+ )++ if any(+ not isinstance(key, str) or not isinstance(value, str)+ for key, value in parsed_metadata_eq.items()+ ):+ raise HTTPException(+ status_code=422,+ detail="metadata_eq must be a JSON object with string keys and string values",+ )++ metadata_eq_filters = parsed_metadata_eq++ results, total = await get_text_chunks_controller(+ brain_id, limit, skip, query_text, metadata_eq_filters, order+ )return JSONResponse(content={diff --git a/src/services/mcp/executor.py b/src/services/mcp/executor.pynew file mode 100644index 0000000..9a6edf7--- /dev/null+++ b/src/services/mcp/executor.py@@ -0,0 +1,84 @@+import asyncio+import json+from typing import Any++from src.services.mcp.prompt import MCP_TOOL_SPECS++_MCP_TOOL_NAMES = {spec["name"] for spec in MCP_TOOL_SPECS}+++def _normalize_tool_input(tool_input: Any) -> dict[str, Any]:+ if tool_input is None:+ return {}+ if isinstance(tool_input, dict):+ return tool_input+ if isinstance(tool_input, str):+ raw = tool_input.strip()+ if not raw:+ return {}+ try:+ parsed = json.loads(raw)+ return parsed if isinstance(parsed, dict) else {"input": parsed}+ except json.JSONDecodeError:+ return {"message": raw}+ return {"input": tool_input}+++async def execute_mcp_tool(+ tool_name: str,+ tool_input: Any,+ *,+ brain_pat: str | None,+) -> str:+ if tool_name not in _MCP_TOOL_NAMES:+ return f"Error: unknown tool '{tool_name}'"++ from src.services.mcp.main import (+ auth_token_var,+ get_search_operation_instructions,+ list_brains,+ search_memory,+ search_semantically,+ traverse_graph,+ )++ params = _normalize_tool_input(tool_input)+ token = auth_token_var.set(brain_pat)+ try:+ if tool_name == "get_search_operation_instructions":+ message = str(params.get("message") or "")+ result = get_search_operation_instructions(message)+ return result if isinstance(result, str) else json.dumps(result, default=str)+ if tool_name == "list_brains":+ result = await list_brains()+ return result if isinstance(result, str) else json.dumps(result, default=str)+ if tool_name == "search_semantically":+ result = await search_semantically(+ query=str(params.get("query") or ""),+ brain_id=str(params.get("brain_id") or ""),+ )+ return result if isinstance(result, str) else json.dumps(result, default=str)+ if tool_name == "traverse_graph":+ result = await traverse_graph(+ brain_id=str(params.get("brain_id") or ""),+ start_uuid=str(params.get("start_uuid") or ""),+ start_name=str(params.get("start_name") or ""),+ start_labels=params.get("start_labels"),+ depth=int(params.get("depth") or 2),+ rel_types=params.get("rel_types"),+ node_labels=params.get("node_labels"),+ direction=str(params.get("direction") or "both"),+ limit=int(params.get("limit") or 50),+ )+ return result if isinstance(result, str) else json.dumps(result, default=str)+ if tool_name == "search_memory":+ result = await search_memory(+ db_query=str(params.get("db_query") or ""),+ brain_id=str(params.get("brain_id") or ""),+ )+ return result if isinstance(result, str) else json.dumps(result, default=str)+ return f"Error: tool '{tool_name}' is not implemented"+ except Exception as exc:+ return f"Error executing tool '{tool_name}': {exc}"+ finally:+ auth_token_var.reset(token)diff --git a/src/services/mcp/main.py b/src/services/mcp/main.pyindex b37e66d..5e6802e 100644--- a/src/services/mcp/main.py+++ b/src/services/mcp/main.py@@ -11,6 +11,7 @@ Modified By: Christian Nonis <[email protected]>import asyncioimport html+import jsonimport osfrom contextvars import ContextVarfrom typing import Any@@ -27,7 +28,6 @@ from src.core.instances import (graph_adapter,vector_store_adapter,)-from src.lib.neo4j.client import _neo4j_clientfrom src.services.mcp.oauth_provider import BrainapiMcpOAuthProviderfrom src.services.mcp.utils import guard_brainpatfrom src.utils.vector_search import VectorSearchFacade@@ -170,16 +170,96 @@ def get_search_operation_instructions(message: str) -> str:"""This tool will provide instructions on how to use the search_memory tool."""+ backend_type = graph_adapter.graphdb_type+ backend_desc = graph_adapter.graphdb_descriptionreturn f"""- The brains are a storage for information and memories, they are powered by multiple dbs.- The `search_memory` tool will execute graph operations to search the knowledge graph that contains informations.- {_neo4j_client.graphdb_description}.- The input must be a JSON object with the following fields:- - db_query: str: the operation to execute on the graph.- - brain_id: str: the brain to search in.+ Graph backend: {backend_type}+ {backend_desc}++ Recommended workflow:+ 1. search_semantically — when you do not know node UUIDs or exact names+ 2. traverse_graph — multi-hop expansion with filters (preferred over hand-written queries)+ 3. search_memory — ad-hoc read queries not covered by traverse_graph++ traverse_graph parameters:+ - brain_id (required)+ - start_uuid OR (start_name + start_labels)+ - depth (1-5, default 2)+ - rel_types (optional list of relationship type names)+ - node_labels (optional list of node label filters)+ - direction: in | out | both (default both)+ - limit (1-100, default 50)++ search_memory parameters:+ - db_query: read-only graph query ({("SQL SELECT/WITH" if "postgresql" in backend_type else "Cypher")})+ - brain_id: the brain to search in"""+def _traverse_graph_sync(+ brain_id: str,+ start_uuid: str,+ start_name: str,+ start_labels: list[str] | None,+ depth: int,+ rel_types: list[str] | None,+ node_labels: list[str] | None,+ direction: str,+ limit: int,+) -> Any:+ try:+ if not guard_brainpat(auth_token_var.get(), brain_id):+ return "Unauthorized"+ if direction not in {"in", "out", "both"}:+ return "Error: direction must be in, out, or both"+ result = graph_adapter.traverse_graph(+ brain_id=brain_id,+ start_uuid=start_uuid or None,+ start_name=start_name or None,+ start_labels=start_labels,+ depth=depth,+ rel_types=rel_types,+ node_labels=node_labels,+ direction=direction,+ limit=limit,+ )+ return json.dumps(result, default=str)+ except Exception as e:+ return f"Error traversing graph: {e}"+++async def traverse_graph(+ brain_id: str,+ start_uuid: str = "",+ start_name: str = "",+ start_labels: list[str] | None = None,+ depth: int = 2,+ rel_types: list[str] | None = None,+ node_labels: list[str] | None = None,+ direction: str = "both",+ limit: int = 50,+) -> Any:+ """+ Traverse the knowledge graph from a starting node up to N hops with optional filters.+ Prefer this over search_memory for multi-hop exploration.++ Provide start_uuid, or both start_name and start_labels to identify the start node.+ """+ return await asyncio.to_thread(+ _traverse_graph_sync,+ brain_id,+ start_uuid,+ start_name,+ start_labels,+ depth,+ rel_types,+ node_labels,+ direction,+ limit,+ )++def _search_memory_sync(db_query: str, brain_id: str) -> Any:try:if not guard_brainpat(auth_token_var.get(), brain_id):@@ -193,10 +273,10 @@ def _search_memory_sync(db_query: str, brain_id: str) -> Any:async def search_memory(db_query: str, brain_id: str) -> Any:"""Search the brain for memories and information.- This tool will search into the knowledge graph.+ This tool will search into the knowledge graph using the active graph backend query language.Input must be a JSON object with the following fields:- - db_query: str: the operation to execute on the graph.+ - db_query: str: read-only graph query (Cypher on Neo4j, SQL on PostgreSQL).- brain_id: str: the brain to search in."""return await asyncio.to_thread(_search_memory_sync, db_query, brain_id)diff --git a/src/services/mcp/prompt.py b/src/services/mcp/prompt.pynew file mode 100644index 0000000..584b34d--- /dev/null+++ b/src/services/mcp/prompt.py@@ -0,0 +1,83 @@+import json++MCP_TOOL_SPECS: list[dict[str, object]] = [+ {+ "name": "get_search_operation_instructions",+ "description": "Returns instructions for searching the knowledge graph (backend type, recommended workflow, parameter reference).",+ "parameters": {"message": "str — optional context for the instructions request"},+ },+ {+ "name": "list_brains",+ "description": "Lists brains/memory stores available to the current token.",+ "parameters": {},+ },+ {+ "name": "search_semantically",+ "description": "Semantic search when node UUIDs or exact names are unknown.",+ "parameters": {+ "query": "str",+ "brain_id": "str — use the active brain_id for this session",+ },+ },+ {+ "name": "traverse_graph",+ "description": "Multi-hop graph traversal from a start node (preferred over hand-written queries).",+ "parameters": {+ "brain_id": "str",+ "start_uuid": "str (optional if start_name + start_labels provided)",+ "start_name": "str",+ "start_labels": "list[str] (optional)",+ "depth": "int 1-5, default 2",+ "rel_types": "list[str] (optional)",+ "node_labels": "list[str] (optional)",+ "direction": "in | out | both, default both",+ "limit": "int 1-100, default 50",+ },+ },+ {+ "name": "search_memory",+ "description": "Ad-hoc read-only graph query when traverse_graph is not sufficient.",+ "parameters": {+ "db_query": "str — read-only Cypher (Neo4j) or SQL SELECT/WITH (PostgreSQL)",+ "brain_id": "str",+ },+ },+]+++def _format_tool_specs() -> str:+ lines: list[str] = []+ for spec in MCP_TOOL_SPECS:+ params = spec.get("parameters") or {}+ if params:+ param_text = json.dumps(params, indent=2)+ else:+ param_text = "{}"+ lines.append(+ f"- {spec['name']}: {spec['description']}\n Parameters: {param_text}"+ )+ return "\n".join(lines)+++def build_mcp_tools_instructions(brain_id: str) -> str:+ tools_block = _format_tool_specs()+ return f"""You can query the BrainAPI knowledge graph using MCP tools.++Active brain_id for this session: {brain_id}+Always pass this brain_id to tools that require it unless the user explicitly names another brain.++To call a tool, respond with ONLY a JSON object (no markdown fences, no extra text):+{{"tool_name": "<tool_name>", "tool_input": {{<parameters>}}}}++Available tools:+{tools_block}++Recommended workflow:+1. Call get_search_operation_instructions when you are unsure how to search.+2. search_semantically — when you do not know node UUIDs or exact names.+3. traverse_graph — multi-hop exploration (preferred over hand-written queries).+4. search_memory — ad-hoc read queries not covered by traverse_graph.++After each tool call you will receive a tool result message. You may call another tool or reply to the user.+When you have enough context to answer, respond in natural language without a tool call JSON object.+"""diff --git a/src/workers/app.py b/src/workers/app.pyindex a013063..2ed4497 100644--- a/src/workers/app.py+++ b/src/workers/app.py@@ -31,6 +31,10 @@ from celery import Celeryfrom kombu import Queuefrom src.config import config+from src.core.plugins.celery_discovery import (+ default_plugins_dir,+ discover_plugin_celery,+)from src.lib.tracing import start_runtime_monitoringfrom src.lib.tracing.workers import install_celery_tracing@@ -54,6 +58,8 @@ ingestion_app = Celery(include=["src.workers.tasks.ingestion"],)+_PLUGIN_QUEUES, _PLUGIN_ROUTES = discover_plugin_celery(default_plugins_dir(_project_root))+TASK_QUEUES = (Queue("ingest_data", routing_key="ingest_data"),Queue(@@ -62,7 +68,7 @@ TASK_QUEUES = (Queue("ingest_structured_data", routing_key="ingest_structured_data"),Queue("consolidate_graph", routing_key="consolidate_graph"),Queue("ingest_file", routing_key="ingest_file"),-)+) + _PLUGIN_QUEUESTASK_ROUTES = {"src.workers.tasks.ingestion.ingest_data": {"queue": "ingest_data"},@@ -76,6 +82,7 @@ TASK_ROUTES = {"queue": "consolidate_graph"},"src.workers.tasks.ingestion.ingest_file": {"queue": "ingest_file"},+ **_PLUGIN_ROUTES,}ingestion_app.conf.update(diff --git a/tests/test_chatbot_inference_plugin.py b/tests/test_chatbot_inference_plugin.pynew file mode 100644index 0000000..65ad112--- /dev/null+++ b/tests/test_chatbot_inference_plugin.py@@ -0,0 +1,158 @@+import os+import sys+import unittest+from pathlib import Path++ENV_DEFAULTS = {+ "BRAINPAT_TOKEN": "test-token",+ "MODELS_MODE": "local",+ "EMBEDDINGS_LOCAL_MODEL": "local-model",+ "EMBEDDINGS_SMALL_MODEL": "small-model",+ "EMBEDDING_NODES_DIMENSION": "3",+ "EMBEDDING_TRIPLETS_DIMENSION": "3",+ "EMBEDDING_OBSERVATIONS_DIMENSION": "3",+ "EMBEDDING_DATA_DIMENSION": "3",+ "EMBEDDING_RELATIONSHIPS_DIMENSION": "3",+ "REDIS_HOST": "localhost",+ "REDIS_PORT": "6379",+ "NEO4J_HOST": "localhost",+ "NEO4J_PORT": "7687",+ "NEO4J_USERNAME": "neo4j",+ "NEO4J_PASSWORD": "password",+ "MILVUS_HOST": "localhost",+ "MILVUS_PORT": "19530",+ "MONGO_CONNECTION_STRING": "mongodb://localhost:27017",+ "CELERY_WORKER_CONCURRENCY": "1",+ "OLLAMA_HOST": "localhost",+ "OLLAMA_PORT": "11434",+ "OLLAMA_LLM_SMALL_MODEL": "small",+ "OLLAMA_LLM_LARGE_MODEL": "large",+}+for key, value in ENV_DEFAULTS.items():+ os.environ.setdefault(key, value)++CHATBOT_PLUGIN_DIR = Path(__file__).resolve().parent.parent / "plugins" / "chatbot"+if str(CHATBOT_PLUGIN_DIR) not in sys.path:+ sys.path.insert(0, str(CHATBOT_PLUGIN_DIR))++from fastapi import FastAPI, Request+from fastapi.testclient import TestClient++from main import register+from routes import inference as inference_routes+from adapters.inference import parse_model+from src.core.plugins.context import PluginContext+++class ChatbotInferenceAdapterTests(unittest.TestCase):+ def test_parse_model_valid(self):+ provider, model = parse_model("azureopenai::gpt-4o-mini")+ self.assertEqual(provider, "azure")+ self.assertEqual(model, "gpt-4o-mini")++ def test_parse_model_invalid_format(self):+ with self.assertRaises(ValueError):+ parse_model("azure-gpt-4o-mini")++ def test_parse_model_unsupported_provider(self):+ with self.assertRaises(ValueError):+ parse_model("unknown::model-a")+++class ChatbotInferenceRouteTests(unittest.TestCase):+ def setUp(self):+ self.app = FastAPI()++ @self.app.middleware("http")+ async def set_brain_id(request: Request, call_next):+ request.state.brain_id = "brain-test"+ return await call_next(request)++ self.app.include_router(inference_routes.create_inference_router(PluginContext))+ self.client = TestClient(self.app)+ self.original_inference_response = inference_routes.inference_response++ def tearDown(self):+ inference_routes.inference_response = self.original_inference_response++ async def _fake_inference_response(+ self, model, prompt, stream=False, max_tokens=None, **kwargs+ ):+ self.assertFalse(stream)+ self.assertEqual(model, "openai::gpt-4o-mini")+ self.assertIn("hello", prompt)+ self.assertEqual(kwargs.get("brain_id"), "brain-test")+ self.assertEqual(max_tokens, 16)+ return "openai", "gpt-4o-mini", "ok-result"++ def test_inference_non_stream_success(self):+ inference_routes.inference_response = self._fake_inference_response+ response = self.client.post(+ "/chatbot/inference",+ json={+ "model": "openai::gpt-4o-mini",+ "input": "hello",+ "stream": False,+ "max_tokens": 16,+ },+ )+ self.assertEqual(response.status_code, 200)+ payload = response.json()+ self.assertEqual(payload["data"]["provider"], "openai")+ self.assertEqual(payload["data"]["output"], "ok-result")+ self.assertFalse(payload["data"]["stream"])++ def test_inference_invalid_model_returns_422(self):+ async def fake_inference_response(model, prompt, stream=False, max_tokens=None, **kwargs):+ raise ValueError("model must be in 'api_provider::llm_name' format")++ inference_routes.inference_response = fake_inference_response+ response = self.client.post(+ "/chatbot/inference",+ json={"model": "bad-format", "input": "hello", "stream": False},+ )+ self.assertEqual(response.status_code, 422)+ self.assertIn("api_provider::llm_name", response.json()["detail"])++ def test_inference_stream_success(self):+ async def fake_event_stream():+ yield 'data: {"choices":[{"delta":{"content":"hello"}}]}\n\n'+ yield "data: [DONE]\n\n"++ async def fake_inference_response(model, prompt, stream=False, max_tokens=None, **kwargs):+ self.assertTrue(stream)+ return "openai", "gpt-4o-mini", fake_event_stream()++ inference_routes.inference_response = fake_inference_response+ response = self.client.post(+ "/chatbot/inference",+ json={"model": "openai::gpt-4o-mini", "input": "hello", "stream": True},+ )+ self.assertEqual(response.status_code, 200)+ self.assertEqual(+ response.headers.get("content-type").split(";")[0], "text/event-stream"+ )+ body = response.text+ self.assertIn("data: {", body)+ self.assertIn("data: [DONE]", body)+++class ChatbotInferenceRegisterTests(unittest.TestCase):+ class DummyContext:+ def __init__(self):+ self._app = object()+ self.routers = []++ def include_router(self, router, **kwargs):+ self.routers.append((router, kwargs))++ def test_register_adds_chatbot_router(self):+ context = self.DummyContext()+ register(context)+ self.assertEqual(len(context.routers), 1)+ router, _ = context.routers[0]+ self.assertEqual(router.prefix, "/chatbot")+++if __name__ == "__main__":+ unittest.main()diff --git a/tests/test_chatbot_mcp_prompt.py b/tests/test_chatbot_mcp_prompt.pynew file mode 100644index 0000000..b661ff2--- /dev/null+++ b/tests/test_chatbot_mcp_prompt.py@@ -0,0 +1,22 @@+import unittest++from src.services.mcp.prompt import build_mcp_tools_instructions+++class ChatbotMcpPromptTests(unittest.TestCase):+ def test_build_mcp_tools_instructions_includes_brain_id(self):+ text = build_mcp_tools_instructions("my-brain")+ self.assertIn("my-brain", text)+ self.assertIn("search_semantically", text)+ self.assertIn("traverse_graph", text)+ self.assertIn("tool_name", text)++ def test_prepend_wraps_user_prompt(self):+ user_prompt = "User question"+ combined = f"{build_mcp_tools_instructions('brain-a')}\n\n{user_prompt}"+ self.assertTrue(combined.endswith(user_prompt))+ self.assertIn("brain-a", combined)+++if __name__ == "__main__":+ unittest.main()diff --git a/tests/test_mcp_traverse_graph.py b/tests/test_mcp_traverse_graph.pynew file mode 100644index 0000000..da3e7e3--- /dev/null+++ b/tests/test_mcp_traverse_graph.py@@ -0,0 +1,218 @@+import os+import sys+import unittest++ENV_DEFAULTS = {+ "BRAINPAT_TOKEN": "test-token",+ "MODELS_MODE": "local",+ "EMBEDDINGS_LOCAL_MODEL": "local-model",+ "EMBEDDINGS_SMALL_MODEL": "small-model",+ "EMBEDDING_NODES_DIMENSION": "3",+ "EMBEDDING_TRIPLETS_DIMENSION": "3",+ "EMBEDDING_OBSERVATIONS_DIMENSION": "3",+ "EMBEDDING_DATA_DIMENSION": "3",+ "EMBEDDING_RELATIONSHIPS_DIMENSION": "3",+ "REDIS_HOST": "localhost",+ "REDIS_PORT": "6379",+ "NEO4J_HOST": "localhost",+ "NEO4J_PORT": "7687",+ "NEO4J_USERNAME": "neo4j",+ "NEO4J_PASSWORD": "password",+ "MILVUS_HOST": "localhost",+ "MILVUS_PORT": "19530",+ "MONGO_CONNECTION_STRING": "mongodb://localhost:27017",+ "CELERY_WORKER_CONCURRENCY": "1",+ "OLLAMA_HOST": "localhost",+ "OLLAMA_PORT": "11434",+ "OLLAMA_LLM_SMALL_MODEL": "small",+ "OLLAMA_LLM_LARGE_MODEL": "large",+}+for key, value in ENV_DEFAULTS.items():+ os.environ.setdefault(key, value)++sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))++from src.adapters.graph import GraphAdapter+from src.constants.kg import Node, Predicate+from src.core.search.traverse import flatten_neighborhood, MAX_TRAVERSE_DEPTH, MAX_TRAVERSE_HOPS+++def _neighbor(+ pred_name: str,+ direction: str,+ node_uuid: str,+ node_name: str,+ labels: list[str],+ nested: list[dict] | None = None,+) -> dict:+ return {+ "predicate": Predicate(name=pred_name, description="", direction=direction),+ "node": Node(uuid=node_uuid, name=node_name, labels=labels),+ "neighbors": nested or [],+ }+++class FlattenNeighborhoodTests(unittest.TestCase):+ def test_flattens_nested_neighbors(self):+ neighborhood = [+ _neighbor(+ "KNOWS",+ "out",+ "b",+ "Bob",+ ["PERSON"],+ nested=[_neighbor("WORKS_AT", "out", "c", "Acme", ["ORGANIZATION"])],+ )+ ]+ hops, truncated = flatten_neighborhood(+ neighborhood,+ rel_types=None,+ node_labels=None,+ direction="both",+ limit=50,+ )+ self.assertFalse(truncated)+ self.assertEqual(len(hops), 2)+ self.assertEqual(hops[0]["depth"], 1)+ self.assertEqual(hops[0]["node"]["uuid"], "b")+ self.assertEqual(hops[1]["depth"], 2)+ self.assertEqual(hops[1]["via_uuid"], "b")+ self.assertEqual(hops[1]["node"]["uuid"], "c")++ def test_filters_by_rel_type(self):+ neighborhood = [+ _neighbor("KNOWS", "out", "b", "Bob", ["PERSON"]),+ _neighbor("WORKS_AT", "out", "c", "Acme", ["ORGANIZATION"]),+ ]+ hops, _ = flatten_neighborhood(+ neighborhood,+ rel_types=["WORKS_AT"],+ node_labels=None,+ direction="both",+ limit=50,+ )+ self.assertEqual(len(hops), 1)+ self.assertEqual(hops[0]["predicate"]["name"], "WORKS_AT")++ def test_filters_by_node_labels(self):+ neighborhood = [+ _neighbor("KNOWS", "out", "b", "Bob", ["PERSON"]),+ _neighbor("LOCATED_IN", "out", "c", "Paris", ["LOCATION"]),+ ]+ hops, _ = flatten_neighborhood(+ neighborhood,+ rel_types=None,+ node_labels=["LOCATION"],+ direction="both",+ limit=50,+ )+ self.assertEqual(len(hops), 1)+ self.assertEqual(hops[0]["node"]["labels"], ["LOCATION"])++ def test_filters_by_direction(self):+ neighborhood = [+ _neighbor("KNOWS", "out", "b", "Bob", ["PERSON"]),+ _neighbor("KNOWS", "in", "c", "Carol", ["PERSON"]),+ ]+ hops, _ = flatten_neighborhood(+ neighborhood,+ rel_types=None,+ node_labels=None,+ direction="out",+ limit=50,+ )+ self.assertEqual(len(hops), 1)+ self.assertEqual(hops[0]["direction"], "out")++ def test_respects_limit_and_sets_truncated(self):+ neighborhood = [+ _neighbor("REL", "out", f"n{i}", f"Node{i}", ["THING"])+ for i in range(5)+ ]+ hops, truncated = flatten_neighborhood(+ neighborhood,+ rel_types=None,+ node_labels=None,+ direction="both",+ limit=2,+ )+ self.assertTrue(truncated)+ self.assertEqual(len(hops), 2)+++class GraphAdapterTraverseGraphTests(unittest.TestCase):+ def test_traverse_graph_by_uuid(self):+ start = Node(uuid="a", name="Alice", labels=["PERSON"])+ neighborhood = [_neighbor("KNOWS", "out", "b", "Bob", ["PERSON"])]++ class FakeGraphClient:+ def get_by_uuid(self, uuid, brain_id):+ return start if uuid == "a" else None++ def get_neighborhood(self, node, depth, brain_id):+ return neighborhood++ adapter = GraphAdapter()+ adapter.add_client(FakeGraphClient())+ result = adapter.traverse_graph(start_uuid="a", brain_id="default", depth=2)+ self.assertEqual(result["start"]["uuid"], "a")+ self.assertEqual(len(result["hops"]), 1)+ self.assertFalse(result["truncated"])++ def test_traverse_graph_by_name_and_labels(self):+ start = Node(uuid="a", name="Alice", labels=["PERSON"])+ neighborhood = []++ class FakeGraphClient:+ def get_by_identification_params(self, params, brain_id, entity_types=None):+ return start++ def get_neighborhood(self, node, depth, brain_id):+ return neighborhood++ adapter = GraphAdapter()+ adapter.add_client(FakeGraphClient())+ result = adapter.traverse_graph(+ start_name="Alice",+ start_labels=["PERSON"],+ brain_id="default",+ )+ self.assertEqual(result["start"]["name"], "Alice")++ def test_traverse_graph_requires_start_identifiers(self):+ adapter = GraphAdapter()+ adapter.add_client(type("Fake", (), {})())+ result = adapter.traverse_graph(brain_id="default")+ self.assertIn("error", result)++ def test_traverse_graph_clamps_depth_and_limit(self):+ start = Node(uuid="a", name="Alice", labels=["PERSON"])++ class FakeGraphClient:+ captured_depth = None++ def get_by_uuid(self, uuid, brain_id):+ return start++ def get_neighborhood(self, node, depth, brain_id):+ FakeGraphClient.captured_depth = depth+ return []++ adapter = GraphAdapter()+ adapter.add_client(FakeGraphClient())+ adapter.traverse_graph(+ start_uuid="a",+ depth=99,+ limit=999,+ )+ self.assertEqual(FakeGraphClient.captured_depth, MAX_TRAVERSE_DEPTH)+++class TraverseConstantsTests(unittest.TestCase):+ def test_constants(self):+ self.assertEqual(MAX_TRAVERSE_DEPTH, 5)+ self.assertEqual(MAX_TRAVERSE_HOPS, 100)+++if __name__ == "__main__":+ unittest.main()diff --git a/tests/test_plugin_refactors.py b/tests/test_plugin_refactors.pyindex 015f6d4..173cd02 100644--- a/tests/test_plugin_refactors.py+++ b/tests/test_plugin_refactors.py@@ -100,6 +100,46 @@ class PluginLoaderRefactorTests(unittest.TestCase):self.assertEqual(loader.context.loaded, ["mycopy"])self.assertIn(manifest.name, loader.loaded_plugins)+ def test_loader_isolates_modules_for_plugins_with_same_entrypoint_name(self):+ with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp)+ alpha_dir = root / "alpha"+ beta_dir = root / "beta"+ write_manifest(alpha_dir, name="alpha", entry_point="main.py", priority=1)+ write_manifest(beta_dir, name="beta", entry_point="main.py", priority=2)++ (alpha_dir / "main.py").write_text(+ "def register(context):\n"+ " from routes.shared import marker\n"+ " context.loaded.append(marker())\n",+ encoding="utf-8",+ )+ (beta_dir / "main.py").write_text(+ "def register(context):\n"+ " from routes.shared import marker\n"+ " context.loaded.append(marker())\n",+ encoding="utf-8",+ )++ (alpha_dir / "routes").mkdir(parents=True, exist_ok=True)+ (beta_dir / "routes").mkdir(parents=True, exist_ok=True)+ (alpha_dir / "routes" / "shared.py").write_text(+ "def marker():\n"+ " return 'alpha'\n",+ encoding="utf-8",+ )+ (beta_dir / "routes" / "shared.py").write_text(+ "def marker():\n"+ " return 'beta'\n",+ encoding="utf-8",+ )++ loader = PluginLoader(root, self.DummyContext())+ results = loader.load_all()++ self.assertEqual(results, {"alpha": True, "beta": True})+ self.assertEqual(loader.context.loaded, ["alpha", "beta"])+if __name__ == "__main__":unittest.main()diff --git a/tests/test_postgresql_graph_read_query.py b/tests/test_postgresql_graph_read_query.pynew file mode 100644index 0000000..56aca2f--- /dev/null+++ b/tests/test_postgresql_graph_read_query.py@@ -0,0 +1,165 @@+import json+import os+import sys+import unittest+from unittest.mock import MagicMock, patch++ENV_DEFAULTS = {+ "BRAINPAT_TOKEN": "test-token",+ "MODELS_MODE": "local",+ "EMBEDDINGS_LOCAL_MODEL": "local-model",+ "EMBEDDINGS_SMALL_MODEL": "small-model",+ "EMBEDDING_NODES_DIMENSION": "3",+ "EMBEDDING_TRIPLETS_DIMENSION": "3",+ "EMBEDDING_OBSERVATIONS_DIMENSION": "3",+ "EMBEDDING_DATA_DIMENSION": "3",+ "EMBEDDING_RELATIONSHIPS_DIMENSION": "3",+ "REDIS_HOST": "localhost",+ "REDIS_PORT": "6379",+ "NEO4J_HOST": "localhost",+ "NEO4J_PORT": "7687",+ "NEO4J_USERNAME": "neo4j",+ "NEO4J_PASSWORD": "password",+ "MILVUS_HOST": "localhost",+ "MILVUS_PORT": "19530",+ "MONGO_CONNECTION_STRING": "mongodb://localhost:27017",+ "CELERY_WORKER_CONCURRENCY": "1",+ "OLLAMA_HOST": "localhost",+ "OLLAMA_PORT": "11434",+ "OLLAMA_LLM_SMALL_MODEL": "small",+ "OLLAMA_LLM_LARGE_MODEL": "large",+ "POSTGRES_HOST": "localhost",+ "POSTGRES_PORT": "5432",+ "POSTGRES_USERNAME": "postgres",+ "POSTGRES_PASSWORD": "postgres",+}+for key, value in ENV_DEFAULTS.items():+ os.environ.setdefault(key, value)++sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))++import importlib.util+from pathlib import Path++_read_query_path = (+ Path(__file__).resolve().parent.parent / "src/lib/postgresql/read_query.py"+)+_read_query_spec = importlib.util.spec_from_file_location(+ "brainapi_read_query", _read_query_path+)+_read_query_module = importlib.util.module_from_spec(_read_query_spec)+assert _read_query_spec.loader is not None+_read_query_spec.loader.exec_module(_read_query_module)+validate_read_only_sql = _read_query_module.validate_read_only_sql+ReadQueryValidationError = _read_query_module.ReadQueryValidationError++from src.adapters.graph import GraphAdapter++try:+ from src.lib.postgresql.graph_store import GraphDatabaseError, PostgreSQLGraphStore+except ImportError:+ GraphDatabaseError = Exception+ PostgreSQLGraphStore = None+++class ValidateReadOnlySqlTests(unittest.TestCase):+ def test_accepts_select(self):+ sql = validate_read_only_sql("SELECT uuid, data FROM kg_nodes LIMIT 5")+ self.assertEqual(sql, "SELECT uuid, data FROM kg_nodes LIMIT 5")++ def test_accepts_with_recursive(self):+ query = (+ "WITH RECURSIVE walk AS ("+ "SELECT source_uuid, target_uuid FROM kg_relationships "+ "WHERE source_uuid = 'abc' "+ "UNION ALL SELECT r.source_uuid, r.target_uuid "+ "FROM walk w JOIN kg_relationships r ON r.source_uuid = w.target_uuid "+ "WHERE w.depth < 2) SELECT * FROM walk"+ )+ self.assertTrue(validate_read_only_sql(query).startswith("WITH RECURSIVE"))++ def test_accepts_table_shorthand(self):+ sql = validate_read_only_sql("TABLE kg_nodes")+ self.assertEqual(sql, "TABLE kg_nodes")++ def test_rejects_empty_query(self):+ with self.assertRaises(ReadQueryValidationError):+ validate_read_only_sql(" ")++ def test_rejects_multiple_statements(self):+ with self.assertRaises(ReadQueryValidationError):+ validate_read_only_sql("SELECT 1; DELETE FROM kg_nodes")++ def test_rejects_insert(self):+ with self.assertRaises(ReadQueryValidationError):+ validate_read_only_sql("INSERT INTO kg_nodes VALUES ('x', '{}')")++ def test_rejects_delete(self):+ with self.assertRaises(ReadQueryValidationError):+ validate_read_only_sql("DELETE FROM kg_nodes")++ def test_rejects_drop(self):+ with self.assertRaises(ReadQueryValidationError):+ validate_read_only_sql("DROP TABLE kg_nodes")++ def test_rejects_invalid_start_keyword(self):+ with self.assertRaises(ReadQueryValidationError):+ validate_read_only_sql("UPDATE kg_nodes SET data = '{}'")+++class ExecuteReadQueryTests(unittest.TestCase):+ @unittest.skipIf(PostgreSQLGraphStore is None, "postgresql dependencies unavailable")+ def test_applies_row_cap_and_truncated_flag(self):+ store = PostgreSQLGraphStore()+ rows = [{"uuid": f"n{i}", "data": {"name": f"node{i}"}} for i in range(101)]+ mock_cursor = MagicMock()+ mock_cursor.fetchmany.return_value = rows+ mock_cursor.__enter__ = MagicMock(return_value=mock_cursor)+ mock_cursor.__exit__ = MagicMock(return_value=False)++ mock_conn = MagicMock()+ mock_conn.cursor.return_value = mock_cursor+ mock_conn.__enter__ = MagicMock(return_value=mock_conn)+ mock_conn.__exit__ = MagicMock(return_value=False)++ with patch.object(store, "_connection", return_value=mock_conn):+ with patch.object(store, "_ensure_brain_schema"):+ result = store.execute_read_query("default", "SELECT uuid, data FROM kg_nodes")++ self.assertTrue(result["truncated"])+ self.assertEqual(len(result["records"]), 100)+++class GraphOperationSerializationTests(unittest.TestCase):+ def test_execute_operation_serializes_postgresql_read_result(self):+ class FakeGraphClient:+ def execute_operation(self, operation: str, brain_id: str):+ return {+ "records": [{"uuid": "abc", "data": {"name": "Alice"}}],+ "truncated": False,+ }++ adapter = GraphAdapter()+ adapter.add_client(FakeGraphClient())+ result = adapter.execute_operation(+ "SELECT uuid, data FROM kg_nodes LIMIT 1",+ brain_id="test-brain",+ )+ payload = json.loads(result)+ self.assertFalse(payload["truncated"])+ self.assertEqual(payload["records"][0]["uuid"], "abc")++ def test_execute_operation_returns_error_string_on_validation_failure(self):+ class FakeGraphClient:+ def execute_operation(self, operation: str, brain_id: str):+ raise GraphDatabaseError("Only read-only SELECT queries are allowed")++ adapter = GraphAdapter()+ adapter.add_client(FakeGraphClient())+ result = adapter.execute_operation("DELETE FROM kg_nodes", brain_id="default")+ self.assertIn("Error executing graph operation", result)+ self.assertIn("read-only", result)+++if __name__ == "__main__":+ unittest.main()diff --git a/tui/README.md b/tui/README.mdindex 9a1b0b9..edef895 100644--- a/tui/README.md+++ b/tui/README.md@@ -5,7 +5,7 @@ Interactive installer and runtime CLI for [BrainAPI](https://github.com/Lumen-La## Install```bash-npm install -g brainapi+npm install -g brainapi-tui```This puts a `brainapi` binary on your `$PATH`.@@ -20,18 +20,18 @@ brainapi doctor # check Python, Docker, Ollama, and configured services## Commands-| Command | Description |-| --- | --- |-| `brainapi init` | Full bootstrap: clone the repo, create a Python venv, install deps, and run the interactive setup. |-| `brainapi start` | Start docker compose containers for the chosen services and launch the API. |-| `brainapi config` | Re-run the interactive flow and rewrite `.env`. |-| `brainapi doctor` | Check that Python, Docker, Ollama, GCP credentials, and configured services are reachable. |-| `brainapi update` | `git pull` the project and `pip install -e .` again. |+| Command | Description |+| ----------------- | -------------------------------------------------------------------------------------------------- |+| `brainapi init` | Full bootstrap: clone the repo, create a Python venv, install deps, and run the interactive setup. |+| `brainapi start` | Start docker compose containers for the chosen services and launch the API. |+| `brainapi config` | Re-run the interactive flow and rewrite `.env`. |+| `brainapi doctor` | Check that Python, Docker, Ollama, GCP credentials, and configured services are reachable. |+| `brainapi update` | `git pull` the project and `pip install -e .` again. |### `brainapi start` options-| Option | Description |-| --- | --- |+| Option | Description |+| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------- || `--pipeline accurate\|lightweight` | Set `PIPELINE_MODE` in `~/.brainapi/source/.env` before start (accurate = full pipeline; lightweight = faster ingestion). |## Where things live@@ -77,8 +77,8 @@ If someone runs any command before `brainapi init` (e.g. `brainapi doctor` or `b## Environment overrides-| Variable | Default | Description |-| --- | --- | --- |-| `BRAINAPI_REPO_URL` | `https://github.com/Lumen-Labs/brainapi2.git` | The git repo cloned on `init`. |-| `BRAINAPI_HOME` | `$HOME/.brainapi` | Where the source and state live. |-| `BRAINAPI_BRANCH` | `main` | Branch to checkout after cloning. |+| Variable | Default | Description |+| ------------------- | --------------------------------------------- | --------------------------------- |+| `BRAINAPI_REPO_URL` | `https://github.com/Lumen-Labs/brainapi2.git` | The git repo cloned on `init`. |+| `BRAINAPI_HOME` | `$HOME/.brainapi` | Where the source and state live. |+| `BRAINAPI_BRANCH` | `main` | Branch to checkout after cloning. |diff --git a/tui/package.json b/tui/package.jsonindex 682e5f3..201b1cf 100644--- a/tui/package.json+++ b/tui/package.json@@ -1,6 +1,6 @@{- "name": "brainapi",- "version": "0.1.0",+ "name": "brainapi-tui",+ "version": "0.1.1","description": "Interactive installer and runtime CLI for BrainAPI.","license": "MIT","type": "module",diff --git a/tui/src/commands/config.ts b/tui/src/commands/config.tsindex 2cdb1dc..bb1c151 100644--- a/tui/src/commands/config.ts+++ b/tui/src/commands/config.ts@@ -17,10 +17,17 @@ import {toInitChoices,type SetupDraft,} from "../flows/setup-wizard.js";+import { askPluginUninstall, askPlugins } from "../flows/plugins.js";import { writeEnvFromChoices } from "../lib/write-env.js";import { installExtras, missingExtras } from "../lib/python.js";-import { isPromptBack, pickOne } from "../lib/prompts.js";-import type { InitChoices } from "../types.js";+import { askText, isPromptBack, pickOne } from "../lib/prompts.js";+import {+ installLocalPlugin,+ installRegistryPlugin,+ listInstalledPlugins,+ uninstallPlugin,+} from "../lib/plugins.js";+import type { InitChoices, InstallState } from "../types.js";const MENU_BACK_HINT = "Return to configuration menu";@@ -32,6 +39,7 @@ type ConfigMenuSection =| "pipeline"| "connections"| "auth"+ | "plugins"| "wizard"| "save"| "exit";@@ -64,18 +72,19 @@ function draftSummary(draft: ConfigDraft): string {lines.push(draft.auth?.brainpatToken ? "Auth token: set" : "Auth token: not configured",);+ lines.push(`Plugins selected: ${draft.plugins?.length ?? 0}`);return lines.join("\n");}-function missingForSave(draft: ConfigDraft): string[] {- const missing: string[] = [];- if (!draft.dbs) missing.push("databases");- if (!draft.servicesRuntime) missing.push("services runtime");- if (!draft.models) missing.push("models");- if (!draft.pipeline) missing.push("pipeline");- if (!draft.connections) missing.push("connections");- if (!draft.auth?.brainpatToken) missing.push("authentication");- return missing;+function hasCompleteDraft(draft: ConfigDraft): boolean {+ return Boolean(+ draft.dbs &&+ draft.servicesRuntime &&+ draft.models &&+ draft.pipeline &&+ draft.connections &&+ draft.auth?.brainpatToken,+ );}async function configMainMenu(): Promise<ConfigMenuSection> {@@ -93,6 +102,7 @@ async function configMainMenu(): Promise<ConfigMenuSection> {{ value: "pipeline", label: "Pipeline (OCR)" },{ value: "connections", label: "Connection details" },{ value: "auth", label: "Authentication token" },+ { value: "plugins", label: "Plugins (install/uninstall)" },{value: "wizard",label: "Configure all (step-by-step)",@@ -202,6 +212,80 @@ async function configureAuth(draft: ConfigDraft): Promise<void> {p.log.success("Authentication token updated.");}+async function configurePlugins(draft: ConfigDraft): Promise<void> {+ const action = await pickOne<"add_search" | "install_path" | "uninstall" | "list" | "back">({+ message: "Plugin management",+ options: [+ { value: "add_search", label: "Search and add plugin (local/registry)" },+ { value: "install_path", label: "Install local plugin by path" },+ { value: "uninstall", label: "Uninstall installed plugin" },+ { value: "list", label: "List installed plugins" },+ { value: "back", label: "Back" },+ ],+ initialValue: "add_search",+ });+ if (action === "back") return;+ if (action === "list") {+ const installed = await listInstalledPlugins();+ if (installed.length === 0) {+ p.log.info("No installed plugins.");+ return;+ }+ p.note(+ installed.map((plugin) => `${plugin.name} (${plugin.version})`).join("\n"),+ "Installed plugins",+ );+ return;+ }+ if (action === "install_path") {+ const pluginPath = await askText({+ message: "Enter local plugin directory path",+ placeholder: "/path/to/plugin",+ });+ if (!pluginPath.trim()) {+ p.log.warn("No path provided.");+ return;+ }+ const installedName = await installLocalPlugin(pluginPath.trim());+ const existing = draft.plugins ?? [];+ draft.plugins = [+ ...existing.filter((plugin) => plugin.name !== installedName),+ { name: installedName, source: "local", path: pluginPath.trim() },+ ];+ p.log.success(`Installed local plugin ${installedName}.`);+ return;+ }+ if (action === "uninstall") {+ const selected = await askPluginUninstall({ allowBack: true, backHint: MENU_BACK_HINT });+ if (selected === null || isPromptBack(selected)) {+ return;+ }+ await uninstallPlugin(selected);+ draft.plugins = (draft.plugins ?? []).filter((plugin) => plugin.name !== selected);+ p.log.success(`Uninstalled plugin ${selected}.`);+ return;+ }+ const selectedPlugins = await askPlugins({+ allowBack: true,+ backHint: MENU_BACK_HINT,+ initial: draft.plugins ?? [],+ });+ if (isPromptBack(selectedPlugins)) {+ return;+ }+ for (const plugin of selectedPlugins) {+ if (plugin.source === "local") {+ if (!plugin.path) continue;+ await installLocalPlugin(plugin.path);+ p.log.success(`Installed local plugin ${plugin.name}.`);+ continue;+ }+ await installRegistryPlugin(plugin.name, plugin.version);+ p.log.success(`Installed registry plugin ${plugin.name}.`);+ }+ draft.plugins = selectedPlugins;+}+async function runConfigWizard(draft: ConfigDraft): Promise<void> {const completed = await runSetupWizard(draft, {firstStepBack: "return",@@ -214,18 +298,33 @@ async function runConfigWizard(draft: ConfigDraft): Promise<void> {}async function saveDraft(draft: ConfigDraft): Promise<boolean> {- const missing = missingForSave(draft);- if (missing.length > 0) {- p.log.error(- "Cannot save yet. Still need: " + missing.join(", ") + ".",+ const statePatch: Partial<InstallState> = {};+ if (draft.servicesRuntime) {+ statePatch.servicesRuntime = draft.servicesRuntime;+ }+ if (draft.plugins) {+ statePatch.installedPlugins = draft.plugins.map((plugin) => plugin.name);+ }+ if (Object.keys(statePatch).length > 0) {+ await updateState(statePatch);+ }++ if (!hasCompleteDraft(draft)) {+ p.log.success("Changes saved.");+ p.log.warn(+ "Draft is partial, so .env was not rewritten. Use Configure all to fully regenerate it.",);- p.note(draftSummary(draft), "Current draft");- return false;+ p.outro(pc.green("Partial configuration applied."));+ return true;}const choices = toInitChoices(draft);await writeEnvFromChoices(choices);- await updateState({ envWritten: true, servicesRuntime: choices.servicesRuntime });+ await updateState({+ envWritten: true,+ servicesRuntime: choices.servicesRuntime,+ installedPlugins: choices.plugins.map((plugin) => plugin.name),+ });const extras = [...ocrToExtras(choices.pipeline.ocrMode),@@ -255,6 +354,10 @@ export async function runConfig(): Promise<void> {const draft: ConfigDraft = {servicesRuntime: state.servicesRuntime ?? undefined,+ plugins: (state.installedPlugins ?? []).map((name) => ({+ name,+ source: "local",+ })),};p.note(@@ -296,6 +399,9 @@ export async function runConfig(): Promise<void> {case "auth":await configureAuth(draft);break;+ case "plugins":+ await configurePlugins(draft);+ break;case "wizard":await runConfigWizard(draft);break;diff --git a/tui/src/commands/init.ts b/tui/src/commands/init.tsindex e8430bb..f637b44 100644--- a/tui/src/commands/init.ts+++ b/tui/src/commands/init.ts@@ -25,10 +25,12 @@ import { ensureDocker } from "../lib/docker-recovery.js";import { bringUpServices, bringUpServicesManually } from "../lib/bring-up.js";import { targetFromConnections } from "../lib/service-target.js";import { askConfirm } from "../lib/prompts.js";+import { installLocalPlugin, installRegistryPlugin } from "../lib/plugins.js";import type {Connections,DbChoices,InitChoices,+ PluginChoice,ServicesRuntime,} from "../types.js";import { type ServiceName } from "../constants.js";@@ -183,6 +185,30 @@ async function servicesPhase(});}+async function pluginsPhase(plugins: PluginChoice[]): Promise<void> {+ if (plugins.length === 0) {+ await updateState({ installedPlugins: [] });+ return;+ }+ const installed: string[] = [];+ for (const plugin of plugins) {+ if (plugin.source === "local") {+ if (!plugin.path) {+ p.log.warn(`Skipping local plugin '${plugin.name}' because path is missing.`);+ continue;+ }+ await installLocalPlugin(plugin.path);+ p.log.success(`Installed local plugin ${plugin.name}`);+ installed.push(plugin.name);+ continue;+ }+ await installRegistryPlugin(plugin.name, plugin.version);+ p.log.success(`Installed registry plugin ${plugin.name}`);+ installed.push(plugin.name);+ }+ await updateState({ installedPlugins: installed });+}+export async function runInit(opts: InitOptions = {}): Promise<void> {intro();await ensureStateDir();@@ -214,6 +240,8 @@ export async function runInit(opts: InitOptions = {}): Promise<void> {await installPhase(extras);+ await pluginsPhase(choices.plugins);+await writeEnvFromChoices(choices);await updateState({ envWritten: true });p.log.success(".env written");diff --git a/tui/src/constants.ts b/tui/src/constants.tsindex 4d4b141..ad84f04 100644--- a/tui/src/constants.ts+++ b/tui/src/constants.ts@@ -26,6 +26,8 @@ export const AZURE_DEFAULT_EMBEDDING_MODEL = "text-embedding-3-large";export const OPENAI_DEFAULT_SMALL_MODEL = "gpt-4o-mini";export const OPENAI_DEFAULT_LARGE_MODEL = "gpt-4o";export const OPENAI_DEFAULT_EMBEDDING_MODEL = "text-embedding-3-large";+export const ANTHROPIC_DEFAULT_SMALL_MODEL = "claude-3-5-haiku-latest";+export const ANTHROPIC_DEFAULT_LARGE_MODEL = "claude-sonnet-4-20250514";export const KNOWN_EMBEDDING_MODEL_DIMENSIONS: Record<string, number> = {"nomic-embed-text": 768,@@ -206,6 +208,9 @@ export const ENV_KEYS = {openaiSmallLlmModel: "OPENAI_SMALL_LLM_MODEL",openaiLargeLlmModel: "OPENAI_LARGE_LLM_MODEL",openaiEmbeddingModel: "OPENAI_EMBEDDING_MODEL",+ anthropicApiKey: "ANTHROPIC_API_KEY",+ anthropicSmallLlmModel: "ANTHROPIC_SMALL_LLM_MODEL",+ anthropicLargeLlmModel: "ANTHROPIC_LARGE_LLM_MODEL",bedrockRegion: "BEDROCK_REGION",bedrockAccessKeyId: "BEDROCK_ACCESS_KEY_ID",@@ -225,6 +230,7 @@ export const ENV_KEYS = {embeddingObservationsDimension: "EMBEDDING_OBSERVATIONS_DIMENSION",embeddingDataDimension: "EMBEDDING_DATA_DIMENSION",embeddingRelationshipsDimension: "EMBEDDING_RELATIONSHIPS_DIMENSION",+ enabledPlugins: "ENABLED_PLUGINS",} as const;export const SERVICE_COMPOSE_FILES = {diff --git a/tui/src/flows/models.ts b/tui/src/flows/models.tsindex b4d66dc..a5106ce 100644--- a/tui/src/flows/models.ts+++ b/tui/src/flows/models.ts@@ -4,6 +4,8 @@ import { homedir } from "node:os";import * as p from "@clack/prompts";import pc from "picocolors";import {+ ANTHROPIC_DEFAULT_LARGE_MODEL,+ ANTHROPIC_DEFAULT_SMALL_MODEL,AZURE_DEFAULT_EMBEDDING_MODEL,AZURE_DEFAULT_SMALL_MODEL,AZURE_DEFAULT_LARGE_API_VERSION,@@ -33,6 +35,7 @@ import type {ModelProvider,ModelsChoices,ModelsMode,+ AnthropicChoices,OpenAIChoices,} from "../types.js";import { askOllama } from "./ollama.js";@@ -268,8 +271,50 @@ async function askOpenAI(): Promise<OpenAIChoices> {};}-async function askProvider(message: string, initialValue: ModelProvider): Promise<ModelProvider> {+async function askAnthropic(): Promise<AnthropicChoices> {+ p.log.step("Configure Anthropic");+ const apiKey = await askPassword({+ message: "Anthropic API key",+ validate: (value) =>+ value.trim().length === 0 ? "API key is required" : undefined,+ });+ const smallLlmModel = await askText({+ message: "Anthropic small LLM model",+ placeholder: ANTHROPIC_DEFAULT_SMALL_MODEL,+ defaultValue: ANTHROPIC_DEFAULT_SMALL_MODEL,+ });+ const largeLlmModel = await askText({+ message: "Anthropic large LLM model",+ placeholder: ANTHROPIC_DEFAULT_LARGE_MODEL,+ defaultValue: ANTHROPIC_DEFAULT_LARGE_MODEL,+ });+ return {+ apiKey: apiKey.trim(),+ smallLlmModel: smallLlmModel.trim() || ANTHROPIC_DEFAULT_SMALL_MODEL,+ largeLlmModel: largeLlmModel.trim() || ANTHROPIC_DEFAULT_LARGE_MODEL,+ };+}++async function askLlmProvider(message: string, initialValue: ModelProvider): Promise<ModelProvider> {return pickOne<ModelProvider>({+ message,+ options: [+ { value: "ollama", label: "Ollama" },+ { value: "openai", label: "OpenAI" },+ { value: "anthropic", label: "Anthropic" },+ { value: "azure", label: "Azure OpenAI" },+ { value: "gcp_vertex", label: "Google Cloud — Vertex AI" },+ { value: "amazon_bedrock", label: "Amazon Bedrock" },+ ],+ initialValue,+ });+}++async function askEmbeddingsProvider(+ message: string,+ initialValue: Exclude<ModelProvider, "anthropic">,+): Promise<Exclude<ModelProvider, "anthropic">> {+ return pickOne<Exclude<ModelProvider, "anthropic">>({message,options: [{ value: "ollama", label: "Ollama" },@@ -343,9 +388,9 @@ export async function askModels(options?: {);}- const llmSmallProvider = await askProvider("Small LLM provider", "gcp_vertex");- const llmLargeProvider = await askProvider("Large LLM provider", "azure");- const embeddingsProvider = await askProvider("Embeddings provider", "azure");+ const llmSmallProvider = await askLlmProvider("Small LLM provider", "gcp_vertex");+ const llmLargeProvider = await askLlmProvider("Large LLM provider", "azure");+ const embeddingsProvider = await askEmbeddingsProvider("Embeddings provider", "azure");const providers = new Set([llmSmallProvider, llmLargeProvider, embeddingsProvider]);@@ -353,6 +398,7 @@ export async function askModels(options?: {let gcp = undefined;let azure = undefined;let openai = undefined;+ let anthropic = undefined;let bedrock = undefined;if (providers.has("ollama")) {@@ -367,6 +413,9 @@ export async function askModels(options?: {if (providers.has("openai")) {openai = await askOpenAI();}+ if (providers.has("anthropic")) {+ anthropic = await askAnthropic();+ }if (providers.has("amazon_bedrock")) {bedrock = await askBedrock();}@@ -381,6 +430,7 @@ export async function askModels(options?: {gcp,azure,openai,+ anthropic,bedrock,},{diff --git a/tui/src/flows/plugins.ts b/tui/src/flows/plugins.tsnew file mode 100644index 0000000..089e706--- /dev/null+++ b/tui/src/flows/plugins.ts@@ -0,0 +1,131 @@+import * as p from "@clack/prompts";+import { askConfirm, askText, isPromptBack, pickOne, PROMPT_BACK } from "../lib/prompts.js";+import type { PluginChoice, PluginSource } from "../types.js";+import { listInstalledPlugins, searchPlugins } from "../lib/plugins.js";++interface AskPluginsOptions {+ allowBack?: boolean;+ backHint?: string;+ initial?: PluginChoice[];+}++function pluginLabel(plugin: {+ name: string;+ version: string;+ source: PluginSource;+ description: string;+}): string {+ const sourceTag = plugin.source === "registry" ? "registry" : "local";+ return `${plugin.name} (${sourceTag})`;+}++export async function askPlugins(+ opts: AskPluginsOptions = {},+): Promise<PluginChoice[] | typeof PROMPT_BACK> {+ const selections = new Map<string, PluginChoice>();+ for (const plugin of opts.initial ?? []) {+ selections.set(`${plugin.source}:${plugin.name}:${plugin.path ?? ""}`, plugin);+ }++ while (true) {+ const query = await askText({+ message: "Search plugin by name (or leave empty to continue)",+ placeholder: "chatbot",+ });+ if (!query.trim()) {+ if (opts.allowBack && selections.size === 0) {+ const shouldGoBack = await pickOne<"continue" | "back">({+ message: "No plugins selected. Continue or go back?",+ options: [+ { value: "continue", label: "Continue" },+ { value: "back", label: "Back", hint: opts.backHint },+ ],+ initialValue: "continue",+ });+ if (shouldGoBack === "back") {+ return PROMPT_BACK;+ }+ }+ return [...selections.values()];+ }++ const results = await searchPlugins(query);+ if (results.length === 0) {+ p.log.warn(`No plugin found for "${query}".`);+ } else {+ const choice = await pickOne<string>({+ message: "Select a plugin to add",+ options: results.map((plugin, index) => ({+ value: String(index),+ label: pluginLabel(plugin),+ hint: plugin.description || `${plugin.version}`,+ })),+ allowBack: true,+ backHint: opts.backHint,+ });+ if (isPromptBack(choice)) {+ if (opts.allowBack) {+ return PROMPT_BACK;+ }+ continue;+ }+ const selected = results[Number(choice)];+ if (!selected) {+ p.log.warn("Invalid plugin selection.");+ continue;+ }+ const confirmed = await askConfirm({+ message: `Add ${selected.name} from ${selected.source}?`,+ initialValue: true,+ });+ if (confirmed) {+ const key = `${selected.source}:${selected.name}:${selected.path ?? ""}`;+ selections.set(key, {+ name: selected.name,+ source: selected.source,+ version: selected.version,+ path: selected.path,+ });+ p.log.success(`Added ${selected.name}.`);+ }+ }++ const addMore = await askConfirm({+ message: "Add another plugin?",+ initialValue: true,+ });+ if (!addMore) {+ return [...selections.values()];+ }+ }+}++export async function askPluginUninstall(+ opts: { allowBack?: boolean; backHint?: string } = {},+): Promise<string | typeof PROMPT_BACK | null> {+ const installed = await listInstalledPlugins();+ if (installed.length === 0) {+ p.log.info("No installed plugins found.");+ return null;+ }+ const options = installed.map((plugin) => ({+ value: plugin.name,+ label: plugin.name,+ hint: plugin.version,+ }));+ const choice = opts.allowBack+ ? await pickOne<string>({+ message: "Select plugin to uninstall",+ options,+ allowBack: true,+ backHint: opts.backHint,+ })+ : await pickOne<string>({+ message: "Select plugin to uninstall",+ options,+ });+ if (isPromptBack(choice)) {+ return PROMPT_BACK;+ }+ return choice;+}diff --git a/tui/src/flows/setup-wizard.ts b/tui/src/flows/setup-wizard.tsindex b0b52f8..b3e6690 100644--- a/tui/src/flows/setup-wizard.ts+++ b/tui/src/flows/setup-wizard.ts@@ -6,6 +6,7 @@ import { askPipeline } from "./pipeline.js";import { askConnections } from "./connections.js";import { askAuth } from "./auth.js";import { askServicesRuntime } from "./services-runtime.js";+import { askPlugins } from "./plugins.js";import { isPromptBack } from "../lib/prompts.js";import type {AuthChoices,@@ -13,6 +14,7 @@ import type {DbChoices,InitChoices,ModelsChoices,+ PluginChoice,PipelineChoices,ServicesRuntime,} from "../types.js";@@ -24,6 +26,7 @@ export interface SetupDraft {pipeline?: PipelineChoices;connections?: Connections;auth?: AuthChoices;+ plugins?: PluginChoice[];usedDefaults?: boolean;}@@ -41,6 +44,7 @@ export function toInitChoices(draft: SetupDraft): InitChoices {pipeline: draft.pipeline!,connections: draft.connections!,auth: draft.auth!,+ plugins: draft.plugins ?? [],usedDefaults: draft.usedDefaults ?? false,};}@@ -166,6 +170,21 @@ export async function runSetupWizard(continue;}draft.auth = auth;+ step = 7;+ continue;+ }++ if (step === 7) {+ const plugins = await askPlugins({+ allowBack: true,+ backHint: stepBackHint,+ initial: draft.plugins,+ });+ if (isPromptBack(plugins)) {+ step = 6;+ continue;+ }+ draft.plugins = plugins;return true;}}diff --git a/tui/src/lib/plugins.ts b/tui/src/lib/plugins.tsnew file mode 100644index 0000000..c15b3fb--- /dev/null+++ b/tui/src/lib/plugins.ts@@ -0,0 +1,163 @@+import { access, cp } from "node:fs/promises";+import path from "node:path";+import { runInherit, runQuiet } from "./exec.js";+import { sourcePath, venvBin } from "./paths.js";+import type { PluginSource } from "../types.js";++export interface PluginSearchResult {+ name: string;+ version: string;+ description: string;+ source: PluginSource;+ path?: string;+}++interface LocalPluginManifest {+ name: string;+ version: string;+ path: string;+ description: string;+}++function pluginScript(script: string): string[] {+ return ["-c", script];+}++async function runPluginJson<T>(script: string): Promise<T> {+ const result = await runQuiet(venvBin("python"), pluginScript(script), {+ cwd: sourcePath(),+ });+ if (!result.ok) {+ const details = result.stderr.trim() || result.stdout.trim() || "unknown error";+ throw new Error(details);+ }+ const text = result.stdout.trim();+ if (!text) {+ throw new Error("Plugin command returned empty output");+ }+ return JSON.parse(text) as T;+}++export async function listInstalledPlugins(): Promise<PluginSearchResult[]> {+ const script = [+ "import json",+ "from src.core.plugins.manager import PluginManager",+ "manager = PluginManager(plugins_dir=__import__('pathlib').Path('plugins'), registry_url=None)",+ "plugins = manager.list_installed()",+ "print(json.dumps([{'name': p.name, 'version': p.version, 'description': p.description or ''} for p in plugins]))",+ ].join(";");+ const installed = await runPluginJson<Array<{ name: string; version: string; description: string }>>(script);+ return installed.map((plugin) => ({ ...plugin, source: "local" }));+}++async function listRegistryPlugins(): Promise<PluginSearchResult[]> {+ const script = [+ "import json",+ "from src.core.plugins.manager import PluginManager",+ "registry_url = __import__('os').getenv('PLUGIN_REGISTRY_URL', 'https://registry.brain-api.dev')",+ "manager = PluginManager(plugins_dir=__import__('pathlib').Path('plugins'), registry_url=registry_url)",+ "plugins = manager.list_available()",+ "print(json.dumps([{'name': p.name, 'version': p.version, 'description': p.description or ''} for p in plugins]))",+ ].join(";");+ const available = await runPluginJson<Array<{ name: string; version: string; description: string }>>(script);+ return available.map((plugin) => ({ ...plugin, source: "registry" }));+}++async function listWorkspacePlugins(): Promise<LocalPluginManifest[]> {+ const script = [+ "import json",+ "from pathlib import Path",+ "from src.core.plugins.manifest import MANIFEST_FILENAME, parse_manifest",+ "base = Path.cwd() / 'plugins'",+ "results = []",+ "if base.exists():",+ " for child in sorted(base.iterdir()):",+ " manifest_path = child / MANIFEST_FILENAME",+ " if not manifest_path.exists():",+ " continue",+ " try:",+ " m = parse_manifest(manifest_path)",+ " except Exception:",+ " continue",+ " results.append({'name': m.name, 'version': m.version, 'description': m.description or '', 'path': str(child.resolve())})",+ "print(json.dumps(results))",+ ].join("\n");+ return runPluginJson<LocalPluginManifest[]>(script);+}++export async function searchPlugins(query: string): Promise<PluginSearchResult[]> {+ const normalized = query.trim().toLowerCase();+ if (!normalized) return [];+ const [localInstalled, localWorkspace, registry] = await Promise.all([+ listInstalledPlugins().catch(() => []),+ listWorkspacePlugins().catch(() => []),+ listRegistryPlugins().catch(() => []),+ ]);+ const workspaceCandidates: PluginSearchResult[] = localWorkspace.map((plugin) => ({+ name: plugin.name,+ version: plugin.version,+ description: plugin.description,+ source: "local",+ path: plugin.path,+ }));+ const merged = [...localInstalled, ...workspaceCandidates, ...registry];+ const dedup = new Map<string, PluginSearchResult>();+ for (const candidate of merged) {+ const key = `${candidate.source}:${candidate.name}:${candidate.path ?? ""}`;+ if (!dedup.has(key)) dedup.set(key, candidate);+ }+ return [...dedup.values()].filter((plugin) =>+ plugin.name.toLowerCase().includes(normalized),+ );+}++export async function installRegistryPlugin(name: string, version?: string): Promise<void> {+ const args = ["-m", "src.core.plugins.cli", "install", name];+ if (version && version.trim()) {+ args.push("--version", version.trim());+ }+ const result = await runInherit(venvBin("python"), args, { cwd: sourcePath() });+ if (!result.ok) {+ throw new Error(`Failed to install registry plugin '${name}'`);+ }+}++export async function uninstallPlugin(name: string): Promise<void> {+ const result = await runInherit(+ venvBin("python"),+ ["-m", "src.core.plugins.cli", "uninstall", name],+ { cwd: sourcePath() },+ );+ if (!result.ok) {+ throw new Error(`Failed to uninstall plugin '${name}'`);+ }+}++async function resolveLocalPluginName(pluginPath: string): Promise<string> {+ const quotedPath = JSON.stringify(pluginPath);+ const script = [+ "from pathlib import Path",+ "from src.core.plugins.manifest import MANIFEST_FILENAME, parse_manifest",+ `p = Path(${quotedPath})`,+ "manifest = p / MANIFEST_FILENAME",+ "if not manifest.exists():",+ " raise SystemExit('plugin.yaml not found')",+ "parsed = parse_manifest(manifest)",+ "print(parsed.name)",+ ].join("\n");+ const result = await runQuiet(venvBin("python"), pluginScript(script), { cwd: sourcePath() });+ if (!result.ok) {+ throw new Error(result.stderr.trim() || result.stdout.trim() || "Invalid local plugin");+ }+ const name = result.stdout.trim();+ if (!name) throw new Error("Invalid local plugin manifest");+ return name;+}++export async function installLocalPlugin(pluginPath: string): Promise<string> {+ await access(pluginPath);+ const name = await resolveLocalPluginName(pluginPath);+ const targetPath = path.join(sourcePath(), "plugins", name);+ await cp(pluginPath, targetPath, { recursive: true, force: true });+ return name;+}diff --git a/tui/src/lib/state.ts b/tui/src/lib/state.tsindex fd7e4bf..97f6180 100644--- a/tui/src/lib/state.ts+++ b/tui/src/lib/state.ts@@ -12,6 +12,7 @@ export function defaultState(): InstallState {envWritten: false,containersStarted: false,selectedServices: null,+ installedPlugins: null,servicesRuntime: null,sourcePath: sourcePath(),repoUrl: process.env.BRAINAPI_REPO_URL ?? DEFAULT_REPO_URL,diff --git a/tui/src/lib/sync-source.ts b/tui/src/lib/sync-source.tsindex 778a281..1962b74 100644--- a/tui/src/lib/sync-source.ts+++ b/tui/src/lib/sync-source.ts@@ -7,6 +7,7 @@ import { sourcePath } from "./paths.js";const SYNC_PATHS = ["src/config.py",+ "src/constants","src/core/instances.py","src/lib/llm","src/lib/embeddings",diff --git a/tui/src/lib/write-env.ts b/tui/src/lib/write-env.tsindex 67ce44c..dd72cee 100644--- a/tui/src/lib/write-env.ts+++ b/tui/src/lib/write-env.ts@@ -1,4 +1,6 @@import {+ ANTHROPIC_DEFAULT_LARGE_MODEL,+ ANTHROPIC_DEFAULT_SMALL_MODEL,AZURE_DEFAULT_EMBEDDING_MODEL,AZURE_DEFAULT_LARGE_API_VERSION,AZURE_DEFAULT_LARGE_MODEL,@@ -32,6 +34,7 @@ const AZURE_EMBEDDING_PLACEHOLDER ="https://example.openai.azure.com/openai/deployments/text-embedding-3-large/embeddings?api-version=2023-05-15";const AZURE_KEY_PLACEHOLDER = "azure-key-placeholder";const OPENAI_KEY_PLACEHOLDER = "openai-api-key-placeholder";+const ANTHROPIC_KEY_PLACEHOLDER = "anthropic-api-key-placeholder";function resolveModelsMode(choices: InitChoices): "local" | "remote" {const { llmSmallProvider, llmLargeProvider, embeddingsProvider } = choices.models;@@ -60,6 +63,7 @@ export async function writeEnvFromChoices(choices: InitChoices): Promise<void> {values[ENV_KEYS.celeryWorkerConcurrency] = 4;values[ENV_KEYS.brainpatToken] = choices.auth.brainpatToken;+ values[ENV_KEYS.enabledPlugins] = choices.plugins.map((plugin) => plugin.name).join(",");values["ENV"] = "development";values["CONSOLE_ENABLED"] = "true";@@ -170,6 +174,7 @@ function applyRemoteModelValues(const gcp = choices.models.gcp;const azure = choices.models.azure;const openai = choices.models.openai;+ const anthropic = choices.models.anthropic;const bedrock = choices.models.bedrock;values[ENV_KEYS.llmSmallProvider] = choices.models.llmSmallProvider;values[ENV_KEYS.llmLargeProvider] = choices.models.llmLargeProvider;@@ -217,6 +222,11 @@ function applyRemoteModelValues(} else {values[ENV_KEYS.openaiBaseUrl] = "";}+ values[ENV_KEYS.anthropicApiKey] = anthropic?.apiKey ?? ANTHROPIC_KEY_PLACEHOLDER;+ values[ENV_KEYS.anthropicSmallLlmModel] =+ anthropic?.smallLlmModel ?? ANTHROPIC_DEFAULT_SMALL_MODEL;+ values[ENV_KEYS.anthropicLargeLlmModel] =+ anthropic?.largeLlmModel ?? ANTHROPIC_DEFAULT_LARGE_MODEL;values[ENV_KEYS.bedrockAccessKeyId] = bedrock?.accessKeyId ?? "your-access-key-id";values[ENV_KEYS.bedrockSecretAccessKey] =bedrock?.secretAccessKey ?? "your-secret-access-key";diff --git a/tui/src/types.ts b/tui/src/types.tsindex c797d39..1cf718b 100644--- a/tui/src/types.ts+++ b/tui/src/types.ts@@ -2,10 +2,17 @@ export type GraphDb = "networkx" | "neo4j";export type VectorDb = "postgresql" | "milvus";export type DataDb = "postgresql" | "mongo";export type ModelsMode = "local" | "remote";-export type ModelProvider = "ollama" | "azure" | "openai" | "gcp_vertex" | "amazon_bedrock";+export type ModelProvider =+ | "ollama"+ | "azure"+ | "openai"+ | "anthropic"+ | "gcp_vertex"+ | "amazon_bedrock";export type OcrMode = "docparser" | "docling";export type PipelineMode = "accurate" | "lightweight";export type ServicesRuntime = "docker" | "manual";+export type PluginSource = "local" | "registry";export function isPipelineMode(value: string): value is PipelineMode {return value === "accurate" || value === "lightweight";@@ -62,6 +69,12 @@ export interface BedrockChoices {embeddingModel: string;}+export interface AnthropicChoices {+ apiKey: string;+ smallLlmModel: string;+ largeLlmModel: string;+}+export interface EmbeddingDimensions {nodesDimension: number;tripletsDimension: number;@@ -80,6 +93,7 @@ export interface ModelsChoices {gcp?: GcpChoices;azure?: AzureChoices;openai?: OpenAIChoices;+ anthropic?: AnthropicChoices;bedrock?: BedrockChoices;}@@ -134,12 +148,20 @@ export interface PipelineChoices {ocrMode: OcrMode;}+export interface PluginChoice {+ name: string;+ source: PluginSource;+ version?: string;+ path?: string;+}+export interface InitChoices {dbs: DbChoices;models: ModelsChoices;pipeline: PipelineChoices;connections: Connections;auth: AuthChoices;+ plugins: PluginChoice[];servicesRuntime: ServicesRuntime;usedDefaults: boolean;}@@ -151,6 +173,7 @@ export interface InstallState {envWritten: boolean;containersStarted: boolean;selectedServices: string[] | null;+ installedPlugins: string[] | null;servicesRuntime: ServicesRuntime | null;sourcePath: string;repoUrl: string;diff --git a/uv.lock b/uv.lockindex ccff757..81419ec 100644--- a/uv.lock+++ b/uv.lock@@ -63,6 +63,24 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643 },]+[[package]]+name = "anthropic"+version = "0.57.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "distro" },+ { name = "httpx" },+ { name = "jiter" },+ { name = "pydantic" },+ { name = "sniffio" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/d7/75/6261a1a8d92aed47e27d2fcfb3a411af73b1435e6ae1186da02b760565d0/anthropic-0.57.1.tar.gz", hash = "sha256:7815dd92245a70d21f65f356f33fc80c5072eada87fb49437767ea2918b2c4b0", size = 423775 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e5/cf/ca0ba77805aec6171629a8b665c7dc224dab374539c3d27005b5d8c100a0/anthropic-0.57.1-py3-none-any.whl", hash = "sha256:33afc1f395af207d07ff1bffc0a3d1caac53c371793792569c5d2f09283ea306", size = 292779 },+]+[[package]]name = "antlr4-python3-runtime"version = "4.9.3"@@ -170,6 +188,34 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/0a/de/acae8e9f9a1f4bb393d41c8265898b0f29772e38eac14e9f69d191e2c006/blis-1.3.3-cp314-cp314-win_amd64.whl", hash = "sha256:9e5fdf4211b1972400f8ff6dafe87cb689c5d84f046b4a76b207c0bd2270faaf", size = 6324695 },]+[[package]]+name = "boto3"+version = "1.43.18"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "botocore" },+ { name = "jmespath" },+ { name = "s3transfer" },+]+sdist = { url = "https://files.pythonhosted.org/packages/22/37/2ae45d06423182b4561c03bc33494fafa21a0d1e847f0554f590e3cbbc62/boto3-1.43.18.tar.gz", hash = "sha256:33138883e984eb1937d1553da699182c8ad2099138091e885b65c9accbccea16", size = 113154 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a7/75/fcb2c10d516496536c50e397248de42a673d8ea8137caf5b578a72b11293/boto3-1.43.18-py3-none-any.whl", hash = "sha256:7b62ce5c0a51428d692aa4f2adc9dc2a4a4c2989bf65a0a12834eeffa99b0b84", size = 140538 },+]++[[package]]+name = "botocore"+version = "1.43.18"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "jmespath" },+ { name = "python-dateutil" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/01/6d/436d69ec484ffc43635b38d7fb7d717d38824671f10e12e77924019ca929/botocore-1.43.18.tar.gz", hash = "sha256:dc8c105351b49688c667065cd5a45fc5b9db982657cefc9e3fbfb9417a55c7df", size = 15424886 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/21/5a/35c92c0af1514581031fe66c398b622176b3c928a6d5cf8133c7207e3bd7/botocore-1.43.18-py3-none-any.whl", hash = "sha256:e2610fce16df9f89deab5f3c163430a814e6804034eb95bef8957c8db60b7dbc", size = 15106258 },+]+[[package]]name = "bottleneck"version = "1.6.0"@@ -225,17 +271,18 @@ wheels = [[[package]]name = "brainapi2"-version = "2.9.1.dev0"+version = "2.13.1.dev0"source = { editable = "." }dependencies = [- { name = "accelerate" },+ { name = "anthropic" },+ { name = "boto3" },{ name = "celery" },{ name = "cpp-chunker" },- { name = "docling" },{ name = "fastapi" },{ name = "google-genai" },{ name = "kombu" },{ name = "langchain" },+ { name = "langchain-aws" },{ name = "langchain-core" },{ name = "langchain-google-vertexai", version = "3.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" },{ name = "langchain-google-vertexai", version = "3.2.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" },@@ -244,8 +291,11 @@ dependencies = [{ name = "levenshtein" },{ name = "mcp" },{ name = "neo4j" },+ { name = "networkx" },{ name = "numpy" },{ name = "openai" },+ { name = "pgvector" },+ { name = "psycopg2-binary" },{ name = "pylint" },{ name = "pymilvus" },{ name = "pymongo" },@@ -259,18 +309,33 @@ dependencies = [{ name = "tenacity" },{ name = "typer" },{ name = "uvicorn" },+ { name = "watchfiles" },+]++[package.optional-dependencies]+docling-ocr = [+ { name = "accelerate" },+ { name = "docling" },+]+postgresql-backend = [+ { name = "networkx" },+ { name = "pgvector" },+ { name = "psycopg2-binary" },][package.metadata]requires-dist = [- { name = "accelerate", specifier = ">=1.0.0,<2.0.0" },+ { name = "accelerate", marker = "extra == 'docling-ocr'", specifier = ">=1.0.0,<2.0.0" },+ { name = "anthropic", specifier = ">=0.57.1,<0.58.0" },+ { name = "boto3", specifier = ">=1.40.19,<2.0.0" },{ name = "celery", specifier = ">=5.5.3,<6.0.0" },{ name = "cpp-chunker", specifier = ">=0.1.4,<0.2.0" },- { name = "docling", specifier = ">=2.0.0,<3.0.0" },+ { name = "docling", marker = "extra == 'docling-ocr'", specifier = ">=2.0.0,<3.0.0" },{ name = "fastapi", specifier = ">=0.119.0,<0.120.0" },{ name = "google-genai", specifier = ">=1.46.0,<2.0.0" },{ name = "kombu", extras = ["rabbitmq"], specifier = ">=5.3.0,<6.0.0" },{ name = "langchain", specifier = ">=1.0.0,<2.0.0" },+ { name = "langchain-aws", specifier = ">=1.0.0,<2.0.0" },{ name = "langchain-core", specifier = ">=1.0.0,<2.0.0" },{ name = "langchain-google-vertexai", specifier = ">=3.0.1,<4.0.0" },{ name = "langchain-openai", specifier = ">=1.0.0,<2.0.0" },@@ -278,8 +343,14 @@ requires-dist = [{ name = "levenshtein", specifier = ">=0.27.1,<0.28.0" },{ name = "mcp", specifier = ">=1.26.0,<2.0.0" },{ name = "neo4j", specifier = ">=6.0.2,<7.0.0" },+ { name = "networkx", specifier = ">=3.0,<4.0.0" },+ { name = "networkx", marker = "extra == 'postgresql-backend'", specifier = ">=3.0,<4.0.0" },{ name = "numpy", specifier = ">=1.26.0,<2.0.0" },{ name = "openai", specifier = ">=2.5.0,<3.0.0" },+ { name = "pgvector", specifier = ">=0.3.0,<1.0.0" },+ { name = "pgvector", marker = "extra == 'postgresql-backend'", specifier = ">=0.3.0,<1.0.0" },+ { name = "psycopg2-binary", specifier = ">=2.9.6,<3.0.0" },+ { name = "psycopg2-binary", marker = "extra == 'postgresql-backend'", specifier = ">=2.9.6,<3.0.0" },{ name = "pylint", specifier = ">=4.0.1,<5.0.0" },{ name = "pymilvus", specifier = ">=2.6.2,<3.0.0" },{ name = "pymongo", specifier = ">=4.15.3,<5.0.0" },@@ -293,6 +364,7 @@ requires-dist = [{ name = "tenacity", specifier = ">=8.2.3,<10.0.0" },{ name = "typer", specifier = ">=0.12.0,<0.15.0" },{ name = "uvicorn", specifier = ">=0.38.0,<0.39.0" },+ { name = "watchfiles", specifier = ">=1.2.0,<2.0.0" },][[package]]@@ -653,7 +725,7 @@ name = "cuda-bindings"version = "12.9.4"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "cuda-pathfinder" },+ { name = "cuda-pathfinder", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },]wheels = [{ url = "https://files.pythonhosted.org/packages/a9/2b/ebcbb60aa6dba830474cd360c42e10282f7a343c0a1f58d24fbd3b7c2d77/cuda_bindings-12.9.4-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6a429dc6c13148ff1e27c44f40a3dd23203823e637b87fd0854205195988306", size = 11840604 },@@ -1494,6 +1566,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/67/8a/a342b2f0251f3dac4ca17618265d93bf244a2a4d089126e81e4c1056ac50/jiter-0.13.0-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7bb00b6d26db67a05fe3e12c76edc75f32077fb51deed13822dc648fa373bc19", size = 343768 },]+[[package]]+name = "jmespath"+version = "1.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d3/59/322338183ecda247fb5d1763a6cbe46eff7222eaeebafd9fa65d4bf5cb11/jmespath-1.1.0.tar.gz", hash = "sha256:472c87d80f36026ae83c6ddd0f1d05d4e510134ed462851fd5f754c8c3cbb88d", size = 27377 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/14/2f/967ba146e6d58cf6a652da73885f52fc68001525b4197effc174321d70b4/jmespath-1.1.0-py3-none-any.whl", hash = "sha256:a5663118de4908c91729bea0acadca56526eb2698e83de10cd116ae0f4e97c64", size = 20419 },+]+[[package]]name = "joblib"version = "1.5.3"@@ -1601,12 +1682,28 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/7c/06/c3394327f815fade875724c0f6cff529777c96a1e17fea066deb997f8cf5/langchain-1.2.10-py3-none-any.whl", hash = "sha256:e07a377204451fffaed88276b8193e894893b1003e25c5bca6539288ccca3698", size = 111738 },]+[[package]]+name = "langchain-aws"+version = "1.5.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "boto3" },+ { name = "langchain-core" },+ { name = "numpy" },+ { name = "pydantic" },+]+sdist = { url = "https://files.pythonhosted.org/packages/fb/e4/9a3d8914b121d24a30fd1017910eeeebb9a720b6afe5dfb82018684cd889/langchain_aws-1.5.0.tar.gz", hash = "sha256:b5e2b0a34704837f911182774ce1b7c709fbd2dbdea1e9ef7ee7e00b247084f0", size = 515712 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4e/08/f10ae62cbb6bcdd2b62e5a697470351eef1e33bd4a40b7e2e03230582ff0/langchain_aws-1.5.0-py3-none-any.whl", hash = "sha256:c15177686393d0e0f5e86333ae9fb7980119220878590dbd5845efe020fe1c72", size = 202704 },+]+[[package]]name = "langchain-core"-version = "1.2.17"+version = "1.4.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "jsonpatch" },+ { name = "langchain-protocol" },{ name = "langsmith" },{ name = "packaging" },{ name = "pydantic" },@@ -1615,9 +1712,9 @@ dependencies = [{ name = "typing-extensions" },{ name = "uuid-utils" },]-sdist = { url = "https://files.pythonhosted.org/packages/1d/93/36226f593df52b871fc24d494c274f3a6b2ac76763a2806e7d35611634a1/langchain_core-1.2.17.tar.gz", hash = "sha256:54aa267f3311e347fb2e50951fe08e53761cebfb999ab80e6748d70525bbe872", size = 836130 }+sdist = { url = "https://files.pythonhosted.org/packages/59/de/679a53472c25860837e32c0442c962fa86e95317a36460e2c9d5c91b17c2/langchain_core-1.4.0.tar.gz", hash = "sha256:1dc341eed802ed9c117c0df3923c991e5e9e226571e5725c194eeb5bd93d1a7f", size = 920260 }wheels = [- { url = "https://files.pythonhosted.org/packages/be/90/073f33ab383a62908eca7ea699586dfea280e77182176e33199c80ddf22a/langchain_core-1.2.17-py3-none-any.whl", hash = "sha256:bf6bd6ce503874e9c2da1669a69383e967c3de1ea808921d19a9a6bff1a9fbbe", size = 502727 },+ { url = "https://files.pythonhosted.org/packages/0f/1a/86c38c27b81913a1c6c12448cab55defb5a1097c7dc9a4cea83f55477a2d/langchain_core-1.4.0-py3-none-any.whl", hash = "sha256:23cbbdb46e38ddd1dd5247e6167e96013eae74bea4c5949c550809970a9e565c", size = 548120 },][[package]]@@ -1694,6 +1791,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/72/17/3785cbcdc81c451179247e4176d2697879cb4f45ab2c59d949ca574e072d/langchain_openai-1.1.10-py3-none-any.whl", hash = "sha256:d91b2c09e9fbc70f7af45345d3aa477744962d41c73a029beb46b4f83b824827", size = 87205 },]+[[package]]+name = "langchain-protocol"+version = "0.0.16"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/36/e7/8300ba22d968653051fd06e3117d783872dddf3dcebdd6b1d386836eb43c/langchain_protocol-0.0.16.tar.gz", hash = "sha256:806c7cdd951b1c4f692fa40fce60821ff0f221d4360e27673ddf2c2b99c2b7ff", size = 5969 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1f/9c/06dfcc88d02a6364e8d864c421ddd3736305cb0a6c853f75c302c80fe17c/langchain_protocol-0.0.16-py3-none-any.whl", hash = "sha256:3658c142c5d0fb3a023a4be442ce4c15c6d626aab6135eb79a76dc64ad19c3c3", size = 7037 },+]+[[package]]name = "langchain-tests"version = "1.1.5"@@ -2390,7 +2499,7 @@ name = "nvidia-cudnn-cu12"version = "9.10.2.21"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "nvidia-cublas-cu12" },+ { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },]wheels = [{ url = "https://files.pythonhosted.org/packages/fa/41/e79269ce215c857c935fd86bcfe91a451a584dfc27f1e068f568b9ad1ab7/nvidia_cudnn_cu12-9.10.2.21-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:c9132cc3f8958447b4910a1720036d9eff5928cc3179b0a51fb6d167c6cc87d8", size = 705026878 },@@ -2402,7 +2511,7 @@ name = "nvidia-cufft-cu12"version = "11.3.3.83"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "nvidia-nvjitlink-cu12" },+ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },]wheels = [{ url = "https://files.pythonhosted.org/packages/60/bc/7771846d3a0272026c416fbb7e5f4c1f146d6d80704534d0b187dd6f4800/nvidia_cufft_cu12-11.3.3.83-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:848ef7224d6305cdb2a4df928759dca7b1201874787083b6e7550dd6765ce69a", size = 193109211 },@@ -2432,9 +2541,9 @@ name = "nvidia-cusolver-cu12"version = "11.7.3.90"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "nvidia-cublas-cu12" },- { name = "nvidia-cusparse-cu12" },- { name = "nvidia-nvjitlink-cu12" },+ { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },+ { name = "nvidia-cusparse-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },+ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },]wheels = [{ url = "https://files.pythonhosted.org/packages/c8/32/f7cd6ce8a7690544d084ea21c26e910a97e077c9b7f07bf5de623ee19981/nvidia_cusolver_cu12-11.7.3.90-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:db9ed69dbef9715071232caa9b69c52ac7de3a95773c2db65bdba85916e4e5c0", size = 267229841 },@@ -2446,7 +2555,7 @@ name = "nvidia-cusparse-cu12"version = "12.5.8.93"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "nvidia-nvjitlink-cu12" },+ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')" },]wheels = [{ url = "https://files.pythonhosted.org/packages/bc/f7/cd777c4109681367721b00a106f491e0d0d15cfa1fd59672ce580ce42a97/nvidia_cusparse_cu12-12.5.8.93-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:9b6c161cb130be1a07a27ea6923df8141f3c295852f4b260c65f18f3e0a091dc", size = 288117129 },@@ -2503,9 +2612,9 @@ name = "ocrmac"version = "1.0.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "click" },- { name = "pillow" },- { name = "pyobjc-framework-vision" },+ { name = "click", marker = "sys_platform == 'darwin'" },+ { name = "pillow", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-framework-vision", marker = "sys_platform == 'darwin'" },]sdist = { url = "https://files.pythonhosted.org/packages/5e/07/3e15ab404f75875c5e48c47163300eb90b7409044d8711fc3aaf52503f2e/ocrmac-1.0.1.tar.gz", hash = "sha256:507fe5e4cbd67b2d03f6729a52bbc11f9d0b58241134eb958a5daafd4b9d93d9", size = 1454317 }wheels = [@@ -2752,6 +2861,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/70/44/5191d2e4026f86a2a109053e194d3ba7a31a2d10a9c2348368c63ed4e85a/pandas-2.3.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:3869faf4bd07b3b66a9f462417d0ca3a9df29a9f6abd5d0d0dbab15dac7abe87", size = 13202175 },]+[[package]]+name = "pgvector"+version = "0.4.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy" },+]+sdist = { url = "https://files.pythonhosted.org/packages/25/6c/6d8b4b03b958c02fa8687ec6063c49d952a189f8c91ebbe51e877dfab8f7/pgvector-0.4.2.tar.gz", hash = "sha256:322cac0c1dc5d41c9ecf782bd9991b7966685dee3a00bc873631391ed949513a", size = 31354 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/26/6cee8a1ce8c43625ec561aff19df07f9776b7525d9002c86bceb3e0ac970/pgvector-0.4.2-py3-none-any.whl", hash = "sha256:549d45f7a18593783d5eec609ea1684a724ba8405c4cb182a0b2b08aeff04e08", size = 27441 },+]+[[package]]name = "pillow"version = "12.1.1"@@ -2989,6 +3110,58 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/8c/c7/7bb2e321574b10df20cbde462a94e2b71d05f9bbda251ef27d104668306a/psutil-7.2.2-cp37-abi3-win_arm64.whl", hash = "sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee", size = 134617 },]+[[package]]+name = "psycopg2-binary"+version = "2.9.12"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2a/60/a3624f79acea344c16fbef3a94d28b89a8042ddfb8f3e4ca83f538671409/psycopg2_binary-2.9.12.tar.gz", hash = "sha256:5ac9444edc768c02a6b6a591f070b8aae28ff3a99be57560ac996001580f294c", size = 379686 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/19/d4ce60954f3bb9d8e3bc5e5c4d1f2487de2d3851bf2391d54954c9df12a6/psycopg2_binary-2.9.12-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5c8ce6c61bd1b1f6b9c24ee32211599f6166af2c55abb19456090a21fd16554b", size = 3712338 },+ { url = "https://files.pythonhosted.org/packages/53/71/c85409ee0d78890f0660eff262e815e7dd2bb741a17611d82e9e8cd9dc5e/psycopg2_binary-2.9.12-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b4a9eaa6e7f4ff91bec10aa3fb296878e75187bced5cc4bafe17dc40915e1326", size = 3822407 },+ { url = "https://files.pythonhosted.org/packages/3c/ed/60486c2c7f0d4d1ede2bfb1ed27e2498477ce646bc7f6b2759906303117e/psycopg2_binary-2.9.12-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:c6528cefc8e50fcc6f4a107e27a672058b36cc5736d665476aeb413ba88dbb06", size = 4578425 },+ { url = "https://files.pythonhosted.org/packages/0b/b9/656cb03fad9f4f49f2145c334b1126ee75189929ca4e6187d485a2d59951/psycopg2_binary-2.9.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e4e184b1fb6072bf05388aa41c697e1b2d01b3473f107e7ec44f186a32cfd0b8", size = 4273709 },+ { url = "https://files.pythonhosted.org/packages/99/66/08cf0da0e25cc6fb142c89be45fc8418792858f0c4cbff5e24530ff02cd6/psycopg2_binary-2.9.12-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4766ab678563054d3f1d064a4db19cc4b5f9e3a8d9018592a8285cf200c248f3", size = 5893779 },+ { url = "https://files.pythonhosted.org/packages/17/d7/eecd9ce8e146d3721115d82d3836efdbb712187e4590325df549989d18f4/psycopg2_binary-2.9.12-cp311-cp311-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5a0253224780c978746cb9be55a946bcdaf40fe3519c0f622924cdabdafe2c39", size = 4109308 },+ { url = "https://files.pythonhosted.org/packages/b6/2e/b1dc289b362cc8d45697b57eefbd673186f49a4ea0906928988e3affcc98/psycopg2_binary-2.9.12-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0dc9228d47c46bda253d2ecd6bb93b56a9f2d7ad33b684a1fa3622bf74ffe30c", size = 3654405 },+ { url = "https://files.pythonhosted.org/packages/eb/e4/4c4aea6473214dbdbd0fbba11aa4691e76dc01722c55724c5951719865ff/psycopg2_binary-2.9.12-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:f921f3cd87035ef7df233383011d7a53ea1d346224752c1385f1edfd790ceb6a", size = 3299187 },+ { url = "https://files.pythonhosted.org/packages/ba/5d/b03b99986446a4f57b170ed9a2579fb7ff9783ca0fa5226b19db99737fee/psycopg2_binary-2.9.12-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:3d999bd982a723113c1a45b55a7a6a90d64d0ed2278020ed625c490ff7bef96c", size = 3047716 },+ { url = "https://files.pythonhosted.org/packages/14/86/382ee4afbd1d97500c9d2862b20c2fdeddf4b7335e984df3fb4309f64108/psycopg2_binary-2.9.12-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:29d4d134bd0ab46ffb04e94aa3c5fa3ef582e9026609165e2f758ff76fc3a3be", size = 3349237 },+ { url = "https://files.pythonhosted.org/packages/a8/16/9a57c75ba1eda7165c017342f526810d5f5a12647dde749c99ae9a7141d7/psycopg2_binary-2.9.12-cp311-cp311-win_amd64.whl", hash = "sha256:cb4a1dacdd48077150dc762a9e5ddbf32c256d66cb46f80839391aa458774936", size = 2757036 },+ { url = "https://files.pythonhosted.org/packages/e2/9f/ef4ef3c8e15083df90ca35265cfd1a081a2f0cc07bb229c6314c6af817f4/psycopg2_binary-2.9.12-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:5cdc05117180c5fa9c40eea8ea559ce64d73824c39d928b7da9fb5f6a9392433", size = 3712459 },+ { url = "https://files.pythonhosted.org/packages/b5/01/3dd14e46ba48c1e1a6ec58ee599fa1b5efa00c246d5046cd903d0eeb1af1/psycopg2_binary-2.9.12-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d3227a3bc228c10d21011a99245edca923e4e8bf461857e869a507d9a41fe9f6", size = 3822936 },+ { url = "https://files.pythonhosted.org/packages/a6/f7/0640e4901119d8a9f7a1784b927f494e2198e213ceb593753d1f2c8b1b30/psycopg2_binary-2.9.12-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:995ce929eede89db6254b50827e2b7fd61e50d11f0b116b29fffe4a2e53c4580", size = 4578676 },+ { url = "https://files.pythonhosted.org/packages/b0/55/44df3965b5f297c50cc0b1b594a31c67d6127a9d133045b8a66611b14dfb/psycopg2_binary-2.9.12-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9fe06d93e72f1c048e731a2e3e7854a5bfaa58fc736068df90b352cefe66f03f", size = 4274917 },+ { url = "https://files.pythonhosted.org/packages/b0/4b/74535248b1eac0c9336862e8617c765ac94dac76f9e25d7c4a79588c8907/psycopg2_binary-2.9.12-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40e7b28b63aaf737cb3a1edc3a9bbc9a9f4ad3dcb7152e8c1130e4050eddcb7d", size = 5894843 },+ { url = "https://files.pythonhosted.org/packages/f2/ba/f1bf8d2ae71868ad800b661099086ee52bc0f8d9f05be1acd8ebb06757cc/psycopg2_binary-2.9.12-cp312-cp312-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:89d19a9f7899e8eb0656a2b3a08e0da04c720a06db6e0033eab5928aabe60fa9", size = 4110556 },+ { url = "https://files.pythonhosted.org/packages/45/46/c15706c338403b7c420bcc0c2905aad116cc064545686d8bf85f1999ea00/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:612b965daee295ae2da8f8218ce1d274645dc76ef3f1abf6a0a94fd57eff876d", size = 3655714 },+ { url = "https://files.pythonhosted.org/packages/b3/7c/a2d5dc09b64a4564db242a0fe418fde7d33f6f8259dd2c5b9d7def00fb5a/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:b9a339b79d37c1b45f3235265f07cdeb0cb5ad7acd2ac7720a5920989c17c24e", size = 3301154 },+ { url = "https://files.pythonhosted.org/packages/c0/e8/cc8c9a4ce71461f9ec548d38cadc41dc184b34c73e6455450775a9334ccd/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:3471336e1acfd9c7fe507b8bad5af9317b6a89294f9eb37bd9a030bb7bebcdc6", size = 3048882 },+ { url = "https://files.pythonhosted.org/packages/19/6a/31e2296bc0787c5ab75d3d118e40b239db8151b5192b90b77c72bc9256e9/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7af18183109e23502c8b2ae7f6926c0882766f35b5175a4cd737ad825e4d7a1b", size = 3351298 },+ { url = "https://files.pythonhosted.org/packages/5f/a8/75f4e3e11203b590150abed2cf7794b9c9c9f7eceddae955191138b44dde/psycopg2_binary-2.9.12-cp312-cp312-win_amd64.whl", hash = "sha256:398fcd4db988c7d7d3713e2b8e18939776fd3fb447052daae4f24fa39daede4c", size = 2757230 },+ { url = "https://files.pythonhosted.org/packages/91/bb/4608c96f970f6e0c56572e87027ef4404f709382a3503e9934526d7ba051/psycopg2_binary-2.9.12-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7c729a73c7b1b84de3582f73cdd27d905121dc2c531f3d9a3c32a3011033b965", size = 3712419 },+ { url = "https://files.pythonhosted.org/packages/5e/af/48f76af9d50d61cf390f8cd657b503168b089e2e9298e48465d029fcc713/psycopg2_binary-2.9.12-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4413d0caef93c5cf50b96863df4c2efe8c269bf2267df353225595e7e15e8df7", size = 3822990 },+ { url = "https://files.pythonhosted.org/packages/7a/df/aba0f99397cd811d32e06fc0cc781f1f3ce98bc0e729cb423925085d781a/psycopg2_binary-2.9.12-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4dfcf8e45ebb0c663be34a3442f65e17311f3367089cd4e5e3a3e8e62c978777", size = 4578696 },+ { url = "https://files.pythonhosted.org/packages/95/9c/eaa74021ac4e4d5c2f83d82fc6615a63f4fe6c94dc4e94c3990427053f67/psycopg2_binary-2.9.12-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c41321a14dd74aceb6a9a643b9253a334521babfa763fa873e33d89cfa122fb5", size = 4274982 },+ { url = "https://files.pythonhosted.org/packages/35/ed/c25deff98bd26187ba48b3b250a3ffc3037c46c5b89362534a15d200e0db/psycopg2_binary-2.9.12-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:83946ba43979ebfdc99a3cd0ee775c89f221df026984ba19d46133d8d75d3cd9", size = 5894867 },+ { url = "https://files.pythonhosted.org/packages/9a/81/8d0e21ca77373c6c9589e5c4528f6e8f0c08c62cafc76fb0bddb7a2cee22/psycopg2_binary-2.9.12-cp313-cp313-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:411e85815652d13560fbe731878daa5d92378c4995a22302071890ec3397d019", size = 4110578 },+ { url = "https://files.pythonhosted.org/packages/00/fc/f481e2435bd8f742d0123309174aae4165160ad3ef17c1b99c3622c241d2/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1c8ad4c08e00f7679559eaed7aff1edfffc60c086b976f93972f686384a95e2c", size = 3655816 },+ { url = "https://files.pythonhosted.org/packages/53/79/b9f46466bdbe9f239c96cde8be33c1aace4842f06013b47b730dc9759187/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:00814e40fa23c2b37ef0a1e3c749d89982c73a9cb5046137f0752a22d432e82f", size = 3301307 },+ { url = "https://files.pythonhosted.org/packages/3f/19/7dc003b32fe35024df89b658104f7c8538a8b2dcbde7a4e746ce929742e7/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:98062447aebc20ed20add1f547a364fd0ef8933640d5372ff1873f8deb9b61be", size = 3048968 },+ { url = "https://files.pythonhosted.org/packages/91/58/2dbd7db5c604d45f4950d988506aae672a14126ec22998ced5021cbb76bb/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:66a7685d7e548f10fb4ce32fb01a7b7f4aa702134de92a292c7bd9e0d3dbd290", size = 3351369 },+ { url = "https://files.pythonhosted.org/packages/42/ee/dee8dcaad07f735824de3d6563bc67119fa6c28257b17977a8d624f02fab/psycopg2_binary-2.9.12-cp313-cp313-win_amd64.whl", hash = "sha256:b6937f5fe4e180aeee87de907a2fa982ded6f7f15d7218f78a083e4e1d68f2a0", size = 2757347 },+ { url = "https://files.pythonhosted.org/packages/13/1b/708c0dca874acfad6d65314271859899a79007686f3a1f74e82a2ed4b645/psycopg2_binary-2.9.12-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:6f3b3de8a74ef8db215f22edffb19e32dc6fa41340456de7ec99efdc8a7b3ec2", size = 3712428 },+ { url = "https://files.pythonhosted.org/packages/d6/39/ddbea9d4b4de6aca9431b6ed253f530f8a02d3b8f9bcfd0dbfe2b3de6fe4/psycopg2_binary-2.9.12-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1006fb62f0f0bc5ce256a832356c6262e91be43f5e4eb15b5eaf38079464caf2", size = 3823184 },+ { url = "https://files.pythonhosted.org/packages/bf/a0/bc2fef74b106fa345567122a0659e6d94512ed7dc0131ec44c9e5aba3725/psycopg2_binary-2.9.12-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:840066105706cd2eb29b9a1c2329620056582a4bf3e8169dec5c447042d0869f", size = 4579157 },+ { url = "https://files.pythonhosted.org/packages/57/d7/d4e3b2005d3de607ca4fbb0e8742e248056e52184a6b94ebda3c1c2c329b/psycopg2_binary-2.9.12-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:863f5d12241ebe1c76a72a04c2113b6dc905f90b9cef0e9be0efd994affd9354", size = 4274970 },+ { url = "https://files.pythonhosted.org/packages/2e/42/c9853f8db3967fe08bcde11f53d53b85d351750cae726ce001cb68afa9c1/psycopg2_binary-2.9.12-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a99eaab34a9010f1a086b126de467466620a750634d114d20455f3a824aae033", size = 5895175 },+ { url = "https://files.pythonhosted.org/packages/eb/fd/b82b5601a97630308bef079f545ffec481bbbc795c2ba5ec416a01d03f60/psycopg2_binary-2.9.12-cp314-cp314-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ffdd7dc5463ccd61845ac37b7012d0f35a1548df9febe14f8dd549be4a0bc81e", size = 4110658 },+ { url = "https://files.pythonhosted.org/packages/62/8c/32ca69b0389ef25dd22937bf9e8fbe2ce27aea20b05ded48c4ce4cb42475/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:54a0dfecab1b48731f934e06139dfe11e24219fb6d0ceb32177cf0375f14c7b5", size = 3656251 },+ { url = "https://files.pythonhosted.org/packages/c4/29/96992a2b59e3b9d730fcf9612d0a387305025dc867a9fc490a9e496e074e/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:96937c9c5d891f772430f418a7a8b4691a90c3e6b93cf72b5bd7cad8cbca32a5", size = 3301810 },+ { url = "https://files.pythonhosted.org/packages/56/ad/44b06659949b243ae10112cd3b20a197f9bf3e81d5651379b9eb889bfaad/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:77b348775efd4cdab410ec6609d81ccecd1139c90265fa583a7255c8064bc03d", size = 3048977 },+ { url = "https://files.pythonhosted.org/packages/1d/f2/10a1bcebadb6aa55e280e1f58975c36a7b560ea525184c7aa4064c466633/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:527e6342b3e44c2f0544f6b8e927d60de7f163f5723b8f1dfa7d2a84298738cd", size = 3351466 },+ { url = "https://files.pythonhosted.org/packages/20/be/b732c8418ffa5bcfda002890f5dc4c869fc17db66ff11f53b17cfe44afc0/psycopg2_binary-2.9.12-cp314-cp314-win_amd64.whl", hash = "sha256:f12ae41fcafadb39b2785e64a40f9db05d6de2ac114077457e0e7c597f3af980", size = 2848762 },+]+[[package]]name = "py-cpuinfo"version = "9.0.0"@@ -3395,7 +3568,7 @@ name = "pyobjc-framework-cocoa"version = "12.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core" },+ { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },]sdist = { url = "https://files.pythonhosted.org/packages/02/a3/16ca9a15e77c061a9250afbae2eae26f2e1579eb8ca9462ae2d2c71e1169/pyobjc_framework_cocoa-12.1.tar.gz", hash = "sha256:5556c87db95711b985d5efdaaf01c917ddd41d148b1e52a0c66b1a2e2c5c1640", size = 2772191 }wheels = [@@ -3412,8 +3585,8 @@ name = "pyobjc-framework-coreml"version = "12.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core" },- { name = "pyobjc-framework-cocoa" },+ { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },]sdist = { url = "https://files.pythonhosted.org/packages/30/2d/baa9ea02cbb1c200683cb7273b69b4bee5070e86f2060b77e6a27c2a9d7e/pyobjc_framework_coreml-12.1.tar.gz", hash = "sha256:0d1a4216891a18775c9e0170d908714c18e4f53f9dc79fb0f5263b2aa81609ba", size = 40465 }wheels = [@@ -3430,8 +3603,8 @@ name = "pyobjc-framework-quartz"version = "12.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core" },- { name = "pyobjc-framework-cocoa" },+ { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },]sdist = { url = "https://files.pythonhosted.org/packages/94/18/cc59f3d4355c9456fc945eae7fe8797003c4da99212dd531ad1b0de8a0c6/pyobjc_framework_quartz-12.1.tar.gz", hash = "sha256:27f782f3513ac88ec9b6c82d9767eef95a5cf4175ce88a1e5a65875fee799608", size = 3159099 }wheels = [@@ -3448,10 +3621,10 @@ name = "pyobjc-framework-vision"version = "12.1"source = { registry = "https://pypi.org/simple" }dependencies = [- { name = "pyobjc-core" },- { name = "pyobjc-framework-cocoa" },- { name = "pyobjc-framework-coreml" },- { name = "pyobjc-framework-quartz" },+ { name = "pyobjc-core", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-framework-coreml", marker = "sys_platform == 'darwin'" },+ { name = "pyobjc-framework-quartz", marker = "sys_platform == 'darwin'" },]sdist = { url = "https://files.pythonhosted.org/packages/c2/5a/08bb3e278f870443d226c141af14205ff41c0274da1e053b72b11dfc9fb2/pyobjc_framework_vision-12.1.tar.gz", hash = "sha256:a30959100e85dcede3a786c544e621ad6eb65ff6abf85721f805822b8c5fe9b0", size = 59538 }wheels = [@@ -4130,6 +4303,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/3f/50/0a9e7e7afe7339bd5e36911f0ceb15fed51945836ed803ae5afd661057fd/rtree-1.4.1-py3-none-win_arm64.whl", hash = "sha256:3d46f55729b28138e897ffef32f7ce93ac335cb67f9120125ad3742a220800f0", size = 355253 },]+[[package]]+name = "s3transfer"+version = "0.18.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "botocore" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e0/1f/12417f7f493fc45e1f9fd5d4a9b6c125cf8d2cf3f8ddbdfab3e76406e9d6/s3transfer-0.18.0.tar.gz", hash = "sha256:3760b8b7ec1315da54048b2d626276732bee4300d054d492d4e1d43e20d4ecbd", size = 160560 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2b/58/a58fc997655386daa2e25784e30c288aa3e3819e401f77029ee4899fb55a/s3transfer-0.18.0-py3-none-any.whl", hash = "sha256:239c13b09e65ad0346e1be7348b8a202dcad44ac7ea7c6eb858fc881dce739b6", size = 88572 },+]+[[package]]name = "safetensors"version = "0.7.0"@@ -4817,6 +5002,12 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/0f/8b/4b61d6e13f7108f36910df9ab4b58fd389cc2520d54d81b88660804aad99/torch-2.10.0-2-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:418997cb02d0a0f1497cf6a09f63166f9f5df9f3e16c8a716ab76a72127c714f", size = 79423467 },{ url = "https://files.pythonhosted.org/packages/d3/54/a2ba279afcca44bbd320d4e73675b282fcee3d81400ea1b53934efca6462/torch-2.10.0-2-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:13ec4add8c3faaed8d13e0574f5cd4a323c11655546f91fbe6afa77b57423574", size = 79498202 },{ url = "https://files.pythonhosted.org/packages/ec/23/2c9fe0c9c27f7f6cb865abcea8a4568f29f00acaeadfc6a37f6801f84cb4/torch-2.10.0-2-cp313-none-macosx_11_0_arm64.whl", hash = "sha256:e521c9f030a3774ed770a9c011751fb47c4d12029a3d6522116e48431f2ff89e", size = 79498254 },+ { url = "https://files.pythonhosted.org/packages/36/ab/7b562f1808d3f65414cd80a4f7d4bb00979d9355616c034c171249e1a303/torch-2.10.0-3-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:ac5bdcbb074384c66fa160c15b1ead77839e3fe7ed117d667249afce0acabfac", size = 915518691 },+ { url = "https://files.pythonhosted.org/packages/b3/7a/abada41517ce0011775f0f4eacc79659bc9bc6c361e6bfe6f7052a6b9363/torch-2.10.0-3-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:98c01b8bb5e3240426dcde1446eed6f40c778091c8544767ef1168fc663a05a6", size = 915622781 },+ { url = "https://files.pythonhosted.org/packages/ab/c6/4dfe238342ffdcec5aef1c96c457548762d33c40b45a1ab7033bb26d2ff2/torch-2.10.0-3-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:80b1b5bfe38eb0e9f5ff09f206dcac0a87aadd084230d4a36eea5ec5232c115b", size = 915627275 },+ { url = "https://files.pythonhosted.org/packages/d8/f0/72bf18847f58f877a6a8acf60614b14935e2f156d942483af1ffc081aea0/torch-2.10.0-3-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:46b3574d93a2a8134b3f5475cfb98e2eb46771794c57015f6ad1fb795ec25e49", size = 915523474 },+ { url = "https://files.pythonhosted.org/packages/f4/39/590742415c3030551944edc2ddc273ea1fdfe8ffb2780992e824f1ebee98/torch-2.10.0-3-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:b1d5e2aba4eb7f8e87fbe04f86442887f9167a35f092afe4c237dfcaaef6e328", size = 915632474 },+ { url = "https://files.pythonhosted.org/packages/b6/8e/34949484f764dde5b222b7fe3fede43e4a6f0da9d7f8c370bb617d629ee2/torch-2.10.0-3-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:0228d20b06701c05a8f978357f657817a4a63984b0c90745def81c18aedfa591", size = 915523882 },{ url = "https://files.pythonhosted.org/packages/78/89/f5554b13ebd71e05c0b002f95148033e730d3f7067f67423026cc9c69410/torch-2.10.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:3282d9febd1e4e476630a099692b44fdc214ee9bf8ee5377732d9d9dfe5712e4", size = 145992610 },{ url = "https://files.pythonhosted.org/packages/ae/30/a3a2120621bf9c17779b169fc17e3dc29b230c29d0f8222f499f5e159aa8/torch-2.10.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2f9edd8dbc99f62bc4dfb78af7bf89499bca3d753423ac1b4e06592e467b763", size = 915607863 },{ url = "https://files.pythonhosted.org/packages/6f/3d/c87b33c5f260a2a8ad68da7147e105f05868c281c63d65ed85aa4da98c66/torch-2.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:29b7009dba4b7a1c960260fc8ac85022c784250af43af9fb0ebafc9883782ebd", size = 113723116 },@@ -5193,6 +5384,110 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/06/7c/34330a89da55610daa5f245ddce5aab81244321101614751e7537f125133/wasabi-1.1.3-py3-none-any.whl", hash = "sha256:f76e16e8f7e79f8c4c8be49b4024ac725713ab10cd7f19350ad18a8e3f71728c", size = 27880 },]+[[package]]+name = "watchfiles"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/cd/41/5e1a4bb12aac5f1493fa1bdc11154eca3b258ca4eba65d39c473fe19d8e9/watchfiles-1.2.0.tar.gz", hash = "sha256:c995fba777f1ea992f090f9236e9284cf7a5d1a0130dd5a3d82c598cacd76838", size = 108252 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fc/3d/8024c801df84d1587740d0359e7fdd80afeae3d159011f3d5376dd82f18e/watchfiles-1.2.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:704fd259e332e01f9b9c178f4bce9e49027e5587cc2600eeeaf8e76e1c846201", size = 400242 },+ { url = "https://files.pythonhosted.org/packages/87/5b/f4dfd45323e949984a3a7f9dc31d1cbb049921e7d98253488dda72ccdaa9/watchfiles-1.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6543cf55d170003296d185c0af981f3e1311564907e1f4e08671fc7693a890a5", size = 394562 },+ { url = "https://files.pythonhosted.org/packages/98/d8/19483ef075d601c409bce8bcbb5c0f81a10876fff870400568f08ce484a1/watchfiles-1.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89d8c2394a065ca86f5d2910ff263ae67c127e1376ccc4f9fc35c71db879f80a", size = 456611 },+ { url = "https://files.pythonhosted.org/packages/b1/6a/cc81fbe7ee42f2f22e661a6e12def7807e01b14b2f39e0ff83fd373fd307/watchfiles-1.2.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:772b80df316480d894a0e3165fdd19cf77f5d17f9a787f94029465ad0e3529d1", size = 461379 },+ { url = "https://files.pythonhosted.org/packages/b1/57/7e669002082c0a0f4fb5113bb70125f7110124b846b0a11bc5ae8e90eac1/watchfiles-1.2.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d158cd89df6053823533e06fb1d73c549133bff5f0396170c0e53d9559340717", size = 493556 },+ { url = "https://files.pythonhosted.org/packages/45/7d/f60a2b19807b21fe8281f3a8da4f59eef0d5f96825ac4680ba2d4f2ebf91/watchfiles-1.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d516b3283a758e087841aedb8031549fb41ced08f3db10aa6d2bf32dc042525b", size = 575255 },+ { url = "https://files.pythonhosted.org/packages/bd/49/77f5b5e6efbcd57482f74948ebb1b97e5c0046d6b61475042d830c84b3ff/watchfiles-1.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:53b2290c92e0506d102cd448fbc610d87079553f86caa39d67440856a8b8bba5", size = 467052 },+ { url = "https://files.pythonhosted.org/packages/ee/5a/73e2959af1b97fd5d556f9a8bdba017be23ceeef731869d5eaa0a753d5a3/watchfiles-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a711b51aec4370d0dcda5b6c09463206f133a5759341d7744b953a7b62e1100e", size = 456858 },+ { url = "https://files.pythonhosted.org/packages/50/57/1bc8c27fad7e6c19bddee15d276dbb6ab72480ec01c127afff1673aee417/watchfiles-1.2.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:e2ca07fa7d89195ec0865d3d285666286740bfa83d83e5cee204043a31ecc165", size = 467579 },+ { url = "https://files.pythonhosted.org/packages/09/6c/3c2e44edba3553c5e3c3b8c8a2a6dee6b9e12ae2cf4bd2378bebf9dc3038/watchfiles-1.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e0618518f282c4ebff60f5e5b1247b6d91bb8b9f4476947563a1e74acc66f3c6", size = 633253 },+ { url = "https://files.pythonhosted.org/packages/30/c2/d8c84a882ab39bbefcc4915ab3e91830b7a7e990c5570b0b69075aba3faf/watchfiles-1.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0d191c054d0715c3c95c99df9b8dbf6fd096d8c1e021e8f212e1bd8bc444ccb5", size = 660713 },+ { url = "https://files.pythonhosted.org/packages/a9/07/f97736a5fc605364fe67b25e9fa4a6965dfd4840d50c406ada507e9d735f/watchfiles-1.2.0-cp311-cp311-win32.whl", hash = "sha256:9342472aff9b093c5acd4f6d8f70ae0937964ab56542502bcf5579782da69ae8", size = 277222 },+ { url = "https://files.pythonhosted.org/packages/cf/99/2b04981977fc2608afd60360d928c6aecf6b950292ca221d98f4005f6694/watchfiles-1.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:dbd6c97045dad81227c8d040173da044c1de08de64a5ea8b555da4aee1d5fa22", size = 290274 },+ { url = "https://files.pythonhosted.org/packages/3c/74/f7f58a7075ee9cf612b0cfcddb78b8cd8234f0742d6f0075cf0da2dde1c6/watchfiles-1.2.0-cp311-cp311-win_arm64.whl", hash = "sha256:57a2d9fa4fb4c2ecae57b13dfff2c7ab53e21a2ba674fe9f05506680fcdcc0d7", size = 283460 },+ { url = "https://files.pythonhosted.org/packages/b8/2f/e42c992d2afda3108ea1c02acecc991b9f31d05c14adc2a7cee9ee211fc4/watchfiles-1.2.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:bc13eb17538be00c874699dc0abe4ee2bc8d50bb1166a6b9e175ef3fd7eb8f26", size = 400115 },+ { url = "https://files.pythonhosted.org/packages/5f/8f/6af2ea19065c91d8b0ea3516fdfc8c0d349f407e8e9fbf4e5a17360de8ad/watchfiles-1.2.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d95ddc1eb6914154253d239089900813f6a767e174b8e6a50e7fdacb7e4236c", size = 393659 },+ { url = "https://files.pythonhosted.org/packages/13/01/b32a967c56fb3e3e5be3db52c3d3b87fa4513aa367d8ed1ad96d42952e5f/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f70d8b291ef6e88d19b1f297a6905ddb978888d9272b0d05e6f53309856bcfc", size = 453207 },+ { url = "https://files.pythonhosted.org/packages/04/98/97557a812180338cb1abd32e1cffcc4588f59b5f23e0cb006b2ba95ba64a/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:56d8641cf834c2836922899105bd3ce3d0dfc69291d52edf0b4d0436829b34c0", size = 459273 },+ { url = "https://files.pythonhosted.org/packages/e8/a8/b4b08dcb7653b8087c6586f7ce649505900e866bbcfe40dc9587af02e686/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2581a94056e55d7d0a31a823ea92bf73749c489ca2285bfdc0fbe6b2bb49d50c", size = 489927 },+ { url = "https://files.pythonhosted.org/packages/50/94/3dceea03545d2e5ddfd839f0ddd5e1cecbf1697b5a428d5ba11cef6af95d/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:41bc1199f7523b3f82843c88cbb979180c949caef0342cf90968f178e5d49b01", size = 570476 },+ { url = "https://files.pythonhosted.org/packages/cc/f2/d39a5450c3532092b91f81d274360e613c2371bc874a89c7a1a3c5e8d138/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7571e4464cb6e434958f867f7f730b8ab0b75e3f8e5eac0499168486ab3c33a8", size = 465650 },+ { url = "https://files.pythonhosted.org/packages/22/24/ed72f68cbc1333ca9b9f2200aa048bb6658ae41709bc1caad4310f4bdffd/watchfiles-1.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e53a384f76b631c3ae5334ce6a52f0baa3a911eb94a4eac7f160079868b716d5", size = 456398 },+ { url = "https://files.pythonhosted.org/packages/0d/64/982ef4a4e5bab5b6e5b6becc8cd5e732f6130a78b855f0abec6439a9a135/watchfiles-1.2.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:d20029a60a71a052a24c4db7673bc4de39ab89adbaccbfb5d67987c5d73f424d", size = 465140 },+ { url = "https://files.pythonhosted.org/packages/a0/0c/95282abf4ed680b6096010bcfc30c5fa7a041fc5aa5a2ad17a2cc6c75bba/watchfiles-1.2.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:2cb93af48550faf1cea04c303107c8b75833de7013e57ce27d3b8d21d8d0f58c", size = 630259 },+ { url = "https://files.pythonhosted.org/packages/30/45/607c1de1530c4bdcf2cf1d1ecc2505ddba5d96bd43ba9f2b0e79876f850f/watchfiles-1.2.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2995c176de7692b86a2e4c58d9ec718f753150a979cb4a754e2b4ffa38e70906", size = 659859 },+ { url = "https://files.pythonhosted.org/packages/fa/08/d9e2e0f9e8e6791d33aefc694ad7eefa7f901f63caff84a81ded38692f9c/watchfiles-1.2.0-cp312-cp312-win32.whl", hash = "sha256:7a2cffd17d27d2ecbb310c2b1d8174f222a5495b1a721894afa88ec11e25b898", size = 275480 },+ { url = "https://files.pythonhosted.org/packages/1c/e6/9d42569c0102645cc8cea5d8c7d8a1e9d4ada2cb7f05f75e554b8aa2202a/watchfiles-1.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:f155b3a1b2a5fc89cdc70d47ee5d54e3b75e88efa34982028a35daef9ba00379", size = 288718 },+ { url = "https://files.pythonhosted.org/packages/0a/26/88e0dc6ee3898169d7fa22bb6a69cabf2502d2ee25cb8c876d1262d204f8/watchfiles-1.2.0-cp312-cp312-win_arm64.whl", hash = "sha256:8fa585ede612ee9f9e91b18bebf9ba11b9ae29a4e3a0d0cf6fca3e382133f0d5", size = 281026 },+ { url = "https://files.pythonhosted.org/packages/d1/4d/70a7feced9f87e2ff26dba42667290f41694fc64646c67261fbb8cab5d5c/watchfiles-1.2.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:01ea8d66f0693b9b60a6541c8d10263091ca9a9060d242f3c1f3143f9aad2c98", size = 399730 },+ { url = "https://files.pythonhosted.org/packages/31/3a/0da302f2307aee316922806ebd5726c542cbd787c938271cf14a074c7daf/watchfiles-1.2.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7ba0480b9a74af058f43b337e937a451e109295c420916d68ad24e3dc02f5e44", size = 392842 },+ { url = "https://files.pythonhosted.org/packages/db/ef/d5bdb705c224dbc256aa0c1ec47bf4e61ec52558f2afb44a71a1fe4d7015/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f34e26a19f91f710c08e0183429f0d1d15df734e6bc78c31e77b9ea9c433658", size = 452989 },+ { url = "https://files.pythonhosted.org/packages/71/29/5495f2c1661949ef7a35e4d71111d129cfe7606414a26887a919d0a55406/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b4e77f6a55f858504069abd35d336a637555c09bca453dde1ee1e5ada8a6a1fb", size = 458978 },+ { url = "https://files.pythonhosted.org/packages/d5/8c/7f9c07c433811c2fffd93e13fdfb7135de9aab5f2ae41be08960fa0047dc/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0cb4d80e212f116474a545c21c912b445f16bb0cef9e6a73a498164223e14e2f", size = 490248 },+ { url = "https://files.pythonhosted.org/packages/3c/11/d93632febc52fbc21be90231bb7c17fd5387f46c9076fd40a5f9c2ae6910/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b974946a10af379d425e2eef5b62f5c6ebeaccf91d45eaad6f5b27ecd4f91aa0", size = 571847 },+ { url = "https://files.pythonhosted.org/packages/55/b4/383173e73aabb07ad1d9c7aa859d95437ac46a6d6a1e11005facda0c9d19/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:86bc13c25a8d1fcd70b51d0ce7c9b65e90de5666fcbfd3e34957cc73ee19aeb5", size = 465974 },+ { url = "https://files.pythonhosted.org/packages/a7/6c/89b1a230a78f57c52dd8893adb1f92f94411721b6ec12596c56d98c74356/watchfiles-1.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca148d73dea36c9763aaa351e4d7a51780ec1584217c45276f4fe8239c768b71", size = 454782 },+ { url = "https://files.pythonhosted.org/packages/24/62/1732118367cfff0a9fce3bf62ff4bfded09ef5df21d9d446b858b3f70a96/watchfiles-1.2.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:c525543d91961c6955b2636b308569e84a1d1c5f5f2932041ab9ef46422f43e3", size = 465182 },+ { url = "https://files.pythonhosted.org/packages/28/96/716f7e5f51339bf22963f3345f9f27d7f3b30e2eadc597e257c881dd3c53/watchfiles-1.2.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:a204794696ffb8f9b10fba6f7cb5216d42f3b2b71860ccac6b6e42f5f10973b0", size = 629841 },+ { url = "https://files.pythonhosted.org/packages/4c/fe/c40783950fd771ccf66ab3ec2722d188a9af1c7f96c6e811f36e40c6e03f/watchfiles-1.2.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:10d86db20695afe7997ac9e1717637d6714a8d0220458c33f3d2061f54cec427", size = 658028 },+ { url = "https://files.pythonhosted.org/packages/71/72/4508db1856d1d87fcbb3b63f4839bab1b5682cb0e8d224d122263c09654a/watchfiles-1.2.0-cp313-cp313-win32.whl", hash = "sha256:eb283ee99e21ad6443c8cdb06ac5b34b1308c329cbdf03fa02b445363714c799", size = 275183 },+ { url = "https://files.pythonhosted.org/packages/f9/36/14b76ca57652e5cc5fd1c11f32a261292c08a0d19a00351013c2549cbfb2/watchfiles-1.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:a0f27f01bee51861392bb6b7c4fdb290b27d1eb194e9e28788d68102a0e898d9", size = 288059 },+ { url = "https://files.pythonhosted.org/packages/1b/8d/0a85e395398d8d20fadfe5c5d32c726eee17a519e78fb356f2cf7531bffe/watchfiles-1.2.0-cp313-cp313-win_arm64.whl", hash = "sha256:3651aa7058595e9cfb75d35dd5ada2bf9f48a5b8a0f3562821d3e210c507e077", size = 280186 },+ { url = "https://files.pythonhosted.org/packages/37/68/36db056f1fdcc5f07302f56e631774d6835bcd6fa3ace402304621d5f9e5/watchfiles-1.2.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:faea288b6f0ab1902ef08f4ca6de005dccf856c4e0c4f21b8c5fce02d90a1b08", size = 399031 },+ { url = "https://files.pythonhosted.org/packages/c1/64/01a9d6f66a82a5c101ce939274106cc72759d62427e153f01edd2b9f87c2/watchfiles-1.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:01859b11fd9fbca670f4d5da00fbac282cfea9bd67a2125d8b2833a3b5617ea9", size = 391205 },+ { url = "https://files.pythonhosted.org/packages/84/2c/0a44fe058cb4bb7b8ede6b6670698bbb7c0400740e378d00022189b7b31d/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fff610d7bb2256a317bb1e96f0d7862c7aa8076733ee5df0fd41bbe76a24a4f4", size = 451892 },+ { url = "https://files.pythonhosted.org/packages/67/a1/351e0d56cd35e6488b5c8b4fb11a809a5bc923e8fe8fed9faf8920be0c89/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b141a4891c995a039cd89e9a49e62df1dc8a559a5d1a6e4c7106d16c12777a55", size = 458867 },+ { url = "https://files.pythonhosted.org/packages/d5/7d/9d09605187f1b838998624049fcf8bf47b73c1a3b76901fcac1782f62277/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f22943b7770483f6ea0721c6b11d022947a98eb0acae14694de034f4d0d38925", size = 490217 },+ { url = "https://files.pythonhosted.org/packages/60/5d/a17a16eccb182f04188cd308ec24b1a71a9b5c4e7098269cf35d9fa56d02/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1bc6195825b7dcd217968bb1f801a60fd4c16e8eeab5bedc7fe917d7d5995ab4", size = 571458 },+ { url = "https://files.pythonhosted.org/packages/d3/3d/4dd457062083ab1938e5dfd45032eb425cee2ac817287ca8ff4356183e5d/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d4a4b147f5dca2a5d325a06a832fb43f345751adfbc63204aec30e0d9ca965a2", size = 464707 },+ { url = "https://files.pythonhosted.org/packages/c6/71/ea8c57b128f5383de74d0c7d2d9c57ad7c9a65a930c451bd25d524b295b7/watchfiles-1.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4543579a9bdb0c9560039b4ffddbdb39545707659fbc430ce4c10f3f68d557f9", size = 454663 },+ { url = "https://files.pythonhosted.org/packages/53/fd/2e812bf938406d7db351f0703ddd3fc6c061cf30d96153a77bc79a943a44/watchfiles-1.2.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:20aa0e708b920bde876a4aa82dc7dd6ebea228a63a67cda6632c2fc87b787efa", size = 463537 },+ { url = "https://files.pythonhosted.org/packages/86/56/d17a7f1dd1bc3035f1072694a551301272f1739c2d8e319c927cb9e29b38/watchfiles-1.2.0-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:d413349d565dab74297f2a63e84a097936be69bf8f3b3801f27f380e32040f44", size = 629194 },+ { url = "https://files.pythonhosted.org/packages/be/06/f1ff66bf5cae50aa4062779a0ecd0bbaf15e466195719074078947d9a17d/watchfiles-1.2.0-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:f28b2725eb8cce327b9b3ab02415c853011dc55c95832fe90de6bc56f5315f72", size = 656194 },+ { url = "https://files.pythonhosted.org/packages/e7/54/a9c7ea9a82a4ac65e7004c0a03920b5cdd2f9c3b678757d9cd425aa51d53/watchfiles-1.2.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:b8c8358484d5fa12ef34f05b7f4168eaf1932f408725ff6d023c33ec17bd79d4", size = 400205 },+ { url = "https://files.pythonhosted.org/packages/aa/5d/c9ab3534374a4a67450696905d6ef16a04405448b8dc52bd752ae50423d4/watchfiles-1.2.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9f04b092229ad2c50126dd3c922c8822e51e605993764a33058d4a791ab42281", size = 392508 },+ { url = "https://files.pythonhosted.org/packages/26/ca/1ad30103535cf0cecd7b993e8d50edc5351b1820e38f2d22e3df58962feb/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a7ce236284f002a156f70add88efe5c70879cccbb658be0822c54b1306fc09d", size = 452448 },+ { url = "https://files.pythonhosted.org/packages/37/a1/ceee2cdf2afbd715fa07758d39c9859513eae411b23196f7fd039e5feedd/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b9909cc2b48468b575eefa944919e1fe8a36c5849d5c7c168f80a8c1db69398e", size = 459605 },+ { url = "https://files.pythonhosted.org/packages/e8/f6/421e30fd1cb3907a84ed92ab3f1983e37ba2dca015e9a894a048418417a2/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a37faaed405c67e28e6be45a1fa4f206ef5a2860f27c237db9fa30704c38242", size = 490757 },+ { url = "https://files.pythonhosted.org/packages/41/b0/55ed1b97ed08be7bba6f9a541cac15f2a858e1d74d2b07b6da70a82aab00/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9649193aa27bd9ff2e80ff29bfaa93085496c7a3a377592823cc58b77ee88add", size = 568672 },+ { url = "https://files.pythonhosted.org/packages/d1/cf/d8ae8a80dd7bafab395ea7681c10237311bbf34d37704a8c744e7cf31fc7/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e4ff8e37f99cf1da89e255e07c9c4b37c214038c4283707bdec308cb1b0ea1f", size = 464197 },+ { url = "https://files.pythonhosted.org/packages/7c/8a/3076c496ca8dafe0e8cd03fcebdfc47be4b1174b4e5b24ff6e396e6b3af2/watchfiles-1.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:054dc20fd2e3132b4c3883b4a00d72fd6e1f56fdaf89fccd12e8057d74cd74d7", size = 453181 },+ { url = "https://files.pythonhosted.org/packages/e5/10/9745e17c98e7b8a86454df0a3c7b5686bd650383f1e9f26e4ebcbd6cc0c0/watchfiles-1.2.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:e140ed30ebde76796b686e67c182cff10ea2fbab186fafd1560f74bb5a473a6e", size = 465109 },+ { url = "https://files.pythonhosted.org/packages/8f/95/8ef4a95481d3e0cb52d62a06fa6e972e81424be2d9698b91a2fecca9904c/watchfiles-1.2.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:bb7e52ecf68ba46d22df23467b87cffeb2146908aa523ebfe803019618cfda06", size = 630653 },+ { url = "https://files.pythonhosted.org/packages/fd/e4/3b3bf36b0f829b50c6ebcb8d031583863c59f923d6a6af3d485e470d0fac/watchfiles-1.2.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:23282a321c8baf9b3a3c4afff673f9fe65eb7fdc2338d765ccad9d3d1916a5ba", size = 657838 },+ { url = "https://files.pythonhosted.org/packages/21/b1/6cbbb50c1f3002ab568777d44aa21206dfb8807a840990c4037523b51812/watchfiles-1.2.0-cp314-cp314-win32.whl", hash = "sha256:c0db965c5f79aa49fe672d297cf1febc5ad149b658594944f49a54a2b96270a7", size = 275108 },+ { url = "https://files.pythonhosted.org/packages/92/45/190ce6db8dcb4536682cf75d3889ff1a27182a58cb519d343cb6d9ea63d8/watchfiles-1.2.0-cp314-cp314-win_amd64.whl", hash = "sha256:71283b39fd17e5408eb123bd37aeecfd9d54c81fc184421943208aadb879d103", size = 288441 },+ { url = "https://files.pythonhosted.org/packages/74/0d/3eae1c2313ab08378431d907c3f8095ecca00f3eda33111cf4f0f2591799/watchfiles-1.2.0-cp314-cp314-win_arm64.whl", hash = "sha256:c5c19526f4e54a00f2666a6c0e9e40d582c09e865055ea7378bf0009aab857b3", size = 280684 },+ { url = "https://files.pythonhosted.org/packages/b1/75/fb64e6c25d6b5ca636d03df34ffb1c6e9873303e76d27967e045f8df088f/watchfiles-1.2.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:d73a585accffa5ae39c17264c36ec3166d2fad7000c780f5ef83b2722afb9dd2", size = 398857 },+ { url = "https://files.pythonhosted.org/packages/73/4e/9f7adf01754cbf81843722ccfec169d8f26c69778281a302855cecd2ee08/watchfiles-1.2.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ae99b14c5f21e026e0e9d96f40e07d8570ebee6cafd9d8fc318354606daa7a28", size = 392413 },+ { url = "https://files.pythonhosted.org/packages/47/c8/bec626bcc2d69f44b9acb24ce7d60ed7b16b73628eea747fcbd169d8edda/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4429f3b105524a10b72c3a819b091c495d2811d419c1e1e8df773a5a5974f831", size = 452409 },+ { url = "https://files.pythonhosted.org/packages/00/b7/b6362068e81e7c556d155a34c35d40ac3ef42d747b06d7f6e5bf58e359c2/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:43d818978d06062d9b22c4fab2ebe44cf5213d42dc8e62bda8c2760cfa2eeb33", size = 458827 },+ { url = "https://files.pythonhosted.org/packages/67/f8/9a813fa42afb1e0b4625e75f0479826644d3ee8dc287e093799bc01f390c/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b9f732dc58b2dbe69e464ccf8fff7a03b0dd0be439da4c0720d3558527d3d6b4", size = 490104 },+ { url = "https://files.pythonhosted.org/packages/2f/bf/27dfb6094ca4c9aad21298b5525b6c53cb36121ee454331d05161e58d130/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8f200104103feb097de4cab8fe4f5dd18a2026934c7dea98c55a2f5fd6d5a33b", size = 571360 },+ { url = "https://files.pythonhosted.org/packages/fb/39/44a096d67270ea93df91d33877dbe91fbda3aa4f8ec2edf799d93eda8736/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:63ac26eefbf4af1741247d6fb68b11c49a25b2f7413fbd318a83a12aaa9cf666", size = 464644 },+ { url = "https://files.pythonhosted.org/packages/0e/80/c7472203bad6268e3ef1ad260739704847898938ad7ea8b63a5131f46b50/watchfiles-1.2.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c4997d4e4a55f0d02b6cde327322daf3a0400e5df6c6b15948994bf72497925", size = 454771 },+ { url = "https://files.pythonhosted.org/packages/51/cf/3b10b268b4b7f0fc26e9debb5eef1998b515887840f444cd3ec80c688755/watchfiles-1.2.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:4c887eba18b7945ac73067a8b4a66f21cd46c2539b2bc68588f7be6c7eb6d26b", size = 463494 },+ { url = "https://files.pythonhosted.org/packages/3d/3e/a4302545cd589262a0dc7d140e86f7688eba3f9c72776c27f7e23b8864c4/watchfiles-1.2.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3416ff151bb6b5a8d8d11664974fbef4d9305b9b2957839ab5a270468fd8df30", size = 629383 },+ { url = "https://files.pythonhosted.org/packages/db/99/d5649df0a9a410d45b7c882304d0b790903ac9b6e8f2cfd12114e0c6b9f2/watchfiles-1.2.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:0e831a271c035d89789cffc386b6aa1375f39f1cd25eb7ca0997e4970d152fc5", size = 656093 },+ { url = "https://files.pythonhosted.org/packages/92/b9/362702539275019a54dd2e94511b31a9b89c5f9e6a21966de7eb692549fc/watchfiles-1.2.0-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:37a6721cdf3f65dbb13aa9503510ccb4451603ac837e44d265d7992a597e1374", size = 400109 },+ { url = "https://files.pythonhosted.org/packages/8f/75/71d5ba62db781e5587bded1d944c675374bc4aa37ff33d5018d98e8b6538/watchfiles-1.2.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2b37d10b5a63bd4d87e18472d80fa525bd670586fae62e5dd580452764879b65", size = 392167 },+ { url = "https://files.pythonhosted.org/packages/3c/01/c66dd95d0423fe30d31820e2d1d5bda773764131bbb6ac0cb1cf303ac328/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a105bc2283f67e8fbec74253ec2d94925de92ed72c0393f1206bf326b7b7b69", size = 452372 },+ { url = "https://files.pythonhosted.org/packages/91/15/2fe99557e72f85627c6a8eed50d889e8d101623e060a22ad75b875cb932d/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5327989a465505f05cfe06f04fa9d0c2fd5432bb243e10e6f012b1bdca3c8579", size = 459596 },+ { url = "https://files.pythonhosted.org/packages/ed/23/d4acfa0023367428ed48351b3b9b267893037b6cadae55620c61c24bcfd4/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ecb47f183a8025b2aa18b546725c3657e542112ae9c0613a2af79b4fa8d04ad7", size = 490869 },+ { url = "https://files.pythonhosted.org/packages/a4/5f/3164cbdce06c9fb95c4f7b9e2f9760b5e2797af43a9ecc317ef42a23a278/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8520a4ab0e37f770afc34459c4f8f7019e153f9124dc101c15538365875d1ab2", size = 571641 },+ { url = "https://files.pythonhosted.org/packages/41/e6/85d3731c55e65cd7690f3f803d24c139588aaf863e4bf2148fe7a7fa1a19/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:71cd71740ed2c15211ebb237ced4e39a1cdf6f80566e5fe95428da1626f4fde6", size = 464444 },+ { url = "https://files.pythonhosted.org/packages/f4/7d/562641012b8b09872742c3b8adf9629ec479fd78f8d68ae4a0c13da8add6/watchfiles-1.2.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f88af53d6ddaf72179ef613ddc905e6f4785f712b49b80b3bef9f3525e6194b4", size = 453593 },+ { url = "https://files.pythonhosted.org/packages/56/fe/cb8ef3d6f929d14158fdaaad9925985b7310abc9384dcd4d82dd0016fb59/watchfiles-1.2.0-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:cee9d5efd929efdac5f7e58f72b3376f676b64050a91c5b99a7094c5b2317488", size = 465096 },+ { url = "https://files.pythonhosted.org/packages/25/91/80908e835e100527a9267147b08c0eee1fa6ab0ffec15edc04d1d44885f7/watchfiles-1.2.0-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:b718bf356bbc15e559bd8ef41782b573b8ae0e3f177ab244b440568d7ea02cfb", size = 630638 },+ { url = "https://files.pythonhosted.org/packages/46/4b/95ab2f256bb4af3cb2eb23b9317bda984ee6e0f11733a5c004a6c95b06e3/watchfiles-1.2.0-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:922c0e019fe68b3ae392965a766b02a71ba1168c932cebc3733cd52c5fe5b377", size = 657684 },+ { url = "https://files.pythonhosted.org/packages/23/f4/7513ef1e85fc4c6331b59479d6d72661fc391fbe543678052ac72c8b6c19/watchfiles-1.2.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:4674d49eb94706dfe666c069fc0a1b646ffcf920473492e209f6d5f60d3f0cc2", size = 403050 },+ { url = "https://files.pythonhosted.org/packages/27/0b/a54103cfd732bb703c7a749222011a0483ef3705948dae3b203158601119/watchfiles-1.2.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:094b9b70103d4e963499bdea001ee3c2697b144cd9ae6218a62c0f89ec9e31db", size = 396629 },+ { url = "https://files.pythonhosted.org/packages/5e/2c/73f31a3b893886206c3f54d73e8ad8dee58cdb2f69ad2622e0a8a9e07f4e/watchfiles-1.2.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b0ef001f8c25ad0fa9529f914c1600647ecd0f542d11c19b7894768c67b6acb7", size = 457318 },+ { url = "https://files.pythonhosted.org/packages/e9/f9/45d021e4a5cc7b9dd567f7cbb06d3b75f751a690063fb6cc7ec60f4e46b7/watchfiles-1.2.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a88fc94e647bc4eec523f1caa540258eb71d14278b9daf72fa1e2658a98df0f0", size = 457771 },+]+[[package]]name = "wcwidth"version = "0.6.0"