dsh-life-pack 0.3.74 → 0.3.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -471,7 +471,7 @@ window.__ModuleLoader__.load({
471
471
  path: "/api/ilife-manager"
472
472
  };
473
473
  //#endregion
474
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/config.js
474
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/config.js
475
475
  const DEFAULT_PANEL_POLL_MS = 1e3;
476
476
  function assertPrefix(value, role) {
477
477
  if (typeof value !== "string" || value.length === 0) throw new Error("[dsh-plugin-update] " + role + " 非法:须为非空字符串(收到 " + JSON.stringify(value) + ")");
@@ -493,7 +493,7 @@ window.__ModuleLoader__.load({
493
493
  return buildPhoneNames(prefix).logAppend;
494
494
  }
495
495
  //#endregion
496
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/hash.js
496
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/hash.js
497
497
  function hash8(value) {
498
498
  try {
499
499
  const text = String(value ?? "");
@@ -505,7 +505,7 @@ window.__ModuleLoader__.load({
505
505
  }
506
506
  }
507
507
  //#endregion
508
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/version-judgment.js
508
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/version-judgment.js
509
509
  function updateError(code) {
510
510
  return Object.assign(new Error(code), { code });
511
511
  }
@@ -592,7 +592,7 @@ window.__ModuleLoader__.load({
592
592
  return 0;
593
593
  }
594
594
  //#endregion
595
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/codes.js
595
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/codes.js
596
596
  const BLOCKED_REASONS = [
597
597
  "unknown-profile",
598
598
  "channel-mismatch",
@@ -630,7 +630,7 @@ window.__ModuleLoader__.load({
630
630
  }
631
631
  [...CORE_ERROR_CODES];
632
632
  //#endregion
633
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/lang.js
633
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/lang.js
634
634
  function normalizeLangTag(tag) {
635
635
  if (typeof tag !== "string") return "zh";
636
636
  const s = tag.trim().toLowerCase().replace(/_/g, "-");
@@ -772,7 +772,7 @@ window.__ModuleLoader__.load({
772
772
  };
773
773
  }
774
774
  //#endregion
775
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/bilingual.js
775
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/bilingual.js
776
776
  const BILINGUAL_STRINGS = {
777
777
  "entry.label.idle": {
778
778
  en: "Check for updates",
@@ -2290,8 +2290,8 @@ window.__ModuleLoader__.load({
2290
2290
  draft: true
2291
2291
  },
2292
2292
  "batch.hint.installing-queueable": {
2293
- en: "Installing {a}; {b} more can join the queue.",
2294
- zh: "正在安装 {a} 个;另有 {b} 个可选择「加入队列」等待。",
2293
+ en: "Installing {a}; {b} more are queued and will install automatically.",
2294
+ zh: "正在安装 {a} 个;队列里还有 {b} 个,会自动依次安装。",
2295
2295
  draft: true
2296
2296
  },
2297
2297
  "batch.hint.installing-auto": {
@@ -2429,6 +2429,16 @@ window.__ModuleLoader__.load({
2429
2429
  zh: "已排队 · 前方还有 {n} 项",
2430
2430
  draft: true
2431
2431
  },
2432
+ "batch.row.batch-queued": {
2433
+ en: "In batch queue · installs automatically",
2434
+ zh: "已在队列 · 会自动依次安装",
2435
+ draft: true
2436
+ },
2437
+ "batch.ledger.checking": {
2438
+ en: "Re-checking latest versions…",
2439
+ zh: "正在按最新版本重新检查…",
2440
+ draft: true
2441
+ },
2432
2442
  "batch.row.skipped": {
2433
2443
  en: "Skipped {version}",
2434
2444
  zh: "已跳过版本 {version}",
@@ -2505,8 +2515,8 @@ window.__ModuleLoader__.load({
2505
2515
  draft: true
2506
2516
  },
2507
2517
  "batch.row-action.queue": {
2508
- en: "Join queue",
2509
- zh: "加入队列",
2518
+ en: "Install next",
2519
+ zh: "优先安装",
2510
2520
  draft: true
2511
2521
  },
2512
2522
  "batch.row-action.install-row": {
@@ -2859,7 +2869,7 @@ window.__ModuleLoader__.load({
2859
2869
  }
2860
2870
  const BILINGUAL_CSS = [".dsh-upd-bi{display:inline;overflow-wrap:anywhere}", ".dsh-upd-bi [lang]{overflow-wrap:anywhere}"].join("\n");
2861
2871
  //#endregion
2862
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/changelog.js
2872
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/changelog.js
2863
2873
  const CHANGELOG_MAX_CHARS = 65536;
2864
2874
  const CHANGELOG_ALL_CATEGORIES = [
2865
2875
  "Added",
@@ -3978,7 +3988,7 @@ ${note}${blocks.join("\n")}
3978
3988
  }
3979
3989
  }
3980
3990
  //#endregion
3981
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/log-events.js
3991
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/log-events.js
3982
3992
  const LOG_EVENT_CALL = "host.call";
3983
3993
  const LOG_EVENT_CALL_FAIL = "host.call.fail";
3984
3994
  const LOG_EVENT_INSTALL_EXEC = "update.install.exec";
@@ -4295,7 +4305,7 @@ ${note}${blocks.join("\n")}
4295
4305
  };
4296
4306
  }
4297
4307
  //#endregion
4298
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/log/panel-client.js
4308
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/log/panel-client.js
4299
4309
  const RENDER_FAIL_DEDUPE_MS = 6e4;
4300
4310
  function createPanelClientLogShell(options) {
4301
4311
  const option = options.clientLog;
@@ -4436,7 +4446,7 @@ ${note}${blocks.join("\n")}
4436
4446
  };
4437
4447
  }
4438
4448
  //#endregion
4439
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/commands.js
4449
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/commands.js
4440
4450
  const MANUAL_SUPPRESSING_REASONS = [
4441
4451
  "source-install",
4442
4452
  "unknown-profile",
@@ -4446,7 +4456,7 @@ ${note}${blocks.join("\n")}
4446
4456
  return reason !== null && reason !== void 0 && MANUAL_SUPPRESSING_REASONS.includes(reason);
4447
4457
  }
4448
4458
  //#endregion
4449
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/manual-absent.js
4459
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/manual-absent.js
4450
4460
  const REASON_KEYS = {
4451
4461
  "unknown-profile": "panel.manual.absent.unknown-profile",
4452
4462
  "source-install": "panel.manual.absent.source-install",
@@ -4482,7 +4492,7 @@ ${note}${blocks.join("\n")}
4482
4492
  return manualAbsentReasonTextOf(null, lang) + joiner + manualAbsentReasonTextOf(reason, lang);
4483
4493
  }
4484
4494
  //#endregion
4485
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/last-resort.js
4495
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/last-resort.js
4486
4496
  const STAGES = [
4487
4497
  "install",
4488
4498
  "check",
@@ -4582,7 +4592,7 @@ ${note}${blocks.join("\n")}
4582
4592
  return verdict("unknown");
4583
4593
  }
4584
4594
  //#endregion
4585
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/install-cause.js
4595
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/install-cause.js
4586
4596
  const CAUSE_KINDS = ["minimum-release-age"];
4587
4597
  const CAUSE_SIGNATURES = [{
4588
4598
  kind: "minimum-release-age",
@@ -4702,7 +4712,7 @@ ${note}${blocks.join("\n")}
4702
4712
  }
4703
4713
  }
4704
4714
  //#endregion
4705
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/redaction.js
4715
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/redaction.js
4706
4716
  const COPY_BUDGET_CHARS = 1500;
4707
4717
  const REDACTED_PATH = "<路径>";
4708
4718
  const REDACTED_SECRET = "<脱敏>";
@@ -4782,7 +4792,7 @@ ${note}${blocks.join("\n")}
4782
4792
  return userinfo.masked ? truncateWithMaskNote(scrubbed, COPY_BUDGET_CHARS) : truncateForCopy(scrubbed);
4783
4793
  }
4784
4794
  //#endregion
4785
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/panel-copy.js
4795
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/panel-copy.js
4786
4796
  const BLOCKED_KEYS = {
4787
4797
  "unknown-profile": {
4788
4798
  title: "panel.blocked.unknown-profile.title",
@@ -5200,7 +5210,7 @@ ${note}${blocks.join("\n")}
5200
5210
  return blockLines.join("\n");
5201
5211
  }
5202
5212
  //#endregion
5203
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/panel.js
5213
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/panel.js
5204
5214
  function normalizePanelTheme(value) {
5205
5215
  return value === "archive" ? "archive" : "default";
5206
5216
  }
@@ -6419,7 +6429,7 @@ ${UPDATE_PANEL_ARCHIVE_CSS}` : UPDATE_PANEL_CSS}</style>
6419
6429
  ${body}`;
6420
6430
  }
6421
6431
  //#endregion
6422
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/entry.js
6432
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/entry.js
6423
6433
  const UPDATE_ENTRY_CSS = [
6424
6434
  ".dsh-upd-entry{display:inline-flex;align-items:center;gap:8px;font:13px/1.6 var(--dsh-update-font-sans,system-ui,\"Microsoft YaHei\",sans-serif);font-size:var(--dsh-update-entry-font-size,13px);color:var(--dsh-update-text,#1f2937)}",
6425
6435
  ".dsh-upd-entry-btn{font:inherit;border:1px solid var(--dsh-update-border,#d1d5db);border-radius:var(--dsh-update-entry-border-radius,6px);",
@@ -6533,7 +6543,7 @@ ${body}`;
6533
6543
  }
6534
6544
  }
6535
6545
  //#endregion
6536
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/panel-batch.js
6546
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/panel-batch.js
6537
6547
  const BATCH_PANEL_POLL = {
6538
6548
  defaultMs: 1500,
6539
6549
  minMs: 250
@@ -6834,6 +6844,7 @@ ${body}`;
6834
6844
  lang,
6835
6845
  knowledge: null,
6836
6846
  inRound: false,
6847
+ staleResults: input.staleResults === true,
6837
6848
  worldLatest: null,
6838
6849
  fallbackCandidate: null,
6839
6850
  fallbackBusy: false,
@@ -6897,6 +6908,7 @@ ${body}`;
6897
6908
  lang,
6898
6909
  knowledge,
6899
6910
  inRound,
6911
+ staleResults: input.staleResults === true,
6900
6912
  worldLatest: worldUpdateVersion(row, knowledge, sessionUpdatedAtOf(input.session, row.key)),
6901
6913
  fallbackCandidate: offerCand && offerTarget === latest ? offerCand : null,
6902
6914
  fallbackBusy: fallbackBusyKey === row.key,
@@ -6904,7 +6916,10 @@ ${body}`;
6904
6916
  }));
6905
6917
  }
6906
6918
  parts.push("</div>");
6907
- if (total > 0) parts.push("<div class=\"dsh-upd-batch-ledger\">" + escapeHtml$2(batchLedgerText(counts, lang)) + "</div>");
6919
+ if (total > 0) {
6920
+ const ledgerText = input.staleResults === true ? batchText("batch.ledger.checking", lang) : batchLedgerText(counts, lang);
6921
+ parts.push("<div class=\"dsh-upd-batch-ledger\">" + escapeHtml$2(ledgerText) + "</div>");
6922
+ }
6908
6923
  if (showControls) {
6909
6924
  const more = [];
6910
6925
  more.push("<button type=\"button\" data-act=\"resume\" title=\"" + escapeHtml$2(batchText("batch.action.resume-title", lang)) + "\">" + escapeHtml$2(batchText("batch.action.resume", lang, { count: String(unfinished) })) + "</button>");
@@ -7116,15 +7131,16 @@ ${body}`;
7116
7131
  const position = queued ? queuePositionOf(row) : null;
7117
7132
  const rowDone = phase === "failed" && !queued ? compliantInstalledOf(row) : null;
7118
7133
  const versionHTML = batchRowVersionHTML(row, ctx.knowledge, ctx.lang);
7119
- const rowStatusText = rowDone !== null ? rowDone.needsRestart ? batchText("batch.row.done-restart", ctx.lang) : batchText("batch.row.done", ctx.lang) : queued ? batchQueuedStatus(position, ctx.lang) : ctx.worldLatest !== null ? batchText("batch.row.update", ctx.lang, { version: ctx.worldLatest }) : ctx.inRound ? batchRowKnowledgeText(row, ctx.knowledge, ctx.lang) ?? batchRowStatus(row, skipped, ctx.lang) : batchRowPendingStatus(row, ctx.knowledge, ctx.lang) ?? batchRowStatus(row, skipped, ctx.lang);
7134
+ const rowStatusText = ctx.staleResults && (phase === "done" || phase === "current") ? batchText("batch.row.checking", ctx.lang) : rowDone !== null ? rowDone.needsRestart ? batchText("batch.row.done-restart", ctx.lang) : batchText("batch.row.done", ctx.lang) : queued ? batchQueuedStatus(position, ctx.lang) : phase === "ready" && ctx.inRound && ctx.busy ? batchText("batch.row.batch-queued", ctx.lang) : ctx.worldLatest !== null ? batchText("batch.row.update", ctx.lang, { version: ctx.worldLatest }) : ctx.inRound ? batchRowKnowledgeText(row, ctx.knowledge, ctx.lang) ?? batchRowStatus(row, skipped, ctx.lang) : batchRowPendingStatus(row, ctx.knowledge, ctx.lang) ?? batchRowStatus(row, skipped, ctx.lang);
7120
7135
  const lastResortBadge = batchRowLastResortOf(row).kind === "last-resort" ? "<span class=\"dsh-upd-lr-rowbadge\" data-last-resort=\"last-resort\">" + escapeHtml$2(batchText("batch.lastresort.row-badge", ctx.lang)) + "</span>" : "";
7121
7136
  const actions = [];
7122
7137
  const off = ctx.inFlight ? " disabled" : "";
7123
7138
  if (phase === "installing") actions.push("<button type=\"button\" class=\"dsh-upd-busy-btn\" data-act=\"row-install\" data-key=\"" + keyAttr + "\" data-busy=\"1\" aria-busy=\"true\" disabled>" + escapeHtml$2(batchText("batch.row-action.installing", ctx.lang)) + "</button>");
7124
7139
  else if (queued) {
7125
7140
  if (cancelQueuePhoneOf(row) !== null && queuedRequestIdOf(row) !== null) actions.push("<button type=\"button\" data-act=\"row-cancel-queue\" data-key=\"" + keyAttr + "\"" + off + ">" + escapeHtml$2(batchText("batch.row-action.cancel-queue", ctx.lang)) + "</button>");
7126
- } else if (phase === "ready" && skipped === null) actions.push("<button type=\"button\" data-act=\"row-install\" data-key=\"" + keyAttr + "\" data-primary=\"1\"" + off + ">" + escapeHtml$2(ctx.busy ? batchText("batch.row-action.queue", ctx.lang) : batchText("batch.row-action.install-row", ctx.lang)) + "</button>");
7127
- else if (phase === "ready" && skipped !== null) actions.push("<button type=\"button\" data-act=\"row-resume-skip\" data-key=\"" + keyAttr + "\"" + off + ">" + escapeHtml$2(batchText("batch.row-action.unskip", ctx.lang, { version: skipped })) + "</button>");
7141
+ } else if (phase === "ready" && skipped === null) {
7142
+ if (!(ctx.inRound && ctx.busy)) actions.push("<button type=\"button\" data-act=\"row-install\" data-key=\"" + keyAttr + "\" data-primary=\"1\"" + off + ">" + escapeHtml$2(ctx.busy ? batchText("batch.row-action.queue", ctx.lang) : batchText("batch.row-action.install-row", ctx.lang)) + "</button>");
7143
+ } else if (phase === "ready" && skipped !== null) actions.push("<button type=\"button\" data-act=\"row-resume-skip\" data-key=\"" + keyAttr + "\"" + off + ">" + escapeHtml$2(batchText("batch.row-action.unskip", ctx.lang, { version: skipped })) + "</button>");
7128
7144
  else if (phase === "failed") {
7129
7145
  actions.push("<button type=\"button\" data-act=\"row-install\" data-key=\"" + keyAttr + "\"" + off + ">" + escapeHtml$2(ctx.busy ? batchText("batch.row-action.queue", ctx.lang) : batchText("batch.row-action.retry", ctx.lang)) + "</button>");
7130
7146
  if (!queued && rowDone === null) actions.push(rowFallbackButtonHTML(row, ctx));
@@ -7147,7 +7163,7 @@ ${body}`;
7147
7163
  const codeEsc = escapeHtml$2(failCode);
7148
7164
  return "<span class=\"dsh-upd-bfail\">" + (escaped.includes(codeEsc) ? escaped.replace(codeEsc, "<code>" + codeEsc + "</code>") : escaped) + "</span>";
7149
7165
  })() : "";
7150
- const main = "<button type=\"button\" class=\"dsh-upd-brow-main\" data-act=\"toggle-details\" data-key=\"" + keyAttr + "\" aria-expanded=\"" + (ctx.expanded ? "true" : "false") + "\"><span class=\"dsh-upd-updot\" data-tone=\"" + dotToneOf(row, phase, skipped, queued, ctx.worldLatest, rowDone === null ? null : rowDone.needsRestart) + "\"></span><span class=\"dsh-upd-bname\">" + escapeHtml$2(titleOf(row, ctx.titles)) + "</span>" + versionHTML + "<span class=\"dsh-upd-bstat\">" + lastResortBadge + escapeHtml$2(rowStatusText) + (ctx.inRound && !queued ? "(" + escapeHtml$2(batchText("batch.row.unfinished-tag", ctx.lang)) + ")" : "") + "</span>" + failLine + "</button>";
7166
+ const main = "<button type=\"button\" class=\"dsh-upd-brow-main\" data-act=\"toggle-details\" data-key=\"" + keyAttr + "\" aria-expanded=\"" + (ctx.expanded ? "true" : "false") + "\"><span class=\"dsh-upd-updot\" data-tone=\"" + dotToneOf(row, phase, skipped, queued, ctx.worldLatest, rowDone === null ? null : rowDone.needsRestart) + "\"></span><span class=\"dsh-upd-bname\">" + escapeHtml$2(titleOf(row, ctx.titles)) + "</span>" + versionHTML + "<span class=\"dsh-upd-bstat\">" + lastResortBadge + escapeHtml$2(rowStatusText) + (ctx.inRound && !queued && phase === "failed" ? "(" + escapeHtml$2(batchText("batch.row.unfinished-tag", ctx.lang)) + ")" : "") + "</span>" + failLine + "</button>";
7151
7167
  return "<div class=\"dsh-upd-brow-set\" data-key=\"" + keyAttr + "\"><div class=\"dsh-upd-brow\" data-phase=\"" + escapeHtml$2(phase) + "\" data-key=\"" + keyAttr + "\"" + (queued ? " data-queued=\"1\"" : "") + ">" + main + "<span class=\"dsh-upd-brow-actions\">" + actions.join("") + "</span></div></div>";
7152
7168
  }
7153
7169
  function detailActionsHTML(row, ctx) {
@@ -7166,7 +7182,9 @@ ${body}`;
7166
7182
  const fallback = rowFallbackButtonHTML(row, ctx);
7167
7183
  if (fallback) buttons.push(fallback);
7168
7184
  }
7169
- } else if (phase === "ready" && ctx.skipped === null) buttons.push("<button type=\"button\" data-act=\"row-install\" data-key=\"" + keyAttr + "\" data-primary=\"1\"" + off + ">" + escapeHtml$2(ctx.busy ? batchText("batch.row-action.queue", ctx.lang) : version !== null ? batchText("batch.row-action.install-version", ctx.lang, { version }) : batchText("batch.row-action.install-generic", ctx.lang)) + "</button>");
7185
+ } else if (phase === "ready" && ctx.skipped === null) {
7186
+ if (!(ctx.inRound && ctx.busy)) buttons.push("<button type=\"button\" data-act=\"row-install\" data-key=\"" + keyAttr + "\" data-primary=\"1\"" + off + ">" + escapeHtml$2(ctx.busy ? batchText("batch.row-action.queue", ctx.lang) : version !== null ? batchText("batch.row-action.install-version", ctx.lang, { version }) : batchText("batch.row-action.install-generic", ctx.lang)) + "</button>");
7187
+ }
7170
7188
  if (phase !== "installing" && singleCheckPhoneOf(row) !== null) buttons.push("<button type=\"button\" data-act=\"row-check\" data-key=\"" + keyAttr + "\"" + off + ">" + escapeHtml$2(batchText("batch.action.check", ctx.lang)) + "</button>");
7171
7189
  if (!queued && phase === "ready" && ctx.skipped === null && version !== null) buttons.push("<button type=\"button\" data-act=\"row-skip\" data-key=\"" + keyAttr + "\"" + off + ">" + escapeHtml$2(batchText("batch.row-action.skip", ctx.lang)) + "</button>");
7172
7190
  if (ctx.skipped !== null) buttons.push("<button type=\"button\" data-act=\"row-resume-skip\" data-key=\"" + keyAttr + "\"" + off + ">" + escapeHtml$2(batchText("batch.row-action.unskip", ctx.lang, { version: ctx.skipped })) + "</button>");
@@ -7958,6 +7976,7 @@ ${body}`;
7958
7976
  skippedVersions: skippedVersionsOf(),
7959
7977
  inFlight,
7960
7978
  loaded,
7979
+ staleResults: staleResultsActive(),
7961
7980
  titles,
7962
7981
  confirmCancel: confirmCancelArmed,
7963
7982
  changelogs: changelogView(),
@@ -8255,6 +8274,12 @@ ${body}`;
8255
8274
  maybeAutoPlanCompliant();
8256
8275
  return out;
8257
8276
  }
8277
+ function staleResultsActive() {
8278
+ if (lastSession === null) return false;
8279
+ if (autoCheckOutcome !== null) return false;
8280
+ if (!checkOnOpenEffective()) return false;
8281
+ return !hasUnfinishedRows(rows, lastSession ?? void 0);
8282
+ }
8258
8283
  function remainingCount() {
8259
8284
  return unfinishedCount(rows, lastSession ?? void 0);
8260
8285
  }
@@ -8792,7 +8817,7 @@ ${body}`;
8792
8817
  if (isObject$2(reply) && reply["ok"] === true) {
8793
8818
  applyReply(reply);
8794
8819
  if (reply["resumed"] !== false) {
8795
- say(batchText("batch.notice.auto-resumed", currentLang(), { count: String(remainingCount()) }));
8820
+ if (remainingCount() > 0) say(batchText("batch.notice.auto-resumed", currentLang(), { count: String(remainingCount()) }));
8796
8821
  rowFailedAt.clear();
8797
8822
  }
8798
8823
  autoCheckOutcome = "recent";
@@ -8897,7 +8922,7 @@ ${body}`;
8897
8922
  };
8898
8923
  }
8899
8924
  //#endregion
8900
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.30/node_modules/dsh-plugin-update/dist/entry-batch.js
8925
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.31/node_modules/dsh-plugin-update/dist/entry-batch.js
8901
8926
  function isObject$1(value) {
8902
8927
  return !!value && typeof value === "object" && !Array.isArray(value);
8903
8928
  }
@@ -13348,7 +13373,7 @@ ${body}`;
13348
13373
  }, react.createElement("span", { style: S.morePkg }, row.pkg), react.createElement("span", { style: S.moreDesc }, row.desc), react.createElement("span", { style: S.moreIcon }, react.createElement(ExternalIcon, null)))));
13349
13374
  }
13350
13375
  /** 版本胶囊那一行字:只在这里拼一次,屏上与用例读的是同一串。 */
13351
- const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.74";
13376
+ const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.75";
13352
13377
  /** 右下角那本书离面板两沿的距离:用户口径「一直处于面板右下角、不随列表滑动消失」
13353
13378
  * ⇒ sticky 吸附(面板相对,视口多大都落在面板角上);INSET=右沿,BOTTOM=底沿。 */
13354
13379
  const MANUAL_ENTRY_INSET = 16;