dsh-life-pack 0.3.82 → 0.3.83

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.37/node_modules/dsh-plugin-update/dist/shared/config.js
474
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/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.37/node_modules/dsh-plugin-update/dist/shared/codes.js
496
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/codes.js
497
497
  const BLOCKED_REASONS = [
498
498
  "unknown-profile",
499
499
  "channel-mismatch",
@@ -530,7 +530,7 @@ window.__ModuleLoader__.load({
530
530
  return typeof code === "string" && isOneOf(CHECK_SIDE_FAILURE_CODES, code.trim());
531
531
  }
532
532
  //#endregion
533
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/lang.js
533
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/lang.js
534
534
  function normalizeLangTag(tag) {
535
535
  if (typeof tag !== "string") return "zh";
536
536
  const s = tag.trim().toLowerCase().replace(/_/g, "-");
@@ -672,7 +672,7 @@ window.__ModuleLoader__.load({
672
672
  };
673
673
  }
674
674
  //#endregion
675
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/i18n/dictionary.js
675
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/i18n/dictionary.js
676
676
  const BILINGUAL_STRINGS = {
677
677
  "entry.label.idle": {
678
678
  en: "Check for updates",
@@ -2064,16 +2064,21 @@ window.__ModuleLoader__.load({
2064
2064
  zh: "已自动继续上次未完成的更新(剩余 {count} 个)。",
2065
2065
  draft: true
2066
2066
  },
2067
+ "batch.notice.auto-resuming": {
2068
+ en: "Found an unfinished update. Continuing it now…",
2069
+ zh: "发现上次未完成的更新,正在继续…",
2070
+ draft: true
2071
+ },
2072
+ "batch.notice.auto-finished": {
2073
+ en: "Finished the unfinished batch.",
2074
+ zh: "上次未完成的更新已全部完成。",
2075
+ draft: true
2076
+ },
2067
2077
  "batch.notice.resumed": {
2068
2078
  en: "Continued the unfinished batch ({count} left).",
2069
2079
  zh: "已继续上次未完成的更新(剩余 {count} 个)。",
2070
2080
  draft: true
2071
2081
  },
2072
- "batch.notice.resume-stale": {
2073
- en: "The last update was left unfinished. Click \"Continue the unfinished batch\" to resume.",
2074
- zh: "上次更新未完成,点「继续上次未完成的更新」继续。",
2075
- draft: true
2076
- },
2077
2082
  "batch.notice.no-resume": {
2078
2083
  en: "Nothing to continue.",
2079
2084
  zh: "暂无可继续的内容。",
@@ -2746,7 +2751,7 @@ window.__ModuleLoader__.load({
2746
2751
  }
2747
2752
  };
2748
2753
  //#endregion
2749
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/i18n/text.js
2754
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/i18n/text.js
2750
2755
  function escapeHtml$4(value) {
2751
2756
  return String(value ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
2752
2757
  }
@@ -2775,7 +2780,7 @@ window.__ModuleLoader__.load({
2775
2780
  return "<span class=\"dsh-upd-bi\"><span lang=\"" + l + "\">" + text + "</span></span>";
2776
2781
  }
2777
2782
  //#endregion
2778
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/cause.js
2783
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/cause.js
2779
2784
  const CAUSE_KINDS = ["minimum-release-age"];
2780
2785
  const CAUSE_SIGNATURES = [{
2781
2786
  kind: "minimum-release-age",
@@ -2895,7 +2900,7 @@ window.__ModuleLoader__.load({
2895
2900
  }
2896
2901
  }
2897
2902
  //#endregion
2898
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/redaction.js
2903
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/redaction.js
2899
2904
  const COPY_BUDGET_CHARS = 1500;
2900
2905
  const REDACTED_PATH = "<路径>";
2901
2906
  const REDACTED_SECRET = "<脱敏>";
@@ -2975,7 +2980,7 @@ window.__ModuleLoader__.load({
2975
2980
  return userinfo.masked ? truncateWithMaskNote(scrubbed, COPY_BUDGET_CHARS) : truncateForCopy(scrubbed);
2976
2981
  }
2977
2982
  //#endregion
2978
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/copy.js
2983
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/copy.js
2979
2984
  const BLOCKED_KEYS = {
2980
2985
  "unknown-profile": {
2981
2986
  title: "panel.blocked.unknown-profile.title",
@@ -3393,7 +3398,7 @@ window.__ModuleLoader__.load({
3393
3398
  return blockLines.join("\n");
3394
3399
  }
3395
3400
  //#endregion
3396
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/theme.js
3401
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/theme.js
3397
3402
  function normalizePanelTheme(value) {
3398
3403
  return value === "archive" ? "archive" : "default";
3399
3404
  }
@@ -3505,7 +3510,7 @@ window.__ModuleLoader__.load({
3505
3510
  return parts.join(";");
3506
3511
  }
3507
3512
  //#endregion
3508
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/judgment.js
3513
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/judgment.js
3509
3514
  function updateError(code) {
3510
3515
  return Object.assign(new Error(code), { code });
3511
3516
  }
@@ -3592,7 +3597,7 @@ window.__ModuleLoader__.load({
3592
3597
  return 0;
3593
3598
  }
3594
3599
  //#endregion
3595
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/hash.js
3600
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/hash.js
3596
3601
  function hash8(value) {
3597
3602
  try {
3598
3603
  const text = String(value ?? "");
@@ -3605,7 +3610,7 @@ window.__ModuleLoader__.load({
3605
3610
  }
3606
3611
  [...CORE_ERROR_CODES];
3607
3612
  //#endregion
3608
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/skip-store.js
3613
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/skip-store.js
3609
3614
  const PANEL_SKIPPED_MAX = 50;
3610
3615
  function panelSkipKey(pluginId) {
3611
3616
  return `dsh-upd-skipped/${String(pluginId)}`;
@@ -3708,7 +3713,7 @@ window.__ModuleLoader__.load({
3708
3713
  };
3709
3714
  }
3710
3715
  //#endregion
3711
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/view-model.js
3716
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/view-model.js
3712
3717
  const SEAL_KEYS = {
3713
3718
  loading: {
3714
3719
  text: "panel.seal.loading.text",
@@ -4022,7 +4027,7 @@ window.__ModuleLoader__.load({
4022
4027
  }
4023
4028
  }
4024
4029
  //#endregion
4025
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/changelog/parse.js
4030
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/changelog/parse.js
4026
4031
  const CHANGELOG_MAX_CHARS = 65536;
4027
4032
  const CHANGELOG_ALL_CATEGORIES = [
4028
4033
  "Added",
@@ -4622,7 +4627,7 @@ window.__ModuleLoader__.load({
4622
4627
  return String(text ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
4623
4628
  }
4624
4629
  //#endregion
4625
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/changelog/render-model.js
4630
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/changelog/render-model.js
4626
4631
  const MD_URL_MAX = 2048;
4627
4632
  const MD_MAX_DEPTH = 2;
4628
4633
  function isHttpUrl(u) {
@@ -5143,7 +5148,7 @@ ${note}${blocks.join("\n")}
5143
5148
  }
5144
5149
  }
5145
5150
  //#endregion
5146
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/last-resort.js
5151
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/last-resort.js
5147
5152
  const STAGES = [
5148
5153
  "install",
5149
5154
  "check",
@@ -5243,12 +5248,12 @@ ${note}${blocks.join("\n")}
5243
5248
  return verdict("unknown");
5244
5249
  }
5245
5250
  //#endregion
5246
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/log-events.js
5251
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/log-events.js
5247
5252
  const LOG_EVENT_CALL = "host.call";
5248
5253
  const LOG_EVENT_CALL_FAIL = "host.call.fail";
5249
5254
  const LOG_EVENT_INSTALL_EXEC = "update.install.exec";
5250
5255
  //#endregion
5251
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/commands.js
5256
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/commands.js
5252
5257
  const MANUAL_SUPPRESSING_REASONS = [
5253
5258
  "source-install",
5254
5259
  "unknown-profile",
@@ -5258,7 +5263,7 @@ ${note}${blocks.join("\n")}
5258
5263
  return reason !== null && reason !== void 0 && MANUAL_SUPPRESSING_REASONS.includes(reason);
5259
5264
  }
5260
5265
  //#endregion
5261
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/shared/manual-absent.js
5266
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/shared/manual-absent.js
5262
5267
  const REASON_KEYS = {
5263
5268
  "unknown-profile": "panel.manual.absent.unknown-profile",
5264
5269
  "source-install": "panel.manual.absent.source-install",
@@ -5294,7 +5299,7 @@ ${note}${blocks.join("\n")}
5294
5299
  return manualAbsentReasonTextOf(null, lang) + joiner + manualAbsentReasonTextOf(reason, lang);
5295
5300
  }
5296
5301
  //#endregion
5297
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/archive-theme.js
5302
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/archive-theme.js
5298
5303
  const UPDATE_PANEL_ARCHIVE_CSS = [
5299
5304
  "/* Archive 档案卷可选主题:只换颜色/字体/间距;内核 DOM 顺序一字不动,不断复制诊断。 */",
5300
5305
  ".dsh-upd[data-theme=\"archive\"]{--dsh-update-bg-soft:#f7f3ea;--dsh-update-bg:#fffdf6;--dsh-update-text:#1a1a1a;--dsh-update-text-muted:#6f675a;",
@@ -5433,7 +5438,7 @@ ${note}${blocks.join("\n")}
5433
5438
  "@media (prefers-reduced-motion: reduce){.dsh-upd[data-theme=\"archive\"] *{transition:none !important;animation:none !important}}"
5434
5439
  ].join("\n");
5435
5440
  //#endregion
5436
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/failure-latch.js
5441
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/failure-latch.js
5437
5442
  function formatLatchTime(atMs, lang) {
5438
5443
  if (typeof atMs !== "number" || !Number.isFinite(atMs) || atMs <= 0) return null;
5439
5444
  const raw = typeof lang === "string" ? lang.trim().replace(/_/g, "-") : "";
@@ -5450,7 +5455,7 @@ ${note}${blocks.join("\n")}
5450
5455
  return null;
5451
5456
  }
5452
5457
  //#endregion
5453
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/render.js
5458
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/render.js
5454
5459
  const UPDATE_PANEL_CSS = [
5455
5460
  ".dsh-upd{font:var(--dsh-update-panel-font-size,14px)/1.75 system-ui,\"Microsoft YaHei\",sans-serif;color:var(--dsh-update-text,#1f2937);",
5456
5461
  "background:var(--dsh-update-bg,#ffffff);border:1px solid var(--dsh-update-border,#e5e7eb);border-radius:8px;padding:12px 14px;max-width:560px;",
@@ -6307,7 +6312,7 @@ ${body}`;
6307
6312
  };
6308
6313
  }
6309
6314
  //#endregion
6310
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/log/panel-client.js
6315
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/log/panel-client.js
6311
6316
  const RENDER_FAIL_DEDUPE_MS = 6e4;
6312
6317
  function createPanelClientLogShell(options) {
6313
6318
  const option = options.clientLog;
@@ -6527,10 +6532,10 @@ ${body}`;
6527
6532
  }
6528
6533
  }
6529
6534
  //#endregion
6530
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/i18n/styles.js
6535
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/i18n/styles.js
6531
6536
  const BILINGUAL_CSS = [".dsh-upd-bi{display:inline;overflow-wrap:anywhere}", ".dsh-upd-bi [lang]{overflow-wrap:anywhere}"].join("\n");
6532
6537
  //#endregion
6533
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/entry.js
6538
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/entry.js
6534
6539
  const UPDATE_ENTRY_CSS = [
6535
6540
  ".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)}",
6536
6541
  ".dsh-upd-entry-btn{font:inherit;border:1px solid var(--dsh-update-border,#d1d5db);border-radius:var(--dsh-update-entry-border-radius,6px);",
@@ -6565,7 +6570,7 @@ ${body}`;
6565
6570
  ".dsh-upd-entry-btn{--dsh-update-button-bg:#1f2937;--dsh-update-border:#374151}}"
6566
6571
  ].join("\n");
6567
6572
  //#endregion
6568
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/batch/helpers.js
6573
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/helpers.js
6569
6574
  const BATCH_PANEL_POLL = {
6570
6575
  defaultMs: 1500,
6571
6576
  minMs: 250
@@ -6751,7 +6756,7 @@ ${body}`;
6751
6756
  };
6752
6757
  }
6753
6758
  //#endregion
6754
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/batch/ledger.js
6759
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/ledger.js
6755
6760
  function noteRestart(counts, row) {
6756
6761
  if (restartUnregistered(row)) counts.restartUnregistered += 1;
6757
6762
  else counts.restart += 1;
@@ -6998,7 +7003,7 @@ ${body}`;
6998
7003
  return null;
6999
7004
  }
7000
7005
  //#endregion
7001
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/batch/styles.js
7006
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/styles.js
7002
7007
  const UPDATE_BATCH_PANEL_CSS = [
7003
7008
  "/* 批量面板(#25):类名沿用 dsh-upd-* 前缀;默认(最小)主题,Archive 皮肤见 UPDATE_BATCH_PANEL_ARCHIVE_CSS。 */",
7004
7009
  ".dsh-upd-overlay .dsh-upd.dsh-upd-batch{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}",
@@ -7110,7 +7115,7 @@ ${body}`;
7110
7115
  ".dsh-upd[data-theme=\"archive\"] .dsh-upd-banner>.dsh-upd-browline button:not([data-primary=\"1\"]):not([data-busy=\"1\"]){background:transparent}"
7111
7116
  ].join(String.fromCharCode(10));
7112
7117
  //#endregion
7113
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/batch/render.js
7118
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/render.js
7114
7119
  function renderBatchPanelHTML(input) {
7115
7120
  const rows = Array.isArray(input.rows) ? input.rows : [];
7116
7121
  const theme = normalizePanelTheme(input.theme);
@@ -7566,8 +7571,7 @@ ${body}`;
7566
7571
  };
7567
7572
  }
7568
7573
  //#endregion
7569
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/batch/mount.js
7570
- const AUTO_RESUME_MAX_AGE_MS = 6e5;
7574
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/mount.js
7571
7575
  function singleInstallPhoneOf(row) {
7572
7576
  const phones = isObject$2(row.phoneNames) ? row.phoneNames : null;
7573
7577
  if (!phones) return null;
@@ -8828,12 +8832,6 @@ ${body}`;
8828
8832
  act(kind, key === null ? void 0 : key);
8829
8833
  } catch {}
8830
8834
  }
8831
- function autoResumeAgeMsOf(value) {
8832
- if (!isObject$2(value)) return null;
8833
- const at = value["updatedAt"];
8834
- if (typeof at !== "number" || !Number.isFinite(at) || at <= 0) return null;
8835
- return Math.max(0, Date.now() - at);
8836
- }
8837
8835
  async function autoOnce() {
8838
8836
  try {
8839
8837
  await runAutoOnce();
@@ -8848,22 +8846,20 @@ ${body}`;
8848
8846
  if (autoResumeOption && !autoResumeDone) {
8849
8847
  autoResumeDone = true;
8850
8848
  if (hasUnfinishedRows(rows, lastSession ?? void 0) && !inFlight && !refreshing) {
8851
- const ageMs = autoResumeAgeMsOf(lastSession);
8852
- if (ageMs !== null && ageMs > AUTO_RESUME_MAX_AGE_MS) {
8853
- autoCheckOutcome = "recent";
8854
- say(batchText("batch.notice.resume-stale", currentLang()));
8855
- render();
8856
- return;
8857
- }
8849
+ const pending = unfinishedCount(rows, lastSession ?? void 0);
8858
8850
  const before = lastError;
8859
8851
  const latchBefore = failureLatch;
8852
+ say(batchText("batch.notice.auto-resuming", currentLang(), { count: String(pending) }));
8853
+ render();
8860
8854
  try {
8861
8855
  const reply = await call(phones.resume, {});
8862
8856
  if (!mounted) return;
8863
8857
  if (isObject$2(reply) && reply["ok"] === true) {
8864
8858
  applyReply(reply);
8865
8859
  if (reply["resumed"] !== false) {
8866
- if (remainingCount() > 0) say(batchText("batch.notice.auto-resumed", currentLang(), { count: String(remainingCount()) }));
8860
+ const left = remainingCount();
8861
+ if (left > 0) say(batchText("batch.notice.auto-resumed", currentLang(), { count: String(left) }));
8862
+ else say(batchText("batch.notice.auto-finished", currentLang()));
8867
8863
  rowFailedAt.clear();
8868
8864
  }
8869
8865
  autoCheckOutcome = "recent";
@@ -8871,11 +8867,15 @@ ${body}`;
8871
8867
  maybeAutoRowChangelog(expandedKey);
8872
8868
  return;
8873
8869
  }
8870
+ clearNotice();
8874
8871
  lastError = before;
8875
8872
  failureLatch = latchBefore;
8876
8873
  render();
8877
8874
  } catch {
8878
- if (mounted) render();
8875
+ if (mounted) {
8876
+ clearNotice();
8877
+ render();
8878
+ }
8879
8879
  }
8880
8880
  }
8881
8881
  }
@@ -8968,7 +8968,7 @@ ${body}`;
8968
8968
  };
8969
8969
  }
8970
8970
  //#endregion
8971
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/panel/batch/entry-batch.js
8971
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/panel/batch/entry-batch.js
8972
8972
  const ENTRY_WATCH_MAX_MS = 6e5;
8973
8973
  function isObject$1(value) {
8974
8974
  return !!value && typeof value === "object" && !Array.isArray(value);
@@ -9383,7 +9383,7 @@ ${body}`;
9383
9383
  };
9384
9384
  }
9385
9385
  //#endregion
9386
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/install-button/styles.js
9386
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/styles.js
9387
9387
  const INSTALL_BUTTON_CSS = [
9388
9388
  ".dsh-upd-ib{display:flex;flex-direction:column;gap:8px;font:inherit}",
9389
9389
  ".dsh-upd-ib-status{font-weight:600;overflow-wrap:anywhere}",
@@ -9407,7 +9407,7 @@ ${body}`;
9407
9407
  ".dsh-upd-ib[data-theme=\"archive\"] .dsh-upd-ib-status{font-family:serif}"
9408
9408
  ].join("\n");
9409
9409
  //#endregion
9410
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/install-button/widgets.js
9410
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/widgets.js
9411
9411
  function isObject(value) {
9412
9412
  return typeof value === "object" && value !== null && !Array.isArray(value);
9413
9413
  }
@@ -9476,7 +9476,7 @@ ${body}`;
9476
9476
  } catch {}
9477
9477
  }
9478
9478
  //#endregion
9479
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/install-button/view.js
9479
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/view.js
9480
9480
  function installButtonFallbackOf(input, bannerKind) {
9481
9481
  try {
9482
9482
  if (bannerKind !== "failed") return null;
@@ -9607,7 +9607,7 @@ ${body}`;
9607
9607
  };
9608
9608
  }
9609
9609
  //#endregion
9610
- //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.37/node_modules/dsh-plugin-update/dist/core/install-button/render.js
9610
+ //#region ../../node_modules/.pnpm/dsh-plugin-update@0.18.38/node_modules/dsh-plugin-update/dist/core/install-button/render.js
9611
9611
  function renderInstallButtonHTML(view, opts) {
9612
9612
  const l = opts.lang;
9613
9613
  const manualSource = opts.manualSource === "carried-over" ? "carried-over" : opts.manualSource === null ? null : "frame";
@@ -13462,7 +13462,7 @@ ${body}`;
13462
13462
  }, 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)))));
13463
13463
  }
13464
13464
  /** 版本胶囊那一行字:只在这里拼一次,屏上与用例读的是同一串。 */
13465
- const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.82";
13465
+ const MANAGER_VERSION_TEXT = "dsh-life-pack · 0.3.83";
13466
13466
  /** 右下角那本书离面板两沿的距离:用户口径「一直处于面板右下角、不随列表滑动消失」
13467
13467
  * ⇒ sticky 吸附(面板相对,视口多大都落在面板角上);INSET=右沿,BOTTOM=底沿。 */
13468
13468
  const MANUAL_ENTRY_INSET = 16;