fix: align optional dependency contracts (#4907)

* fix: align optional dependency contracts

* ci: avoid duplicate test suite

* test: drop removed langsmith assertions

* test: rely on generic extra coverage

* test: restore existing plugin coverage
This commit is contained in:
chengyongru
2026-07-13 16:58:19 +08:00
committed by GitHub
parent a65a6f334c
commit e864fba522
4 changed files with 5 additions and 8 deletions
+1 -5
View File
@@ -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={
-3
View File
@@ -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",
]
+2
View File
@@ -4,6 +4,8 @@ from unittest.mock import AsyncMock, MagicMock
import pytest
pytest.importorskip("lark_oapi")
from nanobot.bus.queue import MessageBus
from nanobot.channels.feishu import FeishuChannel, FeishuConfig, _FeishuStreamBuf
+2
View File
@@ -5,6 +5,8 @@ from unittest.mock import MagicMock
import pytest
pytest.importorskip("lark_oapi")
from nanobot.bus.events import OutboundMessage
from nanobot.bus.outbound_events import ProgressEvent
from nanobot.bus.queue import MessageBus