jxxghp
|
f483e5fe14
|
fix(config): 修复非法系统配置阻断启动 (#6702)
|
2026-09-15 11:16:29 +08:00 |
|
jxxghp
|
989a4b0dce
|
fix(update): preserve new Docker modules during upgrades
|
2026-09-15 11:01:13 +08:00 |
|
jxxghp
|
998a4082c9
|
docs: 同步 mypy 债务基线指标
|
2026-09-15 07:59:53 +08:00 |
|
jxxghp
|
4a777f1410
|
fix: 补齐 Bangumi 客户端类型标注
|
2026-09-15 07:53:44 +08:00 |
|
jxxghp
|
ee6393974a
|
feat: 内置 Bangumi 数据与图片代理
|
2026-09-15 07:42:18 +08:00 |
|
Aqr-K
|
61aa3cd649
|
refactor(sdk): 插件契约基类迁入 SDK 并由 Compat 承接旧包根符号 (#6701)
|
2026-09-15 07:01:00 +08:00 |
|
jxxghp
|
1030028dfe
|
test(mediaserver): cover season title normalization
|
2026-09-15 00:32:31 +08:00 |
|
jxxghp
|
6a165a72aa
|
fix(mediaserver): satisfy type ratchet
|
2026-09-15 00:28:19 +08:00 |
|
jxxghp
|
c587ff07f7
|
fix(mediaserver): support cross-source library status
|
2026-09-15 00:17:20 +08:00 |
|
jxxghp
|
53e0c6c5c0
|
fix(transmission): normalize parsed torrent year type
|
2026-09-14 21:11:05 +08:00 |
|
jxxghp
|
01b13cc634
|
fix(types): annotate subscription view projection
|
2026-09-14 20:07:23 +08:00 |
|
jxxghp
|
e0adb47521
|
refactor(architecture): keep subscription owners within ratchet
|
2026-09-14 19:58:27 +08:00 |
|
jxxghp
|
ebbc0d4520
|
chore(architecture): refresh dependency baseline
|
2026-09-14 19:47:03 +08:00 |
|
jxxghp
|
ebddeee23b
|
feat(subscribe): accumulate music album track progress
|
2026-09-14 19:35:04 +08:00 |
|
Aqr-K
|
dc7e06ce38
|
fix(plugin): 落库失败的清理留在占位锁内,不再误删他人的实例 (#6695)
|
2026-09-14 17:41:08 +08:00 |
|
jxxghp
|
2dedd00db4
|
test: follow declared application version in backup names
|
2026-09-14 16:57:35 +08:00 |
|
jxxghp
|
f6e8c59ca1
|
更新 version.py
|
2026-09-14 16:39:01 +08:00 |
|
Aqr-K
|
c5d2fd2ef4
|
fix(plugin): 修分身恢复的占用判定、空模板配置重建、自动分配探测上限与预留落库回滚 (#6692)
|
2026-09-14 16:06:02 +08:00 |
|
Aqr-K
|
bc99355b2a
|
fix(plugin): 补上换入删除旧目录中途失败时的回滚 (#6691)
|
2026-09-14 15:12:51 +08:00 |
|
Aqr-K
|
1afda39ee7
|
chore(architecture): 同步官方新增站点认证模块的启动导入模块数 (#6690)
|
2026-09-14 15:12:01 +08:00 |
|
jxxghp
|
4df910990f
|
test(architecture): refresh startup module baseline
|
2026-09-14 13:55:45 +08:00 |
|
jxxghp
|
05aa9a7c1c
|
fix(auth): type site authentication configuration
|
2026-09-14 13:45:22 +08:00 |
|
jxxghp
|
4af54fcf5f
|
test(architecture): refresh dependency baseline
|
2026-09-14 13:35:07 +08:00 |
|
jxxghp
|
1cb1f02f19
|
fix(auth): normalize site authentication parameters
|
2026-09-14 13:24:14 +08:00 |
|
jxxghp
|
6d82f44fc8
|
fix(music): split core recognition and organization optimizations (#6686)
|
2026-09-14 13:04:58 +08:00 |
|
jxxghp
|
9724305a03
|
fix(imdb): handle null episode fields
|
2026-09-14 12:42:54 +08:00 |
|
jxxghp
|
f17b331a78
|
fix(auth): satisfy mypy initialization settings typing
|
2026-09-14 08:27:15 +08:00 |
|
jxxghp
|
6f9ad991d5
|
chore(architecture): sync host baseline metrics
|
2026-09-14 08:20:11 +08:00 |
|
jxxghp
|
2b1757e71d
|
fix(i18n): translate configured superuser initialization error
|
2026-09-14 08:07:43 +08:00 |
|
jxxghp
|
1e416882c0
|
fix(auth): lock configured superuser during initialization
|
2026-09-14 07:58:36 +08:00 |
|
Aqr-K
|
dd4ae3e8d5
|
refactor(plugin): 移除已无调用者的物理分身源码改写器 (#6683)
物理分身是早期实现:复制整个插件目录,再用字符串替换改写副本源码里的类名、
plugin_config_prefix 和联邦构建产物。虚拟实例接管后,分身不再复制目录,
由装载器改写类身份、按实例 ID 隔离配置与数据,这套改写器随之失去调用者。
求证依据(全仓 git grep,覆盖 app/、tests/、scripts/、docs/、skills/):
- PluginPackageManager.clone() 无任何生产调用者。分身的唯一生产路径是
POST /api/v1/plugin/clone/{plugin_id} -> PluginManager.clone_plugin()
-> PluginCloneService.clone(),后者只写 PluginInstance 记录与隔离配置,
不碰包适配器。clone() 也没有经 PluginSystemServices 暴露出去。
- clone() 的四个私有实现 _modify_plugin_files / _modify_python_file /
_modify_federation_files / _rename_federation_assets,消费者只有 clone()
自身与 PluginSystemServices 的同名透传。
- PluginSystemServices 的四个透传,消费者只有 PluginManager 的 _modify_* shim。
- PluginManager 的四个 shim 无任何调用者。动态可达性已单独排查:
全仓没有 getattr/字符串反射指向这些名字;app/runtime/compat/manifest.py
不登记它们的别名(只有 app.core.plugin -> 本模块的模块级映射);
app/sdk/ 不再导出;PluginManager 与 PluginPackageManager 都没有
__getattr__ 兜底,属性不存在即 AttributeError;官方插件基线
official-plugin-baseline.json 零命中。
- @observe_compat_facade("PluginManager") 只包装类上已存在的方法,
不会凭空合成属性,因此 shim 删除后 enforce_facade 再也匹配不到
notices.py 里那四条 key,登记随之成为不可达数据,一并删除。
替代路径:这四条弃用声明当初承诺的替代目标是
get_plugin_system().package._modify_*(),那是一次「门面搬到适配器」的
重定位登记,本次连同能力一起下线;分身能力本身的替代路径是虚拟实例
PluginCloneService.clone(),它已在生产链路上,见
docs/v2-to-v3-overview.md §3.6「不复制插件源码,也能保持各实例配置隔离」。
既有磁盘上的旧物理分身不受影响:卸载路径读取 is_clone 属性并调用
remove_plugin_package() 的逻辑原样保留,只是不再产生新的物理分身。
这是对已公告弃用 API(DeprecationStage.SILENT,since v3.0.0)的正式移除。
连带改动:
- package.py 的 import re 仅服务于 _modify_python_file,同步移除;模块
docstring 去掉「分身处理」。
- system.py 的 typing.cast 仅服务于被删透传,同步移除。
- tests/test_plugin_package_manager.py::test_clone_rewrites_python_and_federation_assets
是这套改写器的唯一测试,且只覆盖已无调用者的路径,随实现一并删除。
(删的是测试函数不是测试文件,tests/run.py 的分片装箱不变。)
- mypy 低水位随实现下降:app/runtime/extensions/plugin/manager.py 的
assignment 8->4(四个 shim 的 version/icon 参数 str = None)、
no-untyped-def 12->11(_rename_federation_assets 缺返回标注),
fixture 与 docs/refactor/optimization-checklist.md 的全量 mypy 计数
9,371 -> 9,366 同步更新。依赖、复杂度、ruff、并发等其余基线无变化。
Co-authored-by: jxxghp <jxxghp@gmail.com>
|
2026-09-14 07:19:46 +08:00 |
|
Aqr-K
|
5e232ca14d
|
fix(plugin): 安装记录大小写不敏感查询、游标物化,site 端点改从 Application 取 (#6682)
* fix(plugin): 安装 journal 按大小写不敏感列出事务记录
create 用 func.lower 判定同一物理插件并据此拒绝重复占位,list 却还是等值过滤。
判据分叉后,恢复流程查不到那条被 create 认定为未收尾的 journal,会认为没有待恢复
事务,而新事务又永远被同一行挡住。list 改用与 create 相同的 func.lower 判据。
* fix(plugin): 批量读插件身份时在事务内物化游标
list_by_plugin_ids 无会话调用时由组合根另开短事务,会话在 lambda 返回后立即关闭,
外层再 list() 消费惰性游标会撞上 "identity map is no longer valid",一行都读不到。
补上 .all(),让行在事务内取完。
* refactor(api): site 端点从 Application 取插件路由刷新
register_plugin_api 的唯一拥有者是 app.application.plugin.routes,
dependencies/plugin.py、scheduler/reconcile.py 与 initializers/plugins.py 都已从那里
取用,只剩 site 端点还在向 plugin 端点横向借。改为同一来源,并加门禁锁住这条判据。
依赖基线相应下降一条边(8650 -> 8649:site 不再到达 app.api.endpoints 与
app.api.endpoints.plugin,改为到达 app.application.plugin.routes),mypy 低水位同步
下降一条 attr-defined,两处文档数字随之更新。
---------
Co-authored-by: jxxghp <jxxghp@gmail.com>
|
2026-09-14 07:18:50 +08:00 |
|
Aqr-K
|
efb676318d
|
fix(test): 还原 Agent 生命周期用例泄漏的进程级资源版本 provider (#6684)
|
2026-09-14 07:02:05 +08:00 |
|
Aqr-K
|
6ea1cc9433
|
fix(plugin): 插件降级重装时拒绝迁移树不认识的库 revision (#6681)
|
2026-09-14 07:01:32 +08:00 |
|
Aqr-K
|
2789440796
|
fix(plugin): 分身 ID 对外查询统一归一到源插件,并补齐认证远程入口的源插件字段 (#6680)
|
2026-09-14 07:01:18 +08:00 |
|
Aqr-K
|
9955698b1a
|
fix(plugin): 加载入口补生命周期锁,手工重载带上分身 (#6679)
|
2026-09-14 07:01:04 +08:00 |
|
Aqr-K
|
5c01cdddb3
|
fix(plugin): 插件安装改为暂存后原子换入,避免下载失败删掉已装插件 (#6678)
|
2026-09-14 07:00:50 +08:00 |
|
Aqr-K
|
57fb96fc3c
|
feat(plugin): 分身后缀可留空自动分配,并支持按后缀恢复已停用的分身 (#6673)
|
2026-09-14 07:00:31 +08:00 |
|
jxxghp
|
a51acb05e5
|
fix(download): validate torrent bytes before html fallback
|
2026-09-14 00:32:11 +08:00 |
|
developer-wlj
|
11a2a09bf6
|
feat(update): 添加exe部署环境下的更新支持 (#6668)
|
2026-09-13 21:06:59 +08:00 |
|
Aqr-K
|
8e4a49e958
|
fix(plugin): 修复分身与本体在事件定向和注册表键上的身份混淆 (#6672)
|
2026-09-13 21:05:26 +08:00 |
|
Aqr-K
|
5fd04505c1
|
feat(plugin): 分身彻底清理,并按包含性校验收口插件数据目录解析 (#6671)
|
2026-09-13 21:05:04 +08:00 |
|
jxxghp
|
62fabea378
|
fix(scheduler): disable wallpaper cache without wallpaper
|
2026-09-13 21:02:15 +08:00 |
|
jxxghp
|
65907328d2
|
fix(plugin): skip invalid installed IDs during startup
|
2026-09-13 20:04:47 +08:00 |
|
jxxghp
|
09a82b51a2
|
fix(config): disable default wallpaper
|
2026-09-13 20:03:51 +08:00 |
|
Aqr-K
|
af3c78c7dc
|
chore(architecture): 固化 Ruff 低水位至 519 (#6669)
|
2026-09-13 19:42:45 +08:00 |
|
Aqr-K
|
f5e68576b9
|
fix(plugin): 修复实例引导合并、存在性判据与实例日志等级贯穿控制台 (#6667)
|
2026-09-13 18:59:48 +08:00 |
|
jxxghp
|
421d2febac
|
feat(plugin): skip invalid plugin instance records during read operations
|
2026-09-13 16:56:26 +08:00 |
|
Aqr-K
|
d44480d739
|
Merge pull request #6666 from Aqr-K/feat/plugin-instance-target-enablement
feat(plugin): 插件实例默认调用目标与启停,未指定实例时不再兜底取第一个
|
2026-09-13 16:37:27 +08:00 |
|
jxxghp
|
30d6d9e146
|
chore(architecture): align complexity baseline with formatting
|
2026-09-13 14:55:22 +08:00 |
|