Commit Graph

129 Commits

Author SHA1 Message Date
jxxghp
71a2725776 fix(monitor): defer Blu-ray transfer while temp files remain 2026-09-26 09:27:17 +08:00
InfinityPacer
0bb033afe7 feat(plugin): preflight plugin dependencies on free-threaded runtime (#6766)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 12:53:46 +08:00
jxxghp
967431091e feat: share GitHub token with Agent skills 2026-09-23 12:41:18 +08:00
InfinityPacer
0238351071 fix(plugin): v3t 下不再隐藏不兼容插件,改为提示不支持 (#6760)
* feat(plugin): surface v3t incompatibility instead of hiding plugins

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore(architecture): refresh dependency baseline after plugin gate split

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(plugin): keep runtime-incompatible plugins out of startup sync

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(plugin): annotate runtime compatibility ports without bare dict

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 00:35:20 +08:00
ranzhigg
b134840102 fix(network): retry proxied HTTPS with TLS 1.2 (#6758)
* fix(network): retry proxied HTTPS with TLS 1.2

* test: refresh egress architecture fingerprints

* chore: refresh host architecture baseline

* fix(network): satisfy mypy ratchet for TLS fallback

---------

Co-authored-by: ranzhigg <51039935+ranzhigg@users.noreply.github.com>
2026-09-22 19:53:23 +08:00
moviepilot-codex[bot]
d96f00113c feat: add GitHub Token device authorization 2026-09-21 18:30:15 +08:00
moviepilot-codex[bot]
240f43b327 fix(update): converge stale state and Docker transaction 2026-09-21 15:49:21 +08:00
moviepilot-codex[bot]
9df35e7b83 fix: 修复配置快照、依赖同步和 Agent 上限 2026-09-21 04:26:48 +08:00
InfinityPacer
23159dee8b fix(update): handle OverlayFS directory swaps 2026-09-21 02:38:51 +08:00
jxxghp
4d17a46258 fix(network): handle relative image paths in address check 2026-09-20 15:53:24 +08:00
jxxghp
fa1df511e1 fix(plugin): satisfy index task typing 2026-09-19 23:19:00 +08:00
jxxghp
026f460155 fix(plugin): support BOM and wrapped market indexes 2026-09-19 23:08:34 +08:00
jxxghp
f14eddfa03 fix(cache): type async Redis loop registries 2026-09-19 18:36:16 +08:00
jxxghp
ecbdcd5726 fix(cache): isolate async Redis clients per event loop 2026-09-19 18:25:43 +08:00
jxxghp
207e1112dc fix(update): refresh current application version 2026-09-16 15:52:42 +08:00
jxxghp
d5e469a4e4 fix(update): preserve host plugin entrypoint during Docker upgrades 2026-09-16 12:24:19 +08:00
jxxghp
989a4b0dce fix(update): preserve new Docker modules during upgrades 2026-09-15 11:01:13 +08:00
Aqr-K
bc99355b2a fix(plugin): 补上换入删除旧目录中途失败时的回滚 (#6691) 2026-09-14 15:12:51 +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
5c01cdddb3 fix(plugin): 插件安装改为暂存后原子换入,避免下载失败删掉已装插件 (#6678) 2026-09-14 07:00:50 +08:00
developer-wlj
11a2a09bf6 feat(update): 添加exe部署环境下的更新支持 (#6668) 2026-09-13 21:06:59 +08:00
jxxghp
8072b7d78f Refactor application architecture and compatibility boundaries 2026-09-13 12:53:00 +08:00
InfinityPacer
4491610adb 修复插件来源仲裁与数据库备份 review 问题
合并 PR #6658。业务相关检查已通过;剩余失败为 PR-Agent 外部 API 日限额与上游既有复杂度 ratchet,不属于本次改动。
2026-09-12 21:22:01 +08:00
jxxghp
c0158b1f63 fix(plugin): isolate startup recovery failures 2026-09-12 20:39:19 +08:00
InfinityPacer
1ec7005b51 feat(database): back up plugin sqlite databases 2026-09-12 19:53:38 +08:00
InfinityPacer
747f9f921f fix(plugin): prioritize local plugin sources 2026-09-12 19:11:08 +08:00
jxxghp
046a8abcad fix(agent): harden browser session recovery 2026-09-12 13:31:23 +08:00
jxxghp
06ed22c584 feat(agent): improve browser-assisted site cookie login 2026-09-11 14:31:01 +08:00
jxxghp
abd3cea92b feat(agent): queue steering input during active runs 2026-09-11 05:17:37 +08:00
jxxghp
d32d17568a fix(runtime): apply configuration changes without restart 2026-09-11 00:12:05 +08:00
ranzhigg
69d4a15571 fix(plugin): preserve binary files in fallback downloads
Write file-list plugin payloads as raw bytes in both sync and async paths so wheel archives remain valid after Release fallback. Add a regression test covering binary payload preservation.

Co-authored-by: Codex <codex@openai.com>
2026-09-09 21:17:06 +08:00
jxxghp
5fa5b414aa feat(agent): harden tool outcomes, recovery and discovery 2026-09-09 19:55:21 +08:00
jxxghp
ca01cceed1 fix(server): use HTTP/1.1 for central service requests 2026-09-09 14:40:56 +08:00
ranzhigg
5f12ffa0c2 fix(plugin-market): satisfy index request type gate 2026-09-09 10:27:40 +08:00
ranzhigg
6e991171f3 fix(architecture): restore ratchet baselines without weakening gates 2026-09-09 10:05:06 +08:00
jxxghp
fb48751745 Merge pull request #6617 from ranzhigg/fix/plugin-market-global-flight 2026-09-09 08:21:17 +08:00
ranzhigg
f10af54404 fix(plugin-market): share index request limits 2026-09-09 07:48:40 +08:00
jxxghp
20bcffa9c4 fix(update): support Docker overlay site resource replacement 2026-09-09 07:09:41 +08:00
jxxghp
44c41ec476 fix(config): separate auto-update and dev tracking settings for clarity 2026-09-07 13:35:52 +08:00
jxxghp
c56734a826 fix(docker): apply release updates before supervisor restart 2026-09-07 08:28:14 +08:00
ga626
5edeef5a4d fix(plugin-market): bound proxy failure handling 2026-09-06 10:53:49 +08:00
jxxghp
1e7fb6397b fix(update): clear stale resource ready state 2026-09-05 19:45:03 +08:00
jxxghp
478e7ee0a4 fix(auth): restore API token compatibility 2026-09-02 20:22:57 +08:00
jxxghp
fd400a79ef fix: log application update checks 2026-09-02 07:42:04 +08:00
jxxghp
95913dc32a fix: satisfy update architecture contracts 2026-09-02 00:15:35 +08:00
jxxghp
658fa473d8 feat: support staged site resource updates 2026-09-01 23:49:53 +08:00
jxxghp
b2e3056ca0 fix(network): preserve encoded cookie signatures (#6527) 2026-09-01 07:29:12 +08:00
InfinityPacer
5c70757a81 fix(auth): align v3 authentication contracts
按已确认的 V3 AUTH-001 交付门禁合并:后端认证与用户资料契约已完成本地前后端联调,Architecture、Coverage、单测分片和 Pylint 全部通过。
2026-08-31 04:57:34 +08:00
jxxghp
a350bae0d0 refactor(plugin): share runtime dependency owners 2026-08-30 12:12:01 +08:00
jxxghp
7f5b8b469a refactor(plugin): centralize market composition owners 2026-08-30 11:48:41 +08:00