dsh-multipane 1.0.12 → 1.0.13

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/README.md CHANGED
@@ -246,6 +246,11 @@ C:\Users\weiai\.dsh\plugin-src\_probe\sync-client.ps1 -Push # 台式机 ->
246
246
 
247
247
  ## 更新记录
248
248
 
249
+ ### 1.0.13(2026-11-10)
250
+ - 修「明明有新版本却报已是最新」:插件市场对新发布的版本有**观察期**(release-age 策略),
251
+ 这段时间它返回 `updateAvailable: false` 但 `latestVersion` 更高。现在会明确提示「新版本 X 已发布,
252
+ 市场还在观察期,过几分钟再检查」,而不是把它和「真的没有新版」混成一回事。
253
+
249
254
  ### 1.0.12(2026-11-10)
250
255
  - 修上一版读取更新结果的两个字段:`restartRequired` 实际在 `outcome` 里、失败原因在 `failure.message`(不在顶层)。
251
256
  之前会把「需要重启」误判成「刷新即可」,失败时也只显示状态名而不是市场给的原因。
package/lib/client.js CHANGED
@@ -17,7 +17,7 @@ window.__ModuleLoader__.load({
17
17
  */
18
18
  const PLUGIN_LABEL = "多栏视图";
19
19
  /* 与 package.json 的 version 必须一致(发版时两处同改;check-names.cjs 会校验)。 */
20
- const PLUGIN_VERSION = "1.0.12";
20
+ const PLUGIN_VERSION = "1.0.13";
21
21
  const NPM_LATEST_URL = "https://registry.npmjs.org/dsh-multipane/latest";
22
22
  /* 插件市场的公开更新 API v1(dshmarket 提供,见其 UPDATE-API-V1.md)。
23
23
  它自己负责装包/校验版本/回滚,我们只负责触发和显示结果——
@@ -6415,11 +6415,21 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
6415
6415
  if (info === void 0 || info === null) throw new Error("返回里没有版本信息");
6416
6416
  const installed = String(info.installedVersion ?? PLUGIN_VERSION);
6417
6417
  const latest = String(info.latestVersion ?? installed);
6418
- setUpdate(
6419
- info.updateAvailable === true
6420
- ? { phase: "available", text: `发现新版本 ${latest}(当前 ${installed})`, canUpdate: true, opId: "" }
6421
- : { phase: "latest", text: `已是最新版本(${installed})`, canUpdate: false, opId: "" }
6422
- );
6418
+ if (info.updateAvailable === true) {
6419
+ setUpdate({ phase: "available", text: `发现新版本 ${latest}(当前 ${installed})`, canUpdate: true, opId: "" });
6420
+ } else if (compareVersion(latest, installed) > 0) {
6421
+ /* 市场已经看到更新的版本,但暂不放行:新发布的版本有观察期(release-age 策略,
6422
+ 防供应链投毒)。这种情况不能报「已是最新」——版本号明明更高,
6423
+ 用户会以为检查坏了(2026-11-10 实测:1.0.12 发布后立刻查就是这样)。 */
6424
+ setUpdate({
6425
+ phase: "available-manual",
6426
+ text: `新版本 ${latest} 已发布,插件市场还在观察期(新版本有等待策略),过几分钟再点一次检查`,
6427
+ canUpdate: false,
6428
+ opId: ""
6429
+ });
6430
+ } else {
6431
+ setUpdate({ phase: "latest", text: `已是最新版本(${installed})`, canUpdate: false, opId: "" });
6432
+ }
6423
6433
  return;
6424
6434
  }
6425
6435
  const res = await fetch(`${NPM_LATEST_URL}?t=${Date.now()}`, { cache: "no-store" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-multipane",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Hermes-style tabbed workspace for the DSH main area: drag sessions in, split into up to four columns, close tabs.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",