Peach: Local-first video metadata scraper and media manager.
perf(review): 撤回在写锁里只复制账本、不扫盘上目录,回执按条计数
longmeidao9813f631403b
diff --git a/docs/adr/0140-review-page-reverts-settlement-batches.md b/docs/adr/0140-review-page-reverts-settlement-batches.mdindex 0b5c59cd8..05096734d 100644--- a/docs/adr/0140-review-page-reverts-settlement-batches.md+++ b/docs/adr/0140-review-page-reverts-settlement-batches.md@@ -16,7 +16,7 @@ ADR-0139 让核查差异按确定判据自动落库,撤回入口是 `scripts/r**二、复核页只放行 ADR-0139 的两条规则。** 「元数据字段」分类下的「自动写入的资料」列出 `adr-0139-official-replaces-verified` 与 `adr-0139-verified-tags-union` 仍在的决定,按批次给出时间与影响面。两条规则只改账本、不删文件,决定里存着撤回要用的全部依据。别的自动落库来源(种子、别名、样张、无番号封面……)有的要删盘上文件、有的要按任务行认批次,仍只在脚本里撤。接口按批次号反查规则,查不到就拒绝。-**三、先预览,再按同一份计划写。** `GET /api/review/auto-landings?batches=…` 返回逐条要改回的值、要删的标签、不动的资产和计划摘要 `token`。`POST /api/review/auto-landings/revert` 在写锁(`BEGIN IMMEDIATE`)里重算计划,`token` 对不上就拒绝;对上了先经 `ledger_backups.create` 留一份 `ledger.pre-auto-landing-revert-<时间>.db`,再撤回。回执写出备份文件名与被跳过的作品,作品可以点开核对。+**三、先预览,再按同一份计划写。** `GET /api/review/auto-landings?batches=…` 返回逐条要改回的值、要删的标签、不动的资产和计划摘要 `token`。`POST /api/review/auto-landings/revert` 在写锁(`BEGIN IMMEDIATE`)里重算计划,`token` 对不上就拒绝;对上了先用 SQLite Backup API 留一份 `ledger.pre-auto-landing-revert-<时间>.db`(与标签管理同一做法,完整性检查与清退留给账本备份那一轮,不在写锁里多等),再撤回。回执写出备份文件名与被跳过的作品,作品可以点开核对。并集决定按决定撤:一条决定之后又补过一次时带着两个批次,选中其中一个也会删掉另一个批次补的标签。预览单独写出连带的批次数,不让确认的数字与实际删除的对不上。@@ -37,7 +37,7 @@ ADR-0139 让核查差异按确定判据自动落库,撤回入口是 `scripts/r## 后果-- 复核页「元数据字段」在有自动写入时多一张批次表;只读端可以浏览,撤回按钮不可用。+- 复核页「元数据字段」在有自动写入时多一张批次表;只读端按本机同步到的账本浏览,撤回由写入端闸门拒绝。- 「账本备份」列表里多一种用途「撤回自动写入前」,按同一套保留规则清退。- 撤回后决定被删,下一轮资料处理仍按同一判据判断,可能再次写入;改判据仍要先于撤回,弹层里写明这一点。-- `scripts/revert_auto_landing.py` 的参数与输出不变。+- `scripts/revert_auto_landing.py` 的参数与输出不变;网页侧计划不扫标识与封面目录(`plan(files=False)`),两条规则本来不写盘上文件。diff --git a/frontend/src/react/review/auto-landings-card.tsx b/frontend/src/react/review/auto-landings-card.tsxindex a370be2cf..f059f0425 100644--- a/frontend/src/react/review/auto-landings-card.tsx+++ b/frontend/src/react/review/auto-landings-card.tsx@@ -66,7 +66,7 @@ export function AutoLandingsCard(<p className="text-body-2-regular">{`撤回前的账本已备份为 ${receipt.backup}。`}</p>{receipt.changed.length ? (<p className="flex flex-wrap items-center gap-x-2 gap-y-1 text-body-2-regular">- {`${receipt.changed.length} 部作品写入后又被修改或已删除,未改动:`}+ {`${receipt.changed.length} 条资料写入后被修改过或作品已删除,未改动:`}{receipt.changed.map((row) => row.gone ? (<span key={`${row.asset_id}:${row.field}`} className="text-text-secondary">{`#${row.asset_id}(已删除)`}</span>) : (diff --git a/frontend/src/react/review/auto-landings.ts b/frontend/src/react/review/auto-landings.tsindex 1e58b80c3..aa9dc2631 100644--- a/frontend/src/react/review/auto-landings.ts+++ b/frontend/src/react/review/auto-landings.ts@@ -89,12 +89,12 @@ export function previewLines(preview: AutoLandingPreview): string[] {export function previewBody(preview: AutoLandingPreview): string {const parts = [- preview.restores.length ? `改回 ${preview.restores.length} 部作品的资料` : '',+ preview.restores.length ? `改回 ${preview.restores.length} 条资料` : '',preview.tags.length ? `删除 ${preview.tags.length} 个自动补上的标签` : '',].filter(Boolean);return [`将撤回 ${preview.batches.length} 批自动写入:${parts.join(',') || '没有要改的资料'}。`,- preview.changed.length ? `${preview.changed.length} 部作品写入后又被修改或已删除,不改动。` : '',+ preview.changed.length ? `${preview.changed.length} 条资料写入后被修改过或作品已删除,不改动。` : '',preview.other_batches.length ? `所选标签的补写记录还连带 ${preview.other_batches.length} 个其他批次,一并撤回。` : '','撤回前会自动备份账本。下一轮资料处理仍按同一判据判断,可能再次写入。',].filter(Boolean).join('');@@ -102,7 +102,7 @@ export function previewBody(preview: AutoLandingPreview): string {export function resultText(result: AutoLandingResult): string {const parts = [- result.restored ? `改回 ${result.restored} 部作品的资料` : '',+ result.restored ? `改回 ${result.restored} 条资料` : '',result.removed_tags ? `删除 ${result.removed_tags} 个标签` : '',].filter(Boolean);return `已撤回 ${result.batches.length} 批自动写入${parts.length ? `:${parts.join(',')}` : ''}`;diff --git a/scripts/revert_auto_landing.py b/scripts/revert_auto_landing.pyindex e435b1a86..a91c00fa5 100644--- a/scripts/revert_auto_landing.py+++ b/scripts/revert_auto_landing.py@@ -125,8 +125,14 @@ def main(argv: list[str] | None = None) -> int:integrity, orphans = verify_after_write(connection)finally:connection.close()- result["删除文件"] = auto_landing_revert.remove_files(planned)- print({**result, "integrity_check": integrity, "foreign_key_check": orphans})+ removed = auto_landing_revert.remove_files(planned)+ # 「删除文件」排在建档实体之后,和这一行一直以来的顺序一致。+ summary = {}+ for key, value in result.items():+ summary[key] = value+ if key == "删除建档实体":+ summary["删除文件"] = removed+ print({**summary, "integrity_check": integrity, "foreign_key_check": orphans})return 0diff --git a/src/peach/auto_landing_revert.py b/src/peach/auto_landing_revert.pyindex 3c40e2eb4..0190f1e41 100644--- a/src/peach/auto_landing_revert.py+++ b/src/peach/auto_landing_revert.py@@ -245,8 +245,13 @@ def planned_files(logo_root: Path, source: str, batch: str) -> list[Path]:return found-def plan(connection, source: str, batch: str = "", *, logo_root: Path, cover_root: Path) -> dict:- """这个来源(与批次)要撤的全部条目,只读。`apply` 与 `remove_files` 都按它做。"""+def plan(connection, source: str, batch: str = "", *, logo_root: Path, cover_root: Path,+ files: bool = True) -> dict:+ """这个来源(与批次)要撤的全部条目,只读。`apply` 与 `remove_files` 都按它做。++ `files=False` 不扫标识与封面目录:调用方已知这个来源不写盘上文件(复核页只放行的两条+ 核查结算规则),在写锁里逐批扫一遍真实目录只是白等。+ """return {"source": source, "batch": batch,"links": planned_links(connection, source, batch),@@ -260,8 +265,8 @@ def plan(connection, source: str, batch: str = "", *, logo_root: Path, cover_roo"refs": planned_refs(connection, source, batch),"memberships": planned_memberships(connection, source, batch),"makers": planned_makers(connection, source, batch),- "files": planned_files(logo_root, source, batch),- "covers": western_artwork.planned_covers(cover_root, source, batch),+ "files": planned_files(logo_root, source, batch) if files else [],+ "covers": western_artwork.planned_covers(cover_root, source, batch) if files else [],"samples": sample_images.planned_revert(connection, source, batch),"rejections": planned_rejections(connection, source, batch),"tags": planned_tags(connection, source, batch),diff --git a/src/peach/web_auto_landings.py b/src/peach/web_auto_landings.pyindex 57dc28a8e..5b6c9a808 100644--- a/src/peach/web_auto_landings.py+++ b/src/peach/web_auto_landings.py@@ -6,7 +6,7 @@预览与撤回调同一个 `auto_landing_revert.plan`,撤回再调同一个 `apply`,和命令行一字不差:被人改过的资产照旧不动、单独报出。预览给出计划摘要的 `token`;撤回在写锁里重算计划,-对不上就拒绝,确认的就是将要写的。写入前经 `ledger_backups.create` 留一份并查过完整性,回执写出文件名。+对不上就拒绝,确认的就是将要写的。写入前按账本备份的命名留一份,回执写出文件名。"""from __future__ import annotations@@ -14,10 +14,12 @@ import hashlibimport jsonimport timefrom datetime import datetime, timezone+from uuid import uuid4-from . import auto_landing_revert, ledger_backups+from . import auto_landing_revertfrom .library_processing import LABELSfrom .metadata_auto_apply import VERIFIED_REPLACE_RULE, VERIFIED_UNION_RULE+from .migrations import sqlite_backupfrom .web_state import WebContract#: 网页能撤的规则,顺序就是列表里的顺序。@@ -96,8 +98,8 @@ def _plans(contract: WebContract, connection, batches: list[str]) -> list[dict]:raise ValueError(f"这批自动写入已不在,请刷新后重试:{unknown[0]}")plans, seen = [], set()for batch in dict.fromkeys(batches):- planned = auto_landing_revert.plan(connection, rules[batch], batch,- logo_root=contract.logo_root, cover_root=contract.cover_root)+ planned = auto_landing_revert.plan(connection, rules[batch], batch, logo_root=contract.logo_root,+ cover_root=contract.cover_root, files=False)planned["verified"] = [entry for entry in planned["verified"] if entry["item_key"] not in seen]seen.update(entry["item_key"] for entry in planned["verified"])plans.append(planned)@@ -171,7 +173,11 @@ def w_auto_landing_revert(contract: WebContract, body):if _token(plans) != str((body or {}).get("token") or ""):raise ValueError("这几批自动写入已有变化,请重新预览")summary = _summary(connection, plans)- backup = ledger_backups.create(contract.db_path, purpose=BACKUP_PURPOSE)+ # 与标签管理同一个做法:写锁里只复制一份,完整性检查与清退留给账本备份那一轮,+ # 不让任务中心的心跳在这里多等几十秒。+ stamp = datetime.now().strftime("%Y%m%d-%H%M%S")+ backup = contract.db_path.with_name(f"ledger.pre-{BACKUP_PURPOSE}-{stamp}-{uuid4().hex[:8]}.db")+ sqlite_backup(contract.db_path, backup)results = [auto_landing_revert.apply(connection, planned) for planned in plans]contract.cache_bust()return {"ok": True, "batches": [planned["batch"] for planned in plans],diff --git a/web/dist/peach-app.js b/web/dist/peach-app.jsindex 33b38e4ac..1086d260d 100644--- a/web/dist/peach-app.js+++ b/web/dist/peach-app.js@@ -2,7 +2,7 @@(function() {try {var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "55ad84bc-7f0e-4837-a16a-dc8d88edf1a7", e._sentryDebugIdIdentifier = "sentry-dbid-55ad84bc-7f0e-4837-a16a-dc8d88edf1a7");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "2bc2e007-02c3-45a0-b579-10ea1420b7d5", e._sentryDebugIdIdentifier = "sentry-dbid-2bc2e007-02c3-45a0-b579-10ea1420b7d5");} catch {}})();var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {@@ -79350,7 +79350,7 @@ async function T6(e, t) {if (r.status === "rejected") throw r.reason;if (n.status === "rejected") throw n.reason;}-var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-CO7z9DNb.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), P6 = w6(async () => {+var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-c7q-FHJm.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), P6 = w6(async () => {let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-ubxQHJd0.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);return {ConfigurationPage: e,@@ -84597,4 +84597,4 @@ if (!$9) throw Error("主界面宿主缺失");BBe($9);export { BL as $2ec61d1d4f780267$export$a8a3e93435678ff9, JL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, dz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, wD as $72abaeab4d80592f$export$78efe591171d7d45, rB as $76d00c5a4edb230a$export$76ccd210b9029917, eB as $76d00c5a4edb230a$export$816b5d811295e6bc, oB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, cB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, $z as $76d00c5a4edb230a$export$f850895b287ef28e, Uhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Hhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, zhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, fB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Khe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, dE as $ea3928288112382f$export$439d29a4e110a164, wz as $f2ff30fde7b014be$export$3ddf2d174ce01153, jz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Mz as $fe21c36db05242bb$export$d7b12c4107be0d61, kge as $l, Uj as ACCENTS, IAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, LAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, KU as ArtSlot, S2 as BATCH_DELETE_TEXT, J as Button, vL as ButtonLink, WB as Bx, s$ as CLEANUP_ENTRY, o$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Y$ as CONFIGURATION_KEY, HY as CONFIGURATION_URL, RAe as COOKIE_TEXT_LIMIT, j$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, D$ as CUSTOM_SOURCES_KEY, E$ as CUSTOM_SOURCES_URL, oG as CatalogViewToggle, RV as Checkbox, LV as CheckboxGlyph, OV as ChevronSortDown, GU as Chip, tW as CloudDownloadDialog, MH as CollapseChevron, jH as CollapseRegion, e$ as CollectionSummary, mTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, EQ as DIAGNOSTICS_KEY, mEe as DIRECTORY_TEMPLATE_ERROR, cW as DISCOVERY_SORTS, JU as DOWNLOADS_KEY, qU as DOWNLOADS_URL, cY as DUPLICATES_KEY, HJ as DataTableFooter, RJ as DataTableFrame, VJ as DataTableSort, RH as Disclosure, wye as DownloadsPanel, vge as E3, hTe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, IB as Ea, n_e as EmptyFocusButton, uV as EmptyState, IH as ErrorText, Kge as Eu, vve as ExternalLink, Vr as FEEDS_KEY, XY as FEED_SCHEDULE_KEY, i$ as FIELDSET_FOOT, pIe as FLOW_LABEL_X, n6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, z8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, kZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, YY as FOLLOW_SCHEDULE_KEY, xve as Fact, bve as FactList, LH as FieldLabel, _$ as Fieldset, g$ as FieldsetTitle, Bpe as FilterGlass, dL as FilterGlassRows, uL as FilterIconButton, fL as FilterPill, _ve as Footer, VB as Gg, pL as GlassPill, JB as HN, FH as Help, tV as HintText, aIe as IDLE_POLL_MS, rTe as IDLE_REPAIR, oL as IconButton, OQ as IndexSearch, oV as Input, aV as InputBase, y$ as IssueRow, sM as JAV_LAYOUTS, V0 as JAV_RECOMMENDATION_GRID, bX as JUNK_KEY, _W as JavHeader, Zwe as KEEP_LABELS, cge as L1, Ur as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, ZV as LIBRARY_PROCESSING_KEY, PY as LINKS_KEY, FY as LINK_CHECK_KEY, zTe as LINK_KINDS, IY as LINK_PRUNE_KEY, nr as LOC, eV as Label, S$ as LibraryProcessingCard, DV as LibraryShortcuts, pH as LinkButton, jge as Lo, EH as LoadingDots, bge as M6, GTe as MEDIA_PROCESSING_KEY, WTe as MEDIA_PROCESSING_URL, pY as MEDIA_REPAIR_KEY, fY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, MV as MENU_ITEM, NV as MENU_ITEM_INTERACTIVE, jV as MENU_POPOVER_SURFACE, Nge as Ma, _H as MenuDialog, gK as MixCard, sV as ModalFrame, Sx as MotionConfigContext, QB as NR, v$ as NameLink, lV as Note, Qge as OA, eX as ORGANIZE_KEY, y2 as ORGANIZE_PARAMETER_HINT, v2 as ORGANIZE_SCOPE_HINT, _2 as ORGANIZE_TEXT, rX as ORPHAN_RECORDS_KEY, x2 as ORPHAN_RECORDS_TEXT, zB as OV, wB as P7, _X as PERFORMER_DELETE_KEY, Nye as PHASES, UY as PICK_FOLDER_URL, l$ as PLAIN_STAT_STRIP, w$ as PLAYLISTS_KEY, eMe as POLICY_COLUMNS, nMe as POLICY_COVER_NOTE, tMe as POLICY_MATRIX, W1 as POLICY_SUMMARY, BJ as Pagination, x$ as PathLine, XB as Pf, FI as PillTabList, iAe as PlainStat, OH as Progress, vY as QUALITY_GOALS_KEY, YB as RB, R0 as RELEASE_COLUMN_VISIBILITY_KEY, L0 as RELEASE_COLUMN_WIDTHS_KEY, lW as RELEASE_SORTS, AMe as RELEASE_SORT_COLUMNS, d$ as REPAIR_CARD_TEXT, mY as REPAIR_LIBRARIES_KEY, cX as RESOURCE_APPLY_KEY, sX as RESOURCE_SCAN_KEY, b2 as RESOURCE_SYNC_TEXT, uAe as RESULT_PANEL, dAe as RESULT_SECTION, pTe as REVIEW_CATEGORIES, yX as REVIEW_COUNTS_KEY, gTe as REVIEW_DECISION_LABELS, xY as REVIEW_KEY, SY as REVIEW_LABELS, wY as REVIEW_QUEUES, TY as REVIEW_QUEUE_LABELS, LG as RetryNote, Xge as Rf, $B as Rk, mve as Rows, PAe as SCRAPING_CHECK_URL, k$ as SCRAPING_COVER_URL, A$ as SCRAPING_KEY, NAe as SCRAPING_SETTINGS_URL, iU as SEGMENT, rU as SEGMENTED_TRACK, JY as SETTINGS_KEY, WY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, D3 as STATS_KEY, nAe as STAT_STRIP, rAe as STAT_STRIP_SIX, pve as Section, fAe as SectionHeading, gve as SectionSkeleton, nU as SegmentedRadioGroup, Ive as SegmentedTabList, AG as Segments, zJ as Select, HU as Select$1, $$ as SelectField, UU as SelectItem, YJ as SelectionActions, xj as SelectionDock, XJ as SelectionPopover, NH as SettingsCard, fve as SettingsRow, PH as SettingsSectionLabel, jG as Shuffle, Tve as SiteLabel, cG as SortDirectionIcon, MG as SortKeys, lQ as SourceAvatar, HH as SourceLabel, zH as SourceMark, hve as Stack, aAe as StatCard, b$ as StatusLabel, qge as Su, a4 as Switch, WI as TASKS_KEY, JFe as TASTE_REFRESH_KEY, YFe as TASTE_WINDOWS, ZY as THUMBNAIL_JOBS_KEY, SX as TRASH_KEY, ype as TRIGGER_LABELS, DJ as Table, ZJ as TableColumnControls, QJ as TableColumnResizer, eY as TableSelectionHeader, YQ as TagManager, yve as TaskCenterLink, kH as TaskProgress, rV as TextField, nV as TextFieldContext, LB as Un, Zge as Uz, rW as WANTS_KEY, b4 as WantMagnets, Yg as WithPromise, OB as Wt, FB as Xc, ZB as Xf, AB as Xl, kB as Xt, EB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, qB as _p, Yge as aB, Ei as addAlias, Ti as addSource, aW as addWant, dS as animate, B as apiGet, V as apiSend, tM as appSettingsStore, NEe as applyConfirmText, gX as applyLeftovers, MEe as applyPlanText, FEe as applyText, aM as applyTheme, by as asNumber, xEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, hq as autoResetPageIndex, _o as avatarInner, N3 as bandRows, hEe as baseName, nTe as batchOperate, Fue as beginPlayerGuidePreview, Ej as boundedPreference, $we as bulkCloudPreferences, mV as busyProps, Jge as cB, CPe as cachedMagnetStates, Ug as calcGeneratorVelocity, CTe as canApprove, vg as cancelFrame, EEe as candidateText, SU as cardClass, bM as cardRatio, FJ as catalogListSkeletonCellHtml, PB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, UTe as checkLine, Hi as checkReceipt, Ui as checkSummary, BAe as checkText, Ki as checkedText, rK as clickedBlank, Q5 as closeDrawerAfterNav, Gwe as cloudLocations, T0 as cloudProxySkeleton, WC as clsx, Ige as cn, lv as collectMotionValues, Fq as columnVisibilityFeature, SJ as column_getCanSort, vJ as column_getSortFn, xTe as commonReviewSources, eW as composingKey, Af as configurationSection, $Fe as configureTasteBrowser, ll as confirmModal, _pe as controlTask, ZK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Eq as createColumnHelper, DAe as createPlaylist, Xi as credentialDone, x0 as credentialsSkeleton, MTe as currentReviewRow, q as cx, xge as d6, UB as dZ, kTe as decisionPayload, ATe as decisionReceipt, OTe as defaultChoice, LEe as deletePerformerVideos, kAe as deletePlaylist, k0 as devicesSkeleton, x as diagnosticHeaders, U1 as diagnosticsSkeleton, Hye as discoveryArtwork, uW as discoveryKey, zye as discoveryScore, d9 as disposeStage, Ywe as distinctName, Bi as dropSources, Gge as du, eTe as duplicateVictims, ZI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, mq as expandRowModel, _B as f1, bo as facePos, ei as feedIntervalText, F$ as fetchAmaneBridge, vi as fetchCheckJob, X$ as fetchConfiguration, P$ as fetchCoverJob, _i as fetchCredentials, O$ as fetchCustomSources, vX as fetchDeletePerformers, IEe as fetchDeletePlan, DQ as fetchDiagnostics, dW as fetchDiscoveries, uY as fetchDuplicates, ppe as fetchEarlier, JTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, qTe as fetchFollowSchedule, wX as fetchJunkSummary, aH as fetchLibraryProcessing, zY as fetchLinkCheck, BY as fetchLinkPrune, RY as fetchLinkStats, KTe as fetchMediaProcessing, hY as fetchMediaRepair, br as fetchMediaSources, tX as fetchOrganize, sEe as fetchOrganizeExample, iX as fetchOrphanRecords, ji as fetchPending, T$ as fetchPlaylists, yY as fetchQualityGoals, mW as fetchReleases, gY as fetchRepairLibraries, yi as fetchResolveJob, uX as fetchResourceApply, lX as fetchResourceScan, jY as fetchReview, CX as fetchReviewCounts, QY as fetchSettings, N$ as fetchSources, O3 as fetchStats, bi as fetchSuggestions, KI as fetchTasks, $3 as fetchTaste, eIe as fetchTasteJob, YTe as fetchThumbnailJobs, TX as fetchTrashSummary, iW as fetchWants, yTe as filterReviewRows, er as firstGrapheme, NK as flexRender, hIe as flowGraph, gIe as flowLabel, mFe as fmtCount, Jn as fmtDur, Xn as fmtSize, fpe as foldByKind, kpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, jpe as followupDetail, dpe as followupTally, _g as frame, SB as g4, Rq as getDefaultPaginationState, yM as gridLayout, li as groupByAuthor, Ope as groupFollowups, OY as groupReviewRows, AEe as hasChanges, dX as hasResourceRoots, JI as hasResultProblems, oIe as historySpan, vB as i2, iIe as importTasteExport, S0 as indexersSkeleton, zg as interpolate, sW as invalidateWants, XI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, CY as isReviewCategory, Ape as isRoutine, C0 as javBrowserSkeleton, U0 as javContentSkeleton, fM as javLayout, H0 as javTagSkeleton, HEe as junkBreakdown, AAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, k3 as known, sge as l1, mge as l7, Dpe as latestOfKind, $n as leadingGraphemes, EFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, CB as m7, HB as mM, Dn as mapLimit, Ai as markItem, P3 as max, wFe as mediumRows, mpe as mergeFinished, F3 as min, LTe as mirrorText, oTe as missingToolText, dY as mixedCloudPreferences, tL as momentText, fS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, Sge as oe, _Ee as organizeOutcome, a2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, DTe as pendingGenres, gFe as percentText, uEe as pickOrganizeFolder, c$ as plainStatClass, gEe as planSummary, A3 as playedFor, vFe as playedItemUrl, GI as pollInterval, Ys as popCount, EAe as posterUrl, hxe as previewLibraryColor, lEe as previewOrganize, lTe as previewUrl, Tpe as problemDestination, eH as processingActive, QI as progressText, VH as providerIcon, HTe as pruneText, pX as purgeCount, SEe as purgeOrphan, GB as pv, Wge as qE, H as queryClient, yB as r2, fIe as radarRows, xFe as radialArc, SFe as radialBarSize, bFe as radialCeiling, yFe as radialSlices, IN as randomId, uIe as rankDetail, dIe as rankShares, M3 as reachedShare, $I as readableErrorHeadline, Bye as recommendationScore, NTe as recordGenre, wEe as recordsText, jAe as recreatePlaylist, wAe as refreshPlaylists, El as relayoutCovers, z0 as releaseColumns, fW as releaseFilters, pW as releaseKey, Vi as reloadFollowManage, ITe as reloadReview, aMe as rememberShape, fEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, rIe as removeTasteSource, oW as removeWants, Oi as renameAliasGroup, OAe as renamePlaylist, Se as replaceEqualDeep, OFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, qK as require_with_selector, Iye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, J_e as restartEffectText, TAe as resumeAssetId, vTe as reviewGroupingOptions, DY as reviewQueueData, EY as reviewQueueOf, VEe as reviewSummary, bTe as reviewWindow, TTe as rowEvidence, AY as rowFieldName, Gq as rowPaginationFeature, fJ as rowSelectionFeature, TJ as rowSortingFeature, kY as rowSubject, ETe as rowTags, wTe as rowTitle, dge as s5, ki as saveCredential, jEe as scanLine, eEe as schedulePollInterval, Rye as searchNote, STe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, FTe as settleReviewRows, Jwe as sharedNamePrefix, Pp as shellNavigate, D8 as showToast, Bn as siteMarkUrl, aq as skipFirstRun, NI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, PEe as sourceMeta, Bs as spinnerHtml, Lg as spring, fV as spriteGlyph, xi as startCheck, BTe as startLinkCheck, VTe as startLinkPrune, dEe as startOrganize, Si as startResolve, OEe as startResourceApply, DEe as startResourceScan, nIe as startTasteRefresh, tAe as statCardClass, xpe as statusLabel, aTe as statusLine, Qr as statusText, xM as storeJavLayout, jTe as submitDecision, nL as summaryItems, Dq as tableFeatures, oq as tableMemo, di as tableRows, wpe as taskIssues, Epe as taskSubject, e6 as tasteDate, cIe as tasteDimensions, sIe as tasteHours, Q3 as tasteKey, ZFe as tasteRefetchInterval, QFe as tasteTime, zI as textLang, I0 as tierPlaceholdersHtml, ch as time, Dge as tl, hi as toggleGroup, t6 as topScores, Rge as um, Mge as uo, mH as useAction, wZ as useBackgroundJob, aG as useCatalogView, PU as useClientUpdates, bm as useConstant, rL as useEntityNames, lL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, nK as useLibraryTints, It as useMutation, zV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, eS as useReducedMotion, $Te as useRunSchedule, ZTe as useSaveFollowSchedule, $Y as useSaveSettings, tEe as useSaveThumbnailMode, EJ as useTable, GJ as useTablePreferences, gL as useViewGlide, tTe as victimBytes, Oge as vl, Lye as wantName, _Fe as watchNote, j3 as watchedShare, Ac as wireHorizontalScroller, pEe as withOrganizeJob, Vye as writeJavQuery, yge as z3 };-//# debugId=55ad84bc-7f0e-4837-a16a-dc8d88edf1a7\ No newline at end of file+//# debugId=2bc2e007-02c3-45a0-b579-10ea1420b7d5\ No newline at end of filediff --git a/web/dist/peach-app.review-page-CO7z9DNb.js b/web/dist/peach-app.review-page-c7q-FHJm.jssimilarity index 98%rename from web/dist/peach-app.review-page-CO7z9DNb.jsrename to web/dist/peach-app.review-page-c7q-FHJm.jsindex 77bedbb49..2c05f0f41 100644--- a/web/dist/peach-app.review-page-CO7z9DNb.js+++ b/web/dist/peach-app.review-page-c7q-FHJm.js@@ -1,7 +1,7 @@(function() {try {var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1782917c-5973-404e-b283-0af9db690636", e._sentryDebugIdIdentifier = "sentry-dbid-1782917c-5973-404e-b283-0af9db690636");+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5472de0a-fea3-4c25-9117-dc0ae527554b", e._sentryDebugIdIdentifier = "sentry-dbid-5472de0a-fea3-4c25-9117-dc0ae527554b");} catch {}})();import { $b4f18e3395fe64d7$export$3d96ec278d3efce4 as e, $b4f18e3395fe64d7$export$3e41faf802a29e71 as t, $b4f18e3395fe64d7$export$b2539bed5023c21c as n, $ea3928288112382f$export$439d29a4e110a164 as r, $fe21c36db05242bb$export$a98f0dcb43a68a25 as i, $fe21c36db05242bb$export$d7b12c4107be0d61 as a, Button as o, ButtonLink as s, Checkbox as c, CheckboxGlyph as l, Chip as u, CollapseChevron as d, CollapseRegion as f, DEFAULT_CATEGORY as p, ENTITY_REVIEW_KINDS as m, Ea as h, EmptyState as ee, ExternalLink as g, FIELDSET_FOOT as _, FilterGlassRows as v, Gg as y, InputBase as te, LinkButton as ne, Note as b, REVIEW_CATEGORIES as x, REVIEW_DECISION_LABELS as re, REVIEW_KEY as S, REVIEW_LABELS as C, REVIEW_QUEUES as w, REVIEW_QUEUE_LABELS as T, Select as E, SelectItem as D, SelectionActions as O, SelectionDock as k, TextField as A, Wt as j, __toESM as M, apiGet as N, apiSend as P, avatarInner as F, busyProps as I, canApprove as ie, cardClass as L, commonReviewSources as ae, composingKey as R, confirmModal as oe, currentReviewRow as se, cx as z, decisionPayload as ce, decisionReceipt as le, defaultChoice as ue, errorMessage as B, fetchReview as de, filterReviewRows as fe, groupReviewRows as pe, isReviewCategory as me, l7 as he, localTime as ge, m7 as _e, mirrorText as ve, paginationRange as ye, pendingGenres as be, queryClient as V, recordGenre as xe, reloadReview as Se, require_jsx_runtime as Ce, require_react as H, reviewGroupingOptions as we, reviewQueueData as Te, reviewQueueOf as Ee, reviewWindow as De, rowEvidence as U, rowFieldName as W, rowSubject as Oe, rowTags as ke, rowTitle as G, selectReviewRange as Ae, settleReviewRows as je, spinnerHtml as Me, submitDecision as Ne, useMutation as Pe, useOverlayScrollbar as K, useQuery as Fe, useViewGlide as Ie } from "./peach-app.js";@@ -26,16 +26,16 @@ function X(e) {];}function Z(e) {- let t = [e.restores.length ? `改回 ${e.restores.length} 部作品的资料` : "", e.tags.length ? `删除 ${e.tags.length} 个自动补上的标签` : ""].filter(Boolean);+ let t = [e.restores.length ? `改回 ${e.restores.length} 条资料` : "", e.tags.length ? `删除 ${e.tags.length} 个自动补上的标签` : ""].filter(Boolean);return [`将撤回 ${e.batches.length} 批自动写入:${t.join(",") || "没有要改的资料"}。`,- e.changed.length ? `${e.changed.length} 部作品写入后又被修改或已删除,不改动。` : "",+ e.changed.length ? `${e.changed.length} 条资料写入后被修改过或作品已删除,不改动。` : "",e.other_batches.length ? `所选标签的补写记录还连带 ${e.other_batches.length} 个其他批次,一并撤回。` : "","撤回前会自动备份账本。下一轮资料处理仍按同一判据判断,可能再次写入。"].filter(Boolean).join("");}function Ye(e) {- let t = [e.restored ? `改回 ${e.restored} 部作品的资料` : "", e.removed_tags ? `删除 ${e.removed_tags} 个标签` : ""].filter(Boolean);+ let t = [e.restored ? `改回 ${e.restored} 条资料` : "", e.removed_tags ? `删除 ${e.removed_tags} 个标签` : ""].filter(Boolean);return `已撤回 ${e.batches.length} 批自动写入${t.length ? `:${t.join(",")}` : ""}`;}// src/react/review/auto-landings-card.tsx@@ -71,7 +71,7 @@ function Ze({ locked: e, openItem: t, toast: n }) {children: `撤回前的账本已备份为 ${a.backup}。`}), a.changed.length ? /* @__PURE__ */ (0, Q.jsxs)("p", {className: "flex flex-wrap items-center gap-x-2 gap-y-1 text-body-2-regular",- children: [`${a.changed.length} 部作品写入后又被修改或已删除,未改动:`, a.changed.map((e) => e.gone ? /* @__PURE__ */ (0, Q.jsx)("span", {+ children: [`${a.changed.length} 条资料写入后被修改过或作品已删除,未改动:`, a.changed.map((e) => e.gone ? /* @__PURE__ */ (0, Q.jsx)("span", {className: "text-text-secondary",children: `#${e.asset_id}(已删除)`}, `${e.asset_id}:${e.field}`) : /* @__PURE__ */ (0, Q.jsx)(ne, {@@ -1813,4 +1813,4 @@ function Jt(r) {}export { Jt as ReviewPage };-//# debugId=1782917c-5973-404e-b283-0af9db690636\ No newline at end of file+//# debugId=5472de0a-fea3-4c25-9117-dc0ae527554b\ No newline at end of file