Commit Graph

1383 Commits

Author SHA1 Message Date
jxxghp
fda8d5cbb3 fix(module): harden service hot-reload isolation, recovery, and health diagnostics (#7569) 2026-11-23 23:55:44 +08:00
jxxghp
b6e0daff0d feat(download): convert manual downloads to TMDB primary identity (#7566)
Reuse cross-source TMDB projection and full recognition across manual download API and interactive messaging paths when RECOGNIZE_SOURCE=themoviedb, preserving TV season/episode/episode_group checks, external ID and origin_media traceability, warning fallback on mismatch, and post-ResourceDownload context sync.
2026-11-23 22:31:52 +08:00
jxxghp
6201565019 feat(music): add automatic album track alignment setting MUSIC_TRACK_MATCH (#7436) 2026-11-23 20:50:25 +08:00
jxxghp
af4bf69aa4 fix(transfer): align preview endpoint with host concurrency and schema export gates 2026-11-23 20:49:17 +08:00
jxxghp
4c8c45c8c8 fix(messaging): restore traditional media interaction for approved channel members when agent is disabled 2026-11-23 20:08:09 +08:00
JontyLee
1f3644ada2 feat(agent): add read-only read_log tool (#7273)
* feat(agent): 新增日志只读诊断会话与 read_log 工具

日志页需要一键呼叫智能助手分析日志,且 AI 在用户确认前不得执行修复。
诊断请求通过 diagnostic 标记进入只读会话:工具与中间件按白名单裁剪
(read_log/read_file/query_doctor_report/read_tool_result/update_plan),
并追加诊断提示词;read_log 仅允许读取 LOG_PATH 下的 .log 文件。

* chore(architecture): 复核登记 read_log 工具的类型例外与依赖基线

按既有 async-tool-run 模式为 ReadLogTool.run 登记唯一 override 豁免,
同步依赖基线新增的 11 条边与模块计数,并更新架构总览引用的快照数字。

* refactor(agent): 按评审意见撤除诊断会话侵入,改为提示词软限制

维护者要求智能体保持通用能力、分支场景用提示词约束,不建议在主流程落代码。
本提交将 #7273 中贯穿 schemas、API、WebAgent 流、会话队列与编排器的
diagnostic 只读会话标记、工具/中间件白名单裁剪及对应测试全部撤除,
回到 v3 基线的通用链路;保留与主流程无关的通用 read_log 只读日志工具
及其注册、策略登记、工具测试、文档与架构基线。日志诊断的"只分析、
不执行修复、等确认"约束改由前端提示词表达。

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-11-23 17:51:04 +08:00
jxxghp
b22ba45a3c fix(download): guard unconfirmed downloader admissions against duplicate retries
严格区分“下载器明确拒绝”与“添加已受理但任务信息尚未确认”,解决 qBittorrent/rTorrent 异步队列积压导致确认超时后,订阅连续提交多个重复版本且缺少下载历史的问题:

- 新增待确认下载契约、confirm_pending_download 模块能力及 downloadpending 恢复状态表与迁移
- qBittorrent 临时标签轮询超时后按已知 v1/v2 infohash 兜底识别,并三下载器统一支持延迟落地确认与暂停选集补收尾
- 下载链遇到未确认状态时持久化脱敏待确认记录、不计普通失败冷却,并按电影/音乐整体或电视剧季/集精确阻断同目标换源
- 订阅搜索/匹配/刷新与整理扫描前自动核对待确认记录:任务出现后幂等补记下载历史并收敛订阅状态,查询出错绝不误释放,仅超期且明确未找到或被拒绝时释放
- 补齐 20 项回归测试并同步架构、导出清单与数据库技能文档快照

Refs #7551
2026-11-23 15:21:32 +08:00
jxxghp
a6cf75466f fix(download): project IMDb identity to TMDB when adding downloads
补充 IMDb -> TMDB 身份投影(经 TMDB /find/{imdb_id} 精确查找并补全本地化详情),并在 RECOGNIZE_SOURCE=themoviedb 时于 /api/v1/download/add 将 IMDb 及站点资源自带的非 TMDB 线索优先转换为 TMDB 主身份,转换或识别失败时无污染回退原来源;同步扩展订阅元数据巡检对 IMDb 身份的重试转换。

Refs #7550
2026-11-23 14:45:40 +08:00
jxxghp
448e6a39e4 fix(architecture): satisfy concurrency, ruff, and architecture overview gates 2026-11-23 10:39:56 +08:00
necrosn
c90d626228 feat(indexer): support ColaPT open API (#7545) 2026-11-23 00:29:11 +08:00
jxxghp
7035807a67 fix(mediaserver): align browse modules with architecture, lint, locale, and coverage gates 2026-11-22 21:02:24 +08:00
jxxghp
253844192a feat(sdk): expose browser queue status and cancellation contracts (#7532) 2026-11-22 14:27:07 +08:00
Бат-Орших
0ce462c7f3 fix(site): keep multi-level site domains when adding or saving sites (#7533) 2026-11-22 13:36:46 +08:00
jxxghp
50afccf193 fix(media): use ISO-639-1 base codes in TMDB image language fallback & refresh architecture baseline 2026-11-21 22:37:01 +08:00
jxxghp
d785c98f1a fix(agent): retry knowledge queries on transport failures (#7507)
Widen the knowledge query budget to 23 seconds with up to three 7.5-second attempts. Reconnect for bounded retries on transport failures while preserving HTTP and protocol errors. Cover slow search/read responses, retry recovery, cancellation and exhaustion, and document the contract.

Closes #7502
2026-11-21 08:27:52 +08:00
ChantXu64
b8c3465de6 fix(download): 同一季包已有任务时按目标追加选集,确认受理后再结算 (#7505) 2026-11-21 06:11:05 +08:00
jxxghp
ce2977600d fix(music): expose rejected manual candidates and prepare v3.2.9 2026-11-20 14:08:06 +08:00
jxxghp
6d9e5f3dc9 fix(indexer): adapt starspace user data and RSS pages (#7495) 2026-11-20 12:08:51 +08:00
ChantXu64
c36382acec feat(media): 详情页按需查找 TMDB 链接 (#7492) 2026-11-20 09:42:12 +08:00
jxxghp
586c64ede1 feat(notification): 统一各渠道图片与文件发送协议 (#7491)
统一插件媒体协议与宿主图片/文件适配,保留路由、说明和既有海报行为;补齐企微智能机器人素材上传,增加跨渠道回归覆盖。
2026-11-20 07:54:37 +08:00
jxxghp
63d09b1c72 feat: 企业微信应用支持普通文件通知 (#7487)
通过通用 file_path/file_name 上传并发送普通文件,同步文件能力及 Agent 自建应用模式限制。

关联 #7484,微信插件端验收待报告者验证。
2026-11-19 23:23:09 +08:00
jxxghp
3be0be45a7 feat: 企业微信支持按需发送原生图片 (#7486)
支持通过 native_image=True 上传并发送企业微信原生图片,保留默认图文及机器人兼容性。

关联 #7484。
2026-11-19 22:57:30 +08:00
jxxghp
d88e7bb0fe docs(architecture): synchronize reduced knowledge dependency count 2026-11-19 18:26:22 +08:00
jxxghp
79bd394325 feat(agent): enable central knowledge through laboratory switch 2026-11-19 17:57:38 +08:00
jxxghp
5607464cd6 fix(agent): stop unsupported PT details on no match 2026-11-19 17:42:40 +08:00
jxxghp
c11fa450fc fix(agent): require explicit knowledge scope caveats 2026-11-19 17:42:40 +08:00
jxxghp
8e418693f1 fix(agent): constrain knowledge answer scope 2026-11-19 17:42:40 +08:00
jxxghp
3db943cc0d fix(agent): keep knowledge answers within retrieved facts 2026-11-19 17:42:40 +08:00
jxxghp
15cc71081e feat(agent): add ephemeral knowledge tools 2026-11-19 17:42:40 +08:00
jxxghp
76036599c5 feat(agent): prepare central knowledge client 2026-11-19 17:42:40 +08:00
jxxghp
fcc9f1790e feat(agent): isolate ephemeral evidence from retained state 2026-11-19 17:42:40 +08:00
jxxghp
09cb51ddcf fix(messaging): route special-prefix text to plugins (#7480)
Refs #7479
2026-11-19 17:11:24 +08:00
jxxghp
0c7932f3f7 fix(trimemedia): retry transient TV library queries
飞牛电视剧存在性查询首次失败后等待 0.5 秒重试一次;连续失败仍保留未知状态,避免将查询故障误判为整季缺集。
2026-11-19 12:32:14 +08:00
jxxghp
f4fa80b702 feat(mediaserver): proxy native playback streams 2026-11-19 01:53:03 +08:00
jxxghp
a8d093c7c0 fix(auth): reject empty normalized site credentials 2026-11-19 01:08:18 +08:00
jxxghp
cf108e035e fix(site): separate connectivity from user authentication 2026-11-19 00:54:32 +08:00
jxxghp
d9f64f3043 fix(plugin): fall back from invalid market mirrors (#7464)
* fix(plugin): fall back from invalid market mirrors

* fix(plugin): satisfy market API gates
2026-11-19 00:34:17 +08:00
jxxghp
1206913e07 fix(transfer): 恢复远端已移动未改名的整理任务 (#7454)
* fix(transfer): resume remote moves after partial renames

* test(agent): wait for complete subprocess handshake

* test(classification): allow CI scheduling margin
2026-11-18 18:41:19 +08:00
jxxghp
4020a14280 fix(subscribe): preserve media query failures across HTTP and servers 2026-11-18 17:18:05 +08:00
zhuek
183c8d514b test: sync host architecture baseline with hddolby import
复用 app.foundation.text.parse_bool 后新增 app.modules.indexer.spider.hddolby ->
app.foundation(.text) 两条内部导入边,按 architecture 门禁要求刷新依赖基线,
并同步 docs/architecture-overview.md 的依赖边数(10,329 -> 10,331)。
2026-11-18 13:16:51 +08:00
jxxghp
6a029e600c Merge pull request #7445 from Huyvux12/fix/issue-7444-subscribe-missing-on-media-query-failure 2026-11-18 12:51:24 +08:00
InfinityPacer
e1e2197af7 docs(subscribe): restore subscription lifecycle document
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 11:48:52 +08:00
Huyvux12
b0084dc633 fix(subscribe): keep literal dispatch calls and sync architecture baselines
CI Architecture Contract Gate failed on the first push: the variable
indirection 'dispatch = run_module_strict if ... else run_module' made the
static baseline collector lose the run_module call site for media_exists
(it only records literal self.run_module / async_run_module calls), and
the four new subscribe -> mediaserver import edges plus the new optional
parameter were not yet in the snapshots.

Keep both dispatch routes as literal calls so the baseline keeps
recording the lenient call site (run_module_strict calls are not tracked
by the collector, same as the existing strict sites in storage and
_messaging), and regenerate the host baselines plus the architecture
overview edge count for the intentional changes only:
- dependency-baseline.json: +4 edges (chain.subscribe.* -> mediaserver)
- runtime-contract-baseline.json: media_exists += raise_on_query_failure
- docs/architecture-overview.md: 10,329 -> 10,333 edges
2026-11-18 00:05:49 +00:00
jxxghp
3c8514cc67 feat(mediaserver): provide episode metadata for library search 2026-11-17 20:57:03 +08:00
jxxghp
914481ad2d feat(auth): unify notification channel authorization 2026-11-17 01:36:08 +08:00
jxxghp
bb1ced76ce feat(media): 共享并缓存非 TMDB 到 TMDB 的转换关系 (#7440)
* feat(media): reuse shared source to TMDB mappings

* test(media): cover shared target fallback and invalid reports
2026-11-16 22:35:21 +08:00
jxxghp
c8b165537e fix(docker): enable backend native crash diagnostics 2026-11-16 20:15:53 +08:00
jxxghp
103589ab87 fix(subscribe): deduplicate subscriptions across media sources 2026-11-16 14:53:57 +08:00
jxxghp
7a030f5b21 fix(storage): 核验 115 上传回调并隔离不确定结果 (#7434)
* fix(storage): verify 115 upload callbacks before retry

Preserve uncertain completion results for manual review instead of replaying uploads. Refs #7433.

* docs: sync architecture import count
2026-11-16 11:53:10 +08:00
sloth
28e9e2e65b fix(search): 翻页失败时保留已获取的搜索结果 (#7429) 2026-11-16 07:18:17 +08:00