Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix: align optional dependency contracts (#4907)
chengyongrue864fba522e0
diff --git a/nanobot/optional_features.py b/nanobot/optional_features.pyindex b1965a34e..c9aa700dd 100644--- a/nanobot/optional_features.py+++ b/nanobot/optional_features.py@@ -48,7 +48,7 @@ class InstallResult:_INSTALL_TIMEOUT_SECONDS = 300_LOG_OUTPUT_LIMIT = 4000-_HIDDEN_OPTIONAL_FEATURES = {"documents", "langsmith", "pdf"}+_HIDDEN_OPTIONAL_FEATURES = {"documents", "pdf"}_BUNDLED_FEATURE_ALIASES = {"documents", "pdf"}@@ -534,10 +534,6 @@ def enable_optional_feature()from nanobot.config.loader import get_config_path- # The old extra never powered a runtime integration. Keep the CLI spelling- # as a compatibility alias while directing users to the supported tracer.- if name == "langsmith":- name = "langfuse"if name in _BUNDLED_FEATURE_ALIASES:payload = optional_features_payload(last_action={diff --git a/pyproject.toml b/pyproject.tomlindex 88e7a0467..80864e57b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -127,9 +127,6 @@ whatsapp = ["neonize>=0.3.18.post0,<0.4.0","segno>=1.6.1,<2.0.0",]-langsmith = [- "langsmith>=0.1.0",-]langfuse = ["langfuse>=3.0.0,<4.0.0",]diff --git a/tests/channels/test_feishu_reaction.py b/tests/channels/test_feishu_reaction.pyindex 6d21c0a3f..7721b4fe6 100644--- a/tests/channels/test_feishu_reaction.py+++ b/tests/channels/test_feishu_reaction.py@@ -4,6 +4,8 @@ from unittest.mock import AsyncMock, MagicMockimport pytest+pytest.importorskip("lark_oapi")+from nanobot.bus.queue import MessageBusfrom nanobot.channels.feishu import FeishuChannel, FeishuConfig, _FeishuStreamBufdiff --git a/tests/channels/test_feishu_streaming.py b/tests/channels/test_feishu_streaming.pyindex da3537b02..d683cfaa5 100644--- a/tests/channels/test_feishu_streaming.py+++ b/tests/channels/test_feishu_streaming.py@@ -5,6 +5,8 @@ from unittest.mock import MagicMockimport pytest+pytest.importorskip("lark_oapi")+from nanobot.bus.events import OutboundMessagefrom nanobot.bus.outbound_events import ProgressEventfrom nanobot.bus.queue import MessageBus