mirror of
https://github.com/langgenius/dify.git
synced 2026-05-26 11:57:40 +08:00
Move PluginService into core.plugin and make it own tenant-scoped plugin model provider cache reads, writes, and invalidation. Inject PluginService into PluginModelRuntime and remove the request-scoped provider cache so install, uninstall, and upgrade flows share the same cache owner.
17 lines
513 B
Python
17 lines
513 B
Python
"""Compatibility import for the core plugin service.
|
|
|
|
PluginService lives in ``core.plugin`` because provider discovery, plugin
|
|
lifecycle changes, and cache ownership are core plugin concerns. Keep this
|
|
module as an alias so existing imports and test patch paths continue to target
|
|
the same module object.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from core.plugin import plugin_service as _plugin_service
|
|
from core.plugin.plugin_service import * # noqa: F403
|
|
|
|
sys.modules[__name__] = _plugin_service
|