♻️ 大幅重构,拆分模块,增加一些MCP相关限制
Some checks failed
Pyright Lint / Pyright Lint (push) Has been cancelled
Ruff Lint / Ruff Lint (push) Has been cancelled

This commit is contained in:
FuQuan233 2026-07-29 17:00:22 +08:00
parent 41e6aeacb9
commit 0d6771eca6
17 changed files with 1142 additions and 912 deletions

11
tests/bootstrap.py Normal file
View file

@ -0,0 +1,11 @@
"""加载子模块而不执行NoneBot插件注册入口。"""
from pathlib import Path
import sys
from types import ModuleType
PACKAGE_NAME = "nonebot_plugin_llmchat"
if PACKAGE_NAME not in sys.modules:
package = ModuleType(PACKAGE_NAME)
package.__path__ = [str(Path(__file__).parents[1] / PACKAGE_NAME)]
sys.modules[PACKAGE_NAME] = package