dsh-composer-ux 0.16.4 → 0.16.5

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
@@ -2,6 +2,20 @@
2
2
 
3
3
  本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [0.16.5] — 2026-10-01(设置页抬头加「官网 ↗」)
6
+
7
+ 起因(用户原话):**「https://www.deepseek.com/harness/ 把这个 DSH 的官网链接放到我的插件里」**;
8
+ 被问到时选择放在**设置页抬头、GitHub 旁边**。
9
+
10
+ - 地址只写进契约(`settings-contract.ts` 的 `SITE_URL`),客户端引它 —— 与 `REPO_URL` 同一处理,
11
+ 界面上不许硬编码第二份;
12
+ - 链接放在 GitHub 链接**右边**,不打乱既有约定「重启按钮在链接左边」;
13
+ - 新断言盯住它:抬头里必须有 `href={SITE_URL}`,且排在 `href={REPO_URL}` 之后。
14
+
15
+ ## 验证
16
+
17
+ - `npm test`:**24 个套件 2385 passed / 0 failed**。
18
+
5
19
  ## [0.16.4] — 2026-10-01(面板可以整块滚了:那排被切的按钮能划到)
6
20
 
7
21
  起因(用户原话):**「让这个页面可以滑动,使其一些按钮不被遮挡」**(截图里快捷指令/优化面板
package/README.md CHANGED
@@ -652,7 +652,7 @@ node build.mjs # 产出 lib/index.js + lib/client.js
652
652
  # ⚠️ 宿主半会**内联** schemastery / cosmokit:
653
653
  # 优先用 DSH 检出里的 vendor 副本,检出不在时退到 node_modules
654
654
  # 里同版本的 npm 包(两者逐字节相同)——CI 上走的就是退路
655
- npm test # 24 个套件;当前 2384 passed, 0 failed(2026-09-29 实测;CI 三平台同样全绿)
655
+ npm test # 24 个套件;当前 2385 passed, 0 failed(2026-09-29 实测;CI 三平台同样全绿)
656
656
  # 走 scripts/run-tests.mjs:顺带把"多少套件/多少条"记进 test/.last-run.json
657
657
  npm run test:mutations # 手动跑:变异测试,证明那套护栏真的在咬人(164 条,须单独跑)
658
658
  # 同样记录结果,供下面的文档门禁核对
package/lib/client.js CHANGED
@@ -1003,6 +1003,7 @@ function sanitizeTerminalCandidates(value) {
1003
1003
  // src/settings-contract.ts
1004
1004
  var NAMESPACE = "composer-ux";
1005
1005
  var REPO_URL = "https://github.com/fangwen9527/dsh-composer-ux";
1006
+ var SITE_URL = "https://www.deepseek.com/harness/";
1006
1007
  var RESTART_API_PATH = "/composer-ux/restart";
1007
1008
  var USAGE_API_PATH = "/composer-ux/usage";
1008
1009
  var MODELS_API_PATH = "/composer-ux/models";
@@ -5943,6 +5944,20 @@ function SettingsSection({ useLive, useBook, useBookStatus, useWriteNotice, acti
5943
5944
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", children: "\u2197" })
5944
5945
  ]
5945
5946
  }
5947
+ ),
5948
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
5949
+ "a",
5950
+ {
5951
+ className: "dsh-ux-cardLink",
5952
+ href: SITE_URL,
5953
+ target: "_blank",
5954
+ rel: "noreferrer noopener",
5955
+ title: "\u6253\u5F00 DSH \u5B98\u7F51\uFF08\u65B0\u6807\u7B7E\uFF09",
5956
+ children: [
5957
+ "\u5B98\u7F51 ",
5958
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", children: "\u2197" })
5959
+ ]
5960
+ }
5946
5961
  )
5947
5962
  ] })
5948
5963
  ] }),