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:
@@ -48,7 +48,7 @@ class InstallResult:
|
|||||||
|
|
||||||
_INSTALL_TIMEOUT_SECONDS = 300
|
_INSTALL_TIMEOUT_SECONDS = 300
|
||||||
_LOG_OUTPUT_LIMIT = 4000
|
_LOG_OUTPUT_LIMIT = 4000
|
||||||
_HIDDEN_OPTIONAL_FEATURES = {"documents", "langsmith", "pdf"}
|
_HIDDEN_OPTIONAL_FEATURES = {"documents", "pdf"}
|
||||||
_BUNDLED_FEATURE_ALIASES = {"documents", "pdf"}
|
_BUNDLED_FEATURE_ALIASES = {"documents", "pdf"}
|
||||||
|
|
||||||
|
|
||||||
@@ -534,10 +534,6 @@ def enable_optional_feature(
|
|||||||
)
|
)
|
||||||
from nanobot.config.loader import get_config_path
|
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:
|
if name in _BUNDLED_FEATURE_ALIASES:
|
||||||
payload = optional_features_payload(
|
payload = optional_features_payload(
|
||||||
last_action={
|
last_action={
|
||||||
|
|||||||
@@ -127,9 +127,6 @@ whatsapp = [
|
|||||||
"neonize>=0.3.18.post0,<0.4.0",
|
"neonize>=0.3.18.post0,<0.4.0",
|
||||||
"segno>=1.6.1,<2.0.0",
|
"segno>=1.6.1,<2.0.0",
|
||||||
]
|
]
|
||||||
langsmith = [
|
|
||||||
"langsmith>=0.1.0",
|
|
||||||
]
|
|
||||||
langfuse = [
|
langfuse = [
|
||||||
"langfuse>=3.0.0,<4.0.0",
|
"langfuse>=3.0.0,<4.0.0",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ from unittest.mock import AsyncMock, MagicMock
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
pytest.importorskip("lark_oapi")
|
||||||
|
|
||||||
from nanobot.bus.queue import MessageBus
|
from nanobot.bus.queue import MessageBus
|
||||||
from nanobot.channels.feishu import FeishuChannel, FeishuConfig, _FeishuStreamBuf
|
from nanobot.channels.feishu import FeishuChannel, FeishuConfig, _FeishuStreamBuf
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ from unittest.mock import MagicMock
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
pytest.importorskip("lark_oapi")
|
||||||
|
|
||||||
from nanobot.bus.events import OutboundMessage
|
from nanobot.bus.events import OutboundMessage
|
||||||
from nanobot.bus.outbound_events import ProgressEvent
|
from nanobot.bus.outbound_events import ProgressEvent
|
||||||
from nanobot.bus.queue import MessageBus
|
from nanobot.bus.queue import MessageBus
|
||||||
|
|||||||
Reference in New Issue
Block a user