mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:39:51 +08:00
CapabilityRegistry.load_plugins() and /plugins/list already imported deeptutor.plugins.loader behind a try/except, but the module never existed — plugin discovery was a dead path. Implement it: discover manifests from the deeptutor.plugins entry-point group and instantiate BaseCapability subclasses. PluginManifest carries exactly the fields both call sites read.
14 lines
281 B
Python
14 lines
281 B
Python
"""DeepTutor plugin package — entry-point discovery lives in ``loader``."""
|
|
|
|
from deeptutor.plugins.loader import (
|
|
PluginManifest,
|
|
discover_plugins,
|
|
load_plugin_capability,
|
|
)
|
|
|
|
__all__ = [
|
|
"PluginManifest",
|
|
"discover_plugins",
|
|
"load_plugin_capability",
|
|
]
|