Commit Graph

81 Commits

Author SHA1 Message Date
yanjunpu
0570eb24fc Merge remote-tracking branch 'origin/v3' into codex/manual-source-classification 2026-09-07 23:27:11 +08:00
thsrite
4a66d43366 fix(types): 补齐模块基类注解,消除新模块的类型门禁失败
Architecture Contract Gate 的 mypy ratchet 报出新模块两条错误,根因都在基类:

- ConfigReloadMixin.__init_subclass__ 缺注解,导致所有继承它的模块在类型化
  上下文中被判 no-untyped-call
- _ModuleBase.init_setting 的返回注解为 Tuple[...],与其文档说明的
  「不实现该方法或返回 None 代表不使用开关」矛盾,子类如实声明 Optional
  就会被判 override 不兼容

两处均为纯注解修正,无行为变化。全量 mypy 错误由 9,496 降至 9,441(净减 55,
未新增任何错误),出错文件 514 → 513;同步固化 mypy 低水位与架构清单中的计数。
2026-09-07 14:33:01 +08:00
thsrite
d04b721f84 feat(mediaserver): 新增 MediaVault 自建媒体库模块
通过 MediaVault 管理端口的原生接口接入自建媒体库,凭据为管理面板的长效 API Key:

- 媒体库列表、条目分页遍历、条目详情与总数
- 按标题/年份/媒体身份判断电影与剧集存在性,季集齐全度与季集条目 ID
- 数量统计、最近入库、继续观看、封面与背景图直链、播放地址
- 入库后按目标路径命中媒体库并排队后台扫描,未命中时回退全库扫描
- 用 MediaVault 账号完成 MoviePilot 用户认证

MediaVault 无音乐库也不外发 Webhook,get_music 与 webhook_parser 不实现;
图片直链自带 API Key,无需 mediaserver_image_cookies。

