dsh-multipane 1.0.15 → 1.0.17

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,15 @@ C:\Users\weiai\.dsh\plugin-src\_probe\sync-client.ps1 -Push # 台式机 ->
246
246
 
247
247
  ## 更新记录
248
248
 
249
+ ### 1.0.17(2026-11-10)
250
+ - **修「明明有新版本却显示已是最新」**:插件市场对**相同 URL** 有服务端缓存,只带 `force=1` 仍会返回旧结果。
251
+ 现在每次检查都加 `&t=时间戳` 绕过它。(这是我上一版验证时的漏洞:我用手写请求带时间戳测通了,
252
+ 却没检查 UI 里那条请求没带,导致界面一直报「已是最新」。)
253
+
254
+ ### 1.0.16(2026-11-10)
255
+ - 「已是最新版本」后面带上本次检查的时刻(例:`已是最新版本(1.0.16,12:05 检查)`)。
256
+ 插件市场对新版本有缓存,显示时间能一眼看出结果是不是旧的,不用反复猜。
257
+
249
258
  ### 1.0.15(2026-11-10)
250
259
  - 修 1.0.11~1.0.14 里「立即更新」必然失败的问题:插件市场的 POST 响应把 `operationId` 放在 `operation` 对象里
251
260
  (`{schema, operation:{operationId}}`),之前读的是顶层,所以每次都报「没有返回操作 id」。
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.15";
20
+ const PLUGIN_VERSION = "1.0.17";
21
21
  const NPM_LATEST_URL = "https://registry.npmjs.org/dsh-multipane/latest";
22
22
  /* 插件市场的公开更新 API v1(dshmarket 提供,见其 UPDATE-API-V1.md)。
23
23
  它自己负责装包/校验版本/回滚,我们只负责触发和显示结果——
@@ -6428,7 +6428,9 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
6428
6428
  installed: PLUGIN_VERSION,
6429
6429
  latest: "",
6430
6430
  forceHint: "",
6431
- progress: null
6431
+ progress: null,
6432
+ /* 上次检查的时刻:市场对新版本有缓存,显示出来用户才知道是不是查过旧的 */
6433
+ checkedAt: ""
6432
6434
  });
6433
6435
  const closeModal = () => setUpdate((prev) => ({ ...prev, modal: false }));
6434
6436
  const checkUpdate = async () => {
@@ -6444,11 +6446,13 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
6444
6446
  progress: null
6445
6447
  });
6446
6448
  try {
6447
- const capsRes = await fetch(MARKET_CAPS_URL, { cache: "no-store" });
6449
+ const capsRes = await fetch(`${MARKET_CAPS_URL}?t=${Date.now()}`, { cache: "no-store" });
6448
6450
  if (capsRes.ok === true) {
6449
6451
  const caps = await capsRes.json();
6450
6452
  if ((caps && caps.features && caps.features.check) !== true) throw new Error("插件市场未启用更新检查");
6451
- const res = await fetch(`${MARKET_UPDATES_URL}?name=${PKG_NAME}&force=1`, { cache: "no-store" });
6453
+ /* 必须带时间戳:市场对相同 URL 有服务端缓存,只写 force=1 仍会拿到旧结果,
6454
+ 表现就是「明明有新版本却显示已是最新」(2026-11-10 实测:带与不带 t= 返回不同 latest)。 */
6455
+ const res = await fetch(`${MARKET_UPDATES_URL}?name=${PKG_NAME}&force=1&t=${Date.now()}`, { cache: "no-store" });
6452
6456
  if (res.ok !== true) throw new Error(`HTTP ${res.status}`);
6453
6457
  const data = await res.json();
6454
6458
  const info = data === null || data === void 0 ? void 0 : data.package;
@@ -6484,7 +6488,7 @@ const TAB_LABEL_CHROME_DOT_PX = 46;
6484
6488
  } else {
6485
6489
  setUpdate({
6486
6490
  phase: "latest",
6487
- text: `已是最新版本(${installed})`,
6491
+ text: `已是最新版本(${installed},${new Date().toLocaleTimeString("zh-CN", { hour: "2-digit", minute: "2-digit" })} 检查)`,
6488
6492
  canUpdate: false,
6489
6493
  opId: "",
6490
6494
  modal: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-multipane",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
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",