mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix(compat): 补齐刮削与规则拆分后的旧路径映射,保持插件导入可用
- app.chain.media 登记 ScrapingChain/ScrapingOption/ScrapingConfig 符号叠加, 刮削能力拆出 ScrapingChain 后旧模块路径仍可惰性解析 - app.application.filter/filter_rules 映射到收敛后的 app.application.rules - 补充旧路径模块身份与符号解析测试
This commit is contained in:
@@ -42,6 +42,20 @@ MODULE_ALIASES: Dict[str, ModuleAlias] = {
|
||||
introduced="v3.0.0",
|
||||
owner="sdk",
|
||||
),
|
||||
# 规则域收敛为单一事实来源 app/application/rules.py:
|
||||
# filter_rules.py(内置规则集 + RuleParser)更名而来,filter.py(RuleHelper)并入
|
||||
"app.application.filter": ModuleAlias(
|
||||
target="app.application.rules",
|
||||
replacement="app.application.rules",
|
||||
introduced="v3.0.0",
|
||||
owner="application",
|
||||
),
|
||||
"app.application.filter_rules": ModuleAlias(
|
||||
target="app.application.rules",
|
||||
replacement="app.application.rules",
|
||||
introduced="v3.0.0",
|
||||
owner="application",
|
||||
),
|
||||
"app.db.agentchat_oper": ModuleAlias(
|
||||
target="app.db.oper.agentchat",
|
||||
replacement="app.db.oper.agentchat",
|
||||
@@ -748,6 +762,16 @@ SYMBOL_ALIASES: Dict[str, Dict[str, SymbolAlias]] = {
|
||||
replacement="app.schemas.agent.ReplyMode",
|
||||
),
|
||||
},
|
||||
# 刮削能力从 MediaChain 拆出为独立 ScrapingChain 后,
|
||||
# 原 app.chain.media 模块级公开的刮削选项与策略配置随迁到 app.chain.scraping
|
||||
"app.chain.media": {
|
||||
name: SymbolAlias(
|
||||
target_module="app.chain.scraping",
|
||||
target_name=name,
|
||||
replacement=f"app.chain.scraping.{name}",
|
||||
)
|
||||
for name in ("ScrapingChain", "ScrapingOption", "ScrapingConfig")
|
||||
},
|
||||
"app.chain.message": {
|
||||
"MediaInteractionChain": SymbolAlias(
|
||||
target_module="app.chain.interaction",
|
||||
|
||||
Reference in New Issue
Block a user