feat: external plugin loading, score threshold, expiry cleanup and more improvements

Made-with: Cursor
This commit is contained in:
祀梦
2026-04-05 18:53:33 +08:00
parent 7bc6d4e4de
commit 7d5eaa438a
13 changed files with 302 additions and 39 deletions

View File

@@ -37,3 +37,12 @@ registry.register(FpwPremproxyPlugin)
registry.register(FpwFreeproxylistsPlugin)
registry.register(FpwGatherproxyPlugin)
registry.register(FpwCheckerproxyPlugin)
# 可选:从 config 的 plugins_dir 加载用户插件(根目录下目录,非 app/plugins 包)
from pathlib import Path
from app.core.config import settings as _app_settings
from app.core.config_paths import project_root as _project_root
_ext_dir = _project_root() / _app_settings.plugins_dir
registry.load_external_plugins_directory(_ext_dir)