Commit Graph

300 Commits

Author SHA1 Message Date
jxxghp
d8d24c97f6 fix(subscribe): 修复资源冷却后的搜索空转和手动重试 (#7628)
Refs #7623

将候选下载冷却反馈给智能分页搜索,保留缺集和重试原因;重新识别成功后清除目标资源的普通下载失败保护,并区分安全的网络失败类别。

本地全量 22,649 passed、21 skipped;PR 必需 CI 全部通过。
2026-11-27 00:16:46 +08:00
Aqr-K
6c86aaf403 refactor(tests): 按责任域整理套件并约束测试生命周期 (#7615) 2026-11-26 07:43:43 +08:00
InfinityPacer
15066d5fe5 feat(llm): add generic anthropic-compatible provider and prune relay catalog 2026-11-23 18:20:10 +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
63e9ee796f fix(agent): align locale, evaluation harness, complexity, and dependency baseline 2026-11-23 10:32:06 +08:00
小妍儿 ✨
1f33c4f361 fix(build): preserve Field description when generating PLUGIN_MARKET default 2026-11-22 09:41:25 +08:00
jxxghp
ee660c75ce docs(agent): generate manual music candidate guidance from source 2026-11-20 14:25:57 +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
2c90a22fdd fix(cli): preserve public host in local API proxy 2026-11-17 17:19:53 +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
103589ab87 fix(subscribe): deduplicate subscriptions across media sources 2026-11-16 14:53:57 +08:00
jxxghp
30edd8ec10 fix(transfer): allow one manual AI replan beyond retry budget (#7425) 2026-11-15 08:27:12 +08:00
jxxghp
da424ba918 fix(transfer): 完善显式身份识别与重规划技能契约 2026-11-15 00:14:58 +08:00
alexcastgonz
756720d29f fix(llm): replace retired deepseek-chat default with deepseek-v4-flash (#7408) 2026-11-14 10:11:24 +08:00
jxxghp
bbc7795230 fix(filter): migrate legacy rule IDs and diagnose invalid groups
Refs #7383
2026-11-12 13:04:36 +08:00
jxxghp
054119e885 fix(event): isolate durable broadcast handler delivery 2026-11-05 02:51:43 +08:00
freeman
68cfc377ee feat(history): register externally completed transfers (#7293) 2026-11-04 06:24:38 +08:00
InfinityPacer
ddcaf0ead0 refactor(settings): drop source line numbers from the settings catalog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 02:39:01 +08:00
InfinityPacer
5de950fb7c fix(subscribe): stop failing sites from stalling subscription downloads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 02:59:35 +08:00
jxxghp
83243d2418 fix: 限制插件生命周期准入并保留慢钩子所有权 (#7268) 2026-11-01 22:22:04 +08:00
SmallSpider
7f227857d8 fix: 修复 WebAgent 会话与选择状态 (#7266)
* fix(agent): preserve WebAgent session state

* test: separate subscription pressure coordination and owner waits

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-11-01 17:49:20 +08:00
SmallSpider
9ce3d7a292 feat(search): add scoped page diagnostics 2026-11-01 09:51:24 +08:00
jxxghp
9aab7c0f4c fix(agent): pin scheduled tasks to real execution accounts (#7241) 2026-10-29 22:39:08 +08:00
Cat
87561a90d1 fix(agent): route agent command receipts to the signed channel user (#7228)
- Agent 代渠道用户调用内部 API 时,把会话渠道与渠道用户写入宿主签发令牌的签名
  声明(agent_channel、agent_channel_user),不再新增可伪造的请求头。
- /commands/run 对 Telegram 等通知渠道只使用与请求渠道一致的签名渠道用户执行命令
  和投递回执;缺少该声明时明确拒绝,不再把 MoviePilot 用户表主键当作渠道 chat id。
  Web、WebAgent 与无渠道调用仍按 MoviePilot 用户 ID 处理。
- 只读公共资料借用宿主身份,不携带渠道发起人声明。
- 同步依赖基线与架构总览中的内部导入边数量。

Refs #7225

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-28 19:05:52 +08:00
jxxghp
e9563b0346 perf(api): 合并卡片状态查询并减轻推荐轮询 (#7207) 2026-10-27 06:05:49 +08:00
jxxghp
42edfd1da8 fix(api): bound collection views and query calendar dates (#7200) 2026-10-27 00:40:09 +08:00
jxxghp
1bf496d0f3 fix(api): enforce token authentication for subscription list
Refs #7198
2026-10-26 23:19:31 +08:00
JontyLee
0ba73f5b87 fix(database-operation): 拦截未显式授权的凭据配置表读取
systemconfig 按 SystemConfigKey 聚合实例级 API Key、Cookie 与口令,托管
config.system.get 默认脱敏,但数据库技能脚本与 MCP database_operation 接受
任意 SQL,一条 SELECT 就能整包取回明文。

现在由脚本本身按表拦截:引用 systemconfig 的语句(含引号标识符、模式限定名、
CTE 与子查询)在读写两种模式下都默认拒绝,只有显式 --show-secrets /
show_secrets=true 才放行,失败信息直接给出可执行的下一步,因此 MCP 工具、
技能调用与命令行入口共享同一道边界。宿主策略把开启该开关的查询判定为
SENSITIVE_READ:要求系统管理员确认,结果标记为 SECRET,回执摘要不再保留内容。

门禁范围收敛为单表:userconfig 只承载界面偏好,plugindata 是文档化的诊断路径,
其余表的凭据残留风险改由 SKILL.md 的窄投影要求约束,避免以不可绕过的方式破坏
既有可运维性。MCP 文档、技能说明与相关契约测试同步更新。
2026-10-26 20:20:16 +08:00
jxxghp
a11bc444f4 fix(ci): audit patched free-threaded brotli 2026-10-26 17:12:22 +08:00
jxxghp
86ededa739 feat(widget): 增加当前主登录的只读账号上下文 (#7176) 2026-10-25 06:28:57 +08:00
jxxghp
721c03734a feat(widget): 提供受限凭据和只读快照接口 (#7175)
* feat(widget): add restricted read-only snapshot foundation

* test(widget): 补齐运行时与文档迁移契约
2026-10-25 06:02:47 +08:00
Aqr-K
7584d4b9fc fix: isolate agent sessions and retain runtime resource ownership (#7149)
* fix: arbitrate subscription identity and restore workflow state

* fix: isolate agent sessions and retain runtime resource ownership

* test: preserve legacy empty-owner subscription transactions

* test: handle reaped terminal descendants during shutdown polling

* fix: align shared atomic configuration method with lifecycle prerequisite

* test: cover subagent cancellation and completion lifecycle boundaries

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-23 08:20:59 +08:00
Aqr-K
951cdc5b27 fix: arbitrate subscription identity and restore workflow state (#7147)
* fix: arbitrate subscription identity and restore workflow state

* test: preserve legacy empty-owner subscription transactions

* fix: align shared atomic configuration method with lifecycle prerequisite

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-23 08:14:15 +08:00
jxxghp
ec5ff575f0 fix(agent): restore API bodies before direct request dispatch 2026-10-23 07:55:16 +08:00
Aqr-K
6610a8c008 fix: retain plugin lifecycle ownership and recover installation state (#7146)
* fix: retain plugin lifecycle ownership and recover installation state

* test: cover plugin rollback and uninstall lifecycle boundaries

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-23 07:44:07 +08:00
Aqr-K
bcbf79f030 fix(media): preserve recognition and rule mutation identities (#7144)
* fix(media): preserve recognition and rule mutation identities

* test: cover typed classification facts with alias policies

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-23 07:33:27 +08:00
Aqr-K
d51320103c fix: make local setup and bundled skill operations recoverable (#7150)
* fix: make local setup and bundled skill operations recoverable

* test: verify user updates with real transaction runners
2026-10-23 06:49:13 +08:00
jxxghp
17a866f47b fix(transfer): restore AI takeover for failed transfers 2026-10-22 09:43:03 +08:00
jxxghp
6d4ce83837 fix(types): clear host mypy debt and prevent typing regressions
严格检查全部宿主源码,清零类型错误预算并移除按模块类型豁免。
按原因、所属方法、错误码及语法指纹锁定必要兼容例外和站点类型桩,
CI 阻断新增忽略、检查范围退化、本地桩替代真实接口及新的类型错误。

修复空值、异步和供应方类型边界,保持插件与 API 兼容合同,
并补充存储、订阅、通知、Agent 和工作流边界的回归覆盖。
2026-10-21 22:03:18 +08:00
jxxghp
6c68225a07 ci(startup): 固定冷导入耗时上限为三秒 2026-10-20 20:44:01 +08:00
alexcastgonz
14b9ea6d3e fix(setup): 更新 Google 默认模型并兼容 Gemini 3.8 思考级别 (#7109)
* fix(setup): 更新 Google 默认模型为 gemini-3.8-flash

安装向导中 Google 的预设模型 gemini-2.5-flash 对新建的 Gemini API 密钥
已返回 404,在模型选择处直接回车会写入无法使用的 LLM_MODEL。改为
Google 文档中推荐给新项目的稳定模型 gemini-3.8-flash。

新增用例校验预设值不再是 Gemini 2.5 系列。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(llm): honor Gemini 3.8 minimum thinking level

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-20 18:41:57 +08:00
jxxghp
cdb6560b5f ci: round startup median budgets up to whole seconds 2026-10-20 13:47:44 +08:00
jxxghp
a0df4f5fdc Merge pull request #7097 from pcbeingused333/fix/anthropic-setup-default-model 2026-10-20 13:34:22 +08:00
秋澪Akimio
e3d32e491b feat(storage): 本地复制支持仅限关键字参数 try_reflink 并新增实验室配置项 (#7089) 2026-10-19 22:54:43 +08:00
秋澪Akimio
114c2cebe5 feat(storage): 本地存储增加引用链接(reflink)整理方式 (#7077) 2026-10-19 16:48:41 +08:00
jxxghp
379c26a300 feat(subscribe): record initial and upgrade download provenance (#7061) 2026-10-19 16:03:21 +08:00
Alex Castillo
a8f260b01d fix(setup): 更新 Anthropic 默认模型为 claude-sonnet-4-6
安装向导中 Anthropic 的预设模型 claude-sonnet-4-0 已于 2026-06-15 被
Anthropic 下线,在模型选择处直接回车会写入失效的 LLM_MODEL。改为
claude-sonnet-4-6;当前锁定的 langchain-anthropic 1.4.x 已有该模型的
档案(max_tokens 64000),且该模型默认不开启思考。

回退选择用例改为接受向导给出的默认模型,以覆盖预设值本身。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:04:22 -04:00
DDSRem
e1b703aacc refactor(agent): centralize graph resource ownership (#7062) 2026-10-18 21:49:57 +08:00
jxxghp
2d73cbc43e docs: drop process records and internal implementation docs
Keep only install, usage, development-workflow and architecture-boundary
documents; remove the one-off refactor plans, audits and ledgers that had
already served their purpose.

- delete docs/refactor plus the agent API surface audit generator and its
  drift-only tests; the fixed route registry remains the source of truth
- delete internal implementation notes (agent, music, notification, transfer,
  subscription activity, docker startup, V3t runtime governance)
- delete site adapter capture/release shims and the ADR records; external
  links point at MoviePilot-Site-Collector instead
- keep docs/architecture-overview.md and gate its dependency and event
  figures against the generated fixtures
- drop doc-only assertions from the architecture baseline test and retarget
  remaining references at code and rule documents
2026-10-18 14:24:49 +08:00