同时把 mediavault 接入 mediaserver-operation Agent Skill 的 provider 清单。
2026-09-07 13:49:10 +08:00
jxxghp
8167922949 docs(architecture): sync ruff metric 2026-09-07 12:02:48 +08:00
jxxghp
373c398a7b chore(architecture): refresh host dependency baseline 2026-09-07 11:35:41 +08:00
yanjunpu
2361470af4 feat(download): classify existing source locations 2026-09-07 00:33:44 +08:00
jxxghp
e3a5e8a3e9 docs(architecture): sync mypy debt metric 2026-09-06 22:59:15 +08:00
jxxghp
801fe5a34f chore(architecture): sync mypy baseline 2026-09-06 10:29:28 +08:00
jxxghp
365a00cc4a chore(architecture): refresh dependency baseline 2026-09-06 10:20:55 +08:00
jxxghp
be41517520 fix: 防止音乐署名清理截断真实曲名 2026-09-06 04:55:08 +08:00
jxxghp
a01a941c11 fix: 对齐音乐备选来源匹配并校验录音版本证据 2026-09-06 04:06:00 +08:00
jxxghp
976cecce8f fix: 对齐音乐候选识别和缓存匹配规则 2026-09-06 02:21:03 +08:00
jxxghp
916619f2e2 fix: 对齐音乐识别词并补齐版本和专辑匹配证据 2026-09-06 01:28:47 +08:00
jxxghp
fba0b6ae67 refactor: 统一音乐与影视的识别搜索匹配流程 2026-09-06 00:48:00 +08:00
jxxghp
41d46d1b5c fix: 无损合并旧分类枚举并隔离迁移校验失败 2026-09-05 23:08:25 +08:00
jxxghp
b432354592 fix(update): use managed progress execution 2026-09-05 22:28:15 +08:00
jxxghp
cb2ad2a13a chore(architecture): sync update dependency baseline 2026-09-05 21:48:16 +08:00
jxxghp
e28f4a11cd feat(update): add interactive channel upgrade flow 2026-09-05 21:35:30 +08:00
jxxghp
821d7301de fix(subscribe): synchronize queue contracts 2026-09-05 18:29:07 +08:00
jxxghp
54cc3d368d refactor(subscribe): isolate queued search execution 2026-09-05 18:09:25 +08:00
jxxghp
55b7633c3f chore(architecture): refresh subscription dependency baseline 2026-09-05 17:34:19 +08:00
jxxghp
e656793aa5 refactor(api): split management endpoint routers 2026-09-05 16:05:27 +08:00
jxxghp
c67622f1ad docs(architecture): refresh API dependency baseline 2026-09-05 15:27:12 +08:00
jxxghp
f00853de2a feat(api): expose frontend-safe management capabilities 2026-09-05 15:11:02 +08:00
jxxghp
0a44a0019c fix(classification): remove source defaults and clarify policy docs 2026-09-04 22:38:03 +08:00
jxxghp
88000d3fbc chore(architecture): sync ruff metric 2026-09-04 18:44:08 +08:00
jxxghp
f5f534dcad fix(api): finish public error message rollout 2026-09-04 18:21:44 +08:00
jxxghp
2dde32ce86 chore(architecture): refresh classification dependency baselines 2026-09-04 12:09:54 +08:00
jxxghp
d128509f34 feat(classification): complete media preview and impact analysis 2026-09-04 11:50:07 +08:00
jxxghp
adae5bd878 fix(api): restore full plugin catalog by default 2026-09-04 10:47:02 +08:00
InfinityPacer
b8fd1b9958 修复非模块组件配置变更未触发热重载 (#6569)
* fix(event): bind config reload lifecycle owners

* chore(architecture): update config reload dependency baseline

* fix(event): preserve config resolver type contracts
2026-09-04 03:43:49 +08:00
jxxghp
d743df25d5 fix(architecture): sync subscription governance baselines 2026-09-03 12:22:03 +08:00
jxxghp
71147c1d96 feat(classification): support multi-source media rules 2026-09-03 11:51:18 +08:00
InfinityPacer
68880dbbf1 优化订阅执行治理与规模性能 (#6557)
* feat(subscription): govern concurrent search and match execution

* refactor(subscription): consume complete candidate snapshots

* refactor(subscription): remove download submission ledger

* feat(subscription): stagger fallback searches without site gaps

* refactor(subscription): remove unused retry capability

* test(subscription): verify complete scale execution

* fix(subscription): surface site search failures

* test(subscription): verify site pressure through search

* test(subscription): use static facade imports

* fix(subscription): preserve completed downloads on shutdown

* fix(subscription): classify execution expiry as failure

* fix(subscription): preserve fallback search staggering

* test(subscription): stabilize unfinished wrapper gate

* fix(subscription): settle expired search returns

* style(subscription): normalize governance imports

* fix(subscription): align governance type contracts

* docs(architecture): sync mypy debt metric

* docs(architecture): sync startup module counts
2026-09-03 11:26:24 +08:00
jxxghp
d94f827ae1 chore(architecture): refresh dependency snapshot 2026-09-02 20:34:53 +08:00
Aqr-K
adf4c84136 chore(architecture): 刷新宿主架构依赖、契约与启动性能基线
dependency-baseline.json 新增 7 个插件数据库模块及其依赖边,boundary_edges
12 个键仍全为空;runtime-contract-baseline.json 新增 app.sdk.database 的
两项 SDK 导出。app.db.session 起在冷启动路径新增 5 个轻量插件框架模块
(不含 alembic,其导入仍收在 ensure_database 内部),同步刷新
startup-performance-baseline.json 的模块计数;架构文档中引用的模块/边数
量同步更新,保持与快照一致。
2026-09-02 02:14:19 -04:00
jxxghp
d0eddb86eb chore(architecture): refresh dependency baseline 2026-09-02 13:05:50 +08:00
jxxghp
b534bfc9bb docs(architecture): sync ruff metric 2026-09-02 09:20:27 +08:00
jxxghp
95913dc32a fix: satisfy update architecture contracts 2026-09-02 00:15:35 +08:00
jxxghp
3b4d7399bf chore(architecture): lower Ruff diagnostic baseline 2026-09-01 18:14:04 +08:00
jxxghp
e433eb5c13 fix(agent): stabilize Windows shell CI checks 2026-09-01 18:04:02 +08:00
jxxghp
857aa813e5 fix(subscribe): satisfy final governance gates 2026-09-01 17:50:08 +08:00
jxxghp
e57288b5ea refactor(subscribe): satisfy global governance gates 2026-09-01 17:09:55 +08:00
jxxghp
db5c316756 refactor(subscribe): make download submission idempotent 2026-09-01 17:09:54 +08:00
jxxghp
bab1d2862e refactor(subscribe): govern fallback site pressure 2026-09-01 17:09:54 +08:00
jxxghp
389131acd6 refactor(subscribe): persist fallback search queue 2026-09-01 17:08:53 +08:00
jxxghp
f5c73dcabc fix(architecture): lower Ruff diagnostic baseline 2026-09-01 12:33:29 +08:00
jxxghp
5e215a45d5 fix(architecture): record verbose callback edge 2026-09-01 12:25:12 +08:00
jxxghp
5948684d6d fix(architecture): record agent sanitizer edge 2026-09-01 12:15:58 +08:00
jxxghp
449ef4b8df fix(agent): show API parameters in verbose mode 2026-09-01 11:57:36 +08:00