dsh-sidebar-row-menu 1.4.2 → 1.4.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.3 — 2026-11-04
4
+
5
+ ### Changed
6
+
7
+ - **Declared the supported DSH range**: `package.json` now carries
8
+ `engines.dsh: ">=0.2.1-rc.5 <0.3.0-0"`. DSH refuses to install or activate the
9
+ plugin on a host outside that range, and the plugin market lists the range on the
10
+ card instead of treating the plugin as undeclared. No runtime code changed.
11
+
12
+ ### 中文摘要
13
+
14
+ - 在 `package.json` 中声明 `engines.dsh: ">=0.2.1-rc.5 <0.3.0-0"`:范围外的 DSH 会拒绝
15
+ 安装/激活,插件市场会显示支持版本,不再当作“未声明”。运行代码无改动。
16
+
3
17
  ## 1.4.2 — 2026-11-03
4
18
 
5
19
  ### Added
package/README.en.md CHANGED
@@ -417,6 +417,11 @@ the row's existing menu.
417
417
 
418
418
  ## Compatibility
419
419
 
420
+ The package declares its supported DSH range in `package.json` as
421
+ `engines.dsh`: `>=0.2.1-rc.5 <0.3.0-0`. The DSH host uses it to refuse
422
+ incompatible installs, and the plugin market shows it as the supported version;
423
+ 0.3 and later need re-verification before the upper bound is raised.
424
+
420
425
  Built against DSH client `0.2.1-rc.5` (`ProjectRowItem`, `SessionNodeItem`,
421
426
  `Menu`). If a DSH upgrade changes those row components or the menu positioning:
422
427
 
package/README.md CHANGED
@@ -365,6 +365,10 @@ test/*.test.mjs node:test
365
365
 
366
366
  ## 兼容性
367
367
 
368
+ 本包在 `package.json` 的 `engines.dsh` 中声明支持范围:`>=0.2.1-rc.5 <0.3.0-0`。
369
+ DSH 宿主按该范围拒绝安装不兼容的宿主,插件市场也按它显示支持版本;0.3 起需要重新验证后
370
+ 再放宽上限。
371
+
368
372
  按 DSH 客户端 `0.2.1-rc.5` 的 `ProjectRowItem` / `SessionNodeItem` / `Menu` 实现。
369
373
  DSH 升级若改动行组件或菜单定位实现:
370
374
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-sidebar-row-menu",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "description": "DSH sidebar right-click menus: a self-composed menu for workspace rows, and the native slot menu opened at the pointer for session rows, with open-with and archived-session cleanup.",
6
6
  "keywords": [
@@ -55,11 +55,12 @@
55
55
  }
56
56
  },
57
57
  "engines": {
58
- "node": ">=20"
58
+ "node": ">=20",
59
+ "dsh": ">=0.2.1-rc.5 <0.3.0-0"
59
60
  },
60
61
  "scripts": {
61
- "test": "node --test test/host.test.mjs test/client.test.mjs",
62
- "test:local": "node --test --test-isolation=none test/host.test.mjs test/client.test.mjs",
62
+ "test": "node --test test/host.test.mjs test/manifest.test.mjs test/client.test.mjs",
63
+ "test:local": "node --test --test-isolation=none test/host.test.mjs test/manifest.test.mjs test/client.test.mjs",
63
64
  "check": "node --check lib/index.js && node --check lib/client.js && node --check lib/host/paths.js && node --check lib/host/security.js && node --check lib/host/launch.js && node --check lib/host/route.js && node --check lib/host/session-delete.js && node --check lib/host/workspace-delete.js",
64
65
  "build": "npm pack",
65
66
  "marketplace:check": "node scripts/marketplace-preflight.mjs",
@@ -65,6 +65,13 @@ String(pkg.repository?.url ?? '').includes(repoSlug)
65
65
  ? pass('repository', pkg.repository.url)
66
66
  : fail('repository', 'does not point at the GitHub repo');
67
67
 
68
+ // The market index and the DSH host both read the top-level `engines.dsh`; the
69
+ // nested `dsh.engines.dsh` the organizer-style manifests use is ignored by both.
70
+ const enginesDsh = pkg.engines?.dsh;
71
+ typeof enginesDsh === 'string' && enginesDsh.trim()
72
+ ? pass('engines.dsh', enginesDsh)
73
+ : fail('engines.dsh', 'missing — the market would show no supported DSH version');
74
+
68
75
  // --- storefront icon --------------------------------------------------------
69
76
 
70
77
  if (!existsSync(iconPath)) {