jxxghp
6d4ce83837
fix(types): clear host mypy debt and prevent typing regressions
...
严格检查全部宿主源码,清零类型错误预算并移除按模块类型豁免。
按原因、所属方法、错误码及语法指纹锁定必要兼容例外和站点类型桩,
CI 阻断新增忽略、检查范围退化、本地桩替代真实接口及新的类型错误。
修复空值、异步和供应方类型边界,保持插件与 API 兼容合同,
并补充存储、订阅、通知、Agent 和工作流边界的回归覆盖。
2026-10-21 22:03:18 +08:00
Aqr-K
bf4ef4214e
perf(mediaserver): add caller-controlled query projections ( #7068 )
...
* perf(mediaserver): add caller-controlled query projections
* test(mediaserver): cover query projection option contracts
---------
Co-authored-by: jxxghp <jxxghp@gmail.com >
2026-10-19 08:33:45 +08:00
DDSRem
e0642eafa7
chore(types): reduce v3 host mypy debt ( #7057 )
...
* chore(types): clear AniList endpoint mypy debt
* chore(types): clear Douban endpoint mypy debt
* chore(types): clear recommendation endpoint mypy debt
* chore(types): clear subscription notification mypy debt
* chore(types): clear SDK string compatibility mypy debt
* chore(types): ratchet v3 host mypy across remaining files
* chore(types): reduce v3 host mypy debt and retire ledger
* chore(types): reconcile host snapshot with upstream HTTP pool
* test(types): cover host paths exposed by mypy cleanup
2026-10-18 09:37:49 +08:00
DDSRem
2de976f6b3
Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
...
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00
jxxghp
a6487140e1
refactor(types): preserve optional Plex instance labels
2026-10-17 04:59:10 +08:00
freeman
f3ad81b39e
style: apply safe ruff auto-fixes and exempt startup late imports
...
Run `ruff check app tests scripts --fix` with the configured rule set
(E4/E7/E9/F/I): import sorting (I001), f-strings without placeholders
(F541), lambda/variable/unused-import cleanups that ruff marks safe.
Nine files whose only ruff debt sits next to pre-existing pylint
import-resolution errors (lazy exports, sys.path script imports) or
whose "unused" imports are reached through attribute access by tests are
left untouched so the changed-file pylint gate and the benchmark tests
stay green; their diagnostics remain in the baseline.
app/startup/lifecycle/__init__.py and app/main.py import business
modules after cache composition, import-path and stdio setup on purpose
(the source comments document the contract), so declare E402
per-file-ignores for them instead of adding per-line noqa.
Ruff ratchet watermark drops from 498 to 100; sync the baseline fixture
and the optimization checklist figure.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
2026-10-09 13:29:09 +08:00
jxxghp
184cfc9c67
fix(wallpaper): 过滤非影视媒体库海报
2026-09-01 20:48:23 +08:00
jxxghp
b4b5f82511
refactor(modules): narrow package root exports
2026-08-29 21:19:00 +08:00
jxxghp
5128ae9e1e
refactor: 推进后端分层架构治理
2026-08-18 00:29:14 +08:00
jxxghp
7e851dbfa7
refactor(chain): 处理链功能域 mixin 化,清理未使用导入并根治兼容层循环导入
...
- ChainBase 拆分为 RecognitionMixin/MessageProcessingMixin/NotificationMixin
- TransferChain 拆分为 7 个功能 mixin(_mixins.py),SubscribeChain 音乐订阅域拆出 _music.py
- 斜杠命令交互四件套收敛为 InteractionChainMixin 委托,会话管理器移至 application 层,chain 层不再 re-export
- 模块基础类收敛到 app/modules/_base(notification/mediaserver 语义重命名)
- 清理 app/chain/__init__.py 24 个未使用导入,修正 49 处测试 patch 目标到实际命名空间
- 兼容层 legacy 符号不再并入 __all__,根治 schemas 初始化反向拉起 application.transfer 的循环导入
- 修复 bangumi 集数为字符串时 set_bangumi_info 抛 TypeError
- 新增重复代码等架构门禁测试;capability 清单校验排除下划线内部目录
2026-08-16 16:30:16 +08:00
jxxghp
369d7d6448
refactor: reorganize backend module boundaries
2026-08-14 19:53:33 +08:00
jxxghp
7b3444c366
refactor backend module architecture
2026-08-14 15:45:38 +08:00
jxxghp
8bf2f601a6
refactor(media): unify source identity and music browsing
2026-08-12 12:56:40 +08:00
jxxghp
1fc255b8a7
fix(music): complete subscription lifecycle
2026-08-10 07:21:06 +08:00
jxxghp
415ccda6a2
feat(v3): enhance music server integration with Navidrome support
2026-08-08 12:57:09 +08:00
InfinityPacer
197a09b2a4
fix(dashboard): distinguish empty media results ( #6187 )
2026-07-25 14:24:25 +08:00
kuke2733
229824a417
feat(subscribe): merge mediaserver library entries into files info ( #6131 )
2026-07-16 17:36:56 +08:00
InfinityPacer
893269f8c1
fix(modules): serialize configuration reload lifecycle ( #6122 )
2026-07-15 17:28:49 +08:00
jxxghp
9eb71c744b
feat(mediaserver): add item count retrieval for various media servers
2026-06-29 10:45:10 +08:00
Attente
ca5ec8af0f
feat(config): 优化配置变更事件处理机制
2025-11-27 23:17:34 +08:00
jxxghp
1f44e13ff0
add reload logging
2025-06-23 10:14:22 +08:00
jxxghp
13f9ea8be4
v2.5.3
2025-06-05 20:28:43 +08:00
jxxghp
bbfd8ca3f5
fix Config reload
2025-06-03 23:08:58 +08:00
jxxghp
b4ed2880f7
refactor:重构配置热加载
2025-06-03 20:56:21 +08:00
jxxghp
5d188e3877
fix module close
2025-06-03 17:11:44 +08:00
景大侠
20b145c679
继续修复媒体缺失问题
2025-03-30 02:41:24 +08:00
jxxghp
f9b0db623d
fix cython type error
2025-03-23 21:39:37 +08:00
jxxghp
2f38b3040d
fix:修复代码兼容性写法
2025-03-23 12:10:21 +08:00
jxxghp
61d7374d95
fix ide warnings
2024-12-23 16:58:04 +08:00
Aqr-K
825fc35134
feat(modules): 增加子级 type 分类。
...
- 在 `types` 里,针对各个模块的类型进行子级分类。
- 为每个模块统一添加 `get_subtype` 方法,这样一来,能更精准快速地区分与调用子类的每个模块,又能获取 ModuleType 所规定的分类以及对应存在的子模块类型支持列表,从而有效解决当下调用时需繁琐遍历每个 module 以获取 get_name 或 _channel 的问题。
- 解决因消息渠道前端返回所保存的 type 与后端规定值不一致,而需要频繁调用 _channel 私有方法才能获取分类所可能产生的问题。
2024-12-03 14:57:19 +08:00
InfinityPacer
ef20508840
feat(auth): handle service instance retrieval with proper null check
2024-11-30 01:14:36 +08:00
InfinityPacer
589a1765ed
feat(auth): support specifying service for authentication
2024-11-30 01:04:48 +08:00
jxxghp
7e6ef04554
fix 优化媒体服务器图片获取性能 #2993
2024-11-05 18:21:08 +08:00
jxxghp
08aa5fe50a
fix bug #2993
2024-11-05 10:07:25 +08:00
jxxghp
df8531e4d8
fix #2993 格式错误和传参警告
2024-11-03 19:51:43 +08:00
Akimio521
6801032f7a
fix: 避免在匿名环境下暴露Plex地址以及Plex Token
2024-11-02 16:18:17 +08:00
Akimio521
a59d73a68a
feat(PlexModule): 实现获取媒体服务器最新入库条目的图片
2024-11-02 14:17:52 +08:00
InfinityPacer
874572253c
feat(auth): integrate Plex auxiliary authentication support
2024-10-23 20:11:23 +08:00
jxxghp
363f12ed5a
refactor:Module加入执行优先顺序
2024-10-19 19:31:25 +08:00
jxxghp
de17bc5645
refactor:媒体服务器返回类型
2024-10-19 19:04:16 +08:00
jxxghp
1e4f3e97cd
refactor:media_exists 支持指定服务器
2024-10-19 18:17:35 +08:00
jxxghp
603ab97665
add ModuleType Schema
2024-10-12 11:50:00 +08:00
InfinityPacer
828e9ab886
feat(webhook): add support for server_name field in WebhookEventInfo
2024-10-10 22:07:03 +08:00
InfinityPacer
0afdd9056a
fix(module): use getters for _instances and _configs in subclasses
2024-10-06 14:38:17 +08:00
InfinityPacer
5de882d788
fix(plex): resolve error in get_webhook_message
2024-10-06 14:26:44 +08:00
InfinityPacer
8317b6b7a2
fix(mediaserver): resolve media_statistic
2024-10-02 13:04:39 +08:00
InfinityPacer
838e17bf6e
fix(sync): have module return results directly instead of using yield
2024-09-30 02:59:09 +08:00
InfinityPacer
1add203c0e
fix( #2755 ): refactor pagination and fix media sync DB issue
2024-09-28 00:57:13 +08:00
InfinityPacer
2ce3ddb75a
refactor(module): simplify service instantiation with generics
2024-09-27 04:04:56 +08:00
InfinityPacer
5efcd6e6be
refactor (module): improve the implementation of base classes
2024-09-26 19:44:35 +08:00