refactor: fix decoupled runtime CI regressions

This commit is contained in:
-LAN-
2026-03-16 05:33:49 +08:00
parent 23aca7f567
commit fb113bf3a4
26 changed files with 428 additions and 1157 deletions

View File

@@ -343,9 +343,9 @@ class DifyToolNodeRuntime(ToolNodeRuntimeProtocol):
*,
provider_name: str,
default_icon: str | None = None,
) -> tuple[str | None, str | None]:
icon = default_icon
icon_dark = None
) -> tuple[str | Mapping[str, str] | None, str | Mapping[str, str] | None]:
icon: str | Mapping[str, str] | None = default_icon
icon_dark: str | Mapping[str, str] | None = None
manager = PluginInstaller()
plugins = manager.list_plugins(self._run_context.tenant_id)