jxxghp
68101746ae
fix(plugin): recover invalid historical instance rows ( #7039 )
...
* fix(plugin): recover invalid historical instance rows
* fix(plugin): keep maintenance on existing startup path
* style(plugin): order maintenance test imports
* chore(architecture): record plugin instance validator edges
2026-10-17 06:34:25 +08:00
jxxghp
7c0e83d838
refactor(types): govern search session oper contract
2026-10-16 23:22:22 +08:00
jxxghp
ea365ddf16
refactor(types): govern workflow oper session contracts
2026-10-16 23:15:37 +08:00
jxxghp
fd935b5eeb
fix(types): keep mediaserver oper schema type-only
2026-10-16 23:09:22 +08:00
jxxghp
ea64ccd438
fix(types): preserve media server query inputs
2026-10-16 22:46:09 +08:00
jxxghp
540c63bc44
refactor(types): widen media server query contracts
2026-10-16 22:45:51 +08:00
jxxghp
c05098ec31
refactor(types): declare media server oper contracts
2026-10-16 22:39:36 +08:00
jxxghp
18220d0074
refactor(types): declare site oper contracts
2026-10-16 22:23:14 +08:00
jxxghp
b6c3629b07
refactor(types): declare download history adapter contracts
2026-10-16 21:49:00 +08:00
jxxghp
6cdf5f440f
refactor(types): declare transfer history adapter lifecycle contracts
2026-10-16 21:39:31 +08:00
jxxghp
ddcfe58a87
refactor(types): declare message adapter contracts
2026-10-16 21:00:00 +08:00
jxxghp
d8f67784fd
refactor(types): declare user adapter contracts
2026-10-16 20:56:16 +08:00
jxxghp
15dc03653d
refactor(types): declare passkey adapter contracts
2026-10-16 20:46:16 +08:00
jxxghp
c3e18208c2
refactor(types): bind plugin installation transaction results
2026-10-16 20:29:51 +08:00
jxxghp
94aeac973a
refactor(types): declare subscription identity query results
2026-10-16 20:28:06 +08:00
jxxghp
0e9e09c150
refactor(types): bind subscription query results before model typing
2026-10-16 20:27:10 +08:00
jxxghp
a1710c8a63
refactor(types): declare transfer history query and statistics results
2026-10-16 20:26:18 +08:00
jxxghp
b49fc909e7
fix(types): preserve sequence contract for async transfer statistics
2026-10-16 20:25:21 +08:00
jxxghp
751e223dcc
refactor(types): declare download history and file query results
2026-10-16 20:24:33 +08:00
jxxghp
38cec1537f
refactor(types): specify agent chat message mappings
2026-10-16 20:14:27 +08:00
jxxghp
9e978cc047
refactor(types): declare database session lifecycle results
2026-10-16 20:13:23 +08:00
jxxghp
3c916ad82b
refactor(types): declare database engine factory results
2026-10-16 20:12:41 +08:00
jxxghp
44df516565
refactor(types): specify workflow model query and transition results
2026-10-16 20:11:58 +08:00
jxxghp
a2bf0db215
fix(types): acknowledge missing workflow lookup results
2026-10-16 20:11:21 +08:00
jxxghp
5198cb0911
refactor(types): declare system config transaction callbacks
2026-10-16 20:09:31 +08:00
jxxghp
cd1a714421
refactor(types): specify subscription history query contracts
2026-10-16 20:08:35 +08:00
jxxghp
1703a11783
refactor(types): declare user lookup and mutation results
2026-10-16 20:07:32 +08:00
jxxghp
2846ed6b21
refactor(types): specify agent task statements and query results
2026-10-16 20:06:27 +08:00
jxxghp
fea8bd1bf8
refactor(types): specify persisted message field mapping
2026-10-16 20:05:25 +08:00
jxxghp
a3050387ae
refactor(types): declare queried agent task run records
2026-10-16 19:57:31 +08:00
jxxghp
64147fb669
refactor(types): declare queried agent chat records
2026-10-16 19:57:31 +08:00
jxxghp
c62d28e540
refactor(types): declare site model query results
2026-10-16 19:57:31 +08:00
jxxghp
8f2f4df9e1
refactor(types): declare media server model query results
2026-10-16 19:57:31 +08:00
jxxghp
810141f13d
refactor(types): declare passkey model query and mutation results
2026-10-16 19:57:10 +08:00
jxxghp
5477dbea93
refactor(types): declare queried download failure records
2026-10-16 19:36:28 +08:00
jxxghp
458f44da68
refactor(types): declare site user snapshot query results
2026-10-16 19:35:10 +08:00
jxxghp
e78e018921
refactor(types): declare plugin data model query results
2026-10-16 19:33:28 +08:00
jxxghp
3ce0c22af9
refactor(types): declare site statistics query results
2026-10-16 19:31:40 +08:00
jxxghp
ee1f417d4e
refactor(types): declare user configuration query results
2026-10-16 19:15:35 +08:00
jxxghp
a85cab1cce
refactor(types): declare optional site icon query results
2026-10-16 19:14:10 +08:00
jxxghp
eda541461d
refactor(types): declare plugin data write completion
2026-10-16 19:12:34 +08:00
jxxghp
4955b7b9ea
fix: harden backend isolation and execution safety
2026-10-16 09:11:28 +08:00
jxxghp
2c889a1735
fix(subscribe): 站点本地流控按限流窗口退避 ( #6996 ) ( #7001 )
...
订阅分页搜索遇到站点本地流控(limit_interval/limit_count/limit_seconds)
拒绝时只按秒级 cooldown 反复重试,在整个限流窗口内持续触发风控。现在:
- 本地流控被拒时按站点配置窗口计算退避(访问间隔与计数窗口取最大值,
并多留 1 秒越过窗口的严格比较边界);
- 同一退避写入站点预算冷却,窗口内其它订阅任务不会继续访问该站点;
- 本地流控没有发出请求,不计入连续失败与错误退避类别。
2026-10-15 09:14:13 +08:00
flippedyizheng
19f9098d68
fix(mediaserver): require unambiguous title-year match for cross-source fallback ( #6998 )
2026-10-15 07:15:06 +08:00
jxxghp
b82bbcb420
fix(webhook)!: guard unknown movie paths in transfer history
...
Recover Jellyfin deletion paths from webhook payloads or bounded server-scoped caches. Avoid querying deleted items and preserve TV season/series lookup behavior.
BREAKING CHANGE: Movie and unspecified-type history queries without a destination now return no records unless match_all_versions=True is explicitly requested.
Refs #6988
2026-10-13 23:48:10 +08:00
jxxghp
435703573e
fix(transfer): persist provider checkpoint planning time
...
Write planned_at atomically for provider_pending checkpoints and refresh it when host planning takes over. Cover real admission-to-execution persistence and distinguish incomplete plan fields from inconsistent execution checkpoint fields.
Refs #6973
2026-10-13 07:13:42 +08:00
jxxghp
86c7fccfd5
feat(subscribe): persist business activity with scoped details
2026-10-12 23:43:01 +08:00
jxxghp
bd1e6eb899
fix(agent): separate public API queries from bound user operations
2026-10-12 07:30:35 +08:00
jxxghp
bb29451222
fix: isolate unhandled durable transfer failures
2026-10-10 12:17:07 +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