feat(transfer): 添加分类与目录路由预览 - #6317
Draft
bgColorGray wants to merge 2 commits into
Draft
Conversation
There was a problem hiding this comment.
PR-Agent Code Review
该 PR 新增分类与目录路由预览接口,并统一分类诊断及顺序、精确度两种目录候选选择逻辑。当前存在一个会阻断后端模块加载的高严重度问题,另有一个特定空值规则下的诊断遗漏,需修正后再合入。
审查提交:d611286
| class TransferRouteMediaSnapshot(BaseModel): | ||
| """路由预览使用的已识别媒体快照。""" | ||
|
|
||
| type: MediaType |
| ) | ||
| continue | ||
|
|
||
| conditions = [ |
added 2 commits
August 14, 2026 17:52
默认保持顺序匹配,支持显式启用精确类别优先。\n新增本地快照预览、冲突诊断、模式对比及完整回归测试。\n\nRefs: jxxghp#6313
bgColorGray
force-pushed
the
codex/category-route-preview
branch
from
August 14, 2026 11:00
d611286 to
3ce4a4f
Compare
Contributor
Author
|
已完成上一轮审查后的重构与回归:
本次自动 PR-Agent 工作流的红灯发生在 LLM 推理前后,三个回退模型均返回 |
bgColorGray
marked this pull request as draft
August 14, 2026 11:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
变更
DirectoryMatchMode:默认sequential完全保留现有顺序语义,用户可显式启用specificity,按精确类别、媒体类型、通配目录选择候选。DirectoryRouteChain,集中编排目录设置、分类诊断与路由预览,避免继续扩张TransferChain。GET/POST /api/v1/transfer/route/settings,在同一数据库事务中保存目录和匹配模式,并从同一缓存快照读取。POST /api/v1/transfer/route/preview,仅对传入的媒体与元数据快照求值,不访问 TMDB、不创建目录、不移动文件。兼容性
sequential,旧配置无需迁移,升级后不会静默改变整理路径。media=None、显式目标路径和现有目录优先级保持原行为。SystemConfig仍使用键值存储,不涉及数据库模型或 Alembic 迁移。验证
upstream/v3@7b3444c3基线确认:BluRayTest.test、test_manifest_aliases_reuse_real_canonical_modules、test_main_script_does_not_shadow_stdlib_platform、test_workflow_manager_list_actions_exposes_contract。git diff --check与敏感信息扫描通过